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