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