]> jfr.im git - solanum.git/blame - configure
server: Don't read beyond the bounds of ServerInfo.ip and ServerInfo.ip6.
[solanum.git] / configure
CommitLineData
212380e3
AC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
2eff3833 3# Generated by GNU Autoconf 2.69 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#
2eff3833 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
6fb6bd15 9#
7083c021 10#
212380e3
AC
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
7083c021
AC
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
212380e3 16
631ef239
AC
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
7083c021 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
20 emulate sh
21 NULLCMD=:
7083c021 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
631ef239
AC
25 setopt NO_GLOB_SUBST
26else
7083c021
AC
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
631ef239 32esac
631ef239
AC
33fi
34
35
7083c021
AC
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
631ef239 56 else
7083c021
AC
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 69 fi
7083c021
AC
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
212380e3 72fi
212380e3 73
7083c021
AC
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
212380e3
AC
81fi
82
83
631ef239
AC
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
631ef239
AC
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
b6d0720c 92as_myself=
7083c021 93case $0 in #((
631ef239
AC
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
7083c021
AC
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
631ef239
AC
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
7083c021
AC
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
631ef239
AC
114fi
115
7083c021
AC
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 123done
212380e3
AC
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
7083c021
AC
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
2eff3833
JT
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
7083c021
AC
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
2eff3833
JT
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
7083c021
AC
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212380e3 213do
7083c021
AC
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
2eff3833
JT
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
7083c021
AC
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
212380e3 268 else
7083c021
AC
269 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
270$0: including any error possibly output before this
271$0: message. Then install a modern shell, or manually run
272$0: the script under such a shell if you do have one."
212380e3 273 fi
7083c021
AC
274 exit 1
275fi
276fi
277fi
278SHELL=${CONFIG_SHELL-/bin/sh}
279export SHELL
280# Unset more variables known to interfere with behavior of common tools.
281CLICOLOR_FORCE= GREP_OPTIONS=
282unset CLICOLOR_FORCE GREP_OPTIONS
283
284## --------------------- ##
285## M4sh Shell Functions. ##
286## --------------------- ##
287# as_fn_unset VAR
288# ---------------
289# Portably unset VAR.
290as_fn_unset ()
291{
292 { eval $1=; unset $1;}
293}
294as_unset=as_fn_unset
295
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_fn_set_status ()
300{
301 return $1
302} # as_fn_set_status
303
304# as_fn_exit STATUS
305# -----------------
306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307as_fn_exit ()
308{
309 set +e
310 as_fn_set_status $1
311 exit $1
312} # as_fn_exit
313
314# as_fn_mkdir_p
315# -------------
316# Create "$as_dir" as a directory, including parents if necessary.
317as_fn_mkdir_p ()
318{
319
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336$as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
339 q
340 }
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\).*/{
350 s//\1/
351 q
352 }
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
358
359
360} # as_fn_mkdir_p
2eff3833
JT
361
362# as_fn_executable_p FILE
363# -----------------------
364# Test if FILE is an executable regular file.
365as_fn_executable_p ()
366{
367 test -f "$1" && test -x "$1"
368} # as_fn_executable_p
7083c021
AC
369# as_fn_append VAR VALUE
370# ----------------------
371# Append the text in VALUE to the end of the definition contained in VAR. Take
372# advantage of any shell optimizations that allow amortized linear growth over
373# repeated appends, instead of the typical quadratic growth present in naive
374# implementations.
375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
377 {
378 eval $1+=\$2
379 }'
380else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385fi # as_fn_append
386
387# as_fn_arith ARG...
388# ------------------
389# Perform arithmetic evaluation on the ARGs, and store the result in the
390# global $as_val. Take advantage of shells that can avoid forks. The arguments
391# must be portable across $(()) and expr.
392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
394 {
395 as_val=$(( $* ))
396 }'
397else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402fi # as_fn_arith
403
404
b6d0720c
AC
405# as_fn_error STATUS ERROR [LINENO LOG_FD]
406# ----------------------------------------
7083c021
AC
407# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 409# script with STATUS, using 1 if that was 0.
7083c021
AC
410as_fn_error ()
411{
b6d0720c
AC
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7083c021 416 fi
b6d0720c 417 $as_echo "$as_me: error: $2" >&2
7083c021
AC
418 as_fn_exit $as_status
419} # as_fn_error
212380e3 420
631ef239
AC
421if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
423 as_expr=expr
424else
425 as_expr=false
426fi
427
631ef239 428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
429 as_basename=basename
430else
431 as_basename=false
432fi
433
7083c021
AC
434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436else
437 as_dirname=false
438fi
212380e3 439
631ef239 440as_me=`$as_basename -- "$0" ||
212380e3
AC
441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
631ef239 443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 444$as_echo X/"$0" |
631ef239
AC
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
447 q
448 }
449 /^X\/\(\/\/\)$/{
450 s//\1/
451 q
452 }
453 /^X\/\(\/\).*/{
454 s//\1/
455 q
456 }
457 s/.*/./; q'`
212380e3 458
7083c021
AC
459# Avoid depending upon Character Ranges.
460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463as_cr_digits='0123456789'
464as_cr_alnum=$as_cr_Letters$as_cr_digits
212380e3 465
212380e3 466
7083c021
AC
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
473 p
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
479 b
480 :lineno
481 N
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
212380e3 489
2eff3833
JT
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
7083c021
AC
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
631ef239 500}
212380e3 501
7083c021
AC
502ECHO_C= ECHO_N= ECHO_T=
503case `echo -n x` in #(((((
504-n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
511*)
512 ECHO_N='-n';;
513esac
631ef239 514
7083c021
AC
515rm -f conf$$ conf$$.exe conf$$.file
516if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
521fi
522if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2eff3833 528 # In both cases, we have to default to `cp -pR'.
7083c021 529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2eff3833 530 as_ln_s='cp -pR'
7083c021
AC
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
2eff3833 534 as_ln_s='cp -pR'
7083c021 535 fi
631ef239 536else
2eff3833 537 as_ln_s='cp -pR'
631ef239 538fi
7083c021
AC
539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540rmdir conf$$.dir 2>/dev/null
631ef239 541
7083c021
AC
542if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
631ef239
AC
547fi
548
2eff3833
JT
549as_test_x='test -x'
550as_executable_p=as_fn_executable_p
631ef239 551
7083c021
AC
552# Sed expression to map a string onto a valid CPP name.
553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
631ef239 554
7083c021
AC
555# Sed expression to map a string onto a valid variable name.
556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
631ef239
AC
557
558
6fb6bd15
AC
559test -n "$DJDIR" || exec 7<&0 </dev/null
560exec 6>&1
631ef239 561
7083c021 562# Name of the host.
b6d0720c 563# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
7083c021
AC
564# so uname gets run too.
565ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
631ef239 566
7083c021
AC
567#
568# Initializations.
569#
570ac_default_prefix=/usr/local
571ac_clean_files=
572ac_config_libobj_dir=.
573LIBOBJS=
574cross_compiling=no
575subdirs=
576MFLAGS=
577MAKEFLAGS=
212380e3 578
212380e3
AC
579# Identity of this package.
580PACKAGE_NAME='charybdis'
581PACKAGE_TARNAME='charybdis'
dc9aebf4
JT
582PACKAGE_VERSION='3.5.0-dev'
583PACKAGE_STRING='charybdis 3.5.0-dev'
212380e3 584PACKAGE_BUGREPORT=''
7083c021 585PACKAGE_URL=''
212380e3
AC
586
587ac_default_prefix=$HOME/ircd
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
631ef239 591#ifdef HAVE_SYS_TYPES_H
212380e3
AC
592# include <sys/types.h>
593#endif
631ef239 594#ifdef HAVE_SYS_STAT_H
212380e3
AC
595# include <sys/stat.h>
596#endif
631ef239 597#ifdef STDC_HEADERS
212380e3
AC
598# include <stdlib.h>
599# include <stddef.h>
600#else
631ef239 601# ifdef HAVE_STDLIB_H
212380e3
AC
602# include <stdlib.h>
603# endif
604#endif
631ef239
AC
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
212380e3
AC
607# include <memory.h>
608# endif
609# include <string.h>
610#endif
631ef239 611#ifdef HAVE_STRINGS_H
212380e3
AC
612# include <strings.h>
613#endif
631ef239 614#ifdef HAVE_INTTYPES_H
212380e3 615# include <inttypes.h>
212380e3 616#endif
631ef239
AC
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
212380e3
AC
621# include <unistd.h>
622#endif"
623
1db8e007 624enable_option_checking=no
7083c021 625ac_subst_vars='LTLIBOBJS
631ef239 626LIBOBJS
7083c021
AC
627SEDOBJ
628IRC_CFLAGS
629PICFLAGS
630SSL_LIBS
631SSL_INCLUDES
632SSL_SRCS_ENABLE
633MOD_TARGET
634MODULES_LIBS
635SELECT_TYPE
9f9b7042
NPB
636PROGRAM_PREFIX
637PKGRUNDIR
7083c021
AC
638moduledir
639MODULE_DIR
640helpdir
641HELP_DIR
642logdir
643LOG_DIR
7083c021 644ETC_DIR
74ab6be0 645SQLITE_SRC
a5471f24 646SQLITE_INCLUDES
497e30a0 647SQLITE_LD
a5471f24
LS
648SQLITE_LIBS
649SQLITE_CFLAGS
650PKG_CONFIG_LIBDIR
651PKG_CONFIG_PATH
652PKG_CONFIG
7083c021
AC
653ZLIB_LD
654ENCSPEED
655ALLOCA
656VICONF
657CRYPT_LIB
9f9b7042
NPB
658PKGLIBEXECDIR
659pkglibexecdir
660PKGLOCALSTATEDIR
661pkglocalstatedir
662pkgrundir
663rundir
664pkglibdir
7083c021
AC
665LEXLIB
666LEX_OUTPUT_ROOT
667LEX
668YFLAGS
669YACC
670TOUCH
671RANLIB
672LD
673AR
674SED
675LN
676MV
677CP
678RM
679INSTALL_DATA
680INSTALL_SCRIPT
681INSTALL_PROGRAM
682SET_MAKE
683STDOUT
684MAKEDEPEND
685MKDEP
1db8e007 686subdirs
7083c021
AC
687EGREP
688GREP
689CPP
690OBJEXT
691EXEEXT
692ac_ct_CC
693CPPFLAGS
694LDFLAGS
695CFLAGS
696CC
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
212380e3 735ac_subst_files=''
7083c021
AC
736ac_user_opts='
737enable_option_checking
9f9b7042 738enable_fhs_paths
7083c021
AC
739enable_ipv6
740enable_openssl
741with_zlib_path
742enable_zlib
a6ef3156 743with_shared_sqlite
7083c021
AC
744enable_ports
745enable_poll
746enable_select
747enable_kqueue
748enable_epoll
749with_confdir
750with_logdir
751with_helpdir
752with_moduledir
9f9b7042
NPB
753with_rundir
754with_program_prefix
b6d0720c
AC
755with_custom_branding
756with_custom_version
7083c021
AC
757enable_assert
758enable_iodebug
759enable_profile
760enable_balloc
761enable_small_net
762with_nicklen
763with_topiclen
764enable_warnings
765'
631ef239
AC
766 ac_precious_vars='build_alias
767host_alias
768target_alias
769CC
770CFLAGS
771LDFLAGS
772LIBS
773CPPFLAGS
774CPP
775YACC
a5471f24
LS
776YFLAGS
777PKG_CONFIG
778PKG_CONFIG_PATH
779PKG_CONFIG_LIBDIR
780SQLITE_CFLAGS
781SQLITE_LIBS'
1db8e007 782ac_subdirs_all='libratbox'
212380e3
AC
783
784# Initialize some variables set by options.
785ac_init_help=
786ac_init_version=false
7083c021
AC
787ac_unrecognized_opts=
788ac_unrecognized_sep=
212380e3
AC
789# The variables have the same names as the options, with
790# dashes changed to underlines.
791cache_file=/dev/null
792exec_prefix=NONE
793no_create=
794no_recursion=
795prefix=NONE
796program_prefix=NONE
797program_suffix=NONE
798program_transform_name=s,x,x,
799silent=
800site=
801srcdir=
802verbose=
803x_includes=NONE
804x_libraries=NONE
805
806# Installation directory options.
807# These are left unexpanded so users can "make install exec_prefix=/foo"
808# and all the variables that are supposed to be based on exec_prefix
809# by default will actually change.
810# Use braces instead of parens because sh, perl, etc. also accept them.
631ef239 811# (The list follows the same order as the GNU Coding Standards.)
212380e3
AC
812bindir='${exec_prefix}/bin'
813sbindir='${exec_prefix}/sbin'
814libexecdir='${exec_prefix}/libexec'
631ef239
AC
815datarootdir='${prefix}/share'
816datadir='${datarootdir}'
212380e3
AC
817sysconfdir='${prefix}/etc'
818sharedstatedir='${prefix}/com'
819localstatedir='${prefix}/var'
212380e3
AC
820includedir='${prefix}/include'
821oldincludedir='/usr/include'
631ef239
AC
822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823infodir='${datarootdir}/info'
824htmldir='${docdir}'
825dvidir='${docdir}'
826pdfdir='${docdir}'
827psdir='${docdir}'
828libdir='${exec_prefix}/lib'
829localedir='${datarootdir}/locale'
830mandir='${datarootdir}/man'
212380e3
AC
831
832ac_prev=
631ef239 833ac_dashdash=
212380e3
AC
834for ac_option
835do
836 # If the previous option needs an argument, assign it.
837 if test -n "$ac_prev"; then
631ef239 838 eval $ac_prev=\$ac_option
212380e3
AC
839 ac_prev=
840 continue
841 fi
842
631ef239 843 case $ac_option in
b6d0720c
AC
844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 *=) ac_optarg= ;;
846 *) ac_optarg=yes ;;
631ef239 847 esac
212380e3
AC
848
849 # Accept the important Cygnus configure options, so we can diagnose typos.
850
631ef239
AC
851 case $ac_dashdash$ac_option in
852 --)
853 ac_dashdash=yes ;;
212380e3
AC
854
855 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 ac_prev=bindir ;;
857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 bindir=$ac_optarg ;;
859
860 -build | --build | --buil | --bui | --bu)
861 ac_prev=build_alias ;;
862 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863 build_alias=$ac_optarg ;;
864
865 -cache-file | --cache-file | --cache-fil | --cache-fi \
866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867 ac_prev=cache_file ;;
868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870 cache_file=$ac_optarg ;;
871
872 --config-cache | -C)
873 cache_file=config.cache ;;
874
631ef239 875 -datadir | --datadir | --datadi | --datad)
212380e3 876 ac_prev=datadir ;;
631ef239 877 -datadir=* | --datadir=* | --datadi=* | --datad=*)
212380e3
AC
878 datadir=$ac_optarg ;;
879
631ef239
AC
880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881 | --dataroo | --dataro | --datar)
882 ac_prev=datarootdir ;;
883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885 datarootdir=$ac_optarg ;;
886
212380e3 887 -disable-* | --disable-*)
7083c021 888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
212380e3 889 # Reject names that are not valid shell variable names.
7083c021 890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 891 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
895 *"
896"enable_$ac_useropt"
897"*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=no ;;
631ef239
AC
902
903 -docdir | --docdir | --docdi | --doc | --do)
904 ac_prev=docdir ;;
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 docdir=$ac_optarg ;;
907
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 ac_prev=dvidir ;;
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 dvidir=$ac_optarg ;;
212380e3
AC
912
913 -enable-* | --enable-*)
7083c021 914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
212380e3 915 # Reject names that are not valid shell variable names.
7083c021 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 917 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922"enable_$ac_useropt"
923"*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=\$ac_optarg ;;
212380e3
AC
928
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
936 exec_prefix=$ac_optarg ;;
937
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
940 with_gas=yes ;;
941
942 -help | --help | --hel | --he | -h)
943 ac_init_help=long ;;
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
948
949 -host | --host | --hos | --ho)
950 ac_prev=host_alias ;;
951 -host=* | --host=* | --hos=* | --ho=*)
952 host_alias=$ac_optarg ;;
953
631ef239
AC
954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 ac_prev=htmldir ;;
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 | --ht=*)
958 htmldir=$ac_optarg ;;
959
212380e3
AC
960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
965 includedir=$ac_optarg ;;
966
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 ac_prev=infodir ;;
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970 infodir=$ac_optarg ;;
971
972 -libdir | --libdir | --libdi | --libd)
973 ac_prev=libdir ;;
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 libdir=$ac_optarg ;;
976
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
982 libexecdir=$ac_optarg ;;
983
631ef239
AC
984 -localedir | --localedir | --localedi | --localed | --locale)
985 ac_prev=localedir ;;
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
988
212380e3 989 -localstatedir | --localstatedir | --localstatedi | --localstated \
631ef239 990 | --localstate | --localstat | --localsta | --localst | --locals)
212380e3
AC
991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631ef239 993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
212380e3
AC
994 localstatedir=$ac_optarg ;;
995
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 ac_prev=mandir ;;
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 mandir=$ac_optarg ;;
1000
1001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1003 with_fp=no ;;
1004
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n)
1007 no_create=yes ;;
1008
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 no_recursion=yes ;;
1012
1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020 oldincludedir=$ac_optarg ;;
1021
1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 ac_prev=prefix ;;
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025 prefix=$ac_optarg ;;
1026
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032 program_prefix=$ac_optarg ;;
1033
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039 program_suffix=$ac_optarg ;;
1040
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
1056 program_transform_name=$ac_optarg ;;
1057
631ef239
AC
1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 ac_prev=pdfdir ;;
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1062
1063 -psdir | --psdir | --psdi | --psd | --ps)
1064 ac_prev=psdir ;;
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 psdir=$ac_optarg ;;
1067
212380e3
AC
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 silent=yes ;;
1071
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
1076 sbindir=$ac_optarg ;;
1077
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
1087 sharedstatedir=$ac_optarg ;;
1088
1089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
1092 site=$ac_optarg ;;
1093
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1098
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1105
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1110
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1113
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1116
1117 -with-* | --with-*)
7083c021 1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
212380e3 1119 # Reject names that are not valid shell variable names.
7083c021 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1121 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126"with_$ac_useropt"
1127"*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=\$ac_optarg ;;
212380e3
AC
1132
1133 -without-* | --without-*)
7083c021 1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
212380e3 1135 # Reject names that are not valid shell variable names.
7083c021 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1137 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142"with_$ac_useropt"
1143"*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=no ;;
212380e3
AC
1148
1149 --x)
1150 # Obsolete; use --with-x.
1151 with_x=yes ;;
1152
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1159
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1166
b6d0720c
AC
1167 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1168Try \`$0 --help' for more information"
212380e3
AC
1169 ;;
1170
1171 *=*)
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
7083c021
AC
1174 case $ac_envvar in #(
1175 '' | [0-9]* | *[!_$as_cr_alnum]* )
b6d0720c 1176 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
7083c021 1177 esac
631ef239 1178 eval $ac_envvar=\$ac_optarg
212380e3
AC
1179 export $ac_envvar ;;
1180
1181 *)
1182 # FIXME: should be removed in autoconf 3.0.
7083c021 1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
212380e3 1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
7083c021 1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b6d0720c 1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
212380e3
AC
1187 ;;
1188
1189 esac
1190done
1191
1192if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b6d0720c 1194 as_fn_error $? "missing argument to $ac_option"
212380e3
AC
1195fi
1196
7083c021
AC
1197if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1199 no) ;;
b6d0720c 1200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
7083c021
AC
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 esac
1203fi
1204
1205# Check all directory arguments for consistency.
631ef239
AC
1206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
212380e3 1210do
631ef239 1211 eval ac_val=\$$ac_var
7083c021
AC
1212 # Remove trailing slashes.
1213 case $ac_val in
1214 */ )
1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\$ac_val;;
1217 esac
1218 # Be sure to have absolute directory names.
212380e3 1219 case $ac_val in
631ef239
AC
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
212380e3 1222 esac
b6d0720c 1223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
212380e3
AC
1224done
1225
1226# There might be people who depend on the old broken behavior: `$host'
1227# used to hold the argument of --host etc.
1228# FIXME: To remove some day.
1229build=$build_alias
1230host=$host_alias
1231target=$target_alias
1232
1233# FIXME: To remove some day.
1234if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
212380e3
AC
1237 elif test "x$build_alias" != "x$host_alias"; then
1238 cross_compiling=yes
1239 fi
1240fi
1241
1242ac_tool_prefix=
1243test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245test "$silent" = yes && exec 6>/dev/null
1246
1247
631ef239
AC
1248ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249ac_ls_di=`ls -di .` &&
1250ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b6d0720c 1251 as_fn_error $? "working directory cannot be determined"
631ef239 1252test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b6d0720c 1253 as_fn_error $? "pwd does not report name of working directory"
631ef239
AC
1254
1255
1256# Find the source files, if location was not specified.
1257if test -z "$srcdir"; then
212380e3 1258 ac_srcdir_defaulted=yes
631ef239 1259 # Try the directory containing this script, then the parent directory.
7083c021
AC
1260 ac_confdir=`$as_dirname -- "$as_myself" ||
1261$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265$as_echo X"$as_myself" |
631ef239
AC
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\).*/{
1279 s//\1/
1280 q
1281 }
1282 s/.*/./; q'`
212380e3 1283 srcdir=$ac_confdir
631ef239 1284 if test ! -r "$srcdir/$ac_unique_file"; then
212380e3
AC
1285 srcdir=..
1286 fi
1287else
1288 ac_srcdir_defaulted=no
1289fi
631ef239
AC
1290if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b6d0720c 1292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
212380e3 1293fi
631ef239
AC
1294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295ac_abs_confdir=`(
b6d0720c 1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
631ef239
AC
1297 pwd)`
1298# When building in place, set srcdir=.
1299if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301fi
1302# Remove unnecessary trailing slashes from srcdir.
1303# Double slashes in file names in object file debugging info
1304# mess up M-x gdb in Emacs.
1305case $srcdir in
1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307esac
1308for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313done
212380e3
AC
1314
1315#
1316# Report the --help message.
1317#
1318if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
dc9aebf4 1322\`configure' configures charybdis 3.5.0-dev to adapt to many kinds of systems.
212380e3
AC
1323
1324Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329Defaults for the options are specified in brackets.
1330
1331Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
b6d0720c 1336 -q, --quiet, --silent do not print \`checking ...' messages
212380e3
AC
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
212380e3
AC
1342Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
7083c021 1344 [$ac_default_prefix]
212380e3 1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
7083c021 1346 [PREFIX]
212380e3
AC
1347
1348By default, \`make install' will install all the files in
1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351for instance \`--prefix=\$HOME'.
1352
1353For better control, use the options below.
1354
1355Fine tuning of the installation directories:
7083c021
AC
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
212380e3
AC
1375_ACEOF
1376
1377 cat <<\_ACEOF
1378_ACEOF
1379fi
1380
1381if test -n "$ac_init_help"; then
1382 case $ac_init_help in
dc9aebf4 1383 short | recursive ) echo "Configuration of charybdis 3.5.0-dev:";;
212380e3
AC
1384 esac
1385 cat <<\_ACEOF
1386
1387Optional Features:
7083c021 1388 --disable-option-checking ignore unrecognized --enable/--with options
212380e3
AC
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6929cd01 1391 --enable-fhs-paths Use more FHS-like pathnames (for packagers).
212380e3 1392 --enable-ipv6 Enable IPv6 support
631ef239 1393 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
212380e3
AC
1394 --disable-openssl Disable OpenSSL support.
1395 --disable-zlib Disable ziplinks support
c1c5fdc4 1396 --enable-ports Force solaris I/O ports subsystem usage.
212380e3
AC
1397 --enable-poll Force poll() usage.
1398 --enable-select Force select() usage.
1399 --enable-kqueue Force kqueue() usage.
212380e3
AC
1400 --enable-epoll Force sys_epoll usage (Linux only).
1401 --enable-assert Enable assert(). Choose between soft(warnings) and
1402 hard(aborts the daemon)
1403 --enable-iodebug Enable IO Debugging hooks
1404 --enable-profile Enable profiling
1405 --disable-balloc Disable the block allocator.
212380e3 1406 --enable-small-net Enable small network support.
212380e3
AC
1407 --enable-warnings Enable all sorts of warnings for debugging.
1408
1409Optional Packages:
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1412 --with-zlib-path=DIR Path to libz.so for ziplinks support.
a6ef3156 1413 --with-shared-sqlite Use shared sqlite
634d4aad
NPB
1414 --with-confdir=DIR Directory to install config files [deprecated, use
1415 --sysconfdir instead].
212380e3
AC
1416 --with-logdir=DIR Directory where to write logfiles.
1417 --with-helpdir=DIR Directory to install help files.
1418 --with-moduledir=DIR Directory to install modules.
9f9b7042
NPB
1419 --with-rundir=DIR Directory in which to store pidfile.
1420 --with-program-prefix= If set, programs installed into PATH will be
1421 installed with names prefixed by this prefix.
b6d0720c
AC
1422 --with-custom-branding=NAME
1423 Custom branding name.
1424 --with-custom-version=NAME
1425 Custom version branding.
b583faf9 1426 --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default
cf533739 1427 31, max 50)
212380e3
AC
1428 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1429 390)
212380e3
AC
1430
1431Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
631ef239 1436 LIBS libraries to pass to the linker, e.g. -l<library>
6fb6bd15 1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
631ef239 1438 you have headers in a nonstandard directory <include dir>
212380e3 1439 CPP C preprocessor
b6d0720c
AC
1440 YACC The `Yet Another Compiler Compiler' implementation to use.
1441 Defaults to the first program found out of: `bison -y', `byacc',
1442 `yacc'.
631ef239
AC
1443 YFLAGS The list of arguments that will be passed by default to $YACC.
1444 This script will default YFLAGS to the empty string to avoid a
1445 default value of `-d' given by some make applications.
a5471f24
LS
1446 PKG_CONFIG path to pkg-config utility
1447 PKG_CONFIG_PATH
1448 directories to add to pkg-config's search path
1449 PKG_CONFIG_LIBDIR
1450 path overriding pkg-config's built-in search path
1451 SQLITE_CFLAGS
1452 C compiler flags for SQLITE, overriding pkg-config
1453 SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
212380e3
AC
1454
1455Use these variables to override the choices made by `configure' or to help
1456it to find libraries and programs with nonstandard names/locations.
1457
7083c021 1458Report bugs to the package provider.
212380e3 1459_ACEOF
631ef239 1460ac_status=$?
212380e3
AC
1461fi
1462
1463if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
212380e3 1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7083c021
AC
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468 continue
212380e3
AC
1469 ac_builddir=.
1470
631ef239
AC
1471case "$ac_dir" in
1472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473*)
7083c021 1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 1475 # A ".." for each directory in $ac_dir_suffix.
7083c021 1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 esac ;;
1481esac
1482ac_abs_top_builddir=$ac_pwd
1483ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484# for backward compatibility:
1485ac_top_builddir=$ac_top_build_prefix
212380e3
AC
1486
1487case $srcdir in
631ef239 1488 .) # We are building in place.
212380e3 1489 ac_srcdir=.
631ef239
AC
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 1493 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1496 *) # Relative name.
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 1500esac
631ef239
AC
1501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure" --help=recursive
212380e3 1511 else
7083c021 1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
631ef239
AC
1513 fi || ac_status=$?
1514 cd "$ac_pwd" || { ac_status=$?; break; }
212380e3
AC
1515 done
1516fi
1517
631ef239 1518test -n "$ac_init_help" && exit $ac_status
212380e3
AC
1519if $ac_init_version; then
1520 cat <<\_ACEOF
dc9aebf4 1521charybdis configure 3.5.0-dev
2eff3833 1522generated by GNU Autoconf 2.69
212380e3 1523
2eff3833 1524Copyright (C) 2012 Free Software Foundation, Inc.
212380e3
AC
1525This configure script is free software; the Free Software Foundation
1526gives unlimited permission to copy, distribute and modify it.
1527
b676ea3b 1528$Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 1529_ACEOF
631ef239 1530 exit
212380e3 1531fi
212380e3 1532
7083c021
AC
1533## ------------------------ ##
1534## Autoconf initialization. ##
1535## ------------------------ ##
212380e3 1536
7083c021
AC
1537# ac_fn_c_try_compile LINENO
1538# --------------------------
1539# Try to compile conftest.$ac_ext, and return whether this succeeded.
1540ac_fn_c_try_compile ()
1541{
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564else
1565 $as_echo "$as_me: failed program was:" >&5
1566sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1567
7083c021
AC
1568 ac_retval=1
1569fi
b6d0720c 1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1571 as_fn_set_status $ac_retval
7083c021
AC
1572
1573} # ac_fn_c_try_compile
1574
1575# ac_fn_c_try_cpp LINENO
1576# ----------------------
1577# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1578ac_fn_c_try_cpp ()
212380e3 1579{
7083c021
AC
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 if { { ac_try="$ac_cpp conftest.$ac_ext"
1582case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b6d0720c 1596 test $ac_status = 0; } > conftest.i && {
7083c021
AC
1597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 }; then :
1600 ac_retval=0
1601else
1602 $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1604
7083c021
AC
1605 ac_retval=1
1606fi
b6d0720c 1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1608 as_fn_set_status $ac_retval
212380e3 1609
7083c021 1610} # ac_fn_c_try_cpp
212380e3 1611
7083c021
AC
1612# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1613# -------------------------------------------------------
1614# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1615# the include files in INCLUDES and setting the cache variable VAR
1616# accordingly.
1617ac_fn_c_check_header_mongrel ()
1618{
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b6d0720c 1620 if eval \${$3+:} false; then :
7083c021
AC
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622$as_echo_n "checking for $2... " >&6; }
b6d0720c 1623if eval \${$3+:} false; then :
7083c021
AC
1624 $as_echo_n "(cached) " >&6
1625fi
1626eval ac_res=\$$3
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628$as_echo "$ac_res" >&6; }
1629else
1630 # Is the header compilable?
1631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1632$as_echo_n "checking $2 usability... " >&6; }
1633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1634/* end confdefs.h. */
1635$4
1636#include <$2>
1637_ACEOF
1638if ac_fn_c_try_compile "$LINENO"; then :
1639 ac_header_compiler=yes
1640else
1641 ac_header_compiler=no
1642fi
1643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1645$as_echo "$ac_header_compiler" >&6; }
212380e3 1646
7083c021
AC
1647# Is the header present?
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1649$as_echo_n "checking $2 presence... " >&6; }
1650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651/* end confdefs.h. */
1652#include <$2>
1653_ACEOF
1654if ac_fn_c_try_cpp "$LINENO"; then :
1655 ac_header_preproc=yes
1656else
1657 ac_header_preproc=no
1658fi
b6d0720c 1659rm -f conftest.err conftest.i conftest.$ac_ext
7083c021
AC
1660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1661$as_echo "$ac_header_preproc" >&6; }
212380e3 1662
7083c021
AC
1663# So? What about this header?
1664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1665 yes:no: )
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1667$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1669$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670 ;;
1671 no:yes:* )
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1673$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1675$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1677$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1679$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1681$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1682 ;;
1683esac
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685$as_echo_n "checking for $2... " >&6; }
b6d0720c 1686if eval \${$3+:} false; then :
7083c021
AC
1687 $as_echo_n "(cached) " >&6
1688else
1689 eval "$3=\$ac_header_compiler"
1690fi
1691eval ac_res=\$$3
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693$as_echo "$ac_res" >&6; }
1694fi
b6d0720c 1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1696
7083c021 1697} # ac_fn_c_check_header_mongrel
212380e3 1698
7083c021
AC
1699# ac_fn_c_try_run LINENO
1700# ----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1702# that executables *can* be run.
1703ac_fn_c_try_run ()
1704{
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1717 { { case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_try") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; }; }; then :
1727 ac_retval=0
1728else
1729 $as_echo "$as_me: program exited with status $ac_status" >&5
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1732
7083c021
AC
1733 ac_retval=$ac_status
1734fi
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1737 as_fn_set_status $ac_retval
212380e3 1738
7083c021 1739} # ac_fn_c_try_run
212380e3 1740
7083c021
AC
1741# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742# -------------------------------------------------------
1743# Tests whether HEADER exists and can be compiled using the include files in
1744# INCLUDES, setting the cache variable VAR accordingly.
1745ac_fn_c_check_header_compile ()
1746{
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749$as_echo_n "checking for $2... " >&6; }
b6d0720c 1750if eval \${$3+:} false; then :
7083c021
AC
1751 $as_echo_n "(cached) " >&6
1752else
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h. */
1755$4
1756#include <$2>
212380e3 1757_ACEOF
7083c021
AC
1758if ac_fn_c_try_compile "$LINENO"; then :
1759 eval "$3=yes"
1760else
1761 eval "$3=no"
1762fi
1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764fi
1765eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767$as_echo "$ac_res" >&6; }
b6d0720c 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1769
7083c021 1770} # ac_fn_c_check_header_compile
212380e3 1771
7083c021
AC
1772# ac_fn_c_try_link LINENO
1773# -----------------------
1774# Try to link conftest.$ac_ext, and return whether this succeeded.
1775ac_fn_c_try_link ()
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext conftest$ac_exeext
1779 if { { ac_try="$ac_link"
1780case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785$as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1792 fi
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest$ac_exeext && {
1798 test "$cross_compiling" = yes ||
2eff3833 1799 test -x conftest$ac_exeext
7083c021
AC
1800 }; then :
1801 ac_retval=0
212380e3 1802else
7083c021
AC
1803 $as_echo "$as_me: failed program was:" >&5
1804sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1805
7083c021 1806 ac_retval=1
212380e3 1807fi
7083c021
AC
1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1810 # interfere with the next link command; also delete a directory that is
1811 # left behind by Apple's compiler. We do this before executing the actions.
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1814 as_fn_set_status $ac_retval
212380e3 1815
7083c021 1816} # ac_fn_c_try_link
212380e3 1817
7083c021
AC
1818# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1819# -------------------------------------------
1820# Tests whether TYPE exists after having included INCLUDES, setting cache
1821# variable VAR accordingly.
1822ac_fn_c_check_type ()
1823{
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826$as_echo_n "checking for $2... " >&6; }
b6d0720c 1827if eval \${$3+:} false; then :
7083c021 1828 $as_echo_n "(cached) " >&6
212380e3 1829else
7083c021
AC
1830 eval "$3=no"
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h. */
1833$4
1834int
1835main ()
1836{
1837if (sizeof ($2))
1838 return 0;
1839 ;
1840 return 0;
1841}
212380e3 1842_ACEOF
7083c021
AC
1843if ac_fn_c_try_compile "$LINENO"; then :
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1845/* end confdefs.h. */
7083c021 1846$4
212380e3
AC
1847int
1848main ()
1849{
7083c021
AC
1850if (sizeof (($2)))
1851 return 0;
212380e3
AC
1852 ;
1853 return 0;
1854}
1855_ACEOF
7083c021 1856if ac_fn_c_try_compile "$LINENO"; then :
212380e3 1857
631ef239 1858else
7083c021 1859 eval "$3=yes"
212380e3 1860fi
7083c021 1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 1862fi
7083c021 1863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 1864fi
7083c021
AC
1865eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
b6d0720c 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1869
7083c021
AC
1870} # ac_fn_c_check_type
1871
1872# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1873# --------------------------------------------
1874# Tries to find the compile-time value of EXPR in a program that includes
1875# INCLUDES, setting VAR accordingly. Returns whether the value could be
1876# computed
1877ac_fn_c_compute_int ()
1878{
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if test "$cross_compiling" = yes; then
1881 # Depending upon the size, compute the lo and hi bounds.
1882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h. */
1884$4
1885int
1886main ()
1887{
1888static int test_array [1 - 2 * !(($2) >= 0)];
2eff3833
JT
1889test_array [0] = 0;
1890return test_array [0];
7083c021
AC
1891
1892 ;
1893 return 0;
1894}
212380e3 1895_ACEOF
7083c021
AC
1896if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_lo=0 ac_mid=0
1898 while :; do
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1900/* end confdefs.h. */
7083c021
AC
1901$4
1902int
1903main ()
1904{
1905static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2eff3833
JT
1906test_array [0] = 0;
1907return test_array [0];
212380e3 1908
7083c021
AC
1909 ;
1910 return 0;
1911}
212380e3 1912_ACEOF
7083c021
AC
1913if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_hi=$ac_mid; break
212380e3 1915else
7083c021
AC
1916 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1917 if test $ac_lo -le $ac_mid; then
1918 ac_lo= ac_hi=
1919 break
1920 fi
1921 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
212380e3 1922fi
631ef239 1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
1924 done
1925else
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$4
1929int
1930main ()
1931{
1932static int test_array [1 - 2 * !(($2) < 0)];
2eff3833
JT
1933test_array [0] = 0;
1934return test_array [0];
212380e3 1935
7083c021
AC
1936 ;
1937 return 0;
1938}
212380e3 1939_ACEOF
7083c021
AC
1940if ac_fn_c_try_compile "$LINENO"; then :
1941 ac_hi=-1 ac_mid=-1
1942 while :; do
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h. */
1945$4
1946int
1947main ()
1948{
1949static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2eff3833
JT
1950test_array [0] = 0;
1951return test_array [0];
212380e3 1952
7083c021
AC
1953 ;
1954 return 0;
1955}
1956_ACEOF
1957if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_lo=$ac_mid; break
1959else
1960 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1961 if test $ac_mid -le $ac_hi; then
1962 ac_lo= ac_hi=
1963 break
1964 fi
1965 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
212380e3 1966fi
7083c021
AC
1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 done
212380e3 1969else
7083c021
AC
1970 ac_lo= ac_hi=
1971fi
1972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973fi
1974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975# Binary search between lo and hi bounds.
1976while test "x$ac_lo" != "x$ac_hi"; do
1977 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1979/* end confdefs.h. */
7083c021
AC
1980$4
1981int
1982main ()
1983{
1984static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2eff3833
JT
1985test_array [0] = 0;
1986return test_array [0];
7083c021
AC
1987
1988 ;
1989 return 0;
1990}
212380e3 1991_ACEOF
7083c021
AC
1992if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_hi=$ac_mid
212380e3 1994else
7083c021 1995 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
212380e3 1996fi
7083c021
AC
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998done
1999case $ac_lo in #((
2000?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2001'') ac_retval=1 ;;
2002esac
2003 else
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h. */
2006$4
2007static long int longval () { return $2; }
2008static unsigned long int ulongval () { return $2; }
2009#include <stdio.h>
2010#include <stdlib.h>
2011int
2012main ()
2013{
631ef239 2014
7083c021
AC
2015 FILE *f = fopen ("conftest.val", "w");
2016 if (! f)
2017 return 1;
2018 if (($2) < 0)
2019 {
2020 long int i = longval ();
2021 if (i != ($2))
2022 return 1;
2023 fprintf (f, "%ld", i);
2024 }
2025 else
2026 {
2027 unsigned long int i = ulongval ();
2028 if (i != ($2))
2029 return 1;
2030 fprintf (f, "%lu", i);
2031 }
2032 /* Do not output a trailing newline, as this causes \r\n confusion
2033 on some platforms. */
2034 return ferror (f) || fclose (f) != 0;
212380e3 2035
7083c021
AC
2036 ;
2037 return 0;
2038}
212380e3 2039_ACEOF
7083c021
AC
2040if ac_fn_c_try_run "$LINENO"; then :
2041 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
212380e3 2042else
7083c021 2043 ac_retval=1
212380e3 2044fi
7083c021
AC
2045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2046 conftest.$ac_objext conftest.beam conftest.$ac_ext
2047rm -f conftest.val
631ef239 2048
7083c021 2049 fi
b6d0720c 2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 2051 as_fn_set_status $ac_retval
212380e3 2052
7083c021 2053} # ac_fn_c_compute_int
212380e3 2054
7083c021
AC
2055# ac_fn_c_check_func LINENO FUNC VAR
2056# ----------------------------------
2057# Tests whether FUNC exists, setting the cache variable VAR accordingly
2058ac_fn_c_check_func ()
2059{
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062$as_echo_n "checking for $2... " >&6; }
b6d0720c 2063if eval \${$3+:} false; then :
7083c021 2064 $as_echo_n "(cached) " >&6
212380e3 2065else
7083c021 2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2067/* end confdefs.h. */
7083c021
AC
2068/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2070#define $2 innocuous_$2
2071
2072/* System header to define __stub macros and hopefully few prototypes,
2073 which can conflict with char $2 (); below.
2074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2075 <limits.h> exists even on freestanding compilers. */
2076
212380e3
AC
2077#ifdef __STDC__
2078# include <limits.h>
2079#else
2080# include <assert.h>
2081#endif
212380e3 2082
7083c021 2083#undef $2
631ef239 2084
7083c021
AC
2085/* Override any GCC internal prototype to avoid an error.
2086 Use char because int might match the return type of a GCC
2087 builtin and then its argument prototype would still apply. */
2088#ifdef __cplusplus
2089extern "C"
2090#endif
2091char $2 ();
2092/* The GNU C library defines this for functions which it implements
2093 to always fail with ENOSYS. Some functions are actually named
2094 something starting with __ and the normal name is an alias. */
2095#if defined __stub_$2 || defined __stub___$2
2096choke me
2097#endif
212380e3 2098
7083c021
AC
2099int
2100main ()
2101{
2102return $2 ();
2103 ;
2104 return 0;
2105}
212380e3 2106_ACEOF
7083c021
AC
2107if ac_fn_c_try_link "$LINENO"; then :
2108 eval "$3=yes"
212380e3 2109else
7083c021
AC
2110 eval "$3=no"
2111fi
2112rm -f core conftest.err conftest.$ac_objext \
2113 conftest$ac_exeext conftest.$ac_ext
212380e3 2114fi
7083c021
AC
2115eval ac_res=\$$3
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117$as_echo "$ac_res" >&6; }
b6d0720c 2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
631ef239 2119
7083c021
AC
2120} # ac_fn_c_check_func
2121cat >config.log <<_ACEOF
2122This file contains any messages produced by compilers while
2123running configure, to aid debugging if configure makes a mistake.
212380e3 2124
dc9aebf4 2125It was created by charybdis $as_me 3.5.0-dev, which was
2eff3833 2126generated by GNU Autoconf 2.69. Invocation command line was
212380e3 2127
7083c021 2128 $ $0 $@
212380e3 2129
7083c021
AC
2130_ACEOF
2131exec 5>>config.log
2132{
2133cat <<_ASUNAME
2134## --------- ##
2135## Platform. ##
2136## --------- ##
2137
2138hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2139uname -m = `(uname -m) 2>/dev/null || echo unknown`
2140uname -r = `(uname -r) 2>/dev/null || echo unknown`
2141uname -s = `(uname -s) 2>/dev/null || echo unknown`
2142uname -v = `(uname -v) 2>/dev/null || echo unknown`
2143
2144/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2145/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2146
2147/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2148/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2149/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2150/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2151/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2152/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2153/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2154
2155_ASUNAME
212380e3 2156
631ef239 2157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083c021 2158for as_dir in $PATH
631ef239
AC
2159do
2160 IFS=$as_save_IFS
2161 test -z "$as_dir" && as_dir=.
7083c021 2162 $as_echo "PATH: $as_dir"
631ef239 2163 done
631ef239
AC
2164IFS=$as_save_IFS
2165
7083c021 2166} >&5
631ef239 2167
7083c021 2168cat >&5 <<_ACEOF
631ef239 2169
631ef239 2170
7083c021
AC
2171## ----------- ##
2172## Core tests. ##
2173## ----------- ##
631ef239 2174
7083c021 2175_ACEOF
631ef239
AC
2176
2177
7083c021
AC
2178# Keep a trace of the command line.
2179# Strip out --no-create and --no-recursion so they do not pile up.
2180# Strip out --silent because we don't want to record it for future runs.
2181# Also quote any args containing shell meta-characters.
2182# Make two passes to allow for proper duplicate-argument suppression.
2183ac_configure_args=
2184ac_configure_args0=
2185ac_configure_args1=
2186ac_must_keep_next=false
2187for ac_pass in 1 2
631ef239 2188do
7083c021 2189 for ac_arg
631ef239 2190 do
7083c021
AC
2191 case $ac_arg in
2192 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2194 | -silent | --silent | --silen | --sile | --sil)
2195 continue ;;
2196 *\'*)
2197 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2198 esac
2199 case $ac_pass in
2200 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2201 2)
2202 as_fn_append ac_configure_args1 " '$ac_arg'"
2203 if test $ac_must_keep_next = true; then
2204 ac_must_keep_next=false # Got value, back to normal.
2205 else
2206 case $ac_arg in
2207 *=* | --config-cache | -C | -disable-* | --disable-* \
2208 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2209 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2210 | -with-* | --with-* | -without-* | --without-* | --x)
2211 case "$ac_configure_args0 " in
2212 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2213 esac
2214 ;;
2215 -* ) ac_must_keep_next=true ;;
2216 esac
2217 fi
2218 as_fn_append ac_configure_args " '$ac_arg'"
2219 ;;
2220 esac
631ef239
AC
2221 done
2222done
7083c021
AC
2223{ ac_configure_args0=; unset ac_configure_args0;}
2224{ ac_configure_args1=; unset ac_configure_args1;}
631ef239 2225
7083c021
AC
2226# When interrupted or exit'd, cleanup temporary files, and complete
2227# config.log. We remove comments because anyway the quotes in there
2228# would cause problems or look ugly.
2229# WARNING: Use '\'' to represent an apostrophe within the trap.
2230# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2231trap 'exit_status=$?
2232 # Save into config.log some information that might help in debugging.
2233 {
2234 echo
631ef239 2235
b6d0720c 2236 $as_echo "## ---------------- ##
7083c021 2237## Cache variables. ##
b6d0720c 2238## ---------------- ##"
7083c021
AC
2239 echo
2240 # The following way of writing the cache mishandles newlines in values,
2241(
2242 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2243 eval ac_val=\$$ac_var
2244 case $ac_val in #(
2245 *${as_nl}*)
2246 case $ac_var in #(
2247 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2248$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2249 esac
2250 case $ac_var in #(
2251 _ | IFS | as_nl) ;; #(
2252 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2253 *) { eval $ac_var=; unset $ac_var;} ;;
2254 esac ;;
2255 esac
2256 done
2257 (set) 2>&1 |
2258 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2259 *${as_nl}ac_space=\ *)
2260 sed -n \
2261 "s/'\''/'\''\\\\'\'''\''/g;
2262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2263 ;; #(
2264 *)
2265 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2266 ;;
2267 esac |
2268 sort
2269)
2270 echo
631ef239 2271
b6d0720c 2272 $as_echo "## ----------------- ##
7083c021 2273## Output variables. ##
b6d0720c 2274## ----------------- ##"
7083c021
AC
2275 echo
2276 for ac_var in $ac_subst_vars
2277 do
2278 eval ac_val=\$$ac_var
2279 case $ac_val in
2280 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281 esac
2282 $as_echo "$ac_var='\''$ac_val'\''"
2283 done | sort
2284 echo
631ef239 2285
7083c021 2286 if test -n "$ac_subst_files"; then
b6d0720c 2287 $as_echo "## ------------------- ##
7083c021 2288## File substitutions. ##
b6d0720c 2289## ------------------- ##"
7083c021
AC
2290 echo
2291 for ac_var in $ac_subst_files
2292 do
2293 eval ac_val=\$$ac_var
2294 case $ac_val in
2295 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296 esac
2297 $as_echo "$ac_var='\''$ac_val'\''"
2298 done | sort
2299 echo
2300 fi
631ef239 2301
7083c021 2302 if test -s confdefs.h; then
b6d0720c 2303 $as_echo "## ----------- ##
7083c021 2304## confdefs.h. ##
b6d0720c 2305## ----------- ##"
7083c021
AC
2306 echo
2307 cat confdefs.h
2308 echo
2309 fi
2310 test "$ac_signal" != 0 &&
2311 $as_echo "$as_me: caught signal $ac_signal"
2312 $as_echo "$as_me: exit $exit_status"
2313 } >&5
2314 rm -f core *.core core.conftest.* &&
2315 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2316 exit $exit_status
2317' 0
2318for ac_signal in 1 2 13 15; do
2319 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2320done
2321ac_signal=0
631ef239 2322
7083c021
AC
2323# confdefs.h avoids OS command line length limits that DEFS can exceed.
2324rm -f -r conftest* confdefs.h
631ef239 2325
7083c021 2326$as_echo "/* confdefs.h */" > confdefs.h
212380e3 2327
7083c021 2328# Predefined preprocessor variables.
212380e3 2329
7083c021
AC
2330cat >>confdefs.h <<_ACEOF
2331#define PACKAGE_NAME "$PACKAGE_NAME"
212380e3 2332_ACEOF
212380e3 2333
7083c021
AC
2334cat >>confdefs.h <<_ACEOF
2335#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
212380e3 2336_ACEOF
212380e3 2337
7083c021
AC
2338cat >>confdefs.h <<_ACEOF
2339#define PACKAGE_VERSION "$PACKAGE_VERSION"
212380e3 2340_ACEOF
212380e3 2341
7083c021
AC
2342cat >>confdefs.h <<_ACEOF
2343#define PACKAGE_STRING "$PACKAGE_STRING"
2344_ACEOF
212380e3 2345
7083c021
AC
2346cat >>confdefs.h <<_ACEOF
2347#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2348_ACEOF
212380e3 2349
7083c021
AC
2350cat >>confdefs.h <<_ACEOF
2351#define PACKAGE_URL "$PACKAGE_URL"
2352_ACEOF
212380e3 2353
631ef239 2354
7083c021
AC
2355# Let the site file select an alternate cache file if it wants to.
2356# Prefer an explicitly selected file to automatically selected ones.
2357ac_site_file1=NONE
2358ac_site_file2=NONE
2359if test -n "$CONFIG_SITE"; then
b6d0720c
AC
2360 # We do not want a PATH search for config.site.
2361 case $CONFIG_SITE in #((
2362 -*) ac_site_file1=./$CONFIG_SITE;;
2363 */*) ac_site_file1=$CONFIG_SITE;;
2364 *) ac_site_file1=./$CONFIG_SITE;;
2365 esac
7083c021
AC
2366elif test "x$prefix" != xNONE; then
2367 ac_site_file1=$prefix/share/config.site
2368 ac_site_file2=$prefix/etc/config.site
212380e3 2369else
7083c021
AC
2370 ac_site_file1=$ac_default_prefix/share/config.site
2371 ac_site_file2=$ac_default_prefix/etc/config.site
2372fi
2373for ac_site_file in "$ac_site_file1" "$ac_site_file2"
212380e3 2374do
7083c021 2375 test "x$ac_site_file" = xNONE && continue
6fb6bd15 2376 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7083c021
AC
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2378$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2379 sed 's/^/| /' "$ac_site_file" >&5
b6d0720c
AC
2380 . "$ac_site_file" \
2381 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2383as_fn_error $? "failed to load site script $ac_site_file
2384See \`config.log' for more details" "$LINENO" 5; }
212380e3
AC
2385 fi
2386done
212380e3 2387
7083c021 2388if test -r "$cache_file"; then
6fb6bd15
AC
2389 # Some versions of bash will fail to source /dev/null (special files
2390 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2391 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7083c021
AC
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2393$as_echo "$as_me: loading cache $cache_file" >&6;}
2394 case $cache_file in
2395 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2396 *) . "./$cache_file";;
2397 esac
2398 fi
212380e3 2399else
7083c021
AC
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2401$as_echo "$as_me: creating cache $cache_file" >&6;}
2402 >$cache_file
212380e3
AC
2403fi
2404
7083c021
AC
2405# Check that the precious variables saved in the cache have kept the same
2406# value.
2407ac_cache_corrupted=false
2408for ac_var in $ac_precious_vars; do
2409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2410 eval ac_new_set=\$ac_env_${ac_var}_set
2411 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2412 eval ac_new_val=\$ac_env_${ac_var}_value
2413 case $ac_old_set,$ac_new_set in
2414 set,)
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2416$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2417 ac_cache_corrupted=: ;;
2418 ,set)
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2420$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2421 ac_cache_corrupted=: ;;
2422 ,);;
2423 *)
2424 if test "x$ac_old_val" != "x$ac_new_val"; then
2425 # differences in whitespace do not lead to failure.
2426 ac_old_val_w=`echo x $ac_old_val`
2427 ac_new_val_w=`echo x $ac_new_val`
2428 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2430$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2431 ac_cache_corrupted=:
2432 else
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2434$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2435 eval $ac_var=\$ac_old_val
2436 fi
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2438$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2440$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2441 fi;;
2442 esac
2443 # Pass precious variables to config.status.
2444 if test "$ac_new_set" = set; then
2445 case $ac_new_val in
2446 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2447 *) ac_arg=$ac_var=$ac_new_val ;;
2448 esac
2449 case " $ac_configure_args " in
2450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2451 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2452 esac
212380e3
AC
2453 fi
2454done
7083c021
AC
2455if $ac_cache_corrupted; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2459$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b6d0720c 2460 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
212380e3 2461fi
7083c021
AC
2462## -------------------- ##
2463## Main body of script. ##
2464## -------------------- ##
212380e3 2465
7083c021
AC
2466ac_ext=c
2467ac_cpp='$CPP $CPPFLAGS'
2468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470ac_compiler_gnu=$ac_cv_c_compiler_gnu
631ef239 2471
212380e3 2472
212380e3 2473
a5471f24 2474
7083c021 2475ac_config_headers="$ac_config_headers include/setup.h"
631ef239 2476
212380e3 2477
212380e3 2478
631ef239 2479
7083c021
AC
2480ac_ext=c
2481ac_cpp='$CPP $CPPFLAGS'
2482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485if test -n "$ac_tool_prefix"; then
2486 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2487set dummy ${ac_tool_prefix}gcc; ac_word=$2
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2490if ${ac_cv_prog_CC+:} false; then :
7083c021 2491 $as_echo_n "(cached) " >&6
212380e3 2492else
7083c021
AC
2493 if test -n "$CC"; then
2494 ac_cv_prog_CC="$CC" # Let the user override the test.
2495else
2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2497for as_dir in $PATH
2498do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
7083c021 2501 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2503 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2505 break 2
2506 fi
2507done
7083c021 2508 done
631ef239 2509IFS=$as_save_IFS
212380e3 2510
212380e3 2511fi
7083c021
AC
2512fi
2513CC=$ac_cv_prog_CC
2514if test -n "$CC"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2516$as_echo "$CC" >&6; }
212380e3 2517else
7083c021
AC
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519$as_echo "no" >&6; }
212380e3
AC
2520fi
2521
631ef239 2522
7083c021
AC
2523fi
2524if test -z "$ac_cv_prog_CC"; then
2525 ac_ct_CC=$CC
2526 # Extract the first word of "gcc", so it can be a program name with args.
2527set dummy gcc; ac_word=$2
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2530if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 2531 $as_echo_n "(cached) " >&6
212380e3 2532else
7083c021
AC
2533 if test -n "$ac_ct_CC"; then
2534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2537for as_dir in $PATH
2538do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
7083c021 2541 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2543 ac_cv_prog_ac_ct_CC="gcc"
2544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2545 break 2
2546 fi
2547done
7083c021 2548 done
631ef239 2549IFS=$as_save_IFS
212380e3 2550
212380e3 2551fi
7083c021
AC
2552fi
2553ac_ct_CC=$ac_cv_prog_ac_ct_CC
2554if test -n "$ac_ct_CC"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2556$as_echo "$ac_ct_CC" >&6; }
212380e3 2557else
7083c021
AC
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559$as_echo "no" >&6; }
212380e3
AC
2560fi
2561
7083c021
AC
2562 if test "x$ac_ct_CC" = x; then
2563 CC=""
2564 else
2565 case $cross_compiling:$ac_tool_warned in
2566yes:)
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2569ac_tool_warned=yes ;;
2570esac
2571 CC=$ac_ct_CC
2572 fi
2573else
2574 CC="$ac_cv_prog_CC"
2575fi
631ef239 2576
7083c021
AC
2577if test -z "$CC"; then
2578 if test -n "$ac_tool_prefix"; then
2579 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2580set dummy ${ac_tool_prefix}cc; ac_word=$2
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2583if ${ac_cv_prog_CC+:} false; then :
7083c021 2584 $as_echo_n "(cached) " >&6
212380e3 2585else
7083c021
AC
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2588else
2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2590for as_dir in $PATH
2591do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
7083c021 2594 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2596 ac_cv_prog_CC="${ac_tool_prefix}cc"
2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2598 break 2
2599 fi
2600done
7083c021 2601 done
631ef239 2602IFS=$as_save_IFS
7083c021 2603
212380e3 2604fi
7083c021
AC
2605fi
2606CC=$ac_cv_prog_CC
2607if test -n "$CC"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2609$as_echo "$CC" >&6; }
212380e3 2610else
7083c021
AC
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612$as_echo "no" >&6; }
212380e3
AC
2613fi
2614
631ef239 2615
7083c021
AC
2616 fi
2617fi
2618if test -z "$CC"; then
2619 # Extract the first word of "cc", so it can be a program name with args.
2620set dummy cc; ac_word=$2
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2623if ${ac_cv_prog_CC+:} false; then :
7083c021 2624 $as_echo_n "(cached) " >&6
212380e3 2625else
7083c021
AC
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628else
2629 ac_prog_rejected=no
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2631for as_dir in $PATH
2632do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
7083c021 2635 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2637 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2638 ac_prog_rejected=yes
2639 continue
2640 fi
2641 ac_cv_prog_CC="cc"
2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2643 break 2
2644 fi
2645done
7083c021 2646 done
631ef239 2647IFS=$as_save_IFS
212380e3 2648
7083c021
AC
2649if test $ac_prog_rejected = yes; then
2650 # We found a bogon in the path, so make sure we never use it.
2651 set dummy $ac_cv_prog_CC
2652 shift
2653 if test $# != 0; then
2654 # We chose a different compiler from the bogus one.
2655 # However, it has the same basename, so the bogon will be chosen
2656 # first if we set CC to just the basename; use the full file name.
2657 shift
2658 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2659 fi
212380e3 2660fi
7083c021
AC
2661fi
2662fi
2663CC=$ac_cv_prog_CC
2664if test -n "$CC"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2666$as_echo "$CC" >&6; }
212380e3 2667else
7083c021
AC
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669$as_echo "no" >&6; }
212380e3
AC
2670fi
2671
2672
7083c021
AC
2673fi
2674if test -z "$CC"; then
2675 if test -n "$ac_tool_prefix"; then
2676 for ac_prog in cl.exe
2677 do
2678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2679set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2682if ${ac_cv_prog_CC+:} false; then :
7083c021 2683 $as_echo_n "(cached) " >&6
212380e3 2684else
7083c021
AC
2685 if test -n "$CC"; then
2686 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3
AC
2687else
2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
7083c021 2693 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2695 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2697 break 2
2698 fi
2699done
7083c021 2700 done
631ef239 2701IFS=$as_save_IFS
212380e3
AC
2702
2703fi
2704fi
7083c021
AC
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2708$as_echo "$CC" >&6; }
212380e3 2709else
7083c021
AC
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711$as_echo "no" >&6; }
212380e3
AC
2712fi
2713
631ef239 2714
7083c021
AC
2715 test -n "$CC" && break
2716 done
212380e3 2717fi
7083c021
AC
2718if test -z "$CC"; then
2719 ac_ct_CC=$CC
2720 for ac_prog in cl.exe
212380e3
AC
2721do
2722 # Extract the first word of "$ac_prog", so it can be a program name with args.
2723set dummy $ac_prog; ac_word=$2
7083c021
AC
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2726if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 2727 $as_echo_n "(cached) " >&6
212380e3 2728else
7083c021
AC
2729 if test -n "$ac_ct_CC"; then
2730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3
AC
2731else
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
7083c021 2737 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2739 ac_cv_prog_ac_ct_CC="$ac_prog"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2741 break 2
2742 fi
2743done
7083c021 2744 done
631ef239 2745IFS=$as_save_IFS
212380e3
AC
2746
2747fi
2748fi
7083c021
AC
2749ac_ct_CC=$ac_cv_prog_ac_ct_CC
2750if test -n "$ac_ct_CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2752$as_echo "$ac_ct_CC" >&6; }
212380e3 2753else
7083c021
AC
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755$as_echo "no" >&6; }
212380e3
AC
2756fi
2757
631ef239 2758
7083c021 2759 test -n "$ac_ct_CC" && break
212380e3 2760done
212380e3 2761
7083c021
AC
2762 if test "x$ac_ct_CC" = x; then
2763 CC=""
2764 else
2765 case $cross_compiling:$ac_tool_warned in
2766yes:)
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2769ac_tool_warned=yes ;;
2770esac
2771 CC=$ac_ct_CC
2772 fi
2773fi
2774
2775fi
2776
2777
2778test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2780as_fn_error $? "no acceptable C compiler found in \$PATH
2781See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
2782
2783# Provide some information about the compiler.
2784$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2785set X $ac_compile
2786ac_compiler=$2
2787for ac_option in --version -v -V -qversion; do
2788 { { ac_try="$ac_compiler $ac_option >&5"
2789case "(($ac_try" in
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2792esac
2793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2794$as_echo "$ac_try_echo"; } >&5
2795 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2796 ac_status=$?
2797 if test -s conftest.err; then
2798 sed '10a\
2799... rest of stderr output deleted ...
2800 10q' conftest.err >conftest.er1
2801 cat conftest.er1 >&5
7083c021 2802 fi
6fb6bd15 2803 rm -f conftest.er1 conftest.err
7083c021
AC
2804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2805 test $ac_status = 0; }
2806done
2807
2808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809/* end confdefs.h. */
6fb6bd15 2810
212380e3 2811int
7083c021 2812main ()
212380e3 2813{
7083c021
AC
2814
2815 ;
2816 return 0;
212380e3
AC
2817}
2818_ACEOF
7083c021 2819ac_clean_files_save=$ac_clean_files
6fb6bd15 2820ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
7083c021
AC
2821# Try to create an executable without -o first, disregard a.out.
2822# It will help us diagnose broken compilers, and finding out an intuition
2823# of exeext.
6fb6bd15
AC
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2825$as_echo_n "checking whether the C compiler works... " >&6; }
7083c021
AC
2826ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2827
2828# The possible output files:
2829ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2830
2831ac_rmfiles=
2832for ac_file in $ac_files
2833do
2834 case $ac_file in
2835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2836 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2837 esac
2838done
2839rm -f $ac_rmfiles
2840
2841if { { ac_try="$ac_link_default"
631ef239
AC
2842case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845esac
7083c021
AC
2846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847$as_echo "$ac_try_echo"; } >&5
2848 (eval "$ac_link_default") 2>&5
212380e3 2849 ac_status=$?
7083c021
AC
2850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851 test $ac_status = 0; }; then :
2852 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2853# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2854# in a Makefile. We should not override ac_cv_exeext if it was cached,
2855# so that the user can short-circuit this test for compilers unknown to
2856# Autoconf.
2857for ac_file in $ac_files ''
2858do
2859 test -f "$ac_file" || continue
2860 case $ac_file in
2861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2862 ;;
2863 [ab].out )
2864 # We found the default executable, but exeext='' is most
2865 # certainly right.
2866 break;;
2867 *.* )
2868 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2869 then :; else
2870 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2871 fi
2872 # We set ac_cv_exeext here because the later test for it is not
2873 # safe: cross compilers may not add the suffix if given an `-o'
2874 # argument, so we may need to know it at that point already.
2875 # Even if this section looks crufty: it has the advantage of
2876 # actually working.
2877 break;;
2878 * )
2879 break;;
2880 esac
2881done
2882test "$ac_cv_exeext" = no && ac_cv_exeext=
212380e3 2883
212380e3 2884else
7083c021 2885 ac_file=''
631ef239 2886fi
7083c021 2887if test -z "$ac_file"; then :
6fb6bd15
AC
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889$as_echo "no" >&6; }
2890$as_echo "$as_me: failed program was:" >&5
7083c021
AC
2891sed 's/^/| /' conftest.$ac_ext >&5
2892
2893{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2895as_fn_error 77 "C compiler cannot create executables
2896See \`config.log' for more details" "$LINENO" 5; }
6fb6bd15
AC
2897else
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2899$as_echo "yes" >&6; }
631ef239 2900fi
6fb6bd15
AC
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2902$as_echo_n "checking for C compiler default output file name... " >&6; }
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2904$as_echo "$ac_file" >&6; }
7083c021 2905ac_exeext=$ac_cv_exeext
631ef239 2906
6fb6bd15 2907rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
7083c021 2908ac_clean_files=$ac_clean_files_save
7083c021
AC
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2910$as_echo_n "checking for suffix of executables... " >&6; }
2911if { { ac_try="$ac_link"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
2916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2917$as_echo "$ac_try_echo"; } >&5
2918 (eval "$ac_link") 2>&5
2919 ac_status=$?
2920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2921 test $ac_status = 0; }; then :
2922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2923# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2924# work properly (i.e., refer to `conftest.exe'), while it won't with
2925# `rm'.
2926for ac_file in conftest.exe conftest conftest.*; do
2927 test -f "$ac_file" || continue
2928 case $ac_file in
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931 break;;
2932 * ) break;;
2933 esac
2934done
212380e3 2935else
7083c021
AC
2936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2938as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2939See \`config.log' for more details" "$LINENO" 5; }
7083c021 2940fi
6fb6bd15 2941rm -f conftest conftest$ac_cv_exeext
7083c021
AC
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2943$as_echo "$ac_cv_exeext" >&6; }
2944
2945rm -f conftest.$ac_ext
2946EXEEXT=$ac_cv_exeext
2947ac_exeext=$EXEEXT
6fb6bd15
AC
2948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949/* end confdefs.h. */
2950#include <stdio.h>
2951int
2952main ()
2953{
2954FILE *f = fopen ("conftest.out", "w");
2955 return ferror (f) || fclose (f) != 0;
2956
2957 ;
2958 return 0;
2959}
2960_ACEOF
2961ac_clean_files="$ac_clean_files conftest.out"
2962# Check that the compiler produces executables we can run. If not, either
2963# the compiler is broken, or we cross compile.
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2965$as_echo_n "checking whether we are cross compiling... " >&6; }
2966if test "$cross_compiling" != yes; then
2967 { { ac_try="$ac_link"
2968case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971esac
2972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973$as_echo "$ac_try_echo"; } >&5
2974 (eval "$ac_link") 2>&5
2975 ac_status=$?
2976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2977 test $ac_status = 0; }
2978 if { ac_try='./conftest$ac_cv_exeext'
2979 { { case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982esac
2983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984$as_echo "$ac_try_echo"; } >&5
2985 (eval "$ac_try") 2>&5
2986 ac_status=$?
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }; }; then
2989 cross_compiling=no
2990 else
2991 if test "$cross_compiling" = maybe; then
2992 cross_compiling=yes
2993 else
2994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c 2996as_fn_error $? "cannot run C compiled programs.
6fb6bd15 2997If you meant to cross compile, use \`--host'.
b6d0720c 2998See \`config.log' for more details" "$LINENO" 5; }
6fb6bd15
AC
2999 fi
3000 fi
3001fi
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3003$as_echo "$cross_compiling" >&6; }
3004
3005rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3006ac_clean_files=$ac_clean_files_save
7083c021
AC
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3008$as_echo_n "checking for suffix of object files... " >&6; }
b6d0720c 3009if ${ac_cv_objext+:} false; then :
7083c021
AC
3010 $as_echo_n "(cached) " >&6
3011else
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013/* end confdefs.h. */
212380e3 3014
7083c021
AC
3015int
3016main ()
3017{
3018
3019 ;
3020 return 0;
3021}
212380e3 3022_ACEOF
7083c021
AC
3023rm -f conftest.o conftest.obj
3024if { { ac_try="$ac_compile"
631ef239
AC
3025case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
7083c021
AC
3029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030$as_echo "$ac_try_echo"; } >&5
3031 (eval "$ac_compile") 2>&5
212380e3 3032 ac_status=$?
7083c021
AC
3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034 test $ac_status = 0; }; then :
3035 for ac_file in conftest.o conftest.obj conftest.*; do
3036 test -f "$ac_file" || continue;
3037 case $ac_file in
3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3040 break;;
3041 esac
3042done
212380e3 3043else
7083c021 3044 $as_echo "$as_me: failed program was:" >&5
212380e3
AC
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
7083c021
AC
3047{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
3049as_fn_error $? "cannot compute suffix of object files: cannot compile
3050See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
3051fi
3052rm -f conftest.$ac_cv_objext conftest.$ac_ext
212380e3 3053fi
7083c021
AC
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3055$as_echo "$ac_cv_objext" >&6; }
3056OBJEXT=$ac_cv_objext
3057ac_objext=$OBJEXT
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3059$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b6d0720c 3060if ${ac_cv_c_compiler_gnu+:} false; then :
7083c021
AC
3061 $as_echo_n "(cached) " >&6
3062else
3063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064/* end confdefs.h. */
212380e3 3065
7083c021
AC
3066int
3067main ()
3068{
3069#ifndef __GNUC__
3070 choke me
3071#endif
212380e3 3072
7083c021
AC
3073 ;
3074 return 0;
3075}
3076_ACEOF
3077if ac_fn_c_try_compile "$LINENO"; then :
3078 ac_compiler_gnu=yes
3079else
3080 ac_compiler_gnu=no
212380e3 3081fi
7083c021
AC
3082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083ac_cv_c_compiler_gnu=$ac_compiler_gnu
3084
3085fi
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3087$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3088if test $ac_compiler_gnu = yes; then
3089 GCC=yes
3090else
3091 GCC=
212380e3 3092fi
7083c021
AC
3093ac_test_CFLAGS=${CFLAGS+set}
3094ac_save_CFLAGS=$CFLAGS
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3096$as_echo_n "checking whether $CC accepts -g... " >&6; }
b6d0720c 3097if ${ac_cv_prog_cc_g+:} false; then :
7083c021
AC
3098 $as_echo_n "(cached) " >&6
3099else
3100 ac_save_c_werror_flag=$ac_c_werror_flag
3101 ac_c_werror_flag=yes
3102 ac_cv_prog_cc_g=no
3103 CFLAGS="-g"
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105/* end confdefs.h. */
212380e3 3106
7083c021
AC
3107int
3108main ()
3109{
631ef239 3110
7083c021
AC
3111 ;
3112 return 0;
3113}
212380e3 3114_ACEOF
7083c021
AC
3115if ac_fn_c_try_compile "$LINENO"; then :
3116 ac_cv_prog_cc_g=yes
212380e3 3117else
7083c021
AC
3118 CFLAGS=""
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120/* end confdefs.h. */
212380e3 3121
7083c021
AC
3122int
3123main ()
3124{
631ef239 3125
7083c021
AC
3126 ;
3127 return 0;
3128}
3129_ACEOF
3130if ac_fn_c_try_compile "$LINENO"; then :
631ef239 3131
7083c021
AC
3132else
3133 ac_c_werror_flag=$ac_save_c_werror_flag
3134 CFLAGS="-g"
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136/* end confdefs.h. */
212380e3 3137
7083c021
AC
3138int
3139main ()
3140{
212380e3 3141
7083c021
AC
3142 ;
3143 return 0;
3144}
212380e3 3145_ACEOF
7083c021
AC
3146if ac_fn_c_try_compile "$LINENO"; then :
3147 ac_cv_prog_cc_g=yes
212380e3 3148fi
7083c021 3149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3150fi
7083c021 3151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3152fi
7083c021
AC
3153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 ac_c_werror_flag=$ac_save_c_werror_flag
212380e3 3155fi
7083c021
AC
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3157$as_echo "$ac_cv_prog_cc_g" >&6; }
3158if test "$ac_test_CFLAGS" = set; then
3159 CFLAGS=$ac_save_CFLAGS
3160elif test $ac_cv_prog_cc_g = yes; then
3161 if test "$GCC" = yes; then
3162 CFLAGS="-g -O2"
3163 else
3164 CFLAGS="-g"
3165 fi
212380e3 3166else
7083c021
AC
3167 if test "$GCC" = yes; then
3168 CFLAGS="-O2"
3169 else
3170 CFLAGS=
3171 fi
3172fi
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3174$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b6d0720c 3175if ${ac_cv_prog_cc_c89+:} false; then :
7083c021
AC
3176 $as_echo_n "(cached) " >&6
3177else
3178 ac_cv_prog_cc_c89=no
3179ac_save_CC=$CC
3180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3181/* end confdefs.h. */
212380e3 3182#include <stdarg.h>
7083c021 3183#include <stdio.h>
2eff3833 3184struct stat;
7083c021
AC
3185/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3186struct buf { int x; };
3187FILE * (*rcsopen) (struct buf *, struct stat *, int);
3188static char *e (p, i)
3189 char **p;
3190 int i;
3191{
3192 return p[i];
3193}
3194static char *f (char * (*g) (char **, int), char **p, ...)
3195{
3196 char *s;
3197 va_list v;
3198 va_start (v,p);
3199 s = g (p, va_arg (v,int));
3200 va_end (v);
3201 return s;
3202}
3203
3204/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3205 function prototypes and stuff, but not '\xHH' hex character constants.
3206 These don't provoke an error unfortunately, instead are silently treated
3207 as 'x'. The following induces an error, until -std is added to get
3208 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3209 array size at least. It's necessary to write '\x00'==0 to get something
3210 that's true only with -std. */
3211int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3212
3213/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3214 inside strings and character constants. */
3215#define FOO(x) 'x'
3216int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
212380e3 3217
7083c021
AC
3218int test (int i, double x);
3219struct s1 {int (*f) (int a);};
3220struct s2 {int (*f) (double a);};
3221int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3222int argc;
3223char **argv;
212380e3
AC
3224int
3225main ()
3226{
7083c021 3227return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3
AC
3228 ;
3229 return 0;
3230}
3231_ACEOF
7083c021
AC
3232for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3233 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3234do
3235 CC="$ac_save_CC $ac_arg"
3236 if ac_fn_c_try_compile "$LINENO"; then :
3237 ac_cv_prog_cc_c89=$ac_arg
3238fi
3239rm -f core conftest.err conftest.$ac_objext
3240 test "x$ac_cv_prog_cc_c89" != "xno" && break
3241done
3242rm -f conftest.$ac_ext
3243CC=$ac_save_CC
3244
3245fi
3246# AC_CACHE_VAL
3247case "x$ac_cv_prog_cc_c89" in
3248 x)
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3250$as_echo "none needed" >&6; } ;;
3251 xno)
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3253$as_echo "unsupported" >&6; } ;;
3254 *)
3255 CC="$CC $ac_cv_prog_cc_c89"
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3257$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 3258esac
7083c021 3259if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 3260
212380e3 3261fi
631ef239 3262
7083c021
AC
3263ac_ext=c
3264ac_cpp='$CPP $CPPFLAGS'
3265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3 3268
212380e3 3269
7083c021
AC
3270ac_ext=c
3271ac_cpp='$CPP $CPPFLAGS'
3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3276$as_echo_n "checking how to run the C preprocessor... " >&6; }
3277# On Suns, sometimes $CPP names a directory.
3278if test -n "$CPP" && test -d "$CPP"; then
3279 CPP=
3280fi
3281if test -z "$CPP"; then
b6d0720c 3282 if ${ac_cv_prog_CPP+:} false; then :
7083c021
AC
3283 $as_echo_n "(cached) " >&6
3284else
3285 # Double quotes because CPP needs to be expanded
3286 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3287 do
3288 ac_preproc_ok=false
3289for ac_c_preproc_warn_flag in '' yes
3290do
3291 # Use a header file that comes with gcc, so configuring glibc
3292 # with a fresh cross-compiler works.
3293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3294 # <limits.h> exists even on freestanding compilers.
3295 # On the NeXT, cc -E runs the code through the compiler's parser,
3296 # not just through cpp. "Syntax error" is here to catch this case.
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298/* end confdefs.h. */
3299#ifdef __STDC__
3300# include <limits.h>
3301#else
3302# include <assert.h>
3303#endif
3304 Syntax error
212380e3 3305_ACEOF
7083c021 3306if ac_fn_c_try_cpp "$LINENO"; then :
212380e3 3307
7083c021
AC
3308else
3309 # Broken: fails on valid input.
3310continue
212380e3 3311fi
b6d0720c 3312rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3313
7083c021
AC
3314 # OK, works on sane cases. Now check whether nonexistent headers
3315 # can be detected and how.
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3317/* end confdefs.h. */
7083c021 3318#include <ac_nonexistent.h>
212380e3 3319_ACEOF
7083c021
AC
3320if ac_fn_c_try_cpp "$LINENO"; then :
3321 # Broken: success on invalid input.
3322continue
212380e3 3323else
7083c021
AC
3324 # Passes both tests.
3325ac_preproc_ok=:
3326break
212380e3 3327fi
b6d0720c 3328rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3329
7083c021
AC
3330done
3331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b6d0720c 3332rm -f conftest.i conftest.err conftest.$ac_ext
7083c021
AC
3333if $ac_preproc_ok; then :
3334 break
212380e3
AC
3335fi
3336
7083c021
AC
3337 done
3338 ac_cv_prog_CPP=$CPP
3339
3340fi
3341 CPP=$ac_cv_prog_CPP
212380e3 3342else
7083c021
AC
3343 ac_cv_prog_CPP=$CPP
3344fi
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3346$as_echo "$CPP" >&6; }
3347ac_preproc_ok=false
3348for ac_c_preproc_warn_flag in '' yes
3349do
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3357/* end confdefs.h. */
7083c021
AC
3358#ifdef __STDC__
3359# include <limits.h>
212380e3 3360#else
7083c021 3361# include <assert.h>
212380e3 3362#endif
7083c021 3363 Syntax error
212380e3 3364_ACEOF
7083c021 3365if ac_fn_c_try_cpp "$LINENO"; then :
212380e3 3366
7083c021
AC
3367else
3368 # Broken: fails on valid input.
3369continue
212380e3 3370fi
b6d0720c 3371rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3372
7083c021
AC
3373 # OK, works on sane cases. Now check whether nonexistent headers
3374 # can be detected and how.
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3376/* end confdefs.h. */
7083c021 3377#include <ac_nonexistent.h>
212380e3 3378_ACEOF
7083c021
AC
3379if ac_fn_c_try_cpp "$LINENO"; then :
3380 # Broken: success on invalid input.
3381continue
212380e3 3382else
7083c021
AC
3383 # Passes both tests.
3384ac_preproc_ok=:
3385break
212380e3 3386fi
b6d0720c 3387rm -f conftest.err conftest.i conftest.$ac_ext
212380e3
AC
3388
3389done
7083c021 3390# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b6d0720c 3391rm -f conftest.i conftest.err conftest.$ac_ext
7083c021 3392if $ac_preproc_ok; then :
212380e3 3393
7083c021
AC
3394else
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
3397as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3398See \`config.log' for more details" "$LINENO" 5; }
7083c021 3399fi
212380e3 3400
7083c021
AC
3401ac_ext=c
3402ac_cpp='$CPP $CPPFLAGS'
3403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3
AC
3406
3407
7083c021
AC
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3409$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b6d0720c 3410if ${ac_cv_path_GREP+:} false; then :
7083c021 3411 $as_echo_n "(cached) " >&6
212380e3 3412else
7083c021
AC
3413 if test -z "$GREP"; then
3414 ac_path_GREP_found=false
3415 # Loop through the user's path and test for each of PROGNAME-LIST
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3418do
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_prog in grep ggrep; do
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2eff3833 3424 as_fn_executable_p "$ac_path_GREP" || continue
7083c021
AC
3425# Check for GNU ac_path_GREP and select it if it is found.
3426 # Check for GNU $ac_path_GREP
3427case `"$ac_path_GREP" --version 2>&1` in
3428*GNU*)
3429 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3430*)
3431 ac_count=0
3432 $as_echo_n 0123456789 >"conftest.in"
3433 while :
3434 do
3435 cat "conftest.in" "conftest.in" >"conftest.tmp"
3436 mv "conftest.tmp" "conftest.in"
3437 cp "conftest.in" "conftest.nl"
3438 $as_echo 'GREP' >> "conftest.nl"
3439 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3441 as_fn_arith $ac_count + 1 && ac_count=$as_val
3442 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3443 # Best one so far, save it but keep looking for a better one
3444 ac_cv_path_GREP="$ac_path_GREP"
3445 ac_path_GREP_max=$ac_count
3446 fi
3447 # 10*(2^10) chars as input seems more than enough
3448 test $ac_count -gt 10 && break
3449 done
3450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
631ef239 3451esac
7083c021
AC
3452
3453 $ac_path_GREP_found && break 3
3454 done
3455 done
3456 done
3457IFS=$as_save_IFS
3458 if test -z "$ac_cv_path_GREP"; then
b6d0720c 3459 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083c021 3460 fi
212380e3 3461else
7083c021
AC
3462 ac_cv_path_GREP=$GREP
3463fi
212380e3 3464
212380e3 3465fi
7083c021
AC
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3467$as_echo "$ac_cv_path_GREP" >&6; }
3468 GREP="$ac_cv_path_GREP"
631ef239 3469
212380e3 3470
7083c021
AC
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3472$as_echo_n "checking for egrep... " >&6; }
b6d0720c 3473if ${ac_cv_path_EGREP+:} false; then :
7083c021
AC
3474 $as_echo_n "(cached) " >&6
3475else
3476 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3477 then ac_cv_path_EGREP="$GREP -E"
3478 else
3479 if test -z "$EGREP"; then
3480 ac_path_EGREP_found=false
3481 # Loop through the user's path and test for each of PROGNAME-LIST
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3484do
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_prog in egrep; do
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2eff3833 3490 as_fn_executable_p "$ac_path_EGREP" || continue
7083c021
AC
3491# Check for GNU ac_path_EGREP and select it if it is found.
3492 # Check for GNU $ac_path_EGREP
3493case `"$ac_path_EGREP" --version 2>&1` in
3494*GNU*)
3495 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3496*)
3497 ac_count=0
3498 $as_echo_n 0123456789 >"conftest.in"
3499 while :
3500 do
3501 cat "conftest.in" "conftest.in" >"conftest.tmp"
3502 mv "conftest.tmp" "conftest.in"
3503 cp "conftest.in" "conftest.nl"
3504 $as_echo 'EGREP' >> "conftest.nl"
3505 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3507 as_fn_arith $ac_count + 1 && ac_count=$as_val
3508 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3509 # Best one so far, save it but keep looking for a better one
3510 ac_cv_path_EGREP="$ac_path_EGREP"
3511 ac_path_EGREP_max=$ac_count
3512 fi
3513 # 10*(2^10) chars as input seems more than enough
3514 test $ac_count -gt 10 && break
3515 done
3516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
631ef239 3517esac
212380e3 3518
7083c021
AC
3519 $ac_path_EGREP_found && break 3
3520 done
3521 done
3522 done
3523IFS=$as_save_IFS
3524 if test -z "$ac_cv_path_EGREP"; then
b6d0720c 3525 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083c021 3526 fi
212380e3 3527else
7083c021 3528 ac_cv_path_EGREP=$EGREP
212380e3 3529fi
212380e3 3530
7083c021 3531 fi
212380e3 3532fi
7083c021
AC
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3534$as_echo "$ac_cv_path_EGREP" >&6; }
3535 EGREP="$ac_cv_path_EGREP"
212380e3
AC
3536
3537
7083c021
AC
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3539$as_echo_n "checking for ANSI C header files... " >&6; }
b6d0720c 3540if ${ac_cv_header_stdc+:} false; then :
7083c021 3541 $as_echo_n "(cached) " >&6
212380e3 3542else
7083c021 3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3544/* end confdefs.h. */
7083c021
AC
3545#include <stdlib.h>
3546#include <stdarg.h>
3547#include <string.h>
3548#include <float.h>
212380e3
AC
3549
3550int
3551main ()
3552{
212380e3
AC
3553
3554 ;
3555 return 0;
3556}
3557_ACEOF
7083c021
AC
3558if ac_fn_c_try_compile "$LINENO"; then :
3559 ac_cv_header_stdc=yes
212380e3 3560else
7083c021 3561 ac_cv_header_stdc=no
212380e3 3562fi
631ef239 3563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3564
7083c021
AC
3565if test $ac_cv_header_stdc = yes; then
3566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h. */
3569#include <string.h>
212380e3 3570
7083c021
AC
3571_ACEOF
3572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3573 $EGREP "memchr" >/dev/null 2>&1; then :
212380e3 3574
212380e3 3575else
7083c021
AC
3576 ac_cv_header_stdc=no
3577fi
3578rm -f conftest*
212380e3 3579
7083c021 3580fi
212380e3 3581
7083c021
AC
3582if test $ac_cv_header_stdc = yes; then
3583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3585/* end confdefs.h. */
7083c021 3586#include <stdlib.h>
212380e3 3587
212380e3 3588_ACEOF
7083c021
AC
3589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3590 $EGREP "free" >/dev/null 2>&1; then :
3591
212380e3 3592else
7083c021
AC
3593 ac_cv_header_stdc=no
3594fi
3595rm -f conftest*
212380e3 3596
212380e3 3597fi
631ef239 3598
7083c021
AC
3599if test $ac_cv_header_stdc = yes; then
3600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3601 if test "$cross_compiling" = yes; then :
3602 :
212380e3 3603else
7083c021 3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3605/* end confdefs.h. */
7083c021
AC
3606#include <ctype.h>
3607#include <stdlib.h>
3608#if ((' ' & 0x0FF) == 0x020)
3609# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3610# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3611#else
3612# define ISLOWER(c) \
3613 (('a' <= (c) && (c) <= 'i') \
3614 || ('j' <= (c) && (c) <= 'r') \
3615 || ('s' <= (c) && (c) <= 'z'))
3616# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3617#endif
3618
3619#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
3620int
3621main ()
3622{
7083c021
AC
3623 int i;
3624 for (i = 0; i < 256; i++)
3625 if (XOR (islower (i), ISLOWER (i))
3626 || toupper (i) != TOUPPER (i))
3627 return 2;
212380e3
AC
3628 return 0;
3629}
3630_ACEOF
7083c021
AC
3631if ac_fn_c_try_run "$LINENO"; then :
3632
3633else
3634 ac_cv_header_stdc=no
212380e3 3635fi
7083c021
AC
3636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3637 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 3638fi
212380e3 3639
7083c021
AC
3640fi
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3643$as_echo "$ac_cv_header_stdc" >&6; }
3644if test $ac_cv_header_stdc = yes; then
3645
3646$as_echo "#define STDC_HEADERS 1" >>confdefs.h
631ef239 3647
212380e3 3648fi
631ef239 3649
7083c021
AC
3650# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3651for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3652 inttypes.h stdint.h unistd.h
3653do :
3654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3655ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3656"
b6d0720c 3657if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
3658 cat >>confdefs.h <<_ACEOF
3659#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
212380e3 3660_ACEOF
631ef239 3661
7083c021 3662fi
631ef239 3663
7083c021
AC
3664done
3665
3666
3667
3668 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
b6d0720c 3669if test "x$ac_cv_header_minix_config_h" = xyes; then :
7083c021 3670 MINIX=yes
212380e3 3671else
7083c021
AC
3672 MINIX=
3673fi
3674
3675
3676 if test "$MINIX" = yes; then
3677
3678$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3679
212380e3 3680
7083c021 3681$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
631ef239
AC
3682
3683
7083c021 3684$as_echo "#define _MINIX 1" >>confdefs.h
631ef239 3685
7083c021 3686 fi
212380e3 3687
212380e3 3688
7083c021
AC
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3690$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
b6d0720c 3691if ${ac_cv_safe_to_define___extensions__+:} false; then :
7083c021 3692 $as_echo_n "(cached) " >&6
212380e3 3693else
7083c021 3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3695/* end confdefs.h. */
7083c021 3696
2eff3833
JT
3697# define __EXTENSIONS__ 1
3698 $ac_includes_default
212380e3
AC
3699int
3700main ()
3701{
7083c021 3702
212380e3
AC
3703 ;
3704 return 0;
3705}
3706_ACEOF
7083c021
AC
3707if ac_fn_c_try_compile "$LINENO"; then :
3708 ac_cv_safe_to_define___extensions__=yes
212380e3 3709else
7083c021 3710 ac_cv_safe_to_define___extensions__=no
212380e3 3711fi
631ef239 3712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3713fi
7083c021
AC
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3715$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3716 test $ac_cv_safe_to_define___extensions__ = yes &&
3717 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 3718
7083c021 3719 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
212380e3 3720
7083c021
AC
3721 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3722
3723 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3724
3725 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
212380e3 3726
7083c021
AC
3727
3728
3729
3730OLD_CFLAGS="$CFLAGS"
3731ac_ext=c
3732ac_cpp='$CPP $CPPFLAGS'
3733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736if test -n "$ac_tool_prefix"; then
3737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3738set dummy ${ac_tool_prefix}gcc; ac_word=$2
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3741if ${ac_cv_prog_CC+:} false; then :
7083c021 3742 $as_echo_n "(cached) " >&6
212380e3 3743else
7083c021
AC
3744 if test -n "$CC"; then
3745 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 3746else
7083c021
AC
3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748for as_dir in $PATH
3749do
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3754 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 break 2
3757 fi
3758done
3759 done
3760IFS=$as_save_IFS
212380e3 3761
212380e3 3762fi
212380e3 3763fi
7083c021
AC
3764CC=$ac_cv_prog_CC
3765if test -n "$CC"; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3767$as_echo "$CC" >&6; }
212380e3 3768else
7083c021
AC
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770$as_echo "no" >&6; }
3771fi
212380e3 3772
212380e3
AC
3773
3774fi
7083c021
AC
3775if test -z "$ac_cv_prog_CC"; then
3776 ac_ct_CC=$CC
3777 # Extract the first word of "gcc", so it can be a program name with args.
3778set dummy gcc; ac_word=$2
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3781if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 3782 $as_echo_n "(cached) " >&6
212380e3 3783else
7083c021
AC
3784 if test -n "$ac_ct_CC"; then
3785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3 3786else
7083c021
AC
3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH
3789do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3794 ac_cv_prog_ac_ct_CC="gcc"
3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798done
3799 done
3800IFS=$as_save_IFS
212380e3 3801
212380e3 3802fi
212380e3 3803fi
7083c021
AC
3804ac_ct_CC=$ac_cv_prog_ac_ct_CC
3805if test -n "$ac_ct_CC"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3807$as_echo "$ac_ct_CC" >&6; }
212380e3 3808else
7083c021
AC
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810$as_echo "no" >&6; }
3811fi
212380e3 3812
7083c021
AC
3813 if test "x$ac_ct_CC" = x; then
3814 CC=""
3815 else
3816 case $cross_compiling:$ac_tool_warned in
3817yes:)
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3820ac_tool_warned=yes ;;
631ef239 3821esac
7083c021
AC
3822 CC=$ac_ct_CC
3823 fi
212380e3 3824else
7083c021 3825 CC="$ac_cv_prog_CC"
212380e3 3826fi
631ef239 3827
7083c021
AC
3828if test -z "$CC"; then
3829 if test -n "$ac_tool_prefix"; then
3830 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3831set dummy ${ac_tool_prefix}cc; ac_word=$2
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3834if ${ac_cv_prog_CC+:} false; then :
7083c021 3835 $as_echo_n "(cached) " >&6
212380e3 3836else
7083c021
AC
3837 if test -n "$CC"; then
3838 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 3839else
7083c021
AC
3840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841for as_dir in $PATH
3842do
3843 IFS=$as_save_IFS
3844 test -z "$as_dir" && as_dir=.
3845 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3847 ac_cv_prog_CC="${ac_tool_prefix}cc"
3848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 break 2
3850 fi
3851done
3852 done
3853IFS=$as_save_IFS
212380e3 3854
212380e3 3855fi
7083c021
AC
3856fi
3857CC=$ac_cv_prog_CC
3858if test -n "$CC"; then
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3860$as_echo "$CC" >&6; }
212380e3 3861else
7083c021
AC
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863$as_echo "no" >&6; }
3864fi
3865
212380e3 3866
7083c021 3867 fi
212380e3 3868fi
7083c021
AC
3869if test -z "$CC"; then
3870 # Extract the first word of "cc", so it can be a program name with args.
3871set dummy cc; ac_word=$2
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3874if ${ac_cv_prog_CC+:} false; then :
7083c021
AC
3875 $as_echo_n "(cached) " >&6
3876else
3877 if test -n "$CC"; then
3878 ac_cv_prog_CC="$CC" # Let the user override the test.
3879else
3880 ac_prog_rejected=no
3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH
3883do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3888 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3889 ac_prog_rejected=yes
3890 continue
3891 fi
3892 ac_cv_prog_CC="cc"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3895 fi
3896done
3897 done
3898IFS=$as_save_IFS
631ef239 3899
7083c021
AC
3900if test $ac_prog_rejected = yes; then
3901 # We found a bogon in the path, so make sure we never use it.
3902 set dummy $ac_cv_prog_CC
3903 shift
3904 if test $# != 0; then
3905 # We chose a different compiler from the bogus one.
3906 # However, it has the same basename, so the bogon will be chosen
3907 # first if we set CC to just the basename; use the full file name.
3908 shift
3909 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3910 fi
3911fi
3912fi
3913fi
3914CC=$ac_cv_prog_CC
3915if test -n "$CC"; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3917$as_echo "$CC" >&6; }
3918else
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920$as_echo "no" >&6; }
212380e3 3921fi
631ef239 3922
212380e3 3923
7083c021
AC
3924fi
3925if test -z "$CC"; then
3926 if test -n "$ac_tool_prefix"; then
3927 for ac_prog in cl.exe
3928 do
3929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3933if ${ac_cv_prog_CC+:} false; then :
7083c021 3934 $as_echo_n "(cached) " >&6
212380e3 3935else
7083c021
AC
3936 if test -n "$CC"; then
3937 ac_cv_prog_CC="$CC" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3946 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3949 fi
3950done
3951 done
3952IFS=$as_save_IFS
212380e3 3953
212380e3 3954fi
7083c021
AC
3955fi
3956CC=$ac_cv_prog_CC
3957if test -n "$CC"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3959$as_echo "$CC" >&6; }
212380e3 3960else
7083c021
AC
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963fi
212380e3 3964
212380e3 3965
7083c021
AC
3966 test -n "$CC" && break
3967 done
3968fi
3969if test -z "$CC"; then
3970 ac_ct_CC=$CC
3971 for ac_prog in cl.exe
3972do
3973 # Extract the first word of "$ac_prog", so it can be a program name with args.
3974set dummy $ac_prog; ac_word=$2
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3977if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 3978 $as_echo_n "(cached) " >&6
212380e3 3979else
7083c021
AC
3980 if test -n "$ac_ct_CC"; then
3981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3982else
3983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH
3985do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3990 ac_cv_prog_ac_ct_CC="$ac_prog"
3991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 break 2
3993 fi
3994done
3995 done
3996IFS=$as_save_IFS
212380e3 3997
212380e3
AC
3998fi
3999fi
7083c021
AC
4000ac_ct_CC=$ac_cv_prog_ac_ct_CC
4001if test -n "$ac_ct_CC"; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4003$as_echo "$ac_ct_CC" >&6; }
4004else
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006$as_echo "no" >&6; }
212380e3 4007fi
631ef239
AC
4008
4009
7083c021
AC
4010 test -n "$ac_ct_CC" && break
4011done
631ef239 4012
7083c021
AC
4013 if test "x$ac_ct_CC" = x; then
4014 CC=""
4015 else
4016 case $cross_compiling:$ac_tool_warned in
4017yes:)
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4020ac_tool_warned=yes ;;
4021esac
4022 CC=$ac_ct_CC
4023 fi
4024fi
212380e3 4025
7083c021 4026fi
212380e3 4027
7083c021
AC
4028
4029test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
4031as_fn_error $? "no acceptable C compiler found in \$PATH
4032See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
4033
4034# Provide some information about the compiler.
4035$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4036set X $ac_compile
4037ac_compiler=$2
4038for ac_option in --version -v -V -qversion; do
4039 { { ac_try="$ac_compiler $ac_option >&5"
631ef239
AC
4040case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043esac
7083c021
AC
4044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045$as_echo "$ac_try_echo"; } >&5
4046 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
212380e3 4047 ac_status=$?
7083c021
AC
4048 if test -s conftest.err; then
4049 sed '10a\
4050... rest of stderr output deleted ...
4051 10q' conftest.err >conftest.er1
4052 cat conftest.er1 >&5
7083c021 4053 fi
6fb6bd15 4054 rm -f conftest.er1 conftest.err
7083c021
AC
4055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }
4057done
212380e3 4058
7083c021
AC
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4060$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b6d0720c 4061if ${ac_cv_c_compiler_gnu+:} false; then :
7083c021 4062 $as_echo_n "(cached) " >&6
212380e3 4063else
7083c021 4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4065/* end confdefs.h. */
7083c021 4066
212380e3
AC
4067int
4068main ()
4069{
7083c021
AC
4070#ifndef __GNUC__
4071 choke me
4072#endif
212380e3
AC
4073
4074 ;
4075 return 0;
4076}
4077_ACEOF
7083c021
AC
4078if ac_fn_c_try_compile "$LINENO"; then :
4079 ac_compiler_gnu=yes
4080else
4081 ac_compiler_gnu=no
4082fi
4083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084ac_cv_c_compiler_gnu=$ac_compiler_gnu
4085
4086fi
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4088$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4089if test $ac_compiler_gnu = yes; then
4090 GCC=yes
4091else
4092 GCC=
4093fi
4094ac_test_CFLAGS=${CFLAGS+set}
4095ac_save_CFLAGS=$CFLAGS
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4097$as_echo_n "checking whether $CC accepts -g... " >&6; }
b6d0720c 4098if ${ac_cv_prog_cc_g+:} false; then :
7083c021
AC
4099 $as_echo_n "(cached) " >&6
4100else
4101 ac_save_c_werror_flag=$ac_c_werror_flag
4102 ac_c_werror_flag=yes
4103 ac_cv_prog_cc_g=no
4104 CFLAGS="-g"
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4106/* end confdefs.h. */
7083c021 4107
212380e3
AC
4108int
4109main ()
4110{
212380e3
AC
4111
4112 ;
4113 return 0;
4114}
4115_ACEOF
7083c021
AC
4116if ac_fn_c_try_compile "$LINENO"; then :
4117 ac_cv_prog_cc_g=yes
212380e3 4118else
7083c021
AC
4119 CFLAGS=""
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4121/* end confdefs.h. */
7083c021 4122
212380e3
AC
4123int
4124main ()
4125{
212380e3
AC
4126
4127 ;
4128 return 0;
4129}
4130_ACEOF
7083c021
AC
4131if ac_fn_c_try_compile "$LINENO"; then :
4132
4133else
4134 ac_c_werror_flag=$ac_save_c_werror_flag
4135 CFLAGS="-g"
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4137/* end confdefs.h. */
7083c021 4138
212380e3
AC
4139int
4140main ()
4141{
212380e3
AC
4142
4143 ;
4144 return 0;
4145}
4146_ACEOF
7083c021
AC
4147if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_cv_prog_cc_g=yes
212380e3 4149fi
631ef239 4150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4151fi
631ef239 4152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4153fi
631ef239 4154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
4155 ac_c_werror_flag=$ac_save_c_werror_flag
4156fi
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4158$as_echo "$ac_cv_prog_cc_g" >&6; }
4159if test "$ac_test_CFLAGS" = set; then
4160 CFLAGS=$ac_save_CFLAGS
4161elif test $ac_cv_prog_cc_g = yes; then
4162 if test "$GCC" = yes; then
4163 CFLAGS="-g -O2"
4164 else
4165 CFLAGS="-g"
4166 fi
4167else
4168 if test "$GCC" = yes; then
4169 CFLAGS="-O2"
4170 else
4171 CFLAGS=
4172 fi
4173fi
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4175$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b6d0720c 4176if ${ac_cv_prog_cc_c89+:} false; then :
7083c021
AC
4177 $as_echo_n "(cached) " >&6
4178else
4179 ac_cv_prog_cc_c89=no
4180ac_save_CC=$CC
4181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4182/* end confdefs.h. */
7083c021
AC
4183#include <stdarg.h>
4184#include <stdio.h>
2eff3833 4185struct stat;
7083c021
AC
4186/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4187struct buf { int x; };
4188FILE * (*rcsopen) (struct buf *, struct stat *, int);
4189static char *e (p, i)
4190 char **p;
4191 int i;
4192{
4193 return p[i];
4194}
4195static char *f (char * (*g) (char **, int), char **p, ...)
4196{
4197 char *s;
4198 va_list v;
4199 va_start (v,p);
4200 s = g (p, va_arg (v,int));
4201 va_end (v);
4202 return s;
4203}
4204
4205/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4206 function prototypes and stuff, but not '\xHH' hex character constants.
4207 These don't provoke an error unfortunately, instead are silently treated
4208 as 'x'. The following induces an error, until -std is added to get
4209 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4210 array size at least. It's necessary to write '\x00'==0 to get something
4211 that's true only with -std. */
4212int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4213
4214/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4215 inside strings and character constants. */
4216#define FOO(x) 'x'
4217int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4218
4219int test (int i, double x);
4220struct s1 {int (*f) (int a);};
4221struct s2 {int (*f) (double a);};
4222int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4223int argc;
4224char **argv;
212380e3
AC
4225int
4226main ()
4227{
7083c021 4228return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3
AC
4229 ;
4230 return 0;
4231}
4232_ACEOF
7083c021
AC
4233for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4234 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4235do
4236 CC="$ac_save_CC $ac_arg"
4237 if ac_fn_c_try_compile "$LINENO"; then :
4238 ac_cv_prog_cc_c89=$ac_arg
4239fi
4240rm -f core conftest.err conftest.$ac_objext
4241 test "x$ac_cv_prog_cc_c89" != "xno" && break
4242done
4243rm -f conftest.$ac_ext
4244CC=$ac_save_CC
4245
4246fi
4247# AC_CACHE_VAL
4248case "x$ac_cv_prog_cc_c89" in
4249 x)
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4251$as_echo "none needed" >&6; } ;;
4252 xno)
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4254$as_echo "unsupported" >&6; } ;;
4255 *)
4256 CC="$CC $ac_cv_prog_cc_c89"
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4258$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 4259esac
7083c021 4260if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 4261
212380e3 4262fi
631ef239 4263
7083c021
AC
4264ac_ext=c
4265ac_cpp='$CPP $CPPFLAGS'
4266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269
4270ac_ext=c
4271ac_cpp='$CPP $CPPFLAGS'
4272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275
4276
4277CFLAGS="$OLD_CFLAGS"
4278
1db8e007
JT
4279ac_aux_dir=
4280for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4281 if test -f "$ac_dir/install-sh"; then
4282 ac_aux_dir=$ac_dir
4283 ac_install_sh="$ac_aux_dir/install-sh -c"
4284 break
4285 elif test -f "$ac_dir/install.sh"; then
4286 ac_aux_dir=$ac_dir
4287 ac_install_sh="$ac_aux_dir/install.sh -c"
4288 break
4289 elif test -f "$ac_dir/shtool"; then
4290 ac_aux_dir=$ac_dir
4291 ac_install_sh="$ac_aux_dir/shtool install -c"
4292 break
4293 fi
4294done
4295if test -z "$ac_aux_dir"; then
4296 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4297fi
4298
4299# These three variables are undocumented and unsupported,
4300# and are intended to be withdrawn in a future Autoconf release.
4301# They can cause serious problems if a builder's source tree is in a directory
4302# whose full name contains unusual characters.
4303ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4304ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4305ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4306
4307
4308
4309
4310subdirs="$subdirs libratbox"
4311
7083c021
AC
4312
4313
4314if test "$ac_cv_c_compiler_gnu" != yes; then
4315
4316SGS=no
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4318$as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4319case `$CC -version 2>&1` in
4320*TenDRA*)
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4322$as_echo "yes, TenDRA" >&6; }
4323 IRC_CFLAGS=""
4324 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4325 SGS=yes
4326 TenDRA=yes
4327;;
4328*MIPSpro*)
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4330$as_echo "yes, MIPSpro" >&6; }
4331 MIPSpro=yes
4332 SGS=yes
4333;;
4334*)
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336$as_echo "no" >&6; }
4337 TenDRA=no
4338 MIPSpro=no
4339;;
631ef239 4340esac
7083c021
AC
4341
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4343$as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4344case `$CC -V 2>&1` in
4345*Sun*WorkShop* | *Forte*Developer*)
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4347$as_echo "Sun Workshop/Forte" >&6; }
4348 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4349 SunWorkShop=yes
4350 SGS=yes
4351;;
4352*Tru64*)
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4354$as_echo "Tru64 cc" >&6; }
4355 IRC_CFLAGS="-O2"
4356 CPPFLAGS="-I/usr/local/include"
4357 Tru=yes
4358;;
4359*HP*ANSI*)
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4361$as_echo "HPUX cc" >&6; }
4362 HPUX=yes
4363 IRC_CFLAGS="+e"
4364;;
4365*)
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367$as_echo "no" >&6; }
4368;;
631ef239 4369esac
212380e3 4370
212380e3 4371fi
631ef239 4372
7083c021
AC
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4374$as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4375OSNAME=`uname -s`
4376case "$OSNAME" in
4377 HP-UX*)
631ef239 4378
7083c021
AC
4379 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4381$as_echo "assuming old HPUX with its own cc" >&6; }
4382 IRC_CFLAGS="$IRC_CFLAGS +e"
4383 HPUX=yes
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4386$as_echo "already using newer HPUX" >&6; }
4387 fi
4388 ;;
4389 SunOS*)
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4391$as_echo "SunOS or Solaris" >&6; }
212380e3 4392
7083c021 4393$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 4394
7083c021
AC
4395 SUN=yes
4396 ;;
4397 AIX*)
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4399$as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4400 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4401 ;;
4402 *)
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404$as_echo "no" >&6; }
4405 ;;
631ef239 4406esac
212380e3 4407
7083c021
AC
4408if test "$ac_cv_c_compiler_gnu" = yes; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4410$as_echo_n "checking if $CC is Apple GCC... " >&6; }
4411
4412 case `$CC -v 2>&1 | tail -n 1` in
4413 *Apple*)
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415$as_echo "yes" >&6; }
4416 AppleGCC=yes
4417 ;;
4418 *)
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420$as_echo "no" >&6; }
4421 AppleGCC=no
4422 ;;
4423 esac
4424
4425 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
212380e3 4426fi
631ef239 4427
7083c021
AC
4428if test "$ac_cv_prog_cc_g" = yes; then
4429 if test "$Tru" = yes; then
4430 IRC_CFLAGS="$IRC_CFLAGS -g3"
4431 else
4432 IRC_CFLAGS="$IRC_CFLAGS -g"
4433 fi
212380e3 4434fi
212380e3 4435
7083c021
AC
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4437$as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4438if test "$SGS" = "yes"; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4440$as_echo "yes" >&6; }
212380e3 4441else
7083c021
AC
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443$as_echo "no" >&6; }
4444fi
212380e3 4445
7083c021
AC
4446# Extract the first word of "mkdep", so it can be a program name with args.
4447set dummy mkdep; ac_word=$2
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4450if ${ac_cv_path_MKDEP+:} false; then :
7083c021
AC
4451 $as_echo_n "(cached) " >&6
4452else
4453 case $MKDEP in
4454 [\\/]* | ?:[\\/]*)
4455 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4456 ;;
4457 *)
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH
4460do
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4465 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 break 2
4468 fi
4469done
4470 done
4471IFS=$as_save_IFS
212380e3 4472
7083c021 4473 ;;
631ef239 4474esac
7083c021
AC
4475fi
4476MKDEP=$ac_cv_path_MKDEP
4477if test -n "$MKDEP"; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4479$as_echo "$MKDEP" >&6; }
212380e3 4480else
7083c021
AC
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482$as_echo "no" >&6; }
212380e3 4483fi
631ef239 4484
7083c021
AC
4485
4486# Extract the first word of "makedepend", so it can be a program name with args.
4487set dummy makedepend; ac_word=$2
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4490if ${ac_cv_path_MAKEDEPEND+:} false; then :
7083c021
AC
4491 $as_echo_n "(cached) " >&6
4492else
4493 case $MAKEDEPEND in
4494 [\\/]* | ?:[\\/]*)
4495 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4496 ;;
4497 *)
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4505 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509done
212380e3 4510 done
7083c021
AC
4511IFS=$as_save_IFS
4512
4513 ;;
4514esac
4515fi
4516MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4517if test -n "$MAKEDEPEND"; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4519$as_echo "$MAKEDEPEND" >&6; }
212380e3 4520else
7083c021
AC
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522$as_echo "no" >&6; }
4523fi
212380e3 4524
212380e3 4525
212380e3 4526
7083c021
AC
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4528$as_echo_n "checking how to generate dependency info... " >&6; }
4529
4530STDOUT="> .depend"
4531
4532if test "$ac_cv_c_compiler_gnu" = yes; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4534$as_echo "gcc -MM" >&6; }
4535 MKDEP="$CC -MM"
4536elif test ! -z "$MKDEP"; then
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4538$as_echo "mkdep" >&6; }
4539
4540 if test -z "$Tru"; then
4541 STDOUT=""
4542 else
4543 STDOUT=" 2> /dev/null"
4544 fi
4545elif test "$SunWorkShop" = yes; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4547$as_echo "$CC -xM" >&6; }
4548 MKDEP="$CC -xM"
4549 STDOUT="> .depend 2> /dev/null"
4550elif test ! -z "$MAKEDEPEND"; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4552$as_echo "makedepend" >&6; }
4553 MKDEP="$MAKEDEPEND -f-"
212380e3 4554else
7083c021
AC
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4556$as_echo "nothing suitable.. forget it!" >&6; }
4557 MKDEP=":"
212380e3 4558fi
631ef239 4559
7083c021
AC
4560
4561
4562
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4564$as_echo_n "checking for /dev/null... " >&6; }
4565if test -c /dev/null ; then
4566
4567$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4568
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4570$as_echo "yes" >&6; }
212380e3 4571else
212380e3 4572
7083c021
AC
4573$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4574
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4576$as_echo "no - using devnull.log" >&6; }
212380e3 4577fi
631ef239 4578
7083c021
AC
4579if test ! -z "$CFLAGS"; then
4580 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
212380e3 4581fi
631ef239 4582
7083c021
AC
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4584$as_echo_n "checking for library containing strerror... " >&6; }
b6d0720c 4585if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
4586 $as_echo_n "(cached) " >&6
4587else
4588 ac_func_search_save_LIBS=$LIBS
4589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4590/* end confdefs.h. */
7083c021
AC
4591
4592/* Override any GCC internal prototype to avoid an error.
4593 Use char because int might match the return type of a GCC
4594 builtin and then its argument prototype would still apply. */
4595#ifdef __cplusplus
4596extern "C"
4597#endif
4598char strerror ();
212380e3
AC
4599int
4600main ()
4601{
7083c021 4602return strerror ();
212380e3
AC
4603 ;
4604 return 0;
4605}
4606_ACEOF
7083c021
AC
4607for ac_lib in '' cposix; do
4608 if test -z "$ac_lib"; then
4609 ac_res="none required"
4610 else
4611 ac_res=-l$ac_lib
4612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4613 fi
4614 if ac_fn_c_try_link "$LINENO"; then :
4615 ac_cv_search_strerror=$ac_res
4616fi
4617rm -f core conftest.err conftest.$ac_objext \
4618 conftest$ac_exeext
b6d0720c 4619 if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
4620 break
4621fi
4622done
b6d0720c 4623if ${ac_cv_search_strerror+:} false; then :
7083c021 4624
212380e3 4625else
7083c021
AC
4626 ac_cv_search_strerror=no
4627fi
4628rm conftest.$ac_ext
4629LIBS=$ac_func_search_save_LIBS
4630fi
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4632$as_echo "$ac_cv_search_strerror" >&6; }
4633ac_res=$ac_cv_search_strerror
4634if test "$ac_res" != no; then :
4635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 4636
212380e3 4637fi
631ef239 4638
7083c021
AC
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4640$as_echo_n "checking for inline... " >&6; }
b6d0720c 4641if ${ac_cv_c_inline+:} false; then :
7083c021
AC
4642 $as_echo_n "(cached) " >&6
4643else
4644 ac_cv_c_inline=no
4645for ac_kw in inline __inline__ __inline; do
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647/* end confdefs.h. */
4648#ifndef __cplusplus
4649typedef int foo_t;
4650static $ac_kw foo_t static_foo () {return 0; }
4651$ac_kw foo_t foo () {return 0; }
4652#endif
4653
4654_ACEOF
4655if ac_fn_c_try_compile "$LINENO"; then :
4656 ac_cv_c_inline=$ac_kw
4657fi
631ef239 4658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021 4659 test "$ac_cv_c_inline" != no && break
212380e3 4660done
7083c021
AC
4661
4662fi
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4664$as_echo "$ac_cv_c_inline" >&6; }
4665
4666case $ac_cv_c_inline in
4667 inline | yes) ;;
4668 *)
4669 case $ac_cv_c_inline in
4670 no) ac_val=;;
4671 *) ac_val=$ac_cv_c_inline;;
4672 esac
4673 cat >>confdefs.h <<_ACEOF
4674#ifndef __cplusplus
4675#define inline $ac_val
4676#endif
4677_ACEOF
4678 ;;
212380e3 4679esac
7083c021
AC
4680
4681if test $ac_cv_c_compiler_gnu = yes; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4683$as_echo_n "checking whether $CC needs -traditional... " >&6; }
b6d0720c 4684if ${ac_cv_prog_gcc_traditional+:} false; then :
7083c021 4685 $as_echo_n "(cached) " >&6
212380e3 4686else
7083c021
AC
4687 ac_pattern="Autoconf.*'x'"
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689/* end confdefs.h. */
4690#include <sgtty.h>
4691Autoconf TIOCGETP
212380e3 4692_ACEOF
7083c021
AC
4693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4694 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4695 ac_cv_prog_gcc_traditional=yes
4696else
4697 ac_cv_prog_gcc_traditional=no
4698fi
4699rm -f conftest*
4700
4701
4702 if test $ac_cv_prog_gcc_traditional = no; then
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4704/* end confdefs.h. */
7083c021
AC
4705#include <termio.h>
4706Autoconf TCGETA
4707_ACEOF
4708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4709 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4710 ac_cv_prog_gcc_traditional=yes
4711fi
4712rm -f conftest*
212380e3 4713
7083c021
AC
4714 fi
4715fi
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4717$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4718 if test $ac_cv_prog_gcc_traditional = yes; then
4719 CC="$CC -traditional"
4720 fi
4721fi
212380e3 4722
7083c021
AC
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4724$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4725set x ${MAKE-make}
4726ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b6d0720c 4727if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7083c021
AC
4728 $as_echo_n "(cached) " >&6
4729else
4730 cat >conftest.make <<\_ACEOF
4731SHELL = /bin/sh
4732all:
4733 @echo '@@@%%%=$(MAKE)=@@@%%%'
212380e3 4734_ACEOF
b6d0720c 4735# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7083c021
AC
4736case `${MAKE-make} -f conftest.make 2>/dev/null` in
4737 *@@@%%%=?*=@@@%%%*)
4738 eval ac_cv_prog_make_${ac_make}_set=yes;;
4739 *)
4740 eval ac_cv_prog_make_${ac_make}_set=no;;
631ef239 4741esac
7083c021
AC
4742rm -f conftest.make
4743fi
4744if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4746$as_echo "yes" >&6; }
4747 SET_MAKE=
4748else
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750$as_echo "no" >&6; }
4751 SET_MAKE="MAKE=${MAKE-make}"
4752fi
4753
4754# Find a good install program. We prefer a C program (faster),
4755# so one script is as good as another. But avoid the broken or
4756# incompatible versions:
4757# SysV /etc/install, /usr/sbin/install
4758# SunOS /usr/etc/install
4759# IRIX /sbin/install
4760# AIX /bin/install
4761# AmigaOS /C/install, which installs bootblocks on floppy discs
4762# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4763# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4764# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4765# OS/2's system install, which has a completely different semantic
4766# ./install, which can be erroneously created by make from ./install.sh.
4767# Reject install programs that cannot install multiple files.
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4769$as_echo_n "checking for a BSD-compatible install... " >&6; }
4770if test -z "$INSTALL"; then
b6d0720c 4771if ${ac_cv_path_install+:} false; then :
7083c021
AC
4772 $as_echo_n "(cached) " >&6
4773else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775for as_dir in $PATH
4776do
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 # Account for people who put trailing slashes in PATH elements.
4780case $as_dir/ in #((
4781 ./ | .// | /[cC]/* | \
4782 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4783 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4784 /usr/ucb/* ) ;;
4785 *)
4786 # OSF1 and SCO ODT 3.0 have their own names for install.
4787 # Don't use installbsd from OSF since it installs stuff as root
4788 # by default.
4789 for ac_prog in ginstall scoinst install; do
4790 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4791 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7083c021
AC
4792 if test $ac_prog = install &&
4793 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4794 # AIX install. It has an incompatible calling convention.
4795 :
4796 elif test $ac_prog = install &&
4797 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4798 # program-specific install script used by HP pwplus--don't use.
4799 :
4800 else
4801 rm -rf conftest.one conftest.two conftest.dir
4802 echo one > conftest.one
4803 echo two > conftest.two
4804 mkdir conftest.dir
4805 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4806 test -s conftest.one && test -s conftest.two &&
4807 test -s conftest.dir/conftest.one &&
4808 test -s conftest.dir/conftest.two
4809 then
4810 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4811 break 3
4812 fi
4813 fi
4814 fi
4815 done
4816 done
4817 ;;
631ef239 4818esac
7083c021
AC
4819
4820 done
4821IFS=$as_save_IFS
4822
4823rm -rf conftest.one conftest.two conftest.dir
4824
4825fi
4826 if test "${ac_cv_path_install+set}" = set; then
4827 INSTALL=$ac_cv_path_install
4828 else
4829 # As a last resort, use the slow shell script. Don't cache a
4830 # value for INSTALL within a source directory, because that will
4831 # break other packages using the cache if that directory is
4832 # removed, or if the value is a relative name.
4833 INSTALL=$ac_install_sh
4834 fi
4835fi
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4837$as_echo "$INSTALL" >&6; }
4838
4839# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4840# It thinks the first close brace ends the variable substitution.
4841test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4842
4843test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4844
4845test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4846
4847# Extract the first word of "rm", so it can be a program name with args.
4848set dummy rm; ac_word=$2
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4851if ${ac_cv_path_RM+:} false; then :
7083c021 4852 $as_echo_n "(cached) " >&6
212380e3 4853else
7083c021
AC
4854 case $RM in
4855 [\\/]* | ?:[\\/]*)
4856 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4857 ;;
4858 *)
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4866 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870done
4871 done
4872IFS=$as_save_IFS
212380e3 4873
7083c021
AC
4874 ;;
4875esac
212380e3 4876fi
7083c021
AC
4877RM=$ac_cv_path_RM
4878if test -n "$RM"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4880$as_echo "$RM" >&6; }
4881else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883$as_echo "no" >&6; }
212380e3 4884fi
631ef239
AC
4885
4886
7083c021
AC
4887# Extract the first word of "cp", so it can be a program name with args.
4888set dummy cp; ac_word=$2
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4891if ${ac_cv_path_CP+:} false; then :
7083c021
AC
4892 $as_echo_n "(cached) " >&6
4893else
4894 case $CP in
4895 [\\/]* | ?:[\\/]*)
4896 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4897 ;;
4898 *)
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900for as_dir in $PATH
4901do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4906 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4909 fi
4910done
4911 done
4912IFS=$as_save_IFS
631ef239 4913
7083c021
AC
4914 ;;
4915esac
4916fi
4917CP=$ac_cv_path_CP
4918if test -n "$CP"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4920$as_echo "$CP" >&6; }
4921else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923$as_echo "no" >&6; }
4924fi
212380e3
AC
4925
4926
7083c021
AC
4927# Extract the first word of "mv", so it can be a program name with args.
4928set dummy mv; ac_word=$2
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4931if ${ac_cv_path_MV+:} false; then :
7083c021 4932 $as_echo_n "(cached) " >&6
212380e3 4933else
7083c021
AC
4934 case $MV in
4935 [\\/]* | ?:[\\/]*)
4936 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4937 ;;
4938 *)
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940for as_dir in $PATH
4941do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4946 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4949 fi
4950done
4951 done
4952IFS=$as_save_IFS
4953
4954 ;;
631ef239 4955esac
7083c021
AC
4956fi
4957MV=$ac_cv_path_MV
4958if test -n "$MV"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4960$as_echo "$MV" >&6; }
212380e3 4961else
7083c021
AC
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963$as_echo "no" >&6; }
212380e3 4964fi
631ef239 4965
212380e3 4966
7083c021
AC
4967# Extract the first word of "ln", so it can be a program name with args.
4968set dummy ln; ac_word=$2
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4971if ${ac_cv_path_LN+:} false; then :
7083c021 4972 $as_echo_n "(cached) " >&6
212380e3 4973else
7083c021
AC
4974 case $LN in
4975 [\\/]* | ?:[\\/]*)
4976 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4977 ;;
4978 *)
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980for as_dir in $PATH
4981do
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4986 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4989 fi
4990done
4991 done
4992IFS=$as_save_IFS
212380e3 4993
7083c021 4994 ;;
631ef239 4995esac
7083c021
AC
4996fi
4997LN=$ac_cv_path_LN
4998if test -n "$LN"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
5000$as_echo "$LN" >&6; }
212380e3 5001else
7083c021
AC
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003$as_echo "no" >&6; }
212380e3 5004fi
631ef239 5005
7083c021
AC
5006
5007# Extract the first word of "sed", so it can be a program name with args.
5008set dummy sed; ac_word=$2
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5011if ${ac_cv_path_SED+:} false; then :
7083c021
AC
5012 $as_echo_n "(cached) " >&6
5013else
5014 case $SED in
5015 [\\/]* | ?:[\\/]*)
5016 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5017 ;;
5018 *)
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5026 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5029 fi
5030done
212380e3 5031 done
7083c021
AC
5032IFS=$as_save_IFS
5033
5034 ;;
5035esac
5036fi
5037SED=$ac_cv_path_SED
5038if test -n "$SED"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5040$as_echo "$SED" >&6; }
212380e3 5041else
7083c021
AC
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043$as_echo "no" >&6; }
5044fi
212380e3 5045
212380e3 5046
7083c021
AC
5047# Extract the first word of "ar", so it can be a program name with args.
5048set dummy ar; ac_word=$2
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5051if ${ac_cv_path_AR+:} false; then :
7083c021
AC
5052 $as_echo_n "(cached) " >&6
5053else
5054 case $AR in
5055 [\\/]* | ?:[\\/]*)
5056 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5057 ;;
5058 *)
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060for as_dir in $PATH
5061do
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5066 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 break 2
5069 fi
5070done
5071 done
5072IFS=$as_save_IFS
212380e3 5073
7083c021 5074 ;;
631ef239 5075esac
7083c021
AC
5076fi
5077AR=$ac_cv_path_AR
5078if test -n "$AR"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5080$as_echo "$AR" >&6; }
212380e3 5081else
7083c021
AC
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083$as_echo "no" >&6; }
212380e3 5084fi
631ef239 5085
7083c021
AC
5086
5087# Extract the first word of "ld", so it can be a program name with args.
5088set dummy ld; ac_word=$2
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5091if ${ac_cv_path_LD+:} false; then :
7083c021 5092 $as_echo_n "(cached) " >&6
212380e3 5093else
7083c021
AC
5094 case $LD in
5095 [\\/]* | ?:[\\/]*)
5096 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5097 ;;
5098 *)
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100for as_dir in $PATH
5101do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5106 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5109 fi
5110done
5111 done
5112IFS=$as_save_IFS
212380e3 5113
7083c021
AC
5114 ;;
5115esac
212380e3 5116fi
7083c021
AC
5117LD=$ac_cv_path_LD
5118if test -n "$LD"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5120$as_echo "$LD" >&6; }
5121else
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123$as_echo "no" >&6; }
212380e3 5124fi
631ef239 5125
212380e3 5126
7083c021
AC
5127# Extract the first word of "ranlib", so it can be a program name with args.
5128set dummy ranlib; ac_word=$2
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5131if ${ac_cv_path_RANLIB+:} false; then :
7083c021 5132 $as_echo_n "(cached) " >&6
212380e3 5133else
7083c021
AC
5134 case $RANLIB in
5135 [\\/]* | ?:[\\/]*)
5136 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5137 ;;
5138 *)
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140for as_dir in $PATH
5141do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5146 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150done
5151 done
5152IFS=$as_save_IFS
212380e3 5153
7083c021
AC
5154 ;;
5155esac
5156fi
5157RANLIB=$ac_cv_path_RANLIB
5158if test -n "$RANLIB"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5160$as_echo "$RANLIB" >&6; }
5161else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163$as_echo "no" >&6; }
212380e3 5164fi
631ef239 5165
7083c021
AC
5166
5167# Extract the first word of "touch", so it can be a program name with args.
5168set dummy touch; ac_word=$2
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5171if ${ac_cv_path_TOUCH+:} false; then :
7083c021
AC
5172 $as_echo_n "(cached) " >&6
5173else
5174 case $TOUCH in
5175 [\\/]* | ?:[\\/]*)
5176 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5177 ;;
5178 *)
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5186 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5189 fi
212380e3 5190done
7083c021
AC
5191 done
5192IFS=$as_save_IFS
5193
5194 ;;
212380e3 5195esac
7083c021
AC
5196fi
5197TOUCH=$ac_cv_path_TOUCH
5198if test -n "$TOUCH"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5200$as_echo "$TOUCH" >&6; }
212380e3 5201else
7083c021
AC
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203$as_echo "no" >&6; }
5204fi
212380e3 5205
212380e3 5206
7083c021
AC
5207
5208for ac_prog in 'bison -y' byacc
5209do
5210 # Extract the first word of "$ac_prog", so it can be a program name with args.
5211set dummy $ac_prog; ac_word=$2
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5214if ${ac_cv_prog_YACC+:} false; then :
7083c021 5215 $as_echo_n "(cached) " >&6
212380e3 5216else
7083c021
AC
5217 if test -n "$YACC"; then
5218 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5219else
5220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5227 ac_cv_prog_YACC="$ac_prog"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231done
5232 done
5233IFS=$as_save_IFS
212380e3 5234
212380e3
AC
5235fi
5236fi
7083c021
AC
5237YACC=$ac_cv_prog_YACC
5238if test -n "$YACC"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5240$as_echo "$YACC" >&6; }
5241else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243$as_echo "no" >&6; }
212380e3 5244fi
631ef239
AC
5245
5246
7083c021
AC
5247 test -n "$YACC" && break
5248done
5249test -n "$YACC" || YACC="yacc"
212380e3
AC
5250
5251
7083c021 5252if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
b6d0720c 5253 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
7083c021 5254fi
212380e3 5255
7083c021
AC
5256for ac_prog in flex lex
5257do
5258 # Extract the first word of "$ac_prog", so it can be a program name with args.
5259set dummy $ac_prog; ac_word=$2
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5262if ${ac_cv_prog_LEX+:} false; then :
7083c021 5263 $as_echo_n "(cached) " >&6
212380e3 5264else
7083c021
AC
5265 if test -n "$LEX"; then
5266 ac_cv_prog_LEX="$LEX" # Let the user override the test.
212380e3 5267else
7083c021
AC
5268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269for as_dir in $PATH
5270do
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5275 ac_cv_prog_LEX="$ac_prog"
5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5278 fi
631ef239 5279done
7083c021
AC
5280 done
5281IFS=$as_save_IFS
631ef239 5282
7083c021
AC
5283fi
5284fi
5285LEX=$ac_cv_prog_LEX
5286if test -n "$LEX"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5288$as_echo "$LEX" >&6; }
631ef239 5289else
7083c021
AC
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291$as_echo "no" >&6; }
631ef239
AC
5292fi
5293
5294
7083c021
AC
5295 test -n "$LEX" && break
5296done
5297test -n "$LEX" || LEX=":"
212380e3 5298
7083c021
AC
5299if test "x$LEX" != "x:"; then
5300 cat >conftest.l <<_ACEOF
5301%%
5302a { ECHO; }
5303b { REJECT; }
5304c { yymore (); }
5305d { yyless (1); }
2eff3833
JT
5306e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5307 yyless ((input () != 0)); }
7083c021
AC
5308f { unput (yytext[0]); }
5309. { BEGIN INITIAL; }
5310%%
5311#ifdef YYTEXT_POINTER
5312extern char *yytext;
212380e3 5313#endif
212380e3 5314int
7083c021 5315main (void)
212380e3 5316{
7083c021 5317 return ! yylex () + ! yywrap ();
212380e3
AC
5318}
5319_ACEOF
7083c021 5320{ { ac_try="$LEX conftest.l"
631ef239
AC
5321case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324esac
7083c021
AC
5325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5326$as_echo "$ac_try_echo"; } >&5
5327 (eval "$LEX conftest.l") 2>&5
212380e3 5328 ac_status=$?
7083c021
AC
5329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5330 test $ac_status = 0; }
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5332$as_echo_n "checking lex output file root... " >&6; }
b6d0720c 5333if ${ac_cv_prog_lex_root+:} false; then :
7083c021 5334 $as_echo_n "(cached) " >&6
212380e3 5335else
212380e3 5336
7083c021
AC
5337if test -f lex.yy.c; then
5338 ac_cv_prog_lex_root=lex.yy
5339elif test -f lexyy.c; then
5340 ac_cv_prog_lex_root=lexyy
5341else
b6d0720c 5342 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7083c021
AC
5343fi
5344fi
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5346$as_echo "$ac_cv_prog_lex_root" >&6; }
5347LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5348
5349if test -z "${LEXLIB+set}"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5351$as_echo_n "checking lex library... " >&6; }
b6d0720c 5352if ${ac_cv_lib_lex+:} false; then :
7083c021
AC
5353 $as_echo_n "(cached) " >&6
5354else
631ef239 5355
7083c021
AC
5356 ac_save_LIBS=$LIBS
5357 ac_cv_lib_lex='none needed'
5358 for ac_lib in '' -lfl -ll; do
5359 LIBS="$ac_lib $ac_save_LIBS"
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h. */
5362`cat $LEX_OUTPUT_ROOT.c`
5363_ACEOF
5364if ac_fn_c_try_link "$LINENO"; then :
5365 ac_cv_lib_lex=$ac_lib
212380e3 5366fi
7083c021
AC
5367rm -f core conftest.err conftest.$ac_objext \
5368 conftest$ac_exeext conftest.$ac_ext
5369 test "$ac_cv_lib_lex" != 'none needed' && break
5370 done
5371 LIBS=$ac_save_LIBS
631ef239 5372
631ef239 5373fi
7083c021
AC
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5375$as_echo "$ac_cv_lib_lex" >&6; }
5376 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5377fi
5378
5379
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5381$as_echo_n "checking whether yytext is a pointer... " >&6; }
b6d0720c 5382if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7083c021 5383 $as_echo_n "(cached) " >&6
631ef239 5384else
7083c021
AC
5385 # POSIX says lex can declare yytext either as a pointer or an array; the
5386# default is implementation-dependent. Figure out which it is, since
5387# not all implementations provide the %pointer and %array declarations.
5388ac_cv_prog_lex_yytext_pointer=no
5389ac_save_LIBS=$LIBS
5390LIBS="$LEXLIB $ac_save_LIBS"
5391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h. */
b6d0720c
AC
5393
5394 #define YYTEXT_POINTER 1
7083c021
AC
5395`cat $LEX_OUTPUT_ROOT.c`
5396_ACEOF
5397if ac_fn_c_try_link "$LINENO"; then :
5398 ac_cv_prog_lex_yytext_pointer=yes
212380e3 5399fi
7083c021
AC
5400rm -f core conftest.err conftest.$ac_objext \
5401 conftest$ac_exeext conftest.$ac_ext
5402LIBS=$ac_save_LIBS
5403
212380e3 5404fi
7083c021
AC
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5406$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5407if test $ac_cv_prog_lex_yytext_pointer = yes; then
212380e3 5408
7083c021
AC
5409$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5410
5411fi
5412rm -f conftest.l $LEX_OUTPUT_ROOT.c
5413
5414fi
5415
5416if test "$LEX" = ":"; then
b6d0720c 5417 as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
212380e3
AC
5418fi
5419
9f9b7042
NPB
5420# Check whether --enable-fhs-paths was given.
5421if test "${enable_fhs_paths+set}" = set; then :
5422 enableval=$enable_fhs_paths;
5423else
5424 if test "$libexecdir" = '${exec_prefix}/libexec' && \
5425 test "$localstatedir" = '${prefix}/var' && \
5426 test "$libdir" = '${exec_prefix}/lib'; then :
5427 enable_fhs_paths=no
5428else
5429 enable_fhs_paths=yes
5430fi
5431
5432fi
5433
5434if test "x$enable_fhs_paths" = "xyes"; then :
5435 pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}'
5436 rundir=${rundir-'${prefix}/run'}
5437 pkgrundir='${rundir}/${PACKAGE_TARNAME}'
5438 pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}'
5439else
5440 libexecdir='${bindir}'
5441 pkglibexecdir='${libexecdir}'
5442 rundir='${sysconfdir}'
5443 pkgrundir='${rundir}'
7083c021 5444 localstatedir='${prefix}'
9f9b7042 5445 pkglocalstatedir='${sysconfdir}'
631ef239 5446fi
9f9b7042
NPB
5447pkglibdir='${libdir}/${PACKAGE_TARNAME}'
5448
5449
5450
5451
5452
5453 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5455 last_ac_define_dir=`eval echo $pkglocalstatedir`
5456 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 5457 ac_define_dir_counter=0
9f9b7042
NPB
5458 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5459 last_ac_define_dir="$ac_define_dir"
5460 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
5461 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
5462 if test "x$ac_define_dir_counter" = x128; then :
5463 as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5
5464 break
5465fi
9f9b7042
NPB
5466 done
5467 PKGLOCALSTATEDIR="$ac_define_dir"
5468
5469
5470cat >>confdefs.h <<_ACEOF
5471#define PKGLOCALSTATEDIR "$ac_define_dir"
5472_ACEOF
5473
5474
5475
5476
5477 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5478 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5479 last_ac_define_dir=`eval echo $pkglibexecdir`
5480 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 5481 ac_define_dir_counter=0
9f9b7042
NPB
5482 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5483 last_ac_define_dir="$ac_define_dir"
5484 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
5485 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
5486 if test "x$ac_define_dir_counter" = x128; then :
5487 as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5
5488 break
5489fi
9f9b7042
NPB
5490 done
5491 PKGLIBEXECDIR="$ac_define_dir"
5492
5493
5494cat >>confdefs.h <<_ACEOF
5495#define PKGLIBEXECDIR "$ac_define_dir"
5496_ACEOF
5497
5498
212380e3 5499
7083c021
AC
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5501$as_echo_n "checking for ANSI C header files... " >&6; }
b6d0720c 5502if ${ac_cv_header_stdc+:} false; then :
7083c021 5503 $as_echo_n "(cached) " >&6
212380e3 5504else
7083c021 5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5506/* end confdefs.h. */
7083c021
AC
5507#include <stdlib.h>
5508#include <stdarg.h>
5509#include <string.h>
5510#include <float.h>
212380e3
AC
5511
5512int
5513main ()
5514{
7083c021 5515
212380e3
AC
5516 ;
5517 return 0;
5518}
5519_ACEOF
7083c021
AC
5520if ac_fn_c_try_compile "$LINENO"; then :
5521 ac_cv_header_stdc=yes
212380e3 5522else
7083c021 5523 ac_cv_header_stdc=no
212380e3 5524fi
631ef239 5525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5526
7083c021
AC
5527if test $ac_cv_header_stdc = yes; then
5528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h. */
5531#include <string.h>
5532
212380e3 5533_ACEOF
7083c021
AC
5534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5535 $EGREP "memchr" >/dev/null 2>&1; then :
5536
5537else
5538 ac_cv_header_stdc=no
5539fi
5540rm -f conftest*
212380e3
AC
5541
5542fi
5543
7083c021
AC
5544if test $ac_cv_header_stdc = yes; then
5545 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547/* end confdefs.h. */
5548#include <stdlib.h>
5549
5550_ACEOF
5551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5552 $EGREP "free" >/dev/null 2>&1; then :
212380e3 5553
212380e3 5554else
7083c021 5555 ac_cv_header_stdc=no
631ef239 5556fi
7083c021 5557rm -f conftest*
631ef239 5558
7083c021 5559fi
212380e3 5560
7083c021
AC
5561if test $ac_cv_header_stdc = yes; then
5562 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5563 if test "$cross_compiling" = yes; then :
5564 :
212380e3 5565else
7083c021 5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5567/* end confdefs.h. */
7083c021
AC
5568#include <ctype.h>
5569#include <stdlib.h>
5570#if ((' ' & 0x0FF) == 0x020)
5571# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5572# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5573#else
5574# define ISLOWER(c) \
5575 (('a' <= (c) && (c) <= 'i') \
5576 || ('j' <= (c) && (c) <= 'r') \
5577 || ('s' <= (c) && (c) <= 'z'))
5578# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
212380e3 5579#endif
7083c021
AC
5580
5581#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
5582int
5583main ()
5584{
7083c021
AC
5585 int i;
5586 for (i = 0; i < 256; i++)
5587 if (XOR (islower (i), ISLOWER (i))
5588 || toupper (i) != TOUPPER (i))
5589 return 2;
212380e3
AC
5590 return 0;
5591}
5592_ACEOF
7083c021 5593if ac_fn_c_try_run "$LINENO"; then :
212380e3 5594
7083c021
AC
5595else
5596 ac_cv_header_stdc=no
631ef239 5597fi
7083c021
AC
5598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5599 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 5600fi
7083c021 5601
212380e3 5602fi
212380e3 5603fi
7083c021
AC
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5605$as_echo "$ac_cv_header_stdc" >&6; }
5606if test $ac_cv_header_stdc = yes; then
5607
5608$as_echo "#define STDC_HEADERS 1" >>confdefs.h
212380e3
AC
5609
5610fi
5611
5612
7083c021
AC
5613for 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
5614do :
5615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5616ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
b6d0720c 5617if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
5618 cat >>confdefs.h <<_ACEOF
5619#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5620_ACEOF
212380e3 5621
212380e3
AC
5622fi
5623
7083c021 5624done
212380e3
AC
5625
5626
212380e3 5627
7083c021
AC
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5629$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b6d0720c 5630if ${ac_cv_c_const+:} false; then :
7083c021
AC
5631 $as_echo_n "(cached) " >&6
5632else
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h. */
212380e3 5635
7083c021
AC
5636int
5637main ()
5638{
2eff3833 5639
7083c021 5640#ifndef __cplusplus
2eff3833 5641 /* Ultrix mips cc rejects this sort of thing. */
7083c021 5642 typedef int charset[2];
2eff3833 5643 const charset cs = { 0, 0 };
7083c021
AC
5644 /* SunOS 4.1.1 cc rejects this. */
5645 char const *const *pcpcc;
5646 char **ppc;
5647 /* NEC SVR4.0.2 mips cc rejects this. */
5648 struct point {int x, y;};
5649 static struct point const zero = {0,0};
5650 /* AIX XL C 1.02.0.0 rejects this.
5651 It does not let you subtract one const X* pointer from another in
5652 an arm of an if-expression whose if-part is not a constant
5653 expression */
5654 const char *g = "string";
5655 pcpcc = &g + (g ? g-g : 0);
5656 /* HPUX 7.0 cc rejects these. */
5657 ++pcpcc;
5658 ppc = (char**) pcpcc;
5659 pcpcc = (char const *const *) ppc;
2eff3833
JT
5660 { /* SCO 3.2v4 cc rejects this sort of thing. */
5661 char tx;
5662 char *t = &tx;
7083c021 5663 char const *s = 0 ? (char *) 0 : (char const *) 0;
212380e3 5664
7083c021
AC
5665 *t++ = 0;
5666 if (s) return 0;
5667 }
5668 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5669 int x[] = {25, 17};
5670 const int *foo = &x[0];
5671 ++foo;
5672 }
5673 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5674 typedef const int *iptr;
5675 iptr p = 0;
5676 ++p;
5677 }
2eff3833 5678 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7083c021 5679 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2eff3833
JT
5680 struct s { int j; const int *ap[3]; } bx;
5681 struct s *b = &bx; b->j = 5;
7083c021
AC
5682 }
5683 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5684 const int foo = 10;
5685 if (!foo) return 0;
5686 }
5687 return !cs[0] && !zero.x;
5688#endif
212380e3 5689
7083c021
AC
5690 ;
5691 return 0;
5692}
212380e3 5693_ACEOF
7083c021
AC
5694if ac_fn_c_try_compile "$LINENO"; then :
5695 ac_cv_c_const=yes
212380e3 5696else
7083c021 5697 ac_cv_c_const=no
212380e3 5698fi
631ef239 5699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5700fi
7083c021
AC
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5702$as_echo "$ac_cv_c_const" >&6; }
5703if test $ac_cv_c_const = no; then
212380e3 5704
7083c021 5705$as_echo "#define const /**/" >>confdefs.h
212380e3
AC
5706
5707fi
5708
7083c021
AC
5709if test "$ac_cv_header_machine_endian_h" = "no" ; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5711$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 5712if ${ac_cv_c_bigendian+:} false; then :
7083c021 5713 $as_echo_n "(cached) " >&6
212380e3 5714else
7083c021
AC
5715 ac_cv_c_bigendian=unknown
5716 # See if we're dealing with a universal compiler.
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h. */
5719#ifndef __APPLE_CC__
5720 not a universal capable compiler
5721 #endif
5722 typedef int dummy;
5723
5724_ACEOF
5725if ac_fn_c_try_compile "$LINENO"; then :
5726
5727 # Check for potential -arch flags. It is not universal unless
5728 # there are at least two -arch flags with different values.
5729 ac_arch=
5730 ac_prev=
5731 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5732 if test -n "$ac_prev"; then
5733 case $ac_word in
5734 i?86 | x86_64 | ppc | ppc64)
5735 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5736 ac_arch=$ac_word
5737 else
5738 ac_cv_c_bigendian=universal
5739 break
5740 fi
5741 ;;
5742 esac
5743 ac_prev=
5744 elif test "x$ac_word" = "x-arch"; then
5745 ac_prev=arch
5746 fi
5747 done
5748fi
5749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 if test $ac_cv_c_bigendian = unknown; then
5751 # See if sys/param.h defines the BYTE_ORDER macro.
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
5753/* end confdefs.h. */
5754#include <sys/types.h>
7083c021 5755 #include <sys/param.h>
212380e3
AC
5756
5757int
5758main ()
5759{
7083c021
AC
5760#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5761 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5762 && LITTLE_ENDIAN)
5763 bogus endian macros
5764 #endif
212380e3
AC
5765
5766 ;
5767 return 0;
5768}
5769_ACEOF
7083c021 5770if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5771 # It does; now see whether it defined to BIG_ENDIAN or not.
7083c021 5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
5773/* end confdefs.h. */
5774#include <sys/types.h>
7083c021 5775 #include <sys/param.h>
212380e3
AC
5776
5777int
5778main ()
5779{
5780#if BYTE_ORDER != BIG_ENDIAN
7083c021
AC
5781 not big endian
5782 #endif
212380e3
AC
5783
5784 ;
5785 return 0;
5786}
5787_ACEOF
7083c021 5788if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
5789 ac_cv_c_bigendian=yes
5790else
7083c021 5791 ac_cv_c_bigendian=no
212380e3 5792fi
631ef239 5793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
5794fi
5795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 fi
5797 if test $ac_cv_c_bigendian = unknown; then
5798 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800/* end confdefs.h. */
5801#include <limits.h>
212380e3 5802
7083c021
AC
5803int
5804main ()
5805{
5806#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5807 bogus endian macros
5808 #endif
5809
5810 ;
5811 return 0;
5812}
212380e3 5813_ACEOF
7083c021
AC
5814if ac_fn_c_try_compile "$LINENO"; then :
5815 # It does; now see whether it defined to _BIG_ENDIAN or not.
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5817/* end confdefs.h. */
7083c021
AC
5818#include <limits.h>
5819
212380e3
AC
5820int
5821main ()
5822{
7083c021
AC
5823#ifndef _BIG_ENDIAN
5824 not big endian
5825 #endif
5826
212380e3
AC
5827 ;
5828 return 0;
5829}
5830_ACEOF
7083c021 5831if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5832 ac_cv_c_bigendian=yes
7083c021
AC
5833else
5834 ac_cv_c_bigendian=no
212380e3 5835fi
7083c021 5836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5837fi
7083c021
AC
5838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 fi
5840 if test $ac_cv_c_bigendian = unknown; then
5841 # Compile a test program.
5842 if test "$cross_compiling" = yes; then :
5843 # Try to guess by grepping values from an object file.
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845/* end confdefs.h. */
5846short int ascii_mm[] =
5847 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5848 short int ascii_ii[] =
5849 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5850 int use_ascii (int i) {
5851 return ascii_mm[i] + ascii_ii[i];
5852 }
5853 short int ebcdic_ii[] =
5854 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5855 short int ebcdic_mm[] =
5856 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5857 int use_ebcdic (int i) {
5858 return ebcdic_mm[i] + ebcdic_ii[i];
5859 }
5860 extern int foo;
631ef239 5861
7083c021
AC
5862int
5863main ()
5864{
5865return use_ascii (foo) == use_ebcdic (foo);
5866 ;
5867 return 0;
5868}
5869_ACEOF
5870if ac_fn_c_try_compile "$LINENO"; then :
5871 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5872 ac_cv_c_bigendian=yes
5873 fi
5874 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5875 if test "$ac_cv_c_bigendian" = unknown; then
5876 ac_cv_c_bigendian=no
5877 else
5878 # finding both strings is unlikely to happen, but who knows?
5879 ac_cv_c_bigendian=unknown
5880 fi
5881 fi
212380e3 5882fi
631ef239 5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5884else
7083c021 5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5886/* end confdefs.h. */
631ef239 5887$ac_includes_default
212380e3
AC
5888int
5889main ()
5890{
631ef239 5891
7083c021
AC
5892 /* Are we little or big endian? From Harbison&Steele. */
5893 union
5894 {
5895 long int l;
5896 char c[sizeof (long int)];
5897 } u;
5898 u.l = 1;
5899 return u.c[sizeof (long int) - 1] == 1;
631ef239
AC
5900
5901 ;
5902 return 0;
212380e3
AC
5903}
5904_ACEOF
7083c021 5905if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
5906 ac_cv_c_bigendian=no
5907else
7083c021 5908 ac_cv_c_bigendian=yes
212380e3 5909fi
7083c021
AC
5910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5911 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 5912fi
631ef239 5913
7083c021 5914 fi
212380e3 5915fi
7083c021
AC
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5917$as_echo "$ac_cv_c_bigendian" >&6; }
5918 case $ac_cv_c_bigendian in #(
5919 yes)
5920 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5921;; #(
5922 no)
5923 ;; #(
5924 universal)
5925
5926$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5927
5928 ;; #(
5929 *)
b6d0720c 5930 as_fn_error $? "unknown endianness
7083c021
AC
5931 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5932 esac
631ef239 5933
212380e3 5934fi
7083c021 5935ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
b6d0720c 5936if test "x$ac_cv_type_pid_t" = xyes; then :
212380e3 5937
7083c021 5938else
212380e3 5939
7083c021
AC
5940cat >>confdefs.h <<_ACEOF
5941#define pid_t int
5942_ACEOF
212380e3 5943
212380e3 5944fi
7083c021
AC
5945
5946ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
b6d0720c 5947if test "x$ac_cv_type_size_t" = xyes; then :
7083c021 5948
212380e3 5949else
7083c021
AC
5950
5951cat >>confdefs.h <<_ACEOF
5952#define size_t unsigned int
212380e3 5953_ACEOF
7083c021
AC
5954
5955fi
5956
5957# The cast to long int works around a bug in the HP C Compiler
5958# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5959# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5960# This bug is HP SR number 8606223364.
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5962$as_echo_n "checking size of short... " >&6; }
b6d0720c 5963if ${ac_cv_sizeof_short+:} false; then :
7083c021 5964 $as_echo_n "(cached) " >&6
212380e3 5965else
7083c021
AC
5966 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5967
5968else
5969 if test "$ac_cv_type_short" = yes; then
5970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
5972as_fn_error 77 "cannot compute sizeof (short)
5973See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
5974 else
5975 ac_cv_sizeof_short=0
5976 fi
5977fi
212380e3 5978
212380e3 5979fi
7083c021
AC
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5981$as_echo "$ac_cv_sizeof_short" >&6; }
631ef239 5982
212380e3 5983
7083c021
AC
5984
5985cat >>confdefs.h <<_ACEOF
5986#define SIZEOF_SHORT $ac_cv_sizeof_short
212380e3 5987_ACEOF
7083c021
AC
5988
5989
5990# The cast to long int works around a bug in the HP C Compiler
5991# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5992# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5993# This bug is HP SR number 8606223364.
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5995$as_echo_n "checking size of int... " >&6; }
b6d0720c 5996if ${ac_cv_sizeof_int+:} false; then :
7083c021
AC
5997 $as_echo_n "(cached) " >&6
5998else
5999 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6000
6001else
6002 if test "$ac_cv_type_int" = yes; then
6003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
6005as_fn_error 77 "cannot compute sizeof (int)
6006See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
6007 else
6008 ac_cv_sizeof_int=0
6009 fi
6010fi
6011
6012fi
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6014$as_echo "$ac_cv_sizeof_int" >&6; }
6015
6016
6017
6018cat >>confdefs.h <<_ACEOF
6019#define SIZEOF_INT $ac_cv_sizeof_int
212380e3 6020_ACEOF
7083c021
AC
6021
6022
6023# The cast to long int works around a bug in the HP C Compiler
6024# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6025# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6026# This bug is HP SR number 8606223364.
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6028$as_echo_n "checking size of long... " >&6; }
b6d0720c 6029if ${ac_cv_sizeof_long+:} false; then :
7083c021 6030 $as_echo_n "(cached) " >&6
212380e3 6031else
7083c021 6032 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
212380e3 6033
7083c021
AC
6034else
6035 if test "$ac_cv_type_long" = yes; then
6036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
6038as_fn_error 77 "cannot compute sizeof (long)
6039See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
6040 else
6041 ac_cv_sizeof_long=0
6042 fi
212380e3 6043fi
631ef239 6044
7083c021
AC
6045fi
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6047$as_echo "$ac_cv_sizeof_long" >&6; }
212380e3 6048
631ef239 6049
7083c021
AC
6050
6051cat >>confdefs.h <<_ACEOF
6052#define SIZEOF_LONG $ac_cv_sizeof_long
6053_ACEOF
6054
6055
6056# The cast to long int works around a bug in the HP C Compiler
6057# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6058# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6059# This bug is HP SR number 8606223364.
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6061$as_echo_n "checking size of long long... " >&6; }
b6d0720c 6062if ${ac_cv_sizeof_long_long+:} false; then :
7083c021
AC
6063 $as_echo_n "(cached) " >&6
6064else
6065 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6066
212380e3 6067else
7083c021
AC
6068 if test "$ac_cv_type_long_long" = yes; then
6069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
6071as_fn_error 77 "cannot compute sizeof (long long)
6072See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
6073 else
6074 ac_cv_sizeof_long_long=0
6075 fi
212380e3 6076fi
212380e3
AC
6077
6078fi
7083c021
AC
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6080$as_echo "$ac_cv_sizeof_long_long" >&6; }
212380e3
AC
6081
6082
6083
7083c021
AC
6084cat >>confdefs.h <<_ACEOF
6085#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6086_ACEOF
212380e3 6087
212380e3 6088
212380e3 6089
7083c021
AC
6090
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6092$as_echo_n "checking for library containing socket... " >&6; }
b6d0720c 6093if ${ac_cv_search_socket+:} false; then :
7083c021
AC
6094 $as_echo_n "(cached) " >&6
6095else
6096 ac_func_search_save_LIBS=$LIBS
6097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6098/* end confdefs.h. */
7083c021
AC
6099
6100/* Override any GCC internal prototype to avoid an error.
6101 Use char because int might match the return type of a GCC
6102 builtin and then its argument prototype would still apply. */
6103#ifdef __cplusplus
6104extern "C"
6105#endif
6106char socket ();
212380e3
AC
6107int
6108main ()
6109{
7083c021 6110return socket ();
212380e3
AC
6111 ;
6112 return 0;
6113}
6114_ACEOF
7083c021
AC
6115for ac_lib in '' socket; do
6116 if test -z "$ac_lib"; then
6117 ac_res="none required"
6118 else
6119 ac_res=-l$ac_lib
6120 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6121 fi
6122 if ac_fn_c_try_link "$LINENO"; then :
6123 ac_cv_search_socket=$ac_res
6124fi
6125rm -f core conftest.err conftest.$ac_objext \
6126 conftest$ac_exeext
b6d0720c 6127 if ${ac_cv_search_socket+:} false; then :
7083c021
AC
6128 break
6129fi
6130done
b6d0720c 6131if ${ac_cv_search_socket+:} false; then :
212380e3
AC
6132
6133else
7083c021
AC
6134 ac_cv_search_socket=no
6135fi
6136rm conftest.$ac_ext
6137LIBS=$ac_func_search_save_LIBS
6138fi
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6140$as_echo "$ac_cv_search_socket" >&6; }
6141ac_res=$ac_cv_search_socket
6142if test "$ac_res" != no; then :
6143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6144
7083c021 6145else
b6d0720c 6146 as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5
212380e3 6147fi
631ef239 6148
212380e3 6149
7083c021
AC
6150if test x"$SUN" = xyes; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6152$as_echo_n "checking for library containing inet_ntoa... " >&6; }
b6d0720c 6153if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
6154 $as_echo_n "(cached) " >&6
6155else
6156 ac_func_search_save_LIBS=$LIBS
6157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6158/* end confdefs.h. */
7083c021
AC
6159
6160/* Override any GCC internal prototype to avoid an error.
6161 Use char because int might match the return type of a GCC
6162 builtin and then its argument prototype would still apply. */
6163#ifdef __cplusplus
6164extern "C"
6165#endif
6166char inet_ntoa ();
212380e3
AC
6167int
6168main ()
6169{
7083c021 6170return inet_ntoa ();
212380e3
AC
6171 ;
6172 return 0;
6173}
6174_ACEOF
7083c021
AC
6175for ac_lib in '' nsl; do
6176 if test -z "$ac_lib"; then
6177 ac_res="none required"
6178 else
6179 ac_res=-l$ac_lib
6180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6181 fi
6182 if ac_fn_c_try_link "$LINENO"; then :
6183 ac_cv_search_inet_ntoa=$ac_res
6184fi
6185rm -f core conftest.err conftest.$ac_objext \
6186 conftest$ac_exeext
b6d0720c 6187 if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
6188 break
6189fi
6190done
b6d0720c 6191if ${ac_cv_search_inet_ntoa+:} false; then :
212380e3
AC
6192
6193else
7083c021
AC
6194 ac_cv_search_inet_ntoa=no
6195fi
6196rm conftest.$ac_ext
6197LIBS=$ac_func_search_save_LIBS
6198fi
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6200$as_echo "$ac_cv_search_inet_ntoa" >&6; }
6201ac_res=$ac_cv_search_inet_ntoa
6202if test "$ac_res" != no; then :
6203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6204
7083c021 6205else
b6d0720c 6206 as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5
212380e3 6207fi
631ef239 6208
7083c021 6209fi
212380e3 6210
7083c021
AC
6211ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6212#include <sys/socket.h>
6213"
b6d0720c 6214if test "x$ac_cv_type_socklen_t" = xyes; then :
212380e3
AC
6215
6216else
6217
7083c021 6218$as_echo "#define socklen_t unsigned int" >>confdefs.h
212380e3 6219
7083c021 6220fi
212380e3
AC
6221
6222
7083c021
AC
6223# Check whether --enable-ipv6 was given.
6224if test "${enable_ipv6+set}" = set; then :
6225 enableval=$enable_ipv6; ipv6=$enableval
212380e3 6226else
7083c021
AC
6227 ipv6=no
6228fi
212380e3 6229
212380e3 6230
7083c021
AC
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6232$as_echo_n "checking for library containing crypt... " >&6; }
b6d0720c 6233if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
6234 $as_echo_n "(cached) " >&6
6235else
6236 ac_func_search_save_LIBS=$LIBS
6237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238/* end confdefs.h. */
212380e3 6239
631ef239
AC
6240/* Override any GCC internal prototype to avoid an error.
6241 Use char because int might match the return type of a GCC
6242 builtin and then its argument prototype would still apply. */
212380e3
AC
6243#ifdef __cplusplus
6244extern "C"
212380e3 6245#endif
7083c021 6246char crypt ();
212380e3
AC
6247int
6248main ()
6249{
7083c021 6250return crypt ();
212380e3
AC
6251 ;
6252 return 0;
6253}
6254_ACEOF
7083c021
AC
6255for ac_lib in '' crypt descrypt; do
6256 if test -z "$ac_lib"; then
6257 ac_res="none required"
6258 else
6259 ac_res=-l$ac_lib
6260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6261 fi
6262 if ac_fn_c_try_link "$LINENO"; then :
6263 ac_cv_search_crypt=$ac_res
6264fi
6265rm -f core conftest.err conftest.$ac_objext \
6266 conftest$ac_exeext
b6d0720c 6267 if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
6268 break
6269fi
6270done
b6d0720c 6271if ${ac_cv_search_crypt+:} false; then :
7083c021 6272
212380e3 6273else
7083c021
AC
6274 ac_cv_search_crypt=no
6275fi
6276rm conftest.$ac_ext
6277LIBS=$ac_func_search_save_LIBS
6278fi
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6280$as_echo "$ac_cv_search_crypt" >&6; }
6281ac_res=$ac_cv_search_crypt
6282if test "$ac_res" != no; then :
6283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6284
212380e3 6285fi
631ef239 6286
7083c021
AC
6287
6288CRYPT_LIB=$ac_cv_search_crypt
6289
6290if test "$CRYPT_LIB" = "none required"; then
6291 unset CRYPT_LIB
6292elif test "$CRYPT_LIB" = no; then
6293 unset CRYPT_LIB
212380e3 6294fi
7083c021
AC
6295
6296
6297
6298if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6299 VICONF=viconf
6300 else
6301 VICONF=""
6302fi
6303
6304
6305
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6307$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
b6d0720c 6308if ${gcc_cv_header_string+:} false; then :
7083c021
AC
6309 $as_echo_n "(cached) " >&6
6310else
6311
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313/* end confdefs.h. */
6314#include <string.h>
6315 #include <strings.h>
212380e3 6316_ACEOF
7083c021
AC
6317if ac_fn_c_try_compile "$LINENO"; then :
6318 gcc_cv_header_string=yes
6319else
6320 gcc_cv_header_string=no
6321fi
6322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
6323
6324fi
7083c021
AC
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6326$as_echo "$gcc_cv_header_string" >&6; }
212380e3 6327
7083c021
AC
6328if test "$gcc_cv_header_string" = "yes"; then
6329
6330$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6331
6332fi
212380e3 6333
7083c021
AC
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6335$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 6336if ${ac_cv_c_bigendian+:} false; then :
7083c021
AC
6337 $as_echo_n "(cached) " >&6
6338else
6339 ac_cv_c_bigendian=unknown
6340 # See if we're dealing with a universal compiler.
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342/* end confdefs.h. */
6343#ifndef __APPLE_CC__
6344 not a universal capable compiler
6345 #endif
6346 typedef int dummy;
6347
6348_ACEOF
6349if ac_fn_c_try_compile "$LINENO"; then :
6350
6351 # Check for potential -arch flags. It is not universal unless
6352 # there are at least two -arch flags with different values.
6353 ac_arch=
6354 ac_prev=
6355 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6356 if test -n "$ac_prev"; then
6357 case $ac_word in
6358 i?86 | x86_64 | ppc | ppc64)
6359 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6360 ac_arch=$ac_word
6361 else
6362 ac_cv_c_bigendian=universal
6363 break
6364 fi
6365 ;;
6366 esac
6367 ac_prev=
6368 elif test "x$ac_word" = "x-arch"; then
6369 ac_prev=arch
6370 fi
6371 done
212380e3 6372fi
7083c021
AC
6373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374 if test $ac_cv_c_bigendian = unknown; then
6375 # See if sys/param.h defines the BYTE_ORDER macro.
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377/* end confdefs.h. */
6378#include <sys/types.h>
6379 #include <sys/param.h>
6380
6381int
6382main ()
6383{
6384#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6385 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6386 && LITTLE_ENDIAN)
6387 bogus endian macros
6388 #endif
6389
6390 ;
6391 return 0;
6392}
6393_ACEOF
6394if ac_fn_c_try_compile "$LINENO"; then :
6395 # It does; now see whether it defined to BIG_ENDIAN or not.
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397/* end confdefs.h. */
6398#include <sys/types.h>
6399 #include <sys/param.h>
6400
6401int
6402main ()
6403{
6404#if BYTE_ORDER != BIG_ENDIAN
6405 not big endian
6406 #endif
212380e3 6407
7083c021
AC
6408 ;
6409 return 0;
6410}
6411_ACEOF
6412if ac_fn_c_try_compile "$LINENO"; then :
6413 ac_cv_c_bigendian=yes
212380e3 6414else
7083c021
AC
6415 ac_cv_c_bigendian=no
6416fi
6417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418fi
6419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 fi
6421 if test $ac_cv_c_bigendian = unknown; then
6422 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424/* end confdefs.h. */
6425#include <limits.h>
6426
6427int
6428main ()
6429{
6430#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6431 bogus endian macros
6432 #endif
6433
6434 ;
6435 return 0;
6436}
212380e3 6437_ACEOF
7083c021
AC
6438if ac_fn_c_try_compile "$LINENO"; then :
6439 # It does; now see whether it defined to _BIG_ENDIAN or not.
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6441/* end confdefs.h. */
7083c021
AC
6442#include <limits.h>
6443
212380e3
AC
6444int
6445main ()
6446{
7083c021
AC
6447#ifndef _BIG_ENDIAN
6448 not big endian
6449 #endif
6450
212380e3
AC
6451 ;
6452 return 0;
6453}
6454_ACEOF
7083c021
AC
6455if ac_fn_c_try_compile "$LINENO"; then :
6456 ac_cv_c_bigendian=yes
212380e3 6457else
7083c021 6458 ac_cv_c_bigendian=no
212380e3 6459fi
631ef239 6460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6461fi
7083c021
AC
6462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463 fi
6464 if test $ac_cv_c_bigendian = unknown; then
6465 # Compile a test program.
6466 if test "$cross_compiling" = yes; then :
6467 # Try to guess by grepping values from an object file.
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h. */
6470short int ascii_mm[] =
6471 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6472 short int ascii_ii[] =
6473 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6474 int use_ascii (int i) {
6475 return ascii_mm[i] + ascii_ii[i];
6476 }
6477 short int ebcdic_ii[] =
6478 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6479 short int ebcdic_mm[] =
6480 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6481 int use_ebcdic (int i) {
6482 return ebcdic_mm[i] + ebcdic_ii[i];
6483 }
6484 extern int foo;
212380e3 6485
7083c021
AC
6486int
6487main ()
6488{
6489return use_ascii (foo) == use_ebcdic (foo);
6490 ;
6491 return 0;
6492}
212380e3 6493_ACEOF
7083c021
AC
6494if ac_fn_c_try_compile "$LINENO"; then :
6495 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6496 ac_cv_c_bigendian=yes
6497 fi
6498 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6499 if test "$ac_cv_c_bigendian" = unknown; then
6500 ac_cv_c_bigendian=no
6501 else
6502 # finding both strings is unlikely to happen, but who knows?
6503 ac_cv_c_bigendian=unknown
6504 fi
6505 fi
6506fi
6507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508else
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6510/* end confdefs.h. */
6511$ac_includes_default
6512int
6513main ()
6514{
7083c021
AC
6515
6516 /* Are we little or big endian? From Harbison&Steele. */
6517 union
6518 {
6519 long int l;
6520 char c[sizeof (long int)];
6521 } u;
6522 u.l = 1;
6523 return u.c[sizeof (long int) - 1] == 1;
6524
212380e3
AC
6525 ;
6526 return 0;
6527}
6528_ACEOF
7083c021
AC
6529if ac_fn_c_try_run "$LINENO"; then :
6530 ac_cv_c_bigendian=no
212380e3 6531else
7083c021 6532 ac_cv_c_bigendian=yes
212380e3 6533fi
7083c021
AC
6534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6535 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 6536fi
212380e3 6537
7083c021
AC
6538 fi
6539fi
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6541$as_echo "$ac_cv_c_bigendian" >&6; }
6542 case $ac_cv_c_bigendian in #(
6543 yes)
6544 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6545;; #(
6546 no)
6547 ;; #(
6548 universal)
212380e3 6549
7083c021 6550$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
212380e3 6551
7083c021
AC
6552 ;; #(
6553 *)
b6d0720c 6554 as_fn_error $? "unknown endianness
7083c021
AC
6555 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6556 esac
212380e3 6557
212380e3 6558
7083c021 6559ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
b6d0720c 6560if test "x$ac_cv_header_stdarg_h" = xyes; then :
212380e3 6561
7083c021 6562else
b6d0720c 6563 as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
7083c021 6564fi
212380e3
AC
6565
6566
212380e3
AC
6567
6568
7083c021 6569if test "$ac_cv_c_compiler_gnu" = yes; then
212380e3 6570
7083c021
AC
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6572$as_echo_n "checking for strlcpy... " >&6; }
6573save_CFLAGS=$CFLAGS
6574CFLAGS="$CFLAGS -Wimplicit -Werror"
212380e3 6575
7083c021 6576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6577/* end confdefs.h. */
7083c021
AC
6578#include <string.h>
6579 #include <stdlib.h>
212380e3
AC
6580int
6581main ()
6582{
7083c021
AC
6583char *a = malloc(6);
6584 strlcpy(a, "hello", 6);
6585
212380e3
AC
6586 ;
6587 return 0;
6588}
6589_ACEOF
7083c021
AC
6590if ac_fn_c_try_link "$LINENO"; then :
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6592$as_echo "yes" >&6; }
212380e3 6593
7083c021 6594$as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
631ef239 6595
212380e3 6596else
7083c021
AC
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598$as_echo "no" >&6; }
212380e3 6599
7083c021
AC
6600fi
6601rm -f core conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
6603
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6605$as_echo_n "checking for strlcat... " >&6; }
6606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6607/* end confdefs.h. */
7083c021
AC
6608#include <string.h>
6609 #include <stdlib.h>
212380e3
AC
6610int
6611main ()
6612{
7083c021
AC
6613char *a = malloc(6);
6614 a[0] = '\0';
6615 strlcat(a, "hello", 6);
6616
212380e3
AC
6617 ;
6618 return 0;
6619}
6620_ACEOF
7083c021
AC
6621if ac_fn_c_try_link "$LINENO"; then :
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6623$as_echo "yes" >&6; }
631ef239 6624
7083c021 6625$as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
212380e3 6626
7083c021
AC
6627else
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629$as_echo "no" >&6; }
212380e3 6630
7083c021
AC
6631fi
6632rm -f core conftest.err conftest.$ac_objext \
6633 conftest$ac_exeext conftest.$ac_ext
212380e3 6634
7083c021 6635CFLAGS=$save_CFLAGS
212380e3
AC
6636
6637else
6638
212380e3 6639
7083c021
AC
6640for ac_func in strlcat strlcpy
6641do :
6642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6643ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6644if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
6645 cat >>confdefs.h <<_ACEOF
6646#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
6647_ACEOF
6648
212380e3 6649fi
7083c021 6650done
212380e3
AC
6651
6652
6653fi
6654
7083c021 6655ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
b6d0720c 6656if test "x$ac_cv_type_u_int32_t" = xyes; then :
212380e3 6657
212380e3 6658else
212380e3 6659
7083c021 6660 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
b6d0720c 6661if test "x$ac_cv_type_uint32_t" = xyes; then :
212380e3 6662
631ef239 6663
7083c021 6664$as_echo "#define u_int32_t uint32_t" >>confdefs.h
212380e3 6665
212380e3 6666
7083c021 6667else
212380e3 6668
7083c021
AC
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6670$as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
212380e3 6671
7083c021 6672$as_echo "#define u_int32_t unsigned long int" >>confdefs.h
212380e3 6673
212380e3 6674
212380e3 6675fi
631ef239 6676
7083c021 6677
212380e3 6678fi
7083c021
AC
6679
6680
6681ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
b6d0720c 6682if test "x$ac_cv_type_u_int16_t" = xyes; then :
7083c021 6683
212380e3
AC
6684else
6685
7083c021 6686 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
b6d0720c 6687if test "x$ac_cv_type_uint16_t" = xyes; then :
212380e3 6688
7083c021
AC
6689
6690$as_echo "#define u_int16_t uint16_t" >>confdefs.h
212380e3
AC
6691
6692
212380e3 6693else
212380e3 6694
7083c021
AC
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6696$as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
631ef239 6697
7083c021 6698$as_echo "#define u_int16_t unsigned short int" >>confdefs.h
212380e3 6699
7083c021
AC
6700
6701fi
212380e3
AC
6702
6703
6704fi
6705
6706
7083c021
AC
6707ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6708#include <netinet/in.h>
6709"
b6d0720c 6710if test "x$ac_cv_type_in_port_t" = xyes; then :
212380e3 6711
7083c021 6712else
212380e3 6713
7083c021 6714$as_echo "#define in_port_t u_int16_t" >>confdefs.h
212380e3 6715
7083c021 6716fi
212380e3
AC
6717
6718
7083c021
AC
6719ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6720#include <sys/socket.h>
6721"
b6d0720c 6722if test "x$ac_cv_type_sa_family_t" = xyes; then :
212380e3 6723
212380e3 6724else
212380e3 6725
7083c021 6726$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
212380e3 6727
7083c021 6728fi
212380e3 6729
212380e3 6730
7083c021 6731ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
b6d0720c 6732if test "x$ac_cv_type_uintptr_t" = xyes; then :
212380e3 6733
7083c021
AC
6734cat >>confdefs.h <<_ACEOF
6735#define HAVE_UINTPTR_T 1
6736_ACEOF
212380e3 6737
631ef239 6738
212380e3 6739fi
7083c021
AC
6740
6741
6742for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
6743do :
6744 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6745ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6746if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3 6747 cat >>confdefs.h <<_ACEOF
7083c021 6748#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
6749_ACEOF
6750
6751fi
6752done
6753
6754
6755# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6756# for constant arguments. Useless!
7083c021
AC
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6758$as_echo_n "checking for working alloca.h... " >&6; }
b6d0720c 6759if ${ac_cv_working_alloca_h+:} false; then :
7083c021 6760 $as_echo_n "(cached) " >&6
212380e3 6761else
7083c021 6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6763/* end confdefs.h. */
6764#include <alloca.h>
6765int
6766main ()
6767{
6768char *p = (char *) alloca (2 * sizeof (int));
631ef239 6769 if (p) return 0;
212380e3
AC
6770 ;
6771 return 0;
6772}
6773_ACEOF
7083c021 6774if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6775 ac_cv_working_alloca_h=yes
6776else
7083c021 6777 ac_cv_working_alloca_h=no
212380e3 6778fi
7083c021
AC
6779rm -f core conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
212380e3 6781fi
7083c021
AC
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6783$as_echo "$ac_cv_working_alloca_h" >&6; }
212380e3
AC
6784if test $ac_cv_working_alloca_h = yes; then
6785
7083c021 6786$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
212380e3
AC
6787
6788fi
6789
7083c021
AC
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6791$as_echo_n "checking for alloca... " >&6; }
b6d0720c 6792if ${ac_cv_func_alloca_works+:} false; then :
7083c021 6793 $as_echo_n "(cached) " >&6
212380e3 6794else
7083c021 6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6796/* end confdefs.h. */
6797#ifdef __GNUC__
6798# define alloca __builtin_alloca
6799#else
6800# ifdef _MSC_VER
6801# include <malloc.h>
6802# define alloca _alloca
6803# else
631ef239 6804# ifdef HAVE_ALLOCA_H
212380e3
AC
6805# include <alloca.h>
6806# else
6807# ifdef _AIX
6808 #pragma alloca
6809# else
6810# ifndef alloca /* predefined by HP cc +Olibcalls */
b6d0720c 6811void *alloca (size_t);
212380e3
AC
6812# endif
6813# endif
6814# endif
6815# endif
6816#endif
6817
6818int
6819main ()
6820{
6821char *p = (char *) alloca (1);
631ef239 6822 if (p) return 0;
212380e3
AC
6823 ;
6824 return 0;
6825}
6826_ACEOF
7083c021 6827if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6828 ac_cv_func_alloca_works=yes
6829else
7083c021 6830 ac_cv_func_alloca_works=no
212380e3 6831fi
7083c021
AC
6832rm -f core conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
212380e3 6834fi
7083c021
AC
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6836$as_echo "$ac_cv_func_alloca_works" >&6; }
212380e3
AC
6837
6838if test $ac_cv_func_alloca_works = yes; then
6839
7083c021 6840$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
212380e3
AC
6841
6842else
6843 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6844# that cause trouble. Some versions do not even contain alloca or
6845# contain a buggy version. If you still want to use their alloca,
6846# use ar to extract alloca.o from them instead of compiling alloca.c.
6847
631ef239 6848ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
212380e3 6849
7083c021 6850$as_echo "#define C_ALLOCA 1" >>confdefs.h
212380e3
AC
6851
6852
7083c021
AC
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6854$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
b6d0720c 6855if ${ac_cv_os_cray+:} false; then :
7083c021 6856 $as_echo_n "(cached) " >&6
212380e3 6857else
7083c021 6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6859/* end confdefs.h. */
631ef239 6860#if defined CRAY && ! defined CRAY2
212380e3
AC
6861webecray
6862#else
6863wenotbecray
6864#endif
6865
6866_ACEOF
6867if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021 6868 $EGREP "webecray" >/dev/null 2>&1; then :
212380e3
AC
6869 ac_cv_os_cray=yes
6870else
6871 ac_cv_os_cray=no
6872fi
6873rm -f conftest*
6874
6875fi
7083c021
AC
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6877$as_echo "$ac_cv_os_cray" >&6; }
212380e3
AC
6878if test $ac_cv_os_cray = yes; then
6879 for ac_func in _getb67 GETB67 getb67; do
7083c021
AC
6880 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6881ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6882if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3
AC
6883
6884cat >>confdefs.h <<_ACEOF
6885#define CRAY_STACKSEG_END $ac_func
6886_ACEOF
6887
6888 break
6889fi
6890
6891 done
6892fi
6893
7083c021
AC
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6895$as_echo_n "checking stack direction for C alloca... " >&6; }
b6d0720c 6896if ${ac_cv_c_stack_direction+:} false; then :
7083c021 6897 $as_echo_n "(cached) " >&6
212380e3 6898else
7083c021 6899 if test "$cross_compiling" = yes; then :
212380e3
AC
6900 ac_cv_c_stack_direction=0
6901else
7083c021 6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6903/* end confdefs.h. */
631ef239 6904$ac_includes_default
212380e3 6905int
2eff3833 6906find_stack_direction (int *addr, int depth)
212380e3 6907{
2eff3833
JT
6908 int dir, dummy = 0;
6909 if (! addr)
6910 addr = &dummy;
6911 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6912 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6913 return dir + dummy;
212380e3
AC
6914}
6915
6916int
2eff3833 6917main (int argc, char **argv)
212380e3 6918{
2eff3833 6919 return find_stack_direction (0, argc + !argv + 20) < 0;
212380e3
AC
6920}
6921_ACEOF
7083c021 6922if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
6923 ac_cv_c_stack_direction=1
6924else
7083c021 6925 ac_cv_c_stack_direction=-1
212380e3 6926fi
7083c021
AC
6927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6928 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 6929fi
631ef239 6930
212380e3 6931fi
7083c021
AC
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6933$as_echo "$ac_cv_c_stack_direction" >&6; }
212380e3
AC
6934cat >>confdefs.h <<_ACEOF
6935#define STACK_DIRECTION $ac_cv_c_stack_direction
6936_ACEOF
6937
6938
6939fi
6940
6941
6942
7083c021 6943ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
b6d0720c 6944if test "x$ac_cv_func_nanosleep" = xyes; then :
631ef239 6945
212380e3 6946else
7083c021
AC
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6948$as_echo_n "checking for nanosleep in -lrt... " >&6; }
b6d0720c 6949if ${ac_cv_lib_rt_nanosleep+:} false; then :
7083c021 6950 $as_echo_n "(cached) " >&6
212380e3
AC
6951else
6952 ac_check_lib_save_LIBS=$LIBS
6953LIBS="-lrt $LIBS"
7083c021 6954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6955/* end confdefs.h. */
6956
631ef239
AC
6957/* Override any GCC internal prototype to avoid an error.
6958 Use char because int might match the return type of a GCC
6959 builtin and then its argument prototype would still apply. */
212380e3
AC
6960#ifdef __cplusplus
6961extern "C"
6962#endif
212380e3
AC
6963char nanosleep ();
6964int
6965main ()
6966{
631ef239 6967return nanosleep ();
212380e3
AC
6968 ;
6969 return 0;
6970}
6971_ACEOF
7083c021 6972if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6973 ac_cv_lib_rt_nanosleep=yes
6974else
7083c021 6975 ac_cv_lib_rt_nanosleep=no
212380e3 6976fi
7083c021
AC
6977rm -f core conftest.err conftest.$ac_objext \
6978 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
6979LIBS=$ac_check_lib_save_LIBS
6980fi
7083c021
AC
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6982$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
b6d0720c 6983if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
212380e3
AC
6984 LIBS="${LIBS} -lrt"
6985else
7083c021
AC
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6987$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
b6d0720c 6988if ${ac_cv_lib_posix4_nanosleep+:} false; then :
7083c021 6989 $as_echo_n "(cached) " >&6
212380e3
AC
6990else
6991 ac_check_lib_save_LIBS=$LIBS
6992LIBS="-lposix4 $LIBS"
7083c021 6993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6994/* end confdefs.h. */
6995
631ef239
AC
6996/* Override any GCC internal prototype to avoid an error.
6997 Use char because int might match the return type of a GCC
6998 builtin and then its argument prototype would still apply. */
212380e3
AC
6999#ifdef __cplusplus
7000extern "C"
7001#endif
212380e3
AC
7002char nanosleep ();
7003int
7004main ()
7005{
631ef239 7006return nanosleep ();
212380e3
AC
7007 ;
7008 return 0;
7009}
7010_ACEOF
7083c021 7011if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
7012 ac_cv_lib_posix4_nanosleep=yes
7013else
7083c021 7014 ac_cv_lib_posix4_nanosleep=no
212380e3 7015fi
7083c021
AC
7016rm -f core conftest.err conftest.$ac_objext \
7017 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
7018LIBS=$ac_check_lib_save_LIBS
7019fi
7083c021
AC
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
7021$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
b6d0720c 7022if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
212380e3
AC
7023 LIBS="${LIBS} -lposix4"
7024
7025fi
7026
7027fi
7028
7029fi
7030
7031if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
7032then
7083c021
AC
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
7034$as_echo "\"nanosleep not found..using select for delay\"" >&6; }
212380e3
AC
7035else
7036
7083c021 7037$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
212380e3
AC
7038
7039fi
7040
7083c021
AC
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
7042$as_echo_n "checking for OpenSSL... " >&6; }
631ef239 7043# Check whether --enable-openssl was given.
7083c021 7044if test "${enable_openssl+set}" = set; then :
631ef239 7045 enableval=$enable_openssl; cf_enable_openssl=$enableval
212380e3
AC
7046else
7047 cf_enable_openssl="auto"
631ef239
AC
7048fi
7049
212380e3
AC
7050
7051if test "$cf_enable_openssl" != "no" ; then
7052 cf_openssl_basedir=""
7053 if test "$cf_enable_openssl" != "auto" &&
7054 test "$cf_enable_openssl" != "yes" ; then
7055 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
7056 else
7057 for dirs in /usr/local/ssl /usr/pkg /usr/local \
7058 /usr/local/openssl ; do
7059 if test -f "${dirs}/include/openssl/opensslv.h" ; then
7060 cf_openssl_basedir="${dirs}"
7061 break
7062 fi
7063 done
7064 unset dirs
7065 fi
7066 if test ! -z "$cf_openssl_basedir"; then
7067 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7068 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
7069 SSL_LIBS="-L${cf_openssl_basedir}/lib"
7070 else
7071 cf_openssl_basedir=""
7072 fi
7073 else
7074 if test -f "/usr/include/openssl/opensslv.h" ; then
7075 cf_openssl_basedir="/usr"
7076 fi
7077 fi
7078
7079 if test ! -z "$cf_openssl_basedir"; then
7083c021
AC
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
7081$as_echo "$cf_openssl_basedir" >&6; }
212380e3
AC
7082 cf_enable_openssl="yes"
7083 else
7083c021
AC
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
7085$as_echo "not found. Specify a correct path?" >&6; }
212380e3
AC
7086 cf_enable_openssl="no"
7087 fi
7088 unset cf_openssl_basedir
7089else
7083c021
AC
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7091$as_echo "disabled" >&6; }
212380e3
AC
7092fi
7093
7094save_CPPFLAGS="$CPPFLAGS"
7095CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
7096save_LIBS="$LIBS"
7097LIBS="$LIBS $SSL_LIBS"
7098if test "$cf_enable_openssl" != no; then
7083c021
AC
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
7100$as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
7101 if test "$cross_compiling" = yes; then :
212380e3
AC
7102 cf_openssl_version_ok=no
7103else
7083c021 7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7105/* end confdefs.h. */
7106#include <openssl/opensslv.h>
7107 #include <stdlib.h>
7108int
7109main ()
7110{
7111if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
7112 exit(0); else exit(1);
7113 ;
7114 return 0;
7115}
7116_ACEOF
7083c021 7117if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
7118 cf_openssl_version_ok=yes
7119else
7083c021 7120 cf_openssl_version_ok=no
212380e3 7121fi
7083c021
AC
7122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7123 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3
AC
7124fi
7125
631ef239 7126
212380e3 7127 if test "$cf_openssl_version_ok" = yes; then
7083c021
AC
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7129$as_echo "found" >&6; }
212380e3
AC
7130
7131 ENCSPEED=encspeed
7132
7133
7134 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7083c021
AC
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
7136$as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
b6d0720c 7137if ${ac_cv_lib_crypto_RSA_free+:} false; then :
7083c021 7138 $as_echo_n "(cached) " >&6
212380e3
AC
7139else
7140 ac_check_lib_save_LIBS=$LIBS
7141LIBS="-lcrypto $LIBS"
7083c021 7142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7143/* end confdefs.h. */
7144
631ef239
AC
7145/* Override any GCC internal prototype to avoid an error.
7146 Use char because int might match the return type of a GCC
7147 builtin and then its argument prototype would still apply. */
212380e3
AC
7148#ifdef __cplusplus
7149extern "C"
7150#endif
212380e3
AC
7151char RSA_free ();
7152int
7153main ()
7154{
631ef239 7155return RSA_free ();
212380e3
AC
7156 ;
7157 return 0;
7158}
7159_ACEOF
7083c021 7160if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
7161 ac_cv_lib_crypto_RSA_free=yes
7162else
7083c021 7163 ac_cv_lib_crypto_RSA_free=no
212380e3 7164fi
7083c021
AC
7165rm -f core conftest.err conftest.$ac_objext \
7166 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
7167LIBS=$ac_check_lib_save_LIBS
7168fi
7083c021
AC
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
7170$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
b6d0720c 7171if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
212380e3
AC
7172 cat >>confdefs.h <<_ACEOF
7173#define HAVE_LIBCRYPTO 1
7174_ACEOF
7175
7176 LIBS="-lcrypto $LIBS"
7177
7178fi
7179
7180 SSL_LIBS="$SSL_LIBS -lcrypto"
7181 SSL_SRCS_ENABLE='$(SSL_SRCS)'
7182 else
7083c021
AC
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7184$as_echo "no - OpenSSL support disabled" >&6; }
212380e3
AC
7185 fi
7186fi
7187
7188CPPFLAGS="$save_CPPFLAGS"
7189LIBS="$save_LIBS"
7190
7191
7192
7193
7194
631ef239 7195# Check whether --with-zlib-path was given.
7083c021 7196if test "${with_zlib_path+set}" = set; then :
631ef239
AC
7197 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
7198fi
212380e3 7199
7083c021
AC
7200
7201# Check whether --enable-zlib was given.
7202if test "${enable_zlib+set}" = set; then :
7203 enableval=$enable_zlib; zlib=$enableval
212380e3 7204else
7083c021 7205 zlib=yes
212380e3 7206fi
212380e3 7207
212380e3 7208
7083c021
AC
7209if test "$zlib" = yes; then
7210
7211ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
b6d0720c 7212if test "x$ac_cv_header_zlib_h" = xyes; then :
7083c021
AC
7213
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7215$as_echo_n "checking for zlibVersion in -lz... " >&6; }
b6d0720c 7216if ${ac_cv_lib_z_zlibVersion+:} false; then :
7083c021 7217 $as_echo_n "(cached) " >&6
212380e3
AC
7218else
7219 ac_check_lib_save_LIBS=$LIBS
7220LIBS="-lz $LIBS"
7083c021 7221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7222/* end confdefs.h. */
7223
631ef239
AC
7224/* Override any GCC internal prototype to avoid an error.
7225 Use char because int might match the return type of a GCC
7226 builtin and then its argument prototype would still apply. */
212380e3
AC
7227#ifdef __cplusplus
7228extern "C"
7229#endif
212380e3
AC
7230char zlibVersion ();
7231int
7232main ()
7233{
631ef239 7234return zlibVersion ();
212380e3
AC
7235 ;
7236 return 0;
7237}
7238_ACEOF
7083c021 7239if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
7240 ac_cv_lib_z_zlibVersion=yes
7241else
7083c021 7242 ac_cv_lib_z_zlibVersion=no
212380e3 7243fi
7083c021
AC
7244rm -f core conftest.err conftest.$ac_objext \
7245 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
7246LIBS=$ac_check_lib_save_LIBS
7247fi
7083c021
AC
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7249$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
b6d0720c 7250if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
212380e3
AC
7251
7252 ZLIB_LD=-lz
7253
7254
7083c021 7255$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
212380e3
AC
7256
7257
7258else
7259 zlib=no
7260fi
7261
7262
7263else
7264 zlib=no
7265fi
7266
7267
7268
497e30a0
LS
7269fi
7270
a6ef3156
LS
7271
7272# Check whether --with-shared-sqlite was given.
7273if test "${with_shared_sqlite+set}" = set; then :
7274 withval=$with_shared_sqlite; shared_sqlite=$withval
497e30a0
LS
7275else
7276 shared_sqlite=no
7277fi
7278
7279
7280if test "$shared_sqlite" = yes; then
7281
cf1001a7 7282
a5471f24
LS
7283
7284
7285
7286
7287
7288if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7289 if test -n "$ac_tool_prefix"; then
7290 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7291set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293$as_echo_n "checking for $ac_word... " >&6; }
7294if ${ac_cv_path_PKG_CONFIG+:} false; then :
7295 $as_echo_n "(cached) " >&6
7296else
7297 case $PKG_CONFIG in
7298 [\\/]* | ?:[\\/]*)
7299 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7300 ;;
7301 *)
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7312 fi
7313done
7314 done
7315IFS=$as_save_IFS
7316
7317 ;;
cf1001a7 7318esac
a5471f24
LS
7319fi
7320PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7321if test -n "$PKG_CONFIG"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7323$as_echo "$PKG_CONFIG" >&6; }
7324else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326$as_echo "no" >&6; }
7327fi
cf1001a7 7328
497e30a0 7329
a5471f24
LS
7330fi
7331if test -z "$ac_cv_path_PKG_CONFIG"; then
7332 ac_pt_PKG_CONFIG=$PKG_CONFIG
7333 # Extract the first word of "pkg-config", so it can be a program name with args.
7334set dummy pkg-config; ac_word=$2
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336$as_echo_n "checking for $ac_word... " >&6; }
7337if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
497e30a0
LS
7338 $as_echo_n "(cached) " >&6
7339else
a5471f24
LS
7340 case $ac_pt_PKG_CONFIG in
7341 [\\/]* | ?:[\\/]*)
7342 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7343 ;;
7344 *)
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7352 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356done
7357 done
7358IFS=$as_save_IFS
497e30a0 7359
a5471f24
LS
7360 ;;
7361esac
7362fi
7363ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7364if test -n "$ac_pt_PKG_CONFIG"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7366$as_echo "$ac_pt_PKG_CONFIG" >&6; }
497e30a0 7367else
a5471f24
LS
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369$as_echo "no" >&6; }
497e30a0 7370fi
a5471f24
LS
7371
7372 if test "x$ac_pt_PKG_CONFIG" = x; then
7373 PKG_CONFIG=""
7374 else
7375 case $cross_compiling:$ac_tool_warned in
7376yes:)
7377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7379ac_tool_warned=yes ;;
7380esac
7381 PKG_CONFIG=$ac_pt_PKG_CONFIG
7382 fi
7383else
7384 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
497e30a0 7385fi
497e30a0 7386
a5471f24
LS
7387fi
7388if test -n "$PKG_CONFIG"; then
7389 _pkg_min_version=0.9.0
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7391$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7392 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7394$as_echo "yes" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397$as_echo "no" >&6; }
7398 PKG_CONFIG=""
7399 fi
7400fi
7401
7402pkg_failed=no
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
7404$as_echo_n "checking for SQLITE... " >&6; }
497e30a0 7405
a5471f24
LS
7406if test -n "$SQLITE_CFLAGS"; then
7407 pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
7408 elif test -n "$PKG_CONFIG"; then
7409 if test -n "$PKG_CONFIG" && \
7410 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
7411 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
7412 ac_status=$?
7413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7414 test $ac_status = 0; }; then
7415 pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
7416 test "x$?" != "x0" && pkg_failed=yes
497e30a0 7417else
a5471f24
LS
7418 pkg_failed=yes
7419fi
7420 else
7421 pkg_failed=untried
7422fi
7423if test -n "$SQLITE_LIBS"; then
7424 pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
7425 elif test -n "$PKG_CONFIG"; then
7426 if test -n "$PKG_CONFIG" && \
7427 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
7428 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
7429 ac_status=$?
7430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431 test $ac_status = 0; }; then
7432 pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
7433 test "x$?" != "x0" && pkg_failed=yes
7434else
7435 pkg_failed=yes
7436fi
7437 else
7438 pkg_failed=untried
497e30a0
LS
7439fi
7440
7441
a5471f24
LS
7442
7443if test $pkg_failed = yes; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445$as_echo "no" >&6; }
7446
7447if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7448 _pkg_short_errors_supported=yes
497e30a0 7449else
a5471f24 7450 _pkg_short_errors_supported=no
497e30a0 7451fi
a5471f24
LS
7452 if test $_pkg_short_errors_supported = yes; then
7453 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
7454 else
7455 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
7456 fi
7457 # Put the nasty error message in config.log where it belongs
7458 echo "$SQLITE_PKG_ERRORS" >&5
497e30a0 7459
a5471f24
LS
7460 shared_sqlite=no
7461elif test $pkg_failed = untried; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463$as_echo "no" >&6; }
7464 shared_sqlite=no
7465else
7466 SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
7467 SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7469$as_echo "yes" >&6; }
497e30a0 7470
a5471f24 7471 shared_sqlite=yes
497e30a0 7472
74ab6be0 7473fi
a5471f24 7474fi
74ab6be0
LS
7475
7476if test "$shared_sqlite" = no; then
cf1001a7 7477 SQLITE_SRC="sqlite3.c"
212380e3
AC
7478fi
7479
a5471f24 7480SQLITE_LD="$SQLITE_LIBS"
212380e3 7481
a5471f24 7482SQLITE_INCLUDES="$SQLITE_CFLAGS"
cf1001a7
LS
7483
7484
cf1001a7
LS
7485
7486
c1c5fdc4 7487# Check whether --enable-ports was given.
7083c021 7488if test "${enable_ports+set}" = set; then :
c1c5fdc4
AC
7489 enableval=$enable_ports; if test $enableval = yes; then
7490 SELECT_TYPE_EXPLICIT="ports"
7491 else
7492 use_ports=no
7493 fi
7494
7495fi
7496
7497
631ef239 7498# Check whether --enable-poll was given.
7083c021 7499if test "${enable_poll+set}" = set; then :
631ef239 7500 enableval=$enable_poll; if test $enableval = yes; then
212380e3
AC
7501 SELECT_TYPE_EXPLICIT="poll"
7502 else
7503 use_poll=no
7504 fi
7505
631ef239
AC
7506fi
7507
212380e3 7508
631ef239 7509# Check whether --enable-select was given.
7083c021 7510if test "${enable_select+set}" = set; then :
631ef239 7511 enableval=$enable_select; if test $enableval = yes; then
212380e3
AC
7512 SELECT_TYPE_EXPLICIT="select"
7513 else
7514 use_select=no
7515 fi
7516
631ef239
AC
7517fi
7518
212380e3 7519
631ef239 7520# Check whether --enable-kqueue was given.
7083c021 7521if test "${enable_kqueue+set}" = set; then :
631ef239 7522 enableval=$enable_kqueue; if test $enableval = yes; then
212380e3
AC
7523 SELECT_TYPE_EXPLICIT="kqueue"
7524 else
7525 use_kqueue=no
7526 fi
7527
631ef239
AC
7528fi
7529
212380e3 7530
631ef239 7531# Check whether --enable-epoll was given.
7083c021 7532if test "${enable_epoll+set}" = set; then :
631ef239 7533 enableval=$enable_epoll; if test $enableval = yes; then
212380e3 7534 SELECT_TYPE_EXPLICIT="epoll"
7083c021
AC
7535 for ac_func in epoll_ctl
7536do :
7537 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b6d0720c 7538if test "x$ac_cv_func_epoll_ctl" = xyes; then :
3ad1a781 7539 cat >>confdefs.h <<_ACEOF
7083c021 7540#define HAVE_EPOLL_CTL 1
3ad1a781
JT
7541_ACEOF
7542 haveepoll=yes
7543else
7544 haveepoll=no
7545fi
7546done
7547
212380e3
AC
7548 else
7549 use_epoll=no
7550 fi
7551
631ef239
AC
7552fi
7553
212380e3
AC
7554
7555
212380e3 7556
631ef239 7557# Check whether --with-confdir was given.
7083c021 7558if test "${with_confdir+set}" = set; then :
634d4aad 7559 withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'`
212380e3 7560else
9f9b7042 7561 confdir='${sysconfdir}'
634d4aad
NPB
7562fi
7563
212380e3
AC
7564
7565 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7566 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
634d4aad 7567 last_ac_define_dir=`eval echo $sysconfdir`
9f9b7042 7568 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7569 ac_define_dir_counter=0
9f9b7042
NPB
7570 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7571 last_ac_define_dir="$ac_define_dir"
7572 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7573 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7574 if test "x$ac_define_dir_counter" = x128; then :
7575 as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5
7576 break
7577fi
9f9b7042 7578 done
212380e3
AC
7579 ETC_DIR="$ac_define_dir"
7580
7581
7582cat >>confdefs.h <<_ACEOF
7583#define ETC_DIR "$ac_define_dir"
7584_ACEOF
7585
7586
7587
7588
7083c021
AC
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7590$as_echo_n "checking whether to modify logdir... " >&6; }
212380e3 7591
631ef239 7592# Check whether --with-logdir was given.
7083c021 7593if test "${with_logdir+set}" = set; then :
631ef239 7594 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7596$as_echo "yes" >&6; }
212380e3 7597else
9f9b7042
NPB
7598 if test "x$enable_fhs_paths" = "xyes"; then :
7599 logdir='${localstatedir}/log/${PACKAGE_TARNAME}'
7600else
7601 logdir='${prefix}/logs'
7602fi
7083c021
AC
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604$as_echo "no" >&6; }
9f9b7042
NPB
7605fi
7606
212380e3
AC
7607
7608 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7610 last_ac_define_dir=`eval echo $logdir`
7611 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7612 ac_define_dir_counter=0
9f9b7042
NPB
7613 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7614 last_ac_define_dir="$ac_define_dir"
7615 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7616 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7617 if test "x$ac_define_dir_counter" = x128; then :
7618 as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5
7619 break
7620fi
9f9b7042 7621 done
212380e3
AC
7622 LOG_DIR="$ac_define_dir"
7623
7624
7625cat >>confdefs.h <<_ACEOF
7626#define LOG_DIR "$ac_define_dir"
7627_ACEOF
7628
7629
7630
7631
7632 logdir=`(
7633 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7634 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7635 eval echo \""$logdir"\"
7636 )`
7637
7638
7639
212380e3 7640
7083c021
AC
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7642$as_echo_n "checking whether to modify helpdir... " >&6; }
212380e3 7643
631ef239 7644# Check whether --with-helpdir was given.
7083c021 7645if test "${with_helpdir+set}" = set; then :
631ef239 7646 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7648$as_echo "yes" >&6; }
212380e3 7649else
9f9b7042
NPB
7650 if test "x$enable_fhs_paths" = "xyes"; then :
7651 helpdir='${datadir}/${PACKAGE_TARNAME}/help'
7652else
7653 helpdir='${prefix}/help'
7654fi
7083c021
AC
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656$as_echo "no" >&6; }
9f9b7042
NPB
7657fi
7658
212380e3
AC
7659
7660 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7662 last_ac_define_dir=`eval echo $helpdir`
7663 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7664 ac_define_dir_counter=0
9f9b7042
NPB
7665 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7666 last_ac_define_dir="$ac_define_dir"
7667 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7668 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7669 if test "x$ac_define_dir_counter" = x128; then :
7670 as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5
7671 break
7672fi
9f9b7042 7673 done
212380e3
AC
7674 HELP_DIR="$ac_define_dir"
7675
7676
7677cat >>confdefs.h <<_ACEOF
7678#define HELP_DIR "$ac_define_dir"
7679_ACEOF
7680
7681
7682
7683
7684 helpdir=`(
7685 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7686 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7687 eval echo \""$helpdir"\"
7688 )`
7689
7690
7691
212380e3 7692
7083c021
AC
7693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7694$as_echo_n "checking whether to modify moduledir... " >&6; }
212380e3 7695
631ef239 7696# Check whether --with-moduledir was given.
7083c021 7697if test "${with_moduledir+set}" = set; then :
631ef239 7698 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7700$as_echo "yes" >&6; }
9f9b7042
NPB
7701else
7702 if test "x$enable_fhs_paths" = "xyes"; then :
7703 moduledir='${pkglibdir}/modules'
7704else
7705 moduledir='${prefix}/modules'
7706fi
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708$as_echo "no" >&6; }
7709
7710fi
7711
212380e3
AC
7712
7713 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7714 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7715 last_ac_define_dir=`eval echo $moduledir`
7716 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7717 ac_define_dir_counter=0
9f9b7042
NPB
7718 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7719 last_ac_define_dir="$ac_define_dir"
7720 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7721 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7722 if test "x$ac_define_dir_counter" = x128; then :
7723 as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5
7724 break
7725fi
9f9b7042 7726 done
212380e3
AC
7727 MODULE_DIR="$ac_define_dir"
7728
7729
7730cat >>confdefs.h <<_ACEOF
7731#define MODULE_DIR "$ac_define_dir"
7732_ACEOF
7733
7734
7735
7736
7737 moduledir=`(
7738 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7739 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7740 eval echo \""$moduledir"\"
7741 )`
7742
7743
9f9b7042
NPB
7744
7745
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5
7747$as_echo_n "checking whether or modify rundir... " >&6; }
7748
7749# Check whether --with-rundir was given.
7750if test "${with_rundir+set}" = set; then :
7751 withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7752$as_echo "yes" >&6; }
7753 rundir=`echo $withval | sed 's/\/$//'`
212380e3 7754else
9f9b7042 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083c021 7756$as_echo "no" >&6; }
9f9b7042
NPB
7757 if test "x$enable_fhs_paths" = "xyes"; then :
7758 rundir='${prefix}/run'
7759else
7760 rundir='${sysconfdir}'
7761fi
7762fi
7763
7764
212380e3
AC
7765
7766 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7768 last_ac_define_dir=`eval echo $pkgrundir`
7769 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7770 ac_define_dir_counter=0
9f9b7042
NPB
7771 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7772 last_ac_define_dir="$ac_define_dir"
7773 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7774 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7775 if test "x$ac_define_dir_counter" = x128; then :
7776 as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5
7777 break
7778fi
9f9b7042
NPB
7779 done
7780 PKGRUNDIR="$ac_define_dir"
212380e3
AC
7781
7782
7783cat >>confdefs.h <<_ACEOF
9f9b7042 7784#define PKGRUNDIR "$ac_define_dir"
212380e3
AC
7785_ACEOF
7786
7787
7788
9f9b7042
NPB
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5
7790$as_echo_n "checking for program prefix... " >&6; }
212380e3 7791
9f9b7042
NPB
7792# Check whether --with-program-prefix was given.
7793if test "${with_program_prefix+set}" = set; then :
7794 withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix=
7795else
7796 with_program_prefix=
7797fi
212380e3 7798
9f9b7042
NPB
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5
7800$as_echo "\"$with_program_prefix\"" >&6; }
7801PROGRAM_PREFIX="$with_program_prefix"
212380e3
AC
7802
7803
9f9b7042
NPB
7804cat >>confdefs.h <<_ACEOF
7805#define PROGRAM_PREFIX "$with_program_prefix"
7806_ACEOF
631ef239 7807
7083c021 7808
b6d0720c
AC
7809
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5
7811$as_echo_n "checking whether custom branding is requested... " >&6; }
7812
7813# Check whether --with-custom-branding was given.
7814if test "${with_custom_branding+set}" = set; then :
7815 withval=$with_custom_branding; BRANDING_NAME=$withval
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7817$as_echo "yes" >&6; }
7818else
7819 BRANDING_NAME=$PACKAGE_NAME
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821$as_echo "no" >&6; }
7822
7823fi
7824
7825
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5
7827$as_echo_n "checking whether a custom version is requested... " >&6; }
7828
7829# Check whether --with-custom-version was given.
7830if test "${with_custom_version+set}" = set; then :
7831 withval=$with_custom_version; BRANDING_VERSION=$withval
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833$as_echo "yes" >&6; }
7834else
7835 BRANDING_VERSION=$PACKAGE_VERSION
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837$as_echo "no" >&6; }
7838
7839fi
7840
7841
7842
7843cat >>confdefs.h <<_ACEOF
7844#define BRANDING_NAME "$BRANDING_NAME"
7845_ACEOF
7846
7847
7848cat >>confdefs.h <<_ACEOF
7849#define BRANDING_VERSION "$BRANDING_VERSION"
7850_ACEOF
7851
7852
f5493691
AC
7853if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
7854
7855$as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h
7856
7857fi
7858
7083c021
AC
7859if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7860 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
7861 echo "Forcing $SELECT_TYPE to be enabled"
7862else
7863
7864if test ! "x$use_ports" = "xno"; then
7865 for ac_func in port_getn
7866do :
7867 ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn"
b6d0720c 7868if test "x$ac_cv_func_port_getn" = xyes; then :
212380e3 7869 cat >>confdefs.h <<_ACEOF
7083c021 7870#define HAVE_PORT_GETN 1
212380e3 7871_ACEOF
7083c021 7872 haveports=yes
212380e3 7873else
7083c021 7874 haveports=no
212380e3
AC
7875fi
7876done
7877
7083c021
AC
7878 if test "x$haveports" = "xyes" ; then
7879 SELECT_TYPE="ports"
212380e3
AC
7880 fi
7881fi
7882
7083c021
AC
7883if test ! "x$use_select" = "xno"; then
7884 for ac_func in select
7885do :
7886 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
b6d0720c 7887if test "x$ac_cv_func_select" = xyes; then :
7083c021
AC
7888 cat >>confdefs.h <<_ACEOF
7889#define HAVE_SELECT 1
212380e3 7890_ACEOF
7083c021
AC
7891 haveselect=yes
7892else
7893 haveselect=no
7894fi
7895done
212380e3 7896
7083c021
AC
7897 if test "x$haveselect" = "xyes" ; then
7898 SELECT_TYPE="select"
7899 fi
7900fi
212380e3 7901
7083c021
AC
7902if test ! "x$use_poll" = "xno"; then
7903 for ac_func in poll
7904do :
7905 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
b6d0720c 7906if test "x$ac_cv_func_poll" = xyes; then :
7083c021
AC
7907 cat >>confdefs.h <<_ACEOF
7908#define HAVE_POLL 1
212380e3 7909_ACEOF
7083c021 7910 havepoll=yes
212380e3 7911else
7083c021 7912 havepoll=no
212380e3 7913fi
7083c021 7914done
631ef239 7915
7083c021
AC
7916 if test "x$havepoll" = "xyes" ; then
7917 SELECT_TYPE="poll"
7918 fi
212380e3 7919fi
7083c021
AC
7920
7921if test ! "x$use_kqueue" = "xno"; then
7922 for ac_func in kevent
7923do :
7924 ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent"
b6d0720c 7925if test "x$ac_cv_func_kevent" = xyes; then :
212380e3 7926 cat >>confdefs.h <<_ACEOF
7083c021 7927#define HAVE_KEVENT 1
212380e3
AC
7928_ACEOF
7929 havekqueue=yes
7930else
7931 havekqueue=no
7932fi
7933done
7934
7935 if test "x$havekqueue" = "xyes" ; then
7936 SELECT_TYPE="kqueue"
7937 fi
7938fi
7939
7940if test ! "x$use_epoll" = "xno"; then
7083c021
AC
7941 for ac_func in epoll_ctl
7942do :
7943 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b6d0720c 7944if test "x$ac_cv_func_epoll_ctl" = xyes; then :
212380e3 7945 cat >>confdefs.h <<_ACEOF
7083c021 7946#define HAVE_EPOLL_CTL 1
212380e3
AC
7947_ACEOF
7948 haveepoll=yes
7949else
7950 haveepoll=no
7951fi
7952done
7953
7954 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7955 if test "x$haveepoll" = "xyes" ; then
7083c021
AC
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7957$as_echo_n "checking for epoll support in kernel... " >&6; }
7958 if test "$cross_compiling" = yes; then :
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960$as_echo "no" >&6; }
212380e3 7961else
7083c021 7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7963/* end confdefs.h. */
7964#include <stdint.h>
7965#include <sys/param.h>
7966#include <sys/types.h>
7967#include <sys/epoll.h>
7968#include <sys/syscall.h>
7969#include <unistd.h>
7970
7971int
7972main(int argc, char **argv)
7973{
7974 int epfd;
7975
7976 epfd = epoll_create(256);
b676ea3b 7977 return (epfd == -1 ? 1 : 0);
212380e3
AC
7978}
7979_ACEOF
7083c021
AC
7980if ac_fn_c_try_run "$LINENO"; then :
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7982$as_echo "yes" >&6; }
212380e3 7983
7083c021 7984$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
7985
7986 SELECT_TYPE="epoll"
7987else
7083c021
AC
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989$as_echo "no" >&6; }
212380e3 7990fi
7083c021
AC
7991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7992 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 7993fi
631ef239 7994
212380e3
AC
7995 fi
7996 fi
7997
7998haveepollsyscall=no
7999
8000if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
8001 if test "x$haveepoll" = "xno" ; then
7083c021
AC
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
8003$as_echo_n "checking for epoll system call... " >&6; }
8004 if test "$cross_compiling" = yes; then :
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
212380e3 8007else
7083c021 8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8009/* end confdefs.h. */
8010#include <stdint.h>
8011#include <sys/param.h>
8012#include <sys/types.h>
8013#include <sys/epoll.h>
8014#include <sys/syscall.h>
8015#include <unistd.h>
8016
8017int
8018epoll_create(int size)
8019{
8020 return (syscall(__NR_epoll_create, size));
8021}
8022
8023int
8024main(int argc, char **argv)
8025{
8026 int epfd;
8027
8028 epfd = epoll_create(256);
8029 exit (epfd == -1 ? 1 : 0);
8030}
8031_ACEOF
7083c021
AC
8032if ac_fn_c_try_run "$LINENO"; then :
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8034$as_echo "yes" >&6; }
212380e3 8035
7083c021 8036$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
8037
8038 SELECT_TYPE="epoll"
8039else
7083c021
AC
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041$as_echo "no" >&6; }
212380e3 8042fi
7083c021
AC
8043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8044 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 8045fi
631ef239 8046
212380e3
AC
8047 fi
8048fi
8049
8050fi
8051
8052fi
8053
8054if test -z "$SELECT_TYPE"; then
b6d0720c 8055 as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5
212380e3
AC
8056fi
8057
8058echo "Using $SELECT_TYPE for select loop."
8059
8060
8061cat >>confdefs.h <<_ACEOF
8062#define SELECT_TYPE "$SELECT_TYPE"
8063_ACEOF
8064
8065
8066
8067
8068
631ef239 8069# Check whether --enable-assert was given.
7083c021 8070if test "${enable_assert+set}" = set; then :
631ef239 8071 enableval=$enable_assert; assert=$enableval
212380e3
AC
8072else
8073 assert=no
631ef239
AC
8074fi
8075
212380e3
AC
8076
8077if test "$assert" = no; then
8078
7083c021 8079$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
8080
8081elif test "$assert" = soft; then
8082
7083c021 8083$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
212380e3
AC
8084
8085
7083c021 8086$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
8087
8088elif test "$assert" = yes; then
8089 assert = "hard";
8090fi
8091
7083c021
AC
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
8093$as_echo_n "checking if you want IO Debugging hooks... " >&6; }
631ef239 8094# Check whether --enable-iodebug was given.
7083c021 8095if test "${enable_iodebug+set}" = set; then :
631ef239 8096 enableval=$enable_iodebug; iodebug=$enableval
212380e3
AC
8097else
8098 iodebug=no
631ef239
AC
8099fi
8100
212380e3
AC
8101
8102if test "$iodebug" = yes; then
8103
7083c021 8104$as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
212380e3 8105
7083c021
AC
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8107$as_echo "yes" >&6; }
212380e3 8108else
7083c021
AC
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110$as_echo "no" >&6; }
212380e3
AC
8111fi
8112
8113
7083c021
AC
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
8115$as_echo_n "checking if you want to do a profile build... " >&6; }
631ef239 8116# Check whether --enable-profile was given.
7083c021 8117if test "${enable_profile+set}" = set; then :
631ef239 8118 enableval=$enable_profile; profile=$enableval
212380e3
AC
8119else
8120 profile=no
631ef239
AC
8121fi
8122
212380e3
AC
8123
8124if test "$profile" = yes; then
8125 if test "$ac_cv_c_compiler_gnu" = yes; then
8126 IRC_CFLAGS="$IRC_CFLAGS -pg"
7083c021
AC
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
8128$as_echo "yes, adding -pg" >&6; }
212380e3 8129
7083c021 8130$as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
212380e3
AC
8131
8132 else
7083c021
AC
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
8134$as_echo "no, profile builds only work with gcc" >&6; }
212380e3
AC
8135 fi
8136else
7083c021
AC
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138$as_echo "no" >&6; }
212380e3
AC
8139fi
8140
631ef239 8141# Check whether --enable-balloc was given.
7083c021 8142if test "${enable_balloc+set}" = set; then :
631ef239 8143 enableval=$enable_balloc; balloc=$enableval
212380e3
AC
8144else
8145 balloc=yes
631ef239
AC
8146fi
8147
212380e3
AC
8148
8149if test "$balloc" = no; then
8150
7083c021 8151$as_echo "#define NOBALLOC 1" >>confdefs.h
212380e3
AC
8152
8153fi
8154
631ef239 8155# Check whether --enable-small-net was given.
7083c021 8156if test "${enable_small_net+set}" = set; then :
631ef239 8157 enableval=$enable_small_net; small_net=$enableval
212380e3
AC
8158else
8159 small_net=no
631ef239
AC
8160fi
8161
212380e3
AC
8162
8163if test "$small_net" = yes; then
8164
7083c021 8165$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
212380e3
AC
8166
8167
7083c021 8168$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8169
8170
7083c021 8171$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8172
8173
7083c021 8174$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8175
8176
7083c021 8177$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8178
8179
7083c021 8180$as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
212380e3
AC
8181
8182
7083c021 8183$as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8184
8185
7083c021 8186$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8187
8188
7083c021 8189$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8190
8191
7083c021 8192$as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8193
8194
7083c021 8195$as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8196
8197
7083c021 8198$as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8199
8200
7083c021 8201$as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8202
8203
7083c021 8204$as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
212380e3 8205
f589ec6f 8206
7083c021 8207$as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
2b428185
AC
8208
8209
7083c021 8210$as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
f589ec6f 8211
212380e3
AC
8212else
8213
7083c021 8214$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
212380e3
AC
8215
8216
7083c021 8217$as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
8218
8219
7083c021 8220$as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
8221
8222
7083c021 8223$as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
8224
8225
7083c021 8226$as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
212380e3
AC
8227
8228
7083c021 8229$as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8230
8231
7083c021 8232$as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
8233
8234
7083c021 8235$as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
8236
8237
7083c021 8238$as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
8239
8240
7083c021 8241$as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
212380e3
AC
8242
8243
7083c021 8244$as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
212380e3
AC
8245
8246
7083c021 8247$as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
212380e3
AC
8248
8249
7083c021 8250$as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8251
8252
7083c021 8253$as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
212380e3 8254
f589ec6f 8255
7083c021 8256$as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
2b428185
AC
8257
8258
7083c021 8259$as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
f589ec6f 8260
212380e3
AC
8261fi
8262
8263
631ef239 8264# Check whether --with-nicklen was given.
7083c021 8265if test "${with_nicklen+set}" = set; then :
631ef239 8266 withval=$with_nicklen;
aa769893 8267 if ! expr "$withval" + 0 >/dev/null 2>&1; then
b6d0720c 8268 as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5
aa769893 8269 fi
cf533739 8270 if test $withval -gt 50; then
212380e3 8271 NICKLEN=50
7083c021
AC
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
8273$as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
cf533739
JT
8274 elif test $withval -lt 9; then
8275 NICKLEN=9
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5
8277$as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;}
212380e3
AC
8278 else
8279 NICKLEN="$withval"
8280 fi
8281
8282else
cf533739 8283 NICKLEN=31
631ef239 8284fi
212380e3
AC
8285
8286
212380e3 8287
631ef239 8288# Check whether --with-topiclen was given.
7083c021 8289if test "${with_topiclen+set}" = set; then :
631ef239 8290 withval=$with_topiclen;
212380e3
AC
8291 if test $withval -ge 390; then
8292 TOPICLEN=390
7083c021
AC
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
8294$as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
212380e3
AC
8295 else
8296 TOPICLEN=$withval
8297 fi
8298
8299else
8300 TOPICLEN=390
212380e3
AC
8301fi
8302
212380e3
AC
8303
8304
8305cat >>confdefs.h <<_ACEOF
8306#define TOPICLEN ${TOPICLEN}
8307_ACEOF
8308
8309
8310cat >>confdefs.h <<_ACEOF
8311#define NICKLEN (${NICKLEN}+1)
8312_ACEOF
8313
8314
b676ea3b 8315shared_modules="yes"
212380e3 8316if test "$shared_modules" = yes; then
212380e3 8317 if test "$CC" = tcc -a "$TenDRA" = "no"; then
7083c021
AC
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
8319$as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
212380e3
AC
8320 shared_modules="no"
8321 fi
8322fi
8323
8324if test "$shared_modules" = yes; then
7083c021
AC
8325 DYNLINK_C=dynlink.c
8326 for ac_header in dlfcn.h
8327do :
8328 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
b6d0720c 8329if test "x$ac_cv_header_dlfcn_h" = xyes; then :
212380e3 8330 cat >>confdefs.h <<_ACEOF
7083c021 8331#define HAVE_DLFCN_H 1
212380e3
AC
8332_ACEOF
8333
8334fi
8335
8336done
8337
7083c021
AC
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
8339$as_echo_n "checking for library containing shl_load... " >&6; }
b6d0720c 8340if ${ac_cv_search_shl_load+:} false; then :
7083c021 8341 $as_echo_n "(cached) " >&6
212380e3
AC
8342else
8343 ac_func_search_save_LIBS=$LIBS
7083c021 8344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8345/* end confdefs.h. */
8346
631ef239
AC
8347/* Override any GCC internal prototype to avoid an error.
8348 Use char because int might match the return type of a GCC
8349 builtin and then its argument prototype would still apply. */
212380e3
AC
8350#ifdef __cplusplus
8351extern "C"
8352#endif
212380e3
AC
8353char shl_load ();
8354int
8355main ()
8356{
631ef239 8357return shl_load ();
212380e3
AC
8358 ;
8359 return 0;
8360}
8361_ACEOF
631ef239
AC
8362for ac_lib in '' dld; do
8363 if test -z "$ac_lib"; then
8364 ac_res="none required"
8365 else
8366 ac_res=-l$ac_lib
8367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8368 fi
7083c021 8369 if ac_fn_c_try_link "$LINENO"; then :
631ef239 8370 ac_cv_search_shl_load=$ac_res
631ef239 8371fi
7083c021
AC
8372rm -f core conftest.err conftest.$ac_objext \
8373 conftest$ac_exeext
b6d0720c 8374 if ${ac_cv_search_shl_load+:} false; then :
631ef239 8375 break
212380e3 8376fi
631ef239 8377done
b6d0720c 8378if ${ac_cv_search_shl_load+:} false; then :
7083c021 8379
631ef239
AC
8380else
8381 ac_cv_search_shl_load=no
212380e3 8382fi
631ef239 8383rm conftest.$ac_ext
212380e3
AC
8384LIBS=$ac_func_search_save_LIBS
8385fi
7083c021
AC
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8387$as_echo "$ac_cv_search_shl_load" >&6; }
631ef239 8388ac_res=$ac_cv_search_shl_load
7083c021 8389if test "$ac_res" != no; then :
631ef239 8390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
8391
8392
7083c021 8393$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
212380e3
AC
8394
8395 SUFFIX=".sl"
8396 MOD_TARGET=hpux_shared
8397 SEDOBJ="s/\.o/.sl/g"
8398
8399else
8400
7083c021
AC
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8402$as_echo_n "checking for library containing dlopen... " >&6; }
b6d0720c 8403if ${ac_cv_search_dlopen+:} false; then :
7083c021 8404 $as_echo_n "(cached) " >&6
212380e3
AC
8405else
8406 ac_func_search_save_LIBS=$LIBS
7083c021 8407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8408/* end confdefs.h. */
8409
631ef239
AC
8410/* Override any GCC internal prototype to avoid an error.
8411 Use char because int might match the return type of a GCC
8412 builtin and then its argument prototype would still apply. */
212380e3
AC
8413#ifdef __cplusplus
8414extern "C"
8415#endif
212380e3
AC
8416char dlopen ();
8417int
8418main ()
8419{
631ef239 8420return dlopen ();
212380e3
AC
8421 ;
8422 return 0;
8423}
8424_ACEOF
631ef239
AC
8425for ac_lib in '' dl c_r; do
8426 if test -z "$ac_lib"; then
8427 ac_res="none required"
8428 else
8429 ac_res=-l$ac_lib
8430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8431 fi
7083c021 8432 if ac_fn_c_try_link "$LINENO"; then :
631ef239 8433 ac_cv_search_dlopen=$ac_res
631ef239 8434fi
7083c021
AC
8435rm -f core conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext
b6d0720c 8437 if ${ac_cv_search_dlopen+:} false; then :
631ef239 8438 break
212380e3 8439fi
631ef239 8440done
b6d0720c 8441if ${ac_cv_search_dlopen+:} false; then :
7083c021 8442
631ef239
AC
8443else
8444 ac_cv_search_dlopen=no
212380e3 8445fi
631ef239 8446rm conftest.$ac_ext
212380e3
AC
8447LIBS=$ac_func_search_save_LIBS
8448fi
7083c021
AC
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8450$as_echo "$ac_cv_search_dlopen" >&6; }
631ef239 8451ac_res=$ac_cv_search_dlopen
7083c021 8452if test "$ac_res" != no; then :
631ef239 8453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
8454
8455
7083c021 8456$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
212380e3
AC
8457
8458 SUFFIX=".so"
8459 MOD_TARGET=shared_modules
8460 SEDOBJ="s/\.o/.so/g"
8461 if test "$AppleGCC" = yes; then
7083c021
AC
8462 for ac_header in mach-o/dyld.h
8463do :
8464 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
b6d0720c 8465if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
212380e3 8466 cat >>confdefs.h <<_ACEOF
7083c021 8467#define HAVE_MACH_O_DYLD_H 1
212380e3
AC
8468_ACEOF
8469
8470fi
8471
8472done
8473
8474 fi
7083c021 8475 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
b6d0720c 8476if test "x$ac_cv_func_dlsym" = xyes; then :
631ef239 8477
212380e3
AC
8478else
8479
7083c021
AC
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8481$as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
212380e3
AC
8482 shared_modules=no
8483
8484fi
8485
7083c021
AC
8486 for ac_func in dlfunc
8487do :
8488 ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc"
b6d0720c 8489if test "x$ac_cv_func_dlfunc" = xyes; then :
212380e3 8490 cat >>confdefs.h <<_ACEOF
7083c021 8491#define HAVE_DLFUNC 1
212380e3
AC
8492_ACEOF
8493
8494fi
8495done
8496
8497
8498else
8499
8500 shared_modules=no
8501
8502fi
8503
8504
8505fi
8506
8507fi
8508
8509
8510cat >>confdefs.h <<_ACEOF
8511#define SHARED_SUFFIX "$SUFFIX"
8512_ACEOF
8513
8514
8515if test "$shared_modules" = yes; then
8516 # The GNU linker requires the -export-dynamic option to make
8517 # all symbols visible in the dynamic symbol table.
8518 hold_ldflags=$LDFLAGS
7083c021
AC
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8520$as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
212380e3 8521 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
7083c021 8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8523/* end confdefs.h. */
8524
8525int
8526main ()
8527{
8528int i;
8529 ;
8530 return 0;
8531}
8532_ACEOF
7083c021 8533if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
8534 found=yes
8535else
7083c021 8536 found=no
212380e3 8537fi
7083c021
AC
8538rm -f core conftest.err conftest.$ac_objext \
8539 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
8540 LDFLAGS=$hold_ldflags
8541
8542 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
8543 found="no, IRIX ld uses -B,dynamic"
8544 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
8545 fi
8546
8547 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
8548 found="no, AIX ld uses -G -brtl"
8549 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
8550 fi
8551
7083c021
AC
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8553$as_echo "$found" >&6; }
212380e3
AC
8554
8555 if test "$found" = yes; then
8556 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
8557 fi
8558
7083c021
AC
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8560$as_echo_n "checking for compiler option to produce PIC... " >&6; }
212380e3 8561 if test "$SGS" = "yes"; then
7083c021
AC
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8563$as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
212380e3
AC
8564 PICFLAGS="-KPIC -DPIC -G"
8565 fi
8566
8567 if test "$AppleGCC" = "yes"; then
7083c021
AC
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8569$as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
212380e3
AC
8570 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
8571 fi
8572 if test "$HPUX" = "yes" -a "$CC" != gcc; then
7083c021
AC
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8574$as_echo "HP-UX cc: +z -r -q -n" >&6; }
212380e3 8575 PICFLAGS="+z -r -q -n -c"
7083c021
AC
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8577$as_echo_n "checking if +ESfic is required on this platform... " >&6; }
212380e3
AC
8578
8579 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
7083c021
AC
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581$as_echo "no" >&6; }
212380e3 8582 else
7083c021
AC
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8584$as_echo "yes" >&6; }
212380e3
AC
8585 PICFLAGS="$PICFLAGS +ESfic"
8586 fi
8587
8588 LDFLAGS="${LDFLAGS} -Wl,-E"
8589 fi
8590 if test "$Tru" = yes -a "$CC" != gcc; then
7083c021
AC
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8592$as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
212380e3
AC
8593 PICFLAGS="-shared -expect_unresolved '*' "
8594 LDFLAGS="-call_shared"
8595 fi
8596 if test -z "$PICFLAGS"; then
8597 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7083c021
AC
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8599$as_echo "gcc: -fPIC -DPIC -shared" >&6; }
212380e3
AC
8600 PICFLAGS="-fPIC -DPIC -shared"
8601 else
7083c021
AC
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603$as_echo "no" >&6; }
212380e3
AC
8604 shared_modules=no
8605 fi
8606 fi
8607fi
8608
1a82970f
JT
8609# rpath, for finding libratbox.so at run time
8610hold_ldflags=$LDFLAGS
7083c021
AC
8611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8612$as_echo_n "checking for the ld -rpath flag... " >&6; }
1a82970f 8613LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
7083c021 8614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1a82970f
JT
8615/* end confdefs.h. */
8616
8617int
8618main ()
8619{
8620int i;
8621 ;
8622 return 0;
8623}
8624_ACEOF
7083c021 8625if ac_fn_c_try_link "$LINENO"; then :
1a82970f
JT
8626 found=yes
8627else
7083c021 8628 found=no
1a82970f 8629fi
7083c021
AC
8630rm -f core conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
1a82970f 8632LDFLAGS=$hold_ldflags
7083c021
AC
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8634$as_echo "$found" >&6; }
1a82970f
JT
8635if test "$found" = yes; then
8636 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
8637fi
8638
212380e3
AC
8639# This must be down here, or it will mess up checks like the ones
8640# for -Wl,-export-dynamic
8641# -- jilles
d2c5159a 8642CWARNS=""
631ef239 8643# Check whether --enable-warnings was given.
7083c021 8644if test "${enable_warnings+set}" = set; then :
631ef239 8645 enableval=$enable_warnings;
212380e3
AC
8646IRC_CFLAGS="$IRC_CFLAGS -O0"
8647CFLAGS="$IRC_CFLAGS"
8648
8649
7083c021
AC
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8651$as_echo_n "checking GCC flag(s) -Wall... " >&6; }
212380e3
AC
8652 if test "${GCC-no}" = yes
8653 then
b6d0720c 8654 if ${charybdis_cv_c_gcc_w_all+:} false; then :
7083c021 8655 $as_echo_n "(cached) " >&6
212380e3
AC
8656else
8657
8658 oldcflags="${CFLAGS-}"
8659 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
7083c021 8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8661/* end confdefs.h. */
8662
8663#include <string.h>
8664#include <stdio.h>
8665int main(void);
8666
8667int
8668main ()
8669{
8670
b1fc1658 8671 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8672
8673 ;
8674 return 0;
8675}
8676_ACEOF
7083c021 8677if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8678 charybdis_cv_c_gcc_w_all=yes
8679else
7083c021 8680 charybdis_cv_c_gcc_w_all=no
212380e3 8681fi
631ef239 8682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8683 CFLAGS="${oldcflags}"
8684fi
8685
8686 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
8687 CWARNS="${CWARNS}-Wall "
7083c021
AC
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8689$as_echo "ok" >&6; }
212380e3
AC
8690 else
8691 charybdis_cv_c_gcc_w_all=''
7083c021
AC
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693$as_echo "no" >&6; }
212380e3
AC
8694 fi
8695 else
7083c021
AC
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697$as_echo "no" >&6; }
212380e3
AC
8698 fi
8699
8700
7083c021
AC
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8702$as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
212380e3
AC
8703 if test "${GCC-no}" = yes
8704 then
b6d0720c 8705 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then :
7083c021 8706 $as_echo_n "(cached) " >&6
212380e3
AC
8707else
8708
8709 oldcflags="${CFLAGS-}"
8710 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
7083c021 8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8712/* end confdefs.h. */
8713
8714#include <string.h>
8715#include <stdio.h>
8716int main(void);
8717
8718int
8719main ()
8720{
8721
b1fc1658 8722 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8723
8724 ;
8725 return 0;
8726}
8727_ACEOF
7083c021 8728if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8729 charybdis_cv_c_gcc_w_pointer_arith=yes
8730else
7083c021 8731 charybdis_cv_c_gcc_w_pointer_arith=no
212380e3 8732fi
631ef239 8733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8734 CFLAGS="${oldcflags}"
8735fi
8736
8737 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
8738 CWARNS="${CWARNS}-Wpointer-arith "
7083c021
AC
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8740$as_echo "ok" >&6; }
212380e3
AC
8741 else
8742 charybdis_cv_c_gcc_w_pointer_arith=''
7083c021
AC
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744$as_echo "no" >&6; }
212380e3
AC
8745 fi
8746 else
7083c021
AC
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748$as_echo "no" >&6; }
212380e3
AC
8749 fi
8750
8751
7083c021
AC
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8753$as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
212380e3
AC
8754 if test "${GCC-no}" = yes
8755 then
b6d0720c 8756 if ${charybdis_cv_c_gcc_w_implicit+:} false; then :
7083c021 8757 $as_echo_n "(cached) " >&6
212380e3
AC
8758else
8759
8760 oldcflags="${CFLAGS-}"
8761 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
7083c021 8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8763/* end confdefs.h. */
8764
8765#include <string.h>
8766#include <stdio.h>
8767int main(void);
8768
8769int
8770main ()
8771{
8772
b1fc1658 8773 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8774
8775 ;
8776 return 0;
8777}
8778_ACEOF
7083c021 8779if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8780 charybdis_cv_c_gcc_w_implicit=yes
8781else
7083c021 8782 charybdis_cv_c_gcc_w_implicit=no
212380e3 8783fi
631ef239 8784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8785 CFLAGS="${oldcflags}"
8786fi
8787
8788 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
8789 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
7083c021
AC
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8791$as_echo "ok" >&6; }
212380e3
AC
8792 else
8793 charybdis_cv_c_gcc_w_implicit=''
7083c021
AC
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795$as_echo "no" >&6; }
212380e3
AC
8796 fi
8797 else
7083c021
AC
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799$as_echo "no" >&6; }
212380e3
AC
8800 fi
8801
8802
7083c021
AC
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8804$as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
212380e3
AC
8805 if test "${GCC-no}" = yes
8806 then
b6d0720c 8807 if ${charybdis_cv_c_gcc_w_cast_align+:} false; then :
7083c021 8808 $as_echo_n "(cached) " >&6
212380e3
AC
8809else
8810
8811 oldcflags="${CFLAGS-}"
8812 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
7083c021 8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8814/* end confdefs.h. */
8815
8816#include <string.h>
8817#include <stdio.h>
8818int main(void);
8819
8820int
8821main ()
8822{
8823
b1fc1658 8824 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
7083c021
AC
8825
8826 ;
8827 return 0;
8828}
8829_ACEOF
8830if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8831 charybdis_cv_c_gcc_w_cast_align=yes
8832else
7083c021 8833 charybdis_cv_c_gcc_w_cast_align=no
212380e3 8834fi
631ef239 8835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8836 CFLAGS="${oldcflags}"
8837fi
8838
8839 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
8840 CWARNS="${CWARNS}-Wcast-align "
7083c021
AC
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8842$as_echo "ok" >&6; }
212380e3
AC
8843 else
8844 charybdis_cv_c_gcc_w_cast_align=''
7083c021
AC
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846$as_echo "no" >&6; }
212380e3
AC
8847 fi
8848 else
7083c021
AC
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850$as_echo "no" >&6; }
212380e3
AC
8851 fi
8852
8853
7083c021
AC
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8855$as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
212380e3
AC
8856 if test "${GCC-no}" = yes
8857 then
b6d0720c 8858 if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then :
7083c021 8859 $as_echo_n "(cached) " >&6
212380e3
AC
8860else
8861
8862 oldcflags="${CFLAGS-}"
8863 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
7083c021 8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8865/* end confdefs.h. */
8866
8867#include <string.h>
8868#include <stdio.h>
8869int main(void);
8870
8871int
8872main ()
8873{
8874
b1fc1658 8875 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8876
8877 ;
8878 return 0;
8879}
8880_ACEOF
7083c021 8881if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8882 charybdis_cv_c_gcc_w_cast_qual=yes
8883else
7083c021 8884 charybdis_cv_c_gcc_w_cast_qual=no
212380e3 8885fi
631ef239 8886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8887 CFLAGS="${oldcflags}"
8888fi
8889
8890 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
8891 CWARNS="${CWARNS}-Wcast-qual "
7083c021
AC
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8893$as_echo "ok" >&6; }
212380e3
AC
8894 else
8895 charybdis_cv_c_gcc_w_cast_qual=''
7083c021
AC
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897$as_echo "no" >&6; }
212380e3
AC
8898 fi
8899 else
7083c021
AC
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901$as_echo "no" >&6; }
212380e3
AC
8902 fi
8903
8904
7083c021
AC
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8906$as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
d2c5159a
JT
8907 if test "${GCC-no}" = yes
8908 then
b6d0720c 8909 if ${charybdis_cv_c_gcc_w_write_strings+:} false; then :
7083c021 8910 $as_echo_n "(cached) " >&6
d2c5159a
JT
8911else
8912
8913 oldcflags="${CFLAGS-}"
8914 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
7083c021 8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d2c5159a
JT
8916/* end confdefs.h. */
8917
8918#include <string.h>
8919#include <stdio.h>
8920int main(void);
8921
8922int
8923main ()
8924{
8925
8926 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8927
8928 ;
8929 return 0;
8930}
8931_ACEOF
7083c021 8932if ac_fn_c_try_compile "$LINENO"; then :
bbe58888 8933 charybdis_cv_c_gcc_w_write_strings=yes
d2c5159a 8934else
7083c021 8935 charybdis_cv_c_gcc_w_write_strings=no
d2c5159a 8936fi
d2c5159a
JT
8937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938 CFLAGS="${oldcflags}"
8939fi
8940
bbe58888 8941 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
d2c5159a 8942 CWARNS="${CWARNS}-Wwrite-strings "
7083c021
AC
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8944$as_echo "ok" >&6; }
d2c5159a 8945 else
bbe58888 8946 charybdis_cv_c_gcc_w_write_strings=''
7083c021
AC
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948$as_echo "no" >&6; }
bbe58888
VY
8949 fi
8950 else
7083c021
AC
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952$as_echo "no" >&6; }
bbe58888
VY
8953 fi
8954
8955
7083c021
AC
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8957$as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
bbe58888
VY
8958 if test "${GCC-no}" = yes
8959 then
b6d0720c 8960 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then :
7083c021 8961 $as_echo_n "(cached) " >&6
bbe58888
VY
8962else
8963
8964 oldcflags="${CFLAGS-}"
8965 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
7083c021 8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bbe58888
VY
8967/* end confdefs.h. */
8968
8969#include <string.h>
8970#include <stdio.h>
8971int main(void);
8972
8973int
8974main ()
8975{
8976
8977 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8978
8979 ;
8980 return 0;
8981}
8982_ACEOF
7083c021 8983if ac_fn_c_try_compile "$LINENO"; then :
bbe58888
VY
8984 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
8985else
7083c021 8986 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
bbe58888 8987fi
bbe58888
VY
8988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989 CFLAGS="${oldcflags}"
8990fi
8991
8992 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
8993 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
7083c021
AC
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8995$as_echo "ok" >&6; }
bbe58888
VY
8996 else
8997 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
7083c021
AC
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999$as_echo "no" >&6; }
d2c5159a
JT
9000 fi
9001 else
7083c021
AC
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003$as_echo "no" >&6; }
d2c5159a
JT
9004 fi
9005
9006
7083c021
AC
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
9008$as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
212380e3
AC
9009 if test "${GCC-no}" = yes
9010 then
b6d0720c 9011 if ${charybdis_cv_c_gcc_prototypes+:} false; then :
7083c021 9012 $as_echo_n "(cached) " >&6
212380e3
AC
9013else
9014
9015 oldcflags="${CFLAGS-}"
9016 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
7083c021 9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9018/* end confdefs.h. */
9019
9020#include <string.h>
9021#include <stdio.h>
9022int main(void);
9023
9024int
9025main ()
9026{
9027
b1fc1658 9028 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9029
9030 ;
9031 return 0;
9032}
9033_ACEOF
7083c021 9034if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9035 charybdis_cv_c_gcc_prototypes=yes
9036else
7083c021 9037 charybdis_cv_c_gcc_prototypes=no
212380e3 9038fi
631ef239 9039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9040 CFLAGS="${oldcflags}"
9041fi
9042
9043 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
9044 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
7083c021
AC
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9046$as_echo "ok" >&6; }
212380e3
AC
9047 else
9048 charybdis_cv_c_gcc_prototypes=''
7083c021
AC
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050$as_echo "no" >&6; }
212380e3
AC
9051 fi
9052 else
7083c021
AC
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054$as_echo "no" >&6; }
212380e3
AC
9055 fi
9056
9057
7083c021
AC
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
9059$as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
212380e3
AC
9060 if test "${GCC-no}" = yes
9061 then
b6d0720c 9062 if ${charybdis_cv_c_gcc_parenthesis+:} false; then :
7083c021 9063 $as_echo_n "(cached) " >&6
212380e3
AC
9064else
9065
9066 oldcflags="${CFLAGS-}"
9067 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
7083c021 9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9069/* end confdefs.h. */
9070
9071#include <string.h>
9072#include <stdio.h>
9073int main(void);
9074
9075int
9076main ()
9077{
9078
b1fc1658 9079 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9080
9081 ;
9082 return 0;
9083}
9084_ACEOF
7083c021 9085if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9086 charybdis_cv_c_gcc_parenthesis=yes
9087else
7083c021 9088 charybdis_cv_c_gcc_parenthesis=no
212380e3 9089fi
631ef239 9090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9091 CFLAGS="${oldcflags}"
9092fi
9093
9094 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
9095 CWARNS="${CWARNS}-Wparenthesis "
7083c021
AC
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9097$as_echo "ok" >&6; }
212380e3
AC
9098 else
9099 charybdis_cv_c_gcc_parenthesis=''
7083c021
AC
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101$as_echo "no" >&6; }
212380e3
AC
9102 fi
9103 else
7083c021
AC
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105$as_echo "no" >&6; }
212380e3
AC
9106 fi
9107
9108
7083c021
AC
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
9110$as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
212380e3
AC
9111 if test "${GCC-no}" = yes
9112 then
b6d0720c 9113 if ${charybdis_cv_c_gcc_w+:} false; then :
7083c021 9114 $as_echo_n "(cached) " >&6
212380e3
AC
9115else
9116
9117 oldcflags="${CFLAGS-}"
9118 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
7083c021 9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9120/* end confdefs.h. */
9121
9122#include <string.h>
9123#include <stdio.h>
9124int main(void);
9125
9126int
9127main ()
9128{
9129
b1fc1658 9130 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9131
9132 ;
9133 return 0;
9134}
9135_ACEOF
7083c021 9136if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9137 charybdis_cv_c_gcc_w=yes
9138else
7083c021 9139 charybdis_cv_c_gcc_w=no
212380e3 9140fi
631ef239 9141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9142 CFLAGS="${oldcflags}"
9143fi
9144
9145 if test "x$charybdis_cv_c_gcc_w" = xyes; then
9146 CWARNS="${CWARNS}-W -Wno-unused "
7083c021
AC
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9148$as_echo "ok" >&6; }
212380e3
AC
9149 else
9150 charybdis_cv_c_gcc_w=''
7083c021
AC
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152$as_echo "no" >&6; }
212380e3
AC
9153 fi
9154 else
7083c021
AC
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156$as_echo "no" >&6; }
212380e3
AC
9157 fi
9158
9159
7083c021
AC
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
9161$as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
212380e3
AC
9162 if test "${GCC-no}" = yes
9163 then
b6d0720c 9164 if ${charybdis_cv_c_gcc_w_extra+:} false; then :
7083c021 9165 $as_echo_n "(cached) " >&6
212380e3
AC
9166else
9167
9168 oldcflags="${CFLAGS-}"
9169 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
7083c021 9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9171/* end confdefs.h. */
9172
9173#include <string.h>
9174#include <stdio.h>
9175int main(void);
9176
9177int
9178main ()
9179{
9180
b1fc1658 9181 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9182
9183 ;
9184 return 0;
9185}
9186_ACEOF
7083c021 9187if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9188 charybdis_cv_c_gcc_w_extra=yes
9189else
7083c021 9190 charybdis_cv_c_gcc_w_extra=no
212380e3 9191fi
631ef239 9192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9193 CFLAGS="${oldcflags}"
9194fi
9195
9196 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
9197 CWARNS="${CWARNS}-Wextra "
7083c021
AC
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9199$as_echo "ok" >&6; }
212380e3
AC
9200 else
9201 charybdis_cv_c_gcc_w_extra=''
7083c021
AC
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203$as_echo "no" >&6; }
212380e3
AC
9204 fi
9205 else
7083c021
AC
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207$as_echo "no" >&6; }
212380e3
AC
9208 fi
9209
9210
7083c021
AC
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
9212$as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
212380e3
AC
9213 if test "${GCC-no}" = yes
9214 then
b6d0720c 9215 if ${charybdis_cv_c_gcc_w_shadow+:} false; then :
7083c021 9216 $as_echo_n "(cached) " >&6
212380e3
AC
9217else
9218
9219 oldcflags="${CFLAGS-}"
9220 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
7083c021 9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9222/* end confdefs.h. */
9223
9224#include <string.h>
9225#include <stdio.h>
9226int main(void);
9227
9228int
9229main ()
9230{
9231
b1fc1658 9232 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9233
9234 ;
9235 return 0;
9236}
9237_ACEOF
7083c021 9238if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9239 charybdis_cv_c_gcc_w_shadow=yes
9240else
7083c021 9241 charybdis_cv_c_gcc_w_shadow=no
212380e3 9242fi
631ef239 9243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9244 CFLAGS="${oldcflags}"
9245fi
9246
9247 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
9248 CWARNS="${CWARNS}-Wshadow "
7083c021
AC
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9250$as_echo "ok" >&6; }
212380e3
AC
9251 else
9252 charybdis_cv_c_gcc_w_shadow=''
7083c021
AC
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254$as_echo "no" >&6; }
212380e3
AC
9255 fi
9256 else
7083c021
AC
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258$as_echo "no" >&6; }
212380e3
AC
9259 fi
9260
9261
7083c021
AC
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
9263$as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
212380e3
AC
9264 if test "${GCC-no}" = yes
9265 then
b6d0720c 9266 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then :
7083c021 9267 $as_echo_n "(cached) " >&6
212380e3
AC
9268else
9269
9270 oldcflags="${CFLAGS-}"
9271 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
7083c021 9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9273/* end confdefs.h. */
9274
9275#include <string.h>
9276#include <stdio.h>
9277int main(void);
9278
9279int
9280main ()
9281{
9282
b1fc1658 9283 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9284
9285 ;
9286 return 0;
9287}
9288_ACEOF
7083c021 9289if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9290 charybdis_cv_c_gcc_w_missing_noreturn=yes
9291else
7083c021 9292 charybdis_cv_c_gcc_w_missing_noreturn=no
212380e3 9293fi
631ef239 9294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9295 CFLAGS="${oldcflags}"
9296fi
9297
9298 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
9299 CWARNS="${CWARNS}-Wmissing-noreturn "
7083c021
AC
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9301$as_echo "ok" >&6; }
212380e3
AC
9302 else
9303 charybdis_cv_c_gcc_w_missing_noreturn=''
7083c021
AC
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305$as_echo "no" >&6; }
212380e3
AC
9306 fi
9307 else
7083c021
AC
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309$as_echo "no" >&6; }
212380e3
AC
9310 fi
9311
9312
7083c021
AC
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
9314$as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
212380e3
AC
9315 if test "${GCC-no}" = yes
9316 then
b6d0720c 9317 if ${charybdis_cv_c_gcc_w_undef+:} false; then :
7083c021 9318 $as_echo_n "(cached) " >&6
212380e3
AC
9319else
9320
9321 oldcflags="${CFLAGS-}"
9322 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
7083c021 9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9324/* end confdefs.h. */
9325
9326#include <string.h>
9327#include <stdio.h>
9328int main(void);
9329
9330int
9331main ()
9332{
9333
b1fc1658 9334 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9335
9336 ;
9337 return 0;
9338}
9339_ACEOF
7083c021 9340if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9341 charybdis_cv_c_gcc_w_undef=yes
9342else
7083c021 9343 charybdis_cv_c_gcc_w_undef=no
212380e3 9344fi
631ef239 9345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9346 CFLAGS="${oldcflags}"
9347fi
9348
9349 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
9350 CWARNS="${CWARNS}-Wundef "
7083c021
AC
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9352$as_echo "ok" >&6; }
212380e3
AC
9353 else
9354 charybdis_cv_c_gcc_w_undef=''
7083c021
AC
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356$as_echo "no" >&6; }
212380e3
AC
9357 fi
9358 else
7083c021
AC
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360$as_echo "no" >&6; }
212380e3
AC
9361 fi
9362
9363
7083c021
AC
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
9365$as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
212380e3
AC
9366 if test "${GCC-no}" = yes
9367 then
b6d0720c 9368 if ${charybdis_cv_c_gcc_w_packed+:} false; then :
7083c021 9369 $as_echo_n "(cached) " >&6
212380e3
AC
9370else
9371
9372 oldcflags="${CFLAGS-}"
9373 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
7083c021 9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9375/* end confdefs.h. */
9376
9377#include <string.h>
9378#include <stdio.h>
9379int main(void);
9380
9381int
9382main ()
9383{
9384
b1fc1658 9385 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9386
9387 ;
9388 return 0;
9389}
9390_ACEOF
7083c021 9391if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9392 charybdis_cv_c_gcc_w_packed=yes
9393else
7083c021 9394 charybdis_cv_c_gcc_w_packed=no
212380e3 9395fi
631ef239 9396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9397 CFLAGS="${oldcflags}"
9398fi
9399
9400 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
9401 CWARNS="${CWARNS}-Wpacked "
7083c021
AC
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9403$as_echo "ok" >&6; }
212380e3
AC
9404 else
9405 charybdis_cv_c_gcc_w_packed=''
7083c021
AC
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407$as_echo "no" >&6; }
212380e3
AC
9408 fi
9409 else
7083c021
AC
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411$as_echo "no" >&6; }
212380e3
AC
9412 fi
9413
9414
7083c021
AC
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
9416$as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
212380e3
AC
9417 if test "${GCC-no}" = yes
9418 then
b6d0720c 9419 if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then :
7083c021 9420 $as_echo_n "(cached) " >&6
212380e3
AC
9421else
9422
9423 oldcflags="${CFLAGS-}"
9424 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
7083c021 9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9426/* end confdefs.h. */
9427
9428#include <string.h>
9429#include <stdio.h>
9430int main(void);
9431
9432int
9433main ()
9434{
9435
b1fc1658 9436 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9437
9438 ;
9439 return 0;
9440}
9441_ACEOF
7083c021 9442if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9443 charybdis_cv_c_gcc_w_nested_externs=yes
9444else
7083c021 9445 charybdis_cv_c_gcc_w_nested_externs=no
212380e3 9446fi
631ef239 9447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9448 CFLAGS="${oldcflags}"
9449fi
9450
9451 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
9452 CWARNS="${CWARNS}-Wnested-externs "
7083c021
AC
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9454$as_echo "ok" >&6; }
212380e3
AC
9455 else
9456 charybdis_cv_c_gcc_w_nested_externs=''
7083c021
AC
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458$as_echo "no" >&6; }
212380e3
AC
9459 fi
9460 else
7083c021
AC
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9462$as_echo "no" >&6; }
212380e3
AC
9463 fi
9464
9465
7083c021
AC
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9467$as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
212380e3
AC
9468 if test "${GCC-no}" = yes
9469 then
b6d0720c 9470 if ${charybdis_cv_c_gcc_w_unused+:} false; then :
7083c021 9471 $as_echo_n "(cached) " >&6
212380e3
AC
9472else
9473
9474 oldcflags="${CFLAGS-}"
9475 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
7083c021 9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9477/* end confdefs.h. */
9478
9479#include <string.h>
9480#include <stdio.h>
9481int main(void);
9482
9483int
9484main ()
9485{
9486
b1fc1658 9487 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9488
9489 ;
9490 return 0;
9491}
9492_ACEOF
7083c021 9493if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9494 charybdis_cv_c_gcc_w_unused=yes
9495else
7083c021 9496 charybdis_cv_c_gcc_w_unused=no
212380e3 9497fi
631ef239 9498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9499 CFLAGS="${oldcflags}"
9500fi
9501
9502 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
9503 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
7083c021
AC
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9505$as_echo "ok" >&6; }
212380e3
AC
9506 else
9507 charybdis_cv_c_gcc_w_unused=''
7083c021
AC
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509$as_echo "no" >&6; }
212380e3
AC
9510 fi
9511 else
7083c021
AC
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513$as_echo "no" >&6; }
212380e3
AC
9514 fi
9515
9516
7083c021
AC
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9518$as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
212380e3
AC
9519 if test "${GCC-no}" = yes
9520 then
b6d0720c 9521 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then :
7083c021 9522 $as_echo_n "(cached) " >&6
212380e3
AC
9523else
9524
9525 oldcflags="${CFLAGS-}"
9526 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
7083c021 9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9528/* end confdefs.h. */
9529
9530#include <string.h>
9531#include <stdio.h>
9532int main(void);
9533
9534int
9535main ()
9536{
9537
b1fc1658 9538 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9539
9540 ;
9541 return 0;
9542}
9543_ACEOF
7083c021 9544if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9545 charybdis_cv_c_gcc_w_redundant_decls=yes
9546else
7083c021 9547 charybdis_cv_c_gcc_w_redundant_decls=no
212380e3 9548fi
631ef239 9549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9550 CFLAGS="${oldcflags}"
9551fi
9552
9553 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
9554 CWARNS="${CWARNS}-Wredundant-decls "
7083c021
AC
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9556$as_echo "ok" >&6; }
212380e3
AC
9557 else
9558 charybdis_cv_c_gcc_w_redundant_decls=''
7083c021
AC
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560$as_echo "no" >&6; }
212380e3
AC
9561 fi
9562 else
7083c021
AC
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564$as_echo "no" >&6; }
212380e3
AC
9565 fi
9566
9567
7083c021
AC
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9569$as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
212380e3
AC
9570 if test "${GCC-no}" = yes
9571 then
b6d0720c 9572 if ${charybdis_cv_c_gcc_w_float_equal+:} false; then :
7083c021 9573 $as_echo_n "(cached) " >&6
212380e3
AC
9574else
9575
9576 oldcflags="${CFLAGS-}"
9577 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
7083c021 9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9579/* end confdefs.h. */
9580
9581#include <string.h>
9582#include <stdio.h>
9583int main(void);
9584
9585int
9586main ()
9587{
9588
b1fc1658 9589 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9590
9591 ;
9592 return 0;
9593}
9594_ACEOF
7083c021 9595if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9596 charybdis_cv_c_gcc_w_float_equal=yes
9597else
7083c021 9598 charybdis_cv_c_gcc_w_float_equal=no
212380e3 9599fi
631ef239 9600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9601 CFLAGS="${oldcflags}"
9602fi
9603
9604 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
9605 CWARNS="${CWARNS}-Wfloat-equal "
7083c021
AC
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9607$as_echo "ok" >&6; }
212380e3
AC
9608 else
9609 charybdis_cv_c_gcc_w_float_equal=''
7083c021
AC
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
212380e3
AC
9612 fi
9613 else
7083c021
AC
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615$as_echo "no" >&6; }
212380e3
AC
9616 fi
9617
9618
7083c021
AC
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9620$as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
212380e3
AC
9621 if test "${GCC-no}" = yes
9622 then
b6d0720c 9623 if ${charybdis_cv_c_gcc_w_format+:} false; then :
7083c021 9624 $as_echo_n "(cached) " >&6
212380e3
AC
9625else
9626
9627 oldcflags="${CFLAGS-}"
4a584d41 9628 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
7083c021 9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9630/* end confdefs.h. */
9631
9632#include <string.h>
9633#include <stdio.h>
9634int main(void);
9635
9636int
9637main ()
9638{
7083c021
AC
9639
9640 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9641
212380e3
AC
9642 ;
9643 return 0;
9644}
9645_ACEOF
7083c021
AC
9646if ac_fn_c_try_compile "$LINENO"; then :
9647 charybdis_cv_c_gcc_w_format=yes
212380e3 9648else
7083c021
AC
9649 charybdis_cv_c_gcc_w_format=no
9650fi
9651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9652 CFLAGS="${oldcflags}"
9653fi
9654
9655 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
9656 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9658$as_echo "ok" >&6; }
9659 else
9660 charybdis_cv_c_gcc_w_format=''
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662$as_echo "no" >&6; }
9663 fi
9664 else
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666$as_echo "no" >&6; }
9667 fi
9668
9669
9670IRC_CFLAGS="$CFLAGS"
212380e3 9671
212380e3 9672fi
631ef239 9673
7083c021
AC
9674
9675if test "$shared_modules" = no; then
9676 DYNLINK_C=""
9677 MOD_TARGET="libmodules.a"
9678 MODULES_LIBS="../modules/libmodules.a"
9679 SEDOBJ=""
9680
9681$as_echo "#define STATIC_MODULES 1" >>confdefs.h
9682
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9684$as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
212380e3 9685fi
7083c021
AC
9686
9687if test "$shared_modules" = yes; then
9688
9689 ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist"
b6d0720c 9690if test "x$ac_cv_func_nlist" = xyes; then :
7083c021 9691
212380e3 9692else
7083c021
AC
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9694$as_echo_n "checking for nlist in -ldl... " >&6; }
b6d0720c 9695if ${ac_cv_lib_dl_nlist+:} false; then :
7083c021 9696 $as_echo_n "(cached) " >&6
212380e3
AC
9697else
9698 ac_check_lib_save_LIBS=$LIBS
9699LIBS="-ldl $LIBS"
7083c021 9700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9701/* end confdefs.h. */
9702
631ef239
AC
9703/* Override any GCC internal prototype to avoid an error.
9704 Use char because int might match the return type of a GCC
9705 builtin and then its argument prototype would still apply. */
212380e3
AC
9706#ifdef __cplusplus
9707extern "C"
9708#endif
212380e3
AC
9709char nlist ();
9710int
9711main ()
9712{
631ef239 9713return nlist ();
212380e3
AC
9714 ;
9715 return 0;
9716}
9717_ACEOF
7083c021 9718if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
9719 ac_cv_lib_dl_nlist=yes
9720else
7083c021 9721 ac_cv_lib_dl_nlist=no
212380e3 9722fi
7083c021
AC
9723rm -f core conftest.err conftest.$ac_objext \
9724 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
9725LIBS=$ac_check_lib_save_LIBS
9726fi
7083c021
AC
9727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9728$as_echo "$ac_cv_lib_dl_nlist" >&6; }
b6d0720c 9729if test "x$ac_cv_lib_dl_nlist" = xyes; then :
212380e3
AC
9730 nlist_lib="-ldl"
9731else
7083c021
AC
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9733$as_echo_n "checking for nlist in -lelf... " >&6; }
b6d0720c 9734if ${ac_cv_lib_elf_nlist+:} false; then :
7083c021 9735 $as_echo_n "(cached) " >&6
212380e3
AC
9736else
9737 ac_check_lib_save_LIBS=$LIBS
9738LIBS="-lelf $LIBS"
7083c021 9739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9740/* end confdefs.h. */
9741
631ef239
AC
9742/* Override any GCC internal prototype to avoid an error.
9743 Use char because int might match the return type of a GCC
9744 builtin and then its argument prototype would still apply. */
212380e3
AC
9745#ifdef __cplusplus
9746extern "C"
9747#endif
212380e3
AC
9748char nlist ();
9749int
9750main ()
9751{
631ef239 9752return nlist ();
212380e3
AC
9753 ;
9754 return 0;
9755}
9756_ACEOF
7083c021 9757if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
9758 ac_cv_lib_elf_nlist=yes
9759else
7083c021 9760 ac_cv_lib_elf_nlist=no
212380e3 9761fi
7083c021
AC
9762rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
9764LIBS=$ac_check_lib_save_LIBS
9765fi
7083c021
AC
9766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9767$as_echo "$ac_cv_lib_elf_nlist" >&6; }
b6d0720c 9768if test "x$ac_cv_lib_elf_nlist" = xyes; then :
212380e3
AC
9769 nlist_lib="-lelf"
9770fi
9771
9772
9773fi
9774
9775
9776fi
9777
9778
7083c021 9779 ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
b6d0720c 9780if test "x$ac_cv_header_libelf_nlist_h" = xyes; then :
212380e3
AC
9781 nlist_h="libelf/nlist.h"
9782fi
9783
9784
7083c021 9785 ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
b6d0720c 9786if test "x$ac_cv_header_elf_nlist_h" = xyes; then :
212380e3
AC
9787 nlist_h="elf/nlist.h"
9788fi
9789
9790
7083c021 9791 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
b6d0720c 9792if test "x$ac_cv_header_nlist_h" = xyes; then :
212380e3
AC
9793 nlist_h="nlist.h"
9794fi
9795
9796
9797 if test x"$nlist_h" = "x"; then
9798
9799cat >>confdefs.h <<_ACEOF
9800#define SYMBOL_PREFIX ""
9801_ACEOF
9802
9803 else
7083c021
AC
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9805$as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
b6d0720c 9806 if ${symbol_underscores+:} false; then :
7083c021 9807 $as_echo_n "(cached) " >&6
212380e3
AC
9808else
9809
9810cat << EOF > conftest.c
9811#include <$nlist_h>
9812#include <stdio.h>
9813#include <stdlib.h>
9814void _modinit(void);
9815int main(int argc, char *argv[]) {
9816 int i;
9817 struct nlist nl[5];
9818
9819 /* fill the names in this way, so it'll work almost everywhere */
9820 nl[0].n_name = "_modinit";
9821 nl[1].n_name = "__modinit";
9822 nl[2].n_name = "___modinit";
9823 nl[3].n_name = "____modinit";
9824 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9825
9826 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9827 for(i = 0; i < 4; i++) {
9828 if(nl[i].n_value != NULL)
9829 {
9830 int j;
9831 for(j = 0; j < i; j++)
9832 printf("_");
9833 exit(i);
9834 }
9835 }
9836 exit(-1);
9837}
9838void _modinit(void) { return; }
9839EOF
9840 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
9841 symbol_underscores=`./conftest conftest`
7083c021
AC
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9843$as_echo "$symbol_underscores" >&6; }
212380e3
AC
9844 $RM -f conftest conftest.c
9845
9846fi
9847
9848
9849cat >>confdefs.h <<_ACEOF
9850#define SYMBOL_PREFIX "${symbol_underscores}"
9851_ACEOF
9852
9853 fi
9854fi
9855
d2c5159a
JT
9856IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
9857
212380e3
AC
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871if test "$prefix" = "NONE"; then
9872
9873cat >>confdefs.h <<_ACEOF
9874#define IRCD_PREFIX "$ac_default_prefix"
9875_ACEOF
9876
9877
9878else
9879
9880
9881 prefix=`echo $prefix | sed 's/\/$//'`
9882
9883cat >>confdefs.h <<_ACEOF
9884#define IRCD_PREFIX "$prefix"
9885_ACEOF
9886
9887
9888fi
9889
2eff3833 9890ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile tools/genssl doc/Makefile help/Makefile"
9f9b7042 9891
2eff3833 9892ac_config_commands="$ac_config_commands tools/genssl_chmod"
212380e3
AC
9893
9894
9895cat >confcache <<\_ACEOF
9896# This file is a shell script that caches the results of configure
9897# tests run on this system so they can be shared between configure
9898# scripts and configure runs, see configure's option --config-cache.
9899# It is not useful on other systems. If it contains results you don't
9900# want to keep, you may remove or edit it.
9901#
9902# config.status only pays attention to the cache file if you give it
9903# the --recheck option to rerun configure.
9904#
9905# `ac_cv_env_foo' variables (set or unset) will be overridden when
9906# loading this file, other *unset* `ac_cv_foo' will be assigned the
9907# following values.
9908
9909_ACEOF
9910
9911# The following way of writing the cache mishandles newlines in values,
9912# but we know of no workaround that is simple, portable, and efficient.
631ef239 9913# So, we kill variables containing newlines.
212380e3
AC
9914# Ultrix sh set writes to stderr and can't be redirected directly,
9915# and sets the high bit in the cache file unless we assign to the vars.
631ef239
AC
9916(
9917 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9918 eval ac_val=\$$ac_var
9919 case $ac_val in #(
9920 *${as_nl}*)
9921 case $ac_var in #(
7083c021
AC
9922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9923$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
631ef239
AC
9924 esac
9925 case $ac_var in #(
9926 _ | IFS | as_nl) ;; #(
7083c021
AC
9927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9928 *) { eval $ac_var=; unset $ac_var;} ;;
631ef239
AC
9929 esac ;;
9930 esac
9931 done
9932
212380e3 9933 (set) 2>&1 |
631ef239
AC
9934 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9935 *${as_nl}ac_space=\ *)
7083c021
AC
9936 # `set' does not quote correctly, so add quotes: double-quote
9937 # substitution turns \\\\ into \\, and sed turns \\ into \.
212380e3
AC
9938 sed -n \
9939 "s/'/'\\\\''/g;
9940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
631ef239 9941 ;; #(
212380e3
AC
9942 *)
9943 # `set' quotes correctly as required by POSIX, so do not add quotes.
631ef239 9944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 9945 ;;
631ef239
AC
9946 esac |
9947 sort
9948) |
212380e3 9949 sed '
631ef239 9950 /^ac_cv_env_/b end
212380e3 9951 t clear
631ef239 9952 :clear
212380e3
AC
9953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9954 t end
631ef239
AC
9955 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9956 :end' >>confcache
9957if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9958 if test -w "$cache_file"; then
b6d0720c 9959 if test "x$cache_file" != "x/dev/null"; then
7083c021
AC
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9961$as_echo "$as_me: updating cache $cache_file" >&6;}
b6d0720c
AC
9962 if test ! -f "$cache_file" || test -h "$cache_file"; then
9963 cat confcache >"$cache_file"
9964 else
9965 case $cache_file in #(
9966 */* | ?:*)
9967 mv -f confcache "$cache_file"$$ &&
9968 mv -f "$cache_file"$$ "$cache_file" ;; #(
9969 *)
9970 mv -f confcache "$cache_file" ;;
9971 esac
9972 fi
9973 fi
212380e3 9974 else
7083c021
AC
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9976$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
212380e3
AC
9977 fi
9978fi
9979rm -f confcache
9980
9981test "x$prefix" = xNONE && prefix=$ac_default_prefix
9982# Let make expand exec_prefix.
9983test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9984
212380e3
AC
9985DEFS=-DHAVE_CONFIG_H
9986
9987ac_libobjs=
9988ac_ltlibobjs=
b6d0720c 9989U=
212380e3
AC
9990for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9991 # 1. Remove the extension, and $U if already installed.
631ef239 9992 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7083c021 9993 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
631ef239
AC
9994 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9995 # will be set to the directory where LIBOBJS objects are built.
7083c021
AC
9996 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9997 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
212380e3
AC
9998done
9999LIBOBJS=$ac_libobjs
10000
10001LTLIBOBJS=$ac_ltlibobjs
10002
10003
10004
7083c021
AC
10005
10006
b6d0720c 10007: "${CONFIG_STATUS=./config.status}"
7083c021 10008ac_write_fail=0
212380e3
AC
10009ac_clean_files_save=$ac_clean_files
10010ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7083c021
AC
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10012$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10013as_write_fail=0
10014cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
212380e3
AC
10015#! $SHELL
10016# Generated by $as_me.
10017# Run this file to recreate the current configuration.
10018# Compiler output produced by configure, useful for debugging
10019# configure, is in config.log if it exists.
10020
10021debug=false
10022ac_cs_recheck=false
10023ac_cs_silent=false
212380e3 10024
7083c021
AC
10025SHELL=\${CONFIG_SHELL-$SHELL}
10026export SHELL
10027_ASEOF
10028cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10029## -------------------- ##
10030## M4sh Initialization. ##
10031## -------------------- ##
212380e3 10032
631ef239
AC
10033# Be more Bourne compatible
10034DUALCASE=1; export DUALCASE # for MKS sh
7083c021 10035if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
10036 emulate sh
10037 NULLCMD=:
7083c021 10038 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
10039 # is contrary to our usage. Disable this feature.
10040 alias -g '${1+"$@"}'='"$@"'
631ef239 10041 setopt NO_GLOB_SUBST
212380e3 10042else
7083c021
AC
10043 case `(set -o) 2>/dev/null` in #(
10044 *posix*) :
10045 set -o posix ;; #(
10046 *) :
10047 ;;
631ef239 10048esac
212380e3
AC
10049fi
10050
10051
7083c021
AC
10052as_nl='
10053'
10054export as_nl
10055# Printing a long string crashes Solaris 7 /usr/bin/printf.
10056as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10057as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10058as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10059# Prefer a ksh shell builtin over an external printf program on Solaris,
10060# but without wasting forks for bash or zsh.
10061if test -z "$BASH_VERSION$ZSH_VERSION" \
10062 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10063 as_echo='print -r --'
10064 as_echo_n='print -rn --'
10065elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10066 as_echo='printf %s\n'
10067 as_echo_n='printf %s'
10068else
10069 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10070 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10071 as_echo_n='/usr/ucb/echo -n'
631ef239 10072 else
7083c021
AC
10073 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10074 as_echo_n_body='eval
10075 arg=$1;
10076 case $arg in #(
10077 *"$as_nl"*)
10078 expr "X$arg" : "X\\(.*\\)$as_nl";
10079 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10080 esac;
10081 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10082 '
10083 export as_echo_n_body
10084 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 10085 fi
7083c021
AC
10086 export as_echo_body
10087 as_echo='sh -c $as_echo_body as_echo'
631ef239
AC
10088fi
10089
7083c021
AC
10090# The user is always right.
10091if test "${PATH_SEPARATOR+set}" != set; then
10092 PATH_SEPARATOR=:
10093 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10094 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10095 PATH_SEPARATOR=';'
10096 }
631ef239
AC
10097fi
10098
10099
10100# IFS
10101# We need space, tab and new line, in precisely that order. Quoting is
10102# there to prevent editors from complaining about space-tab.
10103# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10104# splitting by setting IFS to empty value.)
631ef239
AC
10105IFS=" "" $as_nl"
10106
10107# Find who we are. Look in the path if we contain no directory separator.
b6d0720c 10108as_myself=
7083c021 10109case $0 in #((
631ef239
AC
10110 *[\\/]* ) as_myself=$0 ;;
10111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112for as_dir in $PATH
10113do
10114 IFS=$as_save_IFS
10115 test -z "$as_dir" && as_dir=.
7083c021
AC
10116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10117 done
631ef239
AC
10118IFS=$as_save_IFS
10119
10120 ;;
10121esac
10122# We did not find ourselves, most probably we were run as `sh COMMAND'
10123# in which case we are not to be found in the path.
10124if test "x$as_myself" = x; then
10125 as_myself=$0
10126fi
10127if test ! -f "$as_myself"; then
7083c021
AC
10128 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10129 exit 1
631ef239
AC
10130fi
10131
7083c021
AC
10132# Unset variables that we do not need and which cause bugs (e.g. in
10133# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10134# suppresses any "Segmentation fault" message there. '((' could
10135# trigger a bug in pdksh 5.2.14.
10136for as_var in BASH_ENV ENV MAIL MAILPATH
10137do eval test x\${$as_var+set} = xset \
10138 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 10139done
212380e3
AC
10140PS1='$ '
10141PS2='> '
10142PS4='+ '
10143
7083c021
AC
10144# NLS nuisances.
10145LC_ALL=C
10146export LC_ALL
10147LANGUAGE=C
10148export LANGUAGE
10149
10150# CDPATH.
10151(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10152
10153
b6d0720c
AC
10154# as_fn_error STATUS ERROR [LINENO LOG_FD]
10155# ----------------------------------------
7083c021
AC
10156# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10157# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 10158# script with STATUS, using 1 if that was 0.
7083c021
AC
10159as_fn_error ()
10160{
b6d0720c
AC
10161 as_status=$1; test $as_status -eq 0 && as_status=1
10162 if test "$4"; then
10163 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10164 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
212380e3 10165 fi
b6d0720c 10166 $as_echo "$as_me: error: $2" >&2
7083c021
AC
10167 as_fn_exit $as_status
10168} # as_fn_error
10169
10170
10171# as_fn_set_status STATUS
10172# -----------------------
10173# Set $? to STATUS, without forking.
10174as_fn_set_status ()
10175{
10176 return $1
10177} # as_fn_set_status
10178
10179# as_fn_exit STATUS
10180# -----------------
10181# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10182as_fn_exit ()
10183{
10184 set +e
10185 as_fn_set_status $1
10186 exit $1
10187} # as_fn_exit
10188
10189# as_fn_unset VAR
10190# ---------------
10191# Portably unset VAR.
10192as_fn_unset ()
10193{
10194 { eval $1=; unset $1;}
10195}
10196as_unset=as_fn_unset
10197# as_fn_append VAR VALUE
10198# ----------------------
10199# Append the text in VALUE to the end of the definition contained in VAR. Take
10200# advantage of any shell optimizations that allow amortized linear growth over
10201# repeated appends, instead of the typical quadratic growth present in naive
10202# implementations.
10203if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10204 eval 'as_fn_append ()
10205 {
10206 eval $1+=\$2
10207 }'
10208else
10209 as_fn_append ()
10210 {
10211 eval $1=\$$1\$2
10212 }
10213fi # as_fn_append
10214
10215# as_fn_arith ARG...
10216# ------------------
10217# Perform arithmetic evaluation on the ARGs, and store the result in the
10218# global $as_val. Take advantage of shells that can avoid forks. The arguments
10219# must be portable across $(()) and expr.
10220if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10221 eval 'as_fn_arith ()
10222 {
10223 as_val=$(( $* ))
10224 }'
10225else
10226 as_fn_arith ()
10227 {
10228 as_val=`expr "$@" || test $? -eq 1`
10229 }
10230fi # as_fn_arith
10231
212380e3 10232
631ef239
AC
10233if expr a : '\(a\)' >/dev/null 2>&1 &&
10234 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
10235 as_expr=expr
10236else
10237 as_expr=false
10238fi
10239
631ef239 10240if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
10241 as_basename=basename
10242else
10243 as_basename=false
10244fi
10245
7083c021
AC
10246if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10247 as_dirname=dirname
10248else
10249 as_dirname=false
10250fi
212380e3 10251
631ef239 10252as_me=`$as_basename -- "$0" ||
212380e3
AC
10253$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10254 X"$0" : 'X\(//\)$' \| \
631ef239 10255 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 10256$as_echo X/"$0" |
631ef239
AC
10257 sed '/^.*\/\([^/][^/]*\)\/*$/{
10258 s//\1/
10259 q
10260 }
10261 /^X\/\(\/\/\)$/{
10262 s//\1/
10263 q
10264 }
10265 /^X\/\(\/\).*/{
10266 s//\1/
10267 q
10268 }
10269 s/.*/./; q'`
212380e3 10270
7083c021
AC
10271# Avoid depending upon Character Ranges.
10272as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10273as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10274as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10275as_cr_digits='0123456789'
10276as_cr_alnum=$as_cr_Letters$as_cr_digits
631ef239
AC
10277
10278ECHO_C= ECHO_N= ECHO_T=
7083c021 10279case `echo -n x` in #(((((
631ef239 10280-n*)
7083c021 10281 case `echo 'xy\c'` in
631ef239 10282 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7083c021
AC
10283 xy) ECHO_C='\c';;
10284 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10285 ECHO_T=' ';;
631ef239
AC
10286 esac;;
10287*)
10288 ECHO_N='-n';;
212380e3
AC
10289esac
10290
212380e3 10291rm -f conf$$ conf$$.exe conf$$.file
631ef239
AC
10292if test -d conf$$.dir; then
10293 rm -f conf$$.dir/conf$$.file
10294else
10295 rm -f conf$$.dir
7083c021
AC
10296 mkdir conf$$.dir 2>/dev/null
10297fi
10298if (echo >conf$$.file) 2>/dev/null; then
10299 if ln -s conf$$.file conf$$ 2>/dev/null; then
10300 as_ln_s='ln -s'
10301 # ... but there are two gotchas:
10302 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10303 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2eff3833 10304 # In both cases, we have to default to `cp -pR'.
7083c021 10305 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2eff3833 10306 as_ln_s='cp -pR'
7083c021
AC
10307 elif ln conf$$.file conf$$ 2>/dev/null; then
10308 as_ln_s=ln
10309 else
2eff3833 10310 as_ln_s='cp -pR'
7083c021 10311 fi
212380e3 10312else
2eff3833 10313 as_ln_s='cp -pR'
212380e3 10314fi
631ef239
AC
10315rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10316rmdir conf$$.dir 2>/dev/null
212380e3 10317
7083c021
AC
10318
10319# as_fn_mkdir_p
10320# -------------
10321# Create "$as_dir" as a directory, including parents if necessary.
10322as_fn_mkdir_p ()
10323{
10324
10325 case $as_dir in #(
10326 -*) as_dir=./$as_dir;;
10327 esac
10328 test -d "$as_dir" || eval $as_mkdir_p || {
10329 as_dirs=
10330 while :; do
10331 case $as_dir in #(
10332 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10333 *) as_qdir=$as_dir;;
10334 esac
10335 as_dirs="'$as_qdir' $as_dirs"
10336 as_dir=`$as_dirname -- "$as_dir" ||
10337$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10338 X"$as_dir" : 'X\(//\)[^/]' \| \
10339 X"$as_dir" : 'X\(//\)$' \| \
10340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10341$as_echo X"$as_dir" |
10342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10343 s//\1/
10344 q
10345 }
10346 /^X\(\/\/\)[^/].*/{
10347 s//\1/
10348 q
10349 }
10350 /^X\(\/\/\)$/{
10351 s//\1/
10352 q
10353 }
10354 /^X\(\/\).*/{
10355 s//\1/
10356 q
10357 }
10358 s/.*/./; q'`
10359 test -d "$as_dir" && break
10360 done
10361 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 10362 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
10363
10364
10365} # as_fn_mkdir_p
212380e3 10366if mkdir -p . 2>/dev/null; then
7083c021 10367 as_mkdir_p='mkdir -p "$as_dir"'
212380e3
AC
10368else
10369 test -d ./-p && rmdir ./-p
10370 as_mkdir_p=false
10371fi
10372
2eff3833
JT
10373
10374# as_fn_executable_p FILE
10375# -----------------------
10376# Test if FILE is an executable regular file.
10377as_fn_executable_p ()
10378{
10379 test -f "$1" && test -x "$1"
10380} # as_fn_executable_p
10381as_test_x='test -x'
10382as_executable_p=as_fn_executable_p
212380e3
AC
10383
10384# Sed expression to map a string onto a valid CPP name.
10385as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10386
10387# Sed expression to map a string onto a valid variable name.
10388as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10389
10390
212380e3 10391exec 6>&1
7083c021
AC
10392## ----------------------------------- ##
10393## Main body of $CONFIG_STATUS script. ##
10394## ----------------------------------- ##
10395_ASEOF
10396test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
212380e3 10397
7083c021
AC
10398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10399# Save the log message, to keep $0 and so on meaningful, and to
212380e3 10400# report actual input values of CONFIG_FILES etc. instead of their
631ef239
AC
10401# values after options handling.
10402ac_log="
dc9aebf4 10403This file was extended by charybdis $as_me 3.5.0-dev, which was
2eff3833 10404generated by GNU Autoconf 2.69. Invocation command line was
212380e3
AC
10405
10406 CONFIG_FILES = $CONFIG_FILES
10407 CONFIG_HEADERS = $CONFIG_HEADERS
10408 CONFIG_LINKS = $CONFIG_LINKS
10409 CONFIG_COMMANDS = $CONFIG_COMMANDS
10410 $ $0 $@
10411
631ef239
AC
10412on `(hostname || uname -n) 2>/dev/null | sed 1q`
10413"
10414
212380e3
AC
10415_ACEOF
10416
7083c021
AC
10417case $ac_config_files in *"
10418"*) set x $ac_config_files; shift; ac_config_files=$*;;
10419esac
10420
10421case $ac_config_headers in *"
10422"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10423esac
10424
10425
10426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10427# Files that config.status was made for.
631ef239
AC
10428config_files="$ac_config_files"
10429config_headers="$ac_config_headers"
9f9b7042 10430config_commands="$ac_config_commands"
212380e3 10431
631ef239 10432_ACEOF
212380e3 10433
7083c021 10434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3 10435ac_cs_usage="\
7083c021
AC
10436\`$as_me' instantiates files and other configuration actions
10437from templates according to the current configuration. Unless the files
10438and actions are specified as TAGs, all are instantiated by default.
212380e3 10439
7083c021 10440Usage: $0 [OPTION]... [TAG]...
212380e3
AC
10441
10442 -h, --help print this help, then exit
631ef239 10443 -V, --version print version number and configuration settings, then exit
6fb6bd15 10444 --config print configuration, then exit
7083c021
AC
10445 -q, --quiet, --silent
10446 do not print progress messages
212380e3
AC
10447 -d, --debug don't remove temporary files
10448 --recheck update $as_me by reconfiguring in the same conditions
7083c021
AC
10449 --file=FILE[:TEMPLATE]
10450 instantiate the configuration file FILE
10451 --header=FILE[:TEMPLATE]
10452 instantiate the configuration header FILE
212380e3
AC
10453
10454Configuration files:
10455$config_files
10456
10457Configuration headers:
10458$config_headers
10459
9f9b7042
NPB
10460Configuration commands:
10461$config_commands
10462
7083c021 10463Report bugs to the package provider."
212380e3 10464
631ef239 10465_ACEOF
7083c021 10466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6fb6bd15 10467ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
212380e3 10468ac_cs_version="\\
dc9aebf4 10469charybdis config.status 3.5.0-dev
2eff3833 10470configured by $0, generated by GNU Autoconf 2.69,
6fb6bd15 10471 with options \\"\$ac_cs_config\\"
212380e3 10472
2eff3833 10473Copyright (C) 2012 Free Software Foundation, Inc.
212380e3
AC
10474This config.status script is free software; the Free Software Foundation
10475gives unlimited permission to copy, distribute and modify it."
631ef239
AC
10476
10477ac_pwd='$ac_pwd'
10478srcdir='$srcdir'
10479INSTALL='$INSTALL'
7083c021 10480test -n "\$AWK" || AWK=awk
212380e3
AC
10481_ACEOF
10482
7083c021
AC
10483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10484# The default lists apply if the user does not specify any file.
212380e3
AC
10485ac_need_defaults=:
10486while test $# != 0
10487do
10488 case $1 in
b6d0720c 10489 --*=?*)
631ef239
AC
10490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
212380e3
AC
10492 ac_shift=:
10493 ;;
b6d0720c
AC
10494 --*=)
10495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10496 ac_optarg=
10497 ac_shift=:
10498 ;;
631ef239 10499 *)
212380e3
AC
10500 ac_option=$1
10501 ac_optarg=$2
10502 ac_shift=shift
10503 ;;
212380e3
AC
10504 esac
10505
10506 case $ac_option in
10507 # Handling of the options.
212380e3
AC
10508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10509 ac_cs_recheck=: ;;
631ef239 10510 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7083c021 10511 $as_echo "$ac_cs_version"; exit ;;
6fb6bd15
AC
10512 --config | --confi | --conf | --con | --co | --c )
10513 $as_echo "$ac_cs_config"; exit ;;
631ef239 10514 --debug | --debu | --deb | --de | --d | -d )
212380e3
AC
10515 debug=: ;;
10516 --file | --fil | --fi | --f )
10517 $ac_shift
7083c021
AC
10518 case $ac_optarg in
10519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b6d0720c 10520 '') as_fn_error $? "missing file argument" ;;
7083c021
AC
10521 esac
10522 as_fn_append CONFIG_FILES " '$ac_optarg'"
212380e3
AC
10523 ac_need_defaults=false;;
10524 --header | --heade | --head | --hea )
10525 $ac_shift
7083c021
AC
10526 case $ac_optarg in
10527 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10528 esac
10529 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
212380e3 10530 ac_need_defaults=false;;
631ef239
AC
10531 --he | --h)
10532 # Conflict between --help and --header
b6d0720c 10533 as_fn_error $? "ambiguous option: \`$1'
7083c021 10534Try \`$0 --help' for more information.";;
631ef239 10535 --help | --hel | -h )
7083c021 10536 $as_echo "$ac_cs_usage"; exit ;;
212380e3
AC
10537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10538 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10539 ac_cs_silent=: ;;
10540
10541 # This is an error.
b6d0720c 10542 -*) as_fn_error $? "unrecognized option: \`$1'
7083c021 10543Try \`$0 --help' for more information." ;;
212380e3 10544
7083c021 10545 *) as_fn_append ac_config_targets " $1"
631ef239 10546 ac_need_defaults=false ;;
212380e3
AC
10547
10548 esac
10549 shift
10550done
10551
10552ac_configure_extra_args=
10553
10554if $ac_cs_silent; then
10555 exec 6>/dev/null
10556 ac_configure_extra_args="$ac_configure_extra_args --silent"
10557fi
10558
10559_ACEOF
7083c021 10560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10561if \$ac_cs_recheck; then
2eff3833 10562 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7083c021
AC
10563 shift
10564 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10565 CONFIG_SHELL='$SHELL'
631ef239 10566 export CONFIG_SHELL
7083c021 10567 exec "\$@"
212380e3
AC
10568fi
10569
10570_ACEOF
7083c021 10571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10572exec 5>>config.log
10573{
10574 echo
10575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10576## Running $as_me. ##
10577_ASBOX
7083c021 10578 $as_echo "$ac_log"
631ef239 10579} >&5
212380e3 10580
631ef239 10581_ACEOF
7083c021 10582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239 10583_ACEOF
212380e3 10584
7083c021 10585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10586
10587# Handling of arguments.
212380e3
AC
10588for ac_config_target in $ac_config_targets
10589do
631ef239
AC
10590 case $ac_config_target in
10591 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
10592 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7083c021 10593 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;;
53970d07 10594 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
631ef239 10595 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
631ef239
AC
10596 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10597 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
10598 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
2eff3833 10599 "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;;
631ef239
AC
10600 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10601 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
2eff3833 10602 "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;;
631ef239 10603
b6d0720c 10604 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
212380e3
AC
10605 esac
10606done
10607
631ef239 10608
212380e3
AC
10609# If the user did not use the arguments to specify the items to instantiate,
10610# then the envvar interface is used. Set only those that are not.
10611# We use the long form for the default assignment because of an extremely
10612# bizarre bug on SunOS 4.1.3.
10613if $ac_need_defaults; then
10614 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10615 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9f9b7042 10616 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
212380e3
AC
10617fi
10618
10619# Have a temporary directory for convenience. Make it in the build tree
631ef239 10620# simply because there is no reason against having it here, and in addition,
212380e3 10621# creating and moving files from /tmp can sometimes cause problems.
631ef239
AC
10622# Hook for its removal unless debugging.
10623# Note that there is a small window in which the directory will not be cleaned:
10624# after its creation but before its name has been assigned to `$tmp'.
212380e3
AC
10625$debug ||
10626{
b6d0720c 10627 tmp= ac_tmp=
631ef239 10628 trap 'exit_status=$?
b6d0720c
AC
10629 : "${ac_tmp:=$tmp}"
10630 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
631ef239 10631' 0
7083c021 10632 trap 'as_fn_exit 1' 1 2 13 15
212380e3 10633}
212380e3
AC
10634# Create a (secure) tmp directory for tmp files.
10635
10636{
631ef239 10637 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b6d0720c 10638 test -d "$tmp"
212380e3
AC
10639} ||
10640{
631ef239
AC
10641 tmp=./conf$$-$RANDOM
10642 (umask 077 && mkdir "$tmp")
b6d0720c
AC
10643} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10644ac_tmp=$tmp
212380e3 10645
7083c021
AC
10646# Set up the scripts for CONFIG_FILES section.
10647# No need to generate them if there are no CONFIG_FILES.
10648# This happens for instance with `./config.status config.h'.
631ef239
AC
10649if test -n "$CONFIG_FILES"; then
10650
631ef239 10651
7083c021
AC
10652ac_cr=`echo X | tr X '\015'`
10653# On cygwin, bash can eat \r inside `` if the user requested igncr.
10654# But we know of no other shell where ac_cr would be empty at this
10655# point, so we can use a bashism as a fallback.
10656if test "x$ac_cr" = x; then
10657 eval ac_cr=\$\'\\r\'
10658fi
10659ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10660if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
b6d0720c 10661 ac_cs_awk_cr='\\r'
7083c021
AC
10662else
10663 ac_cs_awk_cr=$ac_cr
10664fi
10665
b6d0720c 10666echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7083c021 10667_ACEOF
631ef239
AC
10668
10669
7083c021
AC
10670{
10671 echo "cat >conf$$subs.awk <<_ACEOF" &&
10672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10673 echo "_ACEOF"
10674} >conf$$subs.sh ||
b6d0720c
AC
10675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10676ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
631ef239
AC
10677ac_delim='%!_!# '
10678for ac_last_try in false false false false false :; do
7083c021 10679 . ./conf$$subs.sh ||
b6d0720c 10680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7083c021
AC
10681
10682 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10683 if test $ac_delim_n = $ac_delim_num; then
631ef239
AC
10684 break
10685 elif $ac_last_try; then
b6d0720c 10686 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
631ef239
AC
10687 else
10688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
212380e3 10689 fi
631ef239 10690done
7083c021
AC
10691rm -f conf$$subs.sh
10692
10693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b6d0720c 10694cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7083c021
AC
10695_ACEOF
10696sed -n '
10697h
10698s/^/S["/; s/!.*/"]=/
10699p
10700g
10701s/^[^!]*!//
10702:repl
10703t repl
10704s/'"$ac_delim"'$//
10705t delim
10706:nl
10707h
6fb6bd15 10708s/\(.\{148\}\)..*/\1/
7083c021
AC
10709t more1
10710s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10711p
10712n
10713b repl
10714:more1
10715s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10716p
10717g
10718s/.\{148\}//
10719t nl
10720:delim
10721h
6fb6bd15 10722s/\(.\{148\}\)..*/\1/
7083c021
AC
10723t more2
10724s/["\\]/\\&/g; s/^/"/; s/$/"/
10725p
10726b
10727:more2
10728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10729p
10730g
10731s/.\{148\}//
10732t delim
10733' <conf$$subs.awk | sed '
10734/^[^""]/{
10735 N
10736 s/\n//
10737}
10738' >>$CONFIG_STATUS || ac_write_fail=1
10739rm -f conf$$subs.awk
10740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10741_ACAWK
b6d0720c 10742cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7083c021
AC
10743 for (key in S) S_is_set[key] = 1
10744 FS = "\a"
212380e3 10745
7083c021
AC
10746}
10747{
10748 line = $ 0
10749 nfields = split(line, field, "@")
10750 substed = 0
10751 len = length(field[1])
10752 for (i = 2; i < nfields; i++) {
10753 key = field[i]
10754 keylen = length(key)
10755 if (S_is_set[key]) {
10756 value = S[key]
10757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10758 len += length(value) + length(field[++i])
10759 substed = 1
10760 } else
10761 len += 1 + keylen
10762 }
631ef239 10763
7083c021
AC
10764 print line
10765}
10766
10767_ACAWK
631ef239 10768_ACEOF
7083c021
AC
10769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10770if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10771 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10772else
10773 cat
b6d0720c
AC
10774fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10775 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
212380e3 10776_ACEOF
631ef239 10777
b6d0720c
AC
10778# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10779# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
631ef239
AC
10780# trailing colons and then remove the whole line if VPATH becomes empty
10781# (actually we leave an empty line to preserve line numbers).
10782if test "x$srcdir" = x.; then
b6d0720c
AC
10783 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10784h
10785s///
10786s/^/:/
10787s/[ ]*$/:/
10788s/:\$(srcdir):/:/g
10789s/:\${srcdir}:/:/g
10790s/:@srcdir@:/:/g
10791s/^:*//
631ef239 10792s/:*$//
b6d0720c
AC
10793x
10794s/\(=[ ]*\).*/\1/
10795G
10796s/\n//
631ef239
AC
10797s/^[^=]*=[ ]*$//
10798}'
10799fi
10800
7083c021 10801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10802fi # test -n "$CONFIG_FILES"
10803
7083c021
AC
10804# Set up the scripts for CONFIG_HEADERS section.
10805# No need to generate them if there are no CONFIG_HEADERS.
10806# This happens for instance with `./config.status Makefile'.
10807if test -n "$CONFIG_HEADERS"; then
b6d0720c 10808cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7083c021
AC
10809BEGIN {
10810_ACEOF
10811
10812# Transform confdefs.h into an awk script `defines.awk', embedded as
10813# here-document in config.status, that substitutes the proper values into
10814# config.h.in to produce config.h.
10815
10816# Create a delimiter string that does not exist in confdefs.h, to ease
10817# handling of long lines.
10818ac_delim='%!_!# '
10819for ac_last_try in false false :; do
b6d0720c
AC
10820 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10821 if test -z "$ac_tt"; then
7083c021
AC
10822 break
10823 elif $ac_last_try; then
b6d0720c 10824 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7083c021
AC
10825 else
10826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10827 fi
10828done
10829
10830# For the awk script, D is an array of macro values keyed by name,
10831# likewise P contains macro parameters if any. Preserve backslash
10832# newline sequences.
10833
10834ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10835sed -n '
10836s/.\{148\}/&'"$ac_delim"'/g
10837t rset
10838:rset
10839s/^[ ]*#[ ]*define[ ][ ]*/ /
10840t def
10841d
10842:def
10843s/\\$//
10844t bsnl
10845s/["\\]/\\&/g
10846s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10847D["\1"]=" \3"/p
10848s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10849d
10850:bsnl
10851s/["\\]/\\&/g
10852s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10853D["\1"]=" \3\\\\\\n"\\/p
10854t cont
10855s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10856t cont
10857d
10858:cont
10859n
10860s/.\{148\}/&'"$ac_delim"'/g
10861t clear
10862:clear
10863s/\\$//
10864t bsnlc
10865s/["\\]/\\&/g; s/^/"/; s/$/"/p
10866d
10867:bsnlc
10868s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10869b cont
10870' <confdefs.h | sed '
10871s/'"$ac_delim"'/"\\\
10872"/g' >>$CONFIG_STATUS || ac_write_fail=1
10873
10874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10875 for (key in D) D_is_set[key] = 1
10876 FS = "\a"
10877}
10878/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10879 line = \$ 0
10880 split(line, arg, " ")
10881 if (arg[1] == "#") {
10882 defundef = arg[2]
10883 mac1 = arg[3]
10884 } else {
10885 defundef = substr(arg[1], 2)
10886 mac1 = arg[2]
10887 }
10888 split(mac1, mac2, "(") #)
10889 macro = mac2[1]
10890 prefix = substr(line, 1, index(line, defundef) - 1)
10891 if (D_is_set[macro]) {
10892 # Preserve the white space surrounding the "#".
10893 print prefix "define", macro P[macro] D[macro]
10894 next
10895 } else {
10896 # Replace #undef with comments. This is necessary, for example,
10897 # in the case of _POSIX_SOURCE, which is predefined and required
10898 # on some systems where configure will not decide to define it.
10899 if (defundef == "undef") {
10900 print "/*", prefix defundef, macro, "*/"
10901 next
10902 }
10903 }
10904}
10905{ print }
10906_ACAWK
10907_ACEOF
10908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b6d0720c 10909 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7083c021
AC
10910fi # test -n "$CONFIG_HEADERS"
10911
631ef239 10912
9f9b7042 10913eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7083c021
AC
10914shift
10915for ac_tag
631ef239
AC
10916do
10917 case $ac_tag in
10918 :[FHLC]) ac_mode=$ac_tag; continue;;
10919 esac
10920 case $ac_mode$ac_tag in
10921 :[FHL]*:*);;
b6d0720c 10922 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
631ef239
AC
10923 :[FH]-) ac_tag=-:-;;
10924 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
212380e3 10925 esac
631ef239
AC
10926 ac_save_IFS=$IFS
10927 IFS=:
10928 set x $ac_tag
10929 IFS=$ac_save_IFS
10930 shift
10931 ac_file=$1
10932 shift
212380e3 10933
631ef239
AC
10934 case $ac_mode in
10935 :L) ac_source=$1;;
10936 :[FH])
10937 ac_file_inputs=
10938 for ac_f
10939 do
10940 case $ac_f in
b6d0720c 10941 -) ac_f="$ac_tmp/stdin";;
631ef239
AC
10942 *) # Look for the file first in the build tree, then in the source tree
10943 # (if the path is not absolute). The absolute path cannot be DOS-style,
10944 # because $ac_f cannot contain `:'.
10945 test -f "$ac_f" ||
10946 case $ac_f in
10947 [\\/$]*) false;;
10948 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10949 esac ||
b6d0720c 10950 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
631ef239 10951 esac
7083c021
AC
10952 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10953 as_fn_append ac_file_inputs " '$ac_f'"
631ef239
AC
10954 done
10955
10956 # Let's still pretend it is `configure' which instantiates (i.e., don't
10957 # use $as_me), people would be surprised to read:
10958 # /* config.h. Generated by config.status. */
7083c021
AC
10959 configure_input='Generated from '`
10960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10961 `' by configure.'
631ef239
AC
10962 if test x"$ac_file" != x-; then
10963 configure_input="$ac_file. $configure_input"
7083c021
AC
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10965$as_echo "$as_me: creating $ac_file" >&6;}
631ef239 10966 fi
7083c021
AC
10967 # Neutralize special characters interpreted by sed in replacement strings.
10968 case $configure_input in #(
10969 *\&* | *\|* | *\\* )
10970 ac_sed_conf_input=`$as_echo "$configure_input" |
10971 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10972 *) ac_sed_conf_input=$configure_input;;
10973 esac
631ef239
AC
10974
10975 case $ac_tag in
b6d0720c
AC
10976 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
631ef239
AC
10978 esac
10979 ;;
10980 esac
10981
10982 ac_dir=`$as_dirname -- "$ac_file" ||
212380e3
AC
10983$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10984 X"$ac_file" : 'X\(//\)[^/]' \| \
10985 X"$ac_file" : 'X\(//\)$' \| \
631ef239 10986 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 10987$as_echo X"$ac_file" |
631ef239
AC
10988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10989 s//\1/
10990 q
10991 }
10992 /^X\(\/\/\)[^/].*/{
10993 s//\1/
10994 q
10995 }
10996 /^X\(\/\/\)$/{
10997 s//\1/
10998 q
10999 }
11000 /^X\(\/\).*/{
11001 s//\1/
11002 q
11003 }
11004 s/.*/./; q'`
7083c021 11005 as_dir="$ac_dir"; as_fn_mkdir_p
212380e3
AC
11006 ac_builddir=.
11007
631ef239
AC
11008case "$ac_dir" in
11009.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11010*)
7083c021 11011 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 11012 # A ".." for each directory in $ac_dir_suffix.
7083c021 11013 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
11014 case $ac_top_builddir_sub in
11015 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11016 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11017 esac ;;
11018esac
11019ac_abs_top_builddir=$ac_pwd
11020ac_abs_builddir=$ac_pwd$ac_dir_suffix
11021# for backward compatibility:
11022ac_top_builddir=$ac_top_build_prefix
212380e3
AC
11023
11024case $srcdir in
631ef239 11025 .) # We are building in place.
212380e3 11026 ac_srcdir=.
631ef239
AC
11027 ac_top_srcdir=$ac_top_builddir_sub
11028 ac_abs_top_srcdir=$ac_pwd ;;
11029 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 11030 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
11031 ac_top_srcdir=$srcdir
11032 ac_abs_top_srcdir=$srcdir ;;
11033 *) # Relative name.
11034 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11035 ac_top_srcdir=$ac_top_build_prefix$srcdir
11036 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 11037esac
631ef239 11038ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
212380e3 11039
212380e3 11040
631ef239
AC
11041 case $ac_mode in
11042 :F)
11043 #
11044 # CONFIG_FILE
11045 #
212380e3
AC
11046
11047 case $INSTALL in
11048 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
631ef239 11049 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
212380e3 11050 esac
631ef239 11051_ACEOF
212380e3 11052
7083c021 11053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
11054# If the template does not know about datarootdir, expand it.
11055# FIXME: This hack should be removed a few years after 2.60.
11056ac_datarootdir_hack=; ac_datarootdir_seen=
7083c021
AC
11057ac_sed_dataroot='
11058/datarootdir/ {
631ef239
AC
11059 p
11060 q
11061}
11062/@datadir@/p
11063/@docdir@/p
11064/@infodir@/p
11065/@localedir@/p
7083c021
AC
11066/@mandir@/p'
11067case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
631ef239
AC
11068*datarootdir*) ac_datarootdir_seen=yes;;
11069*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7083c021
AC
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11071$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
631ef239 11072_ACEOF
7083c021 11073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239
AC
11074 ac_datarootdir_hack='
11075 s&@datadir@&$datadir&g
11076 s&@docdir@&$docdir&g
11077 s&@infodir@&$infodir&g
11078 s&@localedir@&$localedir&g
11079 s&@mandir@&$mandir&g
7083c021 11080 s&\\\${datarootdir}&$datarootdir&g' ;;
631ef239 11081esac
212380e3 11082_ACEOF
631ef239
AC
11083
11084# Neutralize VPATH when `$srcdir' = `.'.
11085# Shell code in configure.ac might set extrasub.
11086# FIXME: do we really want to maintain this feature?
7083c021
AC
11087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11088ac_sed_extra="$ac_vpsub
212380e3
AC
11089$extrasub
11090_ACEOF
7083c021 11091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3
AC
11092:t
11093/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7083c021 11094s|@configure_input@|$ac_sed_conf_input|;t t
631ef239 11095s&@top_builddir@&$ac_top_builddir_sub&;t t
7083c021 11096s&@top_build_prefix@&$ac_top_build_prefix&;t t
631ef239
AC
11097s&@srcdir@&$ac_srcdir&;t t
11098s&@abs_srcdir@&$ac_abs_srcdir&;t t
11099s&@top_srcdir@&$ac_top_srcdir&;t t
11100s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11101s&@builddir@&$ac_builddir&;t t
11102s&@abs_builddir@&$ac_abs_builddir&;t t
11103s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11104s&@INSTALL@&$ac_INSTALL&;t t
11105$ac_datarootdir_hack
7083c021 11106"
b6d0720c
AC
11107eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11108 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
11109
11110test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b6d0720c
AC
11111 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11112 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11113 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7083c021 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 11115which seems to be undefined. Please make sure it is defined" >&5
7083c021 11116$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 11117which seems to be undefined. Please make sure it is defined" >&2;}
631ef239 11118
b6d0720c 11119 rm -f "$ac_tmp/stdin"
212380e3 11120 case $ac_file in
b6d0720c
AC
11121 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11122 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7083c021 11123 esac \
b6d0720c 11124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
11125 ;;
11126 :H)
11127 #
11128 # CONFIG_HEADER
11129 #
212380e3 11130 if test x"$ac_file" != x-; then
7083c021
AC
11131 {
11132 $as_echo "/* $configure_input */" \
b6d0720c
AC
11133 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11134 } >"$ac_tmp/config.h" \
11135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11136 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7083c021
AC
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11138$as_echo "$as_me: $ac_file is unchanged" >&6;}
212380e3 11139 else
7083c021 11140 rm -f "$ac_file"
b6d0720c
AC
11141 mv "$ac_tmp/config.h" "$ac_file" \
11142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
212380e3
AC
11143 fi
11144 else
7083c021 11145 $as_echo "/* $configure_input */" \
b6d0720c
AC
11146 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11147 || as_fn_error $? "could not create -" "$LINENO" 5
212380e3 11148 fi
631ef239
AC
11149 ;;
11150
9f9b7042
NPB
11151 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11152$as_echo "$as_me: executing $ac_file commands" >&6;}
11153 ;;
631ef239
AC
11154 esac
11155
9f9b7042
NPB
11156
11157 case $ac_file$ac_mode in
2eff3833 11158 "tools/genssl_chmod":C) chmod 755 tools/genssl ;;
9f9b7042
NPB
11159
11160 esac
631ef239 11161done # for ac_tag
212380e3 11162
212380e3 11163
7083c021 11164as_fn_exit 0
212380e3 11165_ACEOF
212380e3
AC
11166ac_clean_files=$ac_clean_files_save
11167
7083c021 11168test $ac_write_fail = 0 ||
b6d0720c 11169 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7083c021 11170
212380e3
AC
11171
11172# configure is writing to config.log, and then calls config.status.
11173# config.status does its own redirection, appending to config.log.
11174# Unfortunately, on DOS this fails, as config.log is still kept open
11175# by configure, so config.status won't be able to write to it; its
11176# output is simply discarded. So we exec the FD to /dev/null,
11177# effectively closing config.log, so it can be properly (re)opened and
11178# appended to by config.status. When coming back to configure, we
11179# need to make the FD available again.
11180if test "$no_create" != yes; then
11181 ac_cs_success=:
11182 ac_config_status_args=
11183 test "$silent" = yes &&
11184 ac_config_status_args="$ac_config_status_args --quiet"
11185 exec 5>/dev/null
11186 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11187 exec 5>>config.log
11188 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11189 # would make configure fail if this is the last instruction.
b6d0720c 11190 $ac_cs_success || as_fn_exit 1
212380e3 11191fi
1db8e007
JT
11192
11193#
11194# CONFIG_SUBDIRS section.
11195#
11196if test "$no_recursion" != yes; then
11197
11198 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
11199 # so they do not pile up.
11200 ac_sub_configure_args=
11201 ac_prev=
11202 eval "set x $ac_configure_args"
11203 shift
11204 for ac_arg
11205 do
11206 if test -n "$ac_prev"; then
11207 ac_prev=
11208 continue
11209 fi
11210 case $ac_arg in
11211 -cache-file | --cache-file | --cache-fil | --cache-fi \
11212 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11213 ac_prev=cache_file ;;
11214 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11215 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11216 | --c=*)
11217 ;;
11218 --config-cache | -C)
11219 ;;
11220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11221 ac_prev=srcdir ;;
11222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11223 ;;
11224 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11225 ac_prev=prefix ;;
11226 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11227 ;;
11228 --disable-option-checking)
11229 ;;
11230 *)
11231 case $ac_arg in
11232 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11233 esac
11234 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
11235 esac
11236 done
11237
11238 # Always prepend --prefix to ensure using the same prefix
11239 # in subdir configurations.
11240 ac_arg="--prefix=$prefix"
11241 case $ac_arg in
11242 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11243 esac
11244 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
11245
11246 # Pass --silent
11247 if test "$silent" = yes; then
11248 ac_sub_configure_args="--silent $ac_sub_configure_args"
11249 fi
11250
11251 # Always prepend --disable-option-checking to silence warnings, since
11252 # different subdirs can have different --enable and --with options.
11253 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11254
11255 ac_popdir=`pwd`
11256 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11257
11258 # Do not complain, so a configure script can configure whichever
11259 # parts of a large source tree are present.
11260 test -d "$srcdir/$ac_dir" || continue
11261
11262 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11264 $as_echo "$ac_msg" >&6
11265 as_dir="$ac_dir"; as_fn_mkdir_p
11266 ac_builddir=.
11267
11268case "$ac_dir" in
11269.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11270*)
11271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11272 # A ".." for each directory in $ac_dir_suffix.
11273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11274 case $ac_top_builddir_sub in
11275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11277 esac ;;
11278esac
11279ac_abs_top_builddir=$ac_pwd
11280ac_abs_builddir=$ac_pwd$ac_dir_suffix
11281# for backward compatibility:
11282ac_top_builddir=$ac_top_build_prefix
11283
11284case $srcdir in
11285 .) # We are building in place.
11286 ac_srcdir=.
11287 ac_top_srcdir=$ac_top_builddir_sub
11288 ac_abs_top_srcdir=$ac_pwd ;;
11289 [\\/]* | ?:[\\/]* ) # Absolute name.
11290 ac_srcdir=$srcdir$ac_dir_suffix;
11291 ac_top_srcdir=$srcdir
11292 ac_abs_top_srcdir=$srcdir ;;
11293 *) # Relative name.
11294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11295 ac_top_srcdir=$ac_top_build_prefix$srcdir
11296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11297esac
11298ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11299
11300
11301 cd "$ac_dir"
11302
11303 # Check for guested configure; otherwise get Cygnus style configure.
11304 if test -f "$ac_srcdir/configure.gnu"; then
11305 ac_sub_configure=$ac_srcdir/configure.gnu
11306 elif test -f "$ac_srcdir/configure"; then
11307 ac_sub_configure=$ac_srcdir/configure
11308 elif test -f "$ac_srcdir/configure.in"; then
11309 # This should be Cygnus configure.
11310 ac_sub_configure=$ac_aux_dir/configure
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11313$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11314 ac_sub_configure=
11315 fi
11316
11317 # The recursion is here.
11318 if test -n "$ac_sub_configure"; then
11319 # Make the cache file name correct relative to the subdirectory.
11320 case $cache_file in
11321 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11322 *) # Relative name.
11323 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11324 esac
11325
11326 { $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
11327$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11328 # The eval makes quoting arguments work.
11329 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11330 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11331 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11332 fi
11333
11334 cd "$ac_popdir"
11335 done
11336fi
7083c021
AC
11337if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11339$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11340fi
b676ea3b 11341
212380e3
AC
11342
11343if test "$cf_openssl_version_ok" = yes; then
11344 openssl="yes"
11345else
11346 openssl="no"
11347fi
11348
11349if test "$shared_modules" = yes; then
11350 modules=shared
11351else
11352 modules=static
11353fi
11354
11355echo "
b6d0720c 11356Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
212380e3
AC
11357 Install directory : $prefix
11358
11359 Ziplinks : $zlib
11360 OpenSSL : $openssl
212380e3
AC
11361 Socket Engine : $SELECT_TYPE
11362 Small network : $small_net
11363 Block allocator : $balloc
212380e3
AC
11364
11365 Nickname length : $NICKLEN
11366 Topic length : $TOPICLEN
11367
b6d0720c 11368Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.
212380e3 11369"