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