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