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