]> jfr.im git - irc/rqf/shadowircd.git/blame - configure
run autoconf, autoheader and make depend
[irc/rqf/shadowircd.git] / configure
CommitLineData
212380e3 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
b5135efc 3# Generated by GNU Autoconf 2.68 for shadowircd 6.3.2.
212380e3 4#
56efe974 5# $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 6#
1800d973 7#
631ef239 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
b540af17
JH
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
1800d973 11#
042acc47 12#
212380e3 13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
042acc47
WP
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
212380e3 18
631ef239 19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
042acc47 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3 22 emulate sh
23 NULLCMD=:
042acc47 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3 25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
631ef239 27 setopt NO_GLOB_SUBST
28else
042acc47
WP
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
631ef239 34esac
631ef239 35fi
36
37
042acc47
WP
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
631ef239 58 else
042acc47
WP
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 71 fi
042acc47
WP
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
212380e3 74fi
212380e3 75
042acc47
WP
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
212380e3 83fi
84
85
631ef239 86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
631ef239 91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
b540af17 94as_myself=
042acc47 95case $0 in #((
631ef239 96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
042acc47
WP
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
631ef239 104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
042acc47
WP
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
631ef239 116fi
117
042acc47
WP
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 125done
212380e3 126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
042acc47
WP
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212380e3 189do
042acc47
WP
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
b540af17 220 # Preserve -v and -x to the replacement shell.
042acc47
WP
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
b540af17
JH
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
042acc47
WP
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
212380e3 240 else
042acc47
WP
241 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
242$0: including any error possibly output before this
243$0: message. Then install a modern shell, or manually run
244$0: the script under such a shell if you do have one."
212380e3 245 fi
042acc47
WP
246 exit 1
247fi
248fi
249fi
250SHELL=${CONFIG_SHELL-/bin/sh}
251export SHELL
252# Unset more variables known to interfere with behavior of common tools.
253CLICOLOR_FORCE= GREP_OPTIONS=
254unset CLICOLOR_FORCE GREP_OPTIONS
255
256## --------------------- ##
257## M4sh Shell Functions. ##
258## --------------------- ##
259# as_fn_unset VAR
260# ---------------
261# Portably unset VAR.
262as_fn_unset ()
263{
264 { eval $1=; unset $1;}
265}
266as_unset=as_fn_unset
267
268# as_fn_set_status STATUS
269# -----------------------
270# Set $? to STATUS, without forking.
271as_fn_set_status ()
272{
273 return $1
274} # as_fn_set_status
275
276# as_fn_exit STATUS
277# -----------------
278# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279as_fn_exit ()
280{
281 set +e
282 as_fn_set_status $1
283 exit $1
284} # as_fn_exit
285
286# as_fn_mkdir_p
287# -------------
288# Create "$as_dir" as a directory, including parents if necessary.
289as_fn_mkdir_p ()
290{
291
292 case $as_dir in #(
293 -*) as_dir=./$as_dir;;
294 esac
295 test -d "$as_dir" || eval $as_mkdir_p || {
296 as_dirs=
297 while :; do
298 case $as_dir in #(
299 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 *) as_qdir=$as_dir;;
301 esac
302 as_dirs="'$as_qdir' $as_dirs"
303 as_dir=`$as_dirname -- "$as_dir" ||
304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308$as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)[^/].*/{
314 s//\1/
315 q
316 }
317 /^X\(\/\/\)$/{
318 s//\1/
319 q
320 }
321 /^X\(\/\).*/{
322 s//\1/
323 q
324 }
325 s/.*/./; q'`
326 test -d "$as_dir" && break
327 done
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
b540af17 329 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
042acc47
WP
330
331
332} # as_fn_mkdir_p
333# as_fn_append VAR VALUE
334# ----------------------
335# Append the text in VALUE to the end of the definition contained in VAR. Take
336# advantage of any shell optimizations that allow amortized linear growth over
337# repeated appends, instead of the typical quadratic growth present in naive
338# implementations.
339if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
340 eval 'as_fn_append ()
341 {
342 eval $1+=\$2
343 }'
344else
345 as_fn_append ()
346 {
347 eval $1=\$$1\$2
348 }
349fi # as_fn_append
350
351# as_fn_arith ARG...
352# ------------------
353# Perform arithmetic evaluation on the ARGs, and store the result in the
354# global $as_val. Take advantage of shells that can avoid forks. The arguments
355# must be portable across $(()) and expr.
356if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 eval 'as_fn_arith ()
358 {
359 as_val=$(( $* ))
360 }'
361else
362 as_fn_arith ()
363 {
364 as_val=`expr "$@" || test $? -eq 1`
365 }
366fi # as_fn_arith
367
368
b540af17
JH
369# as_fn_error STATUS ERROR [LINENO LOG_FD]
370# ----------------------------------------
042acc47
WP
371# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b540af17 373# script with STATUS, using 1 if that was 0.
042acc47
WP
374as_fn_error ()
375{
b540af17
JH
376 as_status=$1; test $as_status -eq 0 && as_status=1
377 if test "$4"; then
378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
042acc47 380 fi
b540af17 381 $as_echo "$as_me: error: $2" >&2
042acc47
WP
382 as_fn_exit $as_status
383} # as_fn_error
212380e3 384
631ef239 385if expr a : '\(a\)' >/dev/null 2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3 387 as_expr=expr
388else
389 as_expr=false
390fi
391
631ef239 392if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3 393 as_basename=basename
394else
395 as_basename=false
396fi
397
042acc47
WP
398if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_dirname=dirname
400else
401 as_dirname=false
402fi
212380e3 403
631ef239 404as_me=`$as_basename -- "$0" ||
212380e3 405$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
631ef239 407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
042acc47 408$as_echo X/"$0" |
631ef239 409 sed '/^.*\/\([^/][^/]*\)\/*$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\/\)$/{
414 s//\1/
415 q
416 }
417 /^X\/\(\/\).*/{
418 s//\1/
419 q
420 }
421 s/.*/./; q'`
212380e3 422
042acc47
WP
423# Avoid depending upon Character Ranges.
424as_cr_letters='abcdefghijklmnopqrstuvwxyz'
425as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426as_cr_Letters=$as_cr_letters$as_cr_LETTERS
427as_cr_digits='0123456789'
428as_cr_alnum=$as_cr_Letters$as_cr_digits
212380e3 429
212380e3 430
042acc47
WP
431 as_lineno_1=$LINENO as_lineno_1a=$LINENO
432 as_lineno_2=$LINENO as_lineno_2a=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
212380e3 453
042acc47
WP
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
631ef239 460}
212380e3 461
042acc47
WP
462ECHO_C= ECHO_N= ECHO_T=
463case `echo -n x` in #(((((
464-n*)
465 case `echo 'xy\c'` in
466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
467 xy) ECHO_C='\c';;
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 ECHO_T=' ';;
470 esac;;
471*)
472 ECHO_N='-n';;
473esac
631ef239 474
042acc47
WP
475rm -f conf$$ conf$$.exe conf$$.file
476if test -d conf$$.dir; then
477 rm -f conf$$.dir/conf$$.file
478else
479 rm -f conf$$.dir
480 mkdir conf$$.dir 2>/dev/null
481fi
482if (echo >conf$$.file) 2>/dev/null; then
483 if ln -s conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s='ln -s'
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
490 as_ln_s='cp -p'
491 elif ln conf$$.file conf$$ 2>/dev/null; then
492 as_ln_s=ln
493 else
494 as_ln_s='cp -p'
495 fi
631ef239 496else
042acc47 497 as_ln_s='cp -p'
631ef239 498fi
042acc47
WP
499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
500rmdir conf$$.dir 2>/dev/null
631ef239 501
042acc47
WP
502if mkdir -p . 2>/dev/null; then
503 as_mkdir_p='mkdir -p "$as_dir"'
504else
505 test -d ./-p && rmdir ./-p
506 as_mkdir_p=false
631ef239 507fi
508
042acc47
WP
509if test -x / >/dev/null 2>&1; then
510 as_test_x='test -x'
631ef239 511else
042acc47
WP
512 if ls -dL / >/dev/null 2>&1; then
513 as_ls_L_option=L
514 else
515 as_ls_L_option=
516 fi
517 as_test_x='
518 eval sh -c '\''
519 if test -d "$1"; then
520 test -d "$1/.";
521 else
522 case $1 in #(
523 -*)set "./$1";;
524 esac;
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
527 '\'' sh
528 '
631ef239 529fi
042acc47 530as_executable_p=$as_test_x
631ef239 531
042acc47
WP
532# Sed expression to map a string onto a valid CPP name.
533as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
631ef239 534
042acc47
WP
535# Sed expression to map a string onto a valid variable name.
536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
631ef239 537
538
1800d973
WP
539test -n "$DJDIR" || exec 7<&0 </dev/null
540exec 6>&1
631ef239 541
042acc47 542# Name of the host.
b540af17 543# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
042acc47
WP
544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
631ef239 546
042acc47
WP
547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
551ac_clean_files=
552ac_config_libobj_dir=.
553LIBOBJS=
554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
212380e3 558
212380e3 559# Identity of this package.
867dcc9f
JH
560PACKAGE_NAME='shadowircd'
561PACKAGE_TARNAME='shadowircd'
b5135efc
JH
562PACKAGE_VERSION='6.3.2'
563PACKAGE_STRING='shadowircd 6.3.2'
212380e3 564PACKAGE_BUGREPORT=''
042acc47 565PACKAGE_URL=''
212380e3 566
567ac_default_prefix=$HOME/ircd
568# Factoring default headers for most tests.
569ac_includes_default="\
570#include <stdio.h>
631ef239 571#ifdef HAVE_SYS_TYPES_H
212380e3 572# include <sys/types.h>
573#endif
631ef239 574#ifdef HAVE_SYS_STAT_H
212380e3 575# include <sys/stat.h>
576#endif
631ef239 577#ifdef STDC_HEADERS
212380e3 578# include <stdlib.h>
579# include <stddef.h>
580#else
631ef239 581# ifdef HAVE_STDLIB_H
212380e3 582# include <stdlib.h>
583# endif
584#endif
631ef239 585#ifdef HAVE_STRING_H
586# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
212380e3 587# include <memory.h>
588# endif
589# include <string.h>
590#endif
631ef239 591#ifdef HAVE_STRINGS_H
212380e3 592# include <strings.h>
593#endif
631ef239 594#ifdef HAVE_INTTYPES_H
212380e3 595# include <inttypes.h>
212380e3 596#endif
631ef239 597#ifdef HAVE_STDINT_H
598# include <stdint.h>
599#endif
600#ifdef HAVE_UNISTD_H
212380e3 601# include <unistd.h>
602#endif"
603
042acc47
WP
604enable_option_checking=no
605ac_subst_vars='LTLIBOBJS
631ef239 606LIBOBJS
042acc47
WP
607SEDOBJ
608IRC_CFLAGS
609PICFLAGS
610SSL_LIBS
611SSL_INCLUDES
612SSL_SRCS_ENABLE
613MOD_TARGET
614MODULES_LIBS
615SELECT_TYPE
bf9bfd26
JH
616PROGRAM_PREFIX
617PKGRUNDIR
042acc47
WP
618moduledir
619MODULE_DIR
620helpdir
621HELP_DIR
622logdir
623LOG_DIR
624confdir
625ETC_DIR
626ZLIB_LD
627ENCSPEED
628ALLOCA
629VICONF
630CRYPT_LIB
bf9bfd26
JH
631PKGLIBEXECDIR
632pkglibexecdir
633PKGLOCALSTATEDIR
634pkglocalstatedir
635pkgrundir
636rundir
637pkglibdir
042acc47
WP
638LEXLIB
639LEX_OUTPUT_ROOT
640LEX
641YFLAGS
642YACC
643TOUCH
644RANLIB
645LD
646AR
647SED
648LN
649MV
650CP
651RM
652INSTALL_DATA
653INSTALL_SCRIPT
654INSTALL_PROGRAM
655SET_MAKE
656STDOUT
657MAKEDEPEND
658MKDEP
659subdirs
660EGREP
661GREP
662CPP
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670target_alias
671host_alias
672build_alias
673LIBS
674ECHO_T
675ECHO_N
676ECHO_C
677DEFS
678mandir
679localedir
680libdir
681psdir
682pdfdir
683dvidir
684htmldir
685infodir
686docdir
687oldincludedir
688includedir
689localstatedir
690sharedstatedir
691sysconfdir
692datadir
693datarootdir
694libexecdir
695sbindir
696bindir
697program_transform_name
698prefix
699exec_prefix
700PACKAGE_URL
701PACKAGE_BUGREPORT
702PACKAGE_STRING
703PACKAGE_VERSION
704PACKAGE_TARNAME
705PACKAGE_NAME
706PATH_SEPARATOR
707SHELL'
212380e3 708ac_subst_files=''
042acc47
WP
709ac_user_opts='
710enable_option_checking
bf9bfd26 711enable_fhs_paths
042acc47
WP
712enable_ipv6
713enable_openssl
714with_zlib_path
715enable_zlib
716enable_ports
717enable_poll
718enable_select
719enable_kqueue
720enable_epoll
721with_confdir
722with_logdir
723with_helpdir
724with_moduledir
bf9bfd26
JH
725with_rundir
726with_program_prefix
042acc47
WP
727enable_assert
728enable_iodebug
729enable_profile
730enable_balloc
731enable_small_net
732with_nicklen
733with_topiclen
734enable_warnings
735'
631ef239 736 ac_precious_vars='build_alias
737host_alias
738target_alias
739CC
740CFLAGS
741LDFLAGS
742LIBS
743CPPFLAGS
744CPP
745YACC
746YFLAGS'
56efe974 747ac_subdirs_all='libratbox'
212380e3 748
749# Initialize some variables set by options.
750ac_init_help=
751ac_init_version=false
042acc47
WP
752ac_unrecognized_opts=
753ac_unrecognized_sep=
212380e3 754# The variables have the same names as the options, with
755# dashes changed to underlines.
756cache_file=/dev/null
757exec_prefix=NONE
758no_create=
759no_recursion=
760prefix=NONE
761program_prefix=NONE
762program_suffix=NONE
763program_transform_name=s,x,x,
764silent=
765site=
766srcdir=
767verbose=
768x_includes=NONE
769x_libraries=NONE
770
771# Installation directory options.
772# These are left unexpanded so users can "make install exec_prefix=/foo"
773# and all the variables that are supposed to be based on exec_prefix
774# by default will actually change.
775# Use braces instead of parens because sh, perl, etc. also accept them.
631ef239 776# (The list follows the same order as the GNU Coding Standards.)
212380e3 777bindir='${exec_prefix}/bin'
778sbindir='${exec_prefix}/sbin'
779libexecdir='${exec_prefix}/libexec'
631ef239 780datarootdir='${prefix}/share'
781datadir='${datarootdir}'
212380e3 782sysconfdir='${prefix}/etc'
783sharedstatedir='${prefix}/com'
784localstatedir='${prefix}/var'
212380e3 785includedir='${prefix}/include'
786oldincludedir='/usr/include'
631ef239 787docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788infodir='${datarootdir}/info'
789htmldir='${docdir}'
790dvidir='${docdir}'
791pdfdir='${docdir}'
792psdir='${docdir}'
793libdir='${exec_prefix}/lib'
794localedir='${datarootdir}/locale'
795mandir='${datarootdir}/man'
212380e3 796
797ac_prev=
631ef239 798ac_dashdash=
212380e3 799for ac_option
800do
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
631ef239 803 eval $ac_prev=\$ac_option
212380e3 804 ac_prev=
805 continue
806 fi
807
631ef239 808 case $ac_option in
b540af17
JH
809 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *=) ac_optarg= ;;
811 *) ac_optarg=yes ;;
631ef239 812 esac
212380e3 813
814 # Accept the important Cygnus configure options, so we can diagnose typos.
815
631ef239 816 case $ac_dashdash$ac_option in
817 --)
818 ac_dashdash=yes ;;
212380e3 819
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
824
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
829
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
836
837 --config-cache | -C)
838 cache_file=config.cache ;;
839
631ef239 840 -datadir | --datadir | --datadi | --datad)
212380e3 841 ac_prev=datadir ;;
631ef239 842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
212380e3 843 datadir=$ac_optarg ;;
844
631ef239 845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
851
212380e3 852 -disable-* | --disable-*)
042acc47 853 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
212380e3 854 # Reject names that are not valid shell variable names.
042acc47 855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b540af17 856 as_fn_error $? "invalid feature name: $ac_useropt"
042acc47
WP
857 ac_useropt_orig=$ac_useropt
858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
860 *"
861"enable_$ac_useropt"
862"*) ;;
863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864 ac_unrecognized_sep=', ';;
865 esac
866 eval enable_$ac_useropt=no ;;
631ef239 867
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
872
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
212380e3 877
878 -enable-* | --enable-*)
042acc47 879 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
212380e3 880 # Reject names that are not valid shell variable names.
042acc47 881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b540af17 882 as_fn_error $? "invalid feature name: $ac_useropt"
042acc47
WP
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
886 *"
887"enable_$ac_useropt"
888"*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=\$ac_optarg ;;
212380e3 893
894 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896 | --exec | --exe | --ex)
897 ac_prev=exec_prefix ;;
898 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900 | --exec=* | --exe=* | --ex=*)
901 exec_prefix=$ac_optarg ;;
902
903 -gas | --gas | --ga | --g)
904 # Obsolete; use --with-gas.
905 with_gas=yes ;;
906
907 -help | --help | --hel | --he | -h)
908 ac_init_help=long ;;
909 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910 ac_init_help=recursive ;;
911 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912 ac_init_help=short ;;
913
914 -host | --host | --hos | --ho)
915 ac_prev=host_alias ;;
916 -host=* | --host=* | --hos=* | --ho=*)
917 host_alias=$ac_optarg ;;
918
631ef239 919 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920 ac_prev=htmldir ;;
921 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922 | --ht=*)
923 htmldir=$ac_optarg ;;
924
212380e3 925 -includedir | --includedir | --includedi | --included | --include \
926 | --includ | --inclu | --incl | --inc)
927 ac_prev=includedir ;;
928 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929 | --includ=* | --inclu=* | --incl=* | --inc=*)
930 includedir=$ac_optarg ;;
931
932 -infodir | --infodir | --infodi | --infod | --info | --inf)
933 ac_prev=infodir ;;
934 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935 infodir=$ac_optarg ;;
936
937 -libdir | --libdir | --libdi | --libd)
938 ac_prev=libdir ;;
939 -libdir=* | --libdir=* | --libdi=* | --libd=*)
940 libdir=$ac_optarg ;;
941
942 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943 | --libexe | --libex | --libe)
944 ac_prev=libexecdir ;;
945 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946 | --libexe=* | --libex=* | --libe=*)
947 libexecdir=$ac_optarg ;;
948
631ef239 949 -localedir | --localedir | --localedi | --localed | --locale)
950 ac_prev=localedir ;;
951 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952 localedir=$ac_optarg ;;
953
212380e3 954 -localstatedir | --localstatedir | --localstatedi | --localstated \
631ef239 955 | --localstate | --localstat | --localsta | --localst | --locals)
212380e3 956 ac_prev=localstatedir ;;
957 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631ef239 958 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
212380e3 959 localstatedir=$ac_optarg ;;
960
961 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962 ac_prev=mandir ;;
963 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964 mandir=$ac_optarg ;;
965
966 -nfp | --nfp | --nf)
967 # Obsolete; use --without-fp.
968 with_fp=no ;;
969
970 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971 | --no-cr | --no-c | -n)
972 no_create=yes ;;
973
974 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976 no_recursion=yes ;;
977
978 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980 | --oldin | --oldi | --old | --ol | --o)
981 ac_prev=oldincludedir ;;
982 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985 oldincludedir=$ac_optarg ;;
986
987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988 ac_prev=prefix ;;
989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990 prefix=$ac_optarg ;;
991
992 -program-prefix | --program-prefix | --program-prefi | --program-pref \
993 | --program-pre | --program-pr | --program-p)
994 ac_prev=program_prefix ;;
995 -program-prefix=* | --program-prefix=* | --program-prefi=* \
996 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997 program_prefix=$ac_optarg ;;
998
999 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000 | --program-suf | --program-su | --program-s)
1001 ac_prev=program_suffix ;;
1002 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004 program_suffix=$ac_optarg ;;
1005
1006 -program-transform-name | --program-transform-name \
1007 | --program-transform-nam | --program-transform-na \
1008 | --program-transform-n | --program-transform- \
1009 | --program-transform | --program-transfor \
1010 | --program-transfo | --program-transf \
1011 | --program-trans | --program-tran \
1012 | --progr-tra | --program-tr | --program-t)
1013 ac_prev=program_transform_name ;;
1014 -program-transform-name=* | --program-transform-name=* \
1015 | --program-transform-nam=* | --program-transform-na=* \
1016 | --program-transform-n=* | --program-transform-=* \
1017 | --program-transform=* | --program-transfor=* \
1018 | --program-transfo=* | --program-transf=* \
1019 | --program-trans=* | --program-tran=* \
1020 | --progr-tra=* | --program-tr=* | --program-t=*)
1021 program_transform_name=$ac_optarg ;;
1022
631ef239 1023 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024 ac_prev=pdfdir ;;
1025 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026 pdfdir=$ac_optarg ;;
1027
1028 -psdir | --psdir | --psdi | --psd | --ps)
1029 ac_prev=psdir ;;
1030 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031 psdir=$ac_optarg ;;
1032
212380e3 1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1035 silent=yes ;;
1036
1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038 ac_prev=sbindir ;;
1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040 | --sbi=* | --sb=*)
1041 sbindir=$ac_optarg ;;
1042
1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045 | --sharedst | --shareds | --shared | --share | --shar \
1046 | --sha | --sh)
1047 ac_prev=sharedstatedir ;;
1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051 | --sha=* | --sh=*)
1052 sharedstatedir=$ac_optarg ;;
1053
1054 -site | --site | --sit)
1055 ac_prev=site ;;
1056 -site=* | --site=* | --sit=*)
1057 site=$ac_optarg ;;
1058
1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060 ac_prev=srcdir ;;
1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062 srcdir=$ac_optarg ;;
1063
1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065 | --syscon | --sysco | --sysc | --sys | --sy)
1066 ac_prev=sysconfdir ;;
1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069 sysconfdir=$ac_optarg ;;
1070
1071 -target | --target | --targe | --targ | --tar | --ta | --t)
1072 ac_prev=target_alias ;;
1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074 target_alias=$ac_optarg ;;
1075
1076 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077 verbose=yes ;;
1078
1079 -version | --version | --versio | --versi | --vers | -V)
1080 ac_init_version=: ;;
1081
1082 -with-* | --with-*)
042acc47 1083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
212380e3 1084 # Reject names that are not valid shell variable names.
042acc47 1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b540af17 1086 as_fn_error $? "invalid package name: $ac_useropt"
042acc47
WP
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1090 *"
1091"with_$ac_useropt"
1092"*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval with_$ac_useropt=\$ac_optarg ;;
212380e3 1097
1098 -without-* | --without-*)
042acc47 1099 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
212380e3 1100 # Reject names that are not valid shell variable names.
042acc47 1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b540af17 1102 as_fn_error $? "invalid package name: $ac_useropt"
042acc47
WP
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107"with_$ac_useropt"
1108"*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=no ;;
212380e3 1113
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1117
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1124
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1131
b540af17
JH
1132 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1133Try \`$0 --help' for more information"
212380e3 1134 ;;
1135
1136 *=*)
1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
042acc47
WP
1139 case $ac_envvar in #(
1140 '' | [0-9]* | *[!_$as_cr_alnum]* )
b540af17 1141 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
042acc47 1142 esac
631ef239 1143 eval $ac_envvar=\$ac_optarg
212380e3 1144 export $ac_envvar ;;
1145
1146 *)
1147 # FIXME: should be removed in autoconf 3.0.
042acc47 1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
212380e3 1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
042acc47 1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b540af17 1151 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
212380e3 1152 ;;
1153
1154 esac
1155done
1156
1157if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b540af17 1159 as_fn_error $? "missing argument to $ac_option"
212380e3 1160fi
1161
042acc47
WP
1162if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1164 no) ;;
b540af17 1165 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
042acc47
WP
1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167 esac
1168fi
1169
1170# Check all directory arguments for consistency.
631ef239 1171for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir
212380e3 1175do
631ef239 1176 eval ac_val=\$$ac_var
042acc47
WP
1177 # Remove trailing slashes.
1178 case $ac_val in
1179 */ )
1180 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181 eval $ac_var=\$ac_val;;
1182 esac
1183 # Be sure to have absolute directory names.
212380e3 1184 case $ac_val in
631ef239 1185 [\\/$]* | ?:[\\/]* ) continue;;
1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
212380e3 1187 esac
b540af17 1188 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
212380e3 1189done
1190
1191# There might be people who depend on the old broken behavior: `$host'
1192# used to hold the argument of --host etc.
1193# FIXME: To remove some day.
1194build=$build_alias
1195host=$host_alias
1196target=$target_alias
1197
1198# FIXME: To remove some day.
1199if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
b540af17
JH
1202 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1203 If a cross compiler is detected then cross compile mode will be used" >&2
212380e3 1204 elif test "x$build_alias" != "x$host_alias"; then
1205 cross_compiling=yes
1206 fi
1207fi
1208
1209ac_tool_prefix=
1210test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211
1212test "$silent" = yes && exec 6>/dev/null
1213
1214
631ef239 1215ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216ac_ls_di=`ls -di .` &&
1217ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b540af17 1218 as_fn_error $? "working directory cannot be determined"
631ef239 1219test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b540af17 1220 as_fn_error $? "pwd does not report name of working directory"
631ef239 1221
1222
1223# Find the source files, if location was not specified.
1224if test -z "$srcdir"; then
212380e3 1225 ac_srcdir_defaulted=yes
631ef239 1226 # Try the directory containing this script, then the parent directory.
042acc47
WP
1227 ac_confdir=`$as_dirname -- "$as_myself" ||
1228$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$as_myself" : 'X\(//\)[^/]' \| \
1230 X"$as_myself" : 'X\(//\)$' \| \
1231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232$as_echo X"$as_myself" |
631ef239 1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234 s//\1/
1235 q
1236 }
1237 /^X\(\/\/\)[^/].*/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)$/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\).*/{
1246 s//\1/
1247 q
1248 }
1249 s/.*/./; q'`
212380e3 1250 srcdir=$ac_confdir
631ef239 1251 if test ! -r "$srcdir/$ac_unique_file"; then
212380e3 1252 srcdir=..
1253 fi
1254else
1255 ac_srcdir_defaulted=no
1256fi
631ef239 1257if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b540af17 1259 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
212380e3 1260fi
631ef239 1261ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262ac_abs_confdir=`(
b540af17 1263 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
631ef239 1264 pwd)`
1265# When building in place, set srcdir=.
1266if test "$ac_abs_confdir" = "$ac_pwd"; then
1267 srcdir=.
1268fi
1269# Remove unnecessary trailing slashes from srcdir.
1270# Double slashes in file names in object file debugging info
1271# mess up M-x gdb in Emacs.
1272case $srcdir in
1273*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274esac
1275for ac_var in $ac_precious_vars; do
1276 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_env_${ac_var}_value=\$${ac_var}
1278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280done
212380e3 1281
1282#
1283# Report the --help message.
1284#
1285if test "$ac_init_help" = "long"; then
1286 # Omit some internal or obsolete options to make the list less imposing.
1287 # This message is too long to be a string in the A/UX 3.1 sh.
1288 cat <<_ACEOF
b5135efc 1289\`configure' configures shadowircd 6.3.2 to adapt to many kinds of systems.
212380e3 1290
1291Usage: $0 [OPTION]... [VAR=VALUE]...
1292
1293To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294VAR=VALUE. See below for descriptions of some of the useful variables.
1295
1296Defaults for the options are specified in brackets.
1297
1298Configuration:
1299 -h, --help display this help and exit
1300 --help=short display options specific to this package
1301 --help=recursive display the short help of all the included packages
1302 -V, --version display version information and exit
b540af17 1303 -q, --quiet, --silent do not print \`checking ...' messages
212380e3 1304 --cache-file=FILE cache test results in FILE [disabled]
1305 -C, --config-cache alias for \`--cache-file=config.cache'
1306 -n, --no-create do not create output files
1307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308
212380e3 1309Installation directories:
1310 --prefix=PREFIX install architecture-independent files in PREFIX
042acc47 1311 [$ac_default_prefix]
212380e3 1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
042acc47 1313 [PREFIX]
212380e3 1314
1315By default, \`make install' will install all the files in
1316\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1317an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318for instance \`--prefix=\$HOME'.
1319
1320For better control, use the options below.
1321
1322Fine tuning of the installation directories:
042acc47
WP
1323 --bindir=DIR user executables [EPREFIX/bin]
1324 --sbindir=DIR system admin executables [EPREFIX/sbin]
1325 --libexecdir=DIR program executables [EPREFIX/libexec]
1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1329 --libdir=DIR object code libraries [EPREFIX/lib]
1330 --includedir=DIR C header files [PREFIX/include]
1331 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334 --infodir=DIR info documentation [DATAROOTDIR/info]
1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336 --mandir=DIR man documentation [DATAROOTDIR/man]
867dcc9f 1337 --docdir=DIR documentation root [DATAROOTDIR/doc/shadowircd]
042acc47
WP
1338 --htmldir=DIR html documentation [DOCDIR]
1339 --dvidir=DIR dvi documentation [DOCDIR]
1340 --pdfdir=DIR pdf documentation [DOCDIR]
1341 --psdir=DIR ps documentation [DOCDIR]
212380e3 1342_ACEOF
1343
1344 cat <<\_ACEOF
1345_ACEOF
1346fi
1347
1348if test -n "$ac_init_help"; then
1349 case $ac_init_help in
b5135efc 1350 short | recursive ) echo "Configuration of shadowircd 6.3.2:";;
212380e3 1351 esac
1352 cat <<\_ACEOF
1353
1354Optional Features:
042acc47 1355 --disable-option-checking ignore unrecognized --enable/--with options
212380e3 1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
bf9bfd26 1358 --enable-fhs-paths User more FHS-like pathnames (for packagers).
212380e3 1359 --enable-ipv6 Enable IPv6 support
631ef239 1360 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
212380e3 1361 --disable-openssl Disable OpenSSL support.
1362 --disable-zlib Disable ziplinks support
c1c5fdc4 1363 --enable-ports Force solaris I/O ports subsystem usage.
212380e3 1364 --enable-poll Force poll() usage.
1365 --enable-select Force select() usage.
1366 --enable-kqueue Force kqueue() usage.
212380e3 1367 --enable-epoll Force sys_epoll usage (Linux only).
1368 --enable-assert Enable assert(). Choose between soft(warnings) and
1369 hard(aborts the daemon)
1370 --enable-iodebug Enable IO Debugging hooks
1371 --enable-profile Enable profiling
1372 --disable-balloc Disable the block allocator.
9960cc94 1373 --disable-small-net Disable small network support.
212380e3 1374 --enable-warnings Enable all sorts of warnings for debugging.
1375
1376Optional Packages:
1377 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1378 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1379 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1380 --with-confdir=DIR Directory to install config files.
1381 --with-logdir=DIR Directory where to write logfiles.
1382 --with-helpdir=DIR Directory to install help files.
1383 --with-moduledir=DIR Directory to install modules.
bf9bfd26
JH
1384 --with-rundir=DIR Directory in which to store pidfile.
1385 --with-program-prefix= If set, programs installed into PATH will be
1386 installed with names prefixed by this prefix.
6fbcf382 1387 --with-nicklen=LENGTH Set the nick length to LENGTH (default 31, max 50)
212380e3 1388 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1389 390)
212380e3 1390
1391Some influential environment variables:
1392 CC C compiler command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1395 nonstandard directory <lib dir>
631ef239 1396 LIBS libraries to pass to the linker, e.g. -l<library>
1800d973 1397 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
631ef239 1398 you have headers in a nonstandard directory <include dir>
212380e3 1399 CPP C preprocessor
b540af17
JH
1400 YACC The `Yet Another Compiler Compiler' implementation to use.
1401 Defaults to the first program found out of: `bison -y', `byacc',
1402 `yacc'.
631ef239 1403 YFLAGS The list of arguments that will be passed by default to $YACC.
1404 This script will default YFLAGS to the empty string to avoid a
1405 default value of `-d' given by some make applications.
212380e3 1406
1407Use these variables to override the choices made by `configure' or to help
1408it to find libraries and programs with nonstandard names/locations.
1409
042acc47 1410Report bugs to the package provider.
212380e3 1411_ACEOF
631ef239 1412ac_status=$?
212380e3 1413fi
1414
1415if test "$ac_init_help" = "recursive"; then
1416 # If there are subdirs, report their specific --help.
212380e3 1417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
042acc47
WP
1418 test -d "$ac_dir" ||
1419 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1420 continue
212380e3 1421 ac_builddir=.
1422
631ef239 1423case "$ac_dir" in
1424.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425*)
042acc47 1426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 1427 # A ".." for each directory in $ac_dir_suffix.
042acc47 1428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239 1429 case $ac_top_builddir_sub in
1430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1432 esac ;;
1433esac
1434ac_abs_top_builddir=$ac_pwd
1435ac_abs_builddir=$ac_pwd$ac_dir_suffix
1436# for backward compatibility:
1437ac_top_builddir=$ac_top_build_prefix
212380e3 1438
1439case $srcdir in
631ef239 1440 .) # We are building in place.
212380e3 1441 ac_srcdir=.
631ef239 1442 ac_top_srcdir=$ac_top_builddir_sub
1443 ac_abs_top_srcdir=$ac_pwd ;;
1444 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 1445 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239 1446 ac_top_srcdir=$srcdir
1447 ac_abs_top_srcdir=$srcdir ;;
1448 *) # Relative name.
1449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1450 ac_top_srcdir=$ac_top_build_prefix$srcdir
1451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 1452esac
631ef239 1453ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1454
1455 cd "$ac_dir" || { ac_status=$?; continue; }
1456 # Check for guested configure.
1457 if test -f "$ac_srcdir/configure.gnu"; then
1458 echo &&
1459 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1460 elif test -f "$ac_srcdir/configure"; then
1461 echo &&
1462 $SHELL "$ac_srcdir/configure" --help=recursive
212380e3 1463 else
042acc47 1464 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
631ef239 1465 fi || ac_status=$?
1466 cd "$ac_pwd" || { ac_status=$?; break; }
212380e3 1467 done
1468fi
1469
631ef239 1470test -n "$ac_init_help" && exit $ac_status
212380e3 1471if $ac_init_version; then
1472 cat <<\_ACEOF
b5135efc 1473shadowircd configure 6.3.2
b540af17 1474generated by GNU Autoconf 2.68
212380e3 1475
b540af17 1476Copyright (C) 2010 Free Software Foundation, Inc.
212380e3 1477This configure script is free software; the Free Software Foundation
1478gives unlimited permission to copy, distribute and modify it.
1479
56efe974 1480$Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 1481_ACEOF
631ef239 1482 exit
212380e3 1483fi
212380e3 1484
042acc47
WP
1485## ------------------------ ##
1486## Autoconf initialization. ##
1487## ------------------------ ##
212380e3 1488
042acc47
WP
1489# ac_fn_c_try_compile LINENO
1490# --------------------------
1491# Try to compile conftest.$ac_ext, and return whether this succeeded.
1492ac_fn_c_try_compile ()
1493{
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495 rm -f conftest.$ac_objext
1496 if { { ac_try="$ac_compile"
1497case "(($ac_try" in
1498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499 *) ac_try_echo=$ac_try;;
1500esac
1501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502$as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_compile") 2>conftest.err
1504 ac_status=$?
1505 if test -s conftest.err; then
1506 grep -v '^ *+' conftest.err >conftest.er1
1507 cat conftest.er1 >&5
1508 mv -f conftest.er1 conftest.err
1509 fi
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; } && {
1512 test -z "$ac_c_werror_flag" ||
1513 test ! -s conftest.err
1514 } && test -s conftest.$ac_objext; then :
1515 ac_retval=0
1516else
1517 $as_echo "$as_me: failed program was:" >&5
1518sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1519
042acc47
WP
1520 ac_retval=1
1521fi
b540af17 1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800d973 1523 as_fn_set_status $ac_retval
042acc47
WP
1524
1525} # ac_fn_c_try_compile
1526
1527# ac_fn_c_try_cpp LINENO
1528# ----------------------
1529# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1530ac_fn_c_try_cpp ()
212380e3 1531{
042acc47
WP
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 if { { ac_try="$ac_cpp conftest.$ac_ext"
1534case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537esac
1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539$as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b540af17 1548 test $ac_status = 0; } > conftest.i && {
042acc47
WP
1549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 }; then :
1552 ac_retval=0
1553else
1554 $as_echo "$as_me: failed program was:" >&5
1555sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1556
042acc47
WP
1557 ac_retval=1
1558fi
b540af17 1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800d973 1560 as_fn_set_status $ac_retval
212380e3 1561
042acc47 1562} # ac_fn_c_try_cpp
212380e3 1563
042acc47
WP
1564# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1565# -------------------------------------------------------
1566# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1567# the include files in INCLUDES and setting the cache variable VAR
1568# accordingly.
1569ac_fn_c_check_header_mongrel ()
1570{
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b540af17 1572 if eval \${$3+:} false; then :
042acc47
WP
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1574$as_echo_n "checking for $2... " >&6; }
b540af17 1575if eval \${$3+:} false; then :
042acc47
WP
1576 $as_echo_n "(cached) " >&6
1577fi
1578eval ac_res=\$$3
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1580$as_echo "$ac_res" >&6; }
1581else
1582 # Is the header compilable?
1583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1584$as_echo_n "checking $2 usability... " >&6; }
1585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1586/* end confdefs.h. */
1587$4
1588#include <$2>
1589_ACEOF
1590if ac_fn_c_try_compile "$LINENO"; then :
1591 ac_header_compiler=yes
1592else
1593 ac_header_compiler=no
1594fi
1595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1597$as_echo "$ac_header_compiler" >&6; }
212380e3 1598
042acc47
WP
1599# Is the header present?
1600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1601$as_echo_n "checking $2 presence... " >&6; }
1602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603/* end confdefs.h. */
1604#include <$2>
1605_ACEOF
1606if ac_fn_c_try_cpp "$LINENO"; then :
1607 ac_header_preproc=yes
1608else
1609 ac_header_preproc=no
1610fi
b540af17 1611rm -f conftest.err conftest.i conftest.$ac_ext
042acc47
WP
1612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1613$as_echo "$ac_header_preproc" >&6; }
212380e3 1614
042acc47
WP
1615# So? What about this header?
1616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1617 yes:no: )
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1619$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1621$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1622 ;;
1623 no:yes:* )
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1625$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1627$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1629$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1631$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1634 ;;
1635esac
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637$as_echo_n "checking for $2... " >&6; }
b540af17 1638if eval \${$3+:} false; then :
042acc47
WP
1639 $as_echo_n "(cached) " >&6
1640else
1641 eval "$3=\$ac_header_compiler"
1642fi
1643eval ac_res=\$$3
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645$as_echo "$ac_res" >&6; }
1646fi
b540af17 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1648
042acc47 1649} # ac_fn_c_check_header_mongrel
212380e3 1650
042acc47
WP
1651# ac_fn_c_try_run LINENO
1652# ----------------------
1653# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1654# that executables *can* be run.
1655ac_fn_c_try_run ()
1656{
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_link"
1659case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>&5
1666 ac_status=$?
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669 { { case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_try") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; }; }; then :
1679 ac_retval=0
1680else
1681 $as_echo "$as_me: program exited with status $ac_status" >&5
1682 $as_echo "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1684
042acc47
WP
1685 ac_retval=$ac_status
1686fi
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b540af17 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800d973 1689 as_fn_set_status $ac_retval
212380e3 1690
042acc47 1691} # ac_fn_c_try_run
212380e3 1692
042acc47
WP
1693# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694# -------------------------------------------------------
1695# Tests whether HEADER exists and can be compiled using the include files in
1696# INCLUDES, setting the cache variable VAR accordingly.
1697ac_fn_c_check_header_compile ()
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701$as_echo_n "checking for $2... " >&6; }
b540af17 1702if eval \${$3+:} false; then :
042acc47
WP
1703 $as_echo_n "(cached) " >&6
1704else
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h. */
1707$4
1708#include <$2>
212380e3 1709_ACEOF
042acc47
WP
1710if ac_fn_c_try_compile "$LINENO"; then :
1711 eval "$3=yes"
1712else
1713 eval "$3=no"
1714fi
1715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716fi
1717eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719$as_echo "$ac_res" >&6; }
b540af17 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1721
042acc47 1722} # ac_fn_c_check_header_compile
212380e3 1723
042acc47
WP
1724# ac_fn_c_try_link LINENO
1725# -----------------------
1726# Try to link conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_c_try_link ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext conftest$ac_exeext
1731 if { { ac_try="$ac_link"
1732case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest$ac_exeext && {
1750 test "$cross_compiling" = yes ||
1751 $as_test_x conftest$ac_exeext
1752 }; then :
1753 ac_retval=0
212380e3 1754else
042acc47
WP
1755 $as_echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1757
042acc47 1758 ac_retval=1
212380e3 1759fi
042acc47
WP
1760 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762 # interfere with the next link command; also delete a directory that is
1763 # left behind by Apple's compiler. We do this before executing the actions.
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b540af17 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800d973 1766 as_fn_set_status $ac_retval
212380e3 1767
042acc47 1768} # ac_fn_c_try_link
212380e3 1769
042acc47
WP
1770# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1771# -------------------------------------------
1772# Tests whether TYPE exists after having included INCLUDES, setting cache
1773# variable VAR accordingly.
1774ac_fn_c_check_type ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
b540af17 1779if eval \${$3+:} false; then :
042acc47 1780 $as_echo_n "(cached) " >&6
212380e3 1781else
042acc47
WP
1782 eval "$3=no"
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784/* end confdefs.h. */
1785$4
1786int
1787main ()
1788{
1789if (sizeof ($2))
1790 return 0;
1791 ;
1792 return 0;
1793}
212380e3 1794_ACEOF
042acc47
WP
1795if ac_fn_c_try_compile "$LINENO"; then :
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1797/* end confdefs.h. */
042acc47 1798$4
212380e3 1799int
1800main ()
1801{
042acc47
WP
1802if (sizeof (($2)))
1803 return 0;
212380e3 1804 ;
1805 return 0;
1806}
1807_ACEOF
042acc47 1808if ac_fn_c_try_compile "$LINENO"; then :
212380e3 1809
631ef239 1810else
042acc47 1811 eval "$3=yes"
212380e3 1812fi
042acc47 1813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 1814fi
042acc47 1815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 1816fi
042acc47
WP
1817eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819$as_echo "$ac_res" >&6; }
b540af17 1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1821
042acc47
WP
1822} # ac_fn_c_check_type
1823
1824# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1825# --------------------------------------------
1826# Tries to find the compile-time value of EXPR in a program that includes
1827# INCLUDES, setting VAR accordingly. Returns whether the value could be
1828# computed
1829ac_fn_c_compute_int ()
1830{
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 if test "$cross_compiling" = yes; then
1833 # Depending upon the size, compute the lo and hi bounds.
1834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h. */
1836$4
1837int
1838main ()
1839{
1840static int test_array [1 - 2 * !(($2) >= 0)];
1841test_array [0] = 0
1842
1843 ;
1844 return 0;
1845}
212380e3 1846_ACEOF
042acc47
WP
1847if ac_fn_c_try_compile "$LINENO"; then :
1848 ac_lo=0 ac_mid=0
1849 while :; do
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1851/* end confdefs.h. */
042acc47
WP
1852$4
1853int
1854main ()
1855{
1856static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1857test_array [0] = 0
212380e3 1858
042acc47
WP
1859 ;
1860 return 0;
1861}
212380e3 1862_ACEOF
042acc47
WP
1863if ac_fn_c_try_compile "$LINENO"; then :
1864 ac_hi=$ac_mid; break
212380e3 1865else
042acc47
WP
1866 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1867 if test $ac_lo -le $ac_mid; then
1868 ac_lo= ac_hi=
1869 break
1870 fi
1871 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
212380e3 1872fi
631ef239 1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
042acc47
WP
1874 done
1875else
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h. */
1878$4
1879int
1880main ()
1881{
1882static int test_array [1 - 2 * !(($2) < 0)];
1883test_array [0] = 0
212380e3 1884
042acc47
WP
1885 ;
1886 return 0;
1887}
212380e3 1888_ACEOF
042acc47
WP
1889if ac_fn_c_try_compile "$LINENO"; then :
1890 ac_hi=-1 ac_mid=-1
1891 while :; do
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h. */
1894$4
1895int
1896main ()
1897{
1898static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1899test_array [0] = 0
212380e3 1900
042acc47
WP
1901 ;
1902 return 0;
1903}
1904_ACEOF
1905if ac_fn_c_try_compile "$LINENO"; then :
1906 ac_lo=$ac_mid; break
1907else
1908 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1909 if test $ac_mid -le $ac_hi; then
1910 ac_lo= ac_hi=
1911 break
1912 fi
1913 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
212380e3 1914fi
042acc47
WP
1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 done
212380e3 1917else
042acc47
WP
1918 ac_lo= ac_hi=
1919fi
1920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921fi
1922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923# Binary search between lo and hi bounds.
1924while test "x$ac_lo" != "x$ac_hi"; do
1925 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1927/* end confdefs.h. */
042acc47
WP
1928$4
1929int
1930main ()
1931{
1932static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1933test_array [0] = 0
1934
1935 ;
1936 return 0;
1937}
212380e3 1938_ACEOF
042acc47
WP
1939if ac_fn_c_try_compile "$LINENO"; then :
1940 ac_hi=$ac_mid
212380e3 1941else
042acc47 1942 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
212380e3 1943fi
042acc47
WP
1944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945done
1946case $ac_lo in #((
1947?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1948'') ac_retval=1 ;;
1949esac
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953$4
1954static long int longval () { return $2; }
1955static unsigned long int ulongval () { return $2; }
1956#include <stdio.h>
1957#include <stdlib.h>
1958int
1959main ()
1960{
631ef239 1961
042acc47
WP
1962 FILE *f = fopen ("conftest.val", "w");
1963 if (! f)
1964 return 1;
1965 if (($2) < 0)
1966 {
1967 long int i = longval ();
1968 if (i != ($2))
1969 return 1;
1970 fprintf (f, "%ld", i);
1971 }
1972 else
1973 {
1974 unsigned long int i = ulongval ();
1975 if (i != ($2))
1976 return 1;
1977 fprintf (f, "%lu", i);
1978 }
1979 /* Do not output a trailing newline, as this causes \r\n confusion
1980 on some platforms. */
1981 return ferror (f) || fclose (f) != 0;
212380e3 1982
042acc47
WP
1983 ;
1984 return 0;
1985}
212380e3 1986_ACEOF
042acc47
WP
1987if ac_fn_c_try_run "$LINENO"; then :
1988 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
212380e3 1989else
042acc47 1990 ac_retval=1
212380e3 1991fi
042acc47
WP
1992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1993 conftest.$ac_objext conftest.beam conftest.$ac_ext
1994rm -f conftest.val
631ef239 1995
042acc47 1996 fi
b540af17 1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800d973 1998 as_fn_set_status $ac_retval
212380e3 1999
042acc47 2000} # ac_fn_c_compute_int
212380e3 2001
042acc47
WP
2002# ac_fn_c_check_func LINENO FUNC VAR
2003# ----------------------------------
2004# Tests whether FUNC exists, setting the cache variable VAR accordingly
2005ac_fn_c_check_func ()
2006{
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009$as_echo_n "checking for $2... " >&6; }
b540af17 2010if eval \${$3+:} false; then :
042acc47 2011 $as_echo_n "(cached) " >&6
212380e3 2012else
042acc47 2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2014/* end confdefs.h. */
042acc47
WP
2015/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2017#define $2 innocuous_$2
2018
2019/* System header to define __stub macros and hopefully few prototypes,
2020 which can conflict with char $2 (); below.
2021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2022 <limits.h> exists even on freestanding compilers. */
2023
212380e3 2024#ifdef __STDC__
2025# include <limits.h>
2026#else
2027# include <assert.h>
2028#endif
212380e3 2029
042acc47 2030#undef $2
631ef239 2031
042acc47
WP
2032/* Override any GCC internal prototype to avoid an error.
2033 Use char because int might match the return type of a GCC
2034 builtin and then its argument prototype would still apply. */
2035#ifdef __cplusplus
2036extern "C"
2037#endif
2038char $2 ();
2039/* The GNU C library defines this for functions which it implements
2040 to always fail with ENOSYS. Some functions are actually named
2041 something starting with __ and the normal name is an alias. */
2042#if defined __stub_$2 || defined __stub___$2
2043choke me
2044#endif
212380e3 2045
042acc47
WP
2046int
2047main ()
2048{
2049return $2 ();
2050 ;
2051 return 0;
2052}
212380e3 2053_ACEOF
042acc47
WP
2054if ac_fn_c_try_link "$LINENO"; then :
2055 eval "$3=yes"
212380e3 2056else
042acc47
WP
2057 eval "$3=no"
2058fi
2059rm -f core conftest.err conftest.$ac_objext \
2060 conftest$ac_exeext conftest.$ac_ext
212380e3 2061fi
042acc47
WP
2062eval ac_res=\$$3
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064$as_echo "$ac_res" >&6; }
b540af17 2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
631ef239 2066
042acc47
WP
2067} # ac_fn_c_check_func
2068cat >config.log <<_ACEOF
2069This file contains any messages produced by compilers while
2070running configure, to aid debugging if configure makes a mistake.
212380e3 2071
b5135efc 2072It was created by shadowircd $as_me 6.3.2, which was
b540af17 2073generated by GNU Autoconf 2.68. Invocation command line was
212380e3 2074
042acc47 2075 $ $0 $@
212380e3 2076
042acc47
WP
2077_ACEOF
2078exec 5>>config.log
2079{
2080cat <<_ASUNAME
2081## --------- ##
2082## Platform. ##
2083## --------- ##
2084
2085hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2086uname -m = `(uname -m) 2>/dev/null || echo unknown`
2087uname -r = `(uname -r) 2>/dev/null || echo unknown`
2088uname -s = `(uname -s) 2>/dev/null || echo unknown`
2089uname -v = `(uname -v) 2>/dev/null || echo unknown`
2090
2091/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2092/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2093
2094/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2095/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2096/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2097/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2098/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2099/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2100/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2101
2102_ASUNAME
212380e3 2103
631ef239 2104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
042acc47 2105for as_dir in $PATH
631ef239 2106do
2107 IFS=$as_save_IFS
2108 test -z "$as_dir" && as_dir=.
042acc47 2109 $as_echo "PATH: $as_dir"
631ef239 2110 done
631ef239 2111IFS=$as_save_IFS
2112
042acc47 2113} >&5
631ef239 2114
042acc47 2115cat >&5 <<_ACEOF
631ef239 2116
631ef239 2117
042acc47
WP
2118## ----------- ##
2119## Core tests. ##
2120## ----------- ##
631ef239 2121
042acc47 2122_ACEOF
631ef239 2123
2124
042acc47
WP
2125# Keep a trace of the command line.
2126# Strip out --no-create and --no-recursion so they do not pile up.
2127# Strip out --silent because we don't want to record it for future runs.
2128# Also quote any args containing shell meta-characters.
2129# Make two passes to allow for proper duplicate-argument suppression.
2130ac_configure_args=
2131ac_configure_args0=
2132ac_configure_args1=
2133ac_must_keep_next=false
2134for ac_pass in 1 2
631ef239 2135do
042acc47 2136 for ac_arg
631ef239 2137 do
042acc47
WP
2138 case $ac_arg in
2139 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2141 | -silent | --silent | --silen | --sile | --sil)
2142 continue ;;
2143 *\'*)
2144 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2145 esac
2146 case $ac_pass in
2147 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2148 2)
2149 as_fn_append ac_configure_args1 " '$ac_arg'"
2150 if test $ac_must_keep_next = true; then
2151 ac_must_keep_next=false # Got value, back to normal.
2152 else
2153 case $ac_arg in
2154 *=* | --config-cache | -C | -disable-* | --disable-* \
2155 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2156 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2157 | -with-* | --with-* | -without-* | --without-* | --x)
2158 case "$ac_configure_args0 " in
2159 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2160 esac
2161 ;;
2162 -* ) ac_must_keep_next=true ;;
2163 esac
2164 fi
2165 as_fn_append ac_configure_args " '$ac_arg'"
2166 ;;
2167 esac
631ef239 2168 done
2169done
042acc47
WP
2170{ ac_configure_args0=; unset ac_configure_args0;}
2171{ ac_configure_args1=; unset ac_configure_args1;}
631ef239 2172
042acc47
WP
2173# When interrupted or exit'd, cleanup temporary files, and complete
2174# config.log. We remove comments because anyway the quotes in there
2175# would cause problems or look ugly.
2176# WARNING: Use '\'' to represent an apostrophe within the trap.
2177# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2178trap 'exit_status=$?
2179 # Save into config.log some information that might help in debugging.
2180 {
2181 echo
631ef239 2182
b540af17 2183 $as_echo "## ---------------- ##
042acc47 2184## Cache variables. ##
b540af17 2185## ---------------- ##"
042acc47
WP
2186 echo
2187 # The following way of writing the cache mishandles newlines in values,
2188(
2189 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2190 eval ac_val=\$$ac_var
2191 case $ac_val in #(
2192 *${as_nl}*)
2193 case $ac_var in #(
2194 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2195$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2196 esac
2197 case $ac_var in #(
2198 _ | IFS | as_nl) ;; #(
2199 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2200 *) { eval $ac_var=; unset $ac_var;} ;;
2201 esac ;;
2202 esac
2203 done
2204 (set) 2>&1 |
2205 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2206 *${as_nl}ac_space=\ *)
2207 sed -n \
2208 "s/'\''/'\''\\\\'\'''\''/g;
2209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2210 ;; #(
2211 *)
2212 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2213 ;;
2214 esac |
2215 sort
2216)
2217 echo
631ef239 2218
b540af17 2219 $as_echo "## ----------------- ##
042acc47 2220## Output variables. ##
b540af17 2221## ----------------- ##"
042acc47
WP
2222 echo
2223 for ac_var in $ac_subst_vars
2224 do
2225 eval ac_val=\$$ac_var
2226 case $ac_val in
2227 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228 esac
2229 $as_echo "$ac_var='\''$ac_val'\''"
2230 done | sort
2231 echo
631ef239 2232
042acc47 2233 if test -n "$ac_subst_files"; then
b540af17 2234 $as_echo "## ------------------- ##
042acc47 2235## File substitutions. ##
b540af17 2236## ------------------- ##"
042acc47
WP
2237 echo
2238 for ac_var in $ac_subst_files
2239 do
2240 eval ac_val=\$$ac_var
2241 case $ac_val in
2242 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2243 esac
2244 $as_echo "$ac_var='\''$ac_val'\''"
2245 done | sort
2246 echo
2247 fi
631ef239 2248
042acc47 2249 if test -s confdefs.h; then
b540af17 2250 $as_echo "## ----------- ##
042acc47 2251## confdefs.h. ##
b540af17 2252## ----------- ##"
042acc47
WP
2253 echo
2254 cat confdefs.h
2255 echo
2256 fi
2257 test "$ac_signal" != 0 &&
2258 $as_echo "$as_me: caught signal $ac_signal"
2259 $as_echo "$as_me: exit $exit_status"
2260 } >&5
2261 rm -f core *.core core.conftest.* &&
2262 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2263 exit $exit_status
2264' 0
2265for ac_signal in 1 2 13 15; do
2266 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2267done
2268ac_signal=0
631ef239 2269
042acc47
WP
2270# confdefs.h avoids OS command line length limits that DEFS can exceed.
2271rm -f -r conftest* confdefs.h
631ef239 2272
042acc47 2273$as_echo "/* confdefs.h */" > confdefs.h
212380e3 2274
042acc47 2275# Predefined preprocessor variables.
212380e3 2276
042acc47
WP
2277cat >>confdefs.h <<_ACEOF
2278#define PACKAGE_NAME "$PACKAGE_NAME"
212380e3 2279_ACEOF
212380e3 2280
042acc47
WP
2281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
212380e3 2283_ACEOF
212380e3 2284
042acc47
WP
2285cat >>confdefs.h <<_ACEOF
2286#define PACKAGE_VERSION "$PACKAGE_VERSION"
212380e3 2287_ACEOF
212380e3 2288
042acc47
WP
2289cat >>confdefs.h <<_ACEOF
2290#define PACKAGE_STRING "$PACKAGE_STRING"
2291_ACEOF
212380e3 2292
042acc47
WP
2293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2295_ACEOF
212380e3 2296
042acc47
WP
2297cat >>confdefs.h <<_ACEOF
2298#define PACKAGE_URL "$PACKAGE_URL"
2299_ACEOF
212380e3 2300
631ef239 2301
042acc47
WP
2302# Let the site file select an alternate cache file if it wants to.
2303# Prefer an explicitly selected file to automatically selected ones.
2304ac_site_file1=NONE
2305ac_site_file2=NONE
2306if test -n "$CONFIG_SITE"; then
b540af17
JH
2307 # We do not want a PATH search for config.site.
2308 case $CONFIG_SITE in #((
2309 -*) ac_site_file1=./$CONFIG_SITE;;
2310 */*) ac_site_file1=$CONFIG_SITE;;
2311 *) ac_site_file1=./$CONFIG_SITE;;
2312 esac
042acc47
WP
2313elif test "x$prefix" != xNONE; then
2314 ac_site_file1=$prefix/share/config.site
2315 ac_site_file2=$prefix/etc/config.site
212380e3 2316else
042acc47
WP
2317 ac_site_file1=$ac_default_prefix/share/config.site
2318 ac_site_file2=$ac_default_prefix/etc/config.site
2319fi
2320for ac_site_file in "$ac_site_file1" "$ac_site_file2"
212380e3 2321do
042acc47 2322 test "x$ac_site_file" = xNONE && continue
1800d973 2323 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
042acc47
WP
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2325$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2326 sed 's/^/| /' "$ac_site_file" >&5
b540af17
JH
2327 . "$ac_site_file" \
2328 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2330as_fn_error $? "failed to load site script $ac_site_file
2331See \`config.log' for more details" "$LINENO" 5; }
212380e3 2332 fi
2333done
212380e3 2334
042acc47 2335if test -r "$cache_file"; then
1800d973
WP
2336 # Some versions of bash will fail to source /dev/null (special files
2337 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2338 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
042acc47
WP
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2340$as_echo "$as_me: loading cache $cache_file" >&6;}
2341 case $cache_file in
2342 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2343 *) . "./$cache_file";;
2344 esac
2345 fi
212380e3 2346else
042acc47
WP
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2348$as_echo "$as_me: creating cache $cache_file" >&6;}
2349 >$cache_file
212380e3 2350fi
2351
042acc47
WP
2352# Check that the precious variables saved in the cache have kept the same
2353# value.
2354ac_cache_corrupted=false
2355for ac_var in $ac_precious_vars; do
2356 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2357 eval ac_new_set=\$ac_env_${ac_var}_set
2358 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2359 eval ac_new_val=\$ac_env_${ac_var}_value
2360 case $ac_old_set,$ac_new_set in
2361 set,)
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2363$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2364 ac_cache_corrupted=: ;;
2365 ,set)
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2367$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2368 ac_cache_corrupted=: ;;
2369 ,);;
2370 *)
2371 if test "x$ac_old_val" != "x$ac_new_val"; then
2372 # differences in whitespace do not lead to failure.
2373 ac_old_val_w=`echo x $ac_old_val`
2374 ac_new_val_w=`echo x $ac_new_val`
2375 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2377$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2378 ac_cache_corrupted=:
2379 else
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2381$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2382 eval $ac_var=\$ac_old_val
2383 fi
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2385$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2387$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2388 fi;;
2389 esac
2390 # Pass precious variables to config.status.
2391 if test "$ac_new_set" = set; then
2392 case $ac_new_val in
2393 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2394 *) ac_arg=$ac_var=$ac_new_val ;;
2395 esac
2396 case " $ac_configure_args " in
2397 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2398 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2399 esac
212380e3 2400 fi
2401done
042acc47
WP
2402if $ac_cache_corrupted; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2406$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b540af17 2407 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
212380e3 2408fi
042acc47
WP
2409## -------------------- ##
2410## Main body of script. ##
2411## -------------------- ##
212380e3 2412
042acc47
WP
2413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
631ef239 2418
212380e3 2419
212380e3 2420
042acc47 2421ac_config_headers="$ac_config_headers include/setup.h"
631ef239 2422
212380e3 2423
212380e3 2424
631ef239 2425
042acc47
WP
2426ac_ext=c
2427ac_cpp='$CPP $CPPFLAGS'
2428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431if test -n "$ac_tool_prefix"; then
2432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2433set dummy ${ac_tool_prefix}gcc; ac_word=$2
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2435$as_echo_n "checking for $ac_word... " >&6; }
b540af17 2436if ${ac_cv_prog_CC+:} false; then :
042acc47 2437 $as_echo_n "(cached) " >&6
212380e3 2438else
042acc47
WP
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2441else
2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3 2443for as_dir in $PATH
2444do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
042acc47 2447 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
2449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3 2451 break 2
2452 fi
2453done
042acc47 2454 done
631ef239 2455IFS=$as_save_IFS
212380e3 2456
212380e3 2457fi
042acc47
WP
2458fi
2459CC=$ac_cv_prog_CC
2460if test -n "$CC"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2462$as_echo "$CC" >&6; }
212380e3 2463else
042acc47
WP
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2465$as_echo "no" >&6; }
212380e3 2466fi
2467
631ef239 2468
042acc47
WP
2469fi
2470if test -z "$ac_cv_prog_CC"; then
2471 ac_ct_CC=$CC
2472 # Extract the first word of "gcc", so it can be a program name with args.
2473set dummy gcc; ac_word=$2
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475$as_echo_n "checking for $ac_word... " >&6; }
b540af17 2476if ${ac_cv_prog_ac_ct_CC+:} false; then :
042acc47 2477 $as_echo_n "(cached) " >&6
212380e3 2478else
042acc47
WP
2479 if test -n "$ac_ct_CC"; then
2480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2481else
2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3 2483for as_dir in $PATH
2484do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
042acc47 2487 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
2489 ac_cv_prog_ac_ct_CC="gcc"
2490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3 2491 break 2
2492 fi
2493done
042acc47 2494 done
631ef239 2495IFS=$as_save_IFS
212380e3 2496
212380e3 2497fi
042acc47
WP
2498fi
2499ac_ct_CC=$ac_cv_prog_ac_ct_CC
2500if test -n "$ac_ct_CC"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2502$as_echo "$ac_ct_CC" >&6; }
212380e3 2503else
042acc47
WP
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505$as_echo "no" >&6; }
212380e3 2506fi
2507
042acc47
WP
2508 if test "x$ac_ct_CC" = x; then
2509 CC=""
2510 else
2511 case $cross_compiling:$ac_tool_warned in
2512yes:)
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2515ac_tool_warned=yes ;;
2516esac
2517 CC=$ac_ct_CC
2518 fi
2519else
2520 CC="$ac_cv_prog_CC"
2521fi
631ef239 2522
042acc47
WP
2523if test -z "$CC"; then
2524 if test -n "$ac_tool_prefix"; then
2525 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2526set dummy ${ac_tool_prefix}cc; ac_word=$2
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528$as_echo_n "checking for $ac_word... " >&6; }
b540af17 2529if ${ac_cv_prog_CC+:} false; then :
042acc47 2530 $as_echo_n "(cached) " >&6
212380e3 2531else
042acc47
WP
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2534else
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3 2536for as_dir in $PATH
2537do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
042acc47 2540 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
2542 ac_cv_prog_CC="${ac_tool_prefix}cc"
2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3 2544 break 2
2545 fi
2546done
042acc47 2547 done
631ef239 2548IFS=$as_save_IFS
042acc47 2549
212380e3 2550fi
042acc47
WP
2551fi
2552CC=$ac_cv_prog_CC
2553if test -n "$CC"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2555$as_echo "$CC" >&6; }
212380e3 2556else
042acc47
WP
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558$as_echo "no" >&6; }
212380e3 2559fi
2560
631ef239 2561
042acc47
WP
2562 fi
2563fi
2564if test -z "$CC"; then
2565 # Extract the first word of "cc", so it can be a program name with args.
2566set dummy cc; ac_word=$2
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568$as_echo_n "checking for $ac_word... " >&6; }
b540af17 2569if ${ac_cv_prog_CC+:} false; then :
042acc47 2570 $as_echo_n "(cached) " >&6
212380e3 2571else
042acc47
WP
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2574else
2575 ac_prog_rejected=no
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3 2577for as_dir in $PATH
2578do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
042acc47 2581 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
2583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2584 ac_prog_rejected=yes
2585 continue
2586 fi
2587 ac_cv_prog_CC="cc"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3 2589 break 2
2590 fi
2591done
042acc47 2592 done
631ef239 2593IFS=$as_save_IFS
212380e3 2594
042acc47
WP
2595if test $ac_prog_rejected = yes; then
2596 # We found a bogon in the path, so make sure we never use it.
2597 set dummy $ac_cv_prog_CC
2598 shift
2599 if test $# != 0; then
2600 # We chose a different compiler from the bogus one.
2601 # However, it has the same basename, so the bogon will be chosen
2602 # first if we set CC to just the basename; use the full file name.
2603 shift
2604 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2605 fi
212380e3 2606fi
042acc47
WP
2607fi
2608fi
2609CC=$ac_cv_prog_CC
2610if test -n "$CC"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2612$as_echo "$CC" >&6; }
212380e3 2613else
042acc47
WP
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615$as_echo "no" >&6; }
212380e3 2616fi
2617
2618
042acc47
WP
2619fi
2620if test -z "$CC"; then
2621 if test -n "$ac_tool_prefix"; then
2622 for ac_prog in cl.exe
2623 do
2624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2625set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627$as_echo_n "checking for $ac_word... " >&6; }
b540af17 2628if ${ac_cv_prog_CC+:} false; then :
042acc47 2629 $as_echo_n "(cached) " >&6
212380e3 2630else
042acc47
WP
2631 if test -n "$CC"; then
2632 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 2633else
2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
042acc47 2639 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
2641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3 2643 break 2
2644 fi
2645done
042acc47 2646 done
631ef239 2647IFS=$as_save_IFS
212380e3 2648
2649fi
2650fi
042acc47
WP
2651CC=$ac_cv_prog_CC
2652if test -n "$CC"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2654$as_echo "$CC" >&6; }
212380e3 2655else
042acc47
WP
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657$as_echo "no" >&6; }
212380e3 2658fi
2659
631ef239 2660
042acc47
WP
2661 test -n "$CC" && break
2662 done
212380e3 2663fi
042acc47
WP
2664if test -z "$CC"; then
2665 ac_ct_CC=$CC
2666 for ac_prog in cl.exe
212380e3 2667do
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669set dummy $ac_prog; ac_word=$2
042acc47
WP
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671$as_echo_n "checking for $ac_word... " >&6; }
b540af17 2672if ${ac_cv_prog_ac_ct_CC+:} false; then :
042acc47 2673 $as_echo_n "(cached) " >&6
212380e3 2674else
042acc47
WP
2675 if test -n "$ac_ct_CC"; then
2676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3 2677else
2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
042acc47 2683 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
042acc47
WP
2685 ac_cv_prog_ac_ct_CC="$ac_prog"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3 2687 break 2
2688 fi
2689done
042acc47 2690 done
631ef239 2691IFS=$as_save_IFS
212380e3 2692
2693fi
2694fi
042acc47
WP
2695ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696if test -n "$ac_ct_CC"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2698$as_echo "$ac_ct_CC" >&6; }
212380e3 2699else
042acc47
WP
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701$as_echo "no" >&6; }
212380e3 2702fi
2703
631ef239 2704
042acc47 2705 test -n "$ac_ct_CC" && break
212380e3 2706done
212380e3 2707
042acc47
WP
2708 if test "x$ac_ct_CC" = x; then
2709 CC=""
2710 else
2711 case $cross_compiling:$ac_tool_warned in
2712yes:)
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715ac_tool_warned=yes ;;
2716esac
2717 CC=$ac_ct_CC
2718 fi
2719fi
2720
2721fi
2722
2723
2724test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b540af17
JH
2726as_fn_error $? "no acceptable C compiler found in \$PATH
2727See \`config.log' for more details" "$LINENO" 5; }
042acc47
WP
2728
2729# Provide some information about the compiler.
2730$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2731set X $ac_compile
2732ac_compiler=$2
2733for ac_option in --version -v -V -qversion; do
2734 { { ac_try="$ac_compiler $ac_option >&5"
2735case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738esac
2739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2740$as_echo "$ac_try_echo"; } >&5
2741 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2742 ac_status=$?
2743 if test -s conftest.err; then
2744 sed '10a\
2745... rest of stderr output deleted ...
2746 10q' conftest.err >conftest.er1
2747 cat conftest.er1 >&5
042acc47 2748 fi
1800d973 2749 rm -f conftest.er1 conftest.err
042acc47
WP
2750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2751 test $ac_status = 0; }
2752done
2753
2754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2755/* end confdefs.h. */
1800d973 2756
212380e3 2757int
042acc47 2758main ()
212380e3 2759{
042acc47
WP
2760
2761 ;
2762 return 0;
212380e3 2763}
2764_ACEOF
042acc47 2765ac_clean_files_save=$ac_clean_files
1800d973 2766ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
042acc47
WP
2767# Try to create an executable without -o first, disregard a.out.
2768# It will help us diagnose broken compilers, and finding out an intuition
2769# of exeext.
1800d973
WP
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2771$as_echo_n "checking whether the C compiler works... " >&6; }
042acc47
WP
2772ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2773
2774# The possible output files:
2775ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2776
2777ac_rmfiles=
2778for ac_file in $ac_files
2779do
2780 case $ac_file in
2781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2782 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2783 esac
2784done
2785rm -f $ac_rmfiles
2786
2787if { { ac_try="$ac_link_default"
631ef239 2788case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791esac
042acc47
WP
2792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2793$as_echo "$ac_try_echo"; } >&5
2794 (eval "$ac_link_default") 2>&5
212380e3 2795 ac_status=$?
042acc47
WP
2796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2797 test $ac_status = 0; }; then :
2798 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2799# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2800# in a Makefile. We should not override ac_cv_exeext if it was cached,
2801# so that the user can short-circuit this test for compilers unknown to
2802# Autoconf.
2803for ac_file in $ac_files ''
2804do
2805 test -f "$ac_file" || continue
2806 case $ac_file in
2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2808 ;;
2809 [ab].out )
2810 # We found the default executable, but exeext='' is most
2811 # certainly right.
2812 break;;
2813 *.* )
2814 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2815 then :; else
2816 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2817 fi
2818 # We set ac_cv_exeext here because the later test for it is not
2819 # safe: cross compilers may not add the suffix if given an `-o'
2820 # argument, so we may need to know it at that point already.
2821 # Even if this section looks crufty: it has the advantage of
2822 # actually working.
2823 break;;
2824 * )
2825 break;;
2826 esac
2827done
2828test "$ac_cv_exeext" = no && ac_cv_exeext=
212380e3 2829
212380e3 2830else
042acc47 2831 ac_file=''
631ef239 2832fi
042acc47 2833if test -z "$ac_file"; then :
1800d973
WP
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835$as_echo "no" >&6; }
2836$as_echo "$as_me: failed program was:" >&5
042acc47
WP
2837sed 's/^/| /' conftest.$ac_ext >&5
2838
2839{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b540af17
JH
2841as_fn_error 77 "C compiler cannot create executables
2842See \`config.log' for more details" "$LINENO" 5; }
1800d973
WP
2843else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2845$as_echo "yes" >&6; }
631ef239 2846fi
1800d973
WP
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2848$as_echo_n "checking for C compiler default output file name... " >&6; }
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2850$as_echo "$ac_file" >&6; }
042acc47 2851ac_exeext=$ac_cv_exeext
631ef239 2852
1800d973 2853rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
042acc47 2854ac_clean_files=$ac_clean_files_save
042acc47
WP
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2856$as_echo_n "checking for suffix of executables... " >&6; }
2857if { { ac_try="$ac_link"
2858case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861esac
2862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2863$as_echo "$ac_try_echo"; } >&5
2864 (eval "$ac_link") 2>&5
2865 ac_status=$?
2866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2867 test $ac_status = 0; }; then :
2868 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2869# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2870# work properly (i.e., refer to `conftest.exe'), while it won't with
2871# `rm'.
2872for ac_file in conftest.exe conftest conftest.*; do
2873 test -f "$ac_file" || continue
2874 case $ac_file in
2875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2876 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2877 break;;
2878 * ) break;;
2879 esac
2880done
212380e3 2881else
042acc47
WP
2882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b540af17
JH
2884as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2885See \`config.log' for more details" "$LINENO" 5; }
042acc47 2886fi
1800d973 2887rm -f conftest conftest$ac_cv_exeext
042acc47
WP
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2889$as_echo "$ac_cv_exeext" >&6; }
2890
2891rm -f conftest.$ac_ext
2892EXEEXT=$ac_cv_exeext
2893ac_exeext=$EXEEXT
1800d973
WP
2894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895/* end confdefs.h. */
2896#include <stdio.h>
2897int
2898main ()
2899{
2900FILE *f = fopen ("conftest.out", "w");
2901 return ferror (f) || fclose (f) != 0;
2902
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907ac_clean_files="$ac_clean_files conftest.out"
2908# Check that the compiler produces executables we can run. If not, either
2909# the compiler is broken, or we cross compile.
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2911$as_echo_n "checking whether we are cross compiling... " >&6; }
2912if test "$cross_compiling" != yes; then
2913 { { ac_try="$ac_link"
2914case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917esac
2918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919$as_echo "$ac_try_echo"; } >&5
2920 (eval "$ac_link") 2>&5
2921 ac_status=$?
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }
2924 if { ac_try='./conftest$ac_cv_exeext'
2925 { { case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928esac
2929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930$as_echo "$ac_try_echo"; } >&5
2931 (eval "$ac_try") 2>&5
2932 ac_status=$?
2933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934 test $ac_status = 0; }; }; then
2935 cross_compiling=no
2936 else
2937 if test "$cross_compiling" = maybe; then
2938 cross_compiling=yes
2939 else
2940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b540af17 2942as_fn_error $? "cannot run C compiled programs.
1800d973 2943If you meant to cross compile, use \`--host'.
b540af17 2944See \`config.log' for more details" "$LINENO" 5; }
1800d973
WP
2945 fi
2946 fi
2947fi
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2949$as_echo "$cross_compiling" >&6; }
2950
2951rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2952ac_clean_files=$ac_clean_files_save
042acc47
WP
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2954$as_echo_n "checking for suffix of object files... " >&6; }
b540af17 2955if ${ac_cv_objext+:} false; then :
042acc47
WP
2956 $as_echo_n "(cached) " >&6
2957else
2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h. */
212380e3 2960
042acc47
WP
2961int
2962main ()
2963{
2964
2965 ;
2966 return 0;
2967}
212380e3 2968_ACEOF
042acc47
WP
2969rm -f conftest.o conftest.obj
2970if { { ac_try="$ac_compile"
631ef239 2971case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974esac
042acc47
WP
2975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976$as_echo "$ac_try_echo"; } >&5
2977 (eval "$ac_compile") 2>&5
212380e3 2978 ac_status=$?
042acc47
WP
2979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980 test $ac_status = 0; }; then :
2981 for ac_file in conftest.o conftest.obj conftest.*; do
2982 test -f "$ac_file" || continue;
2983 case $ac_file in
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2986 break;;
2987 esac
2988done
212380e3 2989else
042acc47 2990 $as_echo "$as_me: failed program was:" >&5
212380e3 2991sed 's/^/| /' conftest.$ac_ext >&5
2992
042acc47
WP
2993{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b540af17
JH
2995as_fn_error $? "cannot compute suffix of object files: cannot compile
2996See \`config.log' for more details" "$LINENO" 5; }
042acc47
WP
2997fi
2998rm -f conftest.$ac_cv_objext conftest.$ac_ext
212380e3 2999fi
042acc47
WP
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3001$as_echo "$ac_cv_objext" >&6; }
3002OBJEXT=$ac_cv_objext
3003ac_objext=$OBJEXT
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3005$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b540af17 3006if ${ac_cv_c_compiler_gnu+:} false; then :
042acc47
WP
3007 $as_echo_n "(cached) " >&6
3008else
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010/* end confdefs.h. */
212380e3 3011
042acc47
WP
3012int
3013main ()
3014{
3015#ifndef __GNUC__
3016 choke me
3017#endif
212380e3 3018
042acc47
WP
3019 ;
3020 return 0;
3021}
3022_ACEOF
3023if ac_fn_c_try_compile "$LINENO"; then :
3024 ac_compiler_gnu=yes
3025else
3026 ac_compiler_gnu=no
212380e3 3027fi
042acc47
WP
3028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029ac_cv_c_compiler_gnu=$ac_compiler_gnu
3030
3031fi
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3033$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3034if test $ac_compiler_gnu = yes; then
3035 GCC=yes
3036else
3037 GCC=
212380e3 3038fi
042acc47
WP
3039ac_test_CFLAGS=${CFLAGS+set}
3040ac_save_CFLAGS=$CFLAGS
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3042$as_echo_n "checking whether $CC accepts -g... " >&6; }
b540af17 3043if ${ac_cv_prog_cc_g+:} false; then :
042acc47
WP
3044 $as_echo_n "(cached) " >&6
3045else
3046 ac_save_c_werror_flag=$ac_c_werror_flag
3047 ac_c_werror_flag=yes
3048 ac_cv_prog_cc_g=no
3049 CFLAGS="-g"
3050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051/* end confdefs.h. */
212380e3 3052
042acc47
WP
3053int
3054main ()
3055{
631ef239 3056
042acc47
WP
3057 ;
3058 return 0;
3059}
212380e3 3060_ACEOF
042acc47
WP
3061if ac_fn_c_try_compile "$LINENO"; then :
3062 ac_cv_prog_cc_g=yes
212380e3 3063else
042acc47
WP
3064 CFLAGS=""
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066/* end confdefs.h. */
212380e3 3067
042acc47
WP
3068int
3069main ()
3070{
631ef239 3071
042acc47
WP
3072 ;
3073 return 0;
3074}
3075_ACEOF
3076if ac_fn_c_try_compile "$LINENO"; then :
631ef239 3077
042acc47
WP
3078else
3079 ac_c_werror_flag=$ac_save_c_werror_flag
3080 CFLAGS="-g"
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082/* end confdefs.h. */
212380e3 3083
042acc47
WP
3084int
3085main ()
3086{
212380e3 3087
042acc47
WP
3088 ;
3089 return 0;
3090}
212380e3 3091_ACEOF
042acc47
WP
3092if ac_fn_c_try_compile "$LINENO"; then :
3093 ac_cv_prog_cc_g=yes
212380e3 3094fi
042acc47 3095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3096fi
042acc47 3097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3098fi
042acc47
WP
3099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3100 ac_c_werror_flag=$ac_save_c_werror_flag
212380e3 3101fi
042acc47
WP
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3103$as_echo "$ac_cv_prog_cc_g" >&6; }
3104if test "$ac_test_CFLAGS" = set; then
3105 CFLAGS=$ac_save_CFLAGS
3106elif test $ac_cv_prog_cc_g = yes; then
3107 if test "$GCC" = yes; then
3108 CFLAGS="-g -O2"
3109 else
3110 CFLAGS="-g"
3111 fi
212380e3 3112else
042acc47
WP
3113 if test "$GCC" = yes; then
3114 CFLAGS="-O2"
3115 else
3116 CFLAGS=
3117 fi
3118fi
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3120$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b540af17 3121if ${ac_cv_prog_cc_c89+:} false; then :
042acc47
WP
3122 $as_echo_n "(cached) " >&6
3123else
3124 ac_cv_prog_cc_c89=no
3125ac_save_CC=$CC
3126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3127/* end confdefs.h. */
212380e3 3128#include <stdarg.h>
042acc47
WP
3129#include <stdio.h>
3130#include <sys/types.h>
3131#include <sys/stat.h>
3132/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3133struct buf { int x; };
3134FILE * (*rcsopen) (struct buf *, struct stat *, int);
3135static char *e (p, i)
3136 char **p;
3137 int i;
3138{
3139 return p[i];
3140}
3141static char *f (char * (*g) (char **, int), char **p, ...)
3142{
3143 char *s;
3144 va_list v;
3145 va_start (v,p);
3146 s = g (p, va_arg (v,int));
3147 va_end (v);
3148 return s;
3149}
3150
3151/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3152 function prototypes and stuff, but not '\xHH' hex character constants.
3153 These don't provoke an error unfortunately, instead are silently treated
3154 as 'x'. The following induces an error, until -std is added to get
3155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3156 array size at least. It's necessary to write '\x00'==0 to get something
3157 that's true only with -std. */
3158int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3159
3160/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3161 inside strings and character constants. */
3162#define FOO(x) 'x'
3163int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
212380e3 3164
042acc47
WP
3165int test (int i, double x);
3166struct s1 {int (*f) (int a);};
3167struct s2 {int (*f) (double a);};
3168int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3169int argc;
3170char **argv;
212380e3 3171int
3172main ()
3173{
042acc47 3174return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3 3175 ;
3176 return 0;
3177}
3178_ACEOF
042acc47
WP
3179for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3181do
3182 CC="$ac_save_CC $ac_arg"
3183 if ac_fn_c_try_compile "$LINENO"; then :
3184 ac_cv_prog_cc_c89=$ac_arg
3185fi
3186rm -f core conftest.err conftest.$ac_objext
3187 test "x$ac_cv_prog_cc_c89" != "xno" && break
3188done
3189rm -f conftest.$ac_ext
3190CC=$ac_save_CC
3191
3192fi
3193# AC_CACHE_VAL
3194case "x$ac_cv_prog_cc_c89" in
3195 x)
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3197$as_echo "none needed" >&6; } ;;
3198 xno)
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3200$as_echo "unsupported" >&6; } ;;
3201 *)
3202 CC="$CC $ac_cv_prog_cc_c89"
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3204$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 3205esac
042acc47 3206if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 3207
212380e3 3208fi
631ef239 3209
042acc47
WP
3210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3 3215
212380e3 3216
042acc47
WP
3217ac_ext=c
3218ac_cpp='$CPP $CPPFLAGS'
3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3223$as_echo_n "checking how to run the C preprocessor... " >&6; }
3224# On Suns, sometimes $CPP names a directory.
3225if test -n "$CPP" && test -d "$CPP"; then
3226 CPP=
3227fi
3228if test -z "$CPP"; then
b540af17 3229 if ${ac_cv_prog_CPP+:} false; then :
042acc47
WP
3230 $as_echo_n "(cached) " >&6
3231else
3232 # Double quotes because CPP needs to be expanded
3233 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3234 do
3235 ac_preproc_ok=false
3236for ac_c_preproc_warn_flag in '' yes
3237do
3238 # Use a header file that comes with gcc, so configuring glibc
3239 # with a fresh cross-compiler works.
3240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3241 # <limits.h> exists even on freestanding compilers.
3242 # On the NeXT, cc -E runs the code through the compiler's parser,
3243 # not just through cpp. "Syntax error" is here to catch this case.
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h. */
3246#ifdef __STDC__
3247# include <limits.h>
3248#else
3249# include <assert.h>
3250#endif
3251 Syntax error
212380e3 3252_ACEOF
042acc47 3253if ac_fn_c_try_cpp "$LINENO"; then :
212380e3 3254
042acc47
WP
3255else
3256 # Broken: fails on valid input.
3257continue
212380e3 3258fi
b540af17 3259rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3260
042acc47
WP
3261 # OK, works on sane cases. Now check whether nonexistent headers
3262 # can be detected and how.
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3264/* end confdefs.h. */
042acc47 3265#include <ac_nonexistent.h>
212380e3 3266_ACEOF
042acc47
WP
3267if ac_fn_c_try_cpp "$LINENO"; then :
3268 # Broken: success on invalid input.
3269continue
212380e3 3270else
042acc47
WP
3271 # Passes both tests.
3272ac_preproc_ok=:
3273break
212380e3 3274fi
b540af17 3275rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3276
042acc47
WP
3277done
3278# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b540af17 3279rm -f conftest.i conftest.err conftest.$ac_ext
042acc47
WP
3280if $ac_preproc_ok; then :
3281 break
212380e3 3282fi
3283
042acc47
WP
3284 done
3285 ac_cv_prog_CPP=$CPP
3286
3287fi
3288 CPP=$ac_cv_prog_CPP
212380e3 3289else
042acc47
WP
3290 ac_cv_prog_CPP=$CPP
3291fi
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3293$as_echo "$CPP" >&6; }
3294ac_preproc_ok=false
3295for ac_c_preproc_warn_flag in '' yes
3296do
3297 # Use a header file that comes with gcc, so configuring glibc
3298 # with a fresh cross-compiler works.
3299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3300 # <limits.h> exists even on freestanding compilers.
3301 # On the NeXT, cc -E runs the code through the compiler's parser,
3302 # not just through cpp. "Syntax error" is here to catch this case.
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3304/* end confdefs.h. */
042acc47
WP
3305#ifdef __STDC__
3306# include <limits.h>
212380e3 3307#else
042acc47 3308# include <assert.h>
212380e3 3309#endif
042acc47 3310 Syntax error
212380e3 3311_ACEOF
042acc47 3312if ac_fn_c_try_cpp "$LINENO"; then :
212380e3 3313
042acc47
WP
3314else
3315 # Broken: fails on valid input.
3316continue
212380e3 3317fi
b540af17 3318rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3319
042acc47
WP
3320 # OK, works on sane cases. Now check whether nonexistent headers
3321 # can be detected and how.
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3323/* end confdefs.h. */
042acc47 3324#include <ac_nonexistent.h>
212380e3 3325_ACEOF
042acc47
WP
3326if ac_fn_c_try_cpp "$LINENO"; then :
3327 # Broken: success on invalid input.
3328continue
212380e3 3329else
042acc47
WP
3330 # Passes both tests.
3331ac_preproc_ok=:
3332break
212380e3 3333fi
b540af17 3334rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3335
3336done
042acc47 3337# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b540af17 3338rm -f conftest.i conftest.err conftest.$ac_ext
042acc47 3339if $ac_preproc_ok; then :
212380e3 3340
042acc47
WP
3341else
3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b540af17
JH
3344as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3345See \`config.log' for more details" "$LINENO" 5; }
042acc47 3346fi
212380e3 3347
042acc47
WP
3348ac_ext=c
3349ac_cpp='$CPP $CPPFLAGS'
3350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3 3353
3354
042acc47
WP
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3356$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b540af17 3357if ${ac_cv_path_GREP+:} false; then :
042acc47 3358 $as_echo_n "(cached) " >&6
212380e3 3359else
042acc47
WP
3360 if test -z "$GREP"; then
3361 ac_path_GREP_found=false
3362 # Loop through the user's path and test for each of PROGNAME-LIST
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3365do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_prog in grep ggrep; do
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3371 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3372# Check for GNU ac_path_GREP and select it if it is found.
3373 # Check for GNU $ac_path_GREP
3374case `"$ac_path_GREP" --version 2>&1` in
3375*GNU*)
3376 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3377*)
3378 ac_count=0
3379 $as_echo_n 0123456789 >"conftest.in"
3380 while :
3381 do
3382 cat "conftest.in" "conftest.in" >"conftest.tmp"
3383 mv "conftest.tmp" "conftest.in"
3384 cp "conftest.in" "conftest.nl"
3385 $as_echo 'GREP' >> "conftest.nl"
3386 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3388 as_fn_arith $ac_count + 1 && ac_count=$as_val
3389 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3390 # Best one so far, save it but keep looking for a better one
3391 ac_cv_path_GREP="$ac_path_GREP"
3392 ac_path_GREP_max=$ac_count
3393 fi
3394 # 10*(2^10) chars as input seems more than enough
3395 test $ac_count -gt 10 && break
3396 done
3397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
631ef239 3398esac
042acc47
WP
3399
3400 $ac_path_GREP_found && break 3
3401 done
3402 done
3403 done
3404IFS=$as_save_IFS
3405 if test -z "$ac_cv_path_GREP"; then
b540af17 3406 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
042acc47 3407 fi
212380e3 3408else
042acc47
WP
3409 ac_cv_path_GREP=$GREP
3410fi
212380e3 3411
212380e3 3412fi
042acc47
WP
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3414$as_echo "$ac_cv_path_GREP" >&6; }
3415 GREP="$ac_cv_path_GREP"
631ef239 3416
212380e3 3417
042acc47
WP
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3419$as_echo_n "checking for egrep... " >&6; }
b540af17 3420if ${ac_cv_path_EGREP+:} false; then :
042acc47
WP
3421 $as_echo_n "(cached) " >&6
3422else
3423 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3424 then ac_cv_path_EGREP="$GREP -E"
3425 else
3426 if test -z "$EGREP"; then
3427 ac_path_EGREP_found=false
3428 # Loop through the user's path and test for each of PROGNAME-LIST
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3431do
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 for ac_prog in egrep; do
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3437 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3438# Check for GNU ac_path_EGREP and select it if it is found.
3439 # Check for GNU $ac_path_EGREP
3440case `"$ac_path_EGREP" --version 2>&1` in
3441*GNU*)
3442 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3443*)
3444 ac_count=0
3445 $as_echo_n 0123456789 >"conftest.in"
3446 while :
3447 do
3448 cat "conftest.in" "conftest.in" >"conftest.tmp"
3449 mv "conftest.tmp" "conftest.in"
3450 cp "conftest.in" "conftest.nl"
3451 $as_echo 'EGREP' >> "conftest.nl"
3452 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3453 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3454 as_fn_arith $ac_count + 1 && ac_count=$as_val
3455 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3456 # Best one so far, save it but keep looking for a better one
3457 ac_cv_path_EGREP="$ac_path_EGREP"
3458 ac_path_EGREP_max=$ac_count
3459 fi
3460 # 10*(2^10) chars as input seems more than enough
3461 test $ac_count -gt 10 && break
3462 done
3463 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
631ef239 3464esac
212380e3 3465
042acc47
WP
3466 $ac_path_EGREP_found && break 3
3467 done
3468 done
3469 done
3470IFS=$as_save_IFS
3471 if test -z "$ac_cv_path_EGREP"; then
b540af17 3472 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
042acc47 3473 fi
212380e3 3474else
042acc47 3475 ac_cv_path_EGREP=$EGREP
212380e3 3476fi
212380e3 3477
042acc47 3478 fi
212380e3 3479fi
042acc47
WP
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3481$as_echo "$ac_cv_path_EGREP" >&6; }
3482 EGREP="$ac_cv_path_EGREP"
212380e3 3483
3484
042acc47
WP
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3486$as_echo_n "checking for ANSI C header files... " >&6; }
b540af17 3487if ${ac_cv_header_stdc+:} false; then :
042acc47 3488 $as_echo_n "(cached) " >&6
212380e3 3489else
042acc47 3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3491/* end confdefs.h. */
042acc47
WP
3492#include <stdlib.h>
3493#include <stdarg.h>
3494#include <string.h>
3495#include <float.h>
212380e3 3496
3497int
3498main ()
3499{
212380e3 3500
3501 ;
3502 return 0;
3503}
3504_ACEOF
042acc47
WP
3505if ac_fn_c_try_compile "$LINENO"; then :
3506 ac_cv_header_stdc=yes
212380e3 3507else
042acc47 3508 ac_cv_header_stdc=no
212380e3 3509fi
631ef239 3510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3511
042acc47
WP
3512if test $ac_cv_header_stdc = yes; then
3513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515/* end confdefs.h. */
3516#include <string.h>
212380e3 3517
042acc47
WP
3518_ACEOF
3519if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3520 $EGREP "memchr" >/dev/null 2>&1; then :
212380e3 3521
212380e3 3522else
042acc47
WP
3523 ac_cv_header_stdc=no
3524fi
3525rm -f conftest*
212380e3 3526
042acc47 3527fi
212380e3 3528
042acc47
WP
3529if test $ac_cv_header_stdc = yes; then
3530 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3532/* end confdefs.h. */
042acc47 3533#include <stdlib.h>
212380e3 3534
212380e3 3535_ACEOF
042acc47
WP
3536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3537 $EGREP "free" >/dev/null 2>&1; then :
3538
212380e3 3539else
042acc47
WP
3540 ac_cv_header_stdc=no
3541fi
3542rm -f conftest*
212380e3 3543
212380e3 3544fi
631ef239 3545
042acc47
WP
3546if test $ac_cv_header_stdc = yes; then
3547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3548 if test "$cross_compiling" = yes; then :
3549 :
212380e3 3550else
042acc47 3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3552/* end confdefs.h. */
042acc47
WP
3553#include <ctype.h>
3554#include <stdlib.h>
3555#if ((' ' & 0x0FF) == 0x020)
3556# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3557# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3558#else
3559# define ISLOWER(c) \
3560 (('a' <= (c) && (c) <= 'i') \
3561 || ('j' <= (c) && (c) <= 'r') \
3562 || ('s' <= (c) && (c) <= 'z'))
3563# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3564#endif
3565
3566#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3 3567int
3568main ()
3569{
042acc47
WP
3570 int i;
3571 for (i = 0; i < 256; i++)
3572 if (XOR (islower (i), ISLOWER (i))
3573 || toupper (i) != TOUPPER (i))
3574 return 2;
212380e3 3575 return 0;
3576}
3577_ACEOF
042acc47
WP
3578if ac_fn_c_try_run "$LINENO"; then :
3579
3580else
3581 ac_cv_header_stdc=no
212380e3 3582fi
042acc47
WP
3583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3584 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 3585fi
212380e3 3586
042acc47
WP
3587fi
3588fi
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3590$as_echo "$ac_cv_header_stdc" >&6; }
3591if test $ac_cv_header_stdc = yes; then
3592
3593$as_echo "#define STDC_HEADERS 1" >>confdefs.h
631ef239 3594
212380e3 3595fi
631ef239 3596
042acc47
WP
3597# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3598for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3599 inttypes.h stdint.h unistd.h
3600do :
3601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3602ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3603"
b540af17 3604if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
042acc47
WP
3605 cat >>confdefs.h <<_ACEOF
3606#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
212380e3 3607_ACEOF
631ef239 3608
042acc47 3609fi
631ef239 3610
042acc47
WP
3611done
3612
3613
3614
3615 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
b540af17 3616if test "x$ac_cv_header_minix_config_h" = xyes; then :
042acc47 3617 MINIX=yes
212380e3 3618else
042acc47
WP
3619 MINIX=
3620fi
3621
3622
3623 if test "$MINIX" = yes; then
3624
3625$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3626
212380e3 3627
042acc47 3628$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
631ef239 3629
3630
042acc47 3631$as_echo "#define _MINIX 1" >>confdefs.h
631ef239 3632
042acc47 3633 fi
212380e3 3634
212380e3 3635
042acc47
WP
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3637$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
b540af17 3638if ${ac_cv_safe_to_define___extensions__+:} false; then :
042acc47 3639 $as_echo_n "(cached) " >&6
212380e3 3640else
042acc47 3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3642/* end confdefs.h. */
042acc47
WP
3643
3644# define __EXTENSIONS__ 1
3645 $ac_includes_default
212380e3 3646int
3647main ()
3648{
042acc47 3649
212380e3 3650 ;
3651 return 0;
3652}
3653_ACEOF
042acc47
WP
3654if ac_fn_c_try_compile "$LINENO"; then :
3655 ac_cv_safe_to_define___extensions__=yes
212380e3 3656else
042acc47 3657 ac_cv_safe_to_define___extensions__=no
212380e3 3658fi
631ef239 3659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3660fi
042acc47
WP
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3662$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3663 test $ac_cv_safe_to_define___extensions__ = yes &&
3664 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 3665
042acc47 3666 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
212380e3 3667
042acc47
WP
3668 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3669
3670 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3671
3672 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
212380e3 3673
042acc47
WP
3674
3675
3676
3677OLD_CFLAGS="$CFLAGS"
3678ac_ext=c
3679ac_cpp='$CPP $CPPFLAGS'
3680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683if test -n "$ac_tool_prefix"; then
3684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3685set dummy ${ac_tool_prefix}gcc; ac_word=$2
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687$as_echo_n "checking for $ac_word... " >&6; }
b540af17 3688if ${ac_cv_prog_CC+:} false; then :
042acc47 3689 $as_echo_n "(cached) " >&6
212380e3 3690else
042acc47
WP
3691 if test -n "$CC"; then
3692 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 3693else
042acc47
WP
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705done
3706 done
3707IFS=$as_save_IFS
212380e3 3708
212380e3 3709fi
212380e3 3710fi
042acc47
WP
3711CC=$ac_cv_prog_CC
3712if test -n "$CC"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3714$as_echo "$CC" >&6; }
212380e3 3715else
042acc47
WP
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717$as_echo "no" >&6; }
3718fi
212380e3 3719
212380e3 3720
3721fi
042acc47
WP
3722if test -z "$ac_cv_prog_CC"; then
3723 ac_ct_CC=$CC
3724 # Extract the first word of "gcc", so it can be a program name with args.
3725set dummy gcc; ac_word=$2
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727$as_echo_n "checking for $ac_word... " >&6; }
b540af17 3728if ${ac_cv_prog_ac_ct_CC+:} false; then :
042acc47 3729 $as_echo_n "(cached) " >&6
212380e3 3730else
042acc47
WP
3731 if test -n "$ac_ct_CC"; then
3732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3 3733else
042acc47
WP
3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH
3736do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_prog_ac_ct_CC="gcc"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3744 fi
3745done
3746 done
3747IFS=$as_save_IFS
212380e3 3748
212380e3 3749fi
212380e3 3750fi
042acc47
WP
3751ac_ct_CC=$ac_cv_prog_ac_ct_CC
3752if test -n "$ac_ct_CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3754$as_echo "$ac_ct_CC" >&6; }
212380e3 3755else
042acc47
WP
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757$as_echo "no" >&6; }
3758fi
212380e3 3759
042acc47
WP
3760 if test "x$ac_ct_CC" = x; then
3761 CC=""
3762 else
3763 case $cross_compiling:$ac_tool_warned in
3764yes:)
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3767ac_tool_warned=yes ;;
631ef239 3768esac
042acc47
WP
3769 CC=$ac_ct_CC
3770 fi
212380e3 3771else
042acc47 3772 CC="$ac_cv_prog_CC"
212380e3 3773fi
631ef239 3774
042acc47
WP
3775if test -z "$CC"; then
3776 if test -n "$ac_tool_prefix"; then
3777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3778set dummy ${ac_tool_prefix}cc; ac_word=$2
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780$as_echo_n "checking for $ac_word... " >&6; }
b540af17 3781if ${ac_cv_prog_CC+:} false; then :
042acc47 3782 $as_echo_n "(cached) " >&6
212380e3 3783else
042acc47
WP
3784 if test -n "$CC"; then
3785 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 3786else
042acc47
WP
3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH
3789do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3794 ac_cv_prog_CC="${ac_tool_prefix}cc"
3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798done
3799 done
3800IFS=$as_save_IFS
212380e3 3801
212380e3 3802fi
042acc47
WP
3803fi
3804CC=$ac_cv_prog_CC
3805if test -n "$CC"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3807$as_echo "$CC" >&6; }
212380e3 3808else
042acc47
WP
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810$as_echo "no" >&6; }
3811fi
3812
212380e3 3813
042acc47 3814 fi
212380e3 3815fi
042acc47
WP
3816if test -z "$CC"; then
3817 # Extract the first word of "cc", so it can be a program name with args.
3818set dummy cc; ac_word=$2
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820$as_echo_n "checking for $ac_word... " >&6; }
b540af17 3821if ${ac_cv_prog_CC+:} false; then :
042acc47
WP
3822 $as_echo_n "(cached) " >&6
3823else
3824 if test -n "$CC"; then
3825 ac_cv_prog_CC="$CC" # Let the user override the test.
3826else
3827 ac_prog_rejected=no
3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3836 ac_prog_rejected=yes
3837 continue
3838 fi
3839 ac_cv_prog_CC="cc"
3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3842 fi
3843done
3844 done
3845IFS=$as_save_IFS
631ef239 3846
042acc47
WP
3847if test $ac_prog_rejected = yes; then
3848 # We found a bogon in the path, so make sure we never use it.
3849 set dummy $ac_cv_prog_CC
3850 shift
3851 if test $# != 0; then
3852 # We chose a different compiler from the bogus one.
3853 # However, it has the same basename, so the bogon will be chosen
3854 # first if we set CC to just the basename; use the full file name.
3855 shift
3856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3857 fi
3858fi
3859fi
3860fi
3861CC=$ac_cv_prog_CC
3862if test -n "$CC"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864$as_echo "$CC" >&6; }
3865else
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867$as_echo "no" >&6; }
212380e3 3868fi
631ef239 3869
212380e3 3870
042acc47
WP
3871fi
3872if test -z "$CC"; then
3873 if test -n "$ac_tool_prefix"; then
3874 for ac_prog in cl.exe
3875 do
3876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3877set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879$as_echo_n "checking for $ac_word... " >&6; }
b540af17 3880if ${ac_cv_prog_CC+:} false; then :
042acc47 3881 $as_echo_n "(cached) " >&6
212380e3 3882else
042acc47
WP
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3885else
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 break 2
3896 fi
3897done
3898 done
3899IFS=$as_save_IFS
212380e3 3900
212380e3 3901fi
042acc47
WP
3902fi
3903CC=$ac_cv_prog_CC
3904if test -n "$CC"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3906$as_echo "$CC" >&6; }
212380e3 3907else
042acc47
WP
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909$as_echo "no" >&6; }
3910fi
212380e3 3911
212380e3 3912
042acc47
WP
3913 test -n "$CC" && break
3914 done
3915fi
3916if test -z "$CC"; then
3917 ac_ct_CC=$CC
3918 for ac_prog in cl.exe
3919do
3920 # Extract the first word of "$ac_prog", so it can be a program name with args.
3921set dummy $ac_prog; ac_word=$2
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923$as_echo_n "checking for $ac_word... " >&6; }
b540af17 3924if ${ac_cv_prog_ac_ct_CC+:} false; then :
042acc47 3925 $as_echo_n "(cached) " >&6
212380e3 3926else
042acc47
WP
3927 if test -n "$ac_ct_CC"; then
3928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3929else
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
3932do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_ac_ct_CC="$ac_prog"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941done
3942 done
3943IFS=$as_save_IFS
212380e3 3944
212380e3 3945fi
3946fi
042acc47
WP
3947ac_ct_CC=$ac_cv_prog_ac_ct_CC
3948if test -n "$ac_ct_CC"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3950$as_echo "$ac_ct_CC" >&6; }
3951else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953$as_echo "no" >&6; }
212380e3 3954fi
631ef239 3955
3956
042acc47
WP
3957 test -n "$ac_ct_CC" && break
3958done
631ef239 3959
042acc47
WP
3960 if test "x$ac_ct_CC" = x; then
3961 CC=""
3962 else
3963 case $cross_compiling:$ac_tool_warned in
3964yes:)
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3967ac_tool_warned=yes ;;
3968esac
3969 CC=$ac_ct_CC
3970 fi
3971fi
212380e3 3972
042acc47 3973fi
212380e3 3974
042acc47
WP
3975
3976test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b540af17
JH
3978as_fn_error $? "no acceptable C compiler found in \$PATH
3979See \`config.log' for more details" "$LINENO" 5; }
042acc47
WP
3980
3981# Provide some information about the compiler.
3982$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3983set X $ac_compile
3984ac_compiler=$2
3985for ac_option in --version -v -V -qversion; do
3986 { { ac_try="$ac_compiler $ac_option >&5"
631ef239 3987case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990esac
042acc47
WP
3991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992$as_echo "$ac_try_echo"; } >&5
3993 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
212380e3 3994 ac_status=$?
042acc47
WP
3995 if test -s conftest.err; then
3996 sed '10a\
3997... rest of stderr output deleted ...
3998 10q' conftest.err >conftest.er1
3999 cat conftest.er1 >&5
042acc47 4000 fi
1800d973 4001 rm -f conftest.er1 conftest.err
042acc47
WP
4002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003 test $ac_status = 0; }
4004done
212380e3 4005
042acc47
WP
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4007$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b540af17 4008if ${ac_cv_c_compiler_gnu+:} false; then :
042acc47 4009 $as_echo_n "(cached) " >&6
212380e3 4010else
042acc47 4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4012/* end confdefs.h. */
042acc47 4013
212380e3 4014int
4015main ()
4016{
042acc47
WP
4017#ifndef __GNUC__
4018 choke me
4019#endif
212380e3 4020
4021 ;
4022 return 0;
4023}
4024_ACEOF
042acc47
WP
4025if ac_fn_c_try_compile "$LINENO"; then :
4026 ac_compiler_gnu=yes
4027else
4028 ac_compiler_gnu=no
4029fi
4030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031ac_cv_c_compiler_gnu=$ac_compiler_gnu
4032
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4035$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4036if test $ac_compiler_gnu = yes; then
4037 GCC=yes
4038else
4039 GCC=
4040fi
4041ac_test_CFLAGS=${CFLAGS+set}
4042ac_save_CFLAGS=$CFLAGS
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4044$as_echo_n "checking whether $CC accepts -g... " >&6; }
b540af17 4045if ${ac_cv_prog_cc_g+:} false; then :
042acc47
WP
4046 $as_echo_n "(cached) " >&6
4047else
4048 ac_save_c_werror_flag=$ac_c_werror_flag
4049 ac_c_werror_flag=yes
4050 ac_cv_prog_cc_g=no
4051 CFLAGS="-g"
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4053/* end confdefs.h. */
042acc47 4054
212380e3 4055int
4056main ()
4057{
212380e3 4058
4059 ;
4060 return 0;
4061}
4062_ACEOF
042acc47
WP
4063if ac_fn_c_try_compile "$LINENO"; then :
4064 ac_cv_prog_cc_g=yes
212380e3 4065else
042acc47
WP
4066 CFLAGS=""
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4068/* end confdefs.h. */
042acc47 4069
212380e3 4070int
4071main ()
4072{
212380e3 4073
4074 ;
4075 return 0;
4076}
4077_ACEOF
042acc47
WP
4078if ac_fn_c_try_compile "$LINENO"; then :
4079
4080else
4081 ac_c_werror_flag=$ac_save_c_werror_flag
4082 CFLAGS="-g"
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4084/* end confdefs.h. */
042acc47 4085
212380e3 4086int
4087main ()
4088{
212380e3 4089
4090 ;
4091 return 0;
4092}
4093_ACEOF
042acc47
WP
4094if ac_fn_c_try_compile "$LINENO"; then :
4095 ac_cv_prog_cc_g=yes
212380e3 4096fi
631ef239 4097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4098fi
631ef239 4099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4100fi
631ef239 4101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
042acc47
WP
4102 ac_c_werror_flag=$ac_save_c_werror_flag
4103fi
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4105$as_echo "$ac_cv_prog_cc_g" >&6; }
4106if test "$ac_test_CFLAGS" = set; then
4107 CFLAGS=$ac_save_CFLAGS
4108elif test $ac_cv_prog_cc_g = yes; then
4109 if test "$GCC" = yes; then
4110 CFLAGS="-g -O2"
4111 else
4112 CFLAGS="-g"
4113 fi
4114else
4115 if test "$GCC" = yes; then
4116 CFLAGS="-O2"
4117 else
4118 CFLAGS=
4119 fi
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4122$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b540af17 4123if ${ac_cv_prog_cc_c89+:} false; then :
042acc47
WP
4124 $as_echo_n "(cached) " >&6
4125else
4126 ac_cv_prog_cc_c89=no
4127ac_save_CC=$CC
4128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4129/* end confdefs.h. */
042acc47
WP
4130#include <stdarg.h>
4131#include <stdio.h>
4132#include <sys/types.h>
4133#include <sys/stat.h>
4134/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4135struct buf { int x; };
4136FILE * (*rcsopen) (struct buf *, struct stat *, int);
4137static char *e (p, i)
4138 char **p;
4139 int i;
4140{
4141 return p[i];
4142}
4143static char *f (char * (*g) (char **, int), char **p, ...)
4144{
4145 char *s;
4146 va_list v;
4147 va_start (v,p);
4148 s = g (p, va_arg (v,int));
4149 va_end (v);
4150 return s;
4151}
4152
4153/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4154 function prototypes and stuff, but not '\xHH' hex character constants.
4155 These don't provoke an error unfortunately, instead are silently treated
4156 as 'x'. The following induces an error, until -std is added to get
4157 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4158 array size at least. It's necessary to write '\x00'==0 to get something
4159 that's true only with -std. */
4160int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4161
4162/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4163 inside strings and character constants. */
4164#define FOO(x) 'x'
4165int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4166
4167int test (int i, double x);
4168struct s1 {int (*f) (int a);};
4169struct s2 {int (*f) (double a);};
4170int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4171int argc;
4172char **argv;
212380e3 4173int
4174main ()
4175{
042acc47 4176return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3 4177 ;
4178 return 0;
4179}
4180_ACEOF
042acc47
WP
4181for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4182 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4183do
4184 CC="$ac_save_CC $ac_arg"
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_prog_cc_c89=$ac_arg
4187fi
4188rm -f core conftest.err conftest.$ac_objext
4189 test "x$ac_cv_prog_cc_c89" != "xno" && break
4190done
4191rm -f conftest.$ac_ext
4192CC=$ac_save_CC
4193
4194fi
4195# AC_CACHE_VAL
4196case "x$ac_cv_prog_cc_c89" in
4197 x)
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4199$as_echo "none needed" >&6; } ;;
4200 xno)
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4202$as_echo "unsupported" >&6; } ;;
4203 *)
4204 CC="$CC $ac_cv_prog_cc_c89"
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4206$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 4207esac
042acc47 4208if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 4209
212380e3 4210fi
631ef239 4211
042acc47
WP
4212ac_ext=c
4213ac_cpp='$CPP $CPPFLAGS'
4214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217
4218ac_ext=c
4219ac_cpp='$CPP $CPPFLAGS'
4220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
4224
4225CFLAGS="$OLD_CFLAGS"
4226
4227ac_aux_dir=
4228for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
b540af17
JH
4229 if test -f "$ac_dir/install-sh"; then
4230 ac_aux_dir=$ac_dir
4231 ac_install_sh="$ac_aux_dir/install-sh -c"
4232 break
4233 elif test -f "$ac_dir/install.sh"; then
4234 ac_aux_dir=$ac_dir
4235 ac_install_sh="$ac_aux_dir/install.sh -c"
4236 break
4237 elif test -f "$ac_dir/shtool"; then
4238 ac_aux_dir=$ac_dir
4239 ac_install_sh="$ac_aux_dir/shtool install -c"
4240 break
4241 fi
212380e3 4242done
042acc47 4243if test -z "$ac_aux_dir"; then
b540af17 4244 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
042acc47 4245fi
212380e3 4246
042acc47
WP
4247# These three variables are undocumented and unsupported,
4248# and are intended to be withdrawn in a future Autoconf release.
4249# They can cause serious problems if a builder's source tree is in a directory
4250# whose full name contains unusual characters.
4251ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4252ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4253ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
212380e3 4254
042acc47
WP
4255
4256
4257
4258subdirs="$subdirs libratbox"
4259
4260
4261
4262if test "$ac_cv_c_compiler_gnu" != yes; then
4263
4264SGS=no
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4266$as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4267case `$CC -version 2>&1` in
4268*TenDRA*)
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4270$as_echo "yes, TenDRA" >&6; }
4271 IRC_CFLAGS=""
4272 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4273 SGS=yes
4274 TenDRA=yes
4275;;
4276*MIPSpro*)
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4278$as_echo "yes, MIPSpro" >&6; }
4279 MIPSpro=yes
4280 SGS=yes
4281;;
4282*)
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284$as_echo "no" >&6; }
4285 TenDRA=no
4286 MIPSpro=no
4287;;
631ef239 4288esac
042acc47
WP
4289
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4291$as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4292case `$CC -V 2>&1` in
4293*Sun*WorkShop* | *Forte*Developer*)
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4295$as_echo "Sun Workshop/Forte" >&6; }
4296 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4297 SunWorkShop=yes
4298 SGS=yes
4299;;
4300*Tru64*)
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4302$as_echo "Tru64 cc" >&6; }
4303 IRC_CFLAGS="-O2"
4304 CPPFLAGS="-I/usr/local/include"
4305 Tru=yes
4306;;
4307*HP*ANSI*)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4309$as_echo "HPUX cc" >&6; }
4310 HPUX=yes
4311 IRC_CFLAGS="+e"
4312;;
4313*)
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315$as_echo "no" >&6; }
4316;;
631ef239 4317esac
212380e3 4318
212380e3 4319fi
631ef239 4320
042acc47
WP
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4322$as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4323OSNAME=`uname -s`
4324case "$OSNAME" in
4325 HP-UX*)
631ef239 4326
042acc47
WP
4327 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4329$as_echo "assuming old HPUX with its own cc" >&6; }
4330 IRC_CFLAGS="$IRC_CFLAGS +e"
4331 HPUX=yes
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4334$as_echo "already using newer HPUX" >&6; }
4335 fi
4336 ;;
4337 SunOS*)
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4339$as_echo "SunOS or Solaris" >&6; }
212380e3 4340
042acc47 4341$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 4342
042acc47
WP
4343 SUN=yes
4344 ;;
4345 AIX*)
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4347$as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4348 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4349 ;;
4350 *)
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352$as_echo "no" >&6; }
4353 ;;
631ef239 4354esac
212380e3 4355
042acc47
WP
4356if test "$ac_cv_c_compiler_gnu" = yes; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4358$as_echo_n "checking if $CC is Apple GCC... " >&6; }
4359
4360 case `$CC -v 2>&1 | tail -n 1` in
4361 *Apple*)
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4363$as_echo "yes" >&6; }
4364 AppleGCC=yes
4365 ;;
4366 *)
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368$as_echo "no" >&6; }
4369 AppleGCC=no
4370 ;;
4371 esac
4372
4373 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
212380e3 4374fi
631ef239 4375
042acc47
WP
4376if test "$ac_cv_prog_cc_g" = yes; then
4377 if test "$Tru" = yes; then
4378 IRC_CFLAGS="$IRC_CFLAGS -g3"
4379 else
4380 IRC_CFLAGS="$IRC_CFLAGS -g"
4381 fi
212380e3 4382fi
212380e3 4383
042acc47
WP
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4385$as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4386if test "$SGS" = "yes"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4388$as_echo "yes" >&6; }
212380e3 4389else
042acc47
WP
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391$as_echo "no" >&6; }
4392fi
212380e3 4393
042acc47
WP
4394# Extract the first word of "mkdep", so it can be a program name with args.
4395set dummy mkdep; ac_word=$2
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397$as_echo_n "checking for $ac_word... " >&6; }
b540af17 4398if ${ac_cv_path_MKDEP+:} false; then :
042acc47
WP
4399 $as_echo_n "(cached) " >&6
4400else
4401 case $MKDEP in
4402 [\\/]* | ?:[\\/]*)
4403 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4404 ;;
4405 *)
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4416 fi
4417done
4418 done
4419IFS=$as_save_IFS
212380e3 4420
042acc47 4421 ;;
631ef239 4422esac
042acc47
WP
4423fi
4424MKDEP=$ac_cv_path_MKDEP
4425if test -n "$MKDEP"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4427$as_echo "$MKDEP" >&6; }
212380e3 4428else
042acc47
WP
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430$as_echo "no" >&6; }
212380e3 4431fi
631ef239 4432
042acc47
WP
4433
4434# Extract the first word of "makedepend", so it can be a program name with args.
4435set dummy makedepend; ac_word=$2
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437$as_echo_n "checking for $ac_word... " >&6; }
b540af17 4438if ${ac_cv_path_MAKEDEPEND+:} false; then :
042acc47
WP
4439 $as_echo_n "(cached) " >&6
4440else
4441 case $MAKEDEPEND in
4442 [\\/]* | ?:[\\/]*)
4443 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4444 ;;
4445 *)
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457done
212380e3 4458 done
042acc47
WP
4459IFS=$as_save_IFS
4460
4461 ;;
4462esac
4463fi
4464MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4465if test -n "$MAKEDEPEND"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4467$as_echo "$MAKEDEPEND" >&6; }
212380e3 4468else
042acc47
WP
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470$as_echo "no" >&6; }
4471fi
212380e3 4472
212380e3 4473
212380e3 4474
042acc47
WP
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4476$as_echo_n "checking how to generate dependency info... " >&6; }
4477
4478STDOUT="> .depend"
4479
4480if test "$ac_cv_c_compiler_gnu" = yes; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4482$as_echo "gcc -MM" >&6; }
4483 MKDEP="$CC -MM"
4484elif test ! -z "$MKDEP"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4486$as_echo "mkdep" >&6; }
4487
4488 if test -z "$Tru"; then
4489 STDOUT=""
4490 else
4491 STDOUT=" 2> /dev/null"
4492 fi
4493elif test "$SunWorkShop" = yes; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4495$as_echo "$CC -xM" >&6; }
4496 MKDEP="$CC -xM"
4497 STDOUT="> .depend 2> /dev/null"
4498elif test ! -z "$MAKEDEPEND"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4500$as_echo "makedepend" >&6; }
4501 MKDEP="$MAKEDEPEND -f-"
212380e3 4502else
042acc47
WP
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4504$as_echo "nothing suitable.. forget it!" >&6; }
4505 MKDEP=":"
212380e3 4506fi
631ef239 4507
042acc47
WP
4508
4509
4510
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4512$as_echo_n "checking for /dev/null... " >&6; }
4513if test -c /dev/null ; then
4514
4515$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4516
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4518$as_echo "yes" >&6; }
212380e3 4519else
212380e3 4520
042acc47
WP
4521$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4522
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4524$as_echo "no - using devnull.log" >&6; }
212380e3 4525fi
631ef239 4526
042acc47
WP
4527if test ! -z "$CFLAGS"; then
4528 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
212380e3 4529fi
631ef239 4530
042acc47
WP
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4532$as_echo_n "checking for library containing strerror... " >&6; }
b540af17 4533if ${ac_cv_search_strerror+:} false; then :
042acc47
WP
4534 $as_echo_n "(cached) " >&6
4535else
4536 ac_func_search_save_LIBS=$LIBS
4537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4538/* end confdefs.h. */
042acc47
WP
4539
4540/* Override any GCC internal prototype to avoid an error.
4541 Use char because int might match the return type of a GCC
4542 builtin and then its argument prototype would still apply. */
4543#ifdef __cplusplus
4544extern "C"
4545#endif
4546char strerror ();
212380e3 4547int
4548main ()
4549{
042acc47 4550return strerror ();
212380e3 4551 ;
4552 return 0;
4553}
4554_ACEOF
042acc47
WP
4555for ac_lib in '' cposix; do
4556 if test -z "$ac_lib"; then
4557 ac_res="none required"
4558 else
4559 ac_res=-l$ac_lib
4560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4561 fi
4562 if ac_fn_c_try_link "$LINENO"; then :
4563 ac_cv_search_strerror=$ac_res
4564fi
4565rm -f core conftest.err conftest.$ac_objext \
4566 conftest$ac_exeext
b540af17 4567 if ${ac_cv_search_strerror+:} false; then :
042acc47
WP
4568 break
4569fi
4570done
b540af17 4571if ${ac_cv_search_strerror+:} false; then :
042acc47 4572
212380e3 4573else
042acc47
WP
4574 ac_cv_search_strerror=no
4575fi
4576rm conftest.$ac_ext
4577LIBS=$ac_func_search_save_LIBS
4578fi
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4580$as_echo "$ac_cv_search_strerror" >&6; }
4581ac_res=$ac_cv_search_strerror
4582if test "$ac_res" != no; then :
4583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 4584
212380e3 4585fi
631ef239 4586
042acc47
WP
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4588$as_echo_n "checking for inline... " >&6; }
b540af17 4589if ${ac_cv_c_inline+:} false; then :
042acc47
WP
4590 $as_echo_n "(cached) " >&6
4591else
4592 ac_cv_c_inline=no
4593for ac_kw in inline __inline__ __inline; do
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595/* end confdefs.h. */
4596#ifndef __cplusplus
4597typedef int foo_t;
4598static $ac_kw foo_t static_foo () {return 0; }
4599$ac_kw foo_t foo () {return 0; }
4600#endif
4601
4602_ACEOF
4603if ac_fn_c_try_compile "$LINENO"; then :
4604 ac_cv_c_inline=$ac_kw
4605fi
631ef239 4606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
042acc47 4607 test "$ac_cv_c_inline" != no && break
212380e3 4608done
042acc47
WP
4609
4610fi
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4612$as_echo "$ac_cv_c_inline" >&6; }
4613
4614case $ac_cv_c_inline in
4615 inline | yes) ;;
4616 *)
4617 case $ac_cv_c_inline in
4618 no) ac_val=;;
4619 *) ac_val=$ac_cv_c_inline;;
4620 esac
4621 cat >>confdefs.h <<_ACEOF
4622#ifndef __cplusplus
4623#define inline $ac_val
4624#endif
4625_ACEOF
4626 ;;
212380e3 4627esac
042acc47
WP
4628
4629if test $ac_cv_c_compiler_gnu = yes; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4631$as_echo_n "checking whether $CC needs -traditional... " >&6; }
b540af17 4632if ${ac_cv_prog_gcc_traditional+:} false; then :
042acc47 4633 $as_echo_n "(cached) " >&6
212380e3 4634else
042acc47
WP
4635 ac_pattern="Autoconf.*'x'"
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637/* end confdefs.h. */
4638#include <sgtty.h>
4639Autoconf TIOCGETP
212380e3 4640_ACEOF
042acc47
WP
4641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4642 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4643 ac_cv_prog_gcc_traditional=yes
4644else
4645 ac_cv_prog_gcc_traditional=no
4646fi
4647rm -f conftest*
4648
4649
4650 if test $ac_cv_prog_gcc_traditional = no; then
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4652/* end confdefs.h. */
042acc47
WP
4653#include <termio.h>
4654Autoconf TCGETA
4655_ACEOF
4656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4657 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4658 ac_cv_prog_gcc_traditional=yes
4659fi
4660rm -f conftest*
212380e3 4661
042acc47
WP
4662 fi
4663fi
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4665$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4666 if test $ac_cv_prog_gcc_traditional = yes; then
4667 CC="$CC -traditional"
4668 fi
4669fi
212380e3 4670
042acc47
WP
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4672$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4673set x ${MAKE-make}
4674ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b540af17 4675if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
042acc47
WP
4676 $as_echo_n "(cached) " >&6
4677else
4678 cat >conftest.make <<\_ACEOF
4679SHELL = /bin/sh
4680all:
4681 @echo '@@@%%%=$(MAKE)=@@@%%%'
212380e3 4682_ACEOF
b540af17 4683# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
042acc47
WP
4684case `${MAKE-make} -f conftest.make 2>/dev/null` in
4685 *@@@%%%=?*=@@@%%%*)
4686 eval ac_cv_prog_make_${ac_make}_set=yes;;
4687 *)
4688 eval ac_cv_prog_make_${ac_make}_set=no;;
631ef239 4689esac
042acc47
WP
4690rm -f conftest.make
4691fi
4692if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4694$as_echo "yes" >&6; }
4695 SET_MAKE=
4696else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698$as_echo "no" >&6; }
4699 SET_MAKE="MAKE=${MAKE-make}"
4700fi
4701
4702# Find a good install program. We prefer a C program (faster),
4703# so one script is as good as another. But avoid the broken or
4704# incompatible versions:
4705# SysV /etc/install, /usr/sbin/install
4706# SunOS /usr/etc/install
4707# IRIX /sbin/install
4708# AIX /bin/install
4709# AmigaOS /C/install, which installs bootblocks on floppy discs
4710# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4711# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4712# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4713# OS/2's system install, which has a completely different semantic
4714# ./install, which can be erroneously created by make from ./install.sh.
4715# Reject install programs that cannot install multiple files.
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4717$as_echo_n "checking for a BSD-compatible install... " >&6; }
4718if test -z "$INSTALL"; then
b540af17 4719if ${ac_cv_path_install+:} false; then :
042acc47
WP
4720 $as_echo_n "(cached) " >&6
4721else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 # Account for people who put trailing slashes in PATH elements.
4728case $as_dir/ in #((
4729 ./ | .// | /[cC]/* | \
4730 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4731 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4732 /usr/ucb/* ) ;;
4733 *)
4734 # OSF1 and SCO ODT 3.0 have their own names for install.
4735 # Don't use installbsd from OSF since it installs stuff as root
4736 # by default.
4737 for ac_prog in ginstall scoinst install; do
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4740 if test $ac_prog = install &&
4741 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4742 # AIX install. It has an incompatible calling convention.
4743 :
4744 elif test $ac_prog = install &&
4745 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4746 # program-specific install script used by HP pwplus--don't use.
4747 :
4748 else
4749 rm -rf conftest.one conftest.two conftest.dir
4750 echo one > conftest.one
4751 echo two > conftest.two
4752 mkdir conftest.dir
4753 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4754 test -s conftest.one && test -s conftest.two &&
4755 test -s conftest.dir/conftest.one &&
4756 test -s conftest.dir/conftest.two
4757 then
4758 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4759 break 3
4760 fi
4761 fi
4762 fi
4763 done
4764 done
4765 ;;
631ef239 4766esac
042acc47
WP
4767
4768 done
4769IFS=$as_save_IFS
4770
4771rm -rf conftest.one conftest.two conftest.dir
4772
4773fi
4774 if test "${ac_cv_path_install+set}" = set; then
4775 INSTALL=$ac_cv_path_install
4776 else
4777 # As a last resort, use the slow shell script. Don't cache a
4778 # value for INSTALL within a source directory, because that will
4779 # break other packages using the cache if that directory is
4780 # removed, or if the value is a relative name.
4781 INSTALL=$ac_install_sh
4782 fi
4783fi
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4785$as_echo "$INSTALL" >&6; }
4786
4787# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4788# It thinks the first close brace ends the variable substitution.
4789test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4790
4791test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4792
4793test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4794
4795# Extract the first word of "rm", so it can be a program name with args.
4796set dummy rm; ac_word=$2
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798$as_echo_n "checking for $ac_word... " >&6; }
b540af17 4799if ${ac_cv_path_RM+:} false; then :
042acc47 4800 $as_echo_n "(cached) " >&6
212380e3 4801else
042acc47
WP
4802 case $RM in
4803 [\\/]* | ?:[\\/]*)
4804 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4805 ;;
4806 *)
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4817 fi
4818done
4819 done
4820IFS=$as_save_IFS
212380e3 4821
042acc47
WP
4822 ;;
4823esac
212380e3 4824fi
042acc47
WP
4825RM=$ac_cv_path_RM
4826if test -n "$RM"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4828$as_echo "$RM" >&6; }
4829else
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831$as_echo "no" >&6; }
212380e3 4832fi
631ef239 4833
4834
042acc47
WP
4835# Extract the first word of "cp", so it can be a program name with args.
4836set dummy cp; ac_word=$2
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838$as_echo_n "checking for $ac_word... " >&6; }
b540af17 4839if ${ac_cv_path_CP+:} false; then :
042acc47
WP
4840 $as_echo_n "(cached) " >&6
4841else
4842 case $CP in
4843 [\\/]* | ?:[\\/]*)
4844 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4845 ;;
4846 *)
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848for as_dir in $PATH
4849do
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4854 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 break 2
4857 fi
4858done
4859 done
4860IFS=$as_save_IFS
631ef239 4861
042acc47
WP
4862 ;;
4863esac
4864fi
4865CP=$ac_cv_path_CP
4866if test -n "$CP"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4868$as_echo "$CP" >&6; }
4869else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871$as_echo "no" >&6; }
4872fi
212380e3 4873
4874
042acc47
WP
4875# Extract the first word of "mv", so it can be a program name with args.
4876set dummy mv; ac_word=$2
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878$as_echo_n "checking for $ac_word... " >&6; }
b540af17 4879if ${ac_cv_path_MV+:} false; then :
042acc47 4880 $as_echo_n "(cached) " >&6
212380e3 4881else
042acc47
WP
4882 case $MV in
4883 [\\/]* | ?:[\\/]*)
4884 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4885 ;;
4886 *)
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888for as_dir in $PATH
4889do
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4897 fi
4898done
4899 done
4900IFS=$as_save_IFS
4901
4902 ;;
631ef239 4903esac
042acc47
WP
4904fi
4905MV=$ac_cv_path_MV
4906if test -n "$MV"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4908$as_echo "$MV" >&6; }
212380e3 4909else
042acc47
WP
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911$as_echo "no" >&6; }
212380e3 4912fi
631ef239 4913
212380e3 4914
042acc47
WP
4915# Extract the first word of "ln", so it can be a program name with args.
4916set dummy ln; ac_word=$2
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918$as_echo_n "checking for $ac_word... " >&6; }
b540af17 4919if ${ac_cv_path_LN+:} false; then :
042acc47 4920 $as_echo_n "(cached) " >&6
212380e3 4921else
042acc47
WP
4922 case $LN in
4923 [\\/]* | ?:[\\/]*)
4924 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4925 ;;
4926 *)
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928for as_dir in $PATH
4929do
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4934 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 break 2
4937 fi
4938done
4939 done
4940IFS=$as_save_IFS
212380e3 4941
042acc47 4942 ;;
631ef239 4943esac
042acc47
WP
4944fi
4945LN=$ac_cv_path_LN
4946if test -n "$LN"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4948$as_echo "$LN" >&6; }
212380e3 4949else
042acc47
WP
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951$as_echo "no" >&6; }
212380e3 4952fi
631ef239 4953
042acc47
WP
4954
4955# Extract the first word of "sed", so it can be a program name with args.
4956set dummy sed; ac_word=$2
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958$as_echo_n "checking for $ac_word... " >&6; }
b540af17 4959if ${ac_cv_path_SED+:} false; then :
042acc47
WP
4960 $as_echo_n "(cached) " >&6
4961else
4962 case $SED in
4963 [\\/]* | ?:[\\/]*)
4964 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4965 ;;
4966 *)
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968for as_dir in $PATH
4969do
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 break 2
4977 fi
4978done
212380e3 4979 done
042acc47
WP
4980IFS=$as_save_IFS
4981
4982 ;;
4983esac
4984fi
4985SED=$ac_cv_path_SED
4986if test -n "$SED"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4988$as_echo "$SED" >&6; }
212380e3 4989else
042acc47
WP
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991$as_echo "no" >&6; }
4992fi
212380e3 4993
212380e3 4994
042acc47
WP
4995# Extract the first word of "ar", so it can be a program name with args.
4996set dummy ar; ac_word=$2
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998$as_echo_n "checking for $ac_word... " >&6; }
b540af17 4999if ${ac_cv_path_AR+:} false; then :
042acc47
WP
5000 $as_echo_n "(cached) " >&6
5001else
5002 case $AR in
5003 [\\/]* | ?:[\\/]*)
5004 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5005 ;;
5006 *)
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008for as_dir in $PATH
5009do
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5014 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5017 fi
5018done
5019 done
5020IFS=$as_save_IFS
212380e3 5021
042acc47 5022 ;;
631ef239 5023esac
042acc47
WP
5024fi
5025AR=$ac_cv_path_AR
5026if test -n "$AR"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5028$as_echo "$AR" >&6; }
212380e3 5029else
042acc47
WP
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031$as_echo "no" >&6; }
212380e3 5032fi
631ef239 5033
042acc47
WP
5034
5035# Extract the first word of "ld", so it can be a program name with args.
5036set dummy ld; ac_word=$2
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038$as_echo_n "checking for $ac_word... " >&6; }
b540af17 5039if ${ac_cv_path_LD+:} false; then :
042acc47 5040 $as_echo_n "(cached) " >&6
212380e3 5041else
042acc47
WP
5042 case $LD in
5043 [\\/]* | ?:[\\/]*)
5044 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5045 ;;
5046 *)
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048for as_dir in $PATH
5049do
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5054 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5057 fi
5058done
5059 done
5060IFS=$as_save_IFS
212380e3 5061
042acc47
WP
5062 ;;
5063esac
212380e3 5064fi
042acc47
WP
5065LD=$ac_cv_path_LD
5066if test -n "$LD"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5068$as_echo "$LD" >&6; }
5069else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071$as_echo "no" >&6; }
212380e3 5072fi
631ef239 5073
212380e3 5074
042acc47
WP
5075# Extract the first word of "ranlib", so it can be a program name with args.
5076set dummy ranlib; ac_word=$2
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078$as_echo_n "checking for $ac_word... " >&6; }
b540af17 5079if ${ac_cv_path_RANLIB+:} false; then :
042acc47 5080 $as_echo_n "(cached) " >&6
212380e3 5081else
042acc47
WP
5082 case $RANLIB in
5083 [\\/]* | ?:[\\/]*)
5084 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5085 ;;
5086 *)
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088for as_dir in $PATH
5089do
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5094 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5097 fi
5098done
5099 done
5100IFS=$as_save_IFS
212380e3 5101
042acc47
WP
5102 ;;
5103esac
5104fi
5105RANLIB=$ac_cv_path_RANLIB
5106if test -n "$RANLIB"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5108$as_echo "$RANLIB" >&6; }
5109else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
212380e3 5112fi
631ef239 5113
042acc47
WP
5114
5115# Extract the first word of "touch", so it can be a program name with args.
5116set dummy touch; ac_word=$2
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118$as_echo_n "checking for $ac_word... " >&6; }
b540af17 5119if ${ac_cv_path_TOUCH+:} false; then :
042acc47
WP
5120 $as_echo_n "(cached) " >&6
5121else
5122 case $TOUCH in
5123 [\\/]* | ?:[\\/]*)
5124 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5125 ;;
5126 *)
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH
5129do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5137 fi
212380e3 5138done
042acc47
WP
5139 done
5140IFS=$as_save_IFS
5141
5142 ;;
212380e3 5143esac
042acc47
WP
5144fi
5145TOUCH=$ac_cv_path_TOUCH
5146if test -n "$TOUCH"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5148$as_echo "$TOUCH" >&6; }
212380e3 5149else
042acc47
WP
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151$as_echo "no" >&6; }
5152fi
212380e3 5153
212380e3 5154
042acc47
WP
5155
5156for ac_prog in 'bison -y' byacc
5157do
5158 # Extract the first word of "$ac_prog", so it can be a program name with args.
5159set dummy $ac_prog; ac_word=$2
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161$as_echo_n "checking for $ac_word... " >&6; }
b540af17 5162if ${ac_cv_prog_YACC+:} false; then :
042acc47 5163 $as_echo_n "(cached) " >&6
212380e3 5164else
042acc47
WP
5165 if test -n "$YACC"; then
5166 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5167else
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_YACC="$ac_prog"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179done
5180 done
5181IFS=$as_save_IFS
212380e3 5182
212380e3 5183fi
5184fi
042acc47
WP
5185YACC=$ac_cv_prog_YACC
5186if test -n "$YACC"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5188$as_echo "$YACC" >&6; }
5189else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191$as_echo "no" >&6; }
212380e3 5192fi
631ef239 5193
5194
042acc47
WP
5195 test -n "$YACC" && break
5196done
5197test -n "$YACC" || YACC="yacc"
212380e3 5198
5199
042acc47 5200if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
b540af17 5201 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
042acc47 5202fi
212380e3 5203
042acc47
WP
5204for ac_prog in flex lex
5205do
5206 # Extract the first word of "$ac_prog", so it can be a program name with args.
5207set dummy $ac_prog; ac_word=$2
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209$as_echo_n "checking for $ac_word... " >&6; }
b540af17 5210if ${ac_cv_prog_LEX+:} false; then :
042acc47 5211 $as_echo_n "(cached) " >&6
212380e3 5212else
042acc47
WP
5213 if test -n "$LEX"; then
5214 ac_cv_prog_LEX="$LEX" # Let the user override the test.
212380e3 5215else
042acc47
WP
5216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217for as_dir in $PATH
5218do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_LEX="$ac_prog"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
631ef239 5227done
042acc47
WP
5228 done
5229IFS=$as_save_IFS
631ef239 5230
042acc47
WP
5231fi
5232fi
5233LEX=$ac_cv_prog_LEX
5234if test -n "$LEX"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5236$as_echo "$LEX" >&6; }
631ef239 5237else
042acc47
WP
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239$as_echo "no" >&6; }
631ef239 5240fi
5241
5242
042acc47
WP
5243 test -n "$LEX" && break
5244done
5245test -n "$LEX" || LEX=":"
212380e3 5246
042acc47
WP
5247if test "x$LEX" != "x:"; then
5248 cat >conftest.l <<_ACEOF
5249%%
5250a { ECHO; }
5251b { REJECT; }
5252c { yymore (); }
5253d { yyless (1); }
5254e { yyless (input () != 0); }
5255f { unput (yytext[0]); }
5256. { BEGIN INITIAL; }
5257%%
5258#ifdef YYTEXT_POINTER
5259extern char *yytext;
212380e3 5260#endif
212380e3 5261int
042acc47 5262main (void)
212380e3 5263{
042acc47 5264 return ! yylex () + ! yywrap ();
212380e3 5265}
5266_ACEOF
042acc47 5267{ { ac_try="$LEX conftest.l"
631ef239 5268case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271esac
042acc47
WP
5272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5273$as_echo "$ac_try_echo"; } >&5
5274 (eval "$LEX conftest.l") 2>&5
212380e3 5275 ac_status=$?
042acc47
WP
5276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5277 test $ac_status = 0; }
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5279$as_echo_n "checking lex output file root... " >&6; }
b540af17 5280if ${ac_cv_prog_lex_root+:} false; then :
042acc47 5281 $as_echo_n "(cached) " >&6
212380e3 5282else
212380e3 5283
042acc47
WP
5284if test -f lex.yy.c; then
5285 ac_cv_prog_lex_root=lex.yy
5286elif test -f lexyy.c; then
5287 ac_cv_prog_lex_root=lexyy
5288else
b540af17 5289 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
042acc47
WP
5290fi
5291fi
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5293$as_echo "$ac_cv_prog_lex_root" >&6; }
5294LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5295
5296if test -z "${LEXLIB+set}"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5298$as_echo_n "checking lex library... " >&6; }
b540af17 5299if ${ac_cv_lib_lex+:} false; then :
042acc47
WP
5300 $as_echo_n "(cached) " >&6
5301else
631ef239 5302
042acc47
WP
5303 ac_save_LIBS=$LIBS
5304 ac_cv_lib_lex='none needed'
5305 for ac_lib in '' -lfl -ll; do
5306 LIBS="$ac_lib $ac_save_LIBS"
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308/* end confdefs.h. */
5309`cat $LEX_OUTPUT_ROOT.c`
5310_ACEOF
5311if ac_fn_c_try_link "$LINENO"; then :
5312 ac_cv_lib_lex=$ac_lib
212380e3 5313fi
042acc47
WP
5314rm -f core conftest.err conftest.$ac_objext \
5315 conftest$ac_exeext conftest.$ac_ext
5316 test "$ac_cv_lib_lex" != 'none needed' && break
5317 done
5318 LIBS=$ac_save_LIBS
631ef239 5319
631ef239 5320fi
042acc47
WP
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5322$as_echo "$ac_cv_lib_lex" >&6; }
5323 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5324fi
5325
5326
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5328$as_echo_n "checking whether yytext is a pointer... " >&6; }
b540af17 5329if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
042acc47 5330 $as_echo_n "(cached) " >&6
631ef239 5331else
042acc47
WP
5332 # POSIX says lex can declare yytext either as a pointer or an array; the
5333# default is implementation-dependent. Figure out which it is, since
5334# not all implementations provide the %pointer and %array declarations.
5335ac_cv_prog_lex_yytext_pointer=no
5336ac_save_LIBS=$LIBS
5337LIBS="$LEXLIB $ac_save_LIBS"
5338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339/* end confdefs.h. */
b540af17
JH
5340
5341 #define YYTEXT_POINTER 1
042acc47
WP
5342`cat $LEX_OUTPUT_ROOT.c`
5343_ACEOF
5344if ac_fn_c_try_link "$LINENO"; then :
5345 ac_cv_prog_lex_yytext_pointer=yes
212380e3 5346fi
042acc47
WP
5347rm -f core conftest.err conftest.$ac_objext \
5348 conftest$ac_exeext conftest.$ac_ext
5349LIBS=$ac_save_LIBS
5350
212380e3 5351fi
042acc47
WP
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5353$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5354if test $ac_cv_prog_lex_yytext_pointer = yes; then
212380e3 5355
042acc47
WP
5356$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5357
5358fi
5359rm -f conftest.l $LEX_OUTPUT_ROOT.c
5360
5361fi
5362
5363if test "$LEX" = ":"; then
b540af17 5364 as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
212380e3 5365fi
5366
bf9bfd26
JH
5367# Check whether --enable-fhs-paths was given.
5368if test "${enable_fhs_paths+set}" = set; then :
5369 enableval=$enable_fhs_paths;
5370else
5371 if test "$libexecdir" = '${exec_prefix}/libexec' && \
5372 test "$localstatedir" = '${prefix}/var' && \
5373 test "$libdir" = '${exec_prefix}/lib'; then :
5374 enable_fhs_paths=no
5375else
5376 enable_fhs_paths=yes
5377fi
5378
5379fi
5380
5381if test "x$enable_fhs_paths" = "xyes"; then :
5382 pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}'
5383 rundir=${rundir-'${prefix}/run'}
5384 pkgrundir='${rundir}/${PACKAGE_TARNAME}'
5385 pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}'
5386else
5387 libexecdir='${bindir}'
5388 pkglibexecdir='${libexecdir}'
5389 rundir='${sysconfdir}'
5390 pkgrundir='${rundir}'
042acc47 5391 localstatedir='${prefix}'
bf9bfd26 5392 pkglocalstatedir='${sysconfdir}'
631ef239 5393fi
bf9bfd26
JH
5394pkglibdir='${libdir}/${PACKAGE_TARNAME}'
5395
5396
5397
5398
5399
5400 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5401 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5402 last_ac_define_dir=`eval echo $pkglocalstatedir`
5403 ac_define_dir=`eval echo $last_ac_define_dir`
5404 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5405 last_ac_define_dir="$ac_define_dir"
5406 ac_define_dir=`eval echo $last_ac_define_dir`
5407 done
5408 PKGLOCALSTATEDIR="$ac_define_dir"
5409
5410
5411cat >>confdefs.h <<_ACEOF
5412#define PKGLOCALSTATEDIR "$ac_define_dir"
5413_ACEOF
5414
5415
5416
5417
5418 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5419 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5420 last_ac_define_dir=`eval echo $pkglibexecdir`
5421 ac_define_dir=`eval echo $last_ac_define_dir`
5422 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5423 last_ac_define_dir="$ac_define_dir"
5424 ac_define_dir=`eval echo $last_ac_define_dir`
5425 done
5426 PKGLIBEXECDIR="$ac_define_dir"
5427
5428
5429cat >>confdefs.h <<_ACEOF
5430#define PKGLIBEXECDIR "$ac_define_dir"
5431_ACEOF
5432
5433
212380e3 5434
042acc47
WP
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5436$as_echo_n "checking for ANSI C header files... " >&6; }
b540af17 5437if ${ac_cv_header_stdc+:} false; then :
042acc47 5438 $as_echo_n "(cached) " >&6
212380e3 5439else
042acc47 5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5441/* end confdefs.h. */
042acc47
WP
5442#include <stdlib.h>
5443#include <stdarg.h>
5444#include <string.h>
5445#include <float.h>
212380e3 5446
5447int
5448main ()
5449{
042acc47 5450
212380e3 5451 ;
5452 return 0;
5453}
5454_ACEOF
042acc47
WP
5455if ac_fn_c_try_compile "$LINENO"; then :
5456 ac_cv_header_stdc=yes
212380e3 5457else
042acc47 5458 ac_cv_header_stdc=no
212380e3 5459fi
631ef239 5460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5461
042acc47
WP
5462if test $ac_cv_header_stdc = yes; then
5463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465/* end confdefs.h. */
5466#include <string.h>
5467
212380e3 5468_ACEOF
042acc47
WP
5469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5470 $EGREP "memchr" >/dev/null 2>&1; then :
5471
5472else
5473 ac_cv_header_stdc=no
5474fi
5475rm -f conftest*
212380e3 5476
5477fi
5478
042acc47
WP
5479if test $ac_cv_header_stdc = yes; then
5480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h. */
5483#include <stdlib.h>
5484
5485_ACEOF
5486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5487 $EGREP "free" >/dev/null 2>&1; then :
212380e3 5488
212380e3 5489else
042acc47 5490 ac_cv_header_stdc=no
631ef239 5491fi
042acc47 5492rm -f conftest*
631ef239 5493
042acc47 5494fi
212380e3 5495
042acc47
WP
5496if test $ac_cv_header_stdc = yes; then
5497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5498 if test "$cross_compiling" = yes; then :
5499 :
212380e3 5500else
042acc47 5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5502/* end confdefs.h. */
042acc47
WP
5503#include <ctype.h>
5504#include <stdlib.h>
5505#if ((' ' & 0x0FF) == 0x020)
5506# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5507# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5508#else
5509# define ISLOWER(c) \
5510 (('a' <= (c) && (c) <= 'i') \
5511 || ('j' <= (c) && (c) <= 'r') \
5512 || ('s' <= (c) && (c) <= 'z'))
5513# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
212380e3 5514#endif
042acc47
WP
5515
5516#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3 5517int
5518main ()
5519{
042acc47
WP
5520 int i;
5521 for (i = 0; i < 256; i++)
5522 if (XOR (islower (i), ISLOWER (i))
5523 || toupper (i) != TOUPPER (i))
5524 return 2;
212380e3 5525 return 0;
5526}
5527_ACEOF
042acc47 5528if ac_fn_c_try_run "$LINENO"; then :
212380e3 5529
042acc47
WP
5530else
5531 ac_cv_header_stdc=no
631ef239 5532fi
042acc47
WP
5533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5534 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 5535fi
042acc47 5536
212380e3 5537fi
212380e3 5538fi
042acc47
WP
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5540$as_echo "$ac_cv_header_stdc" >&6; }
5541if test $ac_cv_header_stdc = yes; then
5542
5543$as_echo "#define STDC_HEADERS 1" >>confdefs.h
212380e3 5544
5545fi
5546
5547
042acc47
WP
5548for 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
5549do :
5550 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5551ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
b540af17 5552if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
042acc47
WP
5553 cat >>confdefs.h <<_ACEOF
5554#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5555_ACEOF
212380e3 5556
212380e3 5557fi
5558
042acc47 5559done
212380e3 5560
5561
212380e3 5562
042acc47
WP
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5564$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b540af17 5565if ${ac_cv_c_const+:} false; then :
042acc47
WP
5566 $as_echo_n "(cached) " >&6
5567else
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569/* end confdefs.h. */
212380e3 5570
042acc47
WP
5571int
5572main ()
5573{
5574/* FIXME: Include the comments suggested by Paul. */
5575#ifndef __cplusplus
5576 /* Ultrix mips cc rejects this. */
5577 typedef int charset[2];
5578 const charset cs;
5579 /* SunOS 4.1.1 cc rejects this. */
5580 char const *const *pcpcc;
5581 char **ppc;
5582 /* NEC SVR4.0.2 mips cc rejects this. */
5583 struct point {int x, y;};
5584 static struct point const zero = {0,0};
5585 /* AIX XL C 1.02.0.0 rejects this.
5586 It does not let you subtract one const X* pointer from another in
5587 an arm of an if-expression whose if-part is not a constant
5588 expression */
5589 const char *g = "string";
5590 pcpcc = &g + (g ? g-g : 0);
5591 /* HPUX 7.0 cc rejects these. */
5592 ++pcpcc;
5593 ppc = (char**) pcpcc;
5594 pcpcc = (char const *const *) ppc;
5595 { /* SCO 3.2v4 cc rejects this. */
5596 char *t;
5597 char const *s = 0 ? (char *) 0 : (char const *) 0;
212380e3 5598
042acc47
WP
5599 *t++ = 0;
5600 if (s) return 0;
5601 }
5602 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5603 int x[] = {25, 17};
5604 const int *foo = &x[0];
5605 ++foo;
5606 }
5607 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5608 typedef const int *iptr;
5609 iptr p = 0;
5610 ++p;
5611 }
5612 { /* AIX XL C 1.02.0.0 rejects this saying
5613 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5614 struct s { int j; const int *ap[3]; };
5615 struct s *b; b->j = 5;
5616 }
5617 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5618 const int foo = 10;
5619 if (!foo) return 0;
5620 }
5621 return !cs[0] && !zero.x;
5622#endif
212380e3 5623
042acc47
WP
5624 ;
5625 return 0;
5626}
212380e3 5627_ACEOF
042acc47
WP
5628if ac_fn_c_try_compile "$LINENO"; then :
5629 ac_cv_c_const=yes
212380e3 5630else
042acc47 5631 ac_cv_c_const=no
212380e3 5632fi
631ef239 5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5634fi
042acc47
WP
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5636$as_echo "$ac_cv_c_const" >&6; }
5637if test $ac_cv_c_const = no; then
212380e3 5638
042acc47 5639$as_echo "#define const /**/" >>confdefs.h
212380e3 5640
5641fi
5642
042acc47
WP
5643if test "$ac_cv_header_machine_endian_h" = "no" ; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5645$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b540af17 5646if ${ac_cv_c_bigendian+:} false; then :
042acc47 5647 $as_echo_n "(cached) " >&6
212380e3 5648else
042acc47
WP
5649 ac_cv_c_bigendian=unknown
5650 # See if we're dealing with a universal compiler.
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652/* end confdefs.h. */
5653#ifndef __APPLE_CC__
5654 not a universal capable compiler
5655 #endif
5656 typedef int dummy;
5657
5658_ACEOF
5659if ac_fn_c_try_compile "$LINENO"; then :
5660
5661 # Check for potential -arch flags. It is not universal unless
5662 # there are at least two -arch flags with different values.
5663 ac_arch=
5664 ac_prev=
5665 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5666 if test -n "$ac_prev"; then
5667 case $ac_word in
5668 i?86 | x86_64 | ppc | ppc64)
5669 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5670 ac_arch=$ac_word
5671 else
5672 ac_cv_c_bigendian=universal
5673 break
5674 fi
5675 ;;
5676 esac
5677 ac_prev=
5678 elif test "x$ac_word" = "x-arch"; then
5679 ac_prev=arch
5680 fi
5681 done
5682fi
5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 if test $ac_cv_c_bigendian = unknown; then
5685 # See if sys/param.h defines the BYTE_ORDER macro.
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5687/* end confdefs.h. */
5688#include <sys/types.h>
042acc47 5689 #include <sys/param.h>
212380e3 5690
5691int
5692main ()
5693{
042acc47
WP
5694#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5695 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5696 && LITTLE_ENDIAN)
5697 bogus endian macros
5698 #endif
212380e3 5699
5700 ;
5701 return 0;
5702}
5703_ACEOF
042acc47 5704if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5705 # It does; now see whether it defined to BIG_ENDIAN or not.
042acc47 5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5707/* end confdefs.h. */
5708#include <sys/types.h>
042acc47 5709 #include <sys/param.h>
212380e3 5710
5711int
5712main ()
5713{
5714#if BYTE_ORDER != BIG_ENDIAN
042acc47
WP
5715 not big endian
5716 #endif
212380e3 5717
5718 ;
5719 return 0;
5720}
5721_ACEOF
042acc47 5722if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5723 ac_cv_c_bigendian=yes
5724else
042acc47 5725 ac_cv_c_bigendian=no
212380e3 5726fi
631ef239 5727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
042acc47
WP
5728fi
5729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 fi
5731 if test $ac_cv_c_bigendian = unknown; then
5732 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734/* end confdefs.h. */
5735#include <limits.h>
212380e3 5736
042acc47
WP
5737int
5738main ()
5739{
5740#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5741 bogus endian macros
5742 #endif
5743
5744 ;
5745 return 0;
5746}
212380e3 5747_ACEOF
042acc47
WP
5748if ac_fn_c_try_compile "$LINENO"; then :
5749 # It does; now see whether it defined to _BIG_ENDIAN or not.
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5751/* end confdefs.h. */
042acc47
WP
5752#include <limits.h>
5753
212380e3 5754int
5755main ()
5756{
042acc47
WP
5757#ifndef _BIG_ENDIAN
5758 not big endian
5759 #endif
5760
212380e3 5761 ;
5762 return 0;
5763}
5764_ACEOF
042acc47 5765if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5766 ac_cv_c_bigendian=yes
042acc47
WP
5767else
5768 ac_cv_c_bigendian=no
212380e3 5769fi
042acc47 5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5771fi
042acc47
WP
5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 fi
5774 if test $ac_cv_c_bigendian = unknown; then
5775 # Compile a test program.
5776 if test "$cross_compiling" = yes; then :
5777 # Try to guess by grepping values from an object file.
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779/* end confdefs.h. */
5780short int ascii_mm[] =
5781 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5782 short int ascii_ii[] =
5783 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5784 int use_ascii (int i) {
5785 return ascii_mm[i] + ascii_ii[i];
5786 }
5787 short int ebcdic_ii[] =
5788 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5789 short int ebcdic_mm[] =
5790 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5791 int use_ebcdic (int i) {
5792 return ebcdic_mm[i] + ebcdic_ii[i];
5793 }
5794 extern int foo;
631ef239 5795
042acc47
WP
5796int
5797main ()
5798{
5799return use_ascii (foo) == use_ebcdic (foo);
5800 ;
5801 return 0;
5802}
5803_ACEOF
5804if ac_fn_c_try_compile "$LINENO"; then :
5805 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5806 ac_cv_c_bigendian=yes
5807 fi
5808 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5809 if test "$ac_cv_c_bigendian" = unknown; then
5810 ac_cv_c_bigendian=no
5811 else
5812 # finding both strings is unlikely to happen, but who knows?
5813 ac_cv_c_bigendian=unknown
5814 fi
5815 fi
212380e3 5816fi
631ef239 5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5818else
042acc47 5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5820/* end confdefs.h. */
631ef239 5821$ac_includes_default
212380e3 5822int
5823main ()
5824{
631ef239 5825
042acc47
WP
5826 /* Are we little or big endian? From Harbison&Steele. */
5827 union
5828 {
5829 long int l;
5830 char c[sizeof (long int)];
5831 } u;
5832 u.l = 1;
5833 return u.c[sizeof (long int) - 1] == 1;
631ef239 5834
5835 ;
5836 return 0;
212380e3 5837}
5838_ACEOF
042acc47 5839if ac_fn_c_try_run "$LINENO"; then :
212380e3 5840 ac_cv_c_bigendian=no
5841else
042acc47 5842 ac_cv_c_bigendian=yes
212380e3 5843fi
042acc47
WP
5844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5845 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 5846fi
631ef239 5847
042acc47 5848 fi
212380e3 5849fi
042acc47
WP
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5851$as_echo "$ac_cv_c_bigendian" >&6; }
5852 case $ac_cv_c_bigendian in #(
5853 yes)
5854 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5855;; #(
5856 no)
5857 ;; #(
5858 universal)
5859
5860$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5861
5862 ;; #(
5863 *)
b540af17 5864 as_fn_error $? "unknown endianness
042acc47
WP
5865 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5866 esac
631ef239 5867
212380e3 5868fi
042acc47 5869ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
b540af17 5870if test "x$ac_cv_type_pid_t" = xyes; then :
212380e3 5871
042acc47 5872else
212380e3 5873
042acc47
WP
5874cat >>confdefs.h <<_ACEOF
5875#define pid_t int
5876_ACEOF
212380e3 5877
212380e3 5878fi
042acc47
WP
5879
5880ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
b540af17 5881if test "x$ac_cv_type_size_t" = xyes; then :
042acc47 5882
212380e3 5883else
042acc47
WP
5884
5885cat >>confdefs.h <<_ACEOF
5886#define size_t unsigned int
212380e3 5887_ACEOF
042acc47
WP
5888
5889fi
5890
5891# The cast to long int works around a bug in the HP C Compiler
5892# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5893# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5894# This bug is HP SR number 8606223364.
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5896$as_echo_n "checking size of short... " >&6; }
b540af17 5897if ${ac_cv_sizeof_short+:} false; then :
042acc47 5898 $as_echo_n "(cached) " >&6
212380e3 5899else
042acc47
WP
5900 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5901
5902else
5903 if test "$ac_cv_type_short" = yes; then
5904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b540af17
JH
5906as_fn_error 77 "cannot compute sizeof (short)
5907See \`config.log' for more details" "$LINENO" 5; }
042acc47
WP
5908 else
5909 ac_cv_sizeof_short=0
5910 fi
5911fi
212380e3 5912
212380e3 5913fi
042acc47
WP
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5915$as_echo "$ac_cv_sizeof_short" >&6; }
631ef239 5916
212380e3 5917
042acc47
WP
5918
5919cat >>confdefs.h <<_ACEOF
5920#define SIZEOF_SHORT $ac_cv_sizeof_short
212380e3 5921_ACEOF
042acc47
WP
5922
5923
5924# The cast to long int works around a bug in the HP C Compiler
5925# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5926# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5927# This bug is HP SR number 8606223364.
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5929$as_echo_n "checking size of int... " >&6; }
b540af17 5930if ${ac_cv_sizeof_int+:} false; then :
042acc47
WP
5931 $as_echo_n "(cached) " >&6
5932else
5933 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5934
5935else
5936 if test "$ac_cv_type_int" = yes; then
5937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b540af17
JH
5939as_fn_error 77 "cannot compute sizeof (int)
5940See \`config.log' for more details" "$LINENO" 5; }
042acc47
WP
5941 else
5942 ac_cv_sizeof_int=0
5943 fi
5944fi
5945
5946fi
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5948$as_echo "$ac_cv_sizeof_int" >&6; }
5949
5950
5951
5952cat >>confdefs.h <<_ACEOF
5953#define SIZEOF_INT $ac_cv_sizeof_int
212380e3 5954_ACEOF
042acc47
WP
5955
5956
5957# The cast to long int works around a bug in the HP C Compiler
5958# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5959# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5960# This bug is HP SR number 8606223364.
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5962$as_echo_n "checking size of long... " >&6; }
b540af17 5963if ${ac_cv_sizeof_long+:} false; then :
042acc47 5964 $as_echo_n "(cached) " >&6
212380e3 5965else
042acc47 5966 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
212380e3 5967
042acc47
WP
5968else
5969 if test "$ac_cv_type_long" = yes; then
5970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b540af17
JH
5972as_fn_error 77 "cannot compute sizeof (long)
5973See \`config.log' for more details" "$LINENO" 5; }
042acc47
WP
5974 else
5975 ac_cv_sizeof_long=0
5976 fi
212380e3 5977fi
631ef239 5978
042acc47
WP
5979fi
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5981$as_echo "$ac_cv_sizeof_long" >&6; }
212380e3 5982
631ef239 5983
042acc47
WP
5984
5985cat >>confdefs.h <<_ACEOF
5986#define SIZEOF_LONG $ac_cv_sizeof_long
5987_ACEOF
5988
5989
5990# The cast to long int works around a bug in the HP C Compiler
5991# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5992# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5993# This bug is HP SR number 8606223364.
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5995$as_echo_n "checking size of long long... " >&6; }
b540af17 5996if ${ac_cv_sizeof_long_long+:} false; then :
042acc47
WP
5997 $as_echo_n "(cached) " >&6
5998else
5999 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6000
212380e3 6001else
042acc47
WP
6002 if test "$ac_cv_type_long_long" = yes; then
6003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b540af17
JH
6005as_fn_error 77 "cannot compute sizeof (long long)
6006See \`config.log' for more details" "$LINENO" 5; }
042acc47
WP
6007 else
6008 ac_cv_sizeof_long_long=0
6009 fi
212380e3 6010fi
212380e3 6011
6012fi
042acc47
WP
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6014$as_echo "$ac_cv_sizeof_long_long" >&6; }
212380e3 6015
6016
6017
042acc47
WP
6018cat >>confdefs.h <<_ACEOF
6019#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6020_ACEOF
212380e3 6021
212380e3 6022
212380e3 6023
042acc47
WP
6024
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6026$as_echo_n "checking for library containing socket... " >&6; }
b540af17 6027if ${ac_cv_search_socket+:} false; then :
042acc47
WP
6028 $as_echo_n "(cached) " >&6
6029else
6030 ac_func_search_save_LIBS=$LIBS
6031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6032/* end confdefs.h. */
042acc47
WP
6033
6034/* Override any GCC internal prototype to avoid an error.
6035 Use char because int might match the return type of a GCC
6036 builtin and then its argument prototype would still apply. */
6037#ifdef __cplusplus
6038extern "C"
6039#endif
6040char socket ();
212380e3 6041int
6042main ()
6043{
042acc47 6044return socket ();
212380e3 6045 ;
6046 return 0;
6047}
6048_ACEOF
042acc47
WP
6049for ac_lib in '' socket; do
6050 if test -z "$ac_lib"; then
6051 ac_res="none required"
6052 else
6053 ac_res=-l$ac_lib
6054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6055 fi
6056 if ac_fn_c_try_link "$LINENO"; then :
6057 ac_cv_search_socket=$ac_res
6058fi
6059rm -f core conftest.err conftest.$ac_objext \
6060 conftest$ac_exeext
b540af17 6061 if ${ac_cv_search_socket+:} false; then :
042acc47
WP
6062 break
6063fi
6064done
b540af17 6065if ${ac_cv_search_socket+:} false; then :
212380e3 6066
6067else
042acc47
WP
6068 ac_cv_search_socket=no
6069fi
6070rm conftest.$ac_ext
6071LIBS=$ac_func_search_save_LIBS
6072fi
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6074$as_echo "$ac_cv_search_socket" >&6; }
6075ac_res=$ac_cv_search_socket
6076if test "$ac_res" != no; then :
6077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6078
042acc47 6079else
b540af17 6080 as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5
212380e3 6081fi
631ef239 6082
212380e3 6083
042acc47
WP
6084if test x"$SUN" = xyes; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6086$as_echo_n "checking for library containing inet_ntoa... " >&6; }
b540af17 6087if ${ac_cv_search_inet_ntoa+:} false; then :
042acc47
WP
6088 $as_echo_n "(cached) " >&6
6089else
6090 ac_func_search_save_LIBS=$LIBS
6091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6092/* end confdefs.h. */
042acc47
WP
6093
6094/* Override any GCC internal prototype to avoid an error.
6095 Use char because int might match the return type of a GCC
6096 builtin and then its argument prototype would still apply. */
6097#ifdef __cplusplus
6098extern "C"
6099#endif
6100char inet_ntoa ();
212380e3 6101int
6102main ()
6103{
042acc47 6104return inet_ntoa ();
212380e3 6105 ;
6106 return 0;
6107}
6108_ACEOF
042acc47
WP
6109for ac_lib in '' nsl; do
6110 if test -z "$ac_lib"; then
6111 ac_res="none required"
6112 else
6113 ac_res=-l$ac_lib
6114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6115 fi
6116 if ac_fn_c_try_link "$LINENO"; then :
6117 ac_cv_search_inet_ntoa=$ac_res
6118fi
6119rm -f core conftest.err conftest.$ac_objext \
6120 conftest$ac_exeext
b540af17 6121 if ${ac_cv_search_inet_ntoa+:} false; then :
042acc47
WP
6122 break
6123fi
6124done
b540af17 6125if ${ac_cv_search_inet_ntoa+:} false; then :
212380e3 6126
6127else
042acc47
WP
6128 ac_cv_search_inet_ntoa=no
6129fi
6130rm conftest.$ac_ext
6131LIBS=$ac_func_search_save_LIBS
6132fi
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6134$as_echo "$ac_cv_search_inet_ntoa" >&6; }
6135ac_res=$ac_cv_search_inet_ntoa
6136if test "$ac_res" != no; then :
6137 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6138
042acc47 6139else
b540af17 6140 as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5
212380e3 6141fi
631ef239 6142
042acc47 6143fi
212380e3 6144
042acc47
WP
6145ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6146#include <sys/socket.h>
6147"
b540af17 6148if test "x$ac_cv_type_socklen_t" = xyes; then :
212380e3 6149
6150else
6151
042acc47 6152$as_echo "#define socklen_t unsigned int" >>confdefs.h
212380e3 6153
042acc47 6154fi
212380e3 6155
6156
042acc47
WP
6157# Check whether --enable-ipv6 was given.
6158if test "${enable_ipv6+set}" = set; then :
6159 enableval=$enable_ipv6; ipv6=$enableval
212380e3 6160else
042acc47
WP
6161 ipv6=no
6162fi
212380e3 6163
212380e3 6164
042acc47
WP
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6166$as_echo_n "checking for library containing crypt... " >&6; }
b540af17 6167if ${ac_cv_search_crypt+:} false; then :
042acc47
WP
6168 $as_echo_n "(cached) " >&6
6169else
6170 ac_func_search_save_LIBS=$LIBS
6171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172/* end confdefs.h. */
212380e3 6173
631ef239 6174/* Override any GCC internal prototype to avoid an error.
6175 Use char because int might match the return type of a GCC
6176 builtin and then its argument prototype would still apply. */
212380e3 6177#ifdef __cplusplus
6178extern "C"
212380e3 6179#endif
042acc47 6180char crypt ();
212380e3 6181int
6182main ()
6183{
042acc47 6184return crypt ();
212380e3 6185 ;
6186 return 0;
6187}
6188_ACEOF
042acc47
WP
6189for ac_lib in '' crypt descrypt; do
6190 if test -z "$ac_lib"; then
6191 ac_res="none required"
6192 else
6193 ac_res=-l$ac_lib
6194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6195 fi
6196 if ac_fn_c_try_link "$LINENO"; then :
6197 ac_cv_search_crypt=$ac_res
6198fi
6199rm -f core conftest.err conftest.$ac_objext \
6200 conftest$ac_exeext
b540af17 6201 if ${ac_cv_search_crypt+:} false; then :
042acc47
WP
6202 break
6203fi
6204done
b540af17 6205if ${ac_cv_search_crypt+:} false; then :
042acc47 6206
212380e3 6207else
042acc47
WP
6208 ac_cv_search_crypt=no
6209fi
6210rm conftest.$ac_ext
6211LIBS=$ac_func_search_save_LIBS
6212fi
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6214$as_echo "$ac_cv_search_crypt" >&6; }
6215ac_res=$ac_cv_search_crypt
6216if test "$ac_res" != no; then :
6217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6218
212380e3 6219fi
631ef239 6220
042acc47
WP
6221
6222CRYPT_LIB=$ac_cv_search_crypt
6223
6224if test "$CRYPT_LIB" = "none required"; then
6225 unset CRYPT_LIB
6226elif test "$CRYPT_LIB" = no; then
6227 unset CRYPT_LIB
212380e3 6228fi
042acc47
WP
6229
6230
6231
6232if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6233 VICONF=viconf
6234 else
6235 VICONF=""
6236fi
6237
6238
6239
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6241$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
b540af17 6242if ${gcc_cv_header_string+:} false; then :
042acc47
WP
6243 $as_echo_n "(cached) " >&6
6244else
6245
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247/* end confdefs.h. */
6248#include <string.h>
6249 #include <strings.h>
212380e3 6250_ACEOF
042acc47
WP
6251if ac_fn_c_try_compile "$LINENO"; then :
6252 gcc_cv_header_string=yes
6253else
6254 gcc_cv_header_string=no
6255fi
6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6257
6258fi
042acc47
WP
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6260$as_echo "$gcc_cv_header_string" >&6; }
212380e3 6261
042acc47
WP
6262if test "$gcc_cv_header_string" = "yes"; then
6263
6264$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6265
6266fi
212380e3 6267
042acc47
WP
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6269$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b540af17 6270if ${ac_cv_c_bigendian+:} false; then :
042acc47
WP
6271 $as_echo_n "(cached) " >&6
6272else
6273 ac_cv_c_bigendian=unknown
6274 # See if we're dealing with a universal compiler.
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h. */
6277#ifndef __APPLE_CC__
6278 not a universal capable compiler
6279 #endif
6280 typedef int dummy;
6281
6282_ACEOF
6283if ac_fn_c_try_compile "$LINENO"; then :
6284
6285 # Check for potential -arch flags. It is not universal unless
6286 # there are at least two -arch flags with different values.
6287 ac_arch=
6288 ac_prev=
6289 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6290 if test -n "$ac_prev"; then
6291 case $ac_word in
6292 i?86 | x86_64 | ppc | ppc64)
6293 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6294 ac_arch=$ac_word
6295 else
6296 ac_cv_c_bigendian=universal
6297 break
6298 fi
6299 ;;
6300 esac
6301 ac_prev=
6302 elif test "x$ac_word" = "x-arch"; then
6303 ac_prev=arch
6304 fi
6305 done
212380e3 6306fi
042acc47
WP
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 if test $ac_cv_c_bigendian = unknown; then
6309 # See if sys/param.h defines the BYTE_ORDER macro.
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311/* end confdefs.h. */
6312#include <sys/types.h>
6313 #include <sys/param.h>
6314
6315int
6316main ()
6317{
6318#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6319 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6320 && LITTLE_ENDIAN)
6321 bogus endian macros
6322 #endif
6323
6324 ;
6325 return 0;
6326}
6327_ACEOF
6328if ac_fn_c_try_compile "$LINENO"; then :
6329 # It does; now see whether it defined to BIG_ENDIAN or not.
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331/* end confdefs.h. */
6332#include <sys/types.h>
6333 #include <sys/param.h>
6334
6335int
6336main ()
6337{
6338#if BYTE_ORDER != BIG_ENDIAN
6339 not big endian
6340 #endif
212380e3 6341
042acc47
WP
6342 ;
6343 return 0;
6344}
6345_ACEOF
6346if ac_fn_c_try_compile "$LINENO"; then :
6347 ac_cv_c_bigendian=yes
212380e3 6348else
042acc47
WP
6349 ac_cv_c_bigendian=no
6350fi
6351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352fi
6353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 fi
6355 if test $ac_cv_c_bigendian = unknown; then
6356 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358/* end confdefs.h. */
6359#include <limits.h>
6360
6361int
6362main ()
6363{
6364#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6365 bogus endian macros
6366 #endif
6367
6368 ;
6369 return 0;
6370}
212380e3 6371_ACEOF
042acc47
WP
6372if ac_fn_c_try_compile "$LINENO"; then :
6373 # It does; now see whether it defined to _BIG_ENDIAN or not.
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6375/* end confdefs.h. */
042acc47
WP
6376#include <limits.h>
6377
212380e3 6378int
6379main ()
6380{
042acc47
WP
6381#ifndef _BIG_ENDIAN
6382 not big endian
6383 #endif
6384
212380e3 6385 ;
6386 return 0;
6387}
6388_ACEOF
042acc47
WP
6389if ac_fn_c_try_compile "$LINENO"; then :
6390 ac_cv_c_bigendian=yes
212380e3 6391else
042acc47 6392 ac_cv_c_bigendian=no
212380e3 6393fi
631ef239 6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6395fi
042acc47
WP
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397 fi
6398 if test $ac_cv_c_bigendian = unknown; then
6399 # Compile a test program.
6400 if test "$cross_compiling" = yes; then :
6401 # Try to guess by grepping values from an object file.
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403/* end confdefs.h. */
6404short int ascii_mm[] =
6405 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6406 short int ascii_ii[] =
6407 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6408 int use_ascii (int i) {
6409 return ascii_mm[i] + ascii_ii[i];
6410 }
6411 short int ebcdic_ii[] =
6412 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6413 short int ebcdic_mm[] =
6414 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6415 int use_ebcdic (int i) {
6416 return ebcdic_mm[i] + ebcdic_ii[i];
6417 }
6418 extern int foo;
212380e3 6419
042acc47
WP
6420int
6421main ()
6422{
6423return use_ascii (foo) == use_ebcdic (foo);
6424 ;
6425 return 0;
6426}
212380e3 6427_ACEOF
042acc47
WP
6428if ac_fn_c_try_compile "$LINENO"; then :
6429 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6430 ac_cv_c_bigendian=yes
6431 fi
6432 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6433 if test "$ac_cv_c_bigendian" = unknown; then
6434 ac_cv_c_bigendian=no
6435 else
6436 # finding both strings is unlikely to happen, but who knows?
6437 ac_cv_c_bigendian=unknown
6438 fi
6439 fi
6440fi
6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442else
6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6444/* end confdefs.h. */
6445$ac_includes_default
6446int
6447main ()
6448{
042acc47
WP
6449
6450 /* Are we little or big endian? From Harbison&Steele. */
6451 union
6452 {
6453 long int l;
6454 char c[sizeof (long int)];
6455 } u;
6456 u.l = 1;
6457 return u.c[sizeof (long int) - 1] == 1;
6458
212380e3 6459 ;
6460 return 0;
6461}
6462_ACEOF
042acc47
WP
6463if ac_fn_c_try_run "$LINENO"; then :
6464 ac_cv_c_bigendian=no
212380e3 6465else
042acc47 6466 ac_cv_c_bigendian=yes
212380e3 6467fi
042acc47
WP
6468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6469 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 6470fi
212380e3 6471
042acc47
WP
6472 fi
6473fi
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6475$as_echo "$ac_cv_c_bigendian" >&6; }
6476 case $ac_cv_c_bigendian in #(
6477 yes)
6478 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6479;; #(
6480 no)
6481 ;; #(
6482 universal)
212380e3 6483
042acc47 6484$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
212380e3 6485
042acc47
WP
6486 ;; #(
6487 *)
b540af17 6488 as_fn_error $? "unknown endianness
042acc47
WP
6489 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6490 esac
212380e3 6491
212380e3 6492
042acc47 6493ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
b540af17 6494if test "x$ac_cv_header_stdarg_h" = xyes; then :
212380e3 6495
042acc47 6496else
b540af17 6497 as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
042acc47 6498fi
212380e3 6499
6500
212380e3 6501
6502
042acc47 6503if test "$ac_cv_c_compiler_gnu" = yes; then
212380e3 6504
042acc47
WP
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6506$as_echo_n "checking for strlcpy... " >&6; }
6507save_CFLAGS=$CFLAGS
6508CFLAGS="$CFLAGS -Wimplicit -Werror"
212380e3 6509
042acc47 6510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6511/* end confdefs.h. */
042acc47
WP
6512#include <string.h>
6513 #include <stdlib.h>
212380e3 6514int
6515main ()
6516{
042acc47
WP
6517char *a = malloc(6);
6518 strlcpy(a, "hello", 6);
6519
212380e3 6520 ;
6521 return 0;
6522}
6523_ACEOF
042acc47
WP
6524if ac_fn_c_try_link "$LINENO"; then :
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6526$as_echo "yes" >&6; }
212380e3 6527
042acc47 6528$as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
631ef239 6529
212380e3 6530else
042acc47
WP
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532$as_echo "no" >&6; }
212380e3 6533
042acc47
WP
6534fi
6535rm -f core conftest.err conftest.$ac_objext \
6536 conftest$ac_exeext conftest.$ac_ext
6537
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6539$as_echo_n "checking for strlcat... " >&6; }
6540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6541/* end confdefs.h. */
042acc47
WP
6542#include <string.h>
6543 #include <stdlib.h>
212380e3 6544int
6545main ()
6546{
042acc47
WP
6547char *a = malloc(6);
6548 a[0] = '\0';
6549 strlcat(a, "hello", 6);
6550
212380e3 6551 ;
6552 return 0;
6553}
6554_ACEOF
042acc47
WP
6555if ac_fn_c_try_link "$LINENO"; then :
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6557$as_echo "yes" >&6; }
631ef239 6558
042acc47 6559$as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
212380e3 6560
042acc47
WP
6561else
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563$as_echo "no" >&6; }
212380e3 6564
042acc47
WP
6565fi
6566rm -f core conftest.err conftest.$ac_objext \
6567 conftest$ac_exeext conftest.$ac_ext
212380e3 6568
042acc47 6569CFLAGS=$save_CFLAGS
212380e3 6570
6571else
6572
212380e3 6573
042acc47
WP
6574for ac_func in strlcat strlcpy
6575do :
6576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6577ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b540af17 6578if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
042acc47
WP
6579 cat >>confdefs.h <<_ACEOF
6580#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3 6581_ACEOF
6582
212380e3 6583fi
042acc47 6584done
212380e3 6585
6586
6587fi
6588
042acc47 6589ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
b540af17 6590if test "x$ac_cv_type_u_int32_t" = xyes; then :
212380e3 6591
212380e3 6592else
212380e3 6593
042acc47 6594 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
b540af17 6595if test "x$ac_cv_type_uint32_t" = xyes; then :
212380e3 6596
631ef239 6597
042acc47 6598$as_echo "#define u_int32_t uint32_t" >>confdefs.h
212380e3 6599
212380e3 6600
042acc47 6601else
212380e3 6602
042acc47
WP
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6604$as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
212380e3 6605
042acc47 6606$as_echo "#define u_int32_t unsigned long int" >>confdefs.h
212380e3 6607
212380e3 6608
212380e3 6609fi
631ef239 6610
042acc47 6611
212380e3 6612fi
042acc47
WP
6613
6614
6615ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
b540af17 6616if test "x$ac_cv_type_u_int16_t" = xyes; then :
042acc47 6617
212380e3 6618else
6619
042acc47 6620 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
b540af17 6621if test "x$ac_cv_type_uint16_t" = xyes; then :
212380e3 6622
042acc47
WP
6623
6624$as_echo "#define u_int16_t uint16_t" >>confdefs.h
212380e3 6625
6626
212380e3 6627else
212380e3 6628
042acc47
WP
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6630$as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
631ef239 6631
042acc47 6632$as_echo "#define u_int16_t unsigned short int" >>confdefs.h
212380e3 6633
042acc47
WP
6634
6635fi
212380e3 6636
6637
6638fi
6639
6640
042acc47
WP
6641ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6642#include <netinet/in.h>
6643"
b540af17 6644if test "x$ac_cv_type_in_port_t" = xyes; then :
212380e3 6645
042acc47 6646else
212380e3 6647
042acc47 6648$as_echo "#define in_port_t u_int16_t" >>confdefs.h
212380e3 6649
042acc47 6650fi
212380e3 6651
6652
042acc47
WP
6653ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6654#include <sys/socket.h>
6655"
b540af17 6656if test "x$ac_cv_type_sa_family_t" = xyes; then :
212380e3 6657
212380e3 6658else
212380e3 6659
042acc47 6660$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
212380e3 6661
042acc47 6662fi
212380e3 6663
212380e3 6664
042acc47 6665ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
b540af17 6666if test "x$ac_cv_type_uintptr_t" = xyes; then :
212380e3 6667
042acc47
WP
6668cat >>confdefs.h <<_ACEOF
6669#define HAVE_UINTPTR_T 1
6670_ACEOF
212380e3 6671
631ef239 6672
212380e3 6673fi
042acc47
WP
6674
6675
6676for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
6677do :
6678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6679ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b540af17 6680if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3 6681 cat >>confdefs.h <<_ACEOF
042acc47 6682#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3 6683_ACEOF
6684
6685fi
6686done
6687
6688
6689# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6690# for constant arguments. Useless!
042acc47
WP
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6692$as_echo_n "checking for working alloca.h... " >&6; }
b540af17 6693if ${ac_cv_working_alloca_h+:} false; then :
042acc47 6694 $as_echo_n "(cached) " >&6
212380e3 6695else
042acc47 6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6697/* end confdefs.h. */
6698#include <alloca.h>
6699int
6700main ()
6701{
6702char *p = (char *) alloca (2 * sizeof (int));
631ef239 6703 if (p) return 0;
212380e3 6704 ;
6705 return 0;
6706}
6707_ACEOF
042acc47 6708if ac_fn_c_try_link "$LINENO"; then :
212380e3 6709 ac_cv_working_alloca_h=yes
6710else
042acc47 6711 ac_cv_working_alloca_h=no
212380e3 6712fi
042acc47
WP
6713rm -f core conftest.err conftest.$ac_objext \
6714 conftest$ac_exeext conftest.$ac_ext
212380e3 6715fi
042acc47
WP
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6717$as_echo "$ac_cv_working_alloca_h" >&6; }
212380e3 6718if test $ac_cv_working_alloca_h = yes; then
6719
042acc47 6720$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
212380e3 6721
6722fi
6723
042acc47
WP
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6725$as_echo_n "checking for alloca... " >&6; }
b540af17 6726if ${ac_cv_func_alloca_works+:} false; then :
042acc47 6727 $as_echo_n "(cached) " >&6
212380e3 6728else
042acc47 6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6730/* end confdefs.h. */
6731#ifdef __GNUC__
6732# define alloca __builtin_alloca
6733#else
6734# ifdef _MSC_VER
6735# include <malloc.h>
6736# define alloca _alloca
6737# else
631ef239 6738# ifdef HAVE_ALLOCA_H
212380e3 6739# include <alloca.h>
6740# else
6741# ifdef _AIX
6742 #pragma alloca
6743# else
6744# ifndef alloca /* predefined by HP cc +Olibcalls */
b540af17 6745void *alloca (size_t);
212380e3 6746# endif
6747# endif
6748# endif
6749# endif
6750#endif
6751
6752int
6753main ()
6754{
6755char *p = (char *) alloca (1);
631ef239 6756 if (p) return 0;
212380e3 6757 ;
6758 return 0;
6759}
6760_ACEOF
042acc47 6761if ac_fn_c_try_link "$LINENO"; then :
212380e3 6762 ac_cv_func_alloca_works=yes
6763else
042acc47 6764 ac_cv_func_alloca_works=no
212380e3 6765fi
042acc47
WP
6766rm -f core conftest.err conftest.$ac_objext \
6767 conftest$ac_exeext conftest.$ac_ext
212380e3 6768fi
042acc47
WP
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6770$as_echo "$ac_cv_func_alloca_works" >&6; }
212380e3 6771
6772if test $ac_cv_func_alloca_works = yes; then
6773
042acc47 6774$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
212380e3 6775
6776else
6777 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6778# that cause trouble. Some versions do not even contain alloca or
6779# contain a buggy version. If you still want to use their alloca,
6780# use ar to extract alloca.o from them instead of compiling alloca.c.
6781
631ef239 6782ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
212380e3 6783
042acc47 6784$as_echo "#define C_ALLOCA 1" >>confdefs.h
212380e3 6785
6786
042acc47
WP
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6788$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
b540af17 6789if ${ac_cv_os_cray+:} false; then :
042acc47 6790 $as_echo_n "(cached) " >&6
212380e3 6791else
042acc47 6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6793/* end confdefs.h. */
631ef239 6794#if defined CRAY && ! defined CRAY2
212380e3 6795webecray
6796#else
6797wenotbecray
6798#endif
6799
6800_ACEOF
6801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
042acc47 6802 $EGREP "webecray" >/dev/null 2>&1; then :
212380e3 6803 ac_cv_os_cray=yes
6804else
6805 ac_cv_os_cray=no
6806fi
6807rm -f conftest*
6808
6809fi
042acc47
WP
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6811$as_echo "$ac_cv_os_cray" >&6; }
212380e3 6812if test $ac_cv_os_cray = yes; then
6813 for ac_func in _getb67 GETB67 getb67; do
042acc47
WP
6814 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6815ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b540af17 6816if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3 6817
6818cat >>confdefs.h <<_ACEOF
6819#define CRAY_STACKSEG_END $ac_func
6820_ACEOF
6821
6822 break
6823fi
6824
6825 done
6826fi
6827
042acc47
WP
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6829$as_echo_n "checking stack direction for C alloca... " >&6; }
b540af17 6830if ${ac_cv_c_stack_direction+:} false; then :
042acc47 6831 $as_echo_n "(cached) " >&6
212380e3 6832else
042acc47 6833 if test "$cross_compiling" = yes; then :
212380e3 6834 ac_cv_c_stack_direction=0
6835else
042acc47 6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6837/* end confdefs.h. */
631ef239 6838$ac_includes_default
212380e3 6839int
6840find_stack_direction ()
6841{
6842 static char *addr = 0;
6843 auto char dummy;
6844 if (addr == 0)
6845 {
6846 addr = &dummy;
6847 return find_stack_direction ();
6848 }
6849 else
6850 return (&dummy > addr) ? 1 : -1;
6851}
6852
6853int
6854main ()
6855{
631ef239 6856 return find_stack_direction () < 0;
212380e3 6857}
6858_ACEOF
042acc47 6859if ac_fn_c_try_run "$LINENO"; then :
212380e3 6860 ac_cv_c_stack_direction=1
6861else
042acc47 6862 ac_cv_c_stack_direction=-1
212380e3 6863fi
042acc47
WP
6864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6865 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 6866fi
631ef239 6867
212380e3 6868fi
042acc47
WP
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6870$as_echo "$ac_cv_c_stack_direction" >&6; }
212380e3 6871cat >>confdefs.h <<_ACEOF
6872#define STACK_DIRECTION $ac_cv_c_stack_direction
6873_ACEOF
6874
6875
6876fi
6877
6878
6879
042acc47 6880ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
b540af17 6881if test "x$ac_cv_func_nanosleep" = xyes; then :
631ef239 6882
212380e3 6883else
042acc47
WP
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6885$as_echo_n "checking for nanosleep in -lrt... " >&6; }
b540af17 6886if ${ac_cv_lib_rt_nanosleep+:} false; then :
042acc47 6887 $as_echo_n "(cached) " >&6
212380e3 6888else
6889 ac_check_lib_save_LIBS=$LIBS
6890LIBS="-lrt $LIBS"
042acc47 6891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6892/* end confdefs.h. */
6893
631ef239 6894/* Override any GCC internal prototype to avoid an error.
6895 Use char because int might match the return type of a GCC
6896 builtin and then its argument prototype would still apply. */
212380e3 6897#ifdef __cplusplus
6898extern "C"
6899#endif
212380e3 6900char nanosleep ();
6901int
6902main ()
6903{
631ef239 6904return nanosleep ();
212380e3 6905 ;
6906 return 0;
6907}
6908_ACEOF
042acc47 6909if ac_fn_c_try_link "$LINENO"; then :
212380e3 6910 ac_cv_lib_rt_nanosleep=yes
6911else
042acc47 6912 ac_cv_lib_rt_nanosleep=no
212380e3 6913fi
042acc47
WP
6914rm -f core conftest.err conftest.$ac_objext \
6915 conftest$ac_exeext conftest.$ac_ext
212380e3 6916LIBS=$ac_check_lib_save_LIBS
6917fi
042acc47
WP
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6919$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
b540af17 6920if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
212380e3 6921 LIBS="${LIBS} -lrt"
6922else
042acc47
WP
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6924$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
b540af17 6925if ${ac_cv_lib_posix4_nanosleep+:} false; then :
042acc47 6926 $as_echo_n "(cached) " >&6
212380e3 6927else
6928 ac_check_lib_save_LIBS=$LIBS
6929LIBS="-lposix4 $LIBS"
042acc47 6930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6931/* end confdefs.h. */
6932
631ef239 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 6936#ifdef __cplusplus
6937extern "C"
6938#endif
212380e3 6939char nanosleep ();
6940int
6941main ()
6942{
631ef239 6943return nanosleep ();
212380e3 6944 ;
6945 return 0;
6946}
6947_ACEOF
042acc47 6948if ac_fn_c_try_link "$LINENO"; then :
212380e3 6949 ac_cv_lib_posix4_nanosleep=yes
6950else
042acc47 6951 ac_cv_lib_posix4_nanosleep=no
212380e3 6952fi
042acc47
WP
6953rm -f core conftest.err conftest.$ac_objext \
6954 conftest$ac_exeext conftest.$ac_ext
212380e3 6955LIBS=$ac_check_lib_save_LIBS
6956fi
042acc47
WP
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
6958$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
b540af17 6959if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
212380e3 6960 LIBS="${LIBS} -lposix4"
6961
6962fi
6963
6964fi
6965
6966fi
6967
6968if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
6969then
042acc47
WP
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
6971$as_echo "\"nanosleep not found..using select for delay\"" >&6; }
212380e3 6972else
6973
042acc47 6974$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
212380e3 6975
6976fi
6977
042acc47
WP
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
6979$as_echo_n "checking for OpenSSL... " >&6; }
631ef239 6980# Check whether --enable-openssl was given.
042acc47 6981if test "${enable_openssl+set}" = set; then :
631ef239 6982 enableval=$enable_openssl; cf_enable_openssl=$enableval
212380e3 6983else
6984 cf_enable_openssl="auto"
631ef239 6985fi
6986
212380e3 6987
6988if test "$cf_enable_openssl" != "no" ; then
6989 cf_openssl_basedir=""
6990 if test "$cf_enable_openssl" != "auto" &&
6991 test "$cf_enable_openssl" != "yes" ; then
6992 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
6993 else
6994 for dirs in /usr/local/ssl /usr/pkg /usr/local \
6995 /usr/local/openssl ; do
6996 if test -f "${dirs}/include/openssl/opensslv.h" ; then
6997 cf_openssl_basedir="${dirs}"
6998 break
6999 fi
7000 done
7001 unset dirs
7002 fi
7003 if test ! -z "$cf_openssl_basedir"; then
7004 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7005 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
7006 SSL_LIBS="-L${cf_openssl_basedir}/lib"
7007 else
7008 cf_openssl_basedir=""
7009 fi
7010 else
7011 if test -f "/usr/include/openssl/opensslv.h" ; then
7012 cf_openssl_basedir="/usr"
7013 fi
7014 fi
7015
7016 if test ! -z "$cf_openssl_basedir"; then
042acc47
WP
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
7018$as_echo "$cf_openssl_basedir" >&6; }
212380e3 7019 cf_enable_openssl="yes"
7020 else
042acc47
WP
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
7022$as_echo "not found. Specify a correct path?" >&6; }
212380e3 7023 cf_enable_openssl="no"
7024 fi
7025 unset cf_openssl_basedir
7026else
042acc47
WP
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7028$as_echo "disabled" >&6; }
212380e3 7029fi
7030
7031save_CPPFLAGS="$CPPFLAGS"
7032CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
7033save_LIBS="$LIBS"
7034LIBS="$LIBS $SSL_LIBS"
7035if test "$cf_enable_openssl" != no; then
042acc47
WP
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
7037$as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
7038 if test "$cross_compiling" = yes; then :
212380e3 7039 cf_openssl_version_ok=no
7040else
042acc47 7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 7042/* end confdefs.h. */
7043#include <openssl/opensslv.h>
7044 #include <stdlib.h>
7045int
7046main ()
7047{
7048if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
7049 exit(0); else exit(1);
7050 ;
7051 return 0;
7052}
7053_ACEOF
042acc47 7054if ac_fn_c_try_run "$LINENO"; then :
212380e3 7055 cf_openssl_version_ok=yes
7056else
042acc47 7057 cf_openssl_version_ok=no
212380e3 7058fi
042acc47
WP
7059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7060 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 7061fi
7062
631ef239 7063
212380e3 7064 if test "$cf_openssl_version_ok" = yes; then
042acc47
WP
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7066$as_echo "found" >&6; }
212380e3 7067
7068 ENCSPEED=encspeed
7069
7070
7071 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
042acc47
WP
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
7073$as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
b540af17 7074if ${ac_cv_lib_crypto_RSA_free+:} false; then :
042acc47 7075 $as_echo_n "(cached) " >&6
212380e3 7076else
7077 ac_check_lib_save_LIBS=$LIBS
7078LIBS="-lcrypto $LIBS"
042acc47 7079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 7080/* end confdefs.h. */
7081
631ef239 7082/* Override any GCC internal prototype to avoid an error.
7083 Use char because int might match the return type of a GCC
7084 builtin and then its argument prototype would still apply. */
212380e3 7085#ifdef __cplusplus
7086extern "C"
7087#endif
212380e3 7088char RSA_free ();
7089int
7090main ()
7091{
631ef239 7092return RSA_free ();
212380e3 7093 ;
7094 return 0;
7095}
7096_ACEOF
042acc47 7097if ac_fn_c_try_link "$LINENO"; then :
212380e3 7098 ac_cv_lib_crypto_RSA_free=yes
7099else
042acc47 7100 ac_cv_lib_crypto_RSA_free=no
212380e3 7101fi
042acc47
WP
7102rm -f core conftest.err conftest.$ac_objext \
7103 conftest$ac_exeext conftest.$ac_ext
212380e3 7104LIBS=$ac_check_lib_save_LIBS
7105fi
042acc47
WP
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
7107$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
b540af17 7108if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
212380e3 7109 cat >>confdefs.h <<_ACEOF
7110#define HAVE_LIBCRYPTO 1
7111_ACEOF
7112
7113 LIBS="-lcrypto $LIBS"
7114
7115fi
7116
7117 SSL_LIBS="$SSL_LIBS -lcrypto"
7118 SSL_SRCS_ENABLE='$(SSL_SRCS)'
7119 else
042acc47
WP
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7121$as_echo "no - OpenSSL support disabled" >&6; }
212380e3 7122 fi
7123fi
7124
7125CPPFLAGS="$save_CPPFLAGS"
7126LIBS="$save_LIBS"
7127
7128
7129
7130
7131
631ef239 7132# Check whether --with-zlib-path was given.
042acc47 7133if test "${with_zlib_path+set}" = set; then :
631ef239 7134 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
7135fi
212380e3 7136
042acc47
WP
7137
7138# Check whether --enable-zlib was given.
7139if test "${enable_zlib+set}" = set; then :
7140 enableval=$enable_zlib; zlib=$enableval
212380e3 7141else
042acc47 7142 zlib=yes
212380e3 7143fi
212380e3 7144
212380e3 7145
042acc47
WP
7146if test "$zlib" = yes; then
7147
7148ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
b540af17 7149if test "x$ac_cv_header_zlib_h" = xyes; then :
042acc47
WP
7150
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7152$as_echo_n "checking for zlibVersion in -lz... " >&6; }
b540af17 7153if ${ac_cv_lib_z_zlibVersion+:} false; then :
042acc47 7154 $as_echo_n "(cached) " >&6
212380e3 7155else
7156 ac_check_lib_save_LIBS=$LIBS
7157LIBS="-lz $LIBS"
042acc47 7158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 7159/* end confdefs.h. */
7160
631ef239 7161/* Override any GCC internal prototype to avoid an error.
7162 Use char because int might match the return type of a GCC
7163 builtin and then its argument prototype would still apply. */
212380e3 7164#ifdef __cplusplus
7165extern "C"
7166#endif
212380e3 7167char zlibVersion ();
7168int
7169main ()
7170{
631ef239 7171return zlibVersion ();
212380e3 7172 ;
7173 return 0;
7174}
7175_ACEOF
042acc47 7176if ac_fn_c_try_link "$LINENO"; then :
212380e3 7177 ac_cv_lib_z_zlibVersion=yes
7178else
042acc47 7179 ac_cv_lib_z_zlibVersion=no
212380e3 7180fi
042acc47
WP
7181rm -f core conftest.err conftest.$ac_objext \
7182 conftest$ac_exeext conftest.$ac_ext
212380e3 7183LIBS=$ac_check_lib_save_LIBS
7184fi
042acc47
WP
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7186$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
b540af17 7187if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
212380e3 7188
7189 ZLIB_LD=-lz
7190
7191
042acc47 7192$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
212380e3 7193
7194
7195else
7196 zlib=no
7197fi
7198
7199
7200else
7201 zlib=no
7202fi
7203
7204
7205
7206fi
7207
7208
c1c5fdc4 7209# Check whether --enable-ports was given.
042acc47 7210if test "${enable_ports+set}" = set; then :
c1c5fdc4 7211 enableval=$enable_ports; if test $enableval = yes; then
7212 SELECT_TYPE_EXPLICIT="ports"
7213 else
7214 use_ports=no
7215 fi
7216
7217fi
7218
7219
631ef239 7220# Check whether --enable-poll was given.
042acc47 7221if test "${enable_poll+set}" = set; then :
631ef239 7222 enableval=$enable_poll; if test $enableval = yes; then
212380e3 7223 SELECT_TYPE_EXPLICIT="poll"
7224 else
7225 use_poll=no
7226 fi
7227
631ef239 7228fi
7229
212380e3 7230
631ef239 7231# Check whether --enable-select was given.
042acc47 7232if test "${enable_select+set}" = set; then :
631ef239 7233 enableval=$enable_select; if test $enableval = yes; then
212380e3 7234 SELECT_TYPE_EXPLICIT="select"
7235 else
7236 use_select=no
7237 fi
7238
631ef239 7239fi
7240
212380e3 7241
631ef239 7242# Check whether --enable-kqueue was given.
042acc47 7243if test "${enable_kqueue+set}" = set; then :
631ef239 7244 enableval=$enable_kqueue; if test $enableval = yes; then
212380e3 7245 SELECT_TYPE_EXPLICIT="kqueue"
7246 else
7247 use_kqueue=no
7248 fi
7249
631ef239 7250fi
7251
212380e3 7252
631ef239 7253# Check whether --enable-epoll was given.
042acc47 7254if test "${enable_epoll+set}" = set; then :
631ef239 7255 enableval=$enable_epoll; if test $enableval = yes; then
212380e3 7256 SELECT_TYPE_EXPLICIT="epoll"
042acc47
WP
7257 for ac_func in epoll_ctl
7258do :
7259 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b540af17 7260if test "x$ac_cv_func_epoll_ctl" = xyes; then :
3ad1a781 7261 cat >>confdefs.h <<_ACEOF
042acc47 7262#define HAVE_EPOLL_CTL 1
3ad1a781 7263_ACEOF
7264 haveepoll=yes
7265else
7266 haveepoll=no
7267fi
7268done
7269
212380e3 7270 else
7271 use_epoll=no
7272 fi
7273
631ef239 7274fi
7275
212380e3 7276
7277
042acc47
WP
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify confdir" >&5
7279$as_echo_n "checking whether to modify confdir... " >&6; }
212380e3 7280
631ef239 7281# Check whether --with-confdir was given.
042acc47 7282if test "${with_confdir+set}" = set; then :
631ef239 7283 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
042acc47
WP
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7285$as_echo "yes" >&6; }
212380e3 7286
7287 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
bf9bfd26
JH
7289 last_ac_define_dir=`eval echo $confdir`
7290 ac_define_dir=`eval echo $last_ac_define_dir`
7291 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7292 last_ac_define_dir="$ac_define_dir"
7293 ac_define_dir=`eval echo $last_ac_define_dir`
7294 done
212380e3 7295 ETC_DIR="$ac_define_dir"
7296
7297
7298cat >>confdefs.h <<_ACEOF
7299#define ETC_DIR "$ac_define_dir"
7300_ACEOF
7301
7302
7303
7304
7305 confdir=`(
7306 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7307 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7308 eval echo \""$confdir"\"
7309 )`
7310
7311
7312else
bf9bfd26 7313 confdir='${sysconfdir}'
042acc47
WP
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315$as_echo "no" >&6; }
212380e3 7316
7317 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7318 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
bf9bfd26
JH
7319 last_ac_define_dir=`eval echo $confdir`
7320 ac_define_dir=`eval echo $last_ac_define_dir`
7321 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7322 last_ac_define_dir="$ac_define_dir"
7323 ac_define_dir=`eval echo $last_ac_define_dir`
7324 done
212380e3 7325 ETC_DIR="$ac_define_dir"
7326
7327
7328cat >>confdefs.h <<_ACEOF
7329#define ETC_DIR "$ac_define_dir"
7330_ACEOF
7331
7332
7333
7334
7335 confdir=`(
7336 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7337 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7338 eval echo \""$confdir"\"
7339 )`
7340
7341
7342
631ef239 7343fi
7344
212380e3 7345
7346
042acc47
WP
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7348$as_echo_n "checking whether to modify logdir... " >&6; }
212380e3 7349
631ef239 7350# Check whether --with-logdir was given.
042acc47 7351if test "${with_logdir+set}" = set; then :
631ef239 7352 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
042acc47
WP
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7354$as_echo "yes" >&6; }
212380e3 7355else
bf9bfd26
JH
7356 if test "x$enable_fhs_paths" = "xyes"; then :
7357 logdir='${localstatedir}/log/${PACKAGE_TARNAME}'
7358else
7359 logdir='${prefix}/logs'
7360fi
042acc47
WP
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362$as_echo "no" >&6; }
bf9bfd26
JH
7363fi
7364
212380e3 7365
7366 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7367 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
bf9bfd26
JH
7368 last_ac_define_dir=`eval echo $logdir`
7369 ac_define_dir=`eval echo $last_ac_define_dir`
7370 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7371 last_ac_define_dir="$ac_define_dir"
7372 ac_define_dir=`eval echo $last_ac_define_dir`
7373 done
212380e3 7374 LOG_DIR="$ac_define_dir"
7375
7376
7377cat >>confdefs.h <<_ACEOF
7378#define LOG_DIR "$ac_define_dir"
7379_ACEOF
7380
7381
7382
7383
7384 logdir=`(
7385 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7386 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7387 eval echo \""$logdir"\"
7388 )`
7389
7390
7391
212380e3 7392
042acc47
WP
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7394$as_echo_n "checking whether to modify helpdir... " >&6; }
212380e3 7395
631ef239 7396# Check whether --with-helpdir was given.
042acc47 7397if test "${with_helpdir+set}" = set; then :
631ef239 7398 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
042acc47
WP
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7400$as_echo "yes" >&6; }
212380e3 7401else
bf9bfd26
JH
7402 if test "x$enable_fhs_paths" = "xyes"; then :
7403 helpdir='${datadir}/${PACKAGE_TARNAME}/help'
7404else
7405 helpdir='${prefix}/help'
7406fi
042acc47
WP
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408$as_echo "no" >&6; }
bf9bfd26
JH
7409fi
7410
212380e3 7411
7412 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7413 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
bf9bfd26
JH
7414 last_ac_define_dir=`eval echo $helpdir`
7415 ac_define_dir=`eval echo $last_ac_define_dir`
7416 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7417 last_ac_define_dir="$ac_define_dir"
7418 ac_define_dir=`eval echo $last_ac_define_dir`
7419 done
212380e3 7420 HELP_DIR="$ac_define_dir"
7421
7422
7423cat >>confdefs.h <<_ACEOF
7424#define HELP_DIR "$ac_define_dir"
7425_ACEOF
7426
7427
7428
7429
7430 helpdir=`(
7431 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7432 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7433 eval echo \""$helpdir"\"
7434 )`
7435
7436
7437
212380e3 7438
042acc47
WP
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7440$as_echo_n "checking whether to modify moduledir... " >&6; }
212380e3 7441
631ef239 7442# Check whether --with-moduledir was given.
042acc47 7443if test "${with_moduledir+set}" = set; then :
631ef239 7444 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
042acc47
WP
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7446$as_echo "yes" >&6; }
bf9bfd26
JH
7447else
7448 if test "x$enable_fhs_paths" = "xyes"; then :
7449 moduledir='${pkglibdir}/modules'
7450else
7451 moduledir='${prefix}/modules'
7452fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454$as_echo "no" >&6; }
7455
7456fi
7457
212380e3 7458
7459 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7460 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
bf9bfd26
JH
7461 last_ac_define_dir=`eval echo $moduledir`
7462 ac_define_dir=`eval echo $last_ac_define_dir`
7463 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7464 last_ac_define_dir="$ac_define_dir"
7465 ac_define_dir=`eval echo $last_ac_define_dir`
7466 done
212380e3 7467 MODULE_DIR="$ac_define_dir"
7468
7469
7470cat >>confdefs.h <<_ACEOF
7471#define MODULE_DIR "$ac_define_dir"
7472_ACEOF
7473
7474
7475
7476
7477 moduledir=`(
7478 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7479 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7480 eval echo \""$moduledir"\"
7481 )`
7482
7483
bf9bfd26
JH
7484
7485
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5
7487$as_echo_n "checking whether or modify rundir... " >&6; }
7488
7489# Check whether --with-rundir was given.
7490if test "${with_rundir+set}" = set; then :
7491 withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7492$as_echo "yes" >&6; }
7493 rundir=`echo $withval | sed 's/\/$//'`
212380e3 7494else
bf9bfd26 7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
042acc47 7496$as_echo "no" >&6; }
bf9bfd26
JH
7497 if test "x$enable_fhs_paths" = "xyes"; then :
7498 rundir='${prefix}/run'
7499else
7500 rundir='${sysconfdir}'
7501fi
7502fi
7503
7504
212380e3 7505
7506 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
bf9bfd26
JH
7508 last_ac_define_dir=`eval echo $pkgrundir`
7509 ac_define_dir=`eval echo $last_ac_define_dir`
7510 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7511 last_ac_define_dir="$ac_define_dir"
7512 ac_define_dir=`eval echo $last_ac_define_dir`
7513 done
7514 PKGRUNDIR="$ac_define_dir"
212380e3 7515
7516
7517cat >>confdefs.h <<_ACEOF
bf9bfd26 7518#define PKGRUNDIR "$ac_define_dir"
212380e3 7519_ACEOF
7520
7521
7522
bf9bfd26
JH
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5
7524$as_echo_n "checking for program prefix... " >&6; }
212380e3 7525
bf9bfd26
JH
7526# Check whether --with-program-prefix was given.
7527if test "${with_program_prefix+set}" = set; then :
7528 withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix=
7529else
7530 with_program_prefix=
7531fi
212380e3 7532
bf9bfd26
JH
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5
7534$as_echo "\"$with_program_prefix\"" >&6; }
7535PROGRAM_PREFIX="$with_program_prefix"
212380e3 7536
7537
bf9bfd26
JH
7538cat >>confdefs.h <<_ACEOF
7539#define PROGRAM_PREFIX "$with_program_prefix"
7540_ACEOF
631ef239 7541
042acc47
WP
7542
7543if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7544 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
7545 echo "Forcing $SELECT_TYPE to be enabled"
7546else
7547
7548if test ! "x$use_ports" = "xno"; then
7549 for ac_func in port_getn
7550do :
7551 ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn"
b540af17 7552if test "x$ac_cv_func_port_getn" = xyes; then :
212380e3 7553 cat >>confdefs.h <<_ACEOF
042acc47 7554#define HAVE_PORT_GETN 1
212380e3 7555_ACEOF
042acc47 7556 haveports=yes
212380e3 7557else
042acc47 7558 haveports=no
212380e3 7559fi
7560done
7561
042acc47
WP
7562 if test "x$haveports" = "xyes" ; then
7563 SELECT_TYPE="ports"
212380e3 7564 fi
7565fi
7566
042acc47
WP
7567if test ! "x$use_select" = "xno"; then
7568 for ac_func in select
7569do :
7570 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
b540af17 7571if test "x$ac_cv_func_select" = xyes; then :
042acc47
WP
7572 cat >>confdefs.h <<_ACEOF
7573#define HAVE_SELECT 1
212380e3 7574_ACEOF
042acc47
WP
7575 haveselect=yes
7576else
7577 haveselect=no
7578fi
7579done
212380e3 7580
042acc47
WP
7581 if test "x$haveselect" = "xyes" ; then
7582 SELECT_TYPE="select"
7583 fi
7584fi
212380e3 7585
042acc47
WP
7586if test ! "x$use_poll" = "xno"; then
7587 for ac_func in poll
7588do :
7589 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
b540af17 7590if test "x$ac_cv_func_poll" = xyes; then :
042acc47
WP
7591 cat >>confdefs.h <<_ACEOF
7592#define HAVE_POLL 1
212380e3 7593_ACEOF
042acc47 7594 havepoll=yes
212380e3 7595else
042acc47 7596 havepoll=no
212380e3 7597fi
042acc47 7598done
631ef239 7599
042acc47
WP
7600 if test "x$havepoll" = "xyes" ; then
7601 SELECT_TYPE="poll"
7602 fi
212380e3 7603fi
042acc47
WP
7604
7605if test ! "x$use_kqueue" = "xno"; then
7606 for ac_func in kevent
7607do :
7608 ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent"
b540af17 7609if test "x$ac_cv_func_kevent" = xyes; then :
212380e3 7610 cat >>confdefs.h <<_ACEOF
042acc47 7611#define HAVE_KEVENT 1
212380e3 7612_ACEOF
7613 havekqueue=yes
7614else
7615 havekqueue=no
7616fi
7617done
7618
7619 if test "x$havekqueue" = "xyes" ; then
7620 SELECT_TYPE="kqueue"
7621 fi
7622fi
7623
7624if test ! "x$use_epoll" = "xno"; then
042acc47
WP
7625 for ac_func in epoll_ctl
7626do :
7627 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b540af17 7628if test "x$ac_cv_func_epoll_ctl" = xyes; then :
212380e3 7629 cat >>confdefs.h <<_ACEOF
042acc47 7630#define HAVE_EPOLL_CTL 1
212380e3 7631_ACEOF
7632 haveepoll=yes
7633else
7634 haveepoll=no
7635fi
7636done
7637
7638 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7639 if test "x$haveepoll" = "xyes" ; then
042acc47
WP
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7641$as_echo_n "checking for epoll support in kernel... " >&6; }
7642 if test "$cross_compiling" = yes; then :
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644$as_echo "no" >&6; }
212380e3 7645else
042acc47 7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 7647/* end confdefs.h. */
7648#include <stdint.h>
7649#include <sys/param.h>
7650#include <sys/types.h>
7651#include <sys/epoll.h>
7652#include <sys/syscall.h>
7653#include <unistd.h>
7654
7655int
7656main(int argc, char **argv)
7657{
7658 int epfd;
7659
7660 epfd = epoll_create(256);
56efe974 7661 return (epfd == -1 ? 1 : 0);
212380e3 7662}
7663_ACEOF
042acc47
WP
7664if ac_fn_c_try_run "$LINENO"; then :
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7666$as_echo "yes" >&6; }
212380e3 7667
042acc47 7668$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3 7669
7670 SELECT_TYPE="epoll"
7671else
042acc47
WP
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673$as_echo "no" >&6; }
212380e3 7674fi
042acc47
WP
7675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7676 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 7677fi
631ef239 7678
212380e3 7679 fi
7680 fi
7681
7682haveepollsyscall=no
7683
7684if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7685 if test "x$haveepoll" = "xno" ; then
042acc47
WP
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7687$as_echo_n "checking for epoll system call... " >&6; }
7688 if test "$cross_compiling" = yes; then :
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690$as_echo "no" >&6; }
212380e3 7691else
042acc47 7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 7693/* end confdefs.h. */
7694#include <stdint.h>
7695#include <sys/param.h>
7696#include <sys/types.h>
7697#include <sys/epoll.h>
7698#include <sys/syscall.h>
7699#include <unistd.h>
7700
7701int
7702epoll_create(int size)
7703{
7704 return (syscall(__NR_epoll_create, size));
7705}
7706
7707int
7708main(int argc, char **argv)
7709{
7710 int epfd;
7711
7712 epfd = epoll_create(256);
7713 exit (epfd == -1 ? 1 : 0);
7714}
7715_ACEOF
042acc47
WP
7716if ac_fn_c_try_run "$LINENO"; then :
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7718$as_echo "yes" >&6; }
212380e3 7719
042acc47 7720$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3 7721
7722 SELECT_TYPE="epoll"
7723else
042acc47
WP
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725$as_echo "no" >&6; }
212380e3 7726fi
042acc47
WP
7727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7728 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 7729fi
631ef239 7730
212380e3 7731 fi
7732fi
7733
7734fi
7735
7736fi
7737
7738if test -z "$SELECT_TYPE"; then
b540af17 7739 as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5
212380e3 7740fi
7741
7742echo "Using $SELECT_TYPE for select loop."
7743
7744
7745cat >>confdefs.h <<_ACEOF
7746#define SELECT_TYPE "$SELECT_TYPE"
7747_ACEOF
7748
7749
7750
7751
7752
631ef239 7753# Check whether --enable-assert was given.
042acc47 7754if test "${enable_assert+set}" = set; then :
631ef239 7755 enableval=$enable_assert; assert=$enableval
212380e3 7756else
7757 assert=no
631ef239 7758fi
7759
212380e3 7760
7761if test "$assert" = no; then
7762
042acc47 7763$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3 7764
7765elif test "$assert" = soft; then
7766
042acc47 7767$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
212380e3 7768
7769
042acc47 7770$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3 7771
7772elif test "$assert" = yes; then
7773 assert = "hard";
7774fi
7775
042acc47
WP
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
7777$as_echo_n "checking if you want IO Debugging hooks... " >&6; }
631ef239 7778# Check whether --enable-iodebug was given.
042acc47 7779if test "${enable_iodebug+set}" = set; then :
631ef239 7780 enableval=$enable_iodebug; iodebug=$enableval
212380e3 7781else
7782 iodebug=no
631ef239 7783fi
7784
212380e3 7785
7786if test "$iodebug" = yes; then
7787
042acc47 7788$as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
212380e3 7789
042acc47
WP
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7791$as_echo "yes" >&6; }
212380e3 7792else
042acc47
WP
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794$as_echo "no" >&6; }
212380e3 7795fi
7796
7797
042acc47
WP
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
7799$as_echo_n "checking if you want to do a profile build... " >&6; }
631ef239 7800# Check whether --enable-profile was given.
042acc47 7801if test "${enable_profile+set}" = set; then :
631ef239 7802 enableval=$enable_profile; profile=$enableval
212380e3 7803else
7804 profile=no
631ef239 7805fi
7806
212380e3 7807
7808if test "$profile" = yes; then
7809 if test "$ac_cv_c_compiler_gnu" = yes; then
7810 IRC_CFLAGS="$IRC_CFLAGS -pg"
042acc47
WP
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
7812$as_echo "yes, adding -pg" >&6; }
212380e3 7813
042acc47 7814$as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
212380e3 7815
7816 else
042acc47
WP
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
7818$as_echo "no, profile builds only work with gcc" >&6; }
212380e3 7819 fi
7820else
042acc47
WP
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822$as_echo "no" >&6; }
212380e3 7823fi
7824
631ef239 7825# Check whether --enable-balloc was given.
042acc47 7826if test "${enable_balloc+set}" = set; then :
631ef239 7827 enableval=$enable_balloc; balloc=$enableval
212380e3 7828else
7829 balloc=yes
631ef239 7830fi
7831
212380e3 7832
7833if test "$balloc" = no; then
7834
042acc47 7835$as_echo "#define NOBALLOC 1" >>confdefs.h
212380e3 7836
7837fi
7838
631ef239 7839# Check whether --enable-small-net was given.
042acc47 7840if test "${enable_small_net+set}" = set; then :
631ef239 7841 enableval=$enable_small_net; small_net=$enableval
212380e3 7842else
9960cc94 7843 small_net=yes
631ef239 7844fi
7845
212380e3 7846
7847if test "$small_net" = yes; then
7848
042acc47 7849$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
212380e3 7850
7851
042acc47 7852$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
212380e3 7853
7854
042acc47 7855$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
212380e3 7856
7857
042acc47 7858$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3 7859
7860
042acc47 7861$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
212380e3 7862
7863
042acc47 7864$as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
212380e3 7865
7866
042acc47 7867$as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
212380e3 7868
7869
042acc47 7870$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
212380e3 7871
7872
042acc47 7873$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
212380e3 7874
7875
042acc47 7876$as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
212380e3 7877
7878
042acc47 7879$as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
212380e3 7880
7881
042acc47 7882$as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
212380e3 7883
7884
042acc47 7885$as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
212380e3 7886
7887
042acc47 7888$as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
212380e3 7889
f99c7b64 7890
042acc47 7891$as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
304ded95
WP
7892
7893
042acc47 7894$as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
f99c7b64 7895
212380e3 7896else
7897
042acc47 7898$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
212380e3 7899
7900
042acc47 7901$as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
212380e3 7902
7903
042acc47 7904$as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
212380e3 7905
7906
042acc47 7907$as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
212380e3 7908
7909
042acc47 7910$as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
212380e3 7911
7912
042acc47 7913$as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3 7914
7915
042acc47 7916$as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
212380e3 7917
7918
042acc47 7919$as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
212380e3 7920
7921
042acc47 7922$as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
212380e3 7923
7924
042acc47 7925$as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
212380e3 7926
7927
042acc47 7928$as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
212380e3 7929
7930
042acc47 7931$as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
212380e3 7932
7933
042acc47 7934$as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
212380e3 7935
7936
042acc47 7937$as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
212380e3 7938
f99c7b64 7939
042acc47 7940$as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
304ded95
WP
7941
7942
042acc47 7943$as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
f99c7b64 7944
212380e3 7945fi
7946
7947
631ef239 7948# Check whether --with-nicklen was given.
042acc47 7949if test "${with_nicklen+set}" = set; then :
631ef239 7950 withval=$with_nicklen;
e5c20eb2 7951 if ! expr "$withval" + 0 >/dev/null 2>&1; then
b540af17 7952 as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5
e5c20eb2 7953 fi
212380e3 7954 if test $withval -ge 50; then
7955 NICKLEN=50
042acc47
WP
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
7957$as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
212380e3 7958 else
7959 NICKLEN="$withval"
7960 fi
7961
7962else
6b77736a 7963 NICKLEN=31
631ef239 7964fi
212380e3 7965
7966
212380e3 7967
631ef239 7968# Check whether --with-topiclen was given.
042acc47 7969if test "${with_topiclen+set}" = set; then :
631ef239 7970 withval=$with_topiclen;
212380e3 7971 if test $withval -ge 390; then
7972 TOPICLEN=390
042acc47
WP
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
7974$as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
212380e3 7975 else
7976 TOPICLEN=$withval
7977 fi
7978
7979else
7980 TOPICLEN=390
212380e3 7981fi
7982
212380e3 7983
7984
7985cat >>confdefs.h <<_ACEOF
7986#define TOPICLEN ${TOPICLEN}
7987_ACEOF
7988
7989
7990cat >>confdefs.h <<_ACEOF
7991#define NICKLEN (${NICKLEN}+1)
7992_ACEOF
7993
7994
56efe974 7995shared_modules="yes"
212380e3 7996if test "$shared_modules" = yes; then
212380e3 7997 if test "$CC" = tcc -a "$TenDRA" = "no"; then
042acc47
WP
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
7999$as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
212380e3 8000 shared_modules="no"
8001 fi
8002fi
8003
8004if test "$shared_modules" = yes; then
042acc47
WP
8005 DYNLINK_C=dynlink.c
8006 for ac_header in dlfcn.h
8007do :
8008 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
b540af17 8009if test "x$ac_cv_header_dlfcn_h" = xyes; then :
212380e3 8010 cat >>confdefs.h <<_ACEOF
042acc47 8011#define HAVE_DLFCN_H 1
212380e3 8012_ACEOF
8013
8014fi
8015
8016done
8017
042acc47
WP
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
8019$as_echo_n "checking for library containing shl_load... " >&6; }
b540af17 8020if ${ac_cv_search_shl_load+:} false; then :
042acc47 8021 $as_echo_n "(cached) " >&6
212380e3 8022else
8023 ac_func_search_save_LIBS=$LIBS
042acc47 8024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 8025/* end confdefs.h. */
8026
631ef239 8027/* Override any GCC internal prototype to avoid an error.
8028 Use char because int might match the return type of a GCC
8029 builtin and then its argument prototype would still apply. */
212380e3 8030#ifdef __cplusplus
8031extern "C"
8032#endif
212380e3 8033char shl_load ();
8034int
8035main ()
8036{
631ef239 8037return shl_load ();
212380e3 8038 ;
8039 return 0;
8040}
8041_ACEOF
631ef239 8042for ac_lib in '' dld; do
8043 if test -z "$ac_lib"; then
8044 ac_res="none required"
8045 else
8046 ac_res=-l$ac_lib
8047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8048 fi
042acc47 8049 if ac_fn_c_try_link "$LINENO"; then :
631ef239 8050 ac_cv_search_shl_load=$ac_res
631ef239 8051fi
042acc47
WP
8052rm -f core conftest.err conftest.$ac_objext \
8053 conftest$ac_exeext
b540af17 8054 if ${ac_cv_search_shl_load+:} false; then :
631ef239 8055 break
212380e3 8056fi
631ef239 8057done
b540af17 8058if ${ac_cv_search_shl_load+:} false; then :
042acc47 8059
631ef239 8060else
8061 ac_cv_search_shl_load=no
212380e3 8062fi
631ef239 8063rm conftest.$ac_ext
212380e3 8064LIBS=$ac_func_search_save_LIBS
8065fi
042acc47
WP
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8067$as_echo "$ac_cv_search_shl_load" >&6; }
631ef239 8068ac_res=$ac_cv_search_shl_load
042acc47 8069if test "$ac_res" != no; then :
631ef239 8070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 8071
8072
042acc47 8073$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
212380e3 8074
8075 SUFFIX=".sl"
8076 MOD_TARGET=hpux_shared
8077 SEDOBJ="s/\.o/.sl/g"
8078
8079else
8080
042acc47
WP
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8082$as_echo_n "checking for library containing dlopen... " >&6; }
b540af17 8083if ${ac_cv_search_dlopen+:} false; then :
042acc47 8084 $as_echo_n "(cached) " >&6
212380e3 8085else
8086 ac_func_search_save_LIBS=$LIBS
042acc47 8087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 8088/* end confdefs.h. */
8089
631ef239 8090/* Override any GCC internal prototype to avoid an error.
8091 Use char because int might match the return type of a GCC
8092 builtin and then its argument prototype would still apply. */
212380e3 8093#ifdef __cplusplus
8094extern "C"
8095#endif
212380e3 8096char dlopen ();
8097int
8098main ()
8099{
631ef239 8100return dlopen ();
212380e3 8101 ;
8102 return 0;
8103}
8104_ACEOF
631ef239 8105for ac_lib in '' dl c_r; do
8106 if test -z "$ac_lib"; then
8107 ac_res="none required"
8108 else
8109 ac_res=-l$ac_lib
8110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8111 fi
042acc47 8112 if ac_fn_c_try_link "$LINENO"; then :
631ef239 8113 ac_cv_search_dlopen=$ac_res
631ef239 8114fi
042acc47
WP
8115rm -f core conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext
b540af17 8117 if ${ac_cv_search_dlopen+:} false; then :
631ef239 8118 break
212380e3 8119fi
631ef239 8120done
b540af17 8121if ${ac_cv_search_dlopen+:} false; then :
042acc47 8122
631ef239 8123else
8124 ac_cv_search_dlopen=no
212380e3 8125fi
631ef239 8126rm conftest.$ac_ext
212380e3 8127LIBS=$ac_func_search_save_LIBS
8128fi
042acc47
WP
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8130$as_echo "$ac_cv_search_dlopen" >&6; }
631ef239 8131ac_res=$ac_cv_search_dlopen
042acc47 8132if test "$ac_res" != no; then :
631ef239 8133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 8134
8135
042acc47 8136$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
212380e3 8137
8138 SUFFIX=".so"
8139 MOD_TARGET=shared_modules
8140 SEDOBJ="s/\.o/.so/g"
8141 if test "$AppleGCC" = yes; then
042acc47
WP
8142 for ac_header in mach-o/dyld.h
8143do :
8144 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
b540af17 8145if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
212380e3 8146 cat >>confdefs.h <<_ACEOF
042acc47 8147#define HAVE_MACH_O_DYLD_H 1
212380e3 8148_ACEOF
8149
8150fi
8151
8152done
8153
8154 fi
042acc47 8155 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
b540af17 8156if test "x$ac_cv_func_dlsym" = xyes; then :
631ef239 8157
212380e3 8158else
8159
042acc47
WP
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8161$as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
212380e3 8162 shared_modules=no
8163
8164fi
8165
042acc47
WP
8166 for ac_func in dlfunc
8167do :
8168 ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc"
b540af17 8169if test "x$ac_cv_func_dlfunc" = xyes; then :
212380e3 8170 cat >>confdefs.h <<_ACEOF
042acc47 8171#define HAVE_DLFUNC 1
212380e3 8172_ACEOF
8173
8174fi
8175done
8176
8177
8178else
8179
8180 shared_modules=no
8181
8182fi
8183
8184
8185fi
8186
8187fi
8188
8189
8190cat >>confdefs.h <<_ACEOF
8191#define SHARED_SUFFIX "$SUFFIX"
8192_ACEOF
8193
8194
8195if test "$shared_modules" = yes; then
8196 # The GNU linker requires the -export-dynamic option to make
8197 # all symbols visible in the dynamic symbol table.
8198 hold_ldflags=$LDFLAGS
042acc47
WP
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8200$as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
212380e3 8201 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
042acc47 8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 8203/* end confdefs.h. */
8204
8205int
8206main ()
8207{
8208int i;
8209 ;
8210 return 0;
8211}
8212_ACEOF
042acc47 8213if ac_fn_c_try_link "$LINENO"; then :
212380e3 8214 found=yes
8215else
042acc47 8216 found=no
212380e3 8217fi
042acc47
WP
8218rm -f core conftest.err conftest.$ac_objext \
8219 conftest$ac_exeext conftest.$ac_ext
212380e3 8220 LDFLAGS=$hold_ldflags
8221
8222 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
8223 found="no, IRIX ld uses -B,dynamic"
8224 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
8225 fi
8226
8227 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
8228 found="no, AIX ld uses -G -brtl"
8229 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
8230 fi
8231
042acc47
WP
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8233$as_echo "$found" >&6; }
212380e3 8234
8235 if test "$found" = yes; then
8236 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
8237 fi
8238
042acc47
WP
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8240$as_echo_n "checking for compiler option to produce PIC... " >&6; }
212380e3 8241 if test "$SGS" = "yes"; then
042acc47
WP
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8243$as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
212380e3 8244 PICFLAGS="-KPIC -DPIC -G"
8245 fi
8246
8247 if test "$AppleGCC" = "yes"; then
042acc47
WP
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8249$as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
212380e3 8250 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
8251 fi
8252 if test "$HPUX" = "yes" -a "$CC" != gcc; then
042acc47
WP
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8254$as_echo "HP-UX cc: +z -r -q -n" >&6; }
212380e3 8255 PICFLAGS="+z -r -q -n -c"
042acc47
WP
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8257$as_echo_n "checking if +ESfic is required on this platform... " >&6; }
212380e3 8258
8259 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
042acc47
WP
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261$as_echo "no" >&6; }
212380e3 8262 else
042acc47
WP
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8264$as_echo "yes" >&6; }
212380e3 8265 PICFLAGS="$PICFLAGS +ESfic"
8266 fi
8267
8268 LDFLAGS="${LDFLAGS} -Wl,-E"
8269 fi
8270 if test "$Tru" = yes -a "$CC" != gcc; then
042acc47
WP
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8272$as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
212380e3 8273 PICFLAGS="-shared -expect_unresolved '*' "
8274 LDFLAGS="-call_shared"
8275 fi
8276 if test -z "$PICFLAGS"; then
8277 if test "$ac_cv_c_compiler_gnu" = "yes"; then
042acc47
WP
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8279$as_echo "gcc: -fPIC -DPIC -shared" >&6; }
212380e3 8280 PICFLAGS="-fPIC -DPIC -shared"
8281 else
042acc47
WP
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
212380e3 8284 shared_modules=no
8285 fi
8286 fi
8287fi
8288
c1309303
JT
8289# rpath, for finding libratbox.so at run time
8290hold_ldflags=$LDFLAGS
042acc47
WP
8291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8292$as_echo_n "checking for the ld -rpath flag... " >&6; }
c1309303 8293LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
042acc47 8294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c1309303
JT
8295/* end confdefs.h. */
8296
8297int
8298main ()
8299{
8300int i;
8301 ;
8302 return 0;
8303}
8304_ACEOF
042acc47 8305if ac_fn_c_try_link "$LINENO"; then :
c1309303
JT
8306 found=yes
8307else
042acc47 8308 found=no
c1309303 8309fi
042acc47
WP
8310rm -f core conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
c1309303 8312LDFLAGS=$hold_ldflags
042acc47
WP
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8314$as_echo "$found" >&6; }
c1309303
JT
8315if test "$found" = yes; then
8316 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
8317fi
8318
212380e3 8319# This must be down here, or it will mess up checks like the ones
8320# for -Wl,-export-dynamic
8321# -- jilles
a8001fa5 8322CWARNS=""
631ef239 8323# Check whether --enable-warnings was given.
042acc47 8324if test "${enable_warnings+set}" = set; then :
631ef239 8325 enableval=$enable_warnings;
212380e3 8326IRC_CFLAGS="$IRC_CFLAGS -O0"
8327CFLAGS="$IRC_CFLAGS"
8328
8329
042acc47
WP
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8331$as_echo_n "checking GCC flag(s) -Wall... " >&6; }
212380e3 8332 if test "${GCC-no}" = yes
8333 then
b540af17 8334 if ${charybdis_cv_c_gcc_w_all+:} false; then :
042acc47 8335 $as_echo_n "(cached) " >&6
212380e3 8336else
8337
8338 oldcflags="${CFLAGS-}"
8339 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
042acc47 8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 8341/* end confdefs.h. */
8342
8343#include <string.h>
8344#include <stdio.h>
8345int main(void);
8346
8347int
8348main ()
8349{
8350
b1fc1658 8351 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 8352
8353 ;
8354 return 0;
8355}
8356_ACEOF
042acc47 8357if ac_fn_c_try_compile "$LINENO"; then :
212380e3 8358 charybdis_cv_c_gcc_w_all=yes
8359else
042acc47 8360 charybdis_cv_c_gcc_w_all=no
212380e3 8361fi
631ef239 8362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8363 CFLAGS="${oldcflags}"
8364fi
8365
8366 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
8367 CWARNS="${CWARNS}-Wall "
042acc47
WP
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8369$as_echo "ok" >&6; }
212380e3 8370 else
8371 charybdis_cv_c_gcc_w_all=''
042acc47
WP
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373$as_echo "no" >&6; }
212380e3 8374 fi
8375 else
042acc47
WP
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377$as_echo "no" >&6; }
212380e3 8378 fi
8379
8380
042acc47
WP
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8382$as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
212380e3 8383 if test "${GCC-no}" = yes
8384 then
b540af17 8385 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then :
042acc47 8386 $as_echo_n "(cached) " >&6
212380e3 8387else
8388
8389 oldcflags="${CFLAGS-}"
8390 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
042acc47 8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 8392/* end confdefs.h. */
8393
8394#include <string.h>
8395#include <stdio.h>
8396int main(void);
8397
8398int
8399main ()
8400{
8401
b1fc1658 8402 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 8403
8404 ;
8405 return 0;
8406}
8407_ACEOF
042acc47 8408if ac_fn_c_try_compile "$LINENO"; then :
212380e3 8409 charybdis_cv_c_gcc_w_pointer_arith=yes
8410else
042acc47 8411 charybdis_cv_c_gcc_w_pointer_arith=no
212380e3 8412fi
631ef239 8413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8414 CFLAGS="${oldcflags}"
8415fi
8416
8417 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
8418 CWARNS="${CWARNS}-Wpointer-arith "
042acc47
WP
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8420$as_echo "ok" >&6; }
212380e3 8421 else
8422 charybdis_cv_c_gcc_w_pointer_arith=''
042acc47
WP
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424$as_echo "no" >&6; }
212380e3 8425 fi
8426 else
042acc47
WP
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428$as_echo "no" >&6; }
212380e3 8429 fi
8430
8431
042acc47
WP
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8433$as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
212380e3 8434 if test "${GCC-no}" = yes
8435 then
b540af17 8436 if ${charybdis_cv_c_gcc_w_implicit+:} false; then :
042acc47 8437 $as_echo_n "(cached) " >&6
212380e3 8438else
8439
8440 oldcflags="${CFLAGS-}"
8441 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
042acc47 8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 8443/* end confdefs.h. */
8444
8445#include <string.h>
8446#include <stdio.h>
8447int main(void);
8448
8449int
8450main ()
8451{
8452
b1fc1658 8453 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 8454
8455 ;
8456 return 0;
8457}
8458_ACEOF
042acc47 8459if ac_fn_c_try_compile "$LINENO"; then :
212380e3 8460 charybdis_cv_c_gcc_w_implicit=yes
8461else
042acc47 8462 charybdis_cv_c_gcc_w_implicit=no
212380e3 8463fi
631ef239 8464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8465 CFLAGS="${oldcflags}"
8466fi
8467
8468 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
8469 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
042acc47
WP
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8471$as_echo "ok" >&6; }
212380e3 8472 else
8473 charybdis_cv_c_gcc_w_implicit=''
042acc47
WP
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475$as_echo "no" >&6; }
212380e3 8476 fi
8477 else
042acc47
WP
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479$as_echo "no" >&6; }
212380e3 8480 fi
8481
8482
042acc47
WP
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8484$as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
212380e3 8485 if test "${GCC-no}" = yes
8486 then
b540af17 8487 if ${charybdis_cv_c_gcc_w_cast_align+:} false; then :
042acc47 8488 $as_echo_n "(cached) " >&6
212380e3 8489else
8490
8491 oldcflags="${CFLAGS-}"
8492 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
042acc47 8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 8494/* end confdefs.h. */
8495
8496#include <string.h>
8497#include <stdio.h>
8498int main(void);
8499
8500int
8501main ()
8502{
8503
b1fc1658 8504 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
042acc47
WP
8505
8506 ;
8507 return 0;
8508}
8509_ACEOF
8510if ac_fn_c_try_compile "$LINENO"; then :
212380e3 8511 charybdis_cv_c_gcc_w_cast_align=yes
8512else
042acc47 8513 charybdis_cv_c_gcc_w_cast_align=no
212380e3 8514fi
631ef239 8515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8516 CFLAGS="${oldcflags}"
8517fi
8518
8519 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
8520 CWARNS="${CWARNS}-Wcast-align "
042acc47
WP
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8522$as_echo "ok" >&6; }
212380e3 8523 else
8524 charybdis_cv_c_gcc_w_cast_align=''
042acc47
WP
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526$as_echo "no" >&6; }
212380e3 8527 fi
8528 else
042acc47
WP
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530$as_echo "no" >&6; }
212380e3 8531 fi
8532
8533
042acc47
WP
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8535$as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
212380e3 8536 if test "${GCC-no}" = yes
8537 then
b540af17 8538 if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then :
042acc47 8539 $as_echo_n "(cached) " >&6
212380e3 8540else
8541
8542 oldcflags="${CFLAGS-}"
8543 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
042acc47 8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 8545/* end confdefs.h. */
8546
8547#include <string.h>
8548#include <stdio.h>
8549int main(void);
8550
8551int
8552main ()
8553{
8554
b1fc1658 8555 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 8556
8557 ;
8558 return 0;
8559}
8560_ACEOF
042acc47 8561if ac_fn_c_try_compile "$LINENO"; then :
212380e3 8562 charybdis_cv_c_gcc_w_cast_qual=yes
8563else
042acc47 8564 charybdis_cv_c_gcc_w_cast_qual=no
212380e3 8565fi
631ef239 8566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8567 CFLAGS="${oldcflags}"
8568fi
8569
8570 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
8571 CWARNS="${CWARNS}-Wcast-qual "
042acc47
WP
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8573$as_echo "ok" >&6; }
212380e3 8574 else
8575 charybdis_cv_c_gcc_w_cast_qual=''
042acc47
WP
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577$as_echo "no" >&6; }
212380e3 8578 fi
8579 else
042acc47
WP
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581$as_echo "no" >&6; }
212380e3 8582 fi
8583
8584
042acc47
WP
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8586$as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
a8001fa5
JT
8587 if test "${GCC-no}" = yes
8588 then
b540af17 8589 if ${charybdis_cv_c_gcc_w_write_strings+:} false; then :
042acc47 8590 $as_echo_n "(cached) " >&6
a8001fa5
JT
8591else
8592
8593 oldcflags="${CFLAGS-}"
8594 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
042acc47 8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a8001fa5
JT
8596/* end confdefs.h. */
8597
8598#include <string.h>
8599#include <stdio.h>
8600int main(void);
8601
8602int
8603main ()
8604{
8605
8606 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8607
8608 ;
8609 return 0;
8610}
8611_ACEOF
042acc47 8612if ac_fn_c_try_compile "$LINENO"; then :
40b8b28e 8613 charybdis_cv_c_gcc_w_write_strings=yes
a8001fa5 8614else
042acc47 8615 charybdis_cv_c_gcc_w_write_strings=no
a8001fa5 8616fi
a8001fa5
JT
8617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 CFLAGS="${oldcflags}"
8619fi
8620
40b8b28e 8621 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
a8001fa5 8622 CWARNS="${CWARNS}-Wwrite-strings "
042acc47
WP
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8624$as_echo "ok" >&6; }
a8001fa5 8625 else
40b8b28e 8626 charybdis_cv_c_gcc_w_write_strings=''
042acc47
WP
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628$as_echo "no" >&6; }
40b8b28e
VY
8629 fi
8630 else
042acc47
WP
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632$as_echo "no" >&6; }
40b8b28e
VY
8633 fi
8634
8635
042acc47
WP
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8637$as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
40b8b28e
VY
8638 if test "${GCC-no}" = yes
8639 then
b540af17 8640 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then :
042acc47 8641 $as_echo_n "(cached) " >&6
40b8b28e
VY
8642else
8643
8644 oldcflags="${CFLAGS-}"
8645 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
042acc47 8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40b8b28e
VY
8647/* end confdefs.h. */
8648
8649#include <string.h>
8650#include <stdio.h>
8651int main(void);
8652
8653int
8654main ()
8655{
8656
8657 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8658
8659 ;
8660 return 0;
8661}
8662_ACEOF
042acc47 8663if ac_fn_c_try_compile "$LINENO"; then :
40b8b28e
VY
8664 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
8665else
042acc47 8666 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
40b8b28e 8667fi
40b8b28e
VY
8668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669 CFLAGS="${oldcflags}"
8670fi
8671
8672 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
8673 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
042acc47
WP
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8675$as_echo "ok" >&6; }
40b8b28e
VY
8676 else
8677 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
042acc47
WP
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679$as_echo "no" >&6; }
a8001fa5
JT
8680 fi
8681 else
042acc47
WP
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683$as_echo "no" >&6; }
a8001fa5
JT
8684 fi
8685
8686
042acc47
WP
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8688$as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
212380e3 8689 if test "${GCC-no}" = yes
8690 then
b540af17 8691 if ${charybdis_cv_c_gcc_prototypes+:} false; then :
042acc47 8692 $as_echo_n "(cached) " >&6
212380e3 8693else
8694
8695 oldcflags="${CFLAGS-}"
8696 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
042acc47 8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 8698/* end confdefs.h. */
8699
8700#include <string.h>
8701#include <stdio.h>
8702int main(void);
8703
8704int
8705main ()
8706{
8707
b1fc1658 8708 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 8709
8710 ;
8711 return 0;
8712}
8713_ACEOF
042acc47 8714if ac_fn_c_try_compile "$LINENO"; then :
212380e3 8715 charybdis_cv_c_gcc_prototypes=yes
8716else
042acc47 8717 charybdis_cv_c_gcc_prototypes=no
212380e3 8718fi
631ef239 8719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8720 CFLAGS="${oldcflags}"
8721fi
8722
8723 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
8724 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
042acc47
WP
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8726$as_echo "ok" >&6; }
212380e3 8727 else
8728 charybdis_cv_c_gcc_prototypes=''
042acc47
WP
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730$as_echo "no" >&6; }
212380e3 8731 fi
8732 else
042acc47
WP
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734$as_echo "no" >&6; }
212380e3 8735 fi
8736
8737
042acc47
WP
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
8739$as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
212380e3 8740 if test "${GCC-no}" = yes
8741 then
b540af17 8742 if ${charybdis_cv_c_gcc_parenthesis+:} false; then :
042acc47 8743 $as_echo_n "(cached) " >&6
212380e3 8744else
8745
8746 oldcflags="${CFLAGS-}"
8747 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
042acc47 8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 8749/* end confdefs.h. */
8750
8751#include <string.h>
8752#include <stdio.h>
8753int main(void);
8754
8755int
8756main ()
8757{
8758
b1fc1658 8759 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 8760
8761 ;
8762 return 0;
8763}
8764_ACEOF
042acc47 8765if ac_fn_c_try_compile "$LINENO"; then :
212380e3 8766 charybdis_cv_c_gcc_parenthesis=yes
8767else
042acc47 8768 charybdis_cv_c_gcc_parenthesis=no
212380e3 8769fi
631ef239 8770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8771 CFLAGS="${oldcflags}"
8772fi
8773
8774 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
8775 CWARNS="${CWARNS}-Wparenthesis "
042acc47
WP
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8777$as_echo "ok" >&6; }
212380e3 8778 else
8779 charybdis_cv_c_gcc_parenthesis=''
042acc47
WP
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781$as_echo "no" >&6; }
212380e3 8782 fi
8783 else
042acc47
WP
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785$as_echo "no" >&6; }
212380e3 8786 fi
8787
8788
042acc47
WP
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8790$as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
212380e3 8791 if test "${GCC-no}" = yes
8792 then
b540af17 8793 if ${charybdis_cv_c_gcc_w+:} false; then :
042acc47 8794 $as_echo_n "(cached) " >&6
212380e3 8795else
8796
8797 oldcflags="${CFLAGS-}"
8798 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
042acc47 8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 8800/* end confdefs.h. */
8801
8802#include <string.h>
8803#include <stdio.h>
8804int main(void);
8805
8806int
8807main ()
8808{
8809
b1fc1658 8810 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 8811
8812 ;
8813 return 0;
8814}
8815_ACEOF
042acc47 8816if ac_fn_c_try_compile "$LINENO"; then :
212380e3 8817 charybdis_cv_c_gcc_w=yes
8818else
042acc47 8819 charybdis_cv_c_gcc_w=no
212380e3 8820fi
631ef239 8821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8822 CFLAGS="${oldcflags}"
8823fi
8824
8825 if test "x$charybdis_cv_c_gcc_w" = xyes; then
8826 CWARNS="${CWARNS}-W -Wno-unused "
042acc47
WP
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8828$as_echo "ok" >&6; }
212380e3 8829 else
8830 charybdis_cv_c_gcc_w=''
042acc47
WP
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832$as_echo "no" >&6; }
212380e3 8833 fi
8834 else
042acc47
WP
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836$as_echo "no" >&6; }
212380e3 8837 fi
8838
8839
042acc47
WP
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8841$as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
212380e3 8842 if test "${GCC-no}" = yes
8843 then
b540af17 8844 if ${charybdis_cv_c_gcc_w_extra+:} false; then :
042acc47 8845 $as_echo_n "(cached) " >&6
212380e3 8846else
8847
8848 oldcflags="${CFLAGS-}"
8849 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
042acc47 8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 8851/* end confdefs.h. */
8852
8853#include <string.h>
8854#include <stdio.h>
8855int main(void);
8856
8857int
8858main ()
8859{
8860
b1fc1658 8861 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 8862
8863 ;
8864 return 0;
8865}
8866_ACEOF
042acc47 8867if ac_fn_c_try_compile "$LINENO"; then :
212380e3 8868 charybdis_cv_c_gcc_w_extra=yes
8869else
042acc47 8870 charybdis_cv_c_gcc_w_extra=no
212380e3 8871fi
631ef239 8872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8873 CFLAGS="${oldcflags}"
8874fi
8875
8876 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
8877 CWARNS="${CWARNS}-Wextra "
042acc47
WP
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8879$as_echo "ok" >&6; }
212380e3 8880 else
8881 charybdis_cv_c_gcc_w_extra=''
042acc47
WP
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883$as_echo "no" >&6; }
212380e3 8884 fi
8885 else
042acc47
WP
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887$as_echo "no" >&6; }
212380e3 8888 fi
8889
8890
042acc47
WP
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
8892$as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
212380e3 8893 if test "${GCC-no}" = yes
8894 then
b540af17 8895 if ${charybdis_cv_c_gcc_w_shadow+:} false; then :
042acc47 8896 $as_echo_n "(cached) " >&6
212380e3 8897else
8898
8899 oldcflags="${CFLAGS-}"
8900 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
042acc47 8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 8902/* end confdefs.h. */
8903
8904#include <string.h>
8905#include <stdio.h>
8906int main(void);
8907
8908int
8909main ()
8910{
8911
b1fc1658 8912 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 8913
8914 ;
8915 return 0;
8916}
8917_ACEOF
042acc47 8918if ac_fn_c_try_compile "$LINENO"; then :
212380e3 8919 charybdis_cv_c_gcc_w_shadow=yes
8920else
042acc47 8921 charybdis_cv_c_gcc_w_shadow=no
212380e3 8922fi
631ef239 8923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8924 CFLAGS="${oldcflags}"
8925fi
8926
8927 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
8928 CWARNS="${CWARNS}-Wshadow "
042acc47
WP
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8930$as_echo "ok" >&6; }
212380e3 8931 else
8932 charybdis_cv_c_gcc_w_shadow=''
042acc47
WP
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934$as_echo "no" >&6; }
212380e3 8935 fi
8936 else
042acc47
WP
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938$as_echo "no" >&6; }
212380e3 8939 fi
8940
8941
042acc47
WP
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
8943$as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
212380e3 8944 if test "${GCC-no}" = yes
8945 then
b540af17 8946 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then :
042acc47 8947 $as_echo_n "(cached) " >&6
212380e3 8948else
8949
8950 oldcflags="${CFLAGS-}"
8951 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
042acc47 8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 8953/* end confdefs.h. */
8954
8955#include <string.h>
8956#include <stdio.h>
8957int main(void);
8958
8959int
8960main ()
8961{
8962
b1fc1658 8963 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 8964
8965 ;
8966 return 0;
8967}
8968_ACEOF
042acc47 8969if ac_fn_c_try_compile "$LINENO"; then :
212380e3 8970 charybdis_cv_c_gcc_w_missing_noreturn=yes
8971else
042acc47 8972 charybdis_cv_c_gcc_w_missing_noreturn=no
212380e3 8973fi
631ef239 8974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8975 CFLAGS="${oldcflags}"
8976fi
8977
8978 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
8979 CWARNS="${CWARNS}-Wmissing-noreturn "
042acc47
WP
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8981$as_echo "ok" >&6; }
212380e3 8982 else
8983 charybdis_cv_c_gcc_w_missing_noreturn=''
042acc47
WP
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985$as_echo "no" >&6; }
212380e3 8986 fi
8987 else
042acc47
WP
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989$as_echo "no" >&6; }
212380e3 8990 fi
8991
8992
042acc47
WP
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
8994$as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
212380e3 8995 if test "${GCC-no}" = yes
8996 then
b540af17 8997 if ${charybdis_cv_c_gcc_w_undef+:} false; then :
042acc47 8998 $as_echo_n "(cached) " >&6
212380e3 8999else
9000
9001 oldcflags="${CFLAGS-}"
9002 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
042acc47 9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 9004/* end confdefs.h. */
9005
9006#include <string.h>
9007#include <stdio.h>
9008int main(void);
9009
9010int
9011main ()
9012{
9013
b1fc1658 9014 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 9015
9016 ;
9017 return 0;
9018}
9019_ACEOF
042acc47 9020if ac_fn_c_try_compile "$LINENO"; then :
212380e3 9021 charybdis_cv_c_gcc_w_undef=yes
9022else
042acc47 9023 charybdis_cv_c_gcc_w_undef=no
212380e3 9024fi
631ef239 9025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 9026 CFLAGS="${oldcflags}"
9027fi
9028
9029 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
9030 CWARNS="${CWARNS}-Wundef "
042acc47
WP
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9032$as_echo "ok" >&6; }
212380e3 9033 else
9034 charybdis_cv_c_gcc_w_undef=''
042acc47
WP
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036$as_echo "no" >&6; }
212380e3 9037 fi
9038 else
042acc47
WP
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040$as_echo "no" >&6; }
212380e3 9041 fi
9042
9043
042acc47
WP
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
9045$as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
212380e3 9046 if test "${GCC-no}" = yes
9047 then
b540af17 9048 if ${charybdis_cv_c_gcc_w_packed+:} false; then :
042acc47 9049 $as_echo_n "(cached) " >&6
212380e3 9050else
9051
9052 oldcflags="${CFLAGS-}"
9053 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
042acc47 9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 9055/* end confdefs.h. */
9056
9057#include <string.h>
9058#include <stdio.h>
9059int main(void);
9060
9061int
9062main ()
9063{
9064
b1fc1658 9065 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 9066
9067 ;
9068 return 0;
9069}
9070_ACEOF
042acc47 9071if ac_fn_c_try_compile "$LINENO"; then :
212380e3 9072 charybdis_cv_c_gcc_w_packed=yes
9073else
042acc47 9074 charybdis_cv_c_gcc_w_packed=no
212380e3 9075fi
631ef239 9076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 9077 CFLAGS="${oldcflags}"
9078fi
9079
9080 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
9081 CWARNS="${CWARNS}-Wpacked "
042acc47
WP
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9083$as_echo "ok" >&6; }
212380e3 9084 else
9085 charybdis_cv_c_gcc_w_packed=''
042acc47
WP
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087$as_echo "no" >&6; }
212380e3 9088 fi
9089 else
042acc47
WP
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091$as_echo "no" >&6; }
212380e3 9092 fi
9093
9094
042acc47
WP
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
9096$as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
212380e3 9097 if test "${GCC-no}" = yes
9098 then
b540af17 9099 if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then :
042acc47 9100 $as_echo_n "(cached) " >&6
212380e3 9101else
9102
9103 oldcflags="${CFLAGS-}"
9104 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
042acc47 9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 9106/* end confdefs.h. */
9107
9108#include <string.h>
9109#include <stdio.h>
9110int main(void);
9111
9112int
9113main ()
9114{
9115
b1fc1658 9116 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 9117
9118 ;
9119 return 0;
9120}
9121_ACEOF
042acc47 9122if ac_fn_c_try_compile "$LINENO"; then :
212380e3 9123 charybdis_cv_c_gcc_w_nested_externs=yes
9124else
042acc47 9125 charybdis_cv_c_gcc_w_nested_externs=no
212380e3 9126fi
631ef239 9127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 9128 CFLAGS="${oldcflags}"
9129fi
9130
9131 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
9132 CWARNS="${CWARNS}-Wnested-externs "
042acc47
WP
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9134$as_echo "ok" >&6; }
212380e3 9135 else
9136 charybdis_cv_c_gcc_w_nested_externs=''
042acc47
WP
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138$as_echo "no" >&6; }
212380e3 9139 fi
9140 else
042acc47
WP
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142$as_echo "no" >&6; }
212380e3 9143 fi
9144
9145
042acc47
WP
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9147$as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
212380e3 9148 if test "${GCC-no}" = yes
9149 then
b540af17 9150 if ${charybdis_cv_c_gcc_w_unused+:} false; then :
042acc47 9151 $as_echo_n "(cached) " >&6
212380e3 9152else
9153
9154 oldcflags="${CFLAGS-}"
9155 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
042acc47 9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 9157/* end confdefs.h. */
9158
9159#include <string.h>
9160#include <stdio.h>
9161int main(void);
9162
9163int
9164main ()
9165{
9166
b1fc1658 9167 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 9168
9169 ;
9170 return 0;
9171}
9172_ACEOF
042acc47 9173if ac_fn_c_try_compile "$LINENO"; then :
212380e3 9174 charybdis_cv_c_gcc_w_unused=yes
9175else
042acc47 9176 charybdis_cv_c_gcc_w_unused=no
212380e3 9177fi
631ef239 9178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 9179 CFLAGS="${oldcflags}"
9180fi
9181
9182 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
9183 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
042acc47
WP
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9185$as_echo "ok" >&6; }
212380e3 9186 else
9187 charybdis_cv_c_gcc_w_unused=''
042acc47
WP
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189$as_echo "no" >&6; }
212380e3 9190 fi
9191 else
042acc47
WP
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193$as_echo "no" >&6; }
212380e3 9194 fi
9195
9196
042acc47
WP
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9198$as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
212380e3 9199 if test "${GCC-no}" = yes
9200 then
b540af17 9201 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then :
042acc47 9202 $as_echo_n "(cached) " >&6
212380e3 9203else
9204
9205 oldcflags="${CFLAGS-}"
9206 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
042acc47 9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 9208/* end confdefs.h. */
9209
9210#include <string.h>
9211#include <stdio.h>
9212int main(void);
9213
9214int
9215main ()
9216{
9217
b1fc1658 9218 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 9219
9220 ;
9221 return 0;
9222}
9223_ACEOF
042acc47 9224if ac_fn_c_try_compile "$LINENO"; then :
212380e3 9225 charybdis_cv_c_gcc_w_redundant_decls=yes
9226else
042acc47 9227 charybdis_cv_c_gcc_w_redundant_decls=no
212380e3 9228fi
631ef239 9229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 9230 CFLAGS="${oldcflags}"
9231fi
9232
9233 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
9234 CWARNS="${CWARNS}-Wredundant-decls "
042acc47
WP
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9236$as_echo "ok" >&6; }
212380e3 9237 else
9238 charybdis_cv_c_gcc_w_redundant_decls=''
042acc47
WP
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240$as_echo "no" >&6; }
212380e3 9241 fi
9242 else
042acc47
WP
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244$as_echo "no" >&6; }
212380e3 9245 fi
9246
9247
042acc47
WP
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9249$as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
212380e3 9250 if test "${GCC-no}" = yes
9251 then
b540af17 9252 if ${charybdis_cv_c_gcc_w_float_equal+:} false; then :
042acc47 9253 $as_echo_n "(cached) " >&6
212380e3 9254else
9255
9256 oldcflags="${CFLAGS-}"
9257 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
042acc47 9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 9259/* end confdefs.h. */
9260
9261#include <string.h>
9262#include <stdio.h>
9263int main(void);
9264
9265int
9266main ()
9267{
9268
b1fc1658 9269 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 9270
9271 ;
9272 return 0;
9273}
9274_ACEOF
042acc47 9275if ac_fn_c_try_compile "$LINENO"; then :
212380e3 9276 charybdis_cv_c_gcc_w_float_equal=yes
9277else
042acc47 9278 charybdis_cv_c_gcc_w_float_equal=no
212380e3 9279fi
631ef239 9280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 9281 CFLAGS="${oldcflags}"
9282fi
9283
9284 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
9285 CWARNS="${CWARNS}-Wfloat-equal "
042acc47
WP
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9287$as_echo "ok" >&6; }
212380e3 9288 else
9289 charybdis_cv_c_gcc_w_float_equal=''
042acc47
WP
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291$as_echo "no" >&6; }
212380e3 9292 fi
9293 else
042acc47
WP
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295$as_echo "no" >&6; }
212380e3 9296 fi
9297
9298
042acc47
WP
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9300$as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
212380e3 9301 if test "${GCC-no}" = yes
9302 then
b540af17 9303 if ${charybdis_cv_c_gcc_w_format+:} false; then :
042acc47 9304 $as_echo_n "(cached) " >&6
212380e3 9305else
9306
9307 oldcflags="${CFLAGS-}"
29b39b11 9308 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
042acc47 9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 9310/* end confdefs.h. */
9311
9312#include <string.h>
9313#include <stdio.h>
9314int main(void);
9315
9316int
9317main ()
9318{
042acc47
WP
9319
9320 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9321
212380e3 9322 ;
9323 return 0;
9324}
9325_ACEOF
042acc47
WP
9326if ac_fn_c_try_compile "$LINENO"; then :
9327 charybdis_cv_c_gcc_w_format=yes
212380e3 9328else
042acc47
WP
9329 charybdis_cv_c_gcc_w_format=no
9330fi
9331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332 CFLAGS="${oldcflags}"
9333fi
9334
9335 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
9336 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9338$as_echo "ok" >&6; }
9339 else
9340 charybdis_cv_c_gcc_w_format=''
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9342$as_echo "no" >&6; }
9343 fi
9344 else
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346$as_echo "no" >&6; }
9347 fi
9348
9349
9350IRC_CFLAGS="$CFLAGS"
212380e3 9351
212380e3 9352fi
631ef239 9353
042acc47
WP
9354
9355if test "$shared_modules" = no; then
9356 DYNLINK_C=""
9357 MOD_TARGET="libmodules.a"
9358 MODULES_LIBS="../modules/libmodules.a"
9359 SEDOBJ=""
9360
9361$as_echo "#define STATIC_MODULES 1" >>confdefs.h
9362
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9364$as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
212380e3 9365fi
042acc47
WP
9366
9367if test "$shared_modules" = yes; then
9368
9369 ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist"
b540af17 9370if test "x$ac_cv_func_nlist" = xyes; then :
042acc47 9371
212380e3 9372else
042acc47
WP
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9374$as_echo_n "checking for nlist in -ldl... " >&6; }
b540af17 9375if ${ac_cv_lib_dl_nlist+:} false; then :
042acc47 9376 $as_echo_n "(cached) " >&6
212380e3 9377else
9378 ac_check_lib_save_LIBS=$LIBS
9379LIBS="-ldl $LIBS"
042acc47 9380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 9381/* end confdefs.h. */
9382
631ef239 9383/* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
212380e3 9386#ifdef __cplusplus
9387extern "C"
9388#endif
212380e3 9389char nlist ();
9390int
9391main ()
9392{
631ef239 9393return nlist ();
212380e3 9394 ;
9395 return 0;
9396}
9397_ACEOF
042acc47 9398if ac_fn_c_try_link "$LINENO"; then :
212380e3 9399 ac_cv_lib_dl_nlist=yes
9400else
042acc47 9401 ac_cv_lib_dl_nlist=no
212380e3 9402fi
042acc47
WP
9403rm -f core conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
212380e3 9405LIBS=$ac_check_lib_save_LIBS
9406fi
042acc47
WP
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9408$as_echo "$ac_cv_lib_dl_nlist" >&6; }
b540af17 9409if test "x$ac_cv_lib_dl_nlist" = xyes; then :
212380e3 9410 nlist_lib="-ldl"
9411else
042acc47
WP
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9413$as_echo_n "checking for nlist in -lelf... " >&6; }
b540af17 9414if ${ac_cv_lib_elf_nlist+:} false; then :
042acc47 9415 $as_echo_n "(cached) " >&6
212380e3 9416else
9417 ac_check_lib_save_LIBS=$LIBS
9418LIBS="-lelf $LIBS"
042acc47 9419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 9420/* end confdefs.h. */
9421
631ef239 9422/* Override any GCC internal prototype to avoid an error.
9423 Use char because int might match the return type of a GCC
9424 builtin and then its argument prototype would still apply. */
212380e3 9425#ifdef __cplusplus
9426extern "C"
9427#endif
212380e3 9428char nlist ();
9429int
9430main ()
9431{
631ef239 9432return nlist ();
212380e3 9433 ;
9434 return 0;
9435}
9436_ACEOF
042acc47 9437if ac_fn_c_try_link "$LINENO"; then :
212380e3 9438 ac_cv_lib_elf_nlist=yes
9439else
042acc47 9440 ac_cv_lib_elf_nlist=no
212380e3 9441fi
042acc47
WP
9442rm -f core conftest.err conftest.$ac_objext \
9443 conftest$ac_exeext conftest.$ac_ext
212380e3 9444LIBS=$ac_check_lib_save_LIBS
9445fi
042acc47
WP
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9447$as_echo "$ac_cv_lib_elf_nlist" >&6; }
b540af17 9448if test "x$ac_cv_lib_elf_nlist" = xyes; then :
212380e3 9449 nlist_lib="-lelf"
9450fi
9451
9452
9453fi
9454
9455
9456fi
9457
9458
042acc47 9459 ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
b540af17 9460if test "x$ac_cv_header_libelf_nlist_h" = xyes; then :
212380e3 9461 nlist_h="libelf/nlist.h"
9462fi
9463
9464
042acc47 9465 ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
b540af17 9466if test "x$ac_cv_header_elf_nlist_h" = xyes; then :
212380e3 9467 nlist_h="elf/nlist.h"
9468fi
9469
9470
042acc47 9471 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
b540af17 9472if test "x$ac_cv_header_nlist_h" = xyes; then :
212380e3 9473 nlist_h="nlist.h"
9474fi
9475
9476
9477 if test x"$nlist_h" = "x"; then
9478
9479cat >>confdefs.h <<_ACEOF
9480#define SYMBOL_PREFIX ""
9481_ACEOF
9482
9483 else
042acc47
WP
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9485$as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
b540af17 9486 if ${symbol_underscores+:} false; then :
042acc47 9487 $as_echo_n "(cached) " >&6
212380e3 9488else
9489
9490cat << EOF > conftest.c
9491#include <$nlist_h>
9492#include <stdio.h>
9493#include <stdlib.h>
9494void _modinit(void);
9495int main(int argc, char *argv[]) {
9496 int i;
9497 struct nlist nl[5];
9498
9499 /* fill the names in this way, so it'll work almost everywhere */
9500 nl[0].n_name = "_modinit";
9501 nl[1].n_name = "__modinit";
9502 nl[2].n_name = "___modinit";
9503 nl[3].n_name = "____modinit";
9504 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9505
9506 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9507 for(i = 0; i < 4; i++) {
9508 if(nl[i].n_value != NULL)
9509 {
9510 int j;
9511 for(j = 0; j < i; j++)
9512 printf("_");
9513 exit(i);
9514 }
9515 }
9516 exit(-1);
9517}
9518void _modinit(void) { return; }
9519EOF
9520 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
9521 symbol_underscores=`./conftest conftest`
042acc47
WP
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9523$as_echo "$symbol_underscores" >&6; }
212380e3 9524 $RM -f conftest conftest.c
9525
9526fi
9527
9528
9529cat >>confdefs.h <<_ACEOF
9530#define SYMBOL_PREFIX "${symbol_underscores}"
9531_ACEOF
9532
9533 fi
9534fi
9535
a8001fa5
JT
9536IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
9537
212380e3 9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551if test "$prefix" = "NONE"; then
9552
9553cat >>confdefs.h <<_ACEOF
9554#define IRCD_PREFIX "$ac_default_prefix"
9555_ACEOF
9556
9557
9558else
9559
9560
9561 prefix=`echo $prefix | sed 's/\/$//'`
9562
9563cat >>confdefs.h <<_ACEOF
9564#define IRCD_PREFIX "$prefix"
9565_ACEOF
9566
9567
9568fi
9569
bf9bfd26
JH
9570ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile tools/genssl.sh doc/Makefile help/Makefile"
9571
9572ac_config_commands="$ac_config_commands tools/genssl.sh_chmod"
212380e3 9573
9574
9575cat >confcache <<\_ACEOF
9576# This file is a shell script that caches the results of configure
9577# tests run on this system so they can be shared between configure
9578# scripts and configure runs, see configure's option --config-cache.
9579# It is not useful on other systems. If it contains results you don't
9580# want to keep, you may remove or edit it.
9581#
9582# config.status only pays attention to the cache file if you give it
9583# the --recheck option to rerun configure.
9584#
9585# `ac_cv_env_foo' variables (set or unset) will be overridden when
9586# loading this file, other *unset* `ac_cv_foo' will be assigned the
9587# following values.
9588
9589_ACEOF
9590
9591# The following way of writing the cache mishandles newlines in values,
9592# but we know of no workaround that is simple, portable, and efficient.
631ef239 9593# So, we kill variables containing newlines.
212380e3 9594# Ultrix sh set writes to stderr and can't be redirected directly,
9595# and sets the high bit in the cache file unless we assign to the vars.
631ef239 9596(
9597 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9598 eval ac_val=\$$ac_var
9599 case $ac_val in #(
9600 *${as_nl}*)
9601 case $ac_var in #(
042acc47
WP
9602 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9603$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
631ef239 9604 esac
9605 case $ac_var in #(
9606 _ | IFS | as_nl) ;; #(
042acc47
WP
9607 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9608 *) { eval $ac_var=; unset $ac_var;} ;;
631ef239 9609 esac ;;
9610 esac
9611 done
9612
212380e3 9613 (set) 2>&1 |
631ef239 9614 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9615 *${as_nl}ac_space=\ *)
042acc47
WP
9616 # `set' does not quote correctly, so add quotes: double-quote
9617 # substitution turns \\\\ into \\, and sed turns \\ into \.
212380e3 9618 sed -n \
9619 "s/'/'\\\\''/g;
9620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
631ef239 9621 ;; #(
212380e3 9622 *)
9623 # `set' quotes correctly as required by POSIX, so do not add quotes.
631ef239 9624 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 9625 ;;
631ef239 9626 esac |
9627 sort
9628) |
212380e3 9629 sed '
631ef239 9630 /^ac_cv_env_/b end
212380e3 9631 t clear
631ef239 9632 :clear
212380e3 9633 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9634 t end
631ef239 9635 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9636 :end' >>confcache
9637if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9638 if test -w "$cache_file"; then
b540af17 9639 if test "x$cache_file" != "x/dev/null"; then
042acc47
WP
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9641$as_echo "$as_me: updating cache $cache_file" >&6;}
b540af17
JH
9642 if test ! -f "$cache_file" || test -h "$cache_file"; then
9643 cat confcache >"$cache_file"
9644 else
9645 case $cache_file in #(
9646 */* | ?:*)
9647 mv -f confcache "$cache_file"$$ &&
9648 mv -f "$cache_file"$$ "$cache_file" ;; #(
9649 *)
9650 mv -f confcache "$cache_file" ;;
9651 esac
9652 fi
9653 fi
212380e3 9654 else
042acc47
WP
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9656$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
212380e3 9657 fi
9658fi
9659rm -f confcache
9660
9661test "x$prefix" = xNONE && prefix=$ac_default_prefix
9662# Let make expand exec_prefix.
9663test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9664
212380e3 9665DEFS=-DHAVE_CONFIG_H
9666
9667ac_libobjs=
9668ac_ltlibobjs=
b540af17 9669U=
212380e3 9670for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9671 # 1. Remove the extension, and $U if already installed.
631ef239 9672 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
042acc47 9673 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
631ef239 9674 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9675 # will be set to the directory where LIBOBJS objects are built.
042acc47
WP
9676 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9677 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
212380e3 9678done
9679LIBOBJS=$ac_libobjs
9680
9681LTLIBOBJS=$ac_ltlibobjs
9682
9683
9684
042acc47
WP
9685
9686
b540af17 9687: "${CONFIG_STATUS=./config.status}"
042acc47 9688ac_write_fail=0
212380e3 9689ac_clean_files_save=$ac_clean_files
9690ac_clean_files="$ac_clean_files $CONFIG_STATUS"
042acc47
WP
9691{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9692$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9693as_write_fail=0
9694cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
212380e3 9695#! $SHELL
9696# Generated by $as_me.
9697# Run this file to recreate the current configuration.
9698# Compiler output produced by configure, useful for debugging
9699# configure, is in config.log if it exists.
9700
9701debug=false
9702ac_cs_recheck=false
9703ac_cs_silent=false
212380e3 9704
042acc47
WP
9705SHELL=\${CONFIG_SHELL-$SHELL}
9706export SHELL
9707_ASEOF
9708cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9709## -------------------- ##
9710## M4sh Initialization. ##
9711## -------------------- ##
212380e3 9712
631ef239 9713# Be more Bourne compatible
9714DUALCASE=1; export DUALCASE # for MKS sh
042acc47 9715if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3 9716 emulate sh
9717 NULLCMD=:
042acc47 9718 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3 9719 # is contrary to our usage. Disable this feature.
9720 alias -g '${1+"$@"}'='"$@"'
631ef239 9721 setopt NO_GLOB_SUBST
212380e3 9722else
042acc47
WP
9723 case `(set -o) 2>/dev/null` in #(
9724 *posix*) :
9725 set -o posix ;; #(
9726 *) :
9727 ;;
631ef239 9728esac
212380e3 9729fi
9730
9731
042acc47
WP
9732as_nl='
9733'
9734export as_nl
9735# Printing a long string crashes Solaris 7 /usr/bin/printf.
9736as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9737as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9738as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9739# Prefer a ksh shell builtin over an external printf program on Solaris,
9740# but without wasting forks for bash or zsh.
9741if test -z "$BASH_VERSION$ZSH_VERSION" \
9742 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9743 as_echo='print -r --'
9744 as_echo_n='print -rn --'
9745elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9746 as_echo='printf %s\n'
9747 as_echo_n='printf %s'
9748else
9749 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9750 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9751 as_echo_n='/usr/ucb/echo -n'
631ef239 9752 else
042acc47
WP
9753 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9754 as_echo_n_body='eval
9755 arg=$1;
9756 case $arg in #(
9757 *"$as_nl"*)
9758 expr "X$arg" : "X\\(.*\\)$as_nl";
9759 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9760 esac;
9761 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9762 '
9763 export as_echo_n_body
9764 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 9765 fi
042acc47
WP
9766 export as_echo_body
9767 as_echo='sh -c $as_echo_body as_echo'
631ef239 9768fi
9769
042acc47
WP
9770# The user is always right.
9771if test "${PATH_SEPARATOR+set}" != set; then
9772 PATH_SEPARATOR=:
9773 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9774 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9775 PATH_SEPARATOR=';'
9776 }
631ef239 9777fi
9778
9779
9780# IFS
9781# We need space, tab and new line, in precisely that order. Quoting is
9782# there to prevent editors from complaining about space-tab.
9783# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9784# splitting by setting IFS to empty value.)
631ef239 9785IFS=" "" $as_nl"
9786
9787# Find who we are. Look in the path if we contain no directory separator.
b540af17 9788as_myself=
042acc47 9789case $0 in #((
631ef239 9790 *[\\/]* ) as_myself=$0 ;;
9791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792for as_dir in $PATH
9793do
9794 IFS=$as_save_IFS
9795 test -z "$as_dir" && as_dir=.
042acc47
WP
9796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9797 done
631ef239 9798IFS=$as_save_IFS
9799
9800 ;;
9801esac
9802# We did not find ourselves, most probably we were run as `sh COMMAND'
9803# in which case we are not to be found in the path.
9804if test "x$as_myself" = x; then
9805 as_myself=$0
9806fi
9807if test ! -f "$as_myself"; then
042acc47
WP
9808 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9809 exit 1
631ef239 9810fi
9811
042acc47
WP
9812# Unset variables that we do not need and which cause bugs (e.g. in
9813# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9814# suppresses any "Segmentation fault" message there. '((' could
9815# trigger a bug in pdksh 5.2.14.
9816for as_var in BASH_ENV ENV MAIL MAILPATH
9817do eval test x\${$as_var+set} = xset \
9818 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 9819done
212380e3 9820PS1='$ '
9821PS2='> '
9822PS4='+ '
9823
042acc47
WP
9824# NLS nuisances.
9825LC_ALL=C
9826export LC_ALL
9827LANGUAGE=C
9828export LANGUAGE
9829
9830# CDPATH.
9831(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9832
9833
b540af17
JH
9834# as_fn_error STATUS ERROR [LINENO LOG_FD]
9835# ----------------------------------------
042acc47
WP
9836# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9837# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b540af17 9838# script with STATUS, using 1 if that was 0.
042acc47
WP
9839as_fn_error ()
9840{
b540af17
JH
9841 as_status=$1; test $as_status -eq 0 && as_status=1
9842 if test "$4"; then
9843 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9844 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
212380e3 9845 fi
b540af17 9846 $as_echo "$as_me: error: $2" >&2
042acc47
WP
9847 as_fn_exit $as_status
9848} # as_fn_error
9849
9850
9851# as_fn_set_status STATUS
9852# -----------------------
9853# Set $? to STATUS, without forking.
9854as_fn_set_status ()
9855{
9856 return $1
9857} # as_fn_set_status
9858
9859# as_fn_exit STATUS
9860# -----------------
9861# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9862as_fn_exit ()
9863{
9864 set +e
9865 as_fn_set_status $1
9866 exit $1
9867} # as_fn_exit
9868
9869# as_fn_unset VAR
9870# ---------------
9871# Portably unset VAR.
9872as_fn_unset ()
9873{
9874 { eval $1=; unset $1;}
9875}
9876as_unset=as_fn_unset
9877# as_fn_append VAR VALUE
9878# ----------------------
9879# Append the text in VALUE to the end of the definition contained in VAR. Take
9880# advantage of any shell optimizations that allow amortized linear growth over
9881# repeated appends, instead of the typical quadratic growth present in naive
9882# implementations.
9883if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9884 eval 'as_fn_append ()
9885 {
9886 eval $1+=\$2
9887 }'
9888else
9889 as_fn_append ()
9890 {
9891 eval $1=\$$1\$2
9892 }
9893fi # as_fn_append
9894
9895# as_fn_arith ARG...
9896# ------------------
9897# Perform arithmetic evaluation on the ARGs, and store the result in the
9898# global $as_val. Take advantage of shells that can avoid forks. The arguments
9899# must be portable across $(()) and expr.
9900if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9901 eval 'as_fn_arith ()
9902 {
9903 as_val=$(( $* ))
9904 }'
9905else
9906 as_fn_arith ()
9907 {
9908 as_val=`expr "$@" || test $? -eq 1`
9909 }
9910fi # as_fn_arith
9911
212380e3 9912
631ef239 9913if expr a : '\(a\)' >/dev/null 2>&1 &&
9914 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3 9915 as_expr=expr
9916else
9917 as_expr=false
9918fi
9919
631ef239 9920if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3 9921 as_basename=basename
9922else
9923 as_basename=false
9924fi
9925
042acc47
WP
9926if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9927 as_dirname=dirname
9928else
9929 as_dirname=false
9930fi
212380e3 9931
631ef239 9932as_me=`$as_basename -- "$0" ||
212380e3 9933$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9934 X"$0" : 'X\(//\)$' \| \
631ef239 9935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
042acc47 9936$as_echo X/"$0" |
631ef239 9937 sed '/^.*\/\([^/][^/]*\)\/*$/{
9938 s//\1/
9939 q
9940 }
9941 /^X\/\(\/\/\)$/{
9942 s//\1/
9943 q
9944 }
9945 /^X\/\(\/\).*/{
9946 s//\1/
9947 q
9948 }
9949 s/.*/./; q'`
212380e3 9950
042acc47
WP
9951# Avoid depending upon Character Ranges.
9952as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9953as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9954as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9955as_cr_digits='0123456789'
9956as_cr_alnum=$as_cr_Letters$as_cr_digits
631ef239 9957
9958ECHO_C= ECHO_N= ECHO_T=
042acc47 9959case `echo -n x` in #(((((
631ef239 9960-n*)
042acc47 9961 case `echo 'xy\c'` in
631ef239 9962 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
042acc47
WP
9963 xy) ECHO_C='\c';;
9964 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9965 ECHO_T=' ';;
631ef239 9966 esac;;
9967*)
9968 ECHO_N='-n';;
212380e3 9969esac
9970
212380e3 9971rm -f conf$$ conf$$.exe conf$$.file
631ef239 9972if test -d conf$$.dir; then
9973 rm -f conf$$.dir/conf$$.file
9974else
9975 rm -f conf$$.dir
042acc47
WP
9976 mkdir conf$$.dir 2>/dev/null
9977fi
9978if (echo >conf$$.file) 2>/dev/null; then
9979 if ln -s conf$$.file conf$$ 2>/dev/null; then
9980 as_ln_s='ln -s'
9981 # ... but there are two gotchas:
9982 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9983 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9984 # In both cases, we have to default to `cp -p'.
9985 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9986 as_ln_s='cp -p'
9987 elif ln conf$$.file conf$$ 2>/dev/null; then
9988 as_ln_s=ln
9989 else
212380e3 9990 as_ln_s='cp -p'
042acc47 9991 fi
212380e3 9992else
9993 as_ln_s='cp -p'
9994fi
631ef239 9995rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9996rmdir conf$$.dir 2>/dev/null
212380e3 9997
042acc47
WP
9998
9999# as_fn_mkdir_p
10000# -------------
10001# Create "$as_dir" as a directory, including parents if necessary.
10002as_fn_mkdir_p ()
10003{
10004
10005 case $as_dir in #(
10006 -*) as_dir=./$as_dir;;
10007 esac
10008 test -d "$as_dir" || eval $as_mkdir_p || {
10009 as_dirs=
10010 while :; do
10011 case $as_dir in #(
10012 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10013 *) as_qdir=$as_dir;;
10014 esac
10015 as_dirs="'$as_qdir' $as_dirs"
10016 as_dir=`$as_dirname -- "$as_dir" ||
10017$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10018 X"$as_dir" : 'X\(//\)[^/]' \| \
10019 X"$as_dir" : 'X\(//\)$' \| \
10020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10021$as_echo X"$as_dir" |
10022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10023 s//\1/
10024 q
10025 }
10026 /^X\(\/\/\)[^/].*/{
10027 s//\1/
10028 q
10029 }
10030 /^X\(\/\/\)$/{
10031 s//\1/
10032 q
10033 }
10034 /^X\(\/\).*/{
10035 s//\1/
10036 q
10037 }
10038 s/.*/./; q'`
10039 test -d "$as_dir" && break
10040 done
10041 test -z "$as_dirs" || eval "mkdir $as_dirs"
b540af17 10042 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
042acc47
WP
10043
10044
10045} # as_fn_mkdir_p
212380e3 10046if mkdir -p . 2>/dev/null; then
042acc47 10047 as_mkdir_p='mkdir -p "$as_dir"'
212380e3 10048else
10049 test -d ./-p && rmdir ./-p
10050 as_mkdir_p=false
10051fi
10052
631ef239 10053if test -x / >/dev/null 2>&1; then
10054 as_test_x='test -x'
10055else
10056 if ls -dL / >/dev/null 2>&1; then
10057 as_ls_L_option=L
10058 else
10059 as_ls_L_option=
10060 fi
10061 as_test_x='
10062 eval sh -c '\''
10063 if test -d "$1"; then
042acc47 10064 test -d "$1/.";
631ef239 10065 else
042acc47
WP
10066 case $1 in #(
10067 -*)set "./$1";;
631ef239 10068 esac;
042acc47 10069 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
631ef239 10070 ???[sx]*):;;*)false;;esac;fi
10071 '\'' sh
10072 '
10073fi
10074as_executable_p=$as_test_x
212380e3 10075
10076# Sed expression to map a string onto a valid CPP name.
10077as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10078
10079# Sed expression to map a string onto a valid variable name.
10080as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10081
10082
212380e3 10083exec 6>&1
042acc47
WP
10084## ----------------------------------- ##
10085## Main body of $CONFIG_STATUS script. ##
10086## ----------------------------------- ##
10087_ASEOF
10088test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
212380e3 10089
042acc47
WP
10090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10091# Save the log message, to keep $0 and so on meaningful, and to
212380e3 10092# report actual input values of CONFIG_FILES etc. instead of their
631ef239 10093# values after options handling.
10094ac_log="
b5135efc 10095This file was extended by shadowircd $as_me 6.3.2, which was
b540af17 10096generated by GNU Autoconf 2.68. Invocation command line was
212380e3 10097
10098 CONFIG_FILES = $CONFIG_FILES
10099 CONFIG_HEADERS = $CONFIG_HEADERS
10100 CONFIG_LINKS = $CONFIG_LINKS
10101 CONFIG_COMMANDS = $CONFIG_COMMANDS
10102 $ $0 $@
10103
631ef239 10104on `(hostname || uname -n) 2>/dev/null | sed 1q`
10105"
10106
212380e3 10107_ACEOF
10108
042acc47
WP
10109case $ac_config_files in *"
10110"*) set x $ac_config_files; shift; ac_config_files=$*;;
10111esac
10112
10113case $ac_config_headers in *"
10114"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10115esac
10116
10117
10118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10119# Files that config.status was made for.
631ef239 10120config_files="$ac_config_files"
10121config_headers="$ac_config_headers"
bf9bfd26 10122config_commands="$ac_config_commands"
212380e3 10123
631ef239 10124_ACEOF
212380e3 10125
042acc47 10126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3 10127ac_cs_usage="\
042acc47
WP
10128\`$as_me' instantiates files and other configuration actions
10129from templates according to the current configuration. Unless the files
10130and actions are specified as TAGs, all are instantiated by default.
212380e3 10131
042acc47 10132Usage: $0 [OPTION]... [TAG]...
212380e3 10133
10134 -h, --help print this help, then exit
631ef239 10135 -V, --version print version number and configuration settings, then exit
1800d973 10136 --config print configuration, then exit
042acc47
WP
10137 -q, --quiet, --silent
10138 do not print progress messages
212380e3 10139 -d, --debug don't remove temporary files
10140 --recheck update $as_me by reconfiguring in the same conditions
042acc47
WP
10141 --file=FILE[:TEMPLATE]
10142 instantiate the configuration file FILE
10143 --header=FILE[:TEMPLATE]
10144 instantiate the configuration header FILE
212380e3 10145
10146Configuration files:
10147$config_files
10148
10149Configuration headers:
10150$config_headers
10151
bf9bfd26
JH
10152Configuration commands:
10153$config_commands
10154
042acc47 10155Report bugs to the package provider."
212380e3 10156
631ef239 10157_ACEOF
042acc47 10158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1800d973 10159ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
212380e3 10160ac_cs_version="\\
b5135efc 10161shadowircd config.status 6.3.2
b540af17 10162configured by $0, generated by GNU Autoconf 2.68,
1800d973 10163 with options \\"\$ac_cs_config\\"
212380e3 10164
b540af17 10165Copyright (C) 2010 Free Software Foundation, Inc.
212380e3 10166This config.status script is free software; the Free Software Foundation
10167gives unlimited permission to copy, distribute and modify it."
631ef239 10168
10169ac_pwd='$ac_pwd'
10170srcdir='$srcdir'
10171INSTALL='$INSTALL'
042acc47 10172test -n "\$AWK" || AWK=awk
212380e3 10173_ACEOF
10174
042acc47
WP
10175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10176# The default lists apply if the user does not specify any file.
212380e3 10177ac_need_defaults=:
10178while test $# != 0
10179do
10180 case $1 in
b540af17 10181 --*=?*)
631ef239 10182 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10183 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
212380e3 10184 ac_shift=:
10185 ;;
b540af17
JH
10186 --*=)
10187 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10188 ac_optarg=
10189 ac_shift=:
10190 ;;
631ef239 10191 *)
212380e3 10192 ac_option=$1
10193 ac_optarg=$2
10194 ac_shift=shift
10195 ;;
212380e3 10196 esac
10197
10198 case $ac_option in
10199 # Handling of the options.
212380e3 10200 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10201 ac_cs_recheck=: ;;
631ef239 10202 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
042acc47 10203 $as_echo "$ac_cs_version"; exit ;;
1800d973
WP
10204 --config | --confi | --conf | --con | --co | --c )
10205 $as_echo "$ac_cs_config"; exit ;;
631ef239 10206 --debug | --debu | --deb | --de | --d | -d )
212380e3 10207 debug=: ;;
10208 --file | --fil | --fi | --f )
10209 $ac_shift
042acc47
WP
10210 case $ac_optarg in
10211 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b540af17 10212 '') as_fn_error $? "missing file argument" ;;
042acc47
WP
10213 esac
10214 as_fn_append CONFIG_FILES " '$ac_optarg'"
212380e3 10215 ac_need_defaults=false;;
10216 --header | --heade | --head | --hea )
10217 $ac_shift
042acc47
WP
10218 case $ac_optarg in
10219 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10220 esac
10221 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
212380e3 10222 ac_need_defaults=false;;
631ef239 10223 --he | --h)
10224 # Conflict between --help and --header
b540af17 10225 as_fn_error $? "ambiguous option: \`$1'
042acc47 10226Try \`$0 --help' for more information.";;
631ef239 10227 --help | --hel | -h )
042acc47 10228 $as_echo "$ac_cs_usage"; exit ;;
212380e3 10229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10230 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10231 ac_cs_silent=: ;;
10232
10233 # This is an error.
b540af17 10234 -*) as_fn_error $? "unrecognized option: \`$1'
042acc47 10235Try \`$0 --help' for more information." ;;
212380e3 10236
042acc47 10237 *) as_fn_append ac_config_targets " $1"
631ef239 10238 ac_need_defaults=false ;;
212380e3 10239
10240 esac
10241 shift
10242done
10243
10244ac_configure_extra_args=
10245
10246if $ac_cs_silent; then
10247 exec 6>/dev/null
10248 ac_configure_extra_args="$ac_configure_extra_args --silent"
10249fi
10250
10251_ACEOF
042acc47 10252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10253if \$ac_cs_recheck; then
042acc47
WP
10254 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10255 shift
10256 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10257 CONFIG_SHELL='$SHELL'
631ef239 10258 export CONFIG_SHELL
042acc47 10259 exec "\$@"
212380e3 10260fi
10261
10262_ACEOF
042acc47 10263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239 10264exec 5>>config.log
10265{
10266 echo
10267 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10268## Running $as_me. ##
10269_ASBOX
042acc47 10270 $as_echo "$ac_log"
631ef239 10271} >&5
212380e3 10272
631ef239 10273_ACEOF
042acc47 10274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239 10275_ACEOF
212380e3 10276
042acc47 10277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239 10278
10279# Handling of arguments.
212380e3 10280for ac_config_target in $ac_config_targets
10281do
631ef239 10282 case $ac_config_target in
10283 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
10284 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
042acc47 10285 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;;
0454dd83 10286 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
631ef239 10287 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
10288 "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;;
10289 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10290 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
10291 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
bf9bfd26 10292 "tools/genssl.sh") CONFIG_FILES="$CONFIG_FILES tools/genssl.sh" ;;
631ef239 10293 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10294 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
bf9bfd26 10295 "tools/genssl.sh_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl.sh_chmod" ;;
631ef239 10296
b540af17 10297 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
212380e3 10298 esac
10299done
10300
631ef239 10301
212380e3 10302# If the user did not use the arguments to specify the items to instantiate,
10303# then the envvar interface is used. Set only those that are not.
10304# We use the long form for the default assignment because of an extremely
10305# bizarre bug on SunOS 4.1.3.
10306if $ac_need_defaults; then
10307 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10308 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
bf9bfd26 10309 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
212380e3 10310fi
10311
10312# Have a temporary directory for convenience. Make it in the build tree
631ef239 10313# simply because there is no reason against having it here, and in addition,
212380e3 10314# creating and moving files from /tmp can sometimes cause problems.
631ef239 10315# Hook for its removal unless debugging.
10316# Note that there is a small window in which the directory will not be cleaned:
10317# after its creation but before its name has been assigned to `$tmp'.
212380e3 10318$debug ||
10319{
b540af17 10320 tmp= ac_tmp=
631ef239 10321 trap 'exit_status=$?
b540af17
JH
10322 : "${ac_tmp:=$tmp}"
10323 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
631ef239 10324' 0
042acc47 10325 trap 'as_fn_exit 1' 1 2 13 15
212380e3 10326}
212380e3 10327# Create a (secure) tmp directory for tmp files.
10328
10329{
631ef239 10330 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b540af17 10331 test -d "$tmp"
212380e3 10332} ||
10333{
631ef239 10334 tmp=./conf$$-$RANDOM
10335 (umask 077 && mkdir "$tmp")
b540af17
JH
10336} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10337ac_tmp=$tmp
212380e3 10338
042acc47
WP
10339# Set up the scripts for CONFIG_FILES section.
10340# No need to generate them if there are no CONFIG_FILES.
10341# This happens for instance with `./config.status config.h'.
631ef239 10342if test -n "$CONFIG_FILES"; then
10343
631ef239 10344
042acc47
WP
10345ac_cr=`echo X | tr X '\015'`
10346# On cygwin, bash can eat \r inside `` if the user requested igncr.
10347# But we know of no other shell where ac_cr would be empty at this
10348# point, so we can use a bashism as a fallback.
10349if test "x$ac_cr" = x; then
10350 eval ac_cr=\$\'\\r\'
10351fi
10352ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10353if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
b540af17 10354 ac_cs_awk_cr='\\r'
042acc47
WP
10355else
10356 ac_cs_awk_cr=$ac_cr
10357fi
10358
b540af17 10359echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
042acc47 10360_ACEOF
631ef239 10361
10362
042acc47
WP
10363{
10364 echo "cat >conf$$subs.awk <<_ACEOF" &&
10365 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10366 echo "_ACEOF"
10367} >conf$$subs.sh ||
b540af17
JH
10368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10369ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
631ef239 10370ac_delim='%!_!# '
10371for ac_last_try in false false false false false :; do
042acc47 10372 . ./conf$$subs.sh ||
b540af17 10373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
042acc47
WP
10374
10375 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10376 if test $ac_delim_n = $ac_delim_num; then
631ef239 10377 break
10378 elif $ac_last_try; then
b540af17 10379 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
631ef239 10380 else
10381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
212380e3 10382 fi
631ef239 10383done
042acc47
WP
10384rm -f conf$$subs.sh
10385
10386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b540af17 10387cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
042acc47
WP
10388_ACEOF
10389sed -n '
10390h
10391s/^/S["/; s/!.*/"]=/
10392p
10393g
10394s/^[^!]*!//
10395:repl
10396t repl
10397s/'"$ac_delim"'$//
10398t delim
10399:nl
10400h
1800d973 10401s/\(.\{148\}\)..*/\1/
042acc47
WP
10402t more1
10403s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10404p
10405n
10406b repl
10407:more1
10408s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10409p
10410g
10411s/.\{148\}//
10412t nl
10413:delim
10414h
1800d973 10415s/\(.\{148\}\)..*/\1/
042acc47
WP
10416t more2
10417s/["\\]/\\&/g; s/^/"/; s/$/"/
10418p
10419b
10420:more2
10421s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10422p
10423g
10424s/.\{148\}//
10425t delim
10426' <conf$$subs.awk | sed '
10427/^[^""]/{
10428 N
10429 s/\n//
10430}
10431' >>$CONFIG_STATUS || ac_write_fail=1
10432rm -f conf$$subs.awk
10433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10434_ACAWK
b540af17 10435cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
042acc47
WP
10436 for (key in S) S_is_set[key] = 1
10437 FS = "\a"
212380e3 10438
042acc47
WP
10439}
10440{
10441 line = $ 0
10442 nfields = split(line, field, "@")
10443 substed = 0
10444 len = length(field[1])
10445 for (i = 2; i < nfields; i++) {
10446 key = field[i]
10447 keylen = length(key)
10448 if (S_is_set[key]) {
10449 value = S[key]
10450 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10451 len += length(value) + length(field[++i])
10452 substed = 1
10453 } else
10454 len += 1 + keylen
10455 }
631ef239 10456
042acc47
WP
10457 print line
10458}
10459
10460_ACAWK
631ef239 10461_ACEOF
042acc47
WP
10462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10463if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10464 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10465else
10466 cat
b540af17
JH
10467fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10468 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
212380e3 10469_ACEOF
631ef239 10470
b540af17
JH
10471# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10472# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
631ef239 10473# trailing colons and then remove the whole line if VPATH becomes empty
10474# (actually we leave an empty line to preserve line numbers).
10475if test "x$srcdir" = x.; then
b540af17
JH
10476 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10477h
10478s///
10479s/^/:/
10480s/[ ]*$/:/
10481s/:\$(srcdir):/:/g
10482s/:\${srcdir}:/:/g
10483s/:@srcdir@:/:/g
10484s/^:*//
631ef239 10485s/:*$//
b540af17
JH
10486x
10487s/\(=[ ]*\).*/\1/
10488G
10489s/\n//
631ef239 10490s/^[^=]*=[ ]*$//
10491}'
10492fi
10493
042acc47 10494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239 10495fi # test -n "$CONFIG_FILES"
10496
042acc47
WP
10497# Set up the scripts for CONFIG_HEADERS section.
10498# No need to generate them if there are no CONFIG_HEADERS.
10499# This happens for instance with `./config.status Makefile'.
10500if test -n "$CONFIG_HEADERS"; then
b540af17 10501cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
042acc47
WP
10502BEGIN {
10503_ACEOF
10504
10505# Transform confdefs.h into an awk script `defines.awk', embedded as
10506# here-document in config.status, that substitutes the proper values into
10507# config.h.in to produce config.h.
10508
10509# Create a delimiter string that does not exist in confdefs.h, to ease
10510# handling of long lines.
10511ac_delim='%!_!# '
10512for ac_last_try in false false :; do
b540af17
JH
10513 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10514 if test -z "$ac_tt"; then
042acc47
WP
10515 break
10516 elif $ac_last_try; then
b540af17 10517 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
042acc47
WP
10518 else
10519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10520 fi
10521done
10522
10523# For the awk script, D is an array of macro values keyed by name,
10524# likewise P contains macro parameters if any. Preserve backslash
10525# newline sequences.
10526
10527ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10528sed -n '
10529s/.\{148\}/&'"$ac_delim"'/g
10530t rset
10531:rset
10532s/^[ ]*#[ ]*define[ ][ ]*/ /
10533t def
10534d
10535:def
10536s/\\$//
10537t bsnl
10538s/["\\]/\\&/g
10539s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10540D["\1"]=" \3"/p
10541s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10542d
10543:bsnl
10544s/["\\]/\\&/g
10545s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10546D["\1"]=" \3\\\\\\n"\\/p
10547t cont
10548s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10549t cont
10550d
10551:cont
10552n
10553s/.\{148\}/&'"$ac_delim"'/g
10554t clear
10555:clear
10556s/\\$//
10557t bsnlc
10558s/["\\]/\\&/g; s/^/"/; s/$/"/p
10559d
10560:bsnlc
10561s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10562b cont
10563' <confdefs.h | sed '
10564s/'"$ac_delim"'/"\\\
10565"/g' >>$CONFIG_STATUS || ac_write_fail=1
10566
10567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10568 for (key in D) D_is_set[key] = 1
10569 FS = "\a"
10570}
10571/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10572 line = \$ 0
10573 split(line, arg, " ")
10574 if (arg[1] == "#") {
10575 defundef = arg[2]
10576 mac1 = arg[3]
10577 } else {
10578 defundef = substr(arg[1], 2)
10579 mac1 = arg[2]
10580 }
10581 split(mac1, mac2, "(") #)
10582 macro = mac2[1]
10583 prefix = substr(line, 1, index(line, defundef) - 1)
10584 if (D_is_set[macro]) {
10585 # Preserve the white space surrounding the "#".
10586 print prefix "define", macro P[macro] D[macro]
10587 next
10588 } else {
10589 # Replace #undef with comments. This is necessary, for example,
10590 # in the case of _POSIX_SOURCE, which is predefined and required
10591 # on some systems where configure will not decide to define it.
10592 if (defundef == "undef") {
10593 print "/*", prefix defundef, macro, "*/"
10594 next
10595 }
10596 }
10597}
10598{ print }
10599_ACAWK
10600_ACEOF
10601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b540af17 10602 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
042acc47
WP
10603fi # test -n "$CONFIG_HEADERS"
10604
631ef239 10605
bf9bfd26 10606eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
042acc47
WP
10607shift
10608for ac_tag
631ef239 10609do
10610 case $ac_tag in
10611 :[FHLC]) ac_mode=$ac_tag; continue;;
10612 esac
10613 case $ac_mode$ac_tag in
10614 :[FHL]*:*);;
b540af17 10615 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
631ef239 10616 :[FH]-) ac_tag=-:-;;
10617 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
212380e3 10618 esac
631ef239 10619 ac_save_IFS=$IFS
10620 IFS=:
10621 set x $ac_tag
10622 IFS=$ac_save_IFS
10623 shift
10624 ac_file=$1
10625 shift
212380e3 10626
631ef239 10627 case $ac_mode in
10628 :L) ac_source=$1;;
10629 :[FH])
10630 ac_file_inputs=
10631 for ac_f
10632 do
10633 case $ac_f in
b540af17 10634 -) ac_f="$ac_tmp/stdin";;
631ef239 10635 *) # Look for the file first in the build tree, then in the source tree
10636 # (if the path is not absolute). The absolute path cannot be DOS-style,
10637 # because $ac_f cannot contain `:'.
10638 test -f "$ac_f" ||
10639 case $ac_f in
10640 [\\/$]*) false;;
10641 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10642 esac ||
b540af17 10643 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
631ef239 10644 esac
042acc47
WP
10645 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10646 as_fn_append ac_file_inputs " '$ac_f'"
631ef239 10647 done
10648
10649 # Let's still pretend it is `configure' which instantiates (i.e., don't
10650 # use $as_me), people would be surprised to read:
10651 # /* config.h. Generated by config.status. */
042acc47
WP
10652 configure_input='Generated from '`
10653 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10654 `' by configure.'
631ef239 10655 if test x"$ac_file" != x-; then
10656 configure_input="$ac_file. $configure_input"
042acc47
WP
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10658$as_echo "$as_me: creating $ac_file" >&6;}
631ef239 10659 fi
042acc47
WP
10660 # Neutralize special characters interpreted by sed in replacement strings.
10661 case $configure_input in #(
10662 *\&* | *\|* | *\\* )
10663 ac_sed_conf_input=`$as_echo "$configure_input" |
10664 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10665 *) ac_sed_conf_input=$configure_input;;
10666 esac
631ef239 10667
10668 case $ac_tag in
b540af17
JH
10669 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
631ef239 10671 esac
10672 ;;
10673 esac
10674
10675 ac_dir=`$as_dirname -- "$ac_file" ||
212380e3 10676$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10677 X"$ac_file" : 'X\(//\)[^/]' \| \
10678 X"$ac_file" : 'X\(//\)$' \| \
631ef239 10679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
042acc47 10680$as_echo X"$ac_file" |
631ef239 10681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10682 s//\1/
10683 q
10684 }
10685 /^X\(\/\/\)[^/].*/{
10686 s//\1/
10687 q
10688 }
10689 /^X\(\/\/\)$/{
10690 s//\1/
10691 q
10692 }
10693 /^X\(\/\).*/{
10694 s//\1/
10695 q
10696 }
10697 s/.*/./; q'`
042acc47 10698 as_dir="$ac_dir"; as_fn_mkdir_p
212380e3 10699 ac_builddir=.
10700
631ef239 10701case "$ac_dir" in
10702.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10703*)
042acc47 10704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 10705 # A ".." for each directory in $ac_dir_suffix.
042acc47 10706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239 10707 case $ac_top_builddir_sub in
10708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10710 esac ;;
10711esac
10712ac_abs_top_builddir=$ac_pwd
10713ac_abs_builddir=$ac_pwd$ac_dir_suffix
10714# for backward compatibility:
10715ac_top_builddir=$ac_top_build_prefix
212380e3 10716
10717case $srcdir in
631ef239 10718 .) # We are building in place.
212380e3 10719 ac_srcdir=.
631ef239 10720 ac_top_srcdir=$ac_top_builddir_sub
10721 ac_abs_top_srcdir=$ac_pwd ;;
10722 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 10723 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239 10724 ac_top_srcdir=$srcdir
10725 ac_abs_top_srcdir=$srcdir ;;
10726 *) # Relative name.
10727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10728 ac_top_srcdir=$ac_top_build_prefix$srcdir
10729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 10730esac
631ef239 10731ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
212380e3 10732
212380e3 10733
631ef239 10734 case $ac_mode in
10735 :F)
10736 #
10737 # CONFIG_FILE
10738 #
212380e3 10739
10740 case $INSTALL in
10741 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
631ef239 10742 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
212380e3 10743 esac
631ef239 10744_ACEOF
212380e3 10745
042acc47 10746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239 10747# If the template does not know about datarootdir, expand it.
10748# FIXME: This hack should be removed a few years after 2.60.
10749ac_datarootdir_hack=; ac_datarootdir_seen=
042acc47
WP
10750ac_sed_dataroot='
10751/datarootdir/ {
631ef239 10752 p
10753 q
10754}
10755/@datadir@/p
10756/@docdir@/p
10757/@infodir@/p
10758/@localedir@/p
042acc47
WP
10759/@mandir@/p'
10760case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
631ef239 10761*datarootdir*) ac_datarootdir_seen=yes;;
10762*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
042acc47
WP
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10764$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
631ef239 10765_ACEOF
042acc47 10766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239 10767 ac_datarootdir_hack='
10768 s&@datadir@&$datadir&g
10769 s&@docdir@&$docdir&g
10770 s&@infodir@&$infodir&g
10771 s&@localedir@&$localedir&g
10772 s&@mandir@&$mandir&g
042acc47 10773 s&\\\${datarootdir}&$datarootdir&g' ;;
631ef239 10774esac
212380e3 10775_ACEOF
631ef239 10776
10777# Neutralize VPATH when `$srcdir' = `.'.
10778# Shell code in configure.ac might set extrasub.
10779# FIXME: do we really want to maintain this feature?
042acc47
WP
10780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10781ac_sed_extra="$ac_vpsub
212380e3 10782$extrasub
10783_ACEOF
042acc47 10784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3 10785:t
10786/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
042acc47 10787s|@configure_input@|$ac_sed_conf_input|;t t
631ef239 10788s&@top_builddir@&$ac_top_builddir_sub&;t t
042acc47 10789s&@top_build_prefix@&$ac_top_build_prefix&;t t
631ef239 10790s&@srcdir@&$ac_srcdir&;t t
10791s&@abs_srcdir@&$ac_abs_srcdir&;t t
10792s&@top_srcdir@&$ac_top_srcdir&;t t
10793s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10794s&@builddir@&$ac_builddir&;t t
10795s&@abs_builddir@&$ac_abs_builddir&;t t
10796s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10797s&@INSTALL@&$ac_INSTALL&;t t
10798$ac_datarootdir_hack
042acc47 10799"
b540af17
JH
10800eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10801 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239 10802
10803test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b540af17
JH
10804 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10805 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10806 "$ac_tmp/out"`; test -z "$ac_out"; } &&
042acc47 10807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b540af17 10808which seems to be undefined. Please make sure it is defined" >&5
042acc47 10809$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b540af17 10810which seems to be undefined. Please make sure it is defined" >&2;}
631ef239 10811
b540af17 10812 rm -f "$ac_tmp/stdin"
212380e3 10813 case $ac_file in
b540af17
JH
10814 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10815 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
042acc47 10816 esac \
b540af17 10817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239 10818 ;;
10819 :H)
10820 #
10821 # CONFIG_HEADER
10822 #
212380e3 10823 if test x"$ac_file" != x-; then
042acc47
WP
10824 {
10825 $as_echo "/* $configure_input */" \
b540af17
JH
10826 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10827 } >"$ac_tmp/config.h" \
10828 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10829 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
042acc47
WP
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10831$as_echo "$as_me: $ac_file is unchanged" >&6;}
212380e3 10832 else
042acc47 10833 rm -f "$ac_file"
b540af17
JH
10834 mv "$ac_tmp/config.h" "$ac_file" \
10835 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
212380e3 10836 fi
10837 else
042acc47 10838 $as_echo "/* $configure_input */" \
b540af17
JH
10839 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10840 || as_fn_error $? "could not create -" "$LINENO" 5
212380e3 10841 fi
631ef239 10842 ;;
10843
bf9bfd26
JH
10844 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10845$as_echo "$as_me: executing $ac_file commands" >&6;}
10846 ;;
631ef239 10847 esac
10848
bf9bfd26
JH
10849
10850 case $ac_file$ac_mode in
10851 "tools/genssl.sh_chmod":C) chmod 755 tools/genssl.sh ;;
10852
10853 esac
631ef239 10854done # for ac_tag
212380e3 10855
212380e3 10856
042acc47 10857as_fn_exit 0
212380e3 10858_ACEOF
212380e3 10859ac_clean_files=$ac_clean_files_save
10860
042acc47 10861test $ac_write_fail = 0 ||
b540af17 10862 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
042acc47 10863
212380e3 10864
10865# configure is writing to config.log, and then calls config.status.
10866# config.status does its own redirection, appending to config.log.
10867# Unfortunately, on DOS this fails, as config.log is still kept open
10868# by configure, so config.status won't be able to write to it; its
10869# output is simply discarded. So we exec the FD to /dev/null,
10870# effectively closing config.log, so it can be properly (re)opened and
10871# appended to by config.status. When coming back to configure, we
10872# need to make the FD available again.
10873if test "$no_create" != yes; then
10874 ac_cs_success=:
10875 ac_config_status_args=
10876 test "$silent" = yes &&
10877 ac_config_status_args="$ac_config_status_args --quiet"
10878 exec 5>/dev/null
10879 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10880 exec 5>>config.log
10881 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10882 # would make configure fail if this is the last instruction.
b540af17 10883 $ac_cs_success || as_fn_exit 1
212380e3 10884fi
10885
56efe974
WP
10886#
10887# CONFIG_SUBDIRS section.
10888#
10889if test "$no_recursion" != yes; then
10890
042acc47
WP
10891 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10892 # so they do not pile up.
56efe974
WP
10893 ac_sub_configure_args=
10894 ac_prev=
10895 eval "set x $ac_configure_args"
10896 shift
10897 for ac_arg
10898 do
10899 if test -n "$ac_prev"; then
10900 ac_prev=
10901 continue
10902 fi
10903 case $ac_arg in
10904 -cache-file | --cache-file | --cache-fil | --cache-fi \
10905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10906 ac_prev=cache_file ;;
10907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10909 | --c=*)
10910 ;;
10911 --config-cache | -C)
10912 ;;
10913 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10914 ac_prev=srcdir ;;
10915 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10916 ;;
10917 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10918 ac_prev=prefix ;;
10919 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10920 ;;
042acc47
WP
10921 --disable-option-checking)
10922 ;;
56efe974
WP
10923 *)
10924 case $ac_arg in
042acc47 10925 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
56efe974 10926 esac
042acc47 10927 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
56efe974
WP
10928 esac
10929 done
10930
10931 # Always prepend --prefix to ensure using the same prefix
10932 # in subdir configurations.
10933 ac_arg="--prefix=$prefix"
10934 case $ac_arg in
042acc47 10935 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
56efe974
WP
10936 esac
10937 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10938
10939 # Pass --silent
10940 if test "$silent" = yes; then
10941 ac_sub_configure_args="--silent $ac_sub_configure_args"
10942 fi
10943
042acc47
WP
10944 # Always prepend --disable-option-checking to silence warnings, since
10945 # different subdirs can have different --enable and --with options.
10946 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10947
56efe974
WP
10948 ac_popdir=`pwd`
10949 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10950
10951 # Do not complain, so a configure script can configure whichever
10952 # parts of a large source tree are present.
10953 test -d "$srcdir/$ac_dir" || continue
10954
10955 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
042acc47
WP
10956 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10957 $as_echo "$ac_msg" >&6
10958 as_dir="$ac_dir"; as_fn_mkdir_p
56efe974
WP
10959 ac_builddir=.
10960
10961case "$ac_dir" in
10962.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10963*)
042acc47 10964 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
56efe974 10965 # A ".." for each directory in $ac_dir_suffix.
042acc47 10966 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
56efe974
WP
10967 case $ac_top_builddir_sub in
10968 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10969 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10970 esac ;;
10971esac
10972ac_abs_top_builddir=$ac_pwd
10973ac_abs_builddir=$ac_pwd$ac_dir_suffix
10974# for backward compatibility:
10975ac_top_builddir=$ac_top_build_prefix
10976
10977case $srcdir in
10978 .) # We are building in place.
10979 ac_srcdir=.
10980 ac_top_srcdir=$ac_top_builddir_sub
10981 ac_abs_top_srcdir=$ac_pwd ;;
10982 [\\/]* | ?:[\\/]* ) # Absolute name.
10983 ac_srcdir=$srcdir$ac_dir_suffix;
10984 ac_top_srcdir=$srcdir
10985 ac_abs_top_srcdir=$srcdir ;;
10986 *) # Relative name.
10987 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10988 ac_top_srcdir=$ac_top_build_prefix$srcdir
10989 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10990esac
10991ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10992
10993
10994 cd "$ac_dir"
10995
10996 # Check for guested configure; otherwise get Cygnus style configure.
10997 if test -f "$ac_srcdir/configure.gnu"; then
10998 ac_sub_configure=$ac_srcdir/configure.gnu
10999 elif test -f "$ac_srcdir/configure"; then
11000 ac_sub_configure=$ac_srcdir/configure
11001 elif test -f "$ac_srcdir/configure.in"; then
11002 # This should be Cygnus configure.
11003 ac_sub_configure=$ac_aux_dir/configure
11004 else
042acc47
WP
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11006$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
56efe974
WP
11007 ac_sub_configure=
11008 fi
11009
11010 # The recursion is here.
11011 if test -n "$ac_sub_configure"; then
11012 # Make the cache file name correct relative to the subdirectory.
11013 case $cache_file in
11014 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11015 *) # Relative name.
11016 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11017 esac
11018
042acc47
WP
11019 { $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
11020$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
56efe974
WP
11021 # The eval makes quoting arguments work.
11022 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11023 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
b540af17 11024 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
56efe974
WP
11025 fi
11026
11027 cd "$ac_popdir"
11028 done
11029fi
042acc47
WP
11030if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11032$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11033fi
56efe974 11034
212380e3 11035
11036if test "$cf_openssl_version_ok" = yes; then
11037 openssl="yes"
11038else
11039 openssl="no"
11040fi
11041
11042if test "$shared_modules" = yes; then
11043 modules=shared
11044else
11045 modules=static
11046fi
11047
11048echo "
11049Configuration:
11050 Install directory : $prefix
11051
11052 Ziplinks : $zlib
11053 OpenSSL : $openssl
212380e3 11054 Socket Engine : $SELECT_TYPE
11055 Small network : $small_net
11056 Block allocator : $balloc
212380e3 11057
11058 Nickname length : $NICKLEN
11059 Topic length : $TOPICLEN
11060
4424a194 11061Use (g)make to compile ShadowIRCd, then (g)make install to install it.
212380e3 11062"