1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.60 for ircd-hybrid 7.2.2. |
4 |
# |
5 |
# $Id$ |
6 |
# |
7 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 |
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
9 |
# This configure script is free software; the Free Software Foundation |
10 |
# gives unlimited permission to copy, distribute and modify it. |
11 |
## --------------------- ## |
12 |
## M4sh Initialization. ## |
13 |
## --------------------- ## |
14 |
|
15 |
# Be Bourne compatible |
16 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
17 |
emulate sh |
18 |
NULLCMD=: |
19 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
20 |
# is contrary to our usage. Disable this feature. |
21 |
alias -g '${1+"$@"}'='"$@"' |
22 |
setopt NO_GLOB_SUBST |
23 |
else |
24 |
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
25 |
fi |
26 |
BIN_SH=xpg4; export BIN_SH # for Tru64 |
27 |
DUALCASE=1; export DUALCASE # for MKS sh |
28 |
|
29 |
|
30 |
# PATH needs CR |
31 |
# Avoid depending upon Character Ranges. |
32 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
33 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
34 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
35 |
as_cr_digits='0123456789' |
36 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
37 |
|
38 |
# The user is always right. |
39 |
if test "${PATH_SEPARATOR+set}" != set; then |
40 |
echo "#! /bin/sh" >conf$$.sh |
41 |
echo "exit 0" >>conf$$.sh |
42 |
chmod +x conf$$.sh |
43 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
44 |
PATH_SEPARATOR=';' |
45 |
else |
46 |
PATH_SEPARATOR=: |
47 |
fi |
48 |
rm -f conf$$.sh |
49 |
fi |
50 |
|
51 |
# Support unset when possible. |
52 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
53 |
as_unset=unset |
54 |
else |
55 |
as_unset=false |
56 |
fi |
57 |
|
58 |
|
59 |
# IFS |
60 |
# We need space, tab and new line, in precisely that order. Quoting is |
61 |
# there to prevent editors from complaining about space-tab. |
62 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
63 |
# splitting by setting IFS to empty value.) |
64 |
as_nl=' |
65 |
' |
66 |
IFS=" "" $as_nl" |
67 |
|
68 |
# Find who we are. Look in the path if we contain no directory separator. |
69 |
case $0 in |
70 |
*[\\/]* ) as_myself=$0 ;; |
71 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
72 |
for as_dir in $PATH |
73 |
do |
74 |
IFS=$as_save_IFS |
75 |
test -z "$as_dir" && as_dir=. |
76 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
77 |
done |
78 |
IFS=$as_save_IFS |
79 |
|
80 |
;; |
81 |
esac |
82 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
83 |
# in which case we are not to be found in the path. |
84 |
if test "x$as_myself" = x; then |
85 |
as_myself=$0 |
86 |
fi |
87 |
if test ! -f "$as_myself"; then |
88 |
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
89 |
{ (exit 1); exit 1; } |
90 |
fi |
91 |
|
92 |
# Work around bugs in pre-3.0 UWIN ksh. |
93 |
for as_var in ENV MAIL MAILPATH |
94 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
95 |
done |
96 |
PS1='$ ' |
97 |
PS2='> ' |
98 |
PS4='+ ' |
99 |
|
100 |
# NLS nuisances. |
101 |
for as_var in \ |
102 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
103 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
104 |
LC_TELEPHONE LC_TIME |
105 |
do |
106 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
107 |
eval $as_var=C; export $as_var |
108 |
else |
109 |
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
110 |
fi |
111 |
done |
112 |
|
113 |
# Required to use basename. |
114 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
115 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
116 |
as_expr=expr |
117 |
else |
118 |
as_expr=false |
119 |
fi |
120 |
|
121 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
122 |
as_basename=basename |
123 |
else |
124 |
as_basename=false |
125 |
fi |
126 |
|
127 |
|
128 |
# Name of the executable. |
129 |
as_me=`$as_basename -- "$0" || |
130 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
131 |
X"$0" : 'X\(//\)$' \| \ |
132 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
133 |
echo X/"$0" | |
134 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
135 |
s//\1/ |
136 |
q |
137 |
} |
138 |
/^X\/\(\/\/\)$/{ |
139 |
s//\1/ |
140 |
q |
141 |
} |
142 |
/^X\/\(\/\).*/{ |
143 |
s//\1/ |
144 |
q |
145 |
} |
146 |
s/.*/./; q'` |
147 |
|
148 |
# CDPATH. |
149 |
$as_unset CDPATH |
150 |
|
151 |
|
152 |
if test "x$CONFIG_SHELL" = x; then |
153 |
if (eval ":") 2>/dev/null; then |
154 |
as_have_required=yes |
155 |
else |
156 |
as_have_required=no |
157 |
fi |
158 |
|
159 |
if test $as_have_required = yes && (eval ": |
160 |
(as_func_return () { |
161 |
(exit \$1) |
162 |
} |
163 |
as_func_success () { |
164 |
as_func_return 0 |
165 |
} |
166 |
as_func_failure () { |
167 |
as_func_return 1 |
168 |
} |
169 |
as_func_ret_success () { |
170 |
return 0 |
171 |
} |
172 |
as_func_ret_failure () { |
173 |
return 1 |
174 |
} |
175 |
|
176 |
exitcode=0 |
177 |
if as_func_success; then |
178 |
: |
179 |
else |
180 |
exitcode=1 |
181 |
echo as_func_success failed. |
182 |
fi |
183 |
|
184 |
if as_func_failure; then |
185 |
exitcode=1 |
186 |
echo as_func_failure succeeded. |
187 |
fi |
188 |
|
189 |
if as_func_ret_success; then |
190 |
: |
191 |
else |
192 |
exitcode=1 |
193 |
echo as_func_ret_success failed. |
194 |
fi |
195 |
|
196 |
if as_func_ret_failure; then |
197 |
exitcode=1 |
198 |
echo as_func_ret_failure succeeded. |
199 |
fi |
200 |
|
201 |
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
202 |
: |
203 |
else |
204 |
exitcode=1 |
205 |
echo positional parameters were not saved. |
206 |
fi |
207 |
|
208 |
test \$exitcode = 0) || { (exit 1); exit 1; } |
209 |
|
210 |
( |
211 |
as_lineno_1=\$LINENO |
212 |
as_lineno_2=\$LINENO |
213 |
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
214 |
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
215 |
") 2> /dev/null; then |
216 |
: |
217 |
else |
218 |
as_candidate_shells= |
219 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
220 |
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
221 |
do |
222 |
IFS=$as_save_IFS |
223 |
test -z "$as_dir" && as_dir=. |
224 |
case $as_dir in |
225 |
/*) |
226 |
for as_base in sh bash ksh sh5; do |
227 |
as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
228 |
done;; |
229 |
esac |
230 |
done |
231 |
IFS=$as_save_IFS |
232 |
|
233 |
|
234 |
for as_shell in $as_candidate_shells $SHELL; do |
235 |
# Try only shells that exist, to save several forks. |
236 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
237 |
{ ("$as_shell") 2> /dev/null <<\_ASEOF |
238 |
# Be Bourne compatible |
239 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
240 |
emulate sh |
241 |
NULLCMD=: |
242 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
243 |
# is contrary to our usage. Disable this feature. |
244 |
alias -g '${1+"$@"}'='"$@"' |
245 |
setopt NO_GLOB_SUBST |
246 |
else |
247 |
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
248 |
fi |
249 |
BIN_SH=xpg4; export BIN_SH # for Tru64 |
250 |
DUALCASE=1; export DUALCASE # for MKS sh |
251 |
|
252 |
: |
253 |
_ASEOF |
254 |
}; then |
255 |
CONFIG_SHELL=$as_shell |
256 |
as_have_required=yes |
257 |
if { "$as_shell" 2> /dev/null <<\_ASEOF |
258 |
# Be Bourne compatible |
259 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
260 |
emulate sh |
261 |
NULLCMD=: |
262 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
263 |
# is contrary to our usage. Disable this feature. |
264 |
alias -g '${1+"$@"}'='"$@"' |
265 |
setopt NO_GLOB_SUBST |
266 |
else |
267 |
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
268 |
fi |
269 |
BIN_SH=xpg4; export BIN_SH # for Tru64 |
270 |
DUALCASE=1; export DUALCASE # for MKS sh |
271 |
|
272 |
: |
273 |
(as_func_return () { |
274 |
(exit $1) |
275 |
} |
276 |
as_func_success () { |
277 |
as_func_return 0 |
278 |
} |
279 |
as_func_failure () { |
280 |
as_func_return 1 |
281 |
} |
282 |
as_func_ret_success () { |
283 |
return 0 |
284 |
} |
285 |
as_func_ret_failure () { |
286 |
return 1 |
287 |
} |
288 |
|
289 |
exitcode=0 |
290 |
if as_func_success; then |
291 |
: |
292 |
else |
293 |
exitcode=1 |
294 |
echo as_func_success failed. |
295 |
fi |
296 |
|
297 |
if as_func_failure; then |
298 |
exitcode=1 |
299 |
echo as_func_failure succeeded. |
300 |
fi |
301 |
|
302 |
if as_func_ret_success; then |
303 |
: |
304 |
else |
305 |
exitcode=1 |
306 |
echo as_func_ret_success failed. |
307 |
fi |
308 |
|
309 |
if as_func_ret_failure; then |
310 |
exitcode=1 |
311 |
echo as_func_ret_failure succeeded. |
312 |
fi |
313 |
|
314 |
if ( set x; as_func_ret_success y && test x = "$1" ); then |
315 |
: |
316 |
else |
317 |
exitcode=1 |
318 |
echo positional parameters were not saved. |
319 |
fi |
320 |
|
321 |
test $exitcode = 0) || { (exit 1); exit 1; } |
322 |
|
323 |
( |
324 |
as_lineno_1=$LINENO |
325 |
as_lineno_2=$LINENO |
326 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
327 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
328 |
|
329 |
_ASEOF |
330 |
}; then |
331 |
break |
332 |
fi |
333 |
|
334 |
fi |
335 |
|
336 |
done |
337 |
|
338 |
if test "x$CONFIG_SHELL" != x; then |
339 |
for as_var in BASH_ENV ENV |
340 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
341 |
done |
342 |
export CONFIG_SHELL |
343 |
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
344 |
fi |
345 |
|
346 |
|
347 |
if test $as_have_required = no; then |
348 |
echo This script requires a shell more modern than all the |
349 |
echo shells that I found on your system. Please install a |
350 |
echo modern shell, or manually run the script under such a |
351 |
echo shell if you do have one. |
352 |
{ (exit 1); exit 1; } |
353 |
fi |
354 |
|
355 |
|
356 |
fi |
357 |
|
358 |
fi |
359 |
|
360 |
|
361 |
|
362 |
(eval "as_func_return () { |
363 |
(exit \$1) |
364 |
} |
365 |
as_func_success () { |
366 |
as_func_return 0 |
367 |
} |
368 |
as_func_failure () { |
369 |
as_func_return 1 |
370 |
} |
371 |
as_func_ret_success () { |
372 |
return 0 |
373 |
} |
374 |
as_func_ret_failure () { |
375 |
return 1 |
376 |
} |
377 |
|
378 |
exitcode=0 |
379 |
if as_func_success; then |
380 |
: |
381 |
else |
382 |
exitcode=1 |
383 |
echo as_func_success failed. |
384 |
fi |
385 |
|
386 |
if as_func_failure; then |
387 |
exitcode=1 |
388 |
echo as_func_failure succeeded. |
389 |
fi |
390 |
|
391 |
if as_func_ret_success; then |
392 |
: |
393 |
else |
394 |
exitcode=1 |
395 |
echo as_func_ret_success failed. |
396 |
fi |
397 |
|
398 |
if as_func_ret_failure; then |
399 |
exitcode=1 |
400 |
echo as_func_ret_failure succeeded. |
401 |
fi |
402 |
|
403 |
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
404 |
: |
405 |
else |
406 |
exitcode=1 |
407 |
echo positional parameters were not saved. |
408 |
fi |
409 |
|
410 |
test \$exitcode = 0") || { |
411 |
echo No shell found that supports shell functions. |
412 |
echo Please tell autoconf@gnu.org about your system, |
413 |
echo including any error possibly output before this |
414 |
echo message |
415 |
} |
416 |
|
417 |
|
418 |
|
419 |
as_lineno_1=$LINENO |
420 |
as_lineno_2=$LINENO |
421 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
422 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
423 |
|
424 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
425 |
# uniformly replaced by the line number. The first 'sed' inserts a |
426 |
# line-number line after each line using $LINENO; the second 'sed' |
427 |
# does the real work. The second script uses 'N' to pair each |
428 |
# line-number line with the line containing $LINENO, and appends |
429 |
# trailing '-' during substitution so that $LINENO is not a special |
430 |
# case at line end. |
431 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
432 |
# scripts with optimization help from Paolo Bonzini. Blame Lee |
433 |
# E. McMahon (1931-1989) for sed's syntax. :-) |
434 |
sed -n ' |
435 |
p |
436 |
/[$]LINENO/= |
437 |
' <$as_myself | |
438 |
sed ' |
439 |
s/[$]LINENO.*/&-/ |
440 |
t lineno |
441 |
b |
442 |
:lineno |
443 |
N |
444 |
:loop |
445 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
446 |
t loop |
447 |
s/-\n.*// |
448 |
' >$as_me.lineno && |
449 |
chmod +x "$as_me.lineno" || |
450 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
451 |
{ (exit 1); exit 1; }; } |
452 |
|
453 |
# Don't try to exec as it changes $[0], causing all sort of problems |
454 |
# (the dirname of $[0] is not the place where we might find the |
455 |
# original and so on. Autoconf is especially sensitive to this). |
456 |
. "./$as_me.lineno" |
457 |
# Exit status is that of the last command. |
458 |
exit |
459 |
} |
460 |
|
461 |
|
462 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
463 |
as_dirname=dirname |
464 |
else |
465 |
as_dirname=false |
466 |
fi |
467 |
|
468 |
ECHO_C= ECHO_N= ECHO_T= |
469 |
case `echo -n x` in |
470 |
-n*) |
471 |
case `echo 'x\c'` in |
472 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
473 |
*) ECHO_C='\c';; |
474 |
esac;; |
475 |
*) |
476 |
ECHO_N='-n';; |
477 |
esac |
478 |
|
479 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
480 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
481 |
as_expr=expr |
482 |
else |
483 |
as_expr=false |
484 |
fi |
485 |
|
486 |
rm -f conf$$ conf$$.exe conf$$.file |
487 |
if test -d conf$$.dir; then |
488 |
rm -f conf$$.dir/conf$$.file |
489 |
else |
490 |
rm -f conf$$.dir |
491 |
mkdir conf$$.dir |
492 |
fi |
493 |
echo >conf$$.file |
494 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
495 |
as_ln_s='ln -s' |
496 |
# ... but there are two gotchas: |
497 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
498 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
499 |
# In both cases, we have to default to `cp -p'. |
500 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
501 |
as_ln_s='cp -p' |
502 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
503 |
as_ln_s=ln |
504 |
else |
505 |
as_ln_s='cp -p' |
506 |
fi |
507 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
508 |
rmdir conf$$.dir 2>/dev/null |
509 |
|
510 |
if mkdir -p . 2>/dev/null; then |
511 |
as_mkdir_p=: |
512 |
else |
513 |
test -d ./-p && rmdir ./-p |
514 |
as_mkdir_p=false |
515 |
fi |
516 |
|
517 |
# Find out whether ``test -x'' works. Don't use a zero-byte file, as |
518 |
# systems may use methods other than mode bits to determine executability. |
519 |
cat >conf$$.file <<_ASEOF |
520 |
#! /bin/sh |
521 |
exit 0 |
522 |
_ASEOF |
523 |
chmod +x conf$$.file |
524 |
if test -x conf$$.file >/dev/null 2>&1; then |
525 |
as_executable_p="test -x" |
526 |
else |
527 |
as_executable_p=: |
528 |
fi |
529 |
rm -f conf$$.file |
530 |
|
531 |
# Sed expression to map a string onto a valid CPP name. |
532 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
533 |
|
534 |
# Sed expression to map a string onto a valid variable name. |
535 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
536 |
|
537 |
|
538 |
|
539 |
exec 7<&0 </dev/null 6>&1 |
540 |
|
541 |
# Name of the host. |
542 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
543 |
# so uname gets run too. |
544 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
545 |
|
546 |
# |
547 |
# Initializations. |
548 |
# |
549 |
ac_default_prefix=/usr/local |
550 |
ac_clean_files= |
551 |
ac_config_libobj_dir=. |
552 |
LIBOBJS= |
553 |
cross_compiling=no |
554 |
subdirs= |
555 |
MFLAGS= |
556 |
MAKEFLAGS= |
557 |
SHELL=${CONFIG_SHELL-/bin/sh} |
558 |
|
559 |
# Identity of this package. |
560 |
PACKAGE_NAME='ircd-hybrid' |
561 |
PACKAGE_TARNAME='ircd-hybrid' |
562 |
PACKAGE_VERSION='7.2.2' |
563 |
PACKAGE_STRING='ircd-hybrid 7.2.2' |
564 |
PACKAGE_BUGREPORT='' |
565 |
|
566 |
ac_default_prefix=/usr/local/ircd |
567 |
# Factoring default headers for most tests. |
568 |
ac_includes_default="\ |
569 |
#include <stdio.h> |
570 |
#if HAVE_SYS_TYPES_H |
571 |
# include <sys/types.h> |
572 |
#endif |
573 |
#if HAVE_SYS_STAT_H |
574 |
# include <sys/stat.h> |
575 |
#endif |
576 |
#if STDC_HEADERS |
577 |
# include <stdlib.h> |
578 |
# include <stddef.h> |
579 |
#else |
580 |
# if HAVE_STDLIB_H |
581 |
# include <stdlib.h> |
582 |
# endif |
583 |
#endif |
584 |
#if HAVE_STRING_H |
585 |
# if !STDC_HEADERS && HAVE_MEMORY_H |
586 |
# include <memory.h> |
587 |
# endif |
588 |
# include <string.h> |
589 |
#endif |
590 |
#if HAVE_STRINGS_H |
591 |
# include <strings.h> |
592 |
#endif |
593 |
#if HAVE_INTTYPES_H |
594 |
# include <inttypes.h> |
595 |
#endif |
596 |
#if HAVE_STDINT_H |
597 |
# include <stdint.h> |
598 |
#endif |
599 |
#if HAVE_UNISTD_H |
600 |
# include <unistd.h> |
601 |
#endif" |
602 |
|
603 |
ac_subst_vars='SHELL |
604 |
PATH_SEPARATOR |
605 |
PACKAGE_NAME |
606 |
PACKAGE_TARNAME |
607 |
PACKAGE_VERSION |
608 |
PACKAGE_STRING |
609 |
PACKAGE_BUGREPORT |
610 |
exec_prefix |
611 |
prefix |
612 |
program_transform_name |
613 |
bindir |
614 |
sbindir |
615 |
libexecdir |
616 |
datarootdir |
617 |
datadir |
618 |
sysconfdir |
619 |
sharedstatedir |
620 |
localstatedir |
621 |
includedir |
622 |
oldincludedir |
623 |
docdir |
624 |
infodir |
625 |
htmldir |
626 |
dvidir |
627 |
pdfdir |
628 |
psdir |
629 |
libdir |
630 |
localedir |
631 |
mandir |
632 |
DEFS |
633 |
ECHO_C |
634 |
ECHO_N |
635 |
ECHO_T |
636 |
LIBS |
637 |
build_alias |
638 |
host_alias |
639 |
target_alias |
640 |
CC |
641 |
CFLAGS |
642 |
LDFLAGS |
643 |
CPPFLAGS |
644 |
ac_ct_CC |
645 |
EXEEXT |
646 |
OBJEXT |
647 |
MKDEP |
648 |
MAKEDEPEND |
649 |
STDOUT |
650 |
CPP |
651 |
GREP |
652 |
EGREP |
653 |
SET_MAKE |
654 |
INSTALL_PROGRAM |
655 |
INSTALL_SCRIPT |
656 |
INSTALL_DATA |
657 |
RM |
658 |
CP |
659 |
MV |
660 |
LN |
661 |
SED |
662 |
AR |
663 |
LD |
664 |
TEST |
665 |
INET_MISC |
666 |
CRYPT_C |
667 |
CRYPT_LIB |
668 |
SNPRINTF_C |
669 |
ENCSPEED |
670 |
ZLIB_LD |
671 |
SELECT_TYPE |
672 |
CLOBBER |
673 |
BALLOC_C |
674 |
EXAMPLE_CONF |
675 |
MODULES_LIBS |
676 |
MOD_TARGET |
677 |
SSL_SRCS_ENABLE |
678 |
SSL_INCLUDES |
679 |
SSL_LIBS |
680 |
PICFLAGS |
681 |
IRC_CFLAGS |
682 |
SEDOBJ |
683 |
DYNLINK_C |
684 |
LIBOBJS |
685 |
LTLIBOBJS' |
686 |
ac_subst_files='' |
687 |
ac_precious_vars='build_alias |
688 |
host_alias |
689 |
target_alias |
690 |
CC |
691 |
CFLAGS |
692 |
LDFLAGS |
693 |
CPPFLAGS |
694 |
CPP' |
695 |
|
696 |
|
697 |
# Initialize some variables set by options. |
698 |
ac_init_help= |
699 |
ac_init_version=false |
700 |
# The variables have the same names as the options, with |
701 |
# dashes changed to underlines. |
702 |
cache_file=/dev/null |
703 |
exec_prefix=NONE |
704 |
no_create= |
705 |
no_recursion= |
706 |
prefix=NONE |
707 |
program_prefix=NONE |
708 |
program_suffix=NONE |
709 |
program_transform_name=s,x,x, |
710 |
silent= |
711 |
site= |
712 |
srcdir= |
713 |
verbose= |
714 |
x_includes=NONE |
715 |
x_libraries=NONE |
716 |
|
717 |
# Installation directory options. |
718 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
719 |
# and all the variables that are supposed to be based on exec_prefix |
720 |
# by default will actually change. |
721 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
722 |
# (The list follows the same order as the GNU Coding Standards.) |
723 |
bindir='${exec_prefix}/bin' |
724 |
sbindir='${exec_prefix}/sbin' |
725 |
libexecdir='${exec_prefix}/libexec' |
726 |
datarootdir='${prefix}/share' |
727 |
datadir='${datarootdir}' |
728 |
sysconfdir='${prefix}/etc' |
729 |
sharedstatedir='${prefix}/com' |
730 |
localstatedir='${prefix}/var' |
731 |
includedir='${prefix}/include' |
732 |
oldincludedir='/usr/include' |
733 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
734 |
infodir='${datarootdir}/info' |
735 |
htmldir='${docdir}' |
736 |
dvidir='${docdir}' |
737 |
pdfdir='${docdir}' |
738 |
psdir='${docdir}' |
739 |
libdir='${exec_prefix}/lib' |
740 |
localedir='${datarootdir}/locale' |
741 |
mandir='${datarootdir}/man' |
742 |
|
743 |
ac_prev= |
744 |
ac_dashdash= |
745 |
for ac_option |
746 |
do |
747 |
# If the previous option needs an argument, assign it. |
748 |
if test -n "$ac_prev"; then |
749 |
eval $ac_prev=\$ac_option |
750 |
ac_prev= |
751 |
continue |
752 |
fi |
753 |
|
754 |
case $ac_option in |
755 |
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
756 |
*) ac_optarg=yes ;; |
757 |
esac |
758 |
|
759 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
760 |
|
761 |
case $ac_dashdash$ac_option in |
762 |
--) |
763 |
ac_dashdash=yes ;; |
764 |
|
765 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
766 |
ac_prev=bindir ;; |
767 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
768 |
bindir=$ac_optarg ;; |
769 |
|
770 |
-build | --build | --buil | --bui | --bu) |
771 |
ac_prev=build_alias ;; |
772 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
773 |
build_alias=$ac_optarg ;; |
774 |
|
775 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
776 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
777 |
ac_prev=cache_file ;; |
778 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
779 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
780 |
cache_file=$ac_optarg ;; |
781 |
|
782 |
--config-cache | -C) |
783 |
cache_file=config.cache ;; |
784 |
|
785 |
-datadir | --datadir | --datadi | --datad) |
786 |
ac_prev=datadir ;; |
787 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
788 |
datadir=$ac_optarg ;; |
789 |
|
790 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
791 |
| --dataroo | --dataro | --datar) |
792 |
ac_prev=datarootdir ;; |
793 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
794 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
795 |
datarootdir=$ac_optarg ;; |
796 |
|
797 |
-disable-* | --disable-*) |
798 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
799 |
# Reject names that are not valid shell variable names. |
800 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
801 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
802 |
{ (exit 1); exit 1; }; } |
803 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
804 |
eval enable_$ac_feature=no ;; |
805 |
|
806 |
-docdir | --docdir | --docdi | --doc | --do) |
807 |
ac_prev=docdir ;; |
808 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
809 |
docdir=$ac_optarg ;; |
810 |
|
811 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
812 |
ac_prev=dvidir ;; |
813 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
814 |
dvidir=$ac_optarg ;; |
815 |
|
816 |
-enable-* | --enable-*) |
817 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
818 |
# Reject names that are not valid shell variable names. |
819 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
820 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
821 |
{ (exit 1); exit 1; }; } |
822 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
823 |
eval enable_$ac_feature=\$ac_optarg ;; |
824 |
|
825 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
826 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
827 |
| --exec | --exe | --ex) |
828 |
ac_prev=exec_prefix ;; |
829 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
830 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
831 |
| --exec=* | --exe=* | --ex=*) |
832 |
exec_prefix=$ac_optarg ;; |
833 |
|
834 |
-gas | --gas | --ga | --g) |
835 |
# Obsolete; use --with-gas. |
836 |
with_gas=yes ;; |
837 |
|
838 |
-help | --help | --hel | --he | -h) |
839 |
ac_init_help=long ;; |
840 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
841 |
ac_init_help=recursive ;; |
842 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
843 |
ac_init_help=short ;; |
844 |
|
845 |
-host | --host | --hos | --ho) |
846 |
ac_prev=host_alias ;; |
847 |
-host=* | --host=* | --hos=* | --ho=*) |
848 |
host_alias=$ac_optarg ;; |
849 |
|
850 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
851 |
ac_prev=htmldir ;; |
852 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
853 |
| --ht=*) |
854 |
htmldir=$ac_optarg ;; |
855 |
|
856 |
-includedir | --includedir | --includedi | --included | --include \ |
857 |
| --includ | --inclu | --incl | --inc) |
858 |
ac_prev=includedir ;; |
859 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
860 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
861 |
includedir=$ac_optarg ;; |
862 |
|
863 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
864 |
ac_prev=infodir ;; |
865 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
866 |
infodir=$ac_optarg ;; |
867 |
|
868 |
-libdir | --libdir | --libdi | --libd) |
869 |
ac_prev=libdir ;; |
870 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
871 |
libdir=$ac_optarg ;; |
872 |
|
873 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
874 |
| --libexe | --libex | --libe) |
875 |
ac_prev=libexecdir ;; |
876 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
877 |
| --libexe=* | --libex=* | --libe=*) |
878 |
libexecdir=$ac_optarg ;; |
879 |
|
880 |
-localedir | --localedir | --localedi | --localed | --locale) |
881 |
ac_prev=localedir ;; |
882 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
883 |
localedir=$ac_optarg ;; |
884 |
|
885 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
886 |
| --localstate | --localstat | --localsta | --localst | --locals) |
887 |
ac_prev=localstatedir ;; |
888 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
889 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
890 |
localstatedir=$ac_optarg ;; |
891 |
|
892 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
893 |
ac_prev=mandir ;; |
894 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
895 |
mandir=$ac_optarg ;; |
896 |
|
897 |
-nfp | --nfp | --nf) |
898 |
# Obsolete; use --without-fp. |
899 |
with_fp=no ;; |
900 |
|
901 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
902 |
| --no-cr | --no-c | -n) |
903 |
no_create=yes ;; |
904 |
|
905 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
906 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
907 |
no_recursion=yes ;; |
908 |
|
909 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
910 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
911 |
| --oldin | --oldi | --old | --ol | --o) |
912 |
ac_prev=oldincludedir ;; |
913 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
914 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
915 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
916 |
oldincludedir=$ac_optarg ;; |
917 |
|
918 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
919 |
ac_prev=prefix ;; |
920 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
921 |
prefix=$ac_optarg ;; |
922 |
|
923 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
924 |
| --program-pre | --program-pr | --program-p) |
925 |
ac_prev=program_prefix ;; |
926 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
927 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
928 |
program_prefix=$ac_optarg ;; |
929 |
|
930 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
931 |
| --program-suf | --program-su | --program-s) |
932 |
ac_prev=program_suffix ;; |
933 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
934 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
935 |
program_suffix=$ac_optarg ;; |
936 |
|
937 |
-program-transform-name | --program-transform-name \ |
938 |
| --program-transform-nam | --program-transform-na \ |
939 |
| --program-transform-n | --program-transform- \ |
940 |
| --program-transform | --program-transfor \ |
941 |
| --program-transfo | --program-transf \ |
942 |
| --program-trans | --program-tran \ |
943 |
| --progr-tra | --program-tr | --program-t) |
944 |
ac_prev=program_transform_name ;; |
945 |
-program-transform-name=* | --program-transform-name=* \ |
946 |
| --program-transform-nam=* | --program-transform-na=* \ |
947 |
| --program-transform-n=* | --program-transform-=* \ |
948 |
| --program-transform=* | --program-transfor=* \ |
949 |
| --program-transfo=* | --program-transf=* \ |
950 |
| --program-trans=* | --program-tran=* \ |
951 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
952 |
program_transform_name=$ac_optarg ;; |
953 |
|
954 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
955 |
ac_prev=pdfdir ;; |
956 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
957 |
pdfdir=$ac_optarg ;; |
958 |
|
959 |
-psdir | --psdir | --psdi | --psd | --ps) |
960 |
ac_prev=psdir ;; |
961 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
962 |
psdir=$ac_optarg ;; |
963 |
|
964 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
965 |
| -silent | --silent | --silen | --sile | --sil) |
966 |
silent=yes ;; |
967 |
|
968 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
969 |
ac_prev=sbindir ;; |
970 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
971 |
| --sbi=* | --sb=*) |
972 |
sbindir=$ac_optarg ;; |
973 |
|
974 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
975 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
976 |
| --sharedst | --shareds | --shared | --share | --shar \ |
977 |
| --sha | --sh) |
978 |
ac_prev=sharedstatedir ;; |
979 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
980 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
981 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
982 |
| --sha=* | --sh=*) |
983 |
sharedstatedir=$ac_optarg ;; |
984 |
|
985 |
-site | --site | --sit) |
986 |
ac_prev=site ;; |
987 |
-site=* | --site=* | --sit=*) |
988 |
site=$ac_optarg ;; |
989 |
|
990 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
991 |
ac_prev=srcdir ;; |
992 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
993 |
srcdir=$ac_optarg ;; |
994 |
|
995 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
996 |
| --syscon | --sysco | --sysc | --sys | --sy) |
997 |
ac_prev=sysconfdir ;; |
998 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
999 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1000 |
sysconfdir=$ac_optarg ;; |
1001 |
|
1002 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
1003 |
ac_prev=target_alias ;; |
1004 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1005 |
target_alias=$ac_optarg ;; |
1006 |
|
1007 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1008 |
verbose=yes ;; |
1009 |
|
1010 |
-version | --version | --versio | --versi | --vers | -V) |
1011 |
ac_init_version=: ;; |
1012 |
|
1013 |
-with-* | --with-*) |
1014 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1015 |
# Reject names that are not valid shell variable names. |
1016 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1017 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
1018 |
{ (exit 1); exit 1; }; } |
1019 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
1020 |
eval with_$ac_package=\$ac_optarg ;; |
1021 |
|
1022 |
-without-* | --without-*) |
1023 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1024 |
# Reject names that are not valid shell variable names. |
1025 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1026 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
1027 |
{ (exit 1); exit 1; }; } |
1028 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
1029 |
eval with_$ac_package=no ;; |
1030 |
|
1031 |
--x) |
1032 |
# Obsolete; use --with-x. |
1033 |
with_x=yes ;; |
1034 |
|
1035 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1036 |
| --x-incl | --x-inc | --x-in | --x-i) |
1037 |
ac_prev=x_includes ;; |
1038 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1039 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1040 |
x_includes=$ac_optarg ;; |
1041 |
|
1042 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1043 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1044 |
ac_prev=x_libraries ;; |
1045 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1046 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1047 |
x_libraries=$ac_optarg ;; |
1048 |
|
1049 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
1050 |
Try \`$0 --help' for more information." >&2 |
1051 |
{ (exit 1); exit 1; }; } |
1052 |
;; |
1053 |
|
1054 |
*=*) |
1055 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1056 |
# Reject names that are not valid shell variable names. |
1057 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1058 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1059 |
{ (exit 1); exit 1; }; } |
1060 |
eval $ac_envvar=\$ac_optarg |
1061 |
export $ac_envvar ;; |
1062 |
|
1063 |
*) |
1064 |
# FIXME: should be removed in autoconf 3.0. |
1065 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1066 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1067 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1068 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1069 |
;; |
1070 |
|
1071 |
esac |
1072 |
done |
1073 |
|
1074 |
if test -n "$ac_prev"; then |
1075 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1076 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
1077 |
{ (exit 1); exit 1; }; } |
1078 |
fi |
1079 |
|
1080 |
# Be sure to have absolute directory names. |
1081 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1082 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1083 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1084 |
libdir localedir mandir |
1085 |
do |
1086 |
eval ac_val=\$$ac_var |
1087 |
case $ac_val in |
1088 |
[\\/$]* | ?:[\\/]* ) continue;; |
1089 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1090 |
esac |
1091 |
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1092 |
{ (exit 1); exit 1; }; } |
1093 |
done |
1094 |
|
1095 |
# There might be people who depend on the old broken behavior: `$host' |
1096 |
# used to hold the argument of --host etc. |
1097 |
# FIXME: To remove some day. |
1098 |
build=$build_alias |
1099 |
host=$host_alias |
1100 |
target=$target_alias |
1101 |
|
1102 |
# FIXME: To remove some day. |
1103 |
if test "x$host_alias" != x; then |
1104 |
if test "x$build_alias" = x; then |
1105 |
cross_compiling=maybe |
1106 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1107 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
1108 |
elif test "x$build_alias" != "x$host_alias"; then |
1109 |
cross_compiling=yes |
1110 |
fi |
1111 |
fi |
1112 |
|
1113 |
ac_tool_prefix= |
1114 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1115 |
|
1116 |
test "$silent" = yes && exec 6>/dev/null |
1117 |
|
1118 |
|
1119 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1120 |
ac_ls_di=`ls -di .` && |
1121 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1122 |
{ echo "$as_me: error: Working directory cannot be determined" >&2 |
1123 |
{ (exit 1); exit 1; }; } |
1124 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1125 |
{ echo "$as_me: error: pwd does not report name of working directory" >&2 |
1126 |
{ (exit 1); exit 1; }; } |
1127 |
|
1128 |
|
1129 |
# Find the source files, if location was not specified. |
1130 |
if test -z "$srcdir"; then |
1131 |
ac_srcdir_defaulted=yes |
1132 |
# Try the directory containing this script, then the parent directory. |
1133 |
ac_confdir=`$as_dirname -- "$0" || |
1134 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1135 |
X"$0" : 'X\(//\)[^/]' \| \ |
1136 |
X"$0" : 'X\(//\)$' \| \ |
1137 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1138 |
echo X"$0" | |
1139 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1140 |
s//\1/ |
1141 |
q |
1142 |
} |
1143 |
/^X\(\/\/\)[^/].*/{ |
1144 |
s//\1/ |
1145 |
q |
1146 |
} |
1147 |
/^X\(\/\/\)$/{ |
1148 |
s//\1/ |
1149 |
q |
1150 |
} |
1151 |
/^X\(\/\).*/{ |
1152 |
s//\1/ |
1153 |
q |
1154 |
} |
1155 |
s/.*/./; q'` |
1156 |
srcdir=$ac_confdir |
1157 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1158 |
srcdir=.. |
1159 |
fi |
1160 |
else |
1161 |
ac_srcdir_defaulted=no |
1162 |
fi |
1163 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1164 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1165 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1166 |
{ (exit 1); exit 1; }; } |
1167 |
fi |
1168 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1169 |
ac_abs_confdir=`( |
1170 |
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
1171 |
{ (exit 1); exit 1; }; } |
1172 |
pwd)` |
1173 |
# When building in place, set srcdir=. |
1174 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1175 |
srcdir=. |
1176 |
fi |
1177 |
# Remove unnecessary trailing slashes from srcdir. |
1178 |
# Double slashes in file names in object file debugging info |
1179 |
# mess up M-x gdb in Emacs. |
1180 |
case $srcdir in |
1181 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1182 |
esac |
1183 |
for ac_var in $ac_precious_vars; do |
1184 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1185 |
eval ac_env_${ac_var}_value=\$${ac_var} |
1186 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1187 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1188 |
done |
1189 |
|
1190 |
# |
1191 |
# Report the --help message. |
1192 |
# |
1193 |
if test "$ac_init_help" = "long"; then |
1194 |
# Omit some internal or obsolete options to make the list less imposing. |
1195 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1196 |
cat <<_ACEOF |
1197 |
\`configure' configures ircd-hybrid 7.2.2 to adapt to many kinds of systems. |
1198 |
|
1199 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
1200 |
|
1201 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1202 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
1203 |
|
1204 |
Defaults for the options are specified in brackets. |
1205 |
|
1206 |
Configuration: |
1207 |
-h, --help display this help and exit |
1208 |
--help=short display options specific to this package |
1209 |
--help=recursive display the short help of all the included packages |
1210 |
-V, --version display version information and exit |
1211 |
-q, --quiet, --silent do not print \`checking...' messages |
1212 |
--cache-file=FILE cache test results in FILE [disabled] |
1213 |
-C, --config-cache alias for \`--cache-file=config.cache' |
1214 |
-n, --no-create do not create output files |
1215 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1216 |
|
1217 |
Installation directories: |
1218 |
--prefix=PREFIX install architecture-independent files in PREFIX |
1219 |
[$ac_default_prefix] |
1220 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1221 |
[PREFIX] |
1222 |
|
1223 |
By default, \`make install' will install all the files in |
1224 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1225 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1226 |
for instance \`--prefix=\$HOME'. |
1227 |
|
1228 |
For better control, use the options below. |
1229 |
|
1230 |
Fine tuning of the installation directories: |
1231 |
--bindir=DIR user executables [EPREFIX/bin] |
1232 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1233 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1234 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1235 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1236 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1237 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1238 |
--includedir=DIR C header files [PREFIX/include] |
1239 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1240 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1241 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1242 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1243 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1244 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1245 |
--docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid] |
1246 |
--htmldir=DIR html documentation [DOCDIR] |
1247 |
--dvidir=DIR dvi documentation [DOCDIR] |
1248 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1249 |
--psdir=DIR ps documentation [DOCDIR] |
1250 |
_ACEOF |
1251 |
|
1252 |
cat <<\_ACEOF |
1253 |
_ACEOF |
1254 |
fi |
1255 |
|
1256 |
if test -n "$ac_init_help"; then |
1257 |
case $ac_init_help in |
1258 |
short | recursive ) echo "Configuration of ircd-hybrid 7.2.2:";; |
1259 |
esac |
1260 |
cat <<\_ACEOF |
1261 |
|
1262 |
Optional Features: |
1263 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1264 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1265 |
--enable-openssl=DIR Enable OpenSSL support (DIR optional). |
1266 |
--disable-openssl Disable OpenSSL support. |
1267 |
--disable-zlib Disable ziplinks support |
1268 |
--enable-poll Force poll() usage. |
1269 |
--enable-select Force select() usage. |
1270 |
--enable-kqueue Force kqueue() usage. |
1271 |
--enable-devpoll Force usage of /dev/poll. |
1272 |
--enable-rtsigio Enable SIGIO with RT Signals (Linux only) |
1273 |
--enable-epoll Enable Linux epoll support. |
1274 |
--enable-clobber Don't preserve old binaries on make install |
1275 |
--enable-assert Enable assert(). |
1276 |
--enable-profile Enable profiling |
1277 |
--enable-efence Enable ElectricFence (memory debugger). |
1278 |
--disable-block-alloc Disable the block allocator (Only useful with |
1279 |
ElectricFence) |
1280 |
--enable-warnings Enable all sorts of warnings for debugging. |
1281 |
--enable-small-net Enable small network support. |
1282 |
--enable-efnet For IRCDs running on EFnet. |
1283 |
--disable-gline-voting Disable G-line voting. |
1284 |
--enable-halfops Enable halfops support. |
1285 |
--enable-syslog="EVENTS" |
1286 |
Enable syslog for events: kill, squit, connect, |
1287 |
users, oper, space separated in quotes (default: |
1288 |
disabled) |
1289 |
--disable-shared-modules |
1290 |
Disable shared modules. |
1291 |
|
1292 |
Optional Packages: |
1293 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1294 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1295 |
--with-zlib-path=DIR Path to libz.so for ziplinks support. |
1296 |
--with-syslog-facility=LOG |
1297 |
Define the log facility to use with ircd's syslog |
1298 |
output (default LOG_LOCAL4) |
1299 |
--with-nicklen=LENGTH Set the nick length to LENGTH (default 9) |
1300 |
--with-topiclen=NUMBER Set the max topic length to NUMBER (default 160, max |
1301 |
390) |
1302 |
|
1303 |
Some influential environment variables: |
1304 |
CC C compiler command |
1305 |
CFLAGS C compiler flags |
1306 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1307 |
nonstandard directory <lib dir> |
1308 |
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1309 |
you have headers in a nonstandard directory <include dir> |
1310 |
CPP C preprocessor |
1311 |
|
1312 |
Use these variables to override the choices made by `configure' or to help |
1313 |
it to find libraries and programs with nonstandard names/locations. |
1314 |
|
1315 |
_ACEOF |
1316 |
ac_status=$? |
1317 |
fi |
1318 |
|
1319 |
if test "$ac_init_help" = "recursive"; then |
1320 |
# If there are subdirs, report their specific --help. |
1321 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1322 |
test -d "$ac_dir" || continue |
1323 |
ac_builddir=. |
1324 |
|
1325 |
case "$ac_dir" in |
1326 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1327 |
*) |
1328 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1329 |
# A ".." for each directory in $ac_dir_suffix. |
1330 |
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1331 |
case $ac_top_builddir_sub in |
1332 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1333 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1334 |
esac ;; |
1335 |
esac |
1336 |
ac_abs_top_builddir=$ac_pwd |
1337 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1338 |
# for backward compatibility: |
1339 |
ac_top_builddir=$ac_top_build_prefix |
1340 |
|
1341 |
case $srcdir in |
1342 |
.) # We are building in place. |
1343 |
ac_srcdir=. |
1344 |
ac_top_srcdir=$ac_top_builddir_sub |
1345 |
ac_abs_top_srcdir=$ac_pwd ;; |
1346 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1347 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1348 |
ac_top_srcdir=$srcdir |
1349 |
ac_abs_top_srcdir=$srcdir ;; |
1350 |
*) # Relative name. |
1351 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1352 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1353 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1354 |
esac |
1355 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1356 |
|
1357 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1358 |
# Check for guested configure. |
1359 |
if test -f "$ac_srcdir/configure.gnu"; then |
1360 |
echo && |
1361 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1362 |
elif test -f "$ac_srcdir/configure"; then |
1363 |
echo && |
1364 |
$SHELL "$ac_srcdir/configure" --help=recursive |
1365 |
else |
1366 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1367 |
fi || ac_status=$? |
1368 |
cd "$ac_pwd" || { ac_status=$?; break; } |
1369 |
done |
1370 |
fi |
1371 |
|
1372 |
test -n "$ac_init_help" && exit $ac_status |
1373 |
if $ac_init_version; then |
1374 |
cat <<\_ACEOF |
1375 |
ircd-hybrid configure 7.2.2 |
1376 |
generated by GNU Autoconf 2.60 |
1377 |
|
1378 |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1379 |
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
1380 |
This configure script is free software; the Free Software Foundation |
1381 |
gives unlimited permission to copy, distribute and modify it. |
1382 |
|
1383 |
$Id$ |
1384 |
_ACEOF |
1385 |
exit |
1386 |
fi |
1387 |
cat >config.log <<_ACEOF |
1388 |
This file contains any messages produced by compilers while |
1389 |
running configure, to aid debugging if configure makes a mistake. |
1390 |
|
1391 |
It was created by ircd-hybrid $as_me 7.2.2, which was |
1392 |
generated by GNU Autoconf 2.60. Invocation command line was |
1393 |
|
1394 |
$ $0 $@ |
1395 |
|
1396 |
_ACEOF |
1397 |
exec 5>>config.log |
1398 |
{ |
1399 |
cat <<_ASUNAME |
1400 |
## --------- ## |
1401 |
## Platform. ## |
1402 |
## --------- ## |
1403 |
|
1404 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1405 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1406 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1407 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1408 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1409 |
|
1410 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1411 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1412 |
|
1413 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1414 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1415 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1416 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1417 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1418 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1419 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1420 |
|
1421 |
_ASUNAME |
1422 |
|
1423 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1424 |
for as_dir in $PATH |
1425 |
do |
1426 |
IFS=$as_save_IFS |
1427 |
test -z "$as_dir" && as_dir=. |
1428 |
echo "PATH: $as_dir" |
1429 |
done |
1430 |
IFS=$as_save_IFS |
1431 |
|
1432 |
} >&5 |
1433 |
|
1434 |
cat >&5 <<_ACEOF |
1435 |
|
1436 |
|
1437 |
## ----------- ## |
1438 |
## Core tests. ## |
1439 |
## ----------- ## |
1440 |
|
1441 |
_ACEOF |
1442 |
|
1443 |
|
1444 |
# Keep a trace of the command line. |
1445 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1446 |
# Strip out --silent because we don't want to record it for future runs. |
1447 |
# Also quote any args containing shell meta-characters. |
1448 |
# Make two passes to allow for proper duplicate-argument suppression. |
1449 |
ac_configure_args= |
1450 |
ac_configure_args0= |
1451 |
ac_configure_args1= |
1452 |
ac_must_keep_next=false |
1453 |
for ac_pass in 1 2 |
1454 |
do |
1455 |
for ac_arg |
1456 |
do |
1457 |
case $ac_arg in |
1458 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1459 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1460 |
| -silent | --silent | --silen | --sile | --sil) |
1461 |
continue ;; |
1462 |
*\'*) |
1463 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1464 |
esac |
1465 |
case $ac_pass in |
1466 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1467 |
2) |
1468 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1469 |
if test $ac_must_keep_next = true; then |
1470 |
ac_must_keep_next=false # Got value, back to normal. |
1471 |
else |
1472 |
case $ac_arg in |
1473 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1474 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1475 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1476 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1477 |
case "$ac_configure_args0 " in |
1478 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1479 |
esac |
1480 |
;; |
1481 |
-* ) ac_must_keep_next=true ;; |
1482 |
esac |
1483 |
fi |
1484 |
ac_configure_args="$ac_configure_args '$ac_arg'" |
1485 |
;; |
1486 |
esac |
1487 |
done |
1488 |
done |
1489 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1490 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1491 |
|
1492 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1493 |
# config.log. We remove comments because anyway the quotes in there |
1494 |
# would cause problems or look ugly. |
1495 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
1496 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1497 |
trap 'exit_status=$? |
1498 |
# Save into config.log some information that might help in debugging. |
1499 |
{ |
1500 |
echo |
1501 |
|
1502 |
cat <<\_ASBOX |
1503 |
## ---------------- ## |
1504 |
## Cache variables. ## |
1505 |
## ---------------- ## |
1506 |
_ASBOX |
1507 |
echo |
1508 |
# The following way of writing the cache mishandles newlines in values, |
1509 |
( |
1510 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1511 |
eval ac_val=\$$ac_var |
1512 |
case $ac_val in #( |
1513 |
*${as_nl}*) |
1514 |
case $ac_var in #( |
1515 |
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1516 |
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1517 |
esac |
1518 |
case $ac_var in #( |
1519 |
_ | IFS | as_nl) ;; #( |
1520 |
*) $as_unset $ac_var ;; |
1521 |
esac ;; |
1522 |
esac |
1523 |
done |
1524 |
(set) 2>&1 | |
1525 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1526 |
*${as_nl}ac_space=\ *) |
1527 |
sed -n \ |
1528 |
"s/'\''/'\''\\\\'\'''\''/g; |
1529 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1530 |
;; #( |
1531 |
*) |
1532 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1533 |
;; |
1534 |
esac | |
1535 |
sort |
1536 |
) |
1537 |
echo |
1538 |
|
1539 |
cat <<\_ASBOX |
1540 |
## ----------------- ## |
1541 |
## Output variables. ## |
1542 |
## ----------------- ## |
1543 |
_ASBOX |
1544 |
echo |
1545 |
for ac_var in $ac_subst_vars |
1546 |
do |
1547 |
eval ac_val=\$$ac_var |
1548 |
case $ac_val in |
1549 |
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1550 |
esac |
1551 |
echo "$ac_var='\''$ac_val'\''" |
1552 |
done | sort |
1553 |
echo |
1554 |
|
1555 |
if test -n "$ac_subst_files"; then |
1556 |
cat <<\_ASBOX |
1557 |
## ------------------- ## |
1558 |
## File substitutions. ## |
1559 |
## ------------------- ## |
1560 |
_ASBOX |
1561 |
echo |
1562 |
for ac_var in $ac_subst_files |
1563 |
do |
1564 |
eval ac_val=\$$ac_var |
1565 |
case $ac_val in |
1566 |
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1567 |
esac |
1568 |
echo "$ac_var='\''$ac_val'\''" |
1569 |
done | sort |
1570 |
echo |
1571 |
fi |
1572 |
|
1573 |
if test -s confdefs.h; then |
1574 |
cat <<\_ASBOX |
1575 |
## ----------- ## |
1576 |
## confdefs.h. ## |
1577 |
## ----------- ## |
1578 |
_ASBOX |
1579 |
echo |
1580 |
cat confdefs.h |
1581 |
echo |
1582 |
fi |
1583 |
test "$ac_signal" != 0 && |
1584 |
echo "$as_me: caught signal $ac_signal" |
1585 |
echo "$as_me: exit $exit_status" |
1586 |
} >&5 |
1587 |
rm -f core *.core core.conftest.* && |
1588 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1589 |
exit $exit_status |
1590 |
' 0 |
1591 |
for ac_signal in 1 2 13 15; do |
1592 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1593 |
done |
1594 |
ac_signal=0 |
1595 |
|
1596 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1597 |
rm -f -r conftest* confdefs.h |
1598 |
|
1599 |
# Predefined preprocessor variables. |
1600 |
|
1601 |
cat >>confdefs.h <<_ACEOF |
1602 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
1603 |
_ACEOF |
1604 |
|
1605 |
|
1606 |
cat >>confdefs.h <<_ACEOF |
1607 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1608 |
_ACEOF |
1609 |
|
1610 |
|
1611 |
cat >>confdefs.h <<_ACEOF |
1612 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
1613 |
_ACEOF |
1614 |
|
1615 |
|
1616 |
cat >>confdefs.h <<_ACEOF |
1617 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
1618 |
_ACEOF |
1619 |
|
1620 |
|
1621 |
cat >>confdefs.h <<_ACEOF |
1622 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1623 |
_ACEOF |
1624 |
|
1625 |
|
1626 |
# Let the site file select an alternate cache file if it wants to. |
1627 |
# Prefer explicitly selected file to automatically selected ones. |
1628 |
if test -n "$CONFIG_SITE"; then |
1629 |
set x "$CONFIG_SITE" |
1630 |
elif test "x$prefix" != xNONE; then |
1631 |
set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1632 |
else |
1633 |
set x "$ac_default_prefix/share/config.site" \ |
1634 |
"$ac_default_prefix/etc/config.site" |
1635 |
fi |
1636 |
shift |
1637 |
for ac_site_file |
1638 |
do |
1639 |
if test -r "$ac_site_file"; then |
1640 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1641 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
1642 |
sed 's/^/| /' "$ac_site_file" >&5 |
1643 |
. "$ac_site_file" |
1644 |
fi |
1645 |
done |
1646 |
|
1647 |
if test -r "$cache_file"; then |
1648 |
# Some versions of bash will fail to source /dev/null (special |
1649 |
# files actually), so we avoid doing that. |
1650 |
if test -f "$cache_file"; then |
1651 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1652 |
echo "$as_me: loading cache $cache_file" >&6;} |
1653 |
case $cache_file in |
1654 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
1655 |
*) . "./$cache_file";; |
1656 |
esac |
1657 |
fi |
1658 |
else |
1659 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1660 |
echo "$as_me: creating cache $cache_file" >&6;} |
1661 |
>$cache_file |
1662 |
fi |
1663 |
|
1664 |
# Check that the precious variables saved in the cache have kept the same |
1665 |
# value. |
1666 |
ac_cache_corrupted=false |
1667 |
for ac_var in $ac_precious_vars; do |
1668 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1669 |
eval ac_new_set=\$ac_env_${ac_var}_set |
1670 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1671 |
eval ac_new_val=\$ac_env_${ac_var}_value |
1672 |
case $ac_old_set,$ac_new_set in |
1673 |
set,) |
1674 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1675 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1676 |
ac_cache_corrupted=: ;; |
1677 |
,set) |
1678 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1679 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1680 |
ac_cache_corrupted=: ;; |
1681 |
,);; |
1682 |
*) |
1683 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
1684 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1685 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1686 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1687 |
echo "$as_me: former value: $ac_old_val" >&2;} |
1688 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1689 |
echo "$as_me: current value: $ac_new_val" >&2;} |
1690 |
ac_cache_corrupted=: |
1691 |
fi;; |
1692 |
esac |
1693 |
# Pass precious variables to config.status. |
1694 |
if test "$ac_new_set" = set; then |
1695 |
case $ac_new_val in |
1696 |
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1697 |
*) ac_arg=$ac_var=$ac_new_val ;; |
1698 |
esac |
1699 |
case " $ac_configure_args " in |
1700 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1701 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1702 |
esac |
1703 |
fi |
1704 |
done |
1705 |
if $ac_cache_corrupted; then |
1706 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1707 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1708 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1709 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1710 |
{ (exit 1); exit 1; }; } |
1711 |
fi |
1712 |
|
1713 |
|
1714 |
|
1715 |
|
1716 |
|
1717 |
|
1718 |
|
1719 |
|
1720 |
|
1721 |
|
1722 |
|
1723 |
|
1724 |
|
1725 |
|
1726 |
|
1727 |
|
1728 |
|
1729 |
|
1730 |
|
1731 |
|
1732 |
|
1733 |
|
1734 |
|
1735 |
|
1736 |
|
1737 |
ac_ext=c |
1738 |
ac_cpp='$CPP $CPPFLAGS' |
1739 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1740 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1741 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1742 |
|
1743 |
|
1744 |
|
1745 |
ac_config_headers="$ac_config_headers include/setup.h" |
1746 |
|
1747 |
|
1748 |
|
1749 |
|
1750 |
|
1751 |
cat >>confdefs.h <<\_ACEOF |
1752 |
#define _GNU_SOURCE 1 |
1753 |
_ACEOF |
1754 |
|
1755 |
|
1756 |
|
1757 |
OLD_CFLAGS="$CFLAGS" |
1758 |
ac_ext=c |
1759 |
ac_cpp='$CPP $CPPFLAGS' |
1760 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1761 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1762 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1763 |
if test -n "$ac_tool_prefix"; then |
1764 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1765 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1766 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1767 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1768 |
if test "${ac_cv_prog_CC+set}" = set; then |
1769 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1770 |
else |
1771 |
if test -n "$CC"; then |
1772 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1773 |
else |
1774 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1775 |
for as_dir in $PATH |
1776 |
do |
1777 |
IFS=$as_save_IFS |
1778 |
test -z "$as_dir" && as_dir=. |
1779 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1780 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1781 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1782 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1783 |
break 2 |
1784 |
fi |
1785 |
done |
1786 |
done |
1787 |
IFS=$as_save_IFS |
1788 |
|
1789 |
fi |
1790 |
fi |
1791 |
CC=$ac_cv_prog_CC |
1792 |
if test -n "$CC"; then |
1793 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
1794 |
echo "${ECHO_T}$CC" >&6; } |
1795 |
else |
1796 |
{ echo "$as_me:$LINENO: result: no" >&5 |
1797 |
echo "${ECHO_T}no" >&6; } |
1798 |
fi |
1799 |
|
1800 |
|
1801 |
fi |
1802 |
if test -z "$ac_cv_prog_CC"; then |
1803 |
ac_ct_CC=$CC |
1804 |
# Extract the first word of "gcc", so it can be a program name with args. |
1805 |
set dummy gcc; ac_word=$2 |
1806 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1807 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1808 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1809 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1810 |
else |
1811 |
if test -n "$ac_ct_CC"; then |
1812 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1813 |
else |
1814 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1815 |
for as_dir in $PATH |
1816 |
do |
1817 |
IFS=$as_save_IFS |
1818 |
test -z "$as_dir" && as_dir=. |
1819 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1820 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1821 |
ac_cv_prog_ac_ct_CC="gcc" |
1822 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1823 |
break 2 |
1824 |
fi |
1825 |
done |
1826 |
done |
1827 |
IFS=$as_save_IFS |
1828 |
|
1829 |
fi |
1830 |
fi |
1831 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1832 |
if test -n "$ac_ct_CC"; then |
1833 |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1834 |
echo "${ECHO_T}$ac_ct_CC" >&6; } |
1835 |
else |
1836 |
{ echo "$as_me:$LINENO: result: no" >&5 |
1837 |
echo "${ECHO_T}no" >&6; } |
1838 |
fi |
1839 |
|
1840 |
if test "x$ac_ct_CC" = x; then |
1841 |
CC="" |
1842 |
else |
1843 |
case $cross_compiling:$ac_tool_warned in |
1844 |
yes:) |
1845 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
1846 |
whose name does not start with the host triplet. If you think this |
1847 |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
1848 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
1849 |
whose name does not start with the host triplet. If you think this |
1850 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
1851 |
ac_tool_warned=yes ;; |
1852 |
esac |
1853 |
CC=$ac_ct_CC |
1854 |
fi |
1855 |
else |
1856 |
CC="$ac_cv_prog_CC" |
1857 |
fi |
1858 |
|
1859 |
if test -z "$CC"; then |
1860 |
if test -n "$ac_tool_prefix"; then |
1861 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1862 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1863 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1864 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1865 |
if test "${ac_cv_prog_CC+set}" = set; then |
1866 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1867 |
else |
1868 |
if test -n "$CC"; then |
1869 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1870 |
else |
1871 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1872 |
for as_dir in $PATH |
1873 |
do |
1874 |
IFS=$as_save_IFS |
1875 |
test -z "$as_dir" && as_dir=. |
1876 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1877 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1878 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
1879 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1880 |
break 2 |
1881 |
fi |
1882 |
done |
1883 |
done |
1884 |
IFS=$as_save_IFS |
1885 |
|
1886 |
fi |
1887 |
fi |
1888 |
CC=$ac_cv_prog_CC |
1889 |
if test -n "$CC"; then |
1890 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
1891 |
echo "${ECHO_T}$CC" >&6; } |
1892 |
else |
1893 |
{ echo "$as_me:$LINENO: result: no" >&5 |
1894 |
echo "${ECHO_T}no" >&6; } |
1895 |
fi |
1896 |
|
1897 |
|
1898 |
fi |
1899 |
fi |
1900 |
if test -z "$CC"; then |
1901 |
# Extract the first word of "cc", so it can be a program name with args. |
1902 |
set dummy cc; ac_word=$2 |
1903 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1904 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1905 |
if test "${ac_cv_prog_CC+set}" = set; then |
1906 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1907 |
else |
1908 |
if test -n "$CC"; then |
1909 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1910 |
else |
1911 |
ac_prog_rejected=no |
1912 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1913 |
for as_dir in $PATH |
1914 |
do |
1915 |
IFS=$as_save_IFS |
1916 |
test -z "$as_dir" && as_dir=. |
1917 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1918 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1919 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1920 |
ac_prog_rejected=yes |
1921 |
continue |
1922 |
fi |
1923 |
ac_cv_prog_CC="cc" |
1924 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1925 |
break 2 |
1926 |
fi |
1927 |
done |
1928 |
done |
1929 |
IFS=$as_save_IFS |
1930 |
|
1931 |
if test $ac_prog_rejected = yes; then |
1932 |
# We found a bogon in the path, so make sure we never use it. |
1933 |
set dummy $ac_cv_prog_CC |
1934 |
shift |
1935 |
if test $# != 0; then |
1936 |
# We chose a different compiler from the bogus one. |
1937 |
# However, it has the same basename, so the bogon will be chosen |
1938 |
# first if we set CC to just the basename; use the full file name. |
1939 |
shift |
1940 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1941 |
fi |
1942 |
fi |
1943 |
fi |
1944 |
fi |
1945 |
CC=$ac_cv_prog_CC |
1946 |
if test -n "$CC"; then |
1947 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
1948 |
echo "${ECHO_T}$CC" >&6; } |
1949 |
else |
1950 |
{ echo "$as_me:$LINENO: result: no" >&5 |
1951 |
echo "${ECHO_T}no" >&6; } |
1952 |
fi |
1953 |
|
1954 |
|
1955 |
fi |
1956 |
if test -z "$CC"; then |
1957 |
if test -n "$ac_tool_prefix"; then |
1958 |
for ac_prog in cl.exe |
1959 |
do |
1960 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1961 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1962 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1963 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1964 |
if test "${ac_cv_prog_CC+set}" = set; then |
1965 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1966 |
else |
1967 |
if test -n "$CC"; then |
1968 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1969 |
else |
1970 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1971 |
for as_dir in $PATH |
1972 |
do |
1973 |
IFS=$as_save_IFS |
1974 |
test -z "$as_dir" && as_dir=. |
1975 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1976 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
1977 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1978 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1979 |
break 2 |
1980 |
fi |
1981 |
done |
1982 |
done |
1983 |
IFS=$as_save_IFS |
1984 |
|
1985 |
fi |
1986 |
fi |
1987 |
CC=$ac_cv_prog_CC |
1988 |
if test -n "$CC"; then |
1989 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
1990 |
echo "${ECHO_T}$CC" >&6; } |
1991 |
else |
1992 |
{ echo "$as_me:$LINENO: result: no" >&5 |
1993 |
echo "${ECHO_T}no" >&6; } |
1994 |
fi |
1995 |
|
1996 |
|
1997 |
test -n "$CC" && break |
1998 |
done |
1999 |
fi |
2000 |
if test -z "$CC"; then |
2001 |
ac_ct_CC=$CC |
2002 |
for ac_prog in cl.exe |
2003 |
do |
2004 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2005 |
set dummy $ac_prog; ac_word=$2 |
2006 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2007 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2008 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2009 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2010 |
else |
2011 |
if test -n "$ac_ct_CC"; then |
2012 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2013 |
else |
2014 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2015 |
for as_dir in $PATH |
2016 |
do |
2017 |
IFS=$as_save_IFS |
2018 |
test -z "$as_dir" && as_dir=. |
2019 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2020 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2021 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
2022 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2023 |
break 2 |
2024 |
fi |
2025 |
done |
2026 |
done |
2027 |
IFS=$as_save_IFS |
2028 |
|
2029 |
fi |
2030 |
fi |
2031 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2032 |
if test -n "$ac_ct_CC"; then |
2033 |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2034 |
echo "${ECHO_T}$ac_ct_CC" >&6; } |
2035 |
else |
2036 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2037 |
echo "${ECHO_T}no" >&6; } |
2038 |
fi |
2039 |
|
2040 |
|
2041 |
test -n "$ac_ct_CC" && break |
2042 |
done |
2043 |
|
2044 |
if test "x$ac_ct_CC" = x; then |
2045 |
CC="" |
2046 |
else |
2047 |
case $cross_compiling:$ac_tool_warned in |
2048 |
yes:) |
2049 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2050 |
whose name does not start with the host triplet. If you think this |
2051 |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2052 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2053 |
whose name does not start with the host triplet. If you think this |
2054 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2055 |
ac_tool_warned=yes ;; |
2056 |
esac |
2057 |
CC=$ac_ct_CC |
2058 |
fi |
2059 |
fi |
2060 |
|
2061 |
fi |
2062 |
|
2063 |
|
2064 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2065 |
See \`config.log' for more details." >&5 |
2066 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
2067 |
See \`config.log' for more details." >&2;} |
2068 |
{ (exit 1); exit 1; }; } |
2069 |
|
2070 |
# Provide some information about the compiler. |
2071 |
echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2072 |
ac_compiler=`set X $ac_compile; echo $2` |
2073 |
{ (ac_try="$ac_compiler --version >&5" |
2074 |
case "(($ac_try" in |
2075 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2076 |
*) ac_try_echo=$ac_try;; |
2077 |
esac |
2078 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2079 |
(eval "$ac_compiler --version >&5") 2>&5 |
2080 |
ac_status=$? |
2081 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2082 |
(exit $ac_status); } |
2083 |
{ (ac_try="$ac_compiler -v >&5" |
2084 |
case "(($ac_try" in |
2085 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2086 |
*) ac_try_echo=$ac_try;; |
2087 |
esac |
2088 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2089 |
(eval "$ac_compiler -v >&5") 2>&5 |
2090 |
ac_status=$? |
2091 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2092 |
(exit $ac_status); } |
2093 |
{ (ac_try="$ac_compiler -V >&5" |
2094 |
case "(($ac_try" in |
2095 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2096 |
*) ac_try_echo=$ac_try;; |
2097 |
esac |
2098 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2099 |
(eval "$ac_compiler -V >&5") 2>&5 |
2100 |
ac_status=$? |
2101 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2102 |
(exit $ac_status); } |
2103 |
|
2104 |
cat >conftest.$ac_ext <<_ACEOF |
2105 |
/* confdefs.h. */ |
2106 |
_ACEOF |
2107 |
cat confdefs.h >>conftest.$ac_ext |
2108 |
cat >>conftest.$ac_ext <<_ACEOF |
2109 |
/* end confdefs.h. */ |
2110 |
|
2111 |
int |
2112 |
main () |
2113 |
{ |
2114 |
|
2115 |
; |
2116 |
return 0; |
2117 |
} |
2118 |
_ACEOF |
2119 |
ac_clean_files_save=$ac_clean_files |
2120 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2121 |
# Try to create an executable without -o first, disregard a.out. |
2122 |
# It will help us diagnose broken compilers, and finding out an intuition |
2123 |
# of exeext. |
2124 |
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2125 |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
2126 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2127 |
# |
2128 |
# List of possible output files, starting from the most likely. |
2129 |
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2130 |
# only as a last resort. b.out is created by i960 compilers. |
2131 |
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2132 |
# |
2133 |
# The IRIX 6 linker writes into existing files which may not be |
2134 |
# executable, retaining their permissions. Remove them first so a |
2135 |
# subsequent execution test works. |
2136 |
ac_rmfiles= |
2137 |
for ac_file in $ac_files |
2138 |
do |
2139 |
case $ac_file in |
2140 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2141 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2142 |
esac |
2143 |
done |
2144 |
rm -f $ac_rmfiles |
2145 |
|
2146 |
if { (ac_try="$ac_link_default" |
2147 |
case "(($ac_try" in |
2148 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2149 |
*) ac_try_echo=$ac_try;; |
2150 |
esac |
2151 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2152 |
(eval "$ac_link_default") 2>&5 |
2153 |
ac_status=$? |
2154 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2155 |
(exit $ac_status); }; then |
2156 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2157 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2158 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
2159 |
# so that the user can short-circuit this test for compilers unknown to |
2160 |
# Autoconf. |
2161 |
for ac_file in $ac_files |
2162 |
do |
2163 |
test -f "$ac_file" || continue |
2164 |
case $ac_file in |
2165 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
2166 |
;; |
2167 |
[ab].out ) |
2168 |
# We found the default executable, but exeext='' is most |
2169 |
# certainly right. |
2170 |
break;; |
2171 |
*.* ) |
2172 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2173 |
then :; else |
2174 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2175 |
fi |
2176 |
# We set ac_cv_exeext here because the later test for it is not |
2177 |
# safe: cross compilers may not add the suffix if given an `-o' |
2178 |
# argument, so we may need to know it at that point already. |
2179 |
# Even if this section looks crufty: it has the advantage of |
2180 |
# actually working. |
2181 |
break;; |
2182 |
* ) |
2183 |
break;; |
2184 |
esac |
2185 |
done |
2186 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
2187 |
|
2188 |
else |
2189 |
echo "$as_me: failed program was:" >&5 |
2190 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2191 |
|
2192 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2193 |
See \`config.log' for more details." >&5 |
2194 |
echo "$as_me: error: C compiler cannot create executables |
2195 |
See \`config.log' for more details." >&2;} |
2196 |
{ (exit 77); exit 77; }; } |
2197 |
fi |
2198 |
|
2199 |
ac_exeext=$ac_cv_exeext |
2200 |
{ echo "$as_me:$LINENO: result: $ac_file" >&5 |
2201 |
echo "${ECHO_T}$ac_file" >&6; } |
2202 |
|
2203 |
# Check that the compiler produces executables we can run. If not, either |
2204 |
# the compiler is broken, or we cross compile. |
2205 |
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2206 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
2207 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2208 |
# If not cross compiling, check that we can run a simple program. |
2209 |
if test "$cross_compiling" != yes; then |
2210 |
if { ac_try='./$ac_file' |
2211 |
{ (case "(($ac_try" in |
2212 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2213 |
*) ac_try_echo=$ac_try;; |
2214 |
esac |
2215 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2216 |
(eval "$ac_try") 2>&5 |
2217 |
ac_status=$? |
2218 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2219 |
(exit $ac_status); }; }; then |
2220 |
cross_compiling=no |
2221 |
else |
2222 |
if test "$cross_compiling" = maybe; then |
2223 |
cross_compiling=yes |
2224 |
else |
2225 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2226 |
If you meant to cross compile, use \`--host'. |
2227 |
See \`config.log' for more details." >&5 |
2228 |
echo "$as_me: error: cannot run C compiled programs. |
2229 |
If you meant to cross compile, use \`--host'. |
2230 |
See \`config.log' for more details." >&2;} |
2231 |
{ (exit 1); exit 1; }; } |
2232 |
fi |
2233 |
fi |
2234 |
fi |
2235 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
2236 |
echo "${ECHO_T}yes" >&6; } |
2237 |
|
2238 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2239 |
ac_clean_files=$ac_clean_files_save |
2240 |
# Check that the compiler produces executables we can run. If not, either |
2241 |
# the compiler is broken, or we cross compile. |
2242 |
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2243 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2244 |
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2245 |
echo "${ECHO_T}$cross_compiling" >&6; } |
2246 |
|
2247 |
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2248 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2249 |
if { (ac_try="$ac_link" |
2250 |
case "(($ac_try" in |
2251 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2252 |
*) ac_try_echo=$ac_try;; |
2253 |
esac |
2254 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2255 |
(eval "$ac_link") 2>&5 |
2256 |
ac_status=$? |
2257 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2258 |
(exit $ac_status); }; then |
2259 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
2260 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2261 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
2262 |
# `rm'. |
2263 |
for ac_file in conftest.exe conftest conftest.*; do |
2264 |
test -f "$ac_file" || continue |
2265 |
case $ac_file in |
2266 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2267 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2268 |
break;; |
2269 |
* ) break;; |
2270 |
esac |
2271 |
done |
2272 |
else |
2273 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2274 |
See \`config.log' for more details." >&5 |
2275 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2276 |
See \`config.log' for more details." >&2;} |
2277 |
{ (exit 1); exit 1; }; } |
2278 |
fi |
2279 |
|
2280 |
rm -f conftest$ac_cv_exeext |
2281 |
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2282 |
echo "${ECHO_T}$ac_cv_exeext" >&6; } |
2283 |
|
2284 |
rm -f conftest.$ac_ext |
2285 |
EXEEXT=$ac_cv_exeext |
2286 |
ac_exeext=$EXEEXT |
2287 |
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2288 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
2289 |
if test "${ac_cv_objext+set}" = set; then |
2290 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2291 |
else |
2292 |
cat >conftest.$ac_ext <<_ACEOF |
2293 |
/* confdefs.h. */ |
2294 |
_ACEOF |
2295 |
cat confdefs.h >>conftest.$ac_ext |
2296 |
cat >>conftest.$ac_ext <<_ACEOF |
2297 |
/* end confdefs.h. */ |
2298 |
|
2299 |
int |
2300 |
main () |
2301 |
{ |
2302 |
|
2303 |
; |
2304 |
return 0; |
2305 |
} |
2306 |
_ACEOF |
2307 |
rm -f conftest.o conftest.obj |
2308 |
if { (ac_try="$ac_compile" |
2309 |
case "(($ac_try" in |
2310 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2311 |
*) ac_try_echo=$ac_try;; |
2312 |
esac |
2313 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2314 |
(eval "$ac_compile") 2>&5 |
2315 |
ac_status=$? |
2316 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2317 |
(exit $ac_status); }; then |
2318 |
for ac_file in conftest.o conftest.obj conftest.*; do |
2319 |
test -f "$ac_file" || continue; |
2320 |
case $ac_file in |
2321 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
2322 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2323 |
break;; |
2324 |
esac |
2325 |
done |
2326 |
else |
2327 |
echo "$as_me: failed program was:" >&5 |
2328 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2329 |
|
2330 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2331 |
See \`config.log' for more details." >&5 |
2332 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2333 |
See \`config.log' for more details." >&2;} |
2334 |
{ (exit 1); exit 1; }; } |
2335 |
fi |
2336 |
|
2337 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2338 |
fi |
2339 |
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2340 |
echo "${ECHO_T}$ac_cv_objext" >&6; } |
2341 |
OBJEXT=$ac_cv_objext |
2342 |
ac_objext=$OBJEXT |
2343 |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2344 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
2345 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2346 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2347 |
else |
2348 |
cat >conftest.$ac_ext <<_ACEOF |
2349 |
/* confdefs.h. */ |
2350 |
_ACEOF |
2351 |
cat confdefs.h >>conftest.$ac_ext |
2352 |
cat >>conftest.$ac_ext <<_ACEOF |
2353 |
/* end confdefs.h. */ |
2354 |
|
2355 |
int |
2356 |
main () |
2357 |
{ |
2358 |
#ifndef __GNUC__ |
2359 |
choke me |
2360 |
#endif |
2361 |
|
2362 |
; |
2363 |
return 0; |
2364 |
} |
2365 |
_ACEOF |
2366 |
rm -f conftest.$ac_objext |
2367 |
if { (ac_try="$ac_compile" |
2368 |
case "(($ac_try" in |
2369 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2370 |
*) ac_try_echo=$ac_try;; |
2371 |
esac |
2372 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2373 |
(eval "$ac_compile") 2>conftest.er1 |
2374 |
ac_status=$? |
2375 |
grep -v '^ *+' conftest.er1 >conftest.err |
2376 |
rm -f conftest.er1 |
2377 |
cat conftest.err >&5 |
2378 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2379 |
(exit $ac_status); } && |
2380 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2381 |
{ (case "(($ac_try" in |
2382 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2383 |
*) ac_try_echo=$ac_try;; |
2384 |
esac |
2385 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2386 |
(eval "$ac_try") 2>&5 |
2387 |
ac_status=$? |
2388 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2389 |
(exit $ac_status); }; } && |
2390 |
{ ac_try='test -s conftest.$ac_objext' |
2391 |
{ (case "(($ac_try" in |
2392 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2393 |
*) ac_try_echo=$ac_try;; |
2394 |
esac |
2395 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2396 |
(eval "$ac_try") 2>&5 |
2397 |
ac_status=$? |
2398 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2399 |
(exit $ac_status); }; }; then |
2400 |
ac_compiler_gnu=yes |
2401 |
else |
2402 |
echo "$as_me: failed program was:" >&5 |
2403 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2404 |
|
2405 |
ac_compiler_gnu=no |
2406 |
fi |
2407 |
|
2408 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2409 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2410 |
|
2411 |
fi |
2412 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2413 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
2414 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
2415 |
ac_test_CFLAGS=${CFLAGS+set} |
2416 |
ac_save_CFLAGS=$CFLAGS |
2417 |
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2418 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
2419 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
2420 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2421 |
else |
2422 |
ac_save_c_werror_flag=$ac_c_werror_flag |
2423 |
ac_c_werror_flag=yes |
2424 |
ac_cv_prog_cc_g=no |
2425 |
CFLAGS="-g" |
2426 |
cat >conftest.$ac_ext <<_ACEOF |
2427 |
/* confdefs.h. */ |
2428 |
_ACEOF |
2429 |
cat confdefs.h >>conftest.$ac_ext |
2430 |
cat >>conftest.$ac_ext <<_ACEOF |
2431 |
/* end confdefs.h. */ |
2432 |
|
2433 |
int |
2434 |
main () |
2435 |
{ |
2436 |
|
2437 |
; |
2438 |
return 0; |
2439 |
} |
2440 |
_ACEOF |
2441 |
rm -f conftest.$ac_objext |
2442 |
if { (ac_try="$ac_compile" |
2443 |
case "(($ac_try" in |
2444 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2445 |
*) ac_try_echo=$ac_try;; |
2446 |
esac |
2447 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2448 |
(eval "$ac_compile") 2>conftest.er1 |
2449 |
ac_status=$? |
2450 |
grep -v '^ *+' conftest.er1 >conftest.err |
2451 |
rm -f conftest.er1 |
2452 |
cat conftest.err >&5 |
2453 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2454 |
(exit $ac_status); } && |
2455 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2456 |
{ (case "(($ac_try" in |
2457 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2458 |
*) ac_try_echo=$ac_try;; |
2459 |
esac |
2460 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2461 |
(eval "$ac_try") 2>&5 |
2462 |
ac_status=$? |
2463 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2464 |
(exit $ac_status); }; } && |
2465 |
{ ac_try='test -s conftest.$ac_objext' |
2466 |
{ (case "(($ac_try" in |
2467 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2468 |
*) ac_try_echo=$ac_try;; |
2469 |
esac |
2470 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2471 |
(eval "$ac_try") 2>&5 |
2472 |
ac_status=$? |
2473 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2474 |
(exit $ac_status); }; }; then |
2475 |
ac_cv_prog_cc_g=yes |
2476 |
else |
2477 |
echo "$as_me: failed program was:" >&5 |
2478 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2479 |
|
2480 |
CFLAGS="" |
2481 |
cat >conftest.$ac_ext <<_ACEOF |
2482 |
/* confdefs.h. */ |
2483 |
_ACEOF |
2484 |
cat confdefs.h >>conftest.$ac_ext |
2485 |
cat >>conftest.$ac_ext <<_ACEOF |
2486 |
/* end confdefs.h. */ |
2487 |
|
2488 |
int |
2489 |
main () |
2490 |
{ |
2491 |
|
2492 |
; |
2493 |
return 0; |
2494 |
} |
2495 |
_ACEOF |
2496 |
rm -f conftest.$ac_objext |
2497 |
if { (ac_try="$ac_compile" |
2498 |
case "(($ac_try" in |
2499 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2500 |
*) ac_try_echo=$ac_try;; |
2501 |
esac |
2502 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2503 |
(eval "$ac_compile") 2>conftest.er1 |
2504 |
ac_status=$? |
2505 |
grep -v '^ *+' conftest.er1 >conftest.err |
2506 |
rm -f conftest.er1 |
2507 |
cat conftest.err >&5 |
2508 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2509 |
(exit $ac_status); } && |
2510 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2511 |
{ (case "(($ac_try" in |
2512 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2513 |
*) ac_try_echo=$ac_try;; |
2514 |
esac |
2515 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2516 |
(eval "$ac_try") 2>&5 |
2517 |
ac_status=$? |
2518 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2519 |
(exit $ac_status); }; } && |
2520 |
{ ac_try='test -s conftest.$ac_objext' |
2521 |
{ (case "(($ac_try" in |
2522 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2523 |
*) ac_try_echo=$ac_try;; |
2524 |
esac |
2525 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2526 |
(eval "$ac_try") 2>&5 |
2527 |
ac_status=$? |
2528 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2529 |
(exit $ac_status); }; }; then |
2530 |
: |
2531 |
else |
2532 |
echo "$as_me: failed program was:" >&5 |
2533 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2534 |
|
2535 |
ac_c_werror_flag=$ac_save_c_werror_flag |
2536 |
CFLAGS="-g" |
2537 |
cat >conftest.$ac_ext <<_ACEOF |
2538 |
/* confdefs.h. */ |
2539 |
_ACEOF |
2540 |
cat confdefs.h >>conftest.$ac_ext |
2541 |
cat >>conftest.$ac_ext <<_ACEOF |
2542 |
/* end confdefs.h. */ |
2543 |
|
2544 |
int |
2545 |
main () |
2546 |
{ |
2547 |
|
2548 |
; |
2549 |
return 0; |
2550 |
} |
2551 |
_ACEOF |
2552 |
rm -f conftest.$ac_objext |
2553 |
if { (ac_try="$ac_compile" |
2554 |
case "(($ac_try" in |
2555 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2556 |
*) ac_try_echo=$ac_try;; |
2557 |
esac |
2558 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2559 |
(eval "$ac_compile") 2>conftest.er1 |
2560 |
ac_status=$? |
2561 |
grep -v '^ *+' conftest.er1 >conftest.err |
2562 |
rm -f conftest.er1 |
2563 |
cat conftest.err >&5 |
2564 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2565 |
(exit $ac_status); } && |
2566 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2567 |
{ (case "(($ac_try" in |
2568 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2569 |
*) ac_try_echo=$ac_try;; |
2570 |
esac |
2571 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2572 |
(eval "$ac_try") 2>&5 |
2573 |
ac_status=$? |
2574 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2575 |
(exit $ac_status); }; } && |
2576 |
{ ac_try='test -s conftest.$ac_objext' |
2577 |
{ (case "(($ac_try" in |
2578 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2579 |
*) ac_try_echo=$ac_try;; |
2580 |
esac |
2581 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2582 |
(eval "$ac_try") 2>&5 |
2583 |
ac_status=$? |
2584 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2585 |
(exit $ac_status); }; }; then |
2586 |
ac_cv_prog_cc_g=yes |
2587 |
else |
2588 |
echo "$as_me: failed program was:" >&5 |
2589 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2590 |
|
2591 |
|
2592 |
fi |
2593 |
|
2594 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2595 |
fi |
2596 |
|
2597 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2598 |
fi |
2599 |
|
2600 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2601 |
ac_c_werror_flag=$ac_save_c_werror_flag |
2602 |
fi |
2603 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2604 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
2605 |
if test "$ac_test_CFLAGS" = set; then |
2606 |
CFLAGS=$ac_save_CFLAGS |
2607 |
elif test $ac_cv_prog_cc_g = yes; then |
2608 |
if test "$GCC" = yes; then |
2609 |
CFLAGS="-g -O2" |
2610 |
else |
2611 |
CFLAGS="-g" |
2612 |
fi |
2613 |
else |
2614 |
if test "$GCC" = yes; then |
2615 |
CFLAGS="-O2" |
2616 |
else |
2617 |
CFLAGS= |
2618 |
fi |
2619 |
fi |
2620 |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2621 |
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
2622 |
if test "${ac_cv_prog_cc_c89+set}" = set; then |
2623 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2624 |
else |
2625 |
ac_cv_prog_cc_c89=no |
2626 |
ac_save_CC=$CC |
2627 |
cat >conftest.$ac_ext <<_ACEOF |
2628 |
/* confdefs.h. */ |
2629 |
_ACEOF |
2630 |
cat confdefs.h >>conftest.$ac_ext |
2631 |
cat >>conftest.$ac_ext <<_ACEOF |
2632 |
/* end confdefs.h. */ |
2633 |
#include <stdarg.h> |
2634 |
#include <stdio.h> |
2635 |
#include <sys/types.h> |
2636 |
#include <sys/stat.h> |
2637 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2638 |
struct buf { int x; }; |
2639 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2640 |
static char *e (p, i) |
2641 |
char **p; |
2642 |
int i; |
2643 |
{ |
2644 |
return p[i]; |
2645 |
} |
2646 |
static char *f (char * (*g) (char **, int), char **p, ...) |
2647 |
{ |
2648 |
char *s; |
2649 |
va_list v; |
2650 |
va_start (v,p); |
2651 |
s = g (p, va_arg (v,int)); |
2652 |
va_end (v); |
2653 |
return s; |
2654 |
} |
2655 |
|
2656 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2657 |
function prototypes and stuff, but not '\xHH' hex character constants. |
2658 |
These don't provoke an error unfortunately, instead are silently treated |
2659 |
as 'x'. The following induces an error, until -std is added to get |
2660 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2661 |
array size at least. It's necessary to write '\x00'==0 to get something |
2662 |
that's true only with -std. */ |
2663 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2664 |
|
2665 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2666 |
inside strings and character constants. */ |
2667 |
#define FOO(x) 'x' |
2668 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
2669 |
|
2670 |
int test (int i, double x); |
2671 |
struct s1 {int (*f) (int a);}; |
2672 |
struct s2 {int (*f) (double a);}; |
2673 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2674 |
int argc; |
2675 |
char **argv; |
2676 |
int |
2677 |
main () |
2678 |
{ |
2679 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2680 |
; |
2681 |
return 0; |
2682 |
} |
2683 |
_ACEOF |
2684 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2685 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2686 |
do |
2687 |
CC="$ac_save_CC $ac_arg" |
2688 |
rm -f conftest.$ac_objext |
2689 |
if { (ac_try="$ac_compile" |
2690 |
case "(($ac_try" in |
2691 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2692 |
*) ac_try_echo=$ac_try;; |
2693 |
esac |
2694 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2695 |
(eval "$ac_compile") 2>conftest.er1 |
2696 |
ac_status=$? |
2697 |
grep -v '^ *+' conftest.er1 >conftest.err |
2698 |
rm -f conftest.er1 |
2699 |
cat conftest.err >&5 |
2700 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2701 |
(exit $ac_status); } && |
2702 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2703 |
{ (case "(($ac_try" in |
2704 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2705 |
*) ac_try_echo=$ac_try;; |
2706 |
esac |
2707 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2708 |
(eval "$ac_try") 2>&5 |
2709 |
ac_status=$? |
2710 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2711 |
(exit $ac_status); }; } && |
2712 |
{ ac_try='test -s conftest.$ac_objext' |
2713 |
{ (case "(($ac_try" in |
2714 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2715 |
*) ac_try_echo=$ac_try;; |
2716 |
esac |
2717 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2718 |
(eval "$ac_try") 2>&5 |
2719 |
ac_status=$? |
2720 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2721 |
(exit $ac_status); }; }; then |
2722 |
ac_cv_prog_cc_c89=$ac_arg |
2723 |
else |
2724 |
echo "$as_me: failed program was:" >&5 |
2725 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2726 |
|
2727 |
|
2728 |
fi |
2729 |
|
2730 |
rm -f core conftest.err conftest.$ac_objext |
2731 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
2732 |
done |
2733 |
rm -f conftest.$ac_ext |
2734 |
CC=$ac_save_CC |
2735 |
|
2736 |
fi |
2737 |
# AC_CACHE_VAL |
2738 |
case "x$ac_cv_prog_cc_c89" in |
2739 |
x) |
2740 |
{ echo "$as_me:$LINENO: result: none needed" >&5 |
2741 |
echo "${ECHO_T}none needed" >&6; } ;; |
2742 |
xno) |
2743 |
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
2744 |
echo "${ECHO_T}unsupported" >&6; } ;; |
2745 |
*) |
2746 |
CC="$CC $ac_cv_prog_cc_c89" |
2747 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
2748 |
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
2749 |
esac |
2750 |
|
2751 |
|
2752 |
ac_ext=c |
2753 |
ac_cpp='$CPP $CPPFLAGS' |
2754 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2755 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2756 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2757 |
|
2758 |
ac_ext=c |
2759 |
ac_cpp='$CPP $CPPFLAGS' |
2760 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2761 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2762 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2763 |
|
2764 |
|
2765 |
CFLAGS="$OLD_CFLAGS" |
2766 |
|
2767 |
|
2768 |
if test "$ac_cv_c_compiler_gnu" != yes; then |
2769 |
|
2770 |
SGS=no |
2771 |
{ echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5 |
2772 |
echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; } |
2773 |
case `$CC -version 2>&1` in |
2774 |
*TenDRA*) |
2775 |
{ echo "$as_me:$LINENO: result: yes, TenDRA" >&5 |
2776 |
echo "${ECHO_T}yes, TenDRA" >&6; } |
2777 |
IRC_CFLAGS="" |
2778 |
CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -Ysystem" |
2779 |
SGS=yes |
2780 |
TenDRA=yes |
2781 |
;; |
2782 |
*MIPSpro*) |
2783 |
{ echo "$as_me:$LINENO: result: yes, MIPSpro" >&5 |
2784 |
echo "${ECHO_T}yes, MIPSpro" >&6; } |
2785 |
MIPSpro=yes |
2786 |
SGS=yes |
2787 |
;; |
2788 |
*) |
2789 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2790 |
echo "${ECHO_T}no" >&6; } |
2791 |
TenDRA=no |
2792 |
MIPSpro=no |
2793 |
;; |
2794 |
esac |
2795 |
|
2796 |
{ echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 |
2797 |
echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; } |
2798 |
case `$CC -V 2>&1` in |
2799 |
*Sun*WorkShop* | *Forte*Developer* | *Sun*C*) |
2800 |
{ echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5 |
2801 |
echo "${ECHO_T}Sun Workshop/Forte" >&6; } |
2802 |
IRC_CFLAGS="-xO3 -xdepend -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" |
2803 |
SunWorkShop=yes |
2804 |
SGS=yes |
2805 |
;; |
2806 |
*Tru64*) |
2807 |
{ echo "$as_me:$LINENO: result: Tru64 cc" >&5 |
2808 |
echo "${ECHO_T}Tru64 cc" >&6; } |
2809 |
IRC_CFLAGS="" |
2810 |
CPPFLAGS="-I/usr/local/include" |
2811 |
Tru=yes |
2812 |
;; |
2813 |
*HP*ANSI*) |
2814 |
{ echo "$as_me:$LINENO: result: HPUX cc" >&5 |
2815 |
echo "${ECHO_T}HPUX cc" >&6; } |
2816 |
HPUX=yes |
2817 |
IRC_CFLAGS="+e" |
2818 |
;; |
2819 |
*) |
2820 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2821 |
echo "${ECHO_T}no" >&6; } |
2822 |
;; |
2823 |
esac |
2824 |
|
2825 |
fi |
2826 |
|
2827 |
{ echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris or HPUX" >&5 |
2828 |
echo $ECHO_N "checking uname -s for Cygwin, Solaris or HPUX... $ECHO_C" >&6; } |
2829 |
case `uname -s` in |
2830 |
HP-UX*) |
2831 |
|
2832 |
if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then |
2833 |
{ echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5 |
2834 |
echo "${ECHO_T}assuming old HPUX with its own cc" >&6; } |
2835 |
IRC_CFLAGS="$IRC_CFLAGS +e" |
2836 |
HPUX=yes |
2837 |
else |
2838 |
{ echo "$as_me:$LINENO: result: already using newer HPUX" >&5 |
2839 |
echo "${ECHO_T}already using newer HPUX" >&6; } |
2840 |
fi |
2841 |
;; |
2842 |
CYGWIN*) |
2843 |
{ echo "$as_me:$LINENO: result: Cygwin" >&5 |
2844 |
echo "${ECHO_T}Cygwin" >&6; } |
2845 |
CYGWIN=yes |
2846 |
;; |
2847 |
SunOS*) |
2848 |
{ echo "$as_me:$LINENO: result: SunOS or Solaris" >&5 |
2849 |
echo "${ECHO_T}SunOS or Solaris" >&6; } |
2850 |
|
2851 |
cat >>confdefs.h <<\_ACEOF |
2852 |
#define __EXTENSIONS__ 1 |
2853 |
_ACEOF |
2854 |
|
2855 |
;; |
2856 |
*) |
2857 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2858 |
echo "${ECHO_T}no" >&6; } |
2859 |
;; |
2860 |
esac |
2861 |
|
2862 |
if test "$ac_cv_c_compiler_gnu" = yes; then |
2863 |
{ echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5 |
2864 |
echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; } |
2865 |
|
2866 |
if expr "`$CC -v 2>&1 | tail -1`" : ".*Apple" >/dev/null; then |
2867 |
AppleGCC=yes |
2868 |
else |
2869 |
AppleGCC=no |
2870 |
fi |
2871 |
|
2872 |
{ echo "$as_me:$LINENO: result: $AppleGCC" >&5 |
2873 |
echo "${ECHO_T}$AppleGCC" >&6; } |
2874 |
|
2875 |
IRC_CFLAGS="$IRC_CFLAGS -Wall -O2" |
2876 |
fi |
2877 |
|
2878 |
if test "$ac_cv_prog_cc_g" = yes; then |
2879 |
if test "$Tru" = yes; then |
2880 |
IRC_CFLAGS="$IRC_CFLAGS -g3" |
2881 |
else |
2882 |
IRC_CFLAGS="$IRC_CFLAGS -g" |
2883 |
fi |
2884 |
fi |
2885 |
|
2886 |
{ echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5 |
2887 |
echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; } |
2888 |
if test "$SGS" = "yes"; then |
2889 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
2890 |
echo "${ECHO_T}yes" >&6; } |
2891 |
else |
2892 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2893 |
echo "${ECHO_T}no" >&6; } |
2894 |
fi |
2895 |
|
2896 |
# Extract the first word of "mkdep", so it can be a program name with args. |
2897 |
set dummy mkdep; ac_word=$2 |
2898 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2899 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2900 |
if test "${ac_cv_path_MKDEP+set}" = set; then |
2901 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2902 |
else |
2903 |
case $MKDEP in |
2904 |
[\\/]* | ?:[\\/]*) |
2905 |
ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. |
2906 |
;; |
2907 |
*) |
2908 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2909 |
for as_dir in $PATH |
2910 |
do |
2911 |
IFS=$as_save_IFS |
2912 |
test -z "$as_dir" && as_dir=. |
2913 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2914 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2915 |
ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" |
2916 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2917 |
break 2 |
2918 |
fi |
2919 |
done |
2920 |
done |
2921 |
IFS=$as_save_IFS |
2922 |
|
2923 |
;; |
2924 |
esac |
2925 |
fi |
2926 |
MKDEP=$ac_cv_path_MKDEP |
2927 |
if test -n "$MKDEP"; then |
2928 |
{ echo "$as_me:$LINENO: result: $MKDEP" >&5 |
2929 |
echo "${ECHO_T}$MKDEP" >&6; } |
2930 |
else |
2931 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2932 |
echo "${ECHO_T}no" >&6; } |
2933 |
fi |
2934 |
|
2935 |
|
2936 |
# Extract the first word of "makedepend", so it can be a program name with args. |
2937 |
set dummy makedepend; ac_word=$2 |
2938 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2939 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2940 |
if test "${ac_cv_path_MAKEDEPEND+set}" = set; then |
2941 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2942 |
else |
2943 |
case $MAKEDEPEND in |
2944 |
[\\/]* | ?:[\\/]*) |
2945 |
ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. |
2946 |
;; |
2947 |
*) |
2948 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2949 |
for as_dir in $PATH |
2950 |
do |
2951 |
IFS=$as_save_IFS |
2952 |
test -z "$as_dir" && as_dir=. |
2953 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2954 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2955 |
ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" |
2956 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2957 |
break 2 |
2958 |
fi |
2959 |
done |
2960 |
done |
2961 |
IFS=$as_save_IFS |
2962 |
|
2963 |
;; |
2964 |
esac |
2965 |
fi |
2966 |
MAKEDEPEND=$ac_cv_path_MAKEDEPEND |
2967 |
if test -n "$MAKEDEPEND"; then |
2968 |
{ echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5 |
2969 |
echo "${ECHO_T}$MAKEDEPEND" >&6; } |
2970 |
else |
2971 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2972 |
echo "${ECHO_T}no" >&6; } |
2973 |
fi |
2974 |
|
2975 |
|
2976 |
|
2977 |
{ echo "$as_me:$LINENO: checking how to generate dependency info" >&5 |
2978 |
echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; } |
2979 |
|
2980 |
STDOUT="> .depend" |
2981 |
|
2982 |
if test "$ac_cv_c_compiler_gnu" = yes; then |
2983 |
{ echo "$as_me:$LINENO: result: gcc -MM" >&5 |
2984 |
echo "${ECHO_T}gcc -MM" >&6; } |
2985 |
MKDEP="$CC -MM" |
2986 |
elif test ! -z "$MKDEP"; then |
2987 |
{ echo "$as_me:$LINENO: result: mkdep" >&5 |
2988 |
echo "${ECHO_T}mkdep" >&6; } |
2989 |
|
2990 |
if test -z "$Tru"; then |
2991 |
STDOUT="" |
2992 |
else |
2993 |
STDOUT=" 2> /dev/null" |
2994 |
fi |
2995 |
elif test "$SunWorkShop" = yes; then |
2996 |
{ echo "$as_me:$LINENO: result: $CC -xM" >&5 |
2997 |
echo "${ECHO_T}$CC -xM" >&6; } |
2998 |
MKDEP="$CC -xM" |
2999 |
STDOUT="> .depend 2> /dev/null" |
3000 |
elif test ! -z "$MAKEDEPEND"; then |
3001 |
{ echo "$as_me:$LINENO: result: makedepend" >&5 |
3002 |
echo "${ECHO_T}makedepend" >&6; } |
3003 |
MKDEP="$MAKEDEPEND -f-" |
3004 |
else |
3005 |
{ echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5 |
3006 |
echo "${ECHO_T}nothing suitable.. forget it!" >&6; } |
3007 |
MKDEP=":" |
3008 |
fi |
3009 |
|
3010 |
|
3011 |
|
3012 |
|
3013 |
{ echo "$as_me:$LINENO: checking for /dev/null" >&5 |
3014 |
echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; } |
3015 |
if test -c /dev/null ; then |
3016 |
|
3017 |
cat >>confdefs.h <<\_ACEOF |
3018 |
#define PATH_DEVNULL "/dev/null" |
3019 |
_ACEOF |
3020 |
|
3021 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
3022 |
echo "${ECHO_T}yes" >&6; } |
3023 |
else |
3024 |
|
3025 |
cat >>confdefs.h <<\_ACEOF |
3026 |
#define PATH_DEVNULL "devnull.log" |
3027 |
_ACEOF |
3028 |
|
3029 |
{ echo "$as_me:$LINENO: result: no - using devnull.log" >&5 |
3030 |
echo "${ECHO_T}no - using devnull.log" >&6; } |
3031 |
fi |
3032 |
|
3033 |
if test ! -z "$CFLAGS"; then |
3034 |
IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" |
3035 |
fi |
3036 |
|
3037 |
|
3038 |
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3039 |
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3040 |
if test "${ac_cv_search_strerror+set}" = set; then |
3041 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3042 |
else |
3043 |
ac_func_search_save_LIBS=$LIBS |
3044 |
cat >conftest.$ac_ext <<_ACEOF |
3045 |
/* confdefs.h. */ |
3046 |
_ACEOF |
3047 |
cat confdefs.h >>conftest.$ac_ext |
3048 |
cat >>conftest.$ac_ext <<_ACEOF |
3049 |
/* end confdefs.h. */ |
3050 |
|
3051 |
/* Override any GCC internal prototype to avoid an error. |
3052 |
Use char because int might match the return type of a GCC |
3053 |
builtin and then its argument prototype would still apply. */ |
3054 |
#ifdef __cplusplus |
3055 |
extern "C" |
3056 |
#endif |
3057 |
char strerror (); |
3058 |
int |
3059 |
main () |
3060 |
{ |
3061 |
return strerror (); |
3062 |
; |
3063 |
return 0; |
3064 |
} |
3065 |
_ACEOF |
3066 |
for ac_lib in '' cposix; do |
3067 |
if test -z "$ac_lib"; then |
3068 |
ac_res="none required" |
3069 |
else |
3070 |
ac_res=-l$ac_lib |
3071 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3072 |
fi |
3073 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3074 |
if { (ac_try="$ac_link" |
3075 |
case "(($ac_try" in |
3076 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3077 |
*) ac_try_echo=$ac_try;; |
3078 |
esac |
3079 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3080 |
(eval "$ac_link") 2>conftest.er1 |
3081 |
ac_status=$? |
3082 |
grep -v '^ *+' conftest.er1 >conftest.err |
3083 |
rm -f conftest.er1 |
3084 |
cat conftest.err >&5 |
3085 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3086 |
(exit $ac_status); } && |
3087 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3088 |
{ (case "(($ac_try" in |
3089 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3090 |
*) ac_try_echo=$ac_try;; |
3091 |
esac |
3092 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3093 |
(eval "$ac_try") 2>&5 |
3094 |
ac_status=$? |
3095 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3096 |
(exit $ac_status); }; } && |
3097 |
{ ac_try='test -s conftest$ac_exeext' |
3098 |
{ (case "(($ac_try" in |
3099 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3100 |
*) ac_try_echo=$ac_try;; |
3101 |
esac |
3102 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3103 |
(eval "$ac_try") 2>&5 |
3104 |
ac_status=$? |
3105 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3106 |
(exit $ac_status); }; }; then |
3107 |
ac_cv_search_strerror=$ac_res |
3108 |
else |
3109 |
echo "$as_me: failed program was:" >&5 |
3110 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3111 |
|
3112 |
|
3113 |
fi |
3114 |
|
3115 |
rm -f core conftest.err conftest.$ac_objext \ |
3116 |
conftest$ac_exeext |
3117 |
if test "${ac_cv_search_strerror+set}" = set; then |
3118 |
break |
3119 |
fi |
3120 |
done |
3121 |
if test "${ac_cv_search_strerror+set}" = set; then |
3122 |
: |
3123 |
else |
3124 |
ac_cv_search_strerror=no |
3125 |
fi |
3126 |
rm conftest.$ac_ext |
3127 |
LIBS=$ac_func_search_save_LIBS |
3128 |
fi |
3129 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
3130 |
echo "${ECHO_T}$ac_cv_search_strerror" >&6; } |
3131 |
ac_res=$ac_cv_search_strerror |
3132 |
if test "$ac_res" != no; then |
3133 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
3134 |
|
3135 |
fi |
3136 |
|
3137 |
{ echo "$as_me:$LINENO: checking for inline" >&5 |
3138 |
echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
3139 |
if test "${ac_cv_c_inline+set}" = set; then |
3140 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3141 |
else |
3142 |
ac_cv_c_inline=no |
3143 |
for ac_kw in inline __inline__ __inline; do |
3144 |
cat >conftest.$ac_ext <<_ACEOF |
3145 |
/* confdefs.h. */ |
3146 |
_ACEOF |
3147 |
cat confdefs.h >>conftest.$ac_ext |
3148 |
cat >>conftest.$ac_ext <<_ACEOF |
3149 |
/* end confdefs.h. */ |
3150 |
#ifndef __cplusplus |
3151 |
typedef int foo_t; |
3152 |
static $ac_kw foo_t static_foo () {return 0; } |
3153 |
$ac_kw foo_t foo () {return 0; } |
3154 |
#endif |
3155 |
|
3156 |
_ACEOF |
3157 |
rm -f conftest.$ac_objext |
3158 |
if { (ac_try="$ac_compile" |
3159 |
case "(($ac_try" in |
3160 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3161 |
*) ac_try_echo=$ac_try;; |
3162 |
esac |
3163 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3164 |
(eval "$ac_compile") 2>conftest.er1 |
3165 |
ac_status=$? |
3166 |
grep -v '^ *+' conftest.er1 >conftest.err |
3167 |
rm -f conftest.er1 |
3168 |
cat conftest.err >&5 |
3169 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3170 |
(exit $ac_status); } && |
3171 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3172 |
{ (case "(($ac_try" in |
3173 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3174 |
*) ac_try_echo=$ac_try;; |
3175 |
esac |
3176 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3177 |
(eval "$ac_try") 2>&5 |
3178 |
ac_status=$? |
3179 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3180 |
(exit $ac_status); }; } && |
3181 |
{ ac_try='test -s conftest.$ac_objext' |
3182 |
{ (case "(($ac_try" in |
3183 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3184 |
*) ac_try_echo=$ac_try;; |
3185 |
esac |
3186 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3187 |
(eval "$ac_try") 2>&5 |
3188 |
ac_status=$? |
3189 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3190 |
(exit $ac_status); }; }; then |
3191 |
ac_cv_c_inline=$ac_kw |
3192 |
else |
3193 |
echo "$as_me: failed program was:" >&5 |
3194 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3195 |
|
3196 |
|
3197 |
fi |
3198 |
|
3199 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3200 |
test "$ac_cv_c_inline" != no && break |
3201 |
done |
3202 |
|
3203 |
fi |
3204 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3205 |
echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
3206 |
|
3207 |
|
3208 |
case $ac_cv_c_inline in |
3209 |
inline | yes) ;; |
3210 |
*) |
3211 |
case $ac_cv_c_inline in |
3212 |
no) ac_val=;; |
3213 |
*) ac_val=$ac_cv_c_inline;; |
3214 |
esac |
3215 |
cat >>confdefs.h <<_ACEOF |
3216 |
#ifndef __cplusplus |
3217 |
#define inline $ac_val |
3218 |
#endif |
3219 |
_ACEOF |
3220 |
;; |
3221 |
esac |
3222 |
|
3223 |
ac_ext=c |
3224 |
ac_cpp='$CPP $CPPFLAGS' |
3225 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3226 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3227 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3228 |
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3229 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
3230 |
# On Suns, sometimes $CPP names a directory. |
3231 |
if test -n "$CPP" && test -d "$CPP"; then |
3232 |
CPP= |
3233 |
fi |
3234 |
if test -z "$CPP"; then |
3235 |
if test "${ac_cv_prog_CPP+set}" = set; then |
3236 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3237 |
else |
3238 |
# Double quotes because CPP needs to be expanded |
3239 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3240 |
do |
3241 |
ac_preproc_ok=false |
3242 |
for ac_c_preproc_warn_flag in '' yes |
3243 |
do |
3244 |
# Use a header file that comes with gcc, so configuring glibc |
3245 |
# with a fresh cross-compiler works. |
3246 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3247 |
# <limits.h> exists even on freestanding compilers. |
3248 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
3249 |
# not just through cpp. "Syntax error" is here to catch this case. |
3250 |
cat >conftest.$ac_ext <<_ACEOF |
3251 |
/* confdefs.h. */ |
3252 |
_ACEOF |
3253 |
cat confdefs.h >>conftest.$ac_ext |
3254 |
cat >>conftest.$ac_ext <<_ACEOF |
3255 |
/* end confdefs.h. */ |
3256 |
#ifdef __STDC__ |
3257 |
# include <limits.h> |
3258 |
#else |
3259 |
# include <assert.h> |
3260 |
#endif |
3261 |
Syntax error |
3262 |
_ACEOF |
3263 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3264 |
case "(($ac_try" in |
3265 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3266 |
*) ac_try_echo=$ac_try;; |
3267 |
esac |
3268 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3269 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3270 |
ac_status=$? |
3271 |
grep -v '^ *+' conftest.er1 >conftest.err |
3272 |
rm -f conftest.er1 |
3273 |
cat conftest.err >&5 |
3274 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3275 |
(exit $ac_status); } >/dev/null; then |
3276 |
if test -s conftest.err; then |
3277 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3278 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3279 |
else |
3280 |
ac_cpp_err= |
3281 |
fi |
3282 |
else |
3283 |
ac_cpp_err=yes |
3284 |
fi |
3285 |
if test -z "$ac_cpp_err"; then |
3286 |
: |
3287 |
else |
3288 |
echo "$as_me: failed program was:" >&5 |
3289 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3290 |
|
3291 |
# Broken: fails on valid input. |
3292 |
continue |
3293 |
fi |
3294 |
|
3295 |
rm -f conftest.err conftest.$ac_ext |
3296 |
|
3297 |
# OK, works on sane cases. Now check whether nonexistent headers |
3298 |
# can be detected and how. |
3299 |
cat >conftest.$ac_ext <<_ACEOF |
3300 |
/* confdefs.h. */ |
3301 |
_ACEOF |
3302 |
cat confdefs.h >>conftest.$ac_ext |
3303 |
cat >>conftest.$ac_ext <<_ACEOF |
3304 |
/* end confdefs.h. */ |
3305 |
#include <ac_nonexistent.h> |
3306 |
_ACEOF |
3307 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3308 |
case "(($ac_try" in |
3309 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3310 |
*) ac_try_echo=$ac_try;; |
3311 |
esac |
3312 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3313 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3314 |
ac_status=$? |
3315 |
grep -v '^ *+' conftest.er1 >conftest.err |
3316 |
rm -f conftest.er1 |
3317 |
cat conftest.err >&5 |
3318 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3319 |
(exit $ac_status); } >/dev/null; then |
3320 |
if test -s conftest.err; then |
3321 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3322 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3323 |
else |
3324 |
ac_cpp_err= |
3325 |
fi |
3326 |
else |
3327 |
ac_cpp_err=yes |
3328 |
fi |
3329 |
if test -z "$ac_cpp_err"; then |
3330 |
# Broken: success on invalid input. |
3331 |
continue |
3332 |
else |
3333 |
echo "$as_me: failed program was:" >&5 |
3334 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3335 |
|
3336 |
# Passes both tests. |
3337 |
ac_preproc_ok=: |
3338 |
break |
3339 |
fi |
3340 |
|
3341 |
rm -f conftest.err conftest.$ac_ext |
3342 |
|
3343 |
done |
3344 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3345 |
rm -f conftest.err conftest.$ac_ext |
3346 |
if $ac_preproc_ok; then |
3347 |
break |
3348 |
fi |
3349 |
|
3350 |
done |
3351 |
ac_cv_prog_CPP=$CPP |
3352 |
|
3353 |
fi |
3354 |
CPP=$ac_cv_prog_CPP |
3355 |
else |
3356 |
ac_cv_prog_CPP=$CPP |
3357 |
fi |
3358 |
{ echo "$as_me:$LINENO: result: $CPP" >&5 |
3359 |
echo "${ECHO_T}$CPP" >&6; } |
3360 |
ac_preproc_ok=false |
3361 |
for ac_c_preproc_warn_flag in '' yes |
3362 |
do |
3363 |
# Use a header file that comes with gcc, so configuring glibc |
3364 |
# with a fresh cross-compiler works. |
3365 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3366 |
# <limits.h> exists even on freestanding compilers. |
3367 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
3368 |
# not just through cpp. "Syntax error" is here to catch this case. |
3369 |
cat >conftest.$ac_ext <<_ACEOF |
3370 |
/* confdefs.h. */ |
3371 |
_ACEOF |
3372 |
cat confdefs.h >>conftest.$ac_ext |
3373 |
cat >>conftest.$ac_ext <<_ACEOF |
3374 |
/* end confdefs.h. */ |
3375 |
#ifdef __STDC__ |
3376 |
# include <limits.h> |
3377 |
#else |
3378 |
# include <assert.h> |
3379 |
#endif |
3380 |
Syntax error |
3381 |
_ACEOF |
3382 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3383 |
case "(($ac_try" in |
3384 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3385 |
*) ac_try_echo=$ac_try;; |
3386 |
esac |
3387 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3388 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3389 |
ac_status=$? |
3390 |
grep -v '^ *+' conftest.er1 >conftest.err |
3391 |
rm -f conftest.er1 |
3392 |
cat conftest.err >&5 |
3393 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3394 |
(exit $ac_status); } >/dev/null; then |
3395 |
if test -s conftest.err; then |
3396 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3397 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3398 |
else |
3399 |
ac_cpp_err= |
3400 |
fi |
3401 |
else |
3402 |
ac_cpp_err=yes |
3403 |
fi |
3404 |
if test -z "$ac_cpp_err"; then |
3405 |
: |
3406 |
else |
3407 |
echo "$as_me: failed program was:" >&5 |
3408 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3409 |
|
3410 |
# Broken: fails on valid input. |
3411 |
continue |
3412 |
fi |
3413 |
|
3414 |
rm -f conftest.err conftest.$ac_ext |
3415 |
|
3416 |
# OK, works on sane cases. Now check whether nonexistent headers |
3417 |
# can be detected and how. |
3418 |
cat >conftest.$ac_ext <<_ACEOF |
3419 |
/* confdefs.h. */ |
3420 |
_ACEOF |
3421 |
cat confdefs.h >>conftest.$ac_ext |
3422 |
cat >>conftest.$ac_ext <<_ACEOF |
3423 |
/* end confdefs.h. */ |
3424 |
#include <ac_nonexistent.h> |
3425 |
_ACEOF |
3426 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3427 |
case "(($ac_try" in |
3428 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3429 |
*) ac_try_echo=$ac_try;; |
3430 |
esac |
3431 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3432 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3433 |
ac_status=$? |
3434 |
grep -v '^ *+' conftest.er1 >conftest.err |
3435 |
rm -f conftest.er1 |
3436 |
cat conftest.err >&5 |
3437 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3438 |
(exit $ac_status); } >/dev/null; then |
3439 |
if test -s conftest.err; then |
3440 |
ac_cpp_err=$ac_c_preproc_warn_flag |
3441 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3442 |
else |
3443 |
ac_cpp_err= |
3444 |
fi |
3445 |
else |
3446 |
ac_cpp_err=yes |
3447 |
fi |
3448 |
if test -z "$ac_cpp_err"; then |
3449 |
# Broken: success on invalid input. |
3450 |
continue |
3451 |
else |
3452 |
echo "$as_me: failed program was:" >&5 |
3453 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3454 |
|
3455 |
# Passes both tests. |
3456 |
ac_preproc_ok=: |
3457 |
break |
3458 |
fi |
3459 |
|
3460 |
rm -f conftest.err conftest.$ac_ext |
3461 |
|
3462 |
done |
3463 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3464 |
rm -f conftest.err conftest.$ac_ext |
3465 |
if $ac_preproc_ok; then |
3466 |
: |
3467 |
else |
3468 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3469 |
See \`config.log' for more details." >&5 |
3470 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
3471 |
See \`config.log' for more details." >&2;} |
3472 |
{ (exit 1); exit 1; }; } |
3473 |
fi |
3474 |
|
3475 |
ac_ext=c |
3476 |
ac_cpp='$CPP $CPPFLAGS' |
3477 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3478 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3479 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3480 |
|
3481 |
|
3482 |
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3483 |
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3484 |
if test "${ac_cv_path_GREP+set}" = set; then |
3485 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3486 |
else |
3487 |
# Extract the first word of "grep ggrep" to use in msg output |
3488 |
if test -z "$GREP"; then |
3489 |
set dummy grep ggrep; ac_prog_name=$2 |
3490 |
if test "${ac_cv_path_GREP+set}" = set; then |
3491 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3492 |
else |
3493 |
ac_path_GREP_found=false |
3494 |
# Loop through the user's path and test for each of PROGNAME-LIST |
3495 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3496 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3497 |
do |
3498 |
IFS=$as_save_IFS |
3499 |
test -z "$as_dir" && as_dir=. |
3500 |
for ac_prog in grep ggrep; do |
3501 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3502 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3503 |
{ test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
3504 |
# Check for GNU ac_path_GREP and select it if it is found. |
3505 |
# Check for GNU $ac_path_GREP |
3506 |
case `"$ac_path_GREP" --version 2>&1` in |
3507 |
*GNU*) |
3508 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3509 |
*) |
3510 |
ac_count=0 |
3511 |
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3512 |
while : |
3513 |
do |
3514 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
3515 |
mv "conftest.tmp" "conftest.in" |
3516 |
cp "conftest.in" "conftest.nl" |
3517 |
echo 'GREP' >> "conftest.nl" |
3518 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3519 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3520 |
ac_count=`expr $ac_count + 1` |
3521 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3522 |
# Best one so far, save it but keep looking for a better one |
3523 |
ac_cv_path_GREP="$ac_path_GREP" |
3524 |
ac_path_GREP_max=$ac_count |
3525 |
fi |
3526 |
# 10*(2^10) chars as input seems more than enough |
3527 |
test $ac_count -gt 10 && break |
3528 |
done |
3529 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3530 |
esac |
3531 |
|
3532 |
|
3533 |
$ac_path_GREP_found && break 3 |
3534 |
done |
3535 |
done |
3536 |
|
3537 |
done |
3538 |
IFS=$as_save_IFS |
3539 |
|
3540 |
|
3541 |
fi |
3542 |
|
3543 |
GREP="$ac_cv_path_GREP" |
3544 |
if test -z "$GREP"; then |
3545 |
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3546 |
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3547 |
{ (exit 1); exit 1; }; } |
3548 |
fi |
3549 |
|
3550 |
else |
3551 |
ac_cv_path_GREP=$GREP |
3552 |
fi |
3553 |
|
3554 |
|
3555 |
fi |
3556 |
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3557 |
echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3558 |
GREP="$ac_cv_path_GREP" |
3559 |
|
3560 |
|
3561 |
{ echo "$as_me:$LINENO: checking for egrep" >&5 |
3562 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3563 |
if test "${ac_cv_path_EGREP+set}" = set; then |
3564 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3565 |
else |
3566 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3567 |
then ac_cv_path_EGREP="$GREP -E" |
3568 |
else |
3569 |
# Extract the first word of "egrep" to use in msg output |
3570 |
if test -z "$EGREP"; then |
3571 |
set dummy egrep; ac_prog_name=$2 |
3572 |
if test "${ac_cv_path_EGREP+set}" = set; then |
3573 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3574 |
else |
3575 |
ac_path_EGREP_found=false |
3576 |
# Loop through the user's path and test for each of PROGNAME-LIST |
3577 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3578 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3579 |
do |
3580 |
IFS=$as_save_IFS |
3581 |
test -z "$as_dir" && as_dir=. |
3582 |
for ac_prog in egrep; do |
3583 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3584 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3585 |
{ test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
3586 |
# Check for GNU ac_path_EGREP and select it if it is found. |
3587 |
# Check for GNU $ac_path_EGREP |
3588 |
case `"$ac_path_EGREP" --version 2>&1` in |
3589 |
*GNU*) |
3590 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
3591 |
*) |
3592 |
ac_count=0 |
3593 |
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3594 |
while : |
3595 |
do |
3596 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
3597 |
mv "conftest.tmp" "conftest.in" |
3598 |
cp "conftest.in" "conftest.nl" |
3599 |
echo 'EGREP' >> "conftest.nl" |
3600 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3601 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3602 |
ac_count=`expr $ac_count + 1` |
3603 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
3604 |
# Best one so far, save it but keep looking for a better one |
3605 |
ac_cv_path_EGREP="$ac_path_EGREP" |
3606 |
ac_path_EGREP_max=$ac_count |
3607 |
fi |
3608 |
# 10*(2^10) chars as input seems more than enough |
3609 |
test $ac_count -gt 10 && break |
3610 |
done |
3611 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3612 |
esac |
3613 |
|
3614 |
|
3615 |
$ac_path_EGREP_found && break 3 |
3616 |
done |
3617 |
done |
3618 |
|
3619 |
done |
3620 |
IFS=$as_save_IFS |
3621 |
|
3622 |
|
3623 |
fi |
3624 |
|
3625 |
EGREP="$ac_cv_path_EGREP" |
3626 |
if test -z "$EGREP"; then |
3627 |
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3628 |
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3629 |
{ (exit 1); exit 1; }; } |
3630 |
fi |
3631 |
|
3632 |
else |
3633 |
ac_cv_path_EGREP=$EGREP |
3634 |
fi |
3635 |
|
3636 |
|
3637 |
fi |
3638 |
fi |
3639 |
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3640 |
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
3641 |
EGREP="$ac_cv_path_EGREP" |
3642 |
|
3643 |
|
3644 |
if test $ac_cv_c_compiler_gnu = yes; then |
3645 |
{ echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3646 |
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } |
3647 |
if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
3648 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3649 |
else |
3650 |
ac_pattern="Autoconf.*'x'" |
3651 |
cat >conftest.$ac_ext <<_ACEOF |
3652 |
/* confdefs.h. */ |
3653 |
_ACEOF |
3654 |
cat confdefs.h >>conftest.$ac_ext |
3655 |
cat >>conftest.$ac_ext <<_ACEOF |
3656 |
/* end confdefs.h. */ |
3657 |
#include <sgtty.h> |
3658 |
Autoconf TIOCGETP |
3659 |
_ACEOF |
3660 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3661 |
$EGREP "$ac_pattern" >/dev/null 2>&1; then |
3662 |
ac_cv_prog_gcc_traditional=yes |
3663 |
else |
3664 |
ac_cv_prog_gcc_traditional=no |
3665 |
fi |
3666 |
rm -f conftest* |
3667 |
|
3668 |
|
3669 |
if test $ac_cv_prog_gcc_traditional = no; then |
3670 |
cat >conftest.$ac_ext <<_ACEOF |
3671 |
/* confdefs.h. */ |
3672 |
_ACEOF |
3673 |
cat confdefs.h >>conftest.$ac_ext |
3674 |
cat >>conftest.$ac_ext <<_ACEOF |
3675 |
/* end confdefs.h. */ |
3676 |
#include <termio.h> |
3677 |
Autoconf TCGETA |
3678 |
_ACEOF |
3679 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3680 |
$EGREP "$ac_pattern" >/dev/null 2>&1; then |
3681 |
ac_cv_prog_gcc_traditional=yes |
3682 |
fi |
3683 |
rm -f conftest* |
3684 |
|
3685 |
fi |
3686 |
fi |
3687 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3688 |
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } |
3689 |
if test $ac_cv_prog_gcc_traditional = yes; then |
3690 |
CC="$CC -traditional" |
3691 |
fi |
3692 |
fi |
3693 |
|
3694 |
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3695 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
3696 |
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
3697 |
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
3698 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3699 |
else |
3700 |
cat >conftest.make <<\_ACEOF |
3701 |
SHELL = /bin/sh |
3702 |
all: |
3703 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
3704 |
_ACEOF |
3705 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3706 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3707 |
*@@@%%%=?*=@@@%%%*) |
3708 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
3709 |
*) |
3710 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
3711 |
esac |
3712 |
rm -f conftest.make |
3713 |
fi |
3714 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3715 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
3716 |
echo "${ECHO_T}yes" >&6; } |
3717 |
SET_MAKE= |
3718 |
else |
3719 |
{ echo "$as_me:$LINENO: result: no" >&5 |
3720 |
echo "${ECHO_T}no" >&6; } |
3721 |
SET_MAKE="MAKE=${MAKE-make}" |
3722 |
fi |
3723 |
|
3724 |
ac_aux_dir= |
3725 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
3726 |
if test -f "$ac_dir/install-sh"; then |
3727 |
ac_aux_dir=$ac_dir |
3728 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
3729 |
break |
3730 |
elif test -f "$ac_dir/install.sh"; then |
3731 |
ac_aux_dir=$ac_dir |
3732 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
3733 |
break |
3734 |
elif test -f "$ac_dir/shtool"; then |
3735 |
ac_aux_dir=$ac_dir |
3736 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
3737 |
break |
3738 |
fi |
3739 |
done |
3740 |
if test -z "$ac_aux_dir"; then |
3741 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
3742 |
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
3743 |
{ (exit 1); exit 1; }; } |
3744 |
fi |
3745 |
|
3746 |
# These three variables are undocumented and unsupported, |
3747 |
# and are intended to be withdrawn in a future Autoconf release. |
3748 |
# They can cause serious problems if a builder's source tree is in a directory |
3749 |
# whose full name contains unusual characters. |
3750 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
3751 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
3752 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
3753 |
|
3754 |
|
3755 |
# Find a good install program. We prefer a C program (faster), |
3756 |
# so one script is as good as another. But avoid the broken or |
3757 |
# incompatible versions: |
3758 |
# SysV /etc/install, /usr/sbin/install |
3759 |
# SunOS /usr/etc/install |
3760 |
# IRIX /sbin/install |
3761 |
# AIX /bin/install |
3762 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
3763 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3764 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3765 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3766 |
# OS/2's system install, which has a completely different semantic |
3767 |
# ./install, which can be erroneously created by make from ./install.sh. |
3768 |
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3769 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
3770 |
if test -z "$INSTALL"; then |
3771 |
if test "${ac_cv_path_install+set}" = set; then |
3772 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3773 |
else |
3774 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3775 |
for as_dir in $PATH |
3776 |
do |
3777 |
IFS=$as_save_IFS |
3778 |
test -z "$as_dir" && as_dir=. |
3779 |
# Account for people who put trailing slashes in PATH elements. |
3780 |
case $as_dir/ in |
3781 |
./ | .// | /cC/* | \ |
3782 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3783 |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3784 |
/usr/ucb/* ) ;; |
3785 |
*) |
3786 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
3787 |
# Don't use installbsd from OSF since it installs stuff as root |
3788 |
# by default. |
3789 |
for ac_prog in ginstall scoinst install; do |
3790 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3791 |
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
3792 |
if test $ac_prog = install && |
3793 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3794 |
# AIX install. It has an incompatible calling convention. |
3795 |
: |
3796 |
elif test $ac_prog = install && |
3797 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3798 |
# program-specific install script used by HP pwplus--don't use. |
3799 |
: |
3800 |
else |
3801 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3802 |
break 3 |
3803 |
fi |
3804 |
fi |
3805 |
done |
3806 |
done |
3807 |
;; |
3808 |
esac |
3809 |
done |
3810 |
IFS=$as_save_IFS |
3811 |
|
3812 |
|
3813 |
fi |
3814 |
if test "${ac_cv_path_install+set}" = set; then |
3815 |
INSTALL=$ac_cv_path_install |
3816 |
else |
3817 |
# As a last resort, use the slow shell script. Don't cache a |
3818 |
# value for INSTALL within a source directory, because that will |
3819 |
# break other packages using the cache if that directory is |
3820 |
# removed, or if the value is a relative name. |
3821 |
INSTALL=$ac_install_sh |
3822 |
fi |
3823 |
fi |
3824 |
{ echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3825 |
echo "${ECHO_T}$INSTALL" >&6; } |
3826 |
|
3827 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3828 |
# It thinks the first close brace ends the variable substitution. |
3829 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3830 |
|
3831 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3832 |
|
3833 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3834 |
|
3835 |
# Extract the first word of "rm", so it can be a program name with args. |
3836 |
set dummy rm; ac_word=$2 |
3837 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3838 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3839 |
if test "${ac_cv_path_RM+set}" = set; then |
3840 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3841 |
else |
3842 |
case $RM in |
3843 |
[\\/]* | ?:[\\/]*) |
3844 |
ac_cv_path_RM="$RM" # Let the user override the test with a path. |
3845 |
;; |
3846 |
*) |
3847 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3848 |
for as_dir in $PATH |
3849 |
do |
3850 |
IFS=$as_save_IFS |
3851 |
test -z "$as_dir" && as_dir=. |
3852 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3853 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
3854 |
ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
3855 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3856 |
break 2 |
3857 |
fi |
3858 |
done |
3859 |
done |
3860 |
IFS=$as_save_IFS |
3861 |
|
3862 |
;; |
3863 |
esac |
3864 |
fi |
3865 |
RM=$ac_cv_path_RM |
3866 |
if test -n "$RM"; then |
3867 |
{ echo "$as_me:$LINENO: result: $RM" >&5 |
3868 |
echo "${ECHO_T}$RM" >&6; } |
3869 |
else |
3870 |
{ echo "$as_me:$LINENO: result: no" >&5 |
3871 |
echo "${ECHO_T}no" >&6; } |
3872 |
fi |
3873 |
|
3874 |
|
3875 |
# Extract the first word of "cp", so it can be a program name with args. |
3876 |
set dummy cp; ac_word=$2 |
3877 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3878 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3879 |
if test "${ac_cv_path_CP+set}" = set; then |
3880 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3881 |
else |
3882 |
case $CP in |
3883 |
[\\/]* | ?:[\\/]*) |
3884 |
ac_cv_path_CP="$CP" # Let the user override the test with a path. |
3885 |
;; |
3886 |
*) |
3887 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3888 |
for as_dir in $PATH |
3889 |
do |
3890 |
IFS=$as_save_IFS |
3891 |
test -z "$as_dir" && as_dir=. |
3892 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3893 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
3894 |
ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
3895 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3896 |
break 2 |
3897 |
fi |
3898 |
done |
3899 |
done |
3900 |
IFS=$as_save_IFS |
3901 |
|
3902 |
;; |
3903 |
esac |
3904 |
fi |
3905 |
CP=$ac_cv_path_CP |
3906 |
if test -n "$CP"; then |
3907 |
{ echo "$as_me:$LINENO: result: $CP" >&5 |
3908 |
echo "${ECHO_T}$CP" >&6; } |
3909 |
else |
3910 |
{ echo "$as_me:$LINENO: result: no" >&5 |
3911 |
echo "${ECHO_T}no" >&6; } |
3912 |
fi |
3913 |
|
3914 |
|
3915 |
# Extract the first word of "mv", so it can be a program name with args. |
3916 |
set dummy mv; ac_word=$2 |
3917 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3918 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3919 |
if test "${ac_cv_path_MV+set}" = set; then |
3920 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3921 |
else |
3922 |
case $MV in |
3923 |
[\\/]* | ?:[\\/]*) |
3924 |
ac_cv_path_MV="$MV" # Let the user override the test with a path. |
3925 |
;; |
3926 |
*) |
3927 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3928 |
for as_dir in $PATH |
3929 |
do |
3930 |
IFS=$as_save_IFS |
3931 |
test -z "$as_dir" && as_dir=. |
3932 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3933 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
3934 |
ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
3935 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3936 |
break 2 |
3937 |
fi |
3938 |
done |
3939 |
done |
3940 |
IFS=$as_save_IFS |
3941 |
|
3942 |
;; |
3943 |
esac |
3944 |
fi |
3945 |
MV=$ac_cv_path_MV |
3946 |
if test -n "$MV"; then |
3947 |
{ echo "$as_me:$LINENO: result: $MV" >&5 |
3948 |
echo "${ECHO_T}$MV" >&6; } |
3949 |
else |
3950 |
{ echo "$as_me:$LINENO: result: no" >&5 |
3951 |
echo "${ECHO_T}no" >&6; } |
3952 |
fi |
3953 |
|
3954 |
|
3955 |
# Extract the first word of "ln", so it can be a program name with args. |
3956 |
set dummy ln; ac_word=$2 |
3957 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3958 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3959 |
if test "${ac_cv_path_LN+set}" = set; then |
3960 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3961 |
else |
3962 |
case $LN in |
3963 |
[\\/]* | ?:[\\/]*) |
3964 |
ac_cv_path_LN="$LN" # Let the user override the test with a path. |
3965 |
;; |
3966 |
*) |
3967 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3968 |
for as_dir in $PATH |
3969 |
do |
3970 |
IFS=$as_save_IFS |
3971 |
test -z "$as_dir" && as_dir=. |
3972 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3973 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
3974 |
ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
3975 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3976 |
break 2 |
3977 |
fi |
3978 |
done |
3979 |
done |
3980 |
IFS=$as_save_IFS |
3981 |
|
3982 |
;; |
3983 |
esac |
3984 |
fi |
3985 |
LN=$ac_cv_path_LN |
3986 |
if test -n "$LN"; then |
3987 |
{ echo "$as_me:$LINENO: result: $LN" >&5 |
3988 |
echo "${ECHO_T}$LN" >&6; } |
3989 |
else |
3990 |
{ echo "$as_me:$LINENO: result: no" >&5 |
3991 |
echo "${ECHO_T}no" >&6; } |
3992 |
fi |
3993 |
|
3994 |
|
3995 |
# Extract the first word of "sed", so it can be a program name with args. |
3996 |
set dummy sed; ac_word=$2 |
3997 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3998 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3999 |
if test "${ac_cv_path_SED+set}" = set; then |
4000 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4001 |
else |
4002 |
case $SED in |
4003 |
[\\/]* | ?:[\\/]*) |
4004 |
ac_cv_path_SED="$SED" # Let the user override the test with a path. |
4005 |
;; |
4006 |
*) |
4007 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4008 |
for as_dir in $PATH |
4009 |
do |
4010 |
IFS=$as_save_IFS |
4011 |
test -z "$as_dir" && as_dir=. |
4012 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4013 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
4014 |
ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
4015 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4016 |
break 2 |
4017 |
fi |
4018 |
done |
4019 |
done |
4020 |
IFS=$as_save_IFS |
4021 |
|
4022 |
;; |
4023 |
esac |
4024 |
fi |
4025 |
SED=$ac_cv_path_SED |
4026 |
if test -n "$SED"; then |
4027 |
{ echo "$as_me:$LINENO: result: $SED" >&5 |
4028 |
echo "${ECHO_T}$SED" >&6; } |
4029 |
else |
4030 |
{ echo "$as_me:$LINENO: result: no" >&5 |
4031 |
echo "${ECHO_T}no" >&6; } |
4032 |
fi |
4033 |
|
4034 |
|
4035 |
# Extract the first word of "ar", so it can be a program name with args. |
4036 |
set dummy ar; ac_word=$2 |
4037 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4038 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4039 |
if test "${ac_cv_path_AR+set}" = set; then |
4040 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4041 |
else |
4042 |
case $AR in |
4043 |
[\\/]* | ?:[\\/]*) |
4044 |
ac_cv_path_AR="$AR" # Let the user override the test with a path. |
4045 |
;; |
4046 |
*) |
4047 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4048 |
for as_dir in $PATH |
4049 |
do |
4050 |
IFS=$as_save_IFS |
4051 |
test -z "$as_dir" && as_dir=. |
4052 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4053 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
4054 |
ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
4055 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4056 |
break 2 |
4057 |
fi |
4058 |
done |
4059 |
done |
4060 |
IFS=$as_save_IFS |
4061 |
|
4062 |
;; |
4063 |
esac |
4064 |
fi |
4065 |
AR=$ac_cv_path_AR |
4066 |
if test -n "$AR"; then |
4067 |
{ echo "$as_me:$LINENO: result: $AR" >&5 |
4068 |
echo "${ECHO_T}$AR" >&6; } |
4069 |
else |
4070 |
{ echo "$as_me:$LINENO: result: no" >&5 |
4071 |
echo "${ECHO_T}no" >&6; } |
4072 |
fi |
4073 |
|
4074 |
|
4075 |
# Extract the first word of "ld", so it can be a program name with args. |
4076 |
set dummy ld; ac_word=$2 |
4077 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4078 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4079 |
if test "${ac_cv_path_LD+set}" = set; then |
4080 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4081 |
else |
4082 |
case $LD in |
4083 |
[\\/]* | ?:[\\/]*) |
4084 |
ac_cv_path_LD="$LD" # Let the user override the test with a path. |
4085 |
;; |
4086 |
*) |
4087 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4088 |
for as_dir in $PATH |
4089 |
do |
4090 |
IFS=$as_save_IFS |
4091 |
test -z "$as_dir" && as_dir=. |
4092 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4093 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
4094 |
ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
4095 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4096 |
break 2 |
4097 |
fi |
4098 |
done |
4099 |
done |
4100 |
IFS=$as_save_IFS |
4101 |
|
4102 |
;; |
4103 |
esac |
4104 |
fi |
4105 |
LD=$ac_cv_path_LD |
4106 |
if test -n "$LD"; then |
4107 |
{ echo "$as_me:$LINENO: result: $LD" >&5 |
4108 |
echo "${ECHO_T}$LD" >&6; } |
4109 |
else |
4110 |
{ echo "$as_me:$LINENO: result: no" >&5 |
4111 |
echo "${ECHO_T}no" >&6; } |
4112 |
fi |
4113 |
|
4114 |
|
4115 |
# Extract the first word of "test", so it can be a program name with args. |
4116 |
set dummy test; ac_word=$2 |
4117 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4118 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4119 |
if test "${ac_cv_path_TEST+set}" = set; then |
4120 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4121 |
else |
4122 |
case $TEST in |
4123 |
[\\/]* | ?:[\\/]*) |
4124 |
ac_cv_path_TEST="$TEST" # Let the user override the test with a path. |
4125 |
;; |
4126 |
*) |
4127 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4128 |
for as_dir in $PATH |
4129 |
do |
4130 |
IFS=$as_save_IFS |
4131 |
test -z "$as_dir" && as_dir=. |
4132 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4133 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
4134 |
ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext" |
4135 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4136 |
break 2 |
4137 |
fi |
4138 |
done |
4139 |
done |
4140 |
IFS=$as_save_IFS |
4141 |
|
4142 |
test -z "$ac_cv_path_TEST" && ac_cv_path_TEST="test" |
4143 |
;; |
4144 |
esac |
4145 |
fi |
4146 |
TEST=$ac_cv_path_TEST |
4147 |
if test -n "$TEST"; then |
4148 |
{ echo "$as_me:$LINENO: result: $TEST" >&5 |
4149 |
echo "${ECHO_T}$TEST" >&6; } |
4150 |
else |
4151 |
{ echo "$as_me:$LINENO: result: no" >&5 |
4152 |
echo "${ECHO_T}no" >&6; } |
4153 |
fi |
4154 |
|
4155 |
|
4156 |
|
4157 |
if test "$libexecdir" = '${exec_prefix}/libexec' && |
4158 |
test "$localstatedir" = '${prefix}/var'; then |
4159 |
libexecdir='${bindir}' |
4160 |
localstatedir='${prefix}' |
4161 |
fi |
4162 |
|
4163 |
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4164 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
4165 |
if test "${ac_cv_header_stdc+set}" = set; then |
4166 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4167 |
else |
4168 |
cat >conftest.$ac_ext <<_ACEOF |
4169 |
/* confdefs.h. */ |
4170 |
_ACEOF |
4171 |
cat confdefs.h >>conftest.$ac_ext |
4172 |
cat >>conftest.$ac_ext <<_ACEOF |
4173 |
/* end confdefs.h. */ |
4174 |
#include <stdlib.h> |
4175 |
#include <stdarg.h> |
4176 |
#include <string.h> |
4177 |
#include <float.h> |
4178 |
|
4179 |
int |
4180 |
main () |
4181 |
{ |
4182 |
|
4183 |
; |
4184 |
return 0; |
4185 |
} |
4186 |
_ACEOF |
4187 |
rm -f conftest.$ac_objext |
4188 |
if { (ac_try="$ac_compile" |
4189 |
case "(($ac_try" in |
4190 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4191 |
*) ac_try_echo=$ac_try;; |
4192 |
esac |
4193 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4194 |
(eval "$ac_compile") 2>conftest.er1 |
4195 |
ac_status=$? |
4196 |
grep -v '^ *+' conftest.er1 >conftest.err |
4197 |
rm -f conftest.er1 |
4198 |
cat conftest.err >&5 |
4199 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4200 |
(exit $ac_status); } && |
4201 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4202 |
{ (case "(($ac_try" in |
4203 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4204 |
*) ac_try_echo=$ac_try;; |
4205 |
esac |
4206 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4207 |
(eval "$ac_try") 2>&5 |
4208 |
ac_status=$? |
4209 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4210 |
(exit $ac_status); }; } && |
4211 |
{ ac_try='test -s conftest.$ac_objext' |
4212 |
{ (case "(($ac_try" in |
4213 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4214 |
*) ac_try_echo=$ac_try;; |
4215 |
esac |
4216 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4217 |
(eval "$ac_try") 2>&5 |
4218 |
ac_status=$? |
4219 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4220 |
(exit $ac_status); }; }; then |
4221 |
ac_cv_header_stdc=yes |
4222 |
else |
4223 |
echo "$as_me: failed program was:" >&5 |
4224 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4225 |
|
4226 |
ac_cv_header_stdc=no |
4227 |
fi |
4228 |
|
4229 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4230 |
|
4231 |
if test $ac_cv_header_stdc = yes; then |
4232 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4233 |
cat >conftest.$ac_ext <<_ACEOF |
4234 |
/* confdefs.h. */ |
4235 |
_ACEOF |
4236 |
cat confdefs.h >>conftest.$ac_ext |
4237 |
cat >>conftest.$ac_ext <<_ACEOF |
4238 |
/* end confdefs.h. */ |
4239 |
#include <string.h> |
4240 |
|
4241 |
_ACEOF |
4242 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4243 |
$EGREP "memchr" >/dev/null 2>&1; then |
4244 |
: |
4245 |
else |
4246 |
ac_cv_header_stdc=no |
4247 |
fi |
4248 |
rm -f conftest* |
4249 |
|
4250 |
fi |
4251 |
|
4252 |
if test $ac_cv_header_stdc = yes; then |
4253 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4254 |
cat >conftest.$ac_ext <<_ACEOF |
4255 |
/* confdefs.h. */ |
4256 |
_ACEOF |
4257 |
cat confdefs.h >>conftest.$ac_ext |
4258 |
cat >>conftest.$ac_ext <<_ACEOF |
4259 |
/* end confdefs.h. */ |
4260 |
#include <stdlib.h> |
4261 |
|
4262 |
_ACEOF |
4263 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4264 |
$EGREP "free" >/dev/null 2>&1; then |
4265 |
: |
4266 |
else |
4267 |
ac_cv_header_stdc=no |
4268 |
fi |
4269 |
rm -f conftest* |
4270 |
|
4271 |
fi |
4272 |
|
4273 |
if test $ac_cv_header_stdc = yes; then |
4274 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4275 |
if test "$cross_compiling" = yes; then |
4276 |
: |
4277 |
else |
4278 |
cat >conftest.$ac_ext <<_ACEOF |
4279 |
/* confdefs.h. */ |
4280 |
_ACEOF |
4281 |
cat confdefs.h >>conftest.$ac_ext |
4282 |
cat >>conftest.$ac_ext <<_ACEOF |
4283 |
/* end confdefs.h. */ |
4284 |
#include <ctype.h> |
4285 |
#include <stdlib.h> |
4286 |
#if ((' ' & 0x0FF) == 0x020) |
4287 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4288 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4289 |
#else |
4290 |
# define ISLOWER(c) \ |
4291 |
(('a' <= (c) && (c) <= 'i') \ |
4292 |
|| ('j' <= (c) && (c) <= 'r') \ |
4293 |
|| ('s' <= (c) && (c) <= 'z')) |
4294 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4295 |
#endif |
4296 |
|
4297 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4298 |
int |
4299 |
main () |
4300 |
{ |
4301 |
int i; |
4302 |
for (i = 0; i < 256; i++) |
4303 |
if (XOR (islower (i), ISLOWER (i)) |
4304 |
|| toupper (i) != TOUPPER (i)) |
4305 |
return 2; |
4306 |
return 0; |
4307 |
} |
4308 |
_ACEOF |
4309 |
rm -f conftest$ac_exeext |
4310 |
if { (ac_try="$ac_link" |
4311 |
case "(($ac_try" in |
4312 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4313 |
*) ac_try_echo=$ac_try;; |
4314 |
esac |
4315 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4316 |
(eval "$ac_link") 2>&5 |
4317 |
ac_status=$? |
4318 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4319 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4320 |
{ (case "(($ac_try" in |
4321 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4322 |
*) ac_try_echo=$ac_try;; |
4323 |
esac |
4324 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4325 |
(eval "$ac_try") 2>&5 |
4326 |
ac_status=$? |
4327 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4328 |
(exit $ac_status); }; }; then |
4329 |
: |
4330 |
else |
4331 |
echo "$as_me: program exited with status $ac_status" >&5 |
4332 |
echo "$as_me: failed program was:" >&5 |
4333 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4334 |
|
4335 |
( exit $ac_status ) |
4336 |
ac_cv_header_stdc=no |
4337 |
fi |
4338 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4339 |
fi |
4340 |
|
4341 |
|
4342 |
fi |
4343 |
fi |
4344 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4345 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
4346 |
if test $ac_cv_header_stdc = yes; then |
4347 |
|
4348 |
cat >>confdefs.h <<\_ACEOF |
4349 |
#define STDC_HEADERS 1 |
4350 |
_ACEOF |
4351 |
|
4352 |
fi |
4353 |
|
4354 |
|
4355 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4356 |
|
4357 |
|
4358 |
|
4359 |
|
4360 |
|
4361 |
|
4362 |
|
4363 |
|
4364 |
|
4365 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4366 |
inttypes.h stdint.h unistd.h |
4367 |
do |
4368 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4369 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4370 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
4371 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4372 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4373 |
else |
4374 |
cat >conftest.$ac_ext <<_ACEOF |
4375 |
/* confdefs.h. */ |
4376 |
_ACEOF |
4377 |
cat confdefs.h >>conftest.$ac_ext |
4378 |
cat >>conftest.$ac_ext <<_ACEOF |
4379 |
/* end confdefs.h. */ |
4380 |
$ac_includes_default |
4381 |
|
4382 |
#include <$ac_header> |
4383 |
_ACEOF |
4384 |
rm -f conftest.$ac_objext |
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 |
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 |
4397 |
(exit $ac_status); } && |
4398 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4399 |
{ (case "(($ac_try" in |
4400 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4401 |
*) ac_try_echo=$ac_try;; |
4402 |
esac |
4403 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4404 |
(eval "$ac_try") 2>&5 |
4405 |
ac_status=$? |
4406 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4407 |
(exit $ac_status); }; } && |
4408 |
{ ac_try='test -s conftest.$ac_objext' |
4409 |
{ (case "(($ac_try" in |
4410 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4411 |
*) ac_try_echo=$ac_try;; |
4412 |
esac |
4413 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4414 |
(eval "$ac_try") 2>&5 |
4415 |
ac_status=$? |
4416 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4417 |
(exit $ac_status); }; }; then |
4418 |
eval "$as_ac_Header=yes" |
4419 |
else |
4420 |
echo "$as_me: failed program was:" >&5 |
4421 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4422 |
|
4423 |
eval "$as_ac_Header=no" |
4424 |
fi |
4425 |
|
4426 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4427 |
fi |
4428 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
4429 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
4430 |
echo "${ECHO_T}$ac_res" >&6; } |
4431 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4432 |
cat >>confdefs.h <<_ACEOF |
4433 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4434 |
_ACEOF |
4435 |
|
4436 |
fi |
4437 |
|
4438 |
done |
4439 |
|
4440 |
|
4441 |
|
4442 |
|
4443 |
|
4444 |
|
4445 |
|
4446 |
|
4447 |
|
4448 |
|
4449 |
|
4450 |
|
4451 |
|
4452 |
|
4453 |
for ac_header in crypt.h inttypes.h stdint.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h libgen.h sys/wait.h wait.h link.h |
4454 |
do |
4455 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4456 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4457 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4458 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
4459 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4460 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4461 |
fi |
4462 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
4463 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
4464 |
echo "${ECHO_T}$ac_res" >&6; } |
4465 |
else |
4466 |
# Is the header compilable? |
4467 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4468 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
4469 |
cat >conftest.$ac_ext <<_ACEOF |
4470 |
/* confdefs.h. */ |
4471 |
_ACEOF |
4472 |
cat confdefs.h >>conftest.$ac_ext |
4473 |
cat >>conftest.$ac_ext <<_ACEOF |
4474 |
/* end confdefs.h. */ |
4475 |
$ac_includes_default |
4476 |
#include <$ac_header> |
4477 |
_ACEOF |
4478 |
rm -f conftest.$ac_objext |
4479 |
if { (ac_try="$ac_compile" |
4480 |
case "(($ac_try" in |
4481 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4482 |
*) ac_try_echo=$ac_try;; |
4483 |
esac |
4484 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4485 |
(eval "$ac_compile") 2>conftest.er1 |
4486 |
ac_status=$? |
4487 |
grep -v '^ *+' conftest.er1 >conftest.err |
4488 |
rm -f conftest.er1 |
4489 |
cat conftest.err >&5 |
4490 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4491 |
(exit $ac_status); } && |
4492 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4493 |
{ (case "(($ac_try" in |
4494 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4495 |
*) ac_try_echo=$ac_try;; |
4496 |
esac |
4497 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4498 |
(eval "$ac_try") 2>&5 |
4499 |
ac_status=$? |
4500 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4501 |
(exit $ac_status); }; } && |
4502 |
{ ac_try='test -s conftest.$ac_objext' |
4503 |
{ (case "(($ac_try" in |
4504 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4505 |
*) ac_try_echo=$ac_try;; |
4506 |
esac |
4507 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4508 |
(eval "$ac_try") 2>&5 |
4509 |
ac_status=$? |
4510 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4511 |
(exit $ac_status); }; }; then |
4512 |
ac_header_compiler=yes |
4513 |
else |
4514 |
echo "$as_me: failed program was:" >&5 |
4515 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4516 |
|
4517 |
ac_header_compiler=no |
4518 |
fi |
4519 |
|
4520 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4521 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4522 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
4523 |
|
4524 |
# Is the header present? |
4525 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4526 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
4527 |
cat >conftest.$ac_ext <<_ACEOF |
4528 |
/* confdefs.h. */ |
4529 |
_ACEOF |
4530 |
cat confdefs.h >>conftest.$ac_ext |
4531 |
cat >>conftest.$ac_ext <<_ACEOF |
4532 |
/* end confdefs.h. */ |
4533 |
#include <$ac_header> |
4534 |
_ACEOF |
4535 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
4536 |
case "(($ac_try" in |
4537 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4538 |
*) ac_try_echo=$ac_try;; |
4539 |
esac |
4540 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4541 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4542 |
ac_status=$? |
4543 |
grep -v '^ *+' conftest.er1 >conftest.err |
4544 |
rm -f conftest.er1 |
4545 |
cat conftest.err >&5 |
4546 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4547 |
(exit $ac_status); } >/dev/null; then |
4548 |
if test -s conftest.err; then |
4549 |
ac_cpp_err=$ac_c_preproc_warn_flag |
4550 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4551 |
else |
4552 |
ac_cpp_err= |
4553 |
fi |
4554 |
else |
4555 |
ac_cpp_err=yes |
4556 |
fi |
4557 |
if test -z "$ac_cpp_err"; then |
4558 |
ac_header_preproc=yes |
4559 |
else |
4560 |
echo "$as_me: failed program was:" >&5 |
4561 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4562 |
|
4563 |
ac_header_preproc=no |
4564 |
fi |
4565 |
|
4566 |
rm -f conftest.err conftest.$ac_ext |
4567 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4568 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
4569 |
|
4570 |
# So? What about this header? |
4571 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4572 |
yes:no: ) |
4573 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4574 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4575 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4576 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
4577 |
ac_header_preproc=yes |
4578 |
;; |
4579 |
no:yes:* ) |
4580 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4581 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4582 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4583 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4584 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
4585 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
4586 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
4587 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
4588 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4589 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4590 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4591 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
4592 |
|
4593 |
;; |
4594 |
esac |
4595 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4596 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
4597 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4598 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4599 |
else |
4600 |
eval "$as_ac_Header=\$ac_header_preproc" |
4601 |
fi |
4602 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
4603 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
4604 |
echo "${ECHO_T}$ac_res" >&6; } |
4605 |
|
4606 |
fi |
4607 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4608 |
cat >>confdefs.h <<_ACEOF |
4609 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4610 |
_ACEOF |
4611 |
|
4612 |
fi |
4613 |
|
4614 |
done |
4615 |
|
4616 |
|
4617 |
|
4618 |
{ echo "$as_me:$LINENO: checking for library containing socket" >&5 |
4619 |
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } |
4620 |
if test "${ac_cv_search_socket+set}" = set; then |
4621 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4622 |
else |
4623 |
ac_func_search_save_LIBS=$LIBS |
4624 |
cat >conftest.$ac_ext <<_ACEOF |
4625 |
/* confdefs.h. */ |
4626 |
_ACEOF |
4627 |
cat confdefs.h >>conftest.$ac_ext |
4628 |
cat >>conftest.$ac_ext <<_ACEOF |
4629 |
/* end confdefs.h. */ |
4630 |
|
4631 |
/* Override any GCC internal prototype to avoid an error. |
4632 |
Use char because int might match the return type of a GCC |
4633 |
builtin and then its argument prototype would still apply. */ |
4634 |
#ifdef __cplusplus |
4635 |
extern "C" |
4636 |
#endif |
4637 |
char socket (); |
4638 |
int |
4639 |
main () |
4640 |
{ |
4641 |
return socket (); |
4642 |
; |
4643 |
return 0; |
4644 |
} |
4645 |
_ACEOF |
4646 |
for ac_lib in '' socket; do |
4647 |
if test -z "$ac_lib"; then |
4648 |
ac_res="none required" |
4649 |
else |
4650 |
ac_res=-l$ac_lib |
4651 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4652 |
fi |
4653 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4654 |
if { (ac_try="$ac_link" |
4655 |
case "(($ac_try" in |
4656 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4657 |
*) ac_try_echo=$ac_try;; |
4658 |
esac |
4659 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4660 |
(eval "$ac_link") 2>conftest.er1 |
4661 |
ac_status=$? |
4662 |
grep -v '^ *+' conftest.er1 >conftest.err |
4663 |
rm -f conftest.er1 |
4664 |
cat conftest.err >&5 |
4665 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4666 |
(exit $ac_status); } && |
4667 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4668 |
{ (case "(($ac_try" in |
4669 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4670 |
*) ac_try_echo=$ac_try;; |
4671 |
esac |
4672 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4673 |
(eval "$ac_try") 2>&5 |
4674 |
ac_status=$? |
4675 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4676 |
(exit $ac_status); }; } && |
4677 |
{ ac_try='test -s conftest$ac_exeext' |
4678 |
{ (case "(($ac_try" in |
4679 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4680 |
*) ac_try_echo=$ac_try;; |
4681 |
esac |
4682 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4683 |
(eval "$ac_try") 2>&5 |
4684 |
ac_status=$? |
4685 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4686 |
(exit $ac_status); }; }; then |
4687 |
ac_cv_search_socket=$ac_res |
4688 |
else |
4689 |
echo "$as_me: failed program was:" >&5 |
4690 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4691 |
|
4692 |
|
4693 |
fi |
4694 |
|
4695 |
rm -f core conftest.err conftest.$ac_objext \ |
4696 |
conftest$ac_exeext |
4697 |
if test "${ac_cv_search_socket+set}" = set; then |
4698 |
break |
4699 |
fi |
4700 |
done |
4701 |
if test "${ac_cv_search_socket+set}" = set; then |
4702 |
: |
4703 |
else |
4704 |
ac_cv_search_socket=no |
4705 |
fi |
4706 |
rm conftest.$ac_ext |
4707 |
LIBS=$ac_func_search_save_LIBS |
4708 |
fi |
4709 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 |
4710 |
echo "${ECHO_T}$ac_cv_search_socket" >&6; } |
4711 |
ac_res=$ac_cv_search_socket |
4712 |
if test "$ac_res" != no; then |
4713 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4714 |
|
4715 |
else |
4716 |
{ { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5 |
4717 |
echo "$as_me: error: You have no socket()! Aborting." >&2;} |
4718 |
{ (exit 1); exit 1; }; } |
4719 |
fi |
4720 |
|
4721 |
|
4722 |
{ echo "$as_me:$LINENO: checking for library containing inet_aton" >&5 |
4723 |
echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; } |
4724 |
if test "${ac_cv_search_inet_aton+set}" = set; then |
4725 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4726 |
else |
4727 |
ac_func_search_save_LIBS=$LIBS |
4728 |
cat >conftest.$ac_ext <<_ACEOF |
4729 |
/* confdefs.h. */ |
4730 |
_ACEOF |
4731 |
cat confdefs.h >>conftest.$ac_ext |
4732 |
cat >>conftest.$ac_ext <<_ACEOF |
4733 |
/* end confdefs.h. */ |
4734 |
|
4735 |
/* Override any GCC internal prototype to avoid an error. |
4736 |
Use char because int might match the return type of a GCC |
4737 |
builtin and then its argument prototype would still apply. */ |
4738 |
#ifdef __cplusplus |
4739 |
extern "C" |
4740 |
#endif |
4741 |
char inet_aton (); |
4742 |
int |
4743 |
main () |
4744 |
{ |
4745 |
return inet_aton (); |
4746 |
; |
4747 |
return 0; |
4748 |
} |
4749 |
_ACEOF |
4750 |
for ac_lib in '' resolv; do |
4751 |
if test -z "$ac_lib"; then |
4752 |
ac_res="none required" |
4753 |
else |
4754 |
ac_res=-l$ac_lib |
4755 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4756 |
fi |
4757 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4758 |
if { (ac_try="$ac_link" |
4759 |
case "(($ac_try" in |
4760 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4761 |
*) ac_try_echo=$ac_try;; |
4762 |
esac |
4763 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4764 |
(eval "$ac_link") 2>conftest.er1 |
4765 |
ac_status=$? |
4766 |
grep -v '^ *+' conftest.er1 >conftest.err |
4767 |
rm -f conftest.er1 |
4768 |
cat conftest.err >&5 |
4769 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4770 |
(exit $ac_status); } && |
4771 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4772 |
{ (case "(($ac_try" in |
4773 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4774 |
*) ac_try_echo=$ac_try;; |
4775 |
esac |
4776 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4777 |
(eval "$ac_try") 2>&5 |
4778 |
ac_status=$? |
4779 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4780 |
(exit $ac_status); }; } && |
4781 |
{ ac_try='test -s conftest$ac_exeext' |
4782 |
{ (case "(($ac_try" in |
4783 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4784 |
*) ac_try_echo=$ac_try;; |
4785 |
esac |
4786 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4787 |
(eval "$ac_try") 2>&5 |
4788 |
ac_status=$? |
4789 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4790 |
(exit $ac_status); }; }; then |
4791 |
ac_cv_search_inet_aton=$ac_res |
4792 |
else |
4793 |
echo "$as_me: failed program was:" >&5 |
4794 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4795 |
|
4796 |
|
4797 |
fi |
4798 |
|
4799 |
rm -f core conftest.err conftest.$ac_objext \ |
4800 |
conftest$ac_exeext |
4801 |
if test "${ac_cv_search_inet_aton+set}" = set; then |
4802 |
break |
4803 |
fi |
4804 |
done |
4805 |
if test "${ac_cv_search_inet_aton+set}" = set; then |
4806 |
: |
4807 |
else |
4808 |
ac_cv_search_inet_aton=no |
4809 |
fi |
4810 |
rm conftest.$ac_ext |
4811 |
LIBS=$ac_func_search_save_LIBS |
4812 |
fi |
4813 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5 |
4814 |
echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; } |
4815 |
ac_res=$ac_cv_search_inet_aton |
4816 |
if test "$ac_res" != no; then |
4817 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4818 |
|
4819 |
else |
4820 |
inet_misc=1; |
4821 |
cat >>confdefs.h <<\_ACEOF |
4822 |
#define NO_INET_ATON 1 |
4823 |
_ACEOF |
4824 |
|
4825 |
fi |
4826 |
|
4827 |
{ echo "$as_me:$LINENO: checking for library containing inet_pton" >&5 |
4828 |
echo $ECHO_N "checking for library containing inet_pton... $ECHO_C" >&6; } |
4829 |
if test "${ac_cv_search_inet_pton+set}" = set; then |
4830 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4831 |
else |
4832 |
ac_func_search_save_LIBS=$LIBS |
4833 |
cat >conftest.$ac_ext <<_ACEOF |
4834 |
/* confdefs.h. */ |
4835 |
_ACEOF |
4836 |
cat confdefs.h >>conftest.$ac_ext |
4837 |
cat >>conftest.$ac_ext <<_ACEOF |
4838 |
/* end confdefs.h. */ |
4839 |
|
4840 |
/* Override any GCC internal prototype to avoid an error. |
4841 |
Use char because int might match the return type of a GCC |
4842 |
builtin and then its argument prototype would still apply. */ |
4843 |
#ifdef __cplusplus |
4844 |
extern "C" |
4845 |
#endif |
4846 |
char inet_pton (); |
4847 |
int |
4848 |
main () |
4849 |
{ |
4850 |
return inet_pton (); |
4851 |
; |
4852 |
return 0; |
4853 |
} |
4854 |
_ACEOF |
4855 |
for ac_lib in '' resolv nsl; do |
4856 |
if test -z "$ac_lib"; then |
4857 |
ac_res="none required" |
4858 |
else |
4859 |
ac_res=-l$ac_lib |
4860 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4861 |
fi |
4862 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4863 |
if { (ac_try="$ac_link" |
4864 |
case "(($ac_try" in |
4865 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4866 |
*) ac_try_echo=$ac_try;; |
4867 |
esac |
4868 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4869 |
(eval "$ac_link") 2>conftest.er1 |
4870 |
ac_status=$? |
4871 |
grep -v '^ *+' conftest.er1 >conftest.err |
4872 |
rm -f conftest.er1 |
4873 |
cat conftest.err >&5 |
4874 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4875 |
(exit $ac_status); } && |
4876 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4877 |
{ (case "(($ac_try" in |
4878 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4879 |
*) ac_try_echo=$ac_try;; |
4880 |
esac |
4881 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4882 |
(eval "$ac_try") 2>&5 |
4883 |
ac_status=$? |
4884 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4885 |
(exit $ac_status); }; } && |
4886 |
{ ac_try='test -s conftest$ac_exeext' |
4887 |
{ (case "(($ac_try" in |
4888 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4889 |
*) ac_try_echo=$ac_try;; |
4890 |
esac |
4891 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4892 |
(eval "$ac_try") 2>&5 |
4893 |
ac_status=$? |
4894 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4895 |
(exit $ac_status); }; }; then |
4896 |
ac_cv_search_inet_pton=$ac_res |
4897 |
else |
4898 |
echo "$as_me: failed program was:" >&5 |
4899 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4900 |
|
4901 |
|
4902 |
fi |
4903 |
|
4904 |
rm -f core conftest.err conftest.$ac_objext \ |
4905 |
conftest$ac_exeext |
4906 |
if test "${ac_cv_search_inet_pton+set}" = set; then |
4907 |
break |
4908 |
fi |
4909 |
done |
4910 |
if test "${ac_cv_search_inet_pton+set}" = set; then |
4911 |
: |
4912 |
else |
4913 |
ac_cv_search_inet_pton=no |
4914 |
fi |
4915 |
rm conftest.$ac_ext |
4916 |
LIBS=$ac_func_search_save_LIBS |
4917 |
fi |
4918 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5 |
4919 |
echo "${ECHO_T}$ac_cv_search_inet_pton" >&6; } |
4920 |
ac_res=$ac_cv_search_inet_pton |
4921 |
if test "$ac_res" != no; then |
4922 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4923 |
|
4924 |
else |
4925 |
inet_misc=1; |
4926 |
cat >>confdefs.h <<\_ACEOF |
4927 |
#define NO_INET_PTON 1 |
4928 |
_ACEOF |
4929 |
|
4930 |
fi |
4931 |
|
4932 |
{ echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5 |
4933 |
echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; } |
4934 |
if test "${ac_cv_search_inet_ntop+set}" = set; then |
4935 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4936 |
else |
4937 |
ac_func_search_save_LIBS=$LIBS |
4938 |
cat >conftest.$ac_ext <<_ACEOF |
4939 |
/* confdefs.h. */ |
4940 |
_ACEOF |
4941 |
cat confdefs.h >>conftest.$ac_ext |
4942 |
cat >>conftest.$ac_ext <<_ACEOF |
4943 |
/* end confdefs.h. */ |
4944 |
|
4945 |
/* Override any GCC internal prototype to avoid an error. |
4946 |
Use char because int might match the return type of a GCC |
4947 |
builtin and then its argument prototype would still apply. */ |
4948 |
#ifdef __cplusplus |
4949 |
extern "C" |
4950 |
#endif |
4951 |
char inet_ntop (); |
4952 |
int |
4953 |
main () |
4954 |
{ |
4955 |
return inet_ntop (); |
4956 |
; |
4957 |
return 0; |
4958 |
} |
4959 |
_ACEOF |
4960 |
for ac_lib in '' resolv nsl; do |
4961 |
if test -z "$ac_lib"; then |
4962 |
ac_res="none required" |
4963 |
else |
4964 |
ac_res=-l$ac_lib |
4965 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4966 |
fi |
4967 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4968 |
if { (ac_try="$ac_link" |
4969 |
case "(($ac_try" in |
4970 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4971 |
*) ac_try_echo=$ac_try;; |
4972 |
esac |
4973 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4974 |
(eval "$ac_link") 2>conftest.er1 |
4975 |
ac_status=$? |
4976 |
grep -v '^ *+' conftest.er1 >conftest.err |
4977 |
rm -f conftest.er1 |
4978 |
cat conftest.err >&5 |
4979 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4980 |
(exit $ac_status); } && |
4981 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4982 |
{ (case "(($ac_try" in |
4983 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4984 |
*) ac_try_echo=$ac_try;; |
4985 |
esac |
4986 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4987 |
(eval "$ac_try") 2>&5 |
4988 |
ac_status=$? |
4989 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4990 |
(exit $ac_status); }; } && |
4991 |
{ ac_try='test -s conftest$ac_exeext' |
4992 |
{ (case "(($ac_try" in |
4993 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4994 |
*) ac_try_echo=$ac_try;; |
4995 |
esac |
4996 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4997 |
(eval "$ac_try") 2>&5 |
4998 |
ac_status=$? |
4999 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5000 |
(exit $ac_status); }; }; then |
5001 |
ac_cv_search_inet_ntop=$ac_res |
5002 |
else |
5003 |
echo "$as_me: failed program was:" >&5 |
5004 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5005 |
|
5006 |
|
5007 |
fi |
5008 |
|
5009 |
rm -f core conftest.err conftest.$ac_objext \ |
5010 |
conftest$ac_exeext |
5011 |
if test "${ac_cv_search_inet_ntop+set}" = set; then |
5012 |
break |
5013 |
fi |
5014 |
done |
5015 |
if test "${ac_cv_search_inet_ntop+set}" = set; then |
5016 |
: |
5017 |
else |
5018 |
ac_cv_search_inet_ntop=no |
5019 |
fi |
5020 |
rm conftest.$ac_ext |
5021 |
LIBS=$ac_func_search_save_LIBS |
5022 |
fi |
5023 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5 |
5024 |
echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; } |
5025 |
ac_res=$ac_cv_search_inet_ntop |
5026 |
if test "$ac_res" != no; then |
5027 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5028 |
|
5029 |
else |
5030 |
inet_misc=1; |
5031 |
cat >>confdefs.h <<\_ACEOF |
5032 |
#define NO_INET_NTOP 1 |
5033 |
_ACEOF |
5034 |
|
5035 |
fi |
5036 |
|
5037 |
|
5038 |
if test "$inet_misc" = 1; then |
5039 |
INET_MISC=inet_misc.c |
5040 |
|
5041 |
fi |
5042 |
|
5043 |
{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 |
5044 |
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } |
5045 |
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then |
5046 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5047 |
else |
5048 |
cat >conftest.$ac_ext <<_ACEOF |
5049 |
/* confdefs.h. */ |
5050 |
_ACEOF |
5051 |
cat confdefs.h >>conftest.$ac_ext |
5052 |
cat >>conftest.$ac_ext <<_ACEOF |
5053 |
/* end confdefs.h. */ |
5054 |
#include <sys/types.h> |
5055 |
#include <sys/socket.h> |
5056 |
|
5057 |
|
5058 |
typedef struct sockaddr_storage ac__type_new_; |
5059 |
int |
5060 |
main () |
5061 |
{ |
5062 |
if ((ac__type_new_ *) 0) |
5063 |
return 0; |
5064 |
if (sizeof (ac__type_new_)) |
5065 |
return 0; |
5066 |
; |
5067 |
return 0; |
5068 |
} |
5069 |
_ACEOF |
5070 |
rm -f conftest.$ac_objext |
5071 |
if { (ac_try="$ac_compile" |
5072 |
case "(($ac_try" in |
5073 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5074 |
*) ac_try_echo=$ac_try;; |
5075 |
esac |
5076 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5077 |
(eval "$ac_compile") 2>conftest.er1 |
5078 |
ac_status=$? |
5079 |
grep -v '^ *+' conftest.er1 >conftest.err |
5080 |
rm -f conftest.er1 |
5081 |
cat conftest.err >&5 |
5082 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5083 |
(exit $ac_status); } && |
5084 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5085 |
{ (case "(($ac_try" in |
5086 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5087 |
*) ac_try_echo=$ac_try;; |
5088 |
esac |
5089 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5090 |
(eval "$ac_try") 2>&5 |
5091 |
ac_status=$? |
5092 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5093 |
(exit $ac_status); }; } && |
5094 |
{ ac_try='test -s conftest.$ac_objext' |
5095 |
{ (case "(($ac_try" in |
5096 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5097 |
*) ac_try_echo=$ac_try;; |
5098 |
esac |
5099 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5100 |
(eval "$ac_try") 2>&5 |
5101 |
ac_status=$? |
5102 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5103 |
(exit $ac_status); }; }; then |
5104 |
ac_cv_type_struct_sockaddr_storage=yes |
5105 |
else |
5106 |
echo "$as_me: failed program was:" >&5 |
5107 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5108 |
|
5109 |
ac_cv_type_struct_sockaddr_storage=no |
5110 |
fi |
5111 |
|
5112 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5113 |
fi |
5114 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5 |
5115 |
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; } |
5116 |
if test $ac_cv_type_struct_sockaddr_storage = yes; then |
5117 |
|
5118 |
cat >>confdefs.h <<_ACEOF |
5119 |
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
5120 |
_ACEOF |
5121 |
|
5122 |
|
5123 |
fi |
5124 |
|
5125 |
|
5126 |
if test "$ac_cv_type_struct_sockaddr_storage" = no; then |
5127 |
{ echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5 |
5128 |
echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; } |
5129 |
if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then |
5130 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5131 |
else |
5132 |
cat >conftest.$ac_ext <<_ACEOF |
5133 |
/* confdefs.h. */ |
5134 |
_ACEOF |
5135 |
cat confdefs.h >>conftest.$ac_ext |
5136 |
cat >>conftest.$ac_ext <<_ACEOF |
5137 |
/* end confdefs.h. */ |
5138 |
$ac_includes_default |
5139 |
int |
5140 |
main () |
5141 |
{ |
5142 |
static struct sockaddr_in ac_aggr; |
5143 |
if (ac_aggr.sin_len) |
5144 |
return 0; |
5145 |
; |
5146 |
return 0; |
5147 |
} |
5148 |
_ACEOF |
5149 |
rm -f conftest.$ac_objext |
5150 |
if { (ac_try="$ac_compile" |
5151 |
case "(($ac_try" in |
5152 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5153 |
*) ac_try_echo=$ac_try;; |
5154 |
esac |
5155 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5156 |
(eval "$ac_compile") 2>conftest.er1 |
5157 |
ac_status=$? |
5158 |
grep -v '^ *+' conftest.er1 >conftest.err |
5159 |
rm -f conftest.er1 |
5160 |
cat conftest.err >&5 |
5161 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5162 |
(exit $ac_status); } && |
5163 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5164 |
{ (case "(($ac_try" in |
5165 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5166 |
*) ac_try_echo=$ac_try;; |
5167 |
esac |
5168 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5169 |
(eval "$ac_try") 2>&5 |
5170 |
ac_status=$? |
5171 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5172 |
(exit $ac_status); }; } && |
5173 |
{ ac_try='test -s conftest.$ac_objext' |
5174 |
{ (case "(($ac_try" in |
5175 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5176 |
*) ac_try_echo=$ac_try;; |
5177 |
esac |
5178 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5179 |
(eval "$ac_try") 2>&5 |
5180 |
ac_status=$? |
5181 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5182 |
(exit $ac_status); }; }; then |
5183 |
ac_cv_member_struct_sockaddr_in_sin_len=yes |
5184 |
else |
5185 |
echo "$as_me: failed program was:" >&5 |
5186 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5187 |
|
5188 |
cat >conftest.$ac_ext <<_ACEOF |
5189 |
/* confdefs.h. */ |
5190 |
_ACEOF |
5191 |
cat confdefs.h >>conftest.$ac_ext |
5192 |
cat >>conftest.$ac_ext <<_ACEOF |
5193 |
/* end confdefs.h. */ |
5194 |
$ac_includes_default |
5195 |
int |
5196 |
main () |
5197 |
{ |
5198 |
static struct sockaddr_in ac_aggr; |
5199 |
if (sizeof ac_aggr.sin_len) |
5200 |
return 0; |
5201 |
; |
5202 |
return 0; |
5203 |
} |
5204 |
_ACEOF |
5205 |
rm -f conftest.$ac_objext |
5206 |
if { (ac_try="$ac_compile" |
5207 |
case "(($ac_try" in |
5208 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5209 |
*) ac_try_echo=$ac_try;; |
5210 |
esac |
5211 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5212 |
(eval "$ac_compile") 2>conftest.er1 |
5213 |
ac_status=$? |
5214 |
grep -v '^ *+' conftest.er1 >conftest.err |
5215 |
rm -f conftest.er1 |
5216 |
cat conftest.err >&5 |
5217 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5218 |
(exit $ac_status); } && |
5219 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5220 |
{ (case "(($ac_try" in |
5221 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5222 |
*) ac_try_echo=$ac_try;; |
5223 |
esac |
5224 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5225 |
(eval "$ac_try") 2>&5 |
5226 |
ac_status=$? |
5227 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5228 |
(exit $ac_status); }; } && |
5229 |
{ ac_try='test -s conftest.$ac_objext' |
5230 |
{ (case "(($ac_try" in |
5231 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5232 |
*) ac_try_echo=$ac_try;; |
5233 |
esac |
5234 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5235 |
(eval "$ac_try") 2>&5 |
5236 |
ac_status=$? |
5237 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5238 |
(exit $ac_status); }; }; then |
5239 |
ac_cv_member_struct_sockaddr_in_sin_len=yes |
5240 |
else |
5241 |
echo "$as_me: failed program was:" >&5 |
5242 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5243 |
|
5244 |
ac_cv_member_struct_sockaddr_in_sin_len=no |
5245 |
fi |
5246 |
|
5247 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5248 |
fi |
5249 |
|
5250 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5251 |
fi |
5252 |
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5 |
5253 |
echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; } |
5254 |
if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then |
5255 |
|
5256 |
cat >>confdefs.h <<\_ACEOF |
5257 |
#define SOCKADDR_IN_HAS_LEN 1 |
5258 |
_ACEOF |
5259 |
|
5260 |
fi |
5261 |
|
5262 |
fi |
5263 |
|
5264 |
{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5 |
5265 |
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } |
5266 |
if test "${ac_cv_type_struct_addrinfo+set}" = set; then |
5267 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5268 |
else |
5269 |
cat >conftest.$ac_ext <<_ACEOF |
5270 |
/* confdefs.h. */ |
5271 |
_ACEOF |
5272 |
cat confdefs.h >>conftest.$ac_ext |
5273 |
cat >>conftest.$ac_ext <<_ACEOF |
5274 |
/* end confdefs.h. */ |
5275 |
#include <netdb.h> |
5276 |
|
5277 |
typedef struct addrinfo ac__type_new_; |
5278 |
int |
5279 |
main () |
5280 |
{ |
5281 |
if ((ac__type_new_ *) 0) |
5282 |
return 0; |
5283 |
if (sizeof (ac__type_new_)) |
5284 |
return 0; |
5285 |
; |
5286 |
return 0; |
5287 |
} |
5288 |
_ACEOF |
5289 |
rm -f conftest.$ac_objext |
5290 |
if { (ac_try="$ac_compile" |
5291 |
case "(($ac_try" in |
5292 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5293 |
*) ac_try_echo=$ac_try;; |
5294 |
esac |
5295 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5296 |
(eval "$ac_compile") 2>conftest.er1 |
5297 |
ac_status=$? |
5298 |
grep -v '^ *+' conftest.er1 >conftest.err |
5299 |
rm -f conftest.er1 |
5300 |
cat conftest.err >&5 |
5301 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5302 |
(exit $ac_status); } && |
5303 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5304 |
{ (case "(($ac_try" in |
5305 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5306 |
*) ac_try_echo=$ac_try;; |
5307 |
esac |
5308 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5309 |
(eval "$ac_try") 2>&5 |
5310 |
ac_status=$? |
5311 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5312 |
(exit $ac_status); }; } && |
5313 |
{ ac_try='test -s conftest.$ac_objext' |
5314 |
{ (case "(($ac_try" in |
5315 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5316 |
*) ac_try_echo=$ac_try;; |
5317 |
esac |
5318 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5319 |
(eval "$ac_try") 2>&5 |
5320 |
ac_status=$? |
5321 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5322 |
(exit $ac_status); }; }; then |
5323 |
ac_cv_type_struct_addrinfo=yes |
5324 |
else |
5325 |
echo "$as_me: failed program was:" >&5 |
5326 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5327 |
|
5328 |
ac_cv_type_struct_addrinfo=no |
5329 |
fi |
5330 |
|
5331 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5332 |
fi |
5333 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5 |
5334 |
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; } |
5335 |
if test $ac_cv_type_struct_addrinfo = yes; then |
5336 |
|
5337 |
cat >>confdefs.h <<_ACEOF |
5338 |
#define HAVE_STRUCT_ADDRINFO 1 |
5339 |
_ACEOF |
5340 |
|
5341 |
|
5342 |
fi |
5343 |
|
5344 |
|
5345 |
{ echo "$as_me:$LINENO: checking for socklen_t" >&5 |
5346 |
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
5347 |
if test "${ac_cv_type_socklen_t+set}" = set; then |
5348 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5349 |
else |
5350 |
cat >conftest.$ac_ext <<_ACEOF |
5351 |
/* confdefs.h. */ |
5352 |
_ACEOF |
5353 |
cat confdefs.h >>conftest.$ac_ext |
5354 |
cat >>conftest.$ac_ext <<_ACEOF |
5355 |
/* end confdefs.h. */ |
5356 |
#include <sys/types.h> |
5357 |
#include <sys/socket.h> |
5358 |
|
5359 |
typedef socklen_t ac__type_new_; |
5360 |
int |
5361 |
main () |
5362 |
{ |
5363 |
if ((ac__type_new_ *) 0) |
5364 |
return 0; |
5365 |
if (sizeof (ac__type_new_)) |
5366 |
return 0; |
5367 |
; |
5368 |
return 0; |
5369 |
} |
5370 |
_ACEOF |
5371 |
rm -f conftest.$ac_objext |
5372 |
if { (ac_try="$ac_compile" |
5373 |
case "(($ac_try" in |
5374 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5375 |
*) ac_try_echo=$ac_try;; |
5376 |
esac |
5377 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5378 |
(eval "$ac_compile") 2>conftest.er1 |
5379 |
ac_status=$? |
5380 |
grep -v '^ *+' conftest.er1 >conftest.err |
5381 |
rm -f conftest.er1 |
5382 |
cat conftest.err >&5 |
5383 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5384 |
(exit $ac_status); } && |
5385 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5386 |
{ (case "(($ac_try" in |
5387 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5388 |
*) ac_try_echo=$ac_try;; |
5389 |
esac |
5390 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5391 |
(eval "$ac_try") 2>&5 |
5392 |
ac_status=$? |
5393 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5394 |
(exit $ac_status); }; } && |
5395 |
{ ac_try='test -s conftest.$ac_objext' |
5396 |
{ (case "(($ac_try" in |
5397 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5398 |
*) ac_try_echo=$ac_try;; |
5399 |
esac |
5400 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5401 |
(eval "$ac_try") 2>&5 |
5402 |
ac_status=$? |
5403 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5404 |
(exit $ac_status); }; }; then |
5405 |
ac_cv_type_socklen_t=yes |
5406 |
else |
5407 |
echo "$as_me: failed program was:" >&5 |
5408 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5409 |
|
5410 |
ac_cv_type_socklen_t=no |
5411 |
fi |
5412 |
|
5413 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5414 |
fi |
5415 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
5416 |
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
5417 |
if test $ac_cv_type_socklen_t = yes; then |
5418 |
: |
5419 |
else |
5420 |
|
5421 |
cat >>confdefs.h <<\_ACEOF |
5422 |
#define socklen_t unsigned int |
5423 |
_ACEOF |
5424 |
|
5425 |
fi |
5426 |
|
5427 |
|
5428 |
if test -z "$Tru"; then |
5429 |
|
5430 |
{ echo "$as_me:$LINENO: checking for broken glibc with __ss_family" >&5 |
5431 |
echo $ECHO_N "checking for broken glibc with __ss_family... $ECHO_C" >&6; } |
5432 |
cat >conftest.$ac_ext <<_ACEOF |
5433 |
/* confdefs.h. */ |
5434 |
_ACEOF |
5435 |
cat confdefs.h >>conftest.$ac_ext |
5436 |
cat >>conftest.$ac_ext <<_ACEOF |
5437 |
/* end confdefs.h. */ |
5438 |
#include <sys/types.h> |
5439 |
#include <sys/socket.h> |
5440 |
int |
5441 |
main () |
5442 |
{ |
5443 |
struct sockaddr_storage s; s.__ss_family = AF_INET; |
5444 |
; |
5445 |
return 0; |
5446 |
} |
5447 |
_ACEOF |
5448 |
rm -f conftest.$ac_objext |
5449 |
if { (ac_try="$ac_compile" |
5450 |
case "(($ac_try" in |
5451 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5452 |
*) ac_try_echo=$ac_try;; |
5453 |
esac |
5454 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5455 |
(eval "$ac_compile") 2>conftest.er1 |
5456 |
ac_status=$? |
5457 |
grep -v '^ *+' conftest.er1 >conftest.err |
5458 |
rm -f conftest.er1 |
5459 |
cat conftest.err >&5 |
5460 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5461 |
(exit $ac_status); } && |
5462 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5463 |
{ (case "(($ac_try" in |
5464 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5465 |
*) ac_try_echo=$ac_try;; |
5466 |
esac |
5467 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5468 |
(eval "$ac_try") 2>&5 |
5469 |
ac_status=$? |
5470 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5471 |
(exit $ac_status); }; } && |
5472 |
{ ac_try='test -s conftest.$ac_objext' |
5473 |
{ (case "(($ac_try" in |
5474 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5475 |
*) ac_try_echo=$ac_try;; |
5476 |
esac |
5477 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5478 |
(eval "$ac_try") 2>&5 |
5479 |
ac_status=$? |
5480 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5481 |
(exit $ac_status); }; }; then |
5482 |
|
5483 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
5484 |
echo "${ECHO_T}yes" >&6; } |
5485 |
|
5486 |
cat >>confdefs.h <<\_ACEOF |
5487 |
#define ss_family __ss_family |
5488 |
_ACEOF |
5489 |
|
5490 |
|
5491 |
else |
5492 |
echo "$as_me: failed program was:" >&5 |
5493 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5494 |
|
5495 |
{ echo "$as_me:$LINENO: result: no" >&5 |
5496 |
echo "${ECHO_T}no" >&6; } |
5497 |
fi |
5498 |
|
5499 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5500 |
|
5501 |
fi |
5502 |
|
5503 |
{ echo "$as_me:$LINENO: checking for core IPv6 support" >&5 |
5504 |
echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6; } |
5505 |
|
5506 |
cat >conftest.$ac_ext <<_ACEOF |
5507 |
/* confdefs.h. */ |
5508 |
_ACEOF |
5509 |
cat confdefs.h >>conftest.$ac_ext |
5510 |
cat >>conftest.$ac_ext <<_ACEOF |
5511 |
/* end confdefs.h. */ |
5512 |
#define IN_AUTOCONF |
5513 |
#include "include/stdinc.h" |
5514 |
int |
5515 |
main () |
5516 |
{ |
5517 |
struct sockaddr_in6 s; |
5518 |
struct sockaddr_storage t; |
5519 |
s.sin6_family = 0; |
5520 |
|
5521 |
; |
5522 |
return 0; |
5523 |
} |
5524 |
_ACEOF |
5525 |
rm -f conftest.$ac_objext |
5526 |
if { (ac_try="$ac_compile" |
5527 |
case "(($ac_try" in |
5528 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5529 |
*) ac_try_echo=$ac_try;; |
5530 |
esac |
5531 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5532 |
(eval "$ac_compile") 2>conftest.er1 |
5533 |
ac_status=$? |
5534 |
grep -v '^ *+' conftest.er1 >conftest.err |
5535 |
rm -f conftest.er1 |
5536 |
cat conftest.err >&5 |
5537 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5538 |
(exit $ac_status); } && |
5539 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5540 |
{ (case "(($ac_try" in |
5541 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5542 |
*) ac_try_echo=$ac_try;; |
5543 |
esac |
5544 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5545 |
(eval "$ac_try") 2>&5 |
5546 |
ac_status=$? |
5547 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5548 |
(exit $ac_status); }; } && |
5549 |
{ ac_try='test -s conftest.$ac_objext' |
5550 |
{ (case "(($ac_try" in |
5551 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5552 |
*) ac_try_echo=$ac_try;; |
5553 |
esac |
5554 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5555 |
(eval "$ac_try") 2>&5 |
5556 |
ac_status=$? |
5557 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5558 |
(exit $ac_status); }; }; then |
5559 |
|
5560 |
if test "$CYGWIN" = "yes"; then |
5561 |
{ echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5 |
5562 |
echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6; } |
5563 |
have_v6=no |
5564 |
else |
5565 |
have_v6=yes |
5566 |
|
5567 |
cat >>confdefs.h <<\_ACEOF |
5568 |
#define IPV6 1 |
5569 |
_ACEOF |
5570 |
|
5571 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
5572 |
echo "${ECHO_T}yes" >&6; } |
5573 |
{ echo "$as_me:$LINENO: checking for struct in6addr_any" >&5 |
5574 |
echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6; } |
5575 |
cat >conftest.$ac_ext <<_ACEOF |
5576 |
/* confdefs.h. */ |
5577 |
_ACEOF |
5578 |
cat confdefs.h >>conftest.$ac_ext |
5579 |
cat >>conftest.$ac_ext <<_ACEOF |
5580 |
/* end confdefs.h. */ |
5581 |
#define IN_AUTOCONF |
5582 |
#include "include/stdinc.h" |
5583 |
int |
5584 |
main () |
5585 |
{ |
5586 |
struct in6_addr a = in6addr_any; |
5587 |
|
5588 |
; |
5589 |
return 0; |
5590 |
} |
5591 |
_ACEOF |
5592 |
rm -f conftest.$ac_objext |
5593 |
if { (ac_try="$ac_compile" |
5594 |
case "(($ac_try" in |
5595 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5596 |
*) ac_try_echo=$ac_try;; |
5597 |
esac |
5598 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5599 |
(eval "$ac_compile") 2>conftest.er1 |
5600 |
ac_status=$? |
5601 |
grep -v '^ *+' conftest.er1 >conftest.err |
5602 |
rm -f conftest.er1 |
5603 |
cat conftest.err >&5 |
5604 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5605 |
(exit $ac_status); } && |
5606 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5607 |
{ (case "(($ac_try" in |
5608 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5609 |
*) ac_try_echo=$ac_try;; |
5610 |
esac |
5611 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5612 |
(eval "$ac_try") 2>&5 |
5613 |
ac_status=$? |
5614 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5615 |
(exit $ac_status); }; } && |
5616 |
{ ac_try='test -s conftest.$ac_objext' |
5617 |
{ (case "(($ac_try" in |
5618 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5619 |
*) ac_try_echo=$ac_try;; |
5620 |
esac |
5621 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5622 |
(eval "$ac_try") 2>&5 |
5623 |
ac_status=$? |
5624 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5625 |
(exit $ac_status); }; }; then |
5626 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
5627 |
echo "${ECHO_T}yes" >&6; } |
5628 |
else |
5629 |
echo "$as_me: failed program was:" >&5 |
5630 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5631 |
|
5632 |
|
5633 |
{ echo "$as_me:$LINENO: result: no" >&5 |
5634 |
echo "${ECHO_T}no" >&6; } |
5635 |
|
5636 |
cat >>confdefs.h <<\_ACEOF |
5637 |
#define NO_IN6ADDR_ANY 1 |
5638 |
_ACEOF |
5639 |
|
5640 |
inet_misc=1 |
5641 |
|
5642 |
|
5643 |
fi |
5644 |
|
5645 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5646 |
fi |
5647 |
|
5648 |
else |
5649 |
echo "$as_me: failed program was:" >&5 |
5650 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5651 |
|
5652 |
{ echo "$as_me:$LINENO: result: no" >&5 |
5653 |
echo "${ECHO_T}no" >&6; } |
5654 |
have_v6="no" |
5655 |
fi |
5656 |
|
5657 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5658 |
|
5659 |
{ echo "$as_me:$LINENO: checking for library containing crypt" >&5 |
5660 |
echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; } |
5661 |
if test "${ac_cv_search_crypt+set}" = set; then |
5662 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5663 |
else |
5664 |
ac_func_search_save_LIBS=$LIBS |
5665 |
cat >conftest.$ac_ext <<_ACEOF |
5666 |
/* confdefs.h. */ |
5667 |
_ACEOF |
5668 |
cat confdefs.h >>conftest.$ac_ext |
5669 |
cat >>conftest.$ac_ext <<_ACEOF |
5670 |
/* end confdefs.h. */ |
5671 |
|
5672 |
/* Override any GCC internal prototype to avoid an error. |
5673 |
Use char because int might match the return type of a GCC |
5674 |
builtin and then its argument prototype would still apply. */ |
5675 |
#ifdef __cplusplus |
5676 |
extern "C" |
5677 |
#endif |
5678 |
char crypt (); |
5679 |
int |
5680 |
main () |
5681 |
{ |
5682 |
return crypt (); |
5683 |
; |
5684 |
return 0; |
5685 |
} |
5686 |
_ACEOF |
5687 |
for ac_lib in '' crypt descrypt; do |
5688 |
if test -z "$ac_lib"; then |
5689 |
ac_res="none required" |
5690 |
else |
5691 |
ac_res=-l$ac_lib |
5692 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
5693 |
fi |
5694 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5695 |
if { (ac_try="$ac_link" |
5696 |
case "(($ac_try" in |
5697 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5698 |
*) ac_try_echo=$ac_try;; |
5699 |
esac |
5700 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5701 |
(eval "$ac_link") 2>conftest.er1 |
5702 |
ac_status=$? |
5703 |
grep -v '^ *+' conftest.er1 >conftest.err |
5704 |
rm -f conftest.er1 |
5705 |
cat conftest.err >&5 |
5706 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5707 |
(exit $ac_status); } && |
5708 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5709 |
{ (case "(($ac_try" in |
5710 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5711 |
*) ac_try_echo=$ac_try;; |
5712 |
esac |
5713 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5714 |
(eval "$ac_try") 2>&5 |
5715 |
ac_status=$? |
5716 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5717 |
(exit $ac_status); }; } && |
5718 |
{ ac_try='test -s conftest$ac_exeext' |
5719 |
{ (case "(($ac_try" in |
5720 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5721 |
*) ac_try_echo=$ac_try;; |
5722 |
esac |
5723 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5724 |
(eval "$ac_try") 2>&5 |
5725 |
ac_status=$? |
5726 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5727 |
(exit $ac_status); }; }; then |
5728 |
ac_cv_search_crypt=$ac_res |
5729 |
else |
5730 |
echo "$as_me: failed program was:" >&5 |
5731 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5732 |
|
5733 |
|
5734 |
fi |
5735 |
|
5736 |
rm -f core conftest.err conftest.$ac_objext \ |
5737 |
conftest$ac_exeext |
5738 |
if test "${ac_cv_search_crypt+set}" = set; then |
5739 |
break |
5740 |
fi |
5741 |
done |
5742 |
if test "${ac_cv_search_crypt+set}" = set; then |
5743 |
: |
5744 |
else |
5745 |
ac_cv_search_crypt=no |
5746 |
fi |
5747 |
rm conftest.$ac_ext |
5748 |
LIBS=$ac_func_search_save_LIBS |
5749 |
fi |
5750 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5 |
5751 |
echo "${ECHO_T}$ac_cv_search_crypt" >&6; } |
5752 |
ac_res=$ac_cv_search_crypt |
5753 |
if test "$ac_res" != no; then |
5754 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5755 |
|
5756 |
fi |
5757 |
|
5758 |
|
5759 |
CRYPT_LIB=$ac_cv_search_crypt |
5760 |
|
5761 |
if test "$CRYPT_LIB" = "none required"; then |
5762 |
unset CRYPT_LIB |
5763 |
elif test "$CRYPT_LIB" = no; then |
5764 |
CRYPT_C=crypt.c |
5765 |
unset CRYPT_LIB |
5766 |
fi |
5767 |
|
5768 |
|
5769 |
|
5770 |
|
5771 |
{ echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 |
5772 |
echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; } |
5773 |
if test "${gcc_cv_header_string+set}" = set; then |
5774 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5775 |
else |
5776 |
|
5777 |
cat >conftest.$ac_ext <<_ACEOF |
5778 |
#include <string.h> |
5779 |
#include <strings.h> |
5780 |
_ACEOF |
5781 |
rm -f conftest.$ac_objext |
5782 |
if { (ac_try="$ac_compile" |
5783 |
case "(($ac_try" in |
5784 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5785 |
*) ac_try_echo=$ac_try;; |
5786 |
esac |
5787 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5788 |
(eval "$ac_compile") 2>conftest.er1 |
5789 |
ac_status=$? |
5790 |
grep -v '^ *+' conftest.er1 >conftest.err |
5791 |
rm -f conftest.er1 |
5792 |
cat conftest.err >&5 |
5793 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5794 |
(exit $ac_status); } && |
5795 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5796 |
{ (case "(($ac_try" in |
5797 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5798 |
*) ac_try_echo=$ac_try;; |
5799 |
esac |
5800 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5801 |
(eval "$ac_try") 2>&5 |
5802 |
ac_status=$? |
5803 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5804 |
(exit $ac_status); }; } && |
5805 |
{ ac_try='test -s conftest.$ac_objext' |
5806 |
{ (case "(($ac_try" in |
5807 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5808 |
*) ac_try_echo=$ac_try;; |
5809 |
esac |
5810 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5811 |
(eval "$ac_try") 2>&5 |
5812 |
ac_status=$? |
5813 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5814 |
(exit $ac_status); }; }; then |
5815 |
gcc_cv_header_string=yes |
5816 |
else |
5817 |
echo "$as_me: failed program was:" >&5 |
5818 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5819 |
|
5820 |
gcc_cv_header_string=no |
5821 |
fi |
5822 |
|
5823 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5824 |
|
5825 |
fi |
5826 |
{ echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 |
5827 |
echo "${ECHO_T}$gcc_cv_header_string" >&6; } |
5828 |
|
5829 |
if test "$gcc_cv_header_string" = "yes"; then |
5830 |
|
5831 |
cat >>confdefs.h <<\_ACEOF |
5832 |
#define STRING_WITH_STRINGS 1 |
5833 |
_ACEOF |
5834 |
|
5835 |
fi |
5836 |
|
5837 |
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
5838 |
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
5839 |
if test "${ac_cv_c_bigendian+set}" = set; then |
5840 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5841 |
else |
5842 |
# See if sys/param.h defines the BYTE_ORDER macro. |
5843 |
cat >conftest.$ac_ext <<_ACEOF |
5844 |
/* confdefs.h. */ |
5845 |
_ACEOF |
5846 |
cat confdefs.h >>conftest.$ac_ext |
5847 |
cat >>conftest.$ac_ext <<_ACEOF |
5848 |
/* end confdefs.h. */ |
5849 |
#include <sys/types.h> |
5850 |
#include <sys/param.h> |
5851 |
|
5852 |
int |
5853 |
main () |
5854 |
{ |
5855 |
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
5856 |
bogus endian macros |
5857 |
#endif |
5858 |
|
5859 |
; |
5860 |
return 0; |
5861 |
} |
5862 |
_ACEOF |
5863 |
rm -f conftest.$ac_objext |
5864 |
if { (ac_try="$ac_compile" |
5865 |
case "(($ac_try" in |
5866 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5867 |
*) ac_try_echo=$ac_try;; |
5868 |
esac |
5869 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5870 |
(eval "$ac_compile") 2>conftest.er1 |
5871 |
ac_status=$? |
5872 |
grep -v '^ *+' conftest.er1 >conftest.err |
5873 |
rm -f conftest.er1 |
5874 |
cat conftest.err >&5 |
5875 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5876 |
(exit $ac_status); } && |
5877 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5878 |
{ (case "(($ac_try" in |
5879 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5880 |
*) ac_try_echo=$ac_try;; |
5881 |
esac |
5882 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5883 |
(eval "$ac_try") 2>&5 |
5884 |
ac_status=$? |
5885 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5886 |
(exit $ac_status); }; } && |
5887 |
{ ac_try='test -s conftest.$ac_objext' |
5888 |
{ (case "(($ac_try" in |
5889 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5890 |
*) ac_try_echo=$ac_try;; |
5891 |
esac |
5892 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5893 |
(eval "$ac_try") 2>&5 |
5894 |
ac_status=$? |
5895 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5896 |
(exit $ac_status); }; }; then |
5897 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
5898 |
cat >conftest.$ac_ext <<_ACEOF |
5899 |
/* confdefs.h. */ |
5900 |
_ACEOF |
5901 |
cat confdefs.h >>conftest.$ac_ext |
5902 |
cat >>conftest.$ac_ext <<_ACEOF |
5903 |
/* end confdefs.h. */ |
5904 |
#include <sys/types.h> |
5905 |
#include <sys/param.h> |
5906 |
|
5907 |
int |
5908 |
main () |
5909 |
{ |
5910 |
#if BYTE_ORDER != BIG_ENDIAN |
5911 |
not big endian |
5912 |
#endif |
5913 |
|
5914 |
; |
5915 |
return 0; |
5916 |
} |
5917 |
_ACEOF |
5918 |
rm -f conftest.$ac_objext |
5919 |
if { (ac_try="$ac_compile" |
5920 |
case "(($ac_try" in |
5921 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5922 |
*) ac_try_echo=$ac_try;; |
5923 |
esac |
5924 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5925 |
(eval "$ac_compile") 2>conftest.er1 |
5926 |
ac_status=$? |
5927 |
grep -v '^ *+' conftest.er1 >conftest.err |
5928 |
rm -f conftest.er1 |
5929 |
cat conftest.err >&5 |
5930 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5931 |
(exit $ac_status); } && |
5932 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5933 |
{ (case "(($ac_try" in |
5934 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5935 |
*) ac_try_echo=$ac_try;; |
5936 |
esac |
5937 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5938 |
(eval "$ac_try") 2>&5 |
5939 |
ac_status=$? |
5940 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5941 |
(exit $ac_status); }; } && |
5942 |
{ ac_try='test -s conftest.$ac_objext' |
5943 |
{ (case "(($ac_try" in |
5944 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5945 |
*) ac_try_echo=$ac_try;; |
5946 |
esac |
5947 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5948 |
(eval "$ac_try") 2>&5 |
5949 |
ac_status=$? |
5950 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5951 |
(exit $ac_status); }; }; then |
5952 |
ac_cv_c_bigendian=yes |
5953 |
else |
5954 |
echo "$as_me: failed program was:" >&5 |
5955 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5956 |
|
5957 |
ac_cv_c_bigendian=no |
5958 |
fi |
5959 |
|
5960 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5961 |
else |
5962 |
echo "$as_me: failed program was:" >&5 |
5963 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5964 |
|
5965 |
# It does not; compile a test program. |
5966 |
if test "$cross_compiling" = yes; then |
5967 |
# try to guess the endianness by grepping values into an object file |
5968 |
ac_cv_c_bigendian=unknown |
5969 |
cat >conftest.$ac_ext <<_ACEOF |
5970 |
/* confdefs.h. */ |
5971 |
_ACEOF |
5972 |
cat confdefs.h >>conftest.$ac_ext |
5973 |
cat >>conftest.$ac_ext <<_ACEOF |
5974 |
/* end confdefs.h. */ |
5975 |
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
5976 |
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
5977 |
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
5978 |
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
5979 |
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
5980 |
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
5981 |
int |
5982 |
main () |
5983 |
{ |
5984 |
_ascii (); _ebcdic (); |
5985 |
; |
5986 |
return 0; |
5987 |
} |
5988 |
_ACEOF |
5989 |
rm -f conftest.$ac_objext |
5990 |
if { (ac_try="$ac_compile" |
5991 |
case "(($ac_try" in |
5992 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5993 |
*) ac_try_echo=$ac_try;; |
5994 |
esac |
5995 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5996 |
(eval "$ac_compile") 2>conftest.er1 |
5997 |
ac_status=$? |
5998 |
grep -v '^ *+' conftest.er1 >conftest.err |
5999 |
rm -f conftest.er1 |
6000 |
cat conftest.err >&5 |
6001 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6002 |
(exit $ac_status); } && |
6003 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6004 |
{ (case "(($ac_try" in |
6005 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6006 |
*) ac_try_echo=$ac_try;; |
6007 |
esac |
6008 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6009 |
(eval "$ac_try") 2>&5 |
6010 |
ac_status=$? |
6011 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6012 |
(exit $ac_status); }; } && |
6013 |
{ ac_try='test -s conftest.$ac_objext' |
6014 |
{ (case "(($ac_try" in |
6015 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6016 |
*) ac_try_echo=$ac_try;; |
6017 |
esac |
6018 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6019 |
(eval "$ac_try") 2>&5 |
6020 |
ac_status=$? |
6021 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6022 |
(exit $ac_status); }; }; then |
6023 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
6024 |
ac_cv_c_bigendian=yes |
6025 |
fi |
6026 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
6027 |
if test "$ac_cv_c_bigendian" = unknown; then |
6028 |
ac_cv_c_bigendian=no |
6029 |
else |
6030 |
# finding both strings is unlikely to happen, but who knows? |
6031 |
ac_cv_c_bigendian=unknown |
6032 |
fi |
6033 |
fi |
6034 |
else |
6035 |
echo "$as_me: failed program was:" >&5 |
6036 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6037 |
|
6038 |
|
6039 |
fi |
6040 |
|
6041 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6042 |
else |
6043 |
cat >conftest.$ac_ext <<_ACEOF |
6044 |
/* confdefs.h. */ |
6045 |
_ACEOF |
6046 |
cat confdefs.h >>conftest.$ac_ext |
6047 |
cat >>conftest.$ac_ext <<_ACEOF |
6048 |
/* end confdefs.h. */ |
6049 |
$ac_includes_default |
6050 |
int |
6051 |
main () |
6052 |
{ |
6053 |
|
6054 |
/* Are we little or big endian? From Harbison&Steele. */ |
6055 |
union |
6056 |
{ |
6057 |
long int l; |
6058 |
char c[sizeof (long int)]; |
6059 |
} u; |
6060 |
u.l = 1; |
6061 |
return u.c[sizeof (long int) - 1] == 1; |
6062 |
|
6063 |
; |
6064 |
return 0; |
6065 |
} |
6066 |
_ACEOF |
6067 |
rm -f conftest$ac_exeext |
6068 |
if { (ac_try="$ac_link" |
6069 |
case "(($ac_try" in |
6070 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6071 |
*) ac_try_echo=$ac_try;; |
6072 |
esac |
6073 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6074 |
(eval "$ac_link") 2>&5 |
6075 |
ac_status=$? |
6076 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6077 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6078 |
{ (case "(($ac_try" in |
6079 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6080 |
*) ac_try_echo=$ac_try;; |
6081 |
esac |
6082 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6083 |
(eval "$ac_try") 2>&5 |
6084 |
ac_status=$? |
6085 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6086 |
(exit $ac_status); }; }; then |
6087 |
ac_cv_c_bigendian=no |
6088 |
else |
6089 |
echo "$as_me: program exited with status $ac_status" >&5 |
6090 |
echo "$as_me: failed program was:" >&5 |
6091 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6092 |
|
6093 |
( exit $ac_status ) |
6094 |
ac_cv_c_bigendian=yes |
6095 |
fi |
6096 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6097 |
fi |
6098 |
|
6099 |
|
6100 |
fi |
6101 |
|
6102 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6103 |
fi |
6104 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
6105 |
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
6106 |
case $ac_cv_c_bigendian in |
6107 |
yes) |
6108 |
|
6109 |
cat >>confdefs.h <<\_ACEOF |
6110 |
#define WORDS_BIGENDIAN 1 |
6111 |
_ACEOF |
6112 |
;; |
6113 |
no) |
6114 |
;; |
6115 |
*) |
6116 |
{ { echo "$as_me:$LINENO: error: unknown endianness |
6117 |
presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
6118 |
echo "$as_me: error: unknown endianness |
6119 |
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
6120 |
{ (exit 1); exit 1; }; } ;; |
6121 |
esac |
6122 |
|
6123 |
|
6124 |
if test "${ac_cv_header_stdarg_h+set}" = set; then |
6125 |
{ echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
6126 |
echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } |
6127 |
if test "${ac_cv_header_stdarg_h+set}" = set; then |
6128 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6129 |
fi |
6130 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
6131 |
echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } |
6132 |
else |
6133 |
# Is the header compilable? |
6134 |
{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
6135 |
echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } |
6136 |
cat >conftest.$ac_ext <<_ACEOF |
6137 |
/* confdefs.h. */ |
6138 |
_ACEOF |
6139 |
cat confdefs.h >>conftest.$ac_ext |
6140 |
cat >>conftest.$ac_ext <<_ACEOF |
6141 |
/* end confdefs.h. */ |
6142 |
$ac_includes_default |
6143 |
#include <stdarg.h> |
6144 |
_ACEOF |
6145 |
rm -f conftest.$ac_objext |
6146 |
if { (ac_try="$ac_compile" |
6147 |
case "(($ac_try" in |
6148 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6149 |
*) ac_try_echo=$ac_try;; |
6150 |
esac |
6151 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6152 |
(eval "$ac_compile") 2>conftest.er1 |
6153 |
ac_status=$? |
6154 |
grep -v '^ *+' conftest.er1 >conftest.err |
6155 |
rm -f conftest.er1 |
6156 |
cat conftest.err >&5 |
6157 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6158 |
(exit $ac_status); } && |
6159 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6160 |
{ (case "(($ac_try" in |
6161 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6162 |
*) ac_try_echo=$ac_try;; |
6163 |
esac |
6164 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6165 |
(eval "$ac_try") 2>&5 |
6166 |
ac_status=$? |
6167 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6168 |
(exit $ac_status); }; } && |
6169 |
{ ac_try='test -s conftest.$ac_objext' |
6170 |
{ (case "(($ac_try" in |
6171 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6172 |
*) ac_try_echo=$ac_try;; |
6173 |
esac |
6174 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6175 |
(eval "$ac_try") 2>&5 |
6176 |
ac_status=$? |
6177 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6178 |
(exit $ac_status); }; }; then |
6179 |
ac_header_compiler=yes |
6180 |
else |
6181 |
echo "$as_me: failed program was:" >&5 |
6182 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6183 |
|
6184 |
ac_header_compiler=no |
6185 |
fi |
6186 |
|
6187 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6188 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6189 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
6190 |
|
6191 |
# Is the header present? |
6192 |
{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
6193 |
echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } |
6194 |
cat >conftest.$ac_ext <<_ACEOF |
6195 |
/* confdefs.h. */ |
6196 |
_ACEOF |
6197 |
cat confdefs.h >>conftest.$ac_ext |
6198 |
cat >>conftest.$ac_ext <<_ACEOF |
6199 |
/* end confdefs.h. */ |
6200 |
#include <stdarg.h> |
6201 |
_ACEOF |
6202 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
6203 |
case "(($ac_try" in |
6204 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6205 |
*) ac_try_echo=$ac_try;; |
6206 |
esac |
6207 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6208 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
6209 |
ac_status=$? |
6210 |
grep -v '^ *+' conftest.er1 >conftest.err |
6211 |
rm -f conftest.er1 |
6212 |
cat conftest.err >&5 |
6213 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6214 |
(exit $ac_status); } >/dev/null; then |
6215 |
if test -s conftest.err; then |
6216 |
ac_cpp_err=$ac_c_preproc_warn_flag |
6217 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
6218 |
else |
6219 |
ac_cpp_err= |
6220 |
fi |
6221 |
else |
6222 |
ac_cpp_err=yes |
6223 |
fi |
6224 |
if test -z "$ac_cpp_err"; then |
6225 |
ac_header_preproc=yes |
6226 |
else |
6227 |
echo "$as_me: failed program was:" >&5 |
6228 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6229 |
|
6230 |
ac_header_preproc=no |
6231 |
fi |
6232 |
|
6233 |
rm -f conftest.err conftest.$ac_ext |
6234 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6235 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
6236 |
|
6237 |
# So? What about this header? |
6238 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6239 |
yes:no: ) |
6240 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
6241 |
echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6242 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 |
6243 |
echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} |
6244 |
ac_header_preproc=yes |
6245 |
;; |
6246 |
no:yes:* ) |
6247 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
6248 |
echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} |
6249 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 |
6250 |
echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} |
6251 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 |
6252 |
echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} |
6253 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 |
6254 |
echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
6255 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 |
6256 |
echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} |
6257 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 |
6258 |
echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} |
6259 |
|
6260 |
;; |
6261 |
esac |
6262 |
{ echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
6263 |
echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } |
6264 |
if test "${ac_cv_header_stdarg_h+set}" = set; then |
6265 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6266 |
else |
6267 |
ac_cv_header_stdarg_h=$ac_header_preproc |
6268 |
fi |
6269 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
6270 |
echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } |
6271 |
|
6272 |
fi |
6273 |
if test $ac_cv_header_stdarg_h = yes; then |
6274 |
: |
6275 |
else |
6276 |
{ { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-hybrid will not compile without it **" >&5 |
6277 |
echo "$as_me: error: ** stdarg.h could not be found - ircd-hybrid will not compile without it **" >&2;} |
6278 |
{ (exit 1); exit 1; }; } |
6279 |
fi |
6280 |
|
6281 |
|
6282 |
|
6283 |
|
6284 |
if test "$ac_cv_c_compiler_gnu" = yes; then |
6285 |
|
6286 |
{ echo "$as_me:$LINENO: checking for strlcpy" >&5 |
6287 |
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; } |
6288 |
save_CFLAGS=$CFLAGS |
6289 |
CFLAGS="$CFLAGS -Wimplicit -Werror" |
6290 |
|
6291 |
cat >conftest.$ac_ext <<_ACEOF |
6292 |
/* confdefs.h. */ |
6293 |
_ACEOF |
6294 |
cat confdefs.h >>conftest.$ac_ext |
6295 |
cat >>conftest.$ac_ext <<_ACEOF |
6296 |
/* end confdefs.h. */ |
6297 |
#include <string.h> |
6298 |
#include <stdlib.h> |
6299 |
int |
6300 |
main () |
6301 |
{ |
6302 |
char *a = malloc(6), *b = strdup("hello"); |
6303 |
strlcpy(a, b, 6); |
6304 |
|
6305 |
; |
6306 |
return 0; |
6307 |
} |
6308 |
_ACEOF |
6309 |
rm -f conftest.$ac_objext conftest$ac_exeext |
6310 |
if { (ac_try="$ac_link" |
6311 |
case "(($ac_try" in |
6312 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6313 |
*) ac_try_echo=$ac_try;; |
6314 |
esac |
6315 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6316 |
(eval "$ac_link") 2>conftest.er1 |
6317 |
ac_status=$? |
6318 |
grep -v '^ *+' conftest.er1 >conftest.err |
6319 |
rm -f conftest.er1 |
6320 |
cat conftest.err >&5 |
6321 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6322 |
(exit $ac_status); } && |
6323 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6324 |
{ (case "(($ac_try" in |
6325 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6326 |
*) ac_try_echo=$ac_try;; |
6327 |
esac |
6328 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6329 |
(eval "$ac_try") 2>&5 |
6330 |
ac_status=$? |
6331 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6332 |
(exit $ac_status); }; } && |
6333 |
{ ac_try='test -s conftest$ac_exeext' |
6334 |
{ (case "(($ac_try" in |
6335 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6336 |
*) ac_try_echo=$ac_try;; |
6337 |
esac |
6338 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6339 |
(eval "$ac_try") 2>&5 |
6340 |
ac_status=$? |
6341 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6342 |
(exit $ac_status); }; }; then |
6343 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
6344 |
echo "${ECHO_T}yes" >&6; } |
6345 |
|
6346 |
cat >>confdefs.h <<\_ACEOF |
6347 |
#define HAVE_STRLCPY 1 |
6348 |
_ACEOF |
6349 |
|
6350 |
else |
6351 |
echo "$as_me: failed program was:" >&5 |
6352 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6353 |
|
6354 |
{ echo "$as_me:$LINENO: result: no" >&5 |
6355 |
echo "${ECHO_T}no" >&6; } |
6356 |
|
6357 |
fi |
6358 |
|
6359 |
rm -f core conftest.err conftest.$ac_objext \ |
6360 |
conftest$ac_exeext conftest.$ac_ext |
6361 |
|
6362 |
{ echo "$as_me:$LINENO: checking for strlcat" >&5 |
6363 |
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; } |
6364 |
cat >conftest.$ac_ext <<_ACEOF |
6365 |
/* confdefs.h. */ |
6366 |
_ACEOF |
6367 |
cat confdefs.h >>conftest.$ac_ext |
6368 |
cat >>conftest.$ac_ext <<_ACEOF |
6369 |
/* end confdefs.h. */ |
6370 |
#include <string.h> |
6371 |
#include <stdlib.h> |
6372 |
int |
6373 |
main () |
6374 |
{ |
6375 |
char *a = malloc(6), *b = strdup("hello"); |
6376 |
strlcat(a, b, 6); |
6377 |
|
6378 |
; |
6379 |
return 0; |
6380 |
} |
6381 |
_ACEOF |
6382 |
rm -f conftest.$ac_objext conftest$ac_exeext |
6383 |
if { (ac_try="$ac_link" |
6384 |
case "(($ac_try" in |
6385 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6386 |
*) ac_try_echo=$ac_try;; |
6387 |
esac |
6388 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6389 |
(eval "$ac_link") 2>conftest.er1 |
6390 |
ac_status=$? |
6391 |
grep -v '^ *+' conftest.er1 >conftest.err |
6392 |
rm -f conftest.er1 |
6393 |
cat conftest.err >&5 |
6394 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6395 |
(exit $ac_status); } && |
6396 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6397 |
{ (case "(($ac_try" in |
6398 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6399 |
*) ac_try_echo=$ac_try;; |
6400 |
esac |
6401 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6402 |
(eval "$ac_try") 2>&5 |
6403 |
ac_status=$? |
6404 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6405 |
(exit $ac_status); }; } && |
6406 |
{ ac_try='test -s conftest$ac_exeext' |
6407 |
{ (case "(($ac_try" in |
6408 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6409 |
*) ac_try_echo=$ac_try;; |
6410 |
esac |
6411 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6412 |
(eval "$ac_try") 2>&5 |
6413 |
ac_status=$? |
6414 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6415 |
(exit $ac_status); }; }; then |
6416 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
6417 |
echo "${ECHO_T}yes" >&6; } |
6418 |
|
6419 |
cat >>confdefs.h <<\_ACEOF |
6420 |
#define HAVE_STRLCAT 1 |
6421 |
_ACEOF |
6422 |
|
6423 |
else |
6424 |
echo "$as_me: failed program was:" >&5 |
6425 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6426 |
|
6427 |
{ echo "$as_me:$LINENO: result: no" >&5 |
6428 |
echo "${ECHO_T}no" >&6; } |
6429 |
|
6430 |
fi |
6431 |
|
6432 |
rm -f core conftest.err conftest.$ac_objext \ |
6433 |
conftest$ac_exeext conftest.$ac_ext |
6434 |
|
6435 |
CFLAGS=$save_CFLAGS |
6436 |
|
6437 |
else |
6438 |
|
6439 |
|
6440 |
|
6441 |
|
6442 |
for ac_func in strlcat strlcpy |
6443 |
do |
6444 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6445 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6446 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
6447 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
6448 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6449 |
else |
6450 |
cat >conftest.$ac_ext <<_ACEOF |
6451 |
/* confdefs.h. */ |
6452 |
_ACEOF |
6453 |
cat confdefs.h >>conftest.$ac_ext |
6454 |
cat >>conftest.$ac_ext <<_ACEOF |
6455 |
/* end confdefs.h. */ |
6456 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
6457 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
6458 |
#define $ac_func innocuous_$ac_func |
6459 |
|
6460 |
/* System header to define __stub macros and hopefully few prototypes, |
6461 |
which can conflict with char $ac_func (); below. |
6462 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6463 |
<limits.h> exists even on freestanding compilers. */ |
6464 |
|
6465 |
#ifdef __STDC__ |
6466 |
# include <limits.h> |
6467 |
#else |
6468 |
# include <assert.h> |
6469 |
#endif |
6470 |
|
6471 |
#undef $ac_func |
6472 |
|
6473 |
/* Override any GCC internal prototype to avoid an error. |
6474 |
Use char because int might match the return type of a GCC |
6475 |
builtin and then its argument prototype would still apply. */ |
6476 |
#ifdef __cplusplus |
6477 |
extern "C" |
6478 |
#endif |
6479 |
char $ac_func (); |
6480 |
/* The GNU C library defines this for functions which it implements |
6481 |
to always fail with ENOSYS. Some functions are actually named |
6482 |
something starting with __ and the normal name is an alias. */ |
6483 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
6484 |
choke me |
6485 |
#endif |
6486 |
|
6487 |
int |
6488 |
main () |
6489 |
{ |
6490 |
return $ac_func (); |
6491 |
; |
6492 |
return 0; |
6493 |
} |
6494 |
_ACEOF |
6495 |
rm -f conftest.$ac_objext conftest$ac_exeext |
6496 |
if { (ac_try="$ac_link" |
6497 |
case "(($ac_try" in |
6498 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6499 |
*) ac_try_echo=$ac_try;; |
6500 |
esac |
6501 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6502 |
(eval "$ac_link") 2>conftest.er1 |
6503 |
ac_status=$? |
6504 |
grep -v '^ *+' conftest.er1 >conftest.err |
6505 |
rm -f conftest.er1 |
6506 |
cat conftest.err >&5 |
6507 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6508 |
(exit $ac_status); } && |
6509 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6510 |
{ (case "(($ac_try" in |
6511 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6512 |
*) ac_try_echo=$ac_try;; |
6513 |
esac |
6514 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6515 |
(eval "$ac_try") 2>&5 |
6516 |
ac_status=$? |
6517 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6518 |
(exit $ac_status); }; } && |
6519 |
{ ac_try='test -s conftest$ac_exeext' |
6520 |
{ (case "(($ac_try" in |
6521 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6522 |
*) ac_try_echo=$ac_try;; |
6523 |
esac |
6524 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6525 |
(eval "$ac_try") 2>&5 |
6526 |
ac_status=$? |
6527 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6528 |
(exit $ac_status); }; }; then |
6529 |
eval "$as_ac_var=yes" |
6530 |
else |
6531 |
echo "$as_me: failed program was:" >&5 |
6532 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6533 |
|
6534 |
eval "$as_ac_var=no" |
6535 |
fi |
6536 |
|
6537 |
rm -f core conftest.err conftest.$ac_objext \ |
6538 |
conftest$ac_exeext conftest.$ac_ext |
6539 |
fi |
6540 |
ac_res=`eval echo '${'$as_ac_var'}'` |
6541 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
6542 |
echo "${ECHO_T}$ac_res" >&6; } |
6543 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
6544 |
cat >>confdefs.h <<_ACEOF |
6545 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
6546 |
_ACEOF |
6547 |
|
6548 |
fi |
6549 |
done |
6550 |
|
6551 |
|
6552 |
fi |
6553 |
|
6554 |
{ echo "$as_me:$LINENO: checking for int64_t" >&5 |
6555 |
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
6556 |
if test "${ac_cv_type_int64_t+set}" = set; then |
6557 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6558 |
else |
6559 |
cat >conftest.$ac_ext <<_ACEOF |
6560 |
/* confdefs.h. */ |
6561 |
_ACEOF |
6562 |
cat confdefs.h >>conftest.$ac_ext |
6563 |
cat >>conftest.$ac_ext <<_ACEOF |
6564 |
/* end confdefs.h. */ |
6565 |
$ac_includes_default |
6566 |
typedef int64_t ac__type_new_; |
6567 |
int |
6568 |
main () |
6569 |
{ |
6570 |
if ((ac__type_new_ *) 0) |
6571 |
return 0; |
6572 |
if (sizeof (ac__type_new_)) |
6573 |
return 0; |
6574 |
; |
6575 |
return 0; |
6576 |
} |
6577 |
_ACEOF |
6578 |
rm -f conftest.$ac_objext |
6579 |
if { (ac_try="$ac_compile" |
6580 |
case "(($ac_try" in |
6581 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6582 |
*) ac_try_echo=$ac_try;; |
6583 |
esac |
6584 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6585 |
(eval "$ac_compile") 2>conftest.er1 |
6586 |
ac_status=$? |
6587 |
grep -v '^ *+' conftest.er1 >conftest.err |
6588 |
rm -f conftest.er1 |
6589 |
cat conftest.err >&5 |
6590 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6591 |
(exit $ac_status); } && |
6592 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6593 |
{ (case "(($ac_try" in |
6594 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6595 |
*) ac_try_echo=$ac_try;; |
6596 |
esac |
6597 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6598 |
(eval "$ac_try") 2>&5 |
6599 |
ac_status=$? |
6600 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6601 |
(exit $ac_status); }; } && |
6602 |
{ ac_try='test -s conftest.$ac_objext' |
6603 |
{ (case "(($ac_try" in |
6604 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6605 |
*) ac_try_echo=$ac_try;; |
6606 |
esac |
6607 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6608 |
(eval "$ac_try") 2>&5 |
6609 |
ac_status=$? |
6610 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6611 |
(exit $ac_status); }; }; then |
6612 |
ac_cv_type_int64_t=yes |
6613 |
else |
6614 |
echo "$as_me: failed program was:" >&5 |
6615 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6616 |
|
6617 |
ac_cv_type_int64_t=no |
6618 |
fi |
6619 |
|
6620 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6621 |
fi |
6622 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
6623 |
echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
6624 |
|
6625 |
{ echo "$as_me:$LINENO: checking size of int64_t" >&5 |
6626 |
echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6; } |
6627 |
if test "${ac_cv_sizeof_int64_t+set}" = set; then |
6628 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6629 |
else |
6630 |
if test "$ac_cv_type_int64_t" = yes; then |
6631 |
# The cast to long int works around a bug in the HP C Compiler |
6632 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
6633 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
6634 |
# This bug is HP SR number 8606223364. |
6635 |
if test "$cross_compiling" = yes; then |
6636 |
# Depending upon the size, compute the lo and hi bounds. |
6637 |
cat >conftest.$ac_ext <<_ACEOF |
6638 |
/* confdefs.h. */ |
6639 |
_ACEOF |
6640 |
cat confdefs.h >>conftest.$ac_ext |
6641 |
cat >>conftest.$ac_ext <<_ACEOF |
6642 |
/* end confdefs.h. */ |
6643 |
$ac_includes_default |
6644 |
typedef int64_t ac__type_sizeof_; |
6645 |
int |
6646 |
main () |
6647 |
{ |
6648 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
6649 |
test_array [0] = 0 |
6650 |
|
6651 |
; |
6652 |
return 0; |
6653 |
} |
6654 |
_ACEOF |
6655 |
rm -f conftest.$ac_objext |
6656 |
if { (ac_try="$ac_compile" |
6657 |
case "(($ac_try" in |
6658 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6659 |
*) ac_try_echo=$ac_try;; |
6660 |
esac |
6661 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6662 |
(eval "$ac_compile") 2>conftest.er1 |
6663 |
ac_status=$? |
6664 |
grep -v '^ *+' conftest.er1 >conftest.err |
6665 |
rm -f conftest.er1 |
6666 |
cat conftest.err >&5 |
6667 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6668 |
(exit $ac_status); } && |
6669 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6670 |
{ (case "(($ac_try" in |
6671 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6672 |
*) ac_try_echo=$ac_try;; |
6673 |
esac |
6674 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6675 |
(eval "$ac_try") 2>&5 |
6676 |
ac_status=$? |
6677 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6678 |
(exit $ac_status); }; } && |
6679 |
{ ac_try='test -s conftest.$ac_objext' |
6680 |
{ (case "(($ac_try" in |
6681 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6682 |
*) ac_try_echo=$ac_try;; |
6683 |
esac |
6684 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6685 |
(eval "$ac_try") 2>&5 |
6686 |
ac_status=$? |
6687 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6688 |
(exit $ac_status); }; }; then |
6689 |
ac_lo=0 ac_mid=0 |
6690 |
while :; do |
6691 |
cat >conftest.$ac_ext <<_ACEOF |
6692 |
/* confdefs.h. */ |
6693 |
_ACEOF |
6694 |
cat confdefs.h >>conftest.$ac_ext |
6695 |
cat >>conftest.$ac_ext <<_ACEOF |
6696 |
/* end confdefs.h. */ |
6697 |
$ac_includes_default |
6698 |
typedef int64_t ac__type_sizeof_; |
6699 |
int |
6700 |
main () |
6701 |
{ |
6702 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
6703 |
test_array [0] = 0 |
6704 |
|
6705 |
; |
6706 |
return 0; |
6707 |
} |
6708 |
_ACEOF |
6709 |
rm -f conftest.$ac_objext |
6710 |
if { (ac_try="$ac_compile" |
6711 |
case "(($ac_try" in |
6712 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6713 |
*) ac_try_echo=$ac_try;; |
6714 |
esac |
6715 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6716 |
(eval "$ac_compile") 2>conftest.er1 |
6717 |
ac_status=$? |
6718 |
grep -v '^ *+' conftest.er1 >conftest.err |
6719 |
rm -f conftest.er1 |
6720 |
cat conftest.err >&5 |
6721 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6722 |
(exit $ac_status); } && |
6723 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6724 |
{ (case "(($ac_try" in |
6725 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6726 |
*) ac_try_echo=$ac_try;; |
6727 |
esac |
6728 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6729 |
(eval "$ac_try") 2>&5 |
6730 |
ac_status=$? |
6731 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6732 |
(exit $ac_status); }; } && |
6733 |
{ ac_try='test -s conftest.$ac_objext' |
6734 |
{ (case "(($ac_try" in |
6735 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6736 |
*) ac_try_echo=$ac_try;; |
6737 |
esac |
6738 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6739 |
(eval "$ac_try") 2>&5 |
6740 |
ac_status=$? |
6741 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6742 |
(exit $ac_status); }; }; then |
6743 |
ac_hi=$ac_mid; break |
6744 |
else |
6745 |
echo "$as_me: failed program was:" >&5 |
6746 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6747 |
|
6748 |
ac_lo=`expr $ac_mid + 1` |
6749 |
if test $ac_lo -le $ac_mid; then |
6750 |
ac_lo= ac_hi= |
6751 |
break |
6752 |
fi |
6753 |
ac_mid=`expr 2 '*' $ac_mid + 1` |
6754 |
fi |
6755 |
|
6756 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6757 |
done |
6758 |
else |
6759 |
echo "$as_me: failed program was:" >&5 |
6760 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6761 |
|
6762 |
cat >conftest.$ac_ext <<_ACEOF |
6763 |
/* confdefs.h. */ |
6764 |
_ACEOF |
6765 |
cat confdefs.h >>conftest.$ac_ext |
6766 |
cat >>conftest.$ac_ext <<_ACEOF |
6767 |
/* end confdefs.h. */ |
6768 |
$ac_includes_default |
6769 |
typedef int64_t ac__type_sizeof_; |
6770 |
int |
6771 |
main () |
6772 |
{ |
6773 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
6774 |
test_array [0] = 0 |
6775 |
|
6776 |
; |
6777 |
return 0; |
6778 |
} |
6779 |
_ACEOF |
6780 |
rm -f conftest.$ac_objext |
6781 |
if { (ac_try="$ac_compile" |
6782 |
case "(($ac_try" in |
6783 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6784 |
*) ac_try_echo=$ac_try;; |
6785 |
esac |
6786 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6787 |
(eval "$ac_compile") 2>conftest.er1 |
6788 |
ac_status=$? |
6789 |
grep -v '^ *+' conftest.er1 >conftest.err |
6790 |
rm -f conftest.er1 |
6791 |
cat conftest.err >&5 |
6792 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6793 |
(exit $ac_status); } && |
6794 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6795 |
{ (case "(($ac_try" in |
6796 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6797 |
*) ac_try_echo=$ac_try;; |
6798 |
esac |
6799 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6800 |
(eval "$ac_try") 2>&5 |
6801 |
ac_status=$? |
6802 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6803 |
(exit $ac_status); }; } && |
6804 |
{ ac_try='test -s conftest.$ac_objext' |
6805 |
{ (case "(($ac_try" in |
6806 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6807 |
*) ac_try_echo=$ac_try;; |
6808 |
esac |
6809 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6810 |
(eval "$ac_try") 2>&5 |
6811 |
ac_status=$? |
6812 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6813 |
(exit $ac_status); }; }; then |
6814 |
ac_hi=-1 ac_mid=-1 |
6815 |
while :; do |
6816 |
cat >conftest.$ac_ext <<_ACEOF |
6817 |
/* confdefs.h. */ |
6818 |
_ACEOF |
6819 |
cat confdefs.h >>conftest.$ac_ext |
6820 |
cat >>conftest.$ac_ext <<_ACEOF |
6821 |
/* end confdefs.h. */ |
6822 |
$ac_includes_default |
6823 |
typedef int64_t ac__type_sizeof_; |
6824 |
int |
6825 |
main () |
6826 |
{ |
6827 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
6828 |
test_array [0] = 0 |
6829 |
|
6830 |
; |
6831 |
return 0; |
6832 |
} |
6833 |
_ACEOF |
6834 |
rm -f conftest.$ac_objext |
6835 |
if { (ac_try="$ac_compile" |
6836 |
case "(($ac_try" in |
6837 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6838 |
*) ac_try_echo=$ac_try;; |
6839 |
esac |
6840 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6841 |
(eval "$ac_compile") 2>conftest.er1 |
6842 |
ac_status=$? |
6843 |
grep -v '^ *+' conftest.er1 >conftest.err |
6844 |
rm -f conftest.er1 |
6845 |
cat conftest.err >&5 |
6846 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6847 |
(exit $ac_status); } && |
6848 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6849 |
{ (case "(($ac_try" in |
6850 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6851 |
*) ac_try_echo=$ac_try;; |
6852 |
esac |
6853 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6854 |
(eval "$ac_try") 2>&5 |
6855 |
ac_status=$? |
6856 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6857 |
(exit $ac_status); }; } && |
6858 |
{ ac_try='test -s conftest.$ac_objext' |
6859 |
{ (case "(($ac_try" in |
6860 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6861 |
*) ac_try_echo=$ac_try;; |
6862 |
esac |
6863 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6864 |
(eval "$ac_try") 2>&5 |
6865 |
ac_status=$? |
6866 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6867 |
(exit $ac_status); }; }; then |
6868 |
ac_lo=$ac_mid; break |
6869 |
else |
6870 |
echo "$as_me: failed program was:" >&5 |
6871 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6872 |
|
6873 |
ac_hi=`expr '(' $ac_mid ')' - 1` |
6874 |
if test $ac_mid -le $ac_hi; then |
6875 |
ac_lo= ac_hi= |
6876 |
break |
6877 |
fi |
6878 |
ac_mid=`expr 2 '*' $ac_mid` |
6879 |
fi |
6880 |
|
6881 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6882 |
done |
6883 |
else |
6884 |
echo "$as_me: failed program was:" >&5 |
6885 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6886 |
|
6887 |
ac_lo= ac_hi= |
6888 |
fi |
6889 |
|
6890 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6891 |
fi |
6892 |
|
6893 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6894 |
# Binary search between lo and hi bounds. |
6895 |
while test "x$ac_lo" != "x$ac_hi"; do |
6896 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
6897 |
cat >conftest.$ac_ext <<_ACEOF |
6898 |
/* confdefs.h. */ |
6899 |
_ACEOF |
6900 |
cat confdefs.h >>conftest.$ac_ext |
6901 |
cat >>conftest.$ac_ext <<_ACEOF |
6902 |
/* end confdefs.h. */ |
6903 |
$ac_includes_default |
6904 |
typedef int64_t ac__type_sizeof_; |
6905 |
int |
6906 |
main () |
6907 |
{ |
6908 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
6909 |
test_array [0] = 0 |
6910 |
|
6911 |
; |
6912 |
return 0; |
6913 |
} |
6914 |
_ACEOF |
6915 |
rm -f conftest.$ac_objext |
6916 |
if { (ac_try="$ac_compile" |
6917 |
case "(($ac_try" in |
6918 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6919 |
*) ac_try_echo=$ac_try;; |
6920 |
esac |
6921 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6922 |
(eval "$ac_compile") 2>conftest.er1 |
6923 |
ac_status=$? |
6924 |
grep -v '^ *+' conftest.er1 >conftest.err |
6925 |
rm -f conftest.er1 |
6926 |
cat conftest.err >&5 |
6927 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6928 |
(exit $ac_status); } && |
6929 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6930 |
{ (case "(($ac_try" in |
6931 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6932 |
*) ac_try_echo=$ac_try;; |
6933 |
esac |
6934 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6935 |
(eval "$ac_try") 2>&5 |
6936 |
ac_status=$? |
6937 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6938 |
(exit $ac_status); }; } && |
6939 |
{ ac_try='test -s conftest.$ac_objext' |
6940 |
{ (case "(($ac_try" in |
6941 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6942 |
*) ac_try_echo=$ac_try;; |
6943 |
esac |
6944 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6945 |
(eval "$ac_try") 2>&5 |
6946 |
ac_status=$? |
6947 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6948 |
(exit $ac_status); }; }; then |
6949 |
ac_hi=$ac_mid |
6950 |
else |
6951 |
echo "$as_me: failed program was:" >&5 |
6952 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6953 |
|
6954 |
ac_lo=`expr '(' $ac_mid ')' + 1` |
6955 |
fi |
6956 |
|
6957 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6958 |
done |
6959 |
case $ac_lo in |
6960 |
?*) ac_cv_sizeof_int64_t=$ac_lo;; |
6961 |
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t) |
6962 |
See \`config.log' for more details." >&5 |
6963 |
echo "$as_me: error: cannot compute sizeof (int64_t) |
6964 |
See \`config.log' for more details." >&2;} |
6965 |
{ (exit 77); exit 77; }; } ;; |
6966 |
esac |
6967 |
else |
6968 |
cat >conftest.$ac_ext <<_ACEOF |
6969 |
/* confdefs.h. */ |
6970 |
_ACEOF |
6971 |
cat confdefs.h >>conftest.$ac_ext |
6972 |
cat >>conftest.$ac_ext <<_ACEOF |
6973 |
/* end confdefs.h. */ |
6974 |
$ac_includes_default |
6975 |
typedef int64_t ac__type_sizeof_; |
6976 |
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
6977 |
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
6978 |
#include <stdio.h> |
6979 |
#include <stdlib.h> |
6980 |
int |
6981 |
main () |
6982 |
{ |
6983 |
|
6984 |
FILE *f = fopen ("conftest.val", "w"); |
6985 |
if (! f) |
6986 |
return 1; |
6987 |
if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
6988 |
{ |
6989 |
long int i = longval (); |
6990 |
if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
6991 |
return 1; |
6992 |
fprintf (f, "%ld\n", i); |
6993 |
} |
6994 |
else |
6995 |
{ |
6996 |
unsigned long int i = ulongval (); |
6997 |
if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
6998 |
return 1; |
6999 |
fprintf (f, "%lu\n", i); |
7000 |
} |
7001 |
return ferror (f) || fclose (f) != 0; |
7002 |
|
7003 |
; |
7004 |
return 0; |
7005 |
} |
7006 |
_ACEOF |
7007 |
rm -f conftest$ac_exeext |
7008 |
if { (ac_try="$ac_link" |
7009 |
case "(($ac_try" in |
7010 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7011 |
*) ac_try_echo=$ac_try;; |
7012 |
esac |
7013 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7014 |
(eval "$ac_link") 2>&5 |
7015 |
ac_status=$? |
7016 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7017 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7018 |
{ (case "(($ac_try" in |
7019 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7020 |
*) ac_try_echo=$ac_try;; |
7021 |
esac |
7022 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7023 |
(eval "$ac_try") 2>&5 |
7024 |
ac_status=$? |
7025 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7026 |
(exit $ac_status); }; }; then |
7027 |
ac_cv_sizeof_int64_t=`cat conftest.val` |
7028 |
else |
7029 |
echo "$as_me: program exited with status $ac_status" >&5 |
7030 |
echo "$as_me: failed program was:" >&5 |
7031 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7032 |
|
7033 |
( exit $ac_status ) |
7034 |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t) |
7035 |
See \`config.log' for more details." >&5 |
7036 |
echo "$as_me: error: cannot compute sizeof (int64_t) |
7037 |
See \`config.log' for more details." >&2;} |
7038 |
{ (exit 77); exit 77; }; } |
7039 |
fi |
7040 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7041 |
fi |
7042 |
rm -f conftest.val |
7043 |
else |
7044 |
ac_cv_sizeof_int64_t=0 |
7045 |
fi |
7046 |
fi |
7047 |
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5 |
7048 |
echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6; } |
7049 |
cat >>confdefs.h <<_ACEOF |
7050 |
#define SIZEOF_INT64_T $ac_cv_sizeof_int64_t |
7051 |
_ACEOF |
7052 |
|
7053 |
|
7054 |
{ echo "$as_me:$LINENO: checking for long long" >&5 |
7055 |
echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
7056 |
if test "${ac_cv_type_long_long+set}" = set; then |
7057 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7058 |
else |
7059 |
cat >conftest.$ac_ext <<_ACEOF |
7060 |
/* confdefs.h. */ |
7061 |
_ACEOF |
7062 |
cat confdefs.h >>conftest.$ac_ext |
7063 |
cat >>conftest.$ac_ext <<_ACEOF |
7064 |
/* end confdefs.h. */ |
7065 |
$ac_includes_default |
7066 |
typedef long long ac__type_new_; |
7067 |
int |
7068 |
main () |
7069 |
{ |
7070 |
if ((ac__type_new_ *) 0) |
7071 |
return 0; |
7072 |
if (sizeof (ac__type_new_)) |
7073 |
return 0; |
7074 |
; |
7075 |
return 0; |
7076 |
} |
7077 |
_ACEOF |
7078 |
rm -f conftest.$ac_objext |
7079 |
if { (ac_try="$ac_compile" |
7080 |
case "(($ac_try" in |
7081 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7082 |
*) ac_try_echo=$ac_try;; |
7083 |
esac |
7084 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7085 |
(eval "$ac_compile") 2>conftest.er1 |
7086 |
ac_status=$? |
7087 |
grep -v '^ *+' conftest.er1 >conftest.err |
7088 |
rm -f conftest.er1 |
7089 |
cat conftest.err >&5 |
7090 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7091 |
(exit $ac_status); } && |
7092 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7093 |
{ (case "(($ac_try" in |
7094 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7095 |
*) ac_try_echo=$ac_try;; |
7096 |
esac |
7097 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7098 |
(eval "$ac_try") 2>&5 |
7099 |
ac_status=$? |
7100 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7101 |
(exit $ac_status); }; } && |
7102 |
{ ac_try='test -s conftest.$ac_objext' |
7103 |
{ (case "(($ac_try" in |
7104 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7105 |
*) ac_try_echo=$ac_try;; |
7106 |
esac |
7107 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7108 |
(eval "$ac_try") 2>&5 |
7109 |
ac_status=$? |
7110 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7111 |
(exit $ac_status); }; }; then |
7112 |
ac_cv_type_long_long=yes |
7113 |
else |
7114 |
echo "$as_me: failed program was:" >&5 |
7115 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7116 |
|
7117 |
ac_cv_type_long_long=no |
7118 |
fi |
7119 |
|
7120 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7121 |
fi |
7122 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
7123 |
echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
7124 |
|
7125 |
{ echo "$as_me:$LINENO: checking size of long long" >&5 |
7126 |
echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
7127 |
if test "${ac_cv_sizeof_long_long+set}" = set; then |
7128 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7129 |
else |
7130 |
if test "$ac_cv_type_long_long" = yes; then |
7131 |
# The cast to long int works around a bug in the HP C Compiler |
7132 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
7133 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
7134 |
# This bug is HP SR number 8606223364. |
7135 |
if test "$cross_compiling" = yes; then |
7136 |
# Depending upon the size, compute the lo and hi bounds. |
7137 |
cat >conftest.$ac_ext <<_ACEOF |
7138 |
/* confdefs.h. */ |
7139 |
_ACEOF |
7140 |
cat confdefs.h >>conftest.$ac_ext |
7141 |
cat >>conftest.$ac_ext <<_ACEOF |
7142 |
/* end confdefs.h. */ |
7143 |
$ac_includes_default |
7144 |
typedef long long ac__type_sizeof_; |
7145 |
int |
7146 |
main () |
7147 |
{ |
7148 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
7149 |
test_array [0] = 0 |
7150 |
|
7151 |
; |
7152 |
return 0; |
7153 |
} |
7154 |
_ACEOF |
7155 |
rm -f conftest.$ac_objext |
7156 |
if { (ac_try="$ac_compile" |
7157 |
case "(($ac_try" in |
7158 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7159 |
*) ac_try_echo=$ac_try;; |
7160 |
esac |
7161 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7162 |
(eval "$ac_compile") 2>conftest.er1 |
7163 |
ac_status=$? |
7164 |
grep -v '^ *+' conftest.er1 >conftest.err |
7165 |
rm -f conftest.er1 |
7166 |
cat conftest.err >&5 |
7167 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7168 |
(exit $ac_status); } && |
7169 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7170 |
{ (case "(($ac_try" in |
7171 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7172 |
*) ac_try_echo=$ac_try;; |
7173 |
esac |
7174 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7175 |
(eval "$ac_try") 2>&5 |
7176 |
ac_status=$? |
7177 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7178 |
(exit $ac_status); }; } && |
7179 |
{ ac_try='test -s conftest.$ac_objext' |
7180 |
{ (case "(($ac_try" in |
7181 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7182 |
*) ac_try_echo=$ac_try;; |
7183 |
esac |
7184 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7185 |
(eval "$ac_try") 2>&5 |
7186 |
ac_status=$? |
7187 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7188 |
(exit $ac_status); }; }; then |
7189 |
ac_lo=0 ac_mid=0 |
7190 |
while :; do |
7191 |
cat >conftest.$ac_ext <<_ACEOF |
7192 |
/* confdefs.h. */ |
7193 |
_ACEOF |
7194 |
cat confdefs.h >>conftest.$ac_ext |
7195 |
cat >>conftest.$ac_ext <<_ACEOF |
7196 |
/* end confdefs.h. */ |
7197 |
$ac_includes_default |
7198 |
typedef long long ac__type_sizeof_; |
7199 |
int |
7200 |
main () |
7201 |
{ |
7202 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
7203 |
test_array [0] = 0 |
7204 |
|
7205 |
; |
7206 |
return 0; |
7207 |
} |
7208 |
_ACEOF |
7209 |
rm -f conftest.$ac_objext |
7210 |
if { (ac_try="$ac_compile" |
7211 |
case "(($ac_try" in |
7212 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7213 |
*) ac_try_echo=$ac_try;; |
7214 |
esac |
7215 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7216 |
(eval "$ac_compile") 2>conftest.er1 |
7217 |
ac_status=$? |
7218 |
grep -v '^ *+' conftest.er1 >conftest.err |
7219 |
rm -f conftest.er1 |
7220 |
cat conftest.err >&5 |
7221 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7222 |
(exit $ac_status); } && |
7223 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7224 |
{ (case "(($ac_try" in |
7225 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7226 |
*) ac_try_echo=$ac_try;; |
7227 |
esac |
7228 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7229 |
(eval "$ac_try") 2>&5 |
7230 |
ac_status=$? |
7231 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7232 |
(exit $ac_status); }; } && |
7233 |
{ ac_try='test -s conftest.$ac_objext' |
7234 |
{ (case "(($ac_try" in |
7235 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7236 |
*) ac_try_echo=$ac_try;; |
7237 |
esac |
7238 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7239 |
(eval "$ac_try") 2>&5 |
7240 |
ac_status=$? |
7241 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7242 |
(exit $ac_status); }; }; then |
7243 |
ac_hi=$ac_mid; break |
7244 |
else |
7245 |
echo "$as_me: failed program was:" >&5 |
7246 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7247 |
|
7248 |
ac_lo=`expr $ac_mid + 1` |
7249 |
if test $ac_lo -le $ac_mid; then |
7250 |
ac_lo= ac_hi= |
7251 |
break |
7252 |
fi |
7253 |
ac_mid=`expr 2 '*' $ac_mid + 1` |
7254 |
fi |
7255 |
|
7256 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7257 |
done |
7258 |
else |
7259 |
echo "$as_me: failed program was:" >&5 |
7260 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7261 |
|
7262 |
cat >conftest.$ac_ext <<_ACEOF |
7263 |
/* confdefs.h. */ |
7264 |
_ACEOF |
7265 |
cat confdefs.h >>conftest.$ac_ext |
7266 |
cat >>conftest.$ac_ext <<_ACEOF |
7267 |
/* end confdefs.h. */ |
7268 |
$ac_includes_default |
7269 |
typedef long long ac__type_sizeof_; |
7270 |
int |
7271 |
main () |
7272 |
{ |
7273 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
7274 |
test_array [0] = 0 |
7275 |
|
7276 |
; |
7277 |
return 0; |
7278 |
} |
7279 |
_ACEOF |
7280 |
rm -f conftest.$ac_objext |
7281 |
if { (ac_try="$ac_compile" |
7282 |
case "(($ac_try" in |
7283 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7284 |
*) ac_try_echo=$ac_try;; |
7285 |
esac |
7286 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7287 |
(eval "$ac_compile") 2>conftest.er1 |
7288 |
ac_status=$? |
7289 |
grep -v '^ *+' conftest.er1 >conftest.err |
7290 |
rm -f conftest.er1 |
7291 |
cat conftest.err >&5 |
7292 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7293 |
(exit $ac_status); } && |
7294 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7295 |
{ (case "(($ac_try" in |
7296 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7297 |
*) ac_try_echo=$ac_try;; |
7298 |
esac |
7299 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7300 |
(eval "$ac_try") 2>&5 |
7301 |
ac_status=$? |
7302 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7303 |
(exit $ac_status); }; } && |
7304 |
{ ac_try='test -s conftest.$ac_objext' |
7305 |
{ (case "(($ac_try" in |
7306 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7307 |
*) ac_try_echo=$ac_try;; |
7308 |
esac |
7309 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7310 |
(eval "$ac_try") 2>&5 |
7311 |
ac_status=$? |
7312 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7313 |
(exit $ac_status); }; }; then |
7314 |
ac_hi=-1 ac_mid=-1 |
7315 |
while :; do |
7316 |
cat >conftest.$ac_ext <<_ACEOF |
7317 |
/* confdefs.h. */ |
7318 |
_ACEOF |
7319 |
cat confdefs.h >>conftest.$ac_ext |
7320 |
cat >>conftest.$ac_ext <<_ACEOF |
7321 |
/* end confdefs.h. */ |
7322 |
$ac_includes_default |
7323 |
typedef long long ac__type_sizeof_; |
7324 |
int |
7325 |
main () |
7326 |
{ |
7327 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
7328 |
test_array [0] = 0 |
7329 |
|
7330 |
; |
7331 |
return 0; |
7332 |
} |
7333 |
_ACEOF |
7334 |
rm -f conftest.$ac_objext |
7335 |
if { (ac_try="$ac_compile" |
7336 |
case "(($ac_try" in |
7337 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7338 |
*) ac_try_echo=$ac_try;; |
7339 |
esac |
7340 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7341 |
(eval "$ac_compile") 2>conftest.er1 |
7342 |
ac_status=$? |
7343 |
grep -v '^ *+' conftest.er1 >conftest.err |
7344 |
rm -f conftest.er1 |
7345 |
cat conftest.err >&5 |
7346 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7347 |
(exit $ac_status); } && |
7348 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7349 |
{ (case "(($ac_try" in |
7350 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7351 |
*) ac_try_echo=$ac_try;; |
7352 |
esac |
7353 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7354 |
(eval "$ac_try") 2>&5 |
7355 |
ac_status=$? |
7356 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7357 |
(exit $ac_status); }; } && |
7358 |
{ ac_try='test -s conftest.$ac_objext' |
7359 |
{ (case "(($ac_try" in |
7360 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7361 |
*) ac_try_echo=$ac_try;; |
7362 |
esac |
7363 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7364 |
(eval "$ac_try") 2>&5 |
7365 |
ac_status=$? |
7366 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7367 |
(exit $ac_status); }; }; then |
7368 |
ac_lo=$ac_mid; break |
7369 |
else |
7370 |
echo "$as_me: failed program was:" >&5 |
7371 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7372 |
|
7373 |
ac_hi=`expr '(' $ac_mid ')' - 1` |
7374 |
if test $ac_mid -le $ac_hi; then |
7375 |
ac_lo= ac_hi= |
7376 |
break |
7377 |
fi |
7378 |
ac_mid=`expr 2 '*' $ac_mid` |
7379 |
fi |
7380 |
|
7381 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7382 |
done |
7383 |
else |
7384 |
echo "$as_me: failed program was:" >&5 |
7385 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7386 |
|
7387 |
ac_lo= ac_hi= |
7388 |
fi |
7389 |
|
7390 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7391 |
fi |
7392 |
|
7393 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7394 |
# Binary search between lo and hi bounds. |
7395 |
while test "x$ac_lo" != "x$ac_hi"; do |
7396 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
7397 |
cat >conftest.$ac_ext <<_ACEOF |
7398 |
/* confdefs.h. */ |
7399 |
_ACEOF |
7400 |
cat confdefs.h >>conftest.$ac_ext |
7401 |
cat >>conftest.$ac_ext <<_ACEOF |
7402 |
/* end confdefs.h. */ |
7403 |
$ac_includes_default |
7404 |
typedef long long ac__type_sizeof_; |
7405 |
int |
7406 |
main () |
7407 |
{ |
7408 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
7409 |
test_array [0] = 0 |
7410 |
|
7411 |
; |
7412 |
return 0; |
7413 |
} |
7414 |
_ACEOF |
7415 |
rm -f conftest.$ac_objext |
7416 |
if { (ac_try="$ac_compile" |
7417 |
case "(($ac_try" in |
7418 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7419 |
*) ac_try_echo=$ac_try;; |
7420 |
esac |
7421 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7422 |
(eval "$ac_compile") 2>conftest.er1 |
7423 |
ac_status=$? |
7424 |
grep -v '^ *+' conftest.er1 >conftest.err |
7425 |
rm -f conftest.er1 |
7426 |
cat conftest.err >&5 |
7427 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7428 |
(exit $ac_status); } && |
7429 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7430 |
{ (case "(($ac_try" in |
7431 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7432 |
*) ac_try_echo=$ac_try;; |
7433 |
esac |
7434 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7435 |
(eval "$ac_try") 2>&5 |
7436 |
ac_status=$? |
7437 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7438 |
(exit $ac_status); }; } && |
7439 |
{ ac_try='test -s conftest.$ac_objext' |
7440 |
{ (case "(($ac_try" in |
7441 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7442 |
*) ac_try_echo=$ac_try;; |
7443 |
esac |
7444 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7445 |
(eval "$ac_try") 2>&5 |
7446 |
ac_status=$? |
7447 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7448 |
(exit $ac_status); }; }; then |
7449 |
ac_hi=$ac_mid |
7450 |
else |
7451 |
echo "$as_me: failed program was:" >&5 |
7452 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7453 |
|
7454 |
ac_lo=`expr '(' $ac_mid ')' + 1` |
7455 |
fi |
7456 |
|
7457 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7458 |
done |
7459 |
case $ac_lo in |
7460 |
?*) ac_cv_sizeof_long_long=$ac_lo;; |
7461 |
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
7462 |
See \`config.log' for more details." >&5 |
7463 |
echo "$as_me: error: cannot compute sizeof (long long) |
7464 |
See \`config.log' for more details." >&2;} |
7465 |
{ (exit 77); exit 77; }; } ;; |
7466 |
esac |
7467 |
else |
7468 |
cat >conftest.$ac_ext <<_ACEOF |
7469 |
/* confdefs.h. */ |
7470 |
_ACEOF |
7471 |
cat confdefs.h >>conftest.$ac_ext |
7472 |
cat >>conftest.$ac_ext <<_ACEOF |
7473 |
/* end confdefs.h. */ |
7474 |
$ac_includes_default |
7475 |
typedef long long ac__type_sizeof_; |
7476 |
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
7477 |
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
7478 |
#include <stdio.h> |
7479 |
#include <stdlib.h> |
7480 |
int |
7481 |
main () |
7482 |
{ |
7483 |
|
7484 |
FILE *f = fopen ("conftest.val", "w"); |
7485 |
if (! f) |
7486 |
return 1; |
7487 |
if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
7488 |
{ |
7489 |
long int i = longval (); |
7490 |
if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
7491 |
return 1; |
7492 |
fprintf (f, "%ld\n", i); |
7493 |
} |
7494 |
else |
7495 |
{ |
7496 |
unsigned long int i = ulongval (); |
7497 |
if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
7498 |
return 1; |
7499 |
fprintf (f, "%lu\n", i); |
7500 |
} |
7501 |
return ferror (f) || fclose (f) != 0; |
7502 |
|
7503 |
; |
7504 |
return 0; |
7505 |
} |
7506 |
_ACEOF |
7507 |
rm -f conftest$ac_exeext |
7508 |
if { (ac_try="$ac_link" |
7509 |
case "(($ac_try" in |
7510 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7511 |
*) ac_try_echo=$ac_try;; |
7512 |
esac |
7513 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7514 |
(eval "$ac_link") 2>&5 |
7515 |
ac_status=$? |
7516 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7517 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7518 |
{ (case "(($ac_try" in |
7519 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7520 |
*) ac_try_echo=$ac_try;; |
7521 |
esac |
7522 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7523 |
(eval "$ac_try") 2>&5 |
7524 |
ac_status=$? |
7525 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7526 |
(exit $ac_status); }; }; then |
7527 |
ac_cv_sizeof_long_long=`cat conftest.val` |
7528 |
else |
7529 |
echo "$as_me: program exited with status $ac_status" >&5 |
7530 |
echo "$as_me: failed program was:" >&5 |
7531 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7532 |
|
7533 |
( exit $ac_status ) |
7534 |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
7535 |
See \`config.log' for more details." >&5 |
7536 |
echo "$as_me: error: cannot compute sizeof (long long) |
7537 |
See \`config.log' for more details." >&2;} |
7538 |
{ (exit 77); exit 77; }; } |
7539 |
fi |
7540 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7541 |
fi |
7542 |
rm -f conftest.val |
7543 |
else |
7544 |
ac_cv_sizeof_long_long=0 |
7545 |
fi |
7546 |
fi |
7547 |
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
7548 |
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
7549 |
cat >>confdefs.h <<_ACEOF |
7550 |
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
7551 |
_ACEOF |
7552 |
|
7553 |
|
7554 |
|
7555 |
if test "$ac_cv_sizeof_int64_t" = 8; then |
7556 |
{ echo "$as_me:$LINENO: checking for uint64_t" >&5 |
7557 |
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
7558 |
if test "${ac_cv_type_uint64_t+set}" = set; then |
7559 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7560 |
else |
7561 |
cat >conftest.$ac_ext <<_ACEOF |
7562 |
/* confdefs.h. */ |
7563 |
_ACEOF |
7564 |
cat confdefs.h >>conftest.$ac_ext |
7565 |
cat >>conftest.$ac_ext <<_ACEOF |
7566 |
/* end confdefs.h. */ |
7567 |
$ac_includes_default |
7568 |
typedef uint64_t ac__type_new_; |
7569 |
int |
7570 |
main () |
7571 |
{ |
7572 |
if ((ac__type_new_ *) 0) |
7573 |
return 0; |
7574 |
if (sizeof (ac__type_new_)) |
7575 |
return 0; |
7576 |
; |
7577 |
return 0; |
7578 |
} |
7579 |
_ACEOF |
7580 |
rm -f conftest.$ac_objext |
7581 |
if { (ac_try="$ac_compile" |
7582 |
case "(($ac_try" in |
7583 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7584 |
*) ac_try_echo=$ac_try;; |
7585 |
esac |
7586 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7587 |
(eval "$ac_compile") 2>conftest.er1 |
7588 |
ac_status=$? |
7589 |
grep -v '^ *+' conftest.er1 >conftest.err |
7590 |
rm -f conftest.er1 |
7591 |
cat conftest.err >&5 |
7592 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7593 |
(exit $ac_status); } && |
7594 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7595 |
{ (case "(($ac_try" in |
7596 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7597 |
*) ac_try_echo=$ac_try;; |
7598 |
esac |
7599 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7600 |
(eval "$ac_try") 2>&5 |
7601 |
ac_status=$? |
7602 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7603 |
(exit $ac_status); }; } && |
7604 |
{ ac_try='test -s conftest.$ac_objext' |
7605 |
{ (case "(($ac_try" in |
7606 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7607 |
*) ac_try_echo=$ac_try;; |
7608 |
esac |
7609 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7610 |
(eval "$ac_try") 2>&5 |
7611 |
ac_status=$? |
7612 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7613 |
(exit $ac_status); }; }; then |
7614 |
ac_cv_type_uint64_t=yes |
7615 |
else |
7616 |
echo "$as_me: failed program was:" >&5 |
7617 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7618 |
|
7619 |
ac_cv_type_uint64_t=no |
7620 |
fi |
7621 |
|
7622 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7623 |
fi |
7624 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
7625 |
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
7626 |
|
7627 |
{ echo "$as_me:$LINENO: checking for int64_t" >&5 |
7628 |
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
7629 |
if test "${ac_cv_type_int64_t+set}" = set; then |
7630 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7631 |
else |
7632 |
cat >conftest.$ac_ext <<_ACEOF |
7633 |
/* confdefs.h. */ |
7634 |
_ACEOF |
7635 |
cat confdefs.h >>conftest.$ac_ext |
7636 |
cat >>conftest.$ac_ext <<_ACEOF |
7637 |
/* end confdefs.h. */ |
7638 |
$ac_includes_default |
7639 |
typedef int64_t ac__type_new_; |
7640 |
int |
7641 |
main () |
7642 |
{ |
7643 |
if ((ac__type_new_ *) 0) |
7644 |
return 0; |
7645 |
if (sizeof (ac__type_new_)) |
7646 |
return 0; |
7647 |
; |
7648 |
return 0; |
7649 |
} |
7650 |
_ACEOF |
7651 |
rm -f conftest.$ac_objext |
7652 |
if { (ac_try="$ac_compile" |
7653 |
case "(($ac_try" in |
7654 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7655 |
*) ac_try_echo=$ac_try;; |
7656 |
esac |
7657 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7658 |
(eval "$ac_compile") 2>conftest.er1 |
7659 |
ac_status=$? |
7660 |
grep -v '^ *+' conftest.er1 >conftest.err |
7661 |
rm -f conftest.er1 |
7662 |
cat conftest.err >&5 |
7663 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7664 |
(exit $ac_status); } && |
7665 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7666 |
{ (case "(($ac_try" in |
7667 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7668 |
*) ac_try_echo=$ac_try;; |
7669 |
esac |
7670 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7671 |
(eval "$ac_try") 2>&5 |
7672 |
ac_status=$? |
7673 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7674 |
(exit $ac_status); }; } && |
7675 |
{ ac_try='test -s conftest.$ac_objext' |
7676 |
{ (case "(($ac_try" in |
7677 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7678 |
*) ac_try_echo=$ac_try;; |
7679 |
esac |
7680 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7681 |
(eval "$ac_try") 2>&5 |
7682 |
ac_status=$? |
7683 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7684 |
(exit $ac_status); }; }; then |
7685 |
ac_cv_type_int64_t=yes |
7686 |
else |
7687 |
echo "$as_me: failed program was:" >&5 |
7688 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7689 |
|
7690 |
ac_cv_type_int64_t=no |
7691 |
fi |
7692 |
|
7693 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7694 |
fi |
7695 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
7696 |
echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
7697 |
|
7698 |
elif test "$ac_cv_sizeof_long_long" = 8; then |
7699 |
{ echo "$as_me:$LINENO: checking for uint64_t" >&5 |
7700 |
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
7701 |
if test "${ac_cv_type_uint64_t+set}" = set; then |
7702 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7703 |
else |
7704 |
cat >conftest.$ac_ext <<_ACEOF |
7705 |
/* confdefs.h. */ |
7706 |
_ACEOF |
7707 |
cat confdefs.h >>conftest.$ac_ext |
7708 |
cat >>conftest.$ac_ext <<_ACEOF |
7709 |
/* end confdefs.h. */ |
7710 |
$ac_includes_default |
7711 |
typedef uint64_t ac__type_new_; |
7712 |
int |
7713 |
main () |
7714 |
{ |
7715 |
if ((ac__type_new_ *) 0) |
7716 |
return 0; |
7717 |
if (sizeof (ac__type_new_)) |
7718 |
return 0; |
7719 |
; |
7720 |
return 0; |
7721 |
} |
7722 |
_ACEOF |
7723 |
rm -f conftest.$ac_objext |
7724 |
if { (ac_try="$ac_compile" |
7725 |
case "(($ac_try" in |
7726 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7727 |
*) ac_try_echo=$ac_try;; |
7728 |
esac |
7729 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7730 |
(eval "$ac_compile") 2>conftest.er1 |
7731 |
ac_status=$? |
7732 |
grep -v '^ *+' conftest.er1 >conftest.err |
7733 |
rm -f conftest.er1 |
7734 |
cat conftest.err >&5 |
7735 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7736 |
(exit $ac_status); } && |
7737 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7738 |
{ (case "(($ac_try" in |
7739 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7740 |
*) ac_try_echo=$ac_try;; |
7741 |
esac |
7742 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7743 |
(eval "$ac_try") 2>&5 |
7744 |
ac_status=$? |
7745 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7746 |
(exit $ac_status); }; } && |
7747 |
{ ac_try='test -s conftest.$ac_objext' |
7748 |
{ (case "(($ac_try" in |
7749 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7750 |
*) ac_try_echo=$ac_try;; |
7751 |
esac |
7752 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7753 |
(eval "$ac_try") 2>&5 |
7754 |
ac_status=$? |
7755 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7756 |
(exit $ac_status); }; }; then |
7757 |
ac_cv_type_uint64_t=yes |
7758 |
else |
7759 |
echo "$as_me: failed program was:" >&5 |
7760 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7761 |
|
7762 |
ac_cv_type_uint64_t=no |
7763 |
fi |
7764 |
|
7765 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7766 |
fi |
7767 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
7768 |
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
7769 |
if test $ac_cv_type_uint64_t = yes; then |
7770 |
: |
7771 |
else |
7772 |
|
7773 |
cat >>confdefs.h <<_ACEOF |
7774 |
#define uint64_t unsigned long long |
7775 |
_ACEOF |
7776 |
|
7777 |
fi |
7778 |
|
7779 |
{ echo "$as_me:$LINENO: checking for int64_t" >&5 |
7780 |
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
7781 |
if test "${ac_cv_type_int64_t+set}" = set; then |
7782 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7783 |
else |
7784 |
cat >conftest.$ac_ext <<_ACEOF |
7785 |
/* confdefs.h. */ |
7786 |
_ACEOF |
7787 |
cat confdefs.h >>conftest.$ac_ext |
7788 |
cat >>conftest.$ac_ext <<_ACEOF |
7789 |
/* end confdefs.h. */ |
7790 |
$ac_includes_default |
7791 |
typedef int64_t ac__type_new_; |
7792 |
int |
7793 |
main () |
7794 |
{ |
7795 |
if ((ac__type_new_ *) 0) |
7796 |
return 0; |
7797 |
if (sizeof (ac__type_new_)) |
7798 |
return 0; |
7799 |
; |
7800 |
return 0; |
7801 |
} |
7802 |
_ACEOF |
7803 |
rm -f conftest.$ac_objext |
7804 |
if { (ac_try="$ac_compile" |
7805 |
case "(($ac_try" in |
7806 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7807 |
*) ac_try_echo=$ac_try;; |
7808 |
esac |
7809 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7810 |
(eval "$ac_compile") 2>conftest.er1 |
7811 |
ac_status=$? |
7812 |
grep -v '^ *+' conftest.er1 >conftest.err |
7813 |
rm -f conftest.er1 |
7814 |
cat conftest.err >&5 |
7815 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7816 |
(exit $ac_status); } && |
7817 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7818 |
{ (case "(($ac_try" in |
7819 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7820 |
*) ac_try_echo=$ac_try;; |
7821 |
esac |
7822 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7823 |
(eval "$ac_try") 2>&5 |
7824 |
ac_status=$? |
7825 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7826 |
(exit $ac_status); }; } && |
7827 |
{ ac_try='test -s conftest.$ac_objext' |
7828 |
{ (case "(($ac_try" in |
7829 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7830 |
*) ac_try_echo=$ac_try;; |
7831 |
esac |
7832 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7833 |
(eval "$ac_try") 2>&5 |
7834 |
ac_status=$? |
7835 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7836 |
(exit $ac_status); }; }; then |
7837 |
ac_cv_type_int64_t=yes |
7838 |
else |
7839 |
echo "$as_me: failed program was:" >&5 |
7840 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7841 |
|
7842 |
ac_cv_type_int64_t=no |
7843 |
fi |
7844 |
|
7845 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7846 |
fi |
7847 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
7848 |
echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
7849 |
if test $ac_cv_type_int64_t = yes; then |
7850 |
: |
7851 |
else |
7852 |
|
7853 |
cat >>confdefs.h <<_ACEOF |
7854 |
#define int64_t long long |
7855 |
_ACEOF |
7856 |
|
7857 |
fi |
7858 |
|
7859 |
else |
7860 |
{ { echo "$as_me:$LINENO: error: Your system doesn't appear to have 64 bit integers. Aborting." >&5 |
7861 |
echo "$as_me: error: Your system doesn't appear to have 64 bit integers. Aborting." >&2;} |
7862 |
{ (exit 1); exit 1; }; } |
7863 |
fi |
7864 |
|
7865 |
{ echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
7866 |
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } |
7867 |
if test "${ac_cv_type_u_int32_t+set}" = set; then |
7868 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7869 |
else |
7870 |
cat >conftest.$ac_ext <<_ACEOF |
7871 |
/* confdefs.h. */ |
7872 |
_ACEOF |
7873 |
cat confdefs.h >>conftest.$ac_ext |
7874 |
cat >>conftest.$ac_ext <<_ACEOF |
7875 |
/* end confdefs.h. */ |
7876 |
$ac_includes_default |
7877 |
typedef u_int32_t ac__type_new_; |
7878 |
int |
7879 |
main () |
7880 |
{ |
7881 |
if ((ac__type_new_ *) 0) |
7882 |
return 0; |
7883 |
if (sizeof (ac__type_new_)) |
7884 |
return 0; |
7885 |
; |
7886 |
return 0; |
7887 |
} |
7888 |
_ACEOF |
7889 |
rm -f conftest.$ac_objext |
7890 |
if { (ac_try="$ac_compile" |
7891 |
case "(($ac_try" in |
7892 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7893 |
*) ac_try_echo=$ac_try;; |
7894 |
esac |
7895 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7896 |
(eval "$ac_compile") 2>conftest.er1 |
7897 |
ac_status=$? |
7898 |
grep -v '^ *+' conftest.er1 >conftest.err |
7899 |
rm -f conftest.er1 |
7900 |
cat conftest.err >&5 |
7901 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7902 |
(exit $ac_status); } && |
7903 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7904 |
{ (case "(($ac_try" in |
7905 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7906 |
*) ac_try_echo=$ac_try;; |
7907 |
esac |
7908 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7909 |
(eval "$ac_try") 2>&5 |
7910 |
ac_status=$? |
7911 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7912 |
(exit $ac_status); }; } && |
7913 |
{ ac_try='test -s conftest.$ac_objext' |
7914 |
{ (case "(($ac_try" in |
7915 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7916 |
*) ac_try_echo=$ac_try;; |
7917 |
esac |
7918 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7919 |
(eval "$ac_try") 2>&5 |
7920 |
ac_status=$? |
7921 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7922 |
(exit $ac_status); }; }; then |
7923 |
ac_cv_type_u_int32_t=yes |
7924 |
else |
7925 |
echo "$as_me: failed program was:" >&5 |
7926 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7927 |
|
7928 |
ac_cv_type_u_int32_t=no |
7929 |
fi |
7930 |
|
7931 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7932 |
fi |
7933 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
7934 |
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } |
7935 |
if test $ac_cv_type_u_int32_t = yes; then |
7936 |
: |
7937 |
else |
7938 |
|
7939 |
{ echo "$as_me:$LINENO: checking for uint32_t" >&5 |
7940 |
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
7941 |
if test "${ac_cv_type_uint32_t+set}" = set; then |
7942 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7943 |
else |
7944 |
cat >conftest.$ac_ext <<_ACEOF |
7945 |
/* confdefs.h. */ |
7946 |
_ACEOF |
7947 |
cat confdefs.h >>conftest.$ac_ext |
7948 |
cat >>conftest.$ac_ext <<_ACEOF |
7949 |
/* end confdefs.h. */ |
7950 |
$ac_includes_default |
7951 |
typedef uint32_t ac__type_new_; |
7952 |
int |
7953 |
main () |
7954 |
{ |
7955 |
if ((ac__type_new_ *) 0) |
7956 |
return 0; |
7957 |
if (sizeof (ac__type_new_)) |
7958 |
return 0; |
7959 |
; |
7960 |
return 0; |
7961 |
} |
7962 |
_ACEOF |
7963 |
rm -f conftest.$ac_objext |
7964 |
if { (ac_try="$ac_compile" |
7965 |
case "(($ac_try" in |
7966 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7967 |
*) ac_try_echo=$ac_try;; |
7968 |
esac |
7969 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7970 |
(eval "$ac_compile") 2>conftest.er1 |
7971 |
ac_status=$? |
7972 |
grep -v '^ *+' conftest.er1 >conftest.err |
7973 |
rm -f conftest.er1 |
7974 |
cat conftest.err >&5 |
7975 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7976 |
(exit $ac_status); } && |
7977 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7978 |
{ (case "(($ac_try" in |
7979 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7980 |
*) ac_try_echo=$ac_try;; |
7981 |
esac |
7982 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7983 |
(eval "$ac_try") 2>&5 |
7984 |
ac_status=$? |
7985 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7986 |
(exit $ac_status); }; } && |
7987 |
{ ac_try='test -s conftest.$ac_objext' |
7988 |
{ (case "(($ac_try" in |
7989 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7990 |
*) ac_try_echo=$ac_try;; |
7991 |
esac |
7992 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7993 |
(eval "$ac_try") 2>&5 |
7994 |
ac_status=$? |
7995 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7996 |
(exit $ac_status); }; }; then |
7997 |
ac_cv_type_uint32_t=yes |
7998 |
else |
7999 |
echo "$as_me: failed program was:" >&5 |
8000 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8001 |
|
8002 |
ac_cv_type_uint32_t=no |
8003 |
fi |
8004 |
|
8005 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8006 |
fi |
8007 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
8008 |
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } |
8009 |
if test $ac_cv_type_uint32_t = yes; then |
8010 |
|
8011 |
|
8012 |
cat >>confdefs.h <<\_ACEOF |
8013 |
#define u_int32_t uint32_t |
8014 |
_ACEOF |
8015 |
|
8016 |
|
8017 |
else |
8018 |
|
8019 |
{ echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 |
8020 |
echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} |
8021 |
|
8022 |
cat >>confdefs.h <<\_ACEOF |
8023 |
#define u_int32_t unsigned long int |
8024 |
_ACEOF |
8025 |
|
8026 |
|
8027 |
fi |
8028 |
|
8029 |
|
8030 |
fi |
8031 |
|
8032 |
|
8033 |
{ echo "$as_me:$LINENO: checking for u_int16_t" >&5 |
8034 |
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } |
8035 |
if test "${ac_cv_type_u_int16_t+set}" = set; then |
8036 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8037 |
else |
8038 |
cat >conftest.$ac_ext <<_ACEOF |
8039 |
/* confdefs.h. */ |
8040 |
_ACEOF |
8041 |
cat confdefs.h >>conftest.$ac_ext |
8042 |
cat >>conftest.$ac_ext <<_ACEOF |
8043 |
/* end confdefs.h. */ |
8044 |
$ac_includes_default |
8045 |
typedef u_int16_t ac__type_new_; |
8046 |
int |
8047 |
main () |
8048 |
{ |
8049 |
if ((ac__type_new_ *) 0) |
8050 |
return 0; |
8051 |
if (sizeof (ac__type_new_)) |
8052 |
return 0; |
8053 |
; |
8054 |
return 0; |
8055 |
} |
8056 |
_ACEOF |
8057 |
rm -f conftest.$ac_objext |
8058 |
if { (ac_try="$ac_compile" |
8059 |
case "(($ac_try" in |
8060 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8061 |
*) ac_try_echo=$ac_try;; |
8062 |
esac |
8063 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8064 |
(eval "$ac_compile") 2>conftest.er1 |
8065 |
ac_status=$? |
8066 |
grep -v '^ *+' conftest.er1 >conftest.err |
8067 |
rm -f conftest.er1 |
8068 |
cat conftest.err >&5 |
8069 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8070 |
(exit $ac_status); } && |
8071 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8072 |
{ (case "(($ac_try" in |
8073 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8074 |
*) ac_try_echo=$ac_try;; |
8075 |
esac |
8076 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8077 |
(eval "$ac_try") 2>&5 |
8078 |
ac_status=$? |
8079 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8080 |
(exit $ac_status); }; } && |
8081 |
{ ac_try='test -s conftest.$ac_objext' |
8082 |
{ (case "(($ac_try" in |
8083 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8084 |
*) ac_try_echo=$ac_try;; |
8085 |
esac |
8086 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8087 |
(eval "$ac_try") 2>&5 |
8088 |
ac_status=$? |
8089 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8090 |
(exit $ac_status); }; }; then |
8091 |
ac_cv_type_u_int16_t=yes |
8092 |
else |
8093 |
echo "$as_me: failed program was:" >&5 |
8094 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8095 |
|
8096 |
ac_cv_type_u_int16_t=no |
8097 |
fi |
8098 |
|
8099 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8100 |
fi |
8101 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 |
8102 |
echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } |
8103 |
if test $ac_cv_type_u_int16_t = yes; then |
8104 |
: |
8105 |
else |
8106 |
|
8107 |
{ echo "$as_me:$LINENO: checking for uint16_t" >&5 |
8108 |
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
8109 |
if test "${ac_cv_type_uint16_t+set}" = set; then |
8110 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8111 |
else |
8112 |
cat >conftest.$ac_ext <<_ACEOF |
8113 |
/* confdefs.h. */ |
8114 |
_ACEOF |
8115 |
cat confdefs.h >>conftest.$ac_ext |
8116 |
cat >>conftest.$ac_ext <<_ACEOF |
8117 |
/* end confdefs.h. */ |
8118 |
$ac_includes_default |
8119 |
typedef uint16_t ac__type_new_; |
8120 |
int |
8121 |
main () |
8122 |
{ |
8123 |
if ((ac__type_new_ *) 0) |
8124 |
return 0; |
8125 |
if (sizeof (ac__type_new_)) |
8126 |
return 0; |
8127 |
; |
8128 |
return 0; |
8129 |
} |
8130 |
_ACEOF |
8131 |
rm -f conftest.$ac_objext |
8132 |
if { (ac_try="$ac_compile" |
8133 |
case "(($ac_try" in |
8134 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8135 |
*) ac_try_echo=$ac_try;; |
8136 |
esac |
8137 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8138 |
(eval "$ac_compile") 2>conftest.er1 |
8139 |
ac_status=$? |
8140 |
grep -v '^ *+' conftest.er1 >conftest.err |
8141 |
rm -f conftest.er1 |
8142 |
cat conftest.err >&5 |
8143 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8144 |
(exit $ac_status); } && |
8145 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8146 |
{ (case "(($ac_try" in |
8147 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8148 |
*) ac_try_echo=$ac_try;; |
8149 |
esac |
8150 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8151 |
(eval "$ac_try") 2>&5 |
8152 |
ac_status=$? |
8153 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8154 |
(exit $ac_status); }; } && |
8155 |
{ ac_try='test -s conftest.$ac_objext' |
8156 |
{ (case "(($ac_try" in |
8157 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8158 |
*) ac_try_echo=$ac_try;; |
8159 |
esac |
8160 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8161 |
(eval "$ac_try") 2>&5 |
8162 |
ac_status=$? |
8163 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8164 |
(exit $ac_status); }; }; then |
8165 |
ac_cv_type_uint16_t=yes |
8166 |
else |
8167 |
echo "$as_me: failed program was:" >&5 |
8168 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8169 |
|
8170 |
ac_cv_type_uint16_t=no |
8171 |
fi |
8172 |
|
8173 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8174 |
fi |
8175 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 |
8176 |
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } |
8177 |
if test $ac_cv_type_uint16_t = yes; then |
8178 |
|
8179 |
|
8180 |
cat >>confdefs.h <<\_ACEOF |
8181 |
#define u_int16_t uint16_t |
8182 |
_ACEOF |
8183 |
|
8184 |
|
8185 |
else |
8186 |
|
8187 |
{ echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 |
8188 |
echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} |
8189 |
|
8190 |
cat >>confdefs.h <<\_ACEOF |
8191 |
#define u_int16_t unsigned short int |
8192 |
_ACEOF |
8193 |
|
8194 |
|
8195 |
fi |
8196 |
|
8197 |
|
8198 |
fi |
8199 |
|
8200 |
|
8201 |
{ echo "$as_me:$LINENO: checking for in_port_t" >&5 |
8202 |
echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } |
8203 |
if test "${ac_cv_type_in_port_t+set}" = set; then |
8204 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8205 |
else |
8206 |
cat >conftest.$ac_ext <<_ACEOF |
8207 |
/* confdefs.h. */ |
8208 |
_ACEOF |
8209 |
cat confdefs.h >>conftest.$ac_ext |
8210 |
cat >>conftest.$ac_ext <<_ACEOF |
8211 |
/* end confdefs.h. */ |
8212 |
#include <sys/types.h> |
8213 |
#include <netinet/in.h> |
8214 |
|
8215 |
typedef in_port_t ac__type_new_; |
8216 |
int |
8217 |
main () |
8218 |
{ |
8219 |
if ((ac__type_new_ *) 0) |
8220 |
return 0; |
8221 |
if (sizeof (ac__type_new_)) |
8222 |
return 0; |
8223 |
; |
8224 |
return 0; |
8225 |
} |
8226 |
_ACEOF |
8227 |
rm -f conftest.$ac_objext |
8228 |
if { (ac_try="$ac_compile" |
8229 |
case "(($ac_try" in |
8230 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8231 |
*) ac_try_echo=$ac_try;; |
8232 |
esac |
8233 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8234 |
(eval "$ac_compile") 2>conftest.er1 |
8235 |
ac_status=$? |
8236 |
grep -v '^ *+' conftest.er1 >conftest.err |
8237 |
rm -f conftest.er1 |
8238 |
cat conftest.err >&5 |
8239 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8240 |
(exit $ac_status); } && |
8241 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8242 |
{ (case "(($ac_try" in |
8243 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8244 |
*) ac_try_echo=$ac_try;; |
8245 |
esac |
8246 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8247 |
(eval "$ac_try") 2>&5 |
8248 |
ac_status=$? |
8249 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8250 |
(exit $ac_status); }; } && |
8251 |
{ ac_try='test -s conftest.$ac_objext' |
8252 |
{ (case "(($ac_try" in |
8253 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8254 |
*) ac_try_echo=$ac_try;; |
8255 |
esac |
8256 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8257 |
(eval "$ac_try") 2>&5 |
8258 |
ac_status=$? |
8259 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8260 |
(exit $ac_status); }; }; then |
8261 |
ac_cv_type_in_port_t=yes |
8262 |
else |
8263 |
echo "$as_me: failed program was:" >&5 |
8264 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8265 |
|
8266 |
ac_cv_type_in_port_t=no |
8267 |
fi |
8268 |
|
8269 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8270 |
fi |
8271 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 |
8272 |
echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } |
8273 |
if test $ac_cv_type_in_port_t = yes; then |
8274 |
: |
8275 |
else |
8276 |
|
8277 |
cat >>confdefs.h <<\_ACEOF |
8278 |
#define in_port_t u_int16_t |
8279 |
_ACEOF |
8280 |
|
8281 |
fi |
8282 |
|
8283 |
|
8284 |
{ echo "$as_me:$LINENO: checking for sa_family_t" >&5 |
8285 |
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } |
8286 |
if test "${ac_cv_type_sa_family_t+set}" = set; then |
8287 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8288 |
else |
8289 |
cat >conftest.$ac_ext <<_ACEOF |
8290 |
/* confdefs.h. */ |
8291 |
_ACEOF |
8292 |
cat confdefs.h >>conftest.$ac_ext |
8293 |
cat >>conftest.$ac_ext <<_ACEOF |
8294 |
/* end confdefs.h. */ |
8295 |
#include <sys/types.h> |
8296 |
#include <sys/socket.h> |
8297 |
|
8298 |
typedef sa_family_t ac__type_new_; |
8299 |
int |
8300 |
main () |
8301 |
{ |
8302 |
if ((ac__type_new_ *) 0) |
8303 |
return 0; |
8304 |
if (sizeof (ac__type_new_)) |
8305 |
return 0; |
8306 |
; |
8307 |
return 0; |
8308 |
} |
8309 |
_ACEOF |
8310 |
rm -f conftest.$ac_objext |
8311 |
if { (ac_try="$ac_compile" |
8312 |
case "(($ac_try" in |
8313 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8314 |
*) ac_try_echo=$ac_try;; |
8315 |
esac |
8316 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8317 |
(eval "$ac_compile") 2>conftest.er1 |
8318 |
ac_status=$? |
8319 |
grep -v '^ *+' conftest.er1 >conftest.err |
8320 |
rm -f conftest.er1 |
8321 |
cat conftest.err >&5 |
8322 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8323 |
(exit $ac_status); } && |
8324 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8325 |
{ (case "(($ac_try" in |
8326 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8327 |
*) ac_try_echo=$ac_try;; |
8328 |
esac |
8329 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8330 |
(eval "$ac_try") 2>&5 |
8331 |
ac_status=$? |
8332 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8333 |
(exit $ac_status); }; } && |
8334 |
{ ac_try='test -s conftest.$ac_objext' |
8335 |
{ (case "(($ac_try" in |
8336 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8337 |
*) ac_try_echo=$ac_try;; |
8338 |
esac |
8339 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8340 |
(eval "$ac_try") 2>&5 |
8341 |
ac_status=$? |
8342 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8343 |
(exit $ac_status); }; }; then |
8344 |
ac_cv_type_sa_family_t=yes |
8345 |
else |
8346 |
echo "$as_me: failed program was:" >&5 |
8347 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8348 |
|
8349 |
ac_cv_type_sa_family_t=no |
8350 |
fi |
8351 |
|
8352 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8353 |
fi |
8354 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 |
8355 |
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; } |
8356 |
if test $ac_cv_type_sa_family_t = yes; then |
8357 |
: |
8358 |
else |
8359 |
|
8360 |
cat >>confdefs.h <<\_ACEOF |
8361 |
#define sa_family_t u_int16_t |
8362 |
_ACEOF |
8363 |
|
8364 |
fi |
8365 |
|
8366 |
|
8367 |
|
8368 |
|
8369 |
|
8370 |
|
8371 |
|
8372 |
|
8373 |
|
8374 |
|
8375 |
|
8376 |
for ac_func in socketpair basename mmap snprintf vsnprintf lrand48 srand48 strtok_r usleep |
8377 |
do |
8378 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8379 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8380 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8381 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8382 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8383 |
else |
8384 |
cat >conftest.$ac_ext <<_ACEOF |
8385 |
/* confdefs.h. */ |
8386 |
_ACEOF |
8387 |
cat confdefs.h >>conftest.$ac_ext |
8388 |
cat >>conftest.$ac_ext <<_ACEOF |
8389 |
/* end confdefs.h. */ |
8390 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8391 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8392 |
#define $ac_func innocuous_$ac_func |
8393 |
|
8394 |
/* System header to define __stub macros and hopefully few prototypes, |
8395 |
which can conflict with char $ac_func (); below. |
8396 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8397 |
<limits.h> exists even on freestanding compilers. */ |
8398 |
|
8399 |
#ifdef __STDC__ |
8400 |
# include <limits.h> |
8401 |
#else |
8402 |
# include <assert.h> |
8403 |
#endif |
8404 |
|
8405 |
#undef $ac_func |
8406 |
|
8407 |
/* Override any GCC internal prototype to avoid an error. |
8408 |
Use char because int might match the return type of a GCC |
8409 |
builtin and then its argument prototype would still apply. */ |
8410 |
#ifdef __cplusplus |
8411 |
extern "C" |
8412 |
#endif |
8413 |
char $ac_func (); |
8414 |
/* The GNU C library defines this for functions which it implements |
8415 |
to always fail with ENOSYS. Some functions are actually named |
8416 |
something starting with __ and the normal name is an alias. */ |
8417 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
8418 |
choke me |
8419 |
#endif |
8420 |
|
8421 |
int |
8422 |
main () |
8423 |
{ |
8424 |
return $ac_func (); |
8425 |
; |
8426 |
return 0; |
8427 |
} |
8428 |
_ACEOF |
8429 |
rm -f conftest.$ac_objext conftest$ac_exeext |
8430 |
if { (ac_try="$ac_link" |
8431 |
case "(($ac_try" in |
8432 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8433 |
*) ac_try_echo=$ac_try;; |
8434 |
esac |
8435 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8436 |
(eval "$ac_link") 2>conftest.er1 |
8437 |
ac_status=$? |
8438 |
grep -v '^ *+' conftest.er1 >conftest.err |
8439 |
rm -f conftest.er1 |
8440 |
cat conftest.err >&5 |
8441 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8442 |
(exit $ac_status); } && |
8443 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8444 |
{ (case "(($ac_try" in |
8445 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8446 |
*) ac_try_echo=$ac_try;; |
8447 |
esac |
8448 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8449 |
(eval "$ac_try") 2>&5 |
8450 |
ac_status=$? |
8451 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8452 |
(exit $ac_status); }; } && |
8453 |
{ ac_try='test -s conftest$ac_exeext' |
8454 |
{ (case "(($ac_try" in |
8455 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8456 |
*) ac_try_echo=$ac_try;; |
8457 |
esac |
8458 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8459 |
(eval "$ac_try") 2>&5 |
8460 |
ac_status=$? |
8461 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8462 |
(exit $ac_status); }; }; then |
8463 |
eval "$as_ac_var=yes" |
8464 |
else |
8465 |
echo "$as_me: failed program was:" >&5 |
8466 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8467 |
|
8468 |
eval "$as_ac_var=no" |
8469 |
fi |
8470 |
|
8471 |
rm -f core conftest.err conftest.$ac_objext \ |
8472 |
conftest$ac_exeext conftest.$ac_ext |
8473 |
fi |
8474 |
ac_res=`eval echo '${'$as_ac_var'}'` |
8475 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8476 |
echo "${ECHO_T}$ac_res" >&6; } |
8477 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
8478 |
cat >>confdefs.h <<_ACEOF |
8479 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8480 |
_ACEOF |
8481 |
|
8482 |
fi |
8483 |
done |
8484 |
|
8485 |
|
8486 |
if test "$ac_cv_func_snprintf" = no -o "$ac_cv_func_vsnprintf" = no; then |
8487 |
SNPRINTF_C="snprintf.c" |
8488 |
fi |
8489 |
|
8490 |
|
8491 |
|
8492 |
|
8493 |
{ echo "$as_me:$LINENO: checking for OpenSSL" >&5 |
8494 |
echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; } |
8495 |
# Check whether --enable-openssl was given. |
8496 |
if test "${enable_openssl+set}" = set; then |
8497 |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
8498 |
else |
8499 |
cf_enable_openssl="auto" |
8500 |
fi |
8501 |
|
8502 |
|
8503 |
if test "$cf_enable_openssl" != "no" ; then |
8504 |
cf_openssl_basedir="" |
8505 |
if test "$cf_enable_openssl" != "auto" && |
8506 |
test "$cf_enable_openssl" != "yes" ; then |
8507 |
cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" |
8508 |
else |
8509 |
for dirs in /usr/local/ssl /usr/pkg /usr/local \ |
8510 |
/usr/local/openssl /usr/sfw; do |
8511 |
if test -f "${dirs}/include/openssl/opensslv.h" ; then |
8512 |
cf_openssl_basedir="${dirs}" |
8513 |
break |
8514 |
fi |
8515 |
done |
8516 |
unset dirs |
8517 |
fi |
8518 |
if test ! -z "$cf_openssl_basedir"; then |
8519 |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then |
8520 |
SSL_INCLUDES="-I${cf_openssl_basedir}/include" |
8521 |
SSL_LIBS="-L${cf_openssl_basedir}/lib" |
8522 |
else |
8523 |
cf_openssl_basedir="" |
8524 |
fi |
8525 |
else |
8526 |
if test -f "/usr/include/openssl/opensslv.h" ; then |
8527 |
cf_openssl_basedir="/usr" |
8528 |
fi |
8529 |
fi |
8530 |
|
8531 |
if test ! -z "$cf_openssl_basedir"; then |
8532 |
{ echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5 |
8533 |
echo "${ECHO_T}$cf_openssl_basedir" >&6; } |
8534 |
cf_enable_openssl="yes" |
8535 |
else |
8536 |
{ echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5 |
8537 |
echo "${ECHO_T}not found. Specify a correct path?" >&6; } |
8538 |
cf_enable_openssl="no" |
8539 |
fi |
8540 |
unset cf_openssl_basedir |
8541 |
else |
8542 |
{ echo "$as_me:$LINENO: result: disabled" >&5 |
8543 |
echo "${ECHO_T}disabled" >&6; } |
8544 |
fi |
8545 |
|
8546 |
save_CPPFLAGS="$CPPFLAGS" |
8547 |
CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" |
8548 |
save_LIBS="$LIBS" |
8549 |
LIBS="$LIBS $SSL_LIBS" |
8550 |
if test "$cf_enable_openssl" != no; then |
8551 |
{ echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5 |
8552 |
echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; } |
8553 |
if test "$cross_compiling" = yes; then |
8554 |
cf_openssl_version_ok=no |
8555 |
else |
8556 |
cat >conftest.$ac_ext <<_ACEOF |
8557 |
/* confdefs.h. */ |
8558 |
_ACEOF |
8559 |
cat confdefs.h >>conftest.$ac_ext |
8560 |
cat >>conftest.$ac_ext <<_ACEOF |
8561 |
/* end confdefs.h. */ |
8562 |
#include <openssl/opensslv.h> |
8563 |
#include <stdlib.h> |
8564 |
int |
8565 |
main () |
8566 |
{ |
8567 |
if (OPENSSL_VERSION_NUMBER >= 0x00906000) |
8568 |
exit(0); else exit(1); |
8569 |
; |
8570 |
return 0; |
8571 |
} |
8572 |
_ACEOF |
8573 |
rm -f conftest$ac_exeext |
8574 |
if { (ac_try="$ac_link" |
8575 |
case "(($ac_try" in |
8576 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8577 |
*) ac_try_echo=$ac_try;; |
8578 |
esac |
8579 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8580 |
(eval "$ac_link") 2>&5 |
8581 |
ac_status=$? |
8582 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8583 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
8584 |
{ (case "(($ac_try" in |
8585 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8586 |
*) ac_try_echo=$ac_try;; |
8587 |
esac |
8588 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8589 |
(eval "$ac_try") 2>&5 |
8590 |
ac_status=$? |
8591 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8592 |
(exit $ac_status); }; }; then |
8593 |
cf_openssl_version_ok=yes |
8594 |
else |
8595 |
echo "$as_me: program exited with status $ac_status" >&5 |
8596 |
echo "$as_me: failed program was:" >&5 |
8597 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8598 |
|
8599 |
( exit $ac_status ) |
8600 |
cf_openssl_version_ok=no |
8601 |
fi |
8602 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8603 |
fi |
8604 |
|
8605 |
|
8606 |
|
8607 |
if test "$cf_openssl_version_ok" = yes; then |
8608 |
{ echo "$as_me:$LINENO: result: found" >&5 |
8609 |
echo "${ECHO_T}found" >&6; } |
8610 |
|
8611 |
ENCSPEED=encspeed |
8612 |
|
8613 |
|
8614 |
CPPFLAGS="$CPPFLAGS $SSL_LIBS" |
8615 |
|
8616 |
{ echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5 |
8617 |
echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; } |
8618 |
if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then |
8619 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8620 |
else |
8621 |
ac_check_lib_save_LIBS=$LIBS |
8622 |
LIBS="-lcrypto $LIBS" |
8623 |
cat >conftest.$ac_ext <<_ACEOF |
8624 |
/* confdefs.h. */ |
8625 |
_ACEOF |
8626 |
cat confdefs.h >>conftest.$ac_ext |
8627 |
cat >>conftest.$ac_ext <<_ACEOF |
8628 |
/* end confdefs.h. */ |
8629 |
|
8630 |
/* Override any GCC internal prototype to avoid an error. |
8631 |
Use char because int might match the return type of a GCC |
8632 |
builtin and then its argument prototype would still apply. */ |
8633 |
#ifdef __cplusplus |
8634 |
extern "C" |
8635 |
#endif |
8636 |
char RSA_free (); |
8637 |
int |
8638 |
main () |
8639 |
{ |
8640 |
return RSA_free (); |
8641 |
; |
8642 |
return 0; |
8643 |
} |
8644 |
_ACEOF |
8645 |
rm -f conftest.$ac_objext conftest$ac_exeext |
8646 |
if { (ac_try="$ac_link" |
8647 |
case "(($ac_try" in |
8648 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8649 |
*) ac_try_echo=$ac_try;; |
8650 |
esac |
8651 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8652 |
(eval "$ac_link") 2>conftest.er1 |
8653 |
ac_status=$? |
8654 |
grep -v '^ *+' conftest.er1 >conftest.err |
8655 |
rm -f conftest.er1 |
8656 |
cat conftest.err >&5 |
8657 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8658 |
(exit $ac_status); } && |
8659 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8660 |
{ (case "(($ac_try" in |
8661 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8662 |
*) ac_try_echo=$ac_try;; |
8663 |
esac |
8664 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8665 |
(eval "$ac_try") 2>&5 |
8666 |
ac_status=$? |
8667 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8668 |
(exit $ac_status); }; } && |
8669 |
{ ac_try='test -s conftest$ac_exeext' |
8670 |
{ (case "(($ac_try" in |
8671 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8672 |
*) ac_try_echo=$ac_try;; |
8673 |
esac |
8674 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8675 |
(eval "$ac_try") 2>&5 |
8676 |
ac_status=$? |
8677 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8678 |
(exit $ac_status); }; }; then |
8679 |
ac_cv_lib_crypto_RSA_free=yes |
8680 |
else |
8681 |
echo "$as_me: failed program was:" >&5 |
8682 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8683 |
|
8684 |
ac_cv_lib_crypto_RSA_free=no |
8685 |
fi |
8686 |
|
8687 |
rm -f core conftest.err conftest.$ac_objext \ |
8688 |
conftest$ac_exeext conftest.$ac_ext |
8689 |
LIBS=$ac_check_lib_save_LIBS |
8690 |
fi |
8691 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5 |
8692 |
echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; } |
8693 |
if test $ac_cv_lib_crypto_RSA_free = yes; then |
8694 |
cat >>confdefs.h <<_ACEOF |
8695 |
#define HAVE_LIBCRYPTO 1 |
8696 |
_ACEOF |
8697 |
|
8698 |
LIBS="-lcrypto $LIBS" |
8699 |
|
8700 |
fi |
8701 |
|
8702 |
if test "$ac_cv_lib_crypto_RSA_free" = yes; then |
8703 |
LIBS="$LIBS -lcrypto" |
8704 |
cf_openssl_ciphers='' |
8705 |
|
8706 |
for ac_func in EVP_bf_cfb |
8707 |
do |
8708 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8709 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8710 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8711 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8712 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8713 |
else |
8714 |
cat >conftest.$ac_ext <<_ACEOF |
8715 |
/* confdefs.h. */ |
8716 |
_ACEOF |
8717 |
cat confdefs.h >>conftest.$ac_ext |
8718 |
cat >>conftest.$ac_ext <<_ACEOF |
8719 |
/* end confdefs.h. */ |
8720 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8721 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8722 |
#define $ac_func innocuous_$ac_func |
8723 |
|
8724 |
/* System header to define __stub macros and hopefully few prototypes, |
8725 |
which can conflict with char $ac_func (); below. |
8726 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8727 |
<limits.h> exists even on freestanding compilers. */ |
8728 |
|
8729 |
#ifdef __STDC__ |
8730 |
# include <limits.h> |
8731 |
#else |
8732 |
# include <assert.h> |
8733 |
#endif |
8734 |
|
8735 |
#undef $ac_func |
8736 |
|
8737 |
/* Override any GCC internal prototype to avoid an error. |
8738 |
Use char because int might match the return type of a GCC |
8739 |
builtin and then its argument prototype would still apply. */ |
8740 |
#ifdef __cplusplus |
8741 |
extern "C" |
8742 |
#endif |
8743 |
char $ac_func (); |
8744 |
/* The GNU C library defines this for functions which it implements |
8745 |
to always fail with ENOSYS. Some functions are actually named |
8746 |
something starting with __ and the normal name is an alias. */ |
8747 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
8748 |
choke me |
8749 |
#endif |
8750 |
|
8751 |
int |
8752 |
main () |
8753 |
{ |
8754 |
return $ac_func (); |
8755 |
; |
8756 |
return 0; |
8757 |
} |
8758 |
_ACEOF |
8759 |
rm -f conftest.$ac_objext conftest$ac_exeext |
8760 |
if { (ac_try="$ac_link" |
8761 |
case "(($ac_try" in |
8762 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8763 |
*) ac_try_echo=$ac_try;; |
8764 |
esac |
8765 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8766 |
(eval "$ac_link") 2>conftest.er1 |
8767 |
ac_status=$? |
8768 |
grep -v '^ *+' conftest.er1 >conftest.err |
8769 |
rm -f conftest.er1 |
8770 |
cat conftest.err >&5 |
8771 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8772 |
(exit $ac_status); } && |
8773 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8774 |
{ (case "(($ac_try" in |
8775 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8776 |
*) ac_try_echo=$ac_try;; |
8777 |
esac |
8778 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8779 |
(eval "$ac_try") 2>&5 |
8780 |
ac_status=$? |
8781 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8782 |
(exit $ac_status); }; } && |
8783 |
{ ac_try='test -s conftest$ac_exeext' |
8784 |
{ (case "(($ac_try" in |
8785 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8786 |
*) ac_try_echo=$ac_try;; |
8787 |
esac |
8788 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8789 |
(eval "$ac_try") 2>&5 |
8790 |
ac_status=$? |
8791 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8792 |
(exit $ac_status); }; }; then |
8793 |
eval "$as_ac_var=yes" |
8794 |
else |
8795 |
echo "$as_me: failed program was:" >&5 |
8796 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8797 |
|
8798 |
eval "$as_ac_var=no" |
8799 |
fi |
8800 |
|
8801 |
rm -f core conftest.err conftest.$ac_objext \ |
8802 |
conftest$ac_exeext conftest.$ac_ext |
8803 |
fi |
8804 |
ac_res=`eval echo '${'$as_ac_var'}'` |
8805 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8806 |
echo "${ECHO_T}$ac_res" >&6; } |
8807 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
8808 |
cat >>confdefs.h <<_ACEOF |
8809 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8810 |
_ACEOF |
8811 |
cf_openssl_ciphers="${cf_openssl_ciphers}BF/168 BF/128 " |
8812 |
fi |
8813 |
done |
8814 |
|
8815 |
|
8816 |
for ac_func in EVP_cast5_cfb |
8817 |
do |
8818 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8819 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8820 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8821 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8822 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8823 |
else |
8824 |
cat >conftest.$ac_ext <<_ACEOF |
8825 |
/* confdefs.h. */ |
8826 |
_ACEOF |
8827 |
cat confdefs.h >>conftest.$ac_ext |
8828 |
cat >>conftest.$ac_ext <<_ACEOF |
8829 |
/* end confdefs.h. */ |
8830 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8831 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8832 |
#define $ac_func innocuous_$ac_func |
8833 |
|
8834 |
/* System header to define __stub macros and hopefully few prototypes, |
8835 |
which can conflict with char $ac_func (); below. |
8836 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8837 |
<limits.h> exists even on freestanding compilers. */ |
8838 |
|
8839 |
#ifdef __STDC__ |
8840 |
# include <limits.h> |
8841 |
#else |
8842 |
# include <assert.h> |
8843 |
#endif |
8844 |
|
8845 |
#undef $ac_func |
8846 |
|
8847 |
/* Override any GCC internal prototype to avoid an error. |
8848 |
Use char because int might match the return type of a GCC |
8849 |
builtin and then its argument prototype would still apply. */ |
8850 |
#ifdef __cplusplus |
8851 |
extern "C" |
8852 |
#endif |
8853 |
char $ac_func (); |
8854 |
/* The GNU C library defines this for functions which it implements |
8855 |
to always fail with ENOSYS. Some functions are actually named |
8856 |
something starting with __ and the normal name is an alias. */ |
8857 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
8858 |
choke me |
8859 |
#endif |
8860 |
|
8861 |
int |
8862 |
main () |
8863 |
{ |
8864 |
return $ac_func (); |
8865 |
; |
8866 |
return 0; |
8867 |
} |
8868 |
_ACEOF |
8869 |
rm -f conftest.$ac_objext conftest$ac_exeext |
8870 |
if { (ac_try="$ac_link" |
8871 |
case "(($ac_try" in |
8872 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8873 |
*) ac_try_echo=$ac_try;; |
8874 |
esac |
8875 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8876 |
(eval "$ac_link") 2>conftest.er1 |
8877 |
ac_status=$? |
8878 |
grep -v '^ *+' conftest.er1 >conftest.err |
8879 |
rm -f conftest.er1 |
8880 |
cat conftest.err >&5 |
8881 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8882 |
(exit $ac_status); } && |
8883 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8884 |
{ (case "(($ac_try" in |
8885 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8886 |
*) ac_try_echo=$ac_try;; |
8887 |
esac |
8888 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8889 |
(eval "$ac_try") 2>&5 |
8890 |
ac_status=$? |
8891 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8892 |
(exit $ac_status); }; } && |
8893 |
{ ac_try='test -s conftest$ac_exeext' |
8894 |
{ (case "(($ac_try" in |
8895 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8896 |
*) ac_try_echo=$ac_try;; |
8897 |
esac |
8898 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8899 |
(eval "$ac_try") 2>&5 |
8900 |
ac_status=$? |
8901 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8902 |
(exit $ac_status); }; }; then |
8903 |
eval "$as_ac_var=yes" |
8904 |
else |
8905 |
echo "$as_me: failed program was:" >&5 |
8906 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8907 |
|
8908 |
eval "$as_ac_var=no" |
8909 |
fi |
8910 |
|
8911 |
rm -f core conftest.err conftest.$ac_objext \ |
8912 |
conftest$ac_exeext conftest.$ac_ext |
8913 |
fi |
8914 |
ac_res=`eval echo '${'$as_ac_var'}'` |
8915 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8916 |
echo "${ECHO_T}$ac_res" >&6; } |
8917 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
8918 |
cat >>confdefs.h <<_ACEOF |
8919 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8920 |
_ACEOF |
8921 |
cf_openssl_ciphers="${cf_openssl_ciphers}CAST/128 " |
8922 |
fi |
8923 |
done |
8924 |
|
8925 |
|
8926 |
for ac_func in EVP_idea_cfb |
8927 |
do |
8928 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8929 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8930 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8931 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8932 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8933 |
else |
8934 |
cat >conftest.$ac_ext <<_ACEOF |
8935 |
/* confdefs.h. */ |
8936 |
_ACEOF |
8937 |
cat confdefs.h >>conftest.$ac_ext |
8938 |
cat >>conftest.$ac_ext <<_ACEOF |
8939 |
/* end confdefs.h. */ |
8940 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8941 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8942 |
#define $ac_func innocuous_$ac_func |
8943 |
|
8944 |
/* System header to define __stub macros and hopefully few prototypes, |
8945 |
which can conflict with char $ac_func (); below. |
8946 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8947 |
<limits.h> exists even on freestanding compilers. */ |
8948 |
|
8949 |
#ifdef __STDC__ |
8950 |
# include <limits.h> |
8951 |
#else |
8952 |
# include <assert.h> |
8953 |
#endif |
8954 |
|
8955 |
#undef $ac_func |
8956 |
|
8957 |
/* Override any GCC internal prototype to avoid an error. |
8958 |
Use char because int might match the return type of a GCC |
8959 |
builtin and then its argument prototype would still apply. */ |
8960 |
#ifdef __cplusplus |
8961 |
extern "C" |
8962 |
#endif |
8963 |
char $ac_func (); |
8964 |
/* The GNU C library defines this for functions which it implements |
8965 |
to always fail with ENOSYS. Some functions are actually named |
8966 |
something starting with __ and the normal name is an alias. */ |
8967 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
8968 |
choke me |
8969 |
#endif |
8970 |
|
8971 |
int |
8972 |
main () |
8973 |
{ |
8974 |
return $ac_func (); |
8975 |
; |
8976 |
return 0; |
8977 |
} |
8978 |
_ACEOF |
8979 |
rm -f conftest.$ac_objext conftest$ac_exeext |
8980 |
if { (ac_try="$ac_link" |
8981 |
case "(($ac_try" in |
8982 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8983 |
*) ac_try_echo=$ac_try;; |
8984 |
esac |
8985 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8986 |
(eval "$ac_link") 2>conftest.er1 |
8987 |
ac_status=$? |
8988 |
grep -v '^ *+' conftest.er1 >conftest.err |
8989 |
rm -f conftest.er1 |
8990 |
cat conftest.err >&5 |
8991 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8992 |
(exit $ac_status); } && |
8993 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8994 |
{ (case "(($ac_try" in |
8995 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8996 |
*) ac_try_echo=$ac_try;; |
8997 |
esac |
8998 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8999 |
(eval "$ac_try") 2>&5 |
9000 |
ac_status=$? |
9001 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9002 |
(exit $ac_status); }; } && |
9003 |
{ ac_try='test -s conftest$ac_exeext' |
9004 |
{ (case "(($ac_try" in |
9005 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9006 |
*) ac_try_echo=$ac_try;; |
9007 |
esac |
9008 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9009 |
(eval "$ac_try") 2>&5 |
9010 |
ac_status=$? |
9011 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9012 |
(exit $ac_status); }; }; then |
9013 |
eval "$as_ac_var=yes" |
9014 |
else |
9015 |
echo "$as_me: failed program was:" >&5 |
9016 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9017 |
|
9018 |
eval "$as_ac_var=no" |
9019 |
fi |
9020 |
|
9021 |
rm -f core conftest.err conftest.$ac_objext \ |
9022 |
conftest$ac_exeext conftest.$ac_ext |
9023 |
fi |
9024 |
ac_res=`eval echo '${'$as_ac_var'}'` |
9025 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9026 |
echo "${ECHO_T}$ac_res" >&6; } |
9027 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
9028 |
cat >>confdefs.h <<_ACEOF |
9029 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9030 |
_ACEOF |
9031 |
cf_openssl_ciphers="${cf_openssl_ciphers}IDEA/128 " |
9032 |
fi |
9033 |
done |
9034 |
|
9035 |
|
9036 |
for ac_func in EVP_rc5_32_12_16_cfb |
9037 |
do |
9038 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9039 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9040 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9041 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
9042 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9043 |
else |
9044 |
cat >conftest.$ac_ext <<_ACEOF |
9045 |
/* confdefs.h. */ |
9046 |
_ACEOF |
9047 |
cat confdefs.h >>conftest.$ac_ext |
9048 |
cat >>conftest.$ac_ext <<_ACEOF |
9049 |
/* end confdefs.h. */ |
9050 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9051 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9052 |
#define $ac_func innocuous_$ac_func |
9053 |
|
9054 |
/* System header to define __stub macros and hopefully few prototypes, |
9055 |
which can conflict with char $ac_func (); below. |
9056 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9057 |
<limits.h> exists even on freestanding compilers. */ |
9058 |
|
9059 |
#ifdef __STDC__ |
9060 |
# include <limits.h> |
9061 |
#else |
9062 |
# include <assert.h> |
9063 |
#endif |
9064 |
|
9065 |
#undef $ac_func |
9066 |
|
9067 |
/* Override any GCC internal prototype to avoid an error. |
9068 |
Use char because int might match the return type of a GCC |
9069 |
builtin and then its argument prototype would still apply. */ |
9070 |
#ifdef __cplusplus |
9071 |
extern "C" |
9072 |
#endif |
9073 |
char $ac_func (); |
9074 |
/* The GNU C library defines this for functions which it implements |
9075 |
to always fail with ENOSYS. Some functions are actually named |
9076 |
something starting with __ and the normal name is an alias. */ |
9077 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
9078 |
choke me |
9079 |
#endif |
9080 |
|
9081 |
int |
9082 |
main () |
9083 |
{ |
9084 |
return $ac_func (); |
9085 |
; |
9086 |
return 0; |
9087 |
} |
9088 |
_ACEOF |
9089 |
rm -f conftest.$ac_objext conftest$ac_exeext |
9090 |
if { (ac_try="$ac_link" |
9091 |
case "(($ac_try" in |
9092 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9093 |
*) ac_try_echo=$ac_try;; |
9094 |
esac |
9095 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9096 |
(eval "$ac_link") 2>conftest.er1 |
9097 |
ac_status=$? |
9098 |
grep -v '^ *+' conftest.er1 >conftest.err |
9099 |
rm -f conftest.er1 |
9100 |
cat conftest.err >&5 |
9101 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9102 |
(exit $ac_status); } && |
9103 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9104 |
{ (case "(($ac_try" in |
9105 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9106 |
*) ac_try_echo=$ac_try;; |
9107 |
esac |
9108 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9109 |
(eval "$ac_try") 2>&5 |
9110 |
ac_status=$? |
9111 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9112 |
(exit $ac_status); }; } && |
9113 |
{ ac_try='test -s conftest$ac_exeext' |
9114 |
{ (case "(($ac_try" in |
9115 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9116 |
*) ac_try_echo=$ac_try;; |
9117 |
esac |
9118 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9119 |
(eval "$ac_try") 2>&5 |
9120 |
ac_status=$? |
9121 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9122 |
(exit $ac_status); }; }; then |
9123 |
eval "$as_ac_var=yes" |
9124 |
else |
9125 |
echo "$as_me: failed program was:" >&5 |
9126 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9127 |
|
9128 |
eval "$as_ac_var=no" |
9129 |
fi |
9130 |
|
9131 |
rm -f core conftest.err conftest.$ac_objext \ |
9132 |
conftest$ac_exeext conftest.$ac_ext |
9133 |
fi |
9134 |
ac_res=`eval echo '${'$as_ac_var'}'` |
9135 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9136 |
echo "${ECHO_T}$ac_res" >&6; } |
9137 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
9138 |
cat >>confdefs.h <<_ACEOF |
9139 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9140 |
_ACEOF |
9141 |
cf_openssl_ciphers="${cf_openssl_ciphers}RC5.16/128 RC5.12/128 RC5.8/128 " |
9142 |
fi |
9143 |
done |
9144 |
|
9145 |
|
9146 |
for ac_func in EVP_des_ede3_cfb |
9147 |
do |
9148 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9149 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9150 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9151 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
9152 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9153 |
else |
9154 |
cat >conftest.$ac_ext <<_ACEOF |
9155 |
/* confdefs.h. */ |
9156 |
_ACEOF |
9157 |
cat confdefs.h >>conftest.$ac_ext |
9158 |
cat >>conftest.$ac_ext <<_ACEOF |
9159 |
/* end confdefs.h. */ |
9160 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9161 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9162 |
#define $ac_func innocuous_$ac_func |
9163 |
|
9164 |
/* System header to define __stub macros and hopefully few prototypes, |
9165 |
which can conflict with char $ac_func (); below. |
9166 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9167 |
<limits.h> exists even on freestanding compilers. */ |
9168 |
|
9169 |
#ifdef __STDC__ |
9170 |
# include <limits.h> |
9171 |
#else |
9172 |
# include <assert.h> |
9173 |
#endif |
9174 |
|
9175 |
#undef $ac_func |
9176 |
|
9177 |
/* Override any GCC internal prototype to avoid an error. |
9178 |
Use char because int might match the return type of a GCC |
9179 |
builtin and then its argument prototype would still apply. */ |
9180 |
#ifdef __cplusplus |
9181 |
extern "C" |
9182 |
#endif |
9183 |
char $ac_func (); |
9184 |
/* The GNU C library defines this for functions which it implements |
9185 |
to always fail with ENOSYS. Some functions are actually named |
9186 |
something starting with __ and the normal name is an alias. */ |
9187 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
9188 |
choke me |
9189 |
#endif |
9190 |
|
9191 |
int |
9192 |
main () |
9193 |
{ |
9194 |
return $ac_func (); |
9195 |
; |
9196 |
return 0; |
9197 |
} |
9198 |
_ACEOF |
9199 |
rm -f conftest.$ac_objext conftest$ac_exeext |
9200 |
if { (ac_try="$ac_link" |
9201 |
case "(($ac_try" in |
9202 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9203 |
*) ac_try_echo=$ac_try;; |
9204 |
esac |
9205 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9206 |
(eval "$ac_link") 2>conftest.er1 |
9207 |
ac_status=$? |
9208 |
grep -v '^ *+' conftest.er1 >conftest.err |
9209 |
rm -f conftest.er1 |
9210 |
cat conftest.err >&5 |
9211 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9212 |
(exit $ac_status); } && |
9213 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9214 |
{ (case "(($ac_try" in |
9215 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9216 |
*) ac_try_echo=$ac_try;; |
9217 |
esac |
9218 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9219 |
(eval "$ac_try") 2>&5 |
9220 |
ac_status=$? |
9221 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9222 |
(exit $ac_status); }; } && |
9223 |
{ ac_try='test -s conftest$ac_exeext' |
9224 |
{ (case "(($ac_try" in |
9225 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9226 |
*) ac_try_echo=$ac_try;; |
9227 |
esac |
9228 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9229 |
(eval "$ac_try") 2>&5 |
9230 |
ac_status=$? |
9231 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9232 |
(exit $ac_status); }; }; then |
9233 |
eval "$as_ac_var=yes" |
9234 |
else |
9235 |
echo "$as_me: failed program was:" >&5 |
9236 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9237 |
|
9238 |
eval "$as_ac_var=no" |
9239 |
fi |
9240 |
|
9241 |
rm -f core conftest.err conftest.$ac_objext \ |
9242 |
conftest$ac_exeext conftest.$ac_ext |
9243 |
fi |
9244 |
ac_res=`eval echo '${'$as_ac_var'}'` |
9245 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9246 |
echo "${ECHO_T}$ac_res" >&6; } |
9247 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
9248 |
cat >>confdefs.h <<_ACEOF |
9249 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9250 |
_ACEOF |
9251 |
cf_openssl_ciphers="${cf_openssl_ciphers}3DES/168 " |
9252 |
fi |
9253 |
done |
9254 |
|
9255 |
|
9256 |
for ac_func in EVP_des_cfb |
9257 |
do |
9258 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9259 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9260 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9261 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
9262 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9263 |
else |
9264 |
cat >conftest.$ac_ext <<_ACEOF |
9265 |
/* confdefs.h. */ |
9266 |
_ACEOF |
9267 |
cat confdefs.h >>conftest.$ac_ext |
9268 |
cat >>conftest.$ac_ext <<_ACEOF |
9269 |
/* end confdefs.h. */ |
9270 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
9271 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9272 |
#define $ac_func innocuous_$ac_func |
9273 |
|
9274 |
/* System header to define __stub macros and hopefully few prototypes, |
9275 |
which can conflict with char $ac_func (); below. |
9276 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9277 |
<limits.h> exists even on freestanding compilers. */ |
9278 |
|
9279 |
#ifdef __STDC__ |
9280 |
# include <limits.h> |
9281 |
#else |
9282 |
# include <assert.h> |
9283 |
#endif |
9284 |
|
9285 |
#undef $ac_func |
9286 |
|
9287 |
/* Override any GCC internal prototype to avoid an error. |
9288 |
Use char because int might match the return type of a GCC |
9289 |
builtin and then its argument prototype would still apply. */ |
9290 |
#ifdef __cplusplus |
9291 |
extern "C" |
9292 |
#endif |
9293 |
char $ac_func (); |
9294 |
/* The GNU C library defines this for functions which it implements |
9295 |
to always fail with ENOSYS. Some functions are actually named |
9296 |
something starting with __ and the normal name is an alias. */ |
9297 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
9298 |
choke me |
9299 |
#endif |
9300 |
|
9301 |
int |
9302 |
main () |
9303 |
{ |
9304 |
return $ac_func (); |
9305 |
; |
9306 |
return 0; |
9307 |
} |
9308 |
_ACEOF |
9309 |
rm -f conftest.$ac_objext conftest$ac_exeext |
9310 |
if { (ac_try="$ac_link" |
9311 |
case "(($ac_try" in |
9312 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9313 |
*) ac_try_echo=$ac_try;; |
9314 |
esac |
9315 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9316 |
(eval "$ac_link") 2>conftest.er1 |
9317 |
ac_status=$? |
9318 |
grep -v '^ *+' conftest.er1 >conftest.err |
9319 |
rm -f conftest.er1 |
9320 |
cat conftest.err >&5 |
9321 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9322 |
(exit $ac_status); } && |
9323 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9324 |
{ (case "(($ac_try" in |
9325 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9326 |
*) ac_try_echo=$ac_try;; |
9327 |
esac |
9328 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9329 |
(eval "$ac_try") 2>&5 |
9330 |
ac_status=$? |
9331 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9332 |
(exit $ac_status); }; } && |
9333 |
{ ac_try='test -s conftest$ac_exeext' |
9334 |
{ (case "(($ac_try" in |
9335 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9336 |
*) ac_try_echo=$ac_try;; |
9337 |
esac |
9338 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9339 |
(eval "$ac_try") 2>&5 |
9340 |
ac_status=$? |
9341 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9342 |
(exit $ac_status); }; }; then |
9343 |
eval "$as_ac_var=yes" |
9344 |
else |
9345 |
echo "$as_me: failed program was:" >&5 |
9346 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9347 |
|
9348 |
eval "$as_ac_var=no" |
9349 |
fi |
9350 |
|
9351 |
rm -f core conftest.err conftest.$ac_objext \ |
9352 |
conftest$ac_exeext conftest.$ac_ext |
9353 |
fi |
9354 |
ac_res=`eval echo '${'$as_ac_var'}'` |
9355 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9356 |
echo "${ECHO_T}$ac_res" >&6; } |
9357 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
9358 |
cat >>confdefs.h <<_ACEOF |
9359 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
9360 |
_ACEOF |
9361 |
cf_openssl_ciphers="${cf_openssl_ciphers}DES/56 " |
9362 |
fi |
9363 |
done |
9364 |
|
9365 |
fi |
9366 |
SSL_LIBS="$SSL_LIBS -lssl -lcrypto" |
9367 |
SSL_SRCS_ENABLE='$(SSL_SRCS)' |
9368 |
else |
9369 |
{ echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5 |
9370 |
echo "${ECHO_T}no - OpenSSL support disabled" >&6; } |
9371 |
fi |
9372 |
fi |
9373 |
|
9374 |
CPPFLAGS="$save_CPPFLAGS" |
9375 |
LIBS="$save_LIBS" |
9376 |
|
9377 |
|
9378 |
|
9379 |
|
9380 |
# Check whether --with-zlib-path was given. |
9381 |
if test "${with_zlib_path+set}" = set; then |
9382 |
withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
9383 |
fi |
9384 |
|
9385 |
|
9386 |
# Check whether --enable-zlib was given. |
9387 |
if test "${enable_zlib+set}" = set; then |
9388 |
enableval=$enable_zlib; zlib=$enableval |
9389 |
else |
9390 |
zlib=yes |
9391 |
fi |
9392 |
|
9393 |
|
9394 |
if test "$zlib" = yes; then |
9395 |
|
9396 |
if test "${ac_cv_header_zlib_h+set}" = set; then |
9397 |
{ echo "$as_me:$LINENO: checking for zlib.h" >&5 |
9398 |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } |
9399 |
if test "${ac_cv_header_zlib_h+set}" = set; then |
9400 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9401 |
fi |
9402 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
9403 |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } |
9404 |
else |
9405 |
# Is the header compilable? |
9406 |
{ echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
9407 |
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } |
9408 |
cat >conftest.$ac_ext <<_ACEOF |
9409 |
/* confdefs.h. */ |
9410 |
_ACEOF |
9411 |
cat confdefs.h >>conftest.$ac_ext |
9412 |
cat >>conftest.$ac_ext <<_ACEOF |
9413 |
/* end confdefs.h. */ |
9414 |
$ac_includes_default |
9415 |
#include <zlib.h> |
9416 |
_ACEOF |
9417 |
rm -f conftest.$ac_objext |
9418 |
if { (ac_try="$ac_compile" |
9419 |
case "(($ac_try" in |
9420 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9421 |
*) ac_try_echo=$ac_try;; |
9422 |
esac |
9423 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9424 |
(eval "$ac_compile") 2>conftest.er1 |
9425 |
ac_status=$? |
9426 |
grep -v '^ *+' conftest.er1 >conftest.err |
9427 |
rm -f conftest.er1 |
9428 |
cat conftest.err >&5 |
9429 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9430 |
(exit $ac_status); } && |
9431 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9432 |
{ (case "(($ac_try" in |
9433 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9434 |
*) ac_try_echo=$ac_try;; |
9435 |
esac |
9436 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9437 |
(eval "$ac_try") 2>&5 |
9438 |
ac_status=$? |
9439 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9440 |
(exit $ac_status); }; } && |
9441 |
{ ac_try='test -s conftest.$ac_objext' |
9442 |
{ (case "(($ac_try" in |
9443 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9444 |
*) ac_try_echo=$ac_try;; |
9445 |
esac |
9446 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9447 |
(eval "$ac_try") 2>&5 |
9448 |
ac_status=$? |
9449 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9450 |
(exit $ac_status); }; }; then |
9451 |
ac_header_compiler=yes |
9452 |
else |
9453 |
echo "$as_me: failed program was:" >&5 |
9454 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9455 |
|
9456 |
ac_header_compiler=no |
9457 |
fi |
9458 |
|
9459 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9460 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9461 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
9462 |
|
9463 |
# Is the header present? |
9464 |
{ echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
9465 |
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } |
9466 |
cat >conftest.$ac_ext <<_ACEOF |
9467 |
/* confdefs.h. */ |
9468 |
_ACEOF |
9469 |
cat confdefs.h >>conftest.$ac_ext |
9470 |
cat >>conftest.$ac_ext <<_ACEOF |
9471 |
/* end confdefs.h. */ |
9472 |
#include <zlib.h> |
9473 |
_ACEOF |
9474 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9475 |
case "(($ac_try" in |
9476 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9477 |
*) ac_try_echo=$ac_try;; |
9478 |
esac |
9479 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9480 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9481 |
ac_status=$? |
9482 |
grep -v '^ *+' conftest.er1 >conftest.err |
9483 |
rm -f conftest.er1 |
9484 |
cat conftest.err >&5 |
9485 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9486 |
(exit $ac_status); } >/dev/null; then |
9487 |
if test -s conftest.err; then |
9488 |
ac_cpp_err=$ac_c_preproc_warn_flag |
9489 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9490 |
else |
9491 |
ac_cpp_err= |
9492 |
fi |
9493 |
else |
9494 |
ac_cpp_err=yes |
9495 |
fi |
9496 |
if test -z "$ac_cpp_err"; then |
9497 |
ac_header_preproc=yes |
9498 |
else |
9499 |
echo "$as_me: failed program was:" >&5 |
9500 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9501 |
|
9502 |
ac_header_preproc=no |
9503 |
fi |
9504 |
|
9505 |
rm -f conftest.err conftest.$ac_ext |
9506 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9507 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
9508 |
|
9509 |
# So? What about this header? |
9510 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9511 |
yes:no: ) |
9512 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9513 |
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9514 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
9515 |
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} |
9516 |
ac_header_preproc=yes |
9517 |
;; |
9518 |
no:yes:* ) |
9519 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
9520 |
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} |
9521 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
9522 |
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} |
9523 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 |
9524 |
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} |
9525 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
9526 |
echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9527 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
9528 |
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} |
9529 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
9530 |
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} |
9531 |
|
9532 |
;; |
9533 |
esac |
9534 |
{ echo "$as_me:$LINENO: checking for zlib.h" >&5 |
9535 |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } |
9536 |
if test "${ac_cv_header_zlib_h+set}" = set; then |
9537 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9538 |
else |
9539 |
ac_cv_header_zlib_h=$ac_header_preproc |
9540 |
fi |
9541 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
9542 |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } |
9543 |
|
9544 |
fi |
9545 |
if test $ac_cv_header_zlib_h = yes; then |
9546 |
|
9547 |
{ echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5 |
9548 |
echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; } |
9549 |
if test "${ac_cv_lib_z_zlibVersion+set}" = set; then |
9550 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9551 |
else |
9552 |
ac_check_lib_save_LIBS=$LIBS |
9553 |
LIBS="-lz $LIBS" |
9554 |
cat >conftest.$ac_ext <<_ACEOF |
9555 |
/* confdefs.h. */ |
9556 |
_ACEOF |
9557 |
cat confdefs.h >>conftest.$ac_ext |
9558 |
cat >>conftest.$ac_ext <<_ACEOF |
9559 |
/* end confdefs.h. */ |
9560 |
|
9561 |
/* Override any GCC internal prototype to avoid an error. |
9562 |
Use char because int might match the return type of a GCC |
9563 |
builtin and then its argument prototype would still apply. */ |
9564 |
#ifdef __cplusplus |
9565 |
extern "C" |
9566 |
#endif |
9567 |
char zlibVersion (); |
9568 |
int |
9569 |
main () |
9570 |
{ |
9571 |
return zlibVersion (); |
9572 |
; |
9573 |
return 0; |
9574 |
} |
9575 |
_ACEOF |
9576 |
rm -f conftest.$ac_objext conftest$ac_exeext |
9577 |
if { (ac_try="$ac_link" |
9578 |
case "(($ac_try" in |
9579 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9580 |
*) ac_try_echo=$ac_try;; |
9581 |
esac |
9582 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9583 |
(eval "$ac_link") 2>conftest.er1 |
9584 |
ac_status=$? |
9585 |
grep -v '^ *+' conftest.er1 >conftest.err |
9586 |
rm -f conftest.er1 |
9587 |
cat conftest.err >&5 |
9588 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9589 |
(exit $ac_status); } && |
9590 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9591 |
{ (case "(($ac_try" in |
9592 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9593 |
*) ac_try_echo=$ac_try;; |
9594 |
esac |
9595 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9596 |
(eval "$ac_try") 2>&5 |
9597 |
ac_status=$? |
9598 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9599 |
(exit $ac_status); }; } && |
9600 |
{ ac_try='test -s conftest$ac_exeext' |
9601 |
{ (case "(($ac_try" in |
9602 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9603 |
*) ac_try_echo=$ac_try;; |
9604 |
esac |
9605 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9606 |
(eval "$ac_try") 2>&5 |
9607 |
ac_status=$? |
9608 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9609 |
(exit $ac_status); }; }; then |
9610 |
ac_cv_lib_z_zlibVersion=yes |
9611 |
else |
9612 |
echo "$as_me: failed program was:" >&5 |
9613 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9614 |
|
9615 |
ac_cv_lib_z_zlibVersion=no |
9616 |
fi |
9617 |
|
9618 |
rm -f core conftest.err conftest.$ac_objext \ |
9619 |
conftest$ac_exeext conftest.$ac_ext |
9620 |
LIBS=$ac_check_lib_save_LIBS |
9621 |
fi |
9622 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5 |
9623 |
echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; } |
9624 |
if test $ac_cv_lib_z_zlibVersion = yes; then |
9625 |
|
9626 |
ZLIB_LD=-lz |
9627 |
|
9628 |
|
9629 |
cat >>confdefs.h <<\_ACEOF |
9630 |
#define HAVE_LIBZ 1 |
9631 |
_ACEOF |
9632 |
|
9633 |
|
9634 |
else |
9635 |
zlib=no |
9636 |
fi |
9637 |
|
9638 |
|
9639 |
else |
9640 |
zlib=no |
9641 |
fi |
9642 |
|
9643 |
|
9644 |
|
9645 |
fi |
9646 |
|
9647 |
|
9648 |
# Check whether --enable-poll was given. |
9649 |
if test "${enable_poll+set}" = set; then |
9650 |
enableval=$enable_poll; SELECT_TYPE_EXPLICIT="poll"; echo "Forcing poll() to be enabled" |
9651 |
fi |
9652 |
|
9653 |
|
9654 |
# Check whether --enable-select was given. |
9655 |
if test "${enable_select+set}" = set; then |
9656 |
enableval=$enable_select; SELECT_TYPE_EXPLICIT="select"; echo "Forcing select() to be enabled" |
9657 |
fi |
9658 |
|
9659 |
|
9660 |
# Check whether --enable-kqueue was given. |
9661 |
if test "${enable_kqueue+set}" = set; then |
9662 |
enableval=$enable_kqueue; SELECT_TYPE_EXPLICIT="kqueue"; echo "Forcing kqueue() to be enabled" |
9663 |
fi |
9664 |
|
9665 |
|
9666 |
# Check whether --enable-devpoll was given. |
9667 |
if test "${enable_devpoll+set}" = set; then |
9668 |
enableval=$enable_devpoll; SELECT_TYPE_EXPLICIT="devpoll" |
9669 |
echo "Forcing /dev/poll to be enabled" |
9670 |
|
9671 |
|
9672 |
for ac_header in sys/devpoll.h devpoll.h |
9673 |
do |
9674 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9675 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9676 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9677 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9678 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9679 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9680 |
fi |
9681 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
9682 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9683 |
echo "${ECHO_T}$ac_res" >&6; } |
9684 |
else |
9685 |
# Is the header compilable? |
9686 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9687 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
9688 |
cat >conftest.$ac_ext <<_ACEOF |
9689 |
/* confdefs.h. */ |
9690 |
_ACEOF |
9691 |
cat confdefs.h >>conftest.$ac_ext |
9692 |
cat >>conftest.$ac_ext <<_ACEOF |
9693 |
/* end confdefs.h. */ |
9694 |
$ac_includes_default |
9695 |
#include <$ac_header> |
9696 |
_ACEOF |
9697 |
rm -f conftest.$ac_objext |
9698 |
if { (ac_try="$ac_compile" |
9699 |
case "(($ac_try" in |
9700 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9701 |
*) ac_try_echo=$ac_try;; |
9702 |
esac |
9703 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9704 |
(eval "$ac_compile") 2>conftest.er1 |
9705 |
ac_status=$? |
9706 |
grep -v '^ *+' conftest.er1 >conftest.err |
9707 |
rm -f conftest.er1 |
9708 |
cat conftest.err >&5 |
9709 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9710 |
(exit $ac_status); } && |
9711 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9712 |
{ (case "(($ac_try" in |
9713 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9714 |
*) ac_try_echo=$ac_try;; |
9715 |
esac |
9716 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9717 |
(eval "$ac_try") 2>&5 |
9718 |
ac_status=$? |
9719 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9720 |
(exit $ac_status); }; } && |
9721 |
{ ac_try='test -s conftest.$ac_objext' |
9722 |
{ (case "(($ac_try" in |
9723 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9724 |
*) ac_try_echo=$ac_try;; |
9725 |
esac |
9726 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9727 |
(eval "$ac_try") 2>&5 |
9728 |
ac_status=$? |
9729 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9730 |
(exit $ac_status); }; }; then |
9731 |
ac_header_compiler=yes |
9732 |
else |
9733 |
echo "$as_me: failed program was:" >&5 |
9734 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9735 |
|
9736 |
ac_header_compiler=no |
9737 |
fi |
9738 |
|
9739 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9740 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9741 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
9742 |
|
9743 |
# Is the header present? |
9744 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9745 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
9746 |
cat >conftest.$ac_ext <<_ACEOF |
9747 |
/* confdefs.h. */ |
9748 |
_ACEOF |
9749 |
cat confdefs.h >>conftest.$ac_ext |
9750 |
cat >>conftest.$ac_ext <<_ACEOF |
9751 |
/* end confdefs.h. */ |
9752 |
#include <$ac_header> |
9753 |
_ACEOF |
9754 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9755 |
case "(($ac_try" in |
9756 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9757 |
*) ac_try_echo=$ac_try;; |
9758 |
esac |
9759 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9760 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9761 |
ac_status=$? |
9762 |
grep -v '^ *+' conftest.er1 >conftest.err |
9763 |
rm -f conftest.er1 |
9764 |
cat conftest.err >&5 |
9765 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9766 |
(exit $ac_status); } >/dev/null; then |
9767 |
if test -s conftest.err; then |
9768 |
ac_cpp_err=$ac_c_preproc_warn_flag |
9769 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9770 |
else |
9771 |
ac_cpp_err= |
9772 |
fi |
9773 |
else |
9774 |
ac_cpp_err=yes |
9775 |
fi |
9776 |
if test -z "$ac_cpp_err"; then |
9777 |
ac_header_preproc=yes |
9778 |
else |
9779 |
echo "$as_me: failed program was:" >&5 |
9780 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9781 |
|
9782 |
ac_header_preproc=no |
9783 |
fi |
9784 |
|
9785 |
rm -f conftest.err conftest.$ac_ext |
9786 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9787 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
9788 |
|
9789 |
# So? What about this header? |
9790 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9791 |
yes:no: ) |
9792 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9793 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9794 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9795 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
9796 |
ac_header_preproc=yes |
9797 |
;; |
9798 |
no:yes:* ) |
9799 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9800 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
9801 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9802 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
9803 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
9804 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
9805 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
9806 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
9807 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9808 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
9809 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9810 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
9811 |
|
9812 |
;; |
9813 |
esac |
9814 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9815 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9816 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9817 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9818 |
else |
9819 |
eval "$as_ac_Header=\$ac_header_preproc" |
9820 |
fi |
9821 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
9822 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9823 |
echo "${ECHO_T}$ac_res" >&6; } |
9824 |
|
9825 |
fi |
9826 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9827 |
cat >>confdefs.h <<_ACEOF |
9828 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
9829 |
_ACEOF |
9830 |
|
9831 |
fi |
9832 |
|
9833 |
done |
9834 |
|
9835 |
fi |
9836 |
|
9837 |
|
9838 |
# Check whether --enable-rtsigio was given. |
9839 |
if test "${enable_rtsigio+set}" = set; then |
9840 |
enableval=$enable_rtsigio; SELECT_TYPE_EXPLICIT="sigio"; echo "Forcing Linux RT Sigio to be enabled" |
9841 |
fi |
9842 |
|
9843 |
|
9844 |
# Check whether --enable-epoll was given. |
9845 |
if test "${enable_epoll+set}" = set; then |
9846 |
enableval=$enable_epoll; SELECT_TYPE_EXPLICIT="epoll"; echo "Forcing Linux epoll to be enabled" |
9847 |
fi |
9848 |
|
9849 |
|
9850 |
if test ! -z "$SELECT_TYPE_EXPLICIT"; then |
9851 |
SELECT_TYPE="$SELECT_TYPE_EXPLICIT" |
9852 |
else |
9853 |
|
9854 |
{ echo "$as_me:$LINENO: checking for kevent" >&5 |
9855 |
echo $ECHO_N "checking for kevent... $ECHO_C" >&6; } |
9856 |
if test "${ac_cv_func_kevent+set}" = set; then |
9857 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9858 |
else |
9859 |
cat >conftest.$ac_ext <<_ACEOF |
9860 |
/* confdefs.h. */ |
9861 |
_ACEOF |
9862 |
cat confdefs.h >>conftest.$ac_ext |
9863 |
cat >>conftest.$ac_ext <<_ACEOF |
9864 |
/* end confdefs.h. */ |
9865 |
/* Define kevent to an innocuous variant, in case <limits.h> declares kevent. |
9866 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9867 |
#define kevent innocuous_kevent |
9868 |
|
9869 |
/* System header to define __stub macros and hopefully few prototypes, |
9870 |
which can conflict with char kevent (); below. |
9871 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9872 |
<limits.h> exists even on freestanding compilers. */ |
9873 |
|
9874 |
#ifdef __STDC__ |
9875 |
# include <limits.h> |
9876 |
#else |
9877 |
# include <assert.h> |
9878 |
#endif |
9879 |
|
9880 |
#undef kevent |
9881 |
|
9882 |
/* Override any GCC internal prototype to avoid an error. |
9883 |
Use char because int might match the return type of a GCC |
9884 |
builtin and then its argument prototype would still apply. */ |
9885 |
#ifdef __cplusplus |
9886 |
extern "C" |
9887 |
#endif |
9888 |
char kevent (); |
9889 |
/* The GNU C library defines this for functions which it implements |
9890 |
to always fail with ENOSYS. Some functions are actually named |
9891 |
something starting with __ and the normal name is an alias. */ |
9892 |
#if defined __stub_kevent || defined __stub___kevent |
9893 |
choke me |
9894 |
#endif |
9895 |
|
9896 |
int |
9897 |
main () |
9898 |
{ |
9899 |
return kevent (); |
9900 |
; |
9901 |
return 0; |
9902 |
} |
9903 |
_ACEOF |
9904 |
rm -f conftest.$ac_objext conftest$ac_exeext |
9905 |
if { (ac_try="$ac_link" |
9906 |
case "(($ac_try" in |
9907 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9908 |
*) ac_try_echo=$ac_try;; |
9909 |
esac |
9910 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9911 |
(eval "$ac_link") 2>conftest.er1 |
9912 |
ac_status=$? |
9913 |
grep -v '^ *+' conftest.er1 >conftest.err |
9914 |
rm -f conftest.er1 |
9915 |
cat conftest.err >&5 |
9916 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9917 |
(exit $ac_status); } && |
9918 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9919 |
{ (case "(($ac_try" in |
9920 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9921 |
*) ac_try_echo=$ac_try;; |
9922 |
esac |
9923 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9924 |
(eval "$ac_try") 2>&5 |
9925 |
ac_status=$? |
9926 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9927 |
(exit $ac_status); }; } && |
9928 |
{ ac_try='test -s conftest$ac_exeext' |
9929 |
{ (case "(($ac_try" in |
9930 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9931 |
*) ac_try_echo=$ac_try;; |
9932 |
esac |
9933 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9934 |
(eval "$ac_try") 2>&5 |
9935 |
ac_status=$? |
9936 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9937 |
(exit $ac_status); }; }; then |
9938 |
ac_cv_func_kevent=yes |
9939 |
else |
9940 |
echo "$as_me: failed program was:" >&5 |
9941 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9942 |
|
9943 |
ac_cv_func_kevent=no |
9944 |
fi |
9945 |
|
9946 |
rm -f core conftest.err conftest.$ac_objext \ |
9947 |
conftest$ac_exeext conftest.$ac_ext |
9948 |
fi |
9949 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5 |
9950 |
echo "${ECHO_T}$ac_cv_func_kevent" >&6; } |
9951 |
if test $ac_cv_func_kevent = yes; then |
9952 |
|
9953 |
SELECT_TYPE="kqueue" |
9954 |
|
9955 |
else |
9956 |
|
9957 |
if test "${ac_cv_header_sys_epoll_h+set}" = set; then |
9958 |
{ echo "$as_me:$LINENO: checking for sys/epoll.h" >&5 |
9959 |
echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; } |
9960 |
if test "${ac_cv_header_sys_epoll_h+set}" = set; then |
9961 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9962 |
fi |
9963 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5 |
9964 |
echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; } |
9965 |
else |
9966 |
# Is the header compilable? |
9967 |
{ echo "$as_me:$LINENO: checking sys/epoll.h usability" >&5 |
9968 |
echo $ECHO_N "checking sys/epoll.h usability... $ECHO_C" >&6; } |
9969 |
cat >conftest.$ac_ext <<_ACEOF |
9970 |
/* confdefs.h. */ |
9971 |
_ACEOF |
9972 |
cat confdefs.h >>conftest.$ac_ext |
9973 |
cat >>conftest.$ac_ext <<_ACEOF |
9974 |
/* end confdefs.h. */ |
9975 |
$ac_includes_default |
9976 |
#include <sys/epoll.h> |
9977 |
_ACEOF |
9978 |
rm -f conftest.$ac_objext |
9979 |
if { (ac_try="$ac_compile" |
9980 |
case "(($ac_try" in |
9981 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9982 |
*) ac_try_echo=$ac_try;; |
9983 |
esac |
9984 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9985 |
(eval "$ac_compile") 2>conftest.er1 |
9986 |
ac_status=$? |
9987 |
grep -v '^ *+' conftest.er1 >conftest.err |
9988 |
rm -f conftest.er1 |
9989 |
cat conftest.err >&5 |
9990 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9991 |
(exit $ac_status); } && |
9992 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9993 |
{ (case "(($ac_try" in |
9994 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9995 |
*) ac_try_echo=$ac_try;; |
9996 |
esac |
9997 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9998 |
(eval "$ac_try") 2>&5 |
9999 |
ac_status=$? |
10000 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10001 |
(exit $ac_status); }; } && |
10002 |
{ ac_try='test -s conftest.$ac_objext' |
10003 |
{ (case "(($ac_try" in |
10004 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10005 |
*) ac_try_echo=$ac_try;; |
10006 |
esac |
10007 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10008 |
(eval "$ac_try") 2>&5 |
10009 |
ac_status=$? |
10010 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10011 |
(exit $ac_status); }; }; then |
10012 |
ac_header_compiler=yes |
10013 |
else |
10014 |
echo "$as_me: failed program was:" >&5 |
10015 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10016 |
|
10017 |
ac_header_compiler=no |
10018 |
fi |
10019 |
|
10020 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10021 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10022 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
10023 |
|
10024 |
# Is the header present? |
10025 |
{ echo "$as_me:$LINENO: checking sys/epoll.h presence" >&5 |
10026 |
echo $ECHO_N "checking sys/epoll.h presence... $ECHO_C" >&6; } |
10027 |
cat >conftest.$ac_ext <<_ACEOF |
10028 |
/* confdefs.h. */ |
10029 |
_ACEOF |
10030 |
cat confdefs.h >>conftest.$ac_ext |
10031 |
cat >>conftest.$ac_ext <<_ACEOF |
10032 |
/* end confdefs.h. */ |
10033 |
#include <sys/epoll.h> |
10034 |
_ACEOF |
10035 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
10036 |
case "(($ac_try" in |
10037 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10038 |
*) ac_try_echo=$ac_try;; |
10039 |
esac |
10040 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10041 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
10042 |
ac_status=$? |
10043 |
grep -v '^ *+' conftest.er1 >conftest.err |
10044 |
rm -f conftest.er1 |
10045 |
cat conftest.err >&5 |
10046 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10047 |
(exit $ac_status); } >/dev/null; then |
10048 |
if test -s conftest.err; then |
10049 |
ac_cpp_err=$ac_c_preproc_warn_flag |
10050 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
10051 |
else |
10052 |
ac_cpp_err= |
10053 |
fi |
10054 |
else |
10055 |
ac_cpp_err=yes |
10056 |
fi |
10057 |
if test -z "$ac_cpp_err"; then |
10058 |
ac_header_preproc=yes |
10059 |
else |
10060 |
echo "$as_me: failed program was:" >&5 |
10061 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10062 |
|
10063 |
ac_header_preproc=no |
10064 |
fi |
10065 |
|
10066 |
rm -f conftest.err conftest.$ac_ext |
10067 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10068 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
10069 |
|
10070 |
# So? What about this header? |
10071 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10072 |
yes:no: ) |
10073 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
10074 |
echo "$as_me: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10075 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the compiler's result" >&5 |
10076 |
echo "$as_me: WARNING: sys/epoll.h: proceeding with the compiler's result" >&2;} |
10077 |
ac_header_preproc=yes |
10078 |
;; |
10079 |
no:yes:* ) |
10080 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: present but cannot be compiled" >&5 |
10081 |
echo "$as_me: WARNING: sys/epoll.h: present but cannot be compiled" >&2;} |
10082 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&5 |
10083 |
echo "$as_me: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&2;} |
10084 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: see the Autoconf documentation" >&5 |
10085 |
echo "$as_me: WARNING: sys/epoll.h: see the Autoconf documentation" >&2;} |
10086 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&5 |
10087 |
echo "$as_me: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&2;} |
10088 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&5 |
10089 |
echo "$as_me: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&2;} |
10090 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&5 |
10091 |
echo "$as_me: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&2;} |
10092 |
|
10093 |
;; |
10094 |
esac |
10095 |
{ echo "$as_me:$LINENO: checking for sys/epoll.h" >&5 |
10096 |
echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; } |
10097 |
if test "${ac_cv_header_sys_epoll_h+set}" = set; then |
10098 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10099 |
else |
10100 |
ac_cv_header_sys_epoll_h=$ac_header_preproc |
10101 |
fi |
10102 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5 |
10103 |
echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; } |
10104 |
|
10105 |
fi |
10106 |
if test $ac_cv_header_sys_epoll_h = yes; then |
10107 |
HAS_EPOLL=1 |
10108 |
else |
10109 |
HAS_EPOLL=0 |
10110 |
fi |
10111 |
|
10112 |
|
10113 |
if test $HAS_EPOLL -eq 1; then |
10114 |
{ echo "$as_me:$LINENO: checking for epoll support in kernel" >&5 |
10115 |
echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; } |
10116 |
if test "$cross_compiling" = yes; then |
10117 |
{ echo "$as_me:$LINENO: result: no" >&5 |
10118 |
echo "${ECHO_T}no" >&6; } |
10119 |
HAS_EPOLL=0 |
10120 |
else |
10121 |
cat >conftest.$ac_ext <<_ACEOF |
10122 |
/* confdefs.h. */ |
10123 |
_ACEOF |
10124 |
cat confdefs.h >>conftest.$ac_ext |
10125 |
cat >>conftest.$ac_ext <<_ACEOF |
10126 |
/* end confdefs.h. */ |
10127 |
#include <sys/epoll.h> |
10128 |
#include <sys/syscall.h> |
10129 |
#if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY) |
10130 |
#if !defined(__NR_epoll_create) |
10131 |
#if defined(__ia64__) |
10132 |
#define __NR_epoll_create 1243 |
10133 |
#elif defined(__x86_64__) |
10134 |
#define __NR_epoll_create 214 |
10135 |
#elif defined(__sparc64__) || defined(__sparc__) |
10136 |
#define __NR_epoll_create 193 |
10137 |
#elif defined(__s390__) || defined(__m68k__) |
10138 |
#define __NR_epoll_create 249 |
10139 |
#elif defined(__ppc64__) || defined(__ppc__) |
10140 |
#define __NR_epoll_create 236 |
10141 |
#elif defined(__parisc__) || defined(__arm26__) || defined(__arm__) |
10142 |
#define __NR_epoll_create 224 |
10143 |
#elif defined(__alpha__) |
10144 |
#define __NR_epoll_create 407 |
10145 |
#elif defined(__sh64__) |
10146 |
#define __NR_epoll_create 282 |
10147 |
#elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__) |
10148 |
#define __NR_epoll_create 254 |
10149 |
#else |
10150 |
#error No system call numbers defined for epoll family. |
10151 |
#endif |
10152 |
#endif |
10153 |
_syscall1(int, epoll_create, int, size) |
10154 |
#endif |
10155 |
main() { return epoll_create(256) == -1 ? 1 : 0; } |
10156 |
_ACEOF |
10157 |
rm -f conftest$ac_exeext |
10158 |
if { (ac_try="$ac_link" |
10159 |
case "(($ac_try" in |
10160 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10161 |
*) ac_try_echo=$ac_try;; |
10162 |
esac |
10163 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10164 |
(eval "$ac_link") 2>&5 |
10165 |
ac_status=$? |
10166 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10167 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
10168 |
{ (case "(($ac_try" in |
10169 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10170 |
*) ac_try_echo=$ac_try;; |
10171 |
esac |
10172 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10173 |
(eval "$ac_try") 2>&5 |
10174 |
ac_status=$? |
10175 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10176 |
(exit $ac_status); }; }; then |
10177 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
10178 |
echo "${ECHO_T}yes" >&6; } |
10179 |
SELECT_TYPE="epoll" |
10180 |
else |
10181 |
echo "$as_me: program exited with status $ac_status" >&5 |
10182 |
echo "$as_me: failed program was:" >&5 |
10183 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10184 |
|
10185 |
( exit $ac_status ) |
10186 |
{ echo "$as_me:$LINENO: result: no" >&5 |
10187 |
echo "${ECHO_T}no" >&6; } |
10188 |
HAS_EPOLL=0 |
10189 |
fi |
10190 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
10191 |
fi |
10192 |
|
10193 |
|
10194 |
fi |
10195 |
if test $HAS_EPOLL -eq 0; then |
10196 |
{ echo "$as_me:$LINENO: checking for /dev/poll" >&5 |
10197 |
echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; } |
10198 |
if test -c "/dev/poll"; then |
10199 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
10200 |
echo "${ECHO_T}yes" >&6; } |
10201 |
|
10202 |
|
10203 |
for ac_header in devpoll.h sys/devpoll.h |
10204 |
do |
10205 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10206 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10207 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10208 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10209 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10210 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10211 |
fi |
10212 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
10213 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10214 |
echo "${ECHO_T}$ac_res" >&6; } |
10215 |
else |
10216 |
# Is the header compilable? |
10217 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10218 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10219 |
cat >conftest.$ac_ext <<_ACEOF |
10220 |
/* confdefs.h. */ |
10221 |
_ACEOF |
10222 |
cat confdefs.h >>conftest.$ac_ext |
10223 |
cat >>conftest.$ac_ext <<_ACEOF |
10224 |
/* end confdefs.h. */ |
10225 |
$ac_includes_default |
10226 |
#include <$ac_header> |
10227 |
_ACEOF |
10228 |
rm -f conftest.$ac_objext |
10229 |
if { (ac_try="$ac_compile" |
10230 |
case "(($ac_try" in |
10231 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10232 |
*) ac_try_echo=$ac_try;; |
10233 |
esac |
10234 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10235 |
(eval "$ac_compile") 2>conftest.er1 |
10236 |
ac_status=$? |
10237 |
grep -v '^ *+' conftest.er1 >conftest.err |
10238 |
rm -f conftest.er1 |
10239 |
cat conftest.err >&5 |
10240 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10241 |
(exit $ac_status); } && |
10242 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10243 |
{ (case "(($ac_try" in |
10244 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10245 |
*) ac_try_echo=$ac_try;; |
10246 |
esac |
10247 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10248 |
(eval "$ac_try") 2>&5 |
10249 |
ac_status=$? |
10250 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10251 |
(exit $ac_status); }; } && |
10252 |
{ ac_try='test -s conftest.$ac_objext' |
10253 |
{ (case "(($ac_try" in |
10254 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10255 |
*) ac_try_echo=$ac_try;; |
10256 |
esac |
10257 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10258 |
(eval "$ac_try") 2>&5 |
10259 |
ac_status=$? |
10260 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10261 |
(exit $ac_status); }; }; then |
10262 |
ac_header_compiler=yes |
10263 |
else |
10264 |
echo "$as_me: failed program was:" >&5 |
10265 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10266 |
|
10267 |
ac_header_compiler=no |
10268 |
fi |
10269 |
|
10270 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10271 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10272 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
10273 |
|
10274 |
# Is the header present? |
10275 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10276 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10277 |
cat >conftest.$ac_ext <<_ACEOF |
10278 |
/* confdefs.h. */ |
10279 |
_ACEOF |
10280 |
cat confdefs.h >>conftest.$ac_ext |
10281 |
cat >>conftest.$ac_ext <<_ACEOF |
10282 |
/* end confdefs.h. */ |
10283 |
#include <$ac_header> |
10284 |
_ACEOF |
10285 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
10286 |
case "(($ac_try" in |
10287 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10288 |
*) ac_try_echo=$ac_try;; |
10289 |
esac |
10290 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10291 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
10292 |
ac_status=$? |
10293 |
grep -v '^ *+' conftest.er1 >conftest.err |
10294 |
rm -f conftest.er1 |
10295 |
cat conftest.err >&5 |
10296 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10297 |
(exit $ac_status); } >/dev/null; then |
10298 |
if test -s conftest.err; then |
10299 |
ac_cpp_err=$ac_c_preproc_warn_flag |
10300 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
10301 |
else |
10302 |
ac_cpp_err= |
10303 |
fi |
10304 |
else |
10305 |
ac_cpp_err=yes |
10306 |
fi |
10307 |
if test -z "$ac_cpp_err"; then |
10308 |
ac_header_preproc=yes |
10309 |
else |
10310 |
echo "$as_me: failed program was:" >&5 |
10311 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10312 |
|
10313 |
ac_header_preproc=no |
10314 |
fi |
10315 |
|
10316 |
rm -f conftest.err conftest.$ac_ext |
10317 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10318 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
10319 |
|
10320 |
# So? What about this header? |
10321 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10322 |
yes:no: ) |
10323 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10324 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10325 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10326 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10327 |
ac_header_preproc=yes |
10328 |
;; |
10329 |
no:yes:* ) |
10330 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10331 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10332 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10333 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10334 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10335 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10336 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10337 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10338 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10339 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10340 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10341 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10342 |
|
10343 |
;; |
10344 |
esac |
10345 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10346 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10347 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10348 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10349 |
else |
10350 |
eval "$as_ac_Header=\$ac_header_preproc" |
10351 |
fi |
10352 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
10353 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10354 |
echo "${ECHO_T}$ac_res" >&6; } |
10355 |
|
10356 |
fi |
10357 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10358 |
cat >>confdefs.h <<_ACEOF |
10359 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10360 |
_ACEOF |
10361 |
|
10362 |
fi |
10363 |
|
10364 |
done |
10365 |
|
10366 |
SELECT_TYPE="devpoll" |
10367 |
else |
10368 |
{ echo "$as_me:$LINENO: result: no" >&5 |
10369 |
echo "${ECHO_T}no" >&6; } |
10370 |
{ echo "$as_me:$LINENO: checking for RT Signal IO" >&5 |
10371 |
echo $ECHO_N "checking for RT Signal IO... $ECHO_C" >&6; } |
10372 |
|
10373 |
cat >conftest.$ac_ext <<_ACEOF |
10374 |
/* confdefs.h. */ |
10375 |
_ACEOF |
10376 |
cat confdefs.h >>conftest.$ac_ext |
10377 |
cat >>conftest.$ac_ext <<_ACEOF |
10378 |
/* end confdefs.h. */ |
10379 |
#define _GNU_SOURCE |
10380 |
#include <fcntl.h> |
10381 |
#ifdef F_SETSIG |
10382 |
YUP_HAVE_F_SETSIG |
10383 |
#endif |
10384 |
|
10385 |
_ACEOF |
10386 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
10387 |
$EGREP "YUP_HAVE_F_SETSIG" >/dev/null 2>&1; then |
10388 |
|
10389 |
SELECT_TYPE="sigio" |
10390 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
10391 |
echo "${ECHO_T}yes" >&6; } |
10392 |
|
10393 |
else |
10394 |
|
10395 |
{ echo "$as_me:$LINENO: result: no" >&5 |
10396 |
echo "${ECHO_T}no" >&6; } |
10397 |
{ echo "$as_me:$LINENO: checking for poll" >&5 |
10398 |
echo $ECHO_N "checking for poll... $ECHO_C" >&6; } |
10399 |
if test "${ac_cv_func_poll+set}" = set; then |
10400 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10401 |
else |
10402 |
cat >conftest.$ac_ext <<_ACEOF |
10403 |
/* confdefs.h. */ |
10404 |
_ACEOF |
10405 |
cat confdefs.h >>conftest.$ac_ext |
10406 |
cat >>conftest.$ac_ext <<_ACEOF |
10407 |
/* end confdefs.h. */ |
10408 |
/* Define poll to an innocuous variant, in case <limits.h> declares poll. |
10409 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10410 |
#define poll innocuous_poll |
10411 |
|
10412 |
/* System header to define __stub macros and hopefully few prototypes, |
10413 |
which can conflict with char poll (); below. |
10414 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10415 |
<limits.h> exists even on freestanding compilers. */ |
10416 |
|
10417 |
#ifdef __STDC__ |
10418 |
# include <limits.h> |
10419 |
#else |
10420 |
# include <assert.h> |
10421 |
#endif |
10422 |
|
10423 |
#undef poll |
10424 |
|
10425 |
/* Override any GCC internal prototype to avoid an error. |
10426 |
Use char because int might match the return type of a GCC |
10427 |
builtin and then its argument prototype would still apply. */ |
10428 |
#ifdef __cplusplus |
10429 |
extern "C" |
10430 |
#endif |
10431 |
char poll (); |
10432 |
/* The GNU C library defines this for functions which it implements |
10433 |
to always fail with ENOSYS. Some functions are actually named |
10434 |
something starting with __ and the normal name is an alias. */ |
10435 |
#if defined __stub_poll || defined __stub___poll |
10436 |
choke me |
10437 |
#endif |
10438 |
|
10439 |
int |
10440 |
main () |
10441 |
{ |
10442 |
return poll (); |
10443 |
; |
10444 |
return 0; |
10445 |
} |
10446 |
_ACEOF |
10447 |
rm -f conftest.$ac_objext conftest$ac_exeext |
10448 |
if { (ac_try="$ac_link" |
10449 |
case "(($ac_try" in |
10450 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10451 |
*) ac_try_echo=$ac_try;; |
10452 |
esac |
10453 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10454 |
(eval "$ac_link") 2>conftest.er1 |
10455 |
ac_status=$? |
10456 |
grep -v '^ *+' conftest.er1 >conftest.err |
10457 |
rm -f conftest.er1 |
10458 |
cat conftest.err >&5 |
10459 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10460 |
(exit $ac_status); } && |
10461 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10462 |
{ (case "(($ac_try" in |
10463 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10464 |
*) ac_try_echo=$ac_try;; |
10465 |
esac |
10466 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10467 |
(eval "$ac_try") 2>&5 |
10468 |
ac_status=$? |
10469 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10470 |
(exit $ac_status); }; } && |
10471 |
{ ac_try='test -s conftest$ac_exeext' |
10472 |
{ (case "(($ac_try" in |
10473 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10474 |
*) ac_try_echo=$ac_try;; |
10475 |
esac |
10476 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10477 |
(eval "$ac_try") 2>&5 |
10478 |
ac_status=$? |
10479 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10480 |
(exit $ac_status); }; }; then |
10481 |
ac_cv_func_poll=yes |
10482 |
else |
10483 |
echo "$as_me: failed program was:" >&5 |
10484 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10485 |
|
10486 |
ac_cv_func_poll=no |
10487 |
fi |
10488 |
|
10489 |
rm -f core conftest.err conftest.$ac_objext \ |
10490 |
conftest$ac_exeext conftest.$ac_ext |
10491 |
fi |
10492 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5 |
10493 |
echo "${ECHO_T}$ac_cv_func_poll" >&6; } |
10494 |
if test $ac_cv_func_poll = yes; then |
10495 |
SELECT_TYPE="poll" |
10496 |
else |
10497 |
|
10498 |
{ echo "$as_me:$LINENO: checking for select" >&5 |
10499 |
echo $ECHO_N "checking for select... $ECHO_C" >&6; } |
10500 |
if test "${ac_cv_func_select+set}" = set; then |
10501 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10502 |
else |
10503 |
cat >conftest.$ac_ext <<_ACEOF |
10504 |
/* confdefs.h. */ |
10505 |
_ACEOF |
10506 |
cat confdefs.h >>conftest.$ac_ext |
10507 |
cat >>conftest.$ac_ext <<_ACEOF |
10508 |
/* end confdefs.h. */ |
10509 |
/* Define select to an innocuous variant, in case <limits.h> declares select. |
10510 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10511 |
#define select innocuous_select |
10512 |
|
10513 |
/* System header to define __stub macros and hopefully few prototypes, |
10514 |
which can conflict with char select (); below. |
10515 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10516 |
<limits.h> exists even on freestanding compilers. */ |
10517 |
|
10518 |
#ifdef __STDC__ |
10519 |
# include <limits.h> |
10520 |
#else |
10521 |
# include <assert.h> |
10522 |
#endif |
10523 |
|
10524 |
#undef select |
10525 |
|
10526 |
/* Override any GCC internal prototype to avoid an error. |
10527 |
Use char because int might match the return type of a GCC |
10528 |
builtin and then its argument prototype would still apply. */ |
10529 |
#ifdef __cplusplus |
10530 |
extern "C" |
10531 |
#endif |
10532 |
char select (); |
10533 |
/* The GNU C library defines this for functions which it implements |
10534 |
to always fail with ENOSYS. Some functions are actually named |
10535 |
something starting with __ and the normal name is an alias. */ |
10536 |
#if defined __stub_select || defined __stub___select |
10537 |
choke me |
10538 |
#endif |
10539 |
|
10540 |
int |
10541 |
main () |
10542 |
{ |
10543 |
return select (); |
10544 |
; |
10545 |
return 0; |
10546 |
} |
10547 |
_ACEOF |
10548 |
rm -f conftest.$ac_objext conftest$ac_exeext |
10549 |
if { (ac_try="$ac_link" |
10550 |
case "(($ac_try" in |
10551 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10552 |
*) ac_try_echo=$ac_try;; |
10553 |
esac |
10554 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10555 |
(eval "$ac_link") 2>conftest.er1 |
10556 |
ac_status=$? |
10557 |
grep -v '^ *+' conftest.er1 >conftest.err |
10558 |
rm -f conftest.er1 |
10559 |
cat conftest.err >&5 |
10560 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10561 |
(exit $ac_status); } && |
10562 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10563 |
{ (case "(($ac_try" in |
10564 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10565 |
*) ac_try_echo=$ac_try;; |
10566 |
esac |
10567 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10568 |
(eval "$ac_try") 2>&5 |
10569 |
ac_status=$? |
10570 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10571 |
(exit $ac_status); }; } && |
10572 |
{ ac_try='test -s conftest$ac_exeext' |
10573 |
{ (case "(($ac_try" in |
10574 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10575 |
*) ac_try_echo=$ac_try;; |
10576 |
esac |
10577 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10578 |
(eval "$ac_try") 2>&5 |
10579 |
ac_status=$? |
10580 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10581 |
(exit $ac_status); }; }; then |
10582 |
ac_cv_func_select=yes |
10583 |
else |
10584 |
echo "$as_me: failed program was:" >&5 |
10585 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10586 |
|
10587 |
ac_cv_func_select=no |
10588 |
fi |
10589 |
|
10590 |
rm -f core conftest.err conftest.$ac_objext \ |
10591 |
conftest$ac_exeext conftest.$ac_ext |
10592 |
fi |
10593 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5 |
10594 |
echo "${ECHO_T}$ac_cv_func_select" >&6; } |
10595 |
if test $ac_cv_func_select = yes; then |
10596 |
SELECT_TYPE="select" |
10597 |
else |
10598 |
{ { echo "$as_me:$LINENO: error: Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" >&5 |
10599 |
echo "$as_me: error: Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" >&2;} |
10600 |
{ (exit 1); exit 1; }; } |
10601 |
|
10602 |
fi |
10603 |
|
10604 |
|
10605 |
fi |
10606 |
|
10607 |
|
10608 |
fi |
10609 |
rm -f conftest* |
10610 |
|
10611 |
fi |
10612 |
fi |
10613 |
|
10614 |
fi |
10615 |
|
10616 |
|
10617 |
fi |
10618 |
|
10619 |
echo "Using $SELECT_TYPE for select loop." |
10620 |
|
10621 |
|
10622 |
cat >>confdefs.h <<_ACEOF |
10623 |
#define SELECT_TYPE "$SELECT_TYPE" |
10624 |
_ACEOF |
10625 |
|
10626 |
|
10627 |
|
10628 |
|
10629 |
|
10630 |
# Check whether --enable-clobber was given. |
10631 |
if test "${enable_clobber+set}" = set; then |
10632 |
enableval=$enable_clobber; clobber=$enableval |
10633 |
else |
10634 |
clobber=no |
10635 |
fi |
10636 |
|
10637 |
|
10638 |
if test "$clobber" = yes; then |
10639 |
CLOBBER=yes |
10640 |
|
10641 |
fi |
10642 |
|
10643 |
# Check whether --enable-assert was given. |
10644 |
if test "${enable_assert+set}" = set; then |
10645 |
enableval=$enable_assert; assert=$enableval |
10646 |
else |
10647 |
assert=no |
10648 |
fi |
10649 |
|
10650 |
|
10651 |
if test "$assert" = no; then |
10652 |
|
10653 |
cat >>confdefs.h <<\_ACEOF |
10654 |
#define NDEBUG 1 |
10655 |
_ACEOF |
10656 |
|
10657 |
fi |
10658 |
|
10659 |
{ echo "$as_me:$LINENO: checking if you want to do a profile build" >&5 |
10660 |
echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; } |
10661 |
# Check whether --enable-profile was given. |
10662 |
if test "${enable_profile+set}" = set; then |
10663 |
enableval=$enable_profile; profile=$enableval |
10664 |
else |
10665 |
profile=no |
10666 |
fi |
10667 |
|
10668 |
|
10669 |
if test "$profile" = yes; then |
10670 |
if test "$ac_cv_c_compiler_gnu" = yes; then |
10671 |
IRC_CFLAGS="$IRC_CFLAGS -pg -static" |
10672 |
{ echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5 |
10673 |
echo "${ECHO_T}yes, adding -pg -static" >&6; } |
10674 |
else |
10675 |
{ echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5 |
10676 |
echo "${ECHO_T}no, profile builds only work with gcc" >&6; } |
10677 |
fi |
10678 |
else |
10679 |
{ echo "$as_me:$LINENO: result: no" >&5 |
10680 |
echo "${ECHO_T}no" >&6; } |
10681 |
fi |
10682 |
|
10683 |
{ echo "$as_me:$LINENO: checking if you want ElectricFence" >&5 |
10684 |
echo $ECHO_N "checking if you want ElectricFence... $ECHO_C" >&6; } |
10685 |
# Check whether --enable-efence was given. |
10686 |
if test "${enable_efence+set}" = set; then |
10687 |
enableval=$enable_efence; |
10688 |
if test "$enableval" != no; then |
10689 |
if test ! -z "$enableval" -a "$enableval" != yes; then |
10690 |
LIBS="$LIBS -L$enableval" |
10691 |
fi |
10692 |
|
10693 |
{ echo "$as_me:$LINENO: checking for malloc in -lefence" >&5 |
10694 |
echo $ECHO_N "checking for malloc in -lefence... $ECHO_C" >&6; } |
10695 |
if test "${ac_cv_lib_efence_malloc+set}" = set; then |
10696 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10697 |
else |
10698 |
ac_check_lib_save_LIBS=$LIBS |
10699 |
LIBS="-lefence $LIBS" |
10700 |
cat >conftest.$ac_ext <<_ACEOF |
10701 |
/* confdefs.h. */ |
10702 |
_ACEOF |
10703 |
cat confdefs.h >>conftest.$ac_ext |
10704 |
cat >>conftest.$ac_ext <<_ACEOF |
10705 |
/* end confdefs.h. */ |
10706 |
|
10707 |
/* Override any GCC internal prototype to avoid an error. |
10708 |
Use char because int might match the return type of a GCC |
10709 |
builtin and then its argument prototype would still apply. */ |
10710 |
#ifdef __cplusplus |
10711 |
extern "C" |
10712 |
#endif |
10713 |
char malloc (); |
10714 |
int |
10715 |
main () |
10716 |
{ |
10717 |
return malloc (); |
10718 |
; |
10719 |
return 0; |
10720 |
} |
10721 |
_ACEOF |
10722 |
rm -f conftest.$ac_objext conftest$ac_exeext |
10723 |
if { (ac_try="$ac_link" |
10724 |
case "(($ac_try" in |
10725 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10726 |
*) ac_try_echo=$ac_try;; |
10727 |
esac |
10728 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10729 |
(eval "$ac_link") 2>conftest.er1 |
10730 |
ac_status=$? |
10731 |
grep -v '^ *+' conftest.er1 >conftest.err |
10732 |
rm -f conftest.er1 |
10733 |
cat conftest.err >&5 |
10734 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10735 |
(exit $ac_status); } && |
10736 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10737 |
{ (case "(($ac_try" in |
10738 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10739 |
*) ac_try_echo=$ac_try;; |
10740 |
esac |
10741 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10742 |
(eval "$ac_try") 2>&5 |
10743 |
ac_status=$? |
10744 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10745 |
(exit $ac_status); }; } && |
10746 |
{ ac_try='test -s conftest$ac_exeext' |
10747 |
{ (case "(($ac_try" in |
10748 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10749 |
*) ac_try_echo=$ac_try;; |
10750 |
esac |
10751 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10752 |
(eval "$ac_try") 2>&5 |
10753 |
ac_status=$? |
10754 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10755 |
(exit $ac_status); }; }; then |
10756 |
ac_cv_lib_efence_malloc=yes |
10757 |
else |
10758 |
echo "$as_me: failed program was:" >&5 |
10759 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10760 |
|
10761 |
ac_cv_lib_efence_malloc=no |
10762 |
fi |
10763 |
|
10764 |
rm -f core conftest.err conftest.$ac_objext \ |
10765 |
conftest$ac_exeext conftest.$ac_ext |
10766 |
LIBS=$ac_check_lib_save_LIBS |
10767 |
fi |
10768 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_efence_malloc" >&5 |
10769 |
echo "${ECHO_T}$ac_cv_lib_efence_malloc" >&6; } |
10770 |
if test $ac_cv_lib_efence_malloc = yes; then |
10771 |
|
10772 |
LIBS="$LIBS -lefence" |
10773 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
10774 |
echo "${ECHO_T}yes" >&6; } |
10775 |
|
10776 |
else |
10777 |
{ echo "$as_me:$LINENO: result: not found" >&5 |
10778 |
echo "${ECHO_T}not found" >&6; } |
10779 |
fi |
10780 |
|
10781 |
else |
10782 |
{ echo "$as_me:$LINENO: result: no" >&5 |
10783 |
echo "${ECHO_T}no" >&6; } |
10784 |
fi |
10785 |
|
10786 |
else |
10787 |
{ echo "$as_me:$LINENO: result: no" >&5 |
10788 |
echo "${ECHO_T}no" >&6; } |
10789 |
fi |
10790 |
|
10791 |
|
10792 |
{ echo "$as_me:$LINENO: checking if you want the block allocator" >&5 |
10793 |
echo $ECHO_N "checking if you want the block allocator... $ECHO_C" >&6; } |
10794 |
# Check whether --enable-block-alloc was given. |
10795 |
if test "${enable_block_alloc+set}" = set; then |
10796 |
enableval=$enable_block_alloc; balloc=$enableval |
10797 |
else |
10798 |
balloc=yes |
10799 |
fi |
10800 |
|
10801 |
|
10802 |
if test "$balloc" = no; then |
10803 |
|
10804 |
|
10805 |
cat >>confdefs.h <<\_ACEOF |
10806 |
#define NOBALLOC 1 |
10807 |
_ACEOF |
10808 |
|
10809 |
else |
10810 |
BALLOC_C=balloc.c |
10811 |
|
10812 |
fi |
10813 |
|
10814 |
{ echo "$as_me:$LINENO: result: $balloc" >&5 |
10815 |
echo "${ECHO_T}$balloc" >&6; } |
10816 |
|
10817 |
# Check whether --enable-warnings was given. |
10818 |
if test "${enable_warnings+set}" = set; then |
10819 |
enableval=$enable_warnings; IRC_CFLAGS="$IRC_CFLAGS -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -W -Wno-unused" |
10820 |
fi |
10821 |
|
10822 |
|
10823 |
|
10824 |
# Check whether --enable-small-net was given. |
10825 |
if test "${enable_small_net+set}" = set; then |
10826 |
enableval=$enable_small_net; small_net=$enableval |
10827 |
else |
10828 |
small_net=no |
10829 |
fi |
10830 |
|
10831 |
|
10832 |
if test "$small_net" = yes; then |
10833 |
|
10834 |
cat >>confdefs.h <<\_ACEOF |
10835 |
#define NICKNAMEHISTORYLENGTH 1500 |
10836 |
_ACEOF |
10837 |
|
10838 |
|
10839 |
cat >>confdefs.h <<\_ACEOF |
10840 |
#define CHANNEL_HEAP_SIZE 256 |
10841 |
_ACEOF |
10842 |
|
10843 |
|
10844 |
cat >>confdefs.h <<\_ACEOF |
10845 |
#define BAN_HEAP_SIZE 128 |
10846 |
_ACEOF |
10847 |
|
10848 |
|
10849 |
cat >>confdefs.h <<\_ACEOF |
10850 |
#define CLIENT_HEAP_SIZE 256 |
10851 |
_ACEOF |
10852 |
|
10853 |
|
10854 |
cat >>confdefs.h <<\_ACEOF |
10855 |
#define LCLIENT_HEAP_SIZE 128 |
10856 |
_ACEOF |
10857 |
|
10858 |
|
10859 |
cat >>confdefs.h <<\_ACEOF |
10860 |
#define DNODE_HEAP_SIZE 256 |
10861 |
_ACEOF |
10862 |
|
10863 |
|
10864 |
cat >>confdefs.h <<\_ACEOF |
10865 |
#define TOPIC_HEAP_SIZE 256 |
10866 |
_ACEOF |
10867 |
|
10868 |
|
10869 |
cat >>confdefs.h <<\_ACEOF |
10870 |
#define DBUF_HEAP_SIZE 64 |
10871 |
_ACEOF |
10872 |
|
10873 |
else |
10874 |
|
10875 |
cat >>confdefs.h <<\_ACEOF |
10876 |
#define NICKNAMEHISTORYLENGTH 15000 |
10877 |
_ACEOF |
10878 |
|
10879 |
|
10880 |
cat >>confdefs.h <<\_ACEOF |
10881 |
#define CHANNEL_HEAP_SIZE 1024 |
10882 |
_ACEOF |
10883 |
|
10884 |
|
10885 |
cat >>confdefs.h <<\_ACEOF |
10886 |
#define BAN_HEAP_SIZE 1024 |
10887 |
_ACEOF |
10888 |
|
10889 |
|
10890 |
cat >>confdefs.h <<\_ACEOF |
10891 |
#define CLIENT_HEAP_SIZE 1024 |
10892 |
_ACEOF |
10893 |
|
10894 |
|
10895 |
cat >>confdefs.h <<\_ACEOF |
10896 |
#define LCLIENT_HEAP_SIZE 512 |
10897 |
_ACEOF |
10898 |
|
10899 |
|
10900 |
cat >>confdefs.h <<\_ACEOF |
10901 |
#define DNODE_HEAP_SIZE 2048 |
10902 |
_ACEOF |
10903 |
|
10904 |
|
10905 |
cat >>confdefs.h <<\_ACEOF |
10906 |
#define TOPIC_HEAP_SIZE 1024 |
10907 |
_ACEOF |
10908 |
|
10909 |
|
10910 |
cat >>confdefs.h <<\_ACEOF |
10911 |
#define DBUF_HEAP_SIZE 512 |
10912 |
_ACEOF |
10913 |
|
10914 |
fi |
10915 |
|
10916 |
# Check whether --enable-efnet was given. |
10917 |
if test "${enable_efnet+set}" = set; then |
10918 |
enableval=$enable_efnet; efnet=$enableval |
10919 |
else |
10920 |
efnet=no |
10921 |
fi |
10922 |
|
10923 |
|
10924 |
if test "$efnet" = yes; then |
10925 |
|
10926 |
cat >>confdefs.h <<\_ACEOF |
10927 |
#define EFNET 1 |
10928 |
_ACEOF |
10929 |
|
10930 |
|
10931 |
cat >>confdefs.h <<\_ACEOF |
10932 |
#define TS5_ONLY 1 |
10933 |
_ACEOF |
10934 |
|
10935 |
echo "Building ircd for use with EFnet" |
10936 |
EXAMPLE_CONF=example.efnet.conf |
10937 |
else |
10938 |
|
10939 |
cat >>confdefs.h <<\_ACEOF |
10940 |
#define INVARIANTS 1 |
10941 |
_ACEOF |
10942 |
|
10943 |
EXAMPLE_CONF=example.conf |
10944 |
fi |
10945 |
|
10946 |
# Check whether --enable-gline-voting was given. |
10947 |
if test "${enable_gline_voting+set}" = set; then |
10948 |
enableval=$enable_gline_voting; gline_voting=$enableval |
10949 |
else |
10950 |
gline_voting=yes |
10951 |
fi |
10952 |
|
10953 |
|
10954 |
if test "$gline_voting" = yes; then |
10955 |
|
10956 |
cat >>confdefs.h <<\_ACEOF |
10957 |
#define GLINE_VOTING 1 |
10958 |
_ACEOF |
10959 |
|
10960 |
echo "Building ircd with G-Line voting support" |
10961 |
fi |
10962 |
|
10963 |
# Check whether --enable-halfops was given. |
10964 |
if test "${enable_halfops+set}" = set; then |
10965 |
enableval=$enable_halfops; halfops=$enableval |
10966 |
else |
10967 |
halfops=no |
10968 |
fi |
10969 |
|
10970 |
|
10971 |
if test "$halfops" = yes; then |
10972 |
|
10973 |
cat >>confdefs.h <<\_ACEOF |
10974 |
#define HALFOPS 1 |
10975 |
_ACEOF |
10976 |
|
10977 |
fi |
10978 |
|
10979 |
|
10980 |
|
10981 |
{ echo "$as_me:$LINENO: checking for syslog options" >&5 |
10982 |
echo $ECHO_N "checking for syslog options... $ECHO_C" >&6; } |
10983 |
|
10984 |
# Check whether --enable-syslog was given. |
10985 |
if test "${enable_syslog+set}" = set; then |
10986 |
enableval=$enable_syslog; |
10987 |
|
10988 |
if test "$ac_cv_header_sys_syslog_h" = yes -o "$ac_cv_header_syslog_h" = yes; then |
10989 |
|
10990 |
if test "$enableval" != no; then |
10991 |
syslogstuff=core |
10992 |
|
10993 |
for option in $enableval; do |
10994 |
case "$option" in |
10995 |
kill) |
10996 |
syslogstuff="$syslogstuff kill" |
10997 |
|
10998 |
cat >>confdefs.h <<\_ACEOF |
10999 |
#define SYSLOG_KILL 1 |
11000 |
_ACEOF |
11001 |
|
11002 |
;; |
11003 |
squit) |
11004 |
syslogstuff="$syslogstuff squit" |
11005 |
|
11006 |
cat >>confdefs.h <<\_ACEOF |
11007 |
#define SYSLOG_SQUIT 1 |
11008 |
_ACEOF |
11009 |
|
11010 |
;; |
11011 |
connect) |
11012 |
syslogstuff="$syslogstuff connect" |
11013 |
|
11014 |
cat >>confdefs.h <<\_ACEOF |
11015 |
#define SYSLOG_CONNECT 1 |
11016 |
_ACEOF |
11017 |
|
11018 |
;; |
11019 |
users) |
11020 |
syslogstuff="$syslogstuff users" |
11021 |
|
11022 |
cat >>confdefs.h <<\_ACEOF |
11023 |
#define SYSLOG_USERS 1 |
11024 |
_ACEOF |
11025 |
|
11026 |
;; |
11027 |
oper) |
11028 |
syslogstuff="$syslogstuff oper" |
11029 |
|
11030 |
cat >>confdefs.h <<\_ACEOF |
11031 |
#define SYSLOG_OPER 1 |
11032 |
_ACEOF |
11033 |
|
11034 |
;; |
11035 |
yes) |
11036 |
;; |
11037 |
*) |
11038 |
{ echo "$as_me:$LINENO: WARNING: unknown event $option" >&5 |
11039 |
echo "$as_me: WARNING: unknown event $option" >&2;} |
11040 |
;; |
11041 |
esac |
11042 |
done |
11043 |
|
11044 |
if test ! -z "$syslogstuff" -o "$enableval" = yes; then |
11045 |
|
11046 |
cat >>confdefs.h <<\_ACEOF |
11047 |
#define USE_SYSLOG 1 |
11048 |
_ACEOF |
11049 |
|
11050 |
fi |
11051 |
else syslogstuff=none |
11052 |
fi |
11053 |
|
11054 |
else { echo "$as_me:$LINENO: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&5 |
11055 |
echo "$as_me: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&2;} |
11056 |
syslogstuff=none |
11057 |
fi |
11058 |
|
11059 |
else |
11060 |
syslogstuff=none |
11061 |
fi |
11062 |
|
11063 |
|
11064 |
{ echo "$as_me:$LINENO: result: $syslogstuff" >&5 |
11065 |
echo "${ECHO_T}$syslogstuff" >&6; } |
11066 |
|
11067 |
|
11068 |
# Check whether --with-syslog-facility was given. |
11069 |
if test "${with_syslog_facility+set}" = set; then |
11070 |
withval=$with_syslog_facility; facility=$withval |
11071 |
else |
11072 |
facility="LOG_LOCAL4" |
11073 |
fi |
11074 |
|
11075 |
|
11076 |
if test "$syslogstuff" != none; then |
11077 |
|
11078 |
cat >>confdefs.h <<_ACEOF |
11079 |
#define LOG_FACILITY $facility |
11080 |
_ACEOF |
11081 |
|
11082 |
fi |
11083 |
|
11084 |
|
11085 |
# Check whether --with-nicklen was given. |
11086 |
if test "${with_nicklen+set}" = set; then |
11087 |
withval=$with_nicklen; NICKLEN="$withval" |
11088 |
else |
11089 |
NICKLEN="9" |
11090 |
fi |
11091 |
|
11092 |
|
11093 |
|
11094 |
# Check whether --with-topiclen was given. |
11095 |
if test "${with_topiclen+set}" = set; then |
11096 |
withval=$with_topiclen; |
11097 |
if test $withval -ge 390; then |
11098 |
TOPICLEN=390 |
11099 |
{ echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 |
11100 |
echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} |
11101 |
else |
11102 |
TOPICLEN=$withval |
11103 |
fi |
11104 |
|
11105 |
else |
11106 |
TOPICLEN=160 |
11107 |
fi |
11108 |
|
11109 |
|
11110 |
|
11111 |
cat >>confdefs.h <<_ACEOF |
11112 |
#define TOPICLEN ${TOPICLEN} |
11113 |
_ACEOF |
11114 |
|
11115 |
|
11116 |
cat >>confdefs.h <<_ACEOF |
11117 |
#define NICKLEN (${NICKLEN}+1) |
11118 |
_ACEOF |
11119 |
|
11120 |
|
11121 |
# Check whether --enable-shared-modules was given. |
11122 |
if test "${enable_shared_modules+set}" = set; then |
11123 |
enableval=$enable_shared_modules; shared_modules=$enableval |
11124 |
else |
11125 |
shared_modules="yes" |
11126 |
fi |
11127 |
|
11128 |
|
11129 |
if test "$shared_modules" = yes; then |
11130 |
|
11131 |
if test "$profile" = "no"; then |
11132 |
shared_modules="yes" |
11133 |
else |
11134 |
{ echo "$as_me:$LINENO: WARNING: disabling shared modules; cannot coexist with profile builds" >&5 |
11135 |
echo "$as_me: WARNING: disabling shared modules; cannot coexist with profile builds" >&2;} |
11136 |
shared_modules="no" |
11137 |
fi |
11138 |
|
11139 |
if test "$CYGWIN" = yes; then |
11140 |
{ echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5 |
11141 |
echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;} |
11142 |
shared_modules="no" |
11143 |
fi |
11144 |
|
11145 |
if test "$CC" = tcc -a "$TenDRA" = "no"; then |
11146 |
{ echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 |
11147 |
echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} |
11148 |
shared_modules="no" |
11149 |
fi |
11150 |
fi |
11151 |
|
11152 |
if test "$shared_modules" = yes; then |
11153 |
DYNLINK_C=dynlink.c |
11154 |
|
11155 |
for ac_header in dlfcn.h |
11156 |
do |
11157 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11158 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11159 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11160 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11161 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11162 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11163 |
fi |
11164 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11165 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11166 |
echo "${ECHO_T}$ac_res" >&6; } |
11167 |
else |
11168 |
# Is the header compilable? |
11169 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11170 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
11171 |
cat >conftest.$ac_ext <<_ACEOF |
11172 |
/* confdefs.h. */ |
11173 |
_ACEOF |
11174 |
cat confdefs.h >>conftest.$ac_ext |
11175 |
cat >>conftest.$ac_ext <<_ACEOF |
11176 |
/* end confdefs.h. */ |
11177 |
$ac_includes_default |
11178 |
#include <$ac_header> |
11179 |
_ACEOF |
11180 |
rm -f conftest.$ac_objext |
11181 |
if { (ac_try="$ac_compile" |
11182 |
case "(($ac_try" in |
11183 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11184 |
*) ac_try_echo=$ac_try;; |
11185 |
esac |
11186 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11187 |
(eval "$ac_compile") 2>conftest.er1 |
11188 |
ac_status=$? |
11189 |
grep -v '^ *+' conftest.er1 >conftest.err |
11190 |
rm -f conftest.er1 |
11191 |
cat conftest.err >&5 |
11192 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11193 |
(exit $ac_status); } && |
11194 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11195 |
{ (case "(($ac_try" in |
11196 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11197 |
*) ac_try_echo=$ac_try;; |
11198 |
esac |
11199 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11200 |
(eval "$ac_try") 2>&5 |
11201 |
ac_status=$? |
11202 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11203 |
(exit $ac_status); }; } && |
11204 |
{ ac_try='test -s conftest.$ac_objext' |
11205 |
{ (case "(($ac_try" in |
11206 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11207 |
*) ac_try_echo=$ac_try;; |
11208 |
esac |
11209 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11210 |
(eval "$ac_try") 2>&5 |
11211 |
ac_status=$? |
11212 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11213 |
(exit $ac_status); }; }; then |
11214 |
ac_header_compiler=yes |
11215 |
else |
11216 |
echo "$as_me: failed program was:" >&5 |
11217 |
sed 's/^/| /' conftest.$ac_ext >&5 |
11218 |
|
11219 |
ac_header_compiler=no |
11220 |
fi |
11221 |
|
11222 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11223 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11224 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
11225 |
|
11226 |
# Is the header present? |
11227 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11228 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
11229 |
cat >conftest.$ac_ext <<_ACEOF |
11230 |
/* confdefs.h. */ |
11231 |
_ACEOF |
11232 |
cat confdefs.h >>conftest.$ac_ext |
11233 |
cat >>conftest.$ac_ext <<_ACEOF |
11234 |
/* end confdefs.h. */ |
11235 |
#include <$ac_header> |
11236 |
_ACEOF |
11237 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
11238 |
case "(($ac_try" in |
11239 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11240 |
*) ac_try_echo=$ac_try;; |
11241 |
esac |
11242 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11243 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
11244 |
ac_status=$? |
11245 |
grep -v '^ *+' conftest.er1 >conftest.err |
11246 |
rm -f conftest.er1 |
11247 |
cat conftest.err >&5 |
11248 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11249 |
(exit $ac_status); } >/dev/null; then |
11250 |
if test -s conftest.err; then |
11251 |
ac_cpp_err=$ac_c_preproc_warn_flag |
11252 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
11253 |
else |
11254 |
ac_cpp_err= |
11255 |
fi |
11256 |
else |
11257 |
ac_cpp_err=yes |
11258 |
fi |
11259 |
if test -z "$ac_cpp_err"; then |
11260 |
ac_header_preproc=yes |
11261 |
else |
11262 |
echo "$as_me: failed program was:" >&5 |
11263 |
sed 's/^/| /' conftest.$ac_ext >&5 |
11264 |
|
11265 |
ac_header_preproc=no |
11266 |
fi |
11267 |
|
11268 |
rm -f conftest.err conftest.$ac_ext |
11269 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11270 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
11271 |
|
11272 |
# So? What about this header? |
11273 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11274 |
yes:no: ) |
11275 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11276 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11277 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11278 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11279 |
ac_header_preproc=yes |
11280 |
;; |
11281 |
no:yes:* ) |
11282 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11283 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11284 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11285 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11286 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11287 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11288 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11289 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11290 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11291 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11292 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11293 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11294 |
|
11295 |
;; |
11296 |
esac |
11297 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11298 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11299 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11300 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11301 |
else |
11302 |
eval "$as_ac_Header=\$ac_header_preproc" |
11303 |
fi |
11304 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11305 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11306 |
echo "${ECHO_T}$ac_res" >&6; } |
11307 |
|
11308 |
fi |
11309 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11310 |
cat >>confdefs.h <<_ACEOF |
11311 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
11312 |
_ACEOF |
11313 |
|
11314 |
fi |
11315 |
|
11316 |
done |
11317 |
|
11318 |
{ echo "$as_me:$LINENO: checking for library containing shl_load" >&5 |
11319 |
echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; } |
11320 |
if test "${ac_cv_search_shl_load+set}" = set; then |
11321 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11322 |
else |
11323 |
ac_func_search_save_LIBS=$LIBS |
11324 |
cat >conftest.$ac_ext <<_ACEOF |
11325 |
/* confdefs.h. */ |
11326 |
_ACEOF |
11327 |
cat confdefs.h >>conftest.$ac_ext |
11328 |
cat >>conftest.$ac_ext <<_ACEOF |
11329 |
/* end confdefs.h. */ |
11330 |
|
11331 |
/* Override any GCC internal prototype to avoid an error. |
11332 |
Use char because int might match the return type of a GCC |
11333 |
builtin and then its argument prototype would still apply. */ |
11334 |
#ifdef __cplusplus |
11335 |
extern "C" |
11336 |
#endif |
11337 |
char shl_load (); |
11338 |
int |
11339 |
main () |
11340 |
{ |
11341 |
return shl_load (); |
11342 |
; |
11343 |
return 0; |
11344 |
} |
11345 |
_ACEOF |
11346 |
for ac_lib in '' dld; do |
11347 |
if test -z "$ac_lib"; then |
11348 |
ac_res="none required" |
11349 |
else |
11350 |
ac_res=-l$ac_lib |
11351 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
11352 |
fi |
11353 |
rm -f conftest.$ac_objext conftest$ac_exeext |
11354 |
if { (ac_try="$ac_link" |
11355 |
case "(($ac_try" in |
11356 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11357 |
*) ac_try_echo=$ac_try;; |
11358 |
esac |
11359 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11360 |
(eval "$ac_link") 2>conftest.er1 |
11361 |
ac_status=$? |
11362 |
grep -v '^ *+' conftest.er1 >conftest.err |
11363 |
rm -f conftest.er1 |
11364 |
cat conftest.err >&5 |
11365 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11366 |
(exit $ac_status); } && |
11367 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11368 |
{ (case "(($ac_try" in |
11369 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11370 |
*) ac_try_echo=$ac_try;; |
11371 |
esac |
11372 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11373 |
(eval "$ac_try") 2>&5 |
11374 |
ac_status=$? |
11375 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11376 |
(exit $ac_status); }; } && |
11377 |
{ ac_try='test -s conftest$ac_exeext' |
11378 |
{ (case "(($ac_try" in |
11379 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11380 |
*) ac_try_echo=$ac_try;; |
11381 |
esac |
11382 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11383 |
(eval "$ac_try") 2>&5 |
11384 |
ac_status=$? |
11385 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11386 |
(exit $ac_status); }; }; then |
11387 |
ac_cv_search_shl_load=$ac_res |
11388 |
else |
11389 |
echo "$as_me: failed program was:" >&5 |
11390 |
sed 's/^/| /' conftest.$ac_ext >&5 |
11391 |
|
11392 |
|
11393 |
fi |
11394 |
|
11395 |
rm -f core conftest.err conftest.$ac_objext \ |
11396 |
conftest$ac_exeext |
11397 |
if test "${ac_cv_search_shl_load+set}" = set; then |
11398 |
break |
11399 |
fi |
11400 |
done |
11401 |
if test "${ac_cv_search_shl_load+set}" = set; then |
11402 |
: |
11403 |
else |
11404 |
ac_cv_search_shl_load=no |
11405 |
fi |
11406 |
rm conftest.$ac_ext |
11407 |
LIBS=$ac_func_search_save_LIBS |
11408 |
fi |
11409 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5 |
11410 |
echo "${ECHO_T}$ac_cv_search_shl_load" >&6; } |
11411 |
ac_res=$ac_cv_search_shl_load |
11412 |
if test "$ac_res" != no; then |
11413 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
11414 |
|
11415 |
|
11416 |
cat >>confdefs.h <<\_ACEOF |
11417 |
#define HAVE_SHL_LOAD 1 |
11418 |
_ACEOF |
11419 |
|
11420 |
SUFFIX=".sl" |
11421 |
MOD_TARGET=hpux_shared |
11422 |
SEDOBJ="s/\.o/.sl/g" |
11423 |
|
11424 |
else |
11425 |
|
11426 |
{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
11427 |
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
11428 |
if test "${ac_cv_search_dlopen+set}" = set; then |
11429 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11430 |
else |
11431 |
ac_func_search_save_LIBS=$LIBS |
11432 |
cat >conftest.$ac_ext <<_ACEOF |
11433 |
/* confdefs.h. */ |
11434 |
_ACEOF |
11435 |
cat confdefs.h >>conftest.$ac_ext |
11436 |
cat >>conftest.$ac_ext <<_ACEOF |
11437 |
/* end confdefs.h. */ |
11438 |
|
11439 |
/* Override any GCC internal prototype to avoid an error. |
11440 |
Use char because int might match the return type of a GCC |
11441 |
builtin and then its argument prototype would still apply. */ |
11442 |
#ifdef __cplusplus |
11443 |
extern "C" |
11444 |
#endif |
11445 |
char dlopen (); |
11446 |
int |
11447 |
main () |
11448 |
{ |
11449 |
return dlopen (); |
11450 |
; |
11451 |
return 0; |
11452 |
} |
11453 |
_ACEOF |
11454 |
for ac_lib in '' dl c_r; do |
11455 |
if test -z "$ac_lib"; then |
11456 |
ac_res="none required" |
11457 |
else |
11458 |
ac_res=-l$ac_lib |
11459 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
11460 |
fi |
11461 |
rm -f conftest.$ac_objext conftest$ac_exeext |
11462 |
if { (ac_try="$ac_link" |
11463 |
case "(($ac_try" in |
11464 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11465 |
*) ac_try_echo=$ac_try;; |
11466 |
esac |
11467 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11468 |
(eval "$ac_link") 2>conftest.er1 |
11469 |
ac_status=$? |
11470 |
grep -v '^ *+' conftest.er1 >conftest.err |
11471 |
rm -f conftest.er1 |
11472 |
cat conftest.err >&5 |
11473 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11474 |
(exit $ac_status); } && |
11475 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11476 |
{ (case "(($ac_try" in |
11477 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11478 |
*) ac_try_echo=$ac_try;; |
11479 |
esac |
11480 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11481 |
(eval "$ac_try") 2>&5 |
11482 |
ac_status=$? |
11483 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11484 |
(exit $ac_status); }; } && |
11485 |
{ ac_try='test -s conftest$ac_exeext' |
11486 |
{ (case "(($ac_try" in |
11487 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11488 |
*) ac_try_echo=$ac_try;; |
11489 |
esac |
11490 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11491 |
(eval "$ac_try") 2>&5 |
11492 |
ac_status=$? |
11493 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11494 |
(exit $ac_status); }; }; then |
11495 |
ac_cv_search_dlopen=$ac_res |
11496 |
else |
11497 |
echo "$as_me: failed program was:" >&5 |
11498 |
sed 's/^/| /' conftest.$ac_ext >&5 |
11499 |
|
11500 |
|
11501 |
fi |
11502 |
|
11503 |
rm -f core conftest.err conftest.$ac_objext \ |
11504 |
conftest$ac_exeext |
11505 |
if test "${ac_cv_search_dlopen+set}" = set; then |
11506 |
break |
11507 |
fi |
11508 |
done |
11509 |
if test "${ac_cv_search_dlopen+set}" = set; then |
11510 |
: |
11511 |
else |
11512 |
ac_cv_search_dlopen=no |
11513 |
fi |
11514 |
rm conftest.$ac_ext |
11515 |
LIBS=$ac_func_search_save_LIBS |
11516 |
fi |
11517 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
11518 |
echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
11519 |
ac_res=$ac_cv_search_dlopen |
11520 |
if test "$ac_res" != no; then |
11521 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
11522 |
|
11523 |
|
11524 |
cat >>confdefs.h <<\_ACEOF |
11525 |
#define HAVE_DLOPEN 1 |
11526 |
_ACEOF |
11527 |
|
11528 |
SUFFIX=".so" |
11529 |
MOD_TARGET=shared_modules |
11530 |
SEDOBJ="s/\.o/.so/g" |
11531 |
if test "$AppleGCC" = yes; then |
11532 |
|
11533 |
for ac_header in mach-o/dyld.h |
11534 |
do |
11535 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11536 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11537 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11538 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11539 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11540 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11541 |
fi |
11542 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11543 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11544 |
echo "${ECHO_T}$ac_res" >&6; } |
11545 |
else |
11546 |
# Is the header compilable? |
11547 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11548 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
11549 |
cat >conftest.$ac_ext <<_ACEOF |
11550 |
/* confdefs.h. */ |
11551 |
_ACEOF |
11552 |
cat confdefs.h >>conftest.$ac_ext |
11553 |
cat >>conftest.$ac_ext <<_ACEOF |
11554 |
/* end confdefs.h. */ |
11555 |
$ac_includes_default |
11556 |
#include <$ac_header> |
11557 |
_ACEOF |
11558 |
rm -f conftest.$ac_objext |
11559 |
if { (ac_try="$ac_compile" |
11560 |
case "(($ac_try" in |
11561 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11562 |
*) ac_try_echo=$ac_try;; |
11563 |
esac |
11564 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11565 |
(eval "$ac_compile") 2>conftest.er1 |
11566 |
ac_status=$? |
11567 |
grep -v '^ *+' conftest.er1 >conftest.err |
11568 |
rm -f conftest.er1 |
11569 |
cat conftest.err >&5 |
11570 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11571 |
(exit $ac_status); } && |
11572 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11573 |
{ (case "(($ac_try" in |
11574 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11575 |
*) ac_try_echo=$ac_try;; |
11576 |
esac |
11577 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11578 |
(eval "$ac_try") 2>&5 |
11579 |
ac_status=$? |
11580 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11581 |
(exit $ac_status); }; } && |
11582 |
{ ac_try='test -s conftest.$ac_objext' |
11583 |
{ (case "(($ac_try" in |
11584 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11585 |
*) ac_try_echo=$ac_try;; |
11586 |
esac |
11587 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11588 |
(eval "$ac_try") 2>&5 |
11589 |
ac_status=$? |
11590 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11591 |
(exit $ac_status); }; }; then |
11592 |
ac_header_compiler=yes |
11593 |
else |
11594 |
echo "$as_me: failed program was:" >&5 |
11595 |
sed 's/^/| /' conftest.$ac_ext >&5 |
11596 |
|
11597 |
ac_header_compiler=no |
11598 |
fi |
11599 |
|
11600 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11601 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11602 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
11603 |
|
11604 |
# Is the header present? |
11605 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11606 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
11607 |
cat >conftest.$ac_ext <<_ACEOF |
11608 |
/* confdefs.h. */ |
11609 |
_ACEOF |
11610 |
cat confdefs.h >>conftest.$ac_ext |
11611 |
cat >>conftest.$ac_ext <<_ACEOF |
11612 |
/* end confdefs.h. */ |
11613 |
#include <$ac_header> |
11614 |
_ACEOF |
11615 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
11616 |
case "(($ac_try" in |
11617 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11618 |
*) ac_try_echo=$ac_try;; |
11619 |
esac |
11620 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11621 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
11622 |
ac_status=$? |
11623 |
grep -v '^ *+' conftest.er1 >conftest.err |
11624 |
rm -f conftest.er1 |
11625 |
cat conftest.err >&5 |
11626 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11627 |
(exit $ac_status); } >/dev/null; then |
11628 |
if test -s conftest.err; then |
11629 |
ac_cpp_err=$ac_c_preproc_warn_flag |
11630 |
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
11631 |
else |
11632 |
ac_cpp_err= |
11633 |
fi |
11634 |
else |
11635 |
ac_cpp_err=yes |
11636 |
fi |
11637 |
if test -z "$ac_cpp_err"; then |
11638 |
ac_header_preproc=yes |
11639 |
else |
11640 |
echo "$as_me: failed program was:" >&5 |
11641 |
sed 's/^/| /' conftest.$ac_ext >&5 |
11642 |
|
11643 |
ac_header_preproc=no |
11644 |
fi |
11645 |
|
11646 |
rm -f conftest.err conftest.$ac_ext |
11647 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11648 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
11649 |
|
11650 |
# So? What about this header? |
11651 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11652 |
yes:no: ) |
11653 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11654 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11655 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11656 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11657 |
ac_header_preproc=yes |
11658 |
;; |
11659 |
no:yes:* ) |
11660 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11661 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11662 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11663 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11664 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11665 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11666 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11667 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11668 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11669 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11670 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11671 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11672 |
|
11673 |
;; |
11674 |
esac |
11675 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11676 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11677 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11678 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11679 |
else |
11680 |
eval "$as_ac_Header=\$ac_header_preproc" |
11681 |
fi |
11682 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
11683 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11684 |
echo "${ECHO_T}$ac_res" >&6; } |
11685 |
|
11686 |
fi |
11687 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11688 |
cat >>confdefs.h <<_ACEOF |
11689 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
11690 |
_ACEOF |
11691 |
|
11692 |
fi |
11693 |
|
11694 |
done |
11695 |
|
11696 |
fi |
11697 |
{ echo "$as_me:$LINENO: checking for dlsym" >&5 |
11698 |
echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; } |
11699 |
if test "${ac_cv_func_dlsym+set}" = set; then |
11700 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11701 |
else |
11702 |
cat >conftest.$ac_ext <<_ACEOF |
11703 |
/* confdefs.h. */ |
11704 |
_ACEOF |
11705 |
cat confdefs.h >>conftest.$ac_ext |
11706 |
cat >>conftest.$ac_ext <<_ACEOF |
11707 |
/* end confdefs.h. */ |
11708 |
/* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym. |
11709 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
11710 |
#define dlsym innocuous_dlsym |
11711 |
|
11712 |
/* System header to define __stub macros and hopefully few prototypes, |
11713 |
which can conflict with char dlsym (); below. |
11714 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
11715 |
<limits.h> exists even on freestanding compilers. */ |
11716 |
|
11717 |
#ifdef __STDC__ |
11718 |
# include <limits.h> |
11719 |
#else |
11720 |
# include <assert.h> |
11721 |
#endif |
11722 |
|
11723 |
#undef dlsym |
11724 |
|
11725 |
/* Override any GCC internal prototype to avoid an error. |
11726 |
Use char because int might match the return type of a GCC |
11727 |
builtin and then its argument prototype would still apply. */ |
11728 |
#ifdef __cplusplus |
11729 |
extern "C" |
11730 |
#endif |
11731 |
char dlsym (); |
11732 |
/* The GNU C library defines this for functions which it implements |
11733 |
to always fail with ENOSYS. Some functions are actually named |
11734 |
something starting with __ and the normal name is an alias. */ |
11735 |
#if defined __stub_dlsym || defined __stub___dlsym |
11736 |
choke me |
11737 |
#endif |
11738 |
|
11739 |
int |
11740 |
main () |
11741 |
{ |
11742 |
return dlsym (); |
11743 |
; |
11744 |
return 0; |
11745 |
} |
11746 |
_ACEOF |
11747 |
rm -f conftest.$ac_objext conftest$ac_exeext |
11748 |
if { (ac_try="$ac_link" |
11749 |
case "(($ac_try" in |
11750 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11751 |
*) ac_try_echo=$ac_try;; |
11752 |
esac |
11753 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11754 |
(eval "$ac_link") 2>conftest.er1 |
11755 |
ac_status=$? |
11756 |
grep -v '^ *+' conftest.er1 >conftest.err |
11757 |
rm -f conftest.er1 |
11758 |
cat conftest.err >&5 |
11759 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11760 |
(exit $ac_status); } && |
11761 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11762 |
{ (case "(($ac_try" in |
11763 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11764 |
*) ac_try_echo=$ac_try;; |
11765 |
esac |
11766 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11767 |
(eval "$ac_try") 2>&5 |
11768 |
ac_status=$? |
11769 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11770 |
(exit $ac_status); }; } && |
11771 |
{ ac_try='test -s conftest$ac_exeext' |
11772 |
{ (case "(($ac_try" in |
11773 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11774 |
*) ac_try_echo=$ac_try;; |
11775 |
esac |
11776 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11777 |
(eval "$ac_try") 2>&5 |
11778 |
ac_status=$? |
11779 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11780 |
(exit $ac_status); }; }; then |
11781 |
ac_cv_func_dlsym=yes |
11782 |
else |
11783 |
echo "$as_me: failed program was:" >&5 |
11784 |
sed 's/^/| /' conftest.$ac_ext >&5 |
11785 |
|
11786 |
ac_cv_func_dlsym=no |
11787 |
fi |
11788 |
|
11789 |
rm -f core conftest.err conftest.$ac_objext \ |
11790 |
conftest$ac_exeext conftest.$ac_ext |
11791 |
fi |
11792 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5 |
11793 |
echo "${ECHO_T}$ac_cv_func_dlsym" >&6; } |
11794 |
if test $ac_cv_func_dlsym = yes; then |
11795 |
: |
11796 |
else |
11797 |
|
11798 |
{ echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5 |
11799 |
echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} |
11800 |
shared_modules=no |
11801 |
|
11802 |
fi |
11803 |
|
11804 |
|
11805 |
|
11806 |
for ac_func in dlfunc dlinfo |
11807 |
do |
11808 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11809 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11810 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
11811 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
11812 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11813 |
else |
11814 |
cat >conftest.$ac_ext <<_ACEOF |
11815 |
/* confdefs.h. */ |
11816 |
_ACEOF |
11817 |
cat confdefs.h >>conftest.$ac_ext |
11818 |
cat >>conftest.$ac_ext <<_ACEOF |
11819 |
/* end confdefs.h. */ |
11820 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11821 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
11822 |
#define $ac_func innocuous_$ac_func |
11823 |
|
11824 |
/* System header to define __stub macros and hopefully few prototypes, |
11825 |
which can conflict with char $ac_func (); below. |
11826 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
11827 |
<limits.h> exists even on freestanding compilers. */ |
11828 |
|
11829 |
#ifdef __STDC__ |
11830 |
# include <limits.h> |
11831 |
#else |
11832 |
# include <assert.h> |
11833 |
#endif |
11834 |
|
11835 |
#undef $ac_func |
11836 |
|
11837 |
/* Override any GCC internal prototype to avoid an error. |
11838 |
Use char because int might match the return type of a GCC |
11839 |
builtin and then its argument prototype would still apply. */ |
11840 |
#ifdef __cplusplus |
11841 |
extern "C" |
11842 |
#endif |
11843 |
char $ac_func (); |
11844 |
/* The GNU C library defines this for functions which it implements |
11845 |
to always fail with ENOSYS. Some functions are actually named |
11846 |
something starting with __ and the normal name is an alias. */ |
11847 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
11848 |
choke me |
11849 |
#endif |
11850 |
|
11851 |
int |
11852 |
main () |
11853 |
{ |
11854 |
return $ac_func (); |
11855 |
; |
11856 |
return 0; |
11857 |
} |
11858 |
_ACEOF |
11859 |
rm -f conftest.$ac_objext conftest$ac_exeext |
11860 |
if { (ac_try="$ac_link" |
11861 |
case "(($ac_try" in |
11862 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11863 |
*) ac_try_echo=$ac_try;; |
11864 |
esac |
11865 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11866 |
(eval "$ac_link") 2>conftest.er1 |
11867 |
ac_status=$? |
11868 |
grep -v '^ *+' conftest.er1 >conftest.err |
11869 |
rm -f conftest.er1 |
11870 |
cat conftest.err >&5 |
11871 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11872 |
(exit $ac_status); } && |
11873 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11874 |
{ (case "(($ac_try" in |
11875 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11876 |
*) ac_try_echo=$ac_try;; |
11877 |
esac |
11878 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11879 |
(eval "$ac_try") 2>&5 |
11880 |
ac_status=$? |
11881 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11882 |
(exit $ac_status); }; } && |
11883 |
{ ac_try='test -s conftest$ac_exeext' |
11884 |
{ (case "(($ac_try" in |
11885 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11886 |
*) ac_try_echo=$ac_try;; |
11887 |
esac |
11888 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11889 |
(eval "$ac_try") 2>&5 |
11890 |
ac_status=$? |
11891 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11892 |
(exit $ac_status); }; }; then |
11893 |
eval "$as_ac_var=yes" |
11894 |
else |
11895 |
echo "$as_me: failed program was:" >&5 |
11896 |
sed 's/^/| /' conftest.$ac_ext >&5 |
11897 |
|
11898 |
eval "$as_ac_var=no" |
11899 |
fi |
11900 |
|
11901 |
rm -f core conftest.err conftest.$ac_objext \ |
11902 |
conftest$ac_exeext conftest.$ac_ext |
11903 |
fi |
11904 |
ac_res=`eval echo '${'$as_ac_var'}'` |
11905 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
11906 |
echo "${ECHO_T}$ac_res" >&6; } |
11907 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
11908 |
cat >>confdefs.h <<_ACEOF |
11909 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
11910 |
_ACEOF |
11911 |
|
11912 |
fi |
11913 |
done |
11914 |
|
11915 |
|
11916 |
else |
11917 |
|
11918 |
shared_modules=no |
11919 |
|
11920 |
fi |
11921 |
|
11922 |
|
11923 |
fi |
11924 |
|
11925 |
fi |
11926 |
|
11927 |
|
11928 |
cat >>confdefs.h <<_ACEOF |
11929 |
#define SHARED_SUFFIX "$SUFFIX" |
11930 |
_ACEOF |
11931 |
|
11932 |
|
11933 |
if test "$shared_modules" = yes; then |
11934 |
# The GNU linker requires the -export-dynamic option to make |
11935 |
# all symbols visible in the dynamic symbol table. |
11936 |
hold_ldflags=$LDFLAGS |
11937 |
{ echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
11938 |
echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; } |
11939 |
LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
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 |
|
11947 |
int |
11948 |
main () |
11949 |
{ |
11950 |
int i; |
11951 |
; |
11952 |
return 0; |
11953 |
} |
11954 |
_ACEOF |
11955 |
rm -f conftest.$ac_objext conftest$ac_exeext |
11956 |
if { (ac_try="$ac_link" |
11957 |
case "(($ac_try" in |
11958 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11959 |
*) ac_try_echo=$ac_try;; |
11960 |
esac |
11961 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11962 |
(eval "$ac_link") 2>conftest.er1 |
11963 |
ac_status=$? |
11964 |
grep -v '^ *+' conftest.er1 >conftest.err |
11965 |
rm -f conftest.er1 |
11966 |
cat conftest.err >&5 |
11967 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11968 |
(exit $ac_status); } && |
11969 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11970 |
{ (case "(($ac_try" in |
11971 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11972 |
*) ac_try_echo=$ac_try;; |
11973 |
esac |
11974 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11975 |
(eval "$ac_try") 2>&5 |
11976 |
ac_status=$? |
11977 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11978 |
(exit $ac_status); }; } && |
11979 |
{ ac_try='test -s conftest$ac_exeext' |
11980 |
{ (case "(($ac_try" in |
11981 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11982 |
*) ac_try_echo=$ac_try;; |
11983 |
esac |
11984 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11985 |
(eval "$ac_try") 2>&5 |
11986 |
ac_status=$? |
11987 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11988 |
(exit $ac_status); }; }; then |
11989 |
found=yes |
11990 |
else |
11991 |
echo "$as_me: failed program was:" >&5 |
11992 |
sed 's/^/| /' conftest.$ac_ext >&5 |
11993 |
|
11994 |
found=no |
11995 |
fi |
11996 |
|
11997 |
rm -f core conftest.err conftest.$ac_objext \ |
11998 |
conftest$ac_exeext conftest.$ac_ext |
11999 |
LDFLAGS=$hold_ldflags |
12000 |
|
12001 |
if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then |
12002 |
found="no, IRIX ld uses -B,dynamic" |
12003 |
LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" |
12004 |
fi |
12005 |
|
12006 |
{ echo "$as_me:$LINENO: result: $found" >&5 |
12007 |
echo "${ECHO_T}$found" >&6; } |
12008 |
|
12009 |
if test "$found" = yes; then |
12010 |
LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
12011 |
fi |
12012 |
|
12013 |
{ echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5 |
12014 |
echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; } |
12015 |
if test "$SGS" = "yes"; then |
12016 |
{ echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 |
12017 |
echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } |
12018 |
PICFLAGS="-KPIC -DPIC -G" |
12019 |
fi |
12020 |
|
12021 |
if test "$AppleGCC" = "yes"; then |
12022 |
{ echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 |
12023 |
echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } |
12024 |
PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" |
12025 |
fi |
12026 |
if test "$HPUX" = "yes" -a "$ac_cv_c_compiler_gnu" = no; then |
12027 |
{ echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5 |
12028 |
echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; } |
12029 |
PICFLAGS="+z -r -q -n -c" |
12030 |
{ echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5 |
12031 |
echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; } |
12032 |
|
12033 |
if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then |
12034 |
{ echo "$as_me:$LINENO: result: no" >&5 |
12035 |
echo "${ECHO_T}no" >&6; } |
12036 |
else |
12037 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
12038 |
echo "${ECHO_T}yes" >&6; } |
12039 |
PICFLAGS="$PICFLAGS +ESfic" |
12040 |
fi |
12041 |
|
12042 |
LDFLAGS="${LDFLAGS} -Wl,-E" |
12043 |
fi |
12044 |
if test "$Tru" = yes -a "$ac_cv_c_compiler_gnu" = no; then |
12045 |
{ echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5 |
12046 |
echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; } |
12047 |
PICFLAGS="-shared -expect_unresolved '*' " |
12048 |
LDFLAGS="-call_shared" |
12049 |
fi |
12050 |
if test -z "$PICFLAGS"; then |
12051 |
if test "$ac_cv_c_compiler_gnu" = "yes"; then |
12052 |
{ echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5 |
12053 |
echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; } |
12054 |
PICFLAGS="-fPIC -DPIC -shared" |
12055 |
else |
12056 |
{ echo "$as_me:$LINENO: result: no" >&5 |
12057 |
echo "${ECHO_T}no" >&6; } |
12058 |
shared_modules=no |
12059 |
fi |
12060 |
fi |
12061 |
fi |
12062 |
|
12063 |
if test "$shared_modules" = no; then |
12064 |
DYNLINK_C="" |
12065 |
MOD_TARGET="libmodules.a" |
12066 |
MODULES_LIBS="../modules/libmodules.a" |
12067 |
SEDOBJ="" |
12068 |
|
12069 |
cat >>confdefs.h <<\_ACEOF |
12070 |
#define STATIC_MODULES 1 |
12071 |
_ACEOF |
12072 |
|
12073 |
{ echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5 |
12074 |
echo "$as_me: WARNING: shared module support has been disabled!" >&2;} |
12075 |
fi |
12076 |
|
12077 |
|
12078 |
|
12079 |
|
12080 |
|
12081 |
|
12082 |
|
12083 |
|
12084 |
|
12085 |
|
12086 |
|
12087 |
|
12088 |
|
12089 |
|
12090 |
if test "$prefix" = "NONE"; then |
12091 |
|
12092 |
cat >>confdefs.h <<_ACEOF |
12093 |
#define IRCD_PREFIX "$ac_default_prefix" |
12094 |
_ACEOF |
12095 |
|
12096 |
|
12097 |
else |
12098 |
|
12099 |
|
12100 |
prefix=`echo $prefix | sed 's/\/$//'` |
12101 |
|
12102 |
cat >>confdefs.h <<_ACEOF |
12103 |
#define IRCD_PREFIX "$prefix" |
12104 |
_ACEOF |
12105 |
|
12106 |
|
12107 |
fi |
12108 |
|
12109 |
ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile lib/Makefile lib/pcre/Makefile" |
12110 |
|
12111 |
|
12112 |
cat >confcache <<\_ACEOF |
12113 |
# This file is a shell script that caches the results of configure |
12114 |
# tests run on this system so they can be shared between configure |
12115 |
# scripts and configure runs, see configure's option --config-cache. |
12116 |
# It is not useful on other systems. If it contains results you don't |
12117 |
# want to keep, you may remove or edit it. |
12118 |
# |
12119 |
# config.status only pays attention to the cache file if you give it |
12120 |
# the --recheck option to rerun configure. |
12121 |
# |
12122 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
12123 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
12124 |
# following values. |
12125 |
|
12126 |
_ACEOF |
12127 |
|
12128 |
# The following way of writing the cache mishandles newlines in values, |
12129 |
# but we know of no workaround that is simple, portable, and efficient. |
12130 |
# So, we kill variables containing newlines. |
12131 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
12132 |
# and sets the high bit in the cache file unless we assign to the vars. |
12133 |
( |
12134 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
12135 |
eval ac_val=\$$ac_var |
12136 |
case $ac_val in #( |
12137 |
*${as_nl}*) |
12138 |
case $ac_var in #( |
12139 |
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
12140 |
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
12141 |
esac |
12142 |
case $ac_var in #( |
12143 |
_ | IFS | as_nl) ;; #( |
12144 |
*) $as_unset $ac_var ;; |
12145 |
esac ;; |
12146 |
esac |
12147 |
done |
12148 |
|
12149 |
(set) 2>&1 | |
12150 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
12151 |
*${as_nl}ac_space=\ *) |
12152 |
# `set' does not quote correctly, so add quotes (double-quote |
12153 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
12154 |
sed -n \ |
12155 |
"s/'/'\\\\''/g; |
12156 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
12157 |
;; #( |
12158 |
*) |
12159 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
12160 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
12161 |
;; |
12162 |
esac | |
12163 |
sort |
12164 |
) | |
12165 |
sed ' |
12166 |
/^ac_cv_env_/b end |
12167 |
t clear |
12168 |
:clear |
12169 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
12170 |
t end |
12171 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
12172 |
:end' >>confcache |
12173 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
12174 |
if test -w "$cache_file"; then |
12175 |
test "x$cache_file" != "x/dev/null" && |
12176 |
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
12177 |
echo "$as_me: updating cache $cache_file" >&6;} |
12178 |
cat confcache >$cache_file |
12179 |
else |
12180 |
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
12181 |
echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
12182 |
fi |
12183 |
fi |
12184 |
rm -f confcache |
12185 |
|
12186 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12187 |
# Let make expand exec_prefix. |
12188 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
12189 |
|
12190 |
DEFS=-DHAVE_CONFIG_H |
12191 |
|
12192 |
ac_libobjs= |
12193 |
ac_ltlibobjs= |
12194 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
12195 |
# 1. Remove the extension, and $U if already installed. |
12196 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
12197 |
ac_i=`echo "$ac_i" | sed "$ac_script"` |
12198 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
12199 |
# will be set to the directory where LIBOBJS objects are built. |
12200 |
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
12201 |
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
12202 |
done |
12203 |
LIBOBJS=$ac_libobjs |
12204 |
|
12205 |
LTLIBOBJS=$ac_ltlibobjs |
12206 |
|
12207 |
|
12208 |
|
12209 |
: ${CONFIG_STATUS=./config.status} |
12210 |
ac_clean_files_save=$ac_clean_files |
12211 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
12212 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
12213 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
12214 |
cat >$CONFIG_STATUS <<_ACEOF |
12215 |
#! $SHELL |
12216 |
# Generated by $as_me. |
12217 |
# Run this file to recreate the current configuration. |
12218 |
# Compiler output produced by configure, useful for debugging |
12219 |
# configure, is in config.log if it exists. |
12220 |
|
12221 |
debug=false |
12222 |
ac_cs_recheck=false |
12223 |
ac_cs_silent=false |
12224 |
SHELL=\${CONFIG_SHELL-$SHELL} |
12225 |
_ACEOF |
12226 |
|
12227 |
cat >>$CONFIG_STATUS <<\_ACEOF |
12228 |
## --------------------- ## |
12229 |
## M4sh Initialization. ## |
12230 |
## --------------------- ## |
12231 |
|
12232 |
# Be Bourne compatible |
12233 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
12234 |
emulate sh |
12235 |
NULLCMD=: |
12236 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
12237 |
# is contrary to our usage. Disable this feature. |
12238 |
alias -g '${1+"$@"}'='"$@"' |
12239 |
setopt NO_GLOB_SUBST |
12240 |
else |
12241 |
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
12242 |
fi |
12243 |
BIN_SH=xpg4; export BIN_SH # for Tru64 |
12244 |
DUALCASE=1; export DUALCASE # for MKS sh |
12245 |
|
12246 |
|
12247 |
# PATH needs CR |
12248 |
# Avoid depending upon Character Ranges. |
12249 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
12250 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
12251 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
12252 |
as_cr_digits='0123456789' |
12253 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
12254 |
|
12255 |
# The user is always right. |
12256 |
if test "${PATH_SEPARATOR+set}" != set; then |
12257 |
echo "#! /bin/sh" >conf$$.sh |
12258 |
echo "exit 0" >>conf$$.sh |
12259 |
chmod +x conf$$.sh |
12260 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
12261 |
PATH_SEPARATOR=';' |
12262 |
else |
12263 |
PATH_SEPARATOR=: |
12264 |
fi |
12265 |
rm -f conf$$.sh |
12266 |
fi |
12267 |
|
12268 |
# Support unset when possible. |
12269 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
12270 |
as_unset=unset |
12271 |
else |
12272 |
as_unset=false |
12273 |
fi |
12274 |
|
12275 |
|
12276 |
# IFS |
12277 |
# We need space, tab and new line, in precisely that order. Quoting is |
12278 |
# there to prevent editors from complaining about space-tab. |
12279 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
12280 |
# splitting by setting IFS to empty value.) |
12281 |
as_nl=' |
12282 |
' |
12283 |
IFS=" "" $as_nl" |
12284 |
|
12285 |
# Find who we are. Look in the path if we contain no directory separator. |
12286 |
case $0 in |
12287 |
*[\\/]* ) as_myself=$0 ;; |
12288 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12289 |
for as_dir in $PATH |
12290 |
do |
12291 |
IFS=$as_save_IFS |
12292 |
test -z "$as_dir" && as_dir=. |
12293 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
12294 |
done |
12295 |
IFS=$as_save_IFS |
12296 |
|
12297 |
;; |
12298 |
esac |
12299 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
12300 |
# in which case we are not to be found in the path. |
12301 |
if test "x$as_myself" = x; then |
12302 |
as_myself=$0 |
12303 |
fi |
12304 |
if test ! -f "$as_myself"; then |
12305 |
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
12306 |
{ (exit 1); exit 1; } |
12307 |
fi |
12308 |
|
12309 |
# Work around bugs in pre-3.0 UWIN ksh. |
12310 |
for as_var in ENV MAIL MAILPATH |
12311 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
12312 |
done |
12313 |
PS1='$ ' |
12314 |
PS2='> ' |
12315 |
PS4='+ ' |
12316 |
|
12317 |
# NLS nuisances. |
12318 |
for as_var in \ |
12319 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
12320 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
12321 |
LC_TELEPHONE LC_TIME |
12322 |
do |
12323 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
12324 |
eval $as_var=C; export $as_var |
12325 |
else |
12326 |
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
12327 |
fi |
12328 |
done |
12329 |
|
12330 |
# Required to use basename. |
12331 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
12332 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
12333 |
as_expr=expr |
12334 |
else |
12335 |
as_expr=false |
12336 |
fi |
12337 |
|
12338 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
12339 |
as_basename=basename |
12340 |
else |
12341 |
as_basename=false |
12342 |
fi |
12343 |
|
12344 |
|
12345 |
# Name of the executable. |
12346 |
as_me=`$as_basename -- "$0" || |
12347 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12348 |
X"$0" : 'X\(//\)$' \| \ |
12349 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
12350 |
echo X/"$0" | |
12351 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
12352 |
s//\1/ |
12353 |
q |
12354 |
} |
12355 |
/^X\/\(\/\/\)$/{ |
12356 |
s//\1/ |
12357 |
q |
12358 |
} |
12359 |
/^X\/\(\/\).*/{ |
12360 |
s//\1/ |
12361 |
q |
12362 |
} |
12363 |
s/.*/./; q'` |
12364 |
|
12365 |
# CDPATH. |
12366 |
$as_unset CDPATH |
12367 |
|
12368 |
|
12369 |
|
12370 |
as_lineno_1=$LINENO |
12371 |
as_lineno_2=$LINENO |
12372 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
12373 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
12374 |
|
12375 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
12376 |
# uniformly replaced by the line number. The first 'sed' inserts a |
12377 |
# line-number line after each line using $LINENO; the second 'sed' |
12378 |
# does the real work. The second script uses 'N' to pair each |
12379 |
# line-number line with the line containing $LINENO, and appends |
12380 |
# trailing '-' during substitution so that $LINENO is not a special |
12381 |
# case at line end. |
12382 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
12383 |
# scripts with optimization help from Paolo Bonzini. Blame Lee |
12384 |
# E. McMahon (1931-1989) for sed's syntax. :-) |
12385 |
sed -n ' |
12386 |
p |
12387 |
/[$]LINENO/= |
12388 |
' <$as_myself | |
12389 |
sed ' |
12390 |
s/[$]LINENO.*/&-/ |
12391 |
t lineno |
12392 |
b |
12393 |
:lineno |
12394 |
N |
12395 |
:loop |
12396 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
12397 |
t loop |
12398 |
s/-\n.*// |
12399 |
' >$as_me.lineno && |
12400 |
chmod +x "$as_me.lineno" || |
12401 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
12402 |
{ (exit 1); exit 1; }; } |
12403 |
|
12404 |
# Don't try to exec as it changes $[0], causing all sort of problems |
12405 |
# (the dirname of $[0] is not the place where we might find the |
12406 |
# original and so on. Autoconf is especially sensitive to this). |
12407 |
. "./$as_me.lineno" |
12408 |
# Exit status is that of the last command. |
12409 |
exit |
12410 |
} |
12411 |
|
12412 |
|
12413 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12414 |
as_dirname=dirname |
12415 |
else |
12416 |
as_dirname=false |
12417 |
fi |
12418 |
|
12419 |
ECHO_C= ECHO_N= ECHO_T= |
12420 |
case `echo -n x` in |
12421 |
-n*) |
12422 |
case `echo 'x\c'` in |
12423 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
12424 |
*) ECHO_C='\c';; |
12425 |
esac;; |
12426 |
*) |
12427 |
ECHO_N='-n';; |
12428 |
esac |
12429 |
|
12430 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
12431 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
12432 |
as_expr=expr |
12433 |
else |
12434 |
as_expr=false |
12435 |
fi |
12436 |
|
12437 |
rm -f conf$$ conf$$.exe conf$$.file |
12438 |
if test -d conf$$.dir; then |
12439 |
rm -f conf$$.dir/conf$$.file |
12440 |
else |
12441 |
rm -f conf$$.dir |
12442 |
mkdir conf$$.dir |
12443 |
fi |
12444 |
echo >conf$$.file |
12445 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
12446 |
as_ln_s='ln -s' |
12447 |
# ... but there are two gotchas: |
12448 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
12449 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
12450 |
# In both cases, we have to default to `cp -p'. |
12451 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
12452 |
as_ln_s='cp -p' |
12453 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
12454 |
as_ln_s=ln |
12455 |
else |
12456 |
as_ln_s='cp -p' |
12457 |
fi |
12458 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12459 |
rmdir conf$$.dir 2>/dev/null |
12460 |
|
12461 |
if mkdir -p . 2>/dev/null; then |
12462 |
as_mkdir_p=: |
12463 |
else |
12464 |
test -d ./-p && rmdir ./-p |
12465 |
as_mkdir_p=false |
12466 |
fi |
12467 |
|
12468 |
# Find out whether ``test -x'' works. Don't use a zero-byte file, as |
12469 |
# systems may use methods other than mode bits to determine executability. |
12470 |
cat >conf$$.file <<_ASEOF |
12471 |
#! /bin/sh |
12472 |
exit 0 |
12473 |
_ASEOF |
12474 |
chmod +x conf$$.file |
12475 |
if test -x conf$$.file >/dev/null 2>&1; then |
12476 |
as_executable_p="test -x" |
12477 |
else |
12478 |
as_executable_p=: |
12479 |
fi |
12480 |
rm -f conf$$.file |
12481 |
|
12482 |
# Sed expression to map a string onto a valid CPP name. |
12483 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
12484 |
|
12485 |
# Sed expression to map a string onto a valid variable name. |
12486 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
12487 |
|
12488 |
|
12489 |
exec 6>&1 |
12490 |
|
12491 |
# Save the log message, to keep $[0] and so on meaningful, and to |
12492 |
# report actual input values of CONFIG_FILES etc. instead of their |
12493 |
# values after options handling. |
12494 |
ac_log=" |
12495 |
This file was extended by ircd-hybrid $as_me 7.2.2, which was |
12496 |
generated by GNU Autoconf 2.60. Invocation command line was |
12497 |
|
12498 |
CONFIG_FILES = $CONFIG_FILES |
12499 |
CONFIG_HEADERS = $CONFIG_HEADERS |
12500 |
CONFIG_LINKS = $CONFIG_LINKS |
12501 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
12502 |
$ $0 $@ |
12503 |
|
12504 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12505 |
" |
12506 |
|
12507 |
_ACEOF |
12508 |
|
12509 |
cat >>$CONFIG_STATUS <<_ACEOF |
12510 |
# Files that config.status was made for. |
12511 |
config_files="$ac_config_files" |
12512 |
config_headers="$ac_config_headers" |
12513 |
|
12514 |
_ACEOF |
12515 |
|
12516 |
cat >>$CONFIG_STATUS <<\_ACEOF |
12517 |
ac_cs_usage="\ |
12518 |
\`$as_me' instantiates files from templates according to the |
12519 |
current configuration. |
12520 |
|
12521 |
Usage: $0 [OPTIONS] [FILE]... |
12522 |
|
12523 |
-h, --help print this help, then exit |
12524 |
-V, --version print version number, then exit |
12525 |
-q, --quiet do not print progress messages |
12526 |
-d, --debug don't remove temporary files |
12527 |
--recheck update $as_me by reconfiguring in the same conditions |
12528 |
--file=FILE[:TEMPLATE] |
12529 |
instantiate the configuration file FILE |
12530 |
--header=FILE[:TEMPLATE] |
12531 |
instantiate the configuration header FILE |
12532 |
|
12533 |
Configuration files: |
12534 |
$config_files |
12535 |
|
12536 |
Configuration headers: |
12537 |
$config_headers |
12538 |
|
12539 |
Report bugs to <bug-autoconf@gnu.org>." |
12540 |
|
12541 |
_ACEOF |
12542 |
cat >>$CONFIG_STATUS <<_ACEOF |
12543 |
ac_cs_version="\\ |
12544 |
ircd-hybrid config.status 7.2.2 |
12545 |
configured by $0, generated by GNU Autoconf 2.60, |
12546 |
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
12547 |
|
12548 |
Copyright (C) 2006 Free Software Foundation, Inc. |
12549 |
This config.status script is free software; the Free Software Foundation |
12550 |
gives unlimited permission to copy, distribute and modify it." |
12551 |
|
12552 |
ac_pwd='$ac_pwd' |
12553 |
srcdir='$srcdir' |
12554 |
INSTALL='$INSTALL' |
12555 |
_ACEOF |
12556 |
|
12557 |
cat >>$CONFIG_STATUS <<\_ACEOF |
12558 |
# If no file are specified by the user, then we need to provide default |
12559 |
# value. By we need to know if files were specified by the user. |
12560 |
ac_need_defaults=: |
12561 |
while test $# != 0 |
12562 |
do |
12563 |
case $1 in |
12564 |
--*=*) |
12565 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12566 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
12567 |
ac_shift=: |
12568 |
;; |
12569 |
*) |
12570 |
ac_option=$1 |
12571 |
ac_optarg=$2 |
12572 |
ac_shift=shift |
12573 |
;; |
12574 |
esac |
12575 |
|
12576 |
case $ac_option in |
12577 |
# Handling of the options. |
12578 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12579 |
ac_cs_recheck=: ;; |
12580 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
12581 |
echo "$ac_cs_version"; exit ;; |
12582 |
--debug | --debu | --deb | --de | --d | -d ) |
12583 |
debug=: ;; |
12584 |
--file | --fil | --fi | --f ) |
12585 |
$ac_shift |
12586 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
12587 |
ac_need_defaults=false;; |
12588 |
--header | --heade | --head | --hea ) |
12589 |
$ac_shift |
12590 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
12591 |
ac_need_defaults=false;; |
12592 |
--he | --h) |
12593 |
# Conflict between --help and --header |
12594 |
{ echo "$as_me: error: ambiguous option: $1 |
12595 |
Try \`$0 --help' for more information." >&2 |
12596 |
{ (exit 1); exit 1; }; };; |
12597 |
--help | --hel | -h ) |
12598 |
echo "$ac_cs_usage"; exit ;; |
12599 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12600 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
12601 |
ac_cs_silent=: ;; |
12602 |
|
12603 |
# This is an error. |
12604 |
-*) { echo "$as_me: error: unrecognized option: $1 |
12605 |
Try \`$0 --help' for more information." >&2 |
12606 |
{ (exit 1); exit 1; }; } ;; |
12607 |
|
12608 |
*) ac_config_targets="$ac_config_targets $1" |
12609 |
ac_need_defaults=false ;; |
12610 |
|
12611 |
esac |
12612 |
shift |
12613 |
done |
12614 |
|
12615 |
ac_configure_extra_args= |
12616 |
|
12617 |
if $ac_cs_silent; then |
12618 |
exec 6>/dev/null |
12619 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
12620 |
fi |
12621 |
|
12622 |
_ACEOF |
12623 |
cat >>$CONFIG_STATUS <<_ACEOF |
12624 |
if \$ac_cs_recheck; then |
12625 |
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
12626 |
CONFIG_SHELL=$SHELL |
12627 |
export CONFIG_SHELL |
12628 |
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
12629 |
fi |
12630 |
|
12631 |
_ACEOF |
12632 |
cat >>$CONFIG_STATUS <<\_ACEOF |
12633 |
exec 5>>config.log |
12634 |
{ |
12635 |
echo |
12636 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
12637 |
## Running $as_me. ## |
12638 |
_ASBOX |
12639 |
echo "$ac_log" |
12640 |
} >&5 |
12641 |
|
12642 |
_ACEOF |
12643 |
cat >>$CONFIG_STATUS <<_ACEOF |
12644 |
_ACEOF |
12645 |
|
12646 |
cat >>$CONFIG_STATUS <<\_ACEOF |
12647 |
|
12648 |
# Handling of arguments. |
12649 |
for ac_config_target in $ac_config_targets |
12650 |
do |
12651 |
case $ac_config_target in |
12652 |
"include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; |
12653 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12654 |
"etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; |
12655 |
"servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;; |
12656 |
"contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; |
12657 |
"contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;; |
12658 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12659 |
"messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;; |
12660 |
"modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
12661 |
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
12662 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12663 |
"help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; |
12664 |
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
12665 |
"lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES lib/pcre/Makefile" ;; |
12666 |
|
12667 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12668 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12669 |
{ (exit 1); exit 1; }; };; |
12670 |
esac |
12671 |
done |
12672 |
|
12673 |
|
12674 |
# If the user did not use the arguments to specify the items to instantiate, |
12675 |
# then the envvar interface is used. Set only those that are not. |
12676 |
# We use the long form for the default assignment because of an extremely |
12677 |
# bizarre bug on SunOS 4.1.3. |
12678 |
if $ac_need_defaults; then |
12679 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
12680 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
12681 |
fi |
12682 |
|
12683 |
# Have a temporary directory for convenience. Make it in the build tree |
12684 |
# simply because there is no reason against having it here, and in addition, |
12685 |
# creating and moving files from /tmp can sometimes cause problems. |
12686 |
# Hook for its removal unless debugging. |
12687 |
# Note that there is a small window in which the directory will not be cleaned: |
12688 |
# after its creation but before its name has been assigned to `$tmp'. |
12689 |
$debug || |
12690 |
{ |
12691 |
tmp= |
12692 |
trap 'exit_status=$? |
12693 |
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
12694 |
' 0 |
12695 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
12696 |
} |
12697 |
# Create a (secure) tmp directory for tmp files. |
12698 |
|
12699 |
{ |
12700 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
12701 |
test -n "$tmp" && test -d "$tmp" |
12702 |
} || |
12703 |
{ |
12704 |
tmp=./conf$$-$RANDOM |
12705 |
(umask 077 && mkdir "$tmp") |
12706 |
} || |
12707 |
{ |
12708 |
echo "$me: cannot create a temporary directory in ." >&2 |
12709 |
{ (exit 1); exit 1; } |
12710 |
} |
12711 |
|
12712 |
# |
12713 |
# Set up the sed scripts for CONFIG_FILES section. |
12714 |
# |
12715 |
|
12716 |
# No need to generate the scripts if there are no CONFIG_FILES. |
12717 |
# This happens for instance when ./config.status config.h |
12718 |
if test -n "$CONFIG_FILES"; then |
12719 |
|
12720 |
_ACEOF |
12721 |
|
12722 |
|
12723 |
|
12724 |
ac_delim='%!_!# ' |
12725 |
for ac_last_try in false false false false false :; do |
12726 |
cat >conf$$subs.sed <<_ACEOF |
12727 |
SHELL!$SHELL$ac_delim |
12728 |
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
12729 |
PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
12730 |
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
12731 |
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
12732 |
PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
12733 |
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
12734 |
exec_prefix!$exec_prefix$ac_delim |
12735 |
prefix!$prefix$ac_delim |
12736 |
program_transform_name!$program_transform_name$ac_delim |
12737 |
bindir!$bindir$ac_delim |
12738 |
sbindir!$sbindir$ac_delim |
12739 |
libexecdir!$libexecdir$ac_delim |
12740 |
datarootdir!$datarootdir$ac_delim |
12741 |
datadir!$datadir$ac_delim |
12742 |
sysconfdir!$sysconfdir$ac_delim |
12743 |
sharedstatedir!$sharedstatedir$ac_delim |
12744 |
localstatedir!$localstatedir$ac_delim |
12745 |
includedir!$includedir$ac_delim |
12746 |
oldincludedir!$oldincludedir$ac_delim |
12747 |
docdir!$docdir$ac_delim |
12748 |
infodir!$infodir$ac_delim |
12749 |
htmldir!$htmldir$ac_delim |
12750 |
dvidir!$dvidir$ac_delim |
12751 |
pdfdir!$pdfdir$ac_delim |
12752 |
psdir!$psdir$ac_delim |
12753 |
libdir!$libdir$ac_delim |
12754 |
localedir!$localedir$ac_delim |
12755 |
mandir!$mandir$ac_delim |
12756 |
DEFS!$DEFS$ac_delim |
12757 |
ECHO_C!$ECHO_C$ac_delim |
12758 |
ECHO_N!$ECHO_N$ac_delim |
12759 |
ECHO_T!$ECHO_T$ac_delim |
12760 |
LIBS!$LIBS$ac_delim |
12761 |
build_alias!$build_alias$ac_delim |
12762 |
host_alias!$host_alias$ac_delim |
12763 |
target_alias!$target_alias$ac_delim |
12764 |
CC!$CC$ac_delim |
12765 |
CFLAGS!$CFLAGS$ac_delim |
12766 |
LDFLAGS!$LDFLAGS$ac_delim |
12767 |
CPPFLAGS!$CPPFLAGS$ac_delim |
12768 |
ac_ct_CC!$ac_ct_CC$ac_delim |
12769 |
EXEEXT!$EXEEXT$ac_delim |
12770 |
OBJEXT!$OBJEXT$ac_delim |
12771 |
MKDEP!$MKDEP$ac_delim |
12772 |
MAKEDEPEND!$MAKEDEPEND$ac_delim |
12773 |
STDOUT!$STDOUT$ac_delim |
12774 |
CPP!$CPP$ac_delim |
12775 |
GREP!$GREP$ac_delim |
12776 |
EGREP!$EGREP$ac_delim |
12777 |
SET_MAKE!$SET_MAKE$ac_delim |
12778 |
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
12779 |
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12780 |
INSTALL_DATA!$INSTALL_DATA$ac_delim |
12781 |
RM!$RM$ac_delim |
12782 |
CP!$CP$ac_delim |
12783 |
MV!$MV$ac_delim |
12784 |
LN!$LN$ac_delim |
12785 |
SED!$SED$ac_delim |
12786 |
AR!$AR$ac_delim |
12787 |
LD!$LD$ac_delim |
12788 |
TEST!$TEST$ac_delim |
12789 |
INET_MISC!$INET_MISC$ac_delim |
12790 |
CRYPT_C!$CRYPT_C$ac_delim |
12791 |
CRYPT_LIB!$CRYPT_LIB$ac_delim |
12792 |
SNPRINTF_C!$SNPRINTF_C$ac_delim |
12793 |
ENCSPEED!$ENCSPEED$ac_delim |
12794 |
ZLIB_LD!$ZLIB_LD$ac_delim |
12795 |
SELECT_TYPE!$SELECT_TYPE$ac_delim |
12796 |
CLOBBER!$CLOBBER$ac_delim |
12797 |
BALLOC_C!$BALLOC_C$ac_delim |
12798 |
EXAMPLE_CONF!$EXAMPLE_CONF$ac_delim |
12799 |
MODULES_LIBS!$MODULES_LIBS$ac_delim |
12800 |
MOD_TARGET!$MOD_TARGET$ac_delim |
12801 |
SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim |
12802 |
SSL_INCLUDES!$SSL_INCLUDES$ac_delim |
12803 |
SSL_LIBS!$SSL_LIBS$ac_delim |
12804 |
PICFLAGS!$PICFLAGS$ac_delim |
12805 |
IRC_CFLAGS!$IRC_CFLAGS$ac_delim |
12806 |
SEDOBJ!$SEDOBJ$ac_delim |
12807 |
DYNLINK_C!$DYNLINK_C$ac_delim |
12808 |
LIBOBJS!$LIBOBJS$ac_delim |
12809 |
LTLIBOBJS!$LTLIBOBJS$ac_delim |
12810 |
_ACEOF |
12811 |
|
12812 |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then |
12813 |
break |
12814 |
elif $ac_last_try; then |
12815 |
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12816 |
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12817 |
{ (exit 1); exit 1; }; } |
12818 |
else |
12819 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
12820 |
fi |
12821 |
done |
12822 |
|
12823 |
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
12824 |
if test -n "$ac_eof"; then |
12825 |
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
12826 |
ac_eof=`expr $ac_eof + 1` |
12827 |
fi |
12828 |
|
12829 |
cat >>$CONFIG_STATUS <<_ACEOF |
12830 |
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12831 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12832 |
_ACEOF |
12833 |
sed ' |
12834 |
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12835 |
s/^/s,@/; s/!/@,|#_!!_#|/ |
12836 |
:n |
12837 |
t n |
12838 |
s/'"$ac_delim"'$/,g/; t |
12839 |
s/$/\\/; p |
12840 |
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
12841 |
' >>$CONFIG_STATUS <conf$$subs.sed |
12842 |
rm -f conf$$subs.sed |
12843 |
cat >>$CONFIG_STATUS <<_ACEOF |
12844 |
:end |
12845 |
s/|#_!!_#|//g |
12846 |
CEOF$ac_eof |
12847 |
_ACEOF |
12848 |
|
12849 |
|
12850 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
12851 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
12852 |
# trailing colons and then remove the whole line if VPATH becomes empty |
12853 |
# (actually we leave an empty line to preserve line numbers). |
12854 |
if test "x$srcdir" = x.; then |
12855 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
12856 |
s/:*\$(srcdir):*/:/ |
12857 |
s/:*\${srcdir}:*/:/ |
12858 |
s/:*@srcdir@:*/:/ |
12859 |
s/^\([^=]*=[ ]*\):*/\1/ |
12860 |
s/:*$// |
12861 |
s/^[^=]*=[ ]*$// |
12862 |
}' |
12863 |
fi |
12864 |
|
12865 |
cat >>$CONFIG_STATUS <<\_ACEOF |
12866 |
fi # test -n "$CONFIG_FILES" |
12867 |
|
12868 |
|
12869 |
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
12870 |
do |
12871 |
case $ac_tag in |
12872 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
12873 |
esac |
12874 |
case $ac_mode$ac_tag in |
12875 |
:[FHL]*:*);; |
12876 |
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
12877 |
echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
12878 |
{ (exit 1); exit 1; }; };; |
12879 |
:[FH]-) ac_tag=-:-;; |
12880 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
12881 |
esac |
12882 |
ac_save_IFS=$IFS |
12883 |
IFS=: |
12884 |
set x $ac_tag |
12885 |
IFS=$ac_save_IFS |
12886 |
shift |
12887 |
ac_file=$1 |
12888 |
shift |
12889 |
|
12890 |
case $ac_mode in |
12891 |
:L) ac_source=$1;; |
12892 |
:[FH]) |
12893 |
ac_file_inputs= |
12894 |
for ac_f |
12895 |
do |
12896 |
case $ac_f in |
12897 |
-) ac_f="$tmp/stdin";; |
12898 |
*) # Look for the file first in the build tree, then in the source tree |
12899 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
12900 |
# because $ac_f cannot contain `:'. |
12901 |
test -f "$ac_f" || |
12902 |
case $ac_f in |
12903 |
[\\/$]*) false;; |
12904 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
12905 |
esac || |
12906 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
12907 |
echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
12908 |
{ (exit 1); exit 1; }; };; |
12909 |
esac |
12910 |
ac_file_inputs="$ac_file_inputs $ac_f" |
12911 |
done |
12912 |
|
12913 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
12914 |
# use $as_me), people would be surprised to read: |
12915 |
# /* config.h. Generated by config.status. */ |
12916 |
configure_input="Generated from "`IFS=: |
12917 |
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
12918 |
if test x"$ac_file" != x-; then |
12919 |
configure_input="$ac_file. $configure_input" |
12920 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
12921 |
echo "$as_me: creating $ac_file" >&6;} |
12922 |
fi |
12923 |
|
12924 |
case $ac_tag in |
12925 |
*:-:* | *:-) cat >"$tmp/stdin";; |
12926 |
esac |
12927 |
;; |
12928 |
esac |
12929 |
|
12930 |
ac_dir=`$as_dirname -- "$ac_file" || |
12931 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12932 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
12933 |
X"$ac_file" : 'X\(//\)$' \| \ |
12934 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
12935 |
echo X"$ac_file" | |
12936 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12937 |
s//\1/ |
12938 |
q |
12939 |
} |
12940 |
/^X\(\/\/\)[^/].*/{ |
12941 |
s//\1/ |
12942 |
q |
12943 |
} |
12944 |
/^X\(\/\/\)$/{ |
12945 |
s//\1/ |
12946 |
q |
12947 |
} |
12948 |
/^X\(\/\).*/{ |
12949 |
s//\1/ |
12950 |
q |
12951 |
} |
12952 |
s/.*/./; q'` |
12953 |
{ as_dir="$ac_dir" |
12954 |
case $as_dir in #( |
12955 |
-*) as_dir=./$as_dir;; |
12956 |
esac |
12957 |
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
12958 |
as_dirs= |
12959 |
while :; do |
12960 |
case $as_dir in #( |
12961 |
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
12962 |
*) as_qdir=$as_dir;; |
12963 |
esac |
12964 |
as_dirs="'$as_qdir' $as_dirs" |
12965 |
as_dir=`$as_dirname -- "$as_dir" || |
12966 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12967 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
12968 |
X"$as_dir" : 'X\(//\)$' \| \ |
12969 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
12970 |
echo X"$as_dir" | |
12971 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12972 |
s//\1/ |
12973 |
q |
12974 |
} |
12975 |
/^X\(\/\/\)[^/].*/{ |
12976 |
s//\1/ |
12977 |
q |
12978 |
} |
12979 |
/^X\(\/\/\)$/{ |
12980 |
s//\1/ |
12981 |
q |
12982 |
} |
12983 |
/^X\(\/\).*/{ |
12984 |
s//\1/ |
12985 |
q |
12986 |
} |
12987 |
s/.*/./; q'` |
12988 |
test -d "$as_dir" && break |
12989 |
done |
12990 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
12991 |
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
12992 |
echo "$as_me: error: cannot create directory $as_dir" >&2;} |
12993 |
{ (exit 1); exit 1; }; }; } |
12994 |
ac_builddir=. |
12995 |
|
12996 |
case "$ac_dir" in |
12997 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
12998 |
*) |
12999 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
13000 |
# A ".." for each directory in $ac_dir_suffix. |
13001 |
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
13002 |
case $ac_top_builddir_sub in |
13003 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
13004 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
13005 |
esac ;; |
13006 |
esac |
13007 |
ac_abs_top_builddir=$ac_pwd |
13008 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
13009 |
# for backward compatibility: |
13010 |
ac_top_builddir=$ac_top_build_prefix |
13011 |
|
13012 |
case $srcdir in |
13013 |
.) # We are building in place. |
13014 |
ac_srcdir=. |
13015 |
ac_top_srcdir=$ac_top_builddir_sub |
13016 |
ac_abs_top_srcdir=$ac_pwd ;; |
13017 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
13018 |
ac_srcdir=$srcdir$ac_dir_suffix; |
13019 |
ac_top_srcdir=$srcdir |
13020 |
ac_abs_top_srcdir=$srcdir ;; |
13021 |
*) # Relative name. |
13022 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
13023 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
13024 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
13025 |
esac |
13026 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
13027 |
|
13028 |
|
13029 |
case $ac_mode in |
13030 |
:F) |
13031 |
# |
13032 |
# CONFIG_FILE |
13033 |
# |
13034 |
|
13035 |
case $INSTALL in |
13036 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
13037 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
13038 |
esac |
13039 |
_ACEOF |
13040 |
|
13041 |
cat >>$CONFIG_STATUS <<\_ACEOF |
13042 |
# If the template does not know about datarootdir, expand it. |
13043 |
# FIXME: This hack should be removed a few years after 2.60. |
13044 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
13045 |
|
13046 |
case `sed -n '/datarootdir/ { |
13047 |
p |
13048 |
q |
13049 |
} |
13050 |
/@datadir@/p |
13051 |
/@docdir@/p |
13052 |
/@infodir@/p |
13053 |
/@localedir@/p |
13054 |
/@mandir@/p |
13055 |
' $ac_file_inputs` in |
13056 |
*datarootdir*) ac_datarootdir_seen=yes;; |
13057 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
13058 |
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
13059 |
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
13060 |
_ACEOF |
13061 |
cat >>$CONFIG_STATUS <<_ACEOF |
13062 |
ac_datarootdir_hack=' |
13063 |
s&@datadir@&$datadir&g |
13064 |
s&@docdir@&$docdir&g |
13065 |
s&@infodir@&$infodir&g |
13066 |
s&@localedir@&$localedir&g |
13067 |
s&@mandir@&$mandir&g |
13068 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
13069 |
esac |
13070 |
_ACEOF |
13071 |
|
13072 |
# Neutralize VPATH when `$srcdir' = `.'. |
13073 |
# Shell code in configure.ac might set extrasub. |
13074 |
# FIXME: do we really want to maintain this feature? |
13075 |
cat >>$CONFIG_STATUS <<_ACEOF |
13076 |
sed "$ac_vpsub |
13077 |
$extrasub |
13078 |
_ACEOF |
13079 |
cat >>$CONFIG_STATUS <<\_ACEOF |
13080 |
:t |
13081 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
13082 |
s&@configure_input@&$configure_input&;t t |
13083 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
13084 |
s&@srcdir@&$ac_srcdir&;t t |
13085 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
13086 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
13087 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
13088 |
s&@builddir@&$ac_builddir&;t t |
13089 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
13090 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
13091 |
s&@INSTALL@&$ac_INSTALL&;t t |
13092 |
$ac_datarootdir_hack |
13093 |
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
13094 |
|
13095 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
13096 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
13097 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
13098 |
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
13099 |
which seems to be undefined. Please make sure it is defined." >&5 |
13100 |
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
13101 |
which seems to be undefined. Please make sure it is defined." >&2;} |
13102 |
|
13103 |
rm -f "$tmp/stdin" |
13104 |
case $ac_file in |
13105 |
-) cat "$tmp/out"; rm -f "$tmp/out";; |
13106 |
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
13107 |
esac |
13108 |
;; |
13109 |
:H) |
13110 |
# |
13111 |
# CONFIG_HEADER |
13112 |
# |
13113 |
_ACEOF |
13114 |
|
13115 |
# Transform confdefs.h into a sed script `conftest.defines', that |
13116 |
# substitutes the proper values into config.h.in to produce config.h. |
13117 |
rm -f conftest.defines conftest.tail |
13118 |
# First, append a space to every undef/define line, to ease matching. |
13119 |
echo 's/$/ /' >conftest.defines |
13120 |
# Then, protect against being on the right side of a sed subst, or in |
13121 |
# an unquoted here document, in config.status. If some macros were |
13122 |
# called several times there might be several #defines for the same |
13123 |
# symbol, which is useless. But do not sort them, since the last |
13124 |
# AC_DEFINE must be honored. |
13125 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
13126 |
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
13127 |
# NAME is the cpp macro being defined, VALUE is the value it is being given. |
13128 |
# PARAMS is the parameter list in the macro definition--in most cases, it's |
13129 |
# just an empty string. |
13130 |
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
13131 |
ac_dB='\\)[ (].*,\\1define\\2' |
13132 |
ac_dC=' ' |
13133 |
ac_dD=' ,' |
13134 |
|
13135 |
uniq confdefs.h | |
13136 |
sed -n ' |
13137 |
t rset |
13138 |
:rset |
13139 |
s/^[ ]*#[ ]*define[ ][ ]*// |
13140 |
t ok |
13141 |
d |
13142 |
:ok |
13143 |
s/[\\&,]/\\&/g |
13144 |
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
13145 |
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
13146 |
' >>conftest.defines |
13147 |
|
13148 |
# Remove the space that was appended to ease matching. |
13149 |
# Then replace #undef with comments. This is necessary, for |
13150 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
13151 |
# on some systems where configure will not decide to define it. |
13152 |
# (The regexp can be short, since the line contains either #define or #undef.) |
13153 |
echo 's/ $// |
13154 |
s,^[ #]*u.*,/* & */,' >>conftest.defines |
13155 |
|
13156 |
# Break up conftest.defines: |
13157 |
ac_max_sed_lines=50 |
13158 |
|
13159 |
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
13160 |
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
13161 |
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
13162 |
# et cetera. |
13163 |
ac_in='$ac_file_inputs' |
13164 |
ac_out='"$tmp/out1"' |
13165 |
ac_nxt='"$tmp/out2"' |
13166 |
|
13167 |
while : |
13168 |
do |
13169 |
# Write a here document: |
13170 |
cat >>$CONFIG_STATUS <<_ACEOF |
13171 |
# First, check the format of the line: |
13172 |
cat >"\$tmp/defines.sed" <<\\CEOF |
13173 |
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
13174 |
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
13175 |
b |
13176 |
:def |
13177 |
_ACEOF |
13178 |
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
13179 |
echo 'CEOF |
13180 |
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
13181 |
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
13182 |
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
13183 |
grep . conftest.tail >/dev/null || break |
13184 |
rm -f conftest.defines |
13185 |
mv conftest.tail conftest.defines |
13186 |
done |
13187 |
rm -f conftest.defines conftest.tail |
13188 |
|
13189 |
echo "ac_result=$ac_in" >>$CONFIG_STATUS |
13190 |
cat >>$CONFIG_STATUS <<\_ACEOF |
13191 |
if test x"$ac_file" != x-; then |
13192 |
echo "/* $configure_input */" >"$tmp/config.h" |
13193 |
cat "$ac_result" >>"$tmp/config.h" |
13194 |
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
13195 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
13196 |
echo "$as_me: $ac_file is unchanged" >&6;} |
13197 |
else |
13198 |
rm -f $ac_file |
13199 |
mv "$tmp/config.h" $ac_file |
13200 |
fi |
13201 |
else |
13202 |
echo "/* $configure_input */" |
13203 |
cat "$ac_result" |
13204 |
fi |
13205 |
rm -f "$tmp/out12" |
13206 |
;; |
13207 |
|
13208 |
|
13209 |
esac |
13210 |
|
13211 |
done # for ac_tag |
13212 |
|
13213 |
|
13214 |
{ (exit 0); exit 0; } |
13215 |
_ACEOF |
13216 |
chmod +x $CONFIG_STATUS |
13217 |
ac_clean_files=$ac_clean_files_save |
13218 |
|
13219 |
|
13220 |
# configure is writing to config.log, and then calls config.status. |
13221 |
# config.status does its own redirection, appending to config.log. |
13222 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
13223 |
# by configure, so config.status won't be able to write to it; its |
13224 |
# output is simply discarded. So we exec the FD to /dev/null, |
13225 |
# effectively closing config.log, so it can be properly (re)opened and |
13226 |
# appended to by config.status. When coming back to configure, we |
13227 |
# need to make the FD available again. |
13228 |
if test "$no_create" != yes; then |
13229 |
ac_cs_success=: |
13230 |
ac_config_status_args= |
13231 |
test "$silent" = yes && |
13232 |
ac_config_status_args="$ac_config_status_args --quiet" |
13233 |
exec 5>/dev/null |
13234 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
13235 |
exec 5>>config.log |
13236 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
13237 |
# would make configure fail if this is the last instruction. |
13238 |
$ac_cs_success || { (exit 1); exit 1; } |
13239 |
fi |
13240 |
|
13241 |
|
13242 |
rm -f src/.depend modules/.depend servlink/.depend contrib/.depend lib/pcre/.depend |
13243 |
|
13244 |
|
13245 |
echo |
13246 |
echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION" |
13247 |
echo |
13248 |
|
13249 |
echo "Installing into: $prefix" |
13250 |
|
13251 |
echo "Ziplinks ................ $zlib" |
13252 |
|
13253 |
if test ! -z "$cf_openssl_ciphers"; then |
13254 |
tmpresult="yes - ${cf_openssl_ciphers}" |
13255 |
else |
13256 |
tmpresult=no |
13257 |
fi |
13258 |
|
13259 |
echo "OpenSSL ................. $tmpresult" |
13260 |
|
13261 |
if test "$shared_modules" = yes; then |
13262 |
tmpresult=shared |
13263 |
else |
13264 |
tmpresult=static |
13265 |
fi |
13266 |
|
13267 |
echo "Modules ................. $tmpresult" |
13268 |
echo "IPv6 support ............ $have_v6" |
13269 |
echo "Net I/O implementation .. $SELECT_TYPE" |
13270 |
|
13271 |
if test "$efnet" = "yes"; then |
13272 |
tmpresult="yes (use example.efnet.conf)" |
13273 |
else |
13274 |
tmpresult="no (use example.conf)" |
13275 |
fi |
13276 |
|
13277 |
echo "EFnet server ............ $tmpresult" |
13278 |
echo "Halfops support ......... $halfops" |
13279 |
echo "Small network ........... $small_net" |
13280 |
echo "G-Line voting ........... $gline_voting" |
13281 |
echo |
13282 |
echo "Configured limits:" |
13283 |
echo "NICKLEN ................. $NICKLEN" |
13284 |
echo "TOPICLEN ................ $TOPICLEN" |
13285 |
echo |