]> jfr.im git - irc/rqf/shadowircd.git/blob - configure
Remove redundant prototypes in src/ircd_lexer.l.
[irc/rqf/shadowircd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for shadowircd 6.2.0.
4 #
5 # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
242 $0: including any error possibly output before this
243 $0: message. Then install a modern shell, or manually run
244 $0: the script under such a shell if you do have one."
245 fi
246 exit 1
247 fi
248 fi
249 fi
250 SHELL=${CONFIG_SHELL-/bin/sh}
251 export SHELL
252 # Unset more variables known to interfere with behavior of common tools.
253 CLICOLOR_FORCE= GREP_OPTIONS=
254 unset CLICOLOR_FORCE GREP_OPTIONS
255
256 ## --------------------- ##
257 ## M4sh Shell Functions. ##
258 ## --------------------- ##
259 # as_fn_unset VAR
260 # ---------------
261 # Portably unset VAR.
262 as_fn_unset ()
263 {
264 { eval $1=; unset $1;}
265 }
266 as_unset=as_fn_unset
267
268 # as_fn_set_status STATUS
269 # -----------------------
270 # Set $? to STATUS, without forking.
271 as_fn_set_status ()
272 {
273 return $1
274 } # as_fn_set_status
275
276 # as_fn_exit STATUS
277 # -----------------
278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 as_fn_exit ()
280 {
281 set +e
282 as_fn_set_status $1
283 exit $1
284 } # as_fn_exit
285
286 # as_fn_mkdir_p
287 # -------------
288 # Create "$as_dir" as a directory, including parents if necessary.
289 as_fn_mkdir_p ()
290 {
291
292 case $as_dir in #(
293 -*) as_dir=./$as_dir;;
294 esac
295 test -d "$as_dir" || eval $as_mkdir_p || {
296 as_dirs=
297 while :; do
298 case $as_dir in #(
299 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 *) as_qdir=$as_dir;;
301 esac
302 as_dirs="'$as_qdir' $as_dirs"
303 as_dir=`$as_dirname -- "$as_dir" ||
304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308 $as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)[^/].*/{
314 s//\1/
315 q
316 }
317 /^X\(\/\/\)$/{
318 s//\1/
319 q
320 }
321 /^X\(\/\).*/{
322 s//\1/
323 q
324 }
325 s/.*/./; q'`
326 test -d "$as_dir" && break
327 done
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
329 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330
331
332 } # as_fn_mkdir_p
333 # as_fn_append VAR VALUE
334 # ----------------------
335 # Append the text in VALUE to the end of the definition contained in VAR. Take
336 # advantage of any shell optimizations that allow amortized linear growth over
337 # repeated appends, instead of the typical quadratic growth present in naive
338 # implementations.
339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
340 eval 'as_fn_append ()
341 {
342 eval $1+=\$2
343 }'
344 else
345 as_fn_append ()
346 {
347 eval $1=\$$1\$2
348 }
349 fi # as_fn_append
350
351 # as_fn_arith ARG...
352 # ------------------
353 # Perform arithmetic evaluation on the ARGs, and store the result in the
354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
355 # must be portable across $(()) and expr.
356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 eval 'as_fn_arith ()
358 {
359 as_val=$(( $* ))
360 }'
361 else
362 as_fn_arith ()
363 {
364 as_val=`expr "$@" || test $? -eq 1`
365 }
366 fi # as_fn_arith
367
368
369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
370 # ----------------------------------------
371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
373 # script with STATUS, using 1 if that was 0.
374 as_fn_error ()
375 {
376 as_status=$1; test $as_status -eq 0 && as_status=1
377 if test "$4"; then
378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
380 fi
381 $as_echo "$as_me: error: $2" >&2
382 as_fn_exit $as_status
383 } # as_fn_error
384
385 if expr a : '\(a\)' >/dev/null 2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
387 as_expr=expr
388 else
389 as_expr=false
390 fi
391
392 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
393 as_basename=basename
394 else
395 as_basename=false
396 fi
397
398 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_dirname=dirname
400 else
401 as_dirname=false
402 fi
403
404 as_me=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
408 $as_echo X/"$0" |
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\/\)$/{
414 s//\1/
415 q
416 }
417 /^X\/\(\/\).*/{
418 s//\1/
419 q
420 }
421 s/.*/./; q'`
422
423 # Avoid depending upon Character Ranges.
424 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
425 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
427 as_cr_digits='0123456789'
428 as_cr_alnum=$as_cr_Letters$as_cr_digits
429
430
431 as_lineno_1=$LINENO as_lineno_1a=$LINENO
432 as_lineno_2=$LINENO as_lineno_2a=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
453
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
460 }
461
462 ECHO_C= ECHO_N= ECHO_T=
463 case `echo -n x` in #(((((
464 -n*)
465 case `echo 'xy\c'` in
466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
467 xy) ECHO_C='\c';;
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 ECHO_T=' ';;
470 esac;;
471 *)
472 ECHO_N='-n';;
473 esac
474
475 rm -f conf$$ conf$$.exe conf$$.file
476 if test -d conf$$.dir; then
477 rm -f conf$$.dir/conf$$.file
478 else
479 rm -f conf$$.dir
480 mkdir conf$$.dir 2>/dev/null
481 fi
482 if (echo >conf$$.file) 2>/dev/null; then
483 if ln -s conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s='ln -s'
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
490 as_ln_s='cp -p'
491 elif ln conf$$.file conf$$ 2>/dev/null; then
492 as_ln_s=ln
493 else
494 as_ln_s='cp -p'
495 fi
496 else
497 as_ln_s='cp -p'
498 fi
499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
500 rmdir conf$$.dir 2>/dev/null
501
502 if mkdir -p . 2>/dev/null; then
503 as_mkdir_p='mkdir -p "$as_dir"'
504 else
505 test -d ./-p && rmdir ./-p
506 as_mkdir_p=false
507 fi
508
509 if test -x / >/dev/null 2>&1; then
510 as_test_x='test -x'
511 else
512 if ls -dL / >/dev/null 2>&1; then
513 as_ls_L_option=L
514 else
515 as_ls_L_option=
516 fi
517 as_test_x='
518 eval sh -c '\''
519 if test -d "$1"; then
520 test -d "$1/.";
521 else
522 case $1 in #(
523 -*)set "./$1";;
524 esac;
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
527 '\'' sh
528 '
529 fi
530 as_executable_p=$as_test_x
531
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
539 test -n "$DJDIR" || exec 7<&0 </dev/null
540 exec 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558
559 # Identity of this package.
560 PACKAGE_NAME='shadowircd'
561 PACKAGE_TARNAME='shadowircd'
562 PACKAGE_VERSION='6.2.0'
563 PACKAGE_STRING='shadowircd 6.2.0'
564 PACKAGE_BUGREPORT=''
565 PACKAGE_URL=''
566
567 ac_default_prefix=$HOME/ircd
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #ifdef STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # ifdef HAVE_STDLIB_H
582 # include <stdlib.h>
583 # endif
584 #endif
585 #ifdef HAVE_STRING_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 # include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #ifdef HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #ifdef HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 enable_option_checking=no
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 SEDOBJ
608 IRC_CFLAGS
609 PICFLAGS
610 SSL_LIBS
611 SSL_INCLUDES
612 SSL_SRCS_ENABLE
613 MOD_TARGET
614 MODULES_LIBS
615 SELECT_TYPE
616 moduledir
617 MODULE_DIR
618 helpdir
619 HELP_DIR
620 logdir
621 LOG_DIR
622 confdir
623 ETC_DIR
624 ZLIB_LD
625 ENCSPEED
626 ALLOCA
627 VICONF
628 CRYPT_LIB
629 LEXLIB
630 LEX_OUTPUT_ROOT
631 LEX
632 YFLAGS
633 YACC
634 TOUCH
635 RANLIB
636 LD
637 AR
638 SED
639 LN
640 MV
641 CP
642 RM
643 INSTALL_DATA
644 INSTALL_SCRIPT
645 INSTALL_PROGRAM
646 SET_MAKE
647 STDOUT
648 MAKEDEPEND
649 MKDEP
650 subdirs
651 EGREP
652 GREP
653 CPP
654 OBJEXT
655 EXEEXT
656 ac_ct_CC
657 CPPFLAGS
658 LDFLAGS
659 CFLAGS
660 CC
661 target_alias
662 host_alias
663 build_alias
664 LIBS
665 ECHO_T
666 ECHO_N
667 ECHO_C
668 DEFS
669 mandir
670 localedir
671 libdir
672 psdir
673 pdfdir
674 dvidir
675 htmldir
676 infodir
677 docdir
678 oldincludedir
679 includedir
680 localstatedir
681 sharedstatedir
682 sysconfdir
683 datadir
684 datarootdir
685 libexecdir
686 sbindir
687 bindir
688 program_transform_name
689 prefix
690 exec_prefix
691 PACKAGE_URL
692 PACKAGE_BUGREPORT
693 PACKAGE_STRING
694 PACKAGE_VERSION
695 PACKAGE_TARNAME
696 PACKAGE_NAME
697 PATH_SEPARATOR
698 SHELL'
699 ac_subst_files=''
700 ac_user_opts='
701 enable_option_checking
702 enable_ipv6
703 enable_openssl
704 with_zlib_path
705 enable_zlib
706 enable_ports
707 enable_poll
708 enable_select
709 enable_kqueue
710 enable_epoll
711 with_confdir
712 with_logdir
713 with_helpdir
714 with_moduledir
715 enable_assert
716 enable_iodebug
717 enable_profile
718 enable_balloc
719 enable_small_net
720 with_nicklen
721 with_topiclen
722 enable_warnings
723 '
724 ac_precious_vars='build_alias
725 host_alias
726 target_alias
727 CC
728 CFLAGS
729 LDFLAGS
730 LIBS
731 CPPFLAGS
732 CPP
733 YACC
734 YFLAGS'
735 ac_subdirs_all='libratbox'
736
737 # Initialize some variables set by options.
738 ac_init_help=
739 ac_init_version=false
740 ac_unrecognized_opts=
741 ac_unrecognized_sep=
742 # The variables have the same names as the options, with
743 # dashes changed to underlines.
744 cache_file=/dev/null
745 exec_prefix=NONE
746 no_create=
747 no_recursion=
748 prefix=NONE
749 program_prefix=NONE
750 program_suffix=NONE
751 program_transform_name=s,x,x,
752 silent=
753 site=
754 srcdir=
755 verbose=
756 x_includes=NONE
757 x_libraries=NONE
758
759 # Installation directory options.
760 # These are left unexpanded so users can "make install exec_prefix=/foo"
761 # and all the variables that are supposed to be based on exec_prefix
762 # by default will actually change.
763 # Use braces instead of parens because sh, perl, etc. also accept them.
764 # (The list follows the same order as the GNU Coding Standards.)
765 bindir='${exec_prefix}/bin'
766 sbindir='${exec_prefix}/sbin'
767 libexecdir='${exec_prefix}/libexec'
768 datarootdir='${prefix}/share'
769 datadir='${datarootdir}'
770 sysconfdir='${prefix}/etc'
771 sharedstatedir='${prefix}/com'
772 localstatedir='${prefix}/var'
773 includedir='${prefix}/include'
774 oldincludedir='/usr/include'
775 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
776 infodir='${datarootdir}/info'
777 htmldir='${docdir}'
778 dvidir='${docdir}'
779 pdfdir='${docdir}'
780 psdir='${docdir}'
781 libdir='${exec_prefix}/lib'
782 localedir='${datarootdir}/locale'
783 mandir='${datarootdir}/man'
784
785 ac_prev=
786 ac_dashdash=
787 for ac_option
788 do
789 # If the previous option needs an argument, assign it.
790 if test -n "$ac_prev"; then
791 eval $ac_prev=\$ac_option
792 ac_prev=
793 continue
794 fi
795
796 case $ac_option in
797 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798 *=) ac_optarg= ;;
799 *) ac_optarg=yes ;;
800 esac
801
802 # Accept the important Cygnus configure options, so we can diagnose typos.
803
804 case $ac_dashdash$ac_option in
805 --)
806 ac_dashdash=yes ;;
807
808 -bindir | --bindir | --bindi | --bind | --bin | --bi)
809 ac_prev=bindir ;;
810 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
811 bindir=$ac_optarg ;;
812
813 -build | --build | --buil | --bui | --bu)
814 ac_prev=build_alias ;;
815 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
816 build_alias=$ac_optarg ;;
817
818 -cache-file | --cache-file | --cache-fil | --cache-fi \
819 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
820 ac_prev=cache_file ;;
821 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
822 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
823 cache_file=$ac_optarg ;;
824
825 --config-cache | -C)
826 cache_file=config.cache ;;
827
828 -datadir | --datadir | --datadi | --datad)
829 ac_prev=datadir ;;
830 -datadir=* | --datadir=* | --datadi=* | --datad=*)
831 datadir=$ac_optarg ;;
832
833 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
834 | --dataroo | --dataro | --datar)
835 ac_prev=datarootdir ;;
836 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
837 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
838 datarootdir=$ac_optarg ;;
839
840 -disable-* | --disable-*)
841 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
842 # Reject names that are not valid shell variable names.
843 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
844 as_fn_error $? "invalid feature name: $ac_useropt"
845 ac_useropt_orig=$ac_useropt
846 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
847 case $ac_user_opts in
848 *"
849 "enable_$ac_useropt"
850 "*) ;;
851 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
852 ac_unrecognized_sep=', ';;
853 esac
854 eval enable_$ac_useropt=no ;;
855
856 -docdir | --docdir | --docdi | --doc | --do)
857 ac_prev=docdir ;;
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859 docdir=$ac_optarg ;;
860
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862 ac_prev=dvidir ;;
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864 dvidir=$ac_optarg ;;
865
866 -enable-* | --enable-*)
867 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 as_fn_error $? "invalid feature name: $ac_useropt"
871 ac_useropt_orig=$ac_useropt
872 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873 case $ac_user_opts in
874 *"
875 "enable_$ac_useropt"
876 "*) ;;
877 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
878 ac_unrecognized_sep=', ';;
879 esac
880 eval enable_$ac_useropt=\$ac_optarg ;;
881
882 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
883 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
884 | --exec | --exe | --ex)
885 ac_prev=exec_prefix ;;
886 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
887 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
888 | --exec=* | --exe=* | --ex=*)
889 exec_prefix=$ac_optarg ;;
890
891 -gas | --gas | --ga | --g)
892 # Obsolete; use --with-gas.
893 with_gas=yes ;;
894
895 -help | --help | --hel | --he | -h)
896 ac_init_help=long ;;
897 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
898 ac_init_help=recursive ;;
899 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
900 ac_init_help=short ;;
901
902 -host | --host | --hos | --ho)
903 ac_prev=host_alias ;;
904 -host=* | --host=* | --hos=* | --ho=*)
905 host_alias=$ac_optarg ;;
906
907 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
908 ac_prev=htmldir ;;
909 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
910 | --ht=*)
911 htmldir=$ac_optarg ;;
912
913 -includedir | --includedir | --includedi | --included | --include \
914 | --includ | --inclu | --incl | --inc)
915 ac_prev=includedir ;;
916 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
917 | --includ=* | --inclu=* | --incl=* | --inc=*)
918 includedir=$ac_optarg ;;
919
920 -infodir | --infodir | --infodi | --infod | --info | --inf)
921 ac_prev=infodir ;;
922 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
923 infodir=$ac_optarg ;;
924
925 -libdir | --libdir | --libdi | --libd)
926 ac_prev=libdir ;;
927 -libdir=* | --libdir=* | --libdi=* | --libd=*)
928 libdir=$ac_optarg ;;
929
930 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
931 | --libexe | --libex | --libe)
932 ac_prev=libexecdir ;;
933 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
934 | --libexe=* | --libex=* | --libe=*)
935 libexecdir=$ac_optarg ;;
936
937 -localedir | --localedir | --localedi | --localed | --locale)
938 ac_prev=localedir ;;
939 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
940 localedir=$ac_optarg ;;
941
942 -localstatedir | --localstatedir | --localstatedi | --localstated \
943 | --localstate | --localstat | --localsta | --localst | --locals)
944 ac_prev=localstatedir ;;
945 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
946 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
947 localstatedir=$ac_optarg ;;
948
949 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
950 ac_prev=mandir ;;
951 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
952 mandir=$ac_optarg ;;
953
954 -nfp | --nfp | --nf)
955 # Obsolete; use --without-fp.
956 with_fp=no ;;
957
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c | -n)
960 no_create=yes ;;
961
962 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
963 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
964 no_recursion=yes ;;
965
966 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
967 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
968 | --oldin | --oldi | --old | --ol | --o)
969 ac_prev=oldincludedir ;;
970 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
971 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
972 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
973 oldincludedir=$ac_optarg ;;
974
975 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
976 ac_prev=prefix ;;
977 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
978 prefix=$ac_optarg ;;
979
980 -program-prefix | --program-prefix | --program-prefi | --program-pref \
981 | --program-pre | --program-pr | --program-p)
982 ac_prev=program_prefix ;;
983 -program-prefix=* | --program-prefix=* | --program-prefi=* \
984 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
985 program_prefix=$ac_optarg ;;
986
987 -program-suffix | --program-suffix | --program-suffi | --program-suff \
988 | --program-suf | --program-su | --program-s)
989 ac_prev=program_suffix ;;
990 -program-suffix=* | --program-suffix=* | --program-suffi=* \
991 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
992 program_suffix=$ac_optarg ;;
993
994 -program-transform-name | --program-transform-name \
995 | --program-transform-nam | --program-transform-na \
996 | --program-transform-n | --program-transform- \
997 | --program-transform | --program-transfor \
998 | --program-transfo | --program-transf \
999 | --program-trans | --program-tran \
1000 | --progr-tra | --program-tr | --program-t)
1001 ac_prev=program_transform_name ;;
1002 -program-transform-name=* | --program-transform-name=* \
1003 | --program-transform-nam=* | --program-transform-na=* \
1004 | --program-transform-n=* | --program-transform-=* \
1005 | --program-transform=* | --program-transfor=* \
1006 | --program-transfo=* | --program-transf=* \
1007 | --program-trans=* | --program-tran=* \
1008 | --progr-tra=* | --program-tr=* | --program-t=*)
1009 program_transform_name=$ac_optarg ;;
1010
1011 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1012 ac_prev=pdfdir ;;
1013 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1014 pdfdir=$ac_optarg ;;
1015
1016 -psdir | --psdir | --psdi | --psd | --ps)
1017 ac_prev=psdir ;;
1018 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1019 psdir=$ac_optarg ;;
1020
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 silent=yes ;;
1024
1025 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1026 ac_prev=sbindir ;;
1027 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1028 | --sbi=* | --sb=*)
1029 sbindir=$ac_optarg ;;
1030
1031 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1032 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1033 | --sharedst | --shareds | --shared | --share | --shar \
1034 | --sha | --sh)
1035 ac_prev=sharedstatedir ;;
1036 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1037 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1038 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1039 | --sha=* | --sh=*)
1040 sharedstatedir=$ac_optarg ;;
1041
1042 -site | --site | --sit)
1043 ac_prev=site ;;
1044 -site=* | --site=* | --sit=*)
1045 site=$ac_optarg ;;
1046
1047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1048 ac_prev=srcdir ;;
1049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1050 srcdir=$ac_optarg ;;
1051
1052 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1053 | --syscon | --sysco | --sysc | --sys | --sy)
1054 ac_prev=sysconfdir ;;
1055 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1056 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1057 sysconfdir=$ac_optarg ;;
1058
1059 -target | --target | --targe | --targ | --tar | --ta | --t)
1060 ac_prev=target_alias ;;
1061 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1062 target_alias=$ac_optarg ;;
1063
1064 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1065 verbose=yes ;;
1066
1067 -version | --version | --versio | --versi | --vers | -V)
1068 ac_init_version=: ;;
1069
1070 -with-* | --with-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid package name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079 "with_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval with_$ac_useropt=\$ac_optarg ;;
1085
1086 -without-* | --without-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error $? "invalid package name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095 "with_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval with_$ac_useropt=no ;;
1101
1102 --x)
1103 # Obsolete; use --with-x.
1104 with_x=yes ;;
1105
1106 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1107 | --x-incl | --x-inc | --x-in | --x-i)
1108 ac_prev=x_includes ;;
1109 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1110 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1111 x_includes=$ac_optarg ;;
1112
1113 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1114 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1115 ac_prev=x_libraries ;;
1116 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1117 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1118 x_libraries=$ac_optarg ;;
1119
1120 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1121 Try \`$0 --help' for more information"
1122 ;;
1123
1124 *=*)
1125 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1126 # Reject names that are not valid shell variable names.
1127 case $ac_envvar in #(
1128 '' | [0-9]* | *[!_$as_cr_alnum]* )
1129 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1130 esac
1131 eval $ac_envvar=\$ac_optarg
1132 export $ac_envvar ;;
1133
1134 *)
1135 # FIXME: should be removed in autoconf 3.0.
1136 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1137 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1138 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1139 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1140 ;;
1141
1142 esac
1143 done
1144
1145 if test -n "$ac_prev"; then
1146 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1147 as_fn_error $? "missing argument to $ac_option"
1148 fi
1149
1150 if test -n "$ac_unrecognized_opts"; then
1151 case $enable_option_checking in
1152 no) ;;
1153 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1154 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1155 esac
1156 fi
1157
1158 # Check all directory arguments for consistency.
1159 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1160 datadir sysconfdir sharedstatedir localstatedir includedir \
1161 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1162 libdir localedir mandir
1163 do
1164 eval ac_val=\$$ac_var
1165 # Remove trailing slashes.
1166 case $ac_val in
1167 */ )
1168 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1169 eval $ac_var=\$ac_val;;
1170 esac
1171 # Be sure to have absolute directory names.
1172 case $ac_val in
1173 [\\/$]* | ?:[\\/]* ) continue;;
1174 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1175 esac
1176 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1177 done
1178
1179 # There might be people who depend on the old broken behavior: `$host'
1180 # used to hold the argument of --host etc.
1181 # FIXME: To remove some day.
1182 build=$build_alias
1183 host=$host_alias
1184 target=$target_alias
1185
1186 # FIXME: To remove some day.
1187 if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
1190 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1191 If a cross compiler is detected then cross compile mode will be used" >&2
1192 elif test "x$build_alias" != "x$host_alias"; then
1193 cross_compiling=yes
1194 fi
1195 fi
1196
1197 ac_tool_prefix=
1198 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199
1200 test "$silent" = yes && exec 6>/dev/null
1201
1202
1203 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204 ac_ls_di=`ls -di .` &&
1205 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206 as_fn_error $? "working directory cannot be determined"
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 as_fn_error $? "pwd does not report name of working directory"
1209
1210
1211 # Find the source files, if location was not specified.
1212 if test -z "$srcdir"; then
1213 ac_srcdir_defaulted=yes
1214 # Try the directory containing this script, then the parent directory.
1215 ac_confdir=`$as_dirname -- "$as_myself" ||
1216 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1217 X"$as_myself" : 'X\(//\)[^/]' \| \
1218 X"$as_myself" : 'X\(//\)$' \| \
1219 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1220 $as_echo X"$as_myself" |
1221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1222 s//\1/
1223 q
1224 }
1225 /^X\(\/\/\)[^/].*/{
1226 s//\1/
1227 q
1228 }
1229 /^X\(\/\/\)$/{
1230 s//\1/
1231 q
1232 }
1233 /^X\(\/\).*/{
1234 s//\1/
1235 q
1236 }
1237 s/.*/./; q'`
1238 srcdir=$ac_confdir
1239 if test ! -r "$srcdir/$ac_unique_file"; then
1240 srcdir=..
1241 fi
1242 else
1243 ac_srcdir_defaulted=no
1244 fi
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1246 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1247 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1248 fi
1249 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1250 ac_abs_confdir=`(
1251 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1252 pwd)`
1253 # When building in place, set srcdir=.
1254 if test "$ac_abs_confdir" = "$ac_pwd"; then
1255 srcdir=.
1256 fi
1257 # Remove unnecessary trailing slashes from srcdir.
1258 # Double slashes in file names in object file debugging info
1259 # mess up M-x gdb in Emacs.
1260 case $srcdir in
1261 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1262 esac
1263 for ac_var in $ac_precious_vars; do
1264 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_env_${ac_var}_value=\$${ac_var}
1266 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1268 done
1269
1270 #
1271 # Report the --help message.
1272 #
1273 if test "$ac_init_help" = "long"; then
1274 # Omit some internal or obsolete options to make the list less imposing.
1275 # This message is too long to be a string in the A/UX 3.1 sh.
1276 cat <<_ACEOF
1277 \`configure' configures shadowircd 6.2.0 to adapt to many kinds of systems.
1278
1279 Usage: $0 [OPTION]... [VAR=VALUE]...
1280
1281 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1282 VAR=VALUE. See below for descriptions of some of the useful variables.
1283
1284 Defaults for the options are specified in brackets.
1285
1286 Configuration:
1287 -h, --help display this help and exit
1288 --help=short display options specific to this package
1289 --help=recursive display the short help of all the included packages
1290 -V, --version display version information and exit
1291 -q, --quiet, --silent do not print \`checking ...' messages
1292 --cache-file=FILE cache test results in FILE [disabled]
1293 -C, --config-cache alias for \`--cache-file=config.cache'
1294 -n, --no-create do not create output files
1295 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1296
1297 Installation directories:
1298 --prefix=PREFIX install architecture-independent files in PREFIX
1299 [$ac_default_prefix]
1300 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1301 [PREFIX]
1302
1303 By default, \`make install' will install all the files in
1304 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1305 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1306 for instance \`--prefix=\$HOME'.
1307
1308 For better control, use the options below.
1309
1310 Fine tuning of the installation directories:
1311 --bindir=DIR user executables [EPREFIX/bin]
1312 --sbindir=DIR system admin executables [EPREFIX/sbin]
1313 --libexecdir=DIR program executables [EPREFIX/libexec]
1314 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1315 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1316 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1317 --libdir=DIR object code libraries [EPREFIX/lib]
1318 --includedir=DIR C header files [PREFIX/include]
1319 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1320 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1321 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1322 --infodir=DIR info documentation [DATAROOTDIR/info]
1323 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1324 --mandir=DIR man documentation [DATAROOTDIR/man]
1325 --docdir=DIR documentation root [DATAROOTDIR/doc/shadowircd]
1326 --htmldir=DIR html documentation [DOCDIR]
1327 --dvidir=DIR dvi documentation [DOCDIR]
1328 --pdfdir=DIR pdf documentation [DOCDIR]
1329 --psdir=DIR ps documentation [DOCDIR]
1330 _ACEOF
1331
1332 cat <<\_ACEOF
1333 _ACEOF
1334 fi
1335
1336 if test -n "$ac_init_help"; then
1337 case $ac_init_help in
1338 short | recursive ) echo "Configuration of shadowircd 6.2.0:";;
1339 esac
1340 cat <<\_ACEOF
1341
1342 Optional Features:
1343 --disable-option-checking ignore unrecognized --enable/--with options
1344 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1345 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1346 --enable-ipv6 Enable IPv6 support
1347 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1348 --disable-openssl Disable OpenSSL support.
1349 --disable-zlib Disable ziplinks support
1350 --enable-ports Force solaris I/O ports subsystem usage.
1351 --enable-poll Force poll() usage.
1352 --enable-select Force select() usage.
1353 --enable-kqueue Force kqueue() usage.
1354 --enable-epoll Force sys_epoll usage (Linux only).
1355 --enable-assert Enable assert(). Choose between soft(warnings) and
1356 hard(aborts the daemon)
1357 --enable-iodebug Enable IO Debugging hooks
1358 --enable-profile Enable profiling
1359 --disable-balloc Disable the block allocator.
1360 --disable-small-net Disable small network support.
1361 --enable-warnings Enable all sorts of warnings for debugging.
1362
1363 Optional Packages:
1364 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1365 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1366 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1367 --with-confdir=DIR Directory to install config files.
1368 --with-logdir=DIR Directory where to write logfiles.
1369 --with-helpdir=DIR Directory to install help files.
1370 --with-moduledir=DIR Directory to install modules.
1371 --with-nicklen=LENGTH Set the nick length to LENGTH (default 31, max 50)
1372 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1373 390)
1374
1375 Some influential environment variables:
1376 CC C compiler command
1377 CFLAGS C compiler flags
1378 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1379 nonstandard directory <lib dir>
1380 LIBS libraries to pass to the linker, e.g. -l<library>
1381 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1382 you have headers in a nonstandard directory <include dir>
1383 CPP C preprocessor
1384 YACC The `Yet Another Compiler Compiler' implementation to use.
1385 Defaults to the first program found out of: `bison -y', `byacc',
1386 `yacc'.
1387 YFLAGS The list of arguments that will be passed by default to $YACC.
1388 This script will default YFLAGS to the empty string to avoid a
1389 default value of `-d' given by some make applications.
1390
1391 Use these variables to override the choices made by `configure' or to help
1392 it to find libraries and programs with nonstandard names/locations.
1393
1394 Report bugs to the package provider.
1395 _ACEOF
1396 ac_status=$?
1397 fi
1398
1399 if test "$ac_init_help" = "recursive"; then
1400 # If there are subdirs, report their specific --help.
1401 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1402 test -d "$ac_dir" ||
1403 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1404 continue
1405 ac_builddir=.
1406
1407 case "$ac_dir" in
1408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409 *)
1410 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1411 # A ".." for each directory in $ac_dir_suffix.
1412 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1413 case $ac_top_builddir_sub in
1414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1416 esac ;;
1417 esac
1418 ac_abs_top_builddir=$ac_pwd
1419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1420 # for backward compatibility:
1421 ac_top_builddir=$ac_top_build_prefix
1422
1423 case $srcdir in
1424 .) # We are building in place.
1425 ac_srcdir=.
1426 ac_top_srcdir=$ac_top_builddir_sub
1427 ac_abs_top_srcdir=$ac_pwd ;;
1428 [\\/]* | ?:[\\/]* ) # Absolute name.
1429 ac_srcdir=$srcdir$ac_dir_suffix;
1430 ac_top_srcdir=$srcdir
1431 ac_abs_top_srcdir=$srcdir ;;
1432 *) # Relative name.
1433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1434 ac_top_srcdir=$ac_top_build_prefix$srcdir
1435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1436 esac
1437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1438
1439 cd "$ac_dir" || { ac_status=$?; continue; }
1440 # Check for guested configure.
1441 if test -f "$ac_srcdir/configure.gnu"; then
1442 echo &&
1443 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1444 elif test -f "$ac_srcdir/configure"; then
1445 echo &&
1446 $SHELL "$ac_srcdir/configure" --help=recursive
1447 else
1448 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1449 fi || ac_status=$?
1450 cd "$ac_pwd" || { ac_status=$?; break; }
1451 done
1452 fi
1453
1454 test -n "$ac_init_help" && exit $ac_status
1455 if $ac_init_version; then
1456 cat <<\_ACEOF
1457 shadowircd configure 6.2.0
1458 generated by GNU Autoconf 2.68
1459
1460 Copyright (C) 2010 Free Software Foundation, Inc.
1461 This configure script is free software; the Free Software Foundation
1462 gives unlimited permission to copy, distribute and modify it.
1463
1464 $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
1465 _ACEOF
1466 exit
1467 fi
1468
1469 ## ------------------------ ##
1470 ## Autoconf initialization. ##
1471 ## ------------------------ ##
1472
1473 # ac_fn_c_try_compile LINENO
1474 # --------------------------
1475 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1476 ac_fn_c_try_compile ()
1477 {
1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479 rm -f conftest.$ac_objext
1480 if { { ac_try="$ac_compile"
1481 case "(($ac_try" in
1482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1483 *) ac_try_echo=$ac_try;;
1484 esac
1485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1486 $as_echo "$ac_try_echo"; } >&5
1487 (eval "$ac_compile") 2>conftest.err
1488 ac_status=$?
1489 if test -s conftest.err; then
1490 grep -v '^ *+' conftest.err >conftest.er1
1491 cat conftest.er1 >&5
1492 mv -f conftest.er1 conftest.err
1493 fi
1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495 test $ac_status = 0; } && {
1496 test -z "$ac_c_werror_flag" ||
1497 test ! -s conftest.err
1498 } && test -s conftest.$ac_objext; then :
1499 ac_retval=0
1500 else
1501 $as_echo "$as_me: failed program was:" >&5
1502 sed 's/^/| /' conftest.$ac_ext >&5
1503
1504 ac_retval=1
1505 fi
1506 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1507 as_fn_set_status $ac_retval
1508
1509 } # ac_fn_c_try_compile
1510
1511 # ac_fn_c_try_cpp LINENO
1512 # ----------------------
1513 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1514 ac_fn_c_try_cpp ()
1515 {
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 if { { ac_try="$ac_cpp conftest.$ac_ext"
1518 case "(($ac_try" in
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1525 ac_status=$?
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1530 fi
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } > conftest.i && {
1533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 }; then :
1536 ac_retval=0
1537 else
1538 $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1540
1541 ac_retval=1
1542 fi
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544 as_fn_set_status $ac_retval
1545
1546 } # ac_fn_c_try_cpp
1547
1548 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1549 # -------------------------------------------------------
1550 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1551 # the include files in INCLUDES and setting the cache variable VAR
1552 # accordingly.
1553 ac_fn_c_check_header_mongrel ()
1554 {
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 if eval \${$3+:} false; then :
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1558 $as_echo_n "checking for $2... " >&6; }
1559 if eval \${$3+:} false; then :
1560 $as_echo_n "(cached) " >&6
1561 fi
1562 eval ac_res=\$$3
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1564 $as_echo "$ac_res" >&6; }
1565 else
1566 # Is the header compilable?
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1568 $as_echo_n "checking $2 usability... " >&6; }
1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570 /* end confdefs.h. */
1571 $4
1572 #include <$2>
1573 _ACEOF
1574 if ac_fn_c_try_compile "$LINENO"; then :
1575 ac_header_compiler=yes
1576 else
1577 ac_header_compiler=no
1578 fi
1579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1581 $as_echo "$ac_header_compiler" >&6; }
1582
1583 # Is the header present?
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1585 $as_echo_n "checking $2 presence... " >&6; }
1586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1587 /* end confdefs.h. */
1588 #include <$2>
1589 _ACEOF
1590 if ac_fn_c_try_cpp "$LINENO"; then :
1591 ac_header_preproc=yes
1592 else
1593 ac_header_preproc=no
1594 fi
1595 rm -f conftest.err conftest.i conftest.$ac_ext
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1597 $as_echo "$ac_header_preproc" >&6; }
1598
1599 # So? What about this header?
1600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1601 yes:no: )
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1603 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1605 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1606 ;;
1607 no:yes:* )
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1609 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1611 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1613 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1615 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1617 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1618 ;;
1619 esac
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621 $as_echo_n "checking for $2... " >&6; }
1622 if eval \${$3+:} false; then :
1623 $as_echo_n "(cached) " >&6
1624 else
1625 eval "$3=\$ac_header_compiler"
1626 fi
1627 eval ac_res=\$$3
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
1630 fi
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632
1633 } # ac_fn_c_check_header_mongrel
1634
1635 # ac_fn_c_try_run LINENO
1636 # ----------------------
1637 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1638 # that executables *can* be run.
1639 ac_fn_c_try_run ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_link"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_link") 2>&5
1650 ac_status=$?
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1653 { { case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_try") 2>&5
1660 ac_status=$?
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; }; }; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: program exited with status $ac_status" >&5
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=$ac_status
1670 fi
1671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_run
1676
1677 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1678 # -------------------------------------------------------
1679 # Tests whether HEADER exists and can be compiled using the include files in
1680 # INCLUDES, setting the cache variable VAR accordingly.
1681 ac_fn_c_check_header_compile ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if eval \${$3+:} false; then :
1687 $as_echo_n "(cached) " >&6
1688 else
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1691 $4
1692 #include <$2>
1693 _ACEOF
1694 if ac_fn_c_try_compile "$LINENO"; then :
1695 eval "$3=yes"
1696 else
1697 eval "$3=no"
1698 fi
1699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1700 fi
1701 eval ac_res=\$$3
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705
1706 } # ac_fn_c_check_header_compile
1707
1708 # ac_fn_c_try_link LINENO
1709 # -----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_link ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext conftest$ac_exeext
1715 if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest$ac_exeext && {
1734 test "$cross_compiling" = yes ||
1735 $as_test_x conftest$ac_exeext
1736 }; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743 fi
1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1746 # interfere with the next link command; also delete a directory that is
1747 # left behind by Apple's compiler. We do this before executing the actions.
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_link
1753
1754 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1755 # -------------------------------------------
1756 # Tests whether TYPE exists after having included INCLUDES, setting cache
1757 # variable VAR accordingly.
1758 ac_fn_c_check_type ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 eval "$3=no"
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 $4
1770 int
1771 main ()
1772 {
1773 if (sizeof ($2))
1774 return 0;
1775 ;
1776 return 0;
1777 }
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 $4
1783 int
1784 main ()
1785 {
1786 if (sizeof (($2)))
1787 return 0;
1788 ;
1789 return 0;
1790 }
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793
1794 else
1795 eval "$3=yes"
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 fi
1801 eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806 } # ac_fn_c_check_type
1807
1808 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1809 # --------------------------------------------
1810 # Tries to find the compile-time value of EXPR in a program that includes
1811 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1812 # computed
1813 ac_fn_c_compute_int ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if test "$cross_compiling" = yes; then
1817 # Depending upon the size, compute the lo and hi bounds.
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1820 $4
1821 int
1822 main ()
1823 {
1824 static int test_array [1 - 2 * !(($2) >= 0)];
1825 test_array [0] = 0
1826
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832 ac_lo=0 ac_mid=0
1833 while :; do
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 $4
1837 int
1838 main ()
1839 {
1840 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1841 test_array [0] = 0
1842
1843 ;
1844 return 0;
1845 }
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 ac_hi=$ac_mid; break
1849 else
1850 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1851 if test $ac_lo -le $ac_mid; then
1852 ac_lo= ac_hi=
1853 break
1854 fi
1855 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1856 fi
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858 done
1859 else
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 $4
1863 int
1864 main ()
1865 {
1866 static int test_array [1 - 2 * !(($2) < 0)];
1867 test_array [0] = 0
1868
1869 ;
1870 return 0;
1871 }
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874 ac_hi=-1 ac_mid=-1
1875 while :; do
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1878 $4
1879 int
1880 main ()
1881 {
1882 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1883 test_array [0] = 0
1884
1885 ;
1886 return 0;
1887 }
1888 _ACEOF
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890 ac_lo=$ac_mid; break
1891 else
1892 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1893 if test $ac_mid -le $ac_hi; then
1894 ac_lo= ac_hi=
1895 break
1896 fi
1897 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900 done
1901 else
1902 ac_lo= ac_hi=
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 # Binary search between lo and hi bounds.
1908 while test "x$ac_lo" != "x$ac_hi"; do
1909 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 $4
1913 int
1914 main ()
1915 {
1916 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1917 test_array [0] = 0
1918
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 ac_hi=$ac_mid
1925 else
1926 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 done
1930 case $ac_lo in #((
1931 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1932 '') ac_retval=1 ;;
1933 esac
1934 else
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 $4
1938 static long int longval () { return $2; }
1939 static unsigned long int ulongval () { return $2; }
1940 #include <stdio.h>
1941 #include <stdlib.h>
1942 int
1943 main ()
1944 {
1945
1946 FILE *f = fopen ("conftest.val", "w");
1947 if (! f)
1948 return 1;
1949 if (($2) < 0)
1950 {
1951 long int i = longval ();
1952 if (i != ($2))
1953 return 1;
1954 fprintf (f, "%ld", i);
1955 }
1956 else
1957 {
1958 unsigned long int i = ulongval ();
1959 if (i != ($2))
1960 return 1;
1961 fprintf (f, "%lu", i);
1962 }
1963 /* Do not output a trailing newline, as this causes \r\n confusion
1964 on some platforms. */
1965 return ferror (f) || fclose (f) != 0;
1966
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_run "$LINENO"; then :
1972 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1973 else
1974 ac_retval=1
1975 fi
1976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1977 conftest.$ac_objext conftest.beam conftest.$ac_ext
1978 rm -f conftest.val
1979
1980 fi
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 as_fn_set_status $ac_retval
1983
1984 } # ac_fn_c_compute_int
1985
1986 # ac_fn_c_check_func LINENO FUNC VAR
1987 # ----------------------------------
1988 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1989 ac_fn_c_check_func ()
1990 {
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995 $as_echo_n "(cached) " >&6
1996 else
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
1999 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2001 #define $2 innocuous_$2
2002
2003 /* System header to define __stub macros and hopefully few prototypes,
2004 which can conflict with char $2 (); below.
2005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2006 <limits.h> exists even on freestanding compilers. */
2007
2008 #ifdef __STDC__
2009 # include <limits.h>
2010 #else
2011 # include <assert.h>
2012 #endif
2013
2014 #undef $2
2015
2016 /* Override any GCC internal prototype to avoid an error.
2017 Use char because int might match the return type of a GCC
2018 builtin and then its argument prototype would still apply. */
2019 #ifdef __cplusplus
2020 extern "C"
2021 #endif
2022 char $2 ();
2023 /* The GNU C library defines this for functions which it implements
2024 to always fail with ENOSYS. Some functions are actually named
2025 something starting with __ and the normal name is an alias. */
2026 #if defined __stub_$2 || defined __stub___$2
2027 choke me
2028 #endif
2029
2030 int
2031 main ()
2032 {
2033 return $2 ();
2034 ;
2035 return 0;
2036 }
2037 _ACEOF
2038 if ac_fn_c_try_link "$LINENO"; then :
2039 eval "$3=yes"
2040 else
2041 eval "$3=no"
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext \
2044 conftest$ac_exeext conftest.$ac_ext
2045 fi
2046 eval ac_res=\$$3
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050
2051 } # ac_fn_c_check_func
2052 cat >config.log <<_ACEOF
2053 This file contains any messages produced by compilers while
2054 running configure, to aid debugging if configure makes a mistake.
2055
2056 It was created by shadowircd $as_me 6.2.0, which was
2057 generated by GNU Autoconf 2.68. Invocation command line was
2058
2059 $ $0 $@
2060
2061 _ACEOF
2062 exec 5>>config.log
2063 {
2064 cat <<_ASUNAME
2065 ## --------- ##
2066 ## Platform. ##
2067 ## --------- ##
2068
2069 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2070 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2071 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2072 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2073 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2074
2075 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2076 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2077
2078 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2079 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2080 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2081 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2082 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2083 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2084 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2085
2086 _ASUNAME
2087
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091 IFS=$as_save_IFS
2092 test -z "$as_dir" && as_dir=.
2093 $as_echo "PATH: $as_dir"
2094 done
2095 IFS=$as_save_IFS
2096
2097 } >&5
2098
2099 cat >&5 <<_ACEOF
2100
2101
2102 ## ----------- ##
2103 ## Core tests. ##
2104 ## ----------- ##
2105
2106 _ACEOF
2107
2108
2109 # Keep a trace of the command line.
2110 # Strip out --no-create and --no-recursion so they do not pile up.
2111 # Strip out --silent because we don't want to record it for future runs.
2112 # Also quote any args containing shell meta-characters.
2113 # Make two passes to allow for proper duplicate-argument suppression.
2114 ac_configure_args=
2115 ac_configure_args0=
2116 ac_configure_args1=
2117 ac_must_keep_next=false
2118 for ac_pass in 1 2
2119 do
2120 for ac_arg
2121 do
2122 case $ac_arg in
2123 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2125 | -silent | --silent | --silen | --sile | --sil)
2126 continue ;;
2127 *\'*)
2128 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2129 esac
2130 case $ac_pass in
2131 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2132 2)
2133 as_fn_append ac_configure_args1 " '$ac_arg'"
2134 if test $ac_must_keep_next = true; then
2135 ac_must_keep_next=false # Got value, back to normal.
2136 else
2137 case $ac_arg in
2138 *=* | --config-cache | -C | -disable-* | --disable-* \
2139 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2140 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2141 | -with-* | --with-* | -without-* | --without-* | --x)
2142 case "$ac_configure_args0 " in
2143 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2144 esac
2145 ;;
2146 -* ) ac_must_keep_next=true ;;
2147 esac
2148 fi
2149 as_fn_append ac_configure_args " '$ac_arg'"
2150 ;;
2151 esac
2152 done
2153 done
2154 { ac_configure_args0=; unset ac_configure_args0;}
2155 { ac_configure_args1=; unset ac_configure_args1;}
2156
2157 # When interrupted or exit'd, cleanup temporary files, and complete
2158 # config.log. We remove comments because anyway the quotes in there
2159 # would cause problems or look ugly.
2160 # WARNING: Use '\'' to represent an apostrophe within the trap.
2161 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2162 trap 'exit_status=$?
2163 # Save into config.log some information that might help in debugging.
2164 {
2165 echo
2166
2167 $as_echo "## ---------------- ##
2168 ## Cache variables. ##
2169 ## ---------------- ##"
2170 echo
2171 # The following way of writing the cache mishandles newlines in values,
2172 (
2173 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2174 eval ac_val=\$$ac_var
2175 case $ac_val in #(
2176 *${as_nl}*)
2177 case $ac_var in #(
2178 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2179 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2180 esac
2181 case $ac_var in #(
2182 _ | IFS | as_nl) ;; #(
2183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2184 *) { eval $ac_var=; unset $ac_var;} ;;
2185 esac ;;
2186 esac
2187 done
2188 (set) 2>&1 |
2189 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2190 *${as_nl}ac_space=\ *)
2191 sed -n \
2192 "s/'\''/'\''\\\\'\'''\''/g;
2193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2194 ;; #(
2195 *)
2196 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2197 ;;
2198 esac |
2199 sort
2200 )
2201 echo
2202
2203 $as_echo "## ----------------- ##
2204 ## Output variables. ##
2205 ## ----------------- ##"
2206 echo
2207 for ac_var in $ac_subst_vars
2208 do
2209 eval ac_val=\$$ac_var
2210 case $ac_val in
2211 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212 esac
2213 $as_echo "$ac_var='\''$ac_val'\''"
2214 done | sort
2215 echo
2216
2217 if test -n "$ac_subst_files"; then
2218 $as_echo "## ------------------- ##
2219 ## File substitutions. ##
2220 ## ------------------- ##"
2221 echo
2222 for ac_var in $ac_subst_files
2223 do
2224 eval ac_val=\$$ac_var
2225 case $ac_val in
2226 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227 esac
2228 $as_echo "$ac_var='\''$ac_val'\''"
2229 done | sort
2230 echo
2231 fi
2232
2233 if test -s confdefs.h; then
2234 $as_echo "## ----------- ##
2235 ## confdefs.h. ##
2236 ## ----------- ##"
2237 echo
2238 cat confdefs.h
2239 echo
2240 fi
2241 test "$ac_signal" != 0 &&
2242 $as_echo "$as_me: caught signal $ac_signal"
2243 $as_echo "$as_me: exit $exit_status"
2244 } >&5
2245 rm -f core *.core core.conftest.* &&
2246 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2247 exit $exit_status
2248 ' 0
2249 for ac_signal in 1 2 13 15; do
2250 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2251 done
2252 ac_signal=0
2253
2254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2255 rm -f -r conftest* confdefs.h
2256
2257 $as_echo "/* confdefs.h */" > confdefs.h
2258
2259 # Predefined preprocessor variables.
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_NAME "$PACKAGE_NAME"
2263 _ACEOF
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2267 _ACEOF
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_STRING "$PACKAGE_STRING"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2279 _ACEOF
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_URL "$PACKAGE_URL"
2283 _ACEOF
2284
2285
2286 # Let the site file select an alternate cache file if it wants to.
2287 # Prefer an explicitly selected file to automatically selected ones.
2288 ac_site_file1=NONE
2289 ac_site_file2=NONE
2290 if test -n "$CONFIG_SITE"; then
2291 # We do not want a PATH search for config.site.
2292 case $CONFIG_SITE in #((
2293 -*) ac_site_file1=./$CONFIG_SITE;;
2294 */*) ac_site_file1=$CONFIG_SITE;;
2295 *) ac_site_file1=./$CONFIG_SITE;;
2296 esac
2297 elif test "x$prefix" != xNONE; then
2298 ac_site_file1=$prefix/share/config.site
2299 ac_site_file2=$prefix/etc/config.site
2300 else
2301 ac_site_file1=$ac_default_prefix/share/config.site
2302 ac_site_file2=$ac_default_prefix/etc/config.site
2303 fi
2304 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2305 do
2306 test "x$ac_site_file" = xNONE && continue
2307 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2309 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2310 sed 's/^/| /' "$ac_site_file" >&5
2311 . "$ac_site_file" \
2312 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314 as_fn_error $? "failed to load site script $ac_site_file
2315 See \`config.log' for more details" "$LINENO" 5; }
2316 fi
2317 done
2318
2319 if test -r "$cache_file"; then
2320 # Some versions of bash will fail to source /dev/null (special files
2321 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2322 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2324 $as_echo "$as_me: loading cache $cache_file" >&6;}
2325 case $cache_file in
2326 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2327 *) . "./$cache_file";;
2328 esac
2329 fi
2330 else
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2332 $as_echo "$as_me: creating cache $cache_file" >&6;}
2333 >$cache_file
2334 fi
2335
2336 # Check that the precious variables saved in the cache have kept the same
2337 # value.
2338 ac_cache_corrupted=false
2339 for ac_var in $ac_precious_vars; do
2340 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2341 eval ac_new_set=\$ac_env_${ac_var}_set
2342 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2343 eval ac_new_val=\$ac_env_${ac_var}_value
2344 case $ac_old_set,$ac_new_set in
2345 set,)
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2347 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2348 ac_cache_corrupted=: ;;
2349 ,set)
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2351 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2352 ac_cache_corrupted=: ;;
2353 ,);;
2354 *)
2355 if test "x$ac_old_val" != "x$ac_new_val"; then
2356 # differences in whitespace do not lead to failure.
2357 ac_old_val_w=`echo x $ac_old_val`
2358 ac_new_val_w=`echo x $ac_new_val`
2359 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2361 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2362 ac_cache_corrupted=:
2363 else
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2365 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2366 eval $ac_var=\$ac_old_val
2367 fi
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2369 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2371 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2372 fi;;
2373 esac
2374 # Pass precious variables to config.status.
2375 if test "$ac_new_set" = set; then
2376 case $ac_new_val in
2377 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2378 *) ac_arg=$ac_var=$ac_new_val ;;
2379 esac
2380 case " $ac_configure_args " in
2381 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2382 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2383 esac
2384 fi
2385 done
2386 if $ac_cache_corrupted; then
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2390 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2391 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2392 fi
2393 ## -------------------- ##
2394 ## Main body of script. ##
2395 ## -------------------- ##
2396
2397 ac_ext=c
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402
2403
2404
2405 ac_config_headers="$ac_config_headers include/setup.h"
2406
2407
2408
2409
2410 ac_ext=c
2411 ac_cpp='$CPP $CPPFLAGS'
2412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415 if test -n "$ac_tool_prefix"; then
2416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2417 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419 $as_echo_n "checking for $ac_word... " >&6; }
2420 if ${ac_cv_prog_CC+:} false; then :
2421 $as_echo_n "(cached) " >&6
2422 else
2423 if test -n "$CC"; then
2424 ac_cv_prog_CC="$CC" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2428 do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2436 fi
2437 done
2438 done
2439 IFS=$as_save_IFS
2440
2441 fi
2442 fi
2443 CC=$ac_cv_prog_CC
2444 if test -n "$CC"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2446 $as_echo "$CC" >&6; }
2447 else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449 $as_echo "no" >&6; }
2450 fi
2451
2452
2453 fi
2454 if test -z "$ac_cv_prog_CC"; then
2455 ac_ct_CC=$CC
2456 # Extract the first word of "gcc", so it can be a program name with args.
2457 set dummy gcc; ac_word=$2
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459 $as_echo_n "checking for $ac_word... " >&6; }
2460 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 if test -n "$ac_ct_CC"; then
2464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 ac_cv_prog_ac_ct_CC="gcc"
2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2476 fi
2477 done
2478 done
2479 IFS=$as_save_IFS
2480
2481 fi
2482 fi
2483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2484 if test -n "$ac_ct_CC"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2486 $as_echo "$ac_ct_CC" >&6; }
2487 else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489 $as_echo "no" >&6; }
2490 fi
2491
2492 if test "x$ac_ct_CC" = x; then
2493 CC=""
2494 else
2495 case $cross_compiling:$ac_tool_warned in
2496 yes:)
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2499 ac_tool_warned=yes ;;
2500 esac
2501 CC=$ac_ct_CC
2502 fi
2503 else
2504 CC="$ac_cv_prog_CC"
2505 fi
2506
2507 if test -z "$CC"; then
2508 if test -n "$ac_tool_prefix"; then
2509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2510 set dummy ${ac_tool_prefix}cc; ac_word=$2
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2512 $as_echo_n "checking for $ac_word... " >&6; }
2513 if ${ac_cv_prog_CC+:} false; then :
2514 $as_echo_n "(cached) " >&6
2515 else
2516 if test -n "$CC"; then
2517 ac_cv_prog_CC="$CC" # Let the user override the test.
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2521 do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2526 ac_cv_prog_CC="${ac_tool_prefix}cc"
2527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 break 2
2529 fi
2530 done
2531 done
2532 IFS=$as_save_IFS
2533
2534 fi
2535 fi
2536 CC=$ac_cv_prog_CC
2537 if test -n "$CC"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2539 $as_echo "$CC" >&6; }
2540 else
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2542 $as_echo "no" >&6; }
2543 fi
2544
2545
2546 fi
2547 fi
2548 if test -z "$CC"; then
2549 # Extract the first word of "cc", so it can be a program name with args.
2550 set dummy cc; ac_word=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if ${ac_cv_prog_CC+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 if test -n "$CC"; then
2557 ac_cv_prog_CC="$CC" # Let the user override the test.
2558 else
2559 ac_prog_rejected=no
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH
2562 do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2568 ac_prog_rejected=yes
2569 continue
2570 fi
2571 ac_cv_prog_CC="cc"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2574 fi
2575 done
2576 done
2577 IFS=$as_save_IFS
2578
2579 if test $ac_prog_rejected = yes; then
2580 # We found a bogon in the path, so make sure we never use it.
2581 set dummy $ac_cv_prog_CC
2582 shift
2583 if test $# != 0; then
2584 # We chose a different compiler from the bogus one.
2585 # However, it has the same basename, so the bogon will be chosen
2586 # first if we set CC to just the basename; use the full file name.
2587 shift
2588 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2589 fi
2590 fi
2591 fi
2592 fi
2593 CC=$ac_cv_prog_CC
2594 if test -n "$CC"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2596 $as_echo "$CC" >&6; }
2597 else
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599 $as_echo "no" >&6; }
2600 fi
2601
2602
2603 fi
2604 if test -z "$CC"; then
2605 if test -n "$ac_tool_prefix"; then
2606 for ac_prog in cl.exe
2607 do
2608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2609 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if ${ac_cv_prog_CC+:} false; then :
2613 $as_echo_n "(cached) " >&6
2614 else
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629 done
2630 done
2631 IFS=$as_save_IFS
2632
2633 fi
2634 fi
2635 CC=$ac_cv_prog_CC
2636 if test -n "$CC"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2638 $as_echo "$CC" >&6; }
2639 else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2642 fi
2643
2644
2645 test -n "$CC" && break
2646 done
2647 fi
2648 if test -z "$CC"; then
2649 ac_ct_CC=$CC
2650 for ac_prog in cl.exe
2651 do
2652 # Extract the first word of "$ac_prog", so it can be a program name with args.
2653 set dummy $ac_prog; ac_word=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 if test -n "$ac_ct_CC"; then
2660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669 ac_cv_prog_ac_ct_CC="$ac_prog"
2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 break 2
2672 fi
2673 done
2674 done
2675 IFS=$as_save_IFS
2676
2677 fi
2678 fi
2679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2680 if test -n "$ac_ct_CC"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2682 $as_echo "$ac_ct_CC" >&6; }
2683 else
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2686 fi
2687
2688
2689 test -n "$ac_ct_CC" && break
2690 done
2691
2692 if test "x$ac_ct_CC" = x; then
2693 CC=""
2694 else
2695 case $cross_compiling:$ac_tool_warned in
2696 yes:)
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2699 ac_tool_warned=yes ;;
2700 esac
2701 CC=$ac_ct_CC
2702 fi
2703 fi
2704
2705 fi
2706
2707
2708 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 as_fn_error $? "no acceptable C compiler found in \$PATH
2711 See \`config.log' for more details" "$LINENO" 5; }
2712
2713 # Provide some information about the compiler.
2714 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2715 set X $ac_compile
2716 ac_compiler=$2
2717 for ac_option in --version -v -V -qversion; do
2718 { { ac_try="$ac_compiler $ac_option >&5"
2719 case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722 esac
2723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2724 $as_echo "$ac_try_echo"; } >&5
2725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2726 ac_status=$?
2727 if test -s conftest.err; then
2728 sed '10a\
2729 ... rest of stderr output deleted ...
2730 10q' conftest.err >conftest.er1
2731 cat conftest.er1 >&5
2732 fi
2733 rm -f conftest.er1 conftest.err
2734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2735 test $ac_status = 0; }
2736 done
2737
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h. */
2740
2741 int
2742 main ()
2743 {
2744
2745 ;
2746 return 0;
2747 }
2748 _ACEOF
2749 ac_clean_files_save=$ac_clean_files
2750 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2751 # Try to create an executable without -o first, disregard a.out.
2752 # It will help us diagnose broken compilers, and finding out an intuition
2753 # of exeext.
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2755 $as_echo_n "checking whether the C compiler works... " >&6; }
2756 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2757
2758 # The possible output files:
2759 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2760
2761 ac_rmfiles=
2762 for ac_file in $ac_files
2763 do
2764 case $ac_file in
2765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2766 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2767 esac
2768 done
2769 rm -f $ac_rmfiles
2770
2771 if { { ac_try="$ac_link_default"
2772 case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775 esac
2776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2777 $as_echo "$ac_try_echo"; } >&5
2778 (eval "$ac_link_default") 2>&5
2779 ac_status=$?
2780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2781 test $ac_status = 0; }; then :
2782 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2783 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2784 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2785 # so that the user can short-circuit this test for compilers unknown to
2786 # Autoconf.
2787 for ac_file in $ac_files ''
2788 do
2789 test -f "$ac_file" || continue
2790 case $ac_file in
2791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2792 ;;
2793 [ab].out )
2794 # We found the default executable, but exeext='' is most
2795 # certainly right.
2796 break;;
2797 *.* )
2798 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2799 then :; else
2800 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2801 fi
2802 # We set ac_cv_exeext here because the later test for it is not
2803 # safe: cross compilers may not add the suffix if given an `-o'
2804 # argument, so we may need to know it at that point already.
2805 # Even if this section looks crufty: it has the advantage of
2806 # actually working.
2807 break;;
2808 * )
2809 break;;
2810 esac
2811 done
2812 test "$ac_cv_exeext" = no && ac_cv_exeext=
2813
2814 else
2815 ac_file=''
2816 fi
2817 if test -z "$ac_file"; then :
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2820 $as_echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2822
2823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2825 as_fn_error 77 "C compiler cannot create executables
2826 See \`config.log' for more details" "$LINENO" 5; }
2827 else
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829 $as_echo "yes" >&6; }
2830 fi
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2832 $as_echo_n "checking for C compiler default output file name... " >&6; }
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2834 $as_echo "$ac_file" >&6; }
2835 ac_exeext=$ac_cv_exeext
2836
2837 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2838 ac_clean_files=$ac_clean_files_save
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2840 $as_echo_n "checking for suffix of executables... " >&6; }
2841 if { { ac_try="$ac_link"
2842 case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847 $as_echo "$ac_try_echo"; } >&5
2848 (eval "$ac_link") 2>&5
2849 ac_status=$?
2850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851 test $ac_status = 0; }; then :
2852 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2853 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2854 # work properly (i.e., refer to `conftest.exe'), while it won't with
2855 # `rm'.
2856 for ac_file in conftest.exe conftest conftest.*; do
2857 test -f "$ac_file" || continue
2858 case $ac_file in
2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2860 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2861 break;;
2862 * ) break;;
2863 esac
2864 done
2865 else
2866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2868 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2869 See \`config.log' for more details" "$LINENO" 5; }
2870 fi
2871 rm -f conftest conftest$ac_cv_exeext
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2873 $as_echo "$ac_cv_exeext" >&6; }
2874
2875 rm -f conftest.$ac_ext
2876 EXEEXT=$ac_cv_exeext
2877 ac_exeext=$EXEEXT
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h. */
2880 #include <stdio.h>
2881 int
2882 main ()
2883 {
2884 FILE *f = fopen ("conftest.out", "w");
2885 return ferror (f) || fclose (f) != 0;
2886
2887 ;
2888 return 0;
2889 }
2890 _ACEOF
2891 ac_clean_files="$ac_clean_files conftest.out"
2892 # Check that the compiler produces executables we can run. If not, either
2893 # the compiler is broken, or we cross compile.
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2895 $as_echo_n "checking whether we are cross compiling... " >&6; }
2896 if test "$cross_compiling" != yes; then
2897 { { ac_try="$ac_link"
2898 case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901 esac
2902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903 $as_echo "$ac_try_echo"; } >&5
2904 (eval "$ac_link") 2>&5
2905 ac_status=$?
2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }
2908 if { ac_try='./conftest$ac_cv_exeext'
2909 { { case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912 esac
2913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2914 $as_echo "$ac_try_echo"; } >&5
2915 (eval "$ac_try") 2>&5
2916 ac_status=$?
2917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2918 test $ac_status = 0; }; }; then
2919 cross_compiling=no
2920 else
2921 if test "$cross_compiling" = maybe; then
2922 cross_compiling=yes
2923 else
2924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2926 as_fn_error $? "cannot run C compiled programs.
2927 If you meant to cross compile, use \`--host'.
2928 See \`config.log' for more details" "$LINENO" 5; }
2929 fi
2930 fi
2931 fi
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2933 $as_echo "$cross_compiling" >&6; }
2934
2935 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2936 ac_clean_files=$ac_clean_files_save
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2938 $as_echo_n "checking for suffix of object files... " >&6; }
2939 if ${ac_cv_objext+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943 /* end confdefs.h. */
2944
2945 int
2946 main ()
2947 {
2948
2949 ;
2950 return 0;
2951 }
2952 _ACEOF
2953 rm -f conftest.o conftest.obj
2954 if { { ac_try="$ac_compile"
2955 case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958 esac
2959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2960 $as_echo "$ac_try_echo"; } >&5
2961 (eval "$ac_compile") 2>&5
2962 ac_status=$?
2963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964 test $ac_status = 0; }; then :
2965 for ac_file in conftest.o conftest.obj conftest.*; do
2966 test -f "$ac_file" || continue;
2967 case $ac_file in
2968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2970 break;;
2971 esac
2972 done
2973 else
2974 $as_echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979 as_fn_error $? "cannot compute suffix of object files: cannot compile
2980 See \`config.log' for more details" "$LINENO" 5; }
2981 fi
2982 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2983 fi
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2985 $as_echo "$ac_cv_objext" >&6; }
2986 OBJEXT=$ac_cv_objext
2987 ac_objext=$OBJEXT
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2989 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2990 if ${ac_cv_c_compiler_gnu+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994 /* end confdefs.h. */
2995
2996 int
2997 main ()
2998 {
2999 #ifndef __GNUC__
3000 choke me
3001 #endif
3002
3003 ;
3004 return 0;
3005 }
3006 _ACEOF
3007 if ac_fn_c_try_compile "$LINENO"; then :
3008 ac_compiler_gnu=yes
3009 else
3010 ac_compiler_gnu=no
3011 fi
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3014
3015 fi
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3017 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3018 if test $ac_compiler_gnu = yes; then
3019 GCC=yes
3020 else
3021 GCC=
3022 fi
3023 ac_test_CFLAGS=${CFLAGS+set}
3024 ac_save_CFLAGS=$CFLAGS
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3026 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3027 if ${ac_cv_prog_cc_g+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 ac_save_c_werror_flag=$ac_c_werror_flag
3031 ac_c_werror_flag=yes
3032 ac_cv_prog_cc_g=no
3033 CFLAGS="-g"
3034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035 /* end confdefs.h. */
3036
3037 int
3038 main ()
3039 {
3040
3041 ;
3042 return 0;
3043 }
3044 _ACEOF
3045 if ac_fn_c_try_compile "$LINENO"; then :
3046 ac_cv_prog_cc_g=yes
3047 else
3048 CFLAGS=""
3049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h. */
3051
3052 int
3053 main ()
3054 {
3055
3056 ;
3057 return 0;
3058 }
3059 _ACEOF
3060 if ac_fn_c_try_compile "$LINENO"; then :
3061
3062 else
3063 ac_c_werror_flag=$ac_save_c_werror_flag
3064 CFLAGS="-g"
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3067
3068 int
3069 main ()
3070 {
3071
3072 ;
3073 return 0;
3074 }
3075 _ACEOF
3076 if ac_fn_c_try_compile "$LINENO"; then :
3077 ac_cv_prog_cc_g=yes
3078 fi
3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080 fi
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 fi
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 ac_c_werror_flag=$ac_save_c_werror_flag
3085 fi
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3087 $as_echo "$ac_cv_prog_cc_g" >&6; }
3088 if test "$ac_test_CFLAGS" = set; then
3089 CFLAGS=$ac_save_CFLAGS
3090 elif test $ac_cv_prog_cc_g = yes; then
3091 if test "$GCC" = yes; then
3092 CFLAGS="-g -O2"
3093 else
3094 CFLAGS="-g"
3095 fi
3096 else
3097 if test "$GCC" = yes; then
3098 CFLAGS="-O2"
3099 else
3100 CFLAGS=
3101 fi
3102 fi
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3104 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3105 if ${ac_cv_prog_cc_c89+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 ac_cv_prog_cc_c89=no
3109 ac_save_CC=$CC
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111 /* end confdefs.h. */
3112 #include <stdarg.h>
3113 #include <stdio.h>
3114 #include <sys/types.h>
3115 #include <sys/stat.h>
3116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3117 struct buf { int x; };
3118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3119 static char *e (p, i)
3120 char **p;
3121 int i;
3122 {
3123 return p[i];
3124 }
3125 static char *f (char * (*g) (char **, int), char **p, ...)
3126 {
3127 char *s;
3128 va_list v;
3129 va_start (v,p);
3130 s = g (p, va_arg (v,int));
3131 va_end (v);
3132 return s;
3133 }
3134
3135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3136 function prototypes and stuff, but not '\xHH' hex character constants.
3137 These don't provoke an error unfortunately, instead are silently treated
3138 as 'x'. The following induces an error, until -std is added to get
3139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3140 array size at least. It's necessary to write '\x00'==0 to get something
3141 that's true only with -std. */
3142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3143
3144 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3145 inside strings and character constants. */
3146 #define FOO(x) 'x'
3147 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3148
3149 int test (int i, double x);
3150 struct s1 {int (*f) (int a);};
3151 struct s2 {int (*f) (double a);};
3152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3153 int argc;
3154 char **argv;
3155 int
3156 main ()
3157 {
3158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3159 ;
3160 return 0;
3161 }
3162 _ACEOF
3163 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3164 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3165 do
3166 CC="$ac_save_CC $ac_arg"
3167 if ac_fn_c_try_compile "$LINENO"; then :
3168 ac_cv_prog_cc_c89=$ac_arg
3169 fi
3170 rm -f core conftest.err conftest.$ac_objext
3171 test "x$ac_cv_prog_cc_c89" != "xno" && break
3172 done
3173 rm -f conftest.$ac_ext
3174 CC=$ac_save_CC
3175
3176 fi
3177 # AC_CACHE_VAL
3178 case "x$ac_cv_prog_cc_c89" in
3179 x)
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3181 $as_echo "none needed" >&6; } ;;
3182 xno)
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3184 $as_echo "unsupported" >&6; } ;;
3185 *)
3186 CC="$CC $ac_cv_prog_cc_c89"
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3188 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3189 esac
3190 if test "x$ac_cv_prog_cc_c89" != xno; then :
3191
3192 fi
3193
3194 ac_ext=c
3195 ac_cpp='$CPP $CPPFLAGS'
3196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199
3200
3201 ac_ext=c
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3207 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3208 # On Suns, sometimes $CPP names a directory.
3209 if test -n "$CPP" && test -d "$CPP"; then
3210 CPP=
3211 fi
3212 if test -z "$CPP"; then
3213 if ${ac_cv_prog_CPP+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 # Double quotes because CPP needs to be expanded
3217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3218 do
3219 ac_preproc_ok=false
3220 for ac_c_preproc_warn_flag in '' yes
3221 do
3222 # Use a header file that comes with gcc, so configuring glibc
3223 # with a fresh cross-compiler works.
3224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3225 # <limits.h> exists even on freestanding compilers.
3226 # On the NeXT, cc -E runs the code through the compiler's parser,
3227 # not just through cpp. "Syntax error" is here to catch this case.
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3230 #ifdef __STDC__
3231 # include <limits.h>
3232 #else
3233 # include <assert.h>
3234 #endif
3235 Syntax error
3236 _ACEOF
3237 if ac_fn_c_try_cpp "$LINENO"; then :
3238
3239 else
3240 # Broken: fails on valid input.
3241 continue
3242 fi
3243 rm -f conftest.err conftest.i conftest.$ac_ext
3244
3245 # OK, works on sane cases. Now check whether nonexistent headers
3246 # can be detected and how.
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3249 #include <ac_nonexistent.h>
3250 _ACEOF
3251 if ac_fn_c_try_cpp "$LINENO"; then :
3252 # Broken: success on invalid input.
3253 continue
3254 else
3255 # Passes both tests.
3256 ac_preproc_ok=:
3257 break
3258 fi
3259 rm -f conftest.err conftest.i conftest.$ac_ext
3260
3261 done
3262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3263 rm -f conftest.i conftest.err conftest.$ac_ext
3264 if $ac_preproc_ok; then :
3265 break
3266 fi
3267
3268 done
3269 ac_cv_prog_CPP=$CPP
3270
3271 fi
3272 CPP=$ac_cv_prog_CPP
3273 else
3274 ac_cv_prog_CPP=$CPP
3275 fi
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3277 $as_echo "$CPP" >&6; }
3278 ac_preproc_ok=false
3279 for ac_c_preproc_warn_flag in '' yes
3280 do
3281 # Use a header file that comes with gcc, so configuring glibc
3282 # with a fresh cross-compiler works.
3283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3284 # <limits.h> exists even on freestanding compilers.
3285 # On the NeXT, cc -E runs the code through the compiler's parser,
3286 # not just through cpp. "Syntax error" is here to catch this case.
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h. */
3289 #ifdef __STDC__
3290 # include <limits.h>
3291 #else
3292 # include <assert.h>
3293 #endif
3294 Syntax error
3295 _ACEOF
3296 if ac_fn_c_try_cpp "$LINENO"; then :
3297
3298 else
3299 # Broken: fails on valid input.
3300 continue
3301 fi
3302 rm -f conftest.err conftest.i conftest.$ac_ext
3303
3304 # OK, works on sane cases. Now check whether nonexistent headers
3305 # can be detected and how.
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3308 #include <ac_nonexistent.h>
3309 _ACEOF
3310 if ac_fn_c_try_cpp "$LINENO"; then :
3311 # Broken: success on invalid input.
3312 continue
3313 else
3314 # Passes both tests.
3315 ac_preproc_ok=:
3316 break
3317 fi
3318 rm -f conftest.err conftest.i conftest.$ac_ext
3319
3320 done
3321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3322 rm -f conftest.i conftest.err conftest.$ac_ext
3323 if $ac_preproc_ok; then :
3324
3325 else
3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3329 See \`config.log' for more details" "$LINENO" 5; }
3330 fi
3331
3332 ac_ext=c
3333 ac_cpp='$CPP $CPPFLAGS'
3334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337
3338
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3340 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3341 if ${ac_cv_path_GREP+:} false; then :
3342 $as_echo_n "(cached) " >&6
3343 else
3344 if test -z "$GREP"; then
3345 ac_path_GREP_found=false
3346 # Loop through the user's path and test for each of PROGNAME-LIST
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3349 do
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_prog in grep ggrep; do
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3355 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3356 # Check for GNU ac_path_GREP and select it if it is found.
3357 # Check for GNU $ac_path_GREP
3358 case `"$ac_path_GREP" --version 2>&1` in
3359 *GNU*)
3360 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3361 *)
3362 ac_count=0
3363 $as_echo_n 0123456789 >"conftest.in"
3364 while :
3365 do
3366 cat "conftest.in" "conftest.in" >"conftest.tmp"
3367 mv "conftest.tmp" "conftest.in"
3368 cp "conftest.in" "conftest.nl"
3369 $as_echo 'GREP' >> "conftest.nl"
3370 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3372 as_fn_arith $ac_count + 1 && ac_count=$as_val
3373 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3374 # Best one so far, save it but keep looking for a better one
3375 ac_cv_path_GREP="$ac_path_GREP"
3376 ac_path_GREP_max=$ac_count
3377 fi
3378 # 10*(2^10) chars as input seems more than enough
3379 test $ac_count -gt 10 && break
3380 done
3381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3382 esac
3383
3384 $ac_path_GREP_found && break 3
3385 done
3386 done
3387 done
3388 IFS=$as_save_IFS
3389 if test -z "$ac_cv_path_GREP"; then
3390 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3391 fi
3392 else
3393 ac_cv_path_GREP=$GREP
3394 fi
3395
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3398 $as_echo "$ac_cv_path_GREP" >&6; }
3399 GREP="$ac_cv_path_GREP"
3400
3401
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3403 $as_echo_n "checking for egrep... " >&6; }
3404 if ${ac_cv_path_EGREP+:} false; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3408 then ac_cv_path_EGREP="$GREP -E"
3409 else
3410 if test -z "$EGREP"; then
3411 ac_path_EGREP_found=false
3412 # Loop through the user's path and test for each of PROGNAME-LIST
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3415 do
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_prog in egrep; do
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3421 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3422 # Check for GNU ac_path_EGREP and select it if it is found.
3423 # Check for GNU $ac_path_EGREP
3424 case `"$ac_path_EGREP" --version 2>&1` in
3425 *GNU*)
3426 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3427 *)
3428 ac_count=0
3429 $as_echo_n 0123456789 >"conftest.in"
3430 while :
3431 do
3432 cat "conftest.in" "conftest.in" >"conftest.tmp"
3433 mv "conftest.tmp" "conftest.in"
3434 cp "conftest.in" "conftest.nl"
3435 $as_echo 'EGREP' >> "conftest.nl"
3436 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3438 as_fn_arith $ac_count + 1 && ac_count=$as_val
3439 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3440 # Best one so far, save it but keep looking for a better one
3441 ac_cv_path_EGREP="$ac_path_EGREP"
3442 ac_path_EGREP_max=$ac_count
3443 fi
3444 # 10*(2^10) chars as input seems more than enough
3445 test $ac_count -gt 10 && break
3446 done
3447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3448 esac
3449
3450 $ac_path_EGREP_found && break 3
3451 done
3452 done
3453 done
3454 IFS=$as_save_IFS
3455 if test -z "$ac_cv_path_EGREP"; then
3456 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3457 fi
3458 else
3459 ac_cv_path_EGREP=$EGREP
3460 fi
3461
3462 fi
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3465 $as_echo "$ac_cv_path_EGREP" >&6; }
3466 EGREP="$ac_cv_path_EGREP"
3467
3468
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3470 $as_echo_n "checking for ANSI C header files... " >&6; }
3471 if ${ac_cv_header_stdc+:} false; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3476 #include <stdlib.h>
3477 #include <stdarg.h>
3478 #include <string.h>
3479 #include <float.h>
3480
3481 int
3482 main ()
3483 {
3484
3485 ;
3486 return 0;
3487 }
3488 _ACEOF
3489 if ac_fn_c_try_compile "$LINENO"; then :
3490 ac_cv_header_stdc=yes
3491 else
3492 ac_cv_header_stdc=no
3493 fi
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495
3496 if test $ac_cv_header_stdc = yes; then
3497 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500 #include <string.h>
3501
3502 _ACEOF
3503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3504 $EGREP "memchr" >/dev/null 2>&1; then :
3505
3506 else
3507 ac_cv_header_stdc=no
3508 fi
3509 rm -f conftest*
3510
3511 fi
3512
3513 if test $ac_cv_header_stdc = yes; then
3514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517 #include <stdlib.h>
3518
3519 _ACEOF
3520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3521 $EGREP "free" >/dev/null 2>&1; then :
3522
3523 else
3524 ac_cv_header_stdc=no
3525 fi
3526 rm -f conftest*
3527
3528 fi
3529
3530 if test $ac_cv_header_stdc = yes; then
3531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3532 if test "$cross_compiling" = yes; then :
3533 :
3534 else
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3537 #include <ctype.h>
3538 #include <stdlib.h>
3539 #if ((' ' & 0x0FF) == 0x020)
3540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3542 #else
3543 # define ISLOWER(c) \
3544 (('a' <= (c) && (c) <= 'i') \
3545 || ('j' <= (c) && (c) <= 'r') \
3546 || ('s' <= (c) && (c) <= 'z'))
3547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3548 #endif
3549
3550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3551 int
3552 main ()
3553 {
3554 int i;
3555 for (i = 0; i < 256; i++)
3556 if (XOR (islower (i), ISLOWER (i))
3557 || toupper (i) != TOUPPER (i))
3558 return 2;
3559 return 0;
3560 }
3561 _ACEOF
3562 if ac_fn_c_try_run "$LINENO"; then :
3563
3564 else
3565 ac_cv_header_stdc=no
3566 fi
3567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3568 conftest.$ac_objext conftest.beam conftest.$ac_ext
3569 fi
3570
3571 fi
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3574 $as_echo "$ac_cv_header_stdc" >&6; }
3575 if test $ac_cv_header_stdc = yes; then
3576
3577 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3578
3579 fi
3580
3581 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3582 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3583 inttypes.h stdint.h unistd.h
3584 do :
3585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3586 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3587 "
3588 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3589 cat >>confdefs.h <<_ACEOF
3590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3591 _ACEOF
3592
3593 fi
3594
3595 done
3596
3597
3598
3599 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3600 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3601 MINIX=yes
3602 else
3603 MINIX=
3604 fi
3605
3606
3607 if test "$MINIX" = yes; then
3608
3609 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3610
3611
3612 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3613
3614
3615 $as_echo "#define _MINIX 1" >>confdefs.h
3616
3617 fi
3618
3619
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3621 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3622 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3627
3628 # define __EXTENSIONS__ 1
3629 $ac_includes_default
3630 int
3631 main ()
3632 {
3633
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 if ac_fn_c_try_compile "$LINENO"; then :
3639 ac_cv_safe_to_define___extensions__=yes
3640 else
3641 ac_cv_safe_to_define___extensions__=no
3642 fi
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 fi
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3646 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3647 test $ac_cv_safe_to_define___extensions__ = yes &&
3648 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3649
3650 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3651
3652 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3653
3654 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3655
3656 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3657
3658
3659
3660
3661 OLD_CFLAGS="$CFLAGS"
3662 ac_ext=c
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667 if test -n "$ac_tool_prefix"; then
3668 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3669 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_CC+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3688 fi
3689 done
3690 done
3691 IFS=$as_save_IFS
3692
3693 fi
3694 fi
3695 CC=$ac_cv_prog_CC
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 fi
3703
3704
3705 fi
3706 if test -z "$ac_cv_prog_CC"; then
3707 ac_ct_CC=$CC
3708 # Extract the first word of "gcc", so it can be a program name with args.
3709 set dummy gcc; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 if test -n "$ac_ct_CC"; then
3716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3717 else
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3720 do
3721 IFS=$as_save_IFS
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725 ac_cv_prog_ac_ct_CC="gcc"
3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727 break 2
3728 fi
3729 done
3730 done
3731 IFS=$as_save_IFS
3732
3733 fi
3734 fi
3735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3736 if test -n "$ac_ct_CC"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3738 $as_echo "$ac_ct_CC" >&6; }
3739 else
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3742 fi
3743
3744 if test "x$ac_ct_CC" = x; then
3745 CC=""
3746 else
3747 case $cross_compiling:$ac_tool_warned in
3748 yes:)
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751 ac_tool_warned=yes ;;
3752 esac
3753 CC=$ac_ct_CC
3754 fi
3755 else
3756 CC="$ac_cv_prog_CC"
3757 fi
3758
3759 if test -z "$CC"; then
3760 if test -n "$ac_tool_prefix"; then
3761 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3762 set dummy ${ac_tool_prefix}cc; ac_word=$2
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if ${ac_cv_prog_CC+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 ac_cv_prog_CC="${ac_tool_prefix}cc"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782 done
3783 done
3784 IFS=$as_save_IFS
3785
3786 fi
3787 fi
3788 CC=$ac_cv_prog_CC
3789 if test -n "$CC"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791 $as_echo "$CC" >&6; }
3792 else
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 fi
3796
3797
3798 fi
3799 fi
3800 if test -z "$CC"; then
3801 # Extract the first word of "cc", so it can be a program name with args.
3802 set dummy cc; ac_word=$2
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if ${ac_cv_prog_CC+:} false; then :
3806 $as_echo_n "(cached) " >&6
3807 else
3808 if test -n "$CC"; then
3809 ac_cv_prog_CC="$CC" # Let the user override the test.
3810 else
3811 ac_prog_rejected=no
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3814 do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3820 ac_prog_rejected=yes
3821 continue
3822 fi
3823 ac_cv_prog_CC="cc"
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 break 2
3826 fi
3827 done
3828 done
3829 IFS=$as_save_IFS
3830
3831 if test $ac_prog_rejected = yes; then
3832 # We found a bogon in the path, so make sure we never use it.
3833 set dummy $ac_cv_prog_CC
3834 shift
3835 if test $# != 0; then
3836 # We chose a different compiler from the bogus one.
3837 # However, it has the same basename, so the bogon will be chosen
3838 # first if we set CC to just the basename; use the full file name.
3839 shift
3840 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3841 fi
3842 fi
3843 fi
3844 fi
3845 CC=$ac_cv_prog_CC
3846 if test -n "$CC"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3848 $as_echo "$CC" >&6; }
3849 else
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3852 fi
3853
3854
3855 fi
3856 if test -z "$CC"; then
3857 if test -n "$ac_tool_prefix"; then
3858 for ac_prog in cl.exe
3859 do
3860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if ${ac_cv_prog_CC+:} false; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 if test -n "$CC"; then
3868 ac_cv_prog_CC="$CC" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3877 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881 done
3882 done
3883 IFS=$as_save_IFS
3884
3885 fi
3886 fi
3887 CC=$ac_cv_prog_CC
3888 if test -n "$CC"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3890 $as_echo "$CC" >&6; }
3891 else
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3894 fi
3895
3896
3897 test -n "$CC" && break
3898 done
3899 fi
3900 if test -z "$CC"; then
3901 ac_ct_CC=$CC
3902 for ac_prog in cl.exe
3903 do
3904 # Extract the first word of "$ac_prog", so it can be a program name with args.
3905 set dummy $ac_prog; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 if test -n "$ac_ct_CC"; then
3912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 ac_cv_prog_ac_ct_CC="$ac_prog"
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3924 fi
3925 done
3926 done
3927 IFS=$as_save_IFS
3928
3929 fi
3930 fi
3931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3932 if test -n "$ac_ct_CC"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3934 $as_echo "$ac_ct_CC" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3938 fi
3939
3940
3941 test -n "$ac_ct_CC" && break
3942 done
3943
3944 if test "x$ac_ct_CC" = x; then
3945 CC=""
3946 else
3947 case $cross_compiling:$ac_tool_warned in
3948 yes:)
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3951 ac_tool_warned=yes ;;
3952 esac
3953 CC=$ac_ct_CC
3954 fi
3955 fi
3956
3957 fi
3958
3959
3960 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962 as_fn_error $? "no acceptable C compiler found in \$PATH
3963 See \`config.log' for more details" "$LINENO" 5; }
3964
3965 # Provide some information about the compiler.
3966 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3967 set X $ac_compile
3968 ac_compiler=$2
3969 for ac_option in --version -v -V -qversion; do
3970 { { ac_try="$ac_compiler $ac_option >&5"
3971 case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 $as_echo "$ac_try_echo"; } >&5
3977 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3978 ac_status=$?
3979 if test -s conftest.err; then
3980 sed '10a\
3981 ... rest of stderr output deleted ...
3982 10q' conftest.err >conftest.er1
3983 cat conftest.er1 >&5
3984 fi
3985 rm -f conftest.er1 conftest.err
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }
3988 done
3989
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3991 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3992 if ${ac_cv_c_compiler_gnu+:} false; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997
3998 int
3999 main ()
4000 {
4001 #ifndef __GNUC__
4002 choke me
4003 #endif
4004
4005 ;
4006 return 0;
4007 }
4008 _ACEOF
4009 if ac_fn_c_try_compile "$LINENO"; then :
4010 ac_compiler_gnu=yes
4011 else
4012 ac_compiler_gnu=no
4013 fi
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4016
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4019 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4020 if test $ac_compiler_gnu = yes; then
4021 GCC=yes
4022 else
4023 GCC=
4024 fi
4025 ac_test_CFLAGS=${CFLAGS+set}
4026 ac_save_CFLAGS=$CFLAGS
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4028 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4029 if ${ac_cv_prog_cc_g+:} false; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 ac_save_c_werror_flag=$ac_c_werror_flag
4033 ac_c_werror_flag=yes
4034 ac_cv_prog_cc_g=no
4035 CFLAGS="-g"
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038
4039 int
4040 main ()
4041 {
4042
4043 ;
4044 return 0;
4045 }
4046 _ACEOF
4047 if ac_fn_c_try_compile "$LINENO"; then :
4048 ac_cv_prog_cc_g=yes
4049 else
4050 CFLAGS=""
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4053
4054 int
4055 main ()
4056 {
4057
4058 ;
4059 return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063
4064 else
4065 ac_c_werror_flag=$ac_save_c_werror_flag
4066 CFLAGS="-g"
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069
4070 int
4071 main ()
4072 {
4073
4074 ;
4075 return 0;
4076 }
4077 _ACEOF
4078 if ac_fn_c_try_compile "$LINENO"; then :
4079 ac_cv_prog_cc_g=yes
4080 fi
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 fi
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 fi
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 ac_c_werror_flag=$ac_save_c_werror_flag
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4089 $as_echo "$ac_cv_prog_cc_g" >&6; }
4090 if test "$ac_test_CFLAGS" = set; then
4091 CFLAGS=$ac_save_CFLAGS
4092 elif test $ac_cv_prog_cc_g = yes; then
4093 if test "$GCC" = yes; then
4094 CFLAGS="-g -O2"
4095 else
4096 CFLAGS="-g"
4097 fi
4098 else
4099 if test "$GCC" = yes; then
4100 CFLAGS="-O2"
4101 else
4102 CFLAGS=
4103 fi
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4106 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4107 if ${ac_cv_prog_cc_c89+:} false; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 ac_cv_prog_cc_c89=no
4111 ac_save_CC=$CC
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114 #include <stdarg.h>
4115 #include <stdio.h>
4116 #include <sys/types.h>
4117 #include <sys/stat.h>
4118 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4119 struct buf { int x; };
4120 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4121 static char *e (p, i)
4122 char **p;
4123 int i;
4124 {
4125 return p[i];
4126 }
4127 static char *f (char * (*g) (char **, int), char **p, ...)
4128 {
4129 char *s;
4130 va_list v;
4131 va_start (v,p);
4132 s = g (p, va_arg (v,int));
4133 va_end (v);
4134 return s;
4135 }
4136
4137 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4138 function prototypes and stuff, but not '\xHH' hex character constants.
4139 These don't provoke an error unfortunately, instead are silently treated
4140 as 'x'. The following induces an error, until -std is added to get
4141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4142 array size at least. It's necessary to write '\x00'==0 to get something
4143 that's true only with -std. */
4144 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4145
4146 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4147 inside strings and character constants. */
4148 #define FOO(x) 'x'
4149 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4150
4151 int test (int i, double x);
4152 struct s1 {int (*f) (int a);};
4153 struct s2 {int (*f) (double a);};
4154 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4155 int argc;
4156 char **argv;
4157 int
4158 main ()
4159 {
4160 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4161 ;
4162 return 0;
4163 }
4164 _ACEOF
4165 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4166 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4167 do
4168 CC="$ac_save_CC $ac_arg"
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_cv_prog_cc_c89=$ac_arg
4171 fi
4172 rm -f core conftest.err conftest.$ac_objext
4173 test "x$ac_cv_prog_cc_c89" != "xno" && break
4174 done
4175 rm -f conftest.$ac_ext
4176 CC=$ac_save_CC
4177
4178 fi
4179 # AC_CACHE_VAL
4180 case "x$ac_cv_prog_cc_c89" in
4181 x)
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4183 $as_echo "none needed" >&6; } ;;
4184 xno)
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4186 $as_echo "unsupported" >&6; } ;;
4187 *)
4188 CC="$CC $ac_cv_prog_cc_c89"
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4190 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4191 esac
4192 if test "x$ac_cv_prog_cc_c89" != xno; then :
4193
4194 fi
4195
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201
4202 ac_ext=c
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207
4208
4209 CFLAGS="$OLD_CFLAGS"
4210
4211 ac_aux_dir=
4212 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4213 if test -f "$ac_dir/install-sh"; then
4214 ac_aux_dir=$ac_dir
4215 ac_install_sh="$ac_aux_dir/install-sh -c"
4216 break
4217 elif test -f "$ac_dir/install.sh"; then
4218 ac_aux_dir=$ac_dir
4219 ac_install_sh="$ac_aux_dir/install.sh -c"
4220 break
4221 elif test -f "$ac_dir/shtool"; then
4222 ac_aux_dir=$ac_dir
4223 ac_install_sh="$ac_aux_dir/shtool install -c"
4224 break
4225 fi
4226 done
4227 if test -z "$ac_aux_dir"; then
4228 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4229 fi
4230
4231 # These three variables are undocumented and unsupported,
4232 # and are intended to be withdrawn in a future Autoconf release.
4233 # They can cause serious problems if a builder's source tree is in a directory
4234 # whose full name contains unusual characters.
4235 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4236 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4237 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4238
4239
4240
4241
4242 subdirs="$subdirs libratbox"
4243
4244
4245
4246 if test "$ac_cv_c_compiler_gnu" != yes; then
4247
4248 SGS=no
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4250 $as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4251 case `$CC -version 2>&1` in
4252 *TenDRA*)
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4254 $as_echo "yes, TenDRA" >&6; }
4255 IRC_CFLAGS=""
4256 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4257 SGS=yes
4258 TenDRA=yes
4259 ;;
4260 *MIPSpro*)
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4262 $as_echo "yes, MIPSpro" >&6; }
4263 MIPSpro=yes
4264 SGS=yes
4265 ;;
4266 *)
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4269 TenDRA=no
4270 MIPSpro=no
4271 ;;
4272 esac
4273
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4275 $as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4276 case `$CC -V 2>&1` in
4277 *Sun*WorkShop* | *Forte*Developer*)
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4279 $as_echo "Sun Workshop/Forte" >&6; }
4280 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4281 SunWorkShop=yes
4282 SGS=yes
4283 ;;
4284 *Tru64*)
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4286 $as_echo "Tru64 cc" >&6; }
4287 IRC_CFLAGS="-O2"
4288 CPPFLAGS="-I/usr/local/include"
4289 Tru=yes
4290 ;;
4291 *HP*ANSI*)
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4293 $as_echo "HPUX cc" >&6; }
4294 HPUX=yes
4295 IRC_CFLAGS="+e"
4296 ;;
4297 *)
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4300 ;;
4301 esac
4302
4303 fi
4304
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4306 $as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4307 OSNAME=`uname -s`
4308 case "$OSNAME" in
4309 HP-UX*)
4310
4311 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4313 $as_echo "assuming old HPUX with its own cc" >&6; }
4314 IRC_CFLAGS="$IRC_CFLAGS +e"
4315 HPUX=yes
4316 else
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4318 $as_echo "already using newer HPUX" >&6; }
4319 fi
4320 ;;
4321 SunOS*)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4323 $as_echo "SunOS or Solaris" >&6; }
4324
4325 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4326
4327 SUN=yes
4328 ;;
4329 AIX*)
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4331 $as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4332 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4333 ;;
4334 *)
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4337 ;;
4338 esac
4339
4340 if test "$ac_cv_c_compiler_gnu" = yes; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4342 $as_echo_n "checking if $CC is Apple GCC... " >&6; }
4343
4344 case `$CC -v 2>&1 | tail -n 1` in
4345 *Apple*)
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4347 $as_echo "yes" >&6; }
4348 AppleGCC=yes
4349 ;;
4350 *)
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4353 AppleGCC=no
4354 ;;
4355 esac
4356
4357 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
4358 fi
4359
4360 if test "$ac_cv_prog_cc_g" = yes; then
4361 if test "$Tru" = yes; then
4362 IRC_CFLAGS="$IRC_CFLAGS -g3"
4363 else
4364 IRC_CFLAGS="$IRC_CFLAGS -g"
4365 fi
4366 fi
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4369 $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4370 if test "$SGS" = "yes"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4372 $as_echo "yes" >&6; }
4373 else
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4376 fi
4377
4378 # Extract the first word of "mkdep", so it can be a program name with args.
4379 set dummy mkdep; ac_word=$2
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4381 $as_echo_n "checking for $ac_word... " >&6; }
4382 if ${ac_cv_path_MKDEP+:} false; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 case $MKDEP in
4386 [\\/]* | ?:[\\/]*)
4387 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4388 ;;
4389 *)
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4400 fi
4401 done
4402 done
4403 IFS=$as_save_IFS
4404
4405 ;;
4406 esac
4407 fi
4408 MKDEP=$ac_cv_path_MKDEP
4409 if test -n "$MKDEP"; then
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4411 $as_echo "$MKDEP" >&6; }
4412 else
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414 $as_echo "no" >&6; }
4415 fi
4416
4417
4418 # Extract the first word of "makedepend", so it can be a program name with args.
4419 set dummy makedepend; ac_word=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if ${ac_cv_path_MAKEDEPEND+:} false; then :
4423 $as_echo_n "(cached) " >&6
4424 else
4425 case $MAKEDEPEND in
4426 [\\/]* | ?:[\\/]*)
4427 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4428 ;;
4429 *)
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4437 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4440 fi
4441 done
4442 done
4443 IFS=$as_save_IFS
4444
4445 ;;
4446 esac
4447 fi
4448 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4449 if test -n "$MAKEDEPEND"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4451 $as_echo "$MAKEDEPEND" >&6; }
4452 else
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4455 fi
4456
4457
4458
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4460 $as_echo_n "checking how to generate dependency info... " >&6; }
4461
4462 STDOUT="> .depend"
4463
4464 if test "$ac_cv_c_compiler_gnu" = yes; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4466 $as_echo "gcc -MM" >&6; }
4467 MKDEP="$CC -MM"
4468 elif test ! -z "$MKDEP"; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4470 $as_echo "mkdep" >&6; }
4471
4472 if test -z "$Tru"; then
4473 STDOUT=""
4474 else
4475 STDOUT=" 2> /dev/null"
4476 fi
4477 elif test "$SunWorkShop" = yes; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4479 $as_echo "$CC -xM" >&6; }
4480 MKDEP="$CC -xM"
4481 STDOUT="> .depend 2> /dev/null"
4482 elif test ! -z "$MAKEDEPEND"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4484 $as_echo "makedepend" >&6; }
4485 MKDEP="$MAKEDEPEND -f-"
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4488 $as_echo "nothing suitable.. forget it!" >&6; }
4489 MKDEP=":"
4490 fi
4491
4492
4493
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4496 $as_echo_n "checking for /dev/null... " >&6; }
4497 if test -c /dev/null ; then
4498
4499 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4500
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502 $as_echo "yes" >&6; }
4503 else
4504
4505 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4506
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4508 $as_echo "no - using devnull.log" >&6; }
4509 fi
4510
4511 if test ! -z "$CFLAGS"; then
4512 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
4513 fi
4514
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4516 $as_echo_n "checking for library containing strerror... " >&6; }
4517 if ${ac_cv_search_strerror+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 ac_func_search_save_LIBS=$LIBS
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523
4524 /* Override any GCC internal prototype to avoid an error.
4525 Use char because int might match the return type of a GCC
4526 builtin and then its argument prototype would still apply. */
4527 #ifdef __cplusplus
4528 extern "C"
4529 #endif
4530 char strerror ();
4531 int
4532 main ()
4533 {
4534 return strerror ();
4535 ;
4536 return 0;
4537 }
4538 _ACEOF
4539 for ac_lib in '' cposix; do
4540 if test -z "$ac_lib"; then
4541 ac_res="none required"
4542 else
4543 ac_res=-l$ac_lib
4544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4545 fi
4546 if ac_fn_c_try_link "$LINENO"; then :
4547 ac_cv_search_strerror=$ac_res
4548 fi
4549 rm -f core conftest.err conftest.$ac_objext \
4550 conftest$ac_exeext
4551 if ${ac_cv_search_strerror+:} false; then :
4552 break
4553 fi
4554 done
4555 if ${ac_cv_search_strerror+:} false; then :
4556
4557 else
4558 ac_cv_search_strerror=no
4559 fi
4560 rm conftest.$ac_ext
4561 LIBS=$ac_func_search_save_LIBS
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4564 $as_echo "$ac_cv_search_strerror" >&6; }
4565 ac_res=$ac_cv_search_strerror
4566 if test "$ac_res" != no; then :
4567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4568
4569 fi
4570
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4572 $as_echo_n "checking for inline... " >&6; }
4573 if ${ac_cv_c_inline+:} false; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 ac_cv_c_inline=no
4577 for ac_kw in inline __inline__ __inline; do
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4580 #ifndef __cplusplus
4581 typedef int foo_t;
4582 static $ac_kw foo_t static_foo () {return 0; }
4583 $ac_kw foo_t foo () {return 0; }
4584 #endif
4585
4586 _ACEOF
4587 if ac_fn_c_try_compile "$LINENO"; then :
4588 ac_cv_c_inline=$ac_kw
4589 fi
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 test "$ac_cv_c_inline" != no && break
4592 done
4593
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4596 $as_echo "$ac_cv_c_inline" >&6; }
4597
4598 case $ac_cv_c_inline in
4599 inline | yes) ;;
4600 *)
4601 case $ac_cv_c_inline in
4602 no) ac_val=;;
4603 *) ac_val=$ac_cv_c_inline;;
4604 esac
4605 cat >>confdefs.h <<_ACEOF
4606 #ifndef __cplusplus
4607 #define inline $ac_val
4608 #endif
4609 _ACEOF
4610 ;;
4611 esac
4612
4613 if test $ac_cv_c_compiler_gnu = yes; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4615 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4616 if ${ac_cv_prog_gcc_traditional+:} false; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 ac_pattern="Autoconf.*'x'"
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622 #include <sgtty.h>
4623 Autoconf TIOCGETP
4624 _ACEOF
4625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4627 ac_cv_prog_gcc_traditional=yes
4628 else
4629 ac_cv_prog_gcc_traditional=no
4630 fi
4631 rm -f conftest*
4632
4633
4634 if test $ac_cv_prog_gcc_traditional = no; then
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637 #include <termio.h>
4638 Autoconf TCGETA
4639 _ACEOF
4640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4641 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4642 ac_cv_prog_gcc_traditional=yes
4643 fi
4644 rm -f conftest*
4645
4646 fi
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4649 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4650 if test $ac_cv_prog_gcc_traditional = yes; then
4651 CC="$CC -traditional"
4652 fi
4653 fi
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4656 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4657 set x ${MAKE-make}
4658 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4659 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 cat >conftest.make <<\_ACEOF
4663 SHELL = /bin/sh
4664 all:
4665 @echo '@@@%%%=$(MAKE)=@@@%%%'
4666 _ACEOF
4667 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4668 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4669 *@@@%%%=?*=@@@%%%*)
4670 eval ac_cv_prog_make_${ac_make}_set=yes;;
4671 *)
4672 eval ac_cv_prog_make_${ac_make}_set=no;;
4673 esac
4674 rm -f conftest.make
4675 fi
4676 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4678 $as_echo "yes" >&6; }
4679 SET_MAKE=
4680 else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4683 SET_MAKE="MAKE=${MAKE-make}"
4684 fi
4685
4686 # Find a good install program. We prefer a C program (faster),
4687 # so one script is as good as another. But avoid the broken or
4688 # incompatible versions:
4689 # SysV /etc/install, /usr/sbin/install
4690 # SunOS /usr/etc/install
4691 # IRIX /sbin/install
4692 # AIX /bin/install
4693 # AmigaOS /C/install, which installs bootblocks on floppy discs
4694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4697 # OS/2's system install, which has a completely different semantic
4698 # ./install, which can be erroneously created by make from ./install.sh.
4699 # Reject install programs that cannot install multiple files.
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4701 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4702 if test -z "$INSTALL"; then
4703 if ${ac_cv_path_install+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 # Account for people who put trailing slashes in PATH elements.
4712 case $as_dir/ in #((
4713 ./ | .// | /[cC]/* | \
4714 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4715 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4716 /usr/ucb/* ) ;;
4717 *)
4718 # OSF1 and SCO ODT 3.0 have their own names for install.
4719 # Don't use installbsd from OSF since it installs stuff as root
4720 # by default.
4721 for ac_prog in ginstall scoinst install; do
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4724 if test $ac_prog = install &&
4725 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4726 # AIX install. It has an incompatible calling convention.
4727 :
4728 elif test $ac_prog = install &&
4729 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4730 # program-specific install script used by HP pwplus--don't use.
4731 :
4732 else
4733 rm -rf conftest.one conftest.two conftest.dir
4734 echo one > conftest.one
4735 echo two > conftest.two
4736 mkdir conftest.dir
4737 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4738 test -s conftest.one && test -s conftest.two &&
4739 test -s conftest.dir/conftest.one &&
4740 test -s conftest.dir/conftest.two
4741 then
4742 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4743 break 3
4744 fi
4745 fi
4746 fi
4747 done
4748 done
4749 ;;
4750 esac
4751
4752 done
4753 IFS=$as_save_IFS
4754
4755 rm -rf conftest.one conftest.two conftest.dir
4756
4757 fi
4758 if test "${ac_cv_path_install+set}" = set; then
4759 INSTALL=$ac_cv_path_install
4760 else
4761 # As a last resort, use the slow shell script. Don't cache a
4762 # value for INSTALL within a source directory, because that will
4763 # break other packages using the cache if that directory is
4764 # removed, or if the value is a relative name.
4765 INSTALL=$ac_install_sh
4766 fi
4767 fi
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4769 $as_echo "$INSTALL" >&6; }
4770
4771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4772 # It thinks the first close brace ends the variable substitution.
4773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4774
4775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4776
4777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4778
4779 # Extract the first word of "rm", so it can be a program name with args.
4780 set dummy rm; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_path_RM+:} false; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 case $RM in
4787 [\\/]* | ?:[\\/]*)
4788 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4789 ;;
4790 *)
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4801 fi
4802 done
4803 done
4804 IFS=$as_save_IFS
4805
4806 ;;
4807 esac
4808 fi
4809 RM=$ac_cv_path_RM
4810 if test -n "$RM"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4812 $as_echo "$RM" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4816 fi
4817
4818
4819 # Extract the first word of "cp", so it can be a program name with args.
4820 set dummy cp; ac_word=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if ${ac_cv_path_CP+:} false; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 case $CP in
4827 [\\/]* | ?:[\\/]*)
4828 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4829 ;;
4830 *)
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4833 do
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 break 2
4841 fi
4842 done
4843 done
4844 IFS=$as_save_IFS
4845
4846 ;;
4847 esac
4848 fi
4849 CP=$ac_cv_path_CP
4850 if test -n "$CP"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4852 $as_echo "$CP" >&6; }
4853 else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4856 fi
4857
4858
4859 # Extract the first word of "mv", so it can be a program name with args.
4860 set dummy mv; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if ${ac_cv_path_MV+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 case $MV in
4867 [\\/]* | ?:[\\/]*)
4868 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4869 ;;
4870 *)
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4873 do
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 break 2
4881 fi
4882 done
4883 done
4884 IFS=$as_save_IFS
4885
4886 ;;
4887 esac
4888 fi
4889 MV=$ac_cv_path_MV
4890 if test -n "$MV"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4892 $as_echo "$MV" >&6; }
4893 else
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4896 fi
4897
4898
4899 # Extract the first word of "ln", so it can be a program name with args.
4900 set dummy ln; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if ${ac_cv_path_LN+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 case $LN in
4907 [\\/]* | ?:[\\/]*)
4908 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4909 ;;
4910 *)
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922 done
4923 done
4924 IFS=$as_save_IFS
4925
4926 ;;
4927 esac
4928 fi
4929 LN=$ac_cv_path_LN
4930 if test -n "$LN"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4932 $as_echo "$LN" >&6; }
4933 else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4936 fi
4937
4938
4939 # Extract the first word of "sed", so it can be a program name with args.
4940 set dummy sed; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_path_SED+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 case $SED in
4947 [\\/]* | ?:[\\/]*)
4948 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4949 ;;
4950 *)
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4961 fi
4962 done
4963 done
4964 IFS=$as_save_IFS
4965
4966 ;;
4967 esac
4968 fi
4969 SED=$ac_cv_path_SED
4970 if test -n "$SED"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4972 $as_echo "$SED" >&6; }
4973 else
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4976 fi
4977
4978
4979 # Extract the first word of "ar", so it can be a program name with args.
4980 set dummy ar; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_path_AR+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 case $AR in
4987 [\\/]* | ?:[\\/]*)
4988 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4989 ;;
4990 *)
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4998 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5001 fi
5002 done
5003 done
5004 IFS=$as_save_IFS
5005
5006 ;;
5007 esac
5008 fi
5009 AR=$ac_cv_path_AR
5010 if test -n "$AR"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5012 $as_echo "$AR" >&6; }
5013 else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016 fi
5017
5018
5019 # Extract the first word of "ld", so it can be a program name with args.
5020 set dummy ld; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_path_LD+:} false; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 case $LD in
5027 [\\/]* | ?:[\\/]*)
5028 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5029 ;;
5030 *)
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042 done
5043 done
5044 IFS=$as_save_IFS
5045
5046 ;;
5047 esac
5048 fi
5049 LD=$ac_cv_path_LD
5050 if test -n "$LD"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5052 $as_echo "$LD" >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5056 fi
5057
5058
5059 # Extract the first word of "ranlib", so it can be a program name with args.
5060 set dummy ranlib; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if ${ac_cv_path_RANLIB+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 case $RANLIB in
5067 [\\/]* | ?:[\\/]*)
5068 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5069 ;;
5070 *)
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086 ;;
5087 esac
5088 fi
5089 RANLIB=$ac_cv_path_RANLIB
5090 if test -n "$RANLIB"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5092 $as_echo "$RANLIB" >&6; }
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5096 fi
5097
5098
5099 # Extract the first word of "touch", so it can be a program name with args.
5100 set dummy touch; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if ${ac_cv_path_TOUCH+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 case $TOUCH in
5107 [\\/]* | ?:[\\/]*)
5108 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5109 ;;
5110 *)
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122 done
5123 done
5124 IFS=$as_save_IFS
5125
5126 ;;
5127 esac
5128 fi
5129 TOUCH=$ac_cv_path_TOUCH
5130 if test -n "$TOUCH"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5132 $as_echo "$TOUCH" >&6; }
5133 else
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5137
5138
5139
5140 for ac_prog in 'bison -y' byacc
5141 do
5142 # Extract the first word of "$ac_prog", so it can be a program name with args.
5143 set dummy $ac_prog; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_YACC+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if test -n "$YACC"; then
5150 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159 ac_cv_prog_YACC="$ac_prog"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163 done
5164 done
5165 IFS=$as_save_IFS
5166
5167 fi
5168 fi
5169 YACC=$ac_cv_prog_YACC
5170 if test -n "$YACC"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5172 $as_echo "$YACC" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5176 fi
5177
5178
5179 test -n "$YACC" && break
5180 done
5181 test -n "$YACC" || YACC="yacc"
5182
5183
5184 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
5185 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
5186 fi
5187
5188 for ac_prog in flex lex
5189 do
5190 # Extract the first word of "$ac_prog", so it can be a program name with args.
5191 set dummy $ac_prog; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if ${ac_cv_prog_LEX+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if test -n "$LEX"; then
5198 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_prog_LEX="$ac_prog"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211 done
5212 done
5213 IFS=$as_save_IFS
5214
5215 fi
5216 fi
5217 LEX=$ac_cv_prog_LEX
5218 if test -n "$LEX"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5220 $as_echo "$LEX" >&6; }
5221 else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5224 fi
5225
5226
5227 test -n "$LEX" && break
5228 done
5229 test -n "$LEX" || LEX=":"
5230
5231 if test "x$LEX" != "x:"; then
5232 cat >conftest.l <<_ACEOF
5233 %%
5234 a { ECHO; }
5235 b { REJECT; }
5236 c { yymore (); }
5237 d { yyless (1); }
5238 e { yyless (input () != 0); }
5239 f { unput (yytext[0]); }
5240 . { BEGIN INITIAL; }
5241 %%
5242 #ifdef YYTEXT_POINTER
5243 extern char *yytext;
5244 #endif
5245 int
5246 main (void)
5247 {
5248 return ! yylex () + ! yywrap ();
5249 }
5250 _ACEOF
5251 { { ac_try="$LEX conftest.l"
5252 case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255 esac
5256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5257 $as_echo "$ac_try_echo"; } >&5
5258 (eval "$LEX conftest.l") 2>&5
5259 ac_status=$?
5260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5261 test $ac_status = 0; }
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5263 $as_echo_n "checking lex output file root... " >&6; }
5264 if ${ac_cv_prog_lex_root+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267
5268 if test -f lex.yy.c; then
5269 ac_cv_prog_lex_root=lex.yy
5270 elif test -f lexyy.c; then
5271 ac_cv_prog_lex_root=lexyy
5272 else
5273 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5274 fi
5275 fi
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5277 $as_echo "$ac_cv_prog_lex_root" >&6; }
5278 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5279
5280 if test -z "${LEXLIB+set}"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5282 $as_echo_n "checking lex library... " >&6; }
5283 if ${ac_cv_lib_lex+:} false; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286
5287 ac_save_LIBS=$LIBS
5288 ac_cv_lib_lex='none needed'
5289 for ac_lib in '' -lfl -ll; do
5290 LIBS="$ac_lib $ac_save_LIBS"
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 `cat $LEX_OUTPUT_ROOT.c`
5294 _ACEOF
5295 if ac_fn_c_try_link "$LINENO"; then :
5296 ac_cv_lib_lex=$ac_lib
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext \
5299 conftest$ac_exeext conftest.$ac_ext
5300 test "$ac_cv_lib_lex" != 'none needed' && break
5301 done
5302 LIBS=$ac_save_LIBS
5303
5304 fi
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5306 $as_echo "$ac_cv_lib_lex" >&6; }
5307 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5308 fi
5309
5310
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5312 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5313 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 # POSIX says lex can declare yytext either as a pointer or an array; the
5317 # default is implementation-dependent. Figure out which it is, since
5318 # not all implementations provide the %pointer and %array declarations.
5319 ac_cv_prog_lex_yytext_pointer=no
5320 ac_save_LIBS=$LIBS
5321 LIBS="$LEXLIB $ac_save_LIBS"
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324
5325 #define YYTEXT_POINTER 1
5326 `cat $LEX_OUTPUT_ROOT.c`
5327 _ACEOF
5328 if ac_fn_c_try_link "$LINENO"; then :
5329 ac_cv_prog_lex_yytext_pointer=yes
5330 fi
5331 rm -f core conftest.err conftest.$ac_objext \
5332 conftest$ac_exeext conftest.$ac_ext
5333 LIBS=$ac_save_LIBS
5334
5335 fi
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5337 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5338 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5339
5340 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5341
5342 fi
5343 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5344
5345 fi
5346
5347 if test "$LEX" = ":"; then
5348 as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
5349 fi
5350
5351 if test "$libexecdir" = '${exec_prefix}/libexec' &&
5352 test "$localstatedir" = '${prefix}/var'; then
5353 libexecdir='${bindir}'
5354 localstatedir='${prefix}'
5355 fi
5356
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5358 $as_echo_n "checking for ANSI C header files... " >&6; }
5359 if ${ac_cv_header_stdc+:} false; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 #include <stdlib.h>
5365 #include <stdarg.h>
5366 #include <string.h>
5367 #include <float.h>
5368
5369 int
5370 main ()
5371 {
5372
5373 ;
5374 return 0;
5375 }
5376 _ACEOF
5377 if ac_fn_c_try_compile "$LINENO"; then :
5378 ac_cv_header_stdc=yes
5379 else
5380 ac_cv_header_stdc=no
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383
5384 if test $ac_cv_header_stdc = yes; then
5385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #include <string.h>
5389
5390 _ACEOF
5391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5392 $EGREP "memchr" >/dev/null 2>&1; then :
5393
5394 else
5395 ac_cv_header_stdc=no
5396 fi
5397 rm -f conftest*
5398
5399 fi
5400
5401 if test $ac_cv_header_stdc = yes; then
5402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #include <stdlib.h>
5406
5407 _ACEOF
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5409 $EGREP "free" >/dev/null 2>&1; then :
5410
5411 else
5412 ac_cv_header_stdc=no
5413 fi
5414 rm -f conftest*
5415
5416 fi
5417
5418 if test $ac_cv_header_stdc = yes; then
5419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5420 if test "$cross_compiling" = yes; then :
5421 :
5422 else
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 #include <ctype.h>
5426 #include <stdlib.h>
5427 #if ((' ' & 0x0FF) == 0x020)
5428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5430 #else
5431 # define ISLOWER(c) \
5432 (('a' <= (c) && (c) <= 'i') \
5433 || ('j' <= (c) && (c) <= 'r') \
5434 || ('s' <= (c) && (c) <= 'z'))
5435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5436 #endif
5437
5438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5439 int
5440 main ()
5441 {
5442 int i;
5443 for (i = 0; i < 256; i++)
5444 if (XOR (islower (i), ISLOWER (i))
5445 || toupper (i) != TOUPPER (i))
5446 return 2;
5447 return 0;
5448 }
5449 _ACEOF
5450 if ac_fn_c_try_run "$LINENO"; then :
5451
5452 else
5453 ac_cv_header_stdc=no
5454 fi
5455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5456 conftest.$ac_objext conftest.beam conftest.$ac_ext
5457 fi
5458
5459 fi
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5462 $as_echo "$ac_cv_header_stdc" >&6; }
5463 if test $ac_cv_header_stdc = yes; then
5464
5465 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5466
5467 fi
5468
5469
5470 for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h
5471 do :
5472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5473 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5474 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5475 cat >>confdefs.h <<_ACEOF
5476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5477 _ACEOF
5478
5479 fi
5480
5481 done
5482
5483
5484
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5486 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5487 if ${ac_cv_c_const+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5492
5493 int
5494 main ()
5495 {
5496 /* FIXME: Include the comments suggested by Paul. */
5497 #ifndef __cplusplus
5498 /* Ultrix mips cc rejects this. */
5499 typedef int charset[2];
5500 const charset cs;
5501 /* SunOS 4.1.1 cc rejects this. */
5502 char const *const *pcpcc;
5503 char **ppc;
5504 /* NEC SVR4.0.2 mips cc rejects this. */
5505 struct point {int x, y;};
5506 static struct point const zero = {0,0};
5507 /* AIX XL C 1.02.0.0 rejects this.
5508 It does not let you subtract one const X* pointer from another in
5509 an arm of an if-expression whose if-part is not a constant
5510 expression */
5511 const char *g = "string";
5512 pcpcc = &g + (g ? g-g : 0);
5513 /* HPUX 7.0 cc rejects these. */
5514 ++pcpcc;
5515 ppc = (char**) pcpcc;
5516 pcpcc = (char const *const *) ppc;
5517 { /* SCO 3.2v4 cc rejects this. */
5518 char *t;
5519 char const *s = 0 ? (char *) 0 : (char const *) 0;
5520
5521 *t++ = 0;
5522 if (s) return 0;
5523 }
5524 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5525 int x[] = {25, 17};
5526 const int *foo = &x[0];
5527 ++foo;
5528 }
5529 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5530 typedef const int *iptr;
5531 iptr p = 0;
5532 ++p;
5533 }
5534 { /* AIX XL C 1.02.0.0 rejects this saying
5535 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5536 struct s { int j; const int *ap[3]; };
5537 struct s *b; b->j = 5;
5538 }
5539 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5540 const int foo = 10;
5541 if (!foo) return 0;
5542 }
5543 return !cs[0] && !zero.x;
5544 #endif
5545
5546 ;
5547 return 0;
5548 }
5549 _ACEOF
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551 ac_cv_c_const=yes
5552 else
5553 ac_cv_c_const=no
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 fi
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5558 $as_echo "$ac_cv_c_const" >&6; }
5559 if test $ac_cv_c_const = no; then
5560
5561 $as_echo "#define const /**/" >>confdefs.h
5562
5563 fi
5564
5565 if test "$ac_cv_header_machine_endian_h" = "no" ; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5567 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5568 if ${ac_cv_c_bigendian+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 ac_cv_c_bigendian=unknown
5572 # See if we're dealing with a universal compiler.
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #ifndef __APPLE_CC__
5576 not a universal capable compiler
5577 #endif
5578 typedef int dummy;
5579
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582
5583 # Check for potential -arch flags. It is not universal unless
5584 # there are at least two -arch flags with different values.
5585 ac_arch=
5586 ac_prev=
5587 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5588 if test -n "$ac_prev"; then
5589 case $ac_word in
5590 i?86 | x86_64 | ppc | ppc64)
5591 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5592 ac_arch=$ac_word
5593 else
5594 ac_cv_c_bigendian=universal
5595 break
5596 fi
5597 ;;
5598 esac
5599 ac_prev=
5600 elif test "x$ac_word" = "x-arch"; then
5601 ac_prev=arch
5602 fi
5603 done
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 if test $ac_cv_c_bigendian = unknown; then
5607 # See if sys/param.h defines the BYTE_ORDER macro.
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 #include <sys/types.h>
5611 #include <sys/param.h>
5612
5613 int
5614 main ()
5615 {
5616 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5617 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5618 && LITTLE_ENDIAN)
5619 bogus endian macros
5620 #endif
5621
5622 ;
5623 return 0;
5624 }
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627 # It does; now see whether it defined to BIG_ENDIAN or not.
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <sys/types.h>
5631 #include <sys/param.h>
5632
5633 int
5634 main ()
5635 {
5636 #if BYTE_ORDER != BIG_ENDIAN
5637 not big endian
5638 #endif
5639
5640 ;
5641 return 0;
5642 }
5643 _ACEOF
5644 if ac_fn_c_try_compile "$LINENO"; then :
5645 ac_cv_c_bigendian=yes
5646 else
5647 ac_cv_c_bigendian=no
5648 fi
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 fi
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 fi
5653 if test $ac_cv_c_bigendian = unknown; then
5654 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657 #include <limits.h>
5658
5659 int
5660 main ()
5661 {
5662 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5663 bogus endian macros
5664 #endif
5665
5666 ;
5667 return 0;
5668 }
5669 _ACEOF
5670 if ac_fn_c_try_compile "$LINENO"; then :
5671 # It does; now see whether it defined to _BIG_ENDIAN or not.
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 #include <limits.h>
5675
5676 int
5677 main ()
5678 {
5679 #ifndef _BIG_ENDIAN
5680 not big endian
5681 #endif
5682
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"; then :
5688 ac_cv_c_bigendian=yes
5689 else
5690 ac_cv_c_bigendian=no
5691 fi
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 fi
5696 if test $ac_cv_c_bigendian = unknown; then
5697 # Compile a test program.
5698 if test "$cross_compiling" = yes; then :
5699 # Try to guess by grepping values from an object file.
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 short int ascii_mm[] =
5703 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5704 short int ascii_ii[] =
5705 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5706 int use_ascii (int i) {
5707 return ascii_mm[i] + ascii_ii[i];
5708 }
5709 short int ebcdic_ii[] =
5710 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5711 short int ebcdic_mm[] =
5712 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5713 int use_ebcdic (int i) {
5714 return ebcdic_mm[i] + ebcdic_ii[i];
5715 }
5716 extern int foo;
5717
5718 int
5719 main ()
5720 {
5721 return use_ascii (foo) == use_ebcdic (foo);
5722 ;
5723 return 0;
5724 }
5725 _ACEOF
5726 if ac_fn_c_try_compile "$LINENO"; then :
5727 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5728 ac_cv_c_bigendian=yes
5729 fi
5730 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5731 if test "$ac_cv_c_bigendian" = unknown; then
5732 ac_cv_c_bigendian=no
5733 else
5734 # finding both strings is unlikely to happen, but who knows?
5735 ac_cv_c_bigendian=unknown
5736 fi
5737 fi
5738 fi
5739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740 else
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 $ac_includes_default
5744 int
5745 main ()
5746 {
5747
5748 /* Are we little or big endian? From Harbison&Steele. */
5749 union
5750 {
5751 long int l;
5752 char c[sizeof (long int)];
5753 } u;
5754 u.l = 1;
5755 return u.c[sizeof (long int) - 1] == 1;
5756
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 if ac_fn_c_try_run "$LINENO"; then :
5762 ac_cv_c_bigendian=no
5763 else
5764 ac_cv_c_bigendian=yes
5765 fi
5766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5767 conftest.$ac_objext conftest.beam conftest.$ac_ext
5768 fi
5769
5770 fi
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5773 $as_echo "$ac_cv_c_bigendian" >&6; }
5774 case $ac_cv_c_bigendian in #(
5775 yes)
5776 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5777 ;; #(
5778 no)
5779 ;; #(
5780 universal)
5781
5782 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5783
5784 ;; #(
5785 *)
5786 as_fn_error $? "unknown endianness
5787 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5788 esac
5789
5790 fi
5791 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5792 if test "x$ac_cv_type_pid_t" = xyes; then :
5793
5794 else
5795
5796 cat >>confdefs.h <<_ACEOF
5797 #define pid_t int
5798 _ACEOF
5799
5800 fi
5801
5802 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5803 if test "x$ac_cv_type_size_t" = xyes; then :
5804
5805 else
5806
5807 cat >>confdefs.h <<_ACEOF
5808 #define size_t unsigned int
5809 _ACEOF
5810
5811 fi
5812
5813 # The cast to long int works around a bug in the HP C Compiler
5814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5816 # This bug is HP SR number 8606223364.
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5818 $as_echo_n "checking size of short... " >&6; }
5819 if ${ac_cv_sizeof_short+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5823
5824 else
5825 if test "$ac_cv_type_short" = yes; then
5826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5828 as_fn_error 77 "cannot compute sizeof (short)
5829 See \`config.log' for more details" "$LINENO" 5; }
5830 else
5831 ac_cv_sizeof_short=0
5832 fi
5833 fi
5834
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5837 $as_echo "$ac_cv_sizeof_short" >&6; }
5838
5839
5840
5841 cat >>confdefs.h <<_ACEOF
5842 #define SIZEOF_SHORT $ac_cv_sizeof_short
5843 _ACEOF
5844
5845
5846 # The cast to long int works around a bug in the HP C Compiler
5847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5849 # This bug is HP SR number 8606223364.
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5851 $as_echo_n "checking size of int... " >&6; }
5852 if ${ac_cv_sizeof_int+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5856
5857 else
5858 if test "$ac_cv_type_int" = yes; then
5859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5861 as_fn_error 77 "cannot compute sizeof (int)
5862 See \`config.log' for more details" "$LINENO" 5; }
5863 else
5864 ac_cv_sizeof_int=0
5865 fi
5866 fi
5867
5868 fi
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5870 $as_echo "$ac_cv_sizeof_int" >&6; }
5871
5872
5873
5874 cat >>confdefs.h <<_ACEOF
5875 #define SIZEOF_INT $ac_cv_sizeof_int
5876 _ACEOF
5877
5878
5879 # The cast to long int works around a bug in the HP C Compiler
5880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5881 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5882 # This bug is HP SR number 8606223364.
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5884 $as_echo_n "checking size of long... " >&6; }
5885 if ${ac_cv_sizeof_long+:} false; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5889
5890 else
5891 if test "$ac_cv_type_long" = yes; then
5892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5894 as_fn_error 77 "cannot compute sizeof (long)
5895 See \`config.log' for more details" "$LINENO" 5; }
5896 else
5897 ac_cv_sizeof_long=0
5898 fi
5899 fi
5900
5901 fi
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5903 $as_echo "$ac_cv_sizeof_long" >&6; }
5904
5905
5906
5907 cat >>confdefs.h <<_ACEOF
5908 #define SIZEOF_LONG $ac_cv_sizeof_long
5909 _ACEOF
5910
5911
5912 # The cast to long int works around a bug in the HP C Compiler
5913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5915 # This bug is HP SR number 8606223364.
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5917 $as_echo_n "checking size of long long... " >&6; }
5918 if ${ac_cv_sizeof_long_long+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5922
5923 else
5924 if test "$ac_cv_type_long_long" = yes; then
5925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5927 as_fn_error 77 "cannot compute sizeof (long long)
5928 See \`config.log' for more details" "$LINENO" 5; }
5929 else
5930 ac_cv_sizeof_long_long=0
5931 fi
5932 fi
5933
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5936 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5937
5938
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5942 _ACEOF
5943
5944
5945
5946
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5948 $as_echo_n "checking for library containing socket... " >&6; }
5949 if ${ac_cv_search_socket+:} false; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 ac_func_search_save_LIBS=$LIBS
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5955
5956 /* Override any GCC internal prototype to avoid an error.
5957 Use char because int might match the return type of a GCC
5958 builtin and then its argument prototype would still apply. */
5959 #ifdef __cplusplus
5960 extern "C"
5961 #endif
5962 char socket ();
5963 int
5964 main ()
5965 {
5966 return socket ();
5967 ;
5968 return 0;
5969 }
5970 _ACEOF
5971 for ac_lib in '' socket; do
5972 if test -z "$ac_lib"; then
5973 ac_res="none required"
5974 else
5975 ac_res=-l$ac_lib
5976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5977 fi
5978 if ac_fn_c_try_link "$LINENO"; then :
5979 ac_cv_search_socket=$ac_res
5980 fi
5981 rm -f core conftest.err conftest.$ac_objext \
5982 conftest$ac_exeext
5983 if ${ac_cv_search_socket+:} false; then :
5984 break
5985 fi
5986 done
5987 if ${ac_cv_search_socket+:} false; then :
5988
5989 else
5990 ac_cv_search_socket=no
5991 fi
5992 rm conftest.$ac_ext
5993 LIBS=$ac_func_search_save_LIBS
5994 fi
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5996 $as_echo "$ac_cv_search_socket" >&6; }
5997 ac_res=$ac_cv_search_socket
5998 if test "$ac_res" != no; then :
5999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6000
6001 else
6002 as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5
6003 fi
6004
6005
6006 if test x"$SUN" = xyes; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6008 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6009 if ${ac_cv_search_inet_ntoa+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 ac_func_search_save_LIBS=$LIBS
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015
6016 /* Override any GCC internal prototype to avoid an error.
6017 Use char because int might match the return type of a GCC
6018 builtin and then its argument prototype would still apply. */
6019 #ifdef __cplusplus
6020 extern "C"
6021 #endif
6022 char inet_ntoa ();
6023 int
6024 main ()
6025 {
6026 return inet_ntoa ();
6027 ;
6028 return 0;
6029 }
6030 _ACEOF
6031 for ac_lib in '' nsl; do
6032 if test -z "$ac_lib"; then
6033 ac_res="none required"
6034 else
6035 ac_res=-l$ac_lib
6036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6037 fi
6038 if ac_fn_c_try_link "$LINENO"; then :
6039 ac_cv_search_inet_ntoa=$ac_res
6040 fi
6041 rm -f core conftest.err conftest.$ac_objext \
6042 conftest$ac_exeext
6043 if ${ac_cv_search_inet_ntoa+:} false; then :
6044 break
6045 fi
6046 done
6047 if ${ac_cv_search_inet_ntoa+:} false; then :
6048
6049 else
6050 ac_cv_search_inet_ntoa=no
6051 fi
6052 rm conftest.$ac_ext
6053 LIBS=$ac_func_search_save_LIBS
6054 fi
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6056 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6057 ac_res=$ac_cv_search_inet_ntoa
6058 if test "$ac_res" != no; then :
6059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6060
6061 else
6062 as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5
6063 fi
6064
6065 fi
6066
6067 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6068 #include <sys/socket.h>
6069 "
6070 if test "x$ac_cv_type_socklen_t" = xyes; then :
6071
6072 else
6073
6074 $as_echo "#define socklen_t unsigned int" >>confdefs.h
6075
6076 fi
6077
6078
6079 # Check whether --enable-ipv6 was given.
6080 if test "${enable_ipv6+set}" = set; then :
6081 enableval=$enable_ipv6; ipv6=$enableval
6082 else
6083 ipv6=no
6084 fi
6085
6086
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6088 $as_echo_n "checking for library containing crypt... " >&6; }
6089 if ${ac_cv_search_crypt+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092 ac_func_search_save_LIBS=$LIBS
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6095
6096 /* Override any GCC internal prototype to avoid an error.
6097 Use char because int might match the return type of a GCC
6098 builtin and then its argument prototype would still apply. */
6099 #ifdef __cplusplus
6100 extern "C"
6101 #endif
6102 char crypt ();
6103 int
6104 main ()
6105 {
6106 return crypt ();
6107 ;
6108 return 0;
6109 }
6110 _ACEOF
6111 for ac_lib in '' crypt descrypt; do
6112 if test -z "$ac_lib"; then
6113 ac_res="none required"
6114 else
6115 ac_res=-l$ac_lib
6116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6117 fi
6118 if ac_fn_c_try_link "$LINENO"; then :
6119 ac_cv_search_crypt=$ac_res
6120 fi
6121 rm -f core conftest.err conftest.$ac_objext \
6122 conftest$ac_exeext
6123 if ${ac_cv_search_crypt+:} false; then :
6124 break
6125 fi
6126 done
6127 if ${ac_cv_search_crypt+:} false; then :
6128
6129 else
6130 ac_cv_search_crypt=no
6131 fi
6132 rm conftest.$ac_ext
6133 LIBS=$ac_func_search_save_LIBS
6134 fi
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6136 $as_echo "$ac_cv_search_crypt" >&6; }
6137 ac_res=$ac_cv_search_crypt
6138 if test "$ac_res" != no; then :
6139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6140
6141 fi
6142
6143
6144 CRYPT_LIB=$ac_cv_search_crypt
6145
6146 if test "$CRYPT_LIB" = "none required"; then
6147 unset CRYPT_LIB
6148 elif test "$CRYPT_LIB" = no; then
6149 unset CRYPT_LIB
6150 fi
6151
6152
6153
6154 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6155 VICONF=viconf
6156 else
6157 VICONF=""
6158 fi
6159
6160
6161
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6163 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
6164 if ${gcc_cv_header_string+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6170 #include <string.h>
6171 #include <strings.h>
6172 _ACEOF
6173 if ac_fn_c_try_compile "$LINENO"; then :
6174 gcc_cv_header_string=yes
6175 else
6176 gcc_cv_header_string=no
6177 fi
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179
6180 fi
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6182 $as_echo "$gcc_cv_header_string" >&6; }
6183
6184 if test "$gcc_cv_header_string" = "yes"; then
6185
6186 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6187
6188 fi
6189
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6191 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6192 if ${ac_cv_c_bigendian+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 ac_cv_c_bigendian=unknown
6196 # See if we're dealing with a universal compiler.
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 #ifndef __APPLE_CC__
6200 not a universal capable compiler
6201 #endif
6202 typedef int dummy;
6203
6204 _ACEOF
6205 if ac_fn_c_try_compile "$LINENO"; then :
6206
6207 # Check for potential -arch flags. It is not universal unless
6208 # there are at least two -arch flags with different values.
6209 ac_arch=
6210 ac_prev=
6211 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6212 if test -n "$ac_prev"; then
6213 case $ac_word in
6214 i?86 | x86_64 | ppc | ppc64)
6215 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6216 ac_arch=$ac_word
6217 else
6218 ac_cv_c_bigendian=universal
6219 break
6220 fi
6221 ;;
6222 esac
6223 ac_prev=
6224 elif test "x$ac_word" = "x-arch"; then
6225 ac_prev=arch
6226 fi
6227 done
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 if test $ac_cv_c_bigendian = unknown; then
6231 # See if sys/param.h defines the BYTE_ORDER macro.
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #include <sys/types.h>
6235 #include <sys/param.h>
6236
6237 int
6238 main ()
6239 {
6240 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6241 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6242 && LITTLE_ENDIAN)
6243 bogus endian macros
6244 #endif
6245
6246 ;
6247 return 0;
6248 }
6249 _ACEOF
6250 if ac_fn_c_try_compile "$LINENO"; then :
6251 # It does; now see whether it defined to BIG_ENDIAN or not.
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 #include <sys/types.h>
6255 #include <sys/param.h>
6256
6257 int
6258 main ()
6259 {
6260 #if BYTE_ORDER != BIG_ENDIAN
6261 not big endian
6262 #endif
6263
6264 ;
6265 return 0;
6266 }
6267 _ACEOF
6268 if ac_fn_c_try_compile "$LINENO"; then :
6269 ac_cv_c_bigendian=yes
6270 else
6271 ac_cv_c_bigendian=no
6272 fi
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274 fi
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 fi
6277 if test $ac_cv_c_bigendian = unknown; then
6278 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 #include <limits.h>
6282
6283 int
6284 main ()
6285 {
6286 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6287 bogus endian macros
6288 #endif
6289
6290 ;
6291 return 0;
6292 }
6293 _ACEOF
6294 if ac_fn_c_try_compile "$LINENO"; then :
6295 # It does; now see whether it defined to _BIG_ENDIAN or not.
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6298 #include <limits.h>
6299
6300 int
6301 main ()
6302 {
6303 #ifndef _BIG_ENDIAN
6304 not big endian
6305 #endif
6306
6307 ;
6308 return 0;
6309 }
6310 _ACEOF
6311 if ac_fn_c_try_compile "$LINENO"; then :
6312 ac_cv_c_bigendian=yes
6313 else
6314 ac_cv_c_bigendian=no
6315 fi
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 fi
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 fi
6320 if test $ac_cv_c_bigendian = unknown; then
6321 # Compile a test program.
6322 if test "$cross_compiling" = yes; then :
6323 # Try to guess by grepping values from an object file.
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326 short int ascii_mm[] =
6327 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6328 short int ascii_ii[] =
6329 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6330 int use_ascii (int i) {
6331 return ascii_mm[i] + ascii_ii[i];
6332 }
6333 short int ebcdic_ii[] =
6334 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6335 short int ebcdic_mm[] =
6336 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6337 int use_ebcdic (int i) {
6338 return ebcdic_mm[i] + ebcdic_ii[i];
6339 }
6340 extern int foo;
6341
6342 int
6343 main ()
6344 {
6345 return use_ascii (foo) == use_ebcdic (foo);
6346 ;
6347 return 0;
6348 }
6349 _ACEOF
6350 if ac_fn_c_try_compile "$LINENO"; then :
6351 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6352 ac_cv_c_bigendian=yes
6353 fi
6354 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6355 if test "$ac_cv_c_bigendian" = unknown; then
6356 ac_cv_c_bigendian=no
6357 else
6358 # finding both strings is unlikely to happen, but who knows?
6359 ac_cv_c_bigendian=unknown
6360 fi
6361 fi
6362 fi
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 else
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367 $ac_includes_default
6368 int
6369 main ()
6370 {
6371
6372 /* Are we little or big endian? From Harbison&Steele. */
6373 union
6374 {
6375 long int l;
6376 char c[sizeof (long int)];
6377 } u;
6378 u.l = 1;
6379 return u.c[sizeof (long int) - 1] == 1;
6380
6381 ;
6382 return 0;
6383 }
6384 _ACEOF
6385 if ac_fn_c_try_run "$LINENO"; then :
6386 ac_cv_c_bigendian=no
6387 else
6388 ac_cv_c_bigendian=yes
6389 fi
6390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6391 conftest.$ac_objext conftest.beam conftest.$ac_ext
6392 fi
6393
6394 fi
6395 fi
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6397 $as_echo "$ac_cv_c_bigendian" >&6; }
6398 case $ac_cv_c_bigendian in #(
6399 yes)
6400 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6401 ;; #(
6402 no)
6403 ;; #(
6404 universal)
6405
6406 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6407
6408 ;; #(
6409 *)
6410 as_fn_error $? "unknown endianness
6411 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6412 esac
6413
6414
6415 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
6416 if test "x$ac_cv_header_stdarg_h" = xyes; then :
6417
6418 else
6419 as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
6420 fi
6421
6422
6423
6424
6425 if test "$ac_cv_c_compiler_gnu" = yes; then
6426
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6428 $as_echo_n "checking for strlcpy... " >&6; }
6429 save_CFLAGS=$CFLAGS
6430 CFLAGS="$CFLAGS -Wimplicit -Werror"
6431
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 #include <string.h>
6435 #include <stdlib.h>
6436 int
6437 main ()
6438 {
6439 char *a = malloc(6);
6440 strlcpy(a, "hello", 6);
6441
6442 ;
6443 return 0;
6444 }
6445 _ACEOF
6446 if ac_fn_c_try_link "$LINENO"; then :
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6448 $as_echo "yes" >&6; }
6449
6450 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
6451
6452 else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6455
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext \
6458 conftest$ac_exeext conftest.$ac_ext
6459
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6461 $as_echo_n "checking for strlcat... " >&6; }
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <string.h>
6465 #include <stdlib.h>
6466 int
6467 main ()
6468 {
6469 char *a = malloc(6);
6470 a[0] = '\0';
6471 strlcat(a, "hello", 6);
6472
6473 ;
6474 return 0;
6475 }
6476 _ACEOF
6477 if ac_fn_c_try_link "$LINENO"; then :
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6479 $as_echo "yes" >&6; }
6480
6481 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
6482
6483 else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6486
6487 fi
6488 rm -f core conftest.err conftest.$ac_objext \
6489 conftest$ac_exeext conftest.$ac_ext
6490
6491 CFLAGS=$save_CFLAGS
6492
6493 else
6494
6495
6496 for ac_func in strlcat strlcpy
6497 do :
6498 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6499 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6500 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6501 cat >>confdefs.h <<_ACEOF
6502 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6503 _ACEOF
6504
6505 fi
6506 done
6507
6508
6509 fi
6510
6511 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6512 if test "x$ac_cv_type_u_int32_t" = xyes; then :
6513
6514 else
6515
6516 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6517 if test "x$ac_cv_type_uint32_t" = xyes; then :
6518
6519
6520 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6521
6522
6523 else
6524
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6526 $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
6527
6528 $as_echo "#define u_int32_t unsigned long int" >>confdefs.h
6529
6530
6531 fi
6532
6533
6534 fi
6535
6536
6537 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6538 if test "x$ac_cv_type_u_int16_t" = xyes; then :
6539
6540 else
6541
6542 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6543 if test "x$ac_cv_type_uint16_t" = xyes; then :
6544
6545
6546 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6547
6548
6549 else
6550
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6552 $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
6553
6554 $as_echo "#define u_int16_t unsigned short int" >>confdefs.h
6555
6556
6557 fi
6558
6559
6560 fi
6561
6562
6563 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6564 #include <netinet/in.h>
6565 "
6566 if test "x$ac_cv_type_in_port_t" = xyes; then :
6567
6568 else
6569
6570 $as_echo "#define in_port_t u_int16_t" >>confdefs.h
6571
6572 fi
6573
6574
6575 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6576 #include <sys/socket.h>
6577 "
6578 if test "x$ac_cv_type_sa_family_t" = xyes; then :
6579
6580 else
6581
6582 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
6583
6584 fi
6585
6586
6587 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6588 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6589
6590 cat >>confdefs.h <<_ACEOF
6591 #define HAVE_UINTPTR_T 1
6592 _ACEOF
6593
6594
6595 fi
6596
6597
6598 for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
6599 do :
6600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6602 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6603 cat >>confdefs.h <<_ACEOF
6604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6605 _ACEOF
6606
6607 fi
6608 done
6609
6610
6611 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6612 # for constant arguments. Useless!
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6614 $as_echo_n "checking for working alloca.h... " >&6; }
6615 if ${ac_cv_working_alloca_h+:} false; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6620 #include <alloca.h>
6621 int
6622 main ()
6623 {
6624 char *p = (char *) alloca (2 * sizeof (int));
6625 if (p) return 0;
6626 ;
6627 return 0;
6628 }
6629 _ACEOF
6630 if ac_fn_c_try_link "$LINENO"; then :
6631 ac_cv_working_alloca_h=yes
6632 else
6633 ac_cv_working_alloca_h=no
6634 fi
6635 rm -f core conftest.err conftest.$ac_objext \
6636 conftest$ac_exeext conftest.$ac_ext
6637 fi
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6639 $as_echo "$ac_cv_working_alloca_h" >&6; }
6640 if test $ac_cv_working_alloca_h = yes; then
6641
6642 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6643
6644 fi
6645
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6647 $as_echo_n "checking for alloca... " >&6; }
6648 if ${ac_cv_func_alloca_works+:} false; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653 #ifdef __GNUC__
6654 # define alloca __builtin_alloca
6655 #else
6656 # ifdef _MSC_VER
6657 # include <malloc.h>
6658 # define alloca _alloca
6659 # else
6660 # ifdef HAVE_ALLOCA_H
6661 # include <alloca.h>
6662 # else
6663 # ifdef _AIX
6664 #pragma alloca
6665 # else
6666 # ifndef alloca /* predefined by HP cc +Olibcalls */
6667 void *alloca (size_t);
6668 # endif
6669 # endif
6670 # endif
6671 # endif
6672 #endif
6673
6674 int
6675 main ()
6676 {
6677 char *p = (char *) alloca (1);
6678 if (p) return 0;
6679 ;
6680 return 0;
6681 }
6682 _ACEOF
6683 if ac_fn_c_try_link "$LINENO"; then :
6684 ac_cv_func_alloca_works=yes
6685 else
6686 ac_cv_func_alloca_works=no
6687 fi
6688 rm -f core conftest.err conftest.$ac_objext \
6689 conftest$ac_exeext conftest.$ac_ext
6690 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6692 $as_echo "$ac_cv_func_alloca_works" >&6; }
6693
6694 if test $ac_cv_func_alloca_works = yes; then
6695
6696 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6697
6698 else
6699 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6700 # that cause trouble. Some versions do not even contain alloca or
6701 # contain a buggy version. If you still want to use their alloca,
6702 # use ar to extract alloca.o from them instead of compiling alloca.c.
6703
6704 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6705
6706 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6707
6708
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6710 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6711 if ${ac_cv_os_cray+:} false; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716 #if defined CRAY && ! defined CRAY2
6717 webecray
6718 #else
6719 wenotbecray
6720 #endif
6721
6722 _ACEOF
6723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6724 $EGREP "webecray" >/dev/null 2>&1; then :
6725 ac_cv_os_cray=yes
6726 else
6727 ac_cv_os_cray=no
6728 fi
6729 rm -f conftest*
6730
6731 fi
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6733 $as_echo "$ac_cv_os_cray" >&6; }
6734 if test $ac_cv_os_cray = yes; then
6735 for ac_func in _getb67 GETB67 getb67; do
6736 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6737 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6738 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6739
6740 cat >>confdefs.h <<_ACEOF
6741 #define CRAY_STACKSEG_END $ac_func
6742 _ACEOF
6743
6744 break
6745 fi
6746
6747 done
6748 fi
6749
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6751 $as_echo_n "checking stack direction for C alloca... " >&6; }
6752 if ${ac_cv_c_stack_direction+:} false; then :
6753 $as_echo_n "(cached) " >&6
6754 else
6755 if test "$cross_compiling" = yes; then :
6756 ac_cv_c_stack_direction=0
6757 else
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6760 $ac_includes_default
6761 int
6762 find_stack_direction ()
6763 {
6764 static char *addr = 0;
6765 auto char dummy;
6766 if (addr == 0)
6767 {
6768 addr = &dummy;
6769 return find_stack_direction ();
6770 }
6771 else
6772 return (&dummy > addr) ? 1 : -1;
6773 }
6774
6775 int
6776 main ()
6777 {
6778 return find_stack_direction () < 0;
6779 }
6780 _ACEOF
6781 if ac_fn_c_try_run "$LINENO"; then :
6782 ac_cv_c_stack_direction=1
6783 else
6784 ac_cv_c_stack_direction=-1
6785 fi
6786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6787 conftest.$ac_objext conftest.beam conftest.$ac_ext
6788 fi
6789
6790 fi
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6792 $as_echo "$ac_cv_c_stack_direction" >&6; }
6793 cat >>confdefs.h <<_ACEOF
6794 #define STACK_DIRECTION $ac_cv_c_stack_direction
6795 _ACEOF
6796
6797
6798 fi
6799
6800
6801
6802 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6803 if test "x$ac_cv_func_nanosleep" = xyes; then :
6804
6805 else
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6807 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
6808 if ${ac_cv_lib_rt_nanosleep+:} false; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 ac_check_lib_save_LIBS=$LIBS
6812 LIBS="-lrt $LIBS"
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815
6816 /* Override any GCC internal prototype to avoid an error.
6817 Use char because int might match the return type of a GCC
6818 builtin and then its argument prototype would still apply. */
6819 #ifdef __cplusplus
6820 extern "C"
6821 #endif
6822 char nanosleep ();
6823 int
6824 main ()
6825 {
6826 return nanosleep ();
6827 ;
6828 return 0;
6829 }
6830 _ACEOF
6831 if ac_fn_c_try_link "$LINENO"; then :
6832 ac_cv_lib_rt_nanosleep=yes
6833 else
6834 ac_cv_lib_rt_nanosleep=no
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext \
6837 conftest$ac_exeext conftest.$ac_ext
6838 LIBS=$ac_check_lib_save_LIBS
6839 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6841 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6842 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
6843 LIBS="${LIBS} -lrt"
6844 else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6846 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
6847 if ${ac_cv_lib_posix4_nanosleep+:} false; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 ac_check_lib_save_LIBS=$LIBS
6851 LIBS="-lposix4 $LIBS"
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854
6855 /* Override any GCC internal prototype to avoid an error.
6856 Use char because int might match the return type of a GCC
6857 builtin and then its argument prototype would still apply. */
6858 #ifdef __cplusplus
6859 extern "C"
6860 #endif
6861 char nanosleep ();
6862 int
6863 main ()
6864 {
6865 return nanosleep ();
6866 ;
6867 return 0;
6868 }
6869 _ACEOF
6870 if ac_fn_c_try_link "$LINENO"; then :
6871 ac_cv_lib_posix4_nanosleep=yes
6872 else
6873 ac_cv_lib_posix4_nanosleep=no
6874 fi
6875 rm -f core conftest.err conftest.$ac_objext \
6876 conftest$ac_exeext conftest.$ac_ext
6877 LIBS=$ac_check_lib_save_LIBS
6878 fi
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
6880 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
6881 if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
6882 LIBS="${LIBS} -lposix4"
6883
6884 fi
6885
6886 fi
6887
6888 fi
6889
6890 if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
6891 then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
6893 $as_echo "\"nanosleep not found..using select for delay\"" >&6; }
6894 else
6895
6896 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
6897
6898 fi
6899
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
6901 $as_echo_n "checking for OpenSSL... " >&6; }
6902 # Check whether --enable-openssl was given.
6903 if test "${enable_openssl+set}" = set; then :
6904 enableval=$enable_openssl; cf_enable_openssl=$enableval
6905 else
6906 cf_enable_openssl="auto"
6907 fi
6908
6909
6910 if test "$cf_enable_openssl" != "no" ; then
6911 cf_openssl_basedir=""
6912 if test "$cf_enable_openssl" != "auto" &&
6913 test "$cf_enable_openssl" != "yes" ; then
6914 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
6915 else
6916 for dirs in /usr/local/ssl /usr/pkg /usr/local \
6917 /usr/local/openssl ; do
6918 if test -f "${dirs}/include/openssl/opensslv.h" ; then
6919 cf_openssl_basedir="${dirs}"
6920 break
6921 fi
6922 done
6923 unset dirs
6924 fi
6925 if test ! -z "$cf_openssl_basedir"; then
6926 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
6927 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
6928 SSL_LIBS="-L${cf_openssl_basedir}/lib"
6929 else
6930 cf_openssl_basedir=""
6931 fi
6932 else
6933 if test -f "/usr/include/openssl/opensslv.h" ; then
6934 cf_openssl_basedir="/usr"
6935 fi
6936 fi
6937
6938 if test ! -z "$cf_openssl_basedir"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
6940 $as_echo "$cf_openssl_basedir" >&6; }
6941 cf_enable_openssl="yes"
6942 else
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
6944 $as_echo "not found. Specify a correct path?" >&6; }
6945 cf_enable_openssl="no"
6946 fi
6947 unset cf_openssl_basedir
6948 else
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6950 $as_echo "disabled" >&6; }
6951 fi
6952
6953 save_CPPFLAGS="$CPPFLAGS"
6954 CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
6955 save_LIBS="$LIBS"
6956 LIBS="$LIBS $SSL_LIBS"
6957 if test "$cf_enable_openssl" != no; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
6959 $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
6960 if test "$cross_compiling" = yes; then :
6961 cf_openssl_version_ok=no
6962 else
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965 #include <openssl/opensslv.h>
6966 #include <stdlib.h>
6967 int
6968 main ()
6969 {
6970 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
6971 exit(0); else exit(1);
6972 ;
6973 return 0;
6974 }
6975 _ACEOF
6976 if ac_fn_c_try_run "$LINENO"; then :
6977 cf_openssl_version_ok=yes
6978 else
6979 cf_openssl_version_ok=no
6980 fi
6981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6982 conftest.$ac_objext conftest.beam conftest.$ac_ext
6983 fi
6984
6985
6986 if test "$cf_openssl_version_ok" = yes; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
6988 $as_echo "found" >&6; }
6989
6990 ENCSPEED=encspeed
6991
6992
6993 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
6995 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
6996 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 ac_check_lib_save_LIBS=$LIBS
7000 LIBS="-lcrypto $LIBS"
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7003
7004 /* Override any GCC internal prototype to avoid an error.
7005 Use char because int might match the return type of a GCC
7006 builtin and then its argument prototype would still apply. */
7007 #ifdef __cplusplus
7008 extern "C"
7009 #endif
7010 char RSA_free ();
7011 int
7012 main ()
7013 {
7014 return RSA_free ();
7015 ;
7016 return 0;
7017 }
7018 _ACEOF
7019 if ac_fn_c_try_link "$LINENO"; then :
7020 ac_cv_lib_crypto_RSA_free=yes
7021 else
7022 ac_cv_lib_crypto_RSA_free=no
7023 fi
7024 rm -f core conftest.err conftest.$ac_objext \
7025 conftest$ac_exeext conftest.$ac_ext
7026 LIBS=$ac_check_lib_save_LIBS
7027 fi
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
7029 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
7030 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
7031 cat >>confdefs.h <<_ACEOF
7032 #define HAVE_LIBCRYPTO 1
7033 _ACEOF
7034
7035 LIBS="-lcrypto $LIBS"
7036
7037 fi
7038
7039 SSL_LIBS="$SSL_LIBS -lcrypto"
7040 SSL_SRCS_ENABLE='$(SSL_SRCS)'
7041 else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7043 $as_echo "no - OpenSSL support disabled" >&6; }
7044 fi
7045 fi
7046
7047 CPPFLAGS="$save_CPPFLAGS"
7048 LIBS="$save_LIBS"
7049
7050
7051
7052
7053
7054 # Check whether --with-zlib-path was given.
7055 if test "${with_zlib_path+set}" = set; then :
7056 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
7057 fi
7058
7059
7060 # Check whether --enable-zlib was given.
7061 if test "${enable_zlib+set}" = set; then :
7062 enableval=$enable_zlib; zlib=$enableval
7063 else
7064 zlib=yes
7065 fi
7066
7067
7068 if test "$zlib" = yes; then
7069
7070 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7071 if test "x$ac_cv_header_zlib_h" = xyes; then :
7072
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7074 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
7075 if ${ac_cv_lib_z_zlibVersion+:} false; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 ac_check_lib_save_LIBS=$LIBS
7079 LIBS="-lz $LIBS"
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082
7083 /* Override any GCC internal prototype to avoid an error.
7084 Use char because int might match the return type of a GCC
7085 builtin and then its argument prototype would still apply. */
7086 #ifdef __cplusplus
7087 extern "C"
7088 #endif
7089 char zlibVersion ();
7090 int
7091 main ()
7092 {
7093 return zlibVersion ();
7094 ;
7095 return 0;
7096 }
7097 _ACEOF
7098 if ac_fn_c_try_link "$LINENO"; then :
7099 ac_cv_lib_z_zlibVersion=yes
7100 else
7101 ac_cv_lib_z_zlibVersion=no
7102 fi
7103 rm -f core conftest.err conftest.$ac_objext \
7104 conftest$ac_exeext conftest.$ac_ext
7105 LIBS=$ac_check_lib_save_LIBS
7106 fi
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7108 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
7109 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
7110
7111 ZLIB_LD=-lz
7112
7113
7114 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7115
7116
7117 else
7118 zlib=no
7119 fi
7120
7121
7122 else
7123 zlib=no
7124 fi
7125
7126
7127
7128 fi
7129
7130
7131 # Check whether --enable-ports was given.
7132 if test "${enable_ports+set}" = set; then :
7133 enableval=$enable_ports; if test $enableval = yes; then
7134 SELECT_TYPE_EXPLICIT="ports"
7135 else
7136 use_ports=no
7137 fi
7138
7139 fi
7140
7141
7142 # Check whether --enable-poll was given.
7143 if test "${enable_poll+set}" = set; then :
7144 enableval=$enable_poll; if test $enableval = yes; then
7145 SELECT_TYPE_EXPLICIT="poll"
7146 else
7147 use_poll=no
7148 fi
7149
7150 fi
7151
7152
7153 # Check whether --enable-select was given.
7154 if test "${enable_select+set}" = set; then :
7155 enableval=$enable_select; if test $enableval = yes; then
7156 SELECT_TYPE_EXPLICIT="select"
7157 else
7158 use_select=no
7159 fi
7160
7161 fi
7162
7163
7164 # Check whether --enable-kqueue was given.
7165 if test "${enable_kqueue+set}" = set; then :
7166 enableval=$enable_kqueue; if test $enableval = yes; then
7167 SELECT_TYPE_EXPLICIT="kqueue"
7168 else
7169 use_kqueue=no
7170 fi
7171
7172 fi
7173
7174
7175 # Check whether --enable-epoll was given.
7176 if test "${enable_epoll+set}" = set; then :
7177 enableval=$enable_epoll; if test $enableval = yes; then
7178 SELECT_TYPE_EXPLICIT="epoll"
7179 for ac_func in epoll_ctl
7180 do :
7181 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7182 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
7183 cat >>confdefs.h <<_ACEOF
7184 #define HAVE_EPOLL_CTL 1
7185 _ACEOF
7186 haveepoll=yes
7187 else
7188 haveepoll=no
7189 fi
7190 done
7191
7192 else
7193 use_epoll=no
7194 fi
7195
7196 fi
7197
7198
7199
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify confdir" >&5
7201 $as_echo_n "checking whether to modify confdir... " >&6; }
7202
7203 # Check whether --with-confdir was given.
7204 if test "${with_confdir+set}" = set; then :
7205 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7207 $as_echo "yes" >&6; }
7208
7209 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7210 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7211 ac_define_dir=`eval echo $confdir`
7212 ac_define_dir=`eval echo $ac_define_dir`
7213 ETC_DIR="$ac_define_dir"
7214
7215
7216 cat >>confdefs.h <<_ACEOF
7217 #define ETC_DIR "$ac_define_dir"
7218 _ACEOF
7219
7220
7221
7222
7223 confdir=`(
7224 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7225 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7226 eval echo \""$confdir"\"
7227 )`
7228
7229
7230 else
7231 confdir='${prefix}/etc'
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7234
7235 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7237 ac_define_dir=`eval echo $confdir`
7238 ac_define_dir=`eval echo $ac_define_dir`
7239 ETC_DIR="$ac_define_dir"
7240
7241
7242 cat >>confdefs.h <<_ACEOF
7243 #define ETC_DIR "$ac_define_dir"
7244 _ACEOF
7245
7246
7247
7248
7249 confdir=`(
7250 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7251 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7252 eval echo \""$confdir"\"
7253 )`
7254
7255
7256
7257 fi
7258
7259
7260
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7262 $as_echo_n "checking whether to modify logdir... " >&6; }
7263
7264 # Check whether --with-logdir was given.
7265 if test "${with_logdir+set}" = set; then :
7266 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7268 $as_echo "yes" >&6; }
7269
7270 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7272 ac_define_dir=`eval echo $logdir`
7273 ac_define_dir=`eval echo $ac_define_dir`
7274 LOG_DIR="$ac_define_dir"
7275
7276
7277 cat >>confdefs.h <<_ACEOF
7278 #define LOG_DIR "$ac_define_dir"
7279 _ACEOF
7280
7281
7282
7283
7284 logdir=`(
7285 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7286 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7287 eval echo \""$logdir"\"
7288 )`
7289
7290
7291 else
7292 logdir='${prefix}/logs'
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7295
7296 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7298 ac_define_dir=`eval echo $logdir`
7299 ac_define_dir=`eval echo $ac_define_dir`
7300 LOG_DIR="$ac_define_dir"
7301
7302
7303 cat >>confdefs.h <<_ACEOF
7304 #define LOG_DIR "$ac_define_dir"
7305 _ACEOF
7306
7307
7308
7309
7310 logdir=`(
7311 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7312 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7313 eval echo \""$logdir"\"
7314 )`
7315
7316
7317
7318 fi
7319
7320
7321
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7323 $as_echo_n "checking whether to modify helpdir... " >&6; }
7324
7325 # Check whether --with-helpdir was given.
7326 if test "${with_helpdir+set}" = set; then :
7327 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7329 $as_echo "yes" >&6; }
7330
7331 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7332 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7333 ac_define_dir=`eval echo $helpdir`
7334 ac_define_dir=`eval echo $ac_define_dir`
7335 HELP_DIR="$ac_define_dir"
7336
7337
7338 cat >>confdefs.h <<_ACEOF
7339 #define HELP_DIR "$ac_define_dir"
7340 _ACEOF
7341
7342
7343
7344
7345 helpdir=`(
7346 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7347 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7348 eval echo \""$helpdir"\"
7349 )`
7350
7351
7352 else
7353 helpdir='${prefix}/help'
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7356
7357 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7358 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7359 ac_define_dir=`eval echo $helpdir`
7360 ac_define_dir=`eval echo $ac_define_dir`
7361 HELP_DIR="$ac_define_dir"
7362
7363
7364 cat >>confdefs.h <<_ACEOF
7365 #define HELP_DIR "$ac_define_dir"
7366 _ACEOF
7367
7368
7369
7370
7371 helpdir=`(
7372 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7373 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7374 eval echo \""$helpdir"\"
7375 )`
7376
7377
7378
7379 fi
7380
7381
7382
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7384 $as_echo_n "checking whether to modify moduledir... " >&6; }
7385
7386 # Check whether --with-moduledir was given.
7387 if test "${with_moduledir+set}" = set; then :
7388 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7390 $as_echo "yes" >&6; }
7391
7392 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7394 ac_define_dir=`eval echo $moduledir`
7395 ac_define_dir=`eval echo $ac_define_dir`
7396 MODULE_DIR="$ac_define_dir"
7397
7398
7399 cat >>confdefs.h <<_ACEOF
7400 #define MODULE_DIR "$ac_define_dir"
7401 _ACEOF
7402
7403
7404
7405
7406 moduledir=`(
7407 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7408 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7409 eval echo \""$moduledir"\"
7410 )`
7411
7412
7413 else
7414 moduledir='${prefix}/modules'
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7417
7418 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7419 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7420 ac_define_dir=`eval echo $moduledir`
7421 ac_define_dir=`eval echo $ac_define_dir`
7422 MODULE_DIR="$ac_define_dir"
7423
7424
7425 cat >>confdefs.h <<_ACEOF
7426 #define MODULE_DIR "$ac_define_dir"
7427 _ACEOF
7428
7429
7430
7431
7432 moduledir=`(
7433 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7434 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7435 eval echo \""$moduledir"\"
7436 )`
7437
7438
7439
7440 fi
7441
7442
7443 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7444 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
7445 echo "Forcing $SELECT_TYPE to be enabled"
7446 else
7447
7448 if test ! "x$use_ports" = "xno"; then
7449 for ac_func in port_getn
7450 do :
7451 ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn"
7452 if test "x$ac_cv_func_port_getn" = xyes; then :
7453 cat >>confdefs.h <<_ACEOF
7454 #define HAVE_PORT_GETN 1
7455 _ACEOF
7456 haveports=yes
7457 else
7458 haveports=no
7459 fi
7460 done
7461
7462 if test "x$haveports" = "xyes" ; then
7463 SELECT_TYPE="ports"
7464 fi
7465 fi
7466
7467 if test ! "x$use_select" = "xno"; then
7468 for ac_func in select
7469 do :
7470 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
7471 if test "x$ac_cv_func_select" = xyes; then :
7472 cat >>confdefs.h <<_ACEOF
7473 #define HAVE_SELECT 1
7474 _ACEOF
7475 haveselect=yes
7476 else
7477 haveselect=no
7478 fi
7479 done
7480
7481 if test "x$haveselect" = "xyes" ; then
7482 SELECT_TYPE="select"
7483 fi
7484 fi
7485
7486 if test ! "x$use_poll" = "xno"; then
7487 for ac_func in poll
7488 do :
7489 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7490 if test "x$ac_cv_func_poll" = xyes; then :
7491 cat >>confdefs.h <<_ACEOF
7492 #define HAVE_POLL 1
7493 _ACEOF
7494 havepoll=yes
7495 else
7496 havepoll=no
7497 fi
7498 done
7499
7500 if test "x$havepoll" = "xyes" ; then
7501 SELECT_TYPE="poll"
7502 fi
7503 fi
7504
7505 if test ! "x$use_kqueue" = "xno"; then
7506 for ac_func in kevent
7507 do :
7508 ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent"
7509 if test "x$ac_cv_func_kevent" = xyes; then :
7510 cat >>confdefs.h <<_ACEOF
7511 #define HAVE_KEVENT 1
7512 _ACEOF
7513 havekqueue=yes
7514 else
7515 havekqueue=no
7516 fi
7517 done
7518
7519 if test "x$havekqueue" = "xyes" ; then
7520 SELECT_TYPE="kqueue"
7521 fi
7522 fi
7523
7524 if test ! "x$use_epoll" = "xno"; then
7525 for ac_func in epoll_ctl
7526 do :
7527 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7528 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
7529 cat >>confdefs.h <<_ACEOF
7530 #define HAVE_EPOLL_CTL 1
7531 _ACEOF
7532 haveepoll=yes
7533 else
7534 haveepoll=no
7535 fi
7536 done
7537
7538 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7539 if test "x$haveepoll" = "xyes" ; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7541 $as_echo_n "checking for epoll support in kernel... " >&6; }
7542 if test "$cross_compiling" = yes; then :
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7545 else
7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7548 #include <stdint.h>
7549 #include <sys/param.h>
7550 #include <sys/types.h>
7551 #include <sys/epoll.h>
7552 #include <sys/syscall.h>
7553 #include <unistd.h>
7554
7555 int
7556 main(int argc, char **argv)
7557 {
7558 int epfd;
7559
7560 epfd = epoll_create(256);
7561 return (epfd == -1 ? 1 : 0);
7562 }
7563 _ACEOF
7564 if ac_fn_c_try_run "$LINENO"; then :
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7566 $as_echo "yes" >&6; }
7567
7568 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7569
7570 SELECT_TYPE="epoll"
7571 else
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7574 fi
7575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7576 conftest.$ac_objext conftest.beam conftest.$ac_ext
7577 fi
7578
7579 fi
7580 fi
7581
7582 haveepollsyscall=no
7583
7584 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7585 if test "x$haveepoll" = "xno" ; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7587 $as_echo_n "checking for epoll system call... " >&6; }
7588 if test "$cross_compiling" = yes; then :
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7591 else
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7594 #include <stdint.h>
7595 #include <sys/param.h>
7596 #include <sys/types.h>
7597 #include <sys/epoll.h>
7598 #include <sys/syscall.h>
7599 #include <unistd.h>
7600
7601 int
7602 epoll_create(int size)
7603 {
7604 return (syscall(__NR_epoll_create, size));
7605 }
7606
7607 int
7608 main(int argc, char **argv)
7609 {
7610 int epfd;
7611
7612 epfd = epoll_create(256);
7613 exit (epfd == -1 ? 1 : 0);
7614 }
7615 _ACEOF
7616 if ac_fn_c_try_run "$LINENO"; then :
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7618 $as_echo "yes" >&6; }
7619
7620 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7621
7622 SELECT_TYPE="epoll"
7623 else
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7626 fi
7627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7628 conftest.$ac_objext conftest.beam conftest.$ac_ext
7629 fi
7630
7631 fi
7632 fi
7633
7634 fi
7635
7636 fi
7637
7638 if test -z "$SELECT_TYPE"; then
7639 as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5
7640 fi
7641
7642 echo "Using $SELECT_TYPE for select loop."
7643
7644
7645 cat >>confdefs.h <<_ACEOF
7646 #define SELECT_TYPE "$SELECT_TYPE"
7647 _ACEOF
7648
7649
7650
7651
7652
7653 # Check whether --enable-assert was given.
7654 if test "${enable_assert+set}" = set; then :
7655 enableval=$enable_assert; assert=$enableval
7656 else
7657 assert=no
7658 fi
7659
7660
7661 if test "$assert" = no; then
7662
7663 $as_echo "#define NDEBUG 1" >>confdefs.h
7664
7665 elif test "$assert" = soft; then
7666
7667 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
7668
7669
7670 $as_echo "#define NDEBUG 1" >>confdefs.h
7671
7672 elif test "$assert" = yes; then
7673 assert = "hard";
7674 fi
7675
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
7677 $as_echo_n "checking if you want IO Debugging hooks... " >&6; }
7678 # Check whether --enable-iodebug was given.
7679 if test "${enable_iodebug+set}" = set; then :
7680 enableval=$enable_iodebug; iodebug=$enableval
7681 else
7682 iodebug=no
7683 fi
7684
7685
7686 if test "$iodebug" = yes; then
7687
7688 $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
7689
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7691 $as_echo "yes" >&6; }
7692 else
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7695 fi
7696
7697
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
7699 $as_echo_n "checking if you want to do a profile build... " >&6; }
7700 # Check whether --enable-profile was given.
7701 if test "${enable_profile+set}" = set; then :
7702 enableval=$enable_profile; profile=$enableval
7703 else
7704 profile=no
7705 fi
7706
7707
7708 if test "$profile" = yes; then
7709 if test "$ac_cv_c_compiler_gnu" = yes; then
7710 IRC_CFLAGS="$IRC_CFLAGS -pg"
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
7712 $as_echo "yes, adding -pg" >&6; }
7713
7714 $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
7715
7716 else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
7718 $as_echo "no, profile builds only work with gcc" >&6; }
7719 fi
7720 else
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722 $as_echo "no" >&6; }
7723 fi
7724
7725 # Check whether --enable-balloc was given.
7726 if test "${enable_balloc+set}" = set; then :
7727 enableval=$enable_balloc; balloc=$enableval
7728 else
7729 balloc=yes
7730 fi
7731
7732
7733 if test "$balloc" = no; then
7734
7735 $as_echo "#define NOBALLOC 1" >>confdefs.h
7736
7737 fi
7738
7739 # Check whether --enable-small-net was given.
7740 if test "${enable_small_net+set}" = set; then :
7741 enableval=$enable_small_net; small_net=$enableval
7742 else
7743 small_net=yes
7744 fi
7745
7746
7747 if test "$small_net" = yes; then
7748
7749 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
7750
7751
7752 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
7753
7754
7755 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
7756
7757
7758 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
7759
7760
7761 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
7762
7763
7764 $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
7765
7766
7767 $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
7768
7769
7770 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
7771
7772
7773 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
7774
7775
7776 $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
7777
7778
7779 $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
7780
7781
7782 $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
7783
7784
7785 $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
7786
7787
7788 $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
7789
7790
7791 $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
7792
7793
7794 $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
7795
7796 else
7797
7798 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
7799
7800
7801 $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
7802
7803
7804 $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
7805
7806
7807 $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
7808
7809
7810 $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
7811
7812
7813 $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
7814
7815
7816 $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
7817
7818
7819 $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
7820
7821
7822 $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
7823
7824
7825 $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
7826
7827
7828 $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
7829
7830
7831 $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
7832
7833
7834 $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
7835
7836
7837 $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
7838
7839
7840 $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
7841
7842
7843 $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
7844
7845 fi
7846
7847
7848 # Check whether --with-nicklen was given.
7849 if test "${with_nicklen+set}" = set; then :
7850 withval=$with_nicklen;
7851 if ! expr "$withval" + 0 >/dev/null 2>&1; then
7852 as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5
7853 fi
7854 if test $withval -ge 50; then
7855 NICKLEN=50
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
7857 $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
7858 else
7859 NICKLEN="$withval"
7860 fi
7861
7862 else
7863 NICKLEN=31
7864 fi
7865
7866
7867
7868 # Check whether --with-topiclen was given.
7869 if test "${with_topiclen+set}" = set; then :
7870 withval=$with_topiclen;
7871 if test $withval -ge 390; then
7872 TOPICLEN=390
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
7874 $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
7875 else
7876 TOPICLEN=$withval
7877 fi
7878
7879 else
7880 TOPICLEN=390
7881 fi
7882
7883
7884
7885 cat >>confdefs.h <<_ACEOF
7886 #define TOPICLEN ${TOPICLEN}
7887 _ACEOF
7888
7889
7890 cat >>confdefs.h <<_ACEOF
7891 #define NICKLEN (${NICKLEN}+1)
7892 _ACEOF
7893
7894
7895 shared_modules="yes"
7896 if test "$shared_modules" = yes; then
7897 if test "$CC" = tcc -a "$TenDRA" = "no"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
7899 $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
7900 shared_modules="no"
7901 fi
7902 fi
7903
7904 if test "$shared_modules" = yes; then
7905 DYNLINK_C=dynlink.c
7906 for ac_header in dlfcn.h
7907 do :
7908 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7909 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7910 cat >>confdefs.h <<_ACEOF
7911 #define HAVE_DLFCN_H 1
7912 _ACEOF
7913
7914 fi
7915
7916 done
7917
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
7919 $as_echo_n "checking for library containing shl_load... " >&6; }
7920 if ${ac_cv_search_shl_load+:} false; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 ac_func_search_save_LIBS=$LIBS
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926
7927 /* Override any GCC internal prototype to avoid an error.
7928 Use char because int might match the return type of a GCC
7929 builtin and then its argument prototype would still apply. */
7930 #ifdef __cplusplus
7931 extern "C"
7932 #endif
7933 char shl_load ();
7934 int
7935 main ()
7936 {
7937 return shl_load ();
7938 ;
7939 return 0;
7940 }
7941 _ACEOF
7942 for ac_lib in '' dld; do
7943 if test -z "$ac_lib"; then
7944 ac_res="none required"
7945 else
7946 ac_res=-l$ac_lib
7947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7948 fi
7949 if ac_fn_c_try_link "$LINENO"; then :
7950 ac_cv_search_shl_load=$ac_res
7951 fi
7952 rm -f core conftest.err conftest.$ac_objext \
7953 conftest$ac_exeext
7954 if ${ac_cv_search_shl_load+:} false; then :
7955 break
7956 fi
7957 done
7958 if ${ac_cv_search_shl_load+:} false; then :
7959
7960 else
7961 ac_cv_search_shl_load=no
7962 fi
7963 rm conftest.$ac_ext
7964 LIBS=$ac_func_search_save_LIBS
7965 fi
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
7967 $as_echo "$ac_cv_search_shl_load" >&6; }
7968 ac_res=$ac_cv_search_shl_load
7969 if test "$ac_res" != no; then :
7970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7971
7972
7973 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
7974
7975 SUFFIX=".sl"
7976 MOD_TARGET=hpux_shared
7977 SEDOBJ="s/\.o/.sl/g"
7978
7979 else
7980
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7982 $as_echo_n "checking for library containing dlopen... " >&6; }
7983 if ${ac_cv_search_dlopen+:} false; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 ac_func_search_save_LIBS=$LIBS
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989
7990 /* Override any GCC internal prototype to avoid an error.
7991 Use char because int might match the return type of a GCC
7992 builtin and then its argument prototype would still apply. */
7993 #ifdef __cplusplus
7994 extern "C"
7995 #endif
7996 char dlopen ();
7997 int
7998 main ()
7999 {
8000 return dlopen ();
8001 ;
8002 return 0;
8003 }
8004 _ACEOF
8005 for ac_lib in '' dl c_r; do
8006 if test -z "$ac_lib"; then
8007 ac_res="none required"
8008 else
8009 ac_res=-l$ac_lib
8010 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8011 fi
8012 if ac_fn_c_try_link "$LINENO"; then :
8013 ac_cv_search_dlopen=$ac_res
8014 fi
8015 rm -f core conftest.err conftest.$ac_objext \
8016 conftest$ac_exeext
8017 if ${ac_cv_search_dlopen+:} false; then :
8018 break
8019 fi
8020 done
8021 if ${ac_cv_search_dlopen+:} false; then :
8022
8023 else
8024 ac_cv_search_dlopen=no
8025 fi
8026 rm conftest.$ac_ext
8027 LIBS=$ac_func_search_save_LIBS
8028 fi
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8030 $as_echo "$ac_cv_search_dlopen" >&6; }
8031 ac_res=$ac_cv_search_dlopen
8032 if test "$ac_res" != no; then :
8033 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8034
8035
8036 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
8037
8038 SUFFIX=".so"
8039 MOD_TARGET=shared_modules
8040 SEDOBJ="s/\.o/.so/g"
8041 if test "$AppleGCC" = yes; then
8042 for ac_header in mach-o/dyld.h
8043 do :
8044 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
8045 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
8046 cat >>confdefs.h <<_ACEOF
8047 #define HAVE_MACH_O_DYLD_H 1
8048 _ACEOF
8049
8050 fi
8051
8052 done
8053
8054 fi
8055 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
8056 if test "x$ac_cv_func_dlsym" = xyes; then :
8057
8058 else
8059
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8061 $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
8062 shared_modules=no
8063
8064 fi
8065
8066 for ac_func in dlfunc
8067 do :
8068 ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc"
8069 if test "x$ac_cv_func_dlfunc" = xyes; then :
8070 cat >>confdefs.h <<_ACEOF
8071 #define HAVE_DLFUNC 1
8072 _ACEOF
8073
8074 fi
8075 done
8076
8077
8078 else
8079
8080 shared_modules=no
8081
8082 fi
8083
8084
8085 fi
8086
8087 fi
8088
8089
8090 cat >>confdefs.h <<_ACEOF
8091 #define SHARED_SUFFIX "$SUFFIX"
8092 _ACEOF
8093
8094
8095 if test "$shared_modules" = yes; then
8096 # The GNU linker requires the -export-dynamic option to make
8097 # all symbols visible in the dynamic symbol table.
8098 hold_ldflags=$LDFLAGS
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8100 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
8101 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104
8105 int
8106 main ()
8107 {
8108 int i;
8109 ;
8110 return 0;
8111 }
8112 _ACEOF
8113 if ac_fn_c_try_link "$LINENO"; then :
8114 found=yes
8115 else
8116 found=no
8117 fi
8118 rm -f core conftest.err conftest.$ac_objext \
8119 conftest$ac_exeext conftest.$ac_ext
8120 LDFLAGS=$hold_ldflags
8121
8122 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
8123 found="no, IRIX ld uses -B,dynamic"
8124 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
8125 fi
8126
8127 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
8128 found="no, AIX ld uses -G -brtl"
8129 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
8130 fi
8131
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8133 $as_echo "$found" >&6; }
8134
8135 if test "$found" = yes; then
8136 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
8137 fi
8138
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8140 $as_echo_n "checking for compiler option to produce PIC... " >&6; }
8141 if test "$SGS" = "yes"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8143 $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
8144 PICFLAGS="-KPIC -DPIC -G"
8145 fi
8146
8147 if test "$AppleGCC" = "yes"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8149 $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
8150 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
8151 fi
8152 if test "$HPUX" = "yes" -a "$CC" != gcc; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8154 $as_echo "HP-UX cc: +z -r -q -n" >&6; }
8155 PICFLAGS="+z -r -q -n -c"
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8157 $as_echo_n "checking if +ESfic is required on this platform... " >&6; }
8158
8159 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8162 else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8164 $as_echo "yes" >&6; }
8165 PICFLAGS="$PICFLAGS +ESfic"
8166 fi
8167
8168 LDFLAGS="${LDFLAGS} -Wl,-E"
8169 fi
8170 if test "$Tru" = yes -a "$CC" != gcc; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8172 $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
8173 PICFLAGS="-shared -expect_unresolved '*' "
8174 LDFLAGS="-call_shared"
8175 fi
8176 if test -z "$PICFLAGS"; then
8177 if test "$ac_cv_c_compiler_gnu" = "yes"; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8179 $as_echo "gcc: -fPIC -DPIC -shared" >&6; }
8180 PICFLAGS="-fPIC -DPIC -shared"
8181 else
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 $as_echo "no" >&6; }
8184 shared_modules=no
8185 fi
8186 fi
8187 fi
8188
8189 # rpath, for finding libratbox.so at run time
8190 hold_ldflags=$LDFLAGS
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8192 $as_echo_n "checking for the ld -rpath flag... " >&6; }
8193 LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196
8197 int
8198 main ()
8199 {
8200 int i;
8201 ;
8202 return 0;
8203 }
8204 _ACEOF
8205 if ac_fn_c_try_link "$LINENO"; then :
8206 found=yes
8207 else
8208 found=no
8209 fi
8210 rm -f core conftest.err conftest.$ac_objext \
8211 conftest$ac_exeext conftest.$ac_ext
8212 LDFLAGS=$hold_ldflags
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8214 $as_echo "$found" >&6; }
8215 if test "$found" = yes; then
8216 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
8217 fi
8218
8219 # This must be down here, or it will mess up checks like the ones
8220 # for -Wl,-export-dynamic
8221 # -- jilles
8222 CWARNS=""
8223 # Check whether --enable-warnings was given.
8224 if test "${enable_warnings+set}" = set; then :
8225 enableval=$enable_warnings;
8226 IRC_CFLAGS="$IRC_CFLAGS -O0"
8227 CFLAGS="$IRC_CFLAGS"
8228
8229
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8231 $as_echo_n "checking GCC flag(s) -Wall... " >&6; }
8232 if test "${GCC-no}" = yes
8233 then
8234 if ${charybdis_cv_c_gcc_w_all+:} false; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237
8238 oldcflags="${CFLAGS-}"
8239 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242
8243 #include <string.h>
8244 #include <stdio.h>
8245 int main(void);
8246
8247 int
8248 main ()
8249 {
8250
8251 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8252
8253 ;
8254 return 0;
8255 }
8256 _ACEOF
8257 if ac_fn_c_try_compile "$LINENO"; then :
8258 charybdis_cv_c_gcc_w_all=yes
8259 else
8260 charybdis_cv_c_gcc_w_all=no
8261 fi
8262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263 CFLAGS="${oldcflags}"
8264 fi
8265
8266 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
8267 CWARNS="${CWARNS}-Wall "
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8269 $as_echo "ok" >&6; }
8270 else
8271 charybdis_cv_c_gcc_w_all=''
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8274 fi
8275 else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278 fi
8279
8280
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8282 $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
8283 if test "${GCC-no}" = yes
8284 then
8285 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then :
8286 $as_echo_n "(cached) " >&6
8287 else
8288
8289 oldcflags="${CFLAGS-}"
8290 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8293
8294 #include <string.h>
8295 #include <stdio.h>
8296 int main(void);
8297
8298 int
8299 main ()
8300 {
8301
8302 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8303
8304 ;
8305 return 0;
8306 }
8307 _ACEOF
8308 if ac_fn_c_try_compile "$LINENO"; then :
8309 charybdis_cv_c_gcc_w_pointer_arith=yes
8310 else
8311 charybdis_cv_c_gcc_w_pointer_arith=no
8312 fi
8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314 CFLAGS="${oldcflags}"
8315 fi
8316
8317 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
8318 CWARNS="${CWARNS}-Wpointer-arith "
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8320 $as_echo "ok" >&6; }
8321 else
8322 charybdis_cv_c_gcc_w_pointer_arith=''
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8325 fi
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8329 fi
8330
8331
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8333 $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
8334 if test "${GCC-no}" = yes
8335 then
8336 if ${charybdis_cv_c_gcc_w_implicit+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339
8340 oldcflags="${CFLAGS-}"
8341 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8344
8345 #include <string.h>
8346 #include <stdio.h>
8347 int main(void);
8348
8349 int
8350 main ()
8351 {
8352
8353 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8354
8355 ;
8356 return 0;
8357 }
8358 _ACEOF
8359 if ac_fn_c_try_compile "$LINENO"; then :
8360 charybdis_cv_c_gcc_w_implicit=yes
8361 else
8362 charybdis_cv_c_gcc_w_implicit=no
8363 fi
8364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365 CFLAGS="${oldcflags}"
8366 fi
8367
8368 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
8369 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8371 $as_echo "ok" >&6; }
8372 else
8373 charybdis_cv_c_gcc_w_implicit=''
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8376 fi
8377 else
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8380 fi
8381
8382
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8384 $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
8385 if test "${GCC-no}" = yes
8386 then
8387 if ${charybdis_cv_c_gcc_w_cast_align+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390
8391 oldcflags="${CFLAGS-}"
8392 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395
8396 #include <string.h>
8397 #include <stdio.h>
8398 int main(void);
8399
8400 int
8401 main ()
8402 {
8403
8404 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8405
8406 ;
8407 return 0;
8408 }
8409 _ACEOF
8410 if ac_fn_c_try_compile "$LINENO"; then :
8411 charybdis_cv_c_gcc_w_cast_align=yes
8412 else
8413 charybdis_cv_c_gcc_w_cast_align=no
8414 fi
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 CFLAGS="${oldcflags}"
8417 fi
8418
8419 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
8420 CWARNS="${CWARNS}-Wcast-align "
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8422 $as_echo "ok" >&6; }
8423 else
8424 charybdis_cv_c_gcc_w_cast_align=''
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 fi
8428 else
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8431 fi
8432
8433
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8435 $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
8436 if test "${GCC-no}" = yes
8437 then
8438 if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441
8442 oldcflags="${CFLAGS-}"
8443 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8446
8447 #include <string.h>
8448 #include <stdio.h>
8449 int main(void);
8450
8451 int
8452 main ()
8453 {
8454
8455 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8456
8457 ;
8458 return 0;
8459 }
8460 _ACEOF
8461 if ac_fn_c_try_compile "$LINENO"; then :
8462 charybdis_cv_c_gcc_w_cast_qual=yes
8463 else
8464 charybdis_cv_c_gcc_w_cast_qual=no
8465 fi
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 CFLAGS="${oldcflags}"
8468 fi
8469
8470 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
8471 CWARNS="${CWARNS}-Wcast-qual "
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8473 $as_echo "ok" >&6; }
8474 else
8475 charybdis_cv_c_gcc_w_cast_qual=''
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8478 fi
8479 else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8482 fi
8483
8484
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8486 $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
8487 if test "${GCC-no}" = yes
8488 then
8489 if ${charybdis_cv_c_gcc_w_write_strings+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492
8493 oldcflags="${CFLAGS-}"
8494 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497
8498 #include <string.h>
8499 #include <stdio.h>
8500 int main(void);
8501
8502 int
8503 main ()
8504 {
8505
8506 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8507
8508 ;
8509 return 0;
8510 }
8511 _ACEOF
8512 if ac_fn_c_try_compile "$LINENO"; then :
8513 charybdis_cv_c_gcc_w_write_strings=yes
8514 else
8515 charybdis_cv_c_gcc_w_write_strings=no
8516 fi
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 CFLAGS="${oldcflags}"
8519 fi
8520
8521 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
8522 CWARNS="${CWARNS}-Wwrite-strings "
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8524 $as_echo "ok" >&6; }
8525 else
8526 charybdis_cv_c_gcc_w_write_strings=''
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528 $as_echo "no" >&6; }
8529 fi
8530 else
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8533 fi
8534
8535
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8537 $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
8538 if test "${GCC-no}" = yes
8539 then
8540 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543
8544 oldcflags="${CFLAGS-}"
8545 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548
8549 #include <string.h>
8550 #include <stdio.h>
8551 int main(void);
8552
8553 int
8554 main ()
8555 {
8556
8557 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8558
8559 ;
8560 return 0;
8561 }
8562 _ACEOF
8563 if ac_fn_c_try_compile "$LINENO"; then :
8564 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
8565 else
8566 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
8567 fi
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569 CFLAGS="${oldcflags}"
8570 fi
8571
8572 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
8573 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8575 $as_echo "ok" >&6; }
8576 else
8577 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8580 fi
8581 else
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8584 fi
8585
8586
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8588 $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
8589 if test "${GCC-no}" = yes
8590 then
8591 if ${charybdis_cv_c_gcc_prototypes+:} false; then :
8592 $as_echo_n "(cached) " >&6
8593 else
8594
8595 oldcflags="${CFLAGS-}"
8596 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8599
8600 #include <string.h>
8601 #include <stdio.h>
8602 int main(void);
8603
8604 int
8605 main ()
8606 {
8607
8608 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8609
8610 ;
8611 return 0;
8612 }
8613 _ACEOF
8614 if ac_fn_c_try_compile "$LINENO"; then :
8615 charybdis_cv_c_gcc_prototypes=yes
8616 else
8617 charybdis_cv_c_gcc_prototypes=no
8618 fi
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 CFLAGS="${oldcflags}"
8621 fi
8622
8623 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
8624 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8626 $as_echo "ok" >&6; }
8627 else
8628 charybdis_cv_c_gcc_prototypes=''
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630 $as_echo "no" >&6; }
8631 fi
8632 else
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8635 fi
8636
8637
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
8639 $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
8640 if test "${GCC-no}" = yes
8641 then
8642 if ${charybdis_cv_c_gcc_parenthesis+:} false; then :
8643 $as_echo_n "(cached) " >&6
8644 else
8645
8646 oldcflags="${CFLAGS-}"
8647 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8650
8651 #include <string.h>
8652 #include <stdio.h>
8653 int main(void);
8654
8655 int
8656 main ()
8657 {
8658
8659 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8660
8661 ;
8662 return 0;
8663 }
8664 _ACEOF
8665 if ac_fn_c_try_compile "$LINENO"; then :
8666 charybdis_cv_c_gcc_parenthesis=yes
8667 else
8668 charybdis_cv_c_gcc_parenthesis=no
8669 fi
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 CFLAGS="${oldcflags}"
8672 fi
8673
8674 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
8675 CWARNS="${CWARNS}-Wparenthesis "
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8677 $as_echo "ok" >&6; }
8678 else
8679 charybdis_cv_c_gcc_parenthesis=''
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8682 fi
8683 else
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8686 fi
8687
8688
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8690 $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
8691 if test "${GCC-no}" = yes
8692 then
8693 if ${charybdis_cv_c_gcc_w+:} false; then :
8694 $as_echo_n "(cached) " >&6
8695 else
8696
8697 oldcflags="${CFLAGS-}"
8698 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8701
8702 #include <string.h>
8703 #include <stdio.h>
8704 int main(void);
8705
8706 int
8707 main ()
8708 {
8709
8710 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8711
8712 ;
8713 return 0;
8714 }
8715 _ACEOF
8716 if ac_fn_c_try_compile "$LINENO"; then :
8717 charybdis_cv_c_gcc_w=yes
8718 else
8719 charybdis_cv_c_gcc_w=no
8720 fi
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 CFLAGS="${oldcflags}"
8723 fi
8724
8725 if test "x$charybdis_cv_c_gcc_w" = xyes; then
8726 CWARNS="${CWARNS}-W -Wno-unused "
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8728 $as_echo "ok" >&6; }
8729 else
8730 charybdis_cv_c_gcc_w=''
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732 $as_echo "no" >&6; }
8733 fi
8734 else
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 $as_echo "no" >&6; }
8737 fi
8738
8739
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8741 $as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
8742 if test "${GCC-no}" = yes
8743 then
8744 if ${charybdis_cv_c_gcc_w_extra+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747
8748 oldcflags="${CFLAGS-}"
8749 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752
8753 #include <string.h>
8754 #include <stdio.h>
8755 int main(void);
8756
8757 int
8758 main ()
8759 {
8760
8761 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8762
8763 ;
8764 return 0;
8765 }
8766 _ACEOF
8767 if ac_fn_c_try_compile "$LINENO"; then :
8768 charybdis_cv_c_gcc_w_extra=yes
8769 else
8770 charybdis_cv_c_gcc_w_extra=no
8771 fi
8772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8773 CFLAGS="${oldcflags}"
8774 fi
8775
8776 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
8777 CWARNS="${CWARNS}-Wextra "
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8779 $as_echo "ok" >&6; }
8780 else
8781 charybdis_cv_c_gcc_w_extra=''
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783 $as_echo "no" >&6; }
8784 fi
8785 else
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 $as_echo "no" >&6; }
8788 fi
8789
8790
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
8792 $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
8793 if test "${GCC-no}" = yes
8794 then
8795 if ${charybdis_cv_c_gcc_w_shadow+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798
8799 oldcflags="${CFLAGS-}"
8800 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803
8804 #include <string.h>
8805 #include <stdio.h>
8806 int main(void);
8807
8808 int
8809 main ()
8810 {
8811
8812 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8813
8814 ;
8815 return 0;
8816 }
8817 _ACEOF
8818 if ac_fn_c_try_compile "$LINENO"; then :
8819 charybdis_cv_c_gcc_w_shadow=yes
8820 else
8821 charybdis_cv_c_gcc_w_shadow=no
8822 fi
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8824 CFLAGS="${oldcflags}"
8825 fi
8826
8827 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
8828 CWARNS="${CWARNS}-Wshadow "
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8830 $as_echo "ok" >&6; }
8831 else
8832 charybdis_cv_c_gcc_w_shadow=''
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834 $as_echo "no" >&6; }
8835 fi
8836 else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8839 fi
8840
8841
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
8843 $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
8844 if test "${GCC-no}" = yes
8845 then
8846 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then :
8847 $as_echo_n "(cached) " >&6
8848 else
8849
8850 oldcflags="${CFLAGS-}"
8851 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854
8855 #include <string.h>
8856 #include <stdio.h>
8857 int main(void);
8858
8859 int
8860 main ()
8861 {
8862
8863 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8864
8865 ;
8866 return 0;
8867 }
8868 _ACEOF
8869 if ac_fn_c_try_compile "$LINENO"; then :
8870 charybdis_cv_c_gcc_w_missing_noreturn=yes
8871 else
8872 charybdis_cv_c_gcc_w_missing_noreturn=no
8873 fi
8874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875 CFLAGS="${oldcflags}"
8876 fi
8877
8878 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
8879 CWARNS="${CWARNS}-Wmissing-noreturn "
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8881 $as_echo "ok" >&6; }
8882 else
8883 charybdis_cv_c_gcc_w_missing_noreturn=''
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8885 $as_echo "no" >&6; }
8886 fi
8887 else
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8890 fi
8891
8892
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
8894 $as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
8895 if test "${GCC-no}" = yes
8896 then
8897 if ${charybdis_cv_c_gcc_w_undef+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900
8901 oldcflags="${CFLAGS-}"
8902 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905
8906 #include <string.h>
8907 #include <stdio.h>
8908 int main(void);
8909
8910 int
8911 main ()
8912 {
8913
8914 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8915
8916 ;
8917 return 0;
8918 }
8919 _ACEOF
8920 if ac_fn_c_try_compile "$LINENO"; then :
8921 charybdis_cv_c_gcc_w_undef=yes
8922 else
8923 charybdis_cv_c_gcc_w_undef=no
8924 fi
8925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 CFLAGS="${oldcflags}"
8927 fi
8928
8929 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
8930 CWARNS="${CWARNS}-Wundef "
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8932 $as_echo "ok" >&6; }
8933 else
8934 charybdis_cv_c_gcc_w_undef=''
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936 $as_echo "no" >&6; }
8937 fi
8938 else
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 $as_echo "no" >&6; }
8941 fi
8942
8943
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
8945 $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
8946 if test "${GCC-no}" = yes
8947 then
8948 if ${charybdis_cv_c_gcc_w_packed+:} false; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951
8952 oldcflags="${CFLAGS-}"
8953 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8956
8957 #include <string.h>
8958 #include <stdio.h>
8959 int main(void);
8960
8961 int
8962 main ()
8963 {
8964
8965 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8966
8967 ;
8968 return 0;
8969 }
8970 _ACEOF
8971 if ac_fn_c_try_compile "$LINENO"; then :
8972 charybdis_cv_c_gcc_w_packed=yes
8973 else
8974 charybdis_cv_c_gcc_w_packed=no
8975 fi
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977 CFLAGS="${oldcflags}"
8978 fi
8979
8980 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
8981 CWARNS="${CWARNS}-Wpacked "
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8983 $as_echo "ok" >&6; }
8984 else
8985 charybdis_cv_c_gcc_w_packed=''
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987 $as_echo "no" >&6; }
8988 fi
8989 else
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 $as_echo "no" >&6; }
8992 fi
8993
8994
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
8996 $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
8997 if test "${GCC-no}" = yes
8998 then
8999 if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002
9003 oldcflags="${CFLAGS-}"
9004 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007
9008 #include <string.h>
9009 #include <stdio.h>
9010 int main(void);
9011
9012 int
9013 main ()
9014 {
9015
9016 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9017
9018 ;
9019 return 0;
9020 }
9021 _ACEOF
9022 if ac_fn_c_try_compile "$LINENO"; then :
9023 charybdis_cv_c_gcc_w_nested_externs=yes
9024 else
9025 charybdis_cv_c_gcc_w_nested_externs=no
9026 fi
9027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9028 CFLAGS="${oldcflags}"
9029 fi
9030
9031 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
9032 CWARNS="${CWARNS}-Wnested-externs "
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9034 $as_echo "ok" >&6; }
9035 else
9036 charybdis_cv_c_gcc_w_nested_externs=''
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9038 $as_echo "no" >&6; }
9039 fi
9040 else
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9043 fi
9044
9045
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9047 $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
9048 if test "${GCC-no}" = yes
9049 then
9050 if ${charybdis_cv_c_gcc_w_unused+:} false; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053
9054 oldcflags="${CFLAGS-}"
9055 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058
9059 #include <string.h>
9060 #include <stdio.h>
9061 int main(void);
9062
9063 int
9064 main ()
9065 {
9066
9067 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9068
9069 ;
9070 return 0;
9071 }
9072 _ACEOF
9073 if ac_fn_c_try_compile "$LINENO"; then :
9074 charybdis_cv_c_gcc_w_unused=yes
9075 else
9076 charybdis_cv_c_gcc_w_unused=no
9077 fi
9078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9079 CFLAGS="${oldcflags}"
9080 fi
9081
9082 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
9083 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9085 $as_echo "ok" >&6; }
9086 else
9087 charybdis_cv_c_gcc_w_unused=''
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9090 fi
9091 else
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9094 fi
9095
9096
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9098 $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
9099 if test "${GCC-no}" = yes
9100 then
9101 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104
9105 oldcflags="${CFLAGS-}"
9106 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109
9110 #include <string.h>
9111 #include <stdio.h>
9112 int main(void);
9113
9114 int
9115 main ()
9116 {
9117
9118 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9119
9120 ;
9121 return 0;
9122 }
9123 _ACEOF
9124 if ac_fn_c_try_compile "$LINENO"; then :
9125 charybdis_cv_c_gcc_w_redundant_decls=yes
9126 else
9127 charybdis_cv_c_gcc_w_redundant_decls=no
9128 fi
9129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130 CFLAGS="${oldcflags}"
9131 fi
9132
9133 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
9134 CWARNS="${CWARNS}-Wredundant-decls "
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9136 $as_echo "ok" >&6; }
9137 else
9138 charybdis_cv_c_gcc_w_redundant_decls=''
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9141 fi
9142 else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9145 fi
9146
9147
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9149 $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
9150 if test "${GCC-no}" = yes
9151 then
9152 if ${charybdis_cv_c_gcc_w_float_equal+:} false; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155
9156 oldcflags="${CFLAGS-}"
9157 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9160
9161 #include <string.h>
9162 #include <stdio.h>
9163 int main(void);
9164
9165 int
9166 main ()
9167 {
9168
9169 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9170
9171 ;
9172 return 0;
9173 }
9174 _ACEOF
9175 if ac_fn_c_try_compile "$LINENO"; then :
9176 charybdis_cv_c_gcc_w_float_equal=yes
9177 else
9178 charybdis_cv_c_gcc_w_float_equal=no
9179 fi
9180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9181 CFLAGS="${oldcflags}"
9182 fi
9183
9184 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
9185 CWARNS="${CWARNS}-Wfloat-equal "
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9187 $as_echo "ok" >&6; }
9188 else
9189 charybdis_cv_c_gcc_w_float_equal=''
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 $as_echo "no" >&6; }
9192 fi
9193 else
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9195 $as_echo "no" >&6; }
9196 fi
9197
9198
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9200 $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
9201 if test "${GCC-no}" = yes
9202 then
9203 if ${charybdis_cv_c_gcc_w_format+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206
9207 oldcflags="${CFLAGS-}"
9208 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9211
9212 #include <string.h>
9213 #include <stdio.h>
9214 int main(void);
9215
9216 int
9217 main ()
9218 {
9219
9220 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9221
9222 ;
9223 return 0;
9224 }
9225 _ACEOF
9226 if ac_fn_c_try_compile "$LINENO"; then :
9227 charybdis_cv_c_gcc_w_format=yes
9228 else
9229 charybdis_cv_c_gcc_w_format=no
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9232 CFLAGS="${oldcflags}"
9233 fi
9234
9235 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
9236 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9238 $as_echo "ok" >&6; }
9239 else
9240 charybdis_cv_c_gcc_w_format=''
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242 $as_echo "no" >&6; }
9243 fi
9244 else
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246 $as_echo "no" >&6; }
9247 fi
9248
9249
9250 IRC_CFLAGS="$CFLAGS"
9251
9252 fi
9253
9254
9255 if test "$shared_modules" = no; then
9256 DYNLINK_C=""
9257 MOD_TARGET="libmodules.a"
9258 MODULES_LIBS="../modules/libmodules.a"
9259 SEDOBJ=""
9260
9261 $as_echo "#define STATIC_MODULES 1" >>confdefs.h
9262
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9264 $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
9265 fi
9266
9267 if test "$shared_modules" = yes; then
9268
9269 ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist"
9270 if test "x$ac_cv_func_nlist" = xyes; then :
9271
9272 else
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9274 $as_echo_n "checking for nlist in -ldl... " >&6; }
9275 if ${ac_cv_lib_dl_nlist+:} false; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 ac_check_lib_save_LIBS=$LIBS
9279 LIBS="-ldl $LIBS"
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282
9283 /* Override any GCC internal prototype to avoid an error.
9284 Use char because int might match the return type of a GCC
9285 builtin and then its argument prototype would still apply. */
9286 #ifdef __cplusplus
9287 extern "C"
9288 #endif
9289 char nlist ();
9290 int
9291 main ()
9292 {
9293 return nlist ();
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 ac_cv_lib_dl_nlist=yes
9300 else
9301 ac_cv_lib_dl_nlist=no
9302 fi
9303 rm -f core conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9305 LIBS=$ac_check_lib_save_LIBS
9306 fi
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9308 $as_echo "$ac_cv_lib_dl_nlist" >&6; }
9309 if test "x$ac_cv_lib_dl_nlist" = xyes; then :
9310 nlist_lib="-ldl"
9311 else
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9313 $as_echo_n "checking for nlist in -lelf... " >&6; }
9314 if ${ac_cv_lib_elf_nlist+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 ac_check_lib_save_LIBS=$LIBS
9318 LIBS="-lelf $LIBS"
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9321
9322 /* Override any GCC internal prototype to avoid an error.
9323 Use char because int might match the return type of a GCC
9324 builtin and then its argument prototype would still apply. */
9325 #ifdef __cplusplus
9326 extern "C"
9327 #endif
9328 char nlist ();
9329 int
9330 main ()
9331 {
9332 return nlist ();
9333 ;
9334 return 0;
9335 }
9336 _ACEOF
9337 if ac_fn_c_try_link "$LINENO"; then :
9338 ac_cv_lib_elf_nlist=yes
9339 else
9340 ac_cv_lib_elf_nlist=no
9341 fi
9342 rm -f core conftest.err conftest.$ac_objext \
9343 conftest$ac_exeext conftest.$ac_ext
9344 LIBS=$ac_check_lib_save_LIBS
9345 fi
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9347 $as_echo "$ac_cv_lib_elf_nlist" >&6; }
9348 if test "x$ac_cv_lib_elf_nlist" = xyes; then :
9349 nlist_lib="-lelf"
9350 fi
9351
9352
9353 fi
9354
9355
9356 fi
9357
9358
9359 ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
9360 if test "x$ac_cv_header_libelf_nlist_h" = xyes; then :
9361 nlist_h="libelf/nlist.h"
9362 fi
9363
9364
9365 ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
9366 if test "x$ac_cv_header_elf_nlist_h" = xyes; then :
9367 nlist_h="elf/nlist.h"
9368 fi
9369
9370
9371 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
9372 if test "x$ac_cv_header_nlist_h" = xyes; then :
9373 nlist_h="nlist.h"
9374 fi
9375
9376
9377 if test x"$nlist_h" = "x"; then
9378
9379 cat >>confdefs.h <<_ACEOF
9380 #define SYMBOL_PREFIX ""
9381 _ACEOF
9382
9383 else
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9385 $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
9386 if ${symbol_underscores+:} false; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389
9390 cat << EOF > conftest.c
9391 #include <$nlist_h>
9392 #include <stdio.h>
9393 #include <stdlib.h>
9394 void _modinit(void);
9395 int main(int argc, char *argv[]) {
9396 int i;
9397 struct nlist nl[5];
9398
9399 /* fill the names in this way, so it'll work almost everywhere */
9400 nl[0].n_name = "_modinit";
9401 nl[1].n_name = "__modinit";
9402 nl[2].n_name = "___modinit";
9403 nl[3].n_name = "____modinit";
9404 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9405
9406 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9407 for(i = 0; i < 4; i++) {
9408 if(nl[i].n_value != NULL)
9409 {
9410 int j;
9411 for(j = 0; j < i; j++)
9412 printf("_");
9413 exit(i);
9414 }
9415 }
9416 exit(-1);
9417 }
9418 void _modinit(void) { return; }
9419 EOF
9420 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
9421 symbol_underscores=`./conftest conftest`
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9423 $as_echo "$symbol_underscores" >&6; }
9424 $RM -f conftest conftest.c
9425
9426 fi
9427
9428
9429 cat >>confdefs.h <<_ACEOF
9430 #define SYMBOL_PREFIX "${symbol_underscores}"
9431 _ACEOF
9432
9433 fi
9434 fi
9435
9436 IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451 if test "$prefix" = "NONE"; then
9452
9453 cat >>confdefs.h <<_ACEOF
9454 #define IRCD_PREFIX "$ac_default_prefix"
9455 _ACEOF
9456
9457
9458 else
9459
9460
9461 prefix=`echo $prefix | sed 's/\/$//'`
9462
9463 cat >>confdefs.h <<_ACEOF
9464 #define IRCD_PREFIX "$prefix"
9465 _ACEOF
9466
9467
9468 fi
9469
9470 ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
9471
9472
9473 cat >confcache <<\_ACEOF
9474 # This file is a shell script that caches the results of configure
9475 # tests run on this system so they can be shared between configure
9476 # scripts and configure runs, see configure's option --config-cache.
9477 # It is not useful on other systems. If it contains results you don't
9478 # want to keep, you may remove or edit it.
9479 #
9480 # config.status only pays attention to the cache file if you give it
9481 # the --recheck option to rerun configure.
9482 #
9483 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9485 # following values.
9486
9487 _ACEOF
9488
9489 # The following way of writing the cache mishandles newlines in values,
9490 # but we know of no workaround that is simple, portable, and efficient.
9491 # So, we kill variables containing newlines.
9492 # Ultrix sh set writes to stderr and can't be redirected directly,
9493 # and sets the high bit in the cache file unless we assign to the vars.
9494 (
9495 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9496 eval ac_val=\$$ac_var
9497 case $ac_val in #(
9498 *${as_nl}*)
9499 case $ac_var in #(
9500 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9501 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9502 esac
9503 case $ac_var in #(
9504 _ | IFS | as_nl) ;; #(
9505 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9506 *) { eval $ac_var=; unset $ac_var;} ;;
9507 esac ;;
9508 esac
9509 done
9510
9511 (set) 2>&1 |
9512 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9513 *${as_nl}ac_space=\ *)
9514 # `set' does not quote correctly, so add quotes: double-quote
9515 # substitution turns \\\\ into \\, and sed turns \\ into \.
9516 sed -n \
9517 "s/'/'\\\\''/g;
9518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9519 ;; #(
9520 *)
9521 # `set' quotes correctly as required by POSIX, so do not add quotes.
9522 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9523 ;;
9524 esac |
9525 sort
9526 ) |
9527 sed '
9528 /^ac_cv_env_/b end
9529 t clear
9530 :clear
9531 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9532 t end
9533 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9534 :end' >>confcache
9535 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9536 if test -w "$cache_file"; then
9537 if test "x$cache_file" != "x/dev/null"; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9539 $as_echo "$as_me: updating cache $cache_file" >&6;}
9540 if test ! -f "$cache_file" || test -h "$cache_file"; then
9541 cat confcache >"$cache_file"
9542 else
9543 case $cache_file in #(
9544 */* | ?:*)
9545 mv -f confcache "$cache_file"$$ &&
9546 mv -f "$cache_file"$$ "$cache_file" ;; #(
9547 *)
9548 mv -f confcache "$cache_file" ;;
9549 esac
9550 fi
9551 fi
9552 else
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9554 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9555 fi
9556 fi
9557 rm -f confcache
9558
9559 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9560 # Let make expand exec_prefix.
9561 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9562
9563 DEFS=-DHAVE_CONFIG_H
9564
9565 ac_libobjs=
9566 ac_ltlibobjs=
9567 U=
9568 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9569 # 1. Remove the extension, and $U if already installed.
9570 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9571 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9572 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9573 # will be set to the directory where LIBOBJS objects are built.
9574 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9575 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9576 done
9577 LIBOBJS=$ac_libobjs
9578
9579 LTLIBOBJS=$ac_ltlibobjs
9580
9581
9582
9583
9584
9585 : "${CONFIG_STATUS=./config.status}"
9586 ac_write_fail=0
9587 ac_clean_files_save=$ac_clean_files
9588 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9590 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9591 as_write_fail=0
9592 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9593 #! $SHELL
9594 # Generated by $as_me.
9595 # Run this file to recreate the current configuration.
9596 # Compiler output produced by configure, useful for debugging
9597 # configure, is in config.log if it exists.
9598
9599 debug=false
9600 ac_cs_recheck=false
9601 ac_cs_silent=false
9602
9603 SHELL=\${CONFIG_SHELL-$SHELL}
9604 export SHELL
9605 _ASEOF
9606 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9607 ## -------------------- ##
9608 ## M4sh Initialization. ##
9609 ## -------------------- ##
9610
9611 # Be more Bourne compatible
9612 DUALCASE=1; export DUALCASE # for MKS sh
9613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9614 emulate sh
9615 NULLCMD=:
9616 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9617 # is contrary to our usage. Disable this feature.
9618 alias -g '${1+"$@"}'='"$@"'
9619 setopt NO_GLOB_SUBST
9620 else
9621 case `(set -o) 2>/dev/null` in #(
9622 *posix*) :
9623 set -o posix ;; #(
9624 *) :
9625 ;;
9626 esac
9627 fi
9628
9629
9630 as_nl='
9631 '
9632 export as_nl
9633 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9634 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9635 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9636 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9637 # Prefer a ksh shell builtin over an external printf program on Solaris,
9638 # but without wasting forks for bash or zsh.
9639 if test -z "$BASH_VERSION$ZSH_VERSION" \
9640 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9641 as_echo='print -r --'
9642 as_echo_n='print -rn --'
9643 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9644 as_echo='printf %s\n'
9645 as_echo_n='printf %s'
9646 else
9647 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9648 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9649 as_echo_n='/usr/ucb/echo -n'
9650 else
9651 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9652 as_echo_n_body='eval
9653 arg=$1;
9654 case $arg in #(
9655 *"$as_nl"*)
9656 expr "X$arg" : "X\\(.*\\)$as_nl";
9657 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9658 esac;
9659 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9660 '
9661 export as_echo_n_body
9662 as_echo_n='sh -c $as_echo_n_body as_echo'
9663 fi
9664 export as_echo_body
9665 as_echo='sh -c $as_echo_body as_echo'
9666 fi
9667
9668 # The user is always right.
9669 if test "${PATH_SEPARATOR+set}" != set; then
9670 PATH_SEPARATOR=:
9671 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9672 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9673 PATH_SEPARATOR=';'
9674 }
9675 fi
9676
9677
9678 # IFS
9679 # We need space, tab and new line, in precisely that order. Quoting is
9680 # there to prevent editors from complaining about space-tab.
9681 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9682 # splitting by setting IFS to empty value.)
9683 IFS=" "" $as_nl"
9684
9685 # Find who we are. Look in the path if we contain no directory separator.
9686 as_myself=
9687 case $0 in #((
9688 *[\\/]* ) as_myself=$0 ;;
9689 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in $PATH
9691 do
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
9694 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9695 done
9696 IFS=$as_save_IFS
9697
9698 ;;
9699 esac
9700 # We did not find ourselves, most probably we were run as `sh COMMAND'
9701 # in which case we are not to be found in the path.
9702 if test "x$as_myself" = x; then
9703 as_myself=$0
9704 fi
9705 if test ! -f "$as_myself"; then
9706 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9707 exit 1
9708 fi
9709
9710 # Unset variables that we do not need and which cause bugs (e.g. in
9711 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9712 # suppresses any "Segmentation fault" message there. '((' could
9713 # trigger a bug in pdksh 5.2.14.
9714 for as_var in BASH_ENV ENV MAIL MAILPATH
9715 do eval test x\${$as_var+set} = xset \
9716 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9717 done
9718 PS1='$ '
9719 PS2='> '
9720 PS4='+ '
9721
9722 # NLS nuisances.
9723 LC_ALL=C
9724 export LC_ALL
9725 LANGUAGE=C
9726 export LANGUAGE
9727
9728 # CDPATH.
9729 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9730
9731
9732 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9733 # ----------------------------------------
9734 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9735 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9736 # script with STATUS, using 1 if that was 0.
9737 as_fn_error ()
9738 {
9739 as_status=$1; test $as_status -eq 0 && as_status=1
9740 if test "$4"; then
9741 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9742 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9743 fi
9744 $as_echo "$as_me: error: $2" >&2
9745 as_fn_exit $as_status
9746 } # as_fn_error
9747
9748
9749 # as_fn_set_status STATUS
9750 # -----------------------
9751 # Set $? to STATUS, without forking.
9752 as_fn_set_status ()
9753 {
9754 return $1
9755 } # as_fn_set_status
9756
9757 # as_fn_exit STATUS
9758 # -----------------
9759 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9760 as_fn_exit ()
9761 {
9762 set +e
9763 as_fn_set_status $1
9764 exit $1
9765 } # as_fn_exit
9766
9767 # as_fn_unset VAR
9768 # ---------------
9769 # Portably unset VAR.
9770 as_fn_unset ()
9771 {
9772 { eval $1=; unset $1;}
9773 }
9774 as_unset=as_fn_unset
9775 # as_fn_append VAR VALUE
9776 # ----------------------
9777 # Append the text in VALUE to the end of the definition contained in VAR. Take
9778 # advantage of any shell optimizations that allow amortized linear growth over
9779 # repeated appends, instead of the typical quadratic growth present in naive
9780 # implementations.
9781 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9782 eval 'as_fn_append ()
9783 {
9784 eval $1+=\$2
9785 }'
9786 else
9787 as_fn_append ()
9788 {
9789 eval $1=\$$1\$2
9790 }
9791 fi # as_fn_append
9792
9793 # as_fn_arith ARG...
9794 # ------------------
9795 # Perform arithmetic evaluation on the ARGs, and store the result in the
9796 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9797 # must be portable across $(()) and expr.
9798 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9799 eval 'as_fn_arith ()
9800 {
9801 as_val=$(( $* ))
9802 }'
9803 else
9804 as_fn_arith ()
9805 {
9806 as_val=`expr "$@" || test $? -eq 1`
9807 }
9808 fi # as_fn_arith
9809
9810
9811 if expr a : '\(a\)' >/dev/null 2>&1 &&
9812 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9813 as_expr=expr
9814 else
9815 as_expr=false
9816 fi
9817
9818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9819 as_basename=basename
9820 else
9821 as_basename=false
9822 fi
9823
9824 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9825 as_dirname=dirname
9826 else
9827 as_dirname=false
9828 fi
9829
9830 as_me=`$as_basename -- "$0" ||
9831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9832 X"$0" : 'X\(//\)$' \| \
9833 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9834 $as_echo X/"$0" |
9835 sed '/^.*\/\([^/][^/]*\)\/*$/{
9836 s//\1/
9837 q
9838 }
9839 /^X\/\(\/\/\)$/{
9840 s//\1/
9841 q
9842 }
9843 /^X\/\(\/\).*/{
9844 s//\1/
9845 q
9846 }
9847 s/.*/./; q'`
9848
9849 # Avoid depending upon Character Ranges.
9850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9853 as_cr_digits='0123456789'
9854 as_cr_alnum=$as_cr_Letters$as_cr_digits
9855
9856 ECHO_C= ECHO_N= ECHO_T=
9857 case `echo -n x` in #(((((
9858 -n*)
9859 case `echo 'xy\c'` in
9860 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9861 xy) ECHO_C='\c';;
9862 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9863 ECHO_T=' ';;
9864 esac;;
9865 *)
9866 ECHO_N='-n';;
9867 esac
9868
9869 rm -f conf$$ conf$$.exe conf$$.file
9870 if test -d conf$$.dir; then
9871 rm -f conf$$.dir/conf$$.file
9872 else
9873 rm -f conf$$.dir
9874 mkdir conf$$.dir 2>/dev/null
9875 fi
9876 if (echo >conf$$.file) 2>/dev/null; then
9877 if ln -s conf$$.file conf$$ 2>/dev/null; then
9878 as_ln_s='ln -s'
9879 # ... but there are two gotchas:
9880 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9881 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9882 # In both cases, we have to default to `cp -p'.
9883 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9884 as_ln_s='cp -p'
9885 elif ln conf$$.file conf$$ 2>/dev/null; then
9886 as_ln_s=ln
9887 else
9888 as_ln_s='cp -p'
9889 fi
9890 else
9891 as_ln_s='cp -p'
9892 fi
9893 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9894 rmdir conf$$.dir 2>/dev/null
9895
9896
9897 # as_fn_mkdir_p
9898 # -------------
9899 # Create "$as_dir" as a directory, including parents if necessary.
9900 as_fn_mkdir_p ()
9901 {
9902
9903 case $as_dir in #(
9904 -*) as_dir=./$as_dir;;
9905 esac
9906 test -d "$as_dir" || eval $as_mkdir_p || {
9907 as_dirs=
9908 while :; do
9909 case $as_dir in #(
9910 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9911 *) as_qdir=$as_dir;;
9912 esac
9913 as_dirs="'$as_qdir' $as_dirs"
9914 as_dir=`$as_dirname -- "$as_dir" ||
9915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9916 X"$as_dir" : 'X\(//\)[^/]' \| \
9917 X"$as_dir" : 'X\(//\)$' \| \
9918 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9919 $as_echo X"$as_dir" |
9920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9921 s//\1/
9922 q
9923 }
9924 /^X\(\/\/\)[^/].*/{
9925 s//\1/
9926 q
9927 }
9928 /^X\(\/\/\)$/{
9929 s//\1/
9930 q
9931 }
9932 /^X\(\/\).*/{
9933 s//\1/
9934 q
9935 }
9936 s/.*/./; q'`
9937 test -d "$as_dir" && break
9938 done
9939 test -z "$as_dirs" || eval "mkdir $as_dirs"
9940 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9941
9942
9943 } # as_fn_mkdir_p
9944 if mkdir -p . 2>/dev/null; then
9945 as_mkdir_p='mkdir -p "$as_dir"'
9946 else
9947 test -d ./-p && rmdir ./-p
9948 as_mkdir_p=false
9949 fi
9950
9951 if test -x / >/dev/null 2>&1; then
9952 as_test_x='test -x'
9953 else
9954 if ls -dL / >/dev/null 2>&1; then
9955 as_ls_L_option=L
9956 else
9957 as_ls_L_option=
9958 fi
9959 as_test_x='
9960 eval sh -c '\''
9961 if test -d "$1"; then
9962 test -d "$1/.";
9963 else
9964 case $1 in #(
9965 -*)set "./$1";;
9966 esac;
9967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9968 ???[sx]*):;;*)false;;esac;fi
9969 '\'' sh
9970 '
9971 fi
9972 as_executable_p=$as_test_x
9973
9974 # Sed expression to map a string onto a valid CPP name.
9975 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9976
9977 # Sed expression to map a string onto a valid variable name.
9978 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9979
9980
9981 exec 6>&1
9982 ## ----------------------------------- ##
9983 ## Main body of $CONFIG_STATUS script. ##
9984 ## ----------------------------------- ##
9985 _ASEOF
9986 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9987
9988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9989 # Save the log message, to keep $0 and so on meaningful, and to
9990 # report actual input values of CONFIG_FILES etc. instead of their
9991 # values after options handling.
9992 ac_log="
9993 This file was extended by shadowircd $as_me 6.2.0, which was
9994 generated by GNU Autoconf 2.68. Invocation command line was
9995
9996 CONFIG_FILES = $CONFIG_FILES
9997 CONFIG_HEADERS = $CONFIG_HEADERS
9998 CONFIG_LINKS = $CONFIG_LINKS
9999 CONFIG_COMMANDS = $CONFIG_COMMANDS
10000 $ $0 $@
10001
10002 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10003 "
10004
10005 _ACEOF
10006
10007 case $ac_config_files in *"
10008 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10009 esac
10010
10011 case $ac_config_headers in *"
10012 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10013 esac
10014
10015
10016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10017 # Files that config.status was made for.
10018 config_files="$ac_config_files"
10019 config_headers="$ac_config_headers"
10020
10021 _ACEOF
10022
10023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10024 ac_cs_usage="\
10025 \`$as_me' instantiates files and other configuration actions
10026 from templates according to the current configuration. Unless the files
10027 and actions are specified as TAGs, all are instantiated by default.
10028
10029 Usage: $0 [OPTION]... [TAG]...
10030
10031 -h, --help print this help, then exit
10032 -V, --version print version number and configuration settings, then exit
10033 --config print configuration, then exit
10034 -q, --quiet, --silent
10035 do not print progress messages
10036 -d, --debug don't remove temporary files
10037 --recheck update $as_me by reconfiguring in the same conditions
10038 --file=FILE[:TEMPLATE]
10039 instantiate the configuration file FILE
10040 --header=FILE[:TEMPLATE]
10041 instantiate the configuration header FILE
10042
10043 Configuration files:
10044 $config_files
10045
10046 Configuration headers:
10047 $config_headers
10048
10049 Report bugs to the package provider."
10050
10051 _ACEOF
10052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10053 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10054 ac_cs_version="\\
10055 shadowircd config.status 6.2.0
10056 configured by $0, generated by GNU Autoconf 2.68,
10057 with options \\"\$ac_cs_config\\"
10058
10059 Copyright (C) 2010 Free Software Foundation, Inc.
10060 This config.status script is free software; the Free Software Foundation
10061 gives unlimited permission to copy, distribute and modify it."
10062
10063 ac_pwd='$ac_pwd'
10064 srcdir='$srcdir'
10065 INSTALL='$INSTALL'
10066 test -n "\$AWK" || AWK=awk
10067 _ACEOF
10068
10069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10070 # The default lists apply if the user does not specify any file.
10071 ac_need_defaults=:
10072 while test $# != 0
10073 do
10074 case $1 in
10075 --*=?*)
10076 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10077 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10078 ac_shift=:
10079 ;;
10080 --*=)
10081 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10082 ac_optarg=
10083 ac_shift=:
10084 ;;
10085 *)
10086 ac_option=$1
10087 ac_optarg=$2
10088 ac_shift=shift
10089 ;;
10090 esac
10091
10092 case $ac_option in
10093 # Handling of the options.
10094 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10095 ac_cs_recheck=: ;;
10096 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10097 $as_echo "$ac_cs_version"; exit ;;
10098 --config | --confi | --conf | --con | --co | --c )
10099 $as_echo "$ac_cs_config"; exit ;;
10100 --debug | --debu | --deb | --de | --d | -d )
10101 debug=: ;;
10102 --file | --fil | --fi | --f )
10103 $ac_shift
10104 case $ac_optarg in
10105 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10106 '') as_fn_error $? "missing file argument" ;;
10107 esac
10108 as_fn_append CONFIG_FILES " '$ac_optarg'"
10109 ac_need_defaults=false;;
10110 --header | --heade | --head | --hea )
10111 $ac_shift
10112 case $ac_optarg in
10113 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10114 esac
10115 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10116 ac_need_defaults=false;;
10117 --he | --h)
10118 # Conflict between --help and --header
10119 as_fn_error $? "ambiguous option: \`$1'
10120 Try \`$0 --help' for more information.";;
10121 --help | --hel | -h )
10122 $as_echo "$ac_cs_usage"; exit ;;
10123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10124 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10125 ac_cs_silent=: ;;
10126
10127 # This is an error.
10128 -*) as_fn_error $? "unrecognized option: \`$1'
10129 Try \`$0 --help' for more information." ;;
10130
10131 *) as_fn_append ac_config_targets " $1"
10132 ac_need_defaults=false ;;
10133
10134 esac
10135 shift
10136 done
10137
10138 ac_configure_extra_args=
10139
10140 if $ac_cs_silent; then
10141 exec 6>/dev/null
10142 ac_configure_extra_args="$ac_configure_extra_args --silent"
10143 fi
10144
10145 _ACEOF
10146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10147 if \$ac_cs_recheck; then
10148 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10149 shift
10150 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10151 CONFIG_SHELL='$SHELL'
10152 export CONFIG_SHELL
10153 exec "\$@"
10154 fi
10155
10156 _ACEOF
10157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10158 exec 5>>config.log
10159 {
10160 echo
10161 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10162 ## Running $as_me. ##
10163 _ASBOX
10164 $as_echo "$ac_log"
10165 } >&5
10166
10167 _ACEOF
10168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10169 _ACEOF
10170
10171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10172
10173 # Handling of arguments.
10174 for ac_config_target in $ac_config_targets
10175 do
10176 case $ac_config_target in
10177 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
10178 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10179 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;;
10180 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
10181 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
10182 "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;;
10183 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10184 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
10185 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10186 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10187 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
10188
10189 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10190 esac
10191 done
10192
10193
10194 # If the user did not use the arguments to specify the items to instantiate,
10195 # then the envvar interface is used. Set only those that are not.
10196 # We use the long form for the default assignment because of an extremely
10197 # bizarre bug on SunOS 4.1.3.
10198 if $ac_need_defaults; then
10199 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10200 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10201 fi
10202
10203 # Have a temporary directory for convenience. Make it in the build tree
10204 # simply because there is no reason against having it here, and in addition,
10205 # creating and moving files from /tmp can sometimes cause problems.
10206 # Hook for its removal unless debugging.
10207 # Note that there is a small window in which the directory will not be cleaned:
10208 # after its creation but before its name has been assigned to `$tmp'.
10209 $debug ||
10210 {
10211 tmp= ac_tmp=
10212 trap 'exit_status=$?
10213 : "${ac_tmp:=$tmp}"
10214 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10215 ' 0
10216 trap 'as_fn_exit 1' 1 2 13 15
10217 }
10218 # Create a (secure) tmp directory for tmp files.
10219
10220 {
10221 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10222 test -d "$tmp"
10223 } ||
10224 {
10225 tmp=./conf$$-$RANDOM
10226 (umask 077 && mkdir "$tmp")
10227 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10228 ac_tmp=$tmp
10229
10230 # Set up the scripts for CONFIG_FILES section.
10231 # No need to generate them if there are no CONFIG_FILES.
10232 # This happens for instance with `./config.status config.h'.
10233 if test -n "$CONFIG_FILES"; then
10234
10235
10236 ac_cr=`echo X | tr X '\015'`
10237 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10238 # But we know of no other shell where ac_cr would be empty at this
10239 # point, so we can use a bashism as a fallback.
10240 if test "x$ac_cr" = x; then
10241 eval ac_cr=\$\'\\r\'
10242 fi
10243 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10244 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10245 ac_cs_awk_cr='\\r'
10246 else
10247 ac_cs_awk_cr=$ac_cr
10248 fi
10249
10250 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10251 _ACEOF
10252
10253
10254 {
10255 echo "cat >conf$$subs.awk <<_ACEOF" &&
10256 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10257 echo "_ACEOF"
10258 } >conf$$subs.sh ||
10259 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10260 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10261 ac_delim='%!_!# '
10262 for ac_last_try in false false false false false :; do
10263 . ./conf$$subs.sh ||
10264 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10265
10266 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10267 if test $ac_delim_n = $ac_delim_num; then
10268 break
10269 elif $ac_last_try; then
10270 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10271 else
10272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10273 fi
10274 done
10275 rm -f conf$$subs.sh
10276
10277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10278 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10279 _ACEOF
10280 sed -n '
10281 h
10282 s/^/S["/; s/!.*/"]=/
10283 p
10284 g
10285 s/^[^!]*!//
10286 :repl
10287 t repl
10288 s/'"$ac_delim"'$//
10289 t delim
10290 :nl
10291 h
10292 s/\(.\{148\}\)..*/\1/
10293 t more1
10294 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10295 p
10296 n
10297 b repl
10298 :more1
10299 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10300 p
10301 g
10302 s/.\{148\}//
10303 t nl
10304 :delim
10305 h
10306 s/\(.\{148\}\)..*/\1/
10307 t more2
10308 s/["\\]/\\&/g; s/^/"/; s/$/"/
10309 p
10310 b
10311 :more2
10312 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10313 p
10314 g
10315 s/.\{148\}//
10316 t delim
10317 ' <conf$$subs.awk | sed '
10318 /^[^""]/{
10319 N
10320 s/\n//
10321 }
10322 ' >>$CONFIG_STATUS || ac_write_fail=1
10323 rm -f conf$$subs.awk
10324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10325 _ACAWK
10326 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10327 for (key in S) S_is_set[key] = 1
10328 FS = "\a"
10329
10330 }
10331 {
10332 line = $ 0
10333 nfields = split(line, field, "@")
10334 substed = 0
10335 len = length(field[1])
10336 for (i = 2; i < nfields; i++) {
10337 key = field[i]
10338 keylen = length(key)
10339 if (S_is_set[key]) {
10340 value = S[key]
10341 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10342 len += length(value) + length(field[++i])
10343 substed = 1
10344 } else
10345 len += 1 + keylen
10346 }
10347
10348 print line
10349 }
10350
10351 _ACAWK
10352 _ACEOF
10353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10354 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10355 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10356 else
10357 cat
10358 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10359 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10360 _ACEOF
10361
10362 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10363 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10364 # trailing colons and then remove the whole line if VPATH becomes empty
10365 # (actually we leave an empty line to preserve line numbers).
10366 if test "x$srcdir" = x.; then
10367 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10368 h
10369 s///
10370 s/^/:/
10371 s/[ ]*$/:/
10372 s/:\$(srcdir):/:/g
10373 s/:\${srcdir}:/:/g
10374 s/:@srcdir@:/:/g
10375 s/^:*//
10376 s/:*$//
10377 x
10378 s/\(=[ ]*\).*/\1/
10379 G
10380 s/\n//
10381 s/^[^=]*=[ ]*$//
10382 }'
10383 fi
10384
10385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10386 fi # test -n "$CONFIG_FILES"
10387
10388 # Set up the scripts for CONFIG_HEADERS section.
10389 # No need to generate them if there are no CONFIG_HEADERS.
10390 # This happens for instance with `./config.status Makefile'.
10391 if test -n "$CONFIG_HEADERS"; then
10392 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10393 BEGIN {
10394 _ACEOF
10395
10396 # Transform confdefs.h into an awk script `defines.awk', embedded as
10397 # here-document in config.status, that substitutes the proper values into
10398 # config.h.in to produce config.h.
10399
10400 # Create a delimiter string that does not exist in confdefs.h, to ease
10401 # handling of long lines.
10402 ac_delim='%!_!# '
10403 for ac_last_try in false false :; do
10404 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10405 if test -z "$ac_tt"; then
10406 break
10407 elif $ac_last_try; then
10408 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10409 else
10410 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10411 fi
10412 done
10413
10414 # For the awk script, D is an array of macro values keyed by name,
10415 # likewise P contains macro parameters if any. Preserve backslash
10416 # newline sequences.
10417
10418 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10419 sed -n '
10420 s/.\{148\}/&'"$ac_delim"'/g
10421 t rset
10422 :rset
10423 s/^[ ]*#[ ]*define[ ][ ]*/ /
10424 t def
10425 d
10426 :def
10427 s/\\$//
10428 t bsnl
10429 s/["\\]/\\&/g
10430 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10431 D["\1"]=" \3"/p
10432 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10433 d
10434 :bsnl
10435 s/["\\]/\\&/g
10436 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10437 D["\1"]=" \3\\\\\\n"\\/p
10438 t cont
10439 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10440 t cont
10441 d
10442 :cont
10443 n
10444 s/.\{148\}/&'"$ac_delim"'/g
10445 t clear
10446 :clear
10447 s/\\$//
10448 t bsnlc
10449 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10450 d
10451 :bsnlc
10452 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10453 b cont
10454 ' <confdefs.h | sed '
10455 s/'"$ac_delim"'/"\\\
10456 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10457
10458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10459 for (key in D) D_is_set[key] = 1
10460 FS = "\a"
10461 }
10462 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10463 line = \$ 0
10464 split(line, arg, " ")
10465 if (arg[1] == "#") {
10466 defundef = arg[2]
10467 mac1 = arg[3]
10468 } else {
10469 defundef = substr(arg[1], 2)
10470 mac1 = arg[2]
10471 }
10472 split(mac1, mac2, "(") #)
10473 macro = mac2[1]
10474 prefix = substr(line, 1, index(line, defundef) - 1)
10475 if (D_is_set[macro]) {
10476 # Preserve the white space surrounding the "#".
10477 print prefix "define", macro P[macro] D[macro]
10478 next
10479 } else {
10480 # Replace #undef with comments. This is necessary, for example,
10481 # in the case of _POSIX_SOURCE, which is predefined and required
10482 # on some systems where configure will not decide to define it.
10483 if (defundef == "undef") {
10484 print "/*", prefix defundef, macro, "*/"
10485 next
10486 }
10487 }
10488 }
10489 { print }
10490 _ACAWK
10491 _ACEOF
10492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10493 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10494 fi # test -n "$CONFIG_HEADERS"
10495
10496
10497 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10498 shift
10499 for ac_tag
10500 do
10501 case $ac_tag in
10502 :[FHLC]) ac_mode=$ac_tag; continue;;
10503 esac
10504 case $ac_mode$ac_tag in
10505 :[FHL]*:*);;
10506 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10507 :[FH]-) ac_tag=-:-;;
10508 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10509 esac
10510 ac_save_IFS=$IFS
10511 IFS=:
10512 set x $ac_tag
10513 IFS=$ac_save_IFS
10514 shift
10515 ac_file=$1
10516 shift
10517
10518 case $ac_mode in
10519 :L) ac_source=$1;;
10520 :[FH])
10521 ac_file_inputs=
10522 for ac_f
10523 do
10524 case $ac_f in
10525 -) ac_f="$ac_tmp/stdin";;
10526 *) # Look for the file first in the build tree, then in the source tree
10527 # (if the path is not absolute). The absolute path cannot be DOS-style,
10528 # because $ac_f cannot contain `:'.
10529 test -f "$ac_f" ||
10530 case $ac_f in
10531 [\\/$]*) false;;
10532 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10533 esac ||
10534 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10535 esac
10536 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10537 as_fn_append ac_file_inputs " '$ac_f'"
10538 done
10539
10540 # Let's still pretend it is `configure' which instantiates (i.e., don't
10541 # use $as_me), people would be surprised to read:
10542 # /* config.h. Generated by config.status. */
10543 configure_input='Generated from '`
10544 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10545 `' by configure.'
10546 if test x"$ac_file" != x-; then
10547 configure_input="$ac_file. $configure_input"
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10549 $as_echo "$as_me: creating $ac_file" >&6;}
10550 fi
10551 # Neutralize special characters interpreted by sed in replacement strings.
10552 case $configure_input in #(
10553 *\&* | *\|* | *\\* )
10554 ac_sed_conf_input=`$as_echo "$configure_input" |
10555 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10556 *) ac_sed_conf_input=$configure_input;;
10557 esac
10558
10559 case $ac_tag in
10560 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10561 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10562 esac
10563 ;;
10564 esac
10565
10566 ac_dir=`$as_dirname -- "$ac_file" ||
10567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10568 X"$ac_file" : 'X\(//\)[^/]' \| \
10569 X"$ac_file" : 'X\(//\)$' \| \
10570 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10571 $as_echo X"$ac_file" |
10572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10573 s//\1/
10574 q
10575 }
10576 /^X\(\/\/\)[^/].*/{
10577 s//\1/
10578 q
10579 }
10580 /^X\(\/\/\)$/{
10581 s//\1/
10582 q
10583 }
10584 /^X\(\/\).*/{
10585 s//\1/
10586 q
10587 }
10588 s/.*/./; q'`
10589 as_dir="$ac_dir"; as_fn_mkdir_p
10590 ac_builddir=.
10591
10592 case "$ac_dir" in
10593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10594 *)
10595 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10596 # A ".." for each directory in $ac_dir_suffix.
10597 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10598 case $ac_top_builddir_sub in
10599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10601 esac ;;
10602 esac
10603 ac_abs_top_builddir=$ac_pwd
10604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10605 # for backward compatibility:
10606 ac_top_builddir=$ac_top_build_prefix
10607
10608 case $srcdir in
10609 .) # We are building in place.
10610 ac_srcdir=.
10611 ac_top_srcdir=$ac_top_builddir_sub
10612 ac_abs_top_srcdir=$ac_pwd ;;
10613 [\\/]* | ?:[\\/]* ) # Absolute name.
10614 ac_srcdir=$srcdir$ac_dir_suffix;
10615 ac_top_srcdir=$srcdir
10616 ac_abs_top_srcdir=$srcdir ;;
10617 *) # Relative name.
10618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10619 ac_top_srcdir=$ac_top_build_prefix$srcdir
10620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10621 esac
10622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10623
10624
10625 case $ac_mode in
10626 :F)
10627 #
10628 # CONFIG_FILE
10629 #
10630
10631 case $INSTALL in
10632 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10633 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10634 esac
10635 _ACEOF
10636
10637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10638 # If the template does not know about datarootdir, expand it.
10639 # FIXME: This hack should be removed a few years after 2.60.
10640 ac_datarootdir_hack=; ac_datarootdir_seen=
10641 ac_sed_dataroot='
10642 /datarootdir/ {
10643 p
10644 q
10645 }
10646 /@datadir@/p
10647 /@docdir@/p
10648 /@infodir@/p
10649 /@localedir@/p
10650 /@mandir@/p'
10651 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10652 *datarootdir*) ac_datarootdir_seen=yes;;
10653 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10655 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10656 _ACEOF
10657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10658 ac_datarootdir_hack='
10659 s&@datadir@&$datadir&g
10660 s&@docdir@&$docdir&g
10661 s&@infodir@&$infodir&g
10662 s&@localedir@&$localedir&g
10663 s&@mandir@&$mandir&g
10664 s&\\\${datarootdir}&$datarootdir&g' ;;
10665 esac
10666 _ACEOF
10667
10668 # Neutralize VPATH when `$srcdir' = `.'.
10669 # Shell code in configure.ac might set extrasub.
10670 # FIXME: do we really want to maintain this feature?
10671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10672 ac_sed_extra="$ac_vpsub
10673 $extrasub
10674 _ACEOF
10675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10676 :t
10677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10678 s|@configure_input@|$ac_sed_conf_input|;t t
10679 s&@top_builddir@&$ac_top_builddir_sub&;t t
10680 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10681 s&@srcdir@&$ac_srcdir&;t t
10682 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10683 s&@top_srcdir@&$ac_top_srcdir&;t t
10684 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10685 s&@builddir@&$ac_builddir&;t t
10686 s&@abs_builddir@&$ac_abs_builddir&;t t
10687 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10688 s&@INSTALL@&$ac_INSTALL&;t t
10689 $ac_datarootdir_hack
10690 "
10691 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10692 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10693
10694 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10695 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10696 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10697 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10699 which seems to be undefined. Please make sure it is defined" >&5
10700 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10701 which seems to be undefined. Please make sure it is defined" >&2;}
10702
10703 rm -f "$ac_tmp/stdin"
10704 case $ac_file in
10705 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10706 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10707 esac \
10708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10709 ;;
10710 :H)
10711 #
10712 # CONFIG_HEADER
10713 #
10714 if test x"$ac_file" != x-; then
10715 {
10716 $as_echo "/* $configure_input */" \
10717 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10718 } >"$ac_tmp/config.h" \
10719 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10720 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10722 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10723 else
10724 rm -f "$ac_file"
10725 mv "$ac_tmp/config.h" "$ac_file" \
10726 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10727 fi
10728 else
10729 $as_echo "/* $configure_input */" \
10730 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10731 || as_fn_error $? "could not create -" "$LINENO" 5
10732 fi
10733 ;;
10734
10735
10736 esac
10737
10738 done # for ac_tag
10739
10740
10741 as_fn_exit 0
10742 _ACEOF
10743 ac_clean_files=$ac_clean_files_save
10744
10745 test $ac_write_fail = 0 ||
10746 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10747
10748
10749 # configure is writing to config.log, and then calls config.status.
10750 # config.status does its own redirection, appending to config.log.
10751 # Unfortunately, on DOS this fails, as config.log is still kept open
10752 # by configure, so config.status won't be able to write to it; its
10753 # output is simply discarded. So we exec the FD to /dev/null,
10754 # effectively closing config.log, so it can be properly (re)opened and
10755 # appended to by config.status. When coming back to configure, we
10756 # need to make the FD available again.
10757 if test "$no_create" != yes; then
10758 ac_cs_success=:
10759 ac_config_status_args=
10760 test "$silent" = yes &&
10761 ac_config_status_args="$ac_config_status_args --quiet"
10762 exec 5>/dev/null
10763 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10764 exec 5>>config.log
10765 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10766 # would make configure fail if this is the last instruction.
10767 $ac_cs_success || as_fn_exit 1
10768 fi
10769
10770 #
10771 # CONFIG_SUBDIRS section.
10772 #
10773 if test "$no_recursion" != yes; then
10774
10775 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10776 # so they do not pile up.
10777 ac_sub_configure_args=
10778 ac_prev=
10779 eval "set x $ac_configure_args"
10780 shift
10781 for ac_arg
10782 do
10783 if test -n "$ac_prev"; then
10784 ac_prev=
10785 continue
10786 fi
10787 case $ac_arg in
10788 -cache-file | --cache-file | --cache-fil | --cache-fi \
10789 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10790 ac_prev=cache_file ;;
10791 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10792 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10793 | --c=*)
10794 ;;
10795 --config-cache | -C)
10796 ;;
10797 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10798 ac_prev=srcdir ;;
10799 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10800 ;;
10801 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10802 ac_prev=prefix ;;
10803 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10804 ;;
10805 --disable-option-checking)
10806 ;;
10807 *)
10808 case $ac_arg in
10809 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10810 esac
10811 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10812 esac
10813 done
10814
10815 # Always prepend --prefix to ensure using the same prefix
10816 # in subdir configurations.
10817 ac_arg="--prefix=$prefix"
10818 case $ac_arg in
10819 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10820 esac
10821 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10822
10823 # Pass --silent
10824 if test "$silent" = yes; then
10825 ac_sub_configure_args="--silent $ac_sub_configure_args"
10826 fi
10827
10828 # Always prepend --disable-option-checking to silence warnings, since
10829 # different subdirs can have different --enable and --with options.
10830 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10831
10832 ac_popdir=`pwd`
10833 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10834
10835 # Do not complain, so a configure script can configure whichever
10836 # parts of a large source tree are present.
10837 test -d "$srcdir/$ac_dir" || continue
10838
10839 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10840 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10841 $as_echo "$ac_msg" >&6
10842 as_dir="$ac_dir"; as_fn_mkdir_p
10843 ac_builddir=.
10844
10845 case "$ac_dir" in
10846 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10847 *)
10848 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10849 # A ".." for each directory in $ac_dir_suffix.
10850 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10851 case $ac_top_builddir_sub in
10852 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10853 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10854 esac ;;
10855 esac
10856 ac_abs_top_builddir=$ac_pwd
10857 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10858 # for backward compatibility:
10859 ac_top_builddir=$ac_top_build_prefix
10860
10861 case $srcdir in
10862 .) # We are building in place.
10863 ac_srcdir=.
10864 ac_top_srcdir=$ac_top_builddir_sub
10865 ac_abs_top_srcdir=$ac_pwd ;;
10866 [\\/]* | ?:[\\/]* ) # Absolute name.
10867 ac_srcdir=$srcdir$ac_dir_suffix;
10868 ac_top_srcdir=$srcdir
10869 ac_abs_top_srcdir=$srcdir ;;
10870 *) # Relative name.
10871 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10872 ac_top_srcdir=$ac_top_build_prefix$srcdir
10873 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10874 esac
10875 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10876
10877
10878 cd "$ac_dir"
10879
10880 # Check for guested configure; otherwise get Cygnus style configure.
10881 if test -f "$ac_srcdir/configure.gnu"; then
10882 ac_sub_configure=$ac_srcdir/configure.gnu
10883 elif test -f "$ac_srcdir/configure"; then
10884 ac_sub_configure=$ac_srcdir/configure
10885 elif test -f "$ac_srcdir/configure.in"; then
10886 # This should be Cygnus configure.
10887 ac_sub_configure=$ac_aux_dir/configure
10888 else
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10890 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10891 ac_sub_configure=
10892 fi
10893
10894 # The recursion is here.
10895 if test -n "$ac_sub_configure"; then
10896 # Make the cache file name correct relative to the subdirectory.
10897 case $cache_file in
10898 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10899 *) # Relative name.
10900 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10901 esac
10902
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10904 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10905 # The eval makes quoting arguments work.
10906 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10907 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10908 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10909 fi
10910
10911 cd "$ac_popdir"
10912 done
10913 fi
10914 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10916 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10917 fi
10918
10919
10920 if test "$cf_openssl_version_ok" = yes; then
10921 openssl="yes"
10922 else
10923 openssl="no"
10924 fi
10925
10926 if test "$shared_modules" = yes; then
10927 modules=shared
10928 else
10929 modules=static
10930 fi
10931
10932 echo "
10933 Configuration:
10934 Install directory : $prefix
10935
10936 Ziplinks : $zlib
10937 OpenSSL : $openssl
10938 Socket Engine : $SELECT_TYPE
10939 Small network : $small_net
10940 Block allocator : $balloc
10941
10942 Nickname length : $NICKLEN
10943 Topic length : $TOPICLEN
10944
10945 Use (g)make to compile ShadowIRCd, then (g)make install to install it.
10946 "