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