]> jfr.im git - solanum.git/blame - configure
Add ratelimit for high-bandwidth commands.
[solanum.git] / configure
CommitLineData
212380e3
AC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
a949ab1a 3# Generated by GNU Autoconf 2.68 for charybdis 3.4.0-dev.
212380e3 4#
b676ea3b 5# $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 6#
6fb6bd15 7#
631ef239 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
b6d0720c
AC
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
6fb6bd15 11#
7083c021 12#
212380e3
AC
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
7083c021
AC
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
212380e3 18
631ef239
AC
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
7083c021 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
22 emulate sh
23 NULLCMD=:
7083c021 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
631ef239
AC
27 setopt NO_GLOB_SUBST
28else
7083c021
AC
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
631ef239 34esac
631ef239
AC
35fi
36
37
7083c021
AC
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'
631ef239 58 else
7083c021
AC
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'
631ef239 71 fi
7083c021
AC
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
212380e3 74fi
212380e3 75
7083c021
AC
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 }
212380e3
AC
83fi
84
85
631ef239
AC
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.)
631ef239
AC
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
b6d0720c 94as_myself=
7083c021 95case $0 in #((
631ef239
AC
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
7083c021
AC
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
631ef239
AC
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
7083c021
AC
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
631ef239
AC
116fi
117
7083c021
AC
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 125done
212380e3
AC
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
7083c021
AC
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212380e3 189do
7083c021
AC
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
b6d0720c 220 # Preserve -v and -x to the replacement shell.
7083c021
AC
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
b6d0720c
AC
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
7083c021
AC
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
212380e3 240 else
7083c021
AC
241 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
242$0: including any error possibly output before this
243$0: message. Then install a modern shell, or manually run
244$0: the script under such a shell if you do have one."
212380e3 245 fi
7083c021
AC
246 exit 1
247fi
248fi
249fi
250SHELL=${CONFIG_SHELL-/bin/sh}
251export SHELL
252# Unset more variables known to interfere with behavior of common tools.
253CLICOLOR_FORCE= GREP_OPTIONS=
254unset CLICOLOR_FORCE GREP_OPTIONS
255
256## --------------------- ##
257## M4sh Shell Functions. ##
258## --------------------- ##
259# as_fn_unset VAR
260# ---------------
261# Portably unset VAR.
262as_fn_unset ()
263{
264 { eval $1=; unset $1;}
265}
266as_unset=as_fn_unset
267
268# as_fn_set_status STATUS
269# -----------------------
270# Set $? to STATUS, without forking.
271as_fn_set_status ()
272{
273 return $1
274} # as_fn_set_status
275
276# as_fn_exit STATUS
277# -----------------
278# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279as_fn_exit ()
280{
281 set +e
282 as_fn_set_status $1
283 exit $1
284} # as_fn_exit
285
286# as_fn_mkdir_p
287# -------------
288# Create "$as_dir" as a directory, including parents if necessary.
289as_fn_mkdir_p ()
290{
291
292 case $as_dir in #(
293 -*) as_dir=./$as_dir;;
294 esac
295 test -d "$as_dir" || eval $as_mkdir_p || {
296 as_dirs=
297 while :; do
298 case $as_dir in #(
299 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 *) as_qdir=$as_dir;;
301 esac
302 as_dirs="'$as_qdir' $as_dirs"
303 as_dir=`$as_dirname -- "$as_dir" ||
304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308$as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)[^/].*/{
314 s//\1/
315 q
316 }
317 /^X\(\/\/\)$/{
318 s//\1/
319 q
320 }
321 /^X\(\/\).*/{
322 s//\1/
323 q
324 }
325 s/.*/./; q'`
326 test -d "$as_dir" && break
327 done
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 329 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
330
331
332} # as_fn_mkdir_p
333# as_fn_append VAR VALUE
334# ----------------------
335# Append the text in VALUE to the end of the definition contained in VAR. Take
336# advantage of any shell optimizations that allow amortized linear growth over
337# repeated appends, instead of the typical quadratic growth present in naive
338# implementations.
339if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
340 eval 'as_fn_append ()
341 {
342 eval $1+=\$2
343 }'
344else
345 as_fn_append ()
346 {
347 eval $1=\$$1\$2
348 }
349fi # as_fn_append
350
351# as_fn_arith ARG...
352# ------------------
353# Perform arithmetic evaluation on the ARGs, and store the result in the
354# global $as_val. Take advantage of shells that can avoid forks. The arguments
355# must be portable across $(()) and expr.
356if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 eval 'as_fn_arith ()
358 {
359 as_val=$(( $* ))
360 }'
361else
362 as_fn_arith ()
363 {
364 as_val=`expr "$@" || test $? -eq 1`
365 }
366fi # as_fn_arith
367
368
b6d0720c
AC
369# as_fn_error STATUS ERROR [LINENO LOG_FD]
370# ----------------------------------------
7083c021
AC
371# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 373# script with STATUS, using 1 if that was 0.
7083c021
AC
374as_fn_error ()
375{
b6d0720c
AC
376 as_status=$1; test $as_status -eq 0 && as_status=1
377 if test "$4"; then
378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7083c021 380 fi
b6d0720c 381 $as_echo "$as_me: error: $2" >&2
7083c021
AC
382 as_fn_exit $as_status
383} # as_fn_error
212380e3 384
631ef239
AC
385if expr a : '\(a\)' >/dev/null 2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
387 as_expr=expr
388else
389 as_expr=false
390fi
391
631ef239 392if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
393 as_basename=basename
394else
395 as_basename=false
396fi
397
7083c021
AC
398if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_dirname=dirname
400else
401 as_dirname=false
402fi
212380e3 403
631ef239 404as_me=`$as_basename -- "$0" ||
212380e3
AC
405$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
631ef239 407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 408$as_echo X/"$0" |
631ef239
AC
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\/\)$/{
414 s//\1/
415 q
416 }
417 /^X\/\(\/\).*/{
418 s//\1/
419 q
420 }
421 s/.*/./; q'`
212380e3 422
7083c021
AC
423# Avoid depending upon Character Ranges.
424as_cr_letters='abcdefghijklmnopqrstuvwxyz'
425as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426as_cr_Letters=$as_cr_letters$as_cr_LETTERS
427as_cr_digits='0123456789'
428as_cr_alnum=$as_cr_Letters$as_cr_digits
212380e3 429
212380e3 430
7083c021
AC
431 as_lineno_1=$LINENO as_lineno_1a=$LINENO
432 as_lineno_2=$LINENO as_lineno_2a=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
212380e3 453
7083c021
AC
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
631ef239 460}
212380e3 461
7083c021
AC
462ECHO_C= ECHO_N= ECHO_T=
463case `echo -n x` in #(((((
464-n*)
465 case `echo 'xy\c'` in
466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
467 xy) ECHO_C='\c';;
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 ECHO_T=' ';;
470 esac;;
471*)
472 ECHO_N='-n';;
473esac
631ef239 474
7083c021
AC
475rm -f conf$$ conf$$.exe conf$$.file
476if test -d conf$$.dir; then
477 rm -f conf$$.dir/conf$$.file
478else
479 rm -f conf$$.dir
480 mkdir conf$$.dir 2>/dev/null
481fi
482if (echo >conf$$.file) 2>/dev/null; then
483 if ln -s conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s='ln -s'
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
490 as_ln_s='cp -p'
491 elif ln conf$$.file conf$$ 2>/dev/null; then
492 as_ln_s=ln
493 else
494 as_ln_s='cp -p'
495 fi
631ef239 496else
7083c021 497 as_ln_s='cp -p'
631ef239 498fi
7083c021
AC
499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
500rmdir conf$$.dir 2>/dev/null
631ef239 501
7083c021
AC
502if mkdir -p . 2>/dev/null; then
503 as_mkdir_p='mkdir -p "$as_dir"'
504else
505 test -d ./-p && rmdir ./-p
506 as_mkdir_p=false
631ef239
AC
507fi
508
7083c021
AC
509if test -x / >/dev/null 2>&1; then
510 as_test_x='test -x'
631ef239 511else
7083c021
AC
512 if ls -dL / >/dev/null 2>&1; then
513 as_ls_L_option=L
514 else
515 as_ls_L_option=
516 fi
517 as_test_x='
518 eval sh -c '\''
519 if test -d "$1"; then
520 test -d "$1/.";
521 else
522 case $1 in #(
523 -*)set "./$1";;
524 esac;
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
527 '\'' sh
528 '
631ef239 529fi
7083c021 530as_executable_p=$as_test_x
631ef239 531
7083c021
AC
532# Sed expression to map a string onto a valid CPP name.
533as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
631ef239 534
7083c021
AC
535# Sed expression to map a string onto a valid variable name.
536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
631ef239
AC
537
538
6fb6bd15
AC
539test -n "$DJDIR" || exec 7<&0 </dev/null
540exec 6>&1
631ef239 541
7083c021 542# Name of the host.
b6d0720c 543# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
7083c021
AC
544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
631ef239 546
7083c021
AC
547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
551ac_clean_files=
552ac_config_libobj_dir=.
553LIBOBJS=
554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
212380e3 558
212380e3
AC
559# Identity of this package.
560PACKAGE_NAME='charybdis'
561PACKAGE_TARNAME='charybdis'
a949ab1a
AC
562PACKAGE_VERSION='3.4.0-dev'
563PACKAGE_STRING='charybdis 3.4.0-dev'
212380e3 564PACKAGE_BUGREPORT=''
7083c021 565PACKAGE_URL=''
212380e3
AC
566
567ac_default_prefix=$HOME/ircd
568# Factoring default headers for most tests.
569ac_includes_default="\
570#include <stdio.h>
631ef239 571#ifdef HAVE_SYS_TYPES_H
212380e3
AC
572# include <sys/types.h>
573#endif
631ef239 574#ifdef HAVE_SYS_STAT_H
212380e3
AC
575# include <sys/stat.h>
576#endif
631ef239 577#ifdef STDC_HEADERS
212380e3
AC
578# include <stdlib.h>
579# include <stddef.h>
580#else
631ef239 581# ifdef HAVE_STDLIB_H
212380e3
AC
582# include <stdlib.h>
583# endif
584#endif
631ef239
AC
585#ifdef HAVE_STRING_H
586# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
212380e3
AC
587# include <memory.h>
588# endif
589# include <string.h>
590#endif
631ef239 591#ifdef HAVE_STRINGS_H
212380e3
AC
592# include <strings.h>
593#endif
631ef239 594#ifdef HAVE_INTTYPES_H
212380e3 595# include <inttypes.h>
212380e3 596#endif
631ef239
AC
597#ifdef HAVE_STDINT_H
598# include <stdint.h>
599#endif
600#ifdef HAVE_UNISTD_H
212380e3
AC
601# include <unistd.h>
602#endif"
603
7083c021
AC
604enable_option_checking=no
605ac_subst_vars='LTLIBOBJS
631ef239 606LIBOBJS
7083c021
AC
607SEDOBJ
608IRC_CFLAGS
609PICFLAGS
610SSL_LIBS
611SSL_INCLUDES
612SSL_SRCS_ENABLE
613MOD_TARGET
614MODULES_LIBS
615SELECT_TYPE
616moduledir
617MODULE_DIR
618helpdir
619HELP_DIR
620logdir
621LOG_DIR
622confdir
623ETC_DIR
624ZLIB_LD
625ENCSPEED
626ALLOCA
627VICONF
628CRYPT_LIB
629LEXLIB
630LEX_OUTPUT_ROOT
631LEX
632YFLAGS
633YACC
634TOUCH
635RANLIB
636LD
637AR
638SED
639LN
640MV
641CP
642RM
643INSTALL_DATA
644INSTALL_SCRIPT
645INSTALL_PROGRAM
646SET_MAKE
647STDOUT
648MAKEDEPEND
649MKDEP
650subdirs
651EGREP
652GREP
653CPP
654OBJEXT
655EXEEXT
656ac_ct_CC
657CPPFLAGS
658LDFLAGS
659CFLAGS
660CC
661target_alias
662host_alias
663build_alias
664LIBS
665ECHO_T
666ECHO_N
667ECHO_C
668DEFS
669mandir
670localedir
671libdir
672psdir
673pdfdir
674dvidir
675htmldir
676infodir
677docdir
678oldincludedir
679includedir
680localstatedir
681sharedstatedir
682sysconfdir
683datadir
684datarootdir
685libexecdir
686sbindir
687bindir
688program_transform_name
689prefix
690exec_prefix
691PACKAGE_URL
692PACKAGE_BUGREPORT
693PACKAGE_STRING
694PACKAGE_VERSION
695PACKAGE_TARNAME
696PACKAGE_NAME
697PATH_SEPARATOR
698SHELL'
212380e3 699ac_subst_files=''
7083c021
AC
700ac_user_opts='
701enable_option_checking
702enable_ipv6
703enable_openssl
704with_zlib_path
705enable_zlib
706enable_ports
707enable_poll
708enable_select
709enable_kqueue
710enable_epoll
711with_confdir
712with_logdir
713with_helpdir
714with_moduledir
b6d0720c
AC
715with_custom_branding
716with_custom_version
7083c021
AC
717enable_assert
718enable_iodebug
719enable_profile
720enable_balloc
721enable_small_net
722with_nicklen
723with_topiclen
724enable_warnings
725'
631ef239
AC
726 ac_precious_vars='build_alias
727host_alias
728target_alias
729CC
730CFLAGS
731LDFLAGS
732LIBS
733CPPFLAGS
734CPP
735YACC
736YFLAGS'
b676ea3b 737ac_subdirs_all='libratbox'
212380e3
AC
738
739# Initialize some variables set by options.
740ac_init_help=
741ac_init_version=false
7083c021
AC
742ac_unrecognized_opts=
743ac_unrecognized_sep=
212380e3
AC
744# The variables have the same names as the options, with
745# dashes changed to underlines.
746cache_file=/dev/null
747exec_prefix=NONE
748no_create=
749no_recursion=
750prefix=NONE
751program_prefix=NONE
752program_suffix=NONE
753program_transform_name=s,x,x,
754silent=
755site=
756srcdir=
757verbose=
758x_includes=NONE
759x_libraries=NONE
760
761# Installation directory options.
762# These are left unexpanded so users can "make install exec_prefix=/foo"
763# and all the variables that are supposed to be based on exec_prefix
764# by default will actually change.
765# Use braces instead of parens because sh, perl, etc. also accept them.
631ef239 766# (The list follows the same order as the GNU Coding Standards.)
212380e3
AC
767bindir='${exec_prefix}/bin'
768sbindir='${exec_prefix}/sbin'
769libexecdir='${exec_prefix}/libexec'
631ef239
AC
770datarootdir='${prefix}/share'
771datadir='${datarootdir}'
212380e3
AC
772sysconfdir='${prefix}/etc'
773sharedstatedir='${prefix}/com'
774localstatedir='${prefix}/var'
212380e3
AC
775includedir='${prefix}/include'
776oldincludedir='/usr/include'
631ef239
AC
777docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
778infodir='${datarootdir}/info'
779htmldir='${docdir}'
780dvidir='${docdir}'
781pdfdir='${docdir}'
782psdir='${docdir}'
783libdir='${exec_prefix}/lib'
784localedir='${datarootdir}/locale'
785mandir='${datarootdir}/man'
212380e3
AC
786
787ac_prev=
631ef239 788ac_dashdash=
212380e3
AC
789for ac_option
790do
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
631ef239 793 eval $ac_prev=\$ac_option
212380e3
AC
794 ac_prev=
795 continue
796 fi
797
631ef239 798 case $ac_option in
b6d0720c
AC
799 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *=) ac_optarg= ;;
801 *) ac_optarg=yes ;;
631ef239 802 esac
212380e3
AC
803
804 # Accept the important Cygnus configure options, so we can diagnose typos.
805
631ef239
AC
806 case $ac_dashdash$ac_option in
807 --)
808 ac_dashdash=yes ;;
212380e3
AC
809
810 -bindir | --bindir | --bindi | --bind | --bin | --bi)
811 ac_prev=bindir ;;
812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
813 bindir=$ac_optarg ;;
814
815 -build | --build | --buil | --bui | --bu)
816 ac_prev=build_alias ;;
817 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
818 build_alias=$ac_optarg ;;
819
820 -cache-file | --cache-file | --cache-fil | --cache-fi \
821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822 ac_prev=cache_file ;;
823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
825 cache_file=$ac_optarg ;;
826
827 --config-cache | -C)
828 cache_file=config.cache ;;
829
631ef239 830 -datadir | --datadir | --datadi | --datad)
212380e3 831 ac_prev=datadir ;;
631ef239 832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
212380e3
AC
833 datadir=$ac_optarg ;;
834
631ef239
AC
835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836 | --dataroo | --dataro | --datar)
837 ac_prev=datarootdir ;;
838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840 datarootdir=$ac_optarg ;;
841
212380e3 842 -disable-* | --disable-*)
7083c021 843 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
212380e3 844 # Reject names that are not valid shell variable names.
7083c021 845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 846 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
850 *"
851"enable_$ac_useropt"
852"*) ;;
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
855 esac
856 eval enable_$ac_useropt=no ;;
631ef239
AC
857
858 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;;
862
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;;
212380e3
AC
867
868 -enable-* | --enable-*)
7083c021 869 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
212380e3 870 # Reject names that are not valid shell variable names.
7083c021 871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 872 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
876 *"
877"enable_$ac_useropt"
878"*) ;;
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
881 esac
882 eval enable_$ac_useropt=\$ac_optarg ;;
212380e3
AC
883
884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
886 | --exec | --exe | --ex)
887 ac_prev=exec_prefix ;;
888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
890 | --exec=* | --exe=* | --ex=*)
891 exec_prefix=$ac_optarg ;;
892
893 -gas | --gas | --ga | --g)
894 # Obsolete; use --with-gas.
895 with_gas=yes ;;
896
897 -help | --help | --hel | --he | -h)
898 ac_init_help=long ;;
899 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
900 ac_init_help=recursive ;;
901 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
902 ac_init_help=short ;;
903
904 -host | --host | --hos | --ho)
905 ac_prev=host_alias ;;
906 -host=* | --host=* | --hos=* | --ho=*)
907 host_alias=$ac_optarg ;;
908
631ef239
AC
909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
910 ac_prev=htmldir ;;
911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
912 | --ht=*)
913 htmldir=$ac_optarg ;;
914
212380e3
AC
915 -includedir | --includedir | --includedi | --included | --include \
916 | --includ | --inclu | --incl | --inc)
917 ac_prev=includedir ;;
918 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
919 | --includ=* | --inclu=* | --incl=* | --inc=*)
920 includedir=$ac_optarg ;;
921
922 -infodir | --infodir | --infodi | --infod | --info | --inf)
923 ac_prev=infodir ;;
924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
925 infodir=$ac_optarg ;;
926
927 -libdir | --libdir | --libdi | --libd)
928 ac_prev=libdir ;;
929 -libdir=* | --libdir=* | --libdi=* | --libd=*)
930 libdir=$ac_optarg ;;
931
932 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
933 | --libexe | --libex | --libe)
934 ac_prev=libexecdir ;;
935 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
936 | --libexe=* | --libex=* | --libe=*)
937 libexecdir=$ac_optarg ;;
938
631ef239
AC
939 -localedir | --localedir | --localedi | --localed | --locale)
940 ac_prev=localedir ;;
941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
942 localedir=$ac_optarg ;;
943
212380e3 944 -localstatedir | --localstatedir | --localstatedi | --localstated \
631ef239 945 | --localstate | --localstat | --localsta | --localst | --locals)
212380e3
AC
946 ac_prev=localstatedir ;;
947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631ef239 948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
212380e3
AC
949 localstatedir=$ac_optarg ;;
950
951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
952 ac_prev=mandir ;;
953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
954 mandir=$ac_optarg ;;
955
956 -nfp | --nfp | --nf)
957 # Obsolete; use --without-fp.
958 with_fp=no ;;
959
960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
961 | --no-cr | --no-c | -n)
962 no_create=yes ;;
963
964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
966 no_recursion=yes ;;
967
968 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
969 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
970 | --oldin | --oldi | --old | --ol | --o)
971 ac_prev=oldincludedir ;;
972 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
973 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
974 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
975 oldincludedir=$ac_optarg ;;
976
977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
978 ac_prev=prefix ;;
979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
980 prefix=$ac_optarg ;;
981
982 -program-prefix | --program-prefix | --program-prefi | --program-pref \
983 | --program-pre | --program-pr | --program-p)
984 ac_prev=program_prefix ;;
985 -program-prefix=* | --program-prefix=* | --program-prefi=* \
986 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
987 program_prefix=$ac_optarg ;;
988
989 -program-suffix | --program-suffix | --program-suffi | --program-suff \
990 | --program-suf | --program-su | --program-s)
991 ac_prev=program_suffix ;;
992 -program-suffix=* | --program-suffix=* | --program-suffi=* \
993 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
994 program_suffix=$ac_optarg ;;
995
996 -program-transform-name | --program-transform-name \
997 | --program-transform-nam | --program-transform-na \
998 | --program-transform-n | --program-transform- \
999 | --program-transform | --program-transfor \
1000 | --program-transfo | --program-transf \
1001 | --program-trans | --program-tran \
1002 | --progr-tra | --program-tr | --program-t)
1003 ac_prev=program_transform_name ;;
1004 -program-transform-name=* | --program-transform-name=* \
1005 | --program-transform-nam=* | --program-transform-na=* \
1006 | --program-transform-n=* | --program-transform-=* \
1007 | --program-transform=* | --program-transfor=* \
1008 | --program-transfo=* | --program-transf=* \
1009 | --program-trans=* | --program-tran=* \
1010 | --progr-tra=* | --program-tr=* | --program-t=*)
1011 program_transform_name=$ac_optarg ;;
1012
631ef239
AC
1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1014 ac_prev=pdfdir ;;
1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1016 pdfdir=$ac_optarg ;;
1017
1018 -psdir | --psdir | --psdi | --psd | --ps)
1019 ac_prev=psdir ;;
1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1021 psdir=$ac_optarg ;;
1022
212380e3
AC
1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1024 | -silent | --silent | --silen | --sile | --sil)
1025 silent=yes ;;
1026
1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1028 ac_prev=sbindir ;;
1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1030 | --sbi=* | --sb=*)
1031 sbindir=$ac_optarg ;;
1032
1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1035 | --sharedst | --shareds | --shared | --share | --shar \
1036 | --sha | --sh)
1037 ac_prev=sharedstatedir ;;
1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1041 | --sha=* | --sh=*)
1042 sharedstatedir=$ac_optarg ;;
1043
1044 -site | --site | --sit)
1045 ac_prev=site ;;
1046 -site=* | --site=* | --sit=*)
1047 site=$ac_optarg ;;
1048
1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1050 ac_prev=srcdir ;;
1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1052 srcdir=$ac_optarg ;;
1053
1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1055 | --syscon | --sysco | --sysc | --sys | --sy)
1056 ac_prev=sysconfdir ;;
1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1059 sysconfdir=$ac_optarg ;;
1060
1061 -target | --target | --targe | --targ | --tar | --ta | --t)
1062 ac_prev=target_alias ;;
1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1064 target_alias=$ac_optarg ;;
1065
1066 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1067 verbose=yes ;;
1068
1069 -version | --version | --versio | --versi | --vers | -V)
1070 ac_init_version=: ;;
1071
1072 -with-* | --with-*)
7083c021 1073 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
212380e3 1074 # Reject names that are not valid shell variable names.
7083c021 1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1076 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081"with_$ac_useropt"
1082"*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval with_$ac_useropt=\$ac_optarg ;;
212380e3
AC
1087
1088 -without-* | --without-*)
7083c021 1089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
212380e3 1090 # Reject names that are not valid shell variable names.
7083c021 1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1092 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097"with_$ac_useropt"
1098"*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=no ;;
212380e3
AC
1103
1104 --x)
1105 # Obsolete; use --with-x.
1106 with_x=yes ;;
1107
1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109 | --x-incl | --x-inc | --x-in | --x-i)
1110 ac_prev=x_includes ;;
1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1113 x_includes=$ac_optarg ;;
1114
1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117 ac_prev=x_libraries ;;
1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1120 x_libraries=$ac_optarg ;;
1121
b6d0720c
AC
1122 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1123Try \`$0 --help' for more information"
212380e3
AC
1124 ;;
1125
1126 *=*)
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
7083c021
AC
1129 case $ac_envvar in #(
1130 '' | [0-9]* | *[!_$as_cr_alnum]* )
b6d0720c 1131 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
7083c021 1132 esac
631ef239 1133 eval $ac_envvar=\$ac_optarg
212380e3
AC
1134 export $ac_envvar ;;
1135
1136 *)
1137 # FIXME: should be removed in autoconf 3.0.
7083c021 1138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
212380e3 1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
7083c021 1140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b6d0720c 1141 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
212380e3
AC
1142 ;;
1143
1144 esac
1145done
1146
1147if test -n "$ac_prev"; then
1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b6d0720c 1149 as_fn_error $? "missing argument to $ac_option"
212380e3
AC
1150fi
1151
7083c021
AC
1152if test -n "$ac_unrecognized_opts"; then
1153 case $enable_option_checking in
1154 no) ;;
b6d0720c 1155 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
7083c021
AC
1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1157 esac
1158fi
1159
1160# Check all directory arguments for consistency.
631ef239
AC
1161for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
212380e3 1165do
631ef239 1166 eval ac_val=\$$ac_var
7083c021
AC
1167 # Remove trailing slashes.
1168 case $ac_val in
1169 */ )
1170 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1171 eval $ac_var=\$ac_val;;
1172 esac
1173 # Be sure to have absolute directory names.
212380e3 1174 case $ac_val in
631ef239
AC
1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
212380e3 1177 esac
b6d0720c 1178 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
212380e3
AC
1179done
1180
1181# There might be people who depend on the old broken behavior: `$host'
1182# used to hold the argument of --host etc.
1183# FIXME: To remove some day.
1184build=$build_alias
1185host=$host_alias
1186target=$target_alias
1187
1188# FIXME: To remove some day.
1189if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
b6d0720c
AC
1192 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1193 If a cross compiler is detected then cross compile mode will be used" >&2
212380e3
AC
1194 elif test "x$build_alias" != "x$host_alias"; then
1195 cross_compiling=yes
1196 fi
1197fi
1198
1199ac_tool_prefix=
1200test -n "$host_alias" && ac_tool_prefix=$host_alias-
1201
1202test "$silent" = yes && exec 6>/dev/null
1203
1204
631ef239
AC
1205ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206ac_ls_di=`ls -di .` &&
1207ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b6d0720c 1208 as_fn_error $? "working directory cannot be determined"
631ef239 1209test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b6d0720c 1210 as_fn_error $? "pwd does not report name of working directory"
631ef239
AC
1211
1212
1213# Find the source files, if location was not specified.
1214if test -z "$srcdir"; then
212380e3 1215 ac_srcdir_defaulted=yes
631ef239 1216 # Try the directory containing this script, then the parent directory.
7083c021
AC
1217 ac_confdir=`$as_dirname -- "$as_myself" ||
1218$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$as_myself" : 'X\(//\)[^/]' \| \
1220 X"$as_myself" : 'X\(//\)$' \| \
1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222$as_echo X"$as_myself" |
631ef239
AC
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\/\)$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\).*/{
1236 s//\1/
1237 q
1238 }
1239 s/.*/./; q'`
212380e3 1240 srcdir=$ac_confdir
631ef239 1241 if test ! -r "$srcdir/$ac_unique_file"; then
212380e3
AC
1242 srcdir=..
1243 fi
1244else
1245 ac_srcdir_defaulted=no
1246fi
631ef239
AC
1247if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b6d0720c 1249 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
212380e3 1250fi
631ef239
AC
1251ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252ac_abs_confdir=`(
b6d0720c 1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
631ef239
AC
1254 pwd)`
1255# When building in place, set srcdir=.
1256if test "$ac_abs_confdir" = "$ac_pwd"; then
1257 srcdir=.
1258fi
1259# Remove unnecessary trailing slashes from srcdir.
1260# Double slashes in file names in object file debugging info
1261# mess up M-x gdb in Emacs.
1262case $srcdir in
1263*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264esac
1265for ac_var in $ac_precious_vars; do
1266 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_env_${ac_var}_value=\$${ac_var}
1268 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270done
212380e3
AC
1271
1272#
1273# Report the --help message.
1274#
1275if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1278 cat <<_ACEOF
a949ab1a 1279\`configure' configures charybdis 3.4.0-dev to adapt to many kinds of systems.
212380e3
AC
1280
1281Usage: $0 [OPTION]... [VAR=VALUE]...
1282
1283To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284VAR=VALUE. See below for descriptions of some of the useful variables.
1285
1286Defaults for the options are specified in brackets.
1287
1288Configuration:
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
b6d0720c 1293 -q, --quiet, --silent do not print \`checking ...' messages
212380e3
AC
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1298
212380e3
AC
1299Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
7083c021 1301 [$ac_default_prefix]
212380e3 1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
7083c021 1303 [PREFIX]
212380e3
AC
1304
1305By default, \`make install' will install all the files in
1306\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308for instance \`--prefix=\$HOME'.
1309
1310For better control, use the options below.
1311
1312Fine tuning of the installation directories:
7083c021
AC
1313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --libdir=DIR object code libraries [EPREFIX/lib]
1320 --includedir=DIR C header files [PREFIX/include]
1321 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1324 --infodir=DIR info documentation [DATAROOTDIR/info]
1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1326 --mandir=DIR man documentation [DATAROOTDIR/man]
1327 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1328 --htmldir=DIR html documentation [DOCDIR]
1329 --dvidir=DIR dvi documentation [DOCDIR]
1330 --pdfdir=DIR pdf documentation [DOCDIR]
1331 --psdir=DIR ps documentation [DOCDIR]
212380e3
AC
1332_ACEOF
1333
1334 cat <<\_ACEOF
1335_ACEOF
1336fi
1337
1338if test -n "$ac_init_help"; then
1339 case $ac_init_help in
a949ab1a 1340 short | recursive ) echo "Configuration of charybdis 3.4.0-dev:";;
212380e3
AC
1341 esac
1342 cat <<\_ACEOF
1343
1344Optional Features:
7083c021 1345 --disable-option-checking ignore unrecognized --enable/--with options
212380e3
AC
1346 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1347 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1348 --enable-ipv6 Enable IPv6 support
631ef239 1349 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
212380e3
AC
1350 --disable-openssl Disable OpenSSL support.
1351 --disable-zlib Disable ziplinks support
c1c5fdc4 1352 --enable-ports Force solaris I/O ports subsystem usage.
212380e3
AC
1353 --enable-poll Force poll() usage.
1354 --enable-select Force select() usage.
1355 --enable-kqueue Force kqueue() usage.
212380e3
AC
1356 --enable-epoll Force sys_epoll usage (Linux only).
1357 --enable-assert Enable assert(). Choose between soft(warnings) and
1358 hard(aborts the daemon)
1359 --enable-iodebug Enable IO Debugging hooks
1360 --enable-profile Enable profiling
1361 --disable-balloc Disable the block allocator.
212380e3 1362 --enable-small-net Enable small network support.
212380e3
AC
1363 --enable-warnings Enable all sorts of warnings for debugging.
1364
1365Optional Packages:
1366 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1367 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1368 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1369 --with-confdir=DIR Directory to install config files.
1370 --with-logdir=DIR Directory where to write logfiles.
1371 --with-helpdir=DIR Directory to install help files.
1372 --with-moduledir=DIR Directory to install modules.
b6d0720c
AC
1373 --with-custom-branding=NAME
1374 Custom branding name.
1375 --with-custom-version=NAME
1376 Custom version branding.
b583faf9 1377 --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default
cf533739 1378 31, max 50)
212380e3
AC
1379 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1380 390)
212380e3
AC
1381
1382Some influential environment variables:
1383 CC C compiler command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1386 nonstandard directory <lib dir>
631ef239 1387 LIBS libraries to pass to the linker, e.g. -l<library>
6fb6bd15 1388 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
631ef239 1389 you have headers in a nonstandard directory <include dir>
212380e3 1390 CPP C preprocessor
b6d0720c
AC
1391 YACC The `Yet Another Compiler Compiler' implementation to use.
1392 Defaults to the first program found out of: `bison -y', `byacc',
1393 `yacc'.
631ef239
AC
1394 YFLAGS The list of arguments that will be passed by default to $YACC.
1395 This script will default YFLAGS to the empty string to avoid a
1396 default value of `-d' given by some make applications.
212380e3
AC
1397
1398Use these variables to override the choices made by `configure' or to help
1399it to find libraries and programs with nonstandard names/locations.
1400
7083c021 1401Report bugs to the package provider.
212380e3 1402_ACEOF
631ef239 1403ac_status=$?
212380e3
AC
1404fi
1405
1406if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
212380e3 1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7083c021
AC
1409 test -d "$ac_dir" ||
1410 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411 continue
212380e3
AC
1412 ac_builddir=.
1413
631ef239
AC
1414case "$ac_dir" in
1415.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416*)
7083c021 1417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 1418 # A ".." for each directory in $ac_dir_suffix.
7083c021 1419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
1420 case $ac_top_builddir_sub in
1421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423 esac ;;
1424esac
1425ac_abs_top_builddir=$ac_pwd
1426ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427# for backward compatibility:
1428ac_top_builddir=$ac_top_build_prefix
212380e3
AC
1429
1430case $srcdir in
631ef239 1431 .) # We are building in place.
212380e3 1432 ac_srcdir=.
631ef239
AC
1433 ac_top_srcdir=$ac_top_builddir_sub
1434 ac_abs_top_srcdir=$ac_pwd ;;
1435 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 1436 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
1437 ac_top_srcdir=$srcdir
1438 ac_abs_top_srcdir=$srcdir ;;
1439 *) # Relative name.
1440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441 ac_top_srcdir=$ac_top_build_prefix$srcdir
1442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 1443esac
631ef239
AC
1444ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1445
1446 cd "$ac_dir" || { ac_status=$?; continue; }
1447 # Check for guested configure.
1448 if test -f "$ac_srcdir/configure.gnu"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451 elif test -f "$ac_srcdir/configure"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure" --help=recursive
212380e3 1454 else
7083c021 1455 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
631ef239
AC
1456 fi || ac_status=$?
1457 cd "$ac_pwd" || { ac_status=$?; break; }
212380e3
AC
1458 done
1459fi
1460
631ef239 1461test -n "$ac_init_help" && exit $ac_status
212380e3
AC
1462if $ac_init_version; then
1463 cat <<\_ACEOF
a949ab1a 1464charybdis configure 3.4.0-dev
b6d0720c 1465generated by GNU Autoconf 2.68
212380e3 1466
b6d0720c 1467Copyright (C) 2010 Free Software Foundation, Inc.
212380e3
AC
1468This configure script is free software; the Free Software Foundation
1469gives unlimited permission to copy, distribute and modify it.
1470
b676ea3b 1471$Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 1472_ACEOF
631ef239 1473 exit
212380e3 1474fi
212380e3 1475
7083c021
AC
1476## ------------------------ ##
1477## Autoconf initialization. ##
1478## ------------------------ ##
212380e3 1479
7083c021
AC
1480# ac_fn_c_try_compile LINENO
1481# --------------------------
1482# Try to compile conftest.$ac_ext, and return whether this succeeded.
1483ac_fn_c_try_compile ()
1484{
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 rm -f conftest.$ac_objext
1487 if { { ac_try="$ac_compile"
1488case "(($ac_try" in
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1491esac
1492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493$as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_compile") 2>conftest.err
1495 ac_status=$?
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1500 fi
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest.$ac_objext; then :
1506 ac_retval=0
1507else
1508 $as_echo "$as_me: failed program was:" >&5
1509sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1510
7083c021
AC
1511 ac_retval=1
1512fi
b6d0720c 1513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1514 as_fn_set_status $ac_retval
7083c021
AC
1515
1516} # ac_fn_c_try_compile
1517
1518# ac_fn_c_try_cpp LINENO
1519# ----------------------
1520# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1521ac_fn_c_try_cpp ()
212380e3 1522{
7083c021
AC
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 if { { ac_try="$ac_cpp conftest.$ac_ext"
1525case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528esac
1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530$as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1537 fi
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b6d0720c 1539 test $ac_status = 0; } > conftest.i && {
7083c021
AC
1540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 }; then :
1543 ac_retval=0
1544else
1545 $as_echo "$as_me: failed program was:" >&5
1546sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1547
7083c021
AC
1548 ac_retval=1
1549fi
b6d0720c 1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1551 as_fn_set_status $ac_retval
212380e3 1552
7083c021 1553} # ac_fn_c_try_cpp
212380e3 1554
7083c021
AC
1555# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1556# -------------------------------------------------------
1557# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1558# the include files in INCLUDES and setting the cache variable VAR
1559# accordingly.
1560ac_fn_c_check_header_mongrel ()
1561{
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b6d0720c 1563 if eval \${$3+:} false; then :
7083c021
AC
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565$as_echo_n "checking for $2... " >&6; }
b6d0720c 1566if eval \${$3+:} false; then :
7083c021
AC
1567 $as_echo_n "(cached) " >&6
1568fi
1569eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571$as_echo "$ac_res" >&6; }
1572else
1573 # Is the header compilable?
1574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1575$as_echo_n "checking $2 usability... " >&6; }
1576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577/* end confdefs.h. */
1578$4
1579#include <$2>
1580_ACEOF
1581if ac_fn_c_try_compile "$LINENO"; then :
1582 ac_header_compiler=yes
1583else
1584 ac_header_compiler=no
1585fi
1586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1588$as_echo "$ac_header_compiler" >&6; }
212380e3 1589
7083c021
AC
1590# Is the header present?
1591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1592$as_echo_n "checking $2 presence... " >&6; }
1593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594/* end confdefs.h. */
1595#include <$2>
1596_ACEOF
1597if ac_fn_c_try_cpp "$LINENO"; then :
1598 ac_header_preproc=yes
1599else
1600 ac_header_preproc=no
1601fi
b6d0720c 1602rm -f conftest.err conftest.i conftest.$ac_ext
7083c021
AC
1603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1604$as_echo "$ac_header_preproc" >&6; }
212380e3 1605
7083c021
AC
1606# So? What about this header?
1607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1608 yes:no: )
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1610$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1613 ;;
1614 no:yes:* )
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1616$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1618$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1620$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1622$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1625 ;;
1626esac
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628$as_echo_n "checking for $2... " >&6; }
b6d0720c 1629if eval \${$3+:} false; then :
7083c021
AC
1630 $as_echo_n "(cached) " >&6
1631else
1632 eval "$3=\$ac_header_compiler"
1633fi
1634eval ac_res=\$$3
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636$as_echo "$ac_res" >&6; }
1637fi
b6d0720c 1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1639
7083c021 1640} # ac_fn_c_check_header_mongrel
212380e3 1641
7083c021
AC
1642# ac_fn_c_try_run LINENO
1643# ----------------------
1644# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1645# that executables *can* be run.
1646ac_fn_c_try_run ()
1647{
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_link"
1650case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>&5
1657 ac_status=$?
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1660 { { case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_try") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; }; }; then :
1670 ac_retval=0
1671else
1672 $as_echo "$as_me: program exited with status $ac_status" >&5
1673 $as_echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1675
7083c021
AC
1676 ac_retval=$ac_status
1677fi
1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1680 as_fn_set_status $ac_retval
212380e3 1681
7083c021 1682} # ac_fn_c_try_run
212380e3 1683
7083c021
AC
1684# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685# -------------------------------------------------------
1686# Tests whether HEADER exists and can be compiled using the include files in
1687# INCLUDES, setting the cache variable VAR accordingly.
1688ac_fn_c_check_header_compile ()
1689{
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692$as_echo_n "checking for $2... " >&6; }
b6d0720c 1693if eval \${$3+:} false; then :
7083c021
AC
1694 $as_echo_n "(cached) " >&6
1695else
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697/* end confdefs.h. */
1698$4
1699#include <$2>
212380e3 1700_ACEOF
7083c021
AC
1701if ac_fn_c_try_compile "$LINENO"; then :
1702 eval "$3=yes"
1703else
1704 eval "$3=no"
1705fi
1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707fi
1708eval ac_res=\$$3
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710$as_echo "$ac_res" >&6; }
b6d0720c 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1712
7083c021 1713} # ac_fn_c_check_header_compile
212380e3 1714
7083c021
AC
1715# ac_fn_c_try_link LINENO
1716# -----------------------
1717# Try to link conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_c_try_link ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext conftest$ac_exeext
1722 if { { ac_try="$ac_link"
1723case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1735 fi
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest$ac_exeext && {
1741 test "$cross_compiling" = yes ||
1742 $as_test_x conftest$ac_exeext
1743 }; then :
1744 ac_retval=0
212380e3 1745else
7083c021
AC
1746 $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1748
7083c021 1749 ac_retval=1
212380e3 1750fi
7083c021
AC
1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753 # interfere with the next link command; also delete a directory that is
1754 # left behind by Apple's compiler. We do this before executing the actions.
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1757 as_fn_set_status $ac_retval
212380e3 1758
7083c021 1759} # ac_fn_c_try_link
212380e3 1760
7083c021
AC
1761# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1762# -------------------------------------------
1763# Tests whether TYPE exists after having included INCLUDES, setting cache
1764# variable VAR accordingly.
1765ac_fn_c_check_type ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769$as_echo_n "checking for $2... " >&6; }
b6d0720c 1770if eval \${$3+:} false; then :
7083c021 1771 $as_echo_n "(cached) " >&6
212380e3 1772else
7083c021
AC
1773 eval "$3=no"
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h. */
1776$4
1777int
1778main ()
1779{
1780if (sizeof ($2))
1781 return 0;
1782 ;
1783 return 0;
1784}
212380e3 1785_ACEOF
7083c021
AC
1786if ac_fn_c_try_compile "$LINENO"; then :
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1788/* end confdefs.h. */
7083c021 1789$4
212380e3
AC
1790int
1791main ()
1792{
7083c021
AC
1793if (sizeof (($2)))
1794 return 0;
212380e3
AC
1795 ;
1796 return 0;
1797}
1798_ACEOF
7083c021 1799if ac_fn_c_try_compile "$LINENO"; then :
212380e3 1800
631ef239 1801else
7083c021 1802 eval "$3=yes"
212380e3 1803fi
7083c021 1804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 1805fi
7083c021 1806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 1807fi
7083c021
AC
1808eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
b6d0720c 1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1812
7083c021
AC
1813} # ac_fn_c_check_type
1814
1815# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1816# --------------------------------------------
1817# Tries to find the compile-time value of EXPR in a program that includes
1818# INCLUDES, setting VAR accordingly. Returns whether the value could be
1819# computed
1820ac_fn_c_compute_int ()
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if test "$cross_compiling" = yes; then
1824 # Depending upon the size, compute the lo and hi bounds.
1825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h. */
1827$4
1828int
1829main ()
1830{
1831static int test_array [1 - 2 * !(($2) >= 0)];
1832test_array [0] = 0
1833
1834 ;
1835 return 0;
1836}
212380e3 1837_ACEOF
7083c021
AC
1838if ac_fn_c_try_compile "$LINENO"; then :
1839 ac_lo=0 ac_mid=0
1840 while :; do
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1842/* end confdefs.h. */
7083c021
AC
1843$4
1844int
1845main ()
1846{
1847static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1848test_array [0] = 0
212380e3 1849
7083c021
AC
1850 ;
1851 return 0;
1852}
212380e3 1853_ACEOF
7083c021
AC
1854if ac_fn_c_try_compile "$LINENO"; then :
1855 ac_hi=$ac_mid; break
212380e3 1856else
7083c021
AC
1857 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1858 if test $ac_lo -le $ac_mid; then
1859 ac_lo= ac_hi=
1860 break
1861 fi
1862 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
212380e3 1863fi
631ef239 1864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
1865 done
1866else
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h. */
1869$4
1870int
1871main ()
1872{
1873static int test_array [1 - 2 * !(($2) < 0)];
1874test_array [0] = 0
212380e3 1875
7083c021
AC
1876 ;
1877 return 0;
1878}
212380e3 1879_ACEOF
7083c021
AC
1880if ac_fn_c_try_compile "$LINENO"; then :
1881 ac_hi=-1 ac_mid=-1
1882 while :; do
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h. */
1885$4
1886int
1887main ()
1888{
1889static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1890test_array [0] = 0
212380e3 1891
7083c021
AC
1892 ;
1893 return 0;
1894}
1895_ACEOF
1896if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_lo=$ac_mid; break
1898else
1899 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1900 if test $ac_mid -le $ac_hi; then
1901 ac_lo= ac_hi=
1902 break
1903 fi
1904 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
212380e3 1905fi
7083c021
AC
1906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 done
212380e3 1908else
7083c021
AC
1909 ac_lo= ac_hi=
1910fi
1911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912fi
1913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914# Binary search between lo and hi bounds.
1915while test "x$ac_lo" != "x$ac_hi"; do
1916 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1918/* end confdefs.h. */
7083c021
AC
1919$4
1920int
1921main ()
1922{
1923static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1924test_array [0] = 0
1925
1926 ;
1927 return 0;
1928}
212380e3 1929_ACEOF
7083c021
AC
1930if ac_fn_c_try_compile "$LINENO"; then :
1931 ac_hi=$ac_mid
212380e3 1932else
7083c021 1933 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
212380e3 1934fi
7083c021
AC
1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936done
1937case $ac_lo in #((
1938?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1939'') ac_retval=1 ;;
1940esac
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944$4
1945static long int longval () { return $2; }
1946static unsigned long int ulongval () { return $2; }
1947#include <stdio.h>
1948#include <stdlib.h>
1949int
1950main ()
1951{
631ef239 1952
7083c021
AC
1953 FILE *f = fopen ("conftest.val", "w");
1954 if (! f)
1955 return 1;
1956 if (($2) < 0)
1957 {
1958 long int i = longval ();
1959 if (i != ($2))
1960 return 1;
1961 fprintf (f, "%ld", i);
1962 }
1963 else
1964 {
1965 unsigned long int i = ulongval ();
1966 if (i != ($2))
1967 return 1;
1968 fprintf (f, "%lu", i);
1969 }
1970 /* Do not output a trailing newline, as this causes \r\n confusion
1971 on some platforms. */
1972 return ferror (f) || fclose (f) != 0;
212380e3 1973
7083c021
AC
1974 ;
1975 return 0;
1976}
212380e3 1977_ACEOF
7083c021
AC
1978if ac_fn_c_try_run "$LINENO"; then :
1979 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
212380e3 1980else
7083c021 1981 ac_retval=1
212380e3 1982fi
7083c021
AC
1983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1984 conftest.$ac_objext conftest.beam conftest.$ac_ext
1985rm -f conftest.val
631ef239 1986
7083c021 1987 fi
b6d0720c 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1989 as_fn_set_status $ac_retval
212380e3 1990
7083c021 1991} # ac_fn_c_compute_int
212380e3 1992
7083c021
AC
1993# ac_fn_c_check_func LINENO FUNC VAR
1994# ----------------------------------
1995# Tests whether FUNC exists, setting the cache variable VAR accordingly
1996ac_fn_c_check_func ()
1997{
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000$as_echo_n "checking for $2... " >&6; }
b6d0720c 2001if eval \${$3+:} false; then :
7083c021 2002 $as_echo_n "(cached) " >&6
212380e3 2003else
7083c021 2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2005/* end confdefs.h. */
7083c021
AC
2006/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2008#define $2 innocuous_$2
2009
2010/* System header to define __stub macros and hopefully few prototypes,
2011 which can conflict with char $2 (); below.
2012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2013 <limits.h> exists even on freestanding compilers. */
2014
212380e3
AC
2015#ifdef __STDC__
2016# include <limits.h>
2017#else
2018# include <assert.h>
2019#endif
212380e3 2020
7083c021 2021#undef $2
631ef239 2022
7083c021
AC
2023/* Override any GCC internal prototype to avoid an error.
2024 Use char because int might match the return type of a GCC
2025 builtin and then its argument prototype would still apply. */
2026#ifdef __cplusplus
2027extern "C"
2028#endif
2029char $2 ();
2030/* The GNU C library defines this for functions which it implements
2031 to always fail with ENOSYS. Some functions are actually named
2032 something starting with __ and the normal name is an alias. */
2033#if defined __stub_$2 || defined __stub___$2
2034choke me
2035#endif
212380e3 2036
7083c021
AC
2037int
2038main ()
2039{
2040return $2 ();
2041 ;
2042 return 0;
2043}
212380e3 2044_ACEOF
7083c021
AC
2045if ac_fn_c_try_link "$LINENO"; then :
2046 eval "$3=yes"
212380e3 2047else
7083c021
AC
2048 eval "$3=no"
2049fi
2050rm -f core conftest.err conftest.$ac_objext \
2051 conftest$ac_exeext conftest.$ac_ext
212380e3 2052fi
7083c021
AC
2053eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055$as_echo "$ac_res" >&6; }
b6d0720c 2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
631ef239 2057
7083c021
AC
2058} # ac_fn_c_check_func
2059cat >config.log <<_ACEOF
2060This file contains any messages produced by compilers while
2061running configure, to aid debugging if configure makes a mistake.
212380e3 2062
a949ab1a 2063It was created by charybdis $as_me 3.4.0-dev, which was
b6d0720c 2064generated by GNU Autoconf 2.68. Invocation command line was
212380e3 2065
7083c021 2066 $ $0 $@
212380e3 2067
7083c021
AC
2068_ACEOF
2069exec 5>>config.log
2070{
2071cat <<_ASUNAME
2072## --------- ##
2073## Platform. ##
2074## --------- ##
2075
2076hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2077uname -m = `(uname -m) 2>/dev/null || echo unknown`
2078uname -r = `(uname -r) 2>/dev/null || echo unknown`
2079uname -s = `(uname -s) 2>/dev/null || echo unknown`
2080uname -v = `(uname -v) 2>/dev/null || echo unknown`
2081
2082/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2083/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2084
2085/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2086/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2087/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2088/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2089/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2090/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2091/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2092
2093_ASUNAME
212380e3 2094
631ef239 2095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083c021 2096for as_dir in $PATH
631ef239
AC
2097do
2098 IFS=$as_save_IFS
2099 test -z "$as_dir" && as_dir=.
7083c021 2100 $as_echo "PATH: $as_dir"
631ef239 2101 done
631ef239
AC
2102IFS=$as_save_IFS
2103
7083c021 2104} >&5
631ef239 2105
7083c021 2106cat >&5 <<_ACEOF
631ef239 2107
631ef239 2108
7083c021
AC
2109## ----------- ##
2110## Core tests. ##
2111## ----------- ##
631ef239 2112
7083c021 2113_ACEOF
631ef239
AC
2114
2115
7083c021
AC
2116# Keep a trace of the command line.
2117# Strip out --no-create and --no-recursion so they do not pile up.
2118# Strip out --silent because we don't want to record it for future runs.
2119# Also quote any args containing shell meta-characters.
2120# Make two passes to allow for proper duplicate-argument suppression.
2121ac_configure_args=
2122ac_configure_args0=
2123ac_configure_args1=
2124ac_must_keep_next=false
2125for ac_pass in 1 2
631ef239 2126do
7083c021 2127 for ac_arg
631ef239 2128 do
7083c021
AC
2129 case $ac_arg in
2130 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2132 | -silent | --silent | --silen | --sile | --sil)
2133 continue ;;
2134 *\'*)
2135 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2136 esac
2137 case $ac_pass in
2138 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2139 2)
2140 as_fn_append ac_configure_args1 " '$ac_arg'"
2141 if test $ac_must_keep_next = true; then
2142 ac_must_keep_next=false # Got value, back to normal.
2143 else
2144 case $ac_arg in
2145 *=* | --config-cache | -C | -disable-* | --disable-* \
2146 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2147 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2148 | -with-* | --with-* | -without-* | --without-* | --x)
2149 case "$ac_configure_args0 " in
2150 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2151 esac
2152 ;;
2153 -* ) ac_must_keep_next=true ;;
2154 esac
2155 fi
2156 as_fn_append ac_configure_args " '$ac_arg'"
2157 ;;
2158 esac
631ef239
AC
2159 done
2160done
7083c021
AC
2161{ ac_configure_args0=; unset ac_configure_args0;}
2162{ ac_configure_args1=; unset ac_configure_args1;}
631ef239 2163
7083c021
AC
2164# When interrupted or exit'd, cleanup temporary files, and complete
2165# config.log. We remove comments because anyway the quotes in there
2166# would cause problems or look ugly.
2167# WARNING: Use '\'' to represent an apostrophe within the trap.
2168# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2169trap 'exit_status=$?
2170 # Save into config.log some information that might help in debugging.
2171 {
2172 echo
631ef239 2173
b6d0720c 2174 $as_echo "## ---------------- ##
7083c021 2175## Cache variables. ##
b6d0720c 2176## ---------------- ##"
7083c021
AC
2177 echo
2178 # The following way of writing the cache mishandles newlines in values,
2179(
2180 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2181 eval ac_val=\$$ac_var
2182 case $ac_val in #(
2183 *${as_nl}*)
2184 case $ac_var in #(
2185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2187 esac
2188 case $ac_var in #(
2189 _ | IFS | as_nl) ;; #(
2190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191 *) { eval $ac_var=; unset $ac_var;} ;;
2192 esac ;;
2193 esac
2194 done
2195 (set) 2>&1 |
2196 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2197 *${as_nl}ac_space=\ *)
2198 sed -n \
2199 "s/'\''/'\''\\\\'\'''\''/g;
2200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2201 ;; #(
2202 *)
2203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2204 ;;
2205 esac |
2206 sort
2207)
2208 echo
631ef239 2209
b6d0720c 2210 $as_echo "## ----------------- ##
7083c021 2211## Output variables. ##
b6d0720c 2212## ----------------- ##"
7083c021
AC
2213 echo
2214 for ac_var in $ac_subst_vars
2215 do
2216 eval ac_val=\$$ac_var
2217 case $ac_val in
2218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219 esac
2220 $as_echo "$ac_var='\''$ac_val'\''"
2221 done | sort
2222 echo
631ef239 2223
7083c021 2224 if test -n "$ac_subst_files"; then
b6d0720c 2225 $as_echo "## ------------------- ##
7083c021 2226## File substitutions. ##
b6d0720c 2227## ------------------- ##"
7083c021
AC
2228 echo
2229 for ac_var in $ac_subst_files
2230 do
2231 eval ac_val=\$$ac_var
2232 case $ac_val in
2233 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234 esac
2235 $as_echo "$ac_var='\''$ac_val'\''"
2236 done | sort
2237 echo
2238 fi
631ef239 2239
7083c021 2240 if test -s confdefs.h; then
b6d0720c 2241 $as_echo "## ----------- ##
7083c021 2242## confdefs.h. ##
b6d0720c 2243## ----------- ##"
7083c021
AC
2244 echo
2245 cat confdefs.h
2246 echo
2247 fi
2248 test "$ac_signal" != 0 &&
2249 $as_echo "$as_me: caught signal $ac_signal"
2250 $as_echo "$as_me: exit $exit_status"
2251 } >&5
2252 rm -f core *.core core.conftest.* &&
2253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2254 exit $exit_status
2255' 0
2256for ac_signal in 1 2 13 15; do
2257 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2258done
2259ac_signal=0
631ef239 2260
7083c021
AC
2261# confdefs.h avoids OS command line length limits that DEFS can exceed.
2262rm -f -r conftest* confdefs.h
631ef239 2263
7083c021 2264$as_echo "/* confdefs.h */" > confdefs.h
212380e3 2265
7083c021 2266# Predefined preprocessor variables.
212380e3 2267
7083c021
AC
2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_NAME "$PACKAGE_NAME"
212380e3 2270_ACEOF
212380e3 2271
7083c021
AC
2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
212380e3 2274_ACEOF
212380e3 2275
7083c021
AC
2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_VERSION "$PACKAGE_VERSION"
212380e3 2278_ACEOF
212380e3 2279
7083c021
AC
2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE_STRING "$PACKAGE_STRING"
2282_ACEOF
212380e3 2283
7083c021
AC
2284cat >>confdefs.h <<_ACEOF
2285#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2286_ACEOF
212380e3 2287
7083c021
AC
2288cat >>confdefs.h <<_ACEOF
2289#define PACKAGE_URL "$PACKAGE_URL"
2290_ACEOF
212380e3 2291
631ef239 2292
7083c021
AC
2293# Let the site file select an alternate cache file if it wants to.
2294# Prefer an explicitly selected file to automatically selected ones.
2295ac_site_file1=NONE
2296ac_site_file2=NONE
2297if test -n "$CONFIG_SITE"; then
b6d0720c
AC
2298 # We do not want a PATH search for config.site.
2299 case $CONFIG_SITE in #((
2300 -*) ac_site_file1=./$CONFIG_SITE;;
2301 */*) ac_site_file1=$CONFIG_SITE;;
2302 *) ac_site_file1=./$CONFIG_SITE;;
2303 esac
7083c021
AC
2304elif test "x$prefix" != xNONE; then
2305 ac_site_file1=$prefix/share/config.site
2306 ac_site_file2=$prefix/etc/config.site
212380e3 2307else
7083c021
AC
2308 ac_site_file1=$ac_default_prefix/share/config.site
2309 ac_site_file2=$ac_default_prefix/etc/config.site
2310fi
2311for ac_site_file in "$ac_site_file1" "$ac_site_file2"
212380e3 2312do
7083c021 2313 test "x$ac_site_file" = xNONE && continue
6fb6bd15 2314 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7083c021
AC
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2316$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2317 sed 's/^/| /' "$ac_site_file" >&5
b6d0720c
AC
2318 . "$ac_site_file" \
2319 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321as_fn_error $? "failed to load site script $ac_site_file
2322See \`config.log' for more details" "$LINENO" 5; }
212380e3
AC
2323 fi
2324done
212380e3 2325
7083c021 2326if test -r "$cache_file"; then
6fb6bd15
AC
2327 # Some versions of bash will fail to source /dev/null (special files
2328 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2329 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7083c021
AC
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331$as_echo "$as_me: loading cache $cache_file" >&6;}
2332 case $cache_file in
2333 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334 *) . "./$cache_file";;
2335 esac
2336 fi
212380e3 2337else
7083c021
AC
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339$as_echo "$as_me: creating cache $cache_file" >&6;}
2340 >$cache_file
212380e3
AC
2341fi
2342
7083c021
AC
2343# Check that the precious variables saved in the cache have kept the same
2344# value.
2345ac_cache_corrupted=false
2346for ac_var in $ac_precious_vars; do
2347 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2348 eval ac_new_set=\$ac_env_${ac_var}_set
2349 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2350 eval ac_new_val=\$ac_env_${ac_var}_value
2351 case $ac_old_set,$ac_new_set in
2352 set,)
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2354$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2355 ac_cache_corrupted=: ;;
2356 ,set)
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2358$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2359 ac_cache_corrupted=: ;;
2360 ,);;
2361 *)
2362 if test "x$ac_old_val" != "x$ac_new_val"; then
2363 # differences in whitespace do not lead to failure.
2364 ac_old_val_w=`echo x $ac_old_val`
2365 ac_new_val_w=`echo x $ac_new_val`
2366 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2368$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2369 ac_cache_corrupted=:
2370 else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2372$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2373 eval $ac_var=\$ac_old_val
2374 fi
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2376$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2378$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2379 fi;;
2380 esac
2381 # Pass precious variables to config.status.
2382 if test "$ac_new_set" = set; then
2383 case $ac_new_val in
2384 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2385 *) ac_arg=$ac_var=$ac_new_val ;;
2386 esac
2387 case " $ac_configure_args " in
2388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2389 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2390 esac
212380e3
AC
2391 fi
2392done
7083c021
AC
2393if $ac_cache_corrupted; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2397$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b6d0720c 2398 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
212380e3 2399fi
7083c021
AC
2400## -------------------- ##
2401## Main body of script. ##
2402## -------------------- ##
212380e3 2403
7083c021
AC
2404ac_ext=c
2405ac_cpp='$CPP $CPPFLAGS'
2406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408ac_compiler_gnu=$ac_cv_c_compiler_gnu
631ef239 2409
212380e3 2410
212380e3 2411
7083c021 2412ac_config_headers="$ac_config_headers include/setup.h"
631ef239 2413
212380e3 2414
212380e3 2415
631ef239 2416
7083c021
AC
2417ac_ext=c
2418ac_cpp='$CPP $CPPFLAGS'
2419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2424set dummy ${ac_tool_prefix}gcc; ac_word=$2
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2426$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2427if ${ac_cv_prog_CC+:} false; then :
7083c021 2428 $as_echo_n "(cached) " >&6
212380e3 2429else
7083c021
AC
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432else
2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2434for as_dir in $PATH
2435do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
7083c021 2438 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2442 break 2
2443 fi
2444done
7083c021 2445 done
631ef239 2446IFS=$as_save_IFS
212380e3 2447
212380e3 2448fi
7083c021
AC
2449fi
2450CC=$ac_cv_prog_CC
2451if test -n "$CC"; then
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2453$as_echo "$CC" >&6; }
212380e3 2454else
7083c021
AC
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2456$as_echo "no" >&6; }
212380e3
AC
2457fi
2458
631ef239 2459
7083c021
AC
2460fi
2461if test -z "$ac_cv_prog_CC"; then
2462 ac_ct_CC=$CC
2463 # Extract the first word of "gcc", so it can be a program name with args.
2464set dummy gcc; ac_word=$2
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2467if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 2468 $as_echo_n "(cached) " >&6
212380e3 2469else
7083c021
AC
2470 if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472else
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2474for as_dir in $PATH
2475do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
7083c021 2478 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2480 ac_cv_prog_ac_ct_CC="gcc"
2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2482 break 2
2483 fi
2484done
7083c021 2485 done
631ef239 2486IFS=$as_save_IFS
212380e3 2487
212380e3 2488fi
7083c021
AC
2489fi
2490ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491if test -n "$ac_ct_CC"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2493$as_echo "$ac_ct_CC" >&6; }
212380e3 2494else
7083c021
AC
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496$as_echo "no" >&6; }
212380e3
AC
2497fi
2498
7083c021
AC
2499 if test "x$ac_ct_CC" = x; then
2500 CC=""
2501 else
2502 case $cross_compiling:$ac_tool_warned in
2503yes:)
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2506ac_tool_warned=yes ;;
2507esac
2508 CC=$ac_ct_CC
2509 fi
2510else
2511 CC="$ac_cv_prog_CC"
2512fi
631ef239 2513
7083c021
AC
2514if test -z "$CC"; then
2515 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2517set dummy ${ac_tool_prefix}cc; ac_word=$2
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2520if ${ac_cv_prog_CC+:} false; then :
7083c021 2521 $as_echo_n "(cached) " >&6
212380e3 2522else
7083c021
AC
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2525else
2526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2527for as_dir in $PATH
2528do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
7083c021 2531 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2533 ac_cv_prog_CC="${ac_tool_prefix}cc"
2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2535 break 2
2536 fi
2537done
7083c021 2538 done
631ef239 2539IFS=$as_save_IFS
7083c021 2540
212380e3 2541fi
7083c021
AC
2542fi
2543CC=$ac_cv_prog_CC
2544if test -n "$CC"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2546$as_echo "$CC" >&6; }
212380e3 2547else
7083c021
AC
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549$as_echo "no" >&6; }
212380e3
AC
2550fi
2551
631ef239 2552
7083c021
AC
2553 fi
2554fi
2555if test -z "$CC"; then
2556 # Extract the first word of "cc", so it can be a program name with args.
2557set dummy cc; ac_word=$2
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2560if ${ac_cv_prog_CC+:} false; then :
7083c021 2561 $as_echo_n "(cached) " >&6
212380e3 2562else
7083c021
AC
2563 if test -n "$CC"; then
2564 ac_cv_prog_CC="$CC" # Let the user override the test.
2565else
2566 ac_prog_rejected=no
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2568for as_dir in $PATH
2569do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
7083c021 2572 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2574 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2575 ac_prog_rejected=yes
2576 continue
2577 fi
2578 ac_cv_prog_CC="cc"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2580 break 2
2581 fi
2582done
7083c021 2583 done
631ef239 2584IFS=$as_save_IFS
212380e3 2585
7083c021
AC
2586if test $ac_prog_rejected = yes; then
2587 # We found a bogon in the path, so make sure we never use it.
2588 set dummy $ac_cv_prog_CC
2589 shift
2590 if test $# != 0; then
2591 # We chose a different compiler from the bogus one.
2592 # However, it has the same basename, so the bogon will be chosen
2593 # first if we set CC to just the basename; use the full file name.
2594 shift
2595 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2596 fi
212380e3 2597fi
7083c021
AC
2598fi
2599fi
2600CC=$ac_cv_prog_CC
2601if test -n "$CC"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2603$as_echo "$CC" >&6; }
212380e3 2604else
7083c021
AC
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606$as_echo "no" >&6; }
212380e3
AC
2607fi
2608
2609
7083c021
AC
2610fi
2611if test -z "$CC"; then
2612 if test -n "$ac_tool_prefix"; then
2613 for ac_prog in cl.exe
2614 do
2615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2616set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2619if ${ac_cv_prog_CC+:} false; then :
7083c021 2620 $as_echo_n "(cached) " >&6
212380e3 2621else
7083c021
AC
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3
AC
2624else
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
7083c021 2630 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2634 break 2
2635 fi
2636done
7083c021 2637 done
631ef239 2638IFS=$as_save_IFS
212380e3
AC
2639
2640fi
2641fi
7083c021
AC
2642CC=$ac_cv_prog_CC
2643if test -n "$CC"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2645$as_echo "$CC" >&6; }
212380e3 2646else
7083c021
AC
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648$as_echo "no" >&6; }
212380e3
AC
2649fi
2650
631ef239 2651
7083c021
AC
2652 test -n "$CC" && break
2653 done
212380e3 2654fi
7083c021
AC
2655if test -z "$CC"; then
2656 ac_ct_CC=$CC
2657 for ac_prog in cl.exe
212380e3
AC
2658do
2659 # Extract the first word of "$ac_prog", so it can be a program name with args.
2660set dummy $ac_prog; ac_word=$2
7083c021
AC
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2663if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 2664 $as_echo_n "(cached) " >&6
212380e3 2665else
7083c021
AC
2666 if test -n "$ac_ct_CC"; then
2667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3
AC
2668else
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
7083c021 2674 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2676 ac_cv_prog_ac_ct_CC="$ac_prog"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2678 break 2
2679 fi
2680done
7083c021 2681 done
631ef239 2682IFS=$as_save_IFS
212380e3
AC
2683
2684fi
2685fi
7083c021
AC
2686ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687if test -n "$ac_ct_CC"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2689$as_echo "$ac_ct_CC" >&6; }
212380e3 2690else
7083c021
AC
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692$as_echo "no" >&6; }
212380e3
AC
2693fi
2694
631ef239 2695
7083c021 2696 test -n "$ac_ct_CC" && break
212380e3 2697done
212380e3 2698
7083c021
AC
2699 if test "x$ac_ct_CC" = x; then
2700 CC=""
2701 else
2702 case $cross_compiling:$ac_tool_warned in
2703yes:)
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2706ac_tool_warned=yes ;;
2707esac
2708 CC=$ac_ct_CC
2709 fi
2710fi
2711
2712fi
2713
2714
2715test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2717as_fn_error $? "no acceptable C compiler found in \$PATH
2718See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
2719
2720# Provide some information about the compiler.
2721$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2722set X $ac_compile
2723ac_compiler=$2
2724for ac_option in --version -v -V -qversion; do
2725 { { ac_try="$ac_compiler $ac_option >&5"
2726case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729esac
2730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2731$as_echo "$ac_try_echo"; } >&5
2732 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2733 ac_status=$?
2734 if test -s conftest.err; then
2735 sed '10a\
2736... rest of stderr output deleted ...
2737 10q' conftest.err >conftest.er1
2738 cat conftest.er1 >&5
7083c021 2739 fi
6fb6bd15 2740 rm -f conftest.er1 conftest.err
7083c021
AC
2741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2742 test $ac_status = 0; }
2743done
2744
2745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746/* end confdefs.h. */
6fb6bd15 2747
212380e3 2748int
7083c021 2749main ()
212380e3 2750{
7083c021
AC
2751
2752 ;
2753 return 0;
212380e3
AC
2754}
2755_ACEOF
7083c021 2756ac_clean_files_save=$ac_clean_files
6fb6bd15 2757ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
7083c021
AC
2758# Try to create an executable without -o first, disregard a.out.
2759# It will help us diagnose broken compilers, and finding out an intuition
2760# of exeext.
6fb6bd15
AC
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2762$as_echo_n "checking whether the C compiler works... " >&6; }
7083c021
AC
2763ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2764
2765# The possible output files:
2766ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2767
2768ac_rmfiles=
2769for ac_file in $ac_files
2770do
2771 case $ac_file in
2772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2773 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2774 esac
2775done
2776rm -f $ac_rmfiles
2777
2778if { { ac_try="$ac_link_default"
631ef239
AC
2779case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782esac
7083c021
AC
2783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2784$as_echo "$ac_try_echo"; } >&5
2785 (eval "$ac_link_default") 2>&5
212380e3 2786 ac_status=$?
7083c021
AC
2787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2788 test $ac_status = 0; }; then :
2789 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2790# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2791# in a Makefile. We should not override ac_cv_exeext if it was cached,
2792# so that the user can short-circuit this test for compilers unknown to
2793# Autoconf.
2794for ac_file in $ac_files ''
2795do
2796 test -f "$ac_file" || continue
2797 case $ac_file in
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2799 ;;
2800 [ab].out )
2801 # We found the default executable, but exeext='' is most
2802 # certainly right.
2803 break;;
2804 *.* )
2805 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2806 then :; else
2807 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2808 fi
2809 # We set ac_cv_exeext here because the later test for it is not
2810 # safe: cross compilers may not add the suffix if given an `-o'
2811 # argument, so we may need to know it at that point already.
2812 # Even if this section looks crufty: it has the advantage of
2813 # actually working.
2814 break;;
2815 * )
2816 break;;
2817 esac
2818done
2819test "$ac_cv_exeext" = no && ac_cv_exeext=
212380e3 2820
212380e3 2821else
7083c021 2822 ac_file=''
631ef239 2823fi
7083c021 2824if test -z "$ac_file"; then :
6fb6bd15
AC
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
2827$as_echo "$as_me: failed program was:" >&5
7083c021
AC
2828sed 's/^/| /' conftest.$ac_ext >&5
2829
2830{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2832as_fn_error 77 "C compiler cannot create executables
2833See \`config.log' for more details" "$LINENO" 5; }
6fb6bd15
AC
2834else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2836$as_echo "yes" >&6; }
631ef239 2837fi
6fb6bd15
AC
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2839$as_echo_n "checking for C compiler default output file name... " >&6; }
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2841$as_echo "$ac_file" >&6; }
7083c021 2842ac_exeext=$ac_cv_exeext
631ef239 2843
6fb6bd15 2844rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
7083c021 2845ac_clean_files=$ac_clean_files_save
7083c021
AC
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2847$as_echo_n "checking for suffix of executables... " >&6; }
2848if { { ac_try="$ac_link"
2849case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852esac
2853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854$as_echo "$ac_try_echo"; } >&5
2855 (eval "$ac_link") 2>&5
2856 ac_status=$?
2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858 test $ac_status = 0; }; then :
2859 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2860# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2861# work properly (i.e., refer to `conftest.exe'), while it won't with
2862# `rm'.
2863for ac_file in conftest.exe conftest conftest.*; do
2864 test -f "$ac_file" || continue
2865 case $ac_file in
2866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2867 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2868 break;;
2869 * ) break;;
2870 esac
2871done
212380e3 2872else
7083c021
AC
2873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2875as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2876See \`config.log' for more details" "$LINENO" 5; }
7083c021 2877fi
6fb6bd15 2878rm -f conftest conftest$ac_cv_exeext
7083c021
AC
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2880$as_echo "$ac_cv_exeext" >&6; }
2881
2882rm -f conftest.$ac_ext
2883EXEEXT=$ac_cv_exeext
2884ac_exeext=$EXEEXT
6fb6bd15
AC
2885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886/* end confdefs.h. */
2887#include <stdio.h>
2888int
2889main ()
2890{
2891FILE *f = fopen ("conftest.out", "w");
2892 return ferror (f) || fclose (f) != 0;
2893
2894 ;
2895 return 0;
2896}
2897_ACEOF
2898ac_clean_files="$ac_clean_files conftest.out"
2899# Check that the compiler produces executables we can run. If not, either
2900# the compiler is broken, or we cross compile.
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2902$as_echo_n "checking whether we are cross compiling... " >&6; }
2903if test "$cross_compiling" != yes; then
2904 { { ac_try="$ac_link"
2905case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908esac
2909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910$as_echo "$ac_try_echo"; } >&5
2911 (eval "$ac_link") 2>&5
2912 ac_status=$?
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; }
2915 if { ac_try='./conftest$ac_cv_exeext'
2916 { { case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919esac
2920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2921$as_echo "$ac_try_echo"; } >&5
2922 (eval "$ac_try") 2>&5
2923 ac_status=$?
2924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925 test $ac_status = 0; }; }; then
2926 cross_compiling=no
2927 else
2928 if test "$cross_compiling" = maybe; then
2929 cross_compiling=yes
2930 else
2931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c 2933as_fn_error $? "cannot run C compiled programs.
6fb6bd15 2934If you meant to cross compile, use \`--host'.
b6d0720c 2935See \`config.log' for more details" "$LINENO" 5; }
6fb6bd15
AC
2936 fi
2937 fi
2938fi
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2940$as_echo "$cross_compiling" >&6; }
2941
2942rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2943ac_clean_files=$ac_clean_files_save
7083c021
AC
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2945$as_echo_n "checking for suffix of object files... " >&6; }
b6d0720c 2946if ${ac_cv_objext+:} false; then :
7083c021
AC
2947 $as_echo_n "(cached) " >&6
2948else
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950/* end confdefs.h. */
212380e3 2951
7083c021
AC
2952int
2953main ()
2954{
2955
2956 ;
2957 return 0;
2958}
212380e3 2959_ACEOF
7083c021
AC
2960rm -f conftest.o conftest.obj
2961if { { ac_try="$ac_compile"
631ef239
AC
2962case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965esac
7083c021
AC
2966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967$as_echo "$ac_try_echo"; } >&5
2968 (eval "$ac_compile") 2>&5
212380e3 2969 ac_status=$?
7083c021
AC
2970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971 test $ac_status = 0; }; then :
2972 for ac_file in conftest.o conftest.obj conftest.*; do
2973 test -f "$ac_file" || continue;
2974 case $ac_file in
2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2976 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2977 break;;
2978 esac
2979done
212380e3 2980else
7083c021 2981 $as_echo "$as_me: failed program was:" >&5
212380e3
AC
2982sed 's/^/| /' conftest.$ac_ext >&5
2983
7083c021
AC
2984{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2986as_fn_error $? "cannot compute suffix of object files: cannot compile
2987See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
2988fi
2989rm -f conftest.$ac_cv_objext conftest.$ac_ext
212380e3 2990fi
7083c021
AC
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2992$as_echo "$ac_cv_objext" >&6; }
2993OBJEXT=$ac_cv_objext
2994ac_objext=$OBJEXT
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2996$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b6d0720c 2997if ${ac_cv_c_compiler_gnu+:} false; then :
7083c021
AC
2998 $as_echo_n "(cached) " >&6
2999else
3000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001/* end confdefs.h. */
212380e3 3002
7083c021
AC
3003int
3004main ()
3005{
3006#ifndef __GNUC__
3007 choke me
3008#endif
212380e3 3009
7083c021
AC
3010 ;
3011 return 0;
3012}
3013_ACEOF
3014if ac_fn_c_try_compile "$LINENO"; then :
3015 ac_compiler_gnu=yes
3016else
3017 ac_compiler_gnu=no
212380e3 3018fi
7083c021
AC
3019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020ac_cv_c_compiler_gnu=$ac_compiler_gnu
3021
3022fi
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3024$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3025if test $ac_compiler_gnu = yes; then
3026 GCC=yes
3027else
3028 GCC=
212380e3 3029fi
7083c021
AC
3030ac_test_CFLAGS=${CFLAGS+set}
3031ac_save_CFLAGS=$CFLAGS
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3033$as_echo_n "checking whether $CC accepts -g... " >&6; }
b6d0720c 3034if ${ac_cv_prog_cc_g+:} false; then :
7083c021
AC
3035 $as_echo_n "(cached) " >&6
3036else
3037 ac_save_c_werror_flag=$ac_c_werror_flag
3038 ac_c_werror_flag=yes
3039 ac_cv_prog_cc_g=no
3040 CFLAGS="-g"
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042/* end confdefs.h. */
212380e3 3043
7083c021
AC
3044int
3045main ()
3046{
631ef239 3047
7083c021
AC
3048 ;
3049 return 0;
3050}
212380e3 3051_ACEOF
7083c021
AC
3052if ac_fn_c_try_compile "$LINENO"; then :
3053 ac_cv_prog_cc_g=yes
212380e3 3054else
7083c021
AC
3055 CFLAGS=""
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057/* end confdefs.h. */
212380e3 3058
7083c021
AC
3059int
3060main ()
3061{
631ef239 3062
7083c021
AC
3063 ;
3064 return 0;
3065}
3066_ACEOF
3067if ac_fn_c_try_compile "$LINENO"; then :
631ef239 3068
7083c021
AC
3069else
3070 ac_c_werror_flag=$ac_save_c_werror_flag
3071 CFLAGS="-g"
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073/* end confdefs.h. */
212380e3 3074
7083c021
AC
3075int
3076main ()
3077{
212380e3 3078
7083c021
AC
3079 ;
3080 return 0;
3081}
212380e3 3082_ACEOF
7083c021
AC
3083if ac_fn_c_try_compile "$LINENO"; then :
3084 ac_cv_prog_cc_g=yes
212380e3 3085fi
7083c021 3086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3087fi
7083c021 3088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3089fi
7083c021
AC
3090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 ac_c_werror_flag=$ac_save_c_werror_flag
212380e3 3092fi
7083c021
AC
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3094$as_echo "$ac_cv_prog_cc_g" >&6; }
3095if test "$ac_test_CFLAGS" = set; then
3096 CFLAGS=$ac_save_CFLAGS
3097elif test $ac_cv_prog_cc_g = yes; then
3098 if test "$GCC" = yes; then
3099 CFLAGS="-g -O2"
3100 else
3101 CFLAGS="-g"
3102 fi
212380e3 3103else
7083c021
AC
3104 if test "$GCC" = yes; then
3105 CFLAGS="-O2"
3106 else
3107 CFLAGS=
3108 fi
3109fi
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3111$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b6d0720c 3112if ${ac_cv_prog_cc_c89+:} false; then :
7083c021
AC
3113 $as_echo_n "(cached) " >&6
3114else
3115 ac_cv_prog_cc_c89=no
3116ac_save_CC=$CC
3117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3118/* end confdefs.h. */
212380e3 3119#include <stdarg.h>
7083c021
AC
3120#include <stdio.h>
3121#include <sys/types.h>
3122#include <sys/stat.h>
3123/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3124struct buf { int x; };
3125FILE * (*rcsopen) (struct buf *, struct stat *, int);
3126static char *e (p, i)
3127 char **p;
3128 int i;
3129{
3130 return p[i];
3131}
3132static char *f (char * (*g) (char **, int), char **p, ...)
3133{
3134 char *s;
3135 va_list v;
3136 va_start (v,p);
3137 s = g (p, va_arg (v,int));
3138 va_end (v);
3139 return s;
3140}
3141
3142/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3143 function prototypes and stuff, but not '\xHH' hex character constants.
3144 These don't provoke an error unfortunately, instead are silently treated
3145 as 'x'. The following induces an error, until -std is added to get
3146 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3147 array size at least. It's necessary to write '\x00'==0 to get something
3148 that's true only with -std. */
3149int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3150
3151/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3152 inside strings and character constants. */
3153#define FOO(x) 'x'
3154int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
212380e3 3155
7083c021
AC
3156int test (int i, double x);
3157struct s1 {int (*f) (int a);};
3158struct s2 {int (*f) (double a);};
3159int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3160int argc;
3161char **argv;
212380e3
AC
3162int
3163main ()
3164{
7083c021 3165return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3
AC
3166 ;
3167 return 0;
3168}
3169_ACEOF
7083c021
AC
3170for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3171 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3172do
3173 CC="$ac_save_CC $ac_arg"
3174 if ac_fn_c_try_compile "$LINENO"; then :
3175 ac_cv_prog_cc_c89=$ac_arg
3176fi
3177rm -f core conftest.err conftest.$ac_objext
3178 test "x$ac_cv_prog_cc_c89" != "xno" && break
3179done
3180rm -f conftest.$ac_ext
3181CC=$ac_save_CC
3182
3183fi
3184# AC_CACHE_VAL
3185case "x$ac_cv_prog_cc_c89" in
3186 x)
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3188$as_echo "none needed" >&6; } ;;
3189 xno)
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3191$as_echo "unsupported" >&6; } ;;
3192 *)
3193 CC="$CC $ac_cv_prog_cc_c89"
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3195$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 3196esac
7083c021 3197if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 3198
212380e3 3199fi
631ef239 3200
7083c021
AC
3201ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3 3206
212380e3 3207
7083c021
AC
3208ac_ext=c
3209ac_cpp='$CPP $CPPFLAGS'
3210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3214$as_echo_n "checking how to run the C preprocessor... " >&6; }
3215# On Suns, sometimes $CPP names a directory.
3216if test -n "$CPP" && test -d "$CPP"; then
3217 CPP=
3218fi
3219if test -z "$CPP"; then
b6d0720c 3220 if ${ac_cv_prog_CPP+:} false; then :
7083c021
AC
3221 $as_echo_n "(cached) " >&6
3222else
3223 # Double quotes because CPP needs to be expanded
3224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3225 do
3226 ac_preproc_ok=false
3227for ac_c_preproc_warn_flag in '' yes
3228do
3229 # Use a header file that comes with gcc, so configuring glibc
3230 # with a fresh cross-compiler works.
3231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232 # <limits.h> exists even on freestanding compilers.
3233 # On the NeXT, cc -E runs the code through the compiler's parser,
3234 # not just through cpp. "Syntax error" is here to catch this case.
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236/* end confdefs.h. */
3237#ifdef __STDC__
3238# include <limits.h>
3239#else
3240# include <assert.h>
3241#endif
3242 Syntax error
212380e3 3243_ACEOF
7083c021 3244if ac_fn_c_try_cpp "$LINENO"; then :
212380e3 3245
7083c021
AC
3246else
3247 # Broken: fails on valid input.
3248continue
212380e3 3249fi
b6d0720c 3250rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3251
7083c021
AC
3252 # OK, works on sane cases. Now check whether nonexistent headers
3253 # can be detected and how.
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3255/* end confdefs.h. */
7083c021 3256#include <ac_nonexistent.h>
212380e3 3257_ACEOF
7083c021
AC
3258if ac_fn_c_try_cpp "$LINENO"; then :
3259 # Broken: success on invalid input.
3260continue
212380e3 3261else
7083c021
AC
3262 # Passes both tests.
3263ac_preproc_ok=:
3264break
212380e3 3265fi
b6d0720c 3266rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3267
7083c021
AC
3268done
3269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b6d0720c 3270rm -f conftest.i conftest.err conftest.$ac_ext
7083c021
AC
3271if $ac_preproc_ok; then :
3272 break
212380e3
AC
3273fi
3274
7083c021
AC
3275 done
3276 ac_cv_prog_CPP=$CPP
3277
3278fi
3279 CPP=$ac_cv_prog_CPP
212380e3 3280else
7083c021
AC
3281 ac_cv_prog_CPP=$CPP
3282fi
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3284$as_echo "$CPP" >&6; }
3285ac_preproc_ok=false
3286for ac_c_preproc_warn_flag in '' yes
3287do
3288 # Use a header file that comes with gcc, so configuring glibc
3289 # with a fresh cross-compiler works.
3290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3291 # <limits.h> exists even on freestanding compilers.
3292 # On the NeXT, cc -E runs the code through the compiler's parser,
3293 # not just through cpp. "Syntax error" is here to catch this case.
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3295/* end confdefs.h. */
7083c021
AC
3296#ifdef __STDC__
3297# include <limits.h>
212380e3 3298#else
7083c021 3299# include <assert.h>
212380e3 3300#endif
7083c021 3301 Syntax error
212380e3 3302_ACEOF
7083c021 3303if ac_fn_c_try_cpp "$LINENO"; then :
212380e3 3304
7083c021
AC
3305else
3306 # Broken: fails on valid input.
3307continue
212380e3 3308fi
b6d0720c 3309rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3310
7083c021
AC
3311 # OK, works on sane cases. Now check whether nonexistent headers
3312 # can be detected and how.
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3314/* end confdefs.h. */
7083c021 3315#include <ac_nonexistent.h>
212380e3 3316_ACEOF
7083c021
AC
3317if ac_fn_c_try_cpp "$LINENO"; then :
3318 # Broken: success on invalid input.
3319continue
212380e3 3320else
7083c021
AC
3321 # Passes both tests.
3322ac_preproc_ok=:
3323break
212380e3 3324fi
b6d0720c 3325rm -f conftest.err conftest.i conftest.$ac_ext
212380e3
AC
3326
3327done
7083c021 3328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b6d0720c 3329rm -f conftest.i conftest.err conftest.$ac_ext
7083c021 3330if $ac_preproc_ok; then :
212380e3 3331
7083c021
AC
3332else
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
3335as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3336See \`config.log' for more details" "$LINENO" 5; }
7083c021 3337fi
212380e3 3338
7083c021
AC
3339ac_ext=c
3340ac_cpp='$CPP $CPPFLAGS'
3341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3
AC
3344
3345
7083c021
AC
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3347$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b6d0720c 3348if ${ac_cv_path_GREP+:} false; then :
7083c021 3349 $as_echo_n "(cached) " >&6
212380e3 3350else
7083c021
AC
3351 if test -z "$GREP"; then
3352 ac_path_GREP_found=false
3353 # Loop through the user's path and test for each of PROGNAME-LIST
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3356do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_prog in grep ggrep; do
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3362 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3363# Check for GNU ac_path_GREP and select it if it is found.
3364 # Check for GNU $ac_path_GREP
3365case `"$ac_path_GREP" --version 2>&1` in
3366*GNU*)
3367 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3368*)
3369 ac_count=0
3370 $as_echo_n 0123456789 >"conftest.in"
3371 while :
3372 do
3373 cat "conftest.in" "conftest.in" >"conftest.tmp"
3374 mv "conftest.tmp" "conftest.in"
3375 cp "conftest.in" "conftest.nl"
3376 $as_echo 'GREP' >> "conftest.nl"
3377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3379 as_fn_arith $ac_count + 1 && ac_count=$as_val
3380 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3381 # Best one so far, save it but keep looking for a better one
3382 ac_cv_path_GREP="$ac_path_GREP"
3383 ac_path_GREP_max=$ac_count
3384 fi
3385 # 10*(2^10) chars as input seems more than enough
3386 test $ac_count -gt 10 && break
3387 done
3388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
631ef239 3389esac
7083c021
AC
3390
3391 $ac_path_GREP_found && break 3
3392 done
3393 done
3394 done
3395IFS=$as_save_IFS
3396 if test -z "$ac_cv_path_GREP"; then
b6d0720c 3397 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083c021 3398 fi
212380e3 3399else
7083c021
AC
3400 ac_cv_path_GREP=$GREP
3401fi
212380e3 3402
212380e3 3403fi
7083c021
AC
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3405$as_echo "$ac_cv_path_GREP" >&6; }
3406 GREP="$ac_cv_path_GREP"
631ef239 3407
212380e3 3408
7083c021
AC
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3410$as_echo_n "checking for egrep... " >&6; }
b6d0720c 3411if ${ac_cv_path_EGREP+:} false; then :
7083c021
AC
3412 $as_echo_n "(cached) " >&6
3413else
3414 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3415 then ac_cv_path_EGREP="$GREP -E"
3416 else
3417 if test -z "$EGREP"; then
3418 ac_path_EGREP_found=false
3419 # Loop through the user's path and test for each of PROGNAME-LIST
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3422do
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_prog in egrep; do
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3428 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3429# Check for GNU ac_path_EGREP and select it if it is found.
3430 # Check for GNU $ac_path_EGREP
3431case `"$ac_path_EGREP" --version 2>&1` in
3432*GNU*)
3433 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3434*)
3435 ac_count=0
3436 $as_echo_n 0123456789 >"conftest.in"
3437 while :
3438 do
3439 cat "conftest.in" "conftest.in" >"conftest.tmp"
3440 mv "conftest.tmp" "conftest.in"
3441 cp "conftest.in" "conftest.nl"
3442 $as_echo 'EGREP' >> "conftest.nl"
3443 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3445 as_fn_arith $ac_count + 1 && ac_count=$as_val
3446 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3447 # Best one so far, save it but keep looking for a better one
3448 ac_cv_path_EGREP="$ac_path_EGREP"
3449 ac_path_EGREP_max=$ac_count
3450 fi
3451 # 10*(2^10) chars as input seems more than enough
3452 test $ac_count -gt 10 && break
3453 done
3454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
631ef239 3455esac
212380e3 3456
7083c021
AC
3457 $ac_path_EGREP_found && break 3
3458 done
3459 done
3460 done
3461IFS=$as_save_IFS
3462 if test -z "$ac_cv_path_EGREP"; then
b6d0720c 3463 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083c021 3464 fi
212380e3 3465else
7083c021 3466 ac_cv_path_EGREP=$EGREP
212380e3 3467fi
212380e3 3468
7083c021 3469 fi
212380e3 3470fi
7083c021
AC
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3472$as_echo "$ac_cv_path_EGREP" >&6; }
3473 EGREP="$ac_cv_path_EGREP"
212380e3
AC
3474
3475
7083c021
AC
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3477$as_echo_n "checking for ANSI C header files... " >&6; }
b6d0720c 3478if ${ac_cv_header_stdc+:} false; then :
7083c021 3479 $as_echo_n "(cached) " >&6
212380e3 3480else
7083c021 3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3482/* end confdefs.h. */
7083c021
AC
3483#include <stdlib.h>
3484#include <stdarg.h>
3485#include <string.h>
3486#include <float.h>
212380e3
AC
3487
3488int
3489main ()
3490{
212380e3
AC
3491
3492 ;
3493 return 0;
3494}
3495_ACEOF
7083c021
AC
3496if ac_fn_c_try_compile "$LINENO"; then :
3497 ac_cv_header_stdc=yes
212380e3 3498else
7083c021 3499 ac_cv_header_stdc=no
212380e3 3500fi
631ef239 3501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3502
7083c021
AC
3503if test $ac_cv_header_stdc = yes; then
3504 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506/* end confdefs.h. */
3507#include <string.h>
212380e3 3508
7083c021
AC
3509_ACEOF
3510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3511 $EGREP "memchr" >/dev/null 2>&1; then :
212380e3 3512
212380e3 3513else
7083c021
AC
3514 ac_cv_header_stdc=no
3515fi
3516rm -f conftest*
212380e3 3517
7083c021 3518fi
212380e3 3519
7083c021
AC
3520if test $ac_cv_header_stdc = yes; then
3521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3523/* end confdefs.h. */
7083c021 3524#include <stdlib.h>
212380e3 3525
212380e3 3526_ACEOF
7083c021
AC
3527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3528 $EGREP "free" >/dev/null 2>&1; then :
3529
212380e3 3530else
7083c021
AC
3531 ac_cv_header_stdc=no
3532fi
3533rm -f conftest*
212380e3 3534
212380e3 3535fi
631ef239 3536
7083c021
AC
3537if test $ac_cv_header_stdc = yes; then
3538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3539 if test "$cross_compiling" = yes; then :
3540 :
212380e3 3541else
7083c021 3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3543/* end confdefs.h. */
7083c021
AC
3544#include <ctype.h>
3545#include <stdlib.h>
3546#if ((' ' & 0x0FF) == 0x020)
3547# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3548# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3549#else
3550# define ISLOWER(c) \
3551 (('a' <= (c) && (c) <= 'i') \
3552 || ('j' <= (c) && (c) <= 'r') \
3553 || ('s' <= (c) && (c) <= 'z'))
3554# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3555#endif
3556
3557#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
3558int
3559main ()
3560{
7083c021
AC
3561 int i;
3562 for (i = 0; i < 256; i++)
3563 if (XOR (islower (i), ISLOWER (i))
3564 || toupper (i) != TOUPPER (i))
3565 return 2;
212380e3
AC
3566 return 0;
3567}
3568_ACEOF
7083c021
AC
3569if ac_fn_c_try_run "$LINENO"; then :
3570
3571else
3572 ac_cv_header_stdc=no
212380e3 3573fi
7083c021
AC
3574rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3575 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 3576fi
212380e3 3577
7083c021
AC
3578fi
3579fi
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3581$as_echo "$ac_cv_header_stdc" >&6; }
3582if test $ac_cv_header_stdc = yes; then
3583
3584$as_echo "#define STDC_HEADERS 1" >>confdefs.h
631ef239 3585
212380e3 3586fi
631ef239 3587
7083c021
AC
3588# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3589for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3590 inttypes.h stdint.h unistd.h
3591do :
3592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3593ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3594"
b6d0720c 3595if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
3596 cat >>confdefs.h <<_ACEOF
3597#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
212380e3 3598_ACEOF
631ef239 3599
7083c021 3600fi
631ef239 3601
7083c021
AC
3602done
3603
3604
3605
3606 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
b6d0720c 3607if test "x$ac_cv_header_minix_config_h" = xyes; then :
7083c021 3608 MINIX=yes
212380e3 3609else
7083c021
AC
3610 MINIX=
3611fi
3612
3613
3614 if test "$MINIX" = yes; then
3615
3616$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3617
212380e3 3618
7083c021 3619$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
631ef239
AC
3620
3621
7083c021 3622$as_echo "#define _MINIX 1" >>confdefs.h
631ef239 3623
7083c021 3624 fi
212380e3 3625
212380e3 3626
7083c021
AC
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3628$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
b6d0720c 3629if ${ac_cv_safe_to_define___extensions__+:} false; then :
7083c021 3630 $as_echo_n "(cached) " >&6
212380e3 3631else
7083c021 3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3633/* end confdefs.h. */
7083c021
AC
3634
3635# define __EXTENSIONS__ 1
3636 $ac_includes_default
212380e3
AC
3637int
3638main ()
3639{
7083c021 3640
212380e3
AC
3641 ;
3642 return 0;
3643}
3644_ACEOF
7083c021
AC
3645if ac_fn_c_try_compile "$LINENO"; then :
3646 ac_cv_safe_to_define___extensions__=yes
212380e3 3647else
7083c021 3648 ac_cv_safe_to_define___extensions__=no
212380e3 3649fi
631ef239 3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3651fi
7083c021
AC
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3653$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3654 test $ac_cv_safe_to_define___extensions__ = yes &&
3655 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 3656
7083c021 3657 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
212380e3 3658
7083c021
AC
3659 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3660
3661 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3662
3663 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
212380e3 3664
7083c021
AC
3665
3666
3667
3668OLD_CFLAGS="$CFLAGS"
3669ac_ext=c
3670ac_cpp='$CPP $CPPFLAGS'
3671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674if test -n "$ac_tool_prefix"; then
3675 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3676set dummy ${ac_tool_prefix}gcc; ac_word=$2
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3679if ${ac_cv_prog_CC+:} false; then :
7083c021 3680 $as_echo_n "(cached) " >&6
212380e3 3681else
7083c021
AC
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 3684else
7083c021
AC
3685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686for as_dir in $PATH
3687do
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 break 2
3695 fi
3696done
3697 done
3698IFS=$as_save_IFS
212380e3 3699
212380e3 3700fi
212380e3 3701fi
7083c021
AC
3702CC=$ac_cv_prog_CC
3703if test -n "$CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705$as_echo "$CC" >&6; }
212380e3 3706else
7083c021
AC
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708$as_echo "no" >&6; }
3709fi
212380e3 3710
212380e3
AC
3711
3712fi
7083c021
AC
3713if test -z "$ac_cv_prog_CC"; then
3714 ac_ct_CC=$CC
3715 # Extract the first word of "gcc", so it can be a program name with args.
3716set dummy gcc; ac_word=$2
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3719if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 3720 $as_echo_n "(cached) " >&6
212380e3 3721else
7083c021
AC
3722 if test -n "$ac_ct_CC"; then
3723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3 3724else
7083c021
AC
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH
3727do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3732 ac_cv_prog_ac_ct_CC="gcc"
3733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736done
3737 done
3738IFS=$as_save_IFS
212380e3 3739
212380e3 3740fi
212380e3 3741fi
7083c021
AC
3742ac_ct_CC=$ac_cv_prog_ac_ct_CC
3743if test -n "$ac_ct_CC"; then
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3745$as_echo "$ac_ct_CC" >&6; }
212380e3 3746else
7083c021
AC
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748$as_echo "no" >&6; }
3749fi
212380e3 3750
7083c021
AC
3751 if test "x$ac_ct_CC" = x; then
3752 CC=""
3753 else
3754 case $cross_compiling:$ac_tool_warned in
3755yes:)
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3758ac_tool_warned=yes ;;
631ef239 3759esac
7083c021
AC
3760 CC=$ac_ct_CC
3761 fi
212380e3 3762else
7083c021 3763 CC="$ac_cv_prog_CC"
212380e3 3764fi
631ef239 3765
7083c021
AC
3766if test -z "$CC"; then
3767 if test -n "$ac_tool_prefix"; then
3768 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3769set dummy ${ac_tool_prefix}cc; ac_word=$2
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3772if ${ac_cv_prog_CC+:} false; then :
7083c021 3773 $as_echo_n "(cached) " >&6
212380e3 3774else
7083c021
AC
3775 if test -n "$CC"; then
3776 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 3777else
7083c021
AC
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785 ac_cv_prog_CC="${ac_tool_prefix}cc"
3786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3788 fi
3789done
3790 done
3791IFS=$as_save_IFS
212380e3 3792
212380e3 3793fi
7083c021
AC
3794fi
3795CC=$ac_cv_prog_CC
3796if test -n "$CC"; then
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3798$as_echo "$CC" >&6; }
212380e3 3799else
7083c021
AC
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801$as_echo "no" >&6; }
3802fi
3803
212380e3 3804
7083c021 3805 fi
212380e3 3806fi
7083c021
AC
3807if test -z "$CC"; then
3808 # Extract the first word of "cc", so it can be a program name with args.
3809set dummy cc; ac_word=$2
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3812if ${ac_cv_prog_CC+:} false; then :
7083c021
AC
3813 $as_echo_n "(cached) " >&6
3814else
3815 if test -n "$CC"; then
3816 ac_cv_prog_CC="$CC" # Let the user override the test.
3817else
3818 ac_prog_rejected=no
3819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820for as_dir in $PATH
3821do
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3826 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3827 ac_prog_rejected=yes
3828 continue
3829 fi
3830 ac_cv_prog_CC="cc"
3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 break 2
3833 fi
3834done
3835 done
3836IFS=$as_save_IFS
631ef239 3837
7083c021
AC
3838if test $ac_prog_rejected = yes; then
3839 # We found a bogon in the path, so make sure we never use it.
3840 set dummy $ac_cv_prog_CC
3841 shift
3842 if test $# != 0; then
3843 # We chose a different compiler from the bogus one.
3844 # However, it has the same basename, so the bogon will be chosen
3845 # first if we set CC to just the basename; use the full file name.
3846 shift
3847 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3848 fi
3849fi
3850fi
3851fi
3852CC=$ac_cv_prog_CC
3853if test -n "$CC"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3855$as_echo "$CC" >&6; }
3856else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858$as_echo "no" >&6; }
212380e3 3859fi
631ef239 3860
212380e3 3861
7083c021
AC
3862fi
3863if test -z "$CC"; then
3864 if test -n "$ac_tool_prefix"; then
3865 for ac_prog in cl.exe
3866 do
3867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3868set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3871if ${ac_cv_prog_CC+:} false; then :
7083c021 3872 $as_echo_n "(cached) " >&6
212380e3 3873else
7083c021
AC
3874 if test -n "$CC"; then
3875 ac_cv_prog_CC="$CC" # Let the user override the test.
3876else
3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH
3879do
3880 IFS=$as_save_IFS
3881 test -z "$as_dir" && as_dir=.
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886 break 2
3887 fi
3888done
3889 done
3890IFS=$as_save_IFS
212380e3 3891
212380e3 3892fi
7083c021
AC
3893fi
3894CC=$ac_cv_prog_CC
3895if test -n "$CC"; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897$as_echo "$CC" >&6; }
212380e3 3898else
7083c021
AC
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
3901fi
212380e3 3902
212380e3 3903
7083c021
AC
3904 test -n "$CC" && break
3905 done
3906fi
3907if test -z "$CC"; then
3908 ac_ct_CC=$CC
3909 for ac_prog in cl.exe
3910do
3911 # Extract the first word of "$ac_prog", so it can be a program name with args.
3912set dummy $ac_prog; ac_word=$2
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3915if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 3916 $as_echo_n "(cached) " >&6
212380e3 3917else
7083c021
AC
3918 if test -n "$ac_ct_CC"; then
3919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3920else
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_prog_ac_ct_CC="$ac_prog"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932done
3933 done
3934IFS=$as_save_IFS
212380e3 3935
212380e3
AC
3936fi
3937fi
7083c021
AC
3938ac_ct_CC=$ac_cv_prog_ac_ct_CC
3939if test -n "$ac_ct_CC"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3941$as_echo "$ac_ct_CC" >&6; }
3942else
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944$as_echo "no" >&6; }
212380e3 3945fi
631ef239
AC
3946
3947
7083c021
AC
3948 test -n "$ac_ct_CC" && break
3949done
631ef239 3950
7083c021
AC
3951 if test "x$ac_ct_CC" = x; then
3952 CC=""
3953 else
3954 case $cross_compiling:$ac_tool_warned in
3955yes:)
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3958ac_tool_warned=yes ;;
3959esac
3960 CC=$ac_ct_CC
3961 fi
3962fi
212380e3 3963
7083c021 3964fi
212380e3 3965
7083c021
AC
3966
3967test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
3969as_fn_error $? "no acceptable C compiler found in \$PATH
3970See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
3971
3972# Provide some information about the compiler.
3973$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3974set X $ac_compile
3975ac_compiler=$2
3976for ac_option in --version -v -V -qversion; do
3977 { { ac_try="$ac_compiler $ac_option >&5"
631ef239
AC
3978case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981esac
7083c021
AC
3982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983$as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
212380e3 3985 ac_status=$?
7083c021
AC
3986 if test -s conftest.err; then
3987 sed '10a\
3988... rest of stderr output deleted ...
3989 10q' conftest.err >conftest.er1
3990 cat conftest.er1 >&5
7083c021 3991 fi
6fb6bd15 3992 rm -f conftest.er1 conftest.err
7083c021
AC
3993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3994 test $ac_status = 0; }
3995done
212380e3 3996
7083c021
AC
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3998$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b6d0720c 3999if ${ac_cv_c_compiler_gnu+:} false; then :
7083c021 4000 $as_echo_n "(cached) " >&6
212380e3 4001else
7083c021 4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4003/* end confdefs.h. */
7083c021 4004
212380e3
AC
4005int
4006main ()
4007{
7083c021
AC
4008#ifndef __GNUC__
4009 choke me
4010#endif
212380e3
AC
4011
4012 ;
4013 return 0;
4014}
4015_ACEOF
7083c021
AC
4016if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_compiler_gnu=yes
4018else
4019 ac_compiler_gnu=no
4020fi
4021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022ac_cv_c_compiler_gnu=$ac_compiler_gnu
4023
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4026$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4027if test $ac_compiler_gnu = yes; then
4028 GCC=yes
4029else
4030 GCC=
4031fi
4032ac_test_CFLAGS=${CFLAGS+set}
4033ac_save_CFLAGS=$CFLAGS
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4035$as_echo_n "checking whether $CC accepts -g... " >&6; }
b6d0720c 4036if ${ac_cv_prog_cc_g+:} false; then :
7083c021
AC
4037 $as_echo_n "(cached) " >&6
4038else
4039 ac_save_c_werror_flag=$ac_c_werror_flag
4040 ac_c_werror_flag=yes
4041 ac_cv_prog_cc_g=no
4042 CFLAGS="-g"
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4044/* end confdefs.h. */
7083c021 4045
212380e3
AC
4046int
4047main ()
4048{
212380e3
AC
4049
4050 ;
4051 return 0;
4052}
4053_ACEOF
7083c021
AC
4054if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_cv_prog_cc_g=yes
212380e3 4056else
7083c021
AC
4057 CFLAGS=""
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4059/* end confdefs.h. */
7083c021 4060
212380e3
AC
4061int
4062main ()
4063{
212380e3
AC
4064
4065 ;
4066 return 0;
4067}
4068_ACEOF
7083c021
AC
4069if ac_fn_c_try_compile "$LINENO"; then :
4070
4071else
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4073 CFLAGS="-g"
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4075/* end confdefs.h. */
7083c021 4076
212380e3
AC
4077int
4078main ()
4079{
212380e3
AC
4080
4081 ;
4082 return 0;
4083}
4084_ACEOF
7083c021
AC
4085if ac_fn_c_try_compile "$LINENO"; then :
4086 ac_cv_prog_cc_g=yes
212380e3 4087fi
631ef239 4088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4089fi
631ef239 4090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4091fi
631ef239 4092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
4093 ac_c_werror_flag=$ac_save_c_werror_flag
4094fi
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4096$as_echo "$ac_cv_prog_cc_g" >&6; }
4097if test "$ac_test_CFLAGS" = set; then
4098 CFLAGS=$ac_save_CFLAGS
4099elif test $ac_cv_prog_cc_g = yes; then
4100 if test "$GCC" = yes; then
4101 CFLAGS="-g -O2"
4102 else
4103 CFLAGS="-g"
4104 fi
4105else
4106 if test "$GCC" = yes; then
4107 CFLAGS="-O2"
4108 else
4109 CFLAGS=
4110 fi
4111fi
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4113$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b6d0720c 4114if ${ac_cv_prog_cc_c89+:} false; then :
7083c021
AC
4115 $as_echo_n "(cached) " >&6
4116else
4117 ac_cv_prog_cc_c89=no
4118ac_save_CC=$CC
4119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4120/* end confdefs.h. */
7083c021
AC
4121#include <stdarg.h>
4122#include <stdio.h>
4123#include <sys/types.h>
4124#include <sys/stat.h>
4125/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4126struct buf { int x; };
4127FILE * (*rcsopen) (struct buf *, struct stat *, int);
4128static char *e (p, i)
4129 char **p;
4130 int i;
4131{
4132 return p[i];
4133}
4134static char *f (char * (*g) (char **, int), char **p, ...)
4135{
4136 char *s;
4137 va_list v;
4138 va_start (v,p);
4139 s = g (p, va_arg (v,int));
4140 va_end (v);
4141 return s;
4142}
4143
4144/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4145 function prototypes and stuff, but not '\xHH' hex character constants.
4146 These don't provoke an error unfortunately, instead are silently treated
4147 as 'x'. The following induces an error, until -std is added to get
4148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4149 array size at least. It's necessary to write '\x00'==0 to get something
4150 that's true only with -std. */
4151int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4152
4153/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4154 inside strings and character constants. */
4155#define FOO(x) 'x'
4156int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4157
4158int test (int i, double x);
4159struct s1 {int (*f) (int a);};
4160struct s2 {int (*f) (double a);};
4161int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4162int argc;
4163char **argv;
212380e3
AC
4164int
4165main ()
4166{
7083c021 4167return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3
AC
4168 ;
4169 return 0;
4170}
4171_ACEOF
7083c021
AC
4172for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4174do
4175 CC="$ac_save_CC $ac_arg"
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_c89=$ac_arg
4178fi
4179rm -f core conftest.err conftest.$ac_objext
4180 test "x$ac_cv_prog_cc_c89" != "xno" && break
4181done
4182rm -f conftest.$ac_ext
4183CC=$ac_save_CC
4184
4185fi
4186# AC_CACHE_VAL
4187case "x$ac_cv_prog_cc_c89" in
4188 x)
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4190$as_echo "none needed" >&6; } ;;
4191 xno)
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4193$as_echo "unsupported" >&6; } ;;
4194 *)
4195 CC="$CC $ac_cv_prog_cc_c89"
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4197$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 4198esac
7083c021 4199if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 4200
212380e3 4201fi
631ef239 4202
7083c021
AC
4203ac_ext=c
4204ac_cpp='$CPP $CPPFLAGS'
4205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207ac_compiler_gnu=$ac_cv_c_compiler_gnu
4208
4209ac_ext=c
4210ac_cpp='$CPP $CPPFLAGS'
4211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214
4215
4216CFLAGS="$OLD_CFLAGS"
4217
4218ac_aux_dir=
4219for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
b6d0720c
AC
4220 if test -f "$ac_dir/install-sh"; then
4221 ac_aux_dir=$ac_dir
4222 ac_install_sh="$ac_aux_dir/install-sh -c"
4223 break
4224 elif test -f "$ac_dir/install.sh"; then
4225 ac_aux_dir=$ac_dir
4226 ac_install_sh="$ac_aux_dir/install.sh -c"
4227 break
4228 elif test -f "$ac_dir/shtool"; then
4229 ac_aux_dir=$ac_dir
4230 ac_install_sh="$ac_aux_dir/shtool install -c"
4231 break
4232 fi
212380e3 4233done
7083c021 4234if test -z "$ac_aux_dir"; then
b6d0720c 4235 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
7083c021 4236fi
212380e3 4237
7083c021
AC
4238# These three variables are undocumented and unsupported,
4239# and are intended to be withdrawn in a future Autoconf release.
4240# They can cause serious problems if a builder's source tree is in a directory
4241# whose full name contains unusual characters.
4242ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4243ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4244ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
212380e3 4245
7083c021
AC
4246
4247
4248
4249subdirs="$subdirs libratbox"
4250
4251
4252
4253if test "$ac_cv_c_compiler_gnu" != yes; then
4254
4255SGS=no
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4257$as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4258case `$CC -version 2>&1` in
4259*TenDRA*)
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4261$as_echo "yes, TenDRA" >&6; }
4262 IRC_CFLAGS=""
4263 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4264 SGS=yes
4265 TenDRA=yes
4266;;
4267*MIPSpro*)
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4269$as_echo "yes, MIPSpro" >&6; }
4270 MIPSpro=yes
4271 SGS=yes
4272;;
4273*)
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275$as_echo "no" >&6; }
4276 TenDRA=no
4277 MIPSpro=no
4278;;
631ef239 4279esac
7083c021
AC
4280
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4282$as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4283case `$CC -V 2>&1` in
4284*Sun*WorkShop* | *Forte*Developer*)
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4286$as_echo "Sun Workshop/Forte" >&6; }
4287 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4288 SunWorkShop=yes
4289 SGS=yes
4290;;
4291*Tru64*)
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4293$as_echo "Tru64 cc" >&6; }
4294 IRC_CFLAGS="-O2"
4295 CPPFLAGS="-I/usr/local/include"
4296 Tru=yes
4297;;
4298*HP*ANSI*)
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4300$as_echo "HPUX cc" >&6; }
4301 HPUX=yes
4302 IRC_CFLAGS="+e"
4303;;
4304*)
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306$as_echo "no" >&6; }
4307;;
631ef239 4308esac
212380e3 4309
212380e3 4310fi
631ef239 4311
7083c021
AC
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4313$as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4314OSNAME=`uname -s`
4315case "$OSNAME" in
4316 HP-UX*)
631ef239 4317
7083c021
AC
4318 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4320$as_echo "assuming old HPUX with its own cc" >&6; }
4321 IRC_CFLAGS="$IRC_CFLAGS +e"
4322 HPUX=yes
4323 else
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4325$as_echo "already using newer HPUX" >&6; }
4326 fi
4327 ;;
4328 SunOS*)
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4330$as_echo "SunOS or Solaris" >&6; }
212380e3 4331
7083c021 4332$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 4333
7083c021
AC
4334 SUN=yes
4335 ;;
4336 AIX*)
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4338$as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4339 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4340 ;;
4341 *)
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343$as_echo "no" >&6; }
4344 ;;
631ef239 4345esac
212380e3 4346
7083c021
AC
4347if test "$ac_cv_c_compiler_gnu" = yes; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4349$as_echo_n "checking if $CC is Apple GCC... " >&6; }
4350
4351 case `$CC -v 2>&1 | tail -n 1` in
4352 *Apple*)
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4354$as_echo "yes" >&6; }
4355 AppleGCC=yes
4356 ;;
4357 *)
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359$as_echo "no" >&6; }
4360 AppleGCC=no
4361 ;;
4362 esac
4363
4364 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
212380e3 4365fi
631ef239 4366
7083c021
AC
4367if test "$ac_cv_prog_cc_g" = yes; then
4368 if test "$Tru" = yes; then
4369 IRC_CFLAGS="$IRC_CFLAGS -g3"
4370 else
4371 IRC_CFLAGS="$IRC_CFLAGS -g"
4372 fi
212380e3 4373fi
212380e3 4374
7083c021
AC
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4376$as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4377if test "$SGS" = "yes"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4379$as_echo "yes" >&6; }
212380e3 4380else
7083c021
AC
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382$as_echo "no" >&6; }
4383fi
212380e3 4384
7083c021
AC
4385# Extract the first word of "mkdep", so it can be a program name with args.
4386set dummy mkdep; ac_word=$2
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4389if ${ac_cv_path_MKDEP+:} false; then :
7083c021
AC
4390 $as_echo_n "(cached) " >&6
4391else
4392 case $MKDEP in
4393 [\\/]* | ?:[\\/]*)
4394 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4395 ;;
4396 *)
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4407 fi
4408done
4409 done
4410IFS=$as_save_IFS
212380e3 4411
7083c021 4412 ;;
631ef239 4413esac
7083c021
AC
4414fi
4415MKDEP=$ac_cv_path_MKDEP
4416if test -n "$MKDEP"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4418$as_echo "$MKDEP" >&6; }
212380e3 4419else
7083c021
AC
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421$as_echo "no" >&6; }
212380e3 4422fi
631ef239 4423
7083c021
AC
4424
4425# Extract the first word of "makedepend", so it can be a program name with args.
4426set dummy makedepend; ac_word=$2
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4429if ${ac_cv_path_MAKEDEPEND+:} false; then :
7083c021
AC
4430 $as_echo_n "(cached) " >&6
4431else
4432 case $MAKEDEPEND in
4433 [\\/]* | ?:[\\/]*)
4434 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4435 ;;
4436 *)
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448done
212380e3 4449 done
7083c021
AC
4450IFS=$as_save_IFS
4451
4452 ;;
4453esac
4454fi
4455MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4456if test -n "$MAKEDEPEND"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4458$as_echo "$MAKEDEPEND" >&6; }
212380e3 4459else
7083c021
AC
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461$as_echo "no" >&6; }
4462fi
212380e3 4463
212380e3 4464
212380e3 4465
7083c021
AC
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4467$as_echo_n "checking how to generate dependency info... " >&6; }
4468
4469STDOUT="> .depend"
4470
4471if test "$ac_cv_c_compiler_gnu" = yes; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4473$as_echo "gcc -MM" >&6; }
4474 MKDEP="$CC -MM"
4475elif test ! -z "$MKDEP"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4477$as_echo "mkdep" >&6; }
4478
4479 if test -z "$Tru"; then
4480 STDOUT=""
4481 else
4482 STDOUT=" 2> /dev/null"
4483 fi
4484elif test "$SunWorkShop" = yes; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4486$as_echo "$CC -xM" >&6; }
4487 MKDEP="$CC -xM"
4488 STDOUT="> .depend 2> /dev/null"
4489elif test ! -z "$MAKEDEPEND"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4491$as_echo "makedepend" >&6; }
4492 MKDEP="$MAKEDEPEND -f-"
212380e3 4493else
7083c021
AC
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4495$as_echo "nothing suitable.. forget it!" >&6; }
4496 MKDEP=":"
212380e3 4497fi
631ef239 4498
7083c021
AC
4499
4500
4501
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4503$as_echo_n "checking for /dev/null... " >&6; }
4504if test -c /dev/null ; then
4505
4506$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4509$as_echo "yes" >&6; }
212380e3 4510else
212380e3 4511
7083c021
AC
4512$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4513
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4515$as_echo "no - using devnull.log" >&6; }
212380e3 4516fi
631ef239 4517
7083c021
AC
4518if test ! -z "$CFLAGS"; then
4519 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
212380e3 4520fi
631ef239 4521
7083c021
AC
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4523$as_echo_n "checking for library containing strerror... " >&6; }
b6d0720c 4524if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
4525 $as_echo_n "(cached) " >&6
4526else
4527 ac_func_search_save_LIBS=$LIBS
4528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4529/* end confdefs.h. */
7083c021
AC
4530
4531/* Override any GCC internal prototype to avoid an error.
4532 Use char because int might match the return type of a GCC
4533 builtin and then its argument prototype would still apply. */
4534#ifdef __cplusplus
4535extern "C"
4536#endif
4537char strerror ();
212380e3
AC
4538int
4539main ()
4540{
7083c021 4541return strerror ();
212380e3
AC
4542 ;
4543 return 0;
4544}
4545_ACEOF
7083c021
AC
4546for ac_lib in '' cposix; do
4547 if test -z "$ac_lib"; then
4548 ac_res="none required"
4549 else
4550 ac_res=-l$ac_lib
4551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4552 fi
4553 if ac_fn_c_try_link "$LINENO"; then :
4554 ac_cv_search_strerror=$ac_res
4555fi
4556rm -f core conftest.err conftest.$ac_objext \
4557 conftest$ac_exeext
b6d0720c 4558 if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
4559 break
4560fi
4561done
b6d0720c 4562if ${ac_cv_search_strerror+:} false; then :
7083c021 4563
212380e3 4564else
7083c021
AC
4565 ac_cv_search_strerror=no
4566fi
4567rm conftest.$ac_ext
4568LIBS=$ac_func_search_save_LIBS
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4571$as_echo "$ac_cv_search_strerror" >&6; }
4572ac_res=$ac_cv_search_strerror
4573if test "$ac_res" != no; then :
4574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 4575
212380e3 4576fi
631ef239 4577
7083c021
AC
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4579$as_echo_n "checking for inline... " >&6; }
b6d0720c 4580if ${ac_cv_c_inline+:} false; then :
7083c021
AC
4581 $as_echo_n "(cached) " >&6
4582else
4583 ac_cv_c_inline=no
4584for ac_kw in inline __inline__ __inline; do
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h. */
4587#ifndef __cplusplus
4588typedef int foo_t;
4589static $ac_kw foo_t static_foo () {return 0; }
4590$ac_kw foo_t foo () {return 0; }
4591#endif
4592
4593_ACEOF
4594if ac_fn_c_try_compile "$LINENO"; then :
4595 ac_cv_c_inline=$ac_kw
4596fi
631ef239 4597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021 4598 test "$ac_cv_c_inline" != no && break
212380e3 4599done
7083c021
AC
4600
4601fi
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4603$as_echo "$ac_cv_c_inline" >&6; }
4604
4605case $ac_cv_c_inline in
4606 inline | yes) ;;
4607 *)
4608 case $ac_cv_c_inline in
4609 no) ac_val=;;
4610 *) ac_val=$ac_cv_c_inline;;
4611 esac
4612 cat >>confdefs.h <<_ACEOF
4613#ifndef __cplusplus
4614#define inline $ac_val
4615#endif
4616_ACEOF
4617 ;;
212380e3 4618esac
7083c021
AC
4619
4620if test $ac_cv_c_compiler_gnu = yes; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4622$as_echo_n "checking whether $CC needs -traditional... " >&6; }
b6d0720c 4623if ${ac_cv_prog_gcc_traditional+:} false; then :
7083c021 4624 $as_echo_n "(cached) " >&6
212380e3 4625else
7083c021
AC
4626 ac_pattern="Autoconf.*'x'"
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628/* end confdefs.h. */
4629#include <sgtty.h>
4630Autoconf TIOCGETP
212380e3 4631_ACEOF
7083c021
AC
4632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4634 ac_cv_prog_gcc_traditional=yes
4635else
4636 ac_cv_prog_gcc_traditional=no
4637fi
4638rm -f conftest*
4639
4640
4641 if test $ac_cv_prog_gcc_traditional = no; then
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4643/* end confdefs.h. */
7083c021
AC
4644#include <termio.h>
4645Autoconf TCGETA
4646_ACEOF
4647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4648 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4649 ac_cv_prog_gcc_traditional=yes
4650fi
4651rm -f conftest*
212380e3 4652
7083c021
AC
4653 fi
4654fi
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4656$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4657 if test $ac_cv_prog_gcc_traditional = yes; then
4658 CC="$CC -traditional"
4659 fi
4660fi
212380e3 4661
7083c021
AC
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4663$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4664set x ${MAKE-make}
4665ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b6d0720c 4666if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7083c021
AC
4667 $as_echo_n "(cached) " >&6
4668else
4669 cat >conftest.make <<\_ACEOF
4670SHELL = /bin/sh
4671all:
4672 @echo '@@@%%%=$(MAKE)=@@@%%%'
212380e3 4673_ACEOF
b6d0720c 4674# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7083c021
AC
4675case `${MAKE-make} -f conftest.make 2>/dev/null` in
4676 *@@@%%%=?*=@@@%%%*)
4677 eval ac_cv_prog_make_${ac_make}_set=yes;;
4678 *)
4679 eval ac_cv_prog_make_${ac_make}_set=no;;
631ef239 4680esac
7083c021
AC
4681rm -f conftest.make
4682fi
4683if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4685$as_echo "yes" >&6; }
4686 SET_MAKE=
4687else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689$as_echo "no" >&6; }
4690 SET_MAKE="MAKE=${MAKE-make}"
4691fi
4692
4693# Find a good install program. We prefer a C program (faster),
4694# so one script is as good as another. But avoid the broken or
4695# incompatible versions:
4696# SysV /etc/install, /usr/sbin/install
4697# SunOS /usr/etc/install
4698# IRIX /sbin/install
4699# AIX /bin/install
4700# AmigaOS /C/install, which installs bootblocks on floppy discs
4701# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4702# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4703# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4704# OS/2's system install, which has a completely different semantic
4705# ./install, which can be erroneously created by make from ./install.sh.
4706# Reject install programs that cannot install multiple files.
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4708$as_echo_n "checking for a BSD-compatible install... " >&6; }
4709if test -z "$INSTALL"; then
b6d0720c 4710if ${ac_cv_path_install+:} false; then :
7083c021
AC
4711 $as_echo_n "(cached) " >&6
4712else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714for as_dir in $PATH
4715do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 # Account for people who put trailing slashes in PATH elements.
4719case $as_dir/ in #((
4720 ./ | .// | /[cC]/* | \
4721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4722 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4723 /usr/ucb/* ) ;;
4724 *)
4725 # OSF1 and SCO ODT 3.0 have their own names for install.
4726 # Don't use installbsd from OSF since it installs stuff as root
4727 # by default.
4728 for ac_prog in ginstall scoinst install; do
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4731 if test $ac_prog = install &&
4732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4733 # AIX install. It has an incompatible calling convention.
4734 :
4735 elif test $ac_prog = install &&
4736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4737 # program-specific install script used by HP pwplus--don't use.
4738 :
4739 else
4740 rm -rf conftest.one conftest.two conftest.dir
4741 echo one > conftest.one
4742 echo two > conftest.two
4743 mkdir conftest.dir
4744 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4745 test -s conftest.one && test -s conftest.two &&
4746 test -s conftest.dir/conftest.one &&
4747 test -s conftest.dir/conftest.two
4748 then
4749 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4750 break 3
4751 fi
4752 fi
4753 fi
4754 done
4755 done
4756 ;;
631ef239 4757esac
7083c021
AC
4758
4759 done
4760IFS=$as_save_IFS
4761
4762rm -rf conftest.one conftest.two conftest.dir
4763
4764fi
4765 if test "${ac_cv_path_install+set}" = set; then
4766 INSTALL=$ac_cv_path_install
4767 else
4768 # As a last resort, use the slow shell script. Don't cache a
4769 # value for INSTALL within a source directory, because that will
4770 # break other packages using the cache if that directory is
4771 # removed, or if the value is a relative name.
4772 INSTALL=$ac_install_sh
4773 fi
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4776$as_echo "$INSTALL" >&6; }
4777
4778# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4779# It thinks the first close brace ends the variable substitution.
4780test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4781
4782test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4783
4784test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4785
4786# Extract the first word of "rm", so it can be a program name with args.
4787set dummy rm; ac_word=$2
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4790if ${ac_cv_path_RM+:} false; then :
7083c021 4791 $as_echo_n "(cached) " >&6
212380e3 4792else
7083c021
AC
4793 case $RM in
4794 [\\/]* | ?:[\\/]*)
4795 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4796 ;;
4797 *)
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 break 2
4808 fi
4809done
4810 done
4811IFS=$as_save_IFS
212380e3 4812
7083c021
AC
4813 ;;
4814esac
212380e3 4815fi
7083c021
AC
4816RM=$ac_cv_path_RM
4817if test -n "$RM"; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4819$as_echo "$RM" >&6; }
4820else
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822$as_echo "no" >&6; }
212380e3 4823fi
631ef239
AC
4824
4825
7083c021
AC
4826# Extract the first word of "cp", so it can be a program name with args.
4827set dummy cp; ac_word=$2
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4830if ${ac_cv_path_CP+:} false; then :
7083c021
AC
4831 $as_echo_n "(cached) " >&6
4832else
4833 case $CP in
4834 [\\/]* | ?:[\\/]*)
4835 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4836 ;;
4837 *)
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4848 fi
4849done
4850 done
4851IFS=$as_save_IFS
631ef239 4852
7083c021
AC
4853 ;;
4854esac
4855fi
4856CP=$ac_cv_path_CP
4857if test -n "$CP"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4859$as_echo "$CP" >&6; }
4860else
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862$as_echo "no" >&6; }
4863fi
212380e3
AC
4864
4865
7083c021
AC
4866# Extract the first word of "mv", so it can be a program name with args.
4867set dummy mv; ac_word=$2
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4870if ${ac_cv_path_MV+:} false; then :
7083c021 4871 $as_echo_n "(cached) " >&6
212380e3 4872else
7083c021
AC
4873 case $MV in
4874 [\\/]* | ?:[\\/]*)
4875 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4876 ;;
4877 *)
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879for as_dir in $PATH
4880do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4888 fi
4889done
4890 done
4891IFS=$as_save_IFS
4892
4893 ;;
631ef239 4894esac
7083c021
AC
4895fi
4896MV=$ac_cv_path_MV
4897if test -n "$MV"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4899$as_echo "$MV" >&6; }
212380e3 4900else
7083c021
AC
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902$as_echo "no" >&6; }
212380e3 4903fi
631ef239 4904
212380e3 4905
7083c021
AC
4906# Extract the first word of "ln", so it can be a program name with args.
4907set dummy ln; ac_word=$2
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4910if ${ac_cv_path_LN+:} false; then :
7083c021 4911 $as_echo_n "(cached) " >&6
212380e3 4912else
7083c021
AC
4913 case $LN in
4914 [\\/]* | ?:[\\/]*)
4915 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4916 ;;
4917 *)
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919for as_dir in $PATH
4920do
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4928 fi
4929done
4930 done
4931IFS=$as_save_IFS
212380e3 4932
7083c021 4933 ;;
631ef239 4934esac
7083c021
AC
4935fi
4936LN=$ac_cv_path_LN
4937if test -n "$LN"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4939$as_echo "$LN" >&6; }
212380e3 4940else
7083c021
AC
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942$as_echo "no" >&6; }
212380e3 4943fi
631ef239 4944
7083c021
AC
4945
4946# Extract the first word of "sed", so it can be a program name with args.
4947set dummy sed; ac_word=$2
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4950if ${ac_cv_path_SED+:} false; then :
7083c021
AC
4951 $as_echo_n "(cached) " >&6
4952else
4953 case $SED in
4954 [\\/]* | ?:[\\/]*)
4955 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4956 ;;
4957 *)
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959for as_dir in $PATH
4960do
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 break 2
4968 fi
4969done
212380e3 4970 done
7083c021
AC
4971IFS=$as_save_IFS
4972
4973 ;;
4974esac
4975fi
4976SED=$ac_cv_path_SED
4977if test -n "$SED"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4979$as_echo "$SED" >&6; }
212380e3 4980else
7083c021
AC
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982$as_echo "no" >&6; }
4983fi
212380e3 4984
212380e3 4985
7083c021
AC
4986# Extract the first word of "ar", so it can be a program name with args.
4987set dummy ar; ac_word=$2
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4990if ${ac_cv_path_AR+:} false; then :
7083c021
AC
4991 $as_echo_n "(cached) " >&6
4992else
4993 case $AR in
4994 [\\/]* | ?:[\\/]*)
4995 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4996 ;;
4997 *)
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999for as_dir in $PATH
5000do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5008 fi
5009done
5010 done
5011IFS=$as_save_IFS
212380e3 5012
7083c021 5013 ;;
631ef239 5014esac
7083c021
AC
5015fi
5016AR=$ac_cv_path_AR
5017if test -n "$AR"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5019$as_echo "$AR" >&6; }
212380e3 5020else
7083c021
AC
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022$as_echo "no" >&6; }
212380e3 5023fi
631ef239 5024
7083c021
AC
5025
5026# Extract the first word of "ld", so it can be a program name with args.
5027set dummy ld; ac_word=$2
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5030if ${ac_cv_path_LD+:} false; then :
7083c021 5031 $as_echo_n "(cached) " >&6
212380e3 5032else
7083c021
AC
5033 case $LD in
5034 [\\/]* | ?:[\\/]*)
5035 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5036 ;;
5037 *)
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH
5040do
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5048 fi
5049done
5050 done
5051IFS=$as_save_IFS
212380e3 5052
7083c021
AC
5053 ;;
5054esac
212380e3 5055fi
7083c021
AC
5056LD=$ac_cv_path_LD
5057if test -n "$LD"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5059$as_echo "$LD" >&6; }
5060else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062$as_echo "no" >&6; }
212380e3 5063fi
631ef239 5064
212380e3 5065
7083c021
AC
5066# Extract the first word of "ranlib", so it can be a program name with args.
5067set dummy ranlib; ac_word=$2
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5070if ${ac_cv_path_RANLIB+:} false; then :
7083c021 5071 $as_echo_n "(cached) " >&6
212380e3 5072else
7083c021
AC
5073 case $RANLIB in
5074 [\\/]* | ?:[\\/]*)
5075 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5076 ;;
5077 *)
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5088 fi
5089done
5090 done
5091IFS=$as_save_IFS
212380e3 5092
7083c021
AC
5093 ;;
5094esac
5095fi
5096RANLIB=$ac_cv_path_RANLIB
5097if test -n "$RANLIB"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5099$as_echo "$RANLIB" >&6; }
5100else
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102$as_echo "no" >&6; }
212380e3 5103fi
631ef239 5104
7083c021
AC
5105
5106# Extract the first word of "touch", so it can be a program name with args.
5107set dummy touch; ac_word=$2
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5110if ${ac_cv_path_TOUCH+:} false; then :
7083c021
AC
5111 $as_echo_n "(cached) " >&6
5112else
5113 case $TOUCH in
5114 [\\/]* | ?:[\\/]*)
5115 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5116 ;;
5117 *)
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119for as_dir in $PATH
5120do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5128 fi
212380e3 5129done
7083c021
AC
5130 done
5131IFS=$as_save_IFS
5132
5133 ;;
212380e3 5134esac
7083c021
AC
5135fi
5136TOUCH=$ac_cv_path_TOUCH
5137if test -n "$TOUCH"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5139$as_echo "$TOUCH" >&6; }
212380e3 5140else
7083c021
AC
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142$as_echo "no" >&6; }
5143fi
212380e3 5144
212380e3 5145
7083c021
AC
5146
5147for ac_prog in 'bison -y' byacc
5148do
5149 # Extract the first word of "$ac_prog", so it can be a program name with args.
5150set dummy $ac_prog; ac_word=$2
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5153if ${ac_cv_prog_YACC+:} false; then :
7083c021 5154 $as_echo_n "(cached) " >&6
212380e3 5155else
7083c021
AC
5156 if test -n "$YACC"; then
5157 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5158else
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_prog_YACC="$ac_prog"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170done
5171 done
5172IFS=$as_save_IFS
212380e3 5173
212380e3
AC
5174fi
5175fi
7083c021
AC
5176YACC=$ac_cv_prog_YACC
5177if test -n "$YACC"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5179$as_echo "$YACC" >&6; }
5180else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
212380e3 5183fi
631ef239
AC
5184
5185
7083c021
AC
5186 test -n "$YACC" && break
5187done
5188test -n "$YACC" || YACC="yacc"
212380e3
AC
5189
5190
7083c021 5191if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
b6d0720c 5192 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
7083c021 5193fi
212380e3 5194
7083c021
AC
5195for ac_prog in flex lex
5196do
5197 # Extract the first word of "$ac_prog", so it can be a program name with args.
5198set dummy $ac_prog; ac_word=$2
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5201if ${ac_cv_prog_LEX+:} false; then :
7083c021 5202 $as_echo_n "(cached) " >&6
212380e3 5203else
7083c021
AC
5204 if test -n "$LEX"; then
5205 ac_cv_prog_LEX="$LEX" # Let the user override the test.
212380e3 5206else
7083c021
AC
5207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208for as_dir in $PATH
5209do
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5214 ac_cv_prog_LEX="$ac_prog"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5217 fi
631ef239 5218done
7083c021
AC
5219 done
5220IFS=$as_save_IFS
631ef239 5221
7083c021
AC
5222fi
5223fi
5224LEX=$ac_cv_prog_LEX
5225if test -n "$LEX"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5227$as_echo "$LEX" >&6; }
631ef239 5228else
7083c021
AC
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230$as_echo "no" >&6; }
631ef239
AC
5231fi
5232
5233
7083c021
AC
5234 test -n "$LEX" && break
5235done
5236test -n "$LEX" || LEX=":"
212380e3 5237
7083c021
AC
5238if test "x$LEX" != "x:"; then
5239 cat >conftest.l <<_ACEOF
5240%%
5241a { ECHO; }
5242b { REJECT; }
5243c { yymore (); }
5244d { yyless (1); }
5245e { yyless (input () != 0); }
5246f { unput (yytext[0]); }
5247. { BEGIN INITIAL; }
5248%%
5249#ifdef YYTEXT_POINTER
5250extern char *yytext;
212380e3 5251#endif
212380e3 5252int
7083c021 5253main (void)
212380e3 5254{
7083c021 5255 return ! yylex () + ! yywrap ();
212380e3
AC
5256}
5257_ACEOF
7083c021 5258{ { ac_try="$LEX conftest.l"
631ef239
AC
5259case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262esac
7083c021
AC
5263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5264$as_echo "$ac_try_echo"; } >&5
5265 (eval "$LEX conftest.l") 2>&5
212380e3 5266 ac_status=$?
7083c021
AC
5267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5268 test $ac_status = 0; }
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5270$as_echo_n "checking lex output file root... " >&6; }
b6d0720c 5271if ${ac_cv_prog_lex_root+:} false; then :
7083c021 5272 $as_echo_n "(cached) " >&6
212380e3 5273else
212380e3 5274
7083c021
AC
5275if test -f lex.yy.c; then
5276 ac_cv_prog_lex_root=lex.yy
5277elif test -f lexyy.c; then
5278 ac_cv_prog_lex_root=lexyy
5279else
b6d0720c 5280 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7083c021
AC
5281fi
5282fi
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5284$as_echo "$ac_cv_prog_lex_root" >&6; }
5285LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5286
5287if test -z "${LEXLIB+set}"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5289$as_echo_n "checking lex library... " >&6; }
b6d0720c 5290if ${ac_cv_lib_lex+:} false; then :
7083c021
AC
5291 $as_echo_n "(cached) " >&6
5292else
631ef239 5293
7083c021
AC
5294 ac_save_LIBS=$LIBS
5295 ac_cv_lib_lex='none needed'
5296 for ac_lib in '' -lfl -ll; do
5297 LIBS="$ac_lib $ac_save_LIBS"
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299/* end confdefs.h. */
5300`cat $LEX_OUTPUT_ROOT.c`
5301_ACEOF
5302if ac_fn_c_try_link "$LINENO"; then :
5303 ac_cv_lib_lex=$ac_lib
212380e3 5304fi
7083c021
AC
5305rm -f core conftest.err conftest.$ac_objext \
5306 conftest$ac_exeext conftest.$ac_ext
5307 test "$ac_cv_lib_lex" != 'none needed' && break
5308 done
5309 LIBS=$ac_save_LIBS
631ef239 5310
631ef239 5311fi
7083c021
AC
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5313$as_echo "$ac_cv_lib_lex" >&6; }
5314 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5315fi
5316
5317
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5319$as_echo_n "checking whether yytext is a pointer... " >&6; }
b6d0720c 5320if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7083c021 5321 $as_echo_n "(cached) " >&6
631ef239 5322else
7083c021
AC
5323 # POSIX says lex can declare yytext either as a pointer or an array; the
5324# default is implementation-dependent. Figure out which it is, since
5325# not all implementations provide the %pointer and %array declarations.
5326ac_cv_prog_lex_yytext_pointer=no
5327ac_save_LIBS=$LIBS
5328LIBS="$LEXLIB $ac_save_LIBS"
5329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h. */
b6d0720c
AC
5331
5332 #define YYTEXT_POINTER 1
7083c021
AC
5333`cat $LEX_OUTPUT_ROOT.c`
5334_ACEOF
5335if ac_fn_c_try_link "$LINENO"; then :
5336 ac_cv_prog_lex_yytext_pointer=yes
212380e3 5337fi
7083c021
AC
5338rm -f core conftest.err conftest.$ac_objext \
5339 conftest$ac_exeext conftest.$ac_ext
5340LIBS=$ac_save_LIBS
5341
212380e3 5342fi
7083c021
AC
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5344$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5345if test $ac_cv_prog_lex_yytext_pointer = yes; then
212380e3 5346
7083c021
AC
5347$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5348
5349fi
5350rm -f conftest.l $LEX_OUTPUT_ROOT.c
5351
5352fi
5353
5354if test "$LEX" = ":"; then
b6d0720c 5355 as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
212380e3
AC
5356fi
5357
7083c021
AC
5358if test "$libexecdir" = '${exec_prefix}/libexec' &&
5359 test "$localstatedir" = '${prefix}/var'; then
5360 libexecdir='${bindir}'
5361 localstatedir='${prefix}'
631ef239 5362fi
212380e3 5363
7083c021
AC
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5365$as_echo_n "checking for ANSI C header files... " >&6; }
b6d0720c 5366if ${ac_cv_header_stdc+:} false; then :
7083c021 5367 $as_echo_n "(cached) " >&6
212380e3 5368else
7083c021 5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5370/* end confdefs.h. */
7083c021
AC
5371#include <stdlib.h>
5372#include <stdarg.h>
5373#include <string.h>
5374#include <float.h>
212380e3
AC
5375
5376int
5377main ()
5378{
7083c021 5379
212380e3
AC
5380 ;
5381 return 0;
5382}
5383_ACEOF
7083c021
AC
5384if ac_fn_c_try_compile "$LINENO"; then :
5385 ac_cv_header_stdc=yes
212380e3 5386else
7083c021 5387 ac_cv_header_stdc=no
212380e3 5388fi
631ef239 5389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5390
7083c021
AC
5391if test $ac_cv_header_stdc = yes; then
5392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h. */
5395#include <string.h>
5396
212380e3 5397_ACEOF
7083c021
AC
5398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "memchr" >/dev/null 2>&1; then :
5400
5401else
5402 ac_cv_header_stdc=no
5403fi
5404rm -f conftest*
212380e3
AC
5405
5406fi
5407
7083c021
AC
5408if test $ac_cv_header_stdc = yes; then
5409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411/* end confdefs.h. */
5412#include <stdlib.h>
5413
5414_ACEOF
5415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5416 $EGREP "free" >/dev/null 2>&1; then :
212380e3 5417
212380e3 5418else
7083c021 5419 ac_cv_header_stdc=no
631ef239 5420fi
7083c021 5421rm -f conftest*
631ef239 5422
7083c021 5423fi
212380e3 5424
7083c021
AC
5425if test $ac_cv_header_stdc = yes; then
5426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5427 if test "$cross_compiling" = yes; then :
5428 :
212380e3 5429else
7083c021 5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5431/* end confdefs.h. */
7083c021
AC
5432#include <ctype.h>
5433#include <stdlib.h>
5434#if ((' ' & 0x0FF) == 0x020)
5435# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5436# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5437#else
5438# define ISLOWER(c) \
5439 (('a' <= (c) && (c) <= 'i') \
5440 || ('j' <= (c) && (c) <= 'r') \
5441 || ('s' <= (c) && (c) <= 'z'))
5442# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
212380e3 5443#endif
7083c021
AC
5444
5445#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
5446int
5447main ()
5448{
7083c021
AC
5449 int i;
5450 for (i = 0; i < 256; i++)
5451 if (XOR (islower (i), ISLOWER (i))
5452 || toupper (i) != TOUPPER (i))
5453 return 2;
212380e3
AC
5454 return 0;
5455}
5456_ACEOF
7083c021 5457if ac_fn_c_try_run "$LINENO"; then :
212380e3 5458
7083c021
AC
5459else
5460 ac_cv_header_stdc=no
631ef239 5461fi
7083c021
AC
5462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5463 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 5464fi
7083c021 5465
212380e3 5466fi
212380e3 5467fi
7083c021
AC
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5469$as_echo "$ac_cv_header_stdc" >&6; }
5470if test $ac_cv_header_stdc = yes; then
5471
5472$as_echo "#define STDC_HEADERS 1" >>confdefs.h
212380e3
AC
5473
5474fi
5475
5476
7083c021
AC
5477for 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
5478do :
5479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5480ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
b6d0720c 5481if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
5482 cat >>confdefs.h <<_ACEOF
5483#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5484_ACEOF
212380e3 5485
212380e3
AC
5486fi
5487
7083c021 5488done
212380e3
AC
5489
5490
212380e3 5491
7083c021
AC
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5493$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b6d0720c 5494if ${ac_cv_c_const+:} false; then :
7083c021
AC
5495 $as_echo_n "(cached) " >&6
5496else
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498/* end confdefs.h. */
212380e3 5499
7083c021
AC
5500int
5501main ()
5502{
5503/* FIXME: Include the comments suggested by Paul. */
5504#ifndef __cplusplus
5505 /* Ultrix mips cc rejects this. */
5506 typedef int charset[2];
5507 const charset cs;
5508 /* SunOS 4.1.1 cc rejects this. */
5509 char const *const *pcpcc;
5510 char **ppc;
5511 /* NEC SVR4.0.2 mips cc rejects this. */
5512 struct point {int x, y;};
5513 static struct point const zero = {0,0};
5514 /* AIX XL C 1.02.0.0 rejects this.
5515 It does not let you subtract one const X* pointer from another in
5516 an arm of an if-expression whose if-part is not a constant
5517 expression */
5518 const char *g = "string";
5519 pcpcc = &g + (g ? g-g : 0);
5520 /* HPUX 7.0 cc rejects these. */
5521 ++pcpcc;
5522 ppc = (char**) pcpcc;
5523 pcpcc = (char const *const *) ppc;
5524 { /* SCO 3.2v4 cc rejects this. */
5525 char *t;
5526 char const *s = 0 ? (char *) 0 : (char const *) 0;
212380e3 5527
7083c021
AC
5528 *t++ = 0;
5529 if (s) return 0;
5530 }
5531 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5532 int x[] = {25, 17};
5533 const int *foo = &x[0];
5534 ++foo;
5535 }
5536 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5537 typedef const int *iptr;
5538 iptr p = 0;
5539 ++p;
5540 }
5541 { /* AIX XL C 1.02.0.0 rejects this saying
5542 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5543 struct s { int j; const int *ap[3]; };
5544 struct s *b; b->j = 5;
5545 }
5546 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5547 const int foo = 10;
5548 if (!foo) return 0;
5549 }
5550 return !cs[0] && !zero.x;
5551#endif
212380e3 5552
7083c021
AC
5553 ;
5554 return 0;
5555}
212380e3 5556_ACEOF
7083c021
AC
5557if ac_fn_c_try_compile "$LINENO"; then :
5558 ac_cv_c_const=yes
212380e3 5559else
7083c021 5560 ac_cv_c_const=no
212380e3 5561fi
631ef239 5562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5563fi
7083c021
AC
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5565$as_echo "$ac_cv_c_const" >&6; }
5566if test $ac_cv_c_const = no; then
212380e3 5567
7083c021 5568$as_echo "#define const /**/" >>confdefs.h
212380e3
AC
5569
5570fi
5571
7083c021
AC
5572if test "$ac_cv_header_machine_endian_h" = "no" ; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5574$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 5575if ${ac_cv_c_bigendian+:} false; then :
7083c021 5576 $as_echo_n "(cached) " >&6
212380e3 5577else
7083c021
AC
5578 ac_cv_c_bigendian=unknown
5579 # See if we're dealing with a universal compiler.
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581/* end confdefs.h. */
5582#ifndef __APPLE_CC__
5583 not a universal capable compiler
5584 #endif
5585 typedef int dummy;
5586
5587_ACEOF
5588if ac_fn_c_try_compile "$LINENO"; then :
5589
5590 # Check for potential -arch flags. It is not universal unless
5591 # there are at least two -arch flags with different values.
5592 ac_arch=
5593 ac_prev=
5594 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5595 if test -n "$ac_prev"; then
5596 case $ac_word in
5597 i?86 | x86_64 | ppc | ppc64)
5598 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5599 ac_arch=$ac_word
5600 else
5601 ac_cv_c_bigendian=universal
5602 break
5603 fi
5604 ;;
5605 esac
5606 ac_prev=
5607 elif test "x$ac_word" = "x-arch"; then
5608 ac_prev=arch
5609 fi
5610 done
5611fi
5612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 if test $ac_cv_c_bigendian = unknown; then
5614 # See if sys/param.h defines the BYTE_ORDER macro.
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
5616/* end confdefs.h. */
5617#include <sys/types.h>
7083c021 5618 #include <sys/param.h>
212380e3
AC
5619
5620int
5621main ()
5622{
7083c021
AC
5623#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5624 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5625 && LITTLE_ENDIAN)
5626 bogus endian macros
5627 #endif
212380e3
AC
5628
5629 ;
5630 return 0;
5631}
5632_ACEOF
7083c021 5633if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5634 # It does; now see whether it defined to BIG_ENDIAN or not.
7083c021 5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
5636/* end confdefs.h. */
5637#include <sys/types.h>
7083c021 5638 #include <sys/param.h>
212380e3
AC
5639
5640int
5641main ()
5642{
5643#if BYTE_ORDER != BIG_ENDIAN
7083c021
AC
5644 not big endian
5645 #endif
212380e3
AC
5646
5647 ;
5648 return 0;
5649}
5650_ACEOF
7083c021 5651if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
5652 ac_cv_c_bigendian=yes
5653else
7083c021 5654 ac_cv_c_bigendian=no
212380e3 5655fi
631ef239 5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
5657fi
5658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 fi
5660 if test $ac_cv_c_bigendian = unknown; then
5661 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h. */
5664#include <limits.h>
212380e3 5665
7083c021
AC
5666int
5667main ()
5668{
5669#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5670 bogus endian macros
5671 #endif
5672
5673 ;
5674 return 0;
5675}
212380e3 5676_ACEOF
7083c021
AC
5677if ac_fn_c_try_compile "$LINENO"; then :
5678 # It does; now see whether it defined to _BIG_ENDIAN or not.
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5680/* end confdefs.h. */
7083c021
AC
5681#include <limits.h>
5682
212380e3
AC
5683int
5684main ()
5685{
7083c021
AC
5686#ifndef _BIG_ENDIAN
5687 not big endian
5688 #endif
5689
212380e3
AC
5690 ;
5691 return 0;
5692}
5693_ACEOF
7083c021 5694if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5695 ac_cv_c_bigendian=yes
7083c021
AC
5696else
5697 ac_cv_c_bigendian=no
212380e3 5698fi
7083c021 5699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5700fi
7083c021
AC
5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 fi
5703 if test $ac_cv_c_bigendian = unknown; then
5704 # Compile a test program.
5705 if test "$cross_compiling" = yes; then :
5706 # Try to guess by grepping values from an object file.
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708/* end confdefs.h. */
5709short int ascii_mm[] =
5710 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5711 short int ascii_ii[] =
5712 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5713 int use_ascii (int i) {
5714 return ascii_mm[i] + ascii_ii[i];
5715 }
5716 short int ebcdic_ii[] =
5717 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5718 short int ebcdic_mm[] =
5719 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5720 int use_ebcdic (int i) {
5721 return ebcdic_mm[i] + ebcdic_ii[i];
5722 }
5723 extern int foo;
631ef239 5724
7083c021
AC
5725int
5726main ()
5727{
5728return use_ascii (foo) == use_ebcdic (foo);
5729 ;
5730 return 0;
5731}
5732_ACEOF
5733if ac_fn_c_try_compile "$LINENO"; then :
5734 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5735 ac_cv_c_bigendian=yes
5736 fi
5737 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5738 if test "$ac_cv_c_bigendian" = unknown; then
5739 ac_cv_c_bigendian=no
5740 else
5741 # finding both strings is unlikely to happen, but who knows?
5742 ac_cv_c_bigendian=unknown
5743 fi
5744 fi
212380e3 5745fi
631ef239 5746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5747else
7083c021 5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5749/* end confdefs.h. */
631ef239 5750$ac_includes_default
212380e3
AC
5751int
5752main ()
5753{
631ef239 5754
7083c021
AC
5755 /* Are we little or big endian? From Harbison&Steele. */
5756 union
5757 {
5758 long int l;
5759 char c[sizeof (long int)];
5760 } u;
5761 u.l = 1;
5762 return u.c[sizeof (long int) - 1] == 1;
631ef239
AC
5763
5764 ;
5765 return 0;
212380e3
AC
5766}
5767_ACEOF
7083c021 5768if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
5769 ac_cv_c_bigendian=no
5770else
7083c021 5771 ac_cv_c_bigendian=yes
212380e3 5772fi
7083c021
AC
5773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5774 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 5775fi
631ef239 5776
7083c021 5777 fi
212380e3 5778fi
7083c021
AC
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5780$as_echo "$ac_cv_c_bigendian" >&6; }
5781 case $ac_cv_c_bigendian in #(
5782 yes)
5783 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5784;; #(
5785 no)
5786 ;; #(
5787 universal)
5788
5789$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5790
5791 ;; #(
5792 *)
b6d0720c 5793 as_fn_error $? "unknown endianness
7083c021
AC
5794 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5795 esac
631ef239 5796
212380e3 5797fi
7083c021 5798ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
b6d0720c 5799if test "x$ac_cv_type_pid_t" = xyes; then :
212380e3 5800
7083c021 5801else
212380e3 5802
7083c021
AC
5803cat >>confdefs.h <<_ACEOF
5804#define pid_t int
5805_ACEOF
212380e3 5806
212380e3 5807fi
7083c021
AC
5808
5809ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
b6d0720c 5810if test "x$ac_cv_type_size_t" = xyes; then :
7083c021 5811
212380e3 5812else
7083c021
AC
5813
5814cat >>confdefs.h <<_ACEOF
5815#define size_t unsigned int
212380e3 5816_ACEOF
7083c021
AC
5817
5818fi
5819
5820# The cast to long int works around a bug in the HP C Compiler
5821# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5822# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5823# This bug is HP SR number 8606223364.
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5825$as_echo_n "checking size of short... " >&6; }
b6d0720c 5826if ${ac_cv_sizeof_short+:} false; then :
7083c021 5827 $as_echo_n "(cached) " >&6
212380e3 5828else
7083c021
AC
5829 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5830
5831else
5832 if test "$ac_cv_type_short" = yes; then
5833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
5835as_fn_error 77 "cannot compute sizeof (short)
5836See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
5837 else
5838 ac_cv_sizeof_short=0
5839 fi
5840fi
212380e3 5841
212380e3 5842fi
7083c021
AC
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5844$as_echo "$ac_cv_sizeof_short" >&6; }
631ef239 5845
212380e3 5846
7083c021
AC
5847
5848cat >>confdefs.h <<_ACEOF
5849#define SIZEOF_SHORT $ac_cv_sizeof_short
212380e3 5850_ACEOF
7083c021
AC
5851
5852
5853# The cast to long int works around a bug in the HP C Compiler
5854# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5855# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5856# This bug is HP SR number 8606223364.
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5858$as_echo_n "checking size of int... " >&6; }
b6d0720c 5859if ${ac_cv_sizeof_int+:} false; then :
7083c021
AC
5860 $as_echo_n "(cached) " >&6
5861else
5862 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5863
5864else
5865 if test "$ac_cv_type_int" = yes; then
5866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
5868as_fn_error 77 "cannot compute sizeof (int)
5869See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
5870 else
5871 ac_cv_sizeof_int=0
5872 fi
5873fi
5874
5875fi
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5877$as_echo "$ac_cv_sizeof_int" >&6; }
5878
5879
5880
5881cat >>confdefs.h <<_ACEOF
5882#define SIZEOF_INT $ac_cv_sizeof_int
212380e3 5883_ACEOF
7083c021
AC
5884
5885
5886# The cast to long int works around a bug in the HP C Compiler
5887# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5888# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5889# This bug is HP SR number 8606223364.
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5891$as_echo_n "checking size of long... " >&6; }
b6d0720c 5892if ${ac_cv_sizeof_long+:} false; then :
7083c021 5893 $as_echo_n "(cached) " >&6
212380e3 5894else
7083c021 5895 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
212380e3 5896
7083c021
AC
5897else
5898 if test "$ac_cv_type_long" = yes; then
5899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
5901as_fn_error 77 "cannot compute sizeof (long)
5902See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
5903 else
5904 ac_cv_sizeof_long=0
5905 fi
212380e3 5906fi
631ef239 5907
7083c021
AC
5908fi
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5910$as_echo "$ac_cv_sizeof_long" >&6; }
212380e3 5911
631ef239 5912
7083c021
AC
5913
5914cat >>confdefs.h <<_ACEOF
5915#define SIZEOF_LONG $ac_cv_sizeof_long
5916_ACEOF
5917
5918
5919# The cast to long int works around a bug in the HP C Compiler
5920# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5921# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5922# This bug is HP SR number 8606223364.
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5924$as_echo_n "checking size of long long... " >&6; }
b6d0720c 5925if ${ac_cv_sizeof_long_long+:} false; then :
7083c021
AC
5926 $as_echo_n "(cached) " >&6
5927else
5928 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5929
212380e3 5930else
7083c021
AC
5931 if test "$ac_cv_type_long_long" = yes; then
5932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
5934as_fn_error 77 "cannot compute sizeof (long long)
5935See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
5936 else
5937 ac_cv_sizeof_long_long=0
5938 fi
212380e3 5939fi
212380e3
AC
5940
5941fi
7083c021
AC
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5943$as_echo "$ac_cv_sizeof_long_long" >&6; }
212380e3
AC
5944
5945
5946
7083c021
AC
5947cat >>confdefs.h <<_ACEOF
5948#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5949_ACEOF
212380e3 5950
212380e3 5951
212380e3 5952
7083c021
AC
5953
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5955$as_echo_n "checking for library containing socket... " >&6; }
b6d0720c 5956if ${ac_cv_search_socket+:} false; then :
7083c021
AC
5957 $as_echo_n "(cached) " >&6
5958else
5959 ac_func_search_save_LIBS=$LIBS
5960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5961/* end confdefs.h. */
7083c021
AC
5962
5963/* Override any GCC internal prototype to avoid an error.
5964 Use char because int might match the return type of a GCC
5965 builtin and then its argument prototype would still apply. */
5966#ifdef __cplusplus
5967extern "C"
5968#endif
5969char socket ();
212380e3
AC
5970int
5971main ()
5972{
7083c021 5973return socket ();
212380e3
AC
5974 ;
5975 return 0;
5976}
5977_ACEOF
7083c021
AC
5978for ac_lib in '' socket; do
5979 if test -z "$ac_lib"; then
5980 ac_res="none required"
5981 else
5982 ac_res=-l$ac_lib
5983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5984 fi
5985 if ac_fn_c_try_link "$LINENO"; then :
5986 ac_cv_search_socket=$ac_res
5987fi
5988rm -f core conftest.err conftest.$ac_objext \
5989 conftest$ac_exeext
b6d0720c 5990 if ${ac_cv_search_socket+:} false; then :
7083c021
AC
5991 break
5992fi
5993done
b6d0720c 5994if ${ac_cv_search_socket+:} false; then :
212380e3
AC
5995
5996else
7083c021
AC
5997 ac_cv_search_socket=no
5998fi
5999rm conftest.$ac_ext
6000LIBS=$ac_func_search_save_LIBS
6001fi
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6003$as_echo "$ac_cv_search_socket" >&6; }
6004ac_res=$ac_cv_search_socket
6005if test "$ac_res" != no; then :
6006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6007
7083c021 6008else
b6d0720c 6009 as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5
212380e3 6010fi
631ef239 6011
212380e3 6012
7083c021
AC
6013if test x"$SUN" = xyes; then
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6015$as_echo_n "checking for library containing inet_ntoa... " >&6; }
b6d0720c 6016if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
6017 $as_echo_n "(cached) " >&6
6018else
6019 ac_func_search_save_LIBS=$LIBS
6020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6021/* end confdefs.h. */
7083c021
AC
6022
6023/* Override any GCC internal prototype to avoid an error.
6024 Use char because int might match the return type of a GCC
6025 builtin and then its argument prototype would still apply. */
6026#ifdef __cplusplus
6027extern "C"
6028#endif
6029char inet_ntoa ();
212380e3
AC
6030int
6031main ()
6032{
7083c021 6033return inet_ntoa ();
212380e3
AC
6034 ;
6035 return 0;
6036}
6037_ACEOF
7083c021
AC
6038for ac_lib in '' nsl; do
6039 if test -z "$ac_lib"; then
6040 ac_res="none required"
6041 else
6042 ac_res=-l$ac_lib
6043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6044 fi
6045 if ac_fn_c_try_link "$LINENO"; then :
6046 ac_cv_search_inet_ntoa=$ac_res
6047fi
6048rm -f core conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext
b6d0720c 6050 if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
6051 break
6052fi
6053done
b6d0720c 6054if ${ac_cv_search_inet_ntoa+:} false; then :
212380e3
AC
6055
6056else
7083c021
AC
6057 ac_cv_search_inet_ntoa=no
6058fi
6059rm conftest.$ac_ext
6060LIBS=$ac_func_search_save_LIBS
6061fi
6062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6063$as_echo "$ac_cv_search_inet_ntoa" >&6; }
6064ac_res=$ac_cv_search_inet_ntoa
6065if test "$ac_res" != no; then :
6066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6067
7083c021 6068else
b6d0720c 6069 as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5
212380e3 6070fi
631ef239 6071
7083c021 6072fi
212380e3 6073
7083c021
AC
6074ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6075#include <sys/socket.h>
6076"
b6d0720c 6077if test "x$ac_cv_type_socklen_t" = xyes; then :
212380e3
AC
6078
6079else
6080
7083c021 6081$as_echo "#define socklen_t unsigned int" >>confdefs.h
212380e3 6082
7083c021 6083fi
212380e3
AC
6084
6085
7083c021
AC
6086# Check whether --enable-ipv6 was given.
6087if test "${enable_ipv6+set}" = set; then :
6088 enableval=$enable_ipv6; ipv6=$enableval
212380e3 6089else
7083c021
AC
6090 ipv6=no
6091fi
212380e3 6092
212380e3 6093
7083c021
AC
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6095$as_echo_n "checking for library containing crypt... " >&6; }
b6d0720c 6096if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
6097 $as_echo_n "(cached) " >&6
6098else
6099 ac_func_search_save_LIBS=$LIBS
6100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101/* end confdefs.h. */
212380e3 6102
631ef239
AC
6103/* Override any GCC internal prototype to avoid an error.
6104 Use char because int might match the return type of a GCC
6105 builtin and then its argument prototype would still apply. */
212380e3
AC
6106#ifdef __cplusplus
6107extern "C"
212380e3 6108#endif
7083c021 6109char crypt ();
212380e3
AC
6110int
6111main ()
6112{
7083c021 6113return crypt ();
212380e3
AC
6114 ;
6115 return 0;
6116}
6117_ACEOF
7083c021
AC
6118for ac_lib in '' crypt descrypt; do
6119 if test -z "$ac_lib"; then
6120 ac_res="none required"
6121 else
6122 ac_res=-l$ac_lib
6123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6124 fi
6125 if ac_fn_c_try_link "$LINENO"; then :
6126 ac_cv_search_crypt=$ac_res
6127fi
6128rm -f core conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext
b6d0720c 6130 if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
6131 break
6132fi
6133done
b6d0720c 6134if ${ac_cv_search_crypt+:} false; then :
7083c021 6135
212380e3 6136else
7083c021
AC
6137 ac_cv_search_crypt=no
6138fi
6139rm conftest.$ac_ext
6140LIBS=$ac_func_search_save_LIBS
6141fi
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6143$as_echo "$ac_cv_search_crypt" >&6; }
6144ac_res=$ac_cv_search_crypt
6145if test "$ac_res" != no; then :
6146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6147
212380e3 6148fi
631ef239 6149
7083c021
AC
6150
6151CRYPT_LIB=$ac_cv_search_crypt
6152
6153if test "$CRYPT_LIB" = "none required"; then
6154 unset CRYPT_LIB
6155elif test "$CRYPT_LIB" = no; then
6156 unset CRYPT_LIB
212380e3 6157fi
7083c021
AC
6158
6159
6160
6161if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6162 VICONF=viconf
6163 else
6164 VICONF=""
6165fi
6166
6167
6168
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6170$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
b6d0720c 6171if ${gcc_cv_header_string+:} false; then :
7083c021
AC
6172 $as_echo_n "(cached) " >&6
6173else
6174
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176/* end confdefs.h. */
6177#include <string.h>
6178 #include <strings.h>
212380e3 6179_ACEOF
7083c021
AC
6180if ac_fn_c_try_compile "$LINENO"; then :
6181 gcc_cv_header_string=yes
6182else
6183 gcc_cv_header_string=no
6184fi
6185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
6186
6187fi
7083c021
AC
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6189$as_echo "$gcc_cv_header_string" >&6; }
212380e3 6190
7083c021
AC
6191if test "$gcc_cv_header_string" = "yes"; then
6192
6193$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6194
6195fi
212380e3 6196
7083c021
AC
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6198$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 6199if ${ac_cv_c_bigendian+:} false; then :
7083c021
AC
6200 $as_echo_n "(cached) " >&6
6201else
6202 ac_cv_c_bigendian=unknown
6203 # See if we're dealing with a universal compiler.
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205/* end confdefs.h. */
6206#ifndef __APPLE_CC__
6207 not a universal capable compiler
6208 #endif
6209 typedef int dummy;
6210
6211_ACEOF
6212if ac_fn_c_try_compile "$LINENO"; then :
6213
6214 # Check for potential -arch flags. It is not universal unless
6215 # there are at least two -arch flags with different values.
6216 ac_arch=
6217 ac_prev=
6218 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6219 if test -n "$ac_prev"; then
6220 case $ac_word in
6221 i?86 | x86_64 | ppc | ppc64)
6222 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6223 ac_arch=$ac_word
6224 else
6225 ac_cv_c_bigendian=universal
6226 break
6227 fi
6228 ;;
6229 esac
6230 ac_prev=
6231 elif test "x$ac_word" = "x-arch"; then
6232 ac_prev=arch
6233 fi
6234 done
212380e3 6235fi
7083c021
AC
6236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 if test $ac_cv_c_bigendian = unknown; then
6238 # See if sys/param.h defines the BYTE_ORDER macro.
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240/* end confdefs.h. */
6241#include <sys/types.h>
6242 #include <sys/param.h>
6243
6244int
6245main ()
6246{
6247#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6248 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6249 && LITTLE_ENDIAN)
6250 bogus endian macros
6251 #endif
6252
6253 ;
6254 return 0;
6255}
6256_ACEOF
6257if ac_fn_c_try_compile "$LINENO"; then :
6258 # It does; now see whether it defined to BIG_ENDIAN or not.
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260/* end confdefs.h. */
6261#include <sys/types.h>
6262 #include <sys/param.h>
6263
6264int
6265main ()
6266{
6267#if BYTE_ORDER != BIG_ENDIAN
6268 not big endian
6269 #endif
212380e3 6270
7083c021
AC
6271 ;
6272 return 0;
6273}
6274_ACEOF
6275if ac_fn_c_try_compile "$LINENO"; then :
6276 ac_cv_c_bigendian=yes
212380e3 6277else
7083c021
AC
6278 ac_cv_c_bigendian=no
6279fi
6280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281fi
6282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283 fi
6284 if test $ac_cv_c_bigendian = unknown; then
6285 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287/* end confdefs.h. */
6288#include <limits.h>
6289
6290int
6291main ()
6292{
6293#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6294 bogus endian macros
6295 #endif
6296
6297 ;
6298 return 0;
6299}
212380e3 6300_ACEOF
7083c021
AC
6301if ac_fn_c_try_compile "$LINENO"; then :
6302 # It does; now see whether it defined to _BIG_ENDIAN or not.
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6304/* end confdefs.h. */
7083c021
AC
6305#include <limits.h>
6306
212380e3
AC
6307int
6308main ()
6309{
7083c021
AC
6310#ifndef _BIG_ENDIAN
6311 not big endian
6312 #endif
6313
212380e3
AC
6314 ;
6315 return 0;
6316}
6317_ACEOF
7083c021
AC
6318if ac_fn_c_try_compile "$LINENO"; then :
6319 ac_cv_c_bigendian=yes
212380e3 6320else
7083c021 6321 ac_cv_c_bigendian=no
212380e3 6322fi
631ef239 6323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6324fi
7083c021
AC
6325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 fi
6327 if test $ac_cv_c_bigendian = unknown; then
6328 # Compile a test program.
6329 if test "$cross_compiling" = yes; then :
6330 # Try to guess by grepping values from an object file.
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332/* end confdefs.h. */
6333short int ascii_mm[] =
6334 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6335 short int ascii_ii[] =
6336 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6337 int use_ascii (int i) {
6338 return ascii_mm[i] + ascii_ii[i];
6339 }
6340 short int ebcdic_ii[] =
6341 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6342 short int ebcdic_mm[] =
6343 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6344 int use_ebcdic (int i) {
6345 return ebcdic_mm[i] + ebcdic_ii[i];
6346 }
6347 extern int foo;
212380e3 6348
7083c021
AC
6349int
6350main ()
6351{
6352return use_ascii (foo) == use_ebcdic (foo);
6353 ;
6354 return 0;
6355}
212380e3 6356_ACEOF
7083c021
AC
6357if ac_fn_c_try_compile "$LINENO"; then :
6358 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6359 ac_cv_c_bigendian=yes
6360 fi
6361 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6362 if test "$ac_cv_c_bigendian" = unknown; then
6363 ac_cv_c_bigendian=no
6364 else
6365 # finding both strings is unlikely to happen, but who knows?
6366 ac_cv_c_bigendian=unknown
6367 fi
6368 fi
6369fi
6370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371else
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6373/* end confdefs.h. */
6374$ac_includes_default
6375int
6376main ()
6377{
7083c021
AC
6378
6379 /* Are we little or big endian? From Harbison&Steele. */
6380 union
6381 {
6382 long int l;
6383 char c[sizeof (long int)];
6384 } u;
6385 u.l = 1;
6386 return u.c[sizeof (long int) - 1] == 1;
6387
212380e3
AC
6388 ;
6389 return 0;
6390}
6391_ACEOF
7083c021
AC
6392if ac_fn_c_try_run "$LINENO"; then :
6393 ac_cv_c_bigendian=no
212380e3 6394else
7083c021 6395 ac_cv_c_bigendian=yes
212380e3 6396fi
7083c021
AC
6397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6398 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 6399fi
212380e3 6400
7083c021
AC
6401 fi
6402fi
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6404$as_echo "$ac_cv_c_bigendian" >&6; }
6405 case $ac_cv_c_bigendian in #(
6406 yes)
6407 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6408;; #(
6409 no)
6410 ;; #(
6411 universal)
212380e3 6412
7083c021 6413$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
212380e3 6414
7083c021
AC
6415 ;; #(
6416 *)
b6d0720c 6417 as_fn_error $? "unknown endianness
7083c021
AC
6418 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6419 esac
212380e3 6420
212380e3 6421
7083c021 6422ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
b6d0720c 6423if test "x$ac_cv_header_stdarg_h" = xyes; then :
212380e3 6424
7083c021 6425else
b6d0720c 6426 as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
7083c021 6427fi
212380e3
AC
6428
6429
212380e3
AC
6430
6431
7083c021 6432if test "$ac_cv_c_compiler_gnu" = yes; then
212380e3 6433
7083c021
AC
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6435$as_echo_n "checking for strlcpy... " >&6; }
6436save_CFLAGS=$CFLAGS
6437CFLAGS="$CFLAGS -Wimplicit -Werror"
212380e3 6438
7083c021 6439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6440/* end confdefs.h. */
7083c021
AC
6441#include <string.h>
6442 #include <stdlib.h>
212380e3
AC
6443int
6444main ()
6445{
7083c021
AC
6446char *a = malloc(6);
6447 strlcpy(a, "hello", 6);
6448
212380e3
AC
6449 ;
6450 return 0;
6451}
6452_ACEOF
7083c021
AC
6453if ac_fn_c_try_link "$LINENO"; then :
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6455$as_echo "yes" >&6; }
212380e3 6456
7083c021 6457$as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
631ef239 6458
212380e3 6459else
7083c021
AC
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461$as_echo "no" >&6; }
212380e3 6462
7083c021
AC
6463fi
6464rm -f core conftest.err conftest.$ac_objext \
6465 conftest$ac_exeext conftest.$ac_ext
6466
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6468$as_echo_n "checking for strlcat... " >&6; }
6469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6470/* end confdefs.h. */
7083c021
AC
6471#include <string.h>
6472 #include <stdlib.h>
212380e3
AC
6473int
6474main ()
6475{
7083c021
AC
6476char *a = malloc(6);
6477 a[0] = '\0';
6478 strlcat(a, "hello", 6);
6479
212380e3
AC
6480 ;
6481 return 0;
6482}
6483_ACEOF
7083c021
AC
6484if ac_fn_c_try_link "$LINENO"; then :
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6486$as_echo "yes" >&6; }
631ef239 6487
7083c021 6488$as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
212380e3 6489
7083c021
AC
6490else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492$as_echo "no" >&6; }
212380e3 6493
7083c021
AC
6494fi
6495rm -f core conftest.err conftest.$ac_objext \
6496 conftest$ac_exeext conftest.$ac_ext
212380e3 6497
7083c021 6498CFLAGS=$save_CFLAGS
212380e3
AC
6499
6500else
6501
212380e3 6502
7083c021
AC
6503for ac_func in strlcat strlcpy
6504do :
6505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6506ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6507if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
6508 cat >>confdefs.h <<_ACEOF
6509#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
6510_ACEOF
6511
212380e3 6512fi
7083c021 6513done
212380e3
AC
6514
6515
6516fi
6517
7083c021 6518ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
b6d0720c 6519if test "x$ac_cv_type_u_int32_t" = xyes; then :
212380e3 6520
212380e3 6521else
212380e3 6522
7083c021 6523 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
b6d0720c 6524if test "x$ac_cv_type_uint32_t" = xyes; then :
212380e3 6525
631ef239 6526
7083c021 6527$as_echo "#define u_int32_t uint32_t" >>confdefs.h
212380e3 6528
212380e3 6529
7083c021 6530else
212380e3 6531
7083c021
AC
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6533$as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
212380e3 6534
7083c021 6535$as_echo "#define u_int32_t unsigned long int" >>confdefs.h
212380e3 6536
212380e3 6537
212380e3 6538fi
631ef239 6539
7083c021 6540
212380e3 6541fi
7083c021
AC
6542
6543
6544ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
b6d0720c 6545if test "x$ac_cv_type_u_int16_t" = xyes; then :
7083c021 6546
212380e3
AC
6547else
6548
7083c021 6549 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
b6d0720c 6550if test "x$ac_cv_type_uint16_t" = xyes; then :
212380e3 6551
7083c021
AC
6552
6553$as_echo "#define u_int16_t uint16_t" >>confdefs.h
212380e3
AC
6554
6555
212380e3 6556else
212380e3 6557
7083c021
AC
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6559$as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
631ef239 6560
7083c021 6561$as_echo "#define u_int16_t unsigned short int" >>confdefs.h
212380e3 6562
7083c021
AC
6563
6564fi
212380e3
AC
6565
6566
6567fi
6568
6569
7083c021
AC
6570ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6571#include <netinet/in.h>
6572"
b6d0720c 6573if test "x$ac_cv_type_in_port_t" = xyes; then :
212380e3 6574
7083c021 6575else
212380e3 6576
7083c021 6577$as_echo "#define in_port_t u_int16_t" >>confdefs.h
212380e3 6578
7083c021 6579fi
212380e3
AC
6580
6581
7083c021
AC
6582ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6583#include <sys/socket.h>
6584"
b6d0720c 6585if test "x$ac_cv_type_sa_family_t" = xyes; then :
212380e3 6586
212380e3 6587else
212380e3 6588
7083c021 6589$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
212380e3 6590
7083c021 6591fi
212380e3 6592
212380e3 6593
7083c021 6594ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
b6d0720c 6595if test "x$ac_cv_type_uintptr_t" = xyes; then :
212380e3 6596
7083c021
AC
6597cat >>confdefs.h <<_ACEOF
6598#define HAVE_UINTPTR_T 1
6599_ACEOF
212380e3 6600
631ef239 6601
212380e3 6602fi
7083c021
AC
6603
6604
6605for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
6606do :
6607 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6608ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6609if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3 6610 cat >>confdefs.h <<_ACEOF
7083c021 6611#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
6612_ACEOF
6613
6614fi
6615done
6616
6617
6618# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6619# for constant arguments. Useless!
7083c021
AC
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6621$as_echo_n "checking for working alloca.h... " >&6; }
b6d0720c 6622if ${ac_cv_working_alloca_h+:} false; then :
7083c021 6623 $as_echo_n "(cached) " >&6
212380e3 6624else
7083c021 6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6626/* end confdefs.h. */
6627#include <alloca.h>
6628int
6629main ()
6630{
6631char *p = (char *) alloca (2 * sizeof (int));
631ef239 6632 if (p) return 0;
212380e3
AC
6633 ;
6634 return 0;
6635}
6636_ACEOF
7083c021 6637if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6638 ac_cv_working_alloca_h=yes
6639else
7083c021 6640 ac_cv_working_alloca_h=no
212380e3 6641fi
7083c021
AC
6642rm -f core conftest.err conftest.$ac_objext \
6643 conftest$ac_exeext conftest.$ac_ext
212380e3 6644fi
7083c021
AC
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6646$as_echo "$ac_cv_working_alloca_h" >&6; }
212380e3
AC
6647if test $ac_cv_working_alloca_h = yes; then
6648
7083c021 6649$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
212380e3
AC
6650
6651fi
6652
7083c021
AC
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6654$as_echo_n "checking for alloca... " >&6; }
b6d0720c 6655if ${ac_cv_func_alloca_works+:} false; then :
7083c021 6656 $as_echo_n "(cached) " >&6
212380e3 6657else
7083c021 6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6659/* end confdefs.h. */
6660#ifdef __GNUC__
6661# define alloca __builtin_alloca
6662#else
6663# ifdef _MSC_VER
6664# include <malloc.h>
6665# define alloca _alloca
6666# else
631ef239 6667# ifdef HAVE_ALLOCA_H
212380e3
AC
6668# include <alloca.h>
6669# else
6670# ifdef _AIX
6671 #pragma alloca
6672# else
6673# ifndef alloca /* predefined by HP cc +Olibcalls */
b6d0720c 6674void *alloca (size_t);
212380e3
AC
6675# endif
6676# endif
6677# endif
6678# endif
6679#endif
6680
6681int
6682main ()
6683{
6684char *p = (char *) alloca (1);
631ef239 6685 if (p) return 0;
212380e3
AC
6686 ;
6687 return 0;
6688}
6689_ACEOF
7083c021 6690if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6691 ac_cv_func_alloca_works=yes
6692else
7083c021 6693 ac_cv_func_alloca_works=no
212380e3 6694fi
7083c021
AC
6695rm -f core conftest.err conftest.$ac_objext \
6696 conftest$ac_exeext conftest.$ac_ext
212380e3 6697fi
7083c021
AC
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6699$as_echo "$ac_cv_func_alloca_works" >&6; }
212380e3
AC
6700
6701if test $ac_cv_func_alloca_works = yes; then
6702
7083c021 6703$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
212380e3
AC
6704
6705else
6706 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6707# that cause trouble. Some versions do not even contain alloca or
6708# contain a buggy version. If you still want to use their alloca,
6709# use ar to extract alloca.o from them instead of compiling alloca.c.
6710
631ef239 6711ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
212380e3 6712
7083c021 6713$as_echo "#define C_ALLOCA 1" >>confdefs.h
212380e3
AC
6714
6715
7083c021
AC
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6717$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
b6d0720c 6718if ${ac_cv_os_cray+:} false; then :
7083c021 6719 $as_echo_n "(cached) " >&6
212380e3 6720else
7083c021 6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6722/* end confdefs.h. */
631ef239 6723#if defined CRAY && ! defined CRAY2
212380e3
AC
6724webecray
6725#else
6726wenotbecray
6727#endif
6728
6729_ACEOF
6730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021 6731 $EGREP "webecray" >/dev/null 2>&1; then :
212380e3
AC
6732 ac_cv_os_cray=yes
6733else
6734 ac_cv_os_cray=no
6735fi
6736rm -f conftest*
6737
6738fi
7083c021
AC
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6740$as_echo "$ac_cv_os_cray" >&6; }
212380e3
AC
6741if test $ac_cv_os_cray = yes; then
6742 for ac_func in _getb67 GETB67 getb67; do
7083c021
AC
6743 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6744ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6745if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3
AC
6746
6747cat >>confdefs.h <<_ACEOF
6748#define CRAY_STACKSEG_END $ac_func
6749_ACEOF
6750
6751 break
6752fi
6753
6754 done
6755fi
6756
7083c021
AC
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6758$as_echo_n "checking stack direction for C alloca... " >&6; }
b6d0720c 6759if ${ac_cv_c_stack_direction+:} false; then :
7083c021 6760 $as_echo_n "(cached) " >&6
212380e3 6761else
7083c021 6762 if test "$cross_compiling" = yes; then :
212380e3
AC
6763 ac_cv_c_stack_direction=0
6764else
7083c021 6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6766/* end confdefs.h. */
631ef239 6767$ac_includes_default
212380e3
AC
6768int
6769find_stack_direction ()
6770{
6771 static char *addr = 0;
6772 auto char dummy;
6773 if (addr == 0)
6774 {
6775 addr = &dummy;
6776 return find_stack_direction ();
6777 }
6778 else
6779 return (&dummy > addr) ? 1 : -1;
6780}
6781
6782int
6783main ()
6784{
631ef239 6785 return find_stack_direction () < 0;
212380e3
AC
6786}
6787_ACEOF
7083c021 6788if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
6789 ac_cv_c_stack_direction=1
6790else
7083c021 6791 ac_cv_c_stack_direction=-1
212380e3 6792fi
7083c021
AC
6793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6794 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 6795fi
631ef239 6796
212380e3 6797fi
7083c021
AC
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6799$as_echo "$ac_cv_c_stack_direction" >&6; }
212380e3
AC
6800cat >>confdefs.h <<_ACEOF
6801#define STACK_DIRECTION $ac_cv_c_stack_direction
6802_ACEOF
6803
6804
6805fi
6806
6807
6808
7083c021 6809ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
b6d0720c 6810if test "x$ac_cv_func_nanosleep" = xyes; then :
631ef239 6811
212380e3 6812else
7083c021
AC
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6814$as_echo_n "checking for nanosleep in -lrt... " >&6; }
b6d0720c 6815if ${ac_cv_lib_rt_nanosleep+:} false; then :
7083c021 6816 $as_echo_n "(cached) " >&6
212380e3
AC
6817else
6818 ac_check_lib_save_LIBS=$LIBS
6819LIBS="-lrt $LIBS"
7083c021 6820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6821/* end confdefs.h. */
6822
631ef239
AC
6823/* Override any GCC internal prototype to avoid an error.
6824 Use char because int might match the return type of a GCC
6825 builtin and then its argument prototype would still apply. */
212380e3
AC
6826#ifdef __cplusplus
6827extern "C"
6828#endif
212380e3
AC
6829char nanosleep ();
6830int
6831main ()
6832{
631ef239 6833return nanosleep ();
212380e3
AC
6834 ;
6835 return 0;
6836}
6837_ACEOF
7083c021 6838if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6839 ac_cv_lib_rt_nanosleep=yes
6840else
7083c021 6841 ac_cv_lib_rt_nanosleep=no
212380e3 6842fi
7083c021
AC
6843rm -f core conftest.err conftest.$ac_objext \
6844 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
6845LIBS=$ac_check_lib_save_LIBS
6846fi
7083c021
AC
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6848$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
b6d0720c 6849if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
212380e3
AC
6850 LIBS="${LIBS} -lrt"
6851else
7083c021
AC
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6853$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
b6d0720c 6854if ${ac_cv_lib_posix4_nanosleep+:} false; then :
7083c021 6855 $as_echo_n "(cached) " >&6
212380e3
AC
6856else
6857 ac_check_lib_save_LIBS=$LIBS
6858LIBS="-lposix4 $LIBS"
7083c021 6859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6860/* end confdefs.h. */
6861
631ef239
AC
6862/* Override any GCC internal prototype to avoid an error.
6863 Use char because int might match the return type of a GCC
6864 builtin and then its argument prototype would still apply. */
212380e3
AC
6865#ifdef __cplusplus
6866extern "C"
6867#endif
212380e3
AC
6868char nanosleep ();
6869int
6870main ()
6871{
631ef239 6872return nanosleep ();
212380e3
AC
6873 ;
6874 return 0;
6875}
6876_ACEOF
7083c021 6877if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6878 ac_cv_lib_posix4_nanosleep=yes
6879else
7083c021 6880 ac_cv_lib_posix4_nanosleep=no
212380e3 6881fi
7083c021
AC
6882rm -f core conftest.err conftest.$ac_objext \
6883 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
6884LIBS=$ac_check_lib_save_LIBS
6885fi
7083c021
AC
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
6887$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
b6d0720c 6888if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
212380e3
AC
6889 LIBS="${LIBS} -lposix4"
6890
6891fi
6892
6893fi
6894
6895fi
6896
6897if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
6898then
7083c021
AC
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
6900$as_echo "\"nanosleep not found..using select for delay\"" >&6; }
212380e3
AC
6901else
6902
7083c021 6903$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
212380e3
AC
6904
6905fi
6906
7083c021
AC
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
6908$as_echo_n "checking for OpenSSL... " >&6; }
631ef239 6909# Check whether --enable-openssl was given.
7083c021 6910if test "${enable_openssl+set}" = set; then :
631ef239 6911 enableval=$enable_openssl; cf_enable_openssl=$enableval
212380e3
AC
6912else
6913 cf_enable_openssl="auto"
631ef239
AC
6914fi
6915
212380e3
AC
6916
6917if test "$cf_enable_openssl" != "no" ; then
6918 cf_openssl_basedir=""
6919 if test "$cf_enable_openssl" != "auto" &&
6920 test "$cf_enable_openssl" != "yes" ; then
6921 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
6922 else
6923 for dirs in /usr/local/ssl /usr/pkg /usr/local \
6924 /usr/local/openssl ; do
6925 if test -f "${dirs}/include/openssl/opensslv.h" ; then
6926 cf_openssl_basedir="${dirs}"
6927 break
6928 fi
6929 done
6930 unset dirs
6931 fi
6932 if test ! -z "$cf_openssl_basedir"; then
6933 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
6934 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
6935 SSL_LIBS="-L${cf_openssl_basedir}/lib"
6936 else
6937 cf_openssl_basedir=""
6938 fi
6939 else
6940 if test -f "/usr/include/openssl/opensslv.h" ; then
6941 cf_openssl_basedir="/usr"
6942 fi
6943 fi
6944
6945 if test ! -z "$cf_openssl_basedir"; then
7083c021
AC
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
6947$as_echo "$cf_openssl_basedir" >&6; }
212380e3
AC
6948 cf_enable_openssl="yes"
6949 else
7083c021
AC
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
6951$as_echo "not found. Specify a correct path?" >&6; }
212380e3
AC
6952 cf_enable_openssl="no"
6953 fi
6954 unset cf_openssl_basedir
6955else
7083c021
AC
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6957$as_echo "disabled" >&6; }
212380e3
AC
6958fi
6959
6960save_CPPFLAGS="$CPPFLAGS"
6961CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
6962save_LIBS="$LIBS"
6963LIBS="$LIBS $SSL_LIBS"
6964if test "$cf_enable_openssl" != no; then
7083c021
AC
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
6966$as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
6967 if test "$cross_compiling" = yes; then :
212380e3
AC
6968 cf_openssl_version_ok=no
6969else
7083c021 6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6971/* end confdefs.h. */
6972#include <openssl/opensslv.h>
6973 #include <stdlib.h>
6974int
6975main ()
6976{
6977if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
6978 exit(0); else exit(1);
6979 ;
6980 return 0;
6981}
6982_ACEOF
7083c021 6983if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
6984 cf_openssl_version_ok=yes
6985else
7083c021 6986 cf_openssl_version_ok=no
212380e3 6987fi
7083c021
AC
6988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6989 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3
AC
6990fi
6991
631ef239 6992
212380e3 6993 if test "$cf_openssl_version_ok" = yes; then
7083c021
AC
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
6995$as_echo "found" >&6; }
212380e3
AC
6996
6997 ENCSPEED=encspeed
6998
6999
7000 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7083c021
AC
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
7002$as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
b6d0720c 7003if ${ac_cv_lib_crypto_RSA_free+:} false; then :
7083c021 7004 $as_echo_n "(cached) " >&6
212380e3
AC
7005else
7006 ac_check_lib_save_LIBS=$LIBS
7007LIBS="-lcrypto $LIBS"
7083c021 7008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7009/* end confdefs.h. */
7010
631ef239
AC
7011/* Override any GCC internal prototype to avoid an error.
7012 Use char because int might match the return type of a GCC
7013 builtin and then its argument prototype would still apply. */
212380e3
AC
7014#ifdef __cplusplus
7015extern "C"
7016#endif
212380e3
AC
7017char RSA_free ();
7018int
7019main ()
7020{
631ef239 7021return RSA_free ();
212380e3
AC
7022 ;
7023 return 0;
7024}
7025_ACEOF
7083c021 7026if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
7027 ac_cv_lib_crypto_RSA_free=yes
7028else
7083c021 7029 ac_cv_lib_crypto_RSA_free=no
212380e3 7030fi
7083c021
AC
7031rm -f core conftest.err conftest.$ac_objext \
7032 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
7033LIBS=$ac_check_lib_save_LIBS
7034fi
7083c021
AC
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
7036$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
b6d0720c 7037if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
212380e3
AC
7038 cat >>confdefs.h <<_ACEOF
7039#define HAVE_LIBCRYPTO 1
7040_ACEOF
7041
7042 LIBS="-lcrypto $LIBS"
7043
7044fi
7045
7046 SSL_LIBS="$SSL_LIBS -lcrypto"
7047 SSL_SRCS_ENABLE='$(SSL_SRCS)'
7048 else
7083c021
AC
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7050$as_echo "no - OpenSSL support disabled" >&6; }
212380e3
AC
7051 fi
7052fi
7053
7054CPPFLAGS="$save_CPPFLAGS"
7055LIBS="$save_LIBS"
7056
7057
7058
7059
7060
631ef239 7061# Check whether --with-zlib-path was given.
7083c021 7062if test "${with_zlib_path+set}" = set; then :
631ef239
AC
7063 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
7064fi
212380e3 7065
7083c021
AC
7066
7067# Check whether --enable-zlib was given.
7068if test "${enable_zlib+set}" = set; then :
7069 enableval=$enable_zlib; zlib=$enableval
212380e3 7070else
7083c021 7071 zlib=yes
212380e3 7072fi
212380e3 7073
212380e3 7074
7083c021
AC
7075if test "$zlib" = yes; then
7076
7077ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
b6d0720c 7078if test "x$ac_cv_header_zlib_h" = xyes; then :
7083c021
AC
7079
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7081$as_echo_n "checking for zlibVersion in -lz... " >&6; }
b6d0720c 7082if ${ac_cv_lib_z_zlibVersion+:} false; then :
7083c021 7083 $as_echo_n "(cached) " >&6
212380e3
AC
7084else
7085 ac_check_lib_save_LIBS=$LIBS
7086LIBS="-lz $LIBS"
7083c021 7087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7088/* end confdefs.h. */
7089
631ef239
AC
7090/* Override any GCC internal prototype to avoid an error.
7091 Use char because int might match the return type of a GCC
7092 builtin and then its argument prototype would still apply. */
212380e3
AC
7093#ifdef __cplusplus
7094extern "C"
7095#endif
212380e3
AC
7096char zlibVersion ();
7097int
7098main ()
7099{
631ef239 7100return zlibVersion ();
212380e3
AC
7101 ;
7102 return 0;
7103}
7104_ACEOF
7083c021 7105if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
7106 ac_cv_lib_z_zlibVersion=yes
7107else
7083c021 7108 ac_cv_lib_z_zlibVersion=no
212380e3 7109fi
7083c021
AC
7110rm -f core conftest.err conftest.$ac_objext \
7111 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
7112LIBS=$ac_check_lib_save_LIBS
7113fi
7083c021
AC
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7115$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
b6d0720c 7116if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
212380e3
AC
7117
7118 ZLIB_LD=-lz
7119
7120
7083c021 7121$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
212380e3
AC
7122
7123
7124else
7125 zlib=no
7126fi
7127
7128
7129else
7130 zlib=no
7131fi
7132
7133
7134
7135fi
7136
7137
c1c5fdc4 7138# Check whether --enable-ports was given.
7083c021 7139if test "${enable_ports+set}" = set; then :
c1c5fdc4
AC
7140 enableval=$enable_ports; if test $enableval = yes; then
7141 SELECT_TYPE_EXPLICIT="ports"
7142 else
7143 use_ports=no
7144 fi
7145
7146fi
7147
7148
631ef239 7149# Check whether --enable-poll was given.
7083c021 7150if test "${enable_poll+set}" = set; then :
631ef239 7151 enableval=$enable_poll; if test $enableval = yes; then
212380e3
AC
7152 SELECT_TYPE_EXPLICIT="poll"
7153 else
7154 use_poll=no
7155 fi
7156
631ef239
AC
7157fi
7158
212380e3 7159
631ef239 7160# Check whether --enable-select was given.
7083c021 7161if test "${enable_select+set}" = set; then :
631ef239 7162 enableval=$enable_select; if test $enableval = yes; then
212380e3
AC
7163 SELECT_TYPE_EXPLICIT="select"
7164 else
7165 use_select=no
7166 fi
7167
631ef239
AC
7168fi
7169
212380e3 7170
631ef239 7171# Check whether --enable-kqueue was given.
7083c021 7172if test "${enable_kqueue+set}" = set; then :
631ef239 7173 enableval=$enable_kqueue; if test $enableval = yes; then
212380e3
AC
7174 SELECT_TYPE_EXPLICIT="kqueue"
7175 else
7176 use_kqueue=no
7177 fi
7178
631ef239
AC
7179fi
7180
212380e3 7181
631ef239 7182# Check whether --enable-epoll was given.
7083c021 7183if test "${enable_epoll+set}" = set; then :
631ef239 7184 enableval=$enable_epoll; if test $enableval = yes; then
212380e3 7185 SELECT_TYPE_EXPLICIT="epoll"
7083c021
AC
7186 for ac_func in epoll_ctl
7187do :
7188 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b6d0720c 7189if test "x$ac_cv_func_epoll_ctl" = xyes; then :
3ad1a781 7190 cat >>confdefs.h <<_ACEOF
7083c021 7191#define HAVE_EPOLL_CTL 1
3ad1a781
JT
7192_ACEOF
7193 haveepoll=yes
7194else
7195 haveepoll=no
7196fi
7197done
7198
212380e3
AC
7199 else
7200 use_epoll=no
7201 fi
7202
631ef239
AC
7203fi
7204
212380e3
AC
7205
7206
7083c021
AC
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify confdir" >&5
7208$as_echo_n "checking whether to modify confdir... " >&6; }
212380e3 7209
631ef239 7210# Check whether --with-confdir was given.
7083c021 7211if test "${with_confdir+set}" = set; then :
631ef239 7212 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7214$as_echo "yes" >&6; }
212380e3
AC
7215
7216 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7217 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7218 ac_define_dir=`eval echo $confdir`
7219 ac_define_dir=`eval echo $ac_define_dir`
7220 ETC_DIR="$ac_define_dir"
7221
7222
7223cat >>confdefs.h <<_ACEOF
7224#define ETC_DIR "$ac_define_dir"
7225_ACEOF
7226
7227
7228
7229
7230 confdir=`(
7231 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7232 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7233 eval echo \""$confdir"\"
7234 )`
7235
7236
7237else
7238 confdir='${prefix}/etc'
7083c021
AC
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240$as_echo "no" >&6; }
212380e3
AC
7241
7242 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7243 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7244 ac_define_dir=`eval echo $confdir`
7245 ac_define_dir=`eval echo $ac_define_dir`
7246 ETC_DIR="$ac_define_dir"
7247
7248
7249cat >>confdefs.h <<_ACEOF
7250#define ETC_DIR "$ac_define_dir"
7251_ACEOF
7252
7253
7254
7255
7256 confdir=`(
7257 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7258 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7259 eval echo \""$confdir"\"
7260 )`
7261
7262
7263
631ef239
AC
7264fi
7265
212380e3
AC
7266
7267
7083c021
AC
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7269$as_echo_n "checking whether to modify logdir... " >&6; }
212380e3 7270
631ef239 7271# Check whether --with-logdir was given.
7083c021 7272if test "${with_logdir+set}" = set; then :
631ef239 7273 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7275$as_echo "yes" >&6; }
212380e3
AC
7276
7277 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7279 ac_define_dir=`eval echo $logdir`
7280 ac_define_dir=`eval echo $ac_define_dir`
7281 LOG_DIR="$ac_define_dir"
7282
7283
7284cat >>confdefs.h <<_ACEOF
7285#define LOG_DIR "$ac_define_dir"
7286_ACEOF
7287
7288
7289
7290
7291 logdir=`(
7292 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7293 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7294 eval echo \""$logdir"\"
7295 )`
7296
7297
7298else
7299 logdir='${prefix}/logs'
7083c021
AC
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301$as_echo "no" >&6; }
212380e3
AC
7302
7303 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7304 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7305 ac_define_dir=`eval echo $logdir`
7306 ac_define_dir=`eval echo $ac_define_dir`
7307 LOG_DIR="$ac_define_dir"
7308
7309
7310cat >>confdefs.h <<_ACEOF
7311#define LOG_DIR "$ac_define_dir"
7312_ACEOF
7313
7314
7315
7316
7317 logdir=`(
7318 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7319 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7320 eval echo \""$logdir"\"
7321 )`
7322
7323
7324
631ef239
AC
7325fi
7326
212380e3
AC
7327
7328
7083c021
AC
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7330$as_echo_n "checking whether to modify helpdir... " >&6; }
212380e3 7331
631ef239 7332# Check whether --with-helpdir was given.
7083c021 7333if test "${with_helpdir+set}" = set; then :
631ef239 7334 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7336$as_echo "yes" >&6; }
212380e3
AC
7337
7338 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7339 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7340 ac_define_dir=`eval echo $helpdir`
7341 ac_define_dir=`eval echo $ac_define_dir`
7342 HELP_DIR="$ac_define_dir"
7343
7344
7345cat >>confdefs.h <<_ACEOF
7346#define HELP_DIR "$ac_define_dir"
7347_ACEOF
7348
7349
7350
7351
7352 helpdir=`(
7353 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7354 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7355 eval echo \""$helpdir"\"
7356 )`
7357
7358
7359else
7360 helpdir='${prefix}/help'
7083c021
AC
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362$as_echo "no" >&6; }
212380e3
AC
7363
7364 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7365 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7366 ac_define_dir=`eval echo $helpdir`
7367 ac_define_dir=`eval echo $ac_define_dir`
7368 HELP_DIR="$ac_define_dir"
7369
7370
7371cat >>confdefs.h <<_ACEOF
7372#define HELP_DIR "$ac_define_dir"
7373_ACEOF
7374
7375
7376
7377
7378 helpdir=`(
7379 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7380 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7381 eval echo \""$helpdir"\"
7382 )`
7383
7384
7385
631ef239
AC
7386fi
7387
212380e3
AC
7388
7389
7083c021
AC
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7391$as_echo_n "checking whether to modify moduledir... " >&6; }
212380e3 7392
631ef239 7393# Check whether --with-moduledir was given.
7083c021 7394if test "${with_moduledir+set}" = set; then :
631ef239 7395 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7397$as_echo "yes" >&6; }
212380e3
AC
7398
7399 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7401 ac_define_dir=`eval echo $moduledir`
7402 ac_define_dir=`eval echo $ac_define_dir`
7403 MODULE_DIR="$ac_define_dir"
7404
7405
7406cat >>confdefs.h <<_ACEOF
7407#define MODULE_DIR "$ac_define_dir"
7408_ACEOF
7409
7410
7411
7412
7413 moduledir=`(
7414 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7415 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7416 eval echo \""$moduledir"\"
7417 )`
7418
7419
7420else
7421 moduledir='${prefix}/modules'
7083c021
AC
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423$as_echo "no" >&6; }
212380e3
AC
7424
7425 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7426 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7427 ac_define_dir=`eval echo $moduledir`
7428 ac_define_dir=`eval echo $ac_define_dir`
7429 MODULE_DIR="$ac_define_dir"
7430
7431
7432cat >>confdefs.h <<_ACEOF
7433#define MODULE_DIR "$ac_define_dir"
7434_ACEOF
7435
7436
7437
7438
7439 moduledir=`(
7440 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7441 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7442 eval echo \""$moduledir"\"
7443 )`
7444
7445
7446
631ef239
AC
7447fi
7448
7083c021 7449
b6d0720c
AC
7450
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5
7452$as_echo_n "checking whether custom branding is requested... " >&6; }
7453
7454# Check whether --with-custom-branding was given.
7455if test "${with_custom_branding+set}" = set; then :
7456 withval=$with_custom_branding; BRANDING_NAME=$withval
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7458$as_echo "yes" >&6; }
7459else
7460 BRANDING_NAME=$PACKAGE_NAME
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462$as_echo "no" >&6; }
7463
7464fi
7465
7466
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5
7468$as_echo_n "checking whether a custom version is requested... " >&6; }
7469
7470# Check whether --with-custom-version was given.
7471if test "${with_custom_version+set}" = set; then :
7472 withval=$with_custom_version; BRANDING_VERSION=$withval
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7474$as_echo "yes" >&6; }
7475else
7476 BRANDING_VERSION=$PACKAGE_VERSION
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478$as_echo "no" >&6; }
7479
7480fi
7481
7482
7483
7484cat >>confdefs.h <<_ACEOF
7485#define BRANDING_NAME "$BRANDING_NAME"
7486_ACEOF
7487
7488
7489cat >>confdefs.h <<_ACEOF
7490#define BRANDING_VERSION "$BRANDING_VERSION"
7491_ACEOF
7492
7493
f5493691
AC
7494if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
7495
7496$as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h
7497
7498fi
7499
7083c021
AC
7500if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7501 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
7502 echo "Forcing $SELECT_TYPE to be enabled"
7503else
7504
7505if test ! "x$use_ports" = "xno"; then
7506 for ac_func in port_getn
7507do :
7508 ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn"
b6d0720c 7509if test "x$ac_cv_func_port_getn" = xyes; then :
212380e3 7510 cat >>confdefs.h <<_ACEOF
7083c021 7511#define HAVE_PORT_GETN 1
212380e3 7512_ACEOF
7083c021 7513 haveports=yes
212380e3 7514else
7083c021 7515 haveports=no
212380e3
AC
7516fi
7517done
7518
7083c021
AC
7519 if test "x$haveports" = "xyes" ; then
7520 SELECT_TYPE="ports"
212380e3
AC
7521 fi
7522fi
7523
7083c021
AC
7524if test ! "x$use_select" = "xno"; then
7525 for ac_func in select
7526do :
7527 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
b6d0720c 7528if test "x$ac_cv_func_select" = xyes; then :
7083c021
AC
7529 cat >>confdefs.h <<_ACEOF
7530#define HAVE_SELECT 1
212380e3 7531_ACEOF
7083c021
AC
7532 haveselect=yes
7533else
7534 haveselect=no
7535fi
7536done
212380e3 7537
7083c021
AC
7538 if test "x$haveselect" = "xyes" ; then
7539 SELECT_TYPE="select"
7540 fi
7541fi
212380e3 7542
7083c021
AC
7543if test ! "x$use_poll" = "xno"; then
7544 for ac_func in poll
7545do :
7546 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
b6d0720c 7547if test "x$ac_cv_func_poll" = xyes; then :
7083c021
AC
7548 cat >>confdefs.h <<_ACEOF
7549#define HAVE_POLL 1
212380e3 7550_ACEOF
7083c021 7551 havepoll=yes
212380e3 7552else
7083c021 7553 havepoll=no
212380e3 7554fi
7083c021 7555done
631ef239 7556
7083c021
AC
7557 if test "x$havepoll" = "xyes" ; then
7558 SELECT_TYPE="poll"
7559 fi
212380e3 7560fi
7083c021
AC
7561
7562if test ! "x$use_kqueue" = "xno"; then
7563 for ac_func in kevent
7564do :
7565 ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent"
b6d0720c 7566if test "x$ac_cv_func_kevent" = xyes; then :
212380e3 7567 cat >>confdefs.h <<_ACEOF
7083c021 7568#define HAVE_KEVENT 1
212380e3
AC
7569_ACEOF
7570 havekqueue=yes
7571else
7572 havekqueue=no
7573fi
7574done
7575
7576 if test "x$havekqueue" = "xyes" ; then
7577 SELECT_TYPE="kqueue"
7578 fi
7579fi
7580
7581if test ! "x$use_epoll" = "xno"; then
7083c021
AC
7582 for ac_func in epoll_ctl
7583do :
7584 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b6d0720c 7585if test "x$ac_cv_func_epoll_ctl" = xyes; then :
212380e3 7586 cat >>confdefs.h <<_ACEOF
7083c021 7587#define HAVE_EPOLL_CTL 1
212380e3
AC
7588_ACEOF
7589 haveepoll=yes
7590else
7591 haveepoll=no
7592fi
7593done
7594
7595 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7596 if test "x$haveepoll" = "xyes" ; then
7083c021
AC
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7598$as_echo_n "checking for epoll support in kernel... " >&6; }
7599 if test "$cross_compiling" = yes; then :
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601$as_echo "no" >&6; }
212380e3 7602else
7083c021 7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7604/* end confdefs.h. */
7605#include <stdint.h>
7606#include <sys/param.h>
7607#include <sys/types.h>
7608#include <sys/epoll.h>
7609#include <sys/syscall.h>
7610#include <unistd.h>
7611
7612int
7613main(int argc, char **argv)
7614{
7615 int epfd;
7616
7617 epfd = epoll_create(256);
b676ea3b 7618 return (epfd == -1 ? 1 : 0);
212380e3
AC
7619}
7620_ACEOF
7083c021
AC
7621if ac_fn_c_try_run "$LINENO"; then :
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7623$as_echo "yes" >&6; }
212380e3 7624
7083c021 7625$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
7626
7627 SELECT_TYPE="epoll"
7628else
7083c021
AC
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630$as_echo "no" >&6; }
212380e3 7631fi
7083c021
AC
7632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7633 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 7634fi
631ef239 7635
212380e3
AC
7636 fi
7637 fi
7638
7639haveepollsyscall=no
7640
7641if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7642 if test "x$haveepoll" = "xno" ; then
7083c021
AC
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7644$as_echo_n "checking for epoll system call... " >&6; }
7645 if test "$cross_compiling" = yes; then :
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647$as_echo "no" >&6; }
212380e3 7648else
7083c021 7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7650/* end confdefs.h. */
7651#include <stdint.h>
7652#include <sys/param.h>
7653#include <sys/types.h>
7654#include <sys/epoll.h>
7655#include <sys/syscall.h>
7656#include <unistd.h>
7657
7658int
7659epoll_create(int size)
7660{
7661 return (syscall(__NR_epoll_create, size));
7662}
7663
7664int
7665main(int argc, char **argv)
7666{
7667 int epfd;
7668
7669 epfd = epoll_create(256);
7670 exit (epfd == -1 ? 1 : 0);
7671}
7672_ACEOF
7083c021
AC
7673if ac_fn_c_try_run "$LINENO"; then :
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7675$as_echo "yes" >&6; }
212380e3 7676
7083c021 7677$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
7678
7679 SELECT_TYPE="epoll"
7680else
7083c021
AC
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682$as_echo "no" >&6; }
212380e3 7683fi
7083c021
AC
7684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7685 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 7686fi
631ef239 7687
212380e3
AC
7688 fi
7689fi
7690
7691fi
7692
7693fi
7694
7695if test -z "$SELECT_TYPE"; then
b6d0720c 7696 as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5
212380e3
AC
7697fi
7698
7699echo "Using $SELECT_TYPE for select loop."
7700
7701
7702cat >>confdefs.h <<_ACEOF
7703#define SELECT_TYPE "$SELECT_TYPE"
7704_ACEOF
7705
7706
7707
7708
7709
631ef239 7710# Check whether --enable-assert was given.
7083c021 7711if test "${enable_assert+set}" = set; then :
631ef239 7712 enableval=$enable_assert; assert=$enableval
212380e3
AC
7713else
7714 assert=no
631ef239
AC
7715fi
7716
212380e3
AC
7717
7718if test "$assert" = no; then
7719
7083c021 7720$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
7721
7722elif test "$assert" = soft; then
7723
7083c021 7724$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
212380e3
AC
7725
7726
7083c021 7727$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
7728
7729elif test "$assert" = yes; then
7730 assert = "hard";
7731fi
7732
7083c021
AC
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
7734$as_echo_n "checking if you want IO Debugging hooks... " >&6; }
631ef239 7735# Check whether --enable-iodebug was given.
7083c021 7736if test "${enable_iodebug+set}" = set; then :
631ef239 7737 enableval=$enable_iodebug; iodebug=$enableval
212380e3
AC
7738else
7739 iodebug=no
631ef239
AC
7740fi
7741
212380e3
AC
7742
7743if test "$iodebug" = yes; then
7744
7083c021 7745$as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
212380e3 7746
7083c021
AC
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7748$as_echo "yes" >&6; }
212380e3 7749else
7083c021
AC
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751$as_echo "no" >&6; }
212380e3
AC
7752fi
7753
7754
7083c021
AC
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
7756$as_echo_n "checking if you want to do a profile build... " >&6; }
631ef239 7757# Check whether --enable-profile was given.
7083c021 7758if test "${enable_profile+set}" = set; then :
631ef239 7759 enableval=$enable_profile; profile=$enableval
212380e3
AC
7760else
7761 profile=no
631ef239
AC
7762fi
7763
212380e3
AC
7764
7765if test "$profile" = yes; then
7766 if test "$ac_cv_c_compiler_gnu" = yes; then
7767 IRC_CFLAGS="$IRC_CFLAGS -pg"
7083c021
AC
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
7769$as_echo "yes, adding -pg" >&6; }
212380e3 7770
7083c021 7771$as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
212380e3
AC
7772
7773 else
7083c021
AC
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
7775$as_echo "no, profile builds only work with gcc" >&6; }
212380e3
AC
7776 fi
7777else
7083c021
AC
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779$as_echo "no" >&6; }
212380e3
AC
7780fi
7781
631ef239 7782# Check whether --enable-balloc was given.
7083c021 7783if test "${enable_balloc+set}" = set; then :
631ef239 7784 enableval=$enable_balloc; balloc=$enableval
212380e3
AC
7785else
7786 balloc=yes
631ef239
AC
7787fi
7788
212380e3
AC
7789
7790if test "$balloc" = no; then
7791
7083c021 7792$as_echo "#define NOBALLOC 1" >>confdefs.h
212380e3
AC
7793
7794fi
7795
631ef239 7796# Check whether --enable-small-net was given.
7083c021 7797if test "${enable_small_net+set}" = set; then :
631ef239 7798 enableval=$enable_small_net; small_net=$enableval
212380e3
AC
7799else
7800 small_net=no
631ef239
AC
7801fi
7802
212380e3
AC
7803
7804if test "$small_net" = yes; then
7805
7083c021 7806$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
212380e3
AC
7807
7808
7083c021 7809$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7810
7811
7083c021 7812$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7813
7814
7083c021 7815$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7816
7817
7083c021 7818$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7819
7820
7083c021 7821$as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
212380e3
AC
7822
7823
7083c021 7824$as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7825
7826
7083c021 7827$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7828
7829
7083c021 7830$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7831
7832
7083c021 7833$as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7834
7835
7083c021 7836$as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7837
7838
7083c021 7839$as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7840
7841
7083c021 7842$as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7843
7844
7083c021 7845$as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
212380e3 7846
f589ec6f 7847
7083c021 7848$as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
2b428185
AC
7849
7850
7083c021 7851$as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
f589ec6f 7852
212380e3
AC
7853else
7854
7083c021 7855$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
212380e3
AC
7856
7857
7083c021 7858$as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
7859
7860
7083c021 7861$as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
7862
7863
7083c021 7864$as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
7865
7866
7083c021 7867$as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
212380e3
AC
7868
7869
7083c021 7870$as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7871
7872
7083c021 7873$as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
7874
7875
7083c021 7876$as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
7877
7878
7083c021 7879$as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
7880
7881
7083c021 7882$as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
212380e3
AC
7883
7884
7083c021 7885$as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
212380e3
AC
7886
7887
7083c021 7888$as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
212380e3
AC
7889
7890
7083c021 7891$as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7892
7893
7083c021 7894$as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
212380e3 7895
f589ec6f 7896
7083c021 7897$as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
2b428185
AC
7898
7899
7083c021 7900$as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
f589ec6f 7901
212380e3
AC
7902fi
7903
7904
631ef239 7905# Check whether --with-nicklen was given.
7083c021 7906if test "${with_nicklen+set}" = set; then :
631ef239 7907 withval=$with_nicklen;
aa769893 7908 if ! expr "$withval" + 0 >/dev/null 2>&1; then
b6d0720c 7909 as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5
aa769893 7910 fi
cf533739 7911 if test $withval -gt 50; then
212380e3 7912 NICKLEN=50
7083c021
AC
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
7914$as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
cf533739
JT
7915 elif test $withval -lt 9; then
7916 NICKLEN=9
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5
7918$as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;}
212380e3
AC
7919 else
7920 NICKLEN="$withval"
7921 fi
7922
7923else
cf533739 7924 NICKLEN=31
631ef239 7925fi
212380e3
AC
7926
7927
212380e3 7928
631ef239 7929# Check whether --with-topiclen was given.
7083c021 7930if test "${with_topiclen+set}" = set; then :
631ef239 7931 withval=$with_topiclen;
212380e3
AC
7932 if test $withval -ge 390; then
7933 TOPICLEN=390
7083c021
AC
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
7935$as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
212380e3
AC
7936 else
7937 TOPICLEN=$withval
7938 fi
7939
7940else
7941 TOPICLEN=390
212380e3
AC
7942fi
7943
212380e3
AC
7944
7945
7946cat >>confdefs.h <<_ACEOF
7947#define TOPICLEN ${TOPICLEN}
7948_ACEOF
7949
7950
7951cat >>confdefs.h <<_ACEOF
7952#define NICKLEN (${NICKLEN}+1)
7953_ACEOF
7954
7955
b676ea3b 7956shared_modules="yes"
212380e3 7957if test "$shared_modules" = yes; then
212380e3 7958 if test "$CC" = tcc -a "$TenDRA" = "no"; then
7083c021
AC
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
7960$as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
212380e3
AC
7961 shared_modules="no"
7962 fi
7963fi
7964
7965if test "$shared_modules" = yes; then
7083c021
AC
7966 DYNLINK_C=dynlink.c
7967 for ac_header in dlfcn.h
7968do :
7969 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
b6d0720c 7970if test "x$ac_cv_header_dlfcn_h" = xyes; then :
212380e3 7971 cat >>confdefs.h <<_ACEOF
7083c021 7972#define HAVE_DLFCN_H 1
212380e3
AC
7973_ACEOF
7974
7975fi
7976
7977done
7978
7083c021
AC
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
7980$as_echo_n "checking for library containing shl_load... " >&6; }
b6d0720c 7981if ${ac_cv_search_shl_load+:} false; then :
7083c021 7982 $as_echo_n "(cached) " >&6
212380e3
AC
7983else
7984 ac_func_search_save_LIBS=$LIBS
7083c021 7985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7986/* end confdefs.h. */
7987
631ef239
AC
7988/* Override any GCC internal prototype to avoid an error.
7989 Use char because int might match the return type of a GCC
7990 builtin and then its argument prototype would still apply. */
212380e3
AC
7991#ifdef __cplusplus
7992extern "C"
7993#endif
212380e3
AC
7994char shl_load ();
7995int
7996main ()
7997{
631ef239 7998return shl_load ();
212380e3
AC
7999 ;
8000 return 0;
8001}
8002_ACEOF
631ef239
AC
8003for ac_lib in '' dld; do
8004 if test -z "$ac_lib"; then
8005 ac_res="none required"
8006 else
8007 ac_res=-l$ac_lib
8008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8009 fi
7083c021 8010 if ac_fn_c_try_link "$LINENO"; then :
631ef239 8011 ac_cv_search_shl_load=$ac_res
631ef239 8012fi
7083c021
AC
8013rm -f core conftest.err conftest.$ac_objext \
8014 conftest$ac_exeext
b6d0720c 8015 if ${ac_cv_search_shl_load+:} false; then :
631ef239 8016 break
212380e3 8017fi
631ef239 8018done
b6d0720c 8019if ${ac_cv_search_shl_load+:} false; then :
7083c021 8020
631ef239
AC
8021else
8022 ac_cv_search_shl_load=no
212380e3 8023fi
631ef239 8024rm conftest.$ac_ext
212380e3
AC
8025LIBS=$ac_func_search_save_LIBS
8026fi
7083c021
AC
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8028$as_echo "$ac_cv_search_shl_load" >&6; }
631ef239 8029ac_res=$ac_cv_search_shl_load
7083c021 8030if test "$ac_res" != no; then :
631ef239 8031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
8032
8033
7083c021 8034$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
212380e3
AC
8035
8036 SUFFIX=".sl"
8037 MOD_TARGET=hpux_shared
8038 SEDOBJ="s/\.o/.sl/g"
8039
8040else
8041
7083c021
AC
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8043$as_echo_n "checking for library containing dlopen... " >&6; }
b6d0720c 8044if ${ac_cv_search_dlopen+:} false; then :
7083c021 8045 $as_echo_n "(cached) " >&6
212380e3
AC
8046else
8047 ac_func_search_save_LIBS=$LIBS
7083c021 8048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8049/* end confdefs.h. */
8050
631ef239
AC
8051/* Override any GCC internal prototype to avoid an error.
8052 Use char because int might match the return type of a GCC
8053 builtin and then its argument prototype would still apply. */
212380e3
AC
8054#ifdef __cplusplus
8055extern "C"
8056#endif
212380e3
AC
8057char dlopen ();
8058int
8059main ()
8060{
631ef239 8061return dlopen ();
212380e3
AC
8062 ;
8063 return 0;
8064}
8065_ACEOF
631ef239
AC
8066for ac_lib in '' dl c_r; do
8067 if test -z "$ac_lib"; then
8068 ac_res="none required"
8069 else
8070 ac_res=-l$ac_lib
8071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8072 fi
7083c021 8073 if ac_fn_c_try_link "$LINENO"; then :
631ef239 8074 ac_cv_search_dlopen=$ac_res
631ef239 8075fi
7083c021
AC
8076rm -f core conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext
b6d0720c 8078 if ${ac_cv_search_dlopen+:} false; then :
631ef239 8079 break
212380e3 8080fi
631ef239 8081done
b6d0720c 8082if ${ac_cv_search_dlopen+:} false; then :
7083c021 8083
631ef239
AC
8084else
8085 ac_cv_search_dlopen=no
212380e3 8086fi
631ef239 8087rm conftest.$ac_ext
212380e3
AC
8088LIBS=$ac_func_search_save_LIBS
8089fi
7083c021
AC
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8091$as_echo "$ac_cv_search_dlopen" >&6; }
631ef239 8092ac_res=$ac_cv_search_dlopen
7083c021 8093if test "$ac_res" != no; then :
631ef239 8094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
8095
8096
7083c021 8097$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
212380e3
AC
8098
8099 SUFFIX=".so"
8100 MOD_TARGET=shared_modules
8101 SEDOBJ="s/\.o/.so/g"
8102 if test "$AppleGCC" = yes; then
7083c021
AC
8103 for ac_header in mach-o/dyld.h
8104do :
8105 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
b6d0720c 8106if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
212380e3 8107 cat >>confdefs.h <<_ACEOF
7083c021 8108#define HAVE_MACH_O_DYLD_H 1
212380e3
AC
8109_ACEOF
8110
8111fi
8112
8113done
8114
8115 fi
7083c021 8116 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
b6d0720c 8117if test "x$ac_cv_func_dlsym" = xyes; then :
631ef239 8118
212380e3
AC
8119else
8120
7083c021
AC
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8122$as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
212380e3
AC
8123 shared_modules=no
8124
8125fi
8126
7083c021
AC
8127 for ac_func in dlfunc
8128do :
8129 ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc"
b6d0720c 8130if test "x$ac_cv_func_dlfunc" = xyes; then :
212380e3 8131 cat >>confdefs.h <<_ACEOF
7083c021 8132#define HAVE_DLFUNC 1
212380e3
AC
8133_ACEOF
8134
8135fi
8136done
8137
8138
8139else
8140
8141 shared_modules=no
8142
8143fi
8144
8145
8146fi
8147
8148fi
8149
8150
8151cat >>confdefs.h <<_ACEOF
8152#define SHARED_SUFFIX "$SUFFIX"
8153_ACEOF
8154
8155
8156if test "$shared_modules" = yes; then
8157 # The GNU linker requires the -export-dynamic option to make
8158 # all symbols visible in the dynamic symbol table.
8159 hold_ldflags=$LDFLAGS
7083c021
AC
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8161$as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
212380e3 8162 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
7083c021 8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8164/* end confdefs.h. */
8165
8166int
8167main ()
8168{
8169int i;
8170 ;
8171 return 0;
8172}
8173_ACEOF
7083c021 8174if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
8175 found=yes
8176else
7083c021 8177 found=no
212380e3 8178fi
7083c021
AC
8179rm -f core conftest.err conftest.$ac_objext \
8180 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
8181 LDFLAGS=$hold_ldflags
8182
8183 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
8184 found="no, IRIX ld uses -B,dynamic"
8185 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
8186 fi
8187
8188 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
8189 found="no, AIX ld uses -G -brtl"
8190 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
8191 fi
8192
7083c021
AC
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8194$as_echo "$found" >&6; }
212380e3
AC
8195
8196 if test "$found" = yes; then
8197 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
8198 fi
8199
7083c021
AC
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8201$as_echo_n "checking for compiler option to produce PIC... " >&6; }
212380e3 8202 if test "$SGS" = "yes"; then
7083c021
AC
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8204$as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
212380e3
AC
8205 PICFLAGS="-KPIC -DPIC -G"
8206 fi
8207
8208 if test "$AppleGCC" = "yes"; then
7083c021
AC
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8210$as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
212380e3
AC
8211 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
8212 fi
8213 if test "$HPUX" = "yes" -a "$CC" != gcc; then
7083c021
AC
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8215$as_echo "HP-UX cc: +z -r -q -n" >&6; }
212380e3 8216 PICFLAGS="+z -r -q -n -c"
7083c021
AC
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8218$as_echo_n "checking if +ESfic is required on this platform... " >&6; }
212380e3
AC
8219
8220 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
7083c021
AC
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222$as_echo "no" >&6; }
212380e3 8223 else
7083c021
AC
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8225$as_echo "yes" >&6; }
212380e3
AC
8226 PICFLAGS="$PICFLAGS +ESfic"
8227 fi
8228
8229 LDFLAGS="${LDFLAGS} -Wl,-E"
8230 fi
8231 if test "$Tru" = yes -a "$CC" != gcc; then
7083c021
AC
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8233$as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
212380e3
AC
8234 PICFLAGS="-shared -expect_unresolved '*' "
8235 LDFLAGS="-call_shared"
8236 fi
8237 if test -z "$PICFLAGS"; then
8238 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7083c021
AC
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8240$as_echo "gcc: -fPIC -DPIC -shared" >&6; }
212380e3
AC
8241 PICFLAGS="-fPIC -DPIC -shared"
8242 else
7083c021
AC
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244$as_echo "no" >&6; }
212380e3
AC
8245 shared_modules=no
8246 fi
8247 fi
8248fi
8249
1a82970f
JT
8250# rpath, for finding libratbox.so at run time
8251hold_ldflags=$LDFLAGS
7083c021
AC
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8253$as_echo_n "checking for the ld -rpath flag... " >&6; }
1a82970f 8254LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
7083c021 8255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1a82970f
JT
8256/* end confdefs.h. */
8257
8258int
8259main ()
8260{
8261int i;
8262 ;
8263 return 0;
8264}
8265_ACEOF
7083c021 8266if ac_fn_c_try_link "$LINENO"; then :
1a82970f
JT
8267 found=yes
8268else
7083c021 8269 found=no
1a82970f 8270fi
7083c021
AC
8271rm -f core conftest.err conftest.$ac_objext \
8272 conftest$ac_exeext conftest.$ac_ext
1a82970f 8273LDFLAGS=$hold_ldflags
7083c021
AC
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8275$as_echo "$found" >&6; }
1a82970f
JT
8276if test "$found" = yes; then
8277 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
8278fi
8279
212380e3
AC
8280# This must be down here, or it will mess up checks like the ones
8281# for -Wl,-export-dynamic
8282# -- jilles
d2c5159a 8283CWARNS=""
631ef239 8284# Check whether --enable-warnings was given.
7083c021 8285if test "${enable_warnings+set}" = set; then :
631ef239 8286 enableval=$enable_warnings;
212380e3
AC
8287IRC_CFLAGS="$IRC_CFLAGS -O0"
8288CFLAGS="$IRC_CFLAGS"
8289
8290
7083c021
AC
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8292$as_echo_n "checking GCC flag(s) -Wall... " >&6; }
212380e3
AC
8293 if test "${GCC-no}" = yes
8294 then
b6d0720c 8295 if ${charybdis_cv_c_gcc_w_all+:} false; then :
7083c021 8296 $as_echo_n "(cached) " >&6
212380e3
AC
8297else
8298
8299 oldcflags="${CFLAGS-}"
8300 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
7083c021 8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8302/* end confdefs.h. */
8303
8304#include <string.h>
8305#include <stdio.h>
8306int main(void);
8307
8308int
8309main ()
8310{
8311
b1fc1658 8312 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8313
8314 ;
8315 return 0;
8316}
8317_ACEOF
7083c021 8318if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8319 charybdis_cv_c_gcc_w_all=yes
8320else
7083c021 8321 charybdis_cv_c_gcc_w_all=no
212380e3 8322fi
631ef239 8323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8324 CFLAGS="${oldcflags}"
8325fi
8326
8327 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
8328 CWARNS="${CWARNS}-Wall "
7083c021
AC
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8330$as_echo "ok" >&6; }
212380e3
AC
8331 else
8332 charybdis_cv_c_gcc_w_all=''
7083c021
AC
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334$as_echo "no" >&6; }
212380e3
AC
8335 fi
8336 else
7083c021
AC
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338$as_echo "no" >&6; }
212380e3
AC
8339 fi
8340
8341
7083c021
AC
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8343$as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
212380e3
AC
8344 if test "${GCC-no}" = yes
8345 then
b6d0720c 8346 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then :
7083c021 8347 $as_echo_n "(cached) " >&6
212380e3
AC
8348else
8349
8350 oldcflags="${CFLAGS-}"
8351 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
7083c021 8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8353/* end confdefs.h. */
8354
8355#include <string.h>
8356#include <stdio.h>
8357int main(void);
8358
8359int
8360main ()
8361{
8362
b1fc1658 8363 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8364
8365 ;
8366 return 0;
8367}
8368_ACEOF
7083c021 8369if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8370 charybdis_cv_c_gcc_w_pointer_arith=yes
8371else
7083c021 8372 charybdis_cv_c_gcc_w_pointer_arith=no
212380e3 8373fi
631ef239 8374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8375 CFLAGS="${oldcflags}"
8376fi
8377
8378 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
8379 CWARNS="${CWARNS}-Wpointer-arith "
7083c021
AC
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8381$as_echo "ok" >&6; }
212380e3
AC
8382 else
8383 charybdis_cv_c_gcc_w_pointer_arith=''
7083c021
AC
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385$as_echo "no" >&6; }
212380e3
AC
8386 fi
8387 else
7083c021
AC
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389$as_echo "no" >&6; }
212380e3
AC
8390 fi
8391
8392
7083c021
AC
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8394$as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
212380e3
AC
8395 if test "${GCC-no}" = yes
8396 then
b6d0720c 8397 if ${charybdis_cv_c_gcc_w_implicit+:} false; then :
7083c021 8398 $as_echo_n "(cached) " >&6
212380e3
AC
8399else
8400
8401 oldcflags="${CFLAGS-}"
8402 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
7083c021 8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8404/* end confdefs.h. */
8405
8406#include <string.h>
8407#include <stdio.h>
8408int main(void);
8409
8410int
8411main ()
8412{
8413
b1fc1658 8414 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8415
8416 ;
8417 return 0;
8418}
8419_ACEOF
7083c021 8420if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8421 charybdis_cv_c_gcc_w_implicit=yes
8422else
7083c021 8423 charybdis_cv_c_gcc_w_implicit=no
212380e3 8424fi
631ef239 8425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8426 CFLAGS="${oldcflags}"
8427fi
8428
8429 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
8430 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
7083c021
AC
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8432$as_echo "ok" >&6; }
212380e3
AC
8433 else
8434 charybdis_cv_c_gcc_w_implicit=''
7083c021
AC
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436$as_echo "no" >&6; }
212380e3
AC
8437 fi
8438 else
7083c021
AC
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440$as_echo "no" >&6; }
212380e3
AC
8441 fi
8442
8443
7083c021
AC
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8445$as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
212380e3
AC
8446 if test "${GCC-no}" = yes
8447 then
b6d0720c 8448 if ${charybdis_cv_c_gcc_w_cast_align+:} false; then :
7083c021 8449 $as_echo_n "(cached) " >&6
212380e3
AC
8450else
8451
8452 oldcflags="${CFLAGS-}"
8453 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
7083c021 8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8455/* end confdefs.h. */
8456
8457#include <string.h>
8458#include <stdio.h>
8459int main(void);
8460
8461int
8462main ()
8463{
8464
b1fc1658 8465 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
7083c021
AC
8466
8467 ;
8468 return 0;
8469}
8470_ACEOF
8471if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8472 charybdis_cv_c_gcc_w_cast_align=yes
8473else
7083c021 8474 charybdis_cv_c_gcc_w_cast_align=no
212380e3 8475fi
631ef239 8476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8477 CFLAGS="${oldcflags}"
8478fi
8479
8480 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
8481 CWARNS="${CWARNS}-Wcast-align "
7083c021
AC
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8483$as_echo "ok" >&6; }
212380e3
AC
8484 else
8485 charybdis_cv_c_gcc_w_cast_align=''
7083c021
AC
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487$as_echo "no" >&6; }
212380e3
AC
8488 fi
8489 else
7083c021
AC
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491$as_echo "no" >&6; }
212380e3
AC
8492 fi
8493
8494
7083c021
AC
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8496$as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
212380e3
AC
8497 if test "${GCC-no}" = yes
8498 then
b6d0720c 8499 if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then :
7083c021 8500 $as_echo_n "(cached) " >&6
212380e3
AC
8501else
8502
8503 oldcflags="${CFLAGS-}"
8504 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
7083c021 8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8506/* end confdefs.h. */
8507
8508#include <string.h>
8509#include <stdio.h>
8510int main(void);
8511
8512int
8513main ()
8514{
8515
b1fc1658 8516 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8517
8518 ;
8519 return 0;
8520}
8521_ACEOF
7083c021 8522if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8523 charybdis_cv_c_gcc_w_cast_qual=yes
8524else
7083c021 8525 charybdis_cv_c_gcc_w_cast_qual=no
212380e3 8526fi
631ef239 8527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8528 CFLAGS="${oldcflags}"
8529fi
8530
8531 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
8532 CWARNS="${CWARNS}-Wcast-qual "
7083c021
AC
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8534$as_echo "ok" >&6; }
212380e3
AC
8535 else
8536 charybdis_cv_c_gcc_w_cast_qual=''
7083c021
AC
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538$as_echo "no" >&6; }
212380e3
AC
8539 fi
8540 else
7083c021
AC
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542$as_echo "no" >&6; }
212380e3
AC
8543 fi
8544
8545
7083c021
AC
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8547$as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
d2c5159a
JT
8548 if test "${GCC-no}" = yes
8549 then
b6d0720c 8550 if ${charybdis_cv_c_gcc_w_write_strings+:} false; then :
7083c021 8551 $as_echo_n "(cached) " >&6
d2c5159a
JT
8552else
8553
8554 oldcflags="${CFLAGS-}"
8555 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
7083c021 8556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d2c5159a
JT
8557/* end confdefs.h. */
8558
8559#include <string.h>
8560#include <stdio.h>
8561int main(void);
8562
8563int
8564main ()
8565{
8566
8567 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8568
8569 ;
8570 return 0;
8571}
8572_ACEOF
7083c021 8573if ac_fn_c_try_compile "$LINENO"; then :
bbe58888 8574 charybdis_cv_c_gcc_w_write_strings=yes
d2c5159a 8575else
7083c021 8576 charybdis_cv_c_gcc_w_write_strings=no
d2c5159a 8577fi
d2c5159a
JT
8578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 CFLAGS="${oldcflags}"
8580fi
8581
bbe58888 8582 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
d2c5159a 8583 CWARNS="${CWARNS}-Wwrite-strings "
7083c021
AC
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8585$as_echo "ok" >&6; }
d2c5159a 8586 else
bbe58888 8587 charybdis_cv_c_gcc_w_write_strings=''
7083c021
AC
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
bbe58888
VY
8590 fi
8591 else
7083c021
AC
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593$as_echo "no" >&6; }
bbe58888
VY
8594 fi
8595
8596
7083c021
AC
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8598$as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
bbe58888
VY
8599 if test "${GCC-no}" = yes
8600 then
b6d0720c 8601 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then :
7083c021 8602 $as_echo_n "(cached) " >&6
bbe58888
VY
8603else
8604
8605 oldcflags="${CFLAGS-}"
8606 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
7083c021 8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bbe58888
VY
8608/* end confdefs.h. */
8609
8610#include <string.h>
8611#include <stdio.h>
8612int main(void);
8613
8614int
8615main ()
8616{
8617
8618 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8619
8620 ;
8621 return 0;
8622}
8623_ACEOF
7083c021 8624if ac_fn_c_try_compile "$LINENO"; then :
bbe58888
VY
8625 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
8626else
7083c021 8627 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
bbe58888 8628fi
bbe58888
VY
8629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8630 CFLAGS="${oldcflags}"
8631fi
8632
8633 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
8634 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
7083c021
AC
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8636$as_echo "ok" >&6; }
bbe58888
VY
8637 else
8638 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
7083c021
AC
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640$as_echo "no" >&6; }
d2c5159a
JT
8641 fi
8642 else
7083c021
AC
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644$as_echo "no" >&6; }
d2c5159a
JT
8645 fi
8646
8647
7083c021
AC
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8649$as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
212380e3
AC
8650 if test "${GCC-no}" = yes
8651 then
b6d0720c 8652 if ${charybdis_cv_c_gcc_prototypes+:} false; then :
7083c021 8653 $as_echo_n "(cached) " >&6
212380e3
AC
8654else
8655
8656 oldcflags="${CFLAGS-}"
8657 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
7083c021 8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8659/* end confdefs.h. */
8660
8661#include <string.h>
8662#include <stdio.h>
8663int main(void);
8664
8665int
8666main ()
8667{
8668
b1fc1658 8669 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8670
8671 ;
8672 return 0;
8673}
8674_ACEOF
7083c021 8675if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8676 charybdis_cv_c_gcc_prototypes=yes
8677else
7083c021 8678 charybdis_cv_c_gcc_prototypes=no
212380e3 8679fi
631ef239 8680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8681 CFLAGS="${oldcflags}"
8682fi
8683
8684 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
8685 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
7083c021
AC
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8687$as_echo "ok" >&6; }
212380e3
AC
8688 else
8689 charybdis_cv_c_gcc_prototypes=''
7083c021
AC
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691$as_echo "no" >&6; }
212380e3
AC
8692 fi
8693 else
7083c021
AC
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695$as_echo "no" >&6; }
212380e3
AC
8696 fi
8697
8698
7083c021
AC
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
8700$as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
212380e3
AC
8701 if test "${GCC-no}" = yes
8702 then
b6d0720c 8703 if ${charybdis_cv_c_gcc_parenthesis+:} false; then :
7083c021 8704 $as_echo_n "(cached) " >&6
212380e3
AC
8705else
8706
8707 oldcflags="${CFLAGS-}"
8708 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
7083c021 8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8710/* end confdefs.h. */
8711
8712#include <string.h>
8713#include <stdio.h>
8714int main(void);
8715
8716int
8717main ()
8718{
8719
b1fc1658 8720 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8721
8722 ;
8723 return 0;
8724}
8725_ACEOF
7083c021 8726if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8727 charybdis_cv_c_gcc_parenthesis=yes
8728else
7083c021 8729 charybdis_cv_c_gcc_parenthesis=no
212380e3 8730fi
631ef239 8731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8732 CFLAGS="${oldcflags}"
8733fi
8734
8735 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
8736 CWARNS="${CWARNS}-Wparenthesis "
7083c021
AC
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8738$as_echo "ok" >&6; }
212380e3
AC
8739 else
8740 charybdis_cv_c_gcc_parenthesis=''
7083c021
AC
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742$as_echo "no" >&6; }
212380e3
AC
8743 fi
8744 else
7083c021
AC
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746$as_echo "no" >&6; }
212380e3
AC
8747 fi
8748
8749
7083c021
AC
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8751$as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
212380e3
AC
8752 if test "${GCC-no}" = yes
8753 then
b6d0720c 8754 if ${charybdis_cv_c_gcc_w+:} false; then :
7083c021 8755 $as_echo_n "(cached) " >&6
212380e3
AC
8756else
8757
8758 oldcflags="${CFLAGS-}"
8759 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
7083c021 8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8761/* end confdefs.h. */
8762
8763#include <string.h>
8764#include <stdio.h>
8765int main(void);
8766
8767int
8768main ()
8769{
8770
b1fc1658 8771 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8772
8773 ;
8774 return 0;
8775}
8776_ACEOF
7083c021 8777if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8778 charybdis_cv_c_gcc_w=yes
8779else
7083c021 8780 charybdis_cv_c_gcc_w=no
212380e3 8781fi
631ef239 8782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8783 CFLAGS="${oldcflags}"
8784fi
8785
8786 if test "x$charybdis_cv_c_gcc_w" = xyes; then
8787 CWARNS="${CWARNS}-W -Wno-unused "
7083c021
AC
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8789$as_echo "ok" >&6; }
212380e3
AC
8790 else
8791 charybdis_cv_c_gcc_w=''
7083c021
AC
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793$as_echo "no" >&6; }
212380e3
AC
8794 fi
8795 else
7083c021
AC
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797$as_echo "no" >&6; }
212380e3
AC
8798 fi
8799
8800
7083c021
AC
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8802$as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
212380e3
AC
8803 if test "${GCC-no}" = yes
8804 then
b6d0720c 8805 if ${charybdis_cv_c_gcc_w_extra+:} false; then :
7083c021 8806 $as_echo_n "(cached) " >&6
212380e3
AC
8807else
8808
8809 oldcflags="${CFLAGS-}"
8810 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
7083c021 8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8812/* end confdefs.h. */
8813
8814#include <string.h>
8815#include <stdio.h>
8816int main(void);
8817
8818int
8819main ()
8820{
8821
b1fc1658 8822 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8823
8824 ;
8825 return 0;
8826}
8827_ACEOF
7083c021 8828if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8829 charybdis_cv_c_gcc_w_extra=yes
8830else
7083c021 8831 charybdis_cv_c_gcc_w_extra=no
212380e3 8832fi
631ef239 8833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8834 CFLAGS="${oldcflags}"
8835fi
8836
8837 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
8838 CWARNS="${CWARNS}-Wextra "
7083c021
AC
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8840$as_echo "ok" >&6; }
212380e3
AC
8841 else
8842 charybdis_cv_c_gcc_w_extra=''
7083c021
AC
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844$as_echo "no" >&6; }
212380e3
AC
8845 fi
8846 else
7083c021
AC
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848$as_echo "no" >&6; }
212380e3
AC
8849 fi
8850
8851
7083c021
AC
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
8853$as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
212380e3
AC
8854 if test "${GCC-no}" = yes
8855 then
b6d0720c 8856 if ${charybdis_cv_c_gcc_w_shadow+:} false; then :
7083c021 8857 $as_echo_n "(cached) " >&6
212380e3
AC
8858else
8859
8860 oldcflags="${CFLAGS-}"
8861 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
7083c021 8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8863/* end confdefs.h. */
8864
8865#include <string.h>
8866#include <stdio.h>
8867int main(void);
8868
8869int
8870main ()
8871{
8872
b1fc1658 8873 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8874
8875 ;
8876 return 0;
8877}
8878_ACEOF
7083c021 8879if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8880 charybdis_cv_c_gcc_w_shadow=yes
8881else
7083c021 8882 charybdis_cv_c_gcc_w_shadow=no
212380e3 8883fi
631ef239 8884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8885 CFLAGS="${oldcflags}"
8886fi
8887
8888 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
8889 CWARNS="${CWARNS}-Wshadow "
7083c021
AC
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8891$as_echo "ok" >&6; }
212380e3
AC
8892 else
8893 charybdis_cv_c_gcc_w_shadow=''
7083c021
AC
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895$as_echo "no" >&6; }
212380e3
AC
8896 fi
8897 else
7083c021
AC
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899$as_echo "no" >&6; }
212380e3
AC
8900 fi
8901
8902
7083c021
AC
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
8904$as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
212380e3
AC
8905 if test "${GCC-no}" = yes
8906 then
b6d0720c 8907 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then :
7083c021 8908 $as_echo_n "(cached) " >&6
212380e3
AC
8909else
8910
8911 oldcflags="${CFLAGS-}"
8912 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
7083c021 8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8914/* end confdefs.h. */
8915
8916#include <string.h>
8917#include <stdio.h>
8918int main(void);
8919
8920int
8921main ()
8922{
8923
b1fc1658 8924 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8925
8926 ;
8927 return 0;
8928}
8929_ACEOF
7083c021 8930if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8931 charybdis_cv_c_gcc_w_missing_noreturn=yes
8932else
7083c021 8933 charybdis_cv_c_gcc_w_missing_noreturn=no
212380e3 8934fi
631ef239 8935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8936 CFLAGS="${oldcflags}"
8937fi
8938
8939 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
8940 CWARNS="${CWARNS}-Wmissing-noreturn "
7083c021
AC
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8942$as_echo "ok" >&6; }
212380e3
AC
8943 else
8944 charybdis_cv_c_gcc_w_missing_noreturn=''
7083c021
AC
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946$as_echo "no" >&6; }
212380e3
AC
8947 fi
8948 else
7083c021
AC
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950$as_echo "no" >&6; }
212380e3
AC
8951 fi
8952
8953
7083c021
AC
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
8955$as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
212380e3
AC
8956 if test "${GCC-no}" = yes
8957 then
b6d0720c 8958 if ${charybdis_cv_c_gcc_w_undef+:} false; then :
7083c021 8959 $as_echo_n "(cached) " >&6
212380e3
AC
8960else
8961
8962 oldcflags="${CFLAGS-}"
8963 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
7083c021 8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8965/* end confdefs.h. */
8966
8967#include <string.h>
8968#include <stdio.h>
8969int main(void);
8970
8971int
8972main ()
8973{
8974
b1fc1658 8975 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8976
8977 ;
8978 return 0;
8979}
8980_ACEOF
7083c021 8981if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8982 charybdis_cv_c_gcc_w_undef=yes
8983else
7083c021 8984 charybdis_cv_c_gcc_w_undef=no
212380e3 8985fi
631ef239 8986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8987 CFLAGS="${oldcflags}"
8988fi
8989
8990 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
8991 CWARNS="${CWARNS}-Wundef "
7083c021
AC
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8993$as_echo "ok" >&6; }
212380e3
AC
8994 else
8995 charybdis_cv_c_gcc_w_undef=''
7083c021
AC
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997$as_echo "no" >&6; }
212380e3
AC
8998 fi
8999 else
7083c021
AC
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001$as_echo "no" >&6; }
212380e3
AC
9002 fi
9003
9004
7083c021
AC
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
9006$as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
212380e3
AC
9007 if test "${GCC-no}" = yes
9008 then
b6d0720c 9009 if ${charybdis_cv_c_gcc_w_packed+:} false; then :
7083c021 9010 $as_echo_n "(cached) " >&6
212380e3
AC
9011else
9012
9013 oldcflags="${CFLAGS-}"
9014 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
7083c021 9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9016/* end confdefs.h. */
9017
9018#include <string.h>
9019#include <stdio.h>
9020int main(void);
9021
9022int
9023main ()
9024{
9025
b1fc1658 9026 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9027
9028 ;
9029 return 0;
9030}
9031_ACEOF
7083c021 9032if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9033 charybdis_cv_c_gcc_w_packed=yes
9034else
7083c021 9035 charybdis_cv_c_gcc_w_packed=no
212380e3 9036fi
631ef239 9037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9038 CFLAGS="${oldcflags}"
9039fi
9040
9041 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
9042 CWARNS="${CWARNS}-Wpacked "
7083c021
AC
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9044$as_echo "ok" >&6; }
212380e3
AC
9045 else
9046 charybdis_cv_c_gcc_w_packed=''
7083c021
AC
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048$as_echo "no" >&6; }
212380e3
AC
9049 fi
9050 else
7083c021
AC
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
212380e3
AC
9053 fi
9054
9055
7083c021
AC
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
9057$as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
212380e3
AC
9058 if test "${GCC-no}" = yes
9059 then
b6d0720c 9060 if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then :
7083c021 9061 $as_echo_n "(cached) " >&6
212380e3
AC
9062else
9063
9064 oldcflags="${CFLAGS-}"
9065 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
7083c021 9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9067/* end confdefs.h. */
9068
9069#include <string.h>
9070#include <stdio.h>
9071int main(void);
9072
9073int
9074main ()
9075{
9076
b1fc1658 9077 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9078
9079 ;
9080 return 0;
9081}
9082_ACEOF
7083c021 9083if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9084 charybdis_cv_c_gcc_w_nested_externs=yes
9085else
7083c021 9086 charybdis_cv_c_gcc_w_nested_externs=no
212380e3 9087fi
631ef239 9088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9089 CFLAGS="${oldcflags}"
9090fi
9091
9092 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
9093 CWARNS="${CWARNS}-Wnested-externs "
7083c021
AC
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9095$as_echo "ok" >&6; }
212380e3
AC
9096 else
9097 charybdis_cv_c_gcc_w_nested_externs=''
7083c021
AC
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099$as_echo "no" >&6; }
212380e3
AC
9100 fi
9101 else
7083c021
AC
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103$as_echo "no" >&6; }
212380e3
AC
9104 fi
9105
9106
7083c021
AC
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9108$as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
212380e3
AC
9109 if test "${GCC-no}" = yes
9110 then
b6d0720c 9111 if ${charybdis_cv_c_gcc_w_unused+:} false; then :
7083c021 9112 $as_echo_n "(cached) " >&6
212380e3
AC
9113else
9114
9115 oldcflags="${CFLAGS-}"
9116 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
7083c021 9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9118/* end confdefs.h. */
9119
9120#include <string.h>
9121#include <stdio.h>
9122int main(void);
9123
9124int
9125main ()
9126{
9127
b1fc1658 9128 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9129
9130 ;
9131 return 0;
9132}
9133_ACEOF
7083c021 9134if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9135 charybdis_cv_c_gcc_w_unused=yes
9136else
7083c021 9137 charybdis_cv_c_gcc_w_unused=no
212380e3 9138fi
631ef239 9139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9140 CFLAGS="${oldcflags}"
9141fi
9142
9143 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
9144 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
7083c021
AC
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9146$as_echo "ok" >&6; }
212380e3
AC
9147 else
9148 charybdis_cv_c_gcc_w_unused=''
7083c021
AC
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150$as_echo "no" >&6; }
212380e3
AC
9151 fi
9152 else
7083c021
AC
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154$as_echo "no" >&6; }
212380e3
AC
9155 fi
9156
9157
7083c021
AC
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9159$as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
212380e3
AC
9160 if test "${GCC-no}" = yes
9161 then
b6d0720c 9162 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then :
7083c021 9163 $as_echo_n "(cached) " >&6
212380e3
AC
9164else
9165
9166 oldcflags="${CFLAGS-}"
9167 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
7083c021 9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9169/* end confdefs.h. */
9170
9171#include <string.h>
9172#include <stdio.h>
9173int main(void);
9174
9175int
9176main ()
9177{
9178
b1fc1658 9179 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9180
9181 ;
9182 return 0;
9183}
9184_ACEOF
7083c021 9185if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9186 charybdis_cv_c_gcc_w_redundant_decls=yes
9187else
7083c021 9188 charybdis_cv_c_gcc_w_redundant_decls=no
212380e3 9189fi
631ef239 9190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9191 CFLAGS="${oldcflags}"
9192fi
9193
9194 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
9195 CWARNS="${CWARNS}-Wredundant-decls "
7083c021
AC
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9197$as_echo "ok" >&6; }
212380e3
AC
9198 else
9199 charybdis_cv_c_gcc_w_redundant_decls=''
7083c021
AC
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201$as_echo "no" >&6; }
212380e3
AC
9202 fi
9203 else
7083c021
AC
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205$as_echo "no" >&6; }
212380e3
AC
9206 fi
9207
9208
7083c021
AC
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9210$as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
212380e3
AC
9211 if test "${GCC-no}" = yes
9212 then
b6d0720c 9213 if ${charybdis_cv_c_gcc_w_float_equal+:} false; then :
7083c021 9214 $as_echo_n "(cached) " >&6
212380e3
AC
9215else
9216
9217 oldcflags="${CFLAGS-}"
9218 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
7083c021 9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9220/* end confdefs.h. */
9221
9222#include <string.h>
9223#include <stdio.h>
9224int main(void);
9225
9226int
9227main ()
9228{
9229
b1fc1658 9230 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9231
9232 ;
9233 return 0;
9234}
9235_ACEOF
7083c021 9236if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9237 charybdis_cv_c_gcc_w_float_equal=yes
9238else
7083c021 9239 charybdis_cv_c_gcc_w_float_equal=no
212380e3 9240fi
631ef239 9241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9242 CFLAGS="${oldcflags}"
9243fi
9244
9245 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
9246 CWARNS="${CWARNS}-Wfloat-equal "
7083c021
AC
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9248$as_echo "ok" >&6; }
212380e3
AC
9249 else
9250 charybdis_cv_c_gcc_w_float_equal=''
7083c021
AC
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252$as_echo "no" >&6; }
212380e3
AC
9253 fi
9254 else
7083c021
AC
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256$as_echo "no" >&6; }
212380e3
AC
9257 fi
9258
9259
7083c021
AC
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9261$as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
212380e3
AC
9262 if test "${GCC-no}" = yes
9263 then
b6d0720c 9264 if ${charybdis_cv_c_gcc_w_format+:} false; then :
7083c021 9265 $as_echo_n "(cached) " >&6
212380e3
AC
9266else
9267
9268 oldcflags="${CFLAGS-}"
4a584d41 9269 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
7083c021 9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9271/* end confdefs.h. */
9272
9273#include <string.h>
9274#include <stdio.h>
9275int main(void);
9276
9277int
9278main ()
9279{
7083c021
AC
9280
9281 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9282
212380e3
AC
9283 ;
9284 return 0;
9285}
9286_ACEOF
7083c021
AC
9287if ac_fn_c_try_compile "$LINENO"; then :
9288 charybdis_cv_c_gcc_w_format=yes
212380e3 9289else
7083c021
AC
9290 charybdis_cv_c_gcc_w_format=no
9291fi
9292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9293 CFLAGS="${oldcflags}"
9294fi
9295
9296 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
9297 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9299$as_echo "ok" >&6; }
9300 else
9301 charybdis_cv_c_gcc_w_format=''
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303$as_echo "no" >&6; }
9304 fi
9305 else
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9307$as_echo "no" >&6; }
9308 fi
9309
9310
9311IRC_CFLAGS="$CFLAGS"
212380e3 9312
212380e3 9313fi
631ef239 9314
7083c021
AC
9315
9316if test "$shared_modules" = no; then
9317 DYNLINK_C=""
9318 MOD_TARGET="libmodules.a"
9319 MODULES_LIBS="../modules/libmodules.a"
9320 SEDOBJ=""
9321
9322$as_echo "#define STATIC_MODULES 1" >>confdefs.h
9323
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9325$as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
212380e3 9326fi
7083c021
AC
9327
9328if test "$shared_modules" = yes; then
9329
9330 ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist"
b6d0720c 9331if test "x$ac_cv_func_nlist" = xyes; then :
7083c021 9332
212380e3 9333else
7083c021
AC
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9335$as_echo_n "checking for nlist in -ldl... " >&6; }
b6d0720c 9336if ${ac_cv_lib_dl_nlist+:} false; then :
7083c021 9337 $as_echo_n "(cached) " >&6
212380e3
AC
9338else
9339 ac_check_lib_save_LIBS=$LIBS
9340LIBS="-ldl $LIBS"
7083c021 9341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9342/* end confdefs.h. */
9343
631ef239
AC
9344/* Override any GCC internal prototype to avoid an error.
9345 Use char because int might match the return type of a GCC
9346 builtin and then its argument prototype would still apply. */
212380e3
AC
9347#ifdef __cplusplus
9348extern "C"
9349#endif
212380e3
AC
9350char nlist ();
9351int
9352main ()
9353{
631ef239 9354return nlist ();
212380e3
AC
9355 ;
9356 return 0;
9357}
9358_ACEOF
7083c021 9359if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
9360 ac_cv_lib_dl_nlist=yes
9361else
7083c021 9362 ac_cv_lib_dl_nlist=no
212380e3 9363fi
7083c021
AC
9364rm -f core conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
9366LIBS=$ac_check_lib_save_LIBS
9367fi
7083c021
AC
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9369$as_echo "$ac_cv_lib_dl_nlist" >&6; }
b6d0720c 9370if test "x$ac_cv_lib_dl_nlist" = xyes; then :
212380e3
AC
9371 nlist_lib="-ldl"
9372else
7083c021
AC
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9374$as_echo_n "checking for nlist in -lelf... " >&6; }
b6d0720c 9375if ${ac_cv_lib_elf_nlist+:} false; then :
7083c021 9376 $as_echo_n "(cached) " >&6
212380e3
AC
9377else
9378 ac_check_lib_save_LIBS=$LIBS
9379LIBS="-lelf $LIBS"
7083c021 9380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9381/* end confdefs.h. */
9382
631ef239
AC
9383/* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
212380e3
AC
9386#ifdef __cplusplus
9387extern "C"
9388#endif
212380e3
AC
9389char nlist ();
9390int
9391main ()
9392{
631ef239 9393return nlist ();
212380e3
AC
9394 ;
9395 return 0;
9396}
9397_ACEOF
7083c021 9398if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
9399 ac_cv_lib_elf_nlist=yes
9400else
7083c021 9401 ac_cv_lib_elf_nlist=no
212380e3 9402fi
7083c021
AC
9403rm -f core conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
9405LIBS=$ac_check_lib_save_LIBS
9406fi
7083c021
AC
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9408$as_echo "$ac_cv_lib_elf_nlist" >&6; }
b6d0720c 9409if test "x$ac_cv_lib_elf_nlist" = xyes; then :
212380e3
AC
9410 nlist_lib="-lelf"
9411fi
9412
9413
9414fi
9415
9416
9417fi
9418
9419
7083c021 9420 ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
b6d0720c 9421if test "x$ac_cv_header_libelf_nlist_h" = xyes; then :
212380e3
AC
9422 nlist_h="libelf/nlist.h"
9423fi
9424
9425
7083c021 9426 ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
b6d0720c 9427if test "x$ac_cv_header_elf_nlist_h" = xyes; then :
212380e3
AC
9428 nlist_h="elf/nlist.h"
9429fi
9430
9431
7083c021 9432 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
b6d0720c 9433if test "x$ac_cv_header_nlist_h" = xyes; then :
212380e3
AC
9434 nlist_h="nlist.h"
9435fi
9436
9437
9438 if test x"$nlist_h" = "x"; then
9439
9440cat >>confdefs.h <<_ACEOF
9441#define SYMBOL_PREFIX ""
9442_ACEOF
9443
9444 else
7083c021
AC
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9446$as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
b6d0720c 9447 if ${symbol_underscores+:} false; then :
7083c021 9448 $as_echo_n "(cached) " >&6
212380e3
AC
9449else
9450
9451cat << EOF > conftest.c
9452#include <$nlist_h>
9453#include <stdio.h>
9454#include <stdlib.h>
9455void _modinit(void);
9456int main(int argc, char *argv[]) {
9457 int i;
9458 struct nlist nl[5];
9459
9460 /* fill the names in this way, so it'll work almost everywhere */
9461 nl[0].n_name = "_modinit";
9462 nl[1].n_name = "__modinit";
9463 nl[2].n_name = "___modinit";
9464 nl[3].n_name = "____modinit";
9465 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9466
9467 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9468 for(i = 0; i < 4; i++) {
9469 if(nl[i].n_value != NULL)
9470 {
9471 int j;
9472 for(j = 0; j < i; j++)
9473 printf("_");
9474 exit(i);
9475 }
9476 }
9477 exit(-1);
9478}
9479void _modinit(void) { return; }
9480EOF
9481 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
9482 symbol_underscores=`./conftest conftest`
7083c021
AC
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9484$as_echo "$symbol_underscores" >&6; }
212380e3
AC
9485 $RM -f conftest conftest.c
9486
9487fi
9488
9489
9490cat >>confdefs.h <<_ACEOF
9491#define SYMBOL_PREFIX "${symbol_underscores}"
9492_ACEOF
9493
9494 fi
9495fi
9496
d2c5159a
JT
9497IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
9498
212380e3
AC
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512if test "$prefix" = "NONE"; then
9513
9514cat >>confdefs.h <<_ACEOF
9515#define IRCD_PREFIX "$ac_default_prefix"
9516_ACEOF
9517
9518
9519else
9520
9521
9522 prefix=`echo $prefix | sed 's/\/$//'`
9523
9524cat >>confdefs.h <<_ACEOF
9525#define IRCD_PREFIX "$prefix"
9526_ACEOF
9527
9528
9529fi
9530
6fb6bd15 9531ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
212380e3
AC
9532
9533
9534cat >confcache <<\_ACEOF
9535# This file is a shell script that caches the results of configure
9536# tests run on this system so they can be shared between configure
9537# scripts and configure runs, see configure's option --config-cache.
9538# It is not useful on other systems. If it contains results you don't
9539# want to keep, you may remove or edit it.
9540#
9541# config.status only pays attention to the cache file if you give it
9542# the --recheck option to rerun configure.
9543#
9544# `ac_cv_env_foo' variables (set or unset) will be overridden when
9545# loading this file, other *unset* `ac_cv_foo' will be assigned the
9546# following values.
9547
9548_ACEOF
9549
9550# The following way of writing the cache mishandles newlines in values,
9551# but we know of no workaround that is simple, portable, and efficient.
631ef239 9552# So, we kill variables containing newlines.
212380e3
AC
9553# Ultrix sh set writes to stderr and can't be redirected directly,
9554# and sets the high bit in the cache file unless we assign to the vars.
631ef239
AC
9555(
9556 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9557 eval ac_val=\$$ac_var
9558 case $ac_val in #(
9559 *${as_nl}*)
9560 case $ac_var in #(
7083c021
AC
9561 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9562$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
631ef239
AC
9563 esac
9564 case $ac_var in #(
9565 _ | IFS | as_nl) ;; #(
7083c021
AC
9566 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9567 *) { eval $ac_var=; unset $ac_var;} ;;
631ef239
AC
9568 esac ;;
9569 esac
9570 done
9571
212380e3 9572 (set) 2>&1 |
631ef239
AC
9573 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9574 *${as_nl}ac_space=\ *)
7083c021
AC
9575 # `set' does not quote correctly, so add quotes: double-quote
9576 # substitution turns \\\\ into \\, and sed turns \\ into \.
212380e3
AC
9577 sed -n \
9578 "s/'/'\\\\''/g;
9579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
631ef239 9580 ;; #(
212380e3
AC
9581 *)
9582 # `set' quotes correctly as required by POSIX, so do not add quotes.
631ef239 9583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 9584 ;;
631ef239
AC
9585 esac |
9586 sort
9587) |
212380e3 9588 sed '
631ef239 9589 /^ac_cv_env_/b end
212380e3 9590 t clear
631ef239 9591 :clear
212380e3
AC
9592 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9593 t end
631ef239
AC
9594 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9595 :end' >>confcache
9596if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9597 if test -w "$cache_file"; then
b6d0720c 9598 if test "x$cache_file" != "x/dev/null"; then
7083c021
AC
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9600$as_echo "$as_me: updating cache $cache_file" >&6;}
b6d0720c
AC
9601 if test ! -f "$cache_file" || test -h "$cache_file"; then
9602 cat confcache >"$cache_file"
9603 else
9604 case $cache_file in #(
9605 */* | ?:*)
9606 mv -f confcache "$cache_file"$$ &&
9607 mv -f "$cache_file"$$ "$cache_file" ;; #(
9608 *)
9609 mv -f confcache "$cache_file" ;;
9610 esac
9611 fi
9612 fi
212380e3 9613 else
7083c021
AC
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9615$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
212380e3
AC
9616 fi
9617fi
9618rm -f confcache
9619
9620test "x$prefix" = xNONE && prefix=$ac_default_prefix
9621# Let make expand exec_prefix.
9622test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9623
212380e3
AC
9624DEFS=-DHAVE_CONFIG_H
9625
9626ac_libobjs=
9627ac_ltlibobjs=
b6d0720c 9628U=
212380e3
AC
9629for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9630 # 1. Remove the extension, and $U if already installed.
631ef239 9631 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7083c021 9632 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
631ef239
AC
9633 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9634 # will be set to the directory where LIBOBJS objects are built.
7083c021
AC
9635 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9636 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
212380e3
AC
9637done
9638LIBOBJS=$ac_libobjs
9639
9640LTLIBOBJS=$ac_ltlibobjs
9641
9642
9643
7083c021
AC
9644
9645
b6d0720c 9646: "${CONFIG_STATUS=./config.status}"
7083c021 9647ac_write_fail=0
212380e3
AC
9648ac_clean_files_save=$ac_clean_files
9649ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7083c021
AC
9650{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9651$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9652as_write_fail=0
9653cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
212380e3
AC
9654#! $SHELL
9655# Generated by $as_me.
9656# Run this file to recreate the current configuration.
9657# Compiler output produced by configure, useful for debugging
9658# configure, is in config.log if it exists.
9659
9660debug=false
9661ac_cs_recheck=false
9662ac_cs_silent=false
212380e3 9663
7083c021
AC
9664SHELL=\${CONFIG_SHELL-$SHELL}
9665export SHELL
9666_ASEOF
9667cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9668## -------------------- ##
9669## M4sh Initialization. ##
9670## -------------------- ##
212380e3 9671
631ef239
AC
9672# Be more Bourne compatible
9673DUALCASE=1; export DUALCASE # for MKS sh
7083c021 9674if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
9675 emulate sh
9676 NULLCMD=:
7083c021 9677 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
9678 # is contrary to our usage. Disable this feature.
9679 alias -g '${1+"$@"}'='"$@"'
631ef239 9680 setopt NO_GLOB_SUBST
212380e3 9681else
7083c021
AC
9682 case `(set -o) 2>/dev/null` in #(
9683 *posix*) :
9684 set -o posix ;; #(
9685 *) :
9686 ;;
631ef239 9687esac
212380e3
AC
9688fi
9689
9690
7083c021
AC
9691as_nl='
9692'
9693export as_nl
9694# Printing a long string crashes Solaris 7 /usr/bin/printf.
9695as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9696as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9697as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9698# Prefer a ksh shell builtin over an external printf program on Solaris,
9699# but without wasting forks for bash or zsh.
9700if test -z "$BASH_VERSION$ZSH_VERSION" \
9701 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9702 as_echo='print -r --'
9703 as_echo_n='print -rn --'
9704elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9705 as_echo='printf %s\n'
9706 as_echo_n='printf %s'
9707else
9708 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9709 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9710 as_echo_n='/usr/ucb/echo -n'
631ef239 9711 else
7083c021
AC
9712 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9713 as_echo_n_body='eval
9714 arg=$1;
9715 case $arg in #(
9716 *"$as_nl"*)
9717 expr "X$arg" : "X\\(.*\\)$as_nl";
9718 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9719 esac;
9720 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9721 '
9722 export as_echo_n_body
9723 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 9724 fi
7083c021
AC
9725 export as_echo_body
9726 as_echo='sh -c $as_echo_body as_echo'
631ef239
AC
9727fi
9728
7083c021
AC
9729# The user is always right.
9730if test "${PATH_SEPARATOR+set}" != set; then
9731 PATH_SEPARATOR=:
9732 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9733 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9734 PATH_SEPARATOR=';'
9735 }
631ef239
AC
9736fi
9737
9738
9739# IFS
9740# We need space, tab and new line, in precisely that order. Quoting is
9741# there to prevent editors from complaining about space-tab.
9742# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9743# splitting by setting IFS to empty value.)
631ef239
AC
9744IFS=" "" $as_nl"
9745
9746# Find who we are. Look in the path if we contain no directory separator.
b6d0720c 9747as_myself=
7083c021 9748case $0 in #((
631ef239
AC
9749 *[\\/]* ) as_myself=$0 ;;
9750 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751for as_dir in $PATH
9752do
9753 IFS=$as_save_IFS
9754 test -z "$as_dir" && as_dir=.
7083c021
AC
9755 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9756 done
631ef239
AC
9757IFS=$as_save_IFS
9758
9759 ;;
9760esac
9761# We did not find ourselves, most probably we were run as `sh COMMAND'
9762# in which case we are not to be found in the path.
9763if test "x$as_myself" = x; then
9764 as_myself=$0
9765fi
9766if test ! -f "$as_myself"; then
7083c021
AC
9767 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9768 exit 1
631ef239
AC
9769fi
9770
7083c021
AC
9771# Unset variables that we do not need and which cause bugs (e.g. in
9772# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9773# suppresses any "Segmentation fault" message there. '((' could
9774# trigger a bug in pdksh 5.2.14.
9775for as_var in BASH_ENV ENV MAIL MAILPATH
9776do eval test x\${$as_var+set} = xset \
9777 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 9778done
212380e3
AC
9779PS1='$ '
9780PS2='> '
9781PS4='+ '
9782
7083c021
AC
9783# NLS nuisances.
9784LC_ALL=C
9785export LC_ALL
9786LANGUAGE=C
9787export LANGUAGE
9788
9789# CDPATH.
9790(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9791
9792
b6d0720c
AC
9793# as_fn_error STATUS ERROR [LINENO LOG_FD]
9794# ----------------------------------------
7083c021
AC
9795# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9796# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 9797# script with STATUS, using 1 if that was 0.
7083c021
AC
9798as_fn_error ()
9799{
b6d0720c
AC
9800 as_status=$1; test $as_status -eq 0 && as_status=1
9801 if test "$4"; then
9802 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9803 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
212380e3 9804 fi
b6d0720c 9805 $as_echo "$as_me: error: $2" >&2
7083c021
AC
9806 as_fn_exit $as_status
9807} # as_fn_error
9808
9809
9810# as_fn_set_status STATUS
9811# -----------------------
9812# Set $? to STATUS, without forking.
9813as_fn_set_status ()
9814{
9815 return $1
9816} # as_fn_set_status
9817
9818# as_fn_exit STATUS
9819# -----------------
9820# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9821as_fn_exit ()
9822{
9823 set +e
9824 as_fn_set_status $1
9825 exit $1
9826} # as_fn_exit
9827
9828# as_fn_unset VAR
9829# ---------------
9830# Portably unset VAR.
9831as_fn_unset ()
9832{
9833 { eval $1=; unset $1;}
9834}
9835as_unset=as_fn_unset
9836# as_fn_append VAR VALUE
9837# ----------------------
9838# Append the text in VALUE to the end of the definition contained in VAR. Take
9839# advantage of any shell optimizations that allow amortized linear growth over
9840# repeated appends, instead of the typical quadratic growth present in naive
9841# implementations.
9842if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9843 eval 'as_fn_append ()
9844 {
9845 eval $1+=\$2
9846 }'
9847else
9848 as_fn_append ()
9849 {
9850 eval $1=\$$1\$2
9851 }
9852fi # as_fn_append
9853
9854# as_fn_arith ARG...
9855# ------------------
9856# Perform arithmetic evaluation on the ARGs, and store the result in the
9857# global $as_val. Take advantage of shells that can avoid forks. The arguments
9858# must be portable across $(()) and expr.
9859if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9860 eval 'as_fn_arith ()
9861 {
9862 as_val=$(( $* ))
9863 }'
9864else
9865 as_fn_arith ()
9866 {
9867 as_val=`expr "$@" || test $? -eq 1`
9868 }
9869fi # as_fn_arith
9870
212380e3 9871
631ef239
AC
9872if expr a : '\(a\)' >/dev/null 2>&1 &&
9873 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
9874 as_expr=expr
9875else
9876 as_expr=false
9877fi
9878
631ef239 9879if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
9880 as_basename=basename
9881else
9882 as_basename=false
9883fi
9884
7083c021
AC
9885if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9886 as_dirname=dirname
9887else
9888 as_dirname=false
9889fi
212380e3 9890
631ef239 9891as_me=`$as_basename -- "$0" ||
212380e3
AC
9892$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9893 X"$0" : 'X\(//\)$' \| \
631ef239 9894 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 9895$as_echo X/"$0" |
631ef239
AC
9896 sed '/^.*\/\([^/][^/]*\)\/*$/{
9897 s//\1/
9898 q
9899 }
9900 /^X\/\(\/\/\)$/{
9901 s//\1/
9902 q
9903 }
9904 /^X\/\(\/\).*/{
9905 s//\1/
9906 q
9907 }
9908 s/.*/./; q'`
212380e3 9909
7083c021
AC
9910# Avoid depending upon Character Ranges.
9911as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9912as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9913as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9914as_cr_digits='0123456789'
9915as_cr_alnum=$as_cr_Letters$as_cr_digits
631ef239
AC
9916
9917ECHO_C= ECHO_N= ECHO_T=
7083c021 9918case `echo -n x` in #(((((
631ef239 9919-n*)
7083c021 9920 case `echo 'xy\c'` in
631ef239 9921 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7083c021
AC
9922 xy) ECHO_C='\c';;
9923 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9924 ECHO_T=' ';;
631ef239
AC
9925 esac;;
9926*)
9927 ECHO_N='-n';;
212380e3
AC
9928esac
9929
212380e3 9930rm -f conf$$ conf$$.exe conf$$.file
631ef239
AC
9931if test -d conf$$.dir; then
9932 rm -f conf$$.dir/conf$$.file
9933else
9934 rm -f conf$$.dir
7083c021
AC
9935 mkdir conf$$.dir 2>/dev/null
9936fi
9937if (echo >conf$$.file) 2>/dev/null; then
9938 if ln -s conf$$.file conf$$ 2>/dev/null; then
9939 as_ln_s='ln -s'
9940 # ... but there are two gotchas:
9941 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9942 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9943 # In both cases, we have to default to `cp -p'.
9944 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9945 as_ln_s='cp -p'
9946 elif ln conf$$.file conf$$ 2>/dev/null; then
9947 as_ln_s=ln
9948 else
212380e3 9949 as_ln_s='cp -p'
7083c021 9950 fi
212380e3
AC
9951else
9952 as_ln_s='cp -p'
9953fi
631ef239
AC
9954rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9955rmdir conf$$.dir 2>/dev/null
212380e3 9956
7083c021
AC
9957
9958# as_fn_mkdir_p
9959# -------------
9960# Create "$as_dir" as a directory, including parents if necessary.
9961as_fn_mkdir_p ()
9962{
9963
9964 case $as_dir in #(
9965 -*) as_dir=./$as_dir;;
9966 esac
9967 test -d "$as_dir" || eval $as_mkdir_p || {
9968 as_dirs=
9969 while :; do
9970 case $as_dir in #(
9971 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9972 *) as_qdir=$as_dir;;
9973 esac
9974 as_dirs="'$as_qdir' $as_dirs"
9975 as_dir=`$as_dirname -- "$as_dir" ||
9976$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9977 X"$as_dir" : 'X\(//\)[^/]' \| \
9978 X"$as_dir" : 'X\(//\)$' \| \
9979 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9980$as_echo X"$as_dir" |
9981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9982 s//\1/
9983 q
9984 }
9985 /^X\(\/\/\)[^/].*/{
9986 s//\1/
9987 q
9988 }
9989 /^X\(\/\/\)$/{
9990 s//\1/
9991 q
9992 }
9993 /^X\(\/\).*/{
9994 s//\1/
9995 q
9996 }
9997 s/.*/./; q'`
9998 test -d "$as_dir" && break
9999 done
10000 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 10001 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
10002
10003
10004} # as_fn_mkdir_p
212380e3 10005if mkdir -p . 2>/dev/null; then
7083c021 10006 as_mkdir_p='mkdir -p "$as_dir"'
212380e3
AC
10007else
10008 test -d ./-p && rmdir ./-p
10009 as_mkdir_p=false
10010fi
10011
631ef239
AC
10012if test -x / >/dev/null 2>&1; then
10013 as_test_x='test -x'
10014else
10015 if ls -dL / >/dev/null 2>&1; then
10016 as_ls_L_option=L
10017 else
10018 as_ls_L_option=
10019 fi
10020 as_test_x='
10021 eval sh -c '\''
10022 if test -d "$1"; then
7083c021 10023 test -d "$1/.";
631ef239 10024 else
7083c021
AC
10025 case $1 in #(
10026 -*)set "./$1";;
631ef239 10027 esac;
7083c021 10028 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
631ef239
AC
10029 ???[sx]*):;;*)false;;esac;fi
10030 '\'' sh
10031 '
10032fi
10033as_executable_p=$as_test_x
212380e3
AC
10034
10035# Sed expression to map a string onto a valid CPP name.
10036as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10037
10038# Sed expression to map a string onto a valid variable name.
10039as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10040
10041
212380e3 10042exec 6>&1
7083c021
AC
10043## ----------------------------------- ##
10044## Main body of $CONFIG_STATUS script. ##
10045## ----------------------------------- ##
10046_ASEOF
10047test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
212380e3 10048
7083c021
AC
10049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10050# Save the log message, to keep $0 and so on meaningful, and to
212380e3 10051# report actual input values of CONFIG_FILES etc. instead of their
631ef239
AC
10052# values after options handling.
10053ac_log="
a949ab1a 10054This file was extended by charybdis $as_me 3.4.0-dev, which was
b6d0720c 10055generated by GNU Autoconf 2.68. Invocation command line was
212380e3
AC
10056
10057 CONFIG_FILES = $CONFIG_FILES
10058 CONFIG_HEADERS = $CONFIG_HEADERS
10059 CONFIG_LINKS = $CONFIG_LINKS
10060 CONFIG_COMMANDS = $CONFIG_COMMANDS
10061 $ $0 $@
10062
631ef239
AC
10063on `(hostname || uname -n) 2>/dev/null | sed 1q`
10064"
10065
212380e3
AC
10066_ACEOF
10067
7083c021
AC
10068case $ac_config_files in *"
10069"*) set x $ac_config_files; shift; ac_config_files=$*;;
10070esac
10071
10072case $ac_config_headers in *"
10073"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10074esac
10075
10076
10077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10078# Files that config.status was made for.
631ef239
AC
10079config_files="$ac_config_files"
10080config_headers="$ac_config_headers"
212380e3 10081
631ef239 10082_ACEOF
212380e3 10083
7083c021 10084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3 10085ac_cs_usage="\
7083c021
AC
10086\`$as_me' instantiates files and other configuration actions
10087from templates according to the current configuration. Unless the files
10088and actions are specified as TAGs, all are instantiated by default.
212380e3 10089
7083c021 10090Usage: $0 [OPTION]... [TAG]...
212380e3
AC
10091
10092 -h, --help print this help, then exit
631ef239 10093 -V, --version print version number and configuration settings, then exit
6fb6bd15 10094 --config print configuration, then exit
7083c021
AC
10095 -q, --quiet, --silent
10096 do not print progress messages
212380e3
AC
10097 -d, --debug don't remove temporary files
10098 --recheck update $as_me by reconfiguring in the same conditions
7083c021
AC
10099 --file=FILE[:TEMPLATE]
10100 instantiate the configuration file FILE
10101 --header=FILE[:TEMPLATE]
10102 instantiate the configuration header FILE
212380e3
AC
10103
10104Configuration files:
10105$config_files
10106
10107Configuration headers:
10108$config_headers
10109
7083c021 10110Report bugs to the package provider."
212380e3 10111
631ef239 10112_ACEOF
7083c021 10113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6fb6bd15 10114ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
212380e3 10115ac_cs_version="\\
a949ab1a 10116charybdis config.status 3.4.0-dev
b6d0720c 10117configured by $0, generated by GNU Autoconf 2.68,
6fb6bd15 10118 with options \\"\$ac_cs_config\\"
212380e3 10119
b6d0720c 10120Copyright (C) 2010 Free Software Foundation, Inc.
212380e3
AC
10121This config.status script is free software; the Free Software Foundation
10122gives unlimited permission to copy, distribute and modify it."
631ef239
AC
10123
10124ac_pwd='$ac_pwd'
10125srcdir='$srcdir'
10126INSTALL='$INSTALL'
7083c021 10127test -n "\$AWK" || AWK=awk
212380e3
AC
10128_ACEOF
10129
7083c021
AC
10130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10131# The default lists apply if the user does not specify any file.
212380e3
AC
10132ac_need_defaults=:
10133while test $# != 0
10134do
10135 case $1 in
b6d0720c 10136 --*=?*)
631ef239
AC
10137 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10138 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
212380e3
AC
10139 ac_shift=:
10140 ;;
b6d0720c
AC
10141 --*=)
10142 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10143 ac_optarg=
10144 ac_shift=:
10145 ;;
631ef239 10146 *)
212380e3
AC
10147 ac_option=$1
10148 ac_optarg=$2
10149 ac_shift=shift
10150 ;;
212380e3
AC
10151 esac
10152
10153 case $ac_option in
10154 # Handling of the options.
212380e3
AC
10155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10156 ac_cs_recheck=: ;;
631ef239 10157 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7083c021 10158 $as_echo "$ac_cs_version"; exit ;;
6fb6bd15
AC
10159 --config | --confi | --conf | --con | --co | --c )
10160 $as_echo "$ac_cs_config"; exit ;;
631ef239 10161 --debug | --debu | --deb | --de | --d | -d )
212380e3
AC
10162 debug=: ;;
10163 --file | --fil | --fi | --f )
10164 $ac_shift
7083c021
AC
10165 case $ac_optarg in
10166 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b6d0720c 10167 '') as_fn_error $? "missing file argument" ;;
7083c021
AC
10168 esac
10169 as_fn_append CONFIG_FILES " '$ac_optarg'"
212380e3
AC
10170 ac_need_defaults=false;;
10171 --header | --heade | --head | --hea )
10172 $ac_shift
7083c021
AC
10173 case $ac_optarg in
10174 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10175 esac
10176 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
212380e3 10177 ac_need_defaults=false;;
631ef239
AC
10178 --he | --h)
10179 # Conflict between --help and --header
b6d0720c 10180 as_fn_error $? "ambiguous option: \`$1'
7083c021 10181Try \`$0 --help' for more information.";;
631ef239 10182 --help | --hel | -h )
7083c021 10183 $as_echo "$ac_cs_usage"; exit ;;
212380e3
AC
10184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10186 ac_cs_silent=: ;;
10187
10188 # This is an error.
b6d0720c 10189 -*) as_fn_error $? "unrecognized option: \`$1'
7083c021 10190Try \`$0 --help' for more information." ;;
212380e3 10191
7083c021 10192 *) as_fn_append ac_config_targets " $1"
631ef239 10193 ac_need_defaults=false ;;
212380e3
AC
10194
10195 esac
10196 shift
10197done
10198
10199ac_configure_extra_args=
10200
10201if $ac_cs_silent; then
10202 exec 6>/dev/null
10203 ac_configure_extra_args="$ac_configure_extra_args --silent"
10204fi
10205
10206_ACEOF
7083c021 10207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10208if \$ac_cs_recheck; then
7083c021
AC
10209 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10210 shift
10211 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10212 CONFIG_SHELL='$SHELL'
631ef239 10213 export CONFIG_SHELL
7083c021 10214 exec "\$@"
212380e3
AC
10215fi
10216
10217_ACEOF
7083c021 10218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10219exec 5>>config.log
10220{
10221 echo
10222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10223## Running $as_me. ##
10224_ASBOX
7083c021 10225 $as_echo "$ac_log"
631ef239 10226} >&5
212380e3 10227
631ef239 10228_ACEOF
7083c021 10229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239 10230_ACEOF
212380e3 10231
7083c021 10232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10233
10234# Handling of arguments.
212380e3
AC
10235for ac_config_target in $ac_config_targets
10236do
631ef239
AC
10237 case $ac_config_target in
10238 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
10239 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7083c021 10240 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;;
53970d07 10241 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
631ef239 10242 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
631ef239
AC
10243 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10244 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
10245 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10246 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10247 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
10248
b6d0720c 10249 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
212380e3
AC
10250 esac
10251done
10252
631ef239 10253
212380e3
AC
10254# If the user did not use the arguments to specify the items to instantiate,
10255# then the envvar interface is used. Set only those that are not.
10256# We use the long form for the default assignment because of an extremely
10257# bizarre bug on SunOS 4.1.3.
10258if $ac_need_defaults; then
10259 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10260 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10261fi
10262
10263# Have a temporary directory for convenience. Make it in the build tree
631ef239 10264# simply because there is no reason against having it here, and in addition,
212380e3 10265# creating and moving files from /tmp can sometimes cause problems.
631ef239
AC
10266# Hook for its removal unless debugging.
10267# Note that there is a small window in which the directory will not be cleaned:
10268# after its creation but before its name has been assigned to `$tmp'.
212380e3
AC
10269$debug ||
10270{
b6d0720c 10271 tmp= ac_tmp=
631ef239 10272 trap 'exit_status=$?
b6d0720c
AC
10273 : "${ac_tmp:=$tmp}"
10274 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
631ef239 10275' 0
7083c021 10276 trap 'as_fn_exit 1' 1 2 13 15
212380e3 10277}
212380e3
AC
10278# Create a (secure) tmp directory for tmp files.
10279
10280{
631ef239 10281 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b6d0720c 10282 test -d "$tmp"
212380e3
AC
10283} ||
10284{
631ef239
AC
10285 tmp=./conf$$-$RANDOM
10286 (umask 077 && mkdir "$tmp")
b6d0720c
AC
10287} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10288ac_tmp=$tmp
212380e3 10289
7083c021
AC
10290# Set up the scripts for CONFIG_FILES section.
10291# No need to generate them if there are no CONFIG_FILES.
10292# This happens for instance with `./config.status config.h'.
631ef239
AC
10293if test -n "$CONFIG_FILES"; then
10294
631ef239 10295
7083c021
AC
10296ac_cr=`echo X | tr X '\015'`
10297# On cygwin, bash can eat \r inside `` if the user requested igncr.
10298# But we know of no other shell where ac_cr would be empty at this
10299# point, so we can use a bashism as a fallback.
10300if test "x$ac_cr" = x; then
10301 eval ac_cr=\$\'\\r\'
10302fi
10303ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10304if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
b6d0720c 10305 ac_cs_awk_cr='\\r'
7083c021
AC
10306else
10307 ac_cs_awk_cr=$ac_cr
10308fi
10309
b6d0720c 10310echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7083c021 10311_ACEOF
631ef239
AC
10312
10313
7083c021
AC
10314{
10315 echo "cat >conf$$subs.awk <<_ACEOF" &&
10316 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10317 echo "_ACEOF"
10318} >conf$$subs.sh ||
b6d0720c
AC
10319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10320ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
631ef239
AC
10321ac_delim='%!_!# '
10322for ac_last_try in false false false false false :; do
7083c021 10323 . ./conf$$subs.sh ||
b6d0720c 10324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7083c021
AC
10325
10326 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10327 if test $ac_delim_n = $ac_delim_num; then
631ef239
AC
10328 break
10329 elif $ac_last_try; then
b6d0720c 10330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
631ef239
AC
10331 else
10332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
212380e3 10333 fi
631ef239 10334done
7083c021
AC
10335rm -f conf$$subs.sh
10336
10337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b6d0720c 10338cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7083c021
AC
10339_ACEOF
10340sed -n '
10341h
10342s/^/S["/; s/!.*/"]=/
10343p
10344g
10345s/^[^!]*!//
10346:repl
10347t repl
10348s/'"$ac_delim"'$//
10349t delim
10350:nl
10351h
6fb6bd15 10352s/\(.\{148\}\)..*/\1/
7083c021
AC
10353t more1
10354s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10355p
10356n
10357b repl
10358:more1
10359s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10360p
10361g
10362s/.\{148\}//
10363t nl
10364:delim
10365h
6fb6bd15 10366s/\(.\{148\}\)..*/\1/
7083c021
AC
10367t more2
10368s/["\\]/\\&/g; s/^/"/; s/$/"/
10369p
10370b
10371:more2
10372s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10373p
10374g
10375s/.\{148\}//
10376t delim
10377' <conf$$subs.awk | sed '
10378/^[^""]/{
10379 N
10380 s/\n//
10381}
10382' >>$CONFIG_STATUS || ac_write_fail=1
10383rm -f conf$$subs.awk
10384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10385_ACAWK
b6d0720c 10386cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7083c021
AC
10387 for (key in S) S_is_set[key] = 1
10388 FS = "\a"
212380e3 10389
7083c021
AC
10390}
10391{
10392 line = $ 0
10393 nfields = split(line, field, "@")
10394 substed = 0
10395 len = length(field[1])
10396 for (i = 2; i < nfields; i++) {
10397 key = field[i]
10398 keylen = length(key)
10399 if (S_is_set[key]) {
10400 value = S[key]
10401 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10402 len += length(value) + length(field[++i])
10403 substed = 1
10404 } else
10405 len += 1 + keylen
10406 }
631ef239 10407
7083c021
AC
10408 print line
10409}
10410
10411_ACAWK
631ef239 10412_ACEOF
7083c021
AC
10413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10414if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10415 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10416else
10417 cat
b6d0720c
AC
10418fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10419 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
212380e3 10420_ACEOF
631ef239 10421
b6d0720c
AC
10422# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10423# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
631ef239
AC
10424# trailing colons and then remove the whole line if VPATH becomes empty
10425# (actually we leave an empty line to preserve line numbers).
10426if test "x$srcdir" = x.; then
b6d0720c
AC
10427 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10428h
10429s///
10430s/^/:/
10431s/[ ]*$/:/
10432s/:\$(srcdir):/:/g
10433s/:\${srcdir}:/:/g
10434s/:@srcdir@:/:/g
10435s/^:*//
631ef239 10436s/:*$//
b6d0720c
AC
10437x
10438s/\(=[ ]*\).*/\1/
10439G
10440s/\n//
631ef239
AC
10441s/^[^=]*=[ ]*$//
10442}'
10443fi
10444
7083c021 10445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10446fi # test -n "$CONFIG_FILES"
10447
7083c021
AC
10448# Set up the scripts for CONFIG_HEADERS section.
10449# No need to generate them if there are no CONFIG_HEADERS.
10450# This happens for instance with `./config.status Makefile'.
10451if test -n "$CONFIG_HEADERS"; then
b6d0720c 10452cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7083c021
AC
10453BEGIN {
10454_ACEOF
10455
10456# Transform confdefs.h into an awk script `defines.awk', embedded as
10457# here-document in config.status, that substitutes the proper values into
10458# config.h.in to produce config.h.
10459
10460# Create a delimiter string that does not exist in confdefs.h, to ease
10461# handling of long lines.
10462ac_delim='%!_!# '
10463for ac_last_try in false false :; do
b6d0720c
AC
10464 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10465 if test -z "$ac_tt"; then
7083c021
AC
10466 break
10467 elif $ac_last_try; then
b6d0720c 10468 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7083c021
AC
10469 else
10470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10471 fi
10472done
10473
10474# For the awk script, D is an array of macro values keyed by name,
10475# likewise P contains macro parameters if any. Preserve backslash
10476# newline sequences.
10477
10478ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10479sed -n '
10480s/.\{148\}/&'"$ac_delim"'/g
10481t rset
10482:rset
10483s/^[ ]*#[ ]*define[ ][ ]*/ /
10484t def
10485d
10486:def
10487s/\\$//
10488t bsnl
10489s/["\\]/\\&/g
10490s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10491D["\1"]=" \3"/p
10492s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10493d
10494:bsnl
10495s/["\\]/\\&/g
10496s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10497D["\1"]=" \3\\\\\\n"\\/p
10498t cont
10499s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10500t cont
10501d
10502:cont
10503n
10504s/.\{148\}/&'"$ac_delim"'/g
10505t clear
10506:clear
10507s/\\$//
10508t bsnlc
10509s/["\\]/\\&/g; s/^/"/; s/$/"/p
10510d
10511:bsnlc
10512s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10513b cont
10514' <confdefs.h | sed '
10515s/'"$ac_delim"'/"\\\
10516"/g' >>$CONFIG_STATUS || ac_write_fail=1
10517
10518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10519 for (key in D) D_is_set[key] = 1
10520 FS = "\a"
10521}
10522/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10523 line = \$ 0
10524 split(line, arg, " ")
10525 if (arg[1] == "#") {
10526 defundef = arg[2]
10527 mac1 = arg[3]
10528 } else {
10529 defundef = substr(arg[1], 2)
10530 mac1 = arg[2]
10531 }
10532 split(mac1, mac2, "(") #)
10533 macro = mac2[1]
10534 prefix = substr(line, 1, index(line, defundef) - 1)
10535 if (D_is_set[macro]) {
10536 # Preserve the white space surrounding the "#".
10537 print prefix "define", macro P[macro] D[macro]
10538 next
10539 } else {
10540 # Replace #undef with comments. This is necessary, for example,
10541 # in the case of _POSIX_SOURCE, which is predefined and required
10542 # on some systems where configure will not decide to define it.
10543 if (defundef == "undef") {
10544 print "/*", prefix defundef, macro, "*/"
10545 next
10546 }
10547 }
10548}
10549{ print }
10550_ACAWK
10551_ACEOF
10552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b6d0720c 10553 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7083c021
AC
10554fi # test -n "$CONFIG_HEADERS"
10555
631ef239 10556
7083c021
AC
10557eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10558shift
10559for ac_tag
631ef239
AC
10560do
10561 case $ac_tag in
10562 :[FHLC]) ac_mode=$ac_tag; continue;;
10563 esac
10564 case $ac_mode$ac_tag in
10565 :[FHL]*:*);;
b6d0720c 10566 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
631ef239
AC
10567 :[FH]-) ac_tag=-:-;;
10568 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
212380e3 10569 esac
631ef239
AC
10570 ac_save_IFS=$IFS
10571 IFS=:
10572 set x $ac_tag
10573 IFS=$ac_save_IFS
10574 shift
10575 ac_file=$1
10576 shift
212380e3 10577
631ef239
AC
10578 case $ac_mode in
10579 :L) ac_source=$1;;
10580 :[FH])
10581 ac_file_inputs=
10582 for ac_f
10583 do
10584 case $ac_f in
b6d0720c 10585 -) ac_f="$ac_tmp/stdin";;
631ef239
AC
10586 *) # Look for the file first in the build tree, then in the source tree
10587 # (if the path is not absolute). The absolute path cannot be DOS-style,
10588 # because $ac_f cannot contain `:'.
10589 test -f "$ac_f" ||
10590 case $ac_f in
10591 [\\/$]*) false;;
10592 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10593 esac ||
b6d0720c 10594 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
631ef239 10595 esac
7083c021
AC
10596 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10597 as_fn_append ac_file_inputs " '$ac_f'"
631ef239
AC
10598 done
10599
10600 # Let's still pretend it is `configure' which instantiates (i.e., don't
10601 # use $as_me), people would be surprised to read:
10602 # /* config.h. Generated by config.status. */
7083c021
AC
10603 configure_input='Generated from '`
10604 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10605 `' by configure.'
631ef239
AC
10606 if test x"$ac_file" != x-; then
10607 configure_input="$ac_file. $configure_input"
7083c021
AC
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10609$as_echo "$as_me: creating $ac_file" >&6;}
631ef239 10610 fi
7083c021
AC
10611 # Neutralize special characters interpreted by sed in replacement strings.
10612 case $configure_input in #(
10613 *\&* | *\|* | *\\* )
10614 ac_sed_conf_input=`$as_echo "$configure_input" |
10615 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10616 *) ac_sed_conf_input=$configure_input;;
10617 esac
631ef239
AC
10618
10619 case $ac_tag in
b6d0720c
AC
10620 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
631ef239
AC
10622 esac
10623 ;;
10624 esac
10625
10626 ac_dir=`$as_dirname -- "$ac_file" ||
212380e3
AC
10627$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10628 X"$ac_file" : 'X\(//\)[^/]' \| \
10629 X"$ac_file" : 'X\(//\)$' \| \
631ef239 10630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 10631$as_echo X"$ac_file" |
631ef239
AC
10632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10633 s//\1/
10634 q
10635 }
10636 /^X\(\/\/\)[^/].*/{
10637 s//\1/
10638 q
10639 }
10640 /^X\(\/\/\)$/{
10641 s//\1/
10642 q
10643 }
10644 /^X\(\/\).*/{
10645 s//\1/
10646 q
10647 }
10648 s/.*/./; q'`
7083c021 10649 as_dir="$ac_dir"; as_fn_mkdir_p
212380e3
AC
10650 ac_builddir=.
10651
631ef239
AC
10652case "$ac_dir" in
10653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10654*)
7083c021 10655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 10656 # A ".." for each directory in $ac_dir_suffix.
7083c021 10657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
10658 case $ac_top_builddir_sub in
10659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10661 esac ;;
10662esac
10663ac_abs_top_builddir=$ac_pwd
10664ac_abs_builddir=$ac_pwd$ac_dir_suffix
10665# for backward compatibility:
10666ac_top_builddir=$ac_top_build_prefix
212380e3
AC
10667
10668case $srcdir in
631ef239 10669 .) # We are building in place.
212380e3 10670 ac_srcdir=.
631ef239
AC
10671 ac_top_srcdir=$ac_top_builddir_sub
10672 ac_abs_top_srcdir=$ac_pwd ;;
10673 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 10674 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
10675 ac_top_srcdir=$srcdir
10676 ac_abs_top_srcdir=$srcdir ;;
10677 *) # Relative name.
10678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10679 ac_top_srcdir=$ac_top_build_prefix$srcdir
10680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 10681esac
631ef239 10682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
212380e3 10683
212380e3 10684
631ef239
AC
10685 case $ac_mode in
10686 :F)
10687 #
10688 # CONFIG_FILE
10689 #
212380e3
AC
10690
10691 case $INSTALL in
10692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
631ef239 10693 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
212380e3 10694 esac
631ef239 10695_ACEOF
212380e3 10696
7083c021 10697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10698# If the template does not know about datarootdir, expand it.
10699# FIXME: This hack should be removed a few years after 2.60.
10700ac_datarootdir_hack=; ac_datarootdir_seen=
7083c021
AC
10701ac_sed_dataroot='
10702/datarootdir/ {
631ef239
AC
10703 p
10704 q
10705}
10706/@datadir@/p
10707/@docdir@/p
10708/@infodir@/p
10709/@localedir@/p
7083c021
AC
10710/@mandir@/p'
10711case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
631ef239
AC
10712*datarootdir*) ac_datarootdir_seen=yes;;
10713*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7083c021
AC
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10715$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
631ef239 10716_ACEOF
7083c021 10717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239
AC
10718 ac_datarootdir_hack='
10719 s&@datadir@&$datadir&g
10720 s&@docdir@&$docdir&g
10721 s&@infodir@&$infodir&g
10722 s&@localedir@&$localedir&g
10723 s&@mandir@&$mandir&g
7083c021 10724 s&\\\${datarootdir}&$datarootdir&g' ;;
631ef239 10725esac
212380e3 10726_ACEOF
631ef239
AC
10727
10728# Neutralize VPATH when `$srcdir' = `.'.
10729# Shell code in configure.ac might set extrasub.
10730# FIXME: do we really want to maintain this feature?
7083c021
AC
10731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10732ac_sed_extra="$ac_vpsub
212380e3
AC
10733$extrasub
10734_ACEOF
7083c021 10735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3
AC
10736:t
10737/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7083c021 10738s|@configure_input@|$ac_sed_conf_input|;t t
631ef239 10739s&@top_builddir@&$ac_top_builddir_sub&;t t
7083c021 10740s&@top_build_prefix@&$ac_top_build_prefix&;t t
631ef239
AC
10741s&@srcdir@&$ac_srcdir&;t t
10742s&@abs_srcdir@&$ac_abs_srcdir&;t t
10743s&@top_srcdir@&$ac_top_srcdir&;t t
10744s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10745s&@builddir@&$ac_builddir&;t t
10746s&@abs_builddir@&$ac_abs_builddir&;t t
10747s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10748s&@INSTALL@&$ac_INSTALL&;t t
10749$ac_datarootdir_hack
7083c021 10750"
b6d0720c
AC
10751eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10752 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
10753
10754test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b6d0720c
AC
10755 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10756 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10757 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7083c021 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 10759which seems to be undefined. Please make sure it is defined" >&5
7083c021 10760$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 10761which seems to be undefined. Please make sure it is defined" >&2;}
631ef239 10762
b6d0720c 10763 rm -f "$ac_tmp/stdin"
212380e3 10764 case $ac_file in
b6d0720c
AC
10765 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10766 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7083c021 10767 esac \
b6d0720c 10768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
10769 ;;
10770 :H)
10771 #
10772 # CONFIG_HEADER
10773 #
212380e3 10774 if test x"$ac_file" != x-; then
7083c021
AC
10775 {
10776 $as_echo "/* $configure_input */" \
b6d0720c
AC
10777 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10778 } >"$ac_tmp/config.h" \
10779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10780 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7083c021
AC
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10782$as_echo "$as_me: $ac_file is unchanged" >&6;}
212380e3 10783 else
7083c021 10784 rm -f "$ac_file"
b6d0720c
AC
10785 mv "$ac_tmp/config.h" "$ac_file" \
10786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
212380e3
AC
10787 fi
10788 else
7083c021 10789 $as_echo "/* $configure_input */" \
b6d0720c
AC
10790 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10791 || as_fn_error $? "could not create -" "$LINENO" 5
212380e3 10792 fi
631ef239
AC
10793 ;;
10794
10795
10796 esac
10797
10798done # for ac_tag
212380e3 10799
212380e3 10800
7083c021 10801as_fn_exit 0
212380e3 10802_ACEOF
212380e3
AC
10803ac_clean_files=$ac_clean_files_save
10804
7083c021 10805test $ac_write_fail = 0 ||
b6d0720c 10806 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7083c021 10807
212380e3
AC
10808
10809# configure is writing to config.log, and then calls config.status.
10810# config.status does its own redirection, appending to config.log.
10811# Unfortunately, on DOS this fails, as config.log is still kept open
10812# by configure, so config.status won't be able to write to it; its
10813# output is simply discarded. So we exec the FD to /dev/null,
10814# effectively closing config.log, so it can be properly (re)opened and
10815# appended to by config.status. When coming back to configure, we
10816# need to make the FD available again.
10817if test "$no_create" != yes; then
10818 ac_cs_success=:
10819 ac_config_status_args=
10820 test "$silent" = yes &&
10821 ac_config_status_args="$ac_config_status_args --quiet"
10822 exec 5>/dev/null
10823 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10824 exec 5>>config.log
10825 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10826 # would make configure fail if this is the last instruction.
b6d0720c 10827 $ac_cs_success || as_fn_exit 1
212380e3
AC
10828fi
10829
b676ea3b
AC
10830#
10831# CONFIG_SUBDIRS section.
10832#
10833if test "$no_recursion" != yes; then
10834
7083c021
AC
10835 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10836 # so they do not pile up.
b676ea3b
AC
10837 ac_sub_configure_args=
10838 ac_prev=
10839 eval "set x $ac_configure_args"
10840 shift
10841 for ac_arg
10842 do
10843 if test -n "$ac_prev"; then
10844 ac_prev=
10845 continue
10846 fi
10847 case $ac_arg in
10848 -cache-file | --cache-file | --cache-fil | --cache-fi \
10849 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10850 ac_prev=cache_file ;;
10851 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10852 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10853 | --c=*)
10854 ;;
10855 --config-cache | -C)
10856 ;;
10857 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10858 ac_prev=srcdir ;;
10859 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10860 ;;
10861 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10862 ac_prev=prefix ;;
10863 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10864 ;;
7083c021
AC
10865 --disable-option-checking)
10866 ;;
b676ea3b
AC
10867 *)
10868 case $ac_arg in
7083c021 10869 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b676ea3b 10870 esac
7083c021 10871 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
b676ea3b
AC
10872 esac
10873 done
10874
10875 # Always prepend --prefix to ensure using the same prefix
10876 # in subdir configurations.
10877 ac_arg="--prefix=$prefix"
10878 case $ac_arg in
7083c021 10879 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b676ea3b
AC
10880 esac
10881 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10882
10883 # Pass --silent
10884 if test "$silent" = yes; then
10885 ac_sub_configure_args="--silent $ac_sub_configure_args"
10886 fi
10887
7083c021
AC
10888 # Always prepend --disable-option-checking to silence warnings, since
10889 # different subdirs can have different --enable and --with options.
10890 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10891
b676ea3b
AC
10892 ac_popdir=`pwd`
10893 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10894
10895 # Do not complain, so a configure script can configure whichever
10896 # parts of a large source tree are present.
10897 test -d "$srcdir/$ac_dir" || continue
10898
10899 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
7083c021
AC
10900 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10901 $as_echo "$ac_msg" >&6
10902 as_dir="$ac_dir"; as_fn_mkdir_p
b676ea3b
AC
10903 ac_builddir=.
10904
10905case "$ac_dir" in
10906.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10907*)
7083c021 10908 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
b676ea3b 10909 # A ".." for each directory in $ac_dir_suffix.
7083c021 10910 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
b676ea3b
AC
10911 case $ac_top_builddir_sub in
10912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10914 esac ;;
10915esac
10916ac_abs_top_builddir=$ac_pwd
10917ac_abs_builddir=$ac_pwd$ac_dir_suffix
10918# for backward compatibility:
10919ac_top_builddir=$ac_top_build_prefix
10920
10921case $srcdir in
10922 .) # We are building in place.
10923 ac_srcdir=.
10924 ac_top_srcdir=$ac_top_builddir_sub
10925 ac_abs_top_srcdir=$ac_pwd ;;
10926 [\\/]* | ?:[\\/]* ) # Absolute name.
10927 ac_srcdir=$srcdir$ac_dir_suffix;
10928 ac_top_srcdir=$srcdir
10929 ac_abs_top_srcdir=$srcdir ;;
10930 *) # Relative name.
10931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10932 ac_top_srcdir=$ac_top_build_prefix$srcdir
10933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10934esac
10935ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10936
10937
10938 cd "$ac_dir"
10939
10940 # Check for guested configure; otherwise get Cygnus style configure.
10941 if test -f "$ac_srcdir/configure.gnu"; then
10942 ac_sub_configure=$ac_srcdir/configure.gnu
10943 elif test -f "$ac_srcdir/configure"; then
10944 ac_sub_configure=$ac_srcdir/configure
10945 elif test -f "$ac_srcdir/configure.in"; then
10946 # This should be Cygnus configure.
10947 ac_sub_configure=$ac_aux_dir/configure
10948 else
7083c021
AC
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10950$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
b676ea3b
AC
10951 ac_sub_configure=
10952 fi
10953
10954 # The recursion is here.
10955 if test -n "$ac_sub_configure"; then
10956 # Make the cache file name correct relative to the subdirectory.
10957 case $cache_file in
10958 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10959 *) # Relative name.
10960 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10961 esac
10962
7083c021
AC
10963 { $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
10964$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
b676ea3b
AC
10965 # The eval makes quoting arguments work.
10966 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10967 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
b6d0720c 10968 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
b676ea3b
AC
10969 fi
10970
10971 cd "$ac_popdir"
10972 done
10973fi
7083c021
AC
10974if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10976$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10977fi
b676ea3b 10978
212380e3
AC
10979
10980if test "$cf_openssl_version_ok" = yes; then
10981 openssl="yes"
10982else
10983 openssl="no"
10984fi
10985
10986if test "$shared_modules" = yes; then
10987 modules=shared
10988else
10989 modules=static
10990fi
10991
10992echo "
b6d0720c 10993Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
212380e3
AC
10994 Install directory : $prefix
10995
10996 Ziplinks : $zlib
10997 OpenSSL : $openssl
212380e3
AC
10998 Socket Engine : $SELECT_TYPE
10999 Small network : $small_net
11000 Block allocator : $balloc
212380e3
AC
11001
11002 Nickname length : $NICKLEN
11003 Topic length : $TOPICLEN
11004
b6d0720c 11005Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.
212380e3 11006"