]> jfr.im git - solanum.git/blame - configure
Change default --with-nicklen to 31, like atheme-services.
[solanum.git] / configure
CommitLineData
212380e3
AC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
b6d0720c 3# Generated by GNU Autoconf 2.68 for charybdis 3.3.0.
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'
5a241f54
AC
562PACKAGE_VERSION='3.3.0'
563PACKAGE_STRING='charybdis 3.3.0'
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
5a241f54 1279\`configure' configures charybdis 3.3.0 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
5a241f54 1340 short | recursive ) echo "Configuration of charybdis 3.3.0:";;
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
AC
1377 --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default
1378 50, 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
5a241f54 1464charybdis configure 3.3.0
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
5a241f54 2063It was created by charybdis $as_me 3.3.0, 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
212380e3
AC
7911 if test $withval -ge 50; then
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;}
212380e3
AC
7915 else
7916 NICKLEN="$withval"
7917 fi
7918
7919else
b583faf9 7920 NICKLEN=50
631ef239 7921fi
212380e3
AC
7922
7923
212380e3 7924
631ef239 7925# Check whether --with-topiclen was given.
7083c021 7926if test "${with_topiclen+set}" = set; then :
631ef239 7927 withval=$with_topiclen;
212380e3
AC
7928 if test $withval -ge 390; then
7929 TOPICLEN=390
7083c021
AC
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
7931$as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
212380e3
AC
7932 else
7933 TOPICLEN=$withval
7934 fi
7935
7936else
7937 TOPICLEN=390
212380e3
AC
7938fi
7939
212380e3
AC
7940
7941
7942cat >>confdefs.h <<_ACEOF
7943#define TOPICLEN ${TOPICLEN}
7944_ACEOF
7945
7946
7947cat >>confdefs.h <<_ACEOF
7948#define NICKLEN (${NICKLEN}+1)
7949_ACEOF
7950
7951
b676ea3b 7952shared_modules="yes"
212380e3 7953if test "$shared_modules" = yes; then
212380e3 7954 if test "$CC" = tcc -a "$TenDRA" = "no"; then
7083c021
AC
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
7956$as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
212380e3
AC
7957 shared_modules="no"
7958 fi
7959fi
7960
7961if test "$shared_modules" = yes; then
7083c021
AC
7962 DYNLINK_C=dynlink.c
7963 for ac_header in dlfcn.h
7964do :
7965 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
b6d0720c 7966if test "x$ac_cv_header_dlfcn_h" = xyes; then :
212380e3 7967 cat >>confdefs.h <<_ACEOF
7083c021 7968#define HAVE_DLFCN_H 1
212380e3
AC
7969_ACEOF
7970
7971fi
7972
7973done
7974
7083c021
AC
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
7976$as_echo_n "checking for library containing shl_load... " >&6; }
b6d0720c 7977if ${ac_cv_search_shl_load+:} false; then :
7083c021 7978 $as_echo_n "(cached) " >&6
212380e3
AC
7979else
7980 ac_func_search_save_LIBS=$LIBS
7083c021 7981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7982/* end confdefs.h. */
7983
631ef239
AC
7984/* Override any GCC internal prototype to avoid an error.
7985 Use char because int might match the return type of a GCC
7986 builtin and then its argument prototype would still apply. */
212380e3
AC
7987#ifdef __cplusplus
7988extern "C"
7989#endif
212380e3
AC
7990char shl_load ();
7991int
7992main ()
7993{
631ef239 7994return shl_load ();
212380e3
AC
7995 ;
7996 return 0;
7997}
7998_ACEOF
631ef239
AC
7999for ac_lib in '' dld; do
8000 if test -z "$ac_lib"; then
8001 ac_res="none required"
8002 else
8003 ac_res=-l$ac_lib
8004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8005 fi
7083c021 8006 if ac_fn_c_try_link "$LINENO"; then :
631ef239 8007 ac_cv_search_shl_load=$ac_res
631ef239 8008fi
7083c021
AC
8009rm -f core conftest.err conftest.$ac_objext \
8010 conftest$ac_exeext
b6d0720c 8011 if ${ac_cv_search_shl_load+:} false; then :
631ef239 8012 break
212380e3 8013fi
631ef239 8014done
b6d0720c 8015if ${ac_cv_search_shl_load+:} false; then :
7083c021 8016
631ef239
AC
8017else
8018 ac_cv_search_shl_load=no
212380e3 8019fi
631ef239 8020rm conftest.$ac_ext
212380e3
AC
8021LIBS=$ac_func_search_save_LIBS
8022fi
7083c021
AC
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8024$as_echo "$ac_cv_search_shl_load" >&6; }
631ef239 8025ac_res=$ac_cv_search_shl_load
7083c021 8026if test "$ac_res" != no; then :
631ef239 8027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
8028
8029
7083c021 8030$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
212380e3
AC
8031
8032 SUFFIX=".sl"
8033 MOD_TARGET=hpux_shared
8034 SEDOBJ="s/\.o/.sl/g"
8035
8036else
8037
7083c021
AC
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8039$as_echo_n "checking for library containing dlopen... " >&6; }
b6d0720c 8040if ${ac_cv_search_dlopen+:} false; then :
7083c021 8041 $as_echo_n "(cached) " >&6
212380e3
AC
8042else
8043 ac_func_search_save_LIBS=$LIBS
7083c021 8044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8045/* end confdefs.h. */
8046
631ef239
AC
8047/* Override any GCC internal prototype to avoid an error.
8048 Use char because int might match the return type of a GCC
8049 builtin and then its argument prototype would still apply. */
212380e3
AC
8050#ifdef __cplusplus
8051extern "C"
8052#endif
212380e3
AC
8053char dlopen ();
8054int
8055main ()
8056{
631ef239 8057return dlopen ();
212380e3
AC
8058 ;
8059 return 0;
8060}
8061_ACEOF
631ef239
AC
8062for ac_lib in '' dl c_r; do
8063 if test -z "$ac_lib"; then
8064 ac_res="none required"
8065 else
8066 ac_res=-l$ac_lib
8067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8068 fi
7083c021 8069 if ac_fn_c_try_link "$LINENO"; then :
631ef239 8070 ac_cv_search_dlopen=$ac_res
631ef239 8071fi
7083c021
AC
8072rm -f core conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext
b6d0720c 8074 if ${ac_cv_search_dlopen+:} false; then :
631ef239 8075 break
212380e3 8076fi
631ef239 8077done
b6d0720c 8078if ${ac_cv_search_dlopen+:} false; then :
7083c021 8079
631ef239
AC
8080else
8081 ac_cv_search_dlopen=no
212380e3 8082fi
631ef239 8083rm conftest.$ac_ext
212380e3
AC
8084LIBS=$ac_func_search_save_LIBS
8085fi
7083c021
AC
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8087$as_echo "$ac_cv_search_dlopen" >&6; }
631ef239 8088ac_res=$ac_cv_search_dlopen
7083c021 8089if test "$ac_res" != no; then :
631ef239 8090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
8091
8092
7083c021 8093$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
212380e3
AC
8094
8095 SUFFIX=".so"
8096 MOD_TARGET=shared_modules
8097 SEDOBJ="s/\.o/.so/g"
8098 if test "$AppleGCC" = yes; then
7083c021
AC
8099 for ac_header in mach-o/dyld.h
8100do :
8101 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
b6d0720c 8102if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
212380e3 8103 cat >>confdefs.h <<_ACEOF
7083c021 8104#define HAVE_MACH_O_DYLD_H 1
212380e3
AC
8105_ACEOF
8106
8107fi
8108
8109done
8110
8111 fi
7083c021 8112 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
b6d0720c 8113if test "x$ac_cv_func_dlsym" = xyes; then :
631ef239 8114
212380e3
AC
8115else
8116
7083c021
AC
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8118$as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
212380e3
AC
8119 shared_modules=no
8120
8121fi
8122
7083c021
AC
8123 for ac_func in dlfunc
8124do :
8125 ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc"
b6d0720c 8126if test "x$ac_cv_func_dlfunc" = xyes; then :
212380e3 8127 cat >>confdefs.h <<_ACEOF
7083c021 8128#define HAVE_DLFUNC 1
212380e3
AC
8129_ACEOF
8130
8131fi
8132done
8133
8134
8135else
8136
8137 shared_modules=no
8138
8139fi
8140
8141
8142fi
8143
8144fi
8145
8146
8147cat >>confdefs.h <<_ACEOF
8148#define SHARED_SUFFIX "$SUFFIX"
8149_ACEOF
8150
8151
8152if test "$shared_modules" = yes; then
8153 # The GNU linker requires the -export-dynamic option to make
8154 # all symbols visible in the dynamic symbol table.
8155 hold_ldflags=$LDFLAGS
7083c021
AC
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8157$as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
212380e3 8158 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
7083c021 8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8160/* end confdefs.h. */
8161
8162int
8163main ()
8164{
8165int i;
8166 ;
8167 return 0;
8168}
8169_ACEOF
7083c021 8170if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
8171 found=yes
8172else
7083c021 8173 found=no
212380e3 8174fi
7083c021
AC
8175rm -f core conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
8177 LDFLAGS=$hold_ldflags
8178
8179 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
8180 found="no, IRIX ld uses -B,dynamic"
8181 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
8182 fi
8183
8184 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
8185 found="no, AIX ld uses -G -brtl"
8186 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
8187 fi
8188
7083c021
AC
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8190$as_echo "$found" >&6; }
212380e3
AC
8191
8192 if test "$found" = yes; then
8193 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
8194 fi
8195
7083c021
AC
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8197$as_echo_n "checking for compiler option to produce PIC... " >&6; }
212380e3 8198 if test "$SGS" = "yes"; then
7083c021
AC
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8200$as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
212380e3
AC
8201 PICFLAGS="-KPIC -DPIC -G"
8202 fi
8203
8204 if test "$AppleGCC" = "yes"; then
7083c021
AC
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8206$as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
212380e3
AC
8207 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
8208 fi
8209 if test "$HPUX" = "yes" -a "$CC" != gcc; then
7083c021
AC
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8211$as_echo "HP-UX cc: +z -r -q -n" >&6; }
212380e3 8212 PICFLAGS="+z -r -q -n -c"
7083c021
AC
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8214$as_echo_n "checking if +ESfic is required on this platform... " >&6; }
212380e3
AC
8215
8216 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
7083c021
AC
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218$as_echo "no" >&6; }
212380e3 8219 else
7083c021
AC
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8221$as_echo "yes" >&6; }
212380e3
AC
8222 PICFLAGS="$PICFLAGS +ESfic"
8223 fi
8224
8225 LDFLAGS="${LDFLAGS} -Wl,-E"
8226 fi
8227 if test "$Tru" = yes -a "$CC" != gcc; then
7083c021
AC
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8229$as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
212380e3
AC
8230 PICFLAGS="-shared -expect_unresolved '*' "
8231 LDFLAGS="-call_shared"
8232 fi
8233 if test -z "$PICFLAGS"; then
8234 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7083c021
AC
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8236$as_echo "gcc: -fPIC -DPIC -shared" >&6; }
212380e3
AC
8237 PICFLAGS="-fPIC -DPIC -shared"
8238 else
7083c021
AC
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240$as_echo "no" >&6; }
212380e3
AC
8241 shared_modules=no
8242 fi
8243 fi
8244fi
8245
1a82970f
JT
8246# rpath, for finding libratbox.so at run time
8247hold_ldflags=$LDFLAGS
7083c021
AC
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8249$as_echo_n "checking for the ld -rpath flag... " >&6; }
1a82970f 8250LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
7083c021 8251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1a82970f
JT
8252/* end confdefs.h. */
8253
8254int
8255main ()
8256{
8257int i;
8258 ;
8259 return 0;
8260}
8261_ACEOF
7083c021 8262if ac_fn_c_try_link "$LINENO"; then :
1a82970f
JT
8263 found=yes
8264else
7083c021 8265 found=no
1a82970f 8266fi
7083c021
AC
8267rm -f core conftest.err conftest.$ac_objext \
8268 conftest$ac_exeext conftest.$ac_ext
1a82970f 8269LDFLAGS=$hold_ldflags
7083c021
AC
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8271$as_echo "$found" >&6; }
1a82970f
JT
8272if test "$found" = yes; then
8273 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
8274fi
8275
212380e3
AC
8276# This must be down here, or it will mess up checks like the ones
8277# for -Wl,-export-dynamic
8278# -- jilles
d2c5159a 8279CWARNS=""
631ef239 8280# Check whether --enable-warnings was given.
7083c021 8281if test "${enable_warnings+set}" = set; then :
631ef239 8282 enableval=$enable_warnings;
212380e3
AC
8283IRC_CFLAGS="$IRC_CFLAGS -O0"
8284CFLAGS="$IRC_CFLAGS"
8285
8286
7083c021
AC
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8288$as_echo_n "checking GCC flag(s) -Wall... " >&6; }
212380e3
AC
8289 if test "${GCC-no}" = yes
8290 then
b6d0720c 8291 if ${charybdis_cv_c_gcc_w_all+:} false; then :
7083c021 8292 $as_echo_n "(cached) " >&6
212380e3
AC
8293else
8294
8295 oldcflags="${CFLAGS-}"
8296 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
7083c021 8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8298/* end confdefs.h. */
8299
8300#include <string.h>
8301#include <stdio.h>
8302int main(void);
8303
8304int
8305main ()
8306{
8307
b1fc1658 8308 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8309
8310 ;
8311 return 0;
8312}
8313_ACEOF
7083c021 8314if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8315 charybdis_cv_c_gcc_w_all=yes
8316else
7083c021 8317 charybdis_cv_c_gcc_w_all=no
212380e3 8318fi
631ef239 8319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8320 CFLAGS="${oldcflags}"
8321fi
8322
8323 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
8324 CWARNS="${CWARNS}-Wall "
7083c021
AC
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8326$as_echo "ok" >&6; }
212380e3
AC
8327 else
8328 charybdis_cv_c_gcc_w_all=''
7083c021
AC
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330$as_echo "no" >&6; }
212380e3
AC
8331 fi
8332 else
7083c021
AC
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334$as_echo "no" >&6; }
212380e3
AC
8335 fi
8336
8337
7083c021
AC
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8339$as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
212380e3
AC
8340 if test "${GCC-no}" = yes
8341 then
b6d0720c 8342 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then :
7083c021 8343 $as_echo_n "(cached) " >&6
212380e3
AC
8344else
8345
8346 oldcflags="${CFLAGS-}"
8347 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
7083c021 8348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8349/* end confdefs.h. */
8350
8351#include <string.h>
8352#include <stdio.h>
8353int main(void);
8354
8355int
8356main ()
8357{
8358
b1fc1658 8359 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8360
8361 ;
8362 return 0;
8363}
8364_ACEOF
7083c021 8365if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8366 charybdis_cv_c_gcc_w_pointer_arith=yes
8367else
7083c021 8368 charybdis_cv_c_gcc_w_pointer_arith=no
212380e3 8369fi
631ef239 8370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8371 CFLAGS="${oldcflags}"
8372fi
8373
8374 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
8375 CWARNS="${CWARNS}-Wpointer-arith "
7083c021
AC
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8377$as_echo "ok" >&6; }
212380e3
AC
8378 else
8379 charybdis_cv_c_gcc_w_pointer_arith=''
7083c021
AC
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381$as_echo "no" >&6; }
212380e3
AC
8382 fi
8383 else
7083c021
AC
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385$as_echo "no" >&6; }
212380e3
AC
8386 fi
8387
8388
7083c021
AC
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8390$as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
212380e3
AC
8391 if test "${GCC-no}" = yes
8392 then
b6d0720c 8393 if ${charybdis_cv_c_gcc_w_implicit+:} false; then :
7083c021 8394 $as_echo_n "(cached) " >&6
212380e3
AC
8395else
8396
8397 oldcflags="${CFLAGS-}"
8398 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
7083c021 8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8400/* end confdefs.h. */
8401
8402#include <string.h>
8403#include <stdio.h>
8404int main(void);
8405
8406int
8407main ()
8408{
8409
b1fc1658 8410 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8411
8412 ;
8413 return 0;
8414}
8415_ACEOF
7083c021 8416if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8417 charybdis_cv_c_gcc_w_implicit=yes
8418else
7083c021 8419 charybdis_cv_c_gcc_w_implicit=no
212380e3 8420fi
631ef239 8421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8422 CFLAGS="${oldcflags}"
8423fi
8424
8425 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
8426 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
7083c021
AC
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8428$as_echo "ok" >&6; }
212380e3
AC
8429 else
8430 charybdis_cv_c_gcc_w_implicit=''
7083c021
AC
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432$as_echo "no" >&6; }
212380e3
AC
8433 fi
8434 else
7083c021
AC
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436$as_echo "no" >&6; }
212380e3
AC
8437 fi
8438
8439
7083c021
AC
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8441$as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
212380e3
AC
8442 if test "${GCC-no}" = yes
8443 then
b6d0720c 8444 if ${charybdis_cv_c_gcc_w_cast_align+:} false; then :
7083c021 8445 $as_echo_n "(cached) " >&6
212380e3
AC
8446else
8447
8448 oldcflags="${CFLAGS-}"
8449 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
7083c021 8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8451/* end confdefs.h. */
8452
8453#include <string.h>
8454#include <stdio.h>
8455int main(void);
8456
8457int
8458main ()
8459{
8460
b1fc1658 8461 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
7083c021
AC
8462
8463 ;
8464 return 0;
8465}
8466_ACEOF
8467if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8468 charybdis_cv_c_gcc_w_cast_align=yes
8469else
7083c021 8470 charybdis_cv_c_gcc_w_cast_align=no
212380e3 8471fi
631ef239 8472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8473 CFLAGS="${oldcflags}"
8474fi
8475
8476 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
8477 CWARNS="${CWARNS}-Wcast-align "
7083c021
AC
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8479$as_echo "ok" >&6; }
212380e3
AC
8480 else
8481 charybdis_cv_c_gcc_w_cast_align=''
7083c021
AC
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483$as_echo "no" >&6; }
212380e3
AC
8484 fi
8485 else
7083c021
AC
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487$as_echo "no" >&6; }
212380e3
AC
8488 fi
8489
8490
7083c021
AC
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8492$as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
212380e3
AC
8493 if test "${GCC-no}" = yes
8494 then
b6d0720c 8495 if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then :
7083c021 8496 $as_echo_n "(cached) " >&6
212380e3
AC
8497else
8498
8499 oldcflags="${CFLAGS-}"
8500 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
7083c021 8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8502/* end confdefs.h. */
8503
8504#include <string.h>
8505#include <stdio.h>
8506int main(void);
8507
8508int
8509main ()
8510{
8511
b1fc1658 8512 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8513
8514 ;
8515 return 0;
8516}
8517_ACEOF
7083c021 8518if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8519 charybdis_cv_c_gcc_w_cast_qual=yes
8520else
7083c021 8521 charybdis_cv_c_gcc_w_cast_qual=no
212380e3 8522fi
631ef239 8523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8524 CFLAGS="${oldcflags}"
8525fi
8526
8527 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
8528 CWARNS="${CWARNS}-Wcast-qual "
7083c021
AC
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8530$as_echo "ok" >&6; }
212380e3
AC
8531 else
8532 charybdis_cv_c_gcc_w_cast_qual=''
7083c021
AC
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8534$as_echo "no" >&6; }
212380e3
AC
8535 fi
8536 else
7083c021
AC
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538$as_echo "no" >&6; }
212380e3
AC
8539 fi
8540
8541
7083c021
AC
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8543$as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
d2c5159a
JT
8544 if test "${GCC-no}" = yes
8545 then
b6d0720c 8546 if ${charybdis_cv_c_gcc_w_write_strings+:} false; then :
7083c021 8547 $as_echo_n "(cached) " >&6
d2c5159a
JT
8548else
8549
8550 oldcflags="${CFLAGS-}"
8551 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
7083c021 8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d2c5159a
JT
8553/* end confdefs.h. */
8554
8555#include <string.h>
8556#include <stdio.h>
8557int main(void);
8558
8559int
8560main ()
8561{
8562
8563 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8564
8565 ;
8566 return 0;
8567}
8568_ACEOF
7083c021 8569if ac_fn_c_try_compile "$LINENO"; then :
bbe58888 8570 charybdis_cv_c_gcc_w_write_strings=yes
d2c5159a 8571else
7083c021 8572 charybdis_cv_c_gcc_w_write_strings=no
d2c5159a 8573fi
d2c5159a
JT
8574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575 CFLAGS="${oldcflags}"
8576fi
8577
bbe58888 8578 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
d2c5159a 8579 CWARNS="${CWARNS}-Wwrite-strings "
7083c021
AC
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8581$as_echo "ok" >&6; }
d2c5159a 8582 else
bbe58888 8583 charybdis_cv_c_gcc_w_write_strings=''
7083c021
AC
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585$as_echo "no" >&6; }
bbe58888
VY
8586 fi
8587 else
7083c021
AC
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
bbe58888
VY
8590 fi
8591
8592
7083c021
AC
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8594$as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
bbe58888
VY
8595 if test "${GCC-no}" = yes
8596 then
b6d0720c 8597 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then :
7083c021 8598 $as_echo_n "(cached) " >&6
bbe58888
VY
8599else
8600
8601 oldcflags="${CFLAGS-}"
8602 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
7083c021 8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bbe58888
VY
8604/* end confdefs.h. */
8605
8606#include <string.h>
8607#include <stdio.h>
8608int main(void);
8609
8610int
8611main ()
8612{
8613
8614 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8615
8616 ;
8617 return 0;
8618}
8619_ACEOF
7083c021 8620if ac_fn_c_try_compile "$LINENO"; then :
bbe58888
VY
8621 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
8622else
7083c021 8623 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
bbe58888 8624fi
bbe58888
VY
8625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626 CFLAGS="${oldcflags}"
8627fi
8628
8629 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
8630 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
7083c021
AC
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8632$as_echo "ok" >&6; }
bbe58888
VY
8633 else
8634 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
7083c021
AC
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636$as_echo "no" >&6; }
d2c5159a
JT
8637 fi
8638 else
7083c021
AC
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640$as_echo "no" >&6; }
d2c5159a
JT
8641 fi
8642
8643
7083c021
AC
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8645$as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
212380e3
AC
8646 if test "${GCC-no}" = yes
8647 then
b6d0720c 8648 if ${charybdis_cv_c_gcc_prototypes+:} false; then :
7083c021 8649 $as_echo_n "(cached) " >&6
212380e3
AC
8650else
8651
8652 oldcflags="${CFLAGS-}"
8653 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
7083c021 8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8655/* end confdefs.h. */
8656
8657#include <string.h>
8658#include <stdio.h>
8659int main(void);
8660
8661int
8662main ()
8663{
8664
b1fc1658 8665 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8666
8667 ;
8668 return 0;
8669}
8670_ACEOF
7083c021 8671if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8672 charybdis_cv_c_gcc_prototypes=yes
8673else
7083c021 8674 charybdis_cv_c_gcc_prototypes=no
212380e3 8675fi
631ef239 8676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8677 CFLAGS="${oldcflags}"
8678fi
8679
8680 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
8681 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
7083c021
AC
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8683$as_echo "ok" >&6; }
212380e3
AC
8684 else
8685 charybdis_cv_c_gcc_prototypes=''
7083c021
AC
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687$as_echo "no" >&6; }
212380e3
AC
8688 fi
8689 else
7083c021
AC
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691$as_echo "no" >&6; }
212380e3
AC
8692 fi
8693
8694
7083c021
AC
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
8696$as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
212380e3
AC
8697 if test "${GCC-no}" = yes
8698 then
b6d0720c 8699 if ${charybdis_cv_c_gcc_parenthesis+:} false; then :
7083c021 8700 $as_echo_n "(cached) " >&6
212380e3
AC
8701else
8702
8703 oldcflags="${CFLAGS-}"
8704 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
7083c021 8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8706/* end confdefs.h. */
8707
8708#include <string.h>
8709#include <stdio.h>
8710int main(void);
8711
8712int
8713main ()
8714{
8715
b1fc1658 8716 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8717
8718 ;
8719 return 0;
8720}
8721_ACEOF
7083c021 8722if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8723 charybdis_cv_c_gcc_parenthesis=yes
8724else
7083c021 8725 charybdis_cv_c_gcc_parenthesis=no
212380e3 8726fi
631ef239 8727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8728 CFLAGS="${oldcflags}"
8729fi
8730
8731 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
8732 CWARNS="${CWARNS}-Wparenthesis "
7083c021
AC
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8734$as_echo "ok" >&6; }
212380e3
AC
8735 else
8736 charybdis_cv_c_gcc_parenthesis=''
7083c021
AC
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738$as_echo "no" >&6; }
212380e3
AC
8739 fi
8740 else
7083c021
AC
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742$as_echo "no" >&6; }
212380e3
AC
8743 fi
8744
8745
7083c021
AC
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8747$as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
212380e3
AC
8748 if test "${GCC-no}" = yes
8749 then
b6d0720c 8750 if ${charybdis_cv_c_gcc_w+:} false; then :
7083c021 8751 $as_echo_n "(cached) " >&6
212380e3
AC
8752else
8753
8754 oldcflags="${CFLAGS-}"
8755 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
7083c021 8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8757/* end confdefs.h. */
8758
8759#include <string.h>
8760#include <stdio.h>
8761int main(void);
8762
8763int
8764main ()
8765{
8766
b1fc1658 8767 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8768
8769 ;
8770 return 0;
8771}
8772_ACEOF
7083c021 8773if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8774 charybdis_cv_c_gcc_w=yes
8775else
7083c021 8776 charybdis_cv_c_gcc_w=no
212380e3 8777fi
631ef239 8778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8779 CFLAGS="${oldcflags}"
8780fi
8781
8782 if test "x$charybdis_cv_c_gcc_w" = xyes; then
8783 CWARNS="${CWARNS}-W -Wno-unused "
7083c021
AC
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8785$as_echo "ok" >&6; }
212380e3
AC
8786 else
8787 charybdis_cv_c_gcc_w=''
7083c021
AC
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789$as_echo "no" >&6; }
212380e3
AC
8790 fi
8791 else
7083c021
AC
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793$as_echo "no" >&6; }
212380e3
AC
8794 fi
8795
8796
7083c021
AC
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8798$as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
212380e3
AC
8799 if test "${GCC-no}" = yes
8800 then
b6d0720c 8801 if ${charybdis_cv_c_gcc_w_extra+:} false; then :
7083c021 8802 $as_echo_n "(cached) " >&6
212380e3
AC
8803else
8804
8805 oldcflags="${CFLAGS-}"
8806 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
7083c021 8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8808/* end confdefs.h. */
8809
8810#include <string.h>
8811#include <stdio.h>
8812int main(void);
8813
8814int
8815main ()
8816{
8817
b1fc1658 8818 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8819
8820 ;
8821 return 0;
8822}
8823_ACEOF
7083c021 8824if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8825 charybdis_cv_c_gcc_w_extra=yes
8826else
7083c021 8827 charybdis_cv_c_gcc_w_extra=no
212380e3 8828fi
631ef239 8829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8830 CFLAGS="${oldcflags}"
8831fi
8832
8833 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
8834 CWARNS="${CWARNS}-Wextra "
7083c021
AC
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8836$as_echo "ok" >&6; }
212380e3
AC
8837 else
8838 charybdis_cv_c_gcc_w_extra=''
7083c021
AC
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
212380e3
AC
8841 fi
8842 else
7083c021
AC
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844$as_echo "no" >&6; }
212380e3
AC
8845 fi
8846
8847
7083c021
AC
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
8849$as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
212380e3
AC
8850 if test "${GCC-no}" = yes
8851 then
b6d0720c 8852 if ${charybdis_cv_c_gcc_w_shadow+:} false; then :
7083c021 8853 $as_echo_n "(cached) " >&6
212380e3
AC
8854else
8855
8856 oldcflags="${CFLAGS-}"
8857 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
7083c021 8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8859/* end confdefs.h. */
8860
8861#include <string.h>
8862#include <stdio.h>
8863int main(void);
8864
8865int
8866main ()
8867{
8868
b1fc1658 8869 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8870
8871 ;
8872 return 0;
8873}
8874_ACEOF
7083c021 8875if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8876 charybdis_cv_c_gcc_w_shadow=yes
8877else
7083c021 8878 charybdis_cv_c_gcc_w_shadow=no
212380e3 8879fi
631ef239 8880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8881 CFLAGS="${oldcflags}"
8882fi
8883
8884 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
8885 CWARNS="${CWARNS}-Wshadow "
7083c021
AC
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8887$as_echo "ok" >&6; }
212380e3
AC
8888 else
8889 charybdis_cv_c_gcc_w_shadow=''
7083c021
AC
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891$as_echo "no" >&6; }
212380e3
AC
8892 fi
8893 else
7083c021
AC
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895$as_echo "no" >&6; }
212380e3
AC
8896 fi
8897
8898
7083c021
AC
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
8900$as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
212380e3
AC
8901 if test "${GCC-no}" = yes
8902 then
b6d0720c 8903 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then :
7083c021 8904 $as_echo_n "(cached) " >&6
212380e3
AC
8905else
8906
8907 oldcflags="${CFLAGS-}"
8908 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
7083c021 8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8910/* end confdefs.h. */
8911
8912#include <string.h>
8913#include <stdio.h>
8914int main(void);
8915
8916int
8917main ()
8918{
8919
b1fc1658 8920 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8921
8922 ;
8923 return 0;
8924}
8925_ACEOF
7083c021 8926if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8927 charybdis_cv_c_gcc_w_missing_noreturn=yes
8928else
7083c021 8929 charybdis_cv_c_gcc_w_missing_noreturn=no
212380e3 8930fi
631ef239 8931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8932 CFLAGS="${oldcflags}"
8933fi
8934
8935 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
8936 CWARNS="${CWARNS}-Wmissing-noreturn "
7083c021
AC
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8938$as_echo "ok" >&6; }
212380e3
AC
8939 else
8940 charybdis_cv_c_gcc_w_missing_noreturn=''
7083c021
AC
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942$as_echo "no" >&6; }
212380e3
AC
8943 fi
8944 else
7083c021
AC
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946$as_echo "no" >&6; }
212380e3
AC
8947 fi
8948
8949
7083c021
AC
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
8951$as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
212380e3
AC
8952 if test "${GCC-no}" = yes
8953 then
b6d0720c 8954 if ${charybdis_cv_c_gcc_w_undef+:} false; then :
7083c021 8955 $as_echo_n "(cached) " >&6
212380e3
AC
8956else
8957
8958 oldcflags="${CFLAGS-}"
8959 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
7083c021 8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8961/* end confdefs.h. */
8962
8963#include <string.h>
8964#include <stdio.h>
8965int main(void);
8966
8967int
8968main ()
8969{
8970
b1fc1658 8971 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8972
8973 ;
8974 return 0;
8975}
8976_ACEOF
7083c021 8977if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8978 charybdis_cv_c_gcc_w_undef=yes
8979else
7083c021 8980 charybdis_cv_c_gcc_w_undef=no
212380e3 8981fi
631ef239 8982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8983 CFLAGS="${oldcflags}"
8984fi
8985
8986 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
8987 CWARNS="${CWARNS}-Wundef "
7083c021
AC
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8989$as_echo "ok" >&6; }
212380e3
AC
8990 else
8991 charybdis_cv_c_gcc_w_undef=''
7083c021
AC
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993$as_echo "no" >&6; }
212380e3
AC
8994 fi
8995 else
7083c021
AC
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997$as_echo "no" >&6; }
212380e3
AC
8998 fi
8999
9000
7083c021
AC
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
9002$as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
212380e3
AC
9003 if test "${GCC-no}" = yes
9004 then
b6d0720c 9005 if ${charybdis_cv_c_gcc_w_packed+:} false; then :
7083c021 9006 $as_echo_n "(cached) " >&6
212380e3
AC
9007else
9008
9009 oldcflags="${CFLAGS-}"
9010 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
7083c021 9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9012/* end confdefs.h. */
9013
9014#include <string.h>
9015#include <stdio.h>
9016int main(void);
9017
9018int
9019main ()
9020{
9021
b1fc1658 9022 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9023
9024 ;
9025 return 0;
9026}
9027_ACEOF
7083c021 9028if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9029 charybdis_cv_c_gcc_w_packed=yes
9030else
7083c021 9031 charybdis_cv_c_gcc_w_packed=no
212380e3 9032fi
631ef239 9033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9034 CFLAGS="${oldcflags}"
9035fi
9036
9037 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
9038 CWARNS="${CWARNS}-Wpacked "
7083c021
AC
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9040$as_echo "ok" >&6; }
212380e3
AC
9041 else
9042 charybdis_cv_c_gcc_w_packed=''
7083c021
AC
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044$as_echo "no" >&6; }
212380e3
AC
9045 fi
9046 else
7083c021
AC
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048$as_echo "no" >&6; }
212380e3
AC
9049 fi
9050
9051
7083c021
AC
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
9053$as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
212380e3
AC
9054 if test "${GCC-no}" = yes
9055 then
b6d0720c 9056 if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then :
7083c021 9057 $as_echo_n "(cached) " >&6
212380e3
AC
9058else
9059
9060 oldcflags="${CFLAGS-}"
9061 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
7083c021 9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9063/* end confdefs.h. */
9064
9065#include <string.h>
9066#include <stdio.h>
9067int main(void);
9068
9069int
9070main ()
9071{
9072
b1fc1658 9073 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9074
9075 ;
9076 return 0;
9077}
9078_ACEOF
7083c021 9079if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9080 charybdis_cv_c_gcc_w_nested_externs=yes
9081else
7083c021 9082 charybdis_cv_c_gcc_w_nested_externs=no
212380e3 9083fi
631ef239 9084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9085 CFLAGS="${oldcflags}"
9086fi
9087
9088 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
9089 CWARNS="${CWARNS}-Wnested-externs "
7083c021
AC
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9091$as_echo "ok" >&6; }
212380e3
AC
9092 else
9093 charybdis_cv_c_gcc_w_nested_externs=''
7083c021
AC
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095$as_echo "no" >&6; }
212380e3
AC
9096 fi
9097 else
7083c021
AC
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099$as_echo "no" >&6; }
212380e3
AC
9100 fi
9101
9102
7083c021
AC
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9104$as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
212380e3
AC
9105 if test "${GCC-no}" = yes
9106 then
b6d0720c 9107 if ${charybdis_cv_c_gcc_w_unused+:} false; then :
7083c021 9108 $as_echo_n "(cached) " >&6
212380e3
AC
9109else
9110
9111 oldcflags="${CFLAGS-}"
9112 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
7083c021 9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9114/* end confdefs.h. */
9115
9116#include <string.h>
9117#include <stdio.h>
9118int main(void);
9119
9120int
9121main ()
9122{
9123
b1fc1658 9124 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9125
9126 ;
9127 return 0;
9128}
9129_ACEOF
7083c021 9130if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9131 charybdis_cv_c_gcc_w_unused=yes
9132else
7083c021 9133 charybdis_cv_c_gcc_w_unused=no
212380e3 9134fi
631ef239 9135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9136 CFLAGS="${oldcflags}"
9137fi
9138
9139 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
9140 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
7083c021
AC
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9142$as_echo "ok" >&6; }
212380e3
AC
9143 else
9144 charybdis_cv_c_gcc_w_unused=''
7083c021
AC
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146$as_echo "no" >&6; }
212380e3
AC
9147 fi
9148 else
7083c021
AC
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150$as_echo "no" >&6; }
212380e3
AC
9151 fi
9152
9153
7083c021
AC
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9155$as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
212380e3
AC
9156 if test "${GCC-no}" = yes
9157 then
b6d0720c 9158 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then :
7083c021 9159 $as_echo_n "(cached) " >&6
212380e3
AC
9160else
9161
9162 oldcflags="${CFLAGS-}"
9163 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
7083c021 9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9165/* end confdefs.h. */
9166
9167#include <string.h>
9168#include <stdio.h>
9169int main(void);
9170
9171int
9172main ()
9173{
9174
b1fc1658 9175 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9176
9177 ;
9178 return 0;
9179}
9180_ACEOF
7083c021 9181if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9182 charybdis_cv_c_gcc_w_redundant_decls=yes
9183else
7083c021 9184 charybdis_cv_c_gcc_w_redundant_decls=no
212380e3 9185fi
631ef239 9186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9187 CFLAGS="${oldcflags}"
9188fi
9189
9190 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
9191 CWARNS="${CWARNS}-Wredundant-decls "
7083c021
AC
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9193$as_echo "ok" >&6; }
212380e3
AC
9194 else
9195 charybdis_cv_c_gcc_w_redundant_decls=''
7083c021
AC
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197$as_echo "no" >&6; }
212380e3
AC
9198 fi
9199 else
7083c021
AC
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201$as_echo "no" >&6; }
212380e3
AC
9202 fi
9203
9204
7083c021
AC
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9206$as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
212380e3
AC
9207 if test "${GCC-no}" = yes
9208 then
b6d0720c 9209 if ${charybdis_cv_c_gcc_w_float_equal+:} false; then :
7083c021 9210 $as_echo_n "(cached) " >&6
212380e3
AC
9211else
9212
9213 oldcflags="${CFLAGS-}"
9214 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
7083c021 9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9216/* end confdefs.h. */
9217
9218#include <string.h>
9219#include <stdio.h>
9220int main(void);
9221
9222int
9223main ()
9224{
9225
b1fc1658 9226 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9227
9228 ;
9229 return 0;
9230}
9231_ACEOF
7083c021 9232if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9233 charybdis_cv_c_gcc_w_float_equal=yes
9234else
7083c021 9235 charybdis_cv_c_gcc_w_float_equal=no
212380e3 9236fi
631ef239 9237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9238 CFLAGS="${oldcflags}"
9239fi
9240
9241 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
9242 CWARNS="${CWARNS}-Wfloat-equal "
7083c021
AC
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9244$as_echo "ok" >&6; }
212380e3
AC
9245 else
9246 charybdis_cv_c_gcc_w_float_equal=''
7083c021
AC
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248$as_echo "no" >&6; }
212380e3
AC
9249 fi
9250 else
7083c021
AC
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252$as_echo "no" >&6; }
212380e3
AC
9253 fi
9254
9255
7083c021
AC
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9257$as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
212380e3
AC
9258 if test "${GCC-no}" = yes
9259 then
b6d0720c 9260 if ${charybdis_cv_c_gcc_w_format+:} false; then :
7083c021 9261 $as_echo_n "(cached) " >&6
212380e3
AC
9262else
9263
9264 oldcflags="${CFLAGS-}"
4a584d41 9265 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
7083c021 9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9267/* end confdefs.h. */
9268
9269#include <string.h>
9270#include <stdio.h>
9271int main(void);
9272
9273int
9274main ()
9275{
7083c021
AC
9276
9277 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9278
212380e3
AC
9279 ;
9280 return 0;
9281}
9282_ACEOF
7083c021
AC
9283if ac_fn_c_try_compile "$LINENO"; then :
9284 charybdis_cv_c_gcc_w_format=yes
212380e3 9285else
7083c021
AC
9286 charybdis_cv_c_gcc_w_format=no
9287fi
9288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9289 CFLAGS="${oldcflags}"
9290fi
9291
9292 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
9293 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9295$as_echo "ok" >&6; }
9296 else
9297 charybdis_cv_c_gcc_w_format=''
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299$as_echo "no" >&6; }
9300 fi
9301 else
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303$as_echo "no" >&6; }
9304 fi
9305
9306
9307IRC_CFLAGS="$CFLAGS"
212380e3 9308
212380e3 9309fi
631ef239 9310
7083c021
AC
9311
9312if test "$shared_modules" = no; then
9313 DYNLINK_C=""
9314 MOD_TARGET="libmodules.a"
9315 MODULES_LIBS="../modules/libmodules.a"
9316 SEDOBJ=""
9317
9318$as_echo "#define STATIC_MODULES 1" >>confdefs.h
9319
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9321$as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
212380e3 9322fi
7083c021
AC
9323
9324if test "$shared_modules" = yes; then
9325
9326 ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist"
b6d0720c 9327if test "x$ac_cv_func_nlist" = xyes; then :
7083c021 9328
212380e3 9329else
7083c021
AC
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9331$as_echo_n "checking for nlist in -ldl... " >&6; }
b6d0720c 9332if ${ac_cv_lib_dl_nlist+:} false; then :
7083c021 9333 $as_echo_n "(cached) " >&6
212380e3
AC
9334else
9335 ac_check_lib_save_LIBS=$LIBS
9336LIBS="-ldl $LIBS"
7083c021 9337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9338/* end confdefs.h. */
9339
631ef239
AC
9340/* Override any GCC internal prototype to avoid an error.
9341 Use char because int might match the return type of a GCC
9342 builtin and then its argument prototype would still apply. */
212380e3
AC
9343#ifdef __cplusplus
9344extern "C"
9345#endif
212380e3
AC
9346char nlist ();
9347int
9348main ()
9349{
631ef239 9350return nlist ();
212380e3
AC
9351 ;
9352 return 0;
9353}
9354_ACEOF
7083c021 9355if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
9356 ac_cv_lib_dl_nlist=yes
9357else
7083c021 9358 ac_cv_lib_dl_nlist=no
212380e3 9359fi
7083c021
AC
9360rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
9362LIBS=$ac_check_lib_save_LIBS
9363fi
7083c021
AC
9364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9365$as_echo "$ac_cv_lib_dl_nlist" >&6; }
b6d0720c 9366if test "x$ac_cv_lib_dl_nlist" = xyes; then :
212380e3
AC
9367 nlist_lib="-ldl"
9368else
7083c021
AC
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9370$as_echo_n "checking for nlist in -lelf... " >&6; }
b6d0720c 9371if ${ac_cv_lib_elf_nlist+:} false; then :
7083c021 9372 $as_echo_n "(cached) " >&6
212380e3
AC
9373else
9374 ac_check_lib_save_LIBS=$LIBS
9375LIBS="-lelf $LIBS"
7083c021 9376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9377/* end confdefs.h. */
9378
631ef239
AC
9379/* Override any GCC internal prototype to avoid an error.
9380 Use char because int might match the return type of a GCC
9381 builtin and then its argument prototype would still apply. */
212380e3
AC
9382#ifdef __cplusplus
9383extern "C"
9384#endif
212380e3
AC
9385char nlist ();
9386int
9387main ()
9388{
631ef239 9389return nlist ();
212380e3
AC
9390 ;
9391 return 0;
9392}
9393_ACEOF
7083c021 9394if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
9395 ac_cv_lib_elf_nlist=yes
9396else
7083c021 9397 ac_cv_lib_elf_nlist=no
212380e3 9398fi
7083c021
AC
9399rm -f core conftest.err conftest.$ac_objext \
9400 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
9401LIBS=$ac_check_lib_save_LIBS
9402fi
7083c021
AC
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9404$as_echo "$ac_cv_lib_elf_nlist" >&6; }
b6d0720c 9405if test "x$ac_cv_lib_elf_nlist" = xyes; then :
212380e3
AC
9406 nlist_lib="-lelf"
9407fi
9408
9409
9410fi
9411
9412
9413fi
9414
9415
7083c021 9416 ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
b6d0720c 9417if test "x$ac_cv_header_libelf_nlist_h" = xyes; then :
212380e3
AC
9418 nlist_h="libelf/nlist.h"
9419fi
9420
9421
7083c021 9422 ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
b6d0720c 9423if test "x$ac_cv_header_elf_nlist_h" = xyes; then :
212380e3
AC
9424 nlist_h="elf/nlist.h"
9425fi
9426
9427
7083c021 9428 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
b6d0720c 9429if test "x$ac_cv_header_nlist_h" = xyes; then :
212380e3
AC
9430 nlist_h="nlist.h"
9431fi
9432
9433
9434 if test x"$nlist_h" = "x"; then
9435
9436cat >>confdefs.h <<_ACEOF
9437#define SYMBOL_PREFIX ""
9438_ACEOF
9439
9440 else
7083c021
AC
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9442$as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
b6d0720c 9443 if ${symbol_underscores+:} false; then :
7083c021 9444 $as_echo_n "(cached) " >&6
212380e3
AC
9445else
9446
9447cat << EOF > conftest.c
9448#include <$nlist_h>
9449#include <stdio.h>
9450#include <stdlib.h>
9451void _modinit(void);
9452int main(int argc, char *argv[]) {
9453 int i;
9454 struct nlist nl[5];
9455
9456 /* fill the names in this way, so it'll work almost everywhere */
9457 nl[0].n_name = "_modinit";
9458 nl[1].n_name = "__modinit";
9459 nl[2].n_name = "___modinit";
9460 nl[3].n_name = "____modinit";
9461 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9462
9463 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9464 for(i = 0; i < 4; i++) {
9465 if(nl[i].n_value != NULL)
9466 {
9467 int j;
9468 for(j = 0; j < i; j++)
9469 printf("_");
9470 exit(i);
9471 }
9472 }
9473 exit(-1);
9474}
9475void _modinit(void) { return; }
9476EOF
9477 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
9478 symbol_underscores=`./conftest conftest`
7083c021
AC
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9480$as_echo "$symbol_underscores" >&6; }
212380e3
AC
9481 $RM -f conftest conftest.c
9482
9483fi
9484
9485
9486cat >>confdefs.h <<_ACEOF
9487#define SYMBOL_PREFIX "${symbol_underscores}"
9488_ACEOF
9489
9490 fi
9491fi
9492
d2c5159a
JT
9493IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
9494
212380e3
AC
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508if test "$prefix" = "NONE"; then
9509
9510cat >>confdefs.h <<_ACEOF
9511#define IRCD_PREFIX "$ac_default_prefix"
9512_ACEOF
9513
9514
9515else
9516
9517
9518 prefix=`echo $prefix | sed 's/\/$//'`
9519
9520cat >>confdefs.h <<_ACEOF
9521#define IRCD_PREFIX "$prefix"
9522_ACEOF
9523
9524
9525fi
9526
6fb6bd15 9527ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
212380e3
AC
9528
9529
9530cat >confcache <<\_ACEOF
9531# This file is a shell script that caches the results of configure
9532# tests run on this system so they can be shared between configure
9533# scripts and configure runs, see configure's option --config-cache.
9534# It is not useful on other systems. If it contains results you don't
9535# want to keep, you may remove or edit it.
9536#
9537# config.status only pays attention to the cache file if you give it
9538# the --recheck option to rerun configure.
9539#
9540# `ac_cv_env_foo' variables (set or unset) will be overridden when
9541# loading this file, other *unset* `ac_cv_foo' will be assigned the
9542# following values.
9543
9544_ACEOF
9545
9546# The following way of writing the cache mishandles newlines in values,
9547# but we know of no workaround that is simple, portable, and efficient.
631ef239 9548# So, we kill variables containing newlines.
212380e3
AC
9549# Ultrix sh set writes to stderr and can't be redirected directly,
9550# and sets the high bit in the cache file unless we assign to the vars.
631ef239
AC
9551(
9552 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9553 eval ac_val=\$$ac_var
9554 case $ac_val in #(
9555 *${as_nl}*)
9556 case $ac_var in #(
7083c021
AC
9557 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9558$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
631ef239
AC
9559 esac
9560 case $ac_var in #(
9561 _ | IFS | as_nl) ;; #(
7083c021
AC
9562 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9563 *) { eval $ac_var=; unset $ac_var;} ;;
631ef239
AC
9564 esac ;;
9565 esac
9566 done
9567
212380e3 9568 (set) 2>&1 |
631ef239
AC
9569 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9570 *${as_nl}ac_space=\ *)
7083c021
AC
9571 # `set' does not quote correctly, so add quotes: double-quote
9572 # substitution turns \\\\ into \\, and sed turns \\ into \.
212380e3
AC
9573 sed -n \
9574 "s/'/'\\\\''/g;
9575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
631ef239 9576 ;; #(
212380e3
AC
9577 *)
9578 # `set' quotes correctly as required by POSIX, so do not add quotes.
631ef239 9579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 9580 ;;
631ef239
AC
9581 esac |
9582 sort
9583) |
212380e3 9584 sed '
631ef239 9585 /^ac_cv_env_/b end
212380e3 9586 t clear
631ef239 9587 :clear
212380e3
AC
9588 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9589 t end
631ef239
AC
9590 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9591 :end' >>confcache
9592if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9593 if test -w "$cache_file"; then
b6d0720c 9594 if test "x$cache_file" != "x/dev/null"; then
7083c021
AC
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9596$as_echo "$as_me: updating cache $cache_file" >&6;}
b6d0720c
AC
9597 if test ! -f "$cache_file" || test -h "$cache_file"; then
9598 cat confcache >"$cache_file"
9599 else
9600 case $cache_file in #(
9601 */* | ?:*)
9602 mv -f confcache "$cache_file"$$ &&
9603 mv -f "$cache_file"$$ "$cache_file" ;; #(
9604 *)
9605 mv -f confcache "$cache_file" ;;
9606 esac
9607 fi
9608 fi
212380e3 9609 else
7083c021
AC
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9611$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
212380e3
AC
9612 fi
9613fi
9614rm -f confcache
9615
9616test "x$prefix" = xNONE && prefix=$ac_default_prefix
9617# Let make expand exec_prefix.
9618test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9619
212380e3
AC
9620DEFS=-DHAVE_CONFIG_H
9621
9622ac_libobjs=
9623ac_ltlibobjs=
b6d0720c 9624U=
212380e3
AC
9625for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9626 # 1. Remove the extension, and $U if already installed.
631ef239 9627 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7083c021 9628 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
631ef239
AC
9629 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9630 # will be set to the directory where LIBOBJS objects are built.
7083c021
AC
9631 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9632 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
212380e3
AC
9633done
9634LIBOBJS=$ac_libobjs
9635
9636LTLIBOBJS=$ac_ltlibobjs
9637
9638
9639
7083c021
AC
9640
9641
b6d0720c 9642: "${CONFIG_STATUS=./config.status}"
7083c021 9643ac_write_fail=0
212380e3
AC
9644ac_clean_files_save=$ac_clean_files
9645ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7083c021
AC
9646{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9647$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9648as_write_fail=0
9649cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
212380e3
AC
9650#! $SHELL
9651# Generated by $as_me.
9652# Run this file to recreate the current configuration.
9653# Compiler output produced by configure, useful for debugging
9654# configure, is in config.log if it exists.
9655
9656debug=false
9657ac_cs_recheck=false
9658ac_cs_silent=false
212380e3 9659
7083c021
AC
9660SHELL=\${CONFIG_SHELL-$SHELL}
9661export SHELL
9662_ASEOF
9663cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9664## -------------------- ##
9665## M4sh Initialization. ##
9666## -------------------- ##
212380e3 9667
631ef239
AC
9668# Be more Bourne compatible
9669DUALCASE=1; export DUALCASE # for MKS sh
7083c021 9670if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
9671 emulate sh
9672 NULLCMD=:
7083c021 9673 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
9674 # is contrary to our usage. Disable this feature.
9675 alias -g '${1+"$@"}'='"$@"'
631ef239 9676 setopt NO_GLOB_SUBST
212380e3 9677else
7083c021
AC
9678 case `(set -o) 2>/dev/null` in #(
9679 *posix*) :
9680 set -o posix ;; #(
9681 *) :
9682 ;;
631ef239 9683esac
212380e3
AC
9684fi
9685
9686
7083c021
AC
9687as_nl='
9688'
9689export as_nl
9690# Printing a long string crashes Solaris 7 /usr/bin/printf.
9691as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9692as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9693as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9694# Prefer a ksh shell builtin over an external printf program on Solaris,
9695# but without wasting forks for bash or zsh.
9696if test -z "$BASH_VERSION$ZSH_VERSION" \
9697 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9698 as_echo='print -r --'
9699 as_echo_n='print -rn --'
9700elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9701 as_echo='printf %s\n'
9702 as_echo_n='printf %s'
9703else
9704 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9705 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9706 as_echo_n='/usr/ucb/echo -n'
631ef239 9707 else
7083c021
AC
9708 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9709 as_echo_n_body='eval
9710 arg=$1;
9711 case $arg in #(
9712 *"$as_nl"*)
9713 expr "X$arg" : "X\\(.*\\)$as_nl";
9714 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9715 esac;
9716 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9717 '
9718 export as_echo_n_body
9719 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 9720 fi
7083c021
AC
9721 export as_echo_body
9722 as_echo='sh -c $as_echo_body as_echo'
631ef239
AC
9723fi
9724
7083c021
AC
9725# The user is always right.
9726if test "${PATH_SEPARATOR+set}" != set; then
9727 PATH_SEPARATOR=:
9728 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9729 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9730 PATH_SEPARATOR=';'
9731 }
631ef239
AC
9732fi
9733
9734
9735# IFS
9736# We need space, tab and new line, in precisely that order. Quoting is
9737# there to prevent editors from complaining about space-tab.
9738# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9739# splitting by setting IFS to empty value.)
631ef239
AC
9740IFS=" "" $as_nl"
9741
9742# Find who we are. Look in the path if we contain no directory separator.
b6d0720c 9743as_myself=
7083c021 9744case $0 in #((
631ef239
AC
9745 *[\\/]* ) as_myself=$0 ;;
9746 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747for as_dir in $PATH
9748do
9749 IFS=$as_save_IFS
9750 test -z "$as_dir" && as_dir=.
7083c021
AC
9751 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9752 done
631ef239
AC
9753IFS=$as_save_IFS
9754
9755 ;;
9756esac
9757# We did not find ourselves, most probably we were run as `sh COMMAND'
9758# in which case we are not to be found in the path.
9759if test "x$as_myself" = x; then
9760 as_myself=$0
9761fi
9762if test ! -f "$as_myself"; then
7083c021
AC
9763 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9764 exit 1
631ef239
AC
9765fi
9766
7083c021
AC
9767# Unset variables that we do not need and which cause bugs (e.g. in
9768# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9769# suppresses any "Segmentation fault" message there. '((' could
9770# trigger a bug in pdksh 5.2.14.
9771for as_var in BASH_ENV ENV MAIL MAILPATH
9772do eval test x\${$as_var+set} = xset \
9773 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 9774done
212380e3
AC
9775PS1='$ '
9776PS2='> '
9777PS4='+ '
9778
7083c021
AC
9779# NLS nuisances.
9780LC_ALL=C
9781export LC_ALL
9782LANGUAGE=C
9783export LANGUAGE
9784
9785# CDPATH.
9786(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9787
9788
b6d0720c
AC
9789# as_fn_error STATUS ERROR [LINENO LOG_FD]
9790# ----------------------------------------
7083c021
AC
9791# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9792# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 9793# script with STATUS, using 1 if that was 0.
7083c021
AC
9794as_fn_error ()
9795{
b6d0720c
AC
9796 as_status=$1; test $as_status -eq 0 && as_status=1
9797 if test "$4"; then
9798 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9799 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
212380e3 9800 fi
b6d0720c 9801 $as_echo "$as_me: error: $2" >&2
7083c021
AC
9802 as_fn_exit $as_status
9803} # as_fn_error
9804
9805
9806# as_fn_set_status STATUS
9807# -----------------------
9808# Set $? to STATUS, without forking.
9809as_fn_set_status ()
9810{
9811 return $1
9812} # as_fn_set_status
9813
9814# as_fn_exit STATUS
9815# -----------------
9816# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9817as_fn_exit ()
9818{
9819 set +e
9820 as_fn_set_status $1
9821 exit $1
9822} # as_fn_exit
9823
9824# as_fn_unset VAR
9825# ---------------
9826# Portably unset VAR.
9827as_fn_unset ()
9828{
9829 { eval $1=; unset $1;}
9830}
9831as_unset=as_fn_unset
9832# as_fn_append VAR VALUE
9833# ----------------------
9834# Append the text in VALUE to the end of the definition contained in VAR. Take
9835# advantage of any shell optimizations that allow amortized linear growth over
9836# repeated appends, instead of the typical quadratic growth present in naive
9837# implementations.
9838if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9839 eval 'as_fn_append ()
9840 {
9841 eval $1+=\$2
9842 }'
9843else
9844 as_fn_append ()
9845 {
9846 eval $1=\$$1\$2
9847 }
9848fi # as_fn_append
9849
9850# as_fn_arith ARG...
9851# ------------------
9852# Perform arithmetic evaluation on the ARGs, and store the result in the
9853# global $as_val. Take advantage of shells that can avoid forks. The arguments
9854# must be portable across $(()) and expr.
9855if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9856 eval 'as_fn_arith ()
9857 {
9858 as_val=$(( $* ))
9859 }'
9860else
9861 as_fn_arith ()
9862 {
9863 as_val=`expr "$@" || test $? -eq 1`
9864 }
9865fi # as_fn_arith
9866
212380e3 9867
631ef239
AC
9868if expr a : '\(a\)' >/dev/null 2>&1 &&
9869 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
9870 as_expr=expr
9871else
9872 as_expr=false
9873fi
9874
631ef239 9875if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
9876 as_basename=basename
9877else
9878 as_basename=false
9879fi
9880
7083c021
AC
9881if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9882 as_dirname=dirname
9883else
9884 as_dirname=false
9885fi
212380e3 9886
631ef239 9887as_me=`$as_basename -- "$0" ||
212380e3
AC
9888$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9889 X"$0" : 'X\(//\)$' \| \
631ef239 9890 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 9891$as_echo X/"$0" |
631ef239
AC
9892 sed '/^.*\/\([^/][^/]*\)\/*$/{
9893 s//\1/
9894 q
9895 }
9896 /^X\/\(\/\/\)$/{
9897 s//\1/
9898 q
9899 }
9900 /^X\/\(\/\).*/{
9901 s//\1/
9902 q
9903 }
9904 s/.*/./; q'`
212380e3 9905
7083c021
AC
9906# Avoid depending upon Character Ranges.
9907as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9908as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9909as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9910as_cr_digits='0123456789'
9911as_cr_alnum=$as_cr_Letters$as_cr_digits
631ef239
AC
9912
9913ECHO_C= ECHO_N= ECHO_T=
7083c021 9914case `echo -n x` in #(((((
631ef239 9915-n*)
7083c021 9916 case `echo 'xy\c'` in
631ef239 9917 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7083c021
AC
9918 xy) ECHO_C='\c';;
9919 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9920 ECHO_T=' ';;
631ef239
AC
9921 esac;;
9922*)
9923 ECHO_N='-n';;
212380e3
AC
9924esac
9925
212380e3 9926rm -f conf$$ conf$$.exe conf$$.file
631ef239
AC
9927if test -d conf$$.dir; then
9928 rm -f conf$$.dir/conf$$.file
9929else
9930 rm -f conf$$.dir
7083c021
AC
9931 mkdir conf$$.dir 2>/dev/null
9932fi
9933if (echo >conf$$.file) 2>/dev/null; then
9934 if ln -s conf$$.file conf$$ 2>/dev/null; then
9935 as_ln_s='ln -s'
9936 # ... but there are two gotchas:
9937 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9938 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9939 # In both cases, we have to default to `cp -p'.
9940 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9941 as_ln_s='cp -p'
9942 elif ln conf$$.file conf$$ 2>/dev/null; then
9943 as_ln_s=ln
9944 else
212380e3 9945 as_ln_s='cp -p'
7083c021 9946 fi
212380e3
AC
9947else
9948 as_ln_s='cp -p'
9949fi
631ef239
AC
9950rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9951rmdir conf$$.dir 2>/dev/null
212380e3 9952
7083c021
AC
9953
9954# as_fn_mkdir_p
9955# -------------
9956# Create "$as_dir" as a directory, including parents if necessary.
9957as_fn_mkdir_p ()
9958{
9959
9960 case $as_dir in #(
9961 -*) as_dir=./$as_dir;;
9962 esac
9963 test -d "$as_dir" || eval $as_mkdir_p || {
9964 as_dirs=
9965 while :; do
9966 case $as_dir in #(
9967 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9968 *) as_qdir=$as_dir;;
9969 esac
9970 as_dirs="'$as_qdir' $as_dirs"
9971 as_dir=`$as_dirname -- "$as_dir" ||
9972$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9973 X"$as_dir" : 'X\(//\)[^/]' \| \
9974 X"$as_dir" : 'X\(//\)$' \| \
9975 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9976$as_echo X"$as_dir" |
9977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9978 s//\1/
9979 q
9980 }
9981 /^X\(\/\/\)[^/].*/{
9982 s//\1/
9983 q
9984 }
9985 /^X\(\/\/\)$/{
9986 s//\1/
9987 q
9988 }
9989 /^X\(\/\).*/{
9990 s//\1/
9991 q
9992 }
9993 s/.*/./; q'`
9994 test -d "$as_dir" && break
9995 done
9996 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 9997 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
9998
9999
10000} # as_fn_mkdir_p
212380e3 10001if mkdir -p . 2>/dev/null; then
7083c021 10002 as_mkdir_p='mkdir -p "$as_dir"'
212380e3
AC
10003else
10004 test -d ./-p && rmdir ./-p
10005 as_mkdir_p=false
10006fi
10007
631ef239
AC
10008if test -x / >/dev/null 2>&1; then
10009 as_test_x='test -x'
10010else
10011 if ls -dL / >/dev/null 2>&1; then
10012 as_ls_L_option=L
10013 else
10014 as_ls_L_option=
10015 fi
10016 as_test_x='
10017 eval sh -c '\''
10018 if test -d "$1"; then
7083c021 10019 test -d "$1/.";
631ef239 10020 else
7083c021
AC
10021 case $1 in #(
10022 -*)set "./$1";;
631ef239 10023 esac;
7083c021 10024 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
631ef239
AC
10025 ???[sx]*):;;*)false;;esac;fi
10026 '\'' sh
10027 '
10028fi
10029as_executable_p=$as_test_x
212380e3
AC
10030
10031# Sed expression to map a string onto a valid CPP name.
10032as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10033
10034# Sed expression to map a string onto a valid variable name.
10035as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10036
10037
212380e3 10038exec 6>&1
7083c021
AC
10039## ----------------------------------- ##
10040## Main body of $CONFIG_STATUS script. ##
10041## ----------------------------------- ##
10042_ASEOF
10043test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
212380e3 10044
7083c021
AC
10045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10046# Save the log message, to keep $0 and so on meaningful, and to
212380e3 10047# report actual input values of CONFIG_FILES etc. instead of their
631ef239
AC
10048# values after options handling.
10049ac_log="
5a241f54 10050This file was extended by charybdis $as_me 3.3.0, which was
b6d0720c 10051generated by GNU Autoconf 2.68. Invocation command line was
212380e3
AC
10052
10053 CONFIG_FILES = $CONFIG_FILES
10054 CONFIG_HEADERS = $CONFIG_HEADERS
10055 CONFIG_LINKS = $CONFIG_LINKS
10056 CONFIG_COMMANDS = $CONFIG_COMMANDS
10057 $ $0 $@
10058
631ef239
AC
10059on `(hostname || uname -n) 2>/dev/null | sed 1q`
10060"
10061
212380e3
AC
10062_ACEOF
10063
7083c021
AC
10064case $ac_config_files in *"
10065"*) set x $ac_config_files; shift; ac_config_files=$*;;
10066esac
10067
10068case $ac_config_headers in *"
10069"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10070esac
10071
10072
10073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10074# Files that config.status was made for.
631ef239
AC
10075config_files="$ac_config_files"
10076config_headers="$ac_config_headers"
212380e3 10077
631ef239 10078_ACEOF
212380e3 10079
7083c021 10080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3 10081ac_cs_usage="\
7083c021
AC
10082\`$as_me' instantiates files and other configuration actions
10083from templates according to the current configuration. Unless the files
10084and actions are specified as TAGs, all are instantiated by default.
212380e3 10085
7083c021 10086Usage: $0 [OPTION]... [TAG]...
212380e3
AC
10087
10088 -h, --help print this help, then exit
631ef239 10089 -V, --version print version number and configuration settings, then exit
6fb6bd15 10090 --config print configuration, then exit
7083c021
AC
10091 -q, --quiet, --silent
10092 do not print progress messages
212380e3
AC
10093 -d, --debug don't remove temporary files
10094 --recheck update $as_me by reconfiguring in the same conditions
7083c021
AC
10095 --file=FILE[:TEMPLATE]
10096 instantiate the configuration file FILE
10097 --header=FILE[:TEMPLATE]
10098 instantiate the configuration header FILE
212380e3
AC
10099
10100Configuration files:
10101$config_files
10102
10103Configuration headers:
10104$config_headers
10105
7083c021 10106Report bugs to the package provider."
212380e3 10107
631ef239 10108_ACEOF
7083c021 10109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6fb6bd15 10110ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
212380e3 10111ac_cs_version="\\
5a241f54 10112charybdis config.status 3.3.0
b6d0720c 10113configured by $0, generated by GNU Autoconf 2.68,
6fb6bd15 10114 with options \\"\$ac_cs_config\\"
212380e3 10115
b6d0720c 10116Copyright (C) 2010 Free Software Foundation, Inc.
212380e3
AC
10117This config.status script is free software; the Free Software Foundation
10118gives unlimited permission to copy, distribute and modify it."
631ef239
AC
10119
10120ac_pwd='$ac_pwd'
10121srcdir='$srcdir'
10122INSTALL='$INSTALL'
7083c021 10123test -n "\$AWK" || AWK=awk
212380e3
AC
10124_ACEOF
10125
7083c021
AC
10126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10127# The default lists apply if the user does not specify any file.
212380e3
AC
10128ac_need_defaults=:
10129while test $# != 0
10130do
10131 case $1 in
b6d0720c 10132 --*=?*)
631ef239
AC
10133 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10134 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
212380e3
AC
10135 ac_shift=:
10136 ;;
b6d0720c
AC
10137 --*=)
10138 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10139 ac_optarg=
10140 ac_shift=:
10141 ;;
631ef239 10142 *)
212380e3
AC
10143 ac_option=$1
10144 ac_optarg=$2
10145 ac_shift=shift
10146 ;;
212380e3
AC
10147 esac
10148
10149 case $ac_option in
10150 # Handling of the options.
212380e3
AC
10151 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10152 ac_cs_recheck=: ;;
631ef239 10153 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7083c021 10154 $as_echo "$ac_cs_version"; exit ;;
6fb6bd15
AC
10155 --config | --confi | --conf | --con | --co | --c )
10156 $as_echo "$ac_cs_config"; exit ;;
631ef239 10157 --debug | --debu | --deb | --de | --d | -d )
212380e3
AC
10158 debug=: ;;
10159 --file | --fil | --fi | --f )
10160 $ac_shift
7083c021
AC
10161 case $ac_optarg in
10162 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b6d0720c 10163 '') as_fn_error $? "missing file argument" ;;
7083c021
AC
10164 esac
10165 as_fn_append CONFIG_FILES " '$ac_optarg'"
212380e3
AC
10166 ac_need_defaults=false;;
10167 --header | --heade | --head | --hea )
10168 $ac_shift
7083c021
AC
10169 case $ac_optarg in
10170 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10171 esac
10172 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
212380e3 10173 ac_need_defaults=false;;
631ef239
AC
10174 --he | --h)
10175 # Conflict between --help and --header
b6d0720c 10176 as_fn_error $? "ambiguous option: \`$1'
7083c021 10177Try \`$0 --help' for more information.";;
631ef239 10178 --help | --hel | -h )
7083c021 10179 $as_echo "$ac_cs_usage"; exit ;;
212380e3
AC
10180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10181 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10182 ac_cs_silent=: ;;
10183
10184 # This is an error.
b6d0720c 10185 -*) as_fn_error $? "unrecognized option: \`$1'
7083c021 10186Try \`$0 --help' for more information." ;;
212380e3 10187
7083c021 10188 *) as_fn_append ac_config_targets " $1"
631ef239 10189 ac_need_defaults=false ;;
212380e3
AC
10190
10191 esac
10192 shift
10193done
10194
10195ac_configure_extra_args=
10196
10197if $ac_cs_silent; then
10198 exec 6>/dev/null
10199 ac_configure_extra_args="$ac_configure_extra_args --silent"
10200fi
10201
10202_ACEOF
7083c021 10203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10204if \$ac_cs_recheck; then
7083c021
AC
10205 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10206 shift
10207 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10208 CONFIG_SHELL='$SHELL'
631ef239 10209 export CONFIG_SHELL
7083c021 10210 exec "\$@"
212380e3
AC
10211fi
10212
10213_ACEOF
7083c021 10214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10215exec 5>>config.log
10216{
10217 echo
10218 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10219## Running $as_me. ##
10220_ASBOX
7083c021 10221 $as_echo "$ac_log"
631ef239 10222} >&5
212380e3 10223
631ef239 10224_ACEOF
7083c021 10225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239 10226_ACEOF
212380e3 10227
7083c021 10228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10229
10230# Handling of arguments.
212380e3
AC
10231for ac_config_target in $ac_config_targets
10232do
631ef239
AC
10233 case $ac_config_target in
10234 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
10235 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7083c021 10236 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;;
53970d07 10237 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
631ef239 10238 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
631ef239
AC
10239 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10240 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
10241 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10242 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10243 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
10244
b6d0720c 10245 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
212380e3
AC
10246 esac
10247done
10248
631ef239 10249
212380e3
AC
10250# If the user did not use the arguments to specify the items to instantiate,
10251# then the envvar interface is used. Set only those that are not.
10252# We use the long form for the default assignment because of an extremely
10253# bizarre bug on SunOS 4.1.3.
10254if $ac_need_defaults; then
10255 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10256 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10257fi
10258
10259# Have a temporary directory for convenience. Make it in the build tree
631ef239 10260# simply because there is no reason against having it here, and in addition,
212380e3 10261# creating and moving files from /tmp can sometimes cause problems.
631ef239
AC
10262# Hook for its removal unless debugging.
10263# Note that there is a small window in which the directory will not be cleaned:
10264# after its creation but before its name has been assigned to `$tmp'.
212380e3
AC
10265$debug ||
10266{
b6d0720c 10267 tmp= ac_tmp=
631ef239 10268 trap 'exit_status=$?
b6d0720c
AC
10269 : "${ac_tmp:=$tmp}"
10270 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
631ef239 10271' 0
7083c021 10272 trap 'as_fn_exit 1' 1 2 13 15
212380e3 10273}
212380e3
AC
10274# Create a (secure) tmp directory for tmp files.
10275
10276{
631ef239 10277 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b6d0720c 10278 test -d "$tmp"
212380e3
AC
10279} ||
10280{
631ef239
AC
10281 tmp=./conf$$-$RANDOM
10282 (umask 077 && mkdir "$tmp")
b6d0720c
AC
10283} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10284ac_tmp=$tmp
212380e3 10285
7083c021
AC
10286# Set up the scripts for CONFIG_FILES section.
10287# No need to generate them if there are no CONFIG_FILES.
10288# This happens for instance with `./config.status config.h'.
631ef239
AC
10289if test -n "$CONFIG_FILES"; then
10290
631ef239 10291
7083c021
AC
10292ac_cr=`echo X | tr X '\015'`
10293# On cygwin, bash can eat \r inside `` if the user requested igncr.
10294# But we know of no other shell where ac_cr would be empty at this
10295# point, so we can use a bashism as a fallback.
10296if test "x$ac_cr" = x; then
10297 eval ac_cr=\$\'\\r\'
10298fi
10299ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10300if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
b6d0720c 10301 ac_cs_awk_cr='\\r'
7083c021
AC
10302else
10303 ac_cs_awk_cr=$ac_cr
10304fi
10305
b6d0720c 10306echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7083c021 10307_ACEOF
631ef239
AC
10308
10309
7083c021
AC
10310{
10311 echo "cat >conf$$subs.awk <<_ACEOF" &&
10312 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10313 echo "_ACEOF"
10314} >conf$$subs.sh ||
b6d0720c
AC
10315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10316ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
631ef239
AC
10317ac_delim='%!_!# '
10318for ac_last_try in false false false false false :; do
7083c021 10319 . ./conf$$subs.sh ||
b6d0720c 10320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7083c021
AC
10321
10322 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10323 if test $ac_delim_n = $ac_delim_num; then
631ef239
AC
10324 break
10325 elif $ac_last_try; then
b6d0720c 10326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
631ef239
AC
10327 else
10328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
212380e3 10329 fi
631ef239 10330done
7083c021
AC
10331rm -f conf$$subs.sh
10332
10333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b6d0720c 10334cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7083c021
AC
10335_ACEOF
10336sed -n '
10337h
10338s/^/S["/; s/!.*/"]=/
10339p
10340g
10341s/^[^!]*!//
10342:repl
10343t repl
10344s/'"$ac_delim"'$//
10345t delim
10346:nl
10347h
6fb6bd15 10348s/\(.\{148\}\)..*/\1/
7083c021
AC
10349t more1
10350s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10351p
10352n
10353b repl
10354:more1
10355s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10356p
10357g
10358s/.\{148\}//
10359t nl
10360:delim
10361h
6fb6bd15 10362s/\(.\{148\}\)..*/\1/
7083c021
AC
10363t more2
10364s/["\\]/\\&/g; s/^/"/; s/$/"/
10365p
10366b
10367:more2
10368s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10369p
10370g
10371s/.\{148\}//
10372t delim
10373' <conf$$subs.awk | sed '
10374/^[^""]/{
10375 N
10376 s/\n//
10377}
10378' >>$CONFIG_STATUS || ac_write_fail=1
10379rm -f conf$$subs.awk
10380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10381_ACAWK
b6d0720c 10382cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7083c021
AC
10383 for (key in S) S_is_set[key] = 1
10384 FS = "\a"
212380e3 10385
7083c021
AC
10386}
10387{
10388 line = $ 0
10389 nfields = split(line, field, "@")
10390 substed = 0
10391 len = length(field[1])
10392 for (i = 2; i < nfields; i++) {
10393 key = field[i]
10394 keylen = length(key)
10395 if (S_is_set[key]) {
10396 value = S[key]
10397 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10398 len += length(value) + length(field[++i])
10399 substed = 1
10400 } else
10401 len += 1 + keylen
10402 }
631ef239 10403
7083c021
AC
10404 print line
10405}
10406
10407_ACAWK
631ef239 10408_ACEOF
7083c021
AC
10409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10410if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10411 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10412else
10413 cat
b6d0720c
AC
10414fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10415 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
212380e3 10416_ACEOF
631ef239 10417
b6d0720c
AC
10418# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10419# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
631ef239
AC
10420# trailing colons and then remove the whole line if VPATH becomes empty
10421# (actually we leave an empty line to preserve line numbers).
10422if test "x$srcdir" = x.; then
b6d0720c
AC
10423 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10424h
10425s///
10426s/^/:/
10427s/[ ]*$/:/
10428s/:\$(srcdir):/:/g
10429s/:\${srcdir}:/:/g
10430s/:@srcdir@:/:/g
10431s/^:*//
631ef239 10432s/:*$//
b6d0720c
AC
10433x
10434s/\(=[ ]*\).*/\1/
10435G
10436s/\n//
631ef239
AC
10437s/^[^=]*=[ ]*$//
10438}'
10439fi
10440
7083c021 10441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10442fi # test -n "$CONFIG_FILES"
10443
7083c021
AC
10444# Set up the scripts for CONFIG_HEADERS section.
10445# No need to generate them if there are no CONFIG_HEADERS.
10446# This happens for instance with `./config.status Makefile'.
10447if test -n "$CONFIG_HEADERS"; then
b6d0720c 10448cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7083c021
AC
10449BEGIN {
10450_ACEOF
10451
10452# Transform confdefs.h into an awk script `defines.awk', embedded as
10453# here-document in config.status, that substitutes the proper values into
10454# config.h.in to produce config.h.
10455
10456# Create a delimiter string that does not exist in confdefs.h, to ease
10457# handling of long lines.
10458ac_delim='%!_!# '
10459for ac_last_try in false false :; do
b6d0720c
AC
10460 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10461 if test -z "$ac_tt"; then
7083c021
AC
10462 break
10463 elif $ac_last_try; then
b6d0720c 10464 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7083c021
AC
10465 else
10466 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10467 fi
10468done
10469
10470# For the awk script, D is an array of macro values keyed by name,
10471# likewise P contains macro parameters if any. Preserve backslash
10472# newline sequences.
10473
10474ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10475sed -n '
10476s/.\{148\}/&'"$ac_delim"'/g
10477t rset
10478:rset
10479s/^[ ]*#[ ]*define[ ][ ]*/ /
10480t def
10481d
10482:def
10483s/\\$//
10484t bsnl
10485s/["\\]/\\&/g
10486s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10487D["\1"]=" \3"/p
10488s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10489d
10490:bsnl
10491s/["\\]/\\&/g
10492s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10493D["\1"]=" \3\\\\\\n"\\/p
10494t cont
10495s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10496t cont
10497d
10498:cont
10499n
10500s/.\{148\}/&'"$ac_delim"'/g
10501t clear
10502:clear
10503s/\\$//
10504t bsnlc
10505s/["\\]/\\&/g; s/^/"/; s/$/"/p
10506d
10507:bsnlc
10508s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10509b cont
10510' <confdefs.h | sed '
10511s/'"$ac_delim"'/"\\\
10512"/g' >>$CONFIG_STATUS || ac_write_fail=1
10513
10514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10515 for (key in D) D_is_set[key] = 1
10516 FS = "\a"
10517}
10518/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10519 line = \$ 0
10520 split(line, arg, " ")
10521 if (arg[1] == "#") {
10522 defundef = arg[2]
10523 mac1 = arg[3]
10524 } else {
10525 defundef = substr(arg[1], 2)
10526 mac1 = arg[2]
10527 }
10528 split(mac1, mac2, "(") #)
10529 macro = mac2[1]
10530 prefix = substr(line, 1, index(line, defundef) - 1)
10531 if (D_is_set[macro]) {
10532 # Preserve the white space surrounding the "#".
10533 print prefix "define", macro P[macro] D[macro]
10534 next
10535 } else {
10536 # Replace #undef with comments. This is necessary, for example,
10537 # in the case of _POSIX_SOURCE, which is predefined and required
10538 # on some systems where configure will not decide to define it.
10539 if (defundef == "undef") {
10540 print "/*", prefix defundef, macro, "*/"
10541 next
10542 }
10543 }
10544}
10545{ print }
10546_ACAWK
10547_ACEOF
10548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b6d0720c 10549 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7083c021
AC
10550fi # test -n "$CONFIG_HEADERS"
10551
631ef239 10552
7083c021
AC
10553eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10554shift
10555for ac_tag
631ef239
AC
10556do
10557 case $ac_tag in
10558 :[FHLC]) ac_mode=$ac_tag; continue;;
10559 esac
10560 case $ac_mode$ac_tag in
10561 :[FHL]*:*);;
b6d0720c 10562 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
631ef239
AC
10563 :[FH]-) ac_tag=-:-;;
10564 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
212380e3 10565 esac
631ef239
AC
10566 ac_save_IFS=$IFS
10567 IFS=:
10568 set x $ac_tag
10569 IFS=$ac_save_IFS
10570 shift
10571 ac_file=$1
10572 shift
212380e3 10573
631ef239
AC
10574 case $ac_mode in
10575 :L) ac_source=$1;;
10576 :[FH])
10577 ac_file_inputs=
10578 for ac_f
10579 do
10580 case $ac_f in
b6d0720c 10581 -) ac_f="$ac_tmp/stdin";;
631ef239
AC
10582 *) # Look for the file first in the build tree, then in the source tree
10583 # (if the path is not absolute). The absolute path cannot be DOS-style,
10584 # because $ac_f cannot contain `:'.
10585 test -f "$ac_f" ||
10586 case $ac_f in
10587 [\\/$]*) false;;
10588 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10589 esac ||
b6d0720c 10590 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
631ef239 10591 esac
7083c021
AC
10592 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10593 as_fn_append ac_file_inputs " '$ac_f'"
631ef239
AC
10594 done
10595
10596 # Let's still pretend it is `configure' which instantiates (i.e., don't
10597 # use $as_me), people would be surprised to read:
10598 # /* config.h. Generated by config.status. */
7083c021
AC
10599 configure_input='Generated from '`
10600 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10601 `' by configure.'
631ef239
AC
10602 if test x"$ac_file" != x-; then
10603 configure_input="$ac_file. $configure_input"
7083c021
AC
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10605$as_echo "$as_me: creating $ac_file" >&6;}
631ef239 10606 fi
7083c021
AC
10607 # Neutralize special characters interpreted by sed in replacement strings.
10608 case $configure_input in #(
10609 *\&* | *\|* | *\\* )
10610 ac_sed_conf_input=`$as_echo "$configure_input" |
10611 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10612 *) ac_sed_conf_input=$configure_input;;
10613 esac
631ef239
AC
10614
10615 case $ac_tag in
b6d0720c
AC
10616 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
631ef239
AC
10618 esac
10619 ;;
10620 esac
10621
10622 ac_dir=`$as_dirname -- "$ac_file" ||
212380e3
AC
10623$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10624 X"$ac_file" : 'X\(//\)[^/]' \| \
10625 X"$ac_file" : 'X\(//\)$' \| \
631ef239 10626 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 10627$as_echo X"$ac_file" |
631ef239
AC
10628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10629 s//\1/
10630 q
10631 }
10632 /^X\(\/\/\)[^/].*/{
10633 s//\1/
10634 q
10635 }
10636 /^X\(\/\/\)$/{
10637 s//\1/
10638 q
10639 }
10640 /^X\(\/\).*/{
10641 s//\1/
10642 q
10643 }
10644 s/.*/./; q'`
7083c021 10645 as_dir="$ac_dir"; as_fn_mkdir_p
212380e3
AC
10646 ac_builddir=.
10647
631ef239
AC
10648case "$ac_dir" in
10649.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10650*)
7083c021 10651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 10652 # A ".." for each directory in $ac_dir_suffix.
7083c021 10653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
10654 case $ac_top_builddir_sub in
10655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10657 esac ;;
10658esac
10659ac_abs_top_builddir=$ac_pwd
10660ac_abs_builddir=$ac_pwd$ac_dir_suffix
10661# for backward compatibility:
10662ac_top_builddir=$ac_top_build_prefix
212380e3
AC
10663
10664case $srcdir in
631ef239 10665 .) # We are building in place.
212380e3 10666 ac_srcdir=.
631ef239
AC
10667 ac_top_srcdir=$ac_top_builddir_sub
10668 ac_abs_top_srcdir=$ac_pwd ;;
10669 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 10670 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
10671 ac_top_srcdir=$srcdir
10672 ac_abs_top_srcdir=$srcdir ;;
10673 *) # Relative name.
10674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10675 ac_top_srcdir=$ac_top_build_prefix$srcdir
10676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 10677esac
631ef239 10678ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
212380e3 10679
212380e3 10680
631ef239
AC
10681 case $ac_mode in
10682 :F)
10683 #
10684 # CONFIG_FILE
10685 #
212380e3
AC
10686
10687 case $INSTALL in
10688 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
631ef239 10689 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
212380e3 10690 esac
631ef239 10691_ACEOF
212380e3 10692
7083c021 10693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10694# If the template does not know about datarootdir, expand it.
10695# FIXME: This hack should be removed a few years after 2.60.
10696ac_datarootdir_hack=; ac_datarootdir_seen=
7083c021
AC
10697ac_sed_dataroot='
10698/datarootdir/ {
631ef239
AC
10699 p
10700 q
10701}
10702/@datadir@/p
10703/@docdir@/p
10704/@infodir@/p
10705/@localedir@/p
7083c021
AC
10706/@mandir@/p'
10707case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
631ef239
AC
10708*datarootdir*) ac_datarootdir_seen=yes;;
10709*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7083c021
AC
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10711$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
631ef239 10712_ACEOF
7083c021 10713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239
AC
10714 ac_datarootdir_hack='
10715 s&@datadir@&$datadir&g
10716 s&@docdir@&$docdir&g
10717 s&@infodir@&$infodir&g
10718 s&@localedir@&$localedir&g
10719 s&@mandir@&$mandir&g
7083c021 10720 s&\\\${datarootdir}&$datarootdir&g' ;;
631ef239 10721esac
212380e3 10722_ACEOF
631ef239
AC
10723
10724# Neutralize VPATH when `$srcdir' = `.'.
10725# Shell code in configure.ac might set extrasub.
10726# FIXME: do we really want to maintain this feature?
7083c021
AC
10727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10728ac_sed_extra="$ac_vpsub
212380e3
AC
10729$extrasub
10730_ACEOF
7083c021 10731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3
AC
10732:t
10733/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7083c021 10734s|@configure_input@|$ac_sed_conf_input|;t t
631ef239 10735s&@top_builddir@&$ac_top_builddir_sub&;t t
7083c021 10736s&@top_build_prefix@&$ac_top_build_prefix&;t t
631ef239
AC
10737s&@srcdir@&$ac_srcdir&;t t
10738s&@abs_srcdir@&$ac_abs_srcdir&;t t
10739s&@top_srcdir@&$ac_top_srcdir&;t t
10740s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10741s&@builddir@&$ac_builddir&;t t
10742s&@abs_builddir@&$ac_abs_builddir&;t t
10743s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10744s&@INSTALL@&$ac_INSTALL&;t t
10745$ac_datarootdir_hack
7083c021 10746"
b6d0720c
AC
10747eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10748 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
10749
10750test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b6d0720c
AC
10751 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10752 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10753 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7083c021 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 10755which seems to be undefined. Please make sure it is defined" >&5
7083c021 10756$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 10757which seems to be undefined. Please make sure it is defined" >&2;}
631ef239 10758
b6d0720c 10759 rm -f "$ac_tmp/stdin"
212380e3 10760 case $ac_file in
b6d0720c
AC
10761 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10762 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7083c021 10763 esac \
b6d0720c 10764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
10765 ;;
10766 :H)
10767 #
10768 # CONFIG_HEADER
10769 #
212380e3 10770 if test x"$ac_file" != x-; then
7083c021
AC
10771 {
10772 $as_echo "/* $configure_input */" \
b6d0720c
AC
10773 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10774 } >"$ac_tmp/config.h" \
10775 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10776 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7083c021
AC
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10778$as_echo "$as_me: $ac_file is unchanged" >&6;}
212380e3 10779 else
7083c021 10780 rm -f "$ac_file"
b6d0720c
AC
10781 mv "$ac_tmp/config.h" "$ac_file" \
10782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
212380e3
AC
10783 fi
10784 else
7083c021 10785 $as_echo "/* $configure_input */" \
b6d0720c
AC
10786 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10787 || as_fn_error $? "could not create -" "$LINENO" 5
212380e3 10788 fi
631ef239
AC
10789 ;;
10790
10791
10792 esac
10793
10794done # for ac_tag
212380e3 10795
212380e3 10796
7083c021 10797as_fn_exit 0
212380e3 10798_ACEOF
212380e3
AC
10799ac_clean_files=$ac_clean_files_save
10800
7083c021 10801test $ac_write_fail = 0 ||
b6d0720c 10802 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7083c021 10803
212380e3
AC
10804
10805# configure is writing to config.log, and then calls config.status.
10806# config.status does its own redirection, appending to config.log.
10807# Unfortunately, on DOS this fails, as config.log is still kept open
10808# by configure, so config.status won't be able to write to it; its
10809# output is simply discarded. So we exec the FD to /dev/null,
10810# effectively closing config.log, so it can be properly (re)opened and
10811# appended to by config.status. When coming back to configure, we
10812# need to make the FD available again.
10813if test "$no_create" != yes; then
10814 ac_cs_success=:
10815 ac_config_status_args=
10816 test "$silent" = yes &&
10817 ac_config_status_args="$ac_config_status_args --quiet"
10818 exec 5>/dev/null
10819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10820 exec 5>>config.log
10821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10822 # would make configure fail if this is the last instruction.
b6d0720c 10823 $ac_cs_success || as_fn_exit 1
212380e3
AC
10824fi
10825
b676ea3b
AC
10826#
10827# CONFIG_SUBDIRS section.
10828#
10829if test "$no_recursion" != yes; then
10830
7083c021
AC
10831 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10832 # so they do not pile up.
b676ea3b
AC
10833 ac_sub_configure_args=
10834 ac_prev=
10835 eval "set x $ac_configure_args"
10836 shift
10837 for ac_arg
10838 do
10839 if test -n "$ac_prev"; then
10840 ac_prev=
10841 continue
10842 fi
10843 case $ac_arg in
10844 -cache-file | --cache-file | --cache-fil | --cache-fi \
10845 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10846 ac_prev=cache_file ;;
10847 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10848 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10849 | --c=*)
10850 ;;
10851 --config-cache | -C)
10852 ;;
10853 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10854 ac_prev=srcdir ;;
10855 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10856 ;;
10857 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10858 ac_prev=prefix ;;
10859 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10860 ;;
7083c021
AC
10861 --disable-option-checking)
10862 ;;
b676ea3b
AC
10863 *)
10864 case $ac_arg in
7083c021 10865 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b676ea3b 10866 esac
7083c021 10867 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
b676ea3b
AC
10868 esac
10869 done
10870
10871 # Always prepend --prefix to ensure using the same prefix
10872 # in subdir configurations.
10873 ac_arg="--prefix=$prefix"
10874 case $ac_arg in
7083c021 10875 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b676ea3b
AC
10876 esac
10877 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10878
10879 # Pass --silent
10880 if test "$silent" = yes; then
10881 ac_sub_configure_args="--silent $ac_sub_configure_args"
10882 fi
10883
7083c021
AC
10884 # Always prepend --disable-option-checking to silence warnings, since
10885 # different subdirs can have different --enable and --with options.
10886 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10887
b676ea3b
AC
10888 ac_popdir=`pwd`
10889 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10890
10891 # Do not complain, so a configure script can configure whichever
10892 # parts of a large source tree are present.
10893 test -d "$srcdir/$ac_dir" || continue
10894
10895 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
7083c021
AC
10896 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10897 $as_echo "$ac_msg" >&6
10898 as_dir="$ac_dir"; as_fn_mkdir_p
b676ea3b
AC
10899 ac_builddir=.
10900
10901case "$ac_dir" in
10902.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10903*)
7083c021 10904 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
b676ea3b 10905 # A ".." for each directory in $ac_dir_suffix.
7083c021 10906 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
b676ea3b
AC
10907 case $ac_top_builddir_sub in
10908 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10909 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10910 esac ;;
10911esac
10912ac_abs_top_builddir=$ac_pwd
10913ac_abs_builddir=$ac_pwd$ac_dir_suffix
10914# for backward compatibility:
10915ac_top_builddir=$ac_top_build_prefix
10916
10917case $srcdir in
10918 .) # We are building in place.
10919 ac_srcdir=.
10920 ac_top_srcdir=$ac_top_builddir_sub
10921 ac_abs_top_srcdir=$ac_pwd ;;
10922 [\\/]* | ?:[\\/]* ) # Absolute name.
10923 ac_srcdir=$srcdir$ac_dir_suffix;
10924 ac_top_srcdir=$srcdir
10925 ac_abs_top_srcdir=$srcdir ;;
10926 *) # Relative name.
10927 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10928 ac_top_srcdir=$ac_top_build_prefix$srcdir
10929 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10930esac
10931ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10932
10933
10934 cd "$ac_dir"
10935
10936 # Check for guested configure; otherwise get Cygnus style configure.
10937 if test -f "$ac_srcdir/configure.gnu"; then
10938 ac_sub_configure=$ac_srcdir/configure.gnu
10939 elif test -f "$ac_srcdir/configure"; then
10940 ac_sub_configure=$ac_srcdir/configure
10941 elif test -f "$ac_srcdir/configure.in"; then
10942 # This should be Cygnus configure.
10943 ac_sub_configure=$ac_aux_dir/configure
10944 else
7083c021
AC
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10946$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
b676ea3b
AC
10947 ac_sub_configure=
10948 fi
10949
10950 # The recursion is here.
10951 if test -n "$ac_sub_configure"; then
10952 # Make the cache file name correct relative to the subdirectory.
10953 case $cache_file in
10954 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10955 *) # Relative name.
10956 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10957 esac
10958
7083c021
AC
10959 { $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
10960$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
10961 # The eval makes quoting arguments work.
10962 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10963 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
b6d0720c 10964 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
b676ea3b
AC
10965 fi
10966
10967 cd "$ac_popdir"
10968 done
10969fi
7083c021
AC
10970if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10972$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10973fi
b676ea3b 10974
212380e3
AC
10975
10976if test "$cf_openssl_version_ok" = yes; then
10977 openssl="yes"
10978else
10979 openssl="no"
10980fi
10981
10982if test "$shared_modules" = yes; then
10983 modules=shared
10984else
10985 modules=static
10986fi
10987
10988echo "
b6d0720c 10989Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
212380e3
AC
10990 Install directory : $prefix
10991
10992 Ziplinks : $zlib
10993 OpenSSL : $openssl
212380e3
AC
10994 Socket Engine : $SELECT_TYPE
10995 Small network : $small_net
10996 Block allocator : $balloc
212380e3
AC
10997
10998 Nickname length : $NICKLEN
10999 Topic length : $TOPICLEN
11000
b6d0720c 11001Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.
212380e3 11002"