]> jfr.im git - solanum.git/blame - configure
Complain to opers if a server that isn't a service tries to SU/RSFNC/NICKDELAY/SVSLOGIN.
[solanum.git] / configure
CommitLineData
212380e3
AC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
dc9aebf4 3# Generated by GNU Autoconf 2.68 for charybdis 3.5.0-dev.
212380e3 4#
b676ea3b 5# $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 6#
6fb6bd15 7#
631ef239 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
b6d0720c
AC
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
6fb6bd15 11#
7083c021 12#
212380e3
AC
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
7083c021
AC
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
212380e3 18
631ef239
AC
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
7083c021 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
22 emulate sh
23 NULLCMD=:
7083c021 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
631ef239
AC
27 setopt NO_GLOB_SUBST
28else
7083c021
AC
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
631ef239 34esac
631ef239
AC
35fi
36
37
7083c021
AC
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
631ef239 58 else
7083c021
AC
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 71 fi
7083c021
AC
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
212380e3 74fi
212380e3 75
7083c021
AC
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
212380e3
AC
83fi
84
85
631ef239
AC
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
631ef239
AC
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
b6d0720c 94as_myself=
7083c021 95case $0 in #((
631ef239
AC
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
7083c021
AC
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
631ef239
AC
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
7083c021
AC
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
631ef239
AC
116fi
117
7083c021
AC
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 125done
212380e3
AC
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
7083c021
AC
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212380e3 189do
7083c021
AC
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
b6d0720c 220 # Preserve -v and -x to the replacement shell.
7083c021
AC
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
b6d0720c
AC
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
7083c021
AC
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
212380e3 240 else
7083c021
AC
241 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
242$0: including any error possibly output before this
243$0: message. Then install a modern shell, or manually run
244$0: the script under such a shell if you do have one."
212380e3 245 fi
7083c021
AC
246 exit 1
247fi
248fi
249fi
250SHELL=${CONFIG_SHELL-/bin/sh}
251export SHELL
252# Unset more variables known to interfere with behavior of common tools.
253CLICOLOR_FORCE= GREP_OPTIONS=
254unset CLICOLOR_FORCE GREP_OPTIONS
255
256## --------------------- ##
257## M4sh Shell Functions. ##
258## --------------------- ##
259# as_fn_unset VAR
260# ---------------
261# Portably unset VAR.
262as_fn_unset ()
263{
264 { eval $1=; unset $1;}
265}
266as_unset=as_fn_unset
267
268# as_fn_set_status STATUS
269# -----------------------
270# Set $? to STATUS, without forking.
271as_fn_set_status ()
272{
273 return $1
274} # as_fn_set_status
275
276# as_fn_exit STATUS
277# -----------------
278# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279as_fn_exit ()
280{
281 set +e
282 as_fn_set_status $1
283 exit $1
284} # as_fn_exit
285
286# as_fn_mkdir_p
287# -------------
288# Create "$as_dir" as a directory, including parents if necessary.
289as_fn_mkdir_p ()
290{
291
292 case $as_dir in #(
293 -*) as_dir=./$as_dir;;
294 esac
295 test -d "$as_dir" || eval $as_mkdir_p || {
296 as_dirs=
297 while :; do
298 case $as_dir in #(
299 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 *) as_qdir=$as_dir;;
301 esac
302 as_dirs="'$as_qdir' $as_dirs"
303 as_dir=`$as_dirname -- "$as_dir" ||
304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308$as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)[^/].*/{
314 s//\1/
315 q
316 }
317 /^X\(\/\/\)$/{
318 s//\1/
319 q
320 }
321 /^X\(\/\).*/{
322 s//\1/
323 q
324 }
325 s/.*/./; q'`
326 test -d "$as_dir" && break
327 done
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 329 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
330
331
332} # as_fn_mkdir_p
333# as_fn_append VAR VALUE
334# ----------------------
335# Append the text in VALUE to the end of the definition contained in VAR. Take
336# advantage of any shell optimizations that allow amortized linear growth over
337# repeated appends, instead of the typical quadratic growth present in naive
338# implementations.
339if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
340 eval 'as_fn_append ()
341 {
342 eval $1+=\$2
343 }'
344else
345 as_fn_append ()
346 {
347 eval $1=\$$1\$2
348 }
349fi # as_fn_append
350
351# as_fn_arith ARG...
352# ------------------
353# Perform arithmetic evaluation on the ARGs, and store the result in the
354# global $as_val. Take advantage of shells that can avoid forks. The arguments
355# must be portable across $(()) and expr.
356if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 eval 'as_fn_arith ()
358 {
359 as_val=$(( $* ))
360 }'
361else
362 as_fn_arith ()
363 {
364 as_val=`expr "$@" || test $? -eq 1`
365 }
366fi # as_fn_arith
367
368
b6d0720c
AC
369# as_fn_error STATUS ERROR [LINENO LOG_FD]
370# ----------------------------------------
7083c021
AC
371# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 373# script with STATUS, using 1 if that was 0.
7083c021
AC
374as_fn_error ()
375{
b6d0720c
AC
376 as_status=$1; test $as_status -eq 0 && as_status=1
377 if test "$4"; then
378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7083c021 380 fi
b6d0720c 381 $as_echo "$as_me: error: $2" >&2
7083c021
AC
382 as_fn_exit $as_status
383} # as_fn_error
212380e3 384
631ef239
AC
385if expr a : '\(a\)' >/dev/null 2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
387 as_expr=expr
388else
389 as_expr=false
390fi
391
631ef239 392if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
393 as_basename=basename
394else
395 as_basename=false
396fi
397
7083c021
AC
398if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_dirname=dirname
400else
401 as_dirname=false
402fi
212380e3 403
631ef239 404as_me=`$as_basename -- "$0" ||
212380e3
AC
405$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
631ef239 407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 408$as_echo X/"$0" |
631ef239
AC
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\/\)$/{
414 s//\1/
415 q
416 }
417 /^X\/\(\/\).*/{
418 s//\1/
419 q
420 }
421 s/.*/./; q'`
212380e3 422
7083c021
AC
423# Avoid depending upon Character Ranges.
424as_cr_letters='abcdefghijklmnopqrstuvwxyz'
425as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426as_cr_Letters=$as_cr_letters$as_cr_LETTERS
427as_cr_digits='0123456789'
428as_cr_alnum=$as_cr_Letters$as_cr_digits
212380e3 429
212380e3 430
7083c021
AC
431 as_lineno_1=$LINENO as_lineno_1a=$LINENO
432 as_lineno_2=$LINENO as_lineno_2a=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
212380e3 453
7083c021
AC
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
631ef239 460}
212380e3 461
7083c021
AC
462ECHO_C= ECHO_N= ECHO_T=
463case `echo -n x` in #(((((
464-n*)
465 case `echo 'xy\c'` in
466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
467 xy) ECHO_C='\c';;
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 ECHO_T=' ';;
470 esac;;
471*)
472 ECHO_N='-n';;
473esac
631ef239 474
7083c021
AC
475rm -f conf$$ conf$$.exe conf$$.file
476if test -d conf$$.dir; then
477 rm -f conf$$.dir/conf$$.file
478else
479 rm -f conf$$.dir
480 mkdir conf$$.dir 2>/dev/null
481fi
482if (echo >conf$$.file) 2>/dev/null; then
483 if ln -s conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s='ln -s'
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
490 as_ln_s='cp -p'
491 elif ln conf$$.file conf$$ 2>/dev/null; then
492 as_ln_s=ln
493 else
494 as_ln_s='cp -p'
495 fi
631ef239 496else
7083c021 497 as_ln_s='cp -p'
631ef239 498fi
7083c021
AC
499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
500rmdir conf$$.dir 2>/dev/null
631ef239 501
7083c021
AC
502if mkdir -p . 2>/dev/null; then
503 as_mkdir_p='mkdir -p "$as_dir"'
504else
505 test -d ./-p && rmdir ./-p
506 as_mkdir_p=false
631ef239
AC
507fi
508
7083c021
AC
509if test -x / >/dev/null 2>&1; then
510 as_test_x='test -x'
631ef239 511else
7083c021
AC
512 if ls -dL / >/dev/null 2>&1; then
513 as_ls_L_option=L
514 else
515 as_ls_L_option=
516 fi
517 as_test_x='
518 eval sh -c '\''
519 if test -d "$1"; then
520 test -d "$1/.";
521 else
522 case $1 in #(
523 -*)set "./$1";;
524 esac;
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
527 '\'' sh
528 '
631ef239 529fi
7083c021 530as_executable_p=$as_test_x
631ef239 531
7083c021
AC
532# Sed expression to map a string onto a valid CPP name.
533as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
631ef239 534
7083c021
AC
535# Sed expression to map a string onto a valid variable name.
536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
631ef239
AC
537
538
6fb6bd15
AC
539test -n "$DJDIR" || exec 7<&0 </dev/null
540exec 6>&1
631ef239 541
7083c021 542# Name of the host.
b6d0720c 543# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
7083c021
AC
544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
631ef239 546
7083c021
AC
547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
551ac_clean_files=
552ac_config_libobj_dir=.
553LIBOBJS=
554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
212380e3 558
212380e3
AC
559# Identity of this package.
560PACKAGE_NAME='charybdis'
561PACKAGE_TARNAME='charybdis'
dc9aebf4
JT
562PACKAGE_VERSION='3.5.0-dev'
563PACKAGE_STRING='charybdis 3.5.0-dev'
212380e3 564PACKAGE_BUGREPORT=''
7083c021 565PACKAGE_URL=''
212380e3
AC
566
567ac_default_prefix=$HOME/ircd
568# Factoring default headers for most tests.
569ac_includes_default="\
570#include <stdio.h>
631ef239 571#ifdef HAVE_SYS_TYPES_H
212380e3
AC
572# include <sys/types.h>
573#endif
631ef239 574#ifdef HAVE_SYS_STAT_H
212380e3
AC
575# include <sys/stat.h>
576#endif
631ef239 577#ifdef STDC_HEADERS
212380e3
AC
578# include <stdlib.h>
579# include <stddef.h>
580#else
631ef239 581# ifdef HAVE_STDLIB_H
212380e3
AC
582# include <stdlib.h>
583# endif
584#endif
631ef239
AC
585#ifdef HAVE_STRING_H
586# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
212380e3
AC
587# include <memory.h>
588# endif
589# include <string.h>
590#endif
631ef239 591#ifdef HAVE_STRINGS_H
212380e3
AC
592# include <strings.h>
593#endif
631ef239 594#ifdef HAVE_INTTYPES_H
212380e3 595# include <inttypes.h>
212380e3 596#endif
631ef239
AC
597#ifdef HAVE_STDINT_H
598# include <stdint.h>
599#endif
600#ifdef HAVE_UNISTD_H
212380e3
AC
601# include <unistd.h>
602#endif"
603
7083c021
AC
604enable_option_checking=no
605ac_subst_vars='LTLIBOBJS
631ef239 606LIBOBJS
7083c021
AC
607SEDOBJ
608IRC_CFLAGS
609PICFLAGS
610SSL_LIBS
611SSL_INCLUDES
612SSL_SRCS_ENABLE
613MOD_TARGET
614MODULES_LIBS
615SELECT_TYPE
9f9b7042
NPB
616PROGRAM_PREFIX
617PKGRUNDIR
7083c021
AC
618moduledir
619MODULE_DIR
620helpdir
621HELP_DIR
622logdir
623LOG_DIR
7083c021
AC
624ETC_DIR
625ZLIB_LD
626ENCSPEED
627ALLOCA
628VICONF
629CRYPT_LIB
9f9b7042
NPB
630PKGLIBEXECDIR
631pkglibexecdir
632PKGLOCALSTATEDIR
633pkglocalstatedir
634pkgrundir
635rundir
636pkglibdir
7083c021
AC
637LEXLIB
638LEX_OUTPUT_ROOT
639LEX
640YFLAGS
641YACC
642TOUCH
643RANLIB
644LD
645AR
646SED
647LN
648MV
649CP
650RM
651INSTALL_DATA
652INSTALL_SCRIPT
653INSTALL_PROGRAM
654SET_MAKE
655STDOUT
656MAKEDEPEND
657MKDEP
658subdirs
659EGREP
660GREP
661CPP
662OBJEXT
663EXEEXT
664ac_ct_CC
665CPPFLAGS
666LDFLAGS
667CFLAGS
668CC
669target_alias
670host_alias
671build_alias
672LIBS
673ECHO_T
674ECHO_N
675ECHO_C
676DEFS
677mandir
678localedir
679libdir
680psdir
681pdfdir
682dvidir
683htmldir
684infodir
685docdir
686oldincludedir
687includedir
688localstatedir
689sharedstatedir
690sysconfdir
691datadir
692datarootdir
693libexecdir
694sbindir
695bindir
696program_transform_name
697prefix
698exec_prefix
699PACKAGE_URL
700PACKAGE_BUGREPORT
701PACKAGE_STRING
702PACKAGE_VERSION
703PACKAGE_TARNAME
704PACKAGE_NAME
705PATH_SEPARATOR
706SHELL'
212380e3 707ac_subst_files=''
7083c021
AC
708ac_user_opts='
709enable_option_checking
9f9b7042 710enable_fhs_paths
7083c021
AC
711enable_ipv6
712enable_openssl
713with_zlib_path
714enable_zlib
715enable_ports
716enable_poll
717enable_select
718enable_kqueue
719enable_epoll
720with_confdir
721with_logdir
722with_helpdir
723with_moduledir
9f9b7042
NPB
724with_rundir
725with_program_prefix
b6d0720c
AC
726with_custom_branding
727with_custom_version
7083c021
AC
728enable_assert
729enable_iodebug
730enable_profile
731enable_balloc
732enable_small_net
733with_nicklen
734with_topiclen
735enable_warnings
736'
631ef239
AC
737 ac_precious_vars='build_alias
738host_alias
739target_alias
740CC
741CFLAGS
742LDFLAGS
743LIBS
744CPPFLAGS
745CPP
746YACC
747YFLAGS'
b676ea3b 748ac_subdirs_all='libratbox'
212380e3
AC
749
750# Initialize some variables set by options.
751ac_init_help=
752ac_init_version=false
7083c021
AC
753ac_unrecognized_opts=
754ac_unrecognized_sep=
212380e3
AC
755# The variables have the same names as the options, with
756# dashes changed to underlines.
757cache_file=/dev/null
758exec_prefix=NONE
759no_create=
760no_recursion=
761prefix=NONE
762program_prefix=NONE
763program_suffix=NONE
764program_transform_name=s,x,x,
765silent=
766site=
767srcdir=
768verbose=
769x_includes=NONE
770x_libraries=NONE
771
772# Installation directory options.
773# These are left unexpanded so users can "make install exec_prefix=/foo"
774# and all the variables that are supposed to be based on exec_prefix
775# by default will actually change.
776# Use braces instead of parens because sh, perl, etc. also accept them.
631ef239 777# (The list follows the same order as the GNU Coding Standards.)
212380e3
AC
778bindir='${exec_prefix}/bin'
779sbindir='${exec_prefix}/sbin'
780libexecdir='${exec_prefix}/libexec'
631ef239
AC
781datarootdir='${prefix}/share'
782datadir='${datarootdir}'
212380e3
AC
783sysconfdir='${prefix}/etc'
784sharedstatedir='${prefix}/com'
785localstatedir='${prefix}/var'
212380e3
AC
786includedir='${prefix}/include'
787oldincludedir='/usr/include'
631ef239
AC
788docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789infodir='${datarootdir}/info'
790htmldir='${docdir}'
791dvidir='${docdir}'
792pdfdir='${docdir}'
793psdir='${docdir}'
794libdir='${exec_prefix}/lib'
795localedir='${datarootdir}/locale'
796mandir='${datarootdir}/man'
212380e3
AC
797
798ac_prev=
631ef239 799ac_dashdash=
212380e3
AC
800for ac_option
801do
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
631ef239 804 eval $ac_prev=\$ac_option
212380e3
AC
805 ac_prev=
806 continue
807 fi
808
631ef239 809 case $ac_option in
b6d0720c
AC
810 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *=) ac_optarg= ;;
812 *) ac_optarg=yes ;;
631ef239 813 esac
212380e3
AC
814
815 # Accept the important Cygnus configure options, so we can diagnose typos.
816
631ef239
AC
817 case $ac_dashdash$ac_option in
818 --)
819 ac_dashdash=yes ;;
212380e3
AC
820
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
825
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
830
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
837
838 --config-cache | -C)
839 cache_file=config.cache ;;
840
631ef239 841 -datadir | --datadir | --datadi | --datad)
212380e3 842 ac_prev=datadir ;;
631ef239 843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
212380e3
AC
844 datadir=$ac_optarg ;;
845
631ef239
AC
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
852
212380e3 853 -disable-* | --disable-*)
7083c021 854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
212380e3 855 # Reject names that are not valid shell variable names.
7083c021 856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 857 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
861 *"
862"enable_$ac_useropt"
863"*) ;;
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
866 esac
867 eval enable_$ac_useropt=no ;;
631ef239
AC
868
869 -docdir | --docdir | --docdi | --doc | --do)
870 ac_prev=docdir ;;
871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872 docdir=$ac_optarg ;;
873
874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875 ac_prev=dvidir ;;
876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877 dvidir=$ac_optarg ;;
212380e3
AC
878
879 -enable-* | --enable-*)
7083c021 880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
212380e3 881 # Reject names that are not valid shell variable names.
7083c021 882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 883 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888"enable_$ac_useropt"
889"*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=\$ac_optarg ;;
212380e3
AC
894
895 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
896 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
897 | --exec | --exe | --ex)
898 ac_prev=exec_prefix ;;
899 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
900 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
901 | --exec=* | --exe=* | --ex=*)
902 exec_prefix=$ac_optarg ;;
903
904 -gas | --gas | --ga | --g)
905 # Obsolete; use --with-gas.
906 with_gas=yes ;;
907
908 -help | --help | --hel | --he | -h)
909 ac_init_help=long ;;
910 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
911 ac_init_help=recursive ;;
912 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
913 ac_init_help=short ;;
914
915 -host | --host | --hos | --ho)
916 ac_prev=host_alias ;;
917 -host=* | --host=* | --hos=* | --ho=*)
918 host_alias=$ac_optarg ;;
919
631ef239
AC
920 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921 ac_prev=htmldir ;;
922 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923 | --ht=*)
924 htmldir=$ac_optarg ;;
925
212380e3
AC
926 -includedir | --includedir | --includedi | --included | --include \
927 | --includ | --inclu | --incl | --inc)
928 ac_prev=includedir ;;
929 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
930 | --includ=* | --inclu=* | --incl=* | --inc=*)
931 includedir=$ac_optarg ;;
932
933 -infodir | --infodir | --infodi | --infod | --info | --inf)
934 ac_prev=infodir ;;
935 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
936 infodir=$ac_optarg ;;
937
938 -libdir | --libdir | --libdi | --libd)
939 ac_prev=libdir ;;
940 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 libdir=$ac_optarg ;;
942
943 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
944 | --libexe | --libex | --libe)
945 ac_prev=libexecdir ;;
946 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
947 | --libexe=* | --libex=* | --libe=*)
948 libexecdir=$ac_optarg ;;
949
631ef239
AC
950 -localedir | --localedir | --localedi | --localed | --locale)
951 ac_prev=localedir ;;
952 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
953 localedir=$ac_optarg ;;
954
212380e3 955 -localstatedir | --localstatedir | --localstatedi | --localstated \
631ef239 956 | --localstate | --localstat | --localsta | --localst | --locals)
212380e3
AC
957 ac_prev=localstatedir ;;
958 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631ef239 959 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
212380e3
AC
960 localstatedir=$ac_optarg ;;
961
962 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963 ac_prev=mandir ;;
964 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
965 mandir=$ac_optarg ;;
966
967 -nfp | --nfp | --nf)
968 # Obsolete; use --without-fp.
969 with_fp=no ;;
970
971 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
972 | --no-cr | --no-c | -n)
973 no_create=yes ;;
974
975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 no_recursion=yes ;;
978
979 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
980 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
981 | --oldin | --oldi | --old | --ol | --o)
982 ac_prev=oldincludedir ;;
983 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
984 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
985 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
986 oldincludedir=$ac_optarg ;;
987
988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989 ac_prev=prefix ;;
990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 prefix=$ac_optarg ;;
992
993 -program-prefix | --program-prefix | --program-prefi | --program-pref \
994 | --program-pre | --program-pr | --program-p)
995 ac_prev=program_prefix ;;
996 -program-prefix=* | --program-prefix=* | --program-prefi=* \
997 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
998 program_prefix=$ac_optarg ;;
999
1000 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1001 | --program-suf | --program-su | --program-s)
1002 ac_prev=program_suffix ;;
1003 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1004 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1005 program_suffix=$ac_optarg ;;
1006
1007 -program-transform-name | --program-transform-name \
1008 | --program-transform-nam | --program-transform-na \
1009 | --program-transform-n | --program-transform- \
1010 | --program-transform | --program-transfor \
1011 | --program-transfo | --program-transf \
1012 | --program-trans | --program-tran \
1013 | --progr-tra | --program-tr | --program-t)
1014 ac_prev=program_transform_name ;;
1015 -program-transform-name=* | --program-transform-name=* \
1016 | --program-transform-nam=* | --program-transform-na=* \
1017 | --program-transform-n=* | --program-transform-=* \
1018 | --program-transform=* | --program-transfor=* \
1019 | --program-transfo=* | --program-transf=* \
1020 | --program-trans=* | --program-tran=* \
1021 | --progr-tra=* | --program-tr=* | --program-t=*)
1022 program_transform_name=$ac_optarg ;;
1023
631ef239
AC
1024 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025 ac_prev=pdfdir ;;
1026 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1027 pdfdir=$ac_optarg ;;
1028
1029 -psdir | --psdir | --psdi | --psd | --ps)
1030 ac_prev=psdir ;;
1031 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 psdir=$ac_optarg ;;
1033
212380e3
AC
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1036 silent=yes ;;
1037
1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 ac_prev=sbindir ;;
1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 | --sbi=* | --sb=*)
1042 sbindir=$ac_optarg ;;
1043
1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046 | --sharedst | --shareds | --shared | --share | --shar \
1047 | --sha | --sh)
1048 ac_prev=sharedstatedir ;;
1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 | --sha=* | --sh=*)
1053 sharedstatedir=$ac_optarg ;;
1054
1055 -site | --site | --sit)
1056 ac_prev=site ;;
1057 -site=* | --site=* | --sit=*)
1058 site=$ac_optarg ;;
1059
1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 ac_prev=srcdir ;;
1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063 srcdir=$ac_optarg ;;
1064
1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066 | --syscon | --sysco | --sysc | --sys | --sy)
1067 ac_prev=sysconfdir ;;
1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070 sysconfdir=$ac_optarg ;;
1071
1072 -target | --target | --targe | --targ | --tar | --ta | --t)
1073 ac_prev=target_alias ;;
1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075 target_alias=$ac_optarg ;;
1076
1077 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 verbose=yes ;;
1079
1080 -version | --version | --versio | --versi | --vers | -V)
1081 ac_init_version=: ;;
1082
1083 -with-* | --with-*)
7083c021 1084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
212380e3 1085 # Reject names that are not valid shell variable names.
7083c021 1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1087 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092"with_$ac_useropt"
1093"*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval with_$ac_useropt=\$ac_optarg ;;
212380e3
AC
1098
1099 -without-* | --without-*)
7083c021 1100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
212380e3 1101 # Reject names that are not valid shell variable names.
7083c021 1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1103 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108"with_$ac_useropt"
1109"*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=no ;;
212380e3
AC
1114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1132
b6d0720c
AC
1133 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1134Try \`$0 --help' for more information"
212380e3
AC
1135 ;;
1136
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
7083c021
AC
1140 case $ac_envvar in #(
1141 '' | [0-9]* | *[!_$as_cr_alnum]* )
b6d0720c 1142 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
7083c021 1143 esac
631ef239 1144 eval $ac_envvar=\$ac_optarg
212380e3
AC
1145 export $ac_envvar ;;
1146
1147 *)
1148 # FIXME: should be removed in autoconf 3.0.
7083c021 1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
212380e3 1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
7083c021 1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b6d0720c 1152 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
212380e3
AC
1153 ;;
1154
1155 esac
1156done
1157
1158if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b6d0720c 1160 as_fn_error $? "missing argument to $ac_option"
212380e3
AC
1161fi
1162
7083c021
AC
1163if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1165 no) ;;
b6d0720c 1166 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
7083c021
AC
1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168 esac
1169fi
1170
1171# Check all directory arguments for consistency.
631ef239
AC
1172for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
212380e3 1176do
631ef239 1177 eval ac_val=\$$ac_var
7083c021
AC
1178 # Remove trailing slashes.
1179 case $ac_val in
1180 */ )
1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\$ac_val;;
1183 esac
1184 # Be sure to have absolute directory names.
212380e3 1185 case $ac_val in
631ef239
AC
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
212380e3 1188 esac
b6d0720c 1189 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
212380e3
AC
1190done
1191
1192# There might be people who depend on the old broken behavior: `$host'
1193# used to hold the argument of --host etc.
1194# FIXME: To remove some day.
1195build=$build_alias
1196host=$host_alias
1197target=$target_alias
1198
1199# FIXME: To remove some day.
1200if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
b6d0720c
AC
1203 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1204 If a cross compiler is detected then cross compile mode will be used" >&2
212380e3
AC
1205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1207 fi
1208fi
1209
1210ac_tool_prefix=
1211test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213test "$silent" = yes && exec 6>/dev/null
1214
1215
631ef239
AC
1216ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217ac_ls_di=`ls -di .` &&
1218ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b6d0720c 1219 as_fn_error $? "working directory cannot be determined"
631ef239 1220test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b6d0720c 1221 as_fn_error $? "pwd does not report name of working directory"
631ef239
AC
1222
1223
1224# Find the source files, if location was not specified.
1225if test -z "$srcdir"; then
212380e3 1226 ac_srcdir_defaulted=yes
631ef239 1227 # Try the directory containing this script, then the parent directory.
7083c021
AC
1228 ac_confdir=`$as_dirname -- "$as_myself" ||
1229$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$as_myself" : 'X\(//\)[^/]' \| \
1231 X"$as_myself" : 'X\(//\)$' \| \
1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233$as_echo X"$as_myself" |
631ef239
AC
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\/\)$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\).*/{
1247 s//\1/
1248 q
1249 }
1250 s/.*/./; q'`
212380e3 1251 srcdir=$ac_confdir
631ef239 1252 if test ! -r "$srcdir/$ac_unique_file"; then
212380e3
AC
1253 srcdir=..
1254 fi
1255else
1256 ac_srcdir_defaulted=no
1257fi
631ef239
AC
1258if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b6d0720c 1260 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
212380e3 1261fi
631ef239
AC
1262ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263ac_abs_confdir=`(
b6d0720c 1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
631ef239
AC
1265 pwd)`
1266# When building in place, set srcdir=.
1267if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1269fi
1270# Remove unnecessary trailing slashes from srcdir.
1271# Double slashes in file names in object file debugging info
1272# mess up M-x gdb in Emacs.
1273case $srcdir in
1274*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275esac
1276for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281done
212380e3
AC
1282
1283#
1284# Report the --help message.
1285#
1286if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
dc9aebf4 1290\`configure' configures charybdis 3.5.0-dev to adapt to many kinds of systems.
212380e3
AC
1291
1292Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295VAR=VALUE. See below for descriptions of some of the useful variables.
1296
1297Defaults for the options are specified in brackets.
1298
1299Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
b6d0720c 1304 -q, --quiet, --silent do not print \`checking ...' messages
212380e3
AC
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309
212380e3
AC
1310Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
7083c021 1312 [$ac_default_prefix]
212380e3 1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
7083c021 1314 [PREFIX]
212380e3
AC
1315
1316By default, \`make install' will install all the files in
1317\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319for instance \`--prefix=\$HOME'.
1320
1321For better control, use the options below.
1322
1323Fine tuning of the installation directories:
7083c021
AC
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
212380e3
AC
1343_ACEOF
1344
1345 cat <<\_ACEOF
1346_ACEOF
1347fi
1348
1349if test -n "$ac_init_help"; then
1350 case $ac_init_help in
dc9aebf4 1351 short | recursive ) echo "Configuration of charybdis 3.5.0-dev:";;
212380e3
AC
1352 esac
1353 cat <<\_ACEOF
1354
1355Optional Features:
7083c021 1356 --disable-option-checking ignore unrecognized --enable/--with options
212380e3
AC
1357 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1358 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6929cd01 1359 --enable-fhs-paths Use more FHS-like pathnames (for packagers).
212380e3 1360 --enable-ipv6 Enable IPv6 support
631ef239 1361 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
212380e3
AC
1362 --disable-openssl Disable OpenSSL support.
1363 --disable-zlib Disable ziplinks support
c1c5fdc4 1364 --enable-ports Force solaris I/O ports subsystem usage.
212380e3
AC
1365 --enable-poll Force poll() usage.
1366 --enable-select Force select() usage.
1367 --enable-kqueue Force kqueue() usage.
212380e3
AC
1368 --enable-epoll Force sys_epoll usage (Linux only).
1369 --enable-assert Enable assert(). Choose between soft(warnings) and
1370 hard(aborts the daemon)
1371 --enable-iodebug Enable IO Debugging hooks
1372 --enable-profile Enable profiling
1373 --disable-balloc Disable the block allocator.
212380e3 1374 --enable-small-net Enable small network support.
212380e3
AC
1375 --enable-warnings Enable all sorts of warnings for debugging.
1376
1377Optional Packages:
1378 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1379 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1380 --with-zlib-path=DIR Path to libz.so for ziplinks support.
634d4aad
NPB
1381 --with-confdir=DIR Directory to install config files [deprecated, use
1382 --sysconfdir instead].
212380e3
AC
1383 --with-logdir=DIR Directory where to write logfiles.
1384 --with-helpdir=DIR Directory to install help files.
1385 --with-moduledir=DIR Directory to install modules.
9f9b7042
NPB
1386 --with-rundir=DIR Directory in which to store pidfile.
1387 --with-program-prefix= If set, programs installed into PATH will be
1388 installed with names prefixed by this prefix.
b6d0720c
AC
1389 --with-custom-branding=NAME
1390 Custom branding name.
1391 --with-custom-version=NAME
1392 Custom version branding.
b583faf9 1393 --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default
cf533739 1394 31, max 50)
212380e3
AC
1395 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1396 390)
212380e3
AC
1397
1398Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
631ef239 1403 LIBS libraries to pass to the linker, e.g. -l<library>
6fb6bd15 1404 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
631ef239 1405 you have headers in a nonstandard directory <include dir>
212380e3 1406 CPP C preprocessor
b6d0720c
AC
1407 YACC The `Yet Another Compiler Compiler' implementation to use.
1408 Defaults to the first program found out of: `bison -y', `byacc',
1409 `yacc'.
631ef239
AC
1410 YFLAGS The list of arguments that will be passed by default to $YACC.
1411 This script will default YFLAGS to the empty string to avoid a
1412 default value of `-d' given by some make applications.
212380e3
AC
1413
1414Use these variables to override the choices made by `configure' or to help
1415it to find libraries and programs with nonstandard names/locations.
1416
7083c021 1417Report bugs to the package provider.
212380e3 1418_ACEOF
631ef239 1419ac_status=$?
212380e3
AC
1420fi
1421
1422if test "$ac_init_help" = "recursive"; then
1423 # If there are subdirs, report their specific --help.
212380e3 1424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7083c021
AC
1425 test -d "$ac_dir" ||
1426 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1427 continue
212380e3
AC
1428 ac_builddir=.
1429
631ef239
AC
1430case "$ac_dir" in
1431.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432*)
7083c021 1433 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 1434 # A ".." for each directory in $ac_dir_suffix.
7083c021 1435 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
1436 case $ac_top_builddir_sub in
1437 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439 esac ;;
1440esac
1441ac_abs_top_builddir=$ac_pwd
1442ac_abs_builddir=$ac_pwd$ac_dir_suffix
1443# for backward compatibility:
1444ac_top_builddir=$ac_top_build_prefix
212380e3
AC
1445
1446case $srcdir in
631ef239 1447 .) # We are building in place.
212380e3 1448 ac_srcdir=.
631ef239
AC
1449 ac_top_srcdir=$ac_top_builddir_sub
1450 ac_abs_top_srcdir=$ac_pwd ;;
1451 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 1452 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
1453 ac_top_srcdir=$srcdir
1454 ac_abs_top_srcdir=$srcdir ;;
1455 *) # Relative name.
1456 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457 ac_top_srcdir=$ac_top_build_prefix$srcdir
1458 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 1459esac
631ef239
AC
1460ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1461
1462 cd "$ac_dir" || { ac_status=$?; continue; }
1463 # Check for guested configure.
1464 if test -f "$ac_srcdir/configure.gnu"; then
1465 echo &&
1466 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467 elif test -f "$ac_srcdir/configure"; then
1468 echo &&
1469 $SHELL "$ac_srcdir/configure" --help=recursive
212380e3 1470 else
7083c021 1471 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
631ef239
AC
1472 fi || ac_status=$?
1473 cd "$ac_pwd" || { ac_status=$?; break; }
212380e3
AC
1474 done
1475fi
1476
631ef239 1477test -n "$ac_init_help" && exit $ac_status
212380e3
AC
1478if $ac_init_version; then
1479 cat <<\_ACEOF
dc9aebf4 1480charybdis configure 3.5.0-dev
b6d0720c 1481generated by GNU Autoconf 2.68
212380e3 1482
b6d0720c 1483Copyright (C) 2010 Free Software Foundation, Inc.
212380e3
AC
1484This configure script is free software; the Free Software Foundation
1485gives unlimited permission to copy, distribute and modify it.
1486
b676ea3b 1487$Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 1488_ACEOF
631ef239 1489 exit
212380e3 1490fi
212380e3 1491
7083c021
AC
1492## ------------------------ ##
1493## Autoconf initialization. ##
1494## ------------------------ ##
212380e3 1495
7083c021
AC
1496# ac_fn_c_try_compile LINENO
1497# --------------------------
1498# Try to compile conftest.$ac_ext, and return whether this succeeded.
1499ac_fn_c_try_compile ()
1500{
1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502 rm -f conftest.$ac_objext
1503 if { { ac_try="$ac_compile"
1504case "(($ac_try" in
1505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1506 *) ac_try_echo=$ac_try;;
1507esac
1508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509$as_echo "$ac_try_echo"; } >&5
1510 (eval "$ac_compile") 2>conftest.err
1511 ac_status=$?
1512 if test -s conftest.err; then
1513 grep -v '^ *+' conftest.err >conftest.er1
1514 cat conftest.er1 >&5
1515 mv -f conftest.er1 conftest.err
1516 fi
1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 test $ac_status = 0; } && {
1519 test -z "$ac_c_werror_flag" ||
1520 test ! -s conftest.err
1521 } && test -s conftest.$ac_objext; then :
1522 ac_retval=0
1523else
1524 $as_echo "$as_me: failed program was:" >&5
1525sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1526
7083c021
AC
1527 ac_retval=1
1528fi
b6d0720c 1529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1530 as_fn_set_status $ac_retval
7083c021
AC
1531
1532} # ac_fn_c_try_compile
1533
1534# ac_fn_c_try_cpp LINENO
1535# ----------------------
1536# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1537ac_fn_c_try_cpp ()
212380e3 1538{
7083c021
AC
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 if { { ac_try="$ac_cpp conftest.$ac_ext"
1541case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b6d0720c 1555 test $ac_status = 0; } > conftest.i && {
7083c021
AC
1556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 }; then :
1559 ac_retval=0
1560else
1561 $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1563
7083c021
AC
1564 ac_retval=1
1565fi
b6d0720c 1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1567 as_fn_set_status $ac_retval
212380e3 1568
7083c021 1569} # ac_fn_c_try_cpp
212380e3 1570
7083c021
AC
1571# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1572# -------------------------------------------------------
1573# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1574# the include files in INCLUDES and setting the cache variable VAR
1575# accordingly.
1576ac_fn_c_check_header_mongrel ()
1577{
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b6d0720c 1579 if eval \${$3+:} false; then :
7083c021
AC
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1581$as_echo_n "checking for $2... " >&6; }
b6d0720c 1582if eval \${$3+:} false; then :
7083c021
AC
1583 $as_echo_n "(cached) " >&6
1584fi
1585eval ac_res=\$$3
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587$as_echo "$ac_res" >&6; }
1588else
1589 # Is the header compilable?
1590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1591$as_echo_n "checking $2 usability... " >&6; }
1592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1593/* end confdefs.h. */
1594$4
1595#include <$2>
1596_ACEOF
1597if ac_fn_c_try_compile "$LINENO"; then :
1598 ac_header_compiler=yes
1599else
1600 ac_header_compiler=no
1601fi
1602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1604$as_echo "$ac_header_compiler" >&6; }
212380e3 1605
7083c021
AC
1606# Is the header present?
1607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1608$as_echo_n "checking $2 presence... " >&6; }
1609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610/* end confdefs.h. */
1611#include <$2>
1612_ACEOF
1613if ac_fn_c_try_cpp "$LINENO"; then :
1614 ac_header_preproc=yes
1615else
1616 ac_header_preproc=no
1617fi
b6d0720c 1618rm -f conftest.err conftest.i conftest.$ac_ext
7083c021
AC
1619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1620$as_echo "$ac_header_preproc" >&6; }
212380e3 1621
7083c021
AC
1622# So? What about this header?
1623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1624 yes:no: )
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1626$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1628$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1629 ;;
1630 no:yes:* )
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1632$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1634$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1636$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1638$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1640$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1641 ;;
1642esac
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644$as_echo_n "checking for $2... " >&6; }
b6d0720c 1645if eval \${$3+:} false; then :
7083c021
AC
1646 $as_echo_n "(cached) " >&6
1647else
1648 eval "$3=\$ac_header_compiler"
1649fi
1650eval ac_res=\$$3
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652$as_echo "$ac_res" >&6; }
1653fi
b6d0720c 1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1655
7083c021 1656} # ac_fn_c_check_header_mongrel
212380e3 1657
7083c021
AC
1658# ac_fn_c_try_run LINENO
1659# ----------------------
1660# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1661# that executables *can* be run.
1662ac_fn_c_try_run ()
1663{
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_link"
1666case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>&5
1673 ac_status=$?
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1676 { { case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679esac
1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681$as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_try") 2>&5
1683 ac_status=$?
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; }; }; then :
1686 ac_retval=0
1687else
1688 $as_echo "$as_me: program exited with status $ac_status" >&5
1689 $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1691
7083c021
AC
1692 ac_retval=$ac_status
1693fi
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1696 as_fn_set_status $ac_retval
212380e3 1697
7083c021 1698} # ac_fn_c_try_run
212380e3 1699
7083c021
AC
1700# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701# -------------------------------------------------------
1702# Tests whether HEADER exists and can be compiled using the include files in
1703# INCLUDES, setting the cache variable VAR accordingly.
1704ac_fn_c_check_header_compile ()
1705{
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708$as_echo_n "checking for $2... " >&6; }
b6d0720c 1709if eval \${$3+:} false; then :
7083c021
AC
1710 $as_echo_n "(cached) " >&6
1711else
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713/* end confdefs.h. */
1714$4
1715#include <$2>
212380e3 1716_ACEOF
7083c021
AC
1717if ac_fn_c_try_compile "$LINENO"; then :
1718 eval "$3=yes"
1719else
1720 eval "$3=no"
1721fi
1722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723fi
1724eval ac_res=\$$3
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726$as_echo "$ac_res" >&6; }
b6d0720c 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1728
7083c021 1729} # ac_fn_c_check_header_compile
212380e3 1730
7083c021
AC
1731# ac_fn_c_try_link LINENO
1732# -----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_c_try_link ()
1735{
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext conftest$ac_exeext
1738 if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
1758 $as_test_x conftest$ac_exeext
1759 }; then :
1760 ac_retval=0
212380e3 1761else
7083c021
AC
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1764
7083c021 1765 ac_retval=1
212380e3 1766fi
7083c021
AC
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1773 as_fn_set_status $ac_retval
212380e3 1774
7083c021 1775} # ac_fn_c_try_link
212380e3 1776
7083c021
AC
1777# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1778# -------------------------------------------
1779# Tests whether TYPE exists after having included INCLUDES, setting cache
1780# variable VAR accordingly.
1781ac_fn_c_check_type ()
1782{
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
b6d0720c 1786if eval \${$3+:} false; then :
7083c021 1787 $as_echo_n "(cached) " >&6
212380e3 1788else
7083c021
AC
1789 eval "$3=no"
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h. */
1792$4
1793int
1794main ()
1795{
1796if (sizeof ($2))
1797 return 0;
1798 ;
1799 return 0;
1800}
212380e3 1801_ACEOF
7083c021
AC
1802if ac_fn_c_try_compile "$LINENO"; then :
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1804/* end confdefs.h. */
7083c021 1805$4
212380e3
AC
1806int
1807main ()
1808{
7083c021
AC
1809if (sizeof (($2)))
1810 return 0;
212380e3
AC
1811 ;
1812 return 0;
1813}
1814_ACEOF
7083c021 1815if ac_fn_c_try_compile "$LINENO"; then :
212380e3 1816
631ef239 1817else
7083c021 1818 eval "$3=yes"
212380e3 1819fi
7083c021 1820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 1821fi
7083c021 1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 1823fi
7083c021
AC
1824eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826$as_echo "$ac_res" >&6; }
b6d0720c 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1828
7083c021
AC
1829} # ac_fn_c_check_type
1830
1831# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1832# --------------------------------------------
1833# Tries to find the compile-time value of EXPR in a program that includes
1834# INCLUDES, setting VAR accordingly. Returns whether the value could be
1835# computed
1836ac_fn_c_compute_int ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if test "$cross_compiling" = yes; then
1840 # Depending upon the size, compute the lo and hi bounds.
1841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h. */
1843$4
1844int
1845main ()
1846{
1847static int test_array [1 - 2 * !(($2) >= 0)];
1848test_array [0] = 0
1849
1850 ;
1851 return 0;
1852}
212380e3 1853_ACEOF
7083c021
AC
1854if ac_fn_c_try_compile "$LINENO"; then :
1855 ac_lo=0 ac_mid=0
1856 while :; do
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1858/* end confdefs.h. */
7083c021
AC
1859$4
1860int
1861main ()
1862{
1863static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1864test_array [0] = 0
212380e3 1865
7083c021
AC
1866 ;
1867 return 0;
1868}
212380e3 1869_ACEOF
7083c021
AC
1870if ac_fn_c_try_compile "$LINENO"; then :
1871 ac_hi=$ac_mid; break
212380e3 1872else
7083c021
AC
1873 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1874 if test $ac_lo -le $ac_mid; then
1875 ac_lo= ac_hi=
1876 break
1877 fi
1878 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
212380e3 1879fi
631ef239 1880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
1881 done
1882else
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h. */
1885$4
1886int
1887main ()
1888{
1889static int test_array [1 - 2 * !(($2) < 0)];
1890test_array [0] = 0
212380e3 1891
7083c021
AC
1892 ;
1893 return 0;
1894}
212380e3 1895_ACEOF
7083c021
AC
1896if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_hi=-1 ac_mid=-1
1898 while :; do
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h. */
1901$4
1902int
1903main ()
1904{
1905static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1906test_array [0] = 0
212380e3 1907
7083c021
AC
1908 ;
1909 return 0;
1910}
1911_ACEOF
1912if ac_fn_c_try_compile "$LINENO"; then :
1913 ac_lo=$ac_mid; break
1914else
1915 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1916 if test $ac_mid -le $ac_hi; then
1917 ac_lo= ac_hi=
1918 break
1919 fi
1920 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
212380e3 1921fi
7083c021
AC
1922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 done
212380e3 1924else
7083c021
AC
1925 ac_lo= ac_hi=
1926fi
1927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928fi
1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930# Binary search between lo and hi bounds.
1931while test "x$ac_lo" != "x$ac_hi"; do
1932 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1934/* end confdefs.h. */
7083c021
AC
1935$4
1936int
1937main ()
1938{
1939static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1940test_array [0] = 0
1941
1942 ;
1943 return 0;
1944}
212380e3 1945_ACEOF
7083c021
AC
1946if ac_fn_c_try_compile "$LINENO"; then :
1947 ac_hi=$ac_mid
212380e3 1948else
7083c021 1949 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
212380e3 1950fi
7083c021
AC
1951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952done
1953case $ac_lo in #((
1954?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1955'') ac_retval=1 ;;
1956esac
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959/* end confdefs.h. */
1960$4
1961static long int longval () { return $2; }
1962static unsigned long int ulongval () { return $2; }
1963#include <stdio.h>
1964#include <stdlib.h>
1965int
1966main ()
1967{
631ef239 1968
7083c021
AC
1969 FILE *f = fopen ("conftest.val", "w");
1970 if (! f)
1971 return 1;
1972 if (($2) < 0)
1973 {
1974 long int i = longval ();
1975 if (i != ($2))
1976 return 1;
1977 fprintf (f, "%ld", i);
1978 }
1979 else
1980 {
1981 unsigned long int i = ulongval ();
1982 if (i != ($2))
1983 return 1;
1984 fprintf (f, "%lu", i);
1985 }
1986 /* Do not output a trailing newline, as this causes \r\n confusion
1987 on some platforms. */
1988 return ferror (f) || fclose (f) != 0;
212380e3 1989
7083c021
AC
1990 ;
1991 return 0;
1992}
212380e3 1993_ACEOF
7083c021
AC
1994if ac_fn_c_try_run "$LINENO"; then :
1995 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
212380e3 1996else
7083c021 1997 ac_retval=1
212380e3 1998fi
7083c021
AC
1999rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2000 conftest.$ac_objext conftest.beam conftest.$ac_ext
2001rm -f conftest.val
631ef239 2002
7083c021 2003 fi
b6d0720c 2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 2005 as_fn_set_status $ac_retval
212380e3 2006
7083c021 2007} # ac_fn_c_compute_int
212380e3 2008
7083c021
AC
2009# ac_fn_c_check_func LINENO FUNC VAR
2010# ----------------------------------
2011# Tests whether FUNC exists, setting the cache variable VAR accordingly
2012ac_fn_c_check_func ()
2013{
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016$as_echo_n "checking for $2... " >&6; }
b6d0720c 2017if eval \${$3+:} false; then :
7083c021 2018 $as_echo_n "(cached) " >&6
212380e3 2019else
7083c021 2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2021/* end confdefs.h. */
7083c021
AC
2022/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2024#define $2 innocuous_$2
2025
2026/* System header to define __stub macros and hopefully few prototypes,
2027 which can conflict with char $2 (); below.
2028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2029 <limits.h> exists even on freestanding compilers. */
2030
212380e3
AC
2031#ifdef __STDC__
2032# include <limits.h>
2033#else
2034# include <assert.h>
2035#endif
212380e3 2036
7083c021 2037#undef $2
631ef239 2038
7083c021
AC
2039/* Override any GCC internal prototype to avoid an error.
2040 Use char because int might match the return type of a GCC
2041 builtin and then its argument prototype would still apply. */
2042#ifdef __cplusplus
2043extern "C"
2044#endif
2045char $2 ();
2046/* The GNU C library defines this for functions which it implements
2047 to always fail with ENOSYS. Some functions are actually named
2048 something starting with __ and the normal name is an alias. */
2049#if defined __stub_$2 || defined __stub___$2
2050choke me
2051#endif
212380e3 2052
7083c021
AC
2053int
2054main ()
2055{
2056return $2 ();
2057 ;
2058 return 0;
2059}
212380e3 2060_ACEOF
7083c021
AC
2061if ac_fn_c_try_link "$LINENO"; then :
2062 eval "$3=yes"
212380e3 2063else
7083c021
AC
2064 eval "$3=no"
2065fi
2066rm -f core conftest.err conftest.$ac_objext \
2067 conftest$ac_exeext conftest.$ac_ext
212380e3 2068fi
7083c021
AC
2069eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071$as_echo "$ac_res" >&6; }
b6d0720c 2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
631ef239 2073
7083c021
AC
2074} # ac_fn_c_check_func
2075cat >config.log <<_ACEOF
2076This file contains any messages produced by compilers while
2077running configure, to aid debugging if configure makes a mistake.
212380e3 2078
dc9aebf4 2079It was created by charybdis $as_me 3.5.0-dev, which was
b6d0720c 2080generated by GNU Autoconf 2.68. Invocation command line was
212380e3 2081
7083c021 2082 $ $0 $@
212380e3 2083
7083c021
AC
2084_ACEOF
2085exec 5>>config.log
2086{
2087cat <<_ASUNAME
2088## --------- ##
2089## Platform. ##
2090## --------- ##
2091
2092hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2093uname -m = `(uname -m) 2>/dev/null || echo unknown`
2094uname -r = `(uname -r) 2>/dev/null || echo unknown`
2095uname -s = `(uname -s) 2>/dev/null || echo unknown`
2096uname -v = `(uname -v) 2>/dev/null || echo unknown`
2097
2098/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2099/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2100
2101/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2102/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2103/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2104/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2105/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2106/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2107/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2108
2109_ASUNAME
212380e3 2110
631ef239 2111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083c021 2112for as_dir in $PATH
631ef239
AC
2113do
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
7083c021 2116 $as_echo "PATH: $as_dir"
631ef239 2117 done
631ef239
AC
2118IFS=$as_save_IFS
2119
7083c021 2120} >&5
631ef239 2121
7083c021 2122cat >&5 <<_ACEOF
631ef239 2123
631ef239 2124
7083c021
AC
2125## ----------- ##
2126## Core tests. ##
2127## ----------- ##
631ef239 2128
7083c021 2129_ACEOF
631ef239
AC
2130
2131
7083c021
AC
2132# Keep a trace of the command line.
2133# Strip out --no-create and --no-recursion so they do not pile up.
2134# Strip out --silent because we don't want to record it for future runs.
2135# Also quote any args containing shell meta-characters.
2136# Make two passes to allow for proper duplicate-argument suppression.
2137ac_configure_args=
2138ac_configure_args0=
2139ac_configure_args1=
2140ac_must_keep_next=false
2141for ac_pass in 1 2
631ef239 2142do
7083c021 2143 for ac_arg
631ef239 2144 do
7083c021
AC
2145 case $ac_arg in
2146 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2148 | -silent | --silent | --silen | --sile | --sil)
2149 continue ;;
2150 *\'*)
2151 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2152 esac
2153 case $ac_pass in
2154 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2155 2)
2156 as_fn_append ac_configure_args1 " '$ac_arg'"
2157 if test $ac_must_keep_next = true; then
2158 ac_must_keep_next=false # Got value, back to normal.
2159 else
2160 case $ac_arg in
2161 *=* | --config-cache | -C | -disable-* | --disable-* \
2162 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2163 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2164 | -with-* | --with-* | -without-* | --without-* | --x)
2165 case "$ac_configure_args0 " in
2166 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2167 esac
2168 ;;
2169 -* ) ac_must_keep_next=true ;;
2170 esac
2171 fi
2172 as_fn_append ac_configure_args " '$ac_arg'"
2173 ;;
2174 esac
631ef239
AC
2175 done
2176done
7083c021
AC
2177{ ac_configure_args0=; unset ac_configure_args0;}
2178{ ac_configure_args1=; unset ac_configure_args1;}
631ef239 2179
7083c021
AC
2180# When interrupted or exit'd, cleanup temporary files, and complete
2181# config.log. We remove comments because anyway the quotes in there
2182# would cause problems or look ugly.
2183# WARNING: Use '\'' to represent an apostrophe within the trap.
2184# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2185trap 'exit_status=$?
2186 # Save into config.log some information that might help in debugging.
2187 {
2188 echo
631ef239 2189
b6d0720c 2190 $as_echo "## ---------------- ##
7083c021 2191## Cache variables. ##
b6d0720c 2192## ---------------- ##"
7083c021
AC
2193 echo
2194 # The following way of writing the cache mishandles newlines in values,
2195(
2196 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2197 eval ac_val=\$$ac_var
2198 case $ac_val in #(
2199 *${as_nl}*)
2200 case $ac_var in #(
2201 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2202$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2203 esac
2204 case $ac_var in #(
2205 _ | IFS | as_nl) ;; #(
2206 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2207 *) { eval $ac_var=; unset $ac_var;} ;;
2208 esac ;;
2209 esac
2210 done
2211 (set) 2>&1 |
2212 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2213 *${as_nl}ac_space=\ *)
2214 sed -n \
2215 "s/'\''/'\''\\\\'\'''\''/g;
2216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2217 ;; #(
2218 *)
2219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2220 ;;
2221 esac |
2222 sort
2223)
2224 echo
631ef239 2225
b6d0720c 2226 $as_echo "## ----------------- ##
7083c021 2227## Output variables. ##
b6d0720c 2228## ----------------- ##"
7083c021
AC
2229 echo
2230 for ac_var in $ac_subst_vars
2231 do
2232 eval ac_val=\$$ac_var
2233 case $ac_val in
2234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 esac
2236 $as_echo "$ac_var='\''$ac_val'\''"
2237 done | sort
2238 echo
631ef239 2239
7083c021 2240 if test -n "$ac_subst_files"; then
b6d0720c 2241 $as_echo "## ------------------- ##
7083c021 2242## File substitutions. ##
b6d0720c 2243## ------------------- ##"
7083c021
AC
2244 echo
2245 for ac_var in $ac_subst_files
2246 do
2247 eval ac_val=\$$ac_var
2248 case $ac_val in
2249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250 esac
2251 $as_echo "$ac_var='\''$ac_val'\''"
2252 done | sort
2253 echo
2254 fi
631ef239 2255
7083c021 2256 if test -s confdefs.h; then
b6d0720c 2257 $as_echo "## ----------- ##
7083c021 2258## confdefs.h. ##
b6d0720c 2259## ----------- ##"
7083c021
AC
2260 echo
2261 cat confdefs.h
2262 echo
2263 fi
2264 test "$ac_signal" != 0 &&
2265 $as_echo "$as_me: caught signal $ac_signal"
2266 $as_echo "$as_me: exit $exit_status"
2267 } >&5
2268 rm -f core *.core core.conftest.* &&
2269 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2270 exit $exit_status
2271' 0
2272for ac_signal in 1 2 13 15; do
2273 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2274done
2275ac_signal=0
631ef239 2276
7083c021
AC
2277# confdefs.h avoids OS command line length limits that DEFS can exceed.
2278rm -f -r conftest* confdefs.h
631ef239 2279
7083c021 2280$as_echo "/* confdefs.h */" > confdefs.h
212380e3 2281
7083c021 2282# Predefined preprocessor variables.
212380e3 2283
7083c021
AC
2284cat >>confdefs.h <<_ACEOF
2285#define PACKAGE_NAME "$PACKAGE_NAME"
212380e3 2286_ACEOF
212380e3 2287
7083c021
AC
2288cat >>confdefs.h <<_ACEOF
2289#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
212380e3 2290_ACEOF
212380e3 2291
7083c021
AC
2292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_VERSION "$PACKAGE_VERSION"
212380e3 2294_ACEOF
212380e3 2295
7083c021
AC
2296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_STRING "$PACKAGE_STRING"
2298_ACEOF
212380e3 2299
7083c021
AC
2300cat >>confdefs.h <<_ACEOF
2301#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2302_ACEOF
212380e3 2303
7083c021
AC
2304cat >>confdefs.h <<_ACEOF
2305#define PACKAGE_URL "$PACKAGE_URL"
2306_ACEOF
212380e3 2307
631ef239 2308
7083c021
AC
2309# Let the site file select an alternate cache file if it wants to.
2310# Prefer an explicitly selected file to automatically selected ones.
2311ac_site_file1=NONE
2312ac_site_file2=NONE
2313if test -n "$CONFIG_SITE"; then
b6d0720c
AC
2314 # We do not want a PATH search for config.site.
2315 case $CONFIG_SITE in #((
2316 -*) ac_site_file1=./$CONFIG_SITE;;
2317 */*) ac_site_file1=$CONFIG_SITE;;
2318 *) ac_site_file1=./$CONFIG_SITE;;
2319 esac
7083c021
AC
2320elif test "x$prefix" != xNONE; then
2321 ac_site_file1=$prefix/share/config.site
2322 ac_site_file2=$prefix/etc/config.site
212380e3 2323else
7083c021
AC
2324 ac_site_file1=$ac_default_prefix/share/config.site
2325 ac_site_file2=$ac_default_prefix/etc/config.site
2326fi
2327for ac_site_file in "$ac_site_file1" "$ac_site_file2"
212380e3 2328do
7083c021 2329 test "x$ac_site_file" = xNONE && continue
6fb6bd15 2330 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7083c021
AC
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2332$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2333 sed 's/^/| /' "$ac_site_file" >&5
b6d0720c
AC
2334 . "$ac_site_file" \
2335 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2337as_fn_error $? "failed to load site script $ac_site_file
2338See \`config.log' for more details" "$LINENO" 5; }
212380e3
AC
2339 fi
2340done
212380e3 2341
7083c021 2342if test -r "$cache_file"; then
6fb6bd15
AC
2343 # Some versions of bash will fail to source /dev/null (special files
2344 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2345 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7083c021
AC
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2347$as_echo "$as_me: loading cache $cache_file" >&6;}
2348 case $cache_file in
2349 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2350 *) . "./$cache_file";;
2351 esac
2352 fi
212380e3 2353else
7083c021
AC
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2355$as_echo "$as_me: creating cache $cache_file" >&6;}
2356 >$cache_file
212380e3
AC
2357fi
2358
7083c021
AC
2359# Check that the precious variables saved in the cache have kept the same
2360# value.
2361ac_cache_corrupted=false
2362for ac_var in $ac_precious_vars; do
2363 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2364 eval ac_new_set=\$ac_env_${ac_var}_set
2365 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2366 eval ac_new_val=\$ac_env_${ac_var}_value
2367 case $ac_old_set,$ac_new_set in
2368 set,)
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2370$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2371 ac_cache_corrupted=: ;;
2372 ,set)
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2374$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2375 ac_cache_corrupted=: ;;
2376 ,);;
2377 *)
2378 if test "x$ac_old_val" != "x$ac_new_val"; then
2379 # differences in whitespace do not lead to failure.
2380 ac_old_val_w=`echo x $ac_old_val`
2381 ac_new_val_w=`echo x $ac_new_val`
2382 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2384$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2385 ac_cache_corrupted=:
2386 else
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2388$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2389 eval $ac_var=\$ac_old_val
2390 fi
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2392$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2394$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2395 fi;;
2396 esac
2397 # Pass precious variables to config.status.
2398 if test "$ac_new_set" = set; then
2399 case $ac_new_val in
2400 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2401 *) ac_arg=$ac_var=$ac_new_val ;;
2402 esac
2403 case " $ac_configure_args " in
2404 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2405 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2406 esac
212380e3
AC
2407 fi
2408done
7083c021
AC
2409if $ac_cache_corrupted; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2413$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b6d0720c 2414 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
212380e3 2415fi
7083c021
AC
2416## -------------------- ##
2417## Main body of script. ##
2418## -------------------- ##
212380e3 2419
7083c021
AC
2420ac_ext=c
2421ac_cpp='$CPP $CPPFLAGS'
2422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424ac_compiler_gnu=$ac_cv_c_compiler_gnu
631ef239 2425
212380e3 2426
212380e3 2427
7083c021 2428ac_config_headers="$ac_config_headers include/setup.h"
631ef239 2429
212380e3 2430
212380e3 2431
631ef239 2432
7083c021
AC
2433ac_ext=c
2434ac_cpp='$CPP $CPPFLAGS'
2435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437ac_compiler_gnu=$ac_cv_c_compiler_gnu
2438if test -n "$ac_tool_prefix"; then
2439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2440set dummy ${ac_tool_prefix}gcc; ac_word=$2
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2443if ${ac_cv_prog_CC+:} false; then :
7083c021 2444 $as_echo_n "(cached) " >&6
212380e3 2445else
7083c021
AC
2446 if test -n "$CC"; then
2447 ac_cv_prog_CC="$CC" # Let the user override the test.
2448else
2449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2450for as_dir in $PATH
2451do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
7083c021 2454 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2458 break 2
2459 fi
2460done
7083c021 2461 done
631ef239 2462IFS=$as_save_IFS
212380e3 2463
212380e3 2464fi
7083c021
AC
2465fi
2466CC=$ac_cv_prog_CC
2467if test -n "$CC"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2469$as_echo "$CC" >&6; }
212380e3 2470else
7083c021
AC
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472$as_echo "no" >&6; }
212380e3
AC
2473fi
2474
631ef239 2475
7083c021
AC
2476fi
2477if test -z "$ac_cv_prog_CC"; then
2478 ac_ct_CC=$CC
2479 # Extract the first word of "gcc", so it can be a program name with args.
2480set dummy gcc; ac_word=$2
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2482$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2483if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 2484 $as_echo_n "(cached) " >&6
212380e3 2485else
7083c021
AC
2486 if test -n "$ac_ct_CC"; then
2487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2488else
2489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2490for as_dir in $PATH
2491do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
7083c021 2494 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2496 ac_cv_prog_ac_ct_CC="gcc"
2497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2498 break 2
2499 fi
2500done
7083c021 2501 done
631ef239 2502IFS=$as_save_IFS
212380e3 2503
212380e3 2504fi
7083c021
AC
2505fi
2506ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507if test -n "$ac_ct_CC"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2509$as_echo "$ac_ct_CC" >&6; }
212380e3 2510else
7083c021
AC
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2512$as_echo "no" >&6; }
212380e3
AC
2513fi
2514
7083c021
AC
2515 if test "x$ac_ct_CC" = x; then
2516 CC=""
2517 else
2518 case $cross_compiling:$ac_tool_warned in
2519yes:)
2520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2522ac_tool_warned=yes ;;
2523esac
2524 CC=$ac_ct_CC
2525 fi
2526else
2527 CC="$ac_cv_prog_CC"
2528fi
631ef239 2529
7083c021
AC
2530if test -z "$CC"; then
2531 if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533set dummy ${ac_tool_prefix}cc; ac_word=$2
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2536if ${ac_cv_prog_CC+:} false; then :
7083c021 2537 $as_echo_n "(cached) " >&6
212380e3 2538else
7083c021
AC
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2541else
2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2543for as_dir in $PATH
2544do
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
7083c021 2547 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2549 ac_cv_prog_CC="${ac_tool_prefix}cc"
2550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2551 break 2
2552 fi
2553done
7083c021 2554 done
631ef239 2555IFS=$as_save_IFS
7083c021 2556
212380e3 2557fi
7083c021
AC
2558fi
2559CC=$ac_cv_prog_CC
2560if test -n "$CC"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2562$as_echo "$CC" >&6; }
212380e3 2563else
7083c021
AC
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565$as_echo "no" >&6; }
212380e3
AC
2566fi
2567
631ef239 2568
7083c021
AC
2569 fi
2570fi
2571if test -z "$CC"; then
2572 # Extract the first word of "cc", so it can be a program name with args.
2573set dummy cc; ac_word=$2
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2576if ${ac_cv_prog_CC+:} false; then :
7083c021 2577 $as_echo_n "(cached) " >&6
212380e3 2578else
7083c021
AC
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2581else
2582 ac_prog_rejected=no
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
7083c021 2588 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591 ac_prog_rejected=yes
2592 continue
2593 fi
2594 ac_cv_prog_CC="cc"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2596 break 2
2597 fi
2598done
7083c021 2599 done
631ef239 2600IFS=$as_save_IFS
212380e3 2601
7083c021
AC
2602if test $ac_prog_rejected = yes; then
2603 # We found a bogon in the path, so make sure we never use it.
2604 set dummy $ac_cv_prog_CC
2605 shift
2606 if test $# != 0; then
2607 # We chose a different compiler from the bogus one.
2608 # However, it has the same basename, so the bogon will be chosen
2609 # first if we set CC to just the basename; use the full file name.
2610 shift
2611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2612 fi
212380e3 2613fi
7083c021
AC
2614fi
2615fi
2616CC=$ac_cv_prog_CC
2617if test -n "$CC"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2619$as_echo "$CC" >&6; }
212380e3 2620else
7083c021
AC
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622$as_echo "no" >&6; }
212380e3
AC
2623fi
2624
2625
7083c021
AC
2626fi
2627if test -z "$CC"; then
2628 if test -n "$ac_tool_prefix"; then
2629 for ac_prog in cl.exe
2630 do
2631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2635if ${ac_cv_prog_CC+:} false; then :
7083c021 2636 $as_echo_n "(cached) " >&6
212380e3 2637else
7083c021
AC
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3
AC
2640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
7083c021 2646 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2650 break 2
2651 fi
2652done
7083c021 2653 done
631ef239 2654IFS=$as_save_IFS
212380e3
AC
2655
2656fi
2657fi
7083c021
AC
2658CC=$ac_cv_prog_CC
2659if test -n "$CC"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2661$as_echo "$CC" >&6; }
212380e3 2662else
7083c021
AC
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664$as_echo "no" >&6; }
212380e3
AC
2665fi
2666
631ef239 2667
7083c021
AC
2668 test -n "$CC" && break
2669 done
212380e3 2670fi
7083c021
AC
2671if test -z "$CC"; then
2672 ac_ct_CC=$CC
2673 for ac_prog in cl.exe
212380e3
AC
2674do
2675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2676set dummy $ac_prog; ac_word=$2
7083c021
AC
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2679if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 2680 $as_echo_n "(cached) " >&6
212380e3 2681else
7083c021
AC
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3
AC
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
7083c021 2690 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2692 ac_cv_prog_ac_ct_CC="$ac_prog"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2694 break 2
2695 fi
2696done
7083c021 2697 done
631ef239 2698IFS=$as_save_IFS
212380e3
AC
2699
2700fi
2701fi
7083c021
AC
2702ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703if test -n "$ac_ct_CC"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2705$as_echo "$ac_ct_CC" >&6; }
212380e3 2706else
7083c021
AC
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708$as_echo "no" >&6; }
212380e3
AC
2709fi
2710
631ef239 2711
7083c021 2712 test -n "$ac_ct_CC" && break
212380e3 2713done
212380e3 2714
7083c021
AC
2715 if test "x$ac_ct_CC" = x; then
2716 CC=""
2717 else
2718 case $cross_compiling:$ac_tool_warned in
2719yes:)
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2722ac_tool_warned=yes ;;
2723esac
2724 CC=$ac_ct_CC
2725 fi
2726fi
2727
2728fi
2729
2730
2731test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2733as_fn_error $? "no acceptable C compiler found in \$PATH
2734See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
2735
2736# Provide some information about the compiler.
2737$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2738set X $ac_compile
2739ac_compiler=$2
2740for ac_option in --version -v -V -qversion; do
2741 { { ac_try="$ac_compiler $ac_option >&5"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747$as_echo "$ac_try_echo"; } >&5
2748 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2749 ac_status=$?
2750 if test -s conftest.err; then
2751 sed '10a\
2752... rest of stderr output deleted ...
2753 10q' conftest.err >conftest.er1
2754 cat conftest.er1 >&5
7083c021 2755 fi
6fb6bd15 2756 rm -f conftest.er1 conftest.err
7083c021
AC
2757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2758 test $ac_status = 0; }
2759done
2760
2761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2762/* end confdefs.h. */
6fb6bd15 2763
212380e3 2764int
7083c021 2765main ()
212380e3 2766{
7083c021
AC
2767
2768 ;
2769 return 0;
212380e3
AC
2770}
2771_ACEOF
7083c021 2772ac_clean_files_save=$ac_clean_files
6fb6bd15 2773ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
7083c021
AC
2774# Try to create an executable without -o first, disregard a.out.
2775# It will help us diagnose broken compilers, and finding out an intuition
2776# of exeext.
6fb6bd15
AC
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2778$as_echo_n "checking whether the C compiler works... " >&6; }
7083c021
AC
2779ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2780
2781# The possible output files:
2782ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2783
2784ac_rmfiles=
2785for ac_file in $ac_files
2786do
2787 case $ac_file in
2788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2789 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2790 esac
2791done
2792rm -f $ac_rmfiles
2793
2794if { { ac_try="$ac_link_default"
631ef239
AC
2795case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798esac
7083c021
AC
2799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800$as_echo "$ac_try_echo"; } >&5
2801 (eval "$ac_link_default") 2>&5
212380e3 2802 ac_status=$?
7083c021
AC
2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804 test $ac_status = 0; }; then :
2805 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2806# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2807# in a Makefile. We should not override ac_cv_exeext if it was cached,
2808# so that the user can short-circuit this test for compilers unknown to
2809# Autoconf.
2810for ac_file in $ac_files ''
2811do
2812 test -f "$ac_file" || continue
2813 case $ac_file in
2814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2815 ;;
2816 [ab].out )
2817 # We found the default executable, but exeext='' is most
2818 # certainly right.
2819 break;;
2820 *.* )
2821 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2822 then :; else
2823 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2824 fi
2825 # We set ac_cv_exeext here because the later test for it is not
2826 # safe: cross compilers may not add the suffix if given an `-o'
2827 # argument, so we may need to know it at that point already.
2828 # Even if this section looks crufty: it has the advantage of
2829 # actually working.
2830 break;;
2831 * )
2832 break;;
2833 esac
2834done
2835test "$ac_cv_exeext" = no && ac_cv_exeext=
212380e3 2836
212380e3 2837else
7083c021 2838 ac_file=''
631ef239 2839fi
7083c021 2840if test -z "$ac_file"; then :
6fb6bd15
AC
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842$as_echo "no" >&6; }
2843$as_echo "$as_me: failed program was:" >&5
7083c021
AC
2844sed 's/^/| /' conftest.$ac_ext >&5
2845
2846{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2848as_fn_error 77 "C compiler cannot create executables
2849See \`config.log' for more details" "$LINENO" 5; }
6fb6bd15
AC
2850else
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2852$as_echo "yes" >&6; }
631ef239 2853fi
6fb6bd15
AC
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2855$as_echo_n "checking for C compiler default output file name... " >&6; }
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2857$as_echo "$ac_file" >&6; }
7083c021 2858ac_exeext=$ac_cv_exeext
631ef239 2859
6fb6bd15 2860rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
7083c021 2861ac_clean_files=$ac_clean_files_save
7083c021
AC
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2863$as_echo_n "checking for suffix of executables... " >&6; }
2864if { { ac_try="$ac_link"
2865case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868esac
2869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2870$as_echo "$ac_try_echo"; } >&5
2871 (eval "$ac_link") 2>&5
2872 ac_status=$?
2873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2874 test $ac_status = 0; }; then :
2875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2876# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2877# work properly (i.e., refer to `conftest.exe'), while it won't with
2878# `rm'.
2879for ac_file in conftest.exe conftest conftest.*; do
2880 test -f "$ac_file" || continue
2881 case $ac_file in
2882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2884 break;;
2885 * ) break;;
2886 esac
2887done
212380e3 2888else
7083c021
AC
2889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2891as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2892See \`config.log' for more details" "$LINENO" 5; }
7083c021 2893fi
6fb6bd15 2894rm -f conftest conftest$ac_cv_exeext
7083c021
AC
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2896$as_echo "$ac_cv_exeext" >&6; }
2897
2898rm -f conftest.$ac_ext
2899EXEEXT=$ac_cv_exeext
2900ac_exeext=$EXEEXT
6fb6bd15
AC
2901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902/* end confdefs.h. */
2903#include <stdio.h>
2904int
2905main ()
2906{
2907FILE *f = fopen ("conftest.out", "w");
2908 return ferror (f) || fclose (f) != 0;
2909
2910 ;
2911 return 0;
2912}
2913_ACEOF
2914ac_clean_files="$ac_clean_files conftest.out"
2915# Check that the compiler produces executables we can run. If not, either
2916# the compiler is broken, or we cross compile.
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2918$as_echo_n "checking whether we are cross compiling... " >&6; }
2919if test "$cross_compiling" != yes; then
2920 { { ac_try="$ac_link"
2921case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924esac
2925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2926$as_echo "$ac_try_echo"; } >&5
2927 (eval "$ac_link") 2>&5
2928 ac_status=$?
2929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2930 test $ac_status = 0; }
2931 if { ac_try='./conftest$ac_cv_exeext'
2932 { { case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935esac
2936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2937$as_echo "$ac_try_echo"; } >&5
2938 (eval "$ac_try") 2>&5
2939 ac_status=$?
2940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2941 test $ac_status = 0; }; }; then
2942 cross_compiling=no
2943 else
2944 if test "$cross_compiling" = maybe; then
2945 cross_compiling=yes
2946 else
2947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c 2949as_fn_error $? "cannot run C compiled programs.
6fb6bd15 2950If you meant to cross compile, use \`--host'.
b6d0720c 2951See \`config.log' for more details" "$LINENO" 5; }
6fb6bd15
AC
2952 fi
2953 fi
2954fi
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2956$as_echo "$cross_compiling" >&6; }
2957
2958rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2959ac_clean_files=$ac_clean_files_save
7083c021
AC
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2961$as_echo_n "checking for suffix of object files... " >&6; }
b6d0720c 2962if ${ac_cv_objext+:} false; then :
7083c021
AC
2963 $as_echo_n "(cached) " >&6
2964else
2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966/* end confdefs.h. */
212380e3 2967
7083c021
AC
2968int
2969main ()
2970{
2971
2972 ;
2973 return 0;
2974}
212380e3 2975_ACEOF
7083c021
AC
2976rm -f conftest.o conftest.obj
2977if { { ac_try="$ac_compile"
631ef239
AC
2978case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
7083c021
AC
2982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983$as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_compile") 2>&5
212380e3 2985 ac_status=$?
7083c021
AC
2986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987 test $ac_status = 0; }; then :
2988 for ac_file in conftest.o conftest.obj conftest.*; do
2989 test -f "$ac_file" || continue;
2990 case $ac_file in
2991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2993 break;;
2994 esac
2995done
212380e3 2996else
7083c021 2997 $as_echo "$as_me: failed program was:" >&5
212380e3
AC
2998sed 's/^/| /' conftest.$ac_ext >&5
2999
7083c021
AC
3000{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
3002as_fn_error $? "cannot compute suffix of object files: cannot compile
3003See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
3004fi
3005rm -f conftest.$ac_cv_objext conftest.$ac_ext
212380e3 3006fi
7083c021
AC
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3008$as_echo "$ac_cv_objext" >&6; }
3009OBJEXT=$ac_cv_objext
3010ac_objext=$OBJEXT
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3012$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b6d0720c 3013if ${ac_cv_c_compiler_gnu+:} false; then :
7083c021
AC
3014 $as_echo_n "(cached) " >&6
3015else
3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017/* end confdefs.h. */
212380e3 3018
7083c021
AC
3019int
3020main ()
3021{
3022#ifndef __GNUC__
3023 choke me
3024#endif
212380e3 3025
7083c021
AC
3026 ;
3027 return 0;
3028}
3029_ACEOF
3030if ac_fn_c_try_compile "$LINENO"; then :
3031 ac_compiler_gnu=yes
3032else
3033 ac_compiler_gnu=no
212380e3 3034fi
7083c021
AC
3035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036ac_cv_c_compiler_gnu=$ac_compiler_gnu
3037
3038fi
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3040$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3041if test $ac_compiler_gnu = yes; then
3042 GCC=yes
3043else
3044 GCC=
212380e3 3045fi
7083c021
AC
3046ac_test_CFLAGS=${CFLAGS+set}
3047ac_save_CFLAGS=$CFLAGS
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3049$as_echo_n "checking whether $CC accepts -g... " >&6; }
b6d0720c 3050if ${ac_cv_prog_cc_g+:} false; then :
7083c021
AC
3051 $as_echo_n "(cached) " >&6
3052else
3053 ac_save_c_werror_flag=$ac_c_werror_flag
3054 ac_c_werror_flag=yes
3055 ac_cv_prog_cc_g=no
3056 CFLAGS="-g"
3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058/* end confdefs.h. */
212380e3 3059
7083c021
AC
3060int
3061main ()
3062{
631ef239 3063
7083c021
AC
3064 ;
3065 return 0;
3066}
212380e3 3067_ACEOF
7083c021
AC
3068if ac_fn_c_try_compile "$LINENO"; then :
3069 ac_cv_prog_cc_g=yes
212380e3 3070else
7083c021
AC
3071 CFLAGS=""
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073/* end confdefs.h. */
212380e3 3074
7083c021
AC
3075int
3076main ()
3077{
631ef239 3078
7083c021
AC
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083if ac_fn_c_try_compile "$LINENO"; then :
631ef239 3084
7083c021
AC
3085else
3086 ac_c_werror_flag=$ac_save_c_werror_flag
3087 CFLAGS="-g"
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089/* end confdefs.h. */
212380e3 3090
7083c021
AC
3091int
3092main ()
3093{
212380e3 3094
7083c021
AC
3095 ;
3096 return 0;
3097}
212380e3 3098_ACEOF
7083c021
AC
3099if ac_fn_c_try_compile "$LINENO"; then :
3100 ac_cv_prog_cc_g=yes
212380e3 3101fi
7083c021 3102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3103fi
7083c021 3104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3105fi
7083c021
AC
3106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 ac_c_werror_flag=$ac_save_c_werror_flag
212380e3 3108fi
7083c021
AC
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3110$as_echo "$ac_cv_prog_cc_g" >&6; }
3111if test "$ac_test_CFLAGS" = set; then
3112 CFLAGS=$ac_save_CFLAGS
3113elif test $ac_cv_prog_cc_g = yes; then
3114 if test "$GCC" = yes; then
3115 CFLAGS="-g -O2"
3116 else
3117 CFLAGS="-g"
3118 fi
212380e3 3119else
7083c021
AC
3120 if test "$GCC" = yes; then
3121 CFLAGS="-O2"
3122 else
3123 CFLAGS=
3124 fi
3125fi
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3127$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b6d0720c 3128if ${ac_cv_prog_cc_c89+:} false; then :
7083c021
AC
3129 $as_echo_n "(cached) " >&6
3130else
3131 ac_cv_prog_cc_c89=no
3132ac_save_CC=$CC
3133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3134/* end confdefs.h. */
212380e3 3135#include <stdarg.h>
7083c021
AC
3136#include <stdio.h>
3137#include <sys/types.h>
3138#include <sys/stat.h>
3139/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3140struct buf { int x; };
3141FILE * (*rcsopen) (struct buf *, struct stat *, int);
3142static char *e (p, i)
3143 char **p;
3144 int i;
3145{
3146 return p[i];
3147}
3148static char *f (char * (*g) (char **, int), char **p, ...)
3149{
3150 char *s;
3151 va_list v;
3152 va_start (v,p);
3153 s = g (p, va_arg (v,int));
3154 va_end (v);
3155 return s;
3156}
3157
3158/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3159 function prototypes and stuff, but not '\xHH' hex character constants.
3160 These don't provoke an error unfortunately, instead are silently treated
3161 as 'x'. The following induces an error, until -std is added to get
3162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3163 array size at least. It's necessary to write '\x00'==0 to get something
3164 that's true only with -std. */
3165int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3166
3167/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3168 inside strings and character constants. */
3169#define FOO(x) 'x'
3170int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
212380e3 3171
7083c021
AC
3172int test (int i, double x);
3173struct s1 {int (*f) (int a);};
3174struct s2 {int (*f) (double a);};
3175int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3176int argc;
3177char **argv;
212380e3
AC
3178int
3179main ()
3180{
7083c021 3181return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3
AC
3182 ;
3183 return 0;
3184}
3185_ACEOF
7083c021
AC
3186for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3187 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3188do
3189 CC="$ac_save_CC $ac_arg"
3190 if ac_fn_c_try_compile "$LINENO"; then :
3191 ac_cv_prog_cc_c89=$ac_arg
3192fi
3193rm -f core conftest.err conftest.$ac_objext
3194 test "x$ac_cv_prog_cc_c89" != "xno" && break
3195done
3196rm -f conftest.$ac_ext
3197CC=$ac_save_CC
3198
3199fi
3200# AC_CACHE_VAL
3201case "x$ac_cv_prog_cc_c89" in
3202 x)
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3204$as_echo "none needed" >&6; } ;;
3205 xno)
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3207$as_echo "unsupported" >&6; } ;;
3208 *)
3209 CC="$CC $ac_cv_prog_cc_c89"
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3211$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 3212esac
7083c021 3213if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 3214
212380e3 3215fi
631ef239 3216
7083c021
AC
3217ac_ext=c
3218ac_cpp='$CPP $CPPFLAGS'
3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3 3222
212380e3 3223
7083c021
AC
3224ac_ext=c
3225ac_cpp='$CPP $CPPFLAGS'
3226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3230$as_echo_n "checking how to run the C preprocessor... " >&6; }
3231# On Suns, sometimes $CPP names a directory.
3232if test -n "$CPP" && test -d "$CPP"; then
3233 CPP=
3234fi
3235if test -z "$CPP"; then
b6d0720c 3236 if ${ac_cv_prog_CPP+:} false; then :
7083c021
AC
3237 $as_echo_n "(cached) " >&6
3238else
3239 # Double quotes because CPP needs to be expanded
3240 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3241 do
3242 ac_preproc_ok=false
3243for ac_c_preproc_warn_flag in '' yes
3244do
3245 # Use a header file that comes with gcc, so configuring glibc
3246 # with a fresh cross-compiler works.
3247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3248 # <limits.h> exists even on freestanding compilers.
3249 # On the NeXT, cc -E runs the code through the compiler's parser,
3250 # not just through cpp. "Syntax error" is here to catch this case.
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252/* end confdefs.h. */
3253#ifdef __STDC__
3254# include <limits.h>
3255#else
3256# include <assert.h>
3257#endif
3258 Syntax error
212380e3 3259_ACEOF
7083c021 3260if ac_fn_c_try_cpp "$LINENO"; then :
212380e3 3261
7083c021
AC
3262else
3263 # Broken: fails on valid input.
3264continue
212380e3 3265fi
b6d0720c 3266rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3267
7083c021
AC
3268 # OK, works on sane cases. Now check whether nonexistent headers
3269 # can be detected and how.
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3271/* end confdefs.h. */
7083c021 3272#include <ac_nonexistent.h>
212380e3 3273_ACEOF
7083c021
AC
3274if ac_fn_c_try_cpp "$LINENO"; then :
3275 # Broken: success on invalid input.
3276continue
212380e3 3277else
7083c021
AC
3278 # Passes both tests.
3279ac_preproc_ok=:
3280break
212380e3 3281fi
b6d0720c 3282rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3283
7083c021
AC
3284done
3285# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b6d0720c 3286rm -f conftest.i conftest.err conftest.$ac_ext
7083c021
AC
3287if $ac_preproc_ok; then :
3288 break
212380e3
AC
3289fi
3290
7083c021
AC
3291 done
3292 ac_cv_prog_CPP=$CPP
3293
3294fi
3295 CPP=$ac_cv_prog_CPP
212380e3 3296else
7083c021
AC
3297 ac_cv_prog_CPP=$CPP
3298fi
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3300$as_echo "$CPP" >&6; }
3301ac_preproc_ok=false
3302for ac_c_preproc_warn_flag in '' yes
3303do
3304 # Use a header file that comes with gcc, so configuring glibc
3305 # with a fresh cross-compiler works.
3306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3307 # <limits.h> exists even on freestanding compilers.
3308 # On the NeXT, cc -E runs the code through the compiler's parser,
3309 # not just through cpp. "Syntax error" is here to catch this case.
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3311/* end confdefs.h. */
7083c021
AC
3312#ifdef __STDC__
3313# include <limits.h>
212380e3 3314#else
7083c021 3315# include <assert.h>
212380e3 3316#endif
7083c021 3317 Syntax error
212380e3 3318_ACEOF
7083c021 3319if ac_fn_c_try_cpp "$LINENO"; then :
212380e3 3320
7083c021
AC
3321else
3322 # Broken: fails on valid input.
3323continue
212380e3 3324fi
b6d0720c 3325rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3326
7083c021
AC
3327 # OK, works on sane cases. Now check whether nonexistent headers
3328 # can be detected and how.
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3330/* end confdefs.h. */
7083c021 3331#include <ac_nonexistent.h>
212380e3 3332_ACEOF
7083c021
AC
3333if ac_fn_c_try_cpp "$LINENO"; then :
3334 # Broken: success on invalid input.
3335continue
212380e3 3336else
7083c021
AC
3337 # Passes both tests.
3338ac_preproc_ok=:
3339break
212380e3 3340fi
b6d0720c 3341rm -f conftest.err conftest.i conftest.$ac_ext
212380e3
AC
3342
3343done
7083c021 3344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b6d0720c 3345rm -f conftest.i conftest.err conftest.$ac_ext
7083c021 3346if $ac_preproc_ok; then :
212380e3 3347
7083c021
AC
3348else
3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
3351as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3352See \`config.log' for more details" "$LINENO" 5; }
7083c021 3353fi
212380e3 3354
7083c021
AC
3355ac_ext=c
3356ac_cpp='$CPP $CPPFLAGS'
3357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3
AC
3360
3361
7083c021
AC
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3363$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b6d0720c 3364if ${ac_cv_path_GREP+:} false; then :
7083c021 3365 $as_echo_n "(cached) " >&6
212380e3 3366else
7083c021
AC
3367 if test -z "$GREP"; then
3368 ac_path_GREP_found=false
3369 # Loop through the user's path and test for each of PROGNAME-LIST
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3372do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_prog in grep ggrep; do
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3378 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3379# Check for GNU ac_path_GREP and select it if it is found.
3380 # Check for GNU $ac_path_GREP
3381case `"$ac_path_GREP" --version 2>&1` in
3382*GNU*)
3383 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3384*)
3385 ac_count=0
3386 $as_echo_n 0123456789 >"conftest.in"
3387 while :
3388 do
3389 cat "conftest.in" "conftest.in" >"conftest.tmp"
3390 mv "conftest.tmp" "conftest.in"
3391 cp "conftest.in" "conftest.nl"
3392 $as_echo 'GREP' >> "conftest.nl"
3393 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3395 as_fn_arith $ac_count + 1 && ac_count=$as_val
3396 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3397 # Best one so far, save it but keep looking for a better one
3398 ac_cv_path_GREP="$ac_path_GREP"
3399 ac_path_GREP_max=$ac_count
3400 fi
3401 # 10*(2^10) chars as input seems more than enough
3402 test $ac_count -gt 10 && break
3403 done
3404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
631ef239 3405esac
7083c021
AC
3406
3407 $ac_path_GREP_found && break 3
3408 done
3409 done
3410 done
3411IFS=$as_save_IFS
3412 if test -z "$ac_cv_path_GREP"; then
b6d0720c 3413 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083c021 3414 fi
212380e3 3415else
7083c021
AC
3416 ac_cv_path_GREP=$GREP
3417fi
212380e3 3418
212380e3 3419fi
7083c021
AC
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3421$as_echo "$ac_cv_path_GREP" >&6; }
3422 GREP="$ac_cv_path_GREP"
631ef239 3423
212380e3 3424
7083c021
AC
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3426$as_echo_n "checking for egrep... " >&6; }
b6d0720c 3427if ${ac_cv_path_EGREP+:} false; then :
7083c021
AC
3428 $as_echo_n "(cached) " >&6
3429else
3430 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3431 then ac_cv_path_EGREP="$GREP -E"
3432 else
3433 if test -z "$EGREP"; then
3434 ac_path_EGREP_found=false
3435 # Loop through the user's path and test for each of PROGNAME-LIST
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3438do
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
3441 for ac_prog in egrep; do
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3444 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3445# Check for GNU ac_path_EGREP and select it if it is found.
3446 # Check for GNU $ac_path_EGREP
3447case `"$ac_path_EGREP" --version 2>&1` in
3448*GNU*)
3449 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3450*)
3451 ac_count=0
3452 $as_echo_n 0123456789 >"conftest.in"
3453 while :
3454 do
3455 cat "conftest.in" "conftest.in" >"conftest.tmp"
3456 mv "conftest.tmp" "conftest.in"
3457 cp "conftest.in" "conftest.nl"
3458 $as_echo 'EGREP' >> "conftest.nl"
3459 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3461 as_fn_arith $ac_count + 1 && ac_count=$as_val
3462 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3463 # Best one so far, save it but keep looking for a better one
3464 ac_cv_path_EGREP="$ac_path_EGREP"
3465 ac_path_EGREP_max=$ac_count
3466 fi
3467 # 10*(2^10) chars as input seems more than enough
3468 test $ac_count -gt 10 && break
3469 done
3470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
631ef239 3471esac
212380e3 3472
7083c021
AC
3473 $ac_path_EGREP_found && break 3
3474 done
3475 done
3476 done
3477IFS=$as_save_IFS
3478 if test -z "$ac_cv_path_EGREP"; then
b6d0720c 3479 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083c021 3480 fi
212380e3 3481else
7083c021 3482 ac_cv_path_EGREP=$EGREP
212380e3 3483fi
212380e3 3484
7083c021 3485 fi
212380e3 3486fi
7083c021
AC
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3488$as_echo "$ac_cv_path_EGREP" >&6; }
3489 EGREP="$ac_cv_path_EGREP"
212380e3
AC
3490
3491
7083c021
AC
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3493$as_echo_n "checking for ANSI C header files... " >&6; }
b6d0720c 3494if ${ac_cv_header_stdc+:} false; then :
7083c021 3495 $as_echo_n "(cached) " >&6
212380e3 3496else
7083c021 3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3498/* end confdefs.h. */
7083c021
AC
3499#include <stdlib.h>
3500#include <stdarg.h>
3501#include <string.h>
3502#include <float.h>
212380e3
AC
3503
3504int
3505main ()
3506{
212380e3
AC
3507
3508 ;
3509 return 0;
3510}
3511_ACEOF
7083c021
AC
3512if ac_fn_c_try_compile "$LINENO"; then :
3513 ac_cv_header_stdc=yes
212380e3 3514else
7083c021 3515 ac_cv_header_stdc=no
212380e3 3516fi
631ef239 3517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3518
7083c021
AC
3519if test $ac_cv_header_stdc = yes; then
3520 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h. */
3523#include <string.h>
212380e3 3524
7083c021
AC
3525_ACEOF
3526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3527 $EGREP "memchr" >/dev/null 2>&1; then :
212380e3 3528
212380e3 3529else
7083c021
AC
3530 ac_cv_header_stdc=no
3531fi
3532rm -f conftest*
212380e3 3533
7083c021 3534fi
212380e3 3535
7083c021
AC
3536if test $ac_cv_header_stdc = yes; then
3537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3539/* end confdefs.h. */
7083c021 3540#include <stdlib.h>
212380e3 3541
212380e3 3542_ACEOF
7083c021
AC
3543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3544 $EGREP "free" >/dev/null 2>&1; then :
3545
212380e3 3546else
7083c021
AC
3547 ac_cv_header_stdc=no
3548fi
3549rm -f conftest*
212380e3 3550
212380e3 3551fi
631ef239 3552
7083c021
AC
3553if test $ac_cv_header_stdc = yes; then
3554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3555 if test "$cross_compiling" = yes; then :
3556 :
212380e3 3557else
7083c021 3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3559/* end confdefs.h. */
7083c021
AC
3560#include <ctype.h>
3561#include <stdlib.h>
3562#if ((' ' & 0x0FF) == 0x020)
3563# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3564# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3565#else
3566# define ISLOWER(c) \
3567 (('a' <= (c) && (c) <= 'i') \
3568 || ('j' <= (c) && (c) <= 'r') \
3569 || ('s' <= (c) && (c) <= 'z'))
3570# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3571#endif
3572
3573#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
3574int
3575main ()
3576{
7083c021
AC
3577 int i;
3578 for (i = 0; i < 256; i++)
3579 if (XOR (islower (i), ISLOWER (i))
3580 || toupper (i) != TOUPPER (i))
3581 return 2;
212380e3
AC
3582 return 0;
3583}
3584_ACEOF
7083c021
AC
3585if ac_fn_c_try_run "$LINENO"; then :
3586
3587else
3588 ac_cv_header_stdc=no
212380e3 3589fi
7083c021
AC
3590rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3591 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 3592fi
212380e3 3593
7083c021
AC
3594fi
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3597$as_echo "$ac_cv_header_stdc" >&6; }
3598if test $ac_cv_header_stdc = yes; then
3599
3600$as_echo "#define STDC_HEADERS 1" >>confdefs.h
631ef239 3601
212380e3 3602fi
631ef239 3603
7083c021
AC
3604# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3605for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3606 inttypes.h stdint.h unistd.h
3607do :
3608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3609ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3610"
b6d0720c 3611if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
3612 cat >>confdefs.h <<_ACEOF
3613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
212380e3 3614_ACEOF
631ef239 3615
7083c021 3616fi
631ef239 3617
7083c021
AC
3618done
3619
3620
3621
3622 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
b6d0720c 3623if test "x$ac_cv_header_minix_config_h" = xyes; then :
7083c021 3624 MINIX=yes
212380e3 3625else
7083c021
AC
3626 MINIX=
3627fi
3628
3629
3630 if test "$MINIX" = yes; then
3631
3632$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3633
212380e3 3634
7083c021 3635$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
631ef239
AC
3636
3637
7083c021 3638$as_echo "#define _MINIX 1" >>confdefs.h
631ef239 3639
7083c021 3640 fi
212380e3 3641
212380e3 3642
7083c021
AC
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3644$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
b6d0720c 3645if ${ac_cv_safe_to_define___extensions__+:} false; then :
7083c021 3646 $as_echo_n "(cached) " >&6
212380e3 3647else
7083c021 3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3649/* end confdefs.h. */
7083c021
AC
3650
3651# define __EXTENSIONS__ 1
3652 $ac_includes_default
212380e3
AC
3653int
3654main ()
3655{
7083c021 3656
212380e3
AC
3657 ;
3658 return 0;
3659}
3660_ACEOF
7083c021
AC
3661if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_cv_safe_to_define___extensions__=yes
212380e3 3663else
7083c021 3664 ac_cv_safe_to_define___extensions__=no
212380e3 3665fi
631ef239 3666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3667fi
7083c021
AC
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3669$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3670 test $ac_cv_safe_to_define___extensions__ = yes &&
3671 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 3672
7083c021 3673 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
212380e3 3674
7083c021
AC
3675 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3676
3677 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3678
3679 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
212380e3 3680
7083c021
AC
3681
3682
3683
3684OLD_CFLAGS="$CFLAGS"
3685ac_ext=c
3686ac_cpp='$CPP $CPPFLAGS'
3687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690if test -n "$ac_tool_prefix"; then
3691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3692set dummy ${ac_tool_prefix}gcc; ac_word=$2
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3695if ${ac_cv_prog_CC+:} false; then :
7083c021 3696 $as_echo_n "(cached) " >&6
212380e3 3697else
7083c021
AC
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 3700else
7083c021
AC
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3711 fi
3712done
3713 done
3714IFS=$as_save_IFS
212380e3 3715
212380e3 3716fi
212380e3 3717fi
7083c021
AC
3718CC=$ac_cv_prog_CC
3719if test -n "$CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721$as_echo "$CC" >&6; }
212380e3 3722else
7083c021
AC
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724$as_echo "no" >&6; }
3725fi
212380e3 3726
212380e3
AC
3727
3728fi
7083c021
AC
3729if test -z "$ac_cv_prog_CC"; then
3730 ac_ct_CC=$CC
3731 # Extract the first word of "gcc", so it can be a program name with args.
3732set dummy gcc; ac_word=$2
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3735if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 3736 $as_echo_n "(cached) " >&6
212380e3 3737else
7083c021
AC
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3 3740else
7083c021
AC
3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742for as_dir in $PATH
3743do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC="gcc"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752done
3753 done
3754IFS=$as_save_IFS
212380e3 3755
212380e3 3756fi
212380e3 3757fi
7083c021
AC
3758ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761$as_echo "$ac_ct_CC" >&6; }
212380e3 3762else
7083c021
AC
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764$as_echo "no" >&6; }
3765fi
212380e3 3766
7083c021
AC
3767 if test "x$ac_ct_CC" = x; then
3768 CC=""
3769 else
3770 case $cross_compiling:$ac_tool_warned in
3771yes:)
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774ac_tool_warned=yes ;;
631ef239 3775esac
7083c021
AC
3776 CC=$ac_ct_CC
3777 fi
212380e3 3778else
7083c021 3779 CC="$ac_cv_prog_CC"
212380e3 3780fi
631ef239 3781
7083c021
AC
3782if test -z "$CC"; then
3783 if test -n "$ac_tool_prefix"; then
3784 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3785set dummy ${ac_tool_prefix}cc; ac_word=$2
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3788if ${ac_cv_prog_CC+:} false; then :
7083c021 3789 $as_echo_n "(cached) " >&6
212380e3 3790else
7083c021
AC
3791 if test -n "$CC"; then
3792 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 3793else
7083c021
AC
3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795for as_dir in $PATH
3796do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3801 ac_cv_prog_CC="${ac_tool_prefix}cc"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805done
3806 done
3807IFS=$as_save_IFS
212380e3 3808
212380e3 3809fi
7083c021
AC
3810fi
3811CC=$ac_cv_prog_CC
3812if test -n "$CC"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3814$as_echo "$CC" >&6; }
212380e3 3815else
7083c021
AC
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817$as_echo "no" >&6; }
3818fi
3819
212380e3 3820
7083c021 3821 fi
212380e3 3822fi
7083c021
AC
3823if test -z "$CC"; then
3824 # Extract the first word of "cc", so it can be a program name with args.
3825set dummy cc; ac_word=$2
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3828if ${ac_cv_prog_CC+:} false; then :
7083c021
AC
3829 $as_echo_n "(cached) " >&6
3830else
3831 if test -n "$CC"; then
3832 ac_cv_prog_CC="$CC" # Let the user override the test.
3833else
3834 ac_prog_rejected=no
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3843 ac_prog_rejected=yes
3844 continue
3845 fi
3846 ac_cv_prog_CC="cc"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 break 2
3849 fi
3850done
3851 done
3852IFS=$as_save_IFS
631ef239 3853
7083c021
AC
3854if test $ac_prog_rejected = yes; then
3855 # We found a bogon in the path, so make sure we never use it.
3856 set dummy $ac_cv_prog_CC
3857 shift
3858 if test $# != 0; then
3859 # We chose a different compiler from the bogus one.
3860 # However, it has the same basename, so the bogon will be chosen
3861 # first if we set CC to just the basename; use the full file name.
3862 shift
3863 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3864 fi
3865fi
3866fi
3867fi
3868CC=$ac_cv_prog_CC
3869if test -n "$CC"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3871$as_echo "$CC" >&6; }
3872else
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874$as_echo "no" >&6; }
212380e3 3875fi
631ef239 3876
212380e3 3877
7083c021
AC
3878fi
3879if test -z "$CC"; then
3880 if test -n "$ac_tool_prefix"; then
3881 for ac_prog in cl.exe
3882 do
3883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3884set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3887if ${ac_cv_prog_CC+:} false; then :
7083c021 3888 $as_echo_n "(cached) " >&6
212380e3 3889else
7083c021
AC
3890 if test -n "$CC"; then
3891 ac_cv_prog_CC="$CC" # Let the user override the test.
3892else
3893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH
3895do
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 break 2
3903 fi
3904done
3905 done
3906IFS=$as_save_IFS
212380e3 3907
212380e3 3908fi
7083c021
AC
3909fi
3910CC=$ac_cv_prog_CC
3911if test -n "$CC"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3913$as_echo "$CC" >&6; }
212380e3 3914else
7083c021
AC
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916$as_echo "no" >&6; }
3917fi
212380e3 3918
212380e3 3919
7083c021
AC
3920 test -n "$CC" && break
3921 done
3922fi
3923if test -z "$CC"; then
3924 ac_ct_CC=$CC
3925 for ac_prog in cl.exe
3926do
3927 # Extract the first word of "$ac_prog", so it can be a program name with args.
3928set dummy $ac_prog; ac_word=$2
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3931if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 3932 $as_echo_n "(cached) " >&6
212380e3 3933else
7083c021
AC
3934 if test -n "$ac_ct_CC"; then
3935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3936else
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_prog_ac_ct_CC="$ac_prog"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948done
3949 done
3950IFS=$as_save_IFS
212380e3 3951
212380e3
AC
3952fi
3953fi
7083c021
AC
3954ac_ct_CC=$ac_cv_prog_ac_ct_CC
3955if test -n "$ac_ct_CC"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3957$as_echo "$ac_ct_CC" >&6; }
3958else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960$as_echo "no" >&6; }
212380e3 3961fi
631ef239
AC
3962
3963
7083c021
AC
3964 test -n "$ac_ct_CC" && break
3965done
631ef239 3966
7083c021
AC
3967 if test "x$ac_ct_CC" = x; then
3968 CC=""
3969 else
3970 case $cross_compiling:$ac_tool_warned in
3971yes:)
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974ac_tool_warned=yes ;;
3975esac
3976 CC=$ac_ct_CC
3977 fi
3978fi
212380e3 3979
7083c021 3980fi
212380e3 3981
7083c021
AC
3982
3983test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
3985as_fn_error $? "no acceptable C compiler found in \$PATH
3986See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
3987
3988# Provide some information about the compiler.
3989$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3990set X $ac_compile
3991ac_compiler=$2
3992for ac_option in --version -v -V -qversion; do
3993 { { ac_try="$ac_compiler $ac_option >&5"
631ef239
AC
3994case "(($ac_try" in
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3997esac
7083c021
AC
3998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999$as_echo "$ac_try_echo"; } >&5
4000 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
212380e3 4001 ac_status=$?
7083c021
AC
4002 if test -s conftest.err; then
4003 sed '10a\
4004... rest of stderr output deleted ...
4005 10q' conftest.err >conftest.er1
4006 cat conftest.er1 >&5
7083c021 4007 fi
6fb6bd15 4008 rm -f conftest.er1 conftest.err
7083c021
AC
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }
4011done
212380e3 4012
7083c021
AC
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4014$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b6d0720c 4015if ${ac_cv_c_compiler_gnu+:} false; then :
7083c021 4016 $as_echo_n "(cached) " >&6
212380e3 4017else
7083c021 4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4019/* end confdefs.h. */
7083c021 4020
212380e3
AC
4021int
4022main ()
4023{
7083c021
AC
4024#ifndef __GNUC__
4025 choke me
4026#endif
212380e3
AC
4027
4028 ;
4029 return 0;
4030}
4031_ACEOF
7083c021
AC
4032if ac_fn_c_try_compile "$LINENO"; then :
4033 ac_compiler_gnu=yes
4034else
4035 ac_compiler_gnu=no
4036fi
4037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038ac_cv_c_compiler_gnu=$ac_compiler_gnu
4039
4040fi
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4042$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4043if test $ac_compiler_gnu = yes; then
4044 GCC=yes
4045else
4046 GCC=
4047fi
4048ac_test_CFLAGS=${CFLAGS+set}
4049ac_save_CFLAGS=$CFLAGS
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4051$as_echo_n "checking whether $CC accepts -g... " >&6; }
b6d0720c 4052if ${ac_cv_prog_cc_g+:} false; then :
7083c021
AC
4053 $as_echo_n "(cached) " >&6
4054else
4055 ac_save_c_werror_flag=$ac_c_werror_flag
4056 ac_c_werror_flag=yes
4057 ac_cv_prog_cc_g=no
4058 CFLAGS="-g"
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4060/* end confdefs.h. */
7083c021 4061
212380e3
AC
4062int
4063main ()
4064{
212380e3
AC
4065
4066 ;
4067 return 0;
4068}
4069_ACEOF
7083c021
AC
4070if ac_fn_c_try_compile "$LINENO"; then :
4071 ac_cv_prog_cc_g=yes
212380e3 4072else
7083c021
AC
4073 CFLAGS=""
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
4087else
4088 ac_c_werror_flag=$ac_save_c_werror_flag
4089 CFLAGS="-g"
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4091/* end confdefs.h. */
7083c021 4092
212380e3
AC
4093int
4094main ()
4095{
212380e3
AC
4096
4097 ;
4098 return 0;
4099}
4100_ACEOF
7083c021
AC
4101if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_cv_prog_cc_g=yes
212380e3 4103fi
631ef239 4104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4105fi
631ef239 4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4107fi
631ef239 4108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
4109 ac_c_werror_flag=$ac_save_c_werror_flag
4110fi
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4112$as_echo "$ac_cv_prog_cc_g" >&6; }
4113if test "$ac_test_CFLAGS" = set; then
4114 CFLAGS=$ac_save_CFLAGS
4115elif test $ac_cv_prog_cc_g = yes; then
4116 if test "$GCC" = yes; then
4117 CFLAGS="-g -O2"
4118 else
4119 CFLAGS="-g"
4120 fi
4121else
4122 if test "$GCC" = yes; then
4123 CFLAGS="-O2"
4124 else
4125 CFLAGS=
4126 fi
4127fi
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4129$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b6d0720c 4130if ${ac_cv_prog_cc_c89+:} false; then :
7083c021
AC
4131 $as_echo_n "(cached) " >&6
4132else
4133 ac_cv_prog_cc_c89=no
4134ac_save_CC=$CC
4135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4136/* end confdefs.h. */
7083c021
AC
4137#include <stdarg.h>
4138#include <stdio.h>
4139#include <sys/types.h>
4140#include <sys/stat.h>
4141/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4142struct buf { int x; };
4143FILE * (*rcsopen) (struct buf *, struct stat *, int);
4144static char *e (p, i)
4145 char **p;
4146 int i;
4147{
4148 return p[i];
4149}
4150static char *f (char * (*g) (char **, int), char **p, ...)
4151{
4152 char *s;
4153 va_list v;
4154 va_start (v,p);
4155 s = g (p, va_arg (v,int));
4156 va_end (v);
4157 return s;
4158}
4159
4160/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4161 function prototypes and stuff, but not '\xHH' hex character constants.
4162 These don't provoke an error unfortunately, instead are silently treated
4163 as 'x'. The following induces an error, until -std is added to get
4164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4165 array size at least. It's necessary to write '\x00'==0 to get something
4166 that's true only with -std. */
4167int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4168
4169/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4170 inside strings and character constants. */
4171#define FOO(x) 'x'
4172int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4173
4174int test (int i, double x);
4175struct s1 {int (*f) (int a);};
4176struct s2 {int (*f) (double a);};
4177int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4178int argc;
4179char **argv;
212380e3
AC
4180int
4181main ()
4182{
7083c021 4183return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3
AC
4184 ;
4185 return 0;
4186}
4187_ACEOF
7083c021
AC
4188for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4189 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4190do
4191 CC="$ac_save_CC $ac_arg"
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193 ac_cv_prog_cc_c89=$ac_arg
4194fi
4195rm -f core conftest.err conftest.$ac_objext
4196 test "x$ac_cv_prog_cc_c89" != "xno" && break
4197done
4198rm -f conftest.$ac_ext
4199CC=$ac_save_CC
4200
4201fi
4202# AC_CACHE_VAL
4203case "x$ac_cv_prog_cc_c89" in
4204 x)
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4206$as_echo "none needed" >&6; } ;;
4207 xno)
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4209$as_echo "unsupported" >&6; } ;;
4210 *)
4211 CC="$CC $ac_cv_prog_cc_c89"
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4213$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 4214esac
7083c021 4215if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 4216
212380e3 4217fi
631ef239 4218
7083c021
AC
4219ac_ext=c
4220ac_cpp='$CPP $CPPFLAGS'
4221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223ac_compiler_gnu=$ac_cv_c_compiler_gnu
4224
4225ac_ext=c
4226ac_cpp='$CPP $CPPFLAGS'
4227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230
4231
4232CFLAGS="$OLD_CFLAGS"
4233
4234ac_aux_dir=
4235for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
b6d0720c
AC
4236 if test -f "$ac_dir/install-sh"; then
4237 ac_aux_dir=$ac_dir
4238 ac_install_sh="$ac_aux_dir/install-sh -c"
4239 break
4240 elif test -f "$ac_dir/install.sh"; then
4241 ac_aux_dir=$ac_dir
4242 ac_install_sh="$ac_aux_dir/install.sh -c"
4243 break
4244 elif test -f "$ac_dir/shtool"; then
4245 ac_aux_dir=$ac_dir
4246 ac_install_sh="$ac_aux_dir/shtool install -c"
4247 break
4248 fi
212380e3 4249done
7083c021 4250if test -z "$ac_aux_dir"; then
b6d0720c 4251 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
7083c021 4252fi
212380e3 4253
7083c021
AC
4254# These three variables are undocumented and unsupported,
4255# and are intended to be withdrawn in a future Autoconf release.
4256# They can cause serious problems if a builder's source tree is in a directory
4257# whose full name contains unusual characters.
4258ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4259ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4260ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
212380e3 4261
7083c021
AC
4262
4263
4264
4265subdirs="$subdirs libratbox"
4266
4267
4268
4269if test "$ac_cv_c_compiler_gnu" != yes; then
4270
4271SGS=no
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4273$as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4274case `$CC -version 2>&1` in
4275*TenDRA*)
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4277$as_echo "yes, TenDRA" >&6; }
4278 IRC_CFLAGS=""
4279 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4280 SGS=yes
4281 TenDRA=yes
4282;;
4283*MIPSpro*)
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4285$as_echo "yes, MIPSpro" >&6; }
4286 MIPSpro=yes
4287 SGS=yes
4288;;
4289*)
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291$as_echo "no" >&6; }
4292 TenDRA=no
4293 MIPSpro=no
4294;;
631ef239 4295esac
7083c021
AC
4296
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4298$as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4299case `$CC -V 2>&1` in
4300*Sun*WorkShop* | *Forte*Developer*)
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4302$as_echo "Sun Workshop/Forte" >&6; }
4303 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4304 SunWorkShop=yes
4305 SGS=yes
4306;;
4307*Tru64*)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4309$as_echo "Tru64 cc" >&6; }
4310 IRC_CFLAGS="-O2"
4311 CPPFLAGS="-I/usr/local/include"
4312 Tru=yes
4313;;
4314*HP*ANSI*)
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4316$as_echo "HPUX cc" >&6; }
4317 HPUX=yes
4318 IRC_CFLAGS="+e"
4319;;
4320*)
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322$as_echo "no" >&6; }
4323;;
631ef239 4324esac
212380e3 4325
212380e3 4326fi
631ef239 4327
7083c021
AC
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4329$as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4330OSNAME=`uname -s`
4331case "$OSNAME" in
4332 HP-UX*)
631ef239 4333
7083c021
AC
4334 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4336$as_echo "assuming old HPUX with its own cc" >&6; }
4337 IRC_CFLAGS="$IRC_CFLAGS +e"
4338 HPUX=yes
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4341$as_echo "already using newer HPUX" >&6; }
4342 fi
4343 ;;
4344 SunOS*)
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4346$as_echo "SunOS or Solaris" >&6; }
212380e3 4347
7083c021 4348$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 4349
7083c021
AC
4350 SUN=yes
4351 ;;
4352 AIX*)
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4354$as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4355 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4356 ;;
4357 *)
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359$as_echo "no" >&6; }
4360 ;;
631ef239 4361esac
212380e3 4362
7083c021
AC
4363if test "$ac_cv_c_compiler_gnu" = yes; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4365$as_echo_n "checking if $CC is Apple GCC... " >&6; }
4366
4367 case `$CC -v 2>&1 | tail -n 1` in
4368 *Apple*)
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4370$as_echo "yes" >&6; }
4371 AppleGCC=yes
4372 ;;
4373 *)
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375$as_echo "no" >&6; }
4376 AppleGCC=no
4377 ;;
4378 esac
4379
4380 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
212380e3 4381fi
631ef239 4382
7083c021
AC
4383if test "$ac_cv_prog_cc_g" = yes; then
4384 if test "$Tru" = yes; then
4385 IRC_CFLAGS="$IRC_CFLAGS -g3"
4386 else
4387 IRC_CFLAGS="$IRC_CFLAGS -g"
4388 fi
212380e3 4389fi
212380e3 4390
7083c021
AC
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4392$as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4393if test "$SGS" = "yes"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4395$as_echo "yes" >&6; }
212380e3 4396else
7083c021
AC
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398$as_echo "no" >&6; }
4399fi
212380e3 4400
7083c021
AC
4401# Extract the first word of "mkdep", so it can be a program name with args.
4402set dummy mkdep; ac_word=$2
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4405if ${ac_cv_path_MKDEP+:} false; then :
7083c021
AC
4406 $as_echo_n "(cached) " >&6
4407else
4408 case $MKDEP in
4409 [\\/]* | ?:[\\/]*)
4410 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4411 ;;
4412 *)
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424done
4425 done
4426IFS=$as_save_IFS
212380e3 4427
7083c021 4428 ;;
631ef239 4429esac
7083c021
AC
4430fi
4431MKDEP=$ac_cv_path_MKDEP
4432if test -n "$MKDEP"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4434$as_echo "$MKDEP" >&6; }
212380e3 4435else
7083c021
AC
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437$as_echo "no" >&6; }
212380e3 4438fi
631ef239 4439
7083c021
AC
4440
4441# Extract the first word of "makedepend", so it can be a program name with args.
4442set dummy makedepend; ac_word=$2
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4445if ${ac_cv_path_MAKEDEPEND+:} false; then :
7083c021
AC
4446 $as_echo_n "(cached) " >&6
4447else
4448 case $MAKEDEPEND in
4449 [\\/]* | ?:[\\/]*)
4450 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4451 ;;
4452 *)
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4463 fi
4464done
212380e3 4465 done
7083c021
AC
4466IFS=$as_save_IFS
4467
4468 ;;
4469esac
4470fi
4471MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4472if test -n "$MAKEDEPEND"; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4474$as_echo "$MAKEDEPEND" >&6; }
212380e3 4475else
7083c021
AC
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477$as_echo "no" >&6; }
4478fi
212380e3 4479
212380e3 4480
212380e3 4481
7083c021
AC
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4483$as_echo_n "checking how to generate dependency info... " >&6; }
4484
4485STDOUT="> .depend"
4486
4487if test "$ac_cv_c_compiler_gnu" = yes; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4489$as_echo "gcc -MM" >&6; }
4490 MKDEP="$CC -MM"
4491elif test ! -z "$MKDEP"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4493$as_echo "mkdep" >&6; }
4494
4495 if test -z "$Tru"; then
4496 STDOUT=""
4497 else
4498 STDOUT=" 2> /dev/null"
4499 fi
4500elif test "$SunWorkShop" = yes; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4502$as_echo "$CC -xM" >&6; }
4503 MKDEP="$CC -xM"
4504 STDOUT="> .depend 2> /dev/null"
4505elif test ! -z "$MAKEDEPEND"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4507$as_echo "makedepend" >&6; }
4508 MKDEP="$MAKEDEPEND -f-"
212380e3 4509else
7083c021
AC
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4511$as_echo "nothing suitable.. forget it!" >&6; }
4512 MKDEP=":"
212380e3 4513fi
631ef239 4514
7083c021
AC
4515
4516
4517
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4519$as_echo_n "checking for /dev/null... " >&6; }
4520if test -c /dev/null ; then
4521
4522$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4523
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4525$as_echo "yes" >&6; }
212380e3 4526else
212380e3 4527
7083c021
AC
4528$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4529
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4531$as_echo "no - using devnull.log" >&6; }
212380e3 4532fi
631ef239 4533
7083c021
AC
4534if test ! -z "$CFLAGS"; then
4535 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
212380e3 4536fi
631ef239 4537
7083c021
AC
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4539$as_echo_n "checking for library containing strerror... " >&6; }
b6d0720c 4540if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
4541 $as_echo_n "(cached) " >&6
4542else
4543 ac_func_search_save_LIBS=$LIBS
4544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4545/* end confdefs.h. */
7083c021
AC
4546
4547/* Override any GCC internal prototype to avoid an error.
4548 Use char because int might match the return type of a GCC
4549 builtin and then its argument prototype would still apply. */
4550#ifdef __cplusplus
4551extern "C"
4552#endif
4553char strerror ();
212380e3
AC
4554int
4555main ()
4556{
7083c021 4557return strerror ();
212380e3
AC
4558 ;
4559 return 0;
4560}
4561_ACEOF
7083c021
AC
4562for ac_lib in '' cposix; do
4563 if test -z "$ac_lib"; then
4564 ac_res="none required"
4565 else
4566 ac_res=-l$ac_lib
4567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4568 fi
4569 if ac_fn_c_try_link "$LINENO"; then :
4570 ac_cv_search_strerror=$ac_res
4571fi
4572rm -f core conftest.err conftest.$ac_objext \
4573 conftest$ac_exeext
b6d0720c 4574 if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
4575 break
4576fi
4577done
b6d0720c 4578if ${ac_cv_search_strerror+:} false; then :
7083c021 4579
212380e3 4580else
7083c021
AC
4581 ac_cv_search_strerror=no
4582fi
4583rm conftest.$ac_ext
4584LIBS=$ac_func_search_save_LIBS
4585fi
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4587$as_echo "$ac_cv_search_strerror" >&6; }
4588ac_res=$ac_cv_search_strerror
4589if test "$ac_res" != no; then :
4590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 4591
212380e3 4592fi
631ef239 4593
7083c021
AC
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4595$as_echo_n "checking for inline... " >&6; }
b6d0720c 4596if ${ac_cv_c_inline+:} false; then :
7083c021
AC
4597 $as_echo_n "(cached) " >&6
4598else
4599 ac_cv_c_inline=no
4600for ac_kw in inline __inline__ __inline; do
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h. */
4603#ifndef __cplusplus
4604typedef int foo_t;
4605static $ac_kw foo_t static_foo () {return 0; }
4606$ac_kw foo_t foo () {return 0; }
4607#endif
4608
4609_ACEOF
4610if ac_fn_c_try_compile "$LINENO"; then :
4611 ac_cv_c_inline=$ac_kw
4612fi
631ef239 4613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021 4614 test "$ac_cv_c_inline" != no && break
212380e3 4615done
7083c021
AC
4616
4617fi
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4619$as_echo "$ac_cv_c_inline" >&6; }
4620
4621case $ac_cv_c_inline in
4622 inline | yes) ;;
4623 *)
4624 case $ac_cv_c_inline in
4625 no) ac_val=;;
4626 *) ac_val=$ac_cv_c_inline;;
4627 esac
4628 cat >>confdefs.h <<_ACEOF
4629#ifndef __cplusplus
4630#define inline $ac_val
4631#endif
4632_ACEOF
4633 ;;
212380e3 4634esac
7083c021
AC
4635
4636if test $ac_cv_c_compiler_gnu = yes; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4638$as_echo_n "checking whether $CC needs -traditional... " >&6; }
b6d0720c 4639if ${ac_cv_prog_gcc_traditional+:} false; then :
7083c021 4640 $as_echo_n "(cached) " >&6
212380e3 4641else
7083c021
AC
4642 ac_pattern="Autoconf.*'x'"
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h. */
4645#include <sgtty.h>
4646Autoconf TIOCGETP
212380e3 4647_ACEOF
7083c021
AC
4648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4650 ac_cv_prog_gcc_traditional=yes
4651else
4652 ac_cv_prog_gcc_traditional=no
4653fi
4654rm -f conftest*
4655
4656
4657 if test $ac_cv_prog_gcc_traditional = no; then
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4659/* end confdefs.h. */
7083c021
AC
4660#include <termio.h>
4661Autoconf TCGETA
4662_ACEOF
4663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4665 ac_cv_prog_gcc_traditional=yes
4666fi
4667rm -f conftest*
212380e3 4668
7083c021
AC
4669 fi
4670fi
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4672$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4673 if test $ac_cv_prog_gcc_traditional = yes; then
4674 CC="$CC -traditional"
4675 fi
4676fi
212380e3 4677
7083c021
AC
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4679$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4680set x ${MAKE-make}
4681ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b6d0720c 4682if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7083c021
AC
4683 $as_echo_n "(cached) " >&6
4684else
4685 cat >conftest.make <<\_ACEOF
4686SHELL = /bin/sh
4687all:
4688 @echo '@@@%%%=$(MAKE)=@@@%%%'
212380e3 4689_ACEOF
b6d0720c 4690# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7083c021
AC
4691case `${MAKE-make} -f conftest.make 2>/dev/null` in
4692 *@@@%%%=?*=@@@%%%*)
4693 eval ac_cv_prog_make_${ac_make}_set=yes;;
4694 *)
4695 eval ac_cv_prog_make_${ac_make}_set=no;;
631ef239 4696esac
7083c021
AC
4697rm -f conftest.make
4698fi
4699if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4701$as_echo "yes" >&6; }
4702 SET_MAKE=
4703else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705$as_echo "no" >&6; }
4706 SET_MAKE="MAKE=${MAKE-make}"
4707fi
4708
4709# Find a good install program. We prefer a C program (faster),
4710# so one script is as good as another. But avoid the broken or
4711# incompatible versions:
4712# SysV /etc/install, /usr/sbin/install
4713# SunOS /usr/etc/install
4714# IRIX /sbin/install
4715# AIX /bin/install
4716# AmigaOS /C/install, which installs bootblocks on floppy discs
4717# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4718# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4719# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4720# OS/2's system install, which has a completely different semantic
4721# ./install, which can be erroneously created by make from ./install.sh.
4722# Reject install programs that cannot install multiple files.
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4724$as_echo_n "checking for a BSD-compatible install... " >&6; }
4725if test -z "$INSTALL"; then
b6d0720c 4726if ${ac_cv_path_install+:} false; then :
7083c021
AC
4727 $as_echo_n "(cached) " >&6
4728else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730for as_dir in $PATH
4731do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 # Account for people who put trailing slashes in PATH elements.
4735case $as_dir/ in #((
4736 ./ | .// | /[cC]/* | \
4737 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4738 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4739 /usr/ucb/* ) ;;
4740 *)
4741 # OSF1 and SCO ODT 3.0 have their own names for install.
4742 # Don't use installbsd from OSF since it installs stuff as root
4743 # by default.
4744 for ac_prog in ginstall scoinst install; do
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4747 if test $ac_prog = install &&
4748 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4749 # AIX install. It has an incompatible calling convention.
4750 :
4751 elif test $ac_prog = install &&
4752 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4753 # program-specific install script used by HP pwplus--don't use.
4754 :
4755 else
4756 rm -rf conftest.one conftest.two conftest.dir
4757 echo one > conftest.one
4758 echo two > conftest.two
4759 mkdir conftest.dir
4760 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4761 test -s conftest.one && test -s conftest.two &&
4762 test -s conftest.dir/conftest.one &&
4763 test -s conftest.dir/conftest.two
4764 then
4765 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4766 break 3
4767 fi
4768 fi
4769 fi
4770 done
4771 done
4772 ;;
631ef239 4773esac
7083c021
AC
4774
4775 done
4776IFS=$as_save_IFS
4777
4778rm -rf conftest.one conftest.two conftest.dir
4779
4780fi
4781 if test "${ac_cv_path_install+set}" = set; then
4782 INSTALL=$ac_cv_path_install
4783 else
4784 # As a last resort, use the slow shell script. Don't cache a
4785 # value for INSTALL within a source directory, because that will
4786 # break other packages using the cache if that directory is
4787 # removed, or if the value is a relative name.
4788 INSTALL=$ac_install_sh
4789 fi
4790fi
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4792$as_echo "$INSTALL" >&6; }
4793
4794# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4795# It thinks the first close brace ends the variable substitution.
4796test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4797
4798test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4799
4800test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4801
4802# Extract the first word of "rm", so it can be a program name with args.
4803set dummy rm; ac_word=$2
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4806if ${ac_cv_path_RM+:} false; then :
7083c021 4807 $as_echo_n "(cached) " >&6
212380e3 4808else
7083c021
AC
4809 case $RM in
4810 [\\/]* | ?:[\\/]*)
4811 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4812 ;;
4813 *)
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815for as_dir in $PATH
4816do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4824 fi
4825done
4826 done
4827IFS=$as_save_IFS
212380e3 4828
7083c021
AC
4829 ;;
4830esac
212380e3 4831fi
7083c021
AC
4832RM=$ac_cv_path_RM
4833if test -n "$RM"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4835$as_echo "$RM" >&6; }
4836else
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838$as_echo "no" >&6; }
212380e3 4839fi
631ef239
AC
4840
4841
7083c021
AC
4842# Extract the first word of "cp", so it can be a program name with args.
4843set dummy cp; ac_word=$2
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4846if ${ac_cv_path_CP+:} false; then :
7083c021
AC
4847 $as_echo_n "(cached) " >&6
4848else
4849 case $CP in
4850 [\\/]* | ?:[\\/]*)
4851 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4852 ;;
4853 *)
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855for as_dir in $PATH
4856do
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 break 2
4864 fi
4865done
4866 done
4867IFS=$as_save_IFS
631ef239 4868
7083c021
AC
4869 ;;
4870esac
4871fi
4872CP=$ac_cv_path_CP
4873if test -n "$CP"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4875$as_echo "$CP" >&6; }
4876else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878$as_echo "no" >&6; }
4879fi
212380e3
AC
4880
4881
7083c021
AC
4882# Extract the first word of "mv", so it can be a program name with args.
4883set dummy mv; ac_word=$2
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4886if ${ac_cv_path_MV+:} false; then :
7083c021 4887 $as_echo_n "(cached) " >&6
212380e3 4888else
7083c021
AC
4889 case $MV in
4890 [\\/]* | ?:[\\/]*)
4891 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4892 ;;
4893 *)
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH
4896do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905done
4906 done
4907IFS=$as_save_IFS
4908
4909 ;;
631ef239 4910esac
7083c021
AC
4911fi
4912MV=$ac_cv_path_MV
4913if test -n "$MV"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4915$as_echo "$MV" >&6; }
212380e3 4916else
7083c021
AC
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918$as_echo "no" >&6; }
212380e3 4919fi
631ef239 4920
212380e3 4921
7083c021
AC
4922# Extract the first word of "ln", so it can be a program name with args.
4923set dummy ln; ac_word=$2
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4926if ${ac_cv_path_LN+:} false; then :
7083c021 4927 $as_echo_n "(cached) " >&6
212380e3 4928else
7083c021
AC
4929 case $LN in
4930 [\\/]* | ?:[\\/]*)
4931 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4932 ;;
4933 *)
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH
4936do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4944 fi
4945done
4946 done
4947IFS=$as_save_IFS
212380e3 4948
7083c021 4949 ;;
631ef239 4950esac
7083c021
AC
4951fi
4952LN=$ac_cv_path_LN
4953if test -n "$LN"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4955$as_echo "$LN" >&6; }
212380e3 4956else
7083c021
AC
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958$as_echo "no" >&6; }
212380e3 4959fi
631ef239 4960
7083c021
AC
4961
4962# Extract the first word of "sed", so it can be a program name with args.
4963set dummy sed; ac_word=$2
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4966if ${ac_cv_path_SED+:} false; then :
7083c021
AC
4967 $as_echo_n "(cached) " >&6
4968else
4969 case $SED in
4970 [\\/]* | ?:[\\/]*)
4971 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4972 ;;
4973 *)
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975for as_dir in $PATH
4976do
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4984 fi
4985done
212380e3 4986 done
7083c021
AC
4987IFS=$as_save_IFS
4988
4989 ;;
4990esac
4991fi
4992SED=$ac_cv_path_SED
4993if test -n "$SED"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4995$as_echo "$SED" >&6; }
212380e3 4996else
7083c021
AC
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998$as_echo "no" >&6; }
4999fi
212380e3 5000
212380e3 5001
7083c021
AC
5002# Extract the first word of "ar", so it can be a program name with args.
5003set dummy ar; ac_word=$2
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5006if ${ac_cv_path_AR+:} false; then :
7083c021
AC
5007 $as_echo_n "(cached) " >&6
5008else
5009 case $AR in
5010 [\\/]* | ?:[\\/]*)
5011 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5012 ;;
5013 *)
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH
5016do
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5024 fi
5025done
5026 done
5027IFS=$as_save_IFS
212380e3 5028
7083c021 5029 ;;
631ef239 5030esac
7083c021
AC
5031fi
5032AR=$ac_cv_path_AR
5033if test -n "$AR"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5035$as_echo "$AR" >&6; }
212380e3 5036else
7083c021
AC
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038$as_echo "no" >&6; }
212380e3 5039fi
631ef239 5040
7083c021
AC
5041
5042# Extract the first word of "ld", so it can be a program name with args.
5043set dummy ld; ac_word=$2
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5046if ${ac_cv_path_LD+:} false; then :
7083c021 5047 $as_echo_n "(cached) " >&6
212380e3 5048else
7083c021
AC
5049 case $LD in
5050 [\\/]* | ?:[\\/]*)
5051 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5052 ;;
5053 *)
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055for as_dir in $PATH
5056do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065done
5066 done
5067IFS=$as_save_IFS
212380e3 5068
7083c021
AC
5069 ;;
5070esac
212380e3 5071fi
7083c021
AC
5072LD=$ac_cv_path_LD
5073if test -n "$LD"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5075$as_echo "$LD" >&6; }
5076else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078$as_echo "no" >&6; }
212380e3 5079fi
631ef239 5080
212380e3 5081
7083c021
AC
5082# Extract the first word of "ranlib", so it can be a program name with args.
5083set dummy ranlib; ac_word=$2
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5086if ${ac_cv_path_RANLIB+:} false; then :
7083c021 5087 $as_echo_n "(cached) " >&6
212380e3 5088else
7083c021
AC
5089 case $RANLIB in
5090 [\\/]* | ?:[\\/]*)
5091 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5092 ;;
5093 *)
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095for as_dir in $PATH
5096do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5104 fi
5105done
5106 done
5107IFS=$as_save_IFS
212380e3 5108
7083c021
AC
5109 ;;
5110esac
5111fi
5112RANLIB=$ac_cv_path_RANLIB
5113if test -n "$RANLIB"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5115$as_echo "$RANLIB" >&6; }
5116else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118$as_echo "no" >&6; }
212380e3 5119fi
631ef239 5120
7083c021
AC
5121
5122# Extract the first word of "touch", so it can be a program name with args.
5123set dummy touch; ac_word=$2
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5126if ${ac_cv_path_TOUCH+:} false; then :
7083c021
AC
5127 $as_echo_n "(cached) " >&6
5128else
5129 case $TOUCH in
5130 [\\/]* | ?:[\\/]*)
5131 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5132 ;;
5133 *)
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5144 fi
212380e3 5145done
7083c021
AC
5146 done
5147IFS=$as_save_IFS
5148
5149 ;;
212380e3 5150esac
7083c021
AC
5151fi
5152TOUCH=$ac_cv_path_TOUCH
5153if test -n "$TOUCH"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5155$as_echo "$TOUCH" >&6; }
212380e3 5156else
7083c021
AC
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158$as_echo "no" >&6; }
5159fi
212380e3 5160
212380e3 5161
7083c021
AC
5162
5163for ac_prog in 'bison -y' byacc
5164do
5165 # Extract the first word of "$ac_prog", so it can be a program name with args.
5166set dummy $ac_prog; ac_word=$2
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5169if ${ac_cv_prog_YACC+:} false; then :
7083c021 5170 $as_echo_n "(cached) " >&6
212380e3 5171else
7083c021
AC
5172 if test -n "$YACC"; then
5173 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5174else
5175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176for as_dir in $PATH
5177do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_YACC="$ac_prog"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5185 fi
5186done
5187 done
5188IFS=$as_save_IFS
212380e3 5189
212380e3
AC
5190fi
5191fi
7083c021
AC
5192YACC=$ac_cv_prog_YACC
5193if test -n "$YACC"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5195$as_echo "$YACC" >&6; }
5196else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198$as_echo "no" >&6; }
212380e3 5199fi
631ef239
AC
5200
5201
7083c021
AC
5202 test -n "$YACC" && break
5203done
5204test -n "$YACC" || YACC="yacc"
212380e3
AC
5205
5206
7083c021 5207if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
b6d0720c 5208 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
7083c021 5209fi
212380e3 5210
7083c021
AC
5211for ac_prog in flex lex
5212do
5213 # Extract the first word of "$ac_prog", so it can be a program name with args.
5214set dummy $ac_prog; ac_word=$2
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5216$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5217if ${ac_cv_prog_LEX+:} false; then :
7083c021 5218 $as_echo_n "(cached) " >&6
212380e3 5219else
7083c021
AC
5220 if test -n "$LEX"; then
5221 ac_cv_prog_LEX="$LEX" # Let the user override the test.
212380e3 5222else
7083c021
AC
5223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224for as_dir in $PATH
5225do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230 ac_cv_prog_LEX="$ac_prog"
5231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 break 2
5233 fi
631ef239 5234done
7083c021
AC
5235 done
5236IFS=$as_save_IFS
631ef239 5237
7083c021
AC
5238fi
5239fi
5240LEX=$ac_cv_prog_LEX
5241if test -n "$LEX"; then
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5243$as_echo "$LEX" >&6; }
631ef239 5244else
7083c021
AC
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246$as_echo "no" >&6; }
631ef239
AC
5247fi
5248
5249
7083c021
AC
5250 test -n "$LEX" && break
5251done
5252test -n "$LEX" || LEX=":"
212380e3 5253
7083c021
AC
5254if test "x$LEX" != "x:"; then
5255 cat >conftest.l <<_ACEOF
5256%%
5257a { ECHO; }
5258b { REJECT; }
5259c { yymore (); }
5260d { yyless (1); }
5261e { yyless (input () != 0); }
5262f { unput (yytext[0]); }
5263. { BEGIN INITIAL; }
5264%%
5265#ifdef YYTEXT_POINTER
5266extern char *yytext;
212380e3 5267#endif
212380e3 5268int
7083c021 5269main (void)
212380e3 5270{
7083c021 5271 return ! yylex () + ! yywrap ();
212380e3
AC
5272}
5273_ACEOF
7083c021 5274{ { ac_try="$LEX conftest.l"
631ef239
AC
5275case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278esac
7083c021
AC
5279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5280$as_echo "$ac_try_echo"; } >&5
5281 (eval "$LEX conftest.l") 2>&5
212380e3 5282 ac_status=$?
7083c021
AC
5283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5284 test $ac_status = 0; }
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5286$as_echo_n "checking lex output file root... " >&6; }
b6d0720c 5287if ${ac_cv_prog_lex_root+:} false; then :
7083c021 5288 $as_echo_n "(cached) " >&6
212380e3 5289else
212380e3 5290
7083c021
AC
5291if test -f lex.yy.c; then
5292 ac_cv_prog_lex_root=lex.yy
5293elif test -f lexyy.c; then
5294 ac_cv_prog_lex_root=lexyy
5295else
b6d0720c 5296 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7083c021
AC
5297fi
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5300$as_echo "$ac_cv_prog_lex_root" >&6; }
5301LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5302
5303if test -z "${LEXLIB+set}"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5305$as_echo_n "checking lex library... " >&6; }
b6d0720c 5306if ${ac_cv_lib_lex+:} false; then :
7083c021
AC
5307 $as_echo_n "(cached) " >&6
5308else
631ef239 5309
7083c021
AC
5310 ac_save_LIBS=$LIBS
5311 ac_cv_lib_lex='none needed'
5312 for ac_lib in '' -lfl -ll; do
5313 LIBS="$ac_lib $ac_save_LIBS"
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h. */
5316`cat $LEX_OUTPUT_ROOT.c`
5317_ACEOF
5318if ac_fn_c_try_link "$LINENO"; then :
5319 ac_cv_lib_lex=$ac_lib
212380e3 5320fi
7083c021
AC
5321rm -f core conftest.err conftest.$ac_objext \
5322 conftest$ac_exeext conftest.$ac_ext
5323 test "$ac_cv_lib_lex" != 'none needed' && break
5324 done
5325 LIBS=$ac_save_LIBS
631ef239 5326
631ef239 5327fi
7083c021
AC
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5329$as_echo "$ac_cv_lib_lex" >&6; }
5330 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5331fi
5332
5333
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5335$as_echo_n "checking whether yytext is a pointer... " >&6; }
b6d0720c 5336if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7083c021 5337 $as_echo_n "(cached) " >&6
631ef239 5338else
7083c021
AC
5339 # POSIX says lex can declare yytext either as a pointer or an array; the
5340# default is implementation-dependent. Figure out which it is, since
5341# not all implementations provide the %pointer and %array declarations.
5342ac_cv_prog_lex_yytext_pointer=no
5343ac_save_LIBS=$LIBS
5344LIBS="$LEXLIB $ac_save_LIBS"
5345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346/* end confdefs.h. */
b6d0720c
AC
5347
5348 #define YYTEXT_POINTER 1
7083c021
AC
5349`cat $LEX_OUTPUT_ROOT.c`
5350_ACEOF
5351if ac_fn_c_try_link "$LINENO"; then :
5352 ac_cv_prog_lex_yytext_pointer=yes
212380e3 5353fi
7083c021
AC
5354rm -f core conftest.err conftest.$ac_objext \
5355 conftest$ac_exeext conftest.$ac_ext
5356LIBS=$ac_save_LIBS
5357
212380e3 5358fi
7083c021
AC
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5360$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5361if test $ac_cv_prog_lex_yytext_pointer = yes; then
212380e3 5362
7083c021
AC
5363$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5364
5365fi
5366rm -f conftest.l $LEX_OUTPUT_ROOT.c
5367
5368fi
5369
5370if test "$LEX" = ":"; then
b6d0720c 5371 as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
212380e3
AC
5372fi
5373
9f9b7042
NPB
5374# Check whether --enable-fhs-paths was given.
5375if test "${enable_fhs_paths+set}" = set; then :
5376 enableval=$enable_fhs_paths;
5377else
5378 if test "$libexecdir" = '${exec_prefix}/libexec' && \
5379 test "$localstatedir" = '${prefix}/var' && \
5380 test "$libdir" = '${exec_prefix}/lib'; then :
5381 enable_fhs_paths=no
5382else
5383 enable_fhs_paths=yes
5384fi
5385
5386fi
5387
5388if test "x$enable_fhs_paths" = "xyes"; then :
5389 pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}'
5390 rundir=${rundir-'${prefix}/run'}
5391 pkgrundir='${rundir}/${PACKAGE_TARNAME}'
5392 pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}'
5393else
5394 libexecdir='${bindir}'
5395 pkglibexecdir='${libexecdir}'
5396 rundir='${sysconfdir}'
5397 pkgrundir='${rundir}'
7083c021 5398 localstatedir='${prefix}'
9f9b7042 5399 pkglocalstatedir='${sysconfdir}'
631ef239 5400fi
9f9b7042
NPB
5401pkglibdir='${libdir}/${PACKAGE_TARNAME}'
5402
5403
5404
5405
5406
5407 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5409 last_ac_define_dir=`eval echo $pkglocalstatedir`
5410 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 5411 ac_define_dir_counter=0
9f9b7042
NPB
5412 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5413 last_ac_define_dir="$ac_define_dir"
5414 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
5415 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
5416 if test "x$ac_define_dir_counter" = x128; then :
5417 as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5
5418 break
5419fi
9f9b7042
NPB
5420 done
5421 PKGLOCALSTATEDIR="$ac_define_dir"
5422
5423
5424cat >>confdefs.h <<_ACEOF
5425#define PKGLOCALSTATEDIR "$ac_define_dir"
5426_ACEOF
5427
5428
5429
5430
5431 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5432 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5433 last_ac_define_dir=`eval echo $pkglibexecdir`
5434 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 5435 ac_define_dir_counter=0
9f9b7042
NPB
5436 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5437 last_ac_define_dir="$ac_define_dir"
5438 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
5439 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
5440 if test "x$ac_define_dir_counter" = x128; then :
5441 as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5
5442 break
5443fi
9f9b7042
NPB
5444 done
5445 PKGLIBEXECDIR="$ac_define_dir"
5446
5447
5448cat >>confdefs.h <<_ACEOF
5449#define PKGLIBEXECDIR "$ac_define_dir"
5450_ACEOF
5451
5452
212380e3 5453
7083c021
AC
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5455$as_echo_n "checking for ANSI C header files... " >&6; }
b6d0720c 5456if ${ac_cv_header_stdc+:} false; then :
7083c021 5457 $as_echo_n "(cached) " >&6
212380e3 5458else
7083c021 5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5460/* end confdefs.h. */
7083c021
AC
5461#include <stdlib.h>
5462#include <stdarg.h>
5463#include <string.h>
5464#include <float.h>
212380e3
AC
5465
5466int
5467main ()
5468{
7083c021 5469
212380e3
AC
5470 ;
5471 return 0;
5472}
5473_ACEOF
7083c021
AC
5474if ac_fn_c_try_compile "$LINENO"; then :
5475 ac_cv_header_stdc=yes
212380e3 5476else
7083c021 5477 ac_cv_header_stdc=no
212380e3 5478fi
631ef239 5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5480
7083c021
AC
5481if test $ac_cv_header_stdc = yes; then
5482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484/* end confdefs.h. */
5485#include <string.h>
5486
212380e3 5487_ACEOF
7083c021
AC
5488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5489 $EGREP "memchr" >/dev/null 2>&1; then :
5490
5491else
5492 ac_cv_header_stdc=no
5493fi
5494rm -f conftest*
212380e3
AC
5495
5496fi
5497
7083c021
AC
5498if test $ac_cv_header_stdc = yes; then
5499 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501/* end confdefs.h. */
5502#include <stdlib.h>
5503
5504_ACEOF
5505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5506 $EGREP "free" >/dev/null 2>&1; then :
212380e3 5507
212380e3 5508else
7083c021 5509 ac_cv_header_stdc=no
631ef239 5510fi
7083c021 5511rm -f conftest*
631ef239 5512
7083c021 5513fi
212380e3 5514
7083c021
AC
5515if test $ac_cv_header_stdc = yes; then
5516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5517 if test "$cross_compiling" = yes; then :
5518 :
212380e3 5519else
7083c021 5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5521/* end confdefs.h. */
7083c021
AC
5522#include <ctype.h>
5523#include <stdlib.h>
5524#if ((' ' & 0x0FF) == 0x020)
5525# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5526# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5527#else
5528# define ISLOWER(c) \
5529 (('a' <= (c) && (c) <= 'i') \
5530 || ('j' <= (c) && (c) <= 'r') \
5531 || ('s' <= (c) && (c) <= 'z'))
5532# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
212380e3 5533#endif
7083c021
AC
5534
5535#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
5536int
5537main ()
5538{
7083c021
AC
5539 int i;
5540 for (i = 0; i < 256; i++)
5541 if (XOR (islower (i), ISLOWER (i))
5542 || toupper (i) != TOUPPER (i))
5543 return 2;
212380e3
AC
5544 return 0;
5545}
5546_ACEOF
7083c021 5547if ac_fn_c_try_run "$LINENO"; then :
212380e3 5548
7083c021
AC
5549else
5550 ac_cv_header_stdc=no
631ef239 5551fi
7083c021
AC
5552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5553 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 5554fi
7083c021 5555
212380e3 5556fi
212380e3 5557fi
7083c021
AC
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5559$as_echo "$ac_cv_header_stdc" >&6; }
5560if test $ac_cv_header_stdc = yes; then
5561
5562$as_echo "#define STDC_HEADERS 1" >>confdefs.h
212380e3
AC
5563
5564fi
5565
5566
7083c021
AC
5567for 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
5568do :
5569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5570ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
b6d0720c 5571if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
5572 cat >>confdefs.h <<_ACEOF
5573#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5574_ACEOF
212380e3 5575
212380e3
AC
5576fi
5577
7083c021 5578done
212380e3
AC
5579
5580
212380e3 5581
7083c021
AC
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5583$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b6d0720c 5584if ${ac_cv_c_const+:} false; then :
7083c021
AC
5585 $as_echo_n "(cached) " >&6
5586else
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588/* end confdefs.h. */
212380e3 5589
7083c021
AC
5590int
5591main ()
5592{
5593/* FIXME: Include the comments suggested by Paul. */
5594#ifndef __cplusplus
5595 /* Ultrix mips cc rejects this. */
5596 typedef int charset[2];
5597 const charset cs;
5598 /* SunOS 4.1.1 cc rejects this. */
5599 char const *const *pcpcc;
5600 char **ppc;
5601 /* NEC SVR4.0.2 mips cc rejects this. */
5602 struct point {int x, y;};
5603 static struct point const zero = {0,0};
5604 /* AIX XL C 1.02.0.0 rejects this.
5605 It does not let you subtract one const X* pointer from another in
5606 an arm of an if-expression whose if-part is not a constant
5607 expression */
5608 const char *g = "string";
5609 pcpcc = &g + (g ? g-g : 0);
5610 /* HPUX 7.0 cc rejects these. */
5611 ++pcpcc;
5612 ppc = (char**) pcpcc;
5613 pcpcc = (char const *const *) ppc;
5614 { /* SCO 3.2v4 cc rejects this. */
5615 char *t;
5616 char const *s = 0 ? (char *) 0 : (char const *) 0;
212380e3 5617
7083c021
AC
5618 *t++ = 0;
5619 if (s) return 0;
5620 }
5621 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5622 int x[] = {25, 17};
5623 const int *foo = &x[0];
5624 ++foo;
5625 }
5626 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5627 typedef const int *iptr;
5628 iptr p = 0;
5629 ++p;
5630 }
5631 { /* AIX XL C 1.02.0.0 rejects this saying
5632 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5633 struct s { int j; const int *ap[3]; };
5634 struct s *b; b->j = 5;
5635 }
5636 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5637 const int foo = 10;
5638 if (!foo) return 0;
5639 }
5640 return !cs[0] && !zero.x;
5641#endif
212380e3 5642
7083c021
AC
5643 ;
5644 return 0;
5645}
212380e3 5646_ACEOF
7083c021
AC
5647if ac_fn_c_try_compile "$LINENO"; then :
5648 ac_cv_c_const=yes
212380e3 5649else
7083c021 5650 ac_cv_c_const=no
212380e3 5651fi
631ef239 5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5653fi
7083c021
AC
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5655$as_echo "$ac_cv_c_const" >&6; }
5656if test $ac_cv_c_const = no; then
212380e3 5657
7083c021 5658$as_echo "#define const /**/" >>confdefs.h
212380e3
AC
5659
5660fi
5661
7083c021
AC
5662if test "$ac_cv_header_machine_endian_h" = "no" ; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5664$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 5665if ${ac_cv_c_bigendian+:} false; then :
7083c021 5666 $as_echo_n "(cached) " >&6
212380e3 5667else
7083c021
AC
5668 ac_cv_c_bigendian=unknown
5669 # See if we're dealing with a universal compiler.
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671/* end confdefs.h. */
5672#ifndef __APPLE_CC__
5673 not a universal capable compiler
5674 #endif
5675 typedef int dummy;
5676
5677_ACEOF
5678if ac_fn_c_try_compile "$LINENO"; then :
5679
5680 # Check for potential -arch flags. It is not universal unless
5681 # there are at least two -arch flags with different values.
5682 ac_arch=
5683 ac_prev=
5684 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5685 if test -n "$ac_prev"; then
5686 case $ac_word in
5687 i?86 | x86_64 | ppc | ppc64)
5688 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5689 ac_arch=$ac_word
5690 else
5691 ac_cv_c_bigendian=universal
5692 break
5693 fi
5694 ;;
5695 esac
5696 ac_prev=
5697 elif test "x$ac_word" = "x-arch"; then
5698 ac_prev=arch
5699 fi
5700 done
5701fi
5702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 if test $ac_cv_c_bigendian = unknown; then
5704 # See if sys/param.h defines the BYTE_ORDER macro.
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
5706/* end confdefs.h. */
5707#include <sys/types.h>
7083c021 5708 #include <sys/param.h>
212380e3
AC
5709
5710int
5711main ()
5712{
7083c021
AC
5713#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5714 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5715 && LITTLE_ENDIAN)
5716 bogus endian macros
5717 #endif
212380e3
AC
5718
5719 ;
5720 return 0;
5721}
5722_ACEOF
7083c021 5723if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5724 # It does; now see whether it defined to BIG_ENDIAN or not.
7083c021 5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
5726/* end confdefs.h. */
5727#include <sys/types.h>
7083c021 5728 #include <sys/param.h>
212380e3
AC
5729
5730int
5731main ()
5732{
5733#if BYTE_ORDER != BIG_ENDIAN
7083c021
AC
5734 not big endian
5735 #endif
212380e3
AC
5736
5737 ;
5738 return 0;
5739}
5740_ACEOF
7083c021 5741if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
5742 ac_cv_c_bigendian=yes
5743else
7083c021 5744 ac_cv_c_bigendian=no
212380e3 5745fi
631ef239 5746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
5747fi
5748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 fi
5750 if test $ac_cv_c_bigendian = unknown; then
5751 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753/* end confdefs.h. */
5754#include <limits.h>
212380e3 5755
7083c021
AC
5756int
5757main ()
5758{
5759#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5760 bogus endian macros
5761 #endif
5762
5763 ;
5764 return 0;
5765}
212380e3 5766_ACEOF
7083c021
AC
5767if ac_fn_c_try_compile "$LINENO"; then :
5768 # It does; now see whether it defined to _BIG_ENDIAN or not.
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5770/* end confdefs.h. */
7083c021
AC
5771#include <limits.h>
5772
212380e3
AC
5773int
5774main ()
5775{
7083c021
AC
5776#ifndef _BIG_ENDIAN
5777 not big endian
5778 #endif
5779
212380e3
AC
5780 ;
5781 return 0;
5782}
5783_ACEOF
7083c021 5784if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5785 ac_cv_c_bigendian=yes
7083c021
AC
5786else
5787 ac_cv_c_bigendian=no
212380e3 5788fi
7083c021 5789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5790fi
7083c021
AC
5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 fi
5793 if test $ac_cv_c_bigendian = unknown; then
5794 # Compile a test program.
5795 if test "$cross_compiling" = yes; then :
5796 # Try to guess by grepping values from an object file.
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798/* end confdefs.h. */
5799short int ascii_mm[] =
5800 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5801 short int ascii_ii[] =
5802 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5803 int use_ascii (int i) {
5804 return ascii_mm[i] + ascii_ii[i];
5805 }
5806 short int ebcdic_ii[] =
5807 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5808 short int ebcdic_mm[] =
5809 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5810 int use_ebcdic (int i) {
5811 return ebcdic_mm[i] + ebcdic_ii[i];
5812 }
5813 extern int foo;
631ef239 5814
7083c021
AC
5815int
5816main ()
5817{
5818return use_ascii (foo) == use_ebcdic (foo);
5819 ;
5820 return 0;
5821}
5822_ACEOF
5823if ac_fn_c_try_compile "$LINENO"; then :
5824 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5825 ac_cv_c_bigendian=yes
5826 fi
5827 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5828 if test "$ac_cv_c_bigendian" = unknown; then
5829 ac_cv_c_bigendian=no
5830 else
5831 # finding both strings is unlikely to happen, but who knows?
5832 ac_cv_c_bigendian=unknown
5833 fi
5834 fi
212380e3 5835fi
631ef239 5836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5837else
7083c021 5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5839/* end confdefs.h. */
631ef239 5840$ac_includes_default
212380e3
AC
5841int
5842main ()
5843{
631ef239 5844
7083c021
AC
5845 /* Are we little or big endian? From Harbison&Steele. */
5846 union
5847 {
5848 long int l;
5849 char c[sizeof (long int)];
5850 } u;
5851 u.l = 1;
5852 return u.c[sizeof (long int) - 1] == 1;
631ef239
AC
5853
5854 ;
5855 return 0;
212380e3
AC
5856}
5857_ACEOF
7083c021 5858if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
5859 ac_cv_c_bigendian=no
5860else
7083c021 5861 ac_cv_c_bigendian=yes
212380e3 5862fi
7083c021
AC
5863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5864 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 5865fi
631ef239 5866
7083c021 5867 fi
212380e3 5868fi
7083c021
AC
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5870$as_echo "$ac_cv_c_bigendian" >&6; }
5871 case $ac_cv_c_bigendian in #(
5872 yes)
5873 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5874;; #(
5875 no)
5876 ;; #(
5877 universal)
5878
5879$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5880
5881 ;; #(
5882 *)
b6d0720c 5883 as_fn_error $? "unknown endianness
7083c021
AC
5884 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5885 esac
631ef239 5886
212380e3 5887fi
7083c021 5888ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
b6d0720c 5889if test "x$ac_cv_type_pid_t" = xyes; then :
212380e3 5890
7083c021 5891else
212380e3 5892
7083c021
AC
5893cat >>confdefs.h <<_ACEOF
5894#define pid_t int
5895_ACEOF
212380e3 5896
212380e3 5897fi
7083c021
AC
5898
5899ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
b6d0720c 5900if test "x$ac_cv_type_size_t" = xyes; then :
7083c021 5901
212380e3 5902else
7083c021
AC
5903
5904cat >>confdefs.h <<_ACEOF
5905#define size_t unsigned int
212380e3 5906_ACEOF
7083c021
AC
5907
5908fi
5909
5910# The cast to long int works around a bug in the HP C Compiler
5911# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5912# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5913# This bug is HP SR number 8606223364.
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5915$as_echo_n "checking size of short... " >&6; }
b6d0720c 5916if ${ac_cv_sizeof_short+:} false; then :
7083c021 5917 $as_echo_n "(cached) " >&6
212380e3 5918else
7083c021
AC
5919 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5920
5921else
5922 if test "$ac_cv_type_short" = yes; then
5923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
5925as_fn_error 77 "cannot compute sizeof (short)
5926See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
5927 else
5928 ac_cv_sizeof_short=0
5929 fi
5930fi
212380e3 5931
212380e3 5932fi
7083c021
AC
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5934$as_echo "$ac_cv_sizeof_short" >&6; }
631ef239 5935
212380e3 5936
7083c021
AC
5937
5938cat >>confdefs.h <<_ACEOF
5939#define SIZEOF_SHORT $ac_cv_sizeof_short
212380e3 5940_ACEOF
7083c021
AC
5941
5942
5943# The cast to long int works around a bug in the HP C Compiler
5944# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5945# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5946# This bug is HP SR number 8606223364.
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5948$as_echo_n "checking size of int... " >&6; }
b6d0720c 5949if ${ac_cv_sizeof_int+:} false; then :
7083c021
AC
5950 $as_echo_n "(cached) " >&6
5951else
5952 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5953
5954else
5955 if test "$ac_cv_type_int" = yes; then
5956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
5958as_fn_error 77 "cannot compute sizeof (int)
5959See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
5960 else
5961 ac_cv_sizeof_int=0
5962 fi
5963fi
5964
5965fi
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5967$as_echo "$ac_cv_sizeof_int" >&6; }
5968
5969
5970
5971cat >>confdefs.h <<_ACEOF
5972#define SIZEOF_INT $ac_cv_sizeof_int
212380e3 5973_ACEOF
7083c021
AC
5974
5975
5976# The cast to long int works around a bug in the HP C Compiler
5977# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5978# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5979# This bug is HP SR number 8606223364.
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5981$as_echo_n "checking size of long... " >&6; }
b6d0720c 5982if ${ac_cv_sizeof_long+:} false; then :
7083c021 5983 $as_echo_n "(cached) " >&6
212380e3 5984else
7083c021 5985 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
212380e3 5986
7083c021
AC
5987else
5988 if test "$ac_cv_type_long" = yes; then
5989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
5991as_fn_error 77 "cannot compute sizeof (long)
5992See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
5993 else
5994 ac_cv_sizeof_long=0
5995 fi
212380e3 5996fi
631ef239 5997
7083c021
AC
5998fi
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6000$as_echo "$ac_cv_sizeof_long" >&6; }
212380e3 6001
631ef239 6002
7083c021
AC
6003
6004cat >>confdefs.h <<_ACEOF
6005#define SIZEOF_LONG $ac_cv_sizeof_long
6006_ACEOF
6007
6008
6009# The cast to long int works around a bug in the HP C Compiler
6010# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6011# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6012# This bug is HP SR number 8606223364.
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6014$as_echo_n "checking size of long long... " >&6; }
b6d0720c 6015if ${ac_cv_sizeof_long_long+:} false; then :
7083c021
AC
6016 $as_echo_n "(cached) " >&6
6017else
6018 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6019
212380e3 6020else
7083c021
AC
6021 if test "$ac_cv_type_long_long" = yes; then
6022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
6024as_fn_error 77 "cannot compute sizeof (long long)
6025See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
6026 else
6027 ac_cv_sizeof_long_long=0
6028 fi
212380e3 6029fi
212380e3
AC
6030
6031fi
7083c021
AC
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6033$as_echo "$ac_cv_sizeof_long_long" >&6; }
212380e3
AC
6034
6035
6036
7083c021
AC
6037cat >>confdefs.h <<_ACEOF
6038#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6039_ACEOF
212380e3 6040
212380e3 6041
212380e3 6042
7083c021
AC
6043
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6045$as_echo_n "checking for library containing socket... " >&6; }
b6d0720c 6046if ${ac_cv_search_socket+:} false; then :
7083c021
AC
6047 $as_echo_n "(cached) " >&6
6048else
6049 ac_func_search_save_LIBS=$LIBS
6050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6051/* end confdefs.h. */
7083c021
AC
6052
6053/* Override any GCC internal prototype to avoid an error.
6054 Use char because int might match the return type of a GCC
6055 builtin and then its argument prototype would still apply. */
6056#ifdef __cplusplus
6057extern "C"
6058#endif
6059char socket ();
212380e3
AC
6060int
6061main ()
6062{
7083c021 6063return socket ();
212380e3
AC
6064 ;
6065 return 0;
6066}
6067_ACEOF
7083c021
AC
6068for ac_lib in '' socket; do
6069 if test -z "$ac_lib"; then
6070 ac_res="none required"
6071 else
6072 ac_res=-l$ac_lib
6073 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6074 fi
6075 if ac_fn_c_try_link "$LINENO"; then :
6076 ac_cv_search_socket=$ac_res
6077fi
6078rm -f core conftest.err conftest.$ac_objext \
6079 conftest$ac_exeext
b6d0720c 6080 if ${ac_cv_search_socket+:} false; then :
7083c021
AC
6081 break
6082fi
6083done
b6d0720c 6084if ${ac_cv_search_socket+:} false; then :
212380e3
AC
6085
6086else
7083c021
AC
6087 ac_cv_search_socket=no
6088fi
6089rm conftest.$ac_ext
6090LIBS=$ac_func_search_save_LIBS
6091fi
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6093$as_echo "$ac_cv_search_socket" >&6; }
6094ac_res=$ac_cv_search_socket
6095if test "$ac_res" != no; then :
6096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6097
7083c021 6098else
b6d0720c 6099 as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5
212380e3 6100fi
631ef239 6101
212380e3 6102
7083c021
AC
6103if test x"$SUN" = xyes; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6105$as_echo_n "checking for library containing inet_ntoa... " >&6; }
b6d0720c 6106if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
6107 $as_echo_n "(cached) " >&6
6108else
6109 ac_func_search_save_LIBS=$LIBS
6110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6111/* end confdefs.h. */
7083c021
AC
6112
6113/* Override any GCC internal prototype to avoid an error.
6114 Use char because int might match the return type of a GCC
6115 builtin and then its argument prototype would still apply. */
6116#ifdef __cplusplus
6117extern "C"
6118#endif
6119char inet_ntoa ();
212380e3
AC
6120int
6121main ()
6122{
7083c021 6123return inet_ntoa ();
212380e3
AC
6124 ;
6125 return 0;
6126}
6127_ACEOF
7083c021
AC
6128for ac_lib in '' nsl; do
6129 if test -z "$ac_lib"; then
6130 ac_res="none required"
6131 else
6132 ac_res=-l$ac_lib
6133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6134 fi
6135 if ac_fn_c_try_link "$LINENO"; then :
6136 ac_cv_search_inet_ntoa=$ac_res
6137fi
6138rm -f core conftest.err conftest.$ac_objext \
6139 conftest$ac_exeext
b6d0720c 6140 if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
6141 break
6142fi
6143done
b6d0720c 6144if ${ac_cv_search_inet_ntoa+:} false; then :
212380e3
AC
6145
6146else
7083c021
AC
6147 ac_cv_search_inet_ntoa=no
6148fi
6149rm conftest.$ac_ext
6150LIBS=$ac_func_search_save_LIBS
6151fi
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6153$as_echo "$ac_cv_search_inet_ntoa" >&6; }
6154ac_res=$ac_cv_search_inet_ntoa
6155if test "$ac_res" != no; then :
6156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6157
7083c021 6158else
b6d0720c 6159 as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5
212380e3 6160fi
631ef239 6161
7083c021 6162fi
212380e3 6163
7083c021
AC
6164ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6165#include <sys/socket.h>
6166"
b6d0720c 6167if test "x$ac_cv_type_socklen_t" = xyes; then :
212380e3
AC
6168
6169else
6170
7083c021 6171$as_echo "#define socklen_t unsigned int" >>confdefs.h
212380e3 6172
7083c021 6173fi
212380e3
AC
6174
6175
7083c021
AC
6176# Check whether --enable-ipv6 was given.
6177if test "${enable_ipv6+set}" = set; then :
6178 enableval=$enable_ipv6; ipv6=$enableval
212380e3 6179else
7083c021
AC
6180 ipv6=no
6181fi
212380e3 6182
212380e3 6183
7083c021
AC
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6185$as_echo_n "checking for library containing crypt... " >&6; }
b6d0720c 6186if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
6187 $as_echo_n "(cached) " >&6
6188else
6189 ac_func_search_save_LIBS=$LIBS
6190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191/* end confdefs.h. */
212380e3 6192
631ef239
AC
6193/* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
212380e3
AC
6196#ifdef __cplusplus
6197extern "C"
212380e3 6198#endif
7083c021 6199char crypt ();
212380e3
AC
6200int
6201main ()
6202{
7083c021 6203return crypt ();
212380e3
AC
6204 ;
6205 return 0;
6206}
6207_ACEOF
7083c021
AC
6208for ac_lib in '' crypt descrypt; do
6209 if test -z "$ac_lib"; then
6210 ac_res="none required"
6211 else
6212 ac_res=-l$ac_lib
6213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6214 fi
6215 if ac_fn_c_try_link "$LINENO"; then :
6216 ac_cv_search_crypt=$ac_res
6217fi
6218rm -f core conftest.err conftest.$ac_objext \
6219 conftest$ac_exeext
b6d0720c 6220 if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
6221 break
6222fi
6223done
b6d0720c 6224if ${ac_cv_search_crypt+:} false; then :
7083c021 6225
212380e3 6226else
7083c021
AC
6227 ac_cv_search_crypt=no
6228fi
6229rm conftest.$ac_ext
6230LIBS=$ac_func_search_save_LIBS
6231fi
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6233$as_echo "$ac_cv_search_crypt" >&6; }
6234ac_res=$ac_cv_search_crypt
6235if test "$ac_res" != no; then :
6236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6237
212380e3 6238fi
631ef239 6239
7083c021
AC
6240
6241CRYPT_LIB=$ac_cv_search_crypt
6242
6243if test "$CRYPT_LIB" = "none required"; then
6244 unset CRYPT_LIB
6245elif test "$CRYPT_LIB" = no; then
6246 unset CRYPT_LIB
212380e3 6247fi
7083c021
AC
6248
6249
6250
6251if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6252 VICONF=viconf
6253 else
6254 VICONF=""
6255fi
6256
6257
6258
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6260$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
b6d0720c 6261if ${gcc_cv_header_string+:} false; then :
7083c021
AC
6262 $as_echo_n "(cached) " >&6
6263else
6264
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266/* end confdefs.h. */
6267#include <string.h>
6268 #include <strings.h>
212380e3 6269_ACEOF
7083c021
AC
6270if ac_fn_c_try_compile "$LINENO"; then :
6271 gcc_cv_header_string=yes
6272else
6273 gcc_cv_header_string=no
6274fi
6275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
6276
6277fi
7083c021
AC
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6279$as_echo "$gcc_cv_header_string" >&6; }
212380e3 6280
7083c021
AC
6281if test "$gcc_cv_header_string" = "yes"; then
6282
6283$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6284
6285fi
212380e3 6286
7083c021
AC
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6288$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 6289if ${ac_cv_c_bigendian+:} false; then :
7083c021
AC
6290 $as_echo_n "(cached) " >&6
6291else
6292 ac_cv_c_bigendian=unknown
6293 # See if we're dealing with a universal compiler.
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295/* end confdefs.h. */
6296#ifndef __APPLE_CC__
6297 not a universal capable compiler
6298 #endif
6299 typedef int dummy;
6300
6301_ACEOF
6302if ac_fn_c_try_compile "$LINENO"; then :
6303
6304 # Check for potential -arch flags. It is not universal unless
6305 # there are at least two -arch flags with different values.
6306 ac_arch=
6307 ac_prev=
6308 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6309 if test -n "$ac_prev"; then
6310 case $ac_word in
6311 i?86 | x86_64 | ppc | ppc64)
6312 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6313 ac_arch=$ac_word
6314 else
6315 ac_cv_c_bigendian=universal
6316 break
6317 fi
6318 ;;
6319 esac
6320 ac_prev=
6321 elif test "x$ac_word" = "x-arch"; then
6322 ac_prev=arch
6323 fi
6324 done
212380e3 6325fi
7083c021
AC
6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 if test $ac_cv_c_bigendian = unknown; then
6328 # See if sys/param.h defines the BYTE_ORDER macro.
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330/* end confdefs.h. */
6331#include <sys/types.h>
6332 #include <sys/param.h>
6333
6334int
6335main ()
6336{
6337#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6338 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6339 && LITTLE_ENDIAN)
6340 bogus endian macros
6341 #endif
6342
6343 ;
6344 return 0;
6345}
6346_ACEOF
6347if ac_fn_c_try_compile "$LINENO"; then :
6348 # It does; now see whether it defined to BIG_ENDIAN or not.
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h. */
6351#include <sys/types.h>
6352 #include <sys/param.h>
6353
6354int
6355main ()
6356{
6357#if BYTE_ORDER != BIG_ENDIAN
6358 not big endian
6359 #endif
212380e3 6360
7083c021
AC
6361 ;
6362 return 0;
6363}
6364_ACEOF
6365if ac_fn_c_try_compile "$LINENO"; then :
6366 ac_cv_c_bigendian=yes
212380e3 6367else
7083c021
AC
6368 ac_cv_c_bigendian=no
6369fi
6370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371fi
6372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373 fi
6374 if test $ac_cv_c_bigendian = unknown; then
6375 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377/* end confdefs.h. */
6378#include <limits.h>
6379
6380int
6381main ()
6382{
6383#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6384 bogus endian macros
6385 #endif
6386
6387 ;
6388 return 0;
6389}
212380e3 6390_ACEOF
7083c021
AC
6391if ac_fn_c_try_compile "$LINENO"; then :
6392 # It does; now see whether it defined to _BIG_ENDIAN or not.
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6394/* end confdefs.h. */
7083c021
AC
6395#include <limits.h>
6396
212380e3
AC
6397int
6398main ()
6399{
7083c021
AC
6400#ifndef _BIG_ENDIAN
6401 not big endian
6402 #endif
6403
212380e3
AC
6404 ;
6405 return 0;
6406}
6407_ACEOF
7083c021
AC
6408if ac_fn_c_try_compile "$LINENO"; then :
6409 ac_cv_c_bigendian=yes
212380e3 6410else
7083c021 6411 ac_cv_c_bigendian=no
212380e3 6412fi
631ef239 6413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6414fi
7083c021
AC
6415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 fi
6417 if test $ac_cv_c_bigendian = unknown; then
6418 # Compile a test program.
6419 if test "$cross_compiling" = yes; then :
6420 # Try to guess by grepping values from an object file.
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422/* end confdefs.h. */
6423short int ascii_mm[] =
6424 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6425 short int ascii_ii[] =
6426 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6427 int use_ascii (int i) {
6428 return ascii_mm[i] + ascii_ii[i];
6429 }
6430 short int ebcdic_ii[] =
6431 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6432 short int ebcdic_mm[] =
6433 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6434 int use_ebcdic (int i) {
6435 return ebcdic_mm[i] + ebcdic_ii[i];
6436 }
6437 extern int foo;
212380e3 6438
7083c021
AC
6439int
6440main ()
6441{
6442return use_ascii (foo) == use_ebcdic (foo);
6443 ;
6444 return 0;
6445}
212380e3 6446_ACEOF
7083c021
AC
6447if ac_fn_c_try_compile "$LINENO"; then :
6448 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6449 ac_cv_c_bigendian=yes
6450 fi
6451 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6452 if test "$ac_cv_c_bigendian" = unknown; then
6453 ac_cv_c_bigendian=no
6454 else
6455 # finding both strings is unlikely to happen, but who knows?
6456 ac_cv_c_bigendian=unknown
6457 fi
6458 fi
6459fi
6460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461else
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6463/* end confdefs.h. */
6464$ac_includes_default
6465int
6466main ()
6467{
7083c021
AC
6468
6469 /* Are we little or big endian? From Harbison&Steele. */
6470 union
6471 {
6472 long int l;
6473 char c[sizeof (long int)];
6474 } u;
6475 u.l = 1;
6476 return u.c[sizeof (long int) - 1] == 1;
6477
212380e3
AC
6478 ;
6479 return 0;
6480}
6481_ACEOF
7083c021
AC
6482if ac_fn_c_try_run "$LINENO"; then :
6483 ac_cv_c_bigendian=no
212380e3 6484else
7083c021 6485 ac_cv_c_bigendian=yes
212380e3 6486fi
7083c021
AC
6487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6488 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 6489fi
212380e3 6490
7083c021
AC
6491 fi
6492fi
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6494$as_echo "$ac_cv_c_bigendian" >&6; }
6495 case $ac_cv_c_bigendian in #(
6496 yes)
6497 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6498;; #(
6499 no)
6500 ;; #(
6501 universal)
212380e3 6502
7083c021 6503$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
212380e3 6504
7083c021
AC
6505 ;; #(
6506 *)
b6d0720c 6507 as_fn_error $? "unknown endianness
7083c021
AC
6508 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6509 esac
212380e3 6510
212380e3 6511
7083c021 6512ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
b6d0720c 6513if test "x$ac_cv_header_stdarg_h" = xyes; then :
212380e3 6514
7083c021 6515else
b6d0720c 6516 as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
7083c021 6517fi
212380e3
AC
6518
6519
212380e3
AC
6520
6521
7083c021 6522if test "$ac_cv_c_compiler_gnu" = yes; then
212380e3 6523
7083c021
AC
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6525$as_echo_n "checking for strlcpy... " >&6; }
6526save_CFLAGS=$CFLAGS
6527CFLAGS="$CFLAGS -Wimplicit -Werror"
212380e3 6528
7083c021 6529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6530/* end confdefs.h. */
7083c021
AC
6531#include <string.h>
6532 #include <stdlib.h>
212380e3
AC
6533int
6534main ()
6535{
7083c021
AC
6536char *a = malloc(6);
6537 strlcpy(a, "hello", 6);
6538
212380e3
AC
6539 ;
6540 return 0;
6541}
6542_ACEOF
7083c021
AC
6543if ac_fn_c_try_link "$LINENO"; then :
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6545$as_echo "yes" >&6; }
212380e3 6546
7083c021 6547$as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
631ef239 6548
212380e3 6549else
7083c021
AC
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551$as_echo "no" >&6; }
212380e3 6552
7083c021
AC
6553fi
6554rm -f core conftest.err conftest.$ac_objext \
6555 conftest$ac_exeext conftest.$ac_ext
6556
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6558$as_echo_n "checking for strlcat... " >&6; }
6559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6560/* end confdefs.h. */
7083c021
AC
6561#include <string.h>
6562 #include <stdlib.h>
212380e3
AC
6563int
6564main ()
6565{
7083c021
AC
6566char *a = malloc(6);
6567 a[0] = '\0';
6568 strlcat(a, "hello", 6);
6569
212380e3
AC
6570 ;
6571 return 0;
6572}
6573_ACEOF
7083c021
AC
6574if ac_fn_c_try_link "$LINENO"; then :
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6576$as_echo "yes" >&6; }
631ef239 6577
7083c021 6578$as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
212380e3 6579
7083c021
AC
6580else
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582$as_echo "no" >&6; }
212380e3 6583
7083c021
AC
6584fi
6585rm -f core conftest.err conftest.$ac_objext \
6586 conftest$ac_exeext conftest.$ac_ext
212380e3 6587
7083c021 6588CFLAGS=$save_CFLAGS
212380e3
AC
6589
6590else
6591
212380e3 6592
7083c021
AC
6593for ac_func in strlcat strlcpy
6594do :
6595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6596ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6597if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
6598 cat >>confdefs.h <<_ACEOF
6599#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
6600_ACEOF
6601
212380e3 6602fi
7083c021 6603done
212380e3
AC
6604
6605
6606fi
6607
7083c021 6608ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
b6d0720c 6609if test "x$ac_cv_type_u_int32_t" = xyes; then :
212380e3 6610
212380e3 6611else
212380e3 6612
7083c021 6613 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
b6d0720c 6614if test "x$ac_cv_type_uint32_t" = xyes; then :
212380e3 6615
631ef239 6616
7083c021 6617$as_echo "#define u_int32_t uint32_t" >>confdefs.h
212380e3 6618
212380e3 6619
7083c021 6620else
212380e3 6621
7083c021
AC
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6623$as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
212380e3 6624
7083c021 6625$as_echo "#define u_int32_t unsigned long int" >>confdefs.h
212380e3 6626
212380e3 6627
212380e3 6628fi
631ef239 6629
7083c021 6630
212380e3 6631fi
7083c021
AC
6632
6633
6634ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
b6d0720c 6635if test "x$ac_cv_type_u_int16_t" = xyes; then :
7083c021 6636
212380e3
AC
6637else
6638
7083c021 6639 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
b6d0720c 6640if test "x$ac_cv_type_uint16_t" = xyes; then :
212380e3 6641
7083c021
AC
6642
6643$as_echo "#define u_int16_t uint16_t" >>confdefs.h
212380e3
AC
6644
6645
212380e3 6646else
212380e3 6647
7083c021
AC
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6649$as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
631ef239 6650
7083c021 6651$as_echo "#define u_int16_t unsigned short int" >>confdefs.h
212380e3 6652
7083c021
AC
6653
6654fi
212380e3
AC
6655
6656
6657fi
6658
6659
7083c021
AC
6660ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6661#include <netinet/in.h>
6662"
b6d0720c 6663if test "x$ac_cv_type_in_port_t" = xyes; then :
212380e3 6664
7083c021 6665else
212380e3 6666
7083c021 6667$as_echo "#define in_port_t u_int16_t" >>confdefs.h
212380e3 6668
7083c021 6669fi
212380e3
AC
6670
6671
7083c021
AC
6672ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6673#include <sys/socket.h>
6674"
b6d0720c 6675if test "x$ac_cv_type_sa_family_t" = xyes; then :
212380e3 6676
212380e3 6677else
212380e3 6678
7083c021 6679$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
212380e3 6680
7083c021 6681fi
212380e3 6682
212380e3 6683
7083c021 6684ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
b6d0720c 6685if test "x$ac_cv_type_uintptr_t" = xyes; then :
212380e3 6686
7083c021
AC
6687cat >>confdefs.h <<_ACEOF
6688#define HAVE_UINTPTR_T 1
6689_ACEOF
212380e3 6690
631ef239 6691
212380e3 6692fi
7083c021
AC
6693
6694
6695for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
6696do :
6697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6698ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6699if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3 6700 cat >>confdefs.h <<_ACEOF
7083c021 6701#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
6702_ACEOF
6703
6704fi
6705done
6706
6707
6708# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6709# for constant arguments. Useless!
7083c021
AC
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6711$as_echo_n "checking for working alloca.h... " >&6; }
b6d0720c 6712if ${ac_cv_working_alloca_h+:} false; then :
7083c021 6713 $as_echo_n "(cached) " >&6
212380e3 6714else
7083c021 6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6716/* end confdefs.h. */
6717#include <alloca.h>
6718int
6719main ()
6720{
6721char *p = (char *) alloca (2 * sizeof (int));
631ef239 6722 if (p) return 0;
212380e3
AC
6723 ;
6724 return 0;
6725}
6726_ACEOF
7083c021 6727if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6728 ac_cv_working_alloca_h=yes
6729else
7083c021 6730 ac_cv_working_alloca_h=no
212380e3 6731fi
7083c021
AC
6732rm -f core conftest.err conftest.$ac_objext \
6733 conftest$ac_exeext conftest.$ac_ext
212380e3 6734fi
7083c021
AC
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6736$as_echo "$ac_cv_working_alloca_h" >&6; }
212380e3
AC
6737if test $ac_cv_working_alloca_h = yes; then
6738
7083c021 6739$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
212380e3
AC
6740
6741fi
6742
7083c021
AC
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6744$as_echo_n "checking for alloca... " >&6; }
b6d0720c 6745if ${ac_cv_func_alloca_works+:} false; then :
7083c021 6746 $as_echo_n "(cached) " >&6
212380e3 6747else
7083c021 6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6749/* end confdefs.h. */
6750#ifdef __GNUC__
6751# define alloca __builtin_alloca
6752#else
6753# ifdef _MSC_VER
6754# include <malloc.h>
6755# define alloca _alloca
6756# else
631ef239 6757# ifdef HAVE_ALLOCA_H
212380e3
AC
6758# include <alloca.h>
6759# else
6760# ifdef _AIX
6761 #pragma alloca
6762# else
6763# ifndef alloca /* predefined by HP cc +Olibcalls */
b6d0720c 6764void *alloca (size_t);
212380e3
AC
6765# endif
6766# endif
6767# endif
6768# endif
6769#endif
6770
6771int
6772main ()
6773{
6774char *p = (char *) alloca (1);
631ef239 6775 if (p) return 0;
212380e3
AC
6776 ;
6777 return 0;
6778}
6779_ACEOF
7083c021 6780if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6781 ac_cv_func_alloca_works=yes
6782else
7083c021 6783 ac_cv_func_alloca_works=no
212380e3 6784fi
7083c021
AC
6785rm -f core conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
212380e3 6787fi
7083c021
AC
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6789$as_echo "$ac_cv_func_alloca_works" >&6; }
212380e3
AC
6790
6791if test $ac_cv_func_alloca_works = yes; then
6792
7083c021 6793$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
212380e3
AC
6794
6795else
6796 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6797# that cause trouble. Some versions do not even contain alloca or
6798# contain a buggy version. If you still want to use their alloca,
6799# use ar to extract alloca.o from them instead of compiling alloca.c.
6800
631ef239 6801ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
212380e3 6802
7083c021 6803$as_echo "#define C_ALLOCA 1" >>confdefs.h
212380e3
AC
6804
6805
7083c021
AC
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6807$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
b6d0720c 6808if ${ac_cv_os_cray+:} false; then :
7083c021 6809 $as_echo_n "(cached) " >&6
212380e3 6810else
7083c021 6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6812/* end confdefs.h. */
631ef239 6813#if defined CRAY && ! defined CRAY2
212380e3
AC
6814webecray
6815#else
6816wenotbecray
6817#endif
6818
6819_ACEOF
6820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021 6821 $EGREP "webecray" >/dev/null 2>&1; then :
212380e3
AC
6822 ac_cv_os_cray=yes
6823else
6824 ac_cv_os_cray=no
6825fi
6826rm -f conftest*
6827
6828fi
7083c021
AC
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6830$as_echo "$ac_cv_os_cray" >&6; }
212380e3
AC
6831if test $ac_cv_os_cray = yes; then
6832 for ac_func in _getb67 GETB67 getb67; do
7083c021
AC
6833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6834ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6835if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3
AC
6836
6837cat >>confdefs.h <<_ACEOF
6838#define CRAY_STACKSEG_END $ac_func
6839_ACEOF
6840
6841 break
6842fi
6843
6844 done
6845fi
6846
7083c021
AC
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6848$as_echo_n "checking stack direction for C alloca... " >&6; }
b6d0720c 6849if ${ac_cv_c_stack_direction+:} false; then :
7083c021 6850 $as_echo_n "(cached) " >&6
212380e3 6851else
7083c021 6852 if test "$cross_compiling" = yes; then :
212380e3
AC
6853 ac_cv_c_stack_direction=0
6854else
7083c021 6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6856/* end confdefs.h. */
631ef239 6857$ac_includes_default
212380e3
AC
6858int
6859find_stack_direction ()
6860{
6861 static char *addr = 0;
6862 auto char dummy;
6863 if (addr == 0)
6864 {
6865 addr = &dummy;
6866 return find_stack_direction ();
6867 }
6868 else
6869 return (&dummy > addr) ? 1 : -1;
6870}
6871
6872int
6873main ()
6874{
631ef239 6875 return find_stack_direction () < 0;
212380e3
AC
6876}
6877_ACEOF
7083c021 6878if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
6879 ac_cv_c_stack_direction=1
6880else
7083c021 6881 ac_cv_c_stack_direction=-1
212380e3 6882fi
7083c021
AC
6883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6884 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 6885fi
631ef239 6886
212380e3 6887fi
7083c021
AC
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6889$as_echo "$ac_cv_c_stack_direction" >&6; }
212380e3
AC
6890cat >>confdefs.h <<_ACEOF
6891#define STACK_DIRECTION $ac_cv_c_stack_direction
6892_ACEOF
6893
6894
6895fi
6896
6897
6898
7083c021 6899ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
b6d0720c 6900if test "x$ac_cv_func_nanosleep" = xyes; then :
631ef239 6901
212380e3 6902else
7083c021
AC
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6904$as_echo_n "checking for nanosleep in -lrt... " >&6; }
b6d0720c 6905if ${ac_cv_lib_rt_nanosleep+:} false; then :
7083c021 6906 $as_echo_n "(cached) " >&6
212380e3
AC
6907else
6908 ac_check_lib_save_LIBS=$LIBS
6909LIBS="-lrt $LIBS"
7083c021 6910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6911/* end confdefs.h. */
6912
631ef239
AC
6913/* Override any GCC internal prototype to avoid an error.
6914 Use char because int might match the return type of a GCC
6915 builtin and then its argument prototype would still apply. */
212380e3
AC
6916#ifdef __cplusplus
6917extern "C"
6918#endif
212380e3
AC
6919char nanosleep ();
6920int
6921main ()
6922{
631ef239 6923return nanosleep ();
212380e3
AC
6924 ;
6925 return 0;
6926}
6927_ACEOF
7083c021 6928if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6929 ac_cv_lib_rt_nanosleep=yes
6930else
7083c021 6931 ac_cv_lib_rt_nanosleep=no
212380e3 6932fi
7083c021
AC
6933rm -f core conftest.err conftest.$ac_objext \
6934 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
6935LIBS=$ac_check_lib_save_LIBS
6936fi
7083c021
AC
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6938$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
b6d0720c 6939if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
212380e3
AC
6940 LIBS="${LIBS} -lrt"
6941else
7083c021
AC
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6943$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
b6d0720c 6944if ${ac_cv_lib_posix4_nanosleep+:} false; then :
7083c021 6945 $as_echo_n "(cached) " >&6
212380e3
AC
6946else
6947 ac_check_lib_save_LIBS=$LIBS
6948LIBS="-lposix4 $LIBS"
7083c021 6949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6950/* end confdefs.h. */
6951
631ef239
AC
6952/* Override any GCC internal prototype to avoid an error.
6953 Use char because int might match the return type of a GCC
6954 builtin and then its argument prototype would still apply. */
212380e3
AC
6955#ifdef __cplusplus
6956extern "C"
6957#endif
212380e3
AC
6958char nanosleep ();
6959int
6960main ()
6961{
631ef239 6962return nanosleep ();
212380e3
AC
6963 ;
6964 return 0;
6965}
6966_ACEOF
7083c021 6967if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6968 ac_cv_lib_posix4_nanosleep=yes
6969else
7083c021 6970 ac_cv_lib_posix4_nanosleep=no
212380e3 6971fi
7083c021
AC
6972rm -f core conftest.err conftest.$ac_objext \
6973 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
6974LIBS=$ac_check_lib_save_LIBS
6975fi
7083c021
AC
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
6977$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
b6d0720c 6978if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
212380e3
AC
6979 LIBS="${LIBS} -lposix4"
6980
6981fi
6982
6983fi
6984
6985fi
6986
6987if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
6988then
7083c021
AC
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
6990$as_echo "\"nanosleep not found..using select for delay\"" >&6; }
212380e3
AC
6991else
6992
7083c021 6993$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
212380e3
AC
6994
6995fi
6996
7083c021
AC
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
6998$as_echo_n "checking for OpenSSL... " >&6; }
631ef239 6999# Check whether --enable-openssl was given.
7083c021 7000if test "${enable_openssl+set}" = set; then :
631ef239 7001 enableval=$enable_openssl; cf_enable_openssl=$enableval
212380e3
AC
7002else
7003 cf_enable_openssl="auto"
631ef239
AC
7004fi
7005
212380e3
AC
7006
7007if test "$cf_enable_openssl" != "no" ; then
7008 cf_openssl_basedir=""
7009 if test "$cf_enable_openssl" != "auto" &&
7010 test "$cf_enable_openssl" != "yes" ; then
7011 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
7012 else
7013 for dirs in /usr/local/ssl /usr/pkg /usr/local \
7014 /usr/local/openssl ; do
7015 if test -f "${dirs}/include/openssl/opensslv.h" ; then
7016 cf_openssl_basedir="${dirs}"
7017 break
7018 fi
7019 done
7020 unset dirs
7021 fi
7022 if test ! -z "$cf_openssl_basedir"; then
7023 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7024 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
7025 SSL_LIBS="-L${cf_openssl_basedir}/lib"
7026 else
7027 cf_openssl_basedir=""
7028 fi
7029 else
7030 if test -f "/usr/include/openssl/opensslv.h" ; then
7031 cf_openssl_basedir="/usr"
7032 fi
7033 fi
7034
7035 if test ! -z "$cf_openssl_basedir"; then
7083c021
AC
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
7037$as_echo "$cf_openssl_basedir" >&6; }
212380e3
AC
7038 cf_enable_openssl="yes"
7039 else
7083c021
AC
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
7041$as_echo "not found. Specify a correct path?" >&6; }
212380e3
AC
7042 cf_enable_openssl="no"
7043 fi
7044 unset cf_openssl_basedir
7045else
7083c021
AC
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7047$as_echo "disabled" >&6; }
212380e3
AC
7048fi
7049
7050save_CPPFLAGS="$CPPFLAGS"
7051CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
7052save_LIBS="$LIBS"
7053LIBS="$LIBS $SSL_LIBS"
7054if test "$cf_enable_openssl" != no; then
7083c021
AC
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
7056$as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
7057 if test "$cross_compiling" = yes; then :
212380e3
AC
7058 cf_openssl_version_ok=no
7059else
7083c021 7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7061/* end confdefs.h. */
7062#include <openssl/opensslv.h>
7063 #include <stdlib.h>
7064int
7065main ()
7066{
7067if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
7068 exit(0); else exit(1);
7069 ;
7070 return 0;
7071}
7072_ACEOF
7083c021 7073if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
7074 cf_openssl_version_ok=yes
7075else
7083c021 7076 cf_openssl_version_ok=no
212380e3 7077fi
7083c021
AC
7078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7079 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3
AC
7080fi
7081
631ef239 7082
212380e3 7083 if test "$cf_openssl_version_ok" = yes; then
7083c021
AC
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7085$as_echo "found" >&6; }
212380e3
AC
7086
7087 ENCSPEED=encspeed
7088
7089
7090 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7083c021
AC
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
7092$as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
b6d0720c 7093if ${ac_cv_lib_crypto_RSA_free+:} false; then :
7083c021 7094 $as_echo_n "(cached) " >&6
212380e3
AC
7095else
7096 ac_check_lib_save_LIBS=$LIBS
7097LIBS="-lcrypto $LIBS"
7083c021 7098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7099/* end confdefs.h. */
7100
631ef239
AC
7101/* Override any GCC internal prototype to avoid an error.
7102 Use char because int might match the return type of a GCC
7103 builtin and then its argument prototype would still apply. */
212380e3
AC
7104#ifdef __cplusplus
7105extern "C"
7106#endif
212380e3
AC
7107char RSA_free ();
7108int
7109main ()
7110{
631ef239 7111return RSA_free ();
212380e3
AC
7112 ;
7113 return 0;
7114}
7115_ACEOF
7083c021 7116if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
7117 ac_cv_lib_crypto_RSA_free=yes
7118else
7083c021 7119 ac_cv_lib_crypto_RSA_free=no
212380e3 7120fi
7083c021
AC
7121rm -f core conftest.err conftest.$ac_objext \
7122 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
7123LIBS=$ac_check_lib_save_LIBS
7124fi
7083c021
AC
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
7126$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
b6d0720c 7127if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
212380e3
AC
7128 cat >>confdefs.h <<_ACEOF
7129#define HAVE_LIBCRYPTO 1
7130_ACEOF
7131
7132 LIBS="-lcrypto $LIBS"
7133
7134fi
7135
7136 SSL_LIBS="$SSL_LIBS -lcrypto"
7137 SSL_SRCS_ENABLE='$(SSL_SRCS)'
7138 else
7083c021
AC
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7140$as_echo "no - OpenSSL support disabled" >&6; }
212380e3
AC
7141 fi
7142fi
7143
7144CPPFLAGS="$save_CPPFLAGS"
7145LIBS="$save_LIBS"
7146
7147
7148
7149
7150
631ef239 7151# Check whether --with-zlib-path was given.
7083c021 7152if test "${with_zlib_path+set}" = set; then :
631ef239
AC
7153 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
7154fi
212380e3 7155
7083c021
AC
7156
7157# Check whether --enable-zlib was given.
7158if test "${enable_zlib+set}" = set; then :
7159 enableval=$enable_zlib; zlib=$enableval
212380e3 7160else
7083c021 7161 zlib=yes
212380e3 7162fi
212380e3 7163
212380e3 7164
7083c021
AC
7165if test "$zlib" = yes; then
7166
7167ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
b6d0720c 7168if test "x$ac_cv_header_zlib_h" = xyes; then :
7083c021
AC
7169
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7171$as_echo_n "checking for zlibVersion in -lz... " >&6; }
b6d0720c 7172if ${ac_cv_lib_z_zlibVersion+:} false; then :
7083c021 7173 $as_echo_n "(cached) " >&6
212380e3
AC
7174else
7175 ac_check_lib_save_LIBS=$LIBS
7176LIBS="-lz $LIBS"
7083c021 7177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7178/* end confdefs.h. */
7179
631ef239
AC
7180/* Override any GCC internal prototype to avoid an error.
7181 Use char because int might match the return type of a GCC
7182 builtin and then its argument prototype would still apply. */
212380e3
AC
7183#ifdef __cplusplus
7184extern "C"
7185#endif
212380e3
AC
7186char zlibVersion ();
7187int
7188main ()
7189{
631ef239 7190return zlibVersion ();
212380e3
AC
7191 ;
7192 return 0;
7193}
7194_ACEOF
7083c021 7195if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
7196 ac_cv_lib_z_zlibVersion=yes
7197else
7083c021 7198 ac_cv_lib_z_zlibVersion=no
212380e3 7199fi
7083c021
AC
7200rm -f core conftest.err conftest.$ac_objext \
7201 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
7202LIBS=$ac_check_lib_save_LIBS
7203fi
7083c021
AC
7204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7205$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
b6d0720c 7206if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
212380e3
AC
7207
7208 ZLIB_LD=-lz
7209
7210
7083c021 7211$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
212380e3
AC
7212
7213
7214else
7215 zlib=no
7216fi
7217
7218
7219else
7220 zlib=no
7221fi
7222
7223
7224
7225fi
7226
7227
c1c5fdc4 7228# Check whether --enable-ports was given.
7083c021 7229if test "${enable_ports+set}" = set; then :
c1c5fdc4
AC
7230 enableval=$enable_ports; if test $enableval = yes; then
7231 SELECT_TYPE_EXPLICIT="ports"
7232 else
7233 use_ports=no
7234 fi
7235
7236fi
7237
7238
631ef239 7239# Check whether --enable-poll was given.
7083c021 7240if test "${enable_poll+set}" = set; then :
631ef239 7241 enableval=$enable_poll; if test $enableval = yes; then
212380e3
AC
7242 SELECT_TYPE_EXPLICIT="poll"
7243 else
7244 use_poll=no
7245 fi
7246
631ef239
AC
7247fi
7248
212380e3 7249
631ef239 7250# Check whether --enable-select was given.
7083c021 7251if test "${enable_select+set}" = set; then :
631ef239 7252 enableval=$enable_select; if test $enableval = yes; then
212380e3
AC
7253 SELECT_TYPE_EXPLICIT="select"
7254 else
7255 use_select=no
7256 fi
7257
631ef239
AC
7258fi
7259
212380e3 7260
631ef239 7261# Check whether --enable-kqueue was given.
7083c021 7262if test "${enable_kqueue+set}" = set; then :
631ef239 7263 enableval=$enable_kqueue; if test $enableval = yes; then
212380e3
AC
7264 SELECT_TYPE_EXPLICIT="kqueue"
7265 else
7266 use_kqueue=no
7267 fi
7268
631ef239
AC
7269fi
7270
212380e3 7271
631ef239 7272# Check whether --enable-epoll was given.
7083c021 7273if test "${enable_epoll+set}" = set; then :
631ef239 7274 enableval=$enable_epoll; if test $enableval = yes; then
212380e3 7275 SELECT_TYPE_EXPLICIT="epoll"
7083c021
AC
7276 for ac_func in epoll_ctl
7277do :
7278 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b6d0720c 7279if test "x$ac_cv_func_epoll_ctl" = xyes; then :
3ad1a781 7280 cat >>confdefs.h <<_ACEOF
7083c021 7281#define HAVE_EPOLL_CTL 1
3ad1a781
JT
7282_ACEOF
7283 haveepoll=yes
7284else
7285 haveepoll=no
7286fi
7287done
7288
212380e3
AC
7289 else
7290 use_epoll=no
7291 fi
7292
631ef239
AC
7293fi
7294
212380e3
AC
7295
7296
212380e3 7297
631ef239 7298# Check whether --with-confdir was given.
7083c021 7299if test "${with_confdir+set}" = set; then :
634d4aad 7300 withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'`
212380e3 7301else
9f9b7042 7302 confdir='${sysconfdir}'
634d4aad
NPB
7303fi
7304
212380e3
AC
7305
7306 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7307 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
634d4aad 7308 last_ac_define_dir=`eval echo $sysconfdir`
9f9b7042 7309 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7310 ac_define_dir_counter=0
9f9b7042
NPB
7311 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7312 last_ac_define_dir="$ac_define_dir"
7313 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7314 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7315 if test "x$ac_define_dir_counter" = x128; then :
7316 as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5
7317 break
7318fi
9f9b7042 7319 done
212380e3
AC
7320 ETC_DIR="$ac_define_dir"
7321
7322
7323cat >>confdefs.h <<_ACEOF
7324#define ETC_DIR "$ac_define_dir"
7325_ACEOF
7326
7327
7328
7329
7083c021
AC
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7331$as_echo_n "checking whether to modify logdir... " >&6; }
212380e3 7332
631ef239 7333# Check whether --with-logdir was given.
7083c021 7334if test "${with_logdir+set}" = set; then :
631ef239 7335 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7337$as_echo "yes" >&6; }
212380e3 7338else
9f9b7042
NPB
7339 if test "x$enable_fhs_paths" = "xyes"; then :
7340 logdir='${localstatedir}/log/${PACKAGE_TARNAME}'
7341else
7342 logdir='${prefix}/logs'
7343fi
7083c021
AC
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345$as_echo "no" >&6; }
9f9b7042
NPB
7346fi
7347
212380e3
AC
7348
7349 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7350 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7351 last_ac_define_dir=`eval echo $logdir`
7352 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7353 ac_define_dir_counter=0
9f9b7042
NPB
7354 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7355 last_ac_define_dir="$ac_define_dir"
7356 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7357 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7358 if test "x$ac_define_dir_counter" = x128; then :
7359 as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5
7360 break
7361fi
9f9b7042 7362 done
212380e3
AC
7363 LOG_DIR="$ac_define_dir"
7364
7365
7366cat >>confdefs.h <<_ACEOF
7367#define LOG_DIR "$ac_define_dir"
7368_ACEOF
7369
7370
7371
7372
7373 logdir=`(
7374 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7375 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7376 eval echo \""$logdir"\"
7377 )`
7378
7379
7380
212380e3 7381
7083c021
AC
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7383$as_echo_n "checking whether to modify helpdir... " >&6; }
212380e3 7384
631ef239 7385# Check whether --with-helpdir was given.
7083c021 7386if test "${with_helpdir+set}" = set; then :
631ef239 7387 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7389$as_echo "yes" >&6; }
212380e3 7390else
9f9b7042
NPB
7391 if test "x$enable_fhs_paths" = "xyes"; then :
7392 helpdir='${datadir}/${PACKAGE_TARNAME}/help'
7393else
7394 helpdir='${prefix}/help'
7395fi
7083c021
AC
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397$as_echo "no" >&6; }
9f9b7042
NPB
7398fi
7399
212380e3
AC
7400
7401 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7403 last_ac_define_dir=`eval echo $helpdir`
7404 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7405 ac_define_dir_counter=0
9f9b7042
NPB
7406 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7407 last_ac_define_dir="$ac_define_dir"
7408 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7409 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7410 if test "x$ac_define_dir_counter" = x128; then :
7411 as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5
7412 break
7413fi
9f9b7042 7414 done
212380e3
AC
7415 HELP_DIR="$ac_define_dir"
7416
7417
7418cat >>confdefs.h <<_ACEOF
7419#define HELP_DIR "$ac_define_dir"
7420_ACEOF
7421
7422
7423
7424
7425 helpdir=`(
7426 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7427 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7428 eval echo \""$helpdir"\"
7429 )`
7430
7431
7432
212380e3 7433
7083c021
AC
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7435$as_echo_n "checking whether to modify moduledir... " >&6; }
212380e3 7436
631ef239 7437# Check whether --with-moduledir was given.
7083c021 7438if test "${with_moduledir+set}" = set; then :
631ef239 7439 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7441$as_echo "yes" >&6; }
9f9b7042
NPB
7442else
7443 if test "x$enable_fhs_paths" = "xyes"; then :
7444 moduledir='${pkglibdir}/modules'
7445else
7446 moduledir='${prefix}/modules'
7447fi
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449$as_echo "no" >&6; }
7450
7451fi
7452
212380e3
AC
7453
7454 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7455 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7456 last_ac_define_dir=`eval echo $moduledir`
7457 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7458 ac_define_dir_counter=0
9f9b7042
NPB
7459 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7460 last_ac_define_dir="$ac_define_dir"
7461 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7462 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7463 if test "x$ac_define_dir_counter" = x128; then :
7464 as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5
7465 break
7466fi
9f9b7042 7467 done
212380e3
AC
7468 MODULE_DIR="$ac_define_dir"
7469
7470
7471cat >>confdefs.h <<_ACEOF
7472#define MODULE_DIR "$ac_define_dir"
7473_ACEOF
7474
7475
7476
7477
7478 moduledir=`(
7479 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7480 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7481 eval echo \""$moduledir"\"
7482 )`
7483
7484
9f9b7042
NPB
7485
7486
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5
7488$as_echo_n "checking whether or modify rundir... " >&6; }
7489
7490# Check whether --with-rundir was given.
7491if test "${with_rundir+set}" = set; then :
7492 withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7493$as_echo "yes" >&6; }
7494 rundir=`echo $withval | sed 's/\/$//'`
212380e3 7495else
9f9b7042 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083c021 7497$as_echo "no" >&6; }
9f9b7042
NPB
7498 if test "x$enable_fhs_paths" = "xyes"; then :
7499 rundir='${prefix}/run'
7500else
7501 rundir='${sysconfdir}'
7502fi
7503fi
7504
7505
212380e3
AC
7506
7507 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7509 last_ac_define_dir=`eval echo $pkgrundir`
7510 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7511 ac_define_dir_counter=0
9f9b7042
NPB
7512 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7513 last_ac_define_dir="$ac_define_dir"
7514 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7515 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7516 if test "x$ac_define_dir_counter" = x128; then :
7517 as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5
7518 break
7519fi
9f9b7042
NPB
7520 done
7521 PKGRUNDIR="$ac_define_dir"
212380e3
AC
7522
7523
7524cat >>confdefs.h <<_ACEOF
9f9b7042 7525#define PKGRUNDIR "$ac_define_dir"
212380e3
AC
7526_ACEOF
7527
7528
7529
9f9b7042
NPB
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5
7531$as_echo_n "checking for program prefix... " >&6; }
212380e3 7532
9f9b7042
NPB
7533# Check whether --with-program-prefix was given.
7534if test "${with_program_prefix+set}" = set; then :
7535 withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix=
7536else
7537 with_program_prefix=
7538fi
212380e3 7539
9f9b7042
NPB
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5
7541$as_echo "\"$with_program_prefix\"" >&6; }
7542PROGRAM_PREFIX="$with_program_prefix"
212380e3
AC
7543
7544
9f9b7042
NPB
7545cat >>confdefs.h <<_ACEOF
7546#define PROGRAM_PREFIX "$with_program_prefix"
7547_ACEOF
631ef239 7548
7083c021 7549
b6d0720c
AC
7550
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5
7552$as_echo_n "checking whether custom branding is requested... " >&6; }
7553
7554# Check whether --with-custom-branding was given.
7555if test "${with_custom_branding+set}" = set; then :
7556 withval=$with_custom_branding; BRANDING_NAME=$withval
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7558$as_echo "yes" >&6; }
7559else
7560 BRANDING_NAME=$PACKAGE_NAME
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562$as_echo "no" >&6; }
7563
7564fi
7565
7566
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5
7568$as_echo_n "checking whether a custom version is requested... " >&6; }
7569
7570# Check whether --with-custom-version was given.
7571if test "${with_custom_version+set}" = set; then :
7572 withval=$with_custom_version; BRANDING_VERSION=$withval
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7574$as_echo "yes" >&6; }
7575else
7576 BRANDING_VERSION=$PACKAGE_VERSION
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578$as_echo "no" >&6; }
7579
7580fi
7581
7582
7583
7584cat >>confdefs.h <<_ACEOF
7585#define BRANDING_NAME "$BRANDING_NAME"
7586_ACEOF
7587
7588
7589cat >>confdefs.h <<_ACEOF
7590#define BRANDING_VERSION "$BRANDING_VERSION"
7591_ACEOF
7592
7593
f5493691
AC
7594if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
7595
7596$as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h
7597
7598fi
7599
7083c021
AC
7600if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7601 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
7602 echo "Forcing $SELECT_TYPE to be enabled"
7603else
7604
7605if test ! "x$use_ports" = "xno"; then
7606 for ac_func in port_getn
7607do :
7608 ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn"
b6d0720c 7609if test "x$ac_cv_func_port_getn" = xyes; then :
212380e3 7610 cat >>confdefs.h <<_ACEOF
7083c021 7611#define HAVE_PORT_GETN 1
212380e3 7612_ACEOF
7083c021 7613 haveports=yes
212380e3 7614else
7083c021 7615 haveports=no
212380e3
AC
7616fi
7617done
7618
7083c021
AC
7619 if test "x$haveports" = "xyes" ; then
7620 SELECT_TYPE="ports"
212380e3
AC
7621 fi
7622fi
7623
7083c021
AC
7624if test ! "x$use_select" = "xno"; then
7625 for ac_func in select
7626do :
7627 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
b6d0720c 7628if test "x$ac_cv_func_select" = xyes; then :
7083c021
AC
7629 cat >>confdefs.h <<_ACEOF
7630#define HAVE_SELECT 1
212380e3 7631_ACEOF
7083c021
AC
7632 haveselect=yes
7633else
7634 haveselect=no
7635fi
7636done
212380e3 7637
7083c021
AC
7638 if test "x$haveselect" = "xyes" ; then
7639 SELECT_TYPE="select"
7640 fi
7641fi
212380e3 7642
7083c021
AC
7643if test ! "x$use_poll" = "xno"; then
7644 for ac_func in poll
7645do :
7646 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
b6d0720c 7647if test "x$ac_cv_func_poll" = xyes; then :
7083c021
AC
7648 cat >>confdefs.h <<_ACEOF
7649#define HAVE_POLL 1
212380e3 7650_ACEOF
7083c021 7651 havepoll=yes
212380e3 7652else
7083c021 7653 havepoll=no
212380e3 7654fi
7083c021 7655done
631ef239 7656
7083c021
AC
7657 if test "x$havepoll" = "xyes" ; then
7658 SELECT_TYPE="poll"
7659 fi
212380e3 7660fi
7083c021
AC
7661
7662if test ! "x$use_kqueue" = "xno"; then
7663 for ac_func in kevent
7664do :
7665 ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent"
b6d0720c 7666if test "x$ac_cv_func_kevent" = xyes; then :
212380e3 7667 cat >>confdefs.h <<_ACEOF
7083c021 7668#define HAVE_KEVENT 1
212380e3
AC
7669_ACEOF
7670 havekqueue=yes
7671else
7672 havekqueue=no
7673fi
7674done
7675
7676 if test "x$havekqueue" = "xyes" ; then
7677 SELECT_TYPE="kqueue"
7678 fi
7679fi
7680
7681if test ! "x$use_epoll" = "xno"; then
7083c021
AC
7682 for ac_func in epoll_ctl
7683do :
7684 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b6d0720c 7685if test "x$ac_cv_func_epoll_ctl" = xyes; then :
212380e3 7686 cat >>confdefs.h <<_ACEOF
7083c021 7687#define HAVE_EPOLL_CTL 1
212380e3
AC
7688_ACEOF
7689 haveepoll=yes
7690else
7691 haveepoll=no
7692fi
7693done
7694
7695 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7696 if test "x$haveepoll" = "xyes" ; then
7083c021
AC
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7698$as_echo_n "checking for epoll support in kernel... " >&6; }
7699 if test "$cross_compiling" = yes; then :
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701$as_echo "no" >&6; }
212380e3 7702else
7083c021 7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7704/* end confdefs.h. */
7705#include <stdint.h>
7706#include <sys/param.h>
7707#include <sys/types.h>
7708#include <sys/epoll.h>
7709#include <sys/syscall.h>
7710#include <unistd.h>
7711
7712int
7713main(int argc, char **argv)
7714{
7715 int epfd;
7716
7717 epfd = epoll_create(256);
b676ea3b 7718 return (epfd == -1 ? 1 : 0);
212380e3
AC
7719}
7720_ACEOF
7083c021
AC
7721if ac_fn_c_try_run "$LINENO"; then :
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7723$as_echo "yes" >&6; }
212380e3 7724
7083c021 7725$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
7726
7727 SELECT_TYPE="epoll"
7728else
7083c021
AC
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
212380e3 7731fi
7083c021
AC
7732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7733 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 7734fi
631ef239 7735
212380e3
AC
7736 fi
7737 fi
7738
7739haveepollsyscall=no
7740
7741if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7742 if test "x$haveepoll" = "xno" ; then
7083c021
AC
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7744$as_echo_n "checking for epoll system call... " >&6; }
7745 if test "$cross_compiling" = yes; then :
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747$as_echo "no" >&6; }
212380e3 7748else
7083c021 7749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7750/* end confdefs.h. */
7751#include <stdint.h>
7752#include <sys/param.h>
7753#include <sys/types.h>
7754#include <sys/epoll.h>
7755#include <sys/syscall.h>
7756#include <unistd.h>
7757
7758int
7759epoll_create(int size)
7760{
7761 return (syscall(__NR_epoll_create, size));
7762}
7763
7764int
7765main(int argc, char **argv)
7766{
7767 int epfd;
7768
7769 epfd = epoll_create(256);
7770 exit (epfd == -1 ? 1 : 0);
7771}
7772_ACEOF
7083c021
AC
7773if ac_fn_c_try_run "$LINENO"; then :
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7775$as_echo "yes" >&6; }
212380e3 7776
7083c021 7777$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
7778
7779 SELECT_TYPE="epoll"
7780else
7083c021
AC
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782$as_echo "no" >&6; }
212380e3 7783fi
7083c021
AC
7784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7785 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 7786fi
631ef239 7787
212380e3
AC
7788 fi
7789fi
7790
7791fi
7792
7793fi
7794
7795if test -z "$SELECT_TYPE"; then
b6d0720c 7796 as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5
212380e3
AC
7797fi
7798
7799echo "Using $SELECT_TYPE for select loop."
7800
7801
7802cat >>confdefs.h <<_ACEOF
7803#define SELECT_TYPE "$SELECT_TYPE"
7804_ACEOF
7805
7806
7807
7808
7809
631ef239 7810# Check whether --enable-assert was given.
7083c021 7811if test "${enable_assert+set}" = set; then :
631ef239 7812 enableval=$enable_assert; assert=$enableval
212380e3
AC
7813else
7814 assert=no
631ef239
AC
7815fi
7816
212380e3
AC
7817
7818if test "$assert" = no; then
7819
7083c021 7820$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
7821
7822elif test "$assert" = soft; then
7823
7083c021 7824$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
212380e3
AC
7825
7826
7083c021 7827$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
7828
7829elif test "$assert" = yes; then
7830 assert = "hard";
7831fi
7832
7083c021
AC
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
7834$as_echo_n "checking if you want IO Debugging hooks... " >&6; }
631ef239 7835# Check whether --enable-iodebug was given.
7083c021 7836if test "${enable_iodebug+set}" = set; then :
631ef239 7837 enableval=$enable_iodebug; iodebug=$enableval
212380e3
AC
7838else
7839 iodebug=no
631ef239
AC
7840fi
7841
212380e3
AC
7842
7843if test "$iodebug" = yes; then
7844
7083c021 7845$as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
212380e3 7846
7083c021
AC
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7848$as_echo "yes" >&6; }
212380e3 7849else
7083c021
AC
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851$as_echo "no" >&6; }
212380e3
AC
7852fi
7853
7854
7083c021
AC
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
7856$as_echo_n "checking if you want to do a profile build... " >&6; }
631ef239 7857# Check whether --enable-profile was given.
7083c021 7858if test "${enable_profile+set}" = set; then :
631ef239 7859 enableval=$enable_profile; profile=$enableval
212380e3
AC
7860else
7861 profile=no
631ef239
AC
7862fi
7863
212380e3
AC
7864
7865if test "$profile" = yes; then
7866 if test "$ac_cv_c_compiler_gnu" = yes; then
7867 IRC_CFLAGS="$IRC_CFLAGS -pg"
7083c021
AC
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
7869$as_echo "yes, adding -pg" >&6; }
212380e3 7870
7083c021 7871$as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
212380e3
AC
7872
7873 else
7083c021
AC
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
7875$as_echo "no, profile builds only work with gcc" >&6; }
212380e3
AC
7876 fi
7877else
7083c021
AC
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879$as_echo "no" >&6; }
212380e3
AC
7880fi
7881
631ef239 7882# Check whether --enable-balloc was given.
7083c021 7883if test "${enable_balloc+set}" = set; then :
631ef239 7884 enableval=$enable_balloc; balloc=$enableval
212380e3
AC
7885else
7886 balloc=yes
631ef239
AC
7887fi
7888
212380e3
AC
7889
7890if test "$balloc" = no; then
7891
7083c021 7892$as_echo "#define NOBALLOC 1" >>confdefs.h
212380e3
AC
7893
7894fi
7895
631ef239 7896# Check whether --enable-small-net was given.
7083c021 7897if test "${enable_small_net+set}" = set; then :
631ef239 7898 enableval=$enable_small_net; small_net=$enableval
212380e3
AC
7899else
7900 small_net=no
631ef239
AC
7901fi
7902
212380e3
AC
7903
7904if test "$small_net" = yes; then
7905
7083c021 7906$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
212380e3
AC
7907
7908
7083c021 7909$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7910
7911
7083c021 7912$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7913
7914
7083c021 7915$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7916
7917
7083c021 7918$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7919
7920
7083c021 7921$as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
212380e3
AC
7922
7923
7083c021 7924$as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7925
7926
7083c021 7927$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7928
7929
7083c021 7930$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7931
7932
7083c021 7933$as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7934
7935
7083c021 7936$as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7937
7938
7083c021 7939$as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7940
7941
7083c021 7942$as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7943
7944
7083c021 7945$as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
212380e3 7946
f589ec6f 7947
7083c021 7948$as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
2b428185
AC
7949
7950
7083c021 7951$as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
f589ec6f 7952
212380e3
AC
7953else
7954
7083c021 7955$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
212380e3
AC
7956
7957
7083c021 7958$as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
7959
7960
7083c021 7961$as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
7962
7963
7083c021 7964$as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
7965
7966
7083c021 7967$as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
212380e3
AC
7968
7969
7083c021 7970$as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7971
7972
7083c021 7973$as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
7974
7975
7083c021 7976$as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
7977
7978
7083c021 7979$as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
7980
7981
7083c021 7982$as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
212380e3
AC
7983
7984
7083c021 7985$as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
212380e3
AC
7986
7987
7083c021 7988$as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
212380e3
AC
7989
7990
7083c021 7991$as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7992
7993
7083c021 7994$as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
212380e3 7995
f589ec6f 7996
7083c021 7997$as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
2b428185
AC
7998
7999
7083c021 8000$as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
f589ec6f 8001
212380e3
AC
8002fi
8003
8004
631ef239 8005# Check whether --with-nicklen was given.
7083c021 8006if test "${with_nicklen+set}" = set; then :
631ef239 8007 withval=$with_nicklen;
aa769893 8008 if ! expr "$withval" + 0 >/dev/null 2>&1; then
b6d0720c 8009 as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5
aa769893 8010 fi
cf533739 8011 if test $withval -gt 50; then
212380e3 8012 NICKLEN=50
7083c021
AC
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
8014$as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
cf533739
JT
8015 elif test $withval -lt 9; then
8016 NICKLEN=9
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5
8018$as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;}
212380e3
AC
8019 else
8020 NICKLEN="$withval"
8021 fi
8022
8023else
cf533739 8024 NICKLEN=31
631ef239 8025fi
212380e3
AC
8026
8027
212380e3 8028
631ef239 8029# Check whether --with-topiclen was given.
7083c021 8030if test "${with_topiclen+set}" = set; then :
631ef239 8031 withval=$with_topiclen;
212380e3
AC
8032 if test $withval -ge 390; then
8033 TOPICLEN=390
7083c021
AC
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
8035$as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
212380e3
AC
8036 else
8037 TOPICLEN=$withval
8038 fi
8039
8040else
8041 TOPICLEN=390
212380e3
AC
8042fi
8043
212380e3
AC
8044
8045
8046cat >>confdefs.h <<_ACEOF
8047#define TOPICLEN ${TOPICLEN}
8048_ACEOF
8049
8050
8051cat >>confdefs.h <<_ACEOF
8052#define NICKLEN (${NICKLEN}+1)
8053_ACEOF
8054
8055
b676ea3b 8056shared_modules="yes"
212380e3 8057if test "$shared_modules" = yes; then
212380e3 8058 if test "$CC" = tcc -a "$TenDRA" = "no"; then
7083c021
AC
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
8060$as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
212380e3
AC
8061 shared_modules="no"
8062 fi
8063fi
8064
8065if test "$shared_modules" = yes; then
7083c021
AC
8066 DYNLINK_C=dynlink.c
8067 for ac_header in dlfcn.h
8068do :
8069 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
b6d0720c 8070if test "x$ac_cv_header_dlfcn_h" = xyes; then :
212380e3 8071 cat >>confdefs.h <<_ACEOF
7083c021 8072#define HAVE_DLFCN_H 1
212380e3
AC
8073_ACEOF
8074
8075fi
8076
8077done
8078
7083c021
AC
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
8080$as_echo_n "checking for library containing shl_load... " >&6; }
b6d0720c 8081if ${ac_cv_search_shl_load+:} false; then :
7083c021 8082 $as_echo_n "(cached) " >&6
212380e3
AC
8083else
8084 ac_func_search_save_LIBS=$LIBS
7083c021 8085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8086/* end confdefs.h. */
8087
631ef239
AC
8088/* Override any GCC internal prototype to avoid an error.
8089 Use char because int might match the return type of a GCC
8090 builtin and then its argument prototype would still apply. */
212380e3
AC
8091#ifdef __cplusplus
8092extern "C"
8093#endif
212380e3
AC
8094char shl_load ();
8095int
8096main ()
8097{
631ef239 8098return shl_load ();
212380e3
AC
8099 ;
8100 return 0;
8101}
8102_ACEOF
631ef239
AC
8103for ac_lib in '' dld; do
8104 if test -z "$ac_lib"; then
8105 ac_res="none required"
8106 else
8107 ac_res=-l$ac_lib
8108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8109 fi
7083c021 8110 if ac_fn_c_try_link "$LINENO"; then :
631ef239 8111 ac_cv_search_shl_load=$ac_res
631ef239 8112fi
7083c021
AC
8113rm -f core conftest.err conftest.$ac_objext \
8114 conftest$ac_exeext
b6d0720c 8115 if ${ac_cv_search_shl_load+:} false; then :
631ef239 8116 break
212380e3 8117fi
631ef239 8118done
b6d0720c 8119if ${ac_cv_search_shl_load+:} false; then :
7083c021 8120
631ef239
AC
8121else
8122 ac_cv_search_shl_load=no
212380e3 8123fi
631ef239 8124rm conftest.$ac_ext
212380e3
AC
8125LIBS=$ac_func_search_save_LIBS
8126fi
7083c021
AC
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8128$as_echo "$ac_cv_search_shl_load" >&6; }
631ef239 8129ac_res=$ac_cv_search_shl_load
7083c021 8130if test "$ac_res" != no; then :
631ef239 8131 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
8132
8133
7083c021 8134$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
212380e3
AC
8135
8136 SUFFIX=".sl"
8137 MOD_TARGET=hpux_shared
8138 SEDOBJ="s/\.o/.sl/g"
8139
8140else
8141
7083c021
AC
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8143$as_echo_n "checking for library containing dlopen... " >&6; }
b6d0720c 8144if ${ac_cv_search_dlopen+:} false; then :
7083c021 8145 $as_echo_n "(cached) " >&6
212380e3
AC
8146else
8147 ac_func_search_save_LIBS=$LIBS
7083c021 8148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8149/* end confdefs.h. */
8150
631ef239
AC
8151/* Override any GCC internal prototype to avoid an error.
8152 Use char because int might match the return type of a GCC
8153 builtin and then its argument prototype would still apply. */
212380e3
AC
8154#ifdef __cplusplus
8155extern "C"
8156#endif
212380e3
AC
8157char dlopen ();
8158int
8159main ()
8160{
631ef239 8161return dlopen ();
212380e3
AC
8162 ;
8163 return 0;
8164}
8165_ACEOF
631ef239
AC
8166for ac_lib in '' dl c_r; do
8167 if test -z "$ac_lib"; then
8168 ac_res="none required"
8169 else
8170 ac_res=-l$ac_lib
8171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8172 fi
7083c021 8173 if ac_fn_c_try_link "$LINENO"; then :
631ef239 8174 ac_cv_search_dlopen=$ac_res
631ef239 8175fi
7083c021
AC
8176rm -f core conftest.err conftest.$ac_objext \
8177 conftest$ac_exeext
b6d0720c 8178 if ${ac_cv_search_dlopen+:} false; then :
631ef239 8179 break
212380e3 8180fi
631ef239 8181done
b6d0720c 8182if ${ac_cv_search_dlopen+:} false; then :
7083c021 8183
631ef239
AC
8184else
8185 ac_cv_search_dlopen=no
212380e3 8186fi
631ef239 8187rm conftest.$ac_ext
212380e3
AC
8188LIBS=$ac_func_search_save_LIBS
8189fi
7083c021
AC
8190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8191$as_echo "$ac_cv_search_dlopen" >&6; }
631ef239 8192ac_res=$ac_cv_search_dlopen
7083c021 8193if test "$ac_res" != no; then :
631ef239 8194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
8195
8196
7083c021 8197$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
212380e3
AC
8198
8199 SUFFIX=".so"
8200 MOD_TARGET=shared_modules
8201 SEDOBJ="s/\.o/.so/g"
8202 if test "$AppleGCC" = yes; then
7083c021
AC
8203 for ac_header in mach-o/dyld.h
8204do :
8205 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
b6d0720c 8206if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
212380e3 8207 cat >>confdefs.h <<_ACEOF
7083c021 8208#define HAVE_MACH_O_DYLD_H 1
212380e3
AC
8209_ACEOF
8210
8211fi
8212
8213done
8214
8215 fi
7083c021 8216 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
b6d0720c 8217if test "x$ac_cv_func_dlsym" = xyes; then :
631ef239 8218
212380e3
AC
8219else
8220
7083c021
AC
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8222$as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
212380e3
AC
8223 shared_modules=no
8224
8225fi
8226
7083c021
AC
8227 for ac_func in dlfunc
8228do :
8229 ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc"
b6d0720c 8230if test "x$ac_cv_func_dlfunc" = xyes; then :
212380e3 8231 cat >>confdefs.h <<_ACEOF
7083c021 8232#define HAVE_DLFUNC 1
212380e3
AC
8233_ACEOF
8234
8235fi
8236done
8237
8238
8239else
8240
8241 shared_modules=no
8242
8243fi
8244
8245
8246fi
8247
8248fi
8249
8250
8251cat >>confdefs.h <<_ACEOF
8252#define SHARED_SUFFIX "$SUFFIX"
8253_ACEOF
8254
8255
8256if test "$shared_modules" = yes; then
8257 # The GNU linker requires the -export-dynamic option to make
8258 # all symbols visible in the dynamic symbol table.
8259 hold_ldflags=$LDFLAGS
7083c021
AC
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8261$as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
212380e3 8262 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
7083c021 8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8264/* end confdefs.h. */
8265
8266int
8267main ()
8268{
8269int i;
8270 ;
8271 return 0;
8272}
8273_ACEOF
7083c021 8274if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
8275 found=yes
8276else
7083c021 8277 found=no
212380e3 8278fi
7083c021
AC
8279rm -f core conftest.err conftest.$ac_objext \
8280 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
8281 LDFLAGS=$hold_ldflags
8282
8283 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
8284 found="no, IRIX ld uses -B,dynamic"
8285 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
8286 fi
8287
8288 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
8289 found="no, AIX ld uses -G -brtl"
8290 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
8291 fi
8292
7083c021
AC
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8294$as_echo "$found" >&6; }
212380e3
AC
8295
8296 if test "$found" = yes; then
8297 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
8298 fi
8299
7083c021
AC
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8301$as_echo_n "checking for compiler option to produce PIC... " >&6; }
212380e3 8302 if test "$SGS" = "yes"; then
7083c021
AC
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8304$as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
212380e3
AC
8305 PICFLAGS="-KPIC -DPIC -G"
8306 fi
8307
8308 if test "$AppleGCC" = "yes"; then
7083c021
AC
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8310$as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
212380e3
AC
8311 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
8312 fi
8313 if test "$HPUX" = "yes" -a "$CC" != gcc; then
7083c021
AC
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8315$as_echo "HP-UX cc: +z -r -q -n" >&6; }
212380e3 8316 PICFLAGS="+z -r -q -n -c"
7083c021
AC
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8318$as_echo_n "checking if +ESfic is required on this platform... " >&6; }
212380e3
AC
8319
8320 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
7083c021
AC
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322$as_echo "no" >&6; }
212380e3 8323 else
7083c021
AC
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8325$as_echo "yes" >&6; }
212380e3
AC
8326 PICFLAGS="$PICFLAGS +ESfic"
8327 fi
8328
8329 LDFLAGS="${LDFLAGS} -Wl,-E"
8330 fi
8331 if test "$Tru" = yes -a "$CC" != gcc; then
7083c021
AC
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8333$as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
212380e3
AC
8334 PICFLAGS="-shared -expect_unresolved '*' "
8335 LDFLAGS="-call_shared"
8336 fi
8337 if test -z "$PICFLAGS"; then
8338 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7083c021
AC
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8340$as_echo "gcc: -fPIC -DPIC -shared" >&6; }
212380e3
AC
8341 PICFLAGS="-fPIC -DPIC -shared"
8342 else
7083c021
AC
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344$as_echo "no" >&6; }
212380e3
AC
8345 shared_modules=no
8346 fi
8347 fi
8348fi
8349
1a82970f
JT
8350# rpath, for finding libratbox.so at run time
8351hold_ldflags=$LDFLAGS
7083c021
AC
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8353$as_echo_n "checking for the ld -rpath flag... " >&6; }
1a82970f 8354LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
7083c021 8355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1a82970f
JT
8356/* end confdefs.h. */
8357
8358int
8359main ()
8360{
8361int i;
8362 ;
8363 return 0;
8364}
8365_ACEOF
7083c021 8366if ac_fn_c_try_link "$LINENO"; then :
1a82970f
JT
8367 found=yes
8368else
7083c021 8369 found=no
1a82970f 8370fi
7083c021
AC
8371rm -f core conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
1a82970f 8373LDFLAGS=$hold_ldflags
7083c021
AC
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8375$as_echo "$found" >&6; }
1a82970f
JT
8376if test "$found" = yes; then
8377 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
8378fi
8379
212380e3
AC
8380# This must be down here, or it will mess up checks like the ones
8381# for -Wl,-export-dynamic
8382# -- jilles
d2c5159a 8383CWARNS=""
631ef239 8384# Check whether --enable-warnings was given.
7083c021 8385if test "${enable_warnings+set}" = set; then :
631ef239 8386 enableval=$enable_warnings;
212380e3
AC
8387IRC_CFLAGS="$IRC_CFLAGS -O0"
8388CFLAGS="$IRC_CFLAGS"
8389
8390
7083c021
AC
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8392$as_echo_n "checking GCC flag(s) -Wall... " >&6; }
212380e3
AC
8393 if test "${GCC-no}" = yes
8394 then
b6d0720c 8395 if ${charybdis_cv_c_gcc_w_all+:} false; then :
7083c021 8396 $as_echo_n "(cached) " >&6
212380e3
AC
8397else
8398
8399 oldcflags="${CFLAGS-}"
8400 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
7083c021 8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8402/* end confdefs.h. */
8403
8404#include <string.h>
8405#include <stdio.h>
8406int main(void);
8407
8408int
8409main ()
8410{
8411
b1fc1658 8412 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8413
8414 ;
8415 return 0;
8416}
8417_ACEOF
7083c021 8418if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8419 charybdis_cv_c_gcc_w_all=yes
8420else
7083c021 8421 charybdis_cv_c_gcc_w_all=no
212380e3 8422fi
631ef239 8423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8424 CFLAGS="${oldcflags}"
8425fi
8426
8427 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
8428 CWARNS="${CWARNS}-Wall "
7083c021
AC
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8430$as_echo "ok" >&6; }
212380e3
AC
8431 else
8432 charybdis_cv_c_gcc_w_all=''
7083c021
AC
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434$as_echo "no" >&6; }
212380e3
AC
8435 fi
8436 else
7083c021
AC
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
212380e3
AC
8439 fi
8440
8441
7083c021
AC
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8443$as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
212380e3
AC
8444 if test "${GCC-no}" = yes
8445 then
b6d0720c 8446 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then :
7083c021 8447 $as_echo_n "(cached) " >&6
212380e3
AC
8448else
8449
8450 oldcflags="${CFLAGS-}"
8451 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
7083c021 8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8453/* end confdefs.h. */
8454
8455#include <string.h>
8456#include <stdio.h>
8457int main(void);
8458
8459int
8460main ()
8461{
8462
b1fc1658 8463 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8464
8465 ;
8466 return 0;
8467}
8468_ACEOF
7083c021 8469if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8470 charybdis_cv_c_gcc_w_pointer_arith=yes
8471else
7083c021 8472 charybdis_cv_c_gcc_w_pointer_arith=no
212380e3 8473fi
631ef239 8474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8475 CFLAGS="${oldcflags}"
8476fi
8477
8478 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
8479 CWARNS="${CWARNS}-Wpointer-arith "
7083c021
AC
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8481$as_echo "ok" >&6; }
212380e3
AC
8482 else
8483 charybdis_cv_c_gcc_w_pointer_arith=''
7083c021
AC
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485$as_echo "no" >&6; }
212380e3
AC
8486 fi
8487 else
7083c021
AC
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489$as_echo "no" >&6; }
212380e3
AC
8490 fi
8491
8492
7083c021
AC
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8494$as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
212380e3
AC
8495 if test "${GCC-no}" = yes
8496 then
b6d0720c 8497 if ${charybdis_cv_c_gcc_w_implicit+:} false; then :
7083c021 8498 $as_echo_n "(cached) " >&6
212380e3
AC
8499else
8500
8501 oldcflags="${CFLAGS-}"
8502 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
7083c021 8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8504/* end confdefs.h. */
8505
8506#include <string.h>
8507#include <stdio.h>
8508int main(void);
8509
8510int
8511main ()
8512{
8513
b1fc1658 8514 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8515
8516 ;
8517 return 0;
8518}
8519_ACEOF
7083c021 8520if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8521 charybdis_cv_c_gcc_w_implicit=yes
8522else
7083c021 8523 charybdis_cv_c_gcc_w_implicit=no
212380e3 8524fi
631ef239 8525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8526 CFLAGS="${oldcflags}"
8527fi
8528
8529 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
8530 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
7083c021
AC
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8532$as_echo "ok" >&6; }
212380e3
AC
8533 else
8534 charybdis_cv_c_gcc_w_implicit=''
7083c021
AC
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536$as_echo "no" >&6; }
212380e3
AC
8537 fi
8538 else
7083c021
AC
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540$as_echo "no" >&6; }
212380e3
AC
8541 fi
8542
8543
7083c021
AC
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8545$as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
212380e3
AC
8546 if test "${GCC-no}" = yes
8547 then
b6d0720c 8548 if ${charybdis_cv_c_gcc_w_cast_align+:} false; then :
7083c021 8549 $as_echo_n "(cached) " >&6
212380e3
AC
8550else
8551
8552 oldcflags="${CFLAGS-}"
8553 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
7083c021 8554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8555/* end confdefs.h. */
8556
8557#include <string.h>
8558#include <stdio.h>
8559int main(void);
8560
8561int
8562main ()
8563{
8564
b1fc1658 8565 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
7083c021
AC
8566
8567 ;
8568 return 0;
8569}
8570_ACEOF
8571if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8572 charybdis_cv_c_gcc_w_cast_align=yes
8573else
7083c021 8574 charybdis_cv_c_gcc_w_cast_align=no
212380e3 8575fi
631ef239 8576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8577 CFLAGS="${oldcflags}"
8578fi
8579
8580 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
8581 CWARNS="${CWARNS}-Wcast-align "
7083c021
AC
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8583$as_echo "ok" >&6; }
212380e3
AC
8584 else
8585 charybdis_cv_c_gcc_w_cast_align=''
7083c021
AC
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587$as_echo "no" >&6; }
212380e3
AC
8588 fi
8589 else
7083c021
AC
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591$as_echo "no" >&6; }
212380e3
AC
8592 fi
8593
8594
7083c021
AC
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8596$as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
212380e3
AC
8597 if test "${GCC-no}" = yes
8598 then
b6d0720c 8599 if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then :
7083c021 8600 $as_echo_n "(cached) " >&6
212380e3
AC
8601else
8602
8603 oldcflags="${CFLAGS-}"
8604 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
7083c021 8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8606/* end confdefs.h. */
8607
8608#include <string.h>
8609#include <stdio.h>
8610int main(void);
8611
8612int
8613main ()
8614{
8615
b1fc1658 8616 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8617
8618 ;
8619 return 0;
8620}
8621_ACEOF
7083c021 8622if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8623 charybdis_cv_c_gcc_w_cast_qual=yes
8624else
7083c021 8625 charybdis_cv_c_gcc_w_cast_qual=no
212380e3 8626fi
631ef239 8627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8628 CFLAGS="${oldcflags}"
8629fi
8630
8631 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
8632 CWARNS="${CWARNS}-Wcast-qual "
7083c021
AC
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8634$as_echo "ok" >&6; }
212380e3
AC
8635 else
8636 charybdis_cv_c_gcc_w_cast_qual=''
7083c021
AC
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638$as_echo "no" >&6; }
212380e3
AC
8639 fi
8640 else
7083c021
AC
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642$as_echo "no" >&6; }
212380e3
AC
8643 fi
8644
8645
7083c021
AC
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8647$as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
d2c5159a
JT
8648 if test "${GCC-no}" = yes
8649 then
b6d0720c 8650 if ${charybdis_cv_c_gcc_w_write_strings+:} false; then :
7083c021 8651 $as_echo_n "(cached) " >&6
d2c5159a
JT
8652else
8653
8654 oldcflags="${CFLAGS-}"
8655 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
7083c021 8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d2c5159a
JT
8657/* end confdefs.h. */
8658
8659#include <string.h>
8660#include <stdio.h>
8661int main(void);
8662
8663int
8664main ()
8665{
8666
8667 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8668
8669 ;
8670 return 0;
8671}
8672_ACEOF
7083c021 8673if ac_fn_c_try_compile "$LINENO"; then :
bbe58888 8674 charybdis_cv_c_gcc_w_write_strings=yes
d2c5159a 8675else
7083c021 8676 charybdis_cv_c_gcc_w_write_strings=no
d2c5159a 8677fi
d2c5159a
JT
8678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 CFLAGS="${oldcflags}"
8680fi
8681
bbe58888 8682 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
d2c5159a 8683 CWARNS="${CWARNS}-Wwrite-strings "
7083c021
AC
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8685$as_echo "ok" >&6; }
d2c5159a 8686 else
bbe58888 8687 charybdis_cv_c_gcc_w_write_strings=''
7083c021
AC
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689$as_echo "no" >&6; }
bbe58888
VY
8690 fi
8691 else
7083c021
AC
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693$as_echo "no" >&6; }
bbe58888
VY
8694 fi
8695
8696
7083c021
AC
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8698$as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
bbe58888
VY
8699 if test "${GCC-no}" = yes
8700 then
b6d0720c 8701 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then :
7083c021 8702 $as_echo_n "(cached) " >&6
bbe58888
VY
8703else
8704
8705 oldcflags="${CFLAGS-}"
8706 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
7083c021 8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bbe58888
VY
8708/* end confdefs.h. */
8709
8710#include <string.h>
8711#include <stdio.h>
8712int main(void);
8713
8714int
8715main ()
8716{
8717
8718 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8719
8720 ;
8721 return 0;
8722}
8723_ACEOF
7083c021 8724if ac_fn_c_try_compile "$LINENO"; then :
bbe58888
VY
8725 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
8726else
7083c021 8727 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
bbe58888 8728fi
bbe58888
VY
8729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730 CFLAGS="${oldcflags}"
8731fi
8732
8733 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
8734 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
7083c021
AC
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8736$as_echo "ok" >&6; }
bbe58888
VY
8737 else
8738 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
7083c021
AC
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740$as_echo "no" >&6; }
d2c5159a
JT
8741 fi
8742 else
7083c021
AC
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744$as_echo "no" >&6; }
d2c5159a
JT
8745 fi
8746
8747
7083c021
AC
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8749$as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
212380e3
AC
8750 if test "${GCC-no}" = yes
8751 then
b6d0720c 8752 if ${charybdis_cv_c_gcc_prototypes+:} false; then :
7083c021 8753 $as_echo_n "(cached) " >&6
212380e3
AC
8754else
8755
8756 oldcflags="${CFLAGS-}"
8757 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
7083c021 8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8759/* end confdefs.h. */
8760
8761#include <string.h>
8762#include <stdio.h>
8763int main(void);
8764
8765int
8766main ()
8767{
8768
b1fc1658 8769 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8770
8771 ;
8772 return 0;
8773}
8774_ACEOF
7083c021 8775if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8776 charybdis_cv_c_gcc_prototypes=yes
8777else
7083c021 8778 charybdis_cv_c_gcc_prototypes=no
212380e3 8779fi
631ef239 8780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8781 CFLAGS="${oldcflags}"
8782fi
8783
8784 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
8785 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
7083c021
AC
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8787$as_echo "ok" >&6; }
212380e3
AC
8788 else
8789 charybdis_cv_c_gcc_prototypes=''
7083c021
AC
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791$as_echo "no" >&6; }
212380e3
AC
8792 fi
8793 else
7083c021
AC
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795$as_echo "no" >&6; }
212380e3
AC
8796 fi
8797
8798
7083c021
AC
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
8800$as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
212380e3
AC
8801 if test "${GCC-no}" = yes
8802 then
b6d0720c 8803 if ${charybdis_cv_c_gcc_parenthesis+:} false; then :
7083c021 8804 $as_echo_n "(cached) " >&6
212380e3
AC
8805else
8806
8807 oldcflags="${CFLAGS-}"
8808 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
7083c021 8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8810/* end confdefs.h. */
8811
8812#include <string.h>
8813#include <stdio.h>
8814int main(void);
8815
8816int
8817main ()
8818{
8819
b1fc1658 8820 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8821
8822 ;
8823 return 0;
8824}
8825_ACEOF
7083c021 8826if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8827 charybdis_cv_c_gcc_parenthesis=yes
8828else
7083c021 8829 charybdis_cv_c_gcc_parenthesis=no
212380e3 8830fi
631ef239 8831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8832 CFLAGS="${oldcflags}"
8833fi
8834
8835 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
8836 CWARNS="${CWARNS}-Wparenthesis "
7083c021
AC
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8838$as_echo "ok" >&6; }
212380e3
AC
8839 else
8840 charybdis_cv_c_gcc_parenthesis=''
7083c021
AC
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842$as_echo "no" >&6; }
212380e3
AC
8843 fi
8844 else
7083c021
AC
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846$as_echo "no" >&6; }
212380e3
AC
8847 fi
8848
8849
7083c021
AC
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8851$as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
212380e3
AC
8852 if test "${GCC-no}" = yes
8853 then
b6d0720c 8854 if ${charybdis_cv_c_gcc_w+:} false; then :
7083c021 8855 $as_echo_n "(cached) " >&6
212380e3
AC
8856else
8857
8858 oldcflags="${CFLAGS-}"
8859 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
7083c021 8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8861/* end confdefs.h. */
8862
8863#include <string.h>
8864#include <stdio.h>
8865int main(void);
8866
8867int
8868main ()
8869{
8870
b1fc1658 8871 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8872
8873 ;
8874 return 0;
8875}
8876_ACEOF
7083c021 8877if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8878 charybdis_cv_c_gcc_w=yes
8879else
7083c021 8880 charybdis_cv_c_gcc_w=no
212380e3 8881fi
631ef239 8882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8883 CFLAGS="${oldcflags}"
8884fi
8885
8886 if test "x$charybdis_cv_c_gcc_w" = xyes; then
8887 CWARNS="${CWARNS}-W -Wno-unused "
7083c021
AC
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8889$as_echo "ok" >&6; }
212380e3
AC
8890 else
8891 charybdis_cv_c_gcc_w=''
7083c021
AC
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893$as_echo "no" >&6; }
212380e3
AC
8894 fi
8895 else
7083c021
AC
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897$as_echo "no" >&6; }
212380e3
AC
8898 fi
8899
8900
7083c021
AC
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8902$as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
212380e3
AC
8903 if test "${GCC-no}" = yes
8904 then
b6d0720c 8905 if ${charybdis_cv_c_gcc_w_extra+:} false; then :
7083c021 8906 $as_echo_n "(cached) " >&6
212380e3
AC
8907else
8908
8909 oldcflags="${CFLAGS-}"
8910 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
7083c021 8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8912/* end confdefs.h. */
8913
8914#include <string.h>
8915#include <stdio.h>
8916int main(void);
8917
8918int
8919main ()
8920{
8921
b1fc1658 8922 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8923
8924 ;
8925 return 0;
8926}
8927_ACEOF
7083c021 8928if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8929 charybdis_cv_c_gcc_w_extra=yes
8930else
7083c021 8931 charybdis_cv_c_gcc_w_extra=no
212380e3 8932fi
631ef239 8933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8934 CFLAGS="${oldcflags}"
8935fi
8936
8937 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
8938 CWARNS="${CWARNS}-Wextra "
7083c021
AC
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8940$as_echo "ok" >&6; }
212380e3
AC
8941 else
8942 charybdis_cv_c_gcc_w_extra=''
7083c021
AC
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944$as_echo "no" >&6; }
212380e3
AC
8945 fi
8946 else
7083c021
AC
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948$as_echo "no" >&6; }
212380e3
AC
8949 fi
8950
8951
7083c021
AC
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
8953$as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
212380e3
AC
8954 if test "${GCC-no}" = yes
8955 then
b6d0720c 8956 if ${charybdis_cv_c_gcc_w_shadow+:} false; then :
7083c021 8957 $as_echo_n "(cached) " >&6
212380e3
AC
8958else
8959
8960 oldcflags="${CFLAGS-}"
8961 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
7083c021 8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8963/* end confdefs.h. */
8964
8965#include <string.h>
8966#include <stdio.h>
8967int main(void);
8968
8969int
8970main ()
8971{
8972
b1fc1658 8973 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8974
8975 ;
8976 return 0;
8977}
8978_ACEOF
7083c021 8979if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8980 charybdis_cv_c_gcc_w_shadow=yes
8981else
7083c021 8982 charybdis_cv_c_gcc_w_shadow=no
212380e3 8983fi
631ef239 8984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8985 CFLAGS="${oldcflags}"
8986fi
8987
8988 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
8989 CWARNS="${CWARNS}-Wshadow "
7083c021
AC
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8991$as_echo "ok" >&6; }
212380e3
AC
8992 else
8993 charybdis_cv_c_gcc_w_shadow=''
7083c021
AC
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995$as_echo "no" >&6; }
212380e3
AC
8996 fi
8997 else
7083c021
AC
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999$as_echo "no" >&6; }
212380e3
AC
9000 fi
9001
9002
7083c021
AC
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
9004$as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
212380e3
AC
9005 if test "${GCC-no}" = yes
9006 then
b6d0720c 9007 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then :
7083c021 9008 $as_echo_n "(cached) " >&6
212380e3
AC
9009else
9010
9011 oldcflags="${CFLAGS-}"
9012 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
7083c021 9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9014/* end confdefs.h. */
9015
9016#include <string.h>
9017#include <stdio.h>
9018int main(void);
9019
9020int
9021main ()
9022{
9023
b1fc1658 9024 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9025
9026 ;
9027 return 0;
9028}
9029_ACEOF
7083c021 9030if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9031 charybdis_cv_c_gcc_w_missing_noreturn=yes
9032else
7083c021 9033 charybdis_cv_c_gcc_w_missing_noreturn=no
212380e3 9034fi
631ef239 9035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9036 CFLAGS="${oldcflags}"
9037fi
9038
9039 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
9040 CWARNS="${CWARNS}-Wmissing-noreturn "
7083c021
AC
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9042$as_echo "ok" >&6; }
212380e3
AC
9043 else
9044 charybdis_cv_c_gcc_w_missing_noreturn=''
7083c021
AC
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046$as_echo "no" >&6; }
212380e3
AC
9047 fi
9048 else
7083c021
AC
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050$as_echo "no" >&6; }
212380e3
AC
9051 fi
9052
9053
7083c021
AC
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
9055$as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
212380e3
AC
9056 if test "${GCC-no}" = yes
9057 then
b6d0720c 9058 if ${charybdis_cv_c_gcc_w_undef+:} false; then :
7083c021 9059 $as_echo_n "(cached) " >&6
212380e3
AC
9060else
9061
9062 oldcflags="${CFLAGS-}"
9063 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
7083c021 9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9065/* end confdefs.h. */
9066
9067#include <string.h>
9068#include <stdio.h>
9069int main(void);
9070
9071int
9072main ()
9073{
9074
b1fc1658 9075 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9076
9077 ;
9078 return 0;
9079}
9080_ACEOF
7083c021 9081if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9082 charybdis_cv_c_gcc_w_undef=yes
9083else
7083c021 9084 charybdis_cv_c_gcc_w_undef=no
212380e3 9085fi
631ef239 9086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9087 CFLAGS="${oldcflags}"
9088fi
9089
9090 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
9091 CWARNS="${CWARNS}-Wundef "
7083c021
AC
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9093$as_echo "ok" >&6; }
212380e3
AC
9094 else
9095 charybdis_cv_c_gcc_w_undef=''
7083c021
AC
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097$as_echo "no" >&6; }
212380e3
AC
9098 fi
9099 else
7083c021
AC
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101$as_echo "no" >&6; }
212380e3
AC
9102 fi
9103
9104
7083c021
AC
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
9106$as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
212380e3
AC
9107 if test "${GCC-no}" = yes
9108 then
b6d0720c 9109 if ${charybdis_cv_c_gcc_w_packed+:} false; then :
7083c021 9110 $as_echo_n "(cached) " >&6
212380e3
AC
9111else
9112
9113 oldcflags="${CFLAGS-}"
9114 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
7083c021 9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9116/* end confdefs.h. */
9117
9118#include <string.h>
9119#include <stdio.h>
9120int main(void);
9121
9122int
9123main ()
9124{
9125
b1fc1658 9126 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9127
9128 ;
9129 return 0;
9130}
9131_ACEOF
7083c021 9132if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9133 charybdis_cv_c_gcc_w_packed=yes
9134else
7083c021 9135 charybdis_cv_c_gcc_w_packed=no
212380e3 9136fi
631ef239 9137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9138 CFLAGS="${oldcflags}"
9139fi
9140
9141 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
9142 CWARNS="${CWARNS}-Wpacked "
7083c021
AC
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9144$as_echo "ok" >&6; }
212380e3
AC
9145 else
9146 charybdis_cv_c_gcc_w_packed=''
7083c021
AC
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148$as_echo "no" >&6; }
212380e3
AC
9149 fi
9150 else
7083c021
AC
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152$as_echo "no" >&6; }
212380e3
AC
9153 fi
9154
9155
7083c021
AC
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
9157$as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
212380e3
AC
9158 if test "${GCC-no}" = yes
9159 then
b6d0720c 9160 if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then :
7083c021 9161 $as_echo_n "(cached) " >&6
212380e3
AC
9162else
9163
9164 oldcflags="${CFLAGS-}"
9165 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
7083c021 9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9167/* end confdefs.h. */
9168
9169#include <string.h>
9170#include <stdio.h>
9171int main(void);
9172
9173int
9174main ()
9175{
9176
b1fc1658 9177 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9178
9179 ;
9180 return 0;
9181}
9182_ACEOF
7083c021 9183if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9184 charybdis_cv_c_gcc_w_nested_externs=yes
9185else
7083c021 9186 charybdis_cv_c_gcc_w_nested_externs=no
212380e3 9187fi
631ef239 9188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9189 CFLAGS="${oldcflags}"
9190fi
9191
9192 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
9193 CWARNS="${CWARNS}-Wnested-externs "
7083c021
AC
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9195$as_echo "ok" >&6; }
212380e3
AC
9196 else
9197 charybdis_cv_c_gcc_w_nested_externs=''
7083c021
AC
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199$as_echo "no" >&6; }
212380e3
AC
9200 fi
9201 else
7083c021
AC
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203$as_echo "no" >&6; }
212380e3
AC
9204 fi
9205
9206
7083c021
AC
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9208$as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
212380e3
AC
9209 if test "${GCC-no}" = yes
9210 then
b6d0720c 9211 if ${charybdis_cv_c_gcc_w_unused+:} false; then :
7083c021 9212 $as_echo_n "(cached) " >&6
212380e3
AC
9213else
9214
9215 oldcflags="${CFLAGS-}"
9216 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
7083c021 9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9218/* end confdefs.h. */
9219
9220#include <string.h>
9221#include <stdio.h>
9222int main(void);
9223
9224int
9225main ()
9226{
9227
b1fc1658 9228 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9229
9230 ;
9231 return 0;
9232}
9233_ACEOF
7083c021 9234if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9235 charybdis_cv_c_gcc_w_unused=yes
9236else
7083c021 9237 charybdis_cv_c_gcc_w_unused=no
212380e3 9238fi
631ef239 9239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9240 CFLAGS="${oldcflags}"
9241fi
9242
9243 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
9244 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
7083c021
AC
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9246$as_echo "ok" >&6; }
212380e3
AC
9247 else
9248 charybdis_cv_c_gcc_w_unused=''
7083c021
AC
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250$as_echo "no" >&6; }
212380e3
AC
9251 fi
9252 else
7083c021
AC
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254$as_echo "no" >&6; }
212380e3
AC
9255 fi
9256
9257
7083c021
AC
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9259$as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
212380e3
AC
9260 if test "${GCC-no}" = yes
9261 then
b6d0720c 9262 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then :
7083c021 9263 $as_echo_n "(cached) " >&6
212380e3
AC
9264else
9265
9266 oldcflags="${CFLAGS-}"
9267 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
7083c021 9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9269/* end confdefs.h. */
9270
9271#include <string.h>
9272#include <stdio.h>
9273int main(void);
9274
9275int
9276main ()
9277{
9278
b1fc1658 9279 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9280
9281 ;
9282 return 0;
9283}
9284_ACEOF
7083c021 9285if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9286 charybdis_cv_c_gcc_w_redundant_decls=yes
9287else
7083c021 9288 charybdis_cv_c_gcc_w_redundant_decls=no
212380e3 9289fi
631ef239 9290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9291 CFLAGS="${oldcflags}"
9292fi
9293
9294 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
9295 CWARNS="${CWARNS}-Wredundant-decls "
7083c021
AC
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9297$as_echo "ok" >&6; }
212380e3
AC
9298 else
9299 charybdis_cv_c_gcc_w_redundant_decls=''
7083c021
AC
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301$as_echo "no" >&6; }
212380e3
AC
9302 fi
9303 else
7083c021
AC
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305$as_echo "no" >&6; }
212380e3
AC
9306 fi
9307
9308
7083c021
AC
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9310$as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
212380e3
AC
9311 if test "${GCC-no}" = yes
9312 then
b6d0720c 9313 if ${charybdis_cv_c_gcc_w_float_equal+:} false; then :
7083c021 9314 $as_echo_n "(cached) " >&6
212380e3
AC
9315else
9316
9317 oldcflags="${CFLAGS-}"
9318 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
7083c021 9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9320/* end confdefs.h. */
9321
9322#include <string.h>
9323#include <stdio.h>
9324int main(void);
9325
9326int
9327main ()
9328{
9329
b1fc1658 9330 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9331
9332 ;
9333 return 0;
9334}
9335_ACEOF
7083c021 9336if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9337 charybdis_cv_c_gcc_w_float_equal=yes
9338else
7083c021 9339 charybdis_cv_c_gcc_w_float_equal=no
212380e3 9340fi
631ef239 9341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9342 CFLAGS="${oldcflags}"
9343fi
9344
9345 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
9346 CWARNS="${CWARNS}-Wfloat-equal "
7083c021
AC
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9348$as_echo "ok" >&6; }
212380e3
AC
9349 else
9350 charybdis_cv_c_gcc_w_float_equal=''
7083c021
AC
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352$as_echo "no" >&6; }
212380e3
AC
9353 fi
9354 else
7083c021
AC
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356$as_echo "no" >&6; }
212380e3
AC
9357 fi
9358
9359
7083c021
AC
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9361$as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
212380e3
AC
9362 if test "${GCC-no}" = yes
9363 then
b6d0720c 9364 if ${charybdis_cv_c_gcc_w_format+:} false; then :
7083c021 9365 $as_echo_n "(cached) " >&6
212380e3
AC
9366else
9367
9368 oldcflags="${CFLAGS-}"
4a584d41 9369 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
7083c021 9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9371/* end confdefs.h. */
9372
9373#include <string.h>
9374#include <stdio.h>
9375int main(void);
9376
9377int
9378main ()
9379{
7083c021
AC
9380
9381 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9382
212380e3
AC
9383 ;
9384 return 0;
9385}
9386_ACEOF
7083c021
AC
9387if ac_fn_c_try_compile "$LINENO"; then :
9388 charybdis_cv_c_gcc_w_format=yes
212380e3 9389else
7083c021
AC
9390 charybdis_cv_c_gcc_w_format=no
9391fi
9392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9393 CFLAGS="${oldcflags}"
9394fi
9395
9396 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
9397 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9399$as_echo "ok" >&6; }
9400 else
9401 charybdis_cv_c_gcc_w_format=''
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9403$as_echo "no" >&6; }
9404 fi
9405 else
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407$as_echo "no" >&6; }
9408 fi
9409
9410
9411IRC_CFLAGS="$CFLAGS"
212380e3 9412
212380e3 9413fi
631ef239 9414
7083c021
AC
9415
9416if test "$shared_modules" = no; then
9417 DYNLINK_C=""
9418 MOD_TARGET="libmodules.a"
9419 MODULES_LIBS="../modules/libmodules.a"
9420 SEDOBJ=""
9421
9422$as_echo "#define STATIC_MODULES 1" >>confdefs.h
9423
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9425$as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
212380e3 9426fi
7083c021
AC
9427
9428if test "$shared_modules" = yes; then
9429
9430 ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist"
b6d0720c 9431if test "x$ac_cv_func_nlist" = xyes; then :
7083c021 9432
212380e3 9433else
7083c021
AC
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9435$as_echo_n "checking for nlist in -ldl... " >&6; }
b6d0720c 9436if ${ac_cv_lib_dl_nlist+:} false; then :
7083c021 9437 $as_echo_n "(cached) " >&6
212380e3
AC
9438else
9439 ac_check_lib_save_LIBS=$LIBS
9440LIBS="-ldl $LIBS"
7083c021 9441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9442/* end confdefs.h. */
9443
631ef239
AC
9444/* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
212380e3
AC
9447#ifdef __cplusplus
9448extern "C"
9449#endif
212380e3
AC
9450char nlist ();
9451int
9452main ()
9453{
631ef239 9454return nlist ();
212380e3
AC
9455 ;
9456 return 0;
9457}
9458_ACEOF
7083c021 9459if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
9460 ac_cv_lib_dl_nlist=yes
9461else
7083c021 9462 ac_cv_lib_dl_nlist=no
212380e3 9463fi
7083c021
AC
9464rm -f core conftest.err conftest.$ac_objext \
9465 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
9466LIBS=$ac_check_lib_save_LIBS
9467fi
7083c021
AC
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9469$as_echo "$ac_cv_lib_dl_nlist" >&6; }
b6d0720c 9470if test "x$ac_cv_lib_dl_nlist" = xyes; then :
212380e3
AC
9471 nlist_lib="-ldl"
9472else
7083c021
AC
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9474$as_echo_n "checking for nlist in -lelf... " >&6; }
b6d0720c 9475if ${ac_cv_lib_elf_nlist+:} false; then :
7083c021 9476 $as_echo_n "(cached) " >&6
212380e3
AC
9477else
9478 ac_check_lib_save_LIBS=$LIBS
9479LIBS="-lelf $LIBS"
7083c021 9480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9481/* end confdefs.h. */
9482
631ef239
AC
9483/* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
212380e3
AC
9486#ifdef __cplusplus
9487extern "C"
9488#endif
212380e3
AC
9489char nlist ();
9490int
9491main ()
9492{
631ef239 9493return nlist ();
212380e3
AC
9494 ;
9495 return 0;
9496}
9497_ACEOF
7083c021 9498if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
9499 ac_cv_lib_elf_nlist=yes
9500else
7083c021 9501 ac_cv_lib_elf_nlist=no
212380e3 9502fi
7083c021
AC
9503rm -f core conftest.err conftest.$ac_objext \
9504 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
9505LIBS=$ac_check_lib_save_LIBS
9506fi
7083c021
AC
9507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9508$as_echo "$ac_cv_lib_elf_nlist" >&6; }
b6d0720c 9509if test "x$ac_cv_lib_elf_nlist" = xyes; then :
212380e3
AC
9510 nlist_lib="-lelf"
9511fi
9512
9513
9514fi
9515
9516
9517fi
9518
9519
7083c021 9520 ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
b6d0720c 9521if test "x$ac_cv_header_libelf_nlist_h" = xyes; then :
212380e3
AC
9522 nlist_h="libelf/nlist.h"
9523fi
9524
9525
7083c021 9526 ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
b6d0720c 9527if test "x$ac_cv_header_elf_nlist_h" = xyes; then :
212380e3
AC
9528 nlist_h="elf/nlist.h"
9529fi
9530
9531
7083c021 9532 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
b6d0720c 9533if test "x$ac_cv_header_nlist_h" = xyes; then :
212380e3
AC
9534 nlist_h="nlist.h"
9535fi
9536
9537
9538 if test x"$nlist_h" = "x"; then
9539
9540cat >>confdefs.h <<_ACEOF
9541#define SYMBOL_PREFIX ""
9542_ACEOF
9543
9544 else
7083c021
AC
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9546$as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
b6d0720c 9547 if ${symbol_underscores+:} false; then :
7083c021 9548 $as_echo_n "(cached) " >&6
212380e3
AC
9549else
9550
9551cat << EOF > conftest.c
9552#include <$nlist_h>
9553#include <stdio.h>
9554#include <stdlib.h>
9555void _modinit(void);
9556int main(int argc, char *argv[]) {
9557 int i;
9558 struct nlist nl[5];
9559
9560 /* fill the names in this way, so it'll work almost everywhere */
9561 nl[0].n_name = "_modinit";
9562 nl[1].n_name = "__modinit";
9563 nl[2].n_name = "___modinit";
9564 nl[3].n_name = "____modinit";
9565 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9566
9567 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9568 for(i = 0; i < 4; i++) {
9569 if(nl[i].n_value != NULL)
9570 {
9571 int j;
9572 for(j = 0; j < i; j++)
9573 printf("_");
9574 exit(i);
9575 }
9576 }
9577 exit(-1);
9578}
9579void _modinit(void) { return; }
9580EOF
9581 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
9582 symbol_underscores=`./conftest conftest`
7083c021
AC
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9584$as_echo "$symbol_underscores" >&6; }
212380e3
AC
9585 $RM -f conftest conftest.c
9586
9587fi
9588
9589
9590cat >>confdefs.h <<_ACEOF
9591#define SYMBOL_PREFIX "${symbol_underscores}"
9592_ACEOF
9593
9594 fi
9595fi
9596
d2c5159a
JT
9597IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
9598
212380e3
AC
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612if test "$prefix" = "NONE"; then
9613
9614cat >>confdefs.h <<_ACEOF
9615#define IRCD_PREFIX "$ac_default_prefix"
9616_ACEOF
9617
9618
9619else
9620
9621
9622 prefix=`echo $prefix | sed 's/\/$//'`
9623
9624cat >>confdefs.h <<_ACEOF
9625#define IRCD_PREFIX "$prefix"
9626_ACEOF
9627
9628
9629fi
9630
9f9b7042
NPB
9631ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile tools/genssl.sh doc/Makefile help/Makefile"
9632
9633ac_config_commands="$ac_config_commands tools/genssl.sh_chmod"
212380e3
AC
9634
9635
9636cat >confcache <<\_ACEOF
9637# This file is a shell script that caches the results of configure
9638# tests run on this system so they can be shared between configure
9639# scripts and configure runs, see configure's option --config-cache.
9640# It is not useful on other systems. If it contains results you don't
9641# want to keep, you may remove or edit it.
9642#
9643# config.status only pays attention to the cache file if you give it
9644# the --recheck option to rerun configure.
9645#
9646# `ac_cv_env_foo' variables (set or unset) will be overridden when
9647# loading this file, other *unset* `ac_cv_foo' will be assigned the
9648# following values.
9649
9650_ACEOF
9651
9652# The following way of writing the cache mishandles newlines in values,
9653# but we know of no workaround that is simple, portable, and efficient.
631ef239 9654# So, we kill variables containing newlines.
212380e3
AC
9655# Ultrix sh set writes to stderr and can't be redirected directly,
9656# and sets the high bit in the cache file unless we assign to the vars.
631ef239
AC
9657(
9658 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9659 eval ac_val=\$$ac_var
9660 case $ac_val in #(
9661 *${as_nl}*)
9662 case $ac_var in #(
7083c021
AC
9663 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9664$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
631ef239
AC
9665 esac
9666 case $ac_var in #(
9667 _ | IFS | as_nl) ;; #(
7083c021
AC
9668 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9669 *) { eval $ac_var=; unset $ac_var;} ;;
631ef239
AC
9670 esac ;;
9671 esac
9672 done
9673
212380e3 9674 (set) 2>&1 |
631ef239
AC
9675 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9676 *${as_nl}ac_space=\ *)
7083c021
AC
9677 # `set' does not quote correctly, so add quotes: double-quote
9678 # substitution turns \\\\ into \\, and sed turns \\ into \.
212380e3
AC
9679 sed -n \
9680 "s/'/'\\\\''/g;
9681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
631ef239 9682 ;; #(
212380e3
AC
9683 *)
9684 # `set' quotes correctly as required by POSIX, so do not add quotes.
631ef239 9685 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 9686 ;;
631ef239
AC
9687 esac |
9688 sort
9689) |
212380e3 9690 sed '
631ef239 9691 /^ac_cv_env_/b end
212380e3 9692 t clear
631ef239 9693 :clear
212380e3
AC
9694 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9695 t end
631ef239
AC
9696 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9697 :end' >>confcache
9698if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9699 if test -w "$cache_file"; then
b6d0720c 9700 if test "x$cache_file" != "x/dev/null"; then
7083c021
AC
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9702$as_echo "$as_me: updating cache $cache_file" >&6;}
b6d0720c
AC
9703 if test ! -f "$cache_file" || test -h "$cache_file"; then
9704 cat confcache >"$cache_file"
9705 else
9706 case $cache_file in #(
9707 */* | ?:*)
9708 mv -f confcache "$cache_file"$$ &&
9709 mv -f "$cache_file"$$ "$cache_file" ;; #(
9710 *)
9711 mv -f confcache "$cache_file" ;;
9712 esac
9713 fi
9714 fi
212380e3 9715 else
7083c021
AC
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9717$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
212380e3
AC
9718 fi
9719fi
9720rm -f confcache
9721
9722test "x$prefix" = xNONE && prefix=$ac_default_prefix
9723# Let make expand exec_prefix.
9724test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9725
212380e3
AC
9726DEFS=-DHAVE_CONFIG_H
9727
9728ac_libobjs=
9729ac_ltlibobjs=
b6d0720c 9730U=
212380e3
AC
9731for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9732 # 1. Remove the extension, and $U if already installed.
631ef239 9733 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7083c021 9734 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
631ef239
AC
9735 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9736 # will be set to the directory where LIBOBJS objects are built.
7083c021
AC
9737 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9738 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
212380e3
AC
9739done
9740LIBOBJS=$ac_libobjs
9741
9742LTLIBOBJS=$ac_ltlibobjs
9743
9744
9745
7083c021
AC
9746
9747
b6d0720c 9748: "${CONFIG_STATUS=./config.status}"
7083c021 9749ac_write_fail=0
212380e3
AC
9750ac_clean_files_save=$ac_clean_files
9751ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7083c021
AC
9752{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9753$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9754as_write_fail=0
9755cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
212380e3
AC
9756#! $SHELL
9757# Generated by $as_me.
9758# Run this file to recreate the current configuration.
9759# Compiler output produced by configure, useful for debugging
9760# configure, is in config.log if it exists.
9761
9762debug=false
9763ac_cs_recheck=false
9764ac_cs_silent=false
212380e3 9765
7083c021
AC
9766SHELL=\${CONFIG_SHELL-$SHELL}
9767export SHELL
9768_ASEOF
9769cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9770## -------------------- ##
9771## M4sh Initialization. ##
9772## -------------------- ##
212380e3 9773
631ef239
AC
9774# Be more Bourne compatible
9775DUALCASE=1; export DUALCASE # for MKS sh
7083c021 9776if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
9777 emulate sh
9778 NULLCMD=:
7083c021 9779 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
9780 # is contrary to our usage. Disable this feature.
9781 alias -g '${1+"$@"}'='"$@"'
631ef239 9782 setopt NO_GLOB_SUBST
212380e3 9783else
7083c021
AC
9784 case `(set -o) 2>/dev/null` in #(
9785 *posix*) :
9786 set -o posix ;; #(
9787 *) :
9788 ;;
631ef239 9789esac
212380e3
AC
9790fi
9791
9792
7083c021
AC
9793as_nl='
9794'
9795export as_nl
9796# Printing a long string crashes Solaris 7 /usr/bin/printf.
9797as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9798as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9799as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9800# Prefer a ksh shell builtin over an external printf program on Solaris,
9801# but without wasting forks for bash or zsh.
9802if test -z "$BASH_VERSION$ZSH_VERSION" \
9803 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9804 as_echo='print -r --'
9805 as_echo_n='print -rn --'
9806elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9807 as_echo='printf %s\n'
9808 as_echo_n='printf %s'
9809else
9810 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9811 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9812 as_echo_n='/usr/ucb/echo -n'
631ef239 9813 else
7083c021
AC
9814 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9815 as_echo_n_body='eval
9816 arg=$1;
9817 case $arg in #(
9818 *"$as_nl"*)
9819 expr "X$arg" : "X\\(.*\\)$as_nl";
9820 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9821 esac;
9822 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9823 '
9824 export as_echo_n_body
9825 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 9826 fi
7083c021
AC
9827 export as_echo_body
9828 as_echo='sh -c $as_echo_body as_echo'
631ef239
AC
9829fi
9830
7083c021
AC
9831# The user is always right.
9832if test "${PATH_SEPARATOR+set}" != set; then
9833 PATH_SEPARATOR=:
9834 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9835 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9836 PATH_SEPARATOR=';'
9837 }
631ef239
AC
9838fi
9839
9840
9841# IFS
9842# We need space, tab and new line, in precisely that order. Quoting is
9843# there to prevent editors from complaining about space-tab.
9844# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9845# splitting by setting IFS to empty value.)
631ef239
AC
9846IFS=" "" $as_nl"
9847
9848# Find who we are. Look in the path if we contain no directory separator.
b6d0720c 9849as_myself=
7083c021 9850case $0 in #((
631ef239
AC
9851 *[\\/]* ) as_myself=$0 ;;
9852 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9853for as_dir in $PATH
9854do
9855 IFS=$as_save_IFS
9856 test -z "$as_dir" && as_dir=.
7083c021
AC
9857 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9858 done
631ef239
AC
9859IFS=$as_save_IFS
9860
9861 ;;
9862esac
9863# We did not find ourselves, most probably we were run as `sh COMMAND'
9864# in which case we are not to be found in the path.
9865if test "x$as_myself" = x; then
9866 as_myself=$0
9867fi
9868if test ! -f "$as_myself"; then
7083c021
AC
9869 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9870 exit 1
631ef239
AC
9871fi
9872
7083c021
AC
9873# Unset variables that we do not need and which cause bugs (e.g. in
9874# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9875# suppresses any "Segmentation fault" message there. '((' could
9876# trigger a bug in pdksh 5.2.14.
9877for as_var in BASH_ENV ENV MAIL MAILPATH
9878do eval test x\${$as_var+set} = xset \
9879 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 9880done
212380e3
AC
9881PS1='$ '
9882PS2='> '
9883PS4='+ '
9884
7083c021
AC
9885# NLS nuisances.
9886LC_ALL=C
9887export LC_ALL
9888LANGUAGE=C
9889export LANGUAGE
9890
9891# CDPATH.
9892(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9893
9894
b6d0720c
AC
9895# as_fn_error STATUS ERROR [LINENO LOG_FD]
9896# ----------------------------------------
7083c021
AC
9897# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9898# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 9899# script with STATUS, using 1 if that was 0.
7083c021
AC
9900as_fn_error ()
9901{
b6d0720c
AC
9902 as_status=$1; test $as_status -eq 0 && as_status=1
9903 if test "$4"; then
9904 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9905 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
212380e3 9906 fi
b6d0720c 9907 $as_echo "$as_me: error: $2" >&2
7083c021
AC
9908 as_fn_exit $as_status
9909} # as_fn_error
9910
9911
9912# as_fn_set_status STATUS
9913# -----------------------
9914# Set $? to STATUS, without forking.
9915as_fn_set_status ()
9916{
9917 return $1
9918} # as_fn_set_status
9919
9920# as_fn_exit STATUS
9921# -----------------
9922# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9923as_fn_exit ()
9924{
9925 set +e
9926 as_fn_set_status $1
9927 exit $1
9928} # as_fn_exit
9929
9930# as_fn_unset VAR
9931# ---------------
9932# Portably unset VAR.
9933as_fn_unset ()
9934{
9935 { eval $1=; unset $1;}
9936}
9937as_unset=as_fn_unset
9938# as_fn_append VAR VALUE
9939# ----------------------
9940# Append the text in VALUE to the end of the definition contained in VAR. Take
9941# advantage of any shell optimizations that allow amortized linear growth over
9942# repeated appends, instead of the typical quadratic growth present in naive
9943# implementations.
9944if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9945 eval 'as_fn_append ()
9946 {
9947 eval $1+=\$2
9948 }'
9949else
9950 as_fn_append ()
9951 {
9952 eval $1=\$$1\$2
9953 }
9954fi # as_fn_append
9955
9956# as_fn_arith ARG...
9957# ------------------
9958# Perform arithmetic evaluation on the ARGs, and store the result in the
9959# global $as_val. Take advantage of shells that can avoid forks. The arguments
9960# must be portable across $(()) and expr.
9961if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9962 eval 'as_fn_arith ()
9963 {
9964 as_val=$(( $* ))
9965 }'
9966else
9967 as_fn_arith ()
9968 {
9969 as_val=`expr "$@" || test $? -eq 1`
9970 }
9971fi # as_fn_arith
9972
212380e3 9973
631ef239
AC
9974if expr a : '\(a\)' >/dev/null 2>&1 &&
9975 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
9976 as_expr=expr
9977else
9978 as_expr=false
9979fi
9980
631ef239 9981if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
9982 as_basename=basename
9983else
9984 as_basename=false
9985fi
9986
7083c021
AC
9987if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9988 as_dirname=dirname
9989else
9990 as_dirname=false
9991fi
212380e3 9992
631ef239 9993as_me=`$as_basename -- "$0" ||
212380e3
AC
9994$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9995 X"$0" : 'X\(//\)$' \| \
631ef239 9996 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 9997$as_echo X/"$0" |
631ef239
AC
9998 sed '/^.*\/\([^/][^/]*\)\/*$/{
9999 s//\1/
10000 q
10001 }
10002 /^X\/\(\/\/\)$/{
10003 s//\1/
10004 q
10005 }
10006 /^X\/\(\/\).*/{
10007 s//\1/
10008 q
10009 }
10010 s/.*/./; q'`
212380e3 10011
7083c021
AC
10012# Avoid depending upon Character Ranges.
10013as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10014as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10015as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10016as_cr_digits='0123456789'
10017as_cr_alnum=$as_cr_Letters$as_cr_digits
631ef239
AC
10018
10019ECHO_C= ECHO_N= ECHO_T=
7083c021 10020case `echo -n x` in #(((((
631ef239 10021-n*)
7083c021 10022 case `echo 'xy\c'` in
631ef239 10023 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7083c021
AC
10024 xy) ECHO_C='\c';;
10025 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10026 ECHO_T=' ';;
631ef239
AC
10027 esac;;
10028*)
10029 ECHO_N='-n';;
212380e3
AC
10030esac
10031
212380e3 10032rm -f conf$$ conf$$.exe conf$$.file
631ef239
AC
10033if test -d conf$$.dir; then
10034 rm -f conf$$.dir/conf$$.file
10035else
10036 rm -f conf$$.dir
7083c021
AC
10037 mkdir conf$$.dir 2>/dev/null
10038fi
10039if (echo >conf$$.file) 2>/dev/null; then
10040 if ln -s conf$$.file conf$$ 2>/dev/null; then
10041 as_ln_s='ln -s'
10042 # ... but there are two gotchas:
10043 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10044 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10045 # In both cases, we have to default to `cp -p'.
10046 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10047 as_ln_s='cp -p'
10048 elif ln conf$$.file conf$$ 2>/dev/null; then
10049 as_ln_s=ln
10050 else
212380e3 10051 as_ln_s='cp -p'
7083c021 10052 fi
212380e3
AC
10053else
10054 as_ln_s='cp -p'
10055fi
631ef239
AC
10056rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10057rmdir conf$$.dir 2>/dev/null
212380e3 10058
7083c021
AC
10059
10060# as_fn_mkdir_p
10061# -------------
10062# Create "$as_dir" as a directory, including parents if necessary.
10063as_fn_mkdir_p ()
10064{
10065
10066 case $as_dir in #(
10067 -*) as_dir=./$as_dir;;
10068 esac
10069 test -d "$as_dir" || eval $as_mkdir_p || {
10070 as_dirs=
10071 while :; do
10072 case $as_dir in #(
10073 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10074 *) as_qdir=$as_dir;;
10075 esac
10076 as_dirs="'$as_qdir' $as_dirs"
10077 as_dir=`$as_dirname -- "$as_dir" ||
10078$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10079 X"$as_dir" : 'X\(//\)[^/]' \| \
10080 X"$as_dir" : 'X\(//\)$' \| \
10081 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10082$as_echo X"$as_dir" |
10083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10084 s//\1/
10085 q
10086 }
10087 /^X\(\/\/\)[^/].*/{
10088 s//\1/
10089 q
10090 }
10091 /^X\(\/\/\)$/{
10092 s//\1/
10093 q
10094 }
10095 /^X\(\/\).*/{
10096 s//\1/
10097 q
10098 }
10099 s/.*/./; q'`
10100 test -d "$as_dir" && break
10101 done
10102 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 10103 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
10104
10105
10106} # as_fn_mkdir_p
212380e3 10107if mkdir -p . 2>/dev/null; then
7083c021 10108 as_mkdir_p='mkdir -p "$as_dir"'
212380e3
AC
10109else
10110 test -d ./-p && rmdir ./-p
10111 as_mkdir_p=false
10112fi
10113
631ef239
AC
10114if test -x / >/dev/null 2>&1; then
10115 as_test_x='test -x'
10116else
10117 if ls -dL / >/dev/null 2>&1; then
10118 as_ls_L_option=L
10119 else
10120 as_ls_L_option=
10121 fi
10122 as_test_x='
10123 eval sh -c '\''
10124 if test -d "$1"; then
7083c021 10125 test -d "$1/.";
631ef239 10126 else
7083c021
AC
10127 case $1 in #(
10128 -*)set "./$1";;
631ef239 10129 esac;
7083c021 10130 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
631ef239
AC
10131 ???[sx]*):;;*)false;;esac;fi
10132 '\'' sh
10133 '
10134fi
10135as_executable_p=$as_test_x
212380e3
AC
10136
10137# Sed expression to map a string onto a valid CPP name.
10138as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10139
10140# Sed expression to map a string onto a valid variable name.
10141as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10142
10143
212380e3 10144exec 6>&1
7083c021
AC
10145## ----------------------------------- ##
10146## Main body of $CONFIG_STATUS script. ##
10147## ----------------------------------- ##
10148_ASEOF
10149test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
212380e3 10150
7083c021
AC
10151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10152# Save the log message, to keep $0 and so on meaningful, and to
212380e3 10153# report actual input values of CONFIG_FILES etc. instead of their
631ef239
AC
10154# values after options handling.
10155ac_log="
dc9aebf4 10156This file was extended by charybdis $as_me 3.5.0-dev, which was
b6d0720c 10157generated by GNU Autoconf 2.68. Invocation command line was
212380e3
AC
10158
10159 CONFIG_FILES = $CONFIG_FILES
10160 CONFIG_HEADERS = $CONFIG_HEADERS
10161 CONFIG_LINKS = $CONFIG_LINKS
10162 CONFIG_COMMANDS = $CONFIG_COMMANDS
10163 $ $0 $@
10164
631ef239
AC
10165on `(hostname || uname -n) 2>/dev/null | sed 1q`
10166"
10167
212380e3
AC
10168_ACEOF
10169
7083c021
AC
10170case $ac_config_files in *"
10171"*) set x $ac_config_files; shift; ac_config_files=$*;;
10172esac
10173
10174case $ac_config_headers in *"
10175"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10176esac
10177
10178
10179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10180# Files that config.status was made for.
631ef239
AC
10181config_files="$ac_config_files"
10182config_headers="$ac_config_headers"
9f9b7042 10183config_commands="$ac_config_commands"
212380e3 10184
631ef239 10185_ACEOF
212380e3 10186
7083c021 10187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3 10188ac_cs_usage="\
7083c021
AC
10189\`$as_me' instantiates files and other configuration actions
10190from templates according to the current configuration. Unless the files
10191and actions are specified as TAGs, all are instantiated by default.
212380e3 10192
7083c021 10193Usage: $0 [OPTION]... [TAG]...
212380e3
AC
10194
10195 -h, --help print this help, then exit
631ef239 10196 -V, --version print version number and configuration settings, then exit
6fb6bd15 10197 --config print configuration, then exit
7083c021
AC
10198 -q, --quiet, --silent
10199 do not print progress messages
212380e3
AC
10200 -d, --debug don't remove temporary files
10201 --recheck update $as_me by reconfiguring in the same conditions
7083c021
AC
10202 --file=FILE[:TEMPLATE]
10203 instantiate the configuration file FILE
10204 --header=FILE[:TEMPLATE]
10205 instantiate the configuration header FILE
212380e3
AC
10206
10207Configuration files:
10208$config_files
10209
10210Configuration headers:
10211$config_headers
10212
9f9b7042
NPB
10213Configuration commands:
10214$config_commands
10215
7083c021 10216Report bugs to the package provider."
212380e3 10217
631ef239 10218_ACEOF
7083c021 10219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6fb6bd15 10220ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
212380e3 10221ac_cs_version="\\
dc9aebf4 10222charybdis config.status 3.5.0-dev
b6d0720c 10223configured by $0, generated by GNU Autoconf 2.68,
6fb6bd15 10224 with options \\"\$ac_cs_config\\"
212380e3 10225
b6d0720c 10226Copyright (C) 2010 Free Software Foundation, Inc.
212380e3
AC
10227This config.status script is free software; the Free Software Foundation
10228gives unlimited permission to copy, distribute and modify it."
631ef239
AC
10229
10230ac_pwd='$ac_pwd'
10231srcdir='$srcdir'
10232INSTALL='$INSTALL'
7083c021 10233test -n "\$AWK" || AWK=awk
212380e3
AC
10234_ACEOF
10235
7083c021
AC
10236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10237# The default lists apply if the user does not specify any file.
212380e3
AC
10238ac_need_defaults=:
10239while test $# != 0
10240do
10241 case $1 in
b6d0720c 10242 --*=?*)
631ef239
AC
10243 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10244 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
212380e3
AC
10245 ac_shift=:
10246 ;;
b6d0720c
AC
10247 --*=)
10248 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10249 ac_optarg=
10250 ac_shift=:
10251 ;;
631ef239 10252 *)
212380e3
AC
10253 ac_option=$1
10254 ac_optarg=$2
10255 ac_shift=shift
10256 ;;
212380e3
AC
10257 esac
10258
10259 case $ac_option in
10260 # Handling of the options.
212380e3
AC
10261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10262 ac_cs_recheck=: ;;
631ef239 10263 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7083c021 10264 $as_echo "$ac_cs_version"; exit ;;
6fb6bd15
AC
10265 --config | --confi | --conf | --con | --co | --c )
10266 $as_echo "$ac_cs_config"; exit ;;
631ef239 10267 --debug | --debu | --deb | --de | --d | -d )
212380e3
AC
10268 debug=: ;;
10269 --file | --fil | --fi | --f )
10270 $ac_shift
7083c021
AC
10271 case $ac_optarg in
10272 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b6d0720c 10273 '') as_fn_error $? "missing file argument" ;;
7083c021
AC
10274 esac
10275 as_fn_append CONFIG_FILES " '$ac_optarg'"
212380e3
AC
10276 ac_need_defaults=false;;
10277 --header | --heade | --head | --hea )
10278 $ac_shift
7083c021
AC
10279 case $ac_optarg in
10280 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10281 esac
10282 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
212380e3 10283 ac_need_defaults=false;;
631ef239
AC
10284 --he | --h)
10285 # Conflict between --help and --header
b6d0720c 10286 as_fn_error $? "ambiguous option: \`$1'
7083c021 10287Try \`$0 --help' for more information.";;
631ef239 10288 --help | --hel | -h )
7083c021 10289 $as_echo "$ac_cs_usage"; exit ;;
212380e3
AC
10290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10291 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10292 ac_cs_silent=: ;;
10293
10294 # This is an error.
b6d0720c 10295 -*) as_fn_error $? "unrecognized option: \`$1'
7083c021 10296Try \`$0 --help' for more information." ;;
212380e3 10297
7083c021 10298 *) as_fn_append ac_config_targets " $1"
631ef239 10299 ac_need_defaults=false ;;
212380e3
AC
10300
10301 esac
10302 shift
10303done
10304
10305ac_configure_extra_args=
10306
10307if $ac_cs_silent; then
10308 exec 6>/dev/null
10309 ac_configure_extra_args="$ac_configure_extra_args --silent"
10310fi
10311
10312_ACEOF
7083c021 10313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10314if \$ac_cs_recheck; then
7083c021
AC
10315 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10316 shift
10317 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10318 CONFIG_SHELL='$SHELL'
631ef239 10319 export CONFIG_SHELL
7083c021 10320 exec "\$@"
212380e3
AC
10321fi
10322
10323_ACEOF
7083c021 10324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10325exec 5>>config.log
10326{
10327 echo
10328 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10329## Running $as_me. ##
10330_ASBOX
7083c021 10331 $as_echo "$ac_log"
631ef239 10332} >&5
212380e3 10333
631ef239 10334_ACEOF
7083c021 10335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239 10336_ACEOF
212380e3 10337
7083c021 10338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10339
10340# Handling of arguments.
212380e3
AC
10341for ac_config_target in $ac_config_targets
10342do
631ef239
AC
10343 case $ac_config_target in
10344 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
10345 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7083c021 10346 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;;
53970d07 10347 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
631ef239 10348 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
631ef239
AC
10349 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10350 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
10351 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9f9b7042 10352 "tools/genssl.sh") CONFIG_FILES="$CONFIG_FILES tools/genssl.sh" ;;
631ef239
AC
10353 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10354 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
9f9b7042 10355 "tools/genssl.sh_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl.sh_chmod" ;;
631ef239 10356
b6d0720c 10357 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
212380e3
AC
10358 esac
10359done
10360
631ef239 10361
212380e3
AC
10362# If the user did not use the arguments to specify the items to instantiate,
10363# then the envvar interface is used. Set only those that are not.
10364# We use the long form for the default assignment because of an extremely
10365# bizarre bug on SunOS 4.1.3.
10366if $ac_need_defaults; then
10367 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10368 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9f9b7042 10369 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
212380e3
AC
10370fi
10371
10372# Have a temporary directory for convenience. Make it in the build tree
631ef239 10373# simply because there is no reason against having it here, and in addition,
212380e3 10374# creating and moving files from /tmp can sometimes cause problems.
631ef239
AC
10375# Hook for its removal unless debugging.
10376# Note that there is a small window in which the directory will not be cleaned:
10377# after its creation but before its name has been assigned to `$tmp'.
212380e3
AC
10378$debug ||
10379{
b6d0720c 10380 tmp= ac_tmp=
631ef239 10381 trap 'exit_status=$?
b6d0720c
AC
10382 : "${ac_tmp:=$tmp}"
10383 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
631ef239 10384' 0
7083c021 10385 trap 'as_fn_exit 1' 1 2 13 15
212380e3 10386}
212380e3
AC
10387# Create a (secure) tmp directory for tmp files.
10388
10389{
631ef239 10390 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b6d0720c 10391 test -d "$tmp"
212380e3
AC
10392} ||
10393{
631ef239
AC
10394 tmp=./conf$$-$RANDOM
10395 (umask 077 && mkdir "$tmp")
b6d0720c
AC
10396} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10397ac_tmp=$tmp
212380e3 10398
7083c021
AC
10399# Set up the scripts for CONFIG_FILES section.
10400# No need to generate them if there are no CONFIG_FILES.
10401# This happens for instance with `./config.status config.h'.
631ef239
AC
10402if test -n "$CONFIG_FILES"; then
10403
631ef239 10404
7083c021
AC
10405ac_cr=`echo X | tr X '\015'`
10406# On cygwin, bash can eat \r inside `` if the user requested igncr.
10407# But we know of no other shell where ac_cr would be empty at this
10408# point, so we can use a bashism as a fallback.
10409if test "x$ac_cr" = x; then
10410 eval ac_cr=\$\'\\r\'
10411fi
10412ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10413if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
b6d0720c 10414 ac_cs_awk_cr='\\r'
7083c021
AC
10415else
10416 ac_cs_awk_cr=$ac_cr
10417fi
10418
b6d0720c 10419echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7083c021 10420_ACEOF
631ef239
AC
10421
10422
7083c021
AC
10423{
10424 echo "cat >conf$$subs.awk <<_ACEOF" &&
10425 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10426 echo "_ACEOF"
10427} >conf$$subs.sh ||
b6d0720c
AC
10428 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10429ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
631ef239
AC
10430ac_delim='%!_!# '
10431for ac_last_try in false false false false false :; do
7083c021 10432 . ./conf$$subs.sh ||
b6d0720c 10433 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7083c021
AC
10434
10435 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10436 if test $ac_delim_n = $ac_delim_num; then
631ef239
AC
10437 break
10438 elif $ac_last_try; then
b6d0720c 10439 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
631ef239
AC
10440 else
10441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
212380e3 10442 fi
631ef239 10443done
7083c021
AC
10444rm -f conf$$subs.sh
10445
10446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b6d0720c 10447cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7083c021
AC
10448_ACEOF
10449sed -n '
10450h
10451s/^/S["/; s/!.*/"]=/
10452p
10453g
10454s/^[^!]*!//
10455:repl
10456t repl
10457s/'"$ac_delim"'$//
10458t delim
10459:nl
10460h
6fb6bd15 10461s/\(.\{148\}\)..*/\1/
7083c021
AC
10462t more1
10463s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10464p
10465n
10466b repl
10467:more1
10468s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10469p
10470g
10471s/.\{148\}//
10472t nl
10473:delim
10474h
6fb6bd15 10475s/\(.\{148\}\)..*/\1/
7083c021
AC
10476t more2
10477s/["\\]/\\&/g; s/^/"/; s/$/"/
10478p
10479b
10480:more2
10481s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10482p
10483g
10484s/.\{148\}//
10485t delim
10486' <conf$$subs.awk | sed '
10487/^[^""]/{
10488 N
10489 s/\n//
10490}
10491' >>$CONFIG_STATUS || ac_write_fail=1
10492rm -f conf$$subs.awk
10493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10494_ACAWK
b6d0720c 10495cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7083c021
AC
10496 for (key in S) S_is_set[key] = 1
10497 FS = "\a"
212380e3 10498
7083c021
AC
10499}
10500{
10501 line = $ 0
10502 nfields = split(line, field, "@")
10503 substed = 0
10504 len = length(field[1])
10505 for (i = 2; i < nfields; i++) {
10506 key = field[i]
10507 keylen = length(key)
10508 if (S_is_set[key]) {
10509 value = S[key]
10510 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10511 len += length(value) + length(field[++i])
10512 substed = 1
10513 } else
10514 len += 1 + keylen
10515 }
631ef239 10516
7083c021
AC
10517 print line
10518}
10519
10520_ACAWK
631ef239 10521_ACEOF
7083c021
AC
10522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10523if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10524 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10525else
10526 cat
b6d0720c
AC
10527fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10528 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
212380e3 10529_ACEOF
631ef239 10530
b6d0720c
AC
10531# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10532# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
631ef239
AC
10533# trailing colons and then remove the whole line if VPATH becomes empty
10534# (actually we leave an empty line to preserve line numbers).
10535if test "x$srcdir" = x.; then
b6d0720c
AC
10536 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10537h
10538s///
10539s/^/:/
10540s/[ ]*$/:/
10541s/:\$(srcdir):/:/g
10542s/:\${srcdir}:/:/g
10543s/:@srcdir@:/:/g
10544s/^:*//
631ef239 10545s/:*$//
b6d0720c
AC
10546x
10547s/\(=[ ]*\).*/\1/
10548G
10549s/\n//
631ef239
AC
10550s/^[^=]*=[ ]*$//
10551}'
10552fi
10553
7083c021 10554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10555fi # test -n "$CONFIG_FILES"
10556
7083c021
AC
10557# Set up the scripts for CONFIG_HEADERS section.
10558# No need to generate them if there are no CONFIG_HEADERS.
10559# This happens for instance with `./config.status Makefile'.
10560if test -n "$CONFIG_HEADERS"; then
b6d0720c 10561cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7083c021
AC
10562BEGIN {
10563_ACEOF
10564
10565# Transform confdefs.h into an awk script `defines.awk', embedded as
10566# here-document in config.status, that substitutes the proper values into
10567# config.h.in to produce config.h.
10568
10569# Create a delimiter string that does not exist in confdefs.h, to ease
10570# handling of long lines.
10571ac_delim='%!_!# '
10572for ac_last_try in false false :; do
b6d0720c
AC
10573 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10574 if test -z "$ac_tt"; then
7083c021
AC
10575 break
10576 elif $ac_last_try; then
b6d0720c 10577 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7083c021
AC
10578 else
10579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10580 fi
10581done
10582
10583# For the awk script, D is an array of macro values keyed by name,
10584# likewise P contains macro parameters if any. Preserve backslash
10585# newline sequences.
10586
10587ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10588sed -n '
10589s/.\{148\}/&'"$ac_delim"'/g
10590t rset
10591:rset
10592s/^[ ]*#[ ]*define[ ][ ]*/ /
10593t def
10594d
10595:def
10596s/\\$//
10597t bsnl
10598s/["\\]/\\&/g
10599s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10600D["\1"]=" \3"/p
10601s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10602d
10603:bsnl
10604s/["\\]/\\&/g
10605s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10606D["\1"]=" \3\\\\\\n"\\/p
10607t cont
10608s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10609t cont
10610d
10611:cont
10612n
10613s/.\{148\}/&'"$ac_delim"'/g
10614t clear
10615:clear
10616s/\\$//
10617t bsnlc
10618s/["\\]/\\&/g; s/^/"/; s/$/"/p
10619d
10620:bsnlc
10621s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10622b cont
10623' <confdefs.h | sed '
10624s/'"$ac_delim"'/"\\\
10625"/g' >>$CONFIG_STATUS || ac_write_fail=1
10626
10627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10628 for (key in D) D_is_set[key] = 1
10629 FS = "\a"
10630}
10631/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10632 line = \$ 0
10633 split(line, arg, " ")
10634 if (arg[1] == "#") {
10635 defundef = arg[2]
10636 mac1 = arg[3]
10637 } else {
10638 defundef = substr(arg[1], 2)
10639 mac1 = arg[2]
10640 }
10641 split(mac1, mac2, "(") #)
10642 macro = mac2[1]
10643 prefix = substr(line, 1, index(line, defundef) - 1)
10644 if (D_is_set[macro]) {
10645 # Preserve the white space surrounding the "#".
10646 print prefix "define", macro P[macro] D[macro]
10647 next
10648 } else {
10649 # Replace #undef with comments. This is necessary, for example,
10650 # in the case of _POSIX_SOURCE, which is predefined and required
10651 # on some systems where configure will not decide to define it.
10652 if (defundef == "undef") {
10653 print "/*", prefix defundef, macro, "*/"
10654 next
10655 }
10656 }
10657}
10658{ print }
10659_ACAWK
10660_ACEOF
10661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b6d0720c 10662 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7083c021
AC
10663fi # test -n "$CONFIG_HEADERS"
10664
631ef239 10665
9f9b7042 10666eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7083c021
AC
10667shift
10668for ac_tag
631ef239
AC
10669do
10670 case $ac_tag in
10671 :[FHLC]) ac_mode=$ac_tag; continue;;
10672 esac
10673 case $ac_mode$ac_tag in
10674 :[FHL]*:*);;
b6d0720c 10675 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
631ef239
AC
10676 :[FH]-) ac_tag=-:-;;
10677 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
212380e3 10678 esac
631ef239
AC
10679 ac_save_IFS=$IFS
10680 IFS=:
10681 set x $ac_tag
10682 IFS=$ac_save_IFS
10683 shift
10684 ac_file=$1
10685 shift
212380e3 10686
631ef239
AC
10687 case $ac_mode in
10688 :L) ac_source=$1;;
10689 :[FH])
10690 ac_file_inputs=
10691 for ac_f
10692 do
10693 case $ac_f in
b6d0720c 10694 -) ac_f="$ac_tmp/stdin";;
631ef239
AC
10695 *) # Look for the file first in the build tree, then in the source tree
10696 # (if the path is not absolute). The absolute path cannot be DOS-style,
10697 # because $ac_f cannot contain `:'.
10698 test -f "$ac_f" ||
10699 case $ac_f in
10700 [\\/$]*) false;;
10701 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10702 esac ||
b6d0720c 10703 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
631ef239 10704 esac
7083c021
AC
10705 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10706 as_fn_append ac_file_inputs " '$ac_f'"
631ef239
AC
10707 done
10708
10709 # Let's still pretend it is `configure' which instantiates (i.e., don't
10710 # use $as_me), people would be surprised to read:
10711 # /* config.h. Generated by config.status. */
7083c021
AC
10712 configure_input='Generated from '`
10713 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10714 `' by configure.'
631ef239
AC
10715 if test x"$ac_file" != x-; then
10716 configure_input="$ac_file. $configure_input"
7083c021
AC
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10718$as_echo "$as_me: creating $ac_file" >&6;}
631ef239 10719 fi
7083c021
AC
10720 # Neutralize special characters interpreted by sed in replacement strings.
10721 case $configure_input in #(
10722 *\&* | *\|* | *\\* )
10723 ac_sed_conf_input=`$as_echo "$configure_input" |
10724 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10725 *) ac_sed_conf_input=$configure_input;;
10726 esac
631ef239
AC
10727
10728 case $ac_tag in
b6d0720c
AC
10729 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
631ef239
AC
10731 esac
10732 ;;
10733 esac
10734
10735 ac_dir=`$as_dirname -- "$ac_file" ||
212380e3
AC
10736$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10737 X"$ac_file" : 'X\(//\)[^/]' \| \
10738 X"$ac_file" : 'X\(//\)$' \| \
631ef239 10739 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 10740$as_echo X"$ac_file" |
631ef239
AC
10741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10742 s//\1/
10743 q
10744 }
10745 /^X\(\/\/\)[^/].*/{
10746 s//\1/
10747 q
10748 }
10749 /^X\(\/\/\)$/{
10750 s//\1/
10751 q
10752 }
10753 /^X\(\/\).*/{
10754 s//\1/
10755 q
10756 }
10757 s/.*/./; q'`
7083c021 10758 as_dir="$ac_dir"; as_fn_mkdir_p
212380e3
AC
10759 ac_builddir=.
10760
631ef239
AC
10761case "$ac_dir" in
10762.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10763*)
7083c021 10764 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 10765 # A ".." for each directory in $ac_dir_suffix.
7083c021 10766 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
10767 case $ac_top_builddir_sub in
10768 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10769 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10770 esac ;;
10771esac
10772ac_abs_top_builddir=$ac_pwd
10773ac_abs_builddir=$ac_pwd$ac_dir_suffix
10774# for backward compatibility:
10775ac_top_builddir=$ac_top_build_prefix
212380e3
AC
10776
10777case $srcdir in
631ef239 10778 .) # We are building in place.
212380e3 10779 ac_srcdir=.
631ef239
AC
10780 ac_top_srcdir=$ac_top_builddir_sub
10781 ac_abs_top_srcdir=$ac_pwd ;;
10782 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 10783 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
10784 ac_top_srcdir=$srcdir
10785 ac_abs_top_srcdir=$srcdir ;;
10786 *) # Relative name.
10787 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10788 ac_top_srcdir=$ac_top_build_prefix$srcdir
10789 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 10790esac
631ef239 10791ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
212380e3 10792
212380e3 10793
631ef239
AC
10794 case $ac_mode in
10795 :F)
10796 #
10797 # CONFIG_FILE
10798 #
212380e3
AC
10799
10800 case $INSTALL in
10801 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
631ef239 10802 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
212380e3 10803 esac
631ef239 10804_ACEOF
212380e3 10805
7083c021 10806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10807# If the template does not know about datarootdir, expand it.
10808# FIXME: This hack should be removed a few years after 2.60.
10809ac_datarootdir_hack=; ac_datarootdir_seen=
7083c021
AC
10810ac_sed_dataroot='
10811/datarootdir/ {
631ef239
AC
10812 p
10813 q
10814}
10815/@datadir@/p
10816/@docdir@/p
10817/@infodir@/p
10818/@localedir@/p
7083c021
AC
10819/@mandir@/p'
10820case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
631ef239
AC
10821*datarootdir*) ac_datarootdir_seen=yes;;
10822*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7083c021
AC
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10824$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
631ef239 10825_ACEOF
7083c021 10826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239
AC
10827 ac_datarootdir_hack='
10828 s&@datadir@&$datadir&g
10829 s&@docdir@&$docdir&g
10830 s&@infodir@&$infodir&g
10831 s&@localedir@&$localedir&g
10832 s&@mandir@&$mandir&g
7083c021 10833 s&\\\${datarootdir}&$datarootdir&g' ;;
631ef239 10834esac
212380e3 10835_ACEOF
631ef239
AC
10836
10837# Neutralize VPATH when `$srcdir' = `.'.
10838# Shell code in configure.ac might set extrasub.
10839# FIXME: do we really want to maintain this feature?
7083c021
AC
10840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10841ac_sed_extra="$ac_vpsub
212380e3
AC
10842$extrasub
10843_ACEOF
7083c021 10844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3
AC
10845:t
10846/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7083c021 10847s|@configure_input@|$ac_sed_conf_input|;t t
631ef239 10848s&@top_builddir@&$ac_top_builddir_sub&;t t
7083c021 10849s&@top_build_prefix@&$ac_top_build_prefix&;t t
631ef239
AC
10850s&@srcdir@&$ac_srcdir&;t t
10851s&@abs_srcdir@&$ac_abs_srcdir&;t t
10852s&@top_srcdir@&$ac_top_srcdir&;t t
10853s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10854s&@builddir@&$ac_builddir&;t t
10855s&@abs_builddir@&$ac_abs_builddir&;t t
10856s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10857s&@INSTALL@&$ac_INSTALL&;t t
10858$ac_datarootdir_hack
7083c021 10859"
b6d0720c
AC
10860eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10861 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
10862
10863test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b6d0720c
AC
10864 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10865 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10866 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7083c021 10867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 10868which seems to be undefined. Please make sure it is defined" >&5
7083c021 10869$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 10870which seems to be undefined. Please make sure it is defined" >&2;}
631ef239 10871
b6d0720c 10872 rm -f "$ac_tmp/stdin"
212380e3 10873 case $ac_file in
b6d0720c
AC
10874 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10875 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7083c021 10876 esac \
b6d0720c 10877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
10878 ;;
10879 :H)
10880 #
10881 # CONFIG_HEADER
10882 #
212380e3 10883 if test x"$ac_file" != x-; then
7083c021
AC
10884 {
10885 $as_echo "/* $configure_input */" \
b6d0720c
AC
10886 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10887 } >"$ac_tmp/config.h" \
10888 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10889 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7083c021
AC
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10891$as_echo "$as_me: $ac_file is unchanged" >&6;}
212380e3 10892 else
7083c021 10893 rm -f "$ac_file"
b6d0720c
AC
10894 mv "$ac_tmp/config.h" "$ac_file" \
10895 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
212380e3
AC
10896 fi
10897 else
7083c021 10898 $as_echo "/* $configure_input */" \
b6d0720c
AC
10899 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10900 || as_fn_error $? "could not create -" "$LINENO" 5
212380e3 10901 fi
631ef239
AC
10902 ;;
10903
9f9b7042
NPB
10904 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10905$as_echo "$as_me: executing $ac_file commands" >&6;}
10906 ;;
631ef239
AC
10907 esac
10908
9f9b7042
NPB
10909
10910 case $ac_file$ac_mode in
10911 "tools/genssl.sh_chmod":C) chmod 755 tools/genssl.sh ;;
10912
10913 esac
631ef239 10914done # for ac_tag
212380e3 10915
212380e3 10916
7083c021 10917as_fn_exit 0
212380e3 10918_ACEOF
212380e3
AC
10919ac_clean_files=$ac_clean_files_save
10920
7083c021 10921test $ac_write_fail = 0 ||
b6d0720c 10922 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7083c021 10923
212380e3
AC
10924
10925# configure is writing to config.log, and then calls config.status.
10926# config.status does its own redirection, appending to config.log.
10927# Unfortunately, on DOS this fails, as config.log is still kept open
10928# by configure, so config.status won't be able to write to it; its
10929# output is simply discarded. So we exec the FD to /dev/null,
10930# effectively closing config.log, so it can be properly (re)opened and
10931# appended to by config.status. When coming back to configure, we
10932# need to make the FD available again.
10933if test "$no_create" != yes; then
10934 ac_cs_success=:
10935 ac_config_status_args=
10936 test "$silent" = yes &&
10937 ac_config_status_args="$ac_config_status_args --quiet"
10938 exec 5>/dev/null
10939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10940 exec 5>>config.log
10941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10942 # would make configure fail if this is the last instruction.
b6d0720c 10943 $ac_cs_success || as_fn_exit 1
212380e3
AC
10944fi
10945
b676ea3b
AC
10946#
10947# CONFIG_SUBDIRS section.
10948#
10949if test "$no_recursion" != yes; then
10950
7083c021
AC
10951 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10952 # so they do not pile up.
b676ea3b
AC
10953 ac_sub_configure_args=
10954 ac_prev=
10955 eval "set x $ac_configure_args"
10956 shift
10957 for ac_arg
10958 do
10959 if test -n "$ac_prev"; then
10960 ac_prev=
10961 continue
10962 fi
10963 case $ac_arg in
10964 -cache-file | --cache-file | --cache-fil | --cache-fi \
10965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10966 ac_prev=cache_file ;;
10967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10969 | --c=*)
10970 ;;
10971 --config-cache | -C)
10972 ;;
10973 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10974 ac_prev=srcdir ;;
10975 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10976 ;;
10977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10978 ac_prev=prefix ;;
10979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10980 ;;
7083c021
AC
10981 --disable-option-checking)
10982 ;;
b676ea3b
AC
10983 *)
10984 case $ac_arg in
7083c021 10985 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b676ea3b 10986 esac
7083c021 10987 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
b676ea3b
AC
10988 esac
10989 done
10990
10991 # Always prepend --prefix to ensure using the same prefix
10992 # in subdir configurations.
10993 ac_arg="--prefix=$prefix"
10994 case $ac_arg in
7083c021 10995 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b676ea3b
AC
10996 esac
10997 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10998
10999 # Pass --silent
11000 if test "$silent" = yes; then
11001 ac_sub_configure_args="--silent $ac_sub_configure_args"
11002 fi
11003
7083c021
AC
11004 # Always prepend --disable-option-checking to silence warnings, since
11005 # different subdirs can have different --enable and --with options.
11006 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11007
b676ea3b
AC
11008 ac_popdir=`pwd`
11009 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11010
11011 # Do not complain, so a configure script can configure whichever
11012 # parts of a large source tree are present.
11013 test -d "$srcdir/$ac_dir" || continue
11014
11015 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
7083c021
AC
11016 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11017 $as_echo "$ac_msg" >&6
11018 as_dir="$ac_dir"; as_fn_mkdir_p
b676ea3b
AC
11019 ac_builddir=.
11020
11021case "$ac_dir" in
11022.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11023*)
7083c021 11024 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
b676ea3b 11025 # A ".." for each directory in $ac_dir_suffix.
7083c021 11026 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
b676ea3b
AC
11027 case $ac_top_builddir_sub in
11028 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11029 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11030 esac ;;
11031esac
11032ac_abs_top_builddir=$ac_pwd
11033ac_abs_builddir=$ac_pwd$ac_dir_suffix
11034# for backward compatibility:
11035ac_top_builddir=$ac_top_build_prefix
11036
11037case $srcdir in
11038 .) # We are building in place.
11039 ac_srcdir=.
11040 ac_top_srcdir=$ac_top_builddir_sub
11041 ac_abs_top_srcdir=$ac_pwd ;;
11042 [\\/]* | ?:[\\/]* ) # Absolute name.
11043 ac_srcdir=$srcdir$ac_dir_suffix;
11044 ac_top_srcdir=$srcdir
11045 ac_abs_top_srcdir=$srcdir ;;
11046 *) # Relative name.
11047 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11048 ac_top_srcdir=$ac_top_build_prefix$srcdir
11049 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11050esac
11051ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11052
11053
11054 cd "$ac_dir"
11055
11056 # Check for guested configure; otherwise get Cygnus style configure.
11057 if test -f "$ac_srcdir/configure.gnu"; then
11058 ac_sub_configure=$ac_srcdir/configure.gnu
11059 elif test -f "$ac_srcdir/configure"; then
11060 ac_sub_configure=$ac_srcdir/configure
11061 elif test -f "$ac_srcdir/configure.in"; then
11062 # This should be Cygnus configure.
11063 ac_sub_configure=$ac_aux_dir/configure
11064 else
7083c021
AC
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11066$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
b676ea3b
AC
11067 ac_sub_configure=
11068 fi
11069
11070 # The recursion is here.
11071 if test -n "$ac_sub_configure"; then
11072 # Make the cache file name correct relative to the subdirectory.
11073 case $cache_file in
11074 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11075 *) # Relative name.
11076 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11077 esac
11078
7083c021
AC
11079 { $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
11080$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
11081 # The eval makes quoting arguments work.
11082 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11083 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
b6d0720c 11084 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
b676ea3b
AC
11085 fi
11086
11087 cd "$ac_popdir"
11088 done
11089fi
7083c021
AC
11090if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11092$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11093fi
b676ea3b 11094
212380e3
AC
11095
11096if test "$cf_openssl_version_ok" = yes; then
11097 openssl="yes"
11098else
11099 openssl="no"
11100fi
11101
11102if test "$shared_modules" = yes; then
11103 modules=shared
11104else
11105 modules=static
11106fi
11107
11108echo "
b6d0720c 11109Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
212380e3
AC
11110 Install directory : $prefix
11111
11112 Ziplinks : $zlib
11113 OpenSSL : $openssl
212380e3
AC
11114 Socket Engine : $SELECT_TYPE
11115 Small network : $small_net
11116 Block allocator : $balloc
212380e3
AC
11117
11118 Nickname length : $NICKLEN
11119 Topic length : $TOPICLEN
11120
b6d0720c 11121Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.
212380e3 11122"