Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.in Revision: 1.231 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.72.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
8 # 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 ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else case e in #(
28 e) case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac ;;
34 esac
35 fi
36
37
38
39 # Reset variables that may have inherited troublesome values from
40 # the environment.
41
42 # IFS needs to be set, to space, tab, and newline, in precisely that order.
43 # (If _AS_PATH_WALK were called with IFS unset, it would have the
44 # side effect of setting IFS to empty, thus disabling word splitting.)
45 # Quoting is to prevent editors from complaining about space-tab.
46 as_nl='
47 '
48 export as_nl
49 IFS=" "" $as_nl"
50
51 PS1='$ '
52 PS2='> '
53 PS4='+ '
54
55 # Ensure predictable behavior from utilities with locale-dependent output.
56 LC_ALL=C
57 export LC_ALL
58 LANGUAGE=C
59 export LANGUAGE
60
61 # We cannot yet rely on "unset" to work, but we need these variables
62 # to be unset--not just set to an empty or harmless value--now, to
63 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
64 # also avoids known problems related to "unset" and subshell syntax
65 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
66 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
67 do eval test \${$as_var+y} \
68 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
69 done
70
71 # Ensure that fds 0, 1, and 2 are open.
72 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
73 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
74 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75
76 # The user is always right.
77 if ${PATH_SEPARATOR+false} :; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # Find who we are. Look in the path if we contain no directory separator.
87 as_myself=
88 case $0 in #((
89 *[\\/]* ) as_myself=$0 ;;
90 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91 for as_dir in $PATH
92 do
93 IFS=$as_save_IFS
94 case $as_dir in #(((
95 '') as_dir=./ ;;
96 */) ;;
97 *) as_dir=$as_dir/ ;;
98 esac
99 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as 'sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115
116 # Use a proper internal environment variable to ensure we don't fall
117 # into an infinite loop, continuously re-executing ourselves.
118 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
119 _as_can_reexec=no; export _as_can_reexec;
120 # We cannot yet assume a decent shell, so we have to provide a
121 # neutralization value for shells without unset; and this also
122 # works around shells that cannot unset nonexistent variables.
123 # Preserve -v and -x to the replacement shell.
124 BASH_ENV=/dev/null
125 ENV=/dev/null
126 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
127 case $- in # ((((
128 *v*x* | *x*v* ) as_opts=-vx ;;
129 *v* ) as_opts=-v ;;
130 *x* ) as_opts=-x ;;
131 * ) as_opts= ;;
132 esac
133 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
134 # Admittedly, this is quite paranoid, since all the known shells bail
135 # out after a failed 'exec'.
136 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
137 exit 255
138 fi
139 # We don't want this to propagate to other subprocesses.
140 { _as_can_reexec=; unset _as_can_reexec;}
141 if test "x$CONFIG_SHELL" = x; then
142 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else case e in #(
151 e) case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac ;;
157 esac
158 fi
159 "
160 as_required="as_fn_return () { (exit \$1); }
161 as_fn_success () { as_fn_return 0; }
162 as_fn_failure () { as_fn_return 1; }
163 as_fn_ret_success () { return 0; }
164 as_fn_ret_failure () { return 1; }
165
166 exitcode=0
167 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
168 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
169 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
170 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
171 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
172 then :
173
174 else case e in #(
175 e) exitcode=1; echo positional parameters were not saved. ;;
176 esac
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else case e in #(
191 e) as_have_required=no ;;
192 esac
193 fi
194 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195 then :
196
197 else case e in #(
198 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 as_found=false
200 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 do
202 IFS=$as_save_IFS
203 case $as_dir in #(((
204 '') as_dir=./ ;;
205 */) ;;
206 *) as_dir=$as_dir/ ;;
207 esac
208 as_found=:
209 case $as_dir in #(
210 /*)
211 for as_base in sh bash ksh sh5; do
212 # Try only shells that exist, to save several forks.
213 as_shell=$as_dir$as_base
214 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
215 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 then :
217 CONFIG_SHELL=$as_shell as_have_required=yes
218 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
219 then :
220 break 2
221 fi
222 fi
223 done;;
224 esac
225 as_found=false
226 done
227 IFS=$as_save_IFS
228 if $as_found
229 then :
230
231 else case e in #(
232 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi ;;
237 esac
238 fi
239
240
241 if test "x$CONFIG_SHELL" != x
242 then :
243 export CONFIG_SHELL
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
248 BASH_ENV=/dev/null
249 ENV=/dev/null
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 case $- in # ((((
252 *v*x* | *x*v* ) as_opts=-vx ;;
253 *v* ) as_opts=-v ;;
254 *x* ) as_opts=-x ;;
255 * ) as_opts= ;;
256 esac
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed 'exec'.
260 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
261 exit 255
262 fi
263
264 if test x$as_have_required = xno
265 then :
266 printf "%s\n" "$0: This script requires a shell more modern than all"
267 printf "%s\n" "$0: the shells that I found on your system."
268 if test ${ZSH_VERSION+y} ; then
269 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
271 else
272 printf "%s\n" "$0: Please tell [email protected] about your system,
273 $0: including any error possibly output before this
274 $0: message. Then install a modern shell, or manually run
275 $0: the script under such a shell if you do have one."
276 fi
277 exit 1
278 fi ;;
279 esac
280 fi
281 fi
282 SHELL=${CONFIG_SHELL-/bin/sh}
283 export SHELL
284 # Unset more variables known to interfere with behavior of common tools.
285 CLICOLOR_FORCE= GREP_OPTIONS=
286 unset CLICOLOR_FORCE GREP_OPTIONS
287
288 ## --------------------- ##
289 ## M4sh Shell Functions. ##
290 ## --------------------- ##
291 # as_fn_unset VAR
292 # ---------------
293 # Portably unset VAR.
294 as_fn_unset ()
295 {
296 { eval $1=; unset $1;}
297 }
298 as_unset=as_fn_unset
299
300
301 # as_fn_set_status STATUS
302 # -----------------------
303 # Set $? to STATUS, without forking.
304 as_fn_set_status ()
305 {
306 return $1
307 } # as_fn_set_status
308
309 # as_fn_exit STATUS
310 # -----------------
311 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
312 as_fn_exit ()
313 {
314 set +e
315 as_fn_set_status $1
316 exit $1
317 } # as_fn_exit
318
319 # as_fn_mkdir_p
320 # -------------
321 # Create "$as_dir" as a directory, including parents if necessary.
322 as_fn_mkdir_p ()
323 {
324
325 case $as_dir in #(
326 -*) as_dir=./$as_dir;;
327 esac
328 test -d "$as_dir" || eval $as_mkdir_p || {
329 as_dirs=
330 while :; do
331 case $as_dir in #(
332 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333 *) as_qdir=$as_dir;;
334 esac
335 as_dirs="'$as_qdir' $as_dirs"
336 as_dir=`$as_dirname -- "$as_dir" ||
337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
338 X"$as_dir" : 'X\(//\)[^/]' \| \
339 X"$as_dir" : 'X\(//\)$' \| \
340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
341 printf "%s\n" X"$as_dir" |
342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)[^/].*/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)$/{
351 s//\1/
352 q
353 }
354 /^X\(\/\).*/{
355 s//\1/
356 q
357 }
358 s/.*/./; q'`
359 test -d "$as_dir" && break
360 done
361 test -z "$as_dirs" || eval "mkdir $as_dirs"
362 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363
364
365 } # as_fn_mkdir_p
366
367 # as_fn_executable_p FILE
368 # -----------------------
369 # Test if FILE is an executable regular file.
370 as_fn_executable_p ()
371 {
372 test -f "$1" && test -x "$1"
373 } # as_fn_executable_p
374 # as_fn_append VAR VALUE
375 # ----------------------
376 # Append the text in VALUE to the end of the definition contained in VAR. Take
377 # advantage of any shell optimizations that allow amortized linear growth over
378 # repeated appends, instead of the typical quadratic growth present in naive
379 # implementations.
380 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
381 then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else case e in #(
387 e) as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 } ;;
391 esac
392 fi # as_fn_append
393
394 # as_fn_arith ARG...
395 # ------------------
396 # Perform arithmetic evaluation on the ARGs, and store the result in the
397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
398 # must be portable across $(()) and expr.
399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
400 then :
401 eval 'as_fn_arith ()
402 {
403 as_val=$(( $* ))
404 }'
405 else case e in #(
406 e) as_fn_arith ()
407 {
408 as_val=`expr "$@" || test $? -eq 1`
409 } ;;
410 esac
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 printf "%s\n" "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 printf "%s\n" X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 t clear
487 :clear
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511 }
512
513
514 # Determine whether it's possible to make 'echo' print without a newline.
515 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
516 # for compatibility with existing Makefiles.
517 ECHO_C= ECHO_N= ECHO_T=
518 case `echo -n x` in #(((((
519 -n*)
520 case `echo 'xy\c'` in
521 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
522 xy) ECHO_C='\c';;
523 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 ECHO_T=' ';;
525 esac;;
526 *)
527 ECHO_N='-n';;
528 esac
529
530 # For backward compatibility with old third-party macros, we provide
531 # the shell variables $as_echo and $as_echo_n. New code should use
532 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
533 as_echo='printf %s\n'
534 as_echo_n='printf %s'
535
536 rm -f conf$$ conf$$.exe conf$$.file
537 if test -d conf$$.dir; then
538 rm -f conf$$.dir/conf$$.file
539 else
540 rm -f conf$$.dir
541 mkdir conf$$.dir 2>/dev/null
542 fi
543 if (echo >conf$$.file) 2>/dev/null; then
544 if ln -s conf$$.file conf$$ 2>/dev/null; then
545 as_ln_s='ln -s'
546 # ... but there are two gotchas:
547 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
548 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
549 # In both cases, we have to default to 'cp -pR'.
550 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
551 as_ln_s='cp -pR'
552 elif ln conf$$.file conf$$ 2>/dev/null; then
553 as_ln_s=ln
554 else
555 as_ln_s='cp -pR'
556 fi
557 else
558 as_ln_s='cp -pR'
559 fi
560 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
561 rmdir conf$$.dir 2>/dev/null
562
563 if mkdir -p . 2>/dev/null; then
564 as_mkdir_p='mkdir -p "$as_dir"'
565 else
566 test -d ./-p && rmdir ./-p
567 as_mkdir_p=false
568 fi
569
570 as_test_x='test -x'
571 as_executable_p=as_fn_executable_p
572
573 # Sed expression to map a string onto a valid CPP name.
574 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
575 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
576
577 # Sed expression to map a string onto a valid variable name.
578 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
579 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
580
581
582 test -n "$DJDIR" || exec 7<&0 </dev/null
583 exec 6>&1
584
585 # Name of the host.
586 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
587 # so uname gets run too.
588 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
589
590 #
591 # Initializations.
592 #
593 ac_default_prefix=/usr/local
594 ac_clean_files=
595 ac_config_libobj_dir=.
596 LIBOBJS=
597 cross_compiling=no
598 subdirs=
599 MFLAGS=
600 MAKEFLAGS=
601
602 # Identity of this package.
603 PACKAGE_NAME=''
604 PACKAGE_TARNAME=''
605 PACKAGE_VERSION=''
606 PACKAGE_STRING=''
607 PACKAGE_BUGREPORT=''
608 PACKAGE_URL=''
609
610 ac_unique_file="${srcdir}/source/irc.c"
611 # Factoring default headers for most tests.
612 ac_includes_default="\
613 #include <stddef.h>
614 #ifdef HAVE_STDIO_H
615 # include <stdio.h>
616 #endif
617 #ifdef HAVE_STDLIB_H
618 # include <stdlib.h>
619 #endif
620 #ifdef HAVE_STRING_H
621 # include <string.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_STRINGS_H
630 # include <strings.h>
631 #endif
632 #ifdef HAVE_SYS_TYPES_H
633 # include <sys/types.h>
634 #endif
635 #ifdef HAVE_SYS_STAT_H
636 # include <sys/stat.h>
637 #endif
638 #ifdef HAVE_UNISTD_H
639 # include <unistd.h>
640 #endif"
641
642 ac_header_c_list=
643 ac_subst_vars='LTLIBOBJS
644 LIBOBJS
645 LN
646 RM
647 SENDMAIL
648 ZCAT
649 INSTALL_HELP_CMD
650 COPY_DIRECTORY
651 ERRORFLAGS
652 WARNINGFLAGS
653 DEBUGFLAGS
654 DEFAULT_SSL_LEVEL
655 IRCLIB
656 objdir
657 srcdir
658 CPP
659 OBJEXT
660 EXEEXT
661 ac_ct_CC
662 CPPFLAGS
663 LDFLAGS
664 CFLAGS
665 CC
666 CATEGORIES
667 VERSION
668 target_alias
669 host_alias
670 build_alias
671 LIBS
672 ECHO_T
673 ECHO_N
674 ECHO_C
675 DEFS
676 mandir
677 localedir
678 libdir
679 psdir
680 pdfdir
681 dvidir
682 htmldir
683 infodir
684 docdir
685 oldincludedir
686 includedir
687 runstatedir
688 localstatedir
689 sharedstatedir
690 sysconfdir
691 datadir
692 datarootdir
693 libexecdir
694 sbindir
695 bindir
696 program_transform_name
697 prefix
698 exec_prefix
699 PACKAGE_URL
700 PACKAGE_BUGREPORT
701 PACKAGE_STRING
702 PACKAGE_VERSION
703 PACKAGE_TARNAME
704 PACKAGE_NAME
705 PATH_SEPARATOR
706 SHELL'
707 ac_subst_files=''
708 ac_user_opts='
709 enable_option_checking
710 with_prefix_paths
711 with_efence
712 with_openssl
713 with_default_ssl
714 with_debugging
715 with_warnings
716 with_warning_errors
717 with_sanitizer
718 with_emacs_meta_keys
719 with_paranoid
720 with_lto
721 with_default_server
722 with_default_resize_method
723 with_socks
724 with_socks5
725 with_socks4
726 with_non_blocking
727 '
728 ac_precious_vars='build_alias
729 host_alias
730 target_alias
731 CC
732 CFLAGS
733 LDFLAGS
734 LIBS
735 CPPFLAGS
736 CPP'
737
738
739 # Initialize some variables set by options.
740 ac_init_help=
741 ac_init_version=false
742 ac_unrecognized_opts=
743 ac_unrecognized_sep=
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
746 cache_file=/dev/null
747 exec_prefix=NONE
748 no_create=
749 no_recursion=
750 prefix=NONE
751 program_prefix=NONE
752 program_suffix=NONE
753 program_transform_name=s,x,x,
754 silent=
755 site=
756 srcdir=
757 verbose=
758 x_includes=NONE
759 x_libraries=NONE
760
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir='${exec_prefix}/bin'
768 sbindir='${exec_prefix}/sbin'
769 libexecdir='${exec_prefix}/libexec'
770 datarootdir='${prefix}/share'
771 datadir='${datarootdir}'
772 sysconfdir='${prefix}/etc'
773 sharedstatedir='${prefix}/com'
774 localstatedir='${prefix}/var'
775 runstatedir='${localstatedir}/run'
776 includedir='${prefix}/include'
777 oldincludedir='/usr/include'
778 docdir='${datarootdir}/doc/${PACKAGE}'
779 infodir='${datarootdir}/info'
780 htmldir='${docdir}'
781 dvidir='${docdir}'
782 pdfdir='${docdir}'
783 psdir='${docdir}'
784 libdir='${exec_prefix}/lib'
785 localedir='${datarootdir}/locale'
786 mandir='${datarootdir}/man'
787
788 ac_prev=
789 ac_dashdash=
790 for ac_option
791 do
792 # If the previous option needs an argument, assign it.
793 if test -n "$ac_prev"; then
794 eval $ac_prev=\$ac_option
795 ac_prev=
796 continue
797 fi
798
799 case $ac_option in
800 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801 *=) ac_optarg= ;;
802 *) ac_optarg=yes ;;
803 esac
804
805 case $ac_dashdash$ac_option in
806 --)
807 ac_dashdash=yes ;;
808
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
813
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
818
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
825
826 --config-cache | -C)
827 cache_file=config.cache ;;
828
829 -datadir | --datadir | --datadi | --datad)
830 ac_prev=datadir ;;
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
833
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
840
841 -disable-* | --disable-*)
842 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
845 as_fn_error $? "invalid feature name: '$ac_useropt'"
846 ac_useropt_orig=$ac_useropt
847 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
848 case $ac_user_opts in
849 *"
850 "enable_$ac_useropt"
851 "*) ;;
852 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
853 ac_unrecognized_sep=', ';;
854 esac
855 eval enable_$ac_useropt=no ;;
856
857 -docdir | --docdir | --docdi | --doc | --do)
858 ac_prev=docdir ;;
859 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
860 docdir=$ac_optarg ;;
861
862 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
863 ac_prev=dvidir ;;
864 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
865 dvidir=$ac_optarg ;;
866
867 -enable-* | --enable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error $? "invalid feature name: '$ac_useropt'"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
875 *"
876 "enable_$ac_useropt"
877 "*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=\$ac_optarg ;;
882
883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885 | --exec | --exe | --ex)
886 ac_prev=exec_prefix ;;
887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889 | --exec=* | --exe=* | --ex=*)
890 exec_prefix=$ac_optarg ;;
891
892 -gas | --gas | --ga | --g)
893 # Obsolete; use --with-gas.
894 with_gas=yes ;;
895
896 -help | --help | --hel | --he | -h)
897 ac_init_help=long ;;
898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899 ac_init_help=recursive ;;
900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901 ac_init_help=short ;;
902
903 -host | --host | --hos | --ho)
904 ac_prev=host_alias ;;
905 -host=* | --host=* | --hos=* | --ho=*)
906 host_alias=$ac_optarg ;;
907
908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909 ac_prev=htmldir ;;
910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911 | --ht=*)
912 htmldir=$ac_optarg ;;
913
914 -includedir | --includedir | --includedi | --included | --include \
915 | --includ | --inclu | --incl | --inc)
916 ac_prev=includedir ;;
917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918 | --includ=* | --inclu=* | --incl=* | --inc=*)
919 includedir=$ac_optarg ;;
920
921 -infodir | --infodir | --infodi | --infod | --info | --inf)
922 ac_prev=infodir ;;
923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924 infodir=$ac_optarg ;;
925
926 -libdir | --libdir | --libdi | --libd)
927 ac_prev=libdir ;;
928 -libdir=* | --libdir=* | --libdi=* | --libd=*)
929 libdir=$ac_optarg ;;
930
931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932 | --libexe | --libex | --libe)
933 ac_prev=libexecdir ;;
934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935 | --libexe=* | --libex=* | --libe=*)
936 libexecdir=$ac_optarg ;;
937
938 -localedir | --localedir | --localedi | --localed | --locale)
939 ac_prev=localedir ;;
940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941 localedir=$ac_optarg ;;
942
943 -localstatedir | --localstatedir | --localstatedi | --localstated \
944 | --localstate | --localstat | --localsta | --localst | --locals)
945 ac_prev=localstatedir ;;
946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
948 localstatedir=$ac_optarg ;;
949
950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951 ac_prev=mandir ;;
952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
953 mandir=$ac_optarg ;;
954
955 -nfp | --nfp | --nf)
956 # Obsolete; use --without-fp.
957 with_fp=no ;;
958
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960 | --no-cr | --no-c | -n)
961 no_create=yes ;;
962
963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965 no_recursion=yes ;;
966
967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969 | --oldin | --oldi | --old | --ol | --o)
970 ac_prev=oldincludedir ;;
971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974 oldincludedir=$ac_optarg ;;
975
976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977 ac_prev=prefix ;;
978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979 prefix=$ac_optarg ;;
980
981 -program-prefix | --program-prefix | --program-prefi | --program-pref \
982 | --program-pre | --program-pr | --program-p)
983 ac_prev=program_prefix ;;
984 -program-prefix=* | --program-prefix=* | --program-prefi=* \
985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986 program_prefix=$ac_optarg ;;
987
988 -program-suffix | --program-suffix | --program-suffi | --program-suff \
989 | --program-suf | --program-su | --program-s)
990 ac_prev=program_suffix ;;
991 -program-suffix=* | --program-suffix=* | --program-suffi=* \
992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993 program_suffix=$ac_optarg ;;
994
995 -program-transform-name | --program-transform-name \
996 | --program-transform-nam | --program-transform-na \
997 | --program-transform-n | --program-transform- \
998 | --program-transform | --program-transfor \
999 | --program-transfo | --program-transf \
1000 | --program-trans | --program-tran \
1001 | --progr-tra | --program-tr | --program-t)
1002 ac_prev=program_transform_name ;;
1003 -program-transform-name=* | --program-transform-name=* \
1004 | --program-transform-nam=* | --program-transform-na=* \
1005 | --program-transform-n=* | --program-transform-=* \
1006 | --program-transform=* | --program-transfor=* \
1007 | --program-transfo=* | --program-transf=* \
1008 | --program-trans=* | --program-tran=* \
1009 | --progr-tra=* | --program-tr=* | --program-t=*)
1010 program_transform_name=$ac_optarg ;;
1011
1012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013 ac_prev=pdfdir ;;
1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015 pdfdir=$ac_optarg ;;
1016
1017 -psdir | --psdir | --psdi | --psd | --ps)
1018 ac_prev=psdir ;;
1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020 psdir=$ac_optarg ;;
1021
1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1024 silent=yes ;;
1025
1026 -runstatedir | --runstatedir | --runstatedi | --runstated \
1027 | --runstate | --runstat | --runsta | --runst | --runs \
1028 | --run | --ru | --r)
1029 ac_prev=runstatedir ;;
1030 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1031 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1032 | --run=* | --ru=* | --r=*)
1033 runstatedir=$ac_optarg ;;
1034
1035 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036 ac_prev=sbindir ;;
1037 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038 | --sbi=* | --sb=*)
1039 sbindir=$ac_optarg ;;
1040
1041 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1042 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1043 | --sharedst | --shareds | --shared | --share | --shar \
1044 | --sha | --sh)
1045 ac_prev=sharedstatedir ;;
1046 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1047 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1048 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049 | --sha=* | --sh=*)
1050 sharedstatedir=$ac_optarg ;;
1051
1052 -site | --site | --sit)
1053 ac_prev=site ;;
1054 -site=* | --site=* | --sit=*)
1055 site=$ac_optarg ;;
1056
1057 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058 ac_prev=srcdir ;;
1059 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1060 srcdir=$ac_optarg ;;
1061
1062 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1063 | --syscon | --sysco | --sysc | --sys | --sy)
1064 ac_prev=sysconfdir ;;
1065 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1066 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1067 sysconfdir=$ac_optarg ;;
1068
1069 -target | --target | --targe | --targ | --tar | --ta | --t)
1070 ac_prev=target_alias ;;
1071 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1072 target_alias=$ac_optarg ;;
1073
1074 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1075 verbose=yes ;;
1076
1077 -version | --version | --versio | --versi | --vers | -V)
1078 ac_init_version=: ;;
1079
1080 -with-* | --with-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error $? "invalid package name: '$ac_useropt'"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1088 *"
1089 "with_$ac_useropt"
1090 "*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval with_$ac_useropt=\$ac_optarg ;;
1095
1096 -without-* | --without-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error $? "invalid package name: '$ac_useropt'"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1104 *"
1105 "with_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval with_$ac_useropt=no ;;
1111
1112 --x)
1113 # Obsolete; use --with-x.
1114 with_x=yes ;;
1115
1116 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1117 | --x-incl | --x-inc | --x-in | --x-i)
1118 ac_prev=x_includes ;;
1119 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1120 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1121 x_includes=$ac_optarg ;;
1122
1123 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1124 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1125 ac_prev=x_libraries ;;
1126 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1127 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1128 x_libraries=$ac_optarg ;;
1129
1130 -*) as_fn_error $? "unrecognized option: '$ac_option'
1131 Try '$0 --help' for more information"
1132 ;;
1133
1134 *=*)
1135 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1136 # Reject names that are not valid shell variable names.
1137 case $ac_envvar in #(
1138 '' | [0-9]* | *[!_$as_cr_alnum]* )
1139 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1140 esac
1141 eval $ac_envvar=\$ac_optarg
1142 export $ac_envvar ;;
1143
1144 *)
1145 # FIXME: should be removed in autoconf 3.0.
1146 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1147 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1148 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1149 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1150 ;;
1151
1152 esac
1153 done
1154
1155 if test -n "$ac_prev"; then
1156 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1157 as_fn_error $? "missing argument to $ac_option"
1158 fi
1159
1160 if test -n "$ac_unrecognized_opts"; then
1161 case $enable_option_checking in
1162 no) ;;
1163 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1164 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1165 esac
1166 fi
1167
1168 # Check all directory arguments for consistency.
1169 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170 datadir sysconfdir sharedstatedir localstatedir includedir \
1171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172 libdir localedir mandir runstatedir
1173 do
1174 eval ac_val=\$$ac_var
1175 # Remove trailing slashes.
1176 case $ac_val in
1177 */ )
1178 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1179 eval $ac_var=\$ac_val;;
1180 esac
1181 # Be sure to have absolute directory names.
1182 case $ac_val in
1183 [\\/$]* | ?:[\\/]* ) continue;;
1184 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185 esac
1186 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1187 done
1188
1189 # There might be people who depend on the old broken behavior: '$host'
1190 # used to hold the argument of --host etc.
1191 # FIXME: To remove some day.
1192 build=$build_alias
1193 host=$host_alias
1194 target=$target_alias
1195
1196 # FIXME: To remove some day.
1197 if test "x$host_alias" != x; then
1198 if test "x$build_alias" = x; then
1199 cross_compiling=maybe
1200 elif test "x$build_alias" != "x$host_alias"; then
1201 cross_compiling=yes
1202 fi
1203 fi
1204
1205 ac_tool_prefix=
1206 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207
1208 test "$silent" = yes && exec 6>/dev/null
1209
1210
1211 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212 ac_ls_di=`ls -di .` &&
1213 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 as_fn_error $? "working directory cannot be determined"
1215 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 as_fn_error $? "pwd does not report name of working directory"
1217
1218
1219 # Find the source files, if location was not specified.
1220 if test -z "$srcdir"; then
1221 ac_srcdir_defaulted=yes
1222 # Try the directory containing this script, then the parent directory.
1223 ac_confdir=`$as_dirname -- "$as_myself" ||
1224 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225 X"$as_myself" : 'X\(//\)[^/]' \| \
1226 X"$as_myself" : 'X\(//\)$' \| \
1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228 printf "%s\n" X"$as_myself" |
1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230 s//\1/
1231 q
1232 }
1233 /^X\(\/\/\)[^/].*/{
1234 s//\1/
1235 q
1236 }
1237 /^X\(\/\/\)$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\).*/{
1242 s//\1/
1243 q
1244 }
1245 s/.*/./; q'`
1246 srcdir=$ac_confdir
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 srcdir=..
1249 fi
1250 else
1251 ac_srcdir_defaulted=no
1252 fi
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1256 fi
1257 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1258 ac_abs_confdir=`(
1259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1260 pwd)`
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1263 srcdir=.
1264 fi
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1268 case $srcdir in
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 esac
1271 for ac_var in $ac_precious_vars; do
1272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_${ac_var}_value=\$${ac_var}
1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276 done
1277
1278 #
1279 # Report the --help message.
1280 #
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1284 cat <<_ACEOF
1285 'configure' configures this package to adapt to many kinds of systems.
1286
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1288
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1291
1292 Defaults for the options are specified in brackets.
1293
1294 Configuration:
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print 'checking ...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for '--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or '..']
1304
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1309 [PREFIX]
1310
1311 By default, 'make install' will install all the files in
1312 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than '$ac_default_prefix' using '--prefix',
1314 for instance '--prefix=\$HOME'.
1315
1316 For better control, use the options below.
1317
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1326 --libdir=DIR object code libraries [EPREFIX/lib]
1327 --includedir=DIR C header files [PREFIX/include]
1328 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1329 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1330 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1331 --infodir=DIR info documentation [DATAROOTDIR/info]
1332 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1333 --mandir=DIR man documentation [DATAROOTDIR/man]
1334 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1335 --htmldir=DIR html documentation [DOCDIR]
1336 --dvidir=DIR dvi documentation [DOCDIR]
1337 --pdfdir=DIR pdf documentation [DOCDIR]
1338 --psdir=DIR ps documentation [DOCDIR]
1339 _ACEOF
1340
1341 cat <<\_ACEOF
1342 _ACEOF
1343 fi
1344
1345 if test -n "$ac_init_help"; then
1346
1347 cat <<\_ACEOF
1348
1349 Optional Packages:
1350 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1351 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1352 --with-prefix-paths Add include and library directories from prefix
1353 --with-efence[=PATH] Compile with the ElectricFence debugging library.
1354 --with-openssl[=PATH] Compile with OpenSSL.
1355 --with-default-ssl=LEVEL Default SSL level (OFF,SSL,SSLNOCHECK).
1356 --with-debugging[=flags] Build with debugging support.
1357 --with-warnings[=flags] Build with GCC warnings.
1358 --with-warning-errors[=flags] Turn warnings into errors.
1359 --with-sanitizer[=<list>] Use sanitizers, default ASAN.
1360 --with-emacs-meta-keys Enable Emacs meta key support.
1361 --with-paranoid Sets the compile-time paranoid flag.
1362 --with-lto Enable use of the -flto option.
1363 --with-default-server=SERVER[:PORT] Connect to SERVER by default.
1364 --with-default-resize-method=type Either "old" or "new"
1365 --with-socks Compile with SOCKS firewall traversal support
1366 --with-socks5[=PATH] Compile with SOCKS5 firewall traversal support.
1367 --with-socks4[=PATH] Compile with SOCKS4 firewall traversal support.
1368 --with-non-blocking=[TYPE] Use TYPE non-blocking, yes or no.
1369
1370 Some influential environment variables:
1371 CC C compiler command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1374 nonstandard directory <lib dir>
1375 LIBS libraries to pass to the linker, e.g. -l<library>
1376 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1377 you have headers in a nonstandard directory <include dir>
1378 CPP C preprocessor
1379
1380 Use these variables to override the choices made by 'configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1382
1383 Report bugs to the package provider.
1384 _ACEOF
1385 ac_status=$?
1386 fi
1387
1388 if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
1390 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391 test -d "$ac_dir" ||
1392 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1393 continue
1394 ac_builddir=.
1395
1396 case "$ac_dir" in
1397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *)
1399 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1400 # A ".." for each directory in $ac_dir_suffix.
1401 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1402 case $ac_top_builddir_sub in
1403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405 esac ;;
1406 esac
1407 ac_abs_top_builddir=$ac_pwd
1408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1409 # for backward compatibility:
1410 ac_top_builddir=$ac_top_build_prefix
1411
1412 case $srcdir in
1413 .) # We are building in place.
1414 ac_srcdir=.
1415 ac_top_srcdir=$ac_top_builddir_sub
1416 ac_abs_top_srcdir=$ac_pwd ;;
1417 [\\/]* | ?:[\\/]* ) # Absolute name.
1418 ac_srcdir=$srcdir$ac_dir_suffix;
1419 ac_top_srcdir=$srcdir
1420 ac_abs_top_srcdir=$srcdir ;;
1421 *) # Relative name.
1422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1423 ac_top_srcdir=$ac_top_build_prefix$srcdir
1424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1425 esac
1426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427
1428 cd "$ac_dir" || { ac_status=$?; continue; }
1429 # Check for configure.gnu first; this name is used for a wrapper for
1430 # Metaconfig's "Configure" on case-insensitive file systems.
1431 if test -f "$ac_srcdir/configure.gnu"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434 elif test -f "$ac_srcdir/configure"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure" --help=recursive
1437 else
1438 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1439 fi || ac_status=$?
1440 cd "$ac_pwd" || { ac_status=$?; break; }
1441 done
1442 fi
1443
1444 test -n "$ac_init_help" && exit $ac_status
1445 if $ac_init_version; then
1446 cat <<\_ACEOF
1447 configure
1448 generated by GNU Autoconf 2.72
1449
1450 Copyright (C) 2023 Free Software Foundation, Inc.
1451 This configure script is free software; the Free Software Foundation
1452 gives unlimited permission to copy, distribute and modify it.
1453 _ACEOF
1454 exit
1455 fi
1456
1457 ## ------------------------ ##
1458 ## Autoconf initialization. ##
1459 ## ------------------------ ##
1460
1461 # ac_fn_c_try_compile LINENO
1462 # --------------------------
1463 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1464 ac_fn_c_try_compile ()
1465 {
1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467 rm -f conftest.$ac_objext conftest.beam
1468 if { { ac_try="$ac_compile"
1469 case "(($ac_try" in
1470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1471 *) ac_try_echo=$ac_try;;
1472 esac
1473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1474 printf "%s\n" "$ac_try_echo"; } >&5
1475 (eval "$ac_compile") 2>conftest.err
1476 ac_status=$?
1477 if test -s conftest.err; then
1478 grep -v '^ *+' conftest.err >conftest.er1
1479 cat conftest.er1 >&5
1480 mv -f conftest.er1 conftest.err
1481 fi
1482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1483 test $ac_status = 0; } && {
1484 test -z "$ac_c_werror_flag" ||
1485 test ! -s conftest.err
1486 } && test -s conftest.$ac_objext
1487 then :
1488 ac_retval=0
1489 else case e in #(
1490 e) printf "%s\n" "$as_me: failed program was:" >&5
1491 sed 's/^/| /' conftest.$ac_ext >&5
1492
1493 ac_retval=1 ;;
1494 esac
1495 fi
1496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1497 as_fn_set_status $ac_retval
1498
1499 } # ac_fn_c_try_compile
1500
1501 # ac_fn_c_try_cpp LINENO
1502 # ----------------------
1503 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1504 ac_fn_c_try_cpp ()
1505 {
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 if { { ac_try="$ac_cpp conftest.$ac_ext"
1508 case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511 esac
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 printf "%s\n" "$ac_try_echo"; } >&5
1514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1520 fi
1521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } > conftest.i && {
1523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 }
1526 then :
1527 ac_retval=0
1528 else case e in #(
1529 e) printf "%s\n" "$as_me: failed program was:" >&5
1530 sed 's/^/| /' conftest.$ac_ext >&5
1531
1532 ac_retval=1 ;;
1533 esac
1534 fi
1535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536 as_fn_set_status $ac_retval
1537
1538 } # ac_fn_c_try_cpp
1539
1540 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1541 # -------------------------------------------------------
1542 # Tests whether HEADER exists and can be compiled using the include files in
1543 # INCLUDES, setting the cache variable VAR accordingly.
1544 ac_fn_c_check_header_compile ()
1545 {
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1548 printf %s "checking for $2... " >&6; }
1549 if eval test \${$3+y}
1550 then :
1551 printf %s "(cached) " >&6
1552 else case e in #(
1553 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1554 /* end confdefs.h. */
1555 $4
1556 #include <$2>
1557 _ACEOF
1558 if ac_fn_c_try_compile "$LINENO"
1559 then :
1560 eval "$3=yes"
1561 else case e in #(
1562 e) eval "$3=no" ;;
1563 esac
1564 fi
1565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1566 esac
1567 fi
1568 eval ac_res=\$$3
1569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1570 printf "%s\n" "$ac_res" >&6; }
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572
1573 } # ac_fn_c_check_header_compile
1574
1575 # ac_fn_c_try_link LINENO
1576 # -----------------------
1577 # Try to link conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_link ()
1579 {
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1582 if { { ac_try="$ac_link"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 printf "%s\n" "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest$ac_exeext && {
1601 test "$cross_compiling" = yes ||
1602 test -x conftest$ac_exeext
1603 }
1604 then :
1605 ac_retval=0
1606 else case e in #(
1607 e) printf "%s\n" "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1 ;;
1611 esac
1612 fi
1613 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1614 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1615 # interfere with the next link command; also delete a directory that is
1616 # left behind by Apple's compiler. We do this before executing the actions.
1617 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_link
1622
1623 # ac_fn_c_check_func LINENO FUNC VAR
1624 # ----------------------------------
1625 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1626 ac_fn_c_check_func ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 printf %s "checking for $2... " >&6; }
1631 if eval test \${$3+y}
1632 then :
1633 printf %s "(cached) " >&6
1634 else case e in #(
1635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1637 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1639 #define $2 innocuous_$2
1640
1641 /* System header to define __stub macros and hopefully few prototypes,
1642 which can conflict with char $2 (void); below. */
1643
1644 #include <limits.h>
1645 #undef $2
1646
1647 /* Override any GCC internal prototype to avoid an error.
1648 Use char because int might match the return type of a GCC
1649 builtin and then its argument prototype would still apply. */
1650 #ifdef __cplusplus
1651 extern "C"
1652 #endif
1653 char $2 (void);
1654 /* The GNU C library defines this for functions which it implements
1655 to always fail with ENOSYS. Some functions are actually named
1656 something starting with __ and the normal name is an alias. */
1657 #if defined __stub_$2 || defined __stub___$2
1658 choke me
1659 #endif
1660
1661 int
1662 main (void)
1663 {
1664 return $2 ();
1665 ;
1666 return 0;
1667 }
1668 _ACEOF
1669 if ac_fn_c_try_link "$LINENO"
1670 then :
1671 eval "$3=yes"
1672 else case e in #(
1673 e) eval "$3=no" ;;
1674 esac
1675 fi
1676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1677 conftest$ac_exeext conftest.$ac_ext ;;
1678 esac
1679 fi
1680 eval ac_res=\$$3
1681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 printf "%s\n" "$ac_res" >&6; }
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685 } # ac_fn_c_check_func
1686
1687 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1688 # -------------------------------------------
1689 # Tests whether TYPE exists after having included INCLUDES, setting cache
1690 # variable VAR accordingly.
1691 ac_fn_c_check_type ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 printf %s "checking for $2... " >&6; }
1696 if eval test \${$3+y}
1697 then :
1698 printf %s "(cached) " >&6
1699 else case e in #(
1700 e) eval "$3=no"
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1703 $4
1704 int
1705 main (void)
1706 {
1707 if (sizeof ($2))
1708 return 0;
1709 ;
1710 return 0;
1711 }
1712 _ACEOF
1713 if ac_fn_c_try_compile "$LINENO"
1714 then :
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 $4
1718 int
1719 main (void)
1720 {
1721 if (sizeof (($2)))
1722 return 0;
1723 ;
1724 return 0;
1725 }
1726 _ACEOF
1727 if ac_fn_c_try_compile "$LINENO"
1728 then :
1729
1730 else case e in #(
1731 e) eval "$3=yes" ;;
1732 esac
1733 fi
1734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1735 fi
1736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1737 esac
1738 fi
1739 eval ac_res=\$$3
1740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 printf "%s\n" "$ac_res" >&6; }
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
1744 } # ac_fn_c_check_type
1745 ac_configure_args_raw=
1746 for ac_arg
1747 do
1748 case $ac_arg in
1749 *\'*)
1750 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751 esac
1752 as_fn_append ac_configure_args_raw " '$ac_arg'"
1753 done
1754
1755 case $ac_configure_args_raw in
1756 *$as_nl*)
1757 ac_safe_unquote= ;;
1758 *)
1759 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1760 ac_unsafe_a="$ac_unsafe_z#~"
1761 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1762 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1763 esac
1764
1765 cat >config.log <<_ACEOF
1766 This file contains any messages produced by compilers while
1767 running configure, to aid debugging if configure makes a mistake.
1768
1769 It was created by $as_me, which was
1770 generated by GNU Autoconf 2.72. Invocation command line was
1771
1772 $ $0$ac_configure_args_raw
1773
1774 _ACEOF
1775 exec 5>>config.log
1776 {
1777 cat <<_ASUNAME
1778 ## --------- ##
1779 ## Platform. ##
1780 ## --------- ##
1781
1782 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1783 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1784 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1785 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1786 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1787
1788 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1789 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1790
1791 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1792 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1793 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1794 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1795 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1796 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1797 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1798
1799 _ASUNAME
1800
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 for as_dir in $PATH
1803 do
1804 IFS=$as_save_IFS
1805 case $as_dir in #(((
1806 '') as_dir=./ ;;
1807 */) ;;
1808 *) as_dir=$as_dir/ ;;
1809 esac
1810 printf "%s\n" "PATH: $as_dir"
1811 done
1812 IFS=$as_save_IFS
1813
1814 } >&5
1815
1816 cat >&5 <<_ACEOF
1817
1818
1819 ## ----------- ##
1820 ## Core tests. ##
1821 ## ----------- ##
1822
1823 _ACEOF
1824
1825
1826 # Keep a trace of the command line.
1827 # Strip out --no-create and --no-recursion so they do not pile up.
1828 # Strip out --silent because we don't want to record it for future runs.
1829 # Also quote any args containing shell meta-characters.
1830 # Make two passes to allow for proper duplicate-argument suppression.
1831 ac_configure_args=
1832 ac_configure_args0=
1833 ac_configure_args1=
1834 ac_must_keep_next=false
1835 for ac_pass in 1 2
1836 do
1837 for ac_arg
1838 do
1839 case $ac_arg in
1840 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1841 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1842 | -silent | --silent | --silen | --sile | --sil)
1843 continue ;;
1844 *\'*)
1845 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1846 esac
1847 case $ac_pass in
1848 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1849 2)
1850 as_fn_append ac_configure_args1 " '$ac_arg'"
1851 if test $ac_must_keep_next = true; then
1852 ac_must_keep_next=false # Got value, back to normal.
1853 else
1854 case $ac_arg in
1855 *=* | --config-cache | -C | -disable-* | --disable-* \
1856 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1857 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1858 | -with-* | --with-* | -without-* | --without-* | --x)
1859 case "$ac_configure_args0 " in
1860 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1861 esac
1862 ;;
1863 -* ) ac_must_keep_next=true ;;
1864 esac
1865 fi
1866 as_fn_append ac_configure_args " '$ac_arg'"
1867 ;;
1868 esac
1869 done
1870 done
1871 { ac_configure_args0=; unset ac_configure_args0;}
1872 { ac_configure_args1=; unset ac_configure_args1;}
1873
1874 # When interrupted or exit'd, cleanup temporary files, and complete
1875 # config.log. We remove comments because anyway the quotes in there
1876 # would cause problems or look ugly.
1877 # WARNING: Use '\'' to represent an apostrophe within the trap.
1878 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1879 trap 'exit_status=$?
1880 # Sanitize IFS.
1881 IFS=" "" $as_nl"
1882 # Save into config.log some information that might help in debugging.
1883 {
1884 echo
1885
1886 printf "%s\n" "## ---------------- ##
1887 ## Cache variables. ##
1888 ## ---------------- ##"
1889 echo
1890 # The following way of writing the cache mishandles newlines in values,
1891 (
1892 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1893 eval ac_val=\$$ac_var
1894 case $ac_val in #(
1895 *${as_nl}*)
1896 case $ac_var in #(
1897 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1898 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1899 esac
1900 case $ac_var in #(
1901 _ | IFS | as_nl) ;; #(
1902 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1903 *) { eval $ac_var=; unset $ac_var;} ;;
1904 esac ;;
1905 esac
1906 done
1907 (set) 2>&1 |
1908 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1909 *${as_nl}ac_space=\ *)
1910 sed -n \
1911 "s/'\''/'\''\\\\'\'''\''/g;
1912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1913 ;; #(
1914 *)
1915 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1916 ;;
1917 esac |
1918 sort
1919 )
1920 echo
1921
1922 printf "%s\n" "## ----------------- ##
1923 ## Output variables. ##
1924 ## ----------------- ##"
1925 echo
1926 for ac_var in $ac_subst_vars
1927 do
1928 eval ac_val=\$$ac_var
1929 case $ac_val in
1930 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1931 esac
1932 printf "%s\n" "$ac_var='\''$ac_val'\''"
1933 done | sort
1934 echo
1935
1936 if test -n "$ac_subst_files"; then
1937 printf "%s\n" "## ------------------- ##
1938 ## File substitutions. ##
1939 ## ------------------- ##"
1940 echo
1941 for ac_var in $ac_subst_files
1942 do
1943 eval ac_val=\$$ac_var
1944 case $ac_val in
1945 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1946 esac
1947 printf "%s\n" "$ac_var='\''$ac_val'\''"
1948 done | sort
1949 echo
1950 fi
1951
1952 if test -s confdefs.h; then
1953 printf "%s\n" "## ----------- ##
1954 ## confdefs.h. ##
1955 ## ----------- ##"
1956 echo
1957 cat confdefs.h
1958 echo
1959 fi
1960 test "$ac_signal" != 0 &&
1961 printf "%s\n" "$as_me: caught signal $ac_signal"
1962 printf "%s\n" "$as_me: exit $exit_status"
1963 } >&5
1964 rm -f core *.core core.conftest.* &&
1965 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1966 exit $exit_status
1967 ' 0
1968 for ac_signal in 1 2 13 15; do
1969 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1970 done
1971 ac_signal=0
1972
1973 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1974 rm -f -r conftest* confdefs.h
1975
1976 printf "%s\n" "/* confdefs.h */" > confdefs.h
1977
1978 # Predefined preprocessor variables.
1979
1980 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1981
1982 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1983
1984 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1985
1986 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1987
1988 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1989
1990 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1991
1992
1993 # Let the site file select an alternate cache file if it wants to.
1994 # Prefer an explicitly selected file to automatically selected ones.
1995 if test -n "$CONFIG_SITE"; then
1996 ac_site_files="$CONFIG_SITE"
1997 elif test "x$prefix" != xNONE; then
1998 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1999 else
2000 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2001 fi
2002
2003 for ac_site_file in $ac_site_files
2004 do
2005 case $ac_site_file in #(
2006 */*) :
2007 ;; #(
2008 *) :
2009 ac_site_file=./$ac_site_file ;;
2010 esac
2011 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2013 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2014 sed 's/^/| /' "$ac_site_file" >&5
2015 . "$ac_site_file" \
2016 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2017 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2018 as_fn_error $? "failed to load site script $ac_site_file
2019 See 'config.log' for more details" "$LINENO" 5; }
2020 fi
2021 done
2022
2023 if test -r "$cache_file"; then
2024 # Some versions of bash will fail to source /dev/null (special files
2025 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2026 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2028 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2029 case $cache_file in
2030 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2031 *) . "./$cache_file";;
2032 esac
2033 fi
2034 else
2035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2036 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2037 >$cache_file
2038 fi
2039
2040 # Test code for whether the C compiler supports C89 (global declarations)
2041 ac_c_conftest_c89_globals='
2042 /* Does the compiler advertise C89 conformance?
2043 Do not test the value of __STDC__, because some compilers set it to 0
2044 while being otherwise adequately conformant. */
2045 #if !defined __STDC__
2046 # error "Compiler does not advertise C89 conformance"
2047 #endif
2048
2049 #include <stddef.h>
2050 #include <stdarg.h>
2051 struct stat;
2052 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2053 struct buf { int x; };
2054 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2055 static char *e (char **p, int i)
2056 {
2057 return p[i];
2058 }
2059 static char *f (char * (*g) (char **, int), char **p, ...)
2060 {
2061 char *s;
2062 va_list v;
2063 va_start (v,p);
2064 s = g (p, va_arg (v,int));
2065 va_end (v);
2066 return s;
2067 }
2068
2069 /* C89 style stringification. */
2070 #define noexpand_stringify(a) #a
2071 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2072
2073 /* C89 style token pasting. Exercises some of the corner cases that
2074 e.g. old MSVC gets wrong, but not very hard. */
2075 #define noexpand_concat(a,b) a##b
2076 #define expand_concat(a,b) noexpand_concat(a,b)
2077 extern int vA;
2078 extern int vbee;
2079 #define aye A
2080 #define bee B
2081 int *pvA = &expand_concat(v,aye);
2082 int *pvbee = &noexpand_concat(v,bee);
2083
2084 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2085 function prototypes and stuff, but not \xHH hex character constants.
2086 These do not provoke an error unfortunately, instead are silently treated
2087 as an "x". The following induces an error, until -std is added to get
2088 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2089 array size at least. It is necessary to write \x00 == 0 to get something
2090 that is true only with -std. */
2091 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2092
2093 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2094 inside strings and character constants. */
2095 #define FOO(x) '\''x'\''
2096 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2097
2098 int test (int i, double x);
2099 struct s1 {int (*f) (int a);};
2100 struct s2 {int (*f) (double a);};
2101 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2102 int, int);'
2103
2104 # Test code for whether the C compiler supports C89 (body of main).
2105 ac_c_conftest_c89_main='
2106 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2107 '
2108
2109 # Test code for whether the C compiler supports C99 (global declarations)
2110 ac_c_conftest_c99_globals='
2111 /* Does the compiler advertise C99 conformance? */
2112 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2113 # error "Compiler does not advertise C99 conformance"
2114 #endif
2115
2116 // See if C++-style comments work.
2117
2118 #include <stdbool.h>
2119 extern int puts (const char *);
2120 extern int printf (const char *, ...);
2121 extern int dprintf (int, const char *, ...);
2122 extern void *malloc (size_t);
2123 extern void free (void *);
2124
2125 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2126 // dprintf is used instead of fprintf to avoid needing to declare
2127 // FILE and stderr.
2128 #define debug(...) dprintf (2, __VA_ARGS__)
2129 #define showlist(...) puts (#__VA_ARGS__)
2130 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2131 static void
2132 test_varargs_macros (void)
2133 {
2134 int x = 1234;
2135 int y = 5678;
2136 debug ("Flag");
2137 debug ("X = %d\n", x);
2138 showlist (The first, second, and third items.);
2139 report (x>y, "x is %d but y is %d", x, y);
2140 }
2141
2142 // Check long long types.
2143 #define BIG64 18446744073709551615ull
2144 #define BIG32 4294967295ul
2145 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2146 #if !BIG_OK
2147 #error "your preprocessor is broken"
2148 #endif
2149 #if BIG_OK
2150 #else
2151 #error "your preprocessor is broken"
2152 #endif
2153 static long long int bignum = -9223372036854775807LL;
2154 static unsigned long long int ubignum = BIG64;
2155
2156 struct incomplete_array
2157 {
2158 int datasize;
2159 double data[];
2160 };
2161
2162 struct named_init {
2163 int number;
2164 const wchar_t *name;
2165 double average;
2166 };
2167
2168 typedef const char *ccp;
2169
2170 static inline int
2171 test_restrict (ccp restrict text)
2172 {
2173 // Iterate through items via the restricted pointer.
2174 // Also check for declarations in for loops.
2175 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2176 continue;
2177 return 0;
2178 }
2179
2180 // Check varargs and va_copy.
2181 static bool
2182 test_varargs (const char *format, ...)
2183 {
2184 va_list args;
2185 va_start (args, format);
2186 va_list args_copy;
2187 va_copy (args_copy, args);
2188
2189 const char *str = "";
2190 int number = 0;
2191 float fnumber = 0;
2192
2193 while (*format)
2194 {
2195 switch (*format++)
2196 {
2197 case '\''s'\'': // string
2198 str = va_arg (args_copy, const char *);
2199 break;
2200 case '\''d'\'': // int
2201 number = va_arg (args_copy, int);
2202 break;
2203 case '\''f'\'': // float
2204 fnumber = va_arg (args_copy, double);
2205 break;
2206 default:
2207 break;
2208 }
2209 }
2210 va_end (args_copy);
2211 va_end (args);
2212
2213 return *str && number && fnumber;
2214 }
2215 '
2216
2217 # Test code for whether the C compiler supports C99 (body of main).
2218 ac_c_conftest_c99_main='
2219 // Check bool.
2220 _Bool success = false;
2221 success |= (argc != 0);
2222
2223 // Check restrict.
2224 if (test_restrict ("String literal") == 0)
2225 success = true;
2226 char *restrict newvar = "Another string";
2227
2228 // Check varargs.
2229 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2230 test_varargs_macros ();
2231
2232 // Check flexible array members.
2233 struct incomplete_array *ia =
2234 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2235 ia->datasize = 10;
2236 for (int i = 0; i < ia->datasize; ++i)
2237 ia->data[i] = i * 1.234;
2238 // Work around memory leak warnings.
2239 free (ia);
2240
2241 // Check named initializers.
2242 struct named_init ni = {
2243 .number = 34,
2244 .name = L"Test wide string",
2245 .average = 543.34343,
2246 };
2247
2248 ni.number = 58;
2249
2250 int dynamic_array[ni.number];
2251 dynamic_array[0] = argv[0][0];
2252 dynamic_array[ni.number - 1] = 543;
2253
2254 // work around unused variable warnings
2255 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2256 || dynamic_array[ni.number - 1] != 543);
2257 '
2258
2259 # Test code for whether the C compiler supports C11 (global declarations)
2260 ac_c_conftest_c11_globals='
2261 /* Does the compiler advertise C11 conformance? */
2262 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2263 # error "Compiler does not advertise C11 conformance"
2264 #endif
2265
2266 // Check _Alignas.
2267 char _Alignas (double) aligned_as_double;
2268 char _Alignas (0) no_special_alignment;
2269 extern char aligned_as_int;
2270 char _Alignas (0) _Alignas (int) aligned_as_int;
2271
2272 // Check _Alignof.
2273 enum
2274 {
2275 int_alignment = _Alignof (int),
2276 int_array_alignment = _Alignof (int[100]),
2277 char_alignment = _Alignof (char)
2278 };
2279 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2280
2281 // Check _Noreturn.
2282 int _Noreturn does_not_return (void) { for (;;) continue; }
2283
2284 // Check _Static_assert.
2285 struct test_static_assert
2286 {
2287 int x;
2288 _Static_assert (sizeof (int) <= sizeof (long int),
2289 "_Static_assert does not work in struct");
2290 long int y;
2291 };
2292
2293 // Check UTF-8 literals.
2294 #define u8 syntax error!
2295 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2296
2297 // Check duplicate typedefs.
2298 typedef long *long_ptr;
2299 typedef long int *long_ptr;
2300 typedef long_ptr long_ptr;
2301
2302 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2303 struct anonymous
2304 {
2305 union {
2306 struct { int i; int j; };
2307 struct { int k; long int l; } w;
2308 };
2309 int m;
2310 } v1;
2311 '
2312
2313 # Test code for whether the C compiler supports C11 (body of main).
2314 ac_c_conftest_c11_main='
2315 _Static_assert ((offsetof (struct anonymous, i)
2316 == offsetof (struct anonymous, w.k)),
2317 "Anonymous union alignment botch");
2318 v1.i = 2;
2319 v1.w.k = 5;
2320 ok |= v1.i != 5;
2321 '
2322
2323 # Test code for whether the C compiler supports C11 (complete).
2324 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2325 ${ac_c_conftest_c99_globals}
2326 ${ac_c_conftest_c11_globals}
2327
2328 int
2329 main (int argc, char **argv)
2330 {
2331 int ok = 0;
2332 ${ac_c_conftest_c89_main}
2333 ${ac_c_conftest_c99_main}
2334 ${ac_c_conftest_c11_main}
2335 return ok;
2336 }
2337 "
2338
2339 # Test code for whether the C compiler supports C99 (complete).
2340 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2341 ${ac_c_conftest_c99_globals}
2342
2343 int
2344 main (int argc, char **argv)
2345 {
2346 int ok = 0;
2347 ${ac_c_conftest_c89_main}
2348 ${ac_c_conftest_c99_main}
2349 return ok;
2350 }
2351 "
2352
2353 # Test code for whether the C compiler supports C89 (complete).
2354 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2355
2356 int
2357 main (int argc, char **argv)
2358 {
2359 int ok = 0;
2360 ${ac_c_conftest_c89_main}
2361 return ok;
2362 }
2363 "
2364
2365 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2366 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2367 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2368 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2369 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2370 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2371 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2372 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2373 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2374 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2375 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2376 # Check that the precious variables saved in the cache have kept the same
2377 # value.
2378 ac_cache_corrupted=false
2379 for ac_var in $ac_precious_vars; do
2380 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2381 eval ac_new_set=\$ac_env_${ac_var}_set
2382 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2383 eval ac_new_val=\$ac_env_${ac_var}_value
2384 case $ac_old_set,$ac_new_set in
2385 set,)
2386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2387 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2388 ac_cache_corrupted=: ;;
2389 ,set)
2390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2391 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2392 ac_cache_corrupted=: ;;
2393 ,);;
2394 *)
2395 if test "x$ac_old_val" != "x$ac_new_val"; then
2396 # differences in whitespace do not lead to failure.
2397 ac_old_val_w=`echo x $ac_old_val`
2398 ac_new_val_w=`echo x $ac_new_val`
2399 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2401 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2402 ac_cache_corrupted=:
2403 else
2404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2405 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2406 eval $ac_var=\$ac_old_val
2407 fi
2408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2409 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2411 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2412 fi;;
2413 esac
2414 # Pass precious variables to config.status.
2415 if test "$ac_new_set" = set; then
2416 case $ac_new_val in
2417 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2418 *) ac_arg=$ac_var=$ac_new_val ;;
2419 esac
2420 case " $ac_configure_args " in
2421 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2422 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2423 esac
2424 fi
2425 done
2426 if $ac_cache_corrupted; then
2427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2428 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2430 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2431 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2432 and start over" "$LINENO" 5
2433 fi
2434 ## -------------------- ##
2435 ## Main body of script. ##
2436 ## -------------------- ##
2437
2438 ac_ext=c
2439 ac_cpp='$CPP $CPPFLAGS'
2440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2443
2444
2445
2446 ac_config_headers="$ac_config_headers defs.h:include/defs.h.in"
2447
2448
2449
2450 VERSION=`sed -n -e 's/"[^"]*$//' -e '/#define[ ]*IRCII_VERSION[ ]*"/s///p' -e '/#define IRCII_VERSION/q' < ${srcdir}/source/irc.c`
2451 echo this is ircii version $VERSION
2452 echo
2453
2454
2455 CATEGORIES='build change-request doc pending runtime'
2456
2457
2458 echo '$eterna: configure,v 2.197 2024/08/03 06:41:42 mrg Exp $' > /dev/null
2459
2460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prefix paths" >&5
2461 printf %s "checking for prefix paths... " >&6; }
2462
2463 # Check whether --with-prefix_paths was given.
2464 if test ${with_prefix_paths+y}
2465 then :
2466 withval=$with_prefix_paths; case "$withval" in
2467 no)
2468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2469 printf "%s\n" "no" >&6; }
2470 ;;
2471 *)
2472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2473 printf "%s\n" "yes" >&6; }
2474 if test "x$prefix" != xNONE; then
2475 if test -d "$prefix/lib"; then
2476 LIBS="-L${prefix}/lib $LIBS"
2477 fi
2478 if test -d "$prefix/include"; then
2479 CFLAGS="-I${prefix}/include $CFLAGS"
2480 fi
2481 else
2482 if test -d "$ac_default_prefix/lib"; then
2483 LIBS="-L${ac_default_prefix}/lib $LIBS"
2484 fi
2485 if test -d "$ac_default_prefix/include"; then
2486 CFLAGS="-I${ac_default_prefix}/include $CFLAGS"
2487 fi
2488 fi
2489 ;;
2490 esac
2491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 printf "%s\n" "no" >&6; }
2493
2494 fi
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507 ac_ext=c
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2514 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 printf %s "checking for $ac_word... " >&6; }
2517 if test ${ac_cv_prog_CC+y}
2518 then :
2519 printf %s "(cached) " >&6
2520 else case e in #(
2521 e) if test -n "$CC"; then
2522 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527 IFS=$as_save_IFS
2528 case $as_dir in #(((
2529 '') as_dir=./ ;;
2530 */) ;;
2531 *) as_dir=$as_dir/ ;;
2532 esac
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2537 break 2
2538 fi
2539 done
2540 done
2541 IFS=$as_save_IFS
2542
2543 fi ;;
2544 esac
2545 fi
2546 CC=$ac_cv_prog_CC
2547 if test -n "$CC"; then
2548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2549 printf "%s\n" "$CC" >&6; }
2550 else
2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2552 printf "%s\n" "no" >&6; }
2553 fi
2554
2555
2556 fi
2557 if test -z "$ac_cv_prog_CC"; then
2558 ac_ct_CC=$CC
2559 # Extract the first word of "gcc", so it can be a program name with args.
2560 set dummy gcc; ac_word=$2
2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562 printf %s "checking for $ac_word... " >&6; }
2563 if test ${ac_cv_prog_ac_ct_CC+y}
2564 then :
2565 printf %s "(cached) " >&6
2566 else case e in #(
2567 e) if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573 IFS=$as_save_IFS
2574 case $as_dir in #(((
2575 '') as_dir=./ ;;
2576 */) ;;
2577 *) as_dir=$as_dir/ ;;
2578 esac
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2581 ac_cv_prog_ac_ct_CC="gcc"
2582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2583 break 2
2584 fi
2585 done
2586 done
2587 IFS=$as_save_IFS
2588
2589 fi ;;
2590 esac
2591 fi
2592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2593 if test -n "$ac_ct_CC"; then
2594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2595 printf "%s\n" "$ac_ct_CC" >&6; }
2596 else
2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 printf "%s\n" "no" >&6; }
2599 fi
2600
2601 if test "x$ac_ct_CC" = x; then
2602 CC=""
2603 else
2604 case $cross_compiling:$ac_tool_warned in
2605 yes:)
2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2607 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2608 ac_tool_warned=yes ;;
2609 esac
2610 CC=$ac_ct_CC
2611 fi
2612 else
2613 CC="$ac_cv_prog_CC"
2614 fi
2615
2616 if test -z "$CC"; then
2617 if test -n "$ac_tool_prefix"; then
2618 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2619 set dummy ${ac_tool_prefix}cc; ac_word=$2
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 printf %s "checking for $ac_word... " >&6; }
2622 if test ${ac_cv_prog_CC+y}
2623 then :
2624 printf %s "(cached) " >&6
2625 else case e in #(
2626 e) if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632 IFS=$as_save_IFS
2633 case $as_dir in #(((
2634 '') as_dir=./ ;;
2635 */) ;;
2636 *) as_dir=$as_dir/ ;;
2637 esac
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2640 ac_cv_prog_CC="${ac_tool_prefix}cc"
2641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi ;;
2649 esac
2650 fi
2651 CC=$ac_cv_prog_CC
2652 if test -n "$CC"; then
2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2654 printf "%s\n" "$CC" >&6; }
2655 else
2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 printf "%s\n" "no" >&6; }
2658 fi
2659
2660
2661 fi
2662 fi
2663 if test -z "$CC"; then
2664 # Extract the first word of "cc", so it can be a program name with args.
2665 set dummy cc; ac_word=$2
2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 printf %s "checking for $ac_word... " >&6; }
2668 if test ${ac_cv_prog_CC+y}
2669 then :
2670 printf %s "(cached) " >&6
2671 else case e in #(
2672 e) if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674 else
2675 ac_prog_rejected=no
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679 IFS=$as_save_IFS
2680 case $as_dir in #(((
2681 '') as_dir=./ ;;
2682 */) ;;
2683 *) as_dir=$as_dir/ ;;
2684 esac
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2687 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2688 ac_prog_rejected=yes
2689 continue
2690 fi
2691 ac_cv_prog_CC="cc"
2692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 if test $ac_prog_rejected = yes; then
2700 # We found a bogon in the path, so make sure we never use it.
2701 set dummy $ac_cv_prog_CC
2702 shift
2703 if test $# != 0; then
2704 # We chose a different compiler from the bogus one.
2705 # However, it has the same basename, so the bogon will be chosen
2706 # first if we set CC to just the basename; use the full file name.
2707 shift
2708 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2709 fi
2710 fi
2711 fi ;;
2712 esac
2713 fi
2714 CC=$ac_cv_prog_CC
2715 if test -n "$CC"; then
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717 printf "%s\n" "$CC" >&6; }
2718 else
2719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 printf "%s\n" "no" >&6; }
2721 fi
2722
2723
2724 fi
2725 if test -z "$CC"; then
2726 if test -n "$ac_tool_prefix"; then
2727 for ac_prog in cl.exe
2728 do
2729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 printf %s "checking for $ac_word... " >&6; }
2733 if test ${ac_cv_prog_CC+y}
2734 then :
2735 printf %s "(cached) " >&6
2736 else case e in #(
2737 e) if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743 IFS=$as_save_IFS
2744 case $as_dir in #(((
2745 '') as_dir=./ ;;
2746 */) ;;
2747 *) as_dir=$as_dir/ ;;
2748 esac
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755 done
2756 done
2757 IFS=$as_save_IFS
2758
2759 fi ;;
2760 esac
2761 fi
2762 CC=$ac_cv_prog_CC
2763 if test -n "$CC"; then
2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2765 printf "%s\n" "$CC" >&6; }
2766 else
2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 printf "%s\n" "no" >&6; }
2769 fi
2770
2771
2772 test -n "$CC" && break
2773 done
2774 fi
2775 if test -z "$CC"; then
2776 ac_ct_CC=$CC
2777 for ac_prog in cl.exe
2778 do
2779 # Extract the first word of "$ac_prog", so it can be a program name with args.
2780 set dummy $ac_prog; ac_word=$2
2781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 printf %s "checking for $ac_word... " >&6; }
2783 if test ${ac_cv_prog_ac_ct_CC+y}
2784 then :
2785 printf %s "(cached) " >&6
2786 else case e in #(
2787 e) if test -n "$ac_ct_CC"; then
2788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793 IFS=$as_save_IFS
2794 case $as_dir in #(((
2795 '') as_dir=./ ;;
2796 */) ;;
2797 *) as_dir=$as_dir/ ;;
2798 esac
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2801 ac_cv_prog_ac_ct_CC="$ac_prog"
2802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi ;;
2810 esac
2811 fi
2812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2813 if test -n "$ac_ct_CC"; then
2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2815 printf "%s\n" "$ac_ct_CC" >&6; }
2816 else
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 printf "%s\n" "no" >&6; }
2819 fi
2820
2821
2822 test -n "$ac_ct_CC" && break
2823 done
2824
2825 if test "x$ac_ct_CC" = x; then
2826 CC=""
2827 else
2828 case $cross_compiling:$ac_tool_warned in
2829 yes:)
2830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2831 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2832 ac_tool_warned=yes ;;
2833 esac
2834 CC=$ac_ct_CC
2835 fi
2836 fi
2837
2838 fi
2839 if test -z "$CC"; then
2840 if test -n "$ac_tool_prefix"; then
2841 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}clang; ac_word=$2
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 printf %s "checking for $ac_word... " >&6; }
2845 if test ${ac_cv_prog_CC+y}
2846 then :
2847 printf %s "(cached) " >&6
2848 else case e in #(
2849 e) if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 case $as_dir in #(((
2857 '') as_dir=./ ;;
2858 */) ;;
2859 *) as_dir=$as_dir/ ;;
2860 esac
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_CC="${ac_tool_prefix}clang"
2864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867 done
2868 done
2869 IFS=$as_save_IFS
2870
2871 fi ;;
2872 esac
2873 fi
2874 CC=$ac_cv_prog_CC
2875 if test -n "$CC"; then
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877 printf "%s\n" "$CC" >&6; }
2878 else
2879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 printf "%s\n" "no" >&6; }
2881 fi
2882
2883
2884 fi
2885 if test -z "$ac_cv_prog_CC"; then
2886 ac_ct_CC=$CC
2887 # Extract the first word of "clang", so it can be a program name with args.
2888 set dummy clang; ac_word=$2
2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 printf %s "checking for $ac_word... " >&6; }
2891 if test ${ac_cv_prog_ac_ct_CC+y}
2892 then :
2893 printf %s "(cached) " >&6
2894 else case e in #(
2895 e) if test -n "$ac_ct_CC"; then
2896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 case $as_dir in #(((
2903 '') as_dir=./ ;;
2904 */) ;;
2905 *) as_dir=$as_dir/ ;;
2906 esac
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_ac_ct_CC="clang"
2910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2916
2917 fi ;;
2918 esac
2919 fi
2920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2921 if test -n "$ac_ct_CC"; then
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2923 printf "%s\n" "$ac_ct_CC" >&6; }
2924 else
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 printf "%s\n" "no" >&6; }
2927 fi
2928
2929 if test "x$ac_ct_CC" = x; then
2930 CC=""
2931 else
2932 case $cross_compiling:$ac_tool_warned in
2933 yes:)
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2935 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2936 ac_tool_warned=yes ;;
2937 esac
2938 CC=$ac_ct_CC
2939 fi
2940 else
2941 CC="$ac_cv_prog_CC"
2942 fi
2943
2944 fi
2945
2946
2947 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2948 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2949 as_fn_error $? "no acceptable C compiler found in \$PATH
2950 See 'config.log' for more details" "$LINENO" 5; }
2951
2952 # Provide some information about the compiler.
2953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2954 set X $ac_compile
2955 ac_compiler=$2
2956 for ac_option in --version -v -V -qversion -version; do
2957 { { ac_try="$ac_compiler $ac_option >&5"
2958 case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961 esac
2962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2963 printf "%s\n" "$ac_try_echo"; } >&5
2964 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2965 ac_status=$?
2966 if test -s conftest.err; then
2967 sed '10a\
2968 ... rest of stderr output deleted ...
2969 10q' conftest.err >conftest.er1
2970 cat conftest.er1 >&5
2971 fi
2972 rm -f conftest.er1 conftest.err
2973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2974 test $ac_status = 0; }
2975 done
2976
2977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978 /* end confdefs.h. */
2979
2980 int
2981 main (void)
2982 {
2983
2984 ;
2985 return 0;
2986 }
2987 _ACEOF
2988 ac_clean_files_save=$ac_clean_files
2989 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2990 # Try to create an executable without -o first, disregard a.out.
2991 # It will help us diagnose broken compilers, and finding out an intuition
2992 # of exeext.
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2994 printf %s "checking whether the C compiler works... " >&6; }
2995 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2996
2997 # The possible output files:
2998 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2999
3000 ac_rmfiles=
3001 for ac_file in $ac_files
3002 do
3003 case $ac_file in
3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3005 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3006 esac
3007 done
3008 rm -f $ac_rmfiles
3009
3010 if { { ac_try="$ac_link_default"
3011 case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014 esac
3015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016 printf "%s\n" "$ac_try_echo"; } >&5
3017 (eval "$ac_link_default") 2>&5
3018 ac_status=$?
3019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020 test $ac_status = 0; }
3021 then :
3022 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3023 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3024 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3025 # so that the user can short-circuit this test for compilers unknown to
3026 # Autoconf.
3027 for ac_file in $ac_files ''
3028 do
3029 test -f "$ac_file" || continue
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3032 ;;
3033 [ab].out )
3034 # We found the default executable, but exeext='' is most
3035 # certainly right.
3036 break;;
3037 *.* )
3038 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3039 then :; else
3040 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3041 fi
3042 # We set ac_cv_exeext here because the later test for it is not
3043 # safe: cross compilers may not add the suffix if given an '-o'
3044 # argument, so we may need to know it at that point already.
3045 # Even if this section looks crufty: it has the advantage of
3046 # actually working.
3047 break;;
3048 * )
3049 break;;
3050 esac
3051 done
3052 test "$ac_cv_exeext" = no && ac_cv_exeext=
3053
3054 else case e in #(
3055 e) ac_file='' ;;
3056 esac
3057 fi
3058 if test -z "$ac_file"
3059 then :
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 printf "%s\n" "no" >&6; }
3062 printf "%s\n" "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3066 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3067 as_fn_error 77 "C compiler cannot create executables
3068 See 'config.log' for more details" "$LINENO" 5; }
3069 else case e in #(
3070 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3071 printf "%s\n" "yes" >&6; } ;;
3072 esac
3073 fi
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3075 printf %s "checking for C compiler default output file name... " >&6; }
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3077 printf "%s\n" "$ac_file" >&6; }
3078 ac_exeext=$ac_cv_exeext
3079
3080 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3081 ac_clean_files=$ac_clean_files_save
3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3083 printf %s "checking for suffix of executables... " >&6; }
3084 if { { ac_try="$ac_link"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 printf "%s\n" "$ac_try_echo"; } >&5
3091 (eval "$ac_link") 2>&5
3092 ac_status=$?
3093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }
3095 then :
3096 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3097 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3098 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3099 # 'rm'.
3100 for ac_file in conftest.exe conftest conftest.*; do
3101 test -f "$ac_file" || continue
3102 case $ac_file in
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3104 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3105 break;;
3106 * ) break;;
3107 esac
3108 done
3109 else case e in #(
3110 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3111 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3112 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3113 See 'config.log' for more details" "$LINENO" 5; } ;;
3114 esac
3115 fi
3116 rm -f conftest conftest$ac_cv_exeext
3117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3118 printf "%s\n" "$ac_cv_exeext" >&6; }
3119
3120 rm -f conftest.$ac_ext
3121 EXEEXT=$ac_cv_exeext
3122 ac_exeext=$EXEEXT
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h. */
3125 #include <stdio.h>
3126 int
3127 main (void)
3128 {
3129 FILE *f = fopen ("conftest.out", "w");
3130 if (!f)
3131 return 1;
3132 return ferror (f) || fclose (f) != 0;
3133
3134 ;
3135 return 0;
3136 }
3137 _ACEOF
3138 ac_clean_files="$ac_clean_files conftest.out"
3139 # Check that the compiler produces executables we can run. If not, either
3140 # the compiler is broken, or we cross compile.
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3142 printf %s "checking whether we are cross compiling... " >&6; }
3143 if test "$cross_compiling" != yes; then
3144 { { ac_try="$ac_link"
3145 case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 printf "%s\n" "$ac_try_echo"; } >&5
3151 (eval "$ac_link") 2>&5
3152 ac_status=$?
3153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }
3155 if { ac_try='./conftest$ac_cv_exeext'
3156 { { case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161 printf "%s\n" "$ac_try_echo"; } >&5
3162 (eval "$ac_try") 2>&5
3163 ac_status=$?
3164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165 test $ac_status = 0; }; }; then
3166 cross_compiling=no
3167 else
3168 if test "$cross_compiling" = maybe; then
3169 cross_compiling=yes
3170 else
3171 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3172 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3173 as_fn_error 77 "cannot run C compiled programs.
3174 If you meant to cross compile, use '--host'.
3175 See 'config.log' for more details" "$LINENO" 5; }
3176 fi
3177 fi
3178 fi
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3180 printf "%s\n" "$cross_compiling" >&6; }
3181
3182 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3183 conftest.o conftest.obj conftest.out
3184 ac_clean_files=$ac_clean_files_save
3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3186 printf %s "checking for suffix of object files... " >&6; }
3187 if test ${ac_cv_objext+y}
3188 then :
3189 printf %s "(cached) " >&6
3190 else case e in #(
3191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193
3194 int
3195 main (void)
3196 {
3197
3198 ;
3199 return 0;
3200 }
3201 _ACEOF
3202 rm -f conftest.o conftest.obj
3203 if { { ac_try="$ac_compile"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 printf "%s\n" "$ac_try_echo"; } >&5
3210 (eval "$ac_compile") 2>&5
3211 ac_status=$?
3212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }
3214 then :
3215 for ac_file in conftest.o conftest.obj conftest.*; do
3216 test -f "$ac_file" || continue;
3217 case $ac_file in
3218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3219 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3220 break;;
3221 esac
3222 done
3223 else case e in #(
3224 e) printf "%s\n" "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3226
3227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3228 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3229 as_fn_error $? "cannot compute suffix of object files: cannot compile
3230 See 'config.log' for more details" "$LINENO" 5; } ;;
3231 esac
3232 fi
3233 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3234 esac
3235 fi
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3237 printf "%s\n" "$ac_cv_objext" >&6; }
3238 OBJEXT=$ac_cv_objext
3239 ac_objext=$OBJEXT
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3241 printf %s "checking whether the compiler supports GNU C... " >&6; }
3242 if test ${ac_cv_c_compiler_gnu+y}
3243 then :
3244 printf %s "(cached) " >&6
3245 else case e in #(
3246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3248
3249 int
3250 main (void)
3251 {
3252 #ifndef __GNUC__
3253 choke me
3254 #endif
3255
3256 ;
3257 return 0;
3258 }
3259 _ACEOF
3260 if ac_fn_c_try_compile "$LINENO"
3261 then :
3262 ac_compiler_gnu=yes
3263 else case e in #(
3264 e) ac_compiler_gnu=no ;;
3265 esac
3266 fi
3267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3268 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3269 ;;
3270 esac
3271 fi
3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3273 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
3276 if test $ac_compiler_gnu = yes; then
3277 GCC=yes
3278 else
3279 GCC=
3280 fi
3281 ac_test_CFLAGS=${CFLAGS+y}
3282 ac_save_CFLAGS=$CFLAGS
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3284 printf %s "checking whether $CC accepts -g... " >&6; }
3285 if test ${ac_cv_prog_cc_g+y}
3286 then :
3287 printf %s "(cached) " >&6
3288 else case e in #(
3289 e) ac_save_c_werror_flag=$ac_c_werror_flag
3290 ac_c_werror_flag=yes
3291 ac_cv_prog_cc_g=no
3292 CFLAGS="-g"
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3295
3296 int
3297 main (void)
3298 {
3299
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 if ac_fn_c_try_compile "$LINENO"
3305 then :
3306 ac_cv_prog_cc_g=yes
3307 else case e in #(
3308 e) CFLAGS=""
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3311
3312 int
3313 main (void)
3314 {
3315
3316 ;
3317 return 0;
3318 }
3319 _ACEOF
3320 if ac_fn_c_try_compile "$LINENO"
3321 then :
3322
3323 else case e in #(
3324 e) ac_c_werror_flag=$ac_save_c_werror_flag
3325 CFLAGS="-g"
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3328
3329 int
3330 main (void)
3331 {
3332
3333 ;
3334 return 0;
3335 }
3336 _ACEOF
3337 if ac_fn_c_try_compile "$LINENO"
3338 then :
3339 ac_cv_prog_cc_g=yes
3340 fi
3341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3342 esac
3343 fi
3344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3345 esac
3346 fi
3347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3348 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3349 esac
3350 fi
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3352 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3353 if test $ac_test_CFLAGS; then
3354 CFLAGS=$ac_save_CFLAGS
3355 elif test $ac_cv_prog_cc_g = yes; then
3356 if test "$GCC" = yes; then
3357 CFLAGS="-g -O2"
3358 else
3359 CFLAGS="-g"
3360 fi
3361 else
3362 if test "$GCC" = yes; then
3363 CFLAGS="-O2"
3364 else
3365 CFLAGS=
3366 fi
3367 fi
3368 ac_prog_cc_stdc=no
3369 if test x$ac_prog_cc_stdc = xno
3370 then :
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3372 printf %s "checking for $CC option to enable C11 features... " >&6; }
3373 if test ${ac_cv_prog_cc_c11+y}
3374 then :
3375 printf %s "(cached) " >&6
3376 else case e in #(
3377 e) ac_cv_prog_cc_c11=no
3378 ac_save_CC=$CC
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3381 $ac_c_conftest_c11_program
3382 _ACEOF
3383 for ac_arg in '' -std=gnu11
3384 do
3385 CC="$ac_save_CC $ac_arg"
3386 if ac_fn_c_try_compile "$LINENO"
3387 then :
3388 ac_cv_prog_cc_c11=$ac_arg
3389 fi
3390 rm -f core conftest.err conftest.$ac_objext conftest.beam
3391 test "x$ac_cv_prog_cc_c11" != "xno" && break
3392 done
3393 rm -f conftest.$ac_ext
3394 CC=$ac_save_CC ;;
3395 esac
3396 fi
3397
3398 if test "x$ac_cv_prog_cc_c11" = xno
3399 then :
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3401 printf "%s\n" "unsupported" >&6; }
3402 else case e in #(
3403 e) if test "x$ac_cv_prog_cc_c11" = x
3404 then :
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3406 printf "%s\n" "none needed" >&6; }
3407 else case e in #(
3408 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3409 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3410 CC="$CC $ac_cv_prog_cc_c11" ;;
3411 esac
3412 fi
3413 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3414 ac_prog_cc_stdc=c11 ;;
3415 esac
3416 fi
3417 fi
3418 if test x$ac_prog_cc_stdc = xno
3419 then :
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3421 printf %s "checking for $CC option to enable C99 features... " >&6; }
3422 if test ${ac_cv_prog_cc_c99+y}
3423 then :
3424 printf %s "(cached) " >&6
3425 else case e in #(
3426 e) ac_cv_prog_cc_c99=no
3427 ac_save_CC=$CC
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430 $ac_c_conftest_c99_program
3431 _ACEOF
3432 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3433 do
3434 CC="$ac_save_CC $ac_arg"
3435 if ac_fn_c_try_compile "$LINENO"
3436 then :
3437 ac_cv_prog_cc_c99=$ac_arg
3438 fi
3439 rm -f core conftest.err conftest.$ac_objext conftest.beam
3440 test "x$ac_cv_prog_cc_c99" != "xno" && break
3441 done
3442 rm -f conftest.$ac_ext
3443 CC=$ac_save_CC ;;
3444 esac
3445 fi
3446
3447 if test "x$ac_cv_prog_cc_c99" = xno
3448 then :
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3450 printf "%s\n" "unsupported" >&6; }
3451 else case e in #(
3452 e) if test "x$ac_cv_prog_cc_c99" = x
3453 then :
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3455 printf "%s\n" "none needed" >&6; }
3456 else case e in #(
3457 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3458 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3459 CC="$CC $ac_cv_prog_cc_c99" ;;
3460 esac
3461 fi
3462 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3463 ac_prog_cc_stdc=c99 ;;
3464 esac
3465 fi
3466 fi
3467 if test x$ac_prog_cc_stdc = xno
3468 then :
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3470 printf %s "checking for $CC option to enable C89 features... " >&6; }
3471 if test ${ac_cv_prog_cc_c89+y}
3472 then :
3473 printf %s "(cached) " >&6
3474 else case e in #(
3475 e) ac_cv_prog_cc_c89=no
3476 ac_save_CC=$CC
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479 $ac_c_conftest_c89_program
3480 _ACEOF
3481 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3482 do
3483 CC="$ac_save_CC $ac_arg"
3484 if ac_fn_c_try_compile "$LINENO"
3485 then :
3486 ac_cv_prog_cc_c89=$ac_arg
3487 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.beam
3489 test "x$ac_cv_prog_cc_c89" != "xno" && break
3490 done
3491 rm -f conftest.$ac_ext
3492 CC=$ac_save_CC ;;
3493 esac
3494 fi
3495
3496 if test "x$ac_cv_prog_cc_c89" = xno
3497 then :
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3499 printf "%s\n" "unsupported" >&6; }
3500 else case e in #(
3501 e) if test "x$ac_cv_prog_cc_c89" = x
3502 then :
3503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3504 printf "%s\n" "none needed" >&6; }
3505 else case e in #(
3506 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3507 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3508 CC="$CC $ac_cv_prog_cc_c89" ;;
3509 esac
3510 fi
3511 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3512 ac_prog_cc_stdc=c89 ;;
3513 esac
3514 fi
3515 fi
3516
3517 ac_ext=c
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523 ac_ext=c
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3529 printf %s "checking how to run the C preprocessor... " >&6; }
3530 # On Suns, sometimes $CPP names a directory.
3531 if test -n "$CPP" && test -d "$CPP"; then
3532 CPP=
3533 fi
3534 if test -z "$CPP"; then
3535 if test ${ac_cv_prog_CPP+y}
3536 then :
3537 printf %s "(cached) " >&6
3538 else case e in #(
3539 e) # Double quotes because $CC needs to be expanded
3540 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3541 do
3542 ac_preproc_ok=false
3543 for ac_c_preproc_warn_flag in '' yes
3544 do
3545 # Use a header file that comes with gcc, so configuring glibc
3546 # with a fresh cross-compiler works.
3547 # On the NeXT, cc -E runs the code through the compiler's parser,
3548 # not just through cpp. "Syntax error" is here to catch this case.
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551 #include <limits.h>
3552 Syntax error
3553 _ACEOF
3554 if ac_fn_c_try_cpp "$LINENO"
3555 then :
3556
3557 else case e in #(
3558 e) # Broken: fails on valid input.
3559 continue ;;
3560 esac
3561 fi
3562 rm -f conftest.err conftest.i conftest.$ac_ext
3563
3564 # OK, works on sane cases. Now check whether nonexistent headers
3565 # can be detected and how.
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3568 #include <ac_nonexistent.h>
3569 _ACEOF
3570 if ac_fn_c_try_cpp "$LINENO"
3571 then :
3572 # Broken: success on invalid input.
3573 continue
3574 else case e in #(
3575 e) # Passes both tests.
3576 ac_preproc_ok=:
3577 break ;;
3578 esac
3579 fi
3580 rm -f conftest.err conftest.i conftest.$ac_ext
3581
3582 done
3583 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3584 rm -f conftest.i conftest.err conftest.$ac_ext
3585 if $ac_preproc_ok
3586 then :
3587 break
3588 fi
3589
3590 done
3591 ac_cv_prog_CPP=$CPP
3592 ;;
3593 esac
3594 fi
3595 CPP=$ac_cv_prog_CPP
3596 else
3597 ac_cv_prog_CPP=$CPP
3598 fi
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3600 printf "%s\n" "$CPP" >&6; }
3601 ac_preproc_ok=false
3602 for ac_c_preproc_warn_flag in '' yes
3603 do
3604 # Use a header file that comes with gcc, so configuring glibc
3605 # with a fresh cross-compiler works.
3606 # On the NeXT, cc -E runs the code through the compiler's parser,
3607 # not just through cpp. "Syntax error" is here to catch this case.
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3610 #include <limits.h>
3611 Syntax error
3612 _ACEOF
3613 if ac_fn_c_try_cpp "$LINENO"
3614 then :
3615
3616 else case e in #(
3617 e) # Broken: fails on valid input.
3618 continue ;;
3619 esac
3620 fi
3621 rm -f conftest.err conftest.i conftest.$ac_ext
3622
3623 # OK, works on sane cases. Now check whether nonexistent headers
3624 # can be detected and how.
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3627 #include <ac_nonexistent.h>
3628 _ACEOF
3629 if ac_fn_c_try_cpp "$LINENO"
3630 then :
3631 # Broken: success on invalid input.
3632 continue
3633 else case e in #(
3634 e) # Passes both tests.
3635 ac_preproc_ok=:
3636 break ;;
3637 esac
3638 fi
3639 rm -f conftest.err conftest.i conftest.$ac_ext
3640
3641 done
3642 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3643 rm -f conftest.i conftest.err conftest.$ac_ext
3644 if $ac_preproc_ok
3645 then :
3646
3647 else case e in #(
3648 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3649 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3650 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3651 See 'config.log' for more details" "$LINENO" 5; } ;;
3652 esac
3653 fi
3654
3655 ac_ext=c
3656 ac_cpp='$CPP $CPPFLAGS'
3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660
3661
3662 srcdir=`(cd $srcdir; pwd)`
3663
3664 objdir=`pwd`
3665
3666
3667
3668 ac_header= ac_cache=
3669 for ac_item in $ac_header_c_list
3670 do
3671 if test $ac_cache; then
3672 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3673 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3674 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3675 fi
3676 ac_header= ac_cache=
3677 elif test $ac_header; then
3678 ac_cache=$ac_item
3679 else
3680 ac_header=$ac_item
3681 fi
3682 done
3683
3684
3685
3686
3687
3688
3689
3690
3691 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3692 then :
3693
3694 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3695
3696 fi
3697
3698
3699
3700
3701
3702
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3704 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3705 if test ${ac_cv_safe_to_define___extensions__+y}
3706 then :
3707 printf %s "(cached) " >&6
3708 else case e in #(
3709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3711
3712 # define __EXTENSIONS__ 1
3713 $ac_includes_default
3714 int
3715 main (void)
3716 {
3717
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 if ac_fn_c_try_compile "$LINENO"
3723 then :
3724 ac_cv_safe_to_define___extensions__=yes
3725 else case e in #(
3726 e) ac_cv_safe_to_define___extensions__=no ;;
3727 esac
3728 fi
3729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3730 esac
3731 fi
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3733 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3734
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3736 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3737 if test ${ac_cv_should_define__xopen_source+y}
3738 then :
3739 printf %s "(cached) " >&6
3740 else case e in #(
3741 e) ac_cv_should_define__xopen_source=no
3742 if test $ac_cv_header_wchar_h = yes
3743 then :
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3746
3747 #include <wchar.h>
3748 mbstate_t x;
3749 int
3750 main (void)
3751 {
3752
3753 ;
3754 return 0;
3755 }
3756 _ACEOF
3757 if ac_fn_c_try_compile "$LINENO"
3758 then :
3759
3760 else case e in #(
3761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763
3764 #define _XOPEN_SOURCE 500
3765 #include <wchar.h>
3766 mbstate_t x;
3767 int
3768 main (void)
3769 {
3770
3771 ;
3772 return 0;
3773 }
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"
3776 then :
3777 ac_cv_should_define__xopen_source=yes
3778 fi
3779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3780 esac
3781 fi
3782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3783 fi ;;
3784 esac
3785 fi
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3787 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3788
3789 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3790
3791 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3792
3793 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3794
3795 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3796
3797 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3798
3799 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3800
3801 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3802
3803 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3804
3805 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3806
3807 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3808
3809 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3810
3811 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3812
3813 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3814
3815 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3816
3817 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3818
3819 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3820
3821 if test $ac_cv_header_minix_config_h = yes
3822 then :
3823 MINIX=yes
3824 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3825
3826 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3827
3828 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3829
3830 else case e in #(
3831 e) MINIX= ;;
3832 esac
3833 fi
3834 if test $ac_cv_safe_to_define___extensions__ = yes
3835 then :
3836 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3837
3838 fi
3839 if test $ac_cv_should_define__xopen_source = yes
3840 then :
3841 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3842
3843 fi
3844
3845
3846
3847 if test $ac_cv_c_compiler_gnu = yes; then
3848 CFLAGS="-pipe $CFLAGS"
3849 fi
3850
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for qnx" >&5
3852 printf %s "checking for qnx... " >&6; }
3853 case "`uname -s`" in
3854 QNX*)
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3856 printf "%s\n" "yes" >&6; }
3857 if test -z "$GCC"; then
3858 LDFLAGS="-N256k -M"
3859 CFLAGS="-w4 -Otax -zc -Wc,-fr= -Wc,-wcd=121"
3860 fi
3861 ;;
3862 *)
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 printf "%s\n" "no" >&6; }
3865 esac
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for solaris" >&5
3867 printf %s "checking for solaris... " >&6; }
3868 if /bin/sun 2> /dev/null
3869 then
3870 uname=`uname -r`
3871 case "$uname" in
3872 5.*)
3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3874 printf "%s\n" "yes" >&6; }
3875 svr4=1
3876 ;;
3877 esac
3878 else
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 printf "%s\n" "no" >&6; }
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SVR4" >&5
3882 printf %s "checking for SVR4... " >&6; }
3883
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
3885 printf %s "checking for egrep -e... " >&6; }
3886 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
3887 then :
3888 printf %s "(cached) " >&6
3889 else case e in #(
3890 e) if test -z "$EGREP_TRADITIONAL"; then
3891 ac_path_EGREP_TRADITIONAL_found=false
3892 # Loop through the user's path and test for each of PROGNAME-LIST
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3895 do
3896 IFS=$as_save_IFS
3897 case $as_dir in #(((
3898 '') as_dir=./ ;;
3899 */) ;;
3900 *) as_dir=$as_dir/ ;;
3901 esac
3902 for ac_prog in grep ggrep
3903 do
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
3906 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
3907 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
3908 # Check for GNU $ac_path_EGREP_TRADITIONAL
3909 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
3910 *GNU*)
3911 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
3912 #(
3913 *)
3914 ac_count=0
3915 printf %s 0123456789 >"conftest.in"
3916 while :
3917 do
3918 cat "conftest.in" "conftest.in" >"conftest.tmp"
3919 mv "conftest.tmp" "conftest.in"
3920 cp "conftest.in" "conftest.nl"
3921 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
3922 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3924 as_fn_arith $ac_count + 1 && ac_count=$as_val
3925 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
3926 # Best one so far, save it but keep looking for a better one
3927 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
3928 ac_path_EGREP_TRADITIONAL_max=$ac_count
3929 fi
3930 # 10*(2^10) chars as input seems more than enough
3931 test $ac_count -gt 10 && break
3932 done
3933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3934 esac
3935
3936 $ac_path_EGREP_TRADITIONAL_found && break 3
3937 done
3938 done
3939 done
3940 IFS=$as_save_IFS
3941 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
3942 :
3943 fi
3944 else
3945 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
3946 fi
3947
3948 if test "$ac_cv_path_EGREP_TRADITIONAL"
3949 then :
3950 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
3951 else case e in #(
3952 e) if test -z "$EGREP_TRADITIONAL"; then
3953 ac_path_EGREP_TRADITIONAL_found=false
3954 # Loop through the user's path and test for each of PROGNAME-LIST
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3957 do
3958 IFS=$as_save_IFS
3959 case $as_dir in #(((
3960 '') as_dir=./ ;;
3961 */) ;;
3962 *) as_dir=$as_dir/ ;;
3963 esac
3964 for ac_prog in egrep
3965 do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
3968 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
3969 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
3970 # Check for GNU $ac_path_EGREP_TRADITIONAL
3971 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
3972 *GNU*)
3973 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
3974 #(
3975 *)
3976 ac_count=0
3977 printf %s 0123456789 >"conftest.in"
3978 while :
3979 do
3980 cat "conftest.in" "conftest.in" >"conftest.tmp"
3981 mv "conftest.tmp" "conftest.in"
3982 cp "conftest.in" "conftest.nl"
3983 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
3984 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3986 as_fn_arith $ac_count + 1 && ac_count=$as_val
3987 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
3988 # Best one so far, save it but keep looking for a better one
3989 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
3990 ac_path_EGREP_TRADITIONAL_max=$ac_count
3991 fi
3992 # 10*(2^10) chars as input seems more than enough
3993 test $ac_count -gt 10 && break
3994 done
3995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3996 esac
3997
3998 $ac_path_EGREP_TRADITIONAL_found && break 3
3999 done
4000 done
4001 done
4002 IFS=$as_save_IFS
4003 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
4004 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4005 fi
4006 else
4007 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
4008 fi
4009 ;;
4010 esac
4011 fi ;;
4012 esac
4013 fi
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
4015 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
4016 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
4017
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020 #if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
4021 yes
4022 #endif
4023
4024 _ACEOF
4025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4026 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
4027 then :
4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4029 printf "%s\n" "yes" >&6; }
4030 svr4=1
4031 fi
4032 rm -rf conftest*
4033
4034 fi
4035
4036 if test -n "$svr4"
4037 then
4038 LIBS="-L/usr/ccs/lib -lnsl -lsocket $LIBS"
4039 else
4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 printf "%s\n" "no" >&6; }
4042 fi
4043
4044 case "`uname -s`" in
4045 Linux*)
4046 if test -d /usr/include/ncurses; then
4047 CFLAGS="-I/usr/include/ncurses $CFLAGS"
4048 fi
4049 ;;
4050 esac
4051
4052 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
4053 if test "x$ac_cv_header_sys_un_h" = xyes
4054 then :
4055 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
4056
4057 fi
4058 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4059 if test "x$ac_cv_header_sys_select_h" = xyes
4060 then :
4061 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
4062
4063 fi
4064 ac_fn_c_check_header_compile "$LINENO" "sys/fcntl.h" "ac_cv_header_sys_fcntl_h" "$ac_includes_default"
4065 if test "x$ac_cv_header_sys_fcntl_h" = xyes
4066 then :
4067 printf "%s\n" "#define HAVE_SYS_FCNTL_H 1" >>confdefs.h
4068
4069 fi
4070 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4071 if test "x$ac_cv_header_sys_ioctl_h" = xyes
4072 then :
4073 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
4074
4075 fi
4076 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
4077 if test "x$ac_cv_header_sys_file_h" = xyes
4078 then :
4079 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
4080
4081 fi
4082 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4083 if test "x$ac_cv_header_sys_time_h" = xyes
4084 then :
4085 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
4086
4087 fi
4088 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
4089 if test "x$ac_cv_header_sys_uio_h" = xyes
4090 then :
4091 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
4092
4093 fi
4094 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4095 if test "x$ac_cv_header_fcntl_h" = xyes
4096 then :
4097 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
4098
4099 fi
4100 ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
4101 if test "x$ac_cv_header_memory_h" = xyes
4102 then :
4103 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
4104
4105 fi
4106 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4107 if test "x$ac_cv_header_netdb_h" = xyes
4108 then :
4109 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
4110
4111 fi
4112 ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
4113 if test "x$ac_cv_header_crypt_h" = xyes
4114 then :
4115 printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h
4116
4117 fi
4118 ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
4119 if test "x$ac_cv_header_process_h" = xyes
4120 then :
4121 printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
4122
4123 fi
4124 ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
4125 if test "x$ac_cv_header_termcap_h" = xyes
4126 then :
4127 printf "%s\n" "#define HAVE_TERMCAP_H 1" >>confdefs.h
4128
4129 fi
4130 ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
4131 if test "x$ac_cv_header_iconv_h" = xyes
4132 then :
4133 printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
4134
4135 fi
4136
4137 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
4138 if test "x$ac_cv_func_fchmod" = xyes
4139 then :
4140
4141 else case e in #(
4142 e)
4143 printf "%s\n" "#define NEED_FCHMOD 1" >>confdefs.h
4144 ;;
4145 esac
4146 fi
4147
4148
4149 ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid"
4150 if test "x$ac_cv_func_getpgid" = xyes
4151 then :
4152 printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h
4153
4154 fi
4155 ac_fn_c_check_func "$LINENO" "getsid" "ac_cv_func_getsid"
4156 if test "x$ac_cv_func_getsid" = xyes
4157 then :
4158 printf "%s\n" "#define HAVE_GETSID 1" >>confdefs.h
4159
4160 fi
4161 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
4162 if test "x$ac_cv_func_memmove" = xyes
4163 then :
4164 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
4165
4166 fi
4167 ac_fn_c_check_func "$LINENO" "scandir" "ac_cv_func_scandir"
4168 if test "x$ac_cv_func_scandir" = xyes
4169 then :
4170 printf "%s\n" "#define HAVE_SCANDIR 1" >>confdefs.h
4171
4172 fi
4173 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
4174 if test "x$ac_cv_func_setsid" = xyes
4175 then :
4176 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
4177
4178 fi
4179 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
4180 if test "x$ac_cv_func_strftime" = xyes
4181 then :
4182 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
4183
4184 fi
4185 ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
4186 if test "x$ac_cv_func_writev" = xyes
4187 then :
4188 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
4189
4190 fi
4191 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
4192 if test "x$ac_cv_func_snprintf" = xyes
4193 then :
4194 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
4195
4196 fi
4197 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
4198 if test "x$ac_cv_func_vsnprintf" = xyes
4199 then :
4200 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
4201
4202 fi
4203 ac_fn_c_check_func "$LINENO" "fputc" "ac_cv_func_fputc"
4204 if test "x$ac_cv_func_fputc" = xyes
4205 then :
4206 printf "%s\n" "#define HAVE_FPUTC 1" >>confdefs.h
4207
4208 fi
4209 ac_fn_c_check_func "$LINENO" "fwrite" "ac_cv_func_fwrite"
4210 if test "x$ac_cv_func_fwrite" = xyes
4211 then :
4212 printf "%s\n" "#define HAVE_FWRITE 1" >>confdefs.h
4213
4214 fi
4215 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
4216 if test "x$ac_cv_func_setenv" = xyes
4217 then :
4218 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
4219
4220 fi
4221 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
4222 if test "x$ac_cv_func_unsetenv" = xyes
4223 then :
4224 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
4225
4226 fi
4227 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
4228 if test "x$ac_cv_func_tzset" = xyes
4229 then :
4230 printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
4231
4232 fi
4233 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
4234 if test "x$ac_cv_func_waitpid" = xyes
4235 then :
4236 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
4237
4238 fi
4239 ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
4240 if test "x$ac_cv_func_iconv_open" = xyes
4241 then :
4242 printf "%s\n" "#define HAVE_ICONV_OPEN 1" >>confdefs.h
4243
4244 fi
4245
4246
4247
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lmedia" >&5
4249 printf %s "checking for getaddrinfo in -lmedia... " >&6; }
4250 if test ${ac_cv_lib_media_getaddrinfo+y}
4251 then :
4252 printf %s "(cached) " >&6
4253 else case e in #(
4254 e) ac_check_lib_save_LIBS=$LIBS
4255 LIBS="-lmedia $LIBS"
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258
4259 /* Override any GCC internal prototype to avoid an error.
4260 Use char because int might match the return type of a GCC
4261 builtin and then its argument prototype would still apply.
4262 The 'extern "C"' is for builds by C++ compilers;
4263 although this is not generally supported in C code supporting it here
4264 has little cost and some practical benefit (sr 110532). */
4265 #ifdef __cplusplus
4266 extern "C"
4267 #endif
4268 char getaddrinfo (void);
4269 int
4270 main (void)
4271 {
4272 return getaddrinfo ();
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 if ac_fn_c_try_link "$LINENO"
4278 then :
4279 ac_cv_lib_media_getaddrinfo=yes
4280 else case e in #(
4281 e) ac_cv_lib_media_getaddrinfo=no ;;
4282 esac
4283 fi
4284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4285 conftest$ac_exeext conftest.$ac_ext
4286 LIBS=$ac_check_lib_save_LIBS ;;
4287 esac
4288 fi
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_media_getaddrinfo" >&5
4290 printf "%s\n" "$ac_cv_lib_media_getaddrinfo" >&6; }
4291 if test "x$ac_cv_lib_media_getaddrinfo" = xyes
4292 then :
4293 LIBS="$LIBS -lmedia"
4294 fi
4295
4296
4297 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
4298 if test "x$ac_cv_type_mode_t" = xyes
4299 then :
4300
4301 else case e in #(
4302 e)
4303 printf "%s\n" "#define mode_t int" >>confdefs.h
4304 ;;
4305 esac
4306 fi
4307
4308
4309 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
4310 "
4311 if test "x$ac_cv_type_pid_t" = xyes
4312 then :
4313
4314 else case e in #(
4315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317
4318 #if defined _WIN64 && !defined __CYGWIN__
4319 LLP64
4320 #endif
4321
4322 int
4323 main (void)
4324 {
4325
4326 ;
4327 return 0;
4328 }
4329
4330 _ACEOF
4331 if ac_fn_c_try_compile "$LINENO"
4332 then :
4333 ac_pid_type='int'
4334 else case e in #(
4335 e) ac_pid_type='__int64' ;;
4336 esac
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4339
4340 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
4341
4342 ;;
4343 esac
4344 fi
4345
4346
4347 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4348 if test "x$ac_cv_type_size_t" = xyes
4349 then :
4350
4351 else case e in #(
4352 e)
4353 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
4354 ;;
4355 esac
4356 fi
4357
4358 ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
4359 if test "x$ac_cv_type_uid_t" = xyes
4360 then :
4361
4362 else case e in #(
4363 e)
4364 printf "%s\n" "#define uid_t int" >>confdefs.h
4365 ;;
4366 esac
4367 fi
4368
4369 ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
4370 if test "x$ac_cv_type_gid_t" = xyes
4371 then :
4372
4373 else case e in #(
4374 e)
4375 printf "%s\n" "#define gid_t int" >>confdefs.h
4376 ;;
4377 esac
4378 fi
4379
4380 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4381 if test "x$ac_cv_type_ssize_t" = xyes
4382 then :
4383
4384 printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
4385
4386
4387 printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
4388
4389 fi
4390
4391
4392
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in.sin_len" >&5
4394 printf %s "checking for sockaddr_in.sin_len... " >&6; }
4395 if test ${ircii_cv_HAVE_SOCKADDR_SA_LEN+y}
4396 then :
4397 printf %s "(cached) " >&6
4398 else case e in #(
4399 e)
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402
4403 #include <sys/types.h>
4404 #include <sys/socket.h>
4405 #include <netinet/in.h>
4406 int
4407 main (void)
4408 {
4409 struct sockaddr_in sin;
4410 int X = sin.sin_len
4411 ;
4412 return 0;
4413 }
4414 _ACEOF
4415 if ac_fn_c_try_compile "$LINENO"
4416 then :
4417 ircii_cv_HAVE_SOCKADDR_SA_LEN=yes
4418 else case e in #(
4419 e) ircii_cv_HAVE_SOCKADDR_SA_LEN=no ;;
4420 esac
4421 fi
4422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4423 ;;
4424 esac
4425 fi
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ircii_cv_HAVE_SOCKADDR_SA_LEN" >&5
4427 printf "%s\n" "$ircii_cv_HAVE_SOCKADDR_SA_LEN" >&6; }
4428 if test "x$ircii_cv_HAVE_SOCKADDR_SA_LEN" = "xyes"; then
4429
4430 printf "%s\n" "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
4431
4432 else
4433
4434 :
4435 fi
4436
4437
4438
4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
4440 printf %s "checking for socklen_t... " >&6; }
4441 if test ${ircii_cv_HAVE_SOCKLEN_T+y}
4442 then :
4443 printf %s "(cached) " >&6
4444 else case e in #(
4445 e)
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448
4449 #include <sys/types.h>
4450 #include <sys/socket.h>
4451 int
4452 main (void)
4453 {
4454 socklen_t X
4455 ;
4456 return 0;
4457 }
4458 _ACEOF
4459 if ac_fn_c_try_compile "$LINENO"
4460 then :
4461 ircii_cv_HAVE_SOCKLEN_T=yes
4462 else case e in #(
4463 e) ircii_cv_HAVE_SOCKLEN_T=no ;;
4464 esac
4465 fi
4466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4467 ;;
4468 esac
4469 fi
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ircii_cv_HAVE_SOCKLEN_T" >&5
4471 printf "%s\n" "$ircii_cv_HAVE_SOCKLEN_T" >&6; }
4472 if test "x$ircii_cv_HAVE_SOCKLEN_T" = "xyes"; then
4473
4474 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
4475
4476 else
4477
4478 :
4479 fi
4480
4481
4482
4483 olibs="$LIBS"
4484 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
4485 if test "x$ac_cv_func_select" = xyes
4486 then :
4487
4488 else case e in #(
4489 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select in -lsocket" >&5
4490 printf %s "checking for select in -lsocket... " >&6; }
4491 if test ${ac_cv_lib_socket_select+y}
4492 then :
4493 printf %s "(cached) " >&6
4494 else case e in #(
4495 e) ac_check_lib_save_LIBS=$LIBS
4496 LIBS="-lsocket $LIBS"
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499
4500 /* Override any GCC internal prototype to avoid an error.
4501 Use char because int might match the return type of a GCC
4502 builtin and then its argument prototype would still apply.
4503 The 'extern "C"' is for builds by C++ compilers;
4504 although this is not generally supported in C code supporting it here
4505 has little cost and some practical benefit (sr 110532). */
4506 #ifdef __cplusplus
4507 extern "C"
4508 #endif
4509 char select (void);
4510 int
4511 main (void)
4512 {
4513 return select ();
4514 ;
4515 return 0;
4516 }
4517 _ACEOF
4518 if ac_fn_c_try_link "$LINENO"
4519 then :
4520 ac_cv_lib_socket_select=yes
4521 else case e in #(
4522 e) ac_cv_lib_socket_select=no ;;
4523 esac
4524 fi
4525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4526 conftest$ac_exeext conftest.$ac_ext
4527 LIBS=$ac_check_lib_save_LIBS ;;
4528 esac
4529 fi
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_select" >&5
4531 printf "%s\n" "$ac_cv_lib_socket_select" >&6; }
4532 if test "x$ac_cv_lib_socket_select" = xyes
4533 then :
4534 LIBS="$LIBS -lsocket"
4535 else case e in #(
4536 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select in -lnsl" >&5
4537 printf %s "checking for select in -lnsl... " >&6; }
4538 if test ${ac_cv_lib_nsl_select+y}
4539 then :
4540 printf %s "(cached) " >&6
4541 else case e in #(
4542 e) ac_check_lib_save_LIBS=$LIBS
4543 LIBS="-lnsl $LIBS"
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546
4547 /* Override any GCC internal prototype to avoid an error.
4548 Use char because int might match the return type of a GCC
4549 builtin and then its argument prototype would still apply.
4550 The 'extern "C"' is for builds by C++ compilers;
4551 although this is not generally supported in C code supporting it here
4552 has little cost and some practical benefit (sr 110532). */
4553 #ifdef __cplusplus
4554 extern "C"
4555 #endif
4556 char select (void);
4557 int
4558 main (void)
4559 {
4560 return select ();
4561 ;
4562 return 0;
4563 }
4564 _ACEOF
4565 if ac_fn_c_try_link "$LINENO"
4566 then :
4567 ac_cv_lib_nsl_select=yes
4568 else case e in #(
4569 e) ac_cv_lib_nsl_select=no ;;
4570 esac
4571 fi
4572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4573 conftest$ac_exeext conftest.$ac_ext
4574 LIBS=$ac_check_lib_save_LIBS ;;
4575 esac
4576 fi
4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_select" >&5
4578 printf "%s\n" "$ac_cv_lib_nsl_select" >&6; }
4579 if test "x$ac_cv_lib_nsl_select" = xyes
4580 then :
4581 LIBS="$LIBS -lnsl"
4582 else case e in #(
4583 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select in -linet" >&5
4584 printf %s "checking for select in -linet... " >&6; }
4585 if test ${ac_cv_lib_inet_select+y}
4586 then :
4587 printf %s "(cached) " >&6
4588 else case e in #(
4589 e) ac_check_lib_save_LIBS=$LIBS
4590 LIBS="-linet $LIBS"
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593
4594 /* Override any GCC internal prototype to avoid an error.
4595 Use char because int might match the return type of a GCC
4596 builtin and then its argument prototype would still apply.
4597 The 'extern "C"' is for builds by C++ compilers;
4598 although this is not generally supported in C code supporting it here
4599 has little cost and some practical benefit (sr 110532). */
4600 #ifdef __cplusplus
4601 extern "C"
4602 #endif
4603 char select (void);
4604 int
4605 main (void)
4606 {
4607 return select ();
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 if ac_fn_c_try_link "$LINENO"
4613 then :
4614 ac_cv_lib_inet_select=yes
4615 else case e in #(
4616 e) ac_cv_lib_inet_select=no ;;
4617 esac
4618 fi
4619 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4620 conftest$ac_exeext conftest.$ac_ext
4621 LIBS=$ac_check_lib_save_LIBS ;;
4622 esac
4623 fi
4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_select" >&5
4625 printf "%s\n" "$ac_cv_lib_inet_select" >&6; }
4626 if test "x$ac_cv_lib_inet_select" = xyes
4627 then :
4628 LIBS="$LIBS -linet"
4629 else case e in #(
4630 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select in -lcposix" >&5
4631 printf %s "checking for select in -lcposix... " >&6; }
4632 if test ${ac_cv_lib_cposix_select+y}
4633 then :
4634 printf %s "(cached) " >&6
4635 else case e in #(
4636 e) ac_check_lib_save_LIBS=$LIBS
4637 LIBS="-lcposix $LIBS"
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640
4641 /* Override any GCC internal prototype to avoid an error.
4642 Use char because int might match the return type of a GCC
4643 builtin and then its argument prototype would still apply.
4644 The 'extern "C"' is for builds by C++ compilers;
4645 although this is not generally supported in C code supporting it here
4646 has little cost and some practical benefit (sr 110532). */
4647 #ifdef __cplusplus
4648 extern "C"
4649 #endif
4650 char select (void);
4651 int
4652 main (void)
4653 {
4654 return select ();
4655 ;
4656 return 0;
4657 }
4658 _ACEOF
4659 if ac_fn_c_try_link "$LINENO"
4660 then :
4661 ac_cv_lib_cposix_select=yes
4662 else case e in #(
4663 e) ac_cv_lib_cposix_select=no ;;
4664 esac
4665 fi
4666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4667 conftest$ac_exeext conftest.$ac_ext
4668 LIBS=$ac_check_lib_save_LIBS ;;
4669 esac
4670 fi
4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_select" >&5
4672 printf "%s\n" "$ac_cv_lib_cposix_select" >&6; }
4673 if test "x$ac_cv_lib_cposix_select" = xyes
4674 then :
4675 LIBS="$LIBS -lcposix"
4676 else case e in #(
4677 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select in -lnet" >&5
4678 printf %s "checking for select in -lnet... " >&6; }
4679 if test ${ac_cv_lib_net_select+y}
4680 then :
4681 printf %s "(cached) " >&6
4682 else case e in #(
4683 e) ac_check_lib_save_LIBS=$LIBS
4684 LIBS="-lnet $LIBS"
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687
4688 /* Override any GCC internal prototype to avoid an error.
4689 Use char because int might match the return type of a GCC
4690 builtin and then its argument prototype would still apply.
4691 The 'extern "C"' is for builds by C++ compilers;
4692 although this is not generally supported in C code supporting it here
4693 has little cost and some practical benefit (sr 110532). */
4694 #ifdef __cplusplus
4695 extern "C"
4696 #endif
4697 char select (void);
4698 int
4699 main (void)
4700 {
4701 return select ();
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_link "$LINENO"
4707 then :
4708 ac_cv_lib_net_select=yes
4709 else case e in #(
4710 e) ac_cv_lib_net_select=no ;;
4711 esac
4712 fi
4713 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4714 conftest$ac_exeext conftest.$ac_ext
4715 LIBS=$ac_check_lib_save_LIBS ;;
4716 esac
4717 fi
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_select" >&5
4719 printf "%s\n" "$ac_cv_lib_net_select" >&6; }
4720 if test "x$ac_cv_lib_net_select" = xyes
4721 then :
4722 LIBS="$LIBS -lnet"
4723 else case e in #(
4724 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: i can not find select. you might need to help me" >&5
4725 printf "%s\n" "$as_me: WARNING: i can not find select. you might need to help me" >&2;} ;;
4726 esac
4727 fi
4728 ;;
4729 esac
4730 fi
4731 ;;
4732 esac
4733 fi
4734 ;;
4735 esac
4736 fi
4737 ;;
4738 esac
4739 fi
4740 ;;
4741 esac
4742 fi
4743
4744
4745 if test x$aix = x1
4746 then
4747 LIBS="$LIBS -lcurses"
4748 include_curses_h=1
4749 else
4750 olibs="$LIBS"
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
4752 printf %s "checking for tgetent in -ltermcap... " >&6; }
4753 if test ${ac_cv_lib_termcap_tgetent+y}
4754 then :
4755 printf %s "(cached) " >&6
4756 else case e in #(
4757 e) ac_check_lib_save_LIBS=$LIBS
4758 LIBS="-ltermcap $LIBS"
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761
4762 /* Override any GCC internal prototype to avoid an error.
4763 Use char because int might match the return type of a GCC
4764 builtin and then its argument prototype would still apply.
4765 The 'extern "C"' is for builds by C++ compilers;
4766 although this is not generally supported in C code supporting it here
4767 has little cost and some practical benefit (sr 110532). */
4768 #ifdef __cplusplus
4769 extern "C"
4770 #endif
4771 char tgetent (void);
4772 int
4773 main (void)
4774 {
4775 return tgetent ();
4776 ;
4777 return 0;
4778 }
4779 _ACEOF
4780 if ac_fn_c_try_link "$LINENO"
4781 then :
4782 ac_cv_lib_termcap_tgetent=yes
4783 else case e in #(
4784 e) ac_cv_lib_termcap_tgetent=no ;;
4785 esac
4786 fi
4787 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4788 conftest$ac_exeext conftest.$ac_ext
4789 LIBS=$ac_check_lib_save_LIBS ;;
4790 esac
4791 fi
4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
4793 printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; }
4794 if test "x$ac_cv_lib_termcap_tgetent" = xyes
4795 then :
4796 LIBS="-ltermcap $olibs"
4797 else case e in #(
4798 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
4799 printf %s "checking for tgetent in -ltinfo... " >&6; }
4800 if test ${ac_cv_lib_tinfo_tgetent+y}
4801 then :
4802 printf %s "(cached) " >&6
4803 else case e in #(
4804 e) ac_check_lib_save_LIBS=$LIBS
4805 LIBS="-ltinfo $LIBS"
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4808
4809 /* Override any GCC internal prototype to avoid an error.
4810 Use char because int might match the return type of a GCC
4811 builtin and then its argument prototype would still apply.
4812 The 'extern "C"' is for builds by C++ compilers;
4813 although this is not generally supported in C code supporting it here
4814 has little cost and some practical benefit (sr 110532). */
4815 #ifdef __cplusplus
4816 extern "C"
4817 #endif
4818 char tgetent (void);
4819 int
4820 main (void)
4821 {
4822 return tgetent ();
4823 ;
4824 return 0;
4825 }
4826 _ACEOF
4827 if ac_fn_c_try_link "$LINENO"
4828 then :
4829 ac_cv_lib_tinfo_tgetent=yes
4830 else case e in #(
4831 e) ac_cv_lib_tinfo_tgetent=no ;;
4832 esac
4833 fi
4834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4835 conftest$ac_exeext conftest.$ac_ext
4836 LIBS=$ac_check_lib_save_LIBS ;;
4837 esac
4838 fi
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
4840 printf "%s\n" "$ac_cv_lib_tinfo_tgetent" >&6; }
4841 if test "x$ac_cv_lib_tinfo_tgetent" = xyes
4842 then :
4843 LIBS="-ltinfo $olibs"
4844 else case e in #(
4845 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5
4846 printf %s "checking for tgetent in -ltermlib... " >&6; }
4847 if test ${ac_cv_lib_termlib_tgetent+y}
4848 then :
4849 printf %s "(cached) " >&6
4850 else case e in #(
4851 e) ac_check_lib_save_LIBS=$LIBS
4852 LIBS="-ltermlib $LIBS"
4853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h. */
4855
4856 /* Override any GCC internal prototype to avoid an error.
4857 Use char because int might match the return type of a GCC
4858 builtin and then its argument prototype would still apply.
4859 The 'extern "C"' is for builds by C++ compilers;
4860 although this is not generally supported in C code supporting it here
4861 has little cost and some practical benefit (sr 110532). */
4862 #ifdef __cplusplus
4863 extern "C"
4864 #endif
4865 char tgetent (void);
4866 int
4867 main (void)
4868 {
4869 return tgetent ();
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 if ac_fn_c_try_link "$LINENO"
4875 then :
4876 ac_cv_lib_termlib_tgetent=yes
4877 else case e in #(
4878 e) ac_cv_lib_termlib_tgetent=no ;;
4879 esac
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4882 conftest$ac_exeext conftest.$ac_ext
4883 LIBS=$ac_check_lib_save_LIBS ;;
4884 esac
4885 fi
4886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5
4887 printf "%s\n" "$ac_cv_lib_termlib_tgetent" >&6; }
4888 if test "x$ac_cv_lib_termlib_tgetent" = xyes
4889 then :
4890 LIBS="$olibs -ltermlib"
4891 else case e in #(
4892 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
4893 printf %s "checking for tgetent in -lcurses... " >&6; }
4894 if test ${ac_cv_lib_curses_tgetent+y}
4895 then :
4896 printf %s "(cached) " >&6
4897 else case e in #(
4898 e) ac_check_lib_save_LIBS=$LIBS
4899 LIBS="-lcurses $LIBS"
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902
4903 /* Override any GCC internal prototype to avoid an error.
4904 Use char because int might match the return type of a GCC
4905 builtin and then its argument prototype would still apply.
4906 The 'extern "C"' is for builds by C++ compilers;
4907 although this is not generally supported in C code supporting it here
4908 has little cost and some practical benefit (sr 110532). */
4909 #ifdef __cplusplus
4910 extern "C"
4911 #endif
4912 char tgetent (void);
4913 int
4914 main (void)
4915 {
4916 return tgetent ();
4917 ;
4918 return 0;
4919 }
4920 _ACEOF
4921 if ac_fn_c_try_link "$LINENO"
4922 then :
4923 ac_cv_lib_curses_tgetent=yes
4924 else case e in #(
4925 e) ac_cv_lib_curses_tgetent=no ;;
4926 esac
4927 fi
4928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4929 conftest$ac_exeext conftest.$ac_ext
4930 LIBS=$ac_check_lib_save_LIBS ;;
4931 esac
4932 fi
4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
4934 printf "%s\n" "$ac_cv_lib_curses_tgetent" >&6; }
4935 if test "x$ac_cv_lib_curses_tgetent" = xyes
4936 then :
4937 LIBS="$olibs -lcurses"
4938 else case e in #(
4939 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lxtermcap" >&5
4940 printf %s "checking for tgetent in -lxtermcap... " >&6; }
4941 if test ${ac_cv_lib_xtermcap_tgetent+y}
4942 then :
4943 printf %s "(cached) " >&6
4944 else case e in #(
4945 e) ac_check_lib_save_LIBS=$LIBS
4946 LIBS="-lxtermcap $LIBS"
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4949
4950 /* Override any GCC internal prototype to avoid an error.
4951 Use char because int might match the return type of a GCC
4952 builtin and then its argument prototype would still apply.
4953 The 'extern "C"' is for builds by C++ compilers;
4954 although this is not generally supported in C code supporting it here
4955 has little cost and some practical benefit (sr 110532). */
4956 #ifdef __cplusplus
4957 extern "C"
4958 #endif
4959 char tgetent (void);
4960 int
4961 main (void)
4962 {
4963 return tgetent ();
4964 ;
4965 return 0;
4966 }
4967 _ACEOF
4968 if ac_fn_c_try_link "$LINENO"
4969 then :
4970 ac_cv_lib_xtermcap_tgetent=yes
4971 else case e in #(
4972 e) ac_cv_lib_xtermcap_tgetent=no ;;
4973 esac
4974 fi
4975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4976 conftest$ac_exeext conftest.$ac_ext
4977 LIBS=$ac_check_lib_save_LIBS ;;
4978 esac
4979 fi
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xtermcap_tgetent" >&5
4981 printf "%s\n" "$ac_cv_lib_xtermcap_tgetent" >&6; }
4982 if test "x$ac_cv_lib_xtermcap_tgetent" = xyes
4983 then :
4984 LIBS="$olibs -lxtermcap"
4985 else case e in #(
4986 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
4987 printf %s "checking for tgetent in -lncurses... " >&6; }
4988 if test ${ac_cv_lib_ncurses_tgetent+y}
4989 then :
4990 printf %s "(cached) " >&6
4991 else case e in #(
4992 e) ac_check_lib_save_LIBS=$LIBS
4993 LIBS="-lncurses $LIBS"
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996
4997 /* Override any GCC internal prototype to avoid an error.
4998 Use char because int might match the return type of a GCC
4999 builtin and then its argument prototype would still apply.
5000 The 'extern "C"' is for builds by C++ compilers;
5001 although this is not generally supported in C code supporting it here
5002 has little cost and some practical benefit (sr 110532). */
5003 #ifdef __cplusplus
5004 extern "C"
5005 #endif
5006 char tgetent (void);
5007 int
5008 main (void)
5009 {
5010 return tgetent ();
5011 ;
5012 return 0;
5013 }
5014 _ACEOF
5015 if ac_fn_c_try_link "$LINENO"
5016 then :
5017 ac_cv_lib_ncurses_tgetent=yes
5018 else case e in #(
5019 e) ac_cv_lib_ncurses_tgetent=no ;;
5020 esac
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5023 conftest$ac_exeext conftest.$ac_ext
5024 LIBS=$ac_check_lib_save_LIBS ;;
5025 esac
5026 fi
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
5028 printf "%s\n" "$ac_cv_lib_ncurses_tgetent" >&6; }
5029 if test "x$ac_cv_lib_ncurses_tgetent" = xyes
5030 then :
5031 LIBS="$olibs -lncurses"
5032 else case e in #(
5033 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: i can not find tgetent. you might need to help me" >&5
5034 printf "%s\n" "$as_me: WARNING: i can not find tgetent. you might need to help me" >&2;} ;;
5035 esac
5036 fi
5037 ;;
5038 esac
5039 fi
5040 ;;
5041 esac
5042 fi
5043 ;;
5044 esac
5045 fi
5046 ;;
5047 esac
5048 fi
5049 ;;
5050 esac
5051 fi
5052
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tputs in curses.h" >&5
5054 printf %s "checking for tputs in curses.h... " >&6; }
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057 #include <curses.h>
5058
5059 _ACEOF
5060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5061 $EGREP_TRADITIONAL "tputs( | |\()" >/dev/null 2>&1
5062 then :
5063 include_curses_h=1
5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5065 printf "%s\n" "yes" >&6; }
5066 else case e in #(
5067 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 printf "%s\n" "no" >&6; } ;;
5069 esac
5070 fi
5071 rm -rf conftest*
5072
5073 fi
5074
5075 if test -n "$include_curses_h"
5076 then
5077
5078 printf "%s\n" "#define INCLUDE_CURSES_H 1" >>confdefs.h
5079
5080 fi
5081
5082
5083
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for const iconv 2nd argument" >&5
5085 printf %s "checking for const iconv 2nd argument... " >&6; }
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 #include <iconv.h>
5089
5090 _ACEOF
5091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5092 $EGREP_TRADITIONAL "\\<iconv\\>.*\\(.*const" >/dev/null 2>&1
5093 then :
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5095 printf "%s\n" "yes" >&6; }
5096
5097 printf "%s\n" "#define ICONV_CONST_ARG2 1" >>confdefs.h
5098
5099 else case e in #(
5100 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 printf "%s\n" "no" >&6; } ;;
5102 esac
5103 fi
5104 rm -rf conftest*
5105
5106
5107
5108
5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for scandir void * comparison function" >&5
5110 printf %s "checking for scandir void * comparison function... " >&6; }
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 #include <dirent.h>
5114
5115 _ACEOF
5116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5117 $EGREP_TRADITIONAL "\\<alphasort\\>.*\\(.*void" >/dev/null 2>&1
5118 then :
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5120 printf "%s\n" "yes" >&6; }
5121
5122 printf "%s\n" "#define ALPHASORT_VOID_ARG 1" >>confdefs.h
5123
5124 else case e in #(
5125 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 printf "%s\n" "no" >&6; } ;;
5127 esac
5128 fi
5129 rm -rf conftest*
5130
5131
5132
5133
5134
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unix mail directory" >&5
5136 printf %s "checking for unix mail directory... " >&6; }
5137
5138 for foo in /var/spool/mail /usr/spool/mail /var/mail /usr/mail
5139 do
5140 if test -d $foo; then
5141 mdir=$foo
5142 break
5143 fi
5144 done
5145
5146 if test -n "$mdir"; then
5147 UNIX_MAIL=\"$mdir\"
5148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mdir" >&5
5149 printf "%s\n" "$mdir" >&6; }
5150
5151 printf "%s\n" "#define UNIX_MAIL \"$mdir\"" >>confdefs.h
5152
5153 else
5154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5155 printf "%s\n" "none" >&6; }
5156 fi
5157
5158 if test -z "$CFLAGS"; then CFLAGS=-O ; fi
5159 if test -z "$LDFLAGS"; then LDFLAGS= ; fi
5160 RM="rm -f"
5161 LN="ln -s"
5162
5163 if test ! -n "$bindir";
5164 then
5165 bindir=\${exec_prefix}/bin
5166 fi
5167
5168
5169 if test ! -n "$IRCLIB";
5170 then
5171 IRCLIB=\${datarootdir}/irc
5172 fi
5173
5174
5175 if test "x$libexecdir" = "x"; then
5176 if test "x$exec_prefix" = "xNONE"; then
5177 if test "x$prefix" = "xNONE"; then
5178 libexecdir="$ac_default_prefix/libexec"
5179 else
5180 libexecdir="$prefix/libexec"
5181 fi
5182 else
5183 libexecdir="$exec_prefix/libexec"
5184 fi
5185 fi
5186
5187
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ElectricFence library" >&5
5189 printf %s "checking for ElectricFence library... " >&6; }
5190
5191 # Check whether --with-efence was given.
5192 if test ${with_efence+y}
5193 then :
5194 withval=$with_efence; case "$withval" in
5195 no)
5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 printf "%s\n" "no" >&6; }
5198 ;;
5199 *)
5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5201 printf "%s\n" "yes" >&6; }
5202 if test "x$withval" = xyes; then
5203 withval="-lefence"
5204 else
5205 if test -d "$withval"; then
5206 if test -d "$withval/lib"; then
5207 withval="-L$withval/lib -R$withval/lib -lefence"
5208 else
5209 withval="-L$withval -lefence"
5210 fi
5211 fi
5212 fi
5213 LIBS="$withval $LIBS"
5214 ;;
5215 esac
5216
5217 else case e in #(
5218 e)
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 printf "%s\n" "no" >&6; }
5221 ;;
5222 esac
5223 fi
5224
5225
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library" >&5
5227 printf %s "checking for OpenSSL library... " >&6; }
5228 checkopenssl=no
5229 ssl_path=
5230
5231 # Check whether --with-openssl was given.
5232 if test ${with_openssl+y}
5233 then :
5234 withval=$with_openssl; case "$withval" in
5235 no)
5236 ;;
5237 *)
5238 if test "x$withval" != "xyes"; then
5239 ssl_path="$withval"
5240 fi
5241 checkopenssl=yes
5242 ;;
5243 esac
5244
5245 else case e in #(
5246 e)
5247 checkopenssl=maybe
5248 ;;
5249 esac
5250 fi
5251
5252
5253 ssl_libs=""
5254 ssl_cflags=""
5255 if test "x$checkopenssl" != xno; then
5256 if test "x$ssl_path" = x; then
5257 ssl_libs="-lssl -lcrypto"
5258 else
5259 if test -d "$ssl_path"; then
5260 if test -d "$ssl_path/lib"; then
5261 ssl_libs="-L$ssl_path/lib -lssl -lcrypto"
5262 ssl_cflags="-I$ssl_path/include"
5263 else
5264 ssl_libs="-L$ssl_path -lssl -lcrypto"
5265 ssl_cflags="-I$ssl_path/../include"
5266 fi
5267 fi
5268 fi
5269 fi
5270
5271 if test "x$ssl_libs" != x; then
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5273 printf "%s\n" "yes" >&6; }
5274 LIBS="$LIBS $ssl_libs"
5275 CFLAGS="$CFLAGS $ssl_cflags"
5276
5277 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
5278
5279 else
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 printf "%s\n" "no" >&6; }
5282 fi
5283
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default SSL level" >&5
5285 printf %s "checking for default SSL level... " >&6; }
5286 DEFAULT_SSL_LEVEL=SSL_OFF
5287
5288 # Check whether --with-default-ssl was given.
5289 if test ${with_default_ssl+y}
5290 then :
5291 withval=$with_default_ssl; case "$withval" in
5292 NONE|OFF)
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OFF" >&5
5294 printf "%s\n" "OFF" >&6; }
5295 ;;
5296 ON|SSLNOCHECK)
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: SSLNOCHECK" >&5
5298 printf "%s\n" "SSLNOCHECK" >&6; }
5299 DEFAULT_SSL_LEVEL=SSL_ON
5300 ;;
5301 VERIFY|SSL)
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: SSL" >&5
5303 printf "%s\n" "SSL" >&6; }
5304 DEFAULT_SSL_LEVEL=SSL_VERIFY
5305 ;;
5306 *)
5307 as_fn_error SSL "\"Must be OFF" "$LINENO" 5
5308 ;;
5309 esac
5310 else case e in #(
5311 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: NONE" >&5
5312 printf "%s\n" "NONE" >&6; }
5313 ;;
5314 esac
5315 fi
5316
5317
5318
5319 printf "%s\n" "#define DEFAULT_SSL_LEVEL $DEFAULT_SSL_LEVEL" >>confdefs.h
5320
5321
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for debug flags" >&5
5323 printf %s "checking for debug flags... " >&6; }
5324
5325 # Check whether --with-debugging was given.
5326 if test ${with_debugging+y}
5327 then :
5328 withval=$with_debugging; case "$withval" in
5329 no)
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 printf "%s\n" "no" >&6; }
5332 DEBUGFLAGS=
5333 ;;
5334 *)
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5336 printf "%s\n" "yes" >&6; }
5337 if test "x$withval" = xyes; then
5338 withval=-g
5339 fi
5340 DEBUGFLAGS="$withval"
5341 for flag in $CFLAGS; do
5342 case "$CFLAGS" in
5343 -DDEBUG|-DDEBUG=*)
5344 found=1
5345 break
5346 ;;
5347 *)
5348 found=0
5349 ;;
5350 esac
5351 done
5352 if test $found -eq 0; then
5353 CFLAGS="$CFLAGS -DDEBUG"
5354 fi
5355 ;;
5356 esac
5357 else case e in #(
5358 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 printf "%s\n" "no" >&6; }
5360 ;;
5361 esac
5362 fi
5363
5364
5365
5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for warning flags" >&5
5367 printf %s "checking for warning flags... " >&6; }
5368
5369 # Check whether --with-warnings was given.
5370 if test ${with_warnings+y}
5371 then :
5372 withval=$with_warnings; case "$withval" in
5373 no)
5374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 printf "%s\n" "no" >&6; }
5376 WARNINGFLAGS=
5377 ;;
5378 *)
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5380 printf "%s\n" "yes" >&6; }
5381 if test "x$withval" = xyes; then
5382 withval='-Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wformat -Wformat-security'
5383 fi
5384 WARNINGFLAGS="$withval"
5385 ;;
5386 esac
5387 else case e in #(
5388 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 printf "%s\n" "no" >&6; }
5390 ;;
5391 esac
5392 fi
5393
5394
5395
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for warnings as errors" >&5
5397 printf %s "checking for warnings as errors... " >&6; }
5398
5399 # Check whether --with-warning-errors was given.
5400 if test ${with_warning_errors+y}
5401 then :
5402 withval=$with_warning_errors; case "$withval" in
5403 no)
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 printf "%s\n" "no" >&6; }
5406 ERRORFLAGS=
5407 ;;
5408 *)
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5410 printf "%s\n" "yes" >&6; }
5411 if test "x$withval" = xyes; then
5412 withval='-Werror'
5413 fi
5414 ERRORFLAGS="$withval"
5415 ;;
5416 esac
5417 else case e in #(
5418 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 printf "%s\n" "no" >&6; }
5420 ;;
5421 esac
5422 fi
5423
5424
5425
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sanitizers" >&5
5427 printf %s "checking for sanitizers... " >&6; }
5428
5429 # Check whether --with-sanitizer was given.
5430 if test ${with_sanitizer+y}
5431 then :
5432 withval=$with_sanitizer; case "$withval" in
5433 no)
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 printf "%s\n" "no" >&6; }
5436 LIBSANI=
5437 ;;
5438 *)
5439 if test "x$withval" = xyes; then
5440 withval='address'
5441 fi
5442 have_asan=0
5443 have_lsan=0
5444 have_ubsan=0
5445 for val in `echo "$withval" | sed "s/,/ /"`
5446 do
5447 LIBSANI=
5448 case "$val" in
5449 asan|address)
5450 FSANI=address
5451 LIBSANI=asan
5452 have_asan=1
5453 ;;
5454 lsan|leak)
5455 FSANI=leak
5456 LIBSANI=lsan
5457 have_lsan=1
5458 ;;
5459 ubsan|undefined)
5460 FSANI=undefined
5461 LIBSANI=ubsan
5462 have_ubsan=1
5463 ;;
5464 *)
5465 as_fn_error leak "Sanitizer support for address" "$LINENO" 5
5466 ;;
5467 esac
5468 done
5469 if test "$have_asan" -eq 1 -a "$have_lsan" -eq 1; then
5470 as_fn_error $? "Do not combine address and leak sanitizers." "$LINENO" 5
5471 fi
5472 list=""
5473 sep=""
5474 if test "$have_asan" -eq 1; then
5475 CFLAGS="$CFLAGS -fsanitize=address"
5476 LIBS="$LIBS -lasan"
5477 list="$list$sep"address
5478 sep=" "
5479 fi
5480 if test "$have_lsan" -eq 1; then
5481 CFLAGS="$CFLAGS -fsanitize=leak"
5482 LIBS="$LIBS -llsan"
5483 list="$list$sep"leak
5484 sep=" "
5485 fi
5486 if test "$have_ubsan" -eq 1; then
5487 CFLAGS="$CFLAGS -fsanitize=undefined"
5488 LIBS="$LIBS -lubsan"
5489 list="$list$sep"undefined
5490 sep=" "
5491 fi
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $list" >&5
5493 printf "%s\n" "$list" >&6; }
5494 ;;
5495 esac
5496 else case e in #(
5497 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 printf "%s\n" "no" >&6; }
5499 ;;
5500 esac
5501 fi
5502
5503
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for emacs meta keys" >&5
5505 printf %s "checking for emacs meta keys... " >&6; }
5506
5507 # Check whether --with-emacs-meta-keys was given.
5508 if test ${with_emacs_meta_keys+y}
5509 then :
5510 withval=$with_emacs_meta_keys; case "$withval" in
5511 no)
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 printf "%s\n" "no" >&6; }
5514 ;;
5515 *)
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5517 printf "%s\n" "yes" >&6; }
5518
5519 printf "%s\n" "#define WITH_EMACS_META_KEYS 1" >>confdefs.h
5520
5521 ;;
5522 esac
5523 else case e in #(
5524 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 printf "%s\n" "no" >&6; }
5526 ;;
5527 esac
5528 fi
5529
5530
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking paranoia status" >&5
5532 printf %s "checking paranoia status... " >&6; }
5533
5534 # Check whether --with-paranoid was given.
5535 if test ${with_paranoid+y}
5536 then :
5537 withval=$with_paranoid; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5538 printf "%s\n" "yes" >&6; }
5539
5540 printf "%s\n" "#define PARANOID 1" >>confdefs.h
5541
5542 else case e in #(
5543 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5544 printf "%s\n" "none" >&6; }
5545 ;;
5546 esac
5547 fi
5548
5549
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking link time optimisation" >&5
5551 printf %s "checking link time optimisation... " >&6; }
5552
5553 # Check whether --with-lto was given.
5554 if test ${with_lto+y}
5555 then :
5556 withval=$with_lto; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557 printf "%s\n" "yes" >&6; }
5558 CFLAGS="$CFLAGS -flto"
5559 else case e in #(
5560 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5561 printf "%s\n" "none" >&6; }
5562 ;;
5563 esac
5564 fi
5565
5566
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
5568 printf %s "checking for /dev/urandom... " >&6; }
5569 if test -c /dev/urandom; then
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5571 printf "%s\n" "yes" >&6; }
5572 have_dev_random=1
5573 dev_random_path="/dev/urandom"
5574 else
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 printf "%s\n" "no" >&6; }
5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5
5578 printf %s "checking for /dev/random... " >&6; }
5579 if test -c /dev/random; then
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5581 printf "%s\n" "yes" >&6; }
5582 have_dev_random=1
5583 dev_random_path="/dev/random"
5584 else
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 printf "%s\n" "no" >&6; }
5587 fi
5588 fi
5589
5590 if test -n "$have_dev_random"
5591 then
5592
5593 printf "%s\n" "#define HAVE_DEV_RANDOM 1" >>confdefs.h
5594
5595
5596 printf "%s\n" "#define DEV_RANDOM_PATH \"$dev_random_path\"" >>confdefs.h
5597
5598 fi
5599
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default server" >&5
5601 printf %s "checking for default server... " >&6; }
5602
5603 # Check whether --with-default-server was given.
5604 if test ${with_default_server+y}
5605 then :
5606 withval=$with_default_server; if test "$withval"; then
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5608 printf "%s\n" "$withval" >&6; }
5609
5610 printf "%s\n" "#define DEFAULT_SERVER \"$withval\"" >>confdefs.h
5611
5612 else
5613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5614 printf "%s\n" "none" >&6; }
5615 fi
5616 else case e in #(
5617 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5618 printf "%s\n" "none" >&6; }
5619 ;;
5620 esac
5621 fi
5622
5623
5624
5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default window resize method" >&5
5626 printf %s "checking for default window resize method... " >&6; }
5627 defval=1
5628
5629 # Check whether --with-default-resize-method was given.
5630 if test ${with_default_resize_method+y}
5631 then :
5632 withval=$with_default_resize_method; case "$withval" in
5633 new|old)
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
5635 printf "%s\n" "$withval" >&6; }
5636 if test "$withval" = old; then
5637 defval=0;
5638 fi
5639 ;;
5640 *)
5641 as_fn_error $? "Window resize method must be either \"old\" or \"new\"." "$LINENO" 5
5642 ;;
5643 esac
5644 else case e in #(
5645 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"new\"" >&5
5646 printf "%s\n" "\"new\"" >&6; }
5647 ;;
5648 esac
5649 fi
5650
5651 if test $defval -eq 1; then
5652
5653 printf "%s\n" "#define DEFAULT_RESIZE_METHOD $defval" >>confdefs.h
5654
5655 fi
5656
5657
5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lc" >&5
5659 printf %s "checking for crypt in -lc... " >&6; }
5660 if test ${ac_cv_lib_c_crypt+y}
5661 then :
5662 printf %s "(cached) " >&6
5663 else case e in #(
5664 e) ac_check_lib_save_LIBS=$LIBS
5665 LIBS="-lc $LIBS"
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668
5669 /* Override any GCC internal prototype to avoid an error.
5670 Use char because int might match the return type of a GCC
5671 builtin and then its argument prototype would still apply.
5672 The 'extern "C"' is for builds by C++ compilers;
5673 although this is not generally supported in C code supporting it here
5674 has little cost and some practical benefit (sr 110532). */
5675 #ifdef __cplusplus
5676 extern "C"
5677 #endif
5678 char crypt (void);
5679 int
5680 main (void)
5681 {
5682 return crypt ();
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 if ac_fn_c_try_link "$LINENO"
5688 then :
5689 ac_cv_lib_c_crypt=yes
5690 else case e in #(
5691 e) ac_cv_lib_c_crypt=no ;;
5692 esac
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5695 conftest$ac_exeext conftest.$ac_ext
5696 LIBS=$ac_check_lib_save_LIBS ;;
5697 esac
5698 fi
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_crypt" >&5
5700 printf "%s\n" "$ac_cv_lib_c_crypt" >&6; }
5701 if test "x$ac_cv_lib_c_crypt" = xyes
5702 then :
5703 have_crypt=1
5704 else case e in #(
5705 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
5706 printf %s "checking for crypt in -lcrypt... " >&6; }
5707 if test ${ac_cv_lib_crypt_crypt+y}
5708 then :
5709 printf %s "(cached) " >&6
5710 else case e in #(
5711 e) ac_check_lib_save_LIBS=$LIBS
5712 LIBS="-lcrypt $LIBS"
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715
5716 /* Override any GCC internal prototype to avoid an error.
5717 Use char because int might match the return type of a GCC
5718 builtin and then its argument prototype would still apply.
5719 The 'extern "C"' is for builds by C++ compilers;
5720 although this is not generally supported in C code supporting it here
5721 has little cost and some practical benefit (sr 110532). */
5722 #ifdef __cplusplus
5723 extern "C"
5724 #endif
5725 char crypt (void);
5726 int
5727 main (void)
5728 {
5729 return crypt ();
5730 ;
5731 return 0;
5732 }
5733 _ACEOF
5734 if ac_fn_c_try_link "$LINENO"
5735 then :
5736 ac_cv_lib_crypt_crypt=yes
5737 else case e in #(
5738 e) ac_cv_lib_crypt_crypt=no ;;
5739 esac
5740 fi
5741 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5742 conftest$ac_exeext conftest.$ac_ext
5743 LIBS=$ac_check_lib_save_LIBS ;;
5744 esac
5745 fi
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
5747 printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; }
5748 if test "x$ac_cv_lib_crypt_crypt" = xyes
5749 then :
5750 have_crypt=1
5751 LIBS="$LIBS -lcrypt"
5752 else case e in #(
5753 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for des in -ldes" >&5
5754 printf %s "checking for des in -ldes... " >&6; }
5755 if test ${ac_cv_lib_des_des+y}
5756 then :
5757 printf %s "(cached) " >&6
5758 else case e in #(
5759 e) ac_check_lib_save_LIBS=$LIBS
5760 LIBS="-ldes $LIBS"
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763
5764 /* Override any GCC internal prototype to avoid an error.
5765 Use char because int might match the return type of a GCC
5766 builtin and then its argument prototype would still apply.
5767 The 'extern "C"' is for builds by C++ compilers;
5768 although this is not generally supported in C code supporting it here
5769 has little cost and some practical benefit (sr 110532). */
5770 #ifdef __cplusplus
5771 extern "C"
5772 #endif
5773 char des (void);
5774 int
5775 main (void)
5776 {
5777 return des ();
5778 ;
5779 return 0;
5780 }
5781 _ACEOF
5782 if ac_fn_c_try_link "$LINENO"
5783 then :
5784 ac_cv_lib_des_des=yes
5785 else case e in #(
5786 e) ac_cv_lib_des_des=no ;;
5787 esac
5788 fi
5789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5790 conftest$ac_exeext conftest.$ac_ext
5791 LIBS=$ac_check_lib_save_LIBS ;;
5792 esac
5793 fi
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des" >&5
5795 printf "%s\n" "$ac_cv_lib_des_des" >&6; }
5796 if test "x$ac_cv_lib_des_des" = xyes
5797 then :
5798 have_crypt=1
5799 LIBS="$LIBS -ldes"
5800 fi
5801 ;;
5802 esac
5803 fi
5804 ;;
5805 esac
5806 fi
5807
5808
5809 if test -n "$have_crypt"
5810 then
5811
5812 printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h
5813
5814 fi
5815
5816
5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support SOCKS" >&5
5818 printf %s "checking whether to support SOCKS... " >&6; }
5819
5820 # Check whether --with-socks was given.
5821 if test ${with_socks+y}
5822 then :
5823 withval=$with_socks; case "$withval" in
5824 no)
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 printf "%s\n" "no" >&6; }
5827 ;;
5828 yes)
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5830 printf "%s\n" "yes" >&6; }
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SOCKSconnect in -lsocks5" >&5
5832 printf %s "checking for SOCKSconnect in -lsocks5... " >&6; }
5833 if test ${ac_cv_lib_socks5_SOCKSconnect+y}
5834 then :
5835 printf %s "(cached) " >&6
5836 else case e in #(
5837 e) ac_check_lib_save_LIBS=$LIBS
5838 LIBS="-lsocks5 $LIBS"
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841
5842 /* Override any GCC internal prototype to avoid an error.
5843 Use char because int might match the return type of a GCC
5844 builtin and then its argument prototype would still apply.
5845 The 'extern "C"' is for builds by C++ compilers;
5846 although this is not generally supported in C code supporting it here
5847 has little cost and some practical benefit (sr 110532). */
5848 #ifdef __cplusplus
5849 extern "C"
5850 #endif
5851 char SOCKSconnect (void);
5852 int
5853 main (void)
5854 {
5855 return SOCKSconnect ();
5856 ;
5857 return 0;
5858 }
5859 _ACEOF
5860 if ac_fn_c_try_link "$LINENO"
5861 then :
5862 ac_cv_lib_socks5_SOCKSconnect=yes
5863 else case e in #(
5864 e) ac_cv_lib_socks5_SOCKSconnect=no ;;
5865 esac
5866 fi
5867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5868 conftest$ac_exeext conftest.$ac_ext
5869 LIBS=$ac_check_lib_save_LIBS ;;
5870 esac
5871 fi
5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socks5_SOCKSconnect" >&5
5873 printf "%s\n" "$ac_cv_lib_socks5_SOCKSconnect" >&6; }
5874 if test "x$ac_cv_lib_socks5_SOCKSconnect" = xyes
5875 then :
5876
5877 socks=5
5878 LIBS="$LIBS -lsocks5"
5879 else case e in #(
5880 e)
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Rconnect in -lsocks" >&5
5882 printf %s "checking for Rconnect in -lsocks... " >&6; }
5883 if test ${ac_cv_lib_socks_Rconnect+y}
5884 then :
5885 printf %s "(cached) " >&6
5886 else case e in #(
5887 e) ac_check_lib_save_LIBS=$LIBS
5888 LIBS="-lsocks $LIBS"
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891
5892 /* Override any GCC internal prototype to avoid an error.
5893 Use char because int might match the return type of a GCC
5894 builtin and then its argument prototype would still apply.
5895 The 'extern "C"' is for builds by C++ compilers;
5896 although this is not generally supported in C code supporting it here
5897 has little cost and some practical benefit (sr 110532). */
5898 #ifdef __cplusplus
5899 extern "C"
5900 #endif
5901 char Rconnect (void);
5902 int
5903 main (void)
5904 {
5905 return Rconnect ();
5906 ;
5907 return 0;
5908 }
5909 _ACEOF
5910 if ac_fn_c_try_link "$LINENO"
5911 then :
5912 ac_cv_lib_socks_Rconnect=yes
5913 else case e in #(
5914 e) ac_cv_lib_socks_Rconnect=no ;;
5915 esac
5916 fi
5917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5918 conftest$ac_exeext conftest.$ac_ext
5919 LIBS=$ac_check_lib_save_LIBS ;;
5920 esac
5921 fi
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socks_Rconnect" >&5
5923 printf "%s\n" "$ac_cv_lib_socks_Rconnect" >&6; }
5924 if test "x$ac_cv_lib_socks_Rconnect" = xyes
5925 then :
5926
5927 socks=4
5928 LIBS="$LIBS -lsocks"
5929 else case e in #(
5930 e)
5931 as_fn_error $? "Could not find socks library. You must first install socks." "$LINENO" 5 ;;
5932 esac
5933 fi
5934 ;;
5935 esac
5936 fi
5937
5938 ;;
5939 esac
5940 else case e in #(
5941 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 printf "%s\n" "no" >&6; }
5943 ;;
5944 esac
5945 fi
5946
5947
5948 if test "x$socks" = "x"; then
5949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support SOCKS5" >&5
5950 printf %s "checking whether to support SOCKS5... " >&6; }
5951
5952 # Check whether --with-socks5 was given.
5953 if test ${with_socks5+y}
5954 then :
5955 withval=$with_socks5; case "$withval" in
5956 no)
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 printf "%s\n" "no" >&6; }
5959 ;;
5960 *)
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5962 printf "%s\n" "yes" >&6; }
5963 socks=5
5964 socks5lib=""
5965 if test "x$withval" = "xyes"; then
5966 socks5lib="-lsocks5"
5967 else
5968 if test -d "$withval"; then
5969 if test -d "$withval/include"; then
5970 CFLAGS="$CFLAGS -I$withval/include"
5971 else
5972 CFLAGS="$CFLAGS -I$withval"
5973 fi
5974 if test -d "$withval/lib"; then
5975 socks5lib="-L$withval/lib -lsocks5"
5976 else
5977 socks5lib="-L$withval -lsocks5"
5978 fi
5979 else
5980 socks5lib="$withval"
5981 fi
5982 fi
5983 LIBS="$socks5lib $LIBS"
5984 # If Socks was compiled with Kerberos support, we will need
5985 # to link against kerberos libraries. Temporarily append
5986 # to LIBS. This is harmless if there is no kerberos support.
5987 TMPLIBS="$LIBS"
5988 LIBS="$LIBS $KERBEROS_LIBS"
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5991
5992 int
5993 main (void)
5994 {
5995 SOCKSconnect();
5996 ;
5997 return 0;
5998 }
5999 _ACEOF
6000 if ac_fn_c_try_link "$LINENO"
6001 then :
6002
6003 else case e in #(
6004 e) as_fn_error $? "Could not find the $withval library. You must first install socks5." "$LINENO" 5 ;;
6005 esac
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6008 conftest$ac_exeext conftest.$ac_ext
6009 LIBS="$TMPLIBS"
6010 ;;
6011 esac
6012 else case e in #(
6013 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 printf "%s\n" "no" >&6; }
6015 ;;
6016 esac
6017 fi
6018
6019 fi
6020
6021 if test "x$socks" = "x"; then
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support SOCKS4" >&5
6023 printf %s "checking whether to support SOCKS4... " >&6; }
6024
6025 # Check whether --with-socks4 was given.
6026 if test ${with_socks4+y}
6027 then :
6028 withval=$with_socks4; case "$withval" in
6029 no)
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 printf "%s\n" "no" >&6; }
6032 ;;
6033 *)
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6035 printf "%s\n" "yes" >&6; }
6036 socks=4
6037 if test "x$withval" = "xyes"; then
6038 withval="-lsocks"
6039 else
6040 if test -d "$withval"; then
6041 withval="-L$withval -lsocks"
6042 fi
6043 fi
6044 LIBS="$withval $LIBS"
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047
6048 int
6049 main (void)
6050 {
6051 Rconnect();
6052 ;
6053 return 0;
6054 }
6055 _ACEOF
6056 if ac_fn_c_try_link "$LINENO"
6057 then :
6058
6059 else case e in #(
6060 e) as_fn_error $? "Could not find the $withval library. You must first install socks." "$LINENO" 5 ;;
6061 esac
6062 fi
6063 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6064 conftest$ac_exeext conftest.$ac_ext
6065 ;;
6066 esac
6067 else case e in #(
6068 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 printf "%s\n" "no" >&6; }
6070 ;;
6071 esac
6072 fi
6073
6074 fi
6075
6076 if test -n "$socks"; then
6077
6078 printf "%s\n" "#define SOCKS 1" >>confdefs.h
6079
6080 fi
6081
6082 if test "x$socks" = "x4"; then
6083
6084 printf "%s\n" "#define SOCKS4 1" >>confdefs.h
6085
6086 fi
6087
6088 if test "x$socks" = "x5"; then
6089
6090 printf "%s\n" "#define SOCKS5 1" >>confdefs.h
6091
6092 fi
6093
6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-blocking" >&5
6095 printf %s "checking for non-blocking... " >&6; }
6096
6097 # Check whether --with-non-blocking was given.
6098 if test ${with_non_blocking+y}
6099 then :
6100 withval=$with_non_blocking;
6101 case "$withval" in
6102 no|none)
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 printf "%s\n" "no" >&6; }
6105 ;;
6106 *)
6107 if test -z "$socks"; then
6108 withval=no
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 printf "%s\n" "no" >&6; }
6111 else
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6113 printf "%s\n" "yes" >&6; }
6114 non_blocking_connects=1
6115 fi
6116 ;;
6117 esac
6118 else case e in #(
6119 e)
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6121 printf "%s\n" "yes" >&6; }
6122 non_blocking_connects=1
6123 ;;
6124 esac
6125 fi
6126
6127
6128 if test -n "$non_blocking_connects"
6129 then
6130
6131 printf "%s\n" "#define NON_BLOCKING_CONNECTS 1" >>confdefs.h
6132
6133 fi
6134
6135 if test -n "$hpux"
6136 then
6137 # HP-UX's pax is broken
6138 for ac_prog in tar cpio
6139 do
6140 # Extract the first word of "$ac_prog", so it can be a program name with args.
6141 set dummy $ac_prog; ac_word=$2
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143 printf %s "checking for $ac_word... " >&6; }
6144 if test ${ac_cv_prog_COPY_DIRECTORY+y}
6145 then :
6146 printf %s "(cached) " >&6
6147 else case e in #(
6148 e) if test -n "$COPY_DIRECTORY"; then
6149 ac_cv_prog_COPY_DIRECTORY="$COPY_DIRECTORY" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154 IFS=$as_save_IFS
6155 case $as_dir in #(((
6156 '') as_dir=./ ;;
6157 */) ;;
6158 *) as_dir=$as_dir/ ;;
6159 esac
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6162 ac_cv_prog_COPY_DIRECTORY="$ac_prog"
6163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166 done
6167 done
6168 IFS=$as_save_IFS
6169
6170 fi ;;
6171 esac
6172 fi
6173 COPY_DIRECTORY=$ac_cv_prog_COPY_DIRECTORY
6174 if test -n "$COPY_DIRECTORY"; then
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COPY_DIRECTORY" >&5
6176 printf "%s\n" "$COPY_DIRECTORY" >&6; }
6177 else
6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179 printf "%s\n" "no" >&6; }
6180 fi
6181
6182
6183 test -n "$COPY_DIRECTORY" && break
6184 done
6185
6186 else
6187 for ac_prog in pax tar cpio
6188 do
6189 # Extract the first word of "$ac_prog", so it can be a program name with args.
6190 set dummy $ac_prog; ac_word=$2
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 printf %s "checking for $ac_word... " >&6; }
6193 if test ${ac_cv_prog_COPY_DIRECTORY+y}
6194 then :
6195 printf %s "(cached) " >&6
6196 else case e in #(
6197 e) if test -n "$COPY_DIRECTORY"; then
6198 ac_cv_prog_COPY_DIRECTORY="$COPY_DIRECTORY" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203 IFS=$as_save_IFS
6204 case $as_dir in #(((
6205 '') as_dir=./ ;;
6206 */) ;;
6207 *) as_dir=$as_dir/ ;;
6208 esac
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6211 ac_cv_prog_COPY_DIRECTORY="$ac_prog"
6212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6213 break 2
6214 fi
6215 done
6216 done
6217 IFS=$as_save_IFS
6218
6219 fi ;;
6220 esac
6221 fi
6222 COPY_DIRECTORY=$ac_cv_prog_COPY_DIRECTORY
6223 if test -n "$COPY_DIRECTORY"; then
6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COPY_DIRECTORY" >&5
6225 printf "%s\n" "$COPY_DIRECTORY" >&6; }
6226 else
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 printf "%s\n" "no" >&6; }
6229 fi
6230
6231
6232 test -n "$COPY_DIRECTORY" && break
6233 done
6234
6235 fi
6236 if test "x$COPY_DIRECTORY" = "xpax";
6237 then
6238 INSTALL_HELP_CMD='cd $(topdir)/help; pax -r -w -s ";.*/CVS$$;;" -s ";.*/\.CVS$$;;" -s ";.*/CVS/.*;;" -s ";.*/\.CVS/.*;;" . $(HELP_DIR)'
6239 else
6240 if test "x$COPY_DIRECTORY" = "xtar";
6241 then
6242 INSTALL_HELP_CMD='cd $(topdir)/help; tar -cf - . | ( cd $(HELP_DIR); tar -xf - )'
6243 else
6244 if test "x$COPY_DIRECTORY" = "xcpio";
6245 then
6246 INSTALL_HELP_CMD='cd $(topdir)/help; find . -print | cpio -pdu $(HELP_DIR)'
6247 else
6248 INSTALL_HELP_CMD="@echo \"I couldn't figure out a way to install the help files.\""
6249 fi
6250 fi
6251 fi
6252
6253
6254 for ac_prog in gzcat zcat gunzip gzip uncompress uncompress
6255 do
6256 # Extract the first word of "$ac_prog", so it can be a program name with args.
6257 set dummy $ac_prog; ac_word=$2
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 printf %s "checking for $ac_word... " >&6; }
6260 if test ${ac_cv_prog_ZCAT+y}
6261 then :
6262 printf %s "(cached) " >&6
6263 else case e in #(
6264 e) if test -n "$ZCAT"; then
6265 ac_cv_prog_ZCAT="$ZCAT" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6269 do
6270 IFS=$as_save_IFS
6271 case $as_dir in #(((
6272 '') as_dir=./ ;;
6273 */) ;;
6274 *) as_dir=$as_dir/ ;;
6275 esac
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6278 ac_cv_prog_ZCAT="$ac_prog"
6279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6280 break 2
6281 fi
6282 done
6283 done
6284 IFS=$as_save_IFS
6285
6286 fi ;;
6287 esac
6288 fi
6289 ZCAT=$ac_cv_prog_ZCAT
6290 if test -n "$ZCAT"; then
6291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZCAT" >&5
6292 printf "%s\n" "$ZCAT" >&6; }
6293 else
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 printf "%s\n" "no" >&6; }
6296 fi
6297
6298
6299 test -n "$ZCAT" && break
6300 done
6301
6302 case "x$ZCAT" in
6303 xgzcat)
6304 ZSUFFIX=".gz"
6305 ZARGS=
6306 ;;
6307 xzcat)
6308 ZSUFFIX=".Z"
6309 ZARGS=
6310 ;;
6311 xgunzip)
6312 ZSUFFIX=".gz"
6313 ZARGS="-c"
6314 ;;
6315 xgzip)
6316 ZSUFFIX=".gz"
6317 ZARGS="-dc"
6318 ;;
6319 xuncompress)
6320 ZSUFFIX=".Z"
6321 ZARGS="-c"
6322 ;;
6323 xcompress)
6324 ZSUFFIX=".Z"
6325 ZARGS="-dc"
6326 ;;
6327 esac
6328
6329 printf "%s\n" "#define ZCAT \"$ZCAT\"" >>confdefs.h
6330
6331
6332 printf "%s\n" "#define ZSUFFIX \"$ZSUFFIX\"" >>confdefs.h
6333
6334 if test x"$ZARGS" != x; then
6335
6336 printf "%s\n" "#define ZARGS \"$ZARGS\"" >>confdefs.h
6337
6338 fi
6339
6340 if test x/usr/sbin:/usr/lib:/usr/ucblib:/usr/local/sbin:/usr/pkg/sbin = x; then _PATH=$PATH; else _PATH=/usr/sbin:/usr/lib:/usr/ucblib:/usr/local/sbin:/usr/pkg/sbin; fi
6341 if test -z "$SENDMAIL"; then
6342 # Extract the first word of `sendmail', so it can be a program name with args.
6343 set dummy sendmail; word=$2
6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $word" >&5
6345 printf %s "checking for $word... " >&6; }
6346 IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:"
6347 for dir in $_PATH; do
6348 test -z "$dir" && dir=.
6349 if test -f $dir/$word; then
6350 SENDMAIL=$dir/$word
6351 break
6352 fi
6353 done
6354 IFS="$saveifs"
6355 fi
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
6357 printf "%s\n" "$SENDMAIL" >&6; }
6358
6359
6360
6361
6362 ac_config_files="$ac_config_files Makefile ircbug"
6363
6364 cat >confcache <<\_ACEOF
6365 # This file is a shell script that caches the results of configure
6366 # tests run on this system so they can be shared between configure
6367 # scripts and configure runs, see configure's option --config-cache.
6368 # It is not useful on other systems. If it contains results you don't
6369 # want to keep, you may remove or edit it.
6370 #
6371 # config.status only pays attention to the cache file if you give it
6372 # the --recheck option to rerun configure.
6373 #
6374 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
6375 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
6376 # following values.
6377
6378 _ACEOF
6379
6380 # The following way of writing the cache mishandles newlines in values,
6381 # but we know of no workaround that is simple, portable, and efficient.
6382 # So, we kill variables containing newlines.
6383 # Ultrix sh set writes to stderr and can't be redirected directly,
6384 # and sets the high bit in the cache file unless we assign to the vars.
6385 (
6386 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6387 eval ac_val=\$$ac_var
6388 case $ac_val in #(
6389 *${as_nl}*)
6390 case $ac_var in #(
6391 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6392 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6393 esac
6394 case $ac_var in #(
6395 _ | IFS | as_nl) ;; #(
6396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6397 *) { eval $ac_var=; unset $ac_var;} ;;
6398 esac ;;
6399 esac
6400 done
6401
6402 (set) 2>&1 |
6403 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6404 *${as_nl}ac_space=\ *)
6405 # 'set' does not quote correctly, so add quotes: double-quote
6406 # substitution turns \\\\ into \\, and sed turns \\ into \.
6407 sed -n \
6408 "s/'/'\\\\''/g;
6409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6410 ;; #(
6411 *)
6412 # 'set' quotes correctly as required by POSIX, so do not add quotes.
6413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6414 ;;
6415 esac |
6416 sort
6417 ) |
6418 sed '
6419 /^ac_cv_env_/b end
6420 t clear
6421 :clear
6422 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6423 t end
6424 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6425 :end' >>confcache
6426 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6427 if test -w "$cache_file"; then
6428 if test "x$cache_file" != "x/dev/null"; then
6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6430 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6431 if test ! -f "$cache_file" || test -h "$cache_file"; then
6432 cat confcache >"$cache_file"
6433 else
6434 case $cache_file in #(
6435 */* | ?:*)
6436 mv -f confcache "$cache_file"$$ &&
6437 mv -f "$cache_file"$$ "$cache_file" ;; #(
6438 *)
6439 mv -f confcache "$cache_file" ;;
6440 esac
6441 fi
6442 fi
6443 else
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6445 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6446 fi
6447 fi
6448 rm -f confcache
6449
6450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6451 # Let make expand exec_prefix.
6452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6453
6454 DEFS=-DHAVE_CONFIG_H
6455
6456 ac_libobjs=
6457 ac_ltlibobjs=
6458 U=
6459 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6460 # 1. Remove the extension, and $U if already installed.
6461 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6462 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6463 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6464 # will be set to the directory where LIBOBJS objects are built.
6465 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6466 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6467 done
6468 LIBOBJS=$ac_libobjs
6469
6470 LTLIBOBJS=$ac_ltlibobjs
6471
6472
6473
6474 : "${CONFIG_STATUS=./config.status}"
6475 ac_write_fail=0
6476 ac_clean_files_save=$ac_clean_files
6477 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6479 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6480 as_write_fail=0
6481 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6482 #! $SHELL
6483 # Generated by $as_me.
6484 # Run this file to recreate the current configuration.
6485 # Compiler output produced by configure, useful for debugging
6486 # configure, is in config.log if it exists.
6487
6488 debug=false
6489 ac_cs_recheck=false
6490 ac_cs_silent=false
6491
6492 SHELL=\${CONFIG_SHELL-$SHELL}
6493 export SHELL
6494 _ASEOF
6495 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6496 ## -------------------- ##
6497 ## M4sh Initialization. ##
6498 ## -------------------- ##
6499
6500 # Be more Bourne compatible
6501 DUALCASE=1; export DUALCASE # for MKS sh
6502 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6503 then :
6504 emulate sh
6505 NULLCMD=:
6506 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6507 # is contrary to our usage. Disable this feature.
6508 alias -g '${1+"$@"}'='"$@"'
6509 setopt NO_GLOB_SUBST
6510 else case e in #(
6511 e) case `(set -o) 2>/dev/null` in #(
6512 *posix*) :
6513 set -o posix ;; #(
6514 *) :
6515 ;;
6516 esac ;;
6517 esac
6518 fi
6519
6520
6521
6522 # Reset variables that may have inherited troublesome values from
6523 # the environment.
6524
6525 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6526 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6527 # side effect of setting IFS to empty, thus disabling word splitting.)
6528 # Quoting is to prevent editors from complaining about space-tab.
6529 as_nl='
6530 '
6531 export as_nl
6532 IFS=" "" $as_nl"
6533
6534 PS1='$ '
6535 PS2='> '
6536 PS4='+ '
6537
6538 # Ensure predictable behavior from utilities with locale-dependent output.
6539 LC_ALL=C
6540 export LC_ALL
6541 LANGUAGE=C
6542 export LANGUAGE
6543
6544 # We cannot yet rely on "unset" to work, but we need these variables
6545 # to be unset--not just set to an empty or harmless value--now, to
6546 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6547 # also avoids known problems related to "unset" and subshell syntax
6548 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6549 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6550 do eval test \${$as_var+y} \
6551 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6552 done
6553
6554 # Ensure that fds 0, 1, and 2 are open.
6555 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6556 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6557 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
6558
6559 # The user is always right.
6560 if ${PATH_SEPARATOR+false} :; then
6561 PATH_SEPARATOR=:
6562 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6563 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6564 PATH_SEPARATOR=';'
6565 }
6566 fi
6567
6568
6569 # Find who we are. Look in the path if we contain no directory separator.
6570 as_myself=
6571 case $0 in #((
6572 *[\\/]* ) as_myself=$0 ;;
6573 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576 IFS=$as_save_IFS
6577 case $as_dir in #(((
6578 '') as_dir=./ ;;
6579 */) ;;
6580 *) as_dir=$as_dir/ ;;
6581 esac
6582 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6583 done
6584 IFS=$as_save_IFS
6585
6586 ;;
6587 esac
6588 # We did not find ourselves, most probably we were run as 'sh COMMAND'
6589 # in which case we are not to be found in the path.
6590 if test "x$as_myself" = x; then
6591 as_myself=$0
6592 fi
6593 if test ! -f "$as_myself"; then
6594 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6595 exit 1
6596 fi
6597
6598
6599
6600 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6601 # ----------------------------------------
6602 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6603 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6604 # script with STATUS, using 1 if that was 0.
6605 as_fn_error ()
6606 {
6607 as_status=$1; test $as_status -eq 0 && as_status=1
6608 if test "$4"; then
6609 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6611 fi
6612 printf "%s\n" "$as_me: error: $2" >&2
6613 as_fn_exit $as_status
6614 } # as_fn_error
6615
6616
6617 # as_fn_set_status STATUS
6618 # -----------------------
6619 # Set $? to STATUS, without forking.
6620 as_fn_set_status ()
6621 {
6622 return $1
6623 } # as_fn_set_status
6624
6625 # as_fn_exit STATUS
6626 # -----------------
6627 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6628 as_fn_exit ()
6629 {
6630 set +e
6631 as_fn_set_status $1
6632 exit $1
6633 } # as_fn_exit
6634
6635 # as_fn_unset VAR
6636 # ---------------
6637 # Portably unset VAR.
6638 as_fn_unset ()
6639 {
6640 { eval $1=; unset $1;}
6641 }
6642 as_unset=as_fn_unset
6643
6644 # as_fn_append VAR VALUE
6645 # ----------------------
6646 # Append the text in VALUE to the end of the definition contained in VAR. Take
6647 # advantage of any shell optimizations that allow amortized linear growth over
6648 # repeated appends, instead of the typical quadratic growth present in naive
6649 # implementations.
6650 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6651 then :
6652 eval 'as_fn_append ()
6653 {
6654 eval $1+=\$2
6655 }'
6656 else case e in #(
6657 e) as_fn_append ()
6658 {
6659 eval $1=\$$1\$2
6660 } ;;
6661 esac
6662 fi # as_fn_append
6663
6664 # as_fn_arith ARG...
6665 # ------------------
6666 # Perform arithmetic evaluation on the ARGs, and store the result in the
6667 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6668 # must be portable across $(()) and expr.
6669 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6670 then :
6671 eval 'as_fn_arith ()
6672 {
6673 as_val=$(( $* ))
6674 }'
6675 else case e in #(
6676 e) as_fn_arith ()
6677 {
6678 as_val=`expr "$@" || test $? -eq 1`
6679 } ;;
6680 esac
6681 fi # as_fn_arith
6682
6683
6684 if expr a : '\(a\)' >/dev/null 2>&1 &&
6685 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6686 as_expr=expr
6687 else
6688 as_expr=false
6689 fi
6690
6691 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6692 as_basename=basename
6693 else
6694 as_basename=false
6695 fi
6696
6697 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6698 as_dirname=dirname
6699 else
6700 as_dirname=false
6701 fi
6702
6703 as_me=`$as_basename -- "$0" ||
6704 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6705 X"$0" : 'X\(//\)$' \| \
6706 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6707 printf "%s\n" X/"$0" |
6708 sed '/^.*\/\([^/][^/]*\)\/*$/{
6709 s//\1/
6710 q
6711 }
6712 /^X\/\(\/\/\)$/{
6713 s//\1/
6714 q
6715 }
6716 /^X\/\(\/\).*/{
6717 s//\1/
6718 q
6719 }
6720 s/.*/./; q'`
6721
6722 # Avoid depending upon Character Ranges.
6723 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6724 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6725 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6726 as_cr_digits='0123456789'
6727 as_cr_alnum=$as_cr_Letters$as_cr_digits
6728
6729
6730 # Determine whether it's possible to make 'echo' print without a newline.
6731 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6732 # for compatibility with existing Makefiles.
6733 ECHO_C= ECHO_N= ECHO_T=
6734 case `echo -n x` in #(((((
6735 -n*)
6736 case `echo 'xy\c'` in
6737 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6738 xy) ECHO_C='\c';;
6739 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6740 ECHO_T=' ';;
6741 esac;;
6742 *)
6743 ECHO_N='-n';;
6744 esac
6745
6746 # For backward compatibility with old third-party macros, we provide
6747 # the shell variables $as_echo and $as_echo_n. New code should use
6748 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6749 as_echo='printf %s\n'
6750 as_echo_n='printf %s'
6751
6752 rm -f conf$$ conf$$.exe conf$$.file
6753 if test -d conf$$.dir; then
6754 rm -f conf$$.dir/conf$$.file
6755 else
6756 rm -f conf$$.dir
6757 mkdir conf$$.dir 2>/dev/null
6758 fi
6759 if (echo >conf$$.file) 2>/dev/null; then
6760 if ln -s conf$$.file conf$$ 2>/dev/null; then
6761 as_ln_s='ln -s'
6762 # ... but there are two gotchas:
6763 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
6764 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
6765 # In both cases, we have to default to 'cp -pR'.
6766 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6767 as_ln_s='cp -pR'
6768 elif ln conf$$.file conf$$ 2>/dev/null; then
6769 as_ln_s=ln
6770 else
6771 as_ln_s='cp -pR'
6772 fi
6773 else
6774 as_ln_s='cp -pR'
6775 fi
6776 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6777 rmdir conf$$.dir 2>/dev/null
6778
6779
6780 # as_fn_mkdir_p
6781 # -------------
6782 # Create "$as_dir" as a directory, including parents if necessary.
6783 as_fn_mkdir_p ()
6784 {
6785
6786 case $as_dir in #(
6787 -*) as_dir=./$as_dir;;
6788 esac
6789 test -d "$as_dir" || eval $as_mkdir_p || {
6790 as_dirs=
6791 while :; do
6792 case $as_dir in #(
6793 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6794 *) as_qdir=$as_dir;;
6795 esac
6796 as_dirs="'$as_qdir' $as_dirs"
6797 as_dir=`$as_dirname -- "$as_dir" ||
6798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6799 X"$as_dir" : 'X\(//\)[^/]' \| \
6800 X"$as_dir" : 'X\(//\)$' \| \
6801 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6802 printf "%s\n" X"$as_dir" |
6803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6804 s//\1/
6805 q
6806 }
6807 /^X\(\/\/\)[^/].*/{
6808 s//\1/
6809 q
6810 }
6811 /^X\(\/\/\)$/{
6812 s//\1/
6813 q
6814 }
6815 /^X\(\/\).*/{
6816 s//\1/
6817 q
6818 }
6819 s/.*/./; q'`
6820 test -d "$as_dir" && break
6821 done
6822 test -z "$as_dirs" || eval "mkdir $as_dirs"
6823 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6824
6825
6826 } # as_fn_mkdir_p
6827 if mkdir -p . 2>/dev/null; then
6828 as_mkdir_p='mkdir -p "$as_dir"'
6829 else
6830 test -d ./-p && rmdir ./-p
6831 as_mkdir_p=false
6832 fi
6833
6834
6835 # as_fn_executable_p FILE
6836 # -----------------------
6837 # Test if FILE is an executable regular file.
6838 as_fn_executable_p ()
6839 {
6840 test -f "$1" && test -x "$1"
6841 } # as_fn_executable_p
6842 as_test_x='test -x'
6843 as_executable_p=as_fn_executable_p
6844
6845 # Sed expression to map a string onto a valid CPP name.
6846 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6847 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
6848
6849 # Sed expression to map a string onto a valid variable name.
6850 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6851 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
6852
6853
6854 exec 6>&1
6855 ## ----------------------------------- ##
6856 ## Main body of $CONFIG_STATUS script. ##
6857 ## ----------------------------------- ##
6858 _ASEOF
6859 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6860
6861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6862 # Save the log message, to keep $0 and so on meaningful, and to
6863 # report actual input values of CONFIG_FILES etc. instead of their
6864 # values after options handling.
6865 ac_log="
6866 This file was extended by $as_me, which was
6867 generated by GNU Autoconf 2.72. Invocation command line was
6868
6869 CONFIG_FILES = $CONFIG_FILES
6870 CONFIG_HEADERS = $CONFIG_HEADERS
6871 CONFIG_LINKS = $CONFIG_LINKS
6872 CONFIG_COMMANDS = $CONFIG_COMMANDS
6873 $ $0 $@
6874
6875 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6876 "
6877
6878 _ACEOF
6879
6880 case $ac_config_files in *"
6881 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6882 esac
6883
6884 case $ac_config_headers in *"
6885 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6886 esac
6887
6888
6889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6890 # Files that config.status was made for.
6891 config_files="$ac_config_files"
6892 config_headers="$ac_config_headers"
6893
6894 _ACEOF
6895
6896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6897 ac_cs_usage="\
6898 '$as_me' instantiates files and other configuration actions
6899 from templates according to the current configuration. Unless the files
6900 and actions are specified as TAGs, all are instantiated by default.
6901
6902 Usage: $0 [OPTION]... [TAG]...
6903
6904 -h, --help print this help, then exit
6905 -V, --version print version number and configuration settings, then exit
6906 --config print configuration, then exit
6907 -q, --quiet, --silent
6908 do not print progress messages
6909 -d, --debug don't remove temporary files
6910 --recheck update $as_me by reconfiguring in the same conditions
6911 --file=FILE[:TEMPLATE]
6912 instantiate the configuration file FILE
6913 --header=FILE[:TEMPLATE]
6914 instantiate the configuration header FILE
6915
6916 Configuration files:
6917 $config_files
6918
6919 Configuration headers:
6920 $config_headers
6921
6922 Report bugs to the package provider."
6923
6924 _ACEOF
6925 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6926 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6928 ac_cs_config='$ac_cs_config_escaped'
6929 ac_cs_version="\\
6930 config.status
6931 configured by $0, generated by GNU Autoconf 2.72,
6932 with options \\"\$ac_cs_config\\"
6933
6934 Copyright (C) 2023 Free Software Foundation, Inc.
6935 This config.status script is free software; the Free Software Foundation
6936 gives unlimited permission to copy, distribute and modify it."
6937
6938 ac_pwd='$ac_pwd'
6939 srcdir='$srcdir'
6940 test -n "\$AWK" || AWK=awk
6941 _ACEOF
6942
6943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6944 # The default lists apply if the user does not specify any file.
6945 ac_need_defaults=:
6946 while test $# != 0
6947 do
6948 case $1 in
6949 --*=?*)
6950 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6951 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6952 ac_shift=:
6953 ;;
6954 --*=)
6955 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6956 ac_optarg=
6957 ac_shift=:
6958 ;;
6959 *)
6960 ac_option=$1
6961 ac_optarg=$2
6962 ac_shift=shift
6963 ;;
6964 esac
6965
6966 case $ac_option in
6967 # Handling of the options.
6968 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6969 ac_cs_recheck=: ;;
6970 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6971 printf "%s\n" "$ac_cs_version"; exit ;;
6972 --config | --confi | --conf | --con | --co | --c )
6973 printf "%s\n" "$ac_cs_config"; exit ;;
6974 --debug | --debu | --deb | --de | --d | -d )
6975 debug=: ;;
6976 --file | --fil | --fi | --f )
6977 $ac_shift
6978 case $ac_optarg in
6979 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6980 '') as_fn_error $? "missing file argument" ;;
6981 esac
6982 as_fn_append CONFIG_FILES " '$ac_optarg'"
6983 ac_need_defaults=false;;
6984 --header | --heade | --head | --hea )
6985 $ac_shift
6986 case $ac_optarg in
6987 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6988 esac
6989 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6990 ac_need_defaults=false;;
6991 --he | --h)
6992 # Conflict between --help and --header
6993 as_fn_error $? "ambiguous option: '$1'
6994 Try '$0 --help' for more information.";;
6995 --help | --hel | -h )
6996 printf "%s\n" "$ac_cs_usage"; exit ;;
6997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6998 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6999 ac_cs_silent=: ;;
7000
7001 # This is an error.
7002 -*) as_fn_error $? "unrecognized option: '$1'
7003 Try '$0 --help' for more information." ;;
7004
7005 *) as_fn_append ac_config_targets " $1"
7006 ac_need_defaults=false ;;
7007
7008 esac
7009 shift
7010 done
7011
7012 ac_configure_extra_args=
7013
7014 if $ac_cs_silent; then
7015 exec 6>/dev/null
7016 ac_configure_extra_args="$ac_configure_extra_args --silent"
7017 fi
7018
7019 _ACEOF
7020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7021 if \$ac_cs_recheck; then
7022 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7023 shift
7024 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7025 CONFIG_SHELL='$SHELL'
7026 export CONFIG_SHELL
7027 exec "\$@"
7028 fi
7029
7030 _ACEOF
7031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7032 exec 5>>config.log
7033 {
7034 echo
7035 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7036 ## Running $as_me. ##
7037 _ASBOX
7038 printf "%s\n" "$ac_log"
7039 } >&5
7040
7041 _ACEOF
7042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7043 _ACEOF
7044
7045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7046
7047 # Handling of arguments.
7048 for ac_config_target in $ac_config_targets
7049 do
7050 case $ac_config_target in
7051 "defs.h") CONFIG_HEADERS="$CONFIG_HEADERS defs.h:include/defs.h.in" ;;
7052 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7053 "ircbug") CONFIG_FILES="$CONFIG_FILES ircbug" ;;
7054
7055 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
7056 esac
7057 done
7058
7059
7060 # If the user did not use the arguments to specify the items to instantiate,
7061 # then the envvar interface is used. Set only those that are not.
7062 # We use the long form for the default assignment because of an extremely
7063 # bizarre bug on SunOS 4.1.3.
7064 if $ac_need_defaults; then
7065 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7066 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
7067 fi
7068
7069 # Have a temporary directory for convenience. Make it in the build tree
7070 # simply because there is no reason against having it here, and in addition,
7071 # creating and moving files from /tmp can sometimes cause problems.
7072 # Hook for its removal unless debugging.
7073 # Note that there is a small window in which the directory will not be cleaned:
7074 # after its creation but before its name has been assigned to '$tmp'.
7075 $debug ||
7076 {
7077 tmp= ac_tmp=
7078 trap 'exit_status=$?
7079 : "${ac_tmp:=$tmp}"
7080 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7081 ' 0
7082 trap 'as_fn_exit 1' 1 2 13 15
7083 }
7084 # Create a (secure) tmp directory for tmp files.
7085
7086 {
7087 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7088 test -d "$tmp"
7089 } ||
7090 {
7091 tmp=./conf$$-$RANDOM
7092 (umask 077 && mkdir "$tmp")
7093 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7094 ac_tmp=$tmp
7095
7096 # Set up the scripts for CONFIG_FILES section.
7097 # No need to generate them if there are no CONFIG_FILES.
7098 # This happens for instance with './config.status config.h'.
7099 if test -n "$CONFIG_FILES"; then
7100
7101
7102 ac_cr=`echo X | tr X '\015'`
7103 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7104 # But we know of no other shell where ac_cr would be empty at this
7105 # point, so we can use a bashism as a fallback.
7106 if test "x$ac_cr" = x; then
7107 eval ac_cr=\$\'\\r\'
7108 fi
7109 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7110 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7111 ac_cs_awk_cr='\\r'
7112 else
7113 ac_cs_awk_cr=$ac_cr
7114 fi
7115
7116 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7117 _ACEOF
7118
7119
7120 {
7121 echo "cat >conf$$subs.awk <<_ACEOF" &&
7122 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7123 echo "_ACEOF"
7124 } >conf$$subs.sh ||
7125 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7126 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7127 ac_delim='%!_!# '
7128 for ac_last_try in false false false false false :; do
7129 . ./conf$$subs.sh ||
7130 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7131
7132 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7133 if test $ac_delim_n = $ac_delim_num; then
7134 break
7135 elif $ac_last_try; then
7136 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7137 else
7138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7139 fi
7140 done
7141 rm -f conf$$subs.sh
7142
7143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7144 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7145 _ACEOF
7146 sed -n '
7147 h
7148 s/^/S["/; s/!.*/"]=/
7149 p
7150 g
7151 s/^[^!]*!//
7152 :repl
7153 t repl
7154 s/'"$ac_delim"'$//
7155 t delim
7156 :nl
7157 h
7158 s/\(.\{148\}\)..*/\1/
7159 t more1
7160 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7161 p
7162 n
7163 b repl
7164 :more1
7165 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7166 p
7167 g
7168 s/.\{148\}//
7169 t nl
7170 :delim
7171 h
7172 s/\(.\{148\}\)..*/\1/
7173 t more2
7174 s/["\\]/\\&/g; s/^/"/; s/$/"/
7175 p
7176 b
7177 :more2
7178 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7179 p
7180 g
7181 s/.\{148\}//
7182 t delim
7183 ' <conf$$subs.awk | sed '
7184 /^[^""]/{
7185 N
7186 s/\n//
7187 }
7188 ' >>$CONFIG_STATUS || ac_write_fail=1
7189 rm -f conf$$subs.awk
7190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7191 _ACAWK
7192 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7193 for (key in S) S_is_set[key] = 1
7194 FS = ""
7195
7196 }
7197 {
7198 line = $ 0
7199 nfields = split(line, field, "@")
7200 substed = 0
7201 len = length(field[1])
7202 for (i = 2; i < nfields; i++) {
7203 key = field[i]
7204 keylen = length(key)
7205 if (S_is_set[key]) {
7206 value = S[key]
7207 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7208 len += length(value) + length(field[++i])
7209 substed = 1
7210 } else
7211 len += 1 + keylen
7212 }
7213
7214 print line
7215 }
7216
7217 _ACAWK
7218 _ACEOF
7219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7220 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7221 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7222 else
7223 cat
7224 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7225 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7226 _ACEOF
7227
7228 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7229 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7230 # trailing colons and then remove the whole line if VPATH becomes empty
7231 # (actually we leave an empty line to preserve line numbers).
7232 if test "x$srcdir" = x.; then
7233 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7234 h
7235 s///
7236 s/^/:/
7237 s/[ ]*$/:/
7238 s/:\$(srcdir):/:/g
7239 s/:\${srcdir}:/:/g
7240 s/:@srcdir@:/:/g
7241 s/^:*//
7242 s/:*$//
7243 x
7244 s/\(=[ ]*\).*/\1/
7245 G
7246 s/\n//
7247 s/^[^=]*=[ ]*$//
7248 }'
7249 fi
7250
7251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7252 fi # test -n "$CONFIG_FILES"
7253
7254 # Set up the scripts for CONFIG_HEADERS section.
7255 # No need to generate them if there are no CONFIG_HEADERS.
7256 # This happens for instance with './config.status Makefile'.
7257 if test -n "$CONFIG_HEADERS"; then
7258 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7259 BEGIN {
7260 _ACEOF
7261
7262 # Transform confdefs.h into an awk script 'defines.awk', embedded as
7263 # here-document in config.status, that substitutes the proper values into
7264 # config.h.in to produce config.h.
7265
7266 # Create a delimiter string that does not exist in confdefs.h, to ease
7267 # handling of long lines.
7268 ac_delim='%!_!# '
7269 for ac_last_try in false false :; do
7270 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7271 if test -z "$ac_tt"; then
7272 break
7273 elif $ac_last_try; then
7274 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7275 else
7276 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7277 fi
7278 done
7279
7280 # For the awk script, D is an array of macro values keyed by name,
7281 # likewise P contains macro parameters if any. Preserve backslash
7282 # newline sequences.
7283
7284 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7285 sed -n '
7286 s/.\{148\}/&'"$ac_delim"'/g
7287 t rset
7288 :rset
7289 s/^[ ]*#[ ]*define[ ][ ]*/ /
7290 t def
7291 d
7292 :def
7293 s/\\$//
7294 t bsnl
7295 s/["\\]/\\&/g
7296 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7297 D["\1"]=" \3"/p
7298 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7299 d
7300 :bsnl
7301 s/["\\]/\\&/g
7302 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7303 D["\1"]=" \3\\\\\\n"\\/p
7304 t cont
7305 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7306 t cont
7307 d
7308 :cont
7309 n
7310 s/.\{148\}/&'"$ac_delim"'/g
7311 t clear
7312 :clear
7313 s/\\$//
7314 t bsnlc
7315 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7316 d
7317 :bsnlc
7318 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7319 b cont
7320 ' <confdefs.h | sed '
7321 s/'"$ac_delim"'/"\\\
7322 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7323
7324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7325 for (key in D) D_is_set[key] = 1
7326 FS = ""
7327 }
7328 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7329 line = \$ 0
7330 split(line, arg, " ")
7331 if (arg[1] == "#") {
7332 defundef = arg[2]
7333 mac1 = arg[3]
7334 } else {
7335 defundef = substr(arg[1], 2)
7336 mac1 = arg[2]
7337 }
7338 split(mac1, mac2, "(") #)
7339 macro = mac2[1]
7340 prefix = substr(line, 1, index(line, defundef) - 1)
7341 if (D_is_set[macro]) {
7342 # Preserve the white space surrounding the "#".
7343 print prefix "define", macro P[macro] D[macro]
7344 next
7345 } else {
7346 # Replace #undef with comments. This is necessary, for example,
7347 # in the case of _POSIX_SOURCE, which is predefined and required
7348 # on some systems where configure will not decide to define it.
7349 if (defundef == "undef") {
7350 print "/*", prefix defundef, macro, "*/"
7351 next
7352 }
7353 }
7354 }
7355 { print }
7356 _ACAWK
7357 _ACEOF
7358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7359 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7360 fi # test -n "$CONFIG_HEADERS"
7361
7362
7363 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7364 shift
7365 for ac_tag
7366 do
7367 case $ac_tag in
7368 :[FHLC]) ac_mode=$ac_tag; continue;;
7369 esac
7370 case $ac_mode$ac_tag in
7371 :[FHL]*:*);;
7372 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
7373 :[FH]-) ac_tag=-:-;;
7374 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7375 esac
7376 ac_save_IFS=$IFS
7377 IFS=:
7378 set x $ac_tag
7379 IFS=$ac_save_IFS
7380 shift
7381 ac_file=$1
7382 shift
7383
7384 case $ac_mode in
7385 :L) ac_source=$1;;
7386 :[FH])
7387 ac_file_inputs=
7388 for ac_f
7389 do
7390 case $ac_f in
7391 -) ac_f="$ac_tmp/stdin";;
7392 *) # Look for the file first in the build tree, then in the source tree
7393 # (if the path is not absolute). The absolute path cannot be DOS-style,
7394 # because $ac_f cannot contain ':'.
7395 test -f "$ac_f" ||
7396 case $ac_f in
7397 [\\/$]*) false;;
7398 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7399 esac ||
7400 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
7401 esac
7402 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7403 as_fn_append ac_file_inputs " '$ac_f'"
7404 done
7405
7406 # Let's still pretend it is 'configure' which instantiates (i.e., don't
7407 # use $as_me), people would be surprised to read:
7408 # /* config.h. Generated by config.status. */
7409 configure_input='Generated from '`
7410 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7411 `' by configure.'
7412 if test x"$ac_file" != x-; then
7413 configure_input="$ac_file. $configure_input"
7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7415 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7416 fi
7417 # Neutralize special characters interpreted by sed in replacement strings.
7418 case $configure_input in #(
7419 *\&* | *\|* | *\\* )
7420 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7421 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7422 *) ac_sed_conf_input=$configure_input;;
7423 esac
7424
7425 case $ac_tag in
7426 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7428 esac
7429 ;;
7430 esac
7431
7432 ac_dir=`$as_dirname -- "$ac_file" ||
7433 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7434 X"$ac_file" : 'X\(//\)[^/]' \| \
7435 X"$ac_file" : 'X\(//\)$' \| \
7436 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7437 printf "%s\n" X"$ac_file" |
7438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7439 s//\1/
7440 q
7441 }
7442 /^X\(\/\/\)[^/].*/{
7443 s//\1/
7444 q
7445 }
7446 /^X\(\/\/\)$/{
7447 s//\1/
7448 q
7449 }
7450 /^X\(\/\).*/{
7451 s//\1/
7452 q
7453 }
7454 s/.*/./; q'`
7455 as_dir="$ac_dir"; as_fn_mkdir_p
7456 ac_builddir=.
7457
7458 case "$ac_dir" in
7459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7460 *)
7461 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7462 # A ".." for each directory in $ac_dir_suffix.
7463 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7464 case $ac_top_builddir_sub in
7465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7467 esac ;;
7468 esac
7469 ac_abs_top_builddir=$ac_pwd
7470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7471 # for backward compatibility:
7472 ac_top_builddir=$ac_top_build_prefix
7473
7474 case $srcdir in
7475 .) # We are building in place.
7476 ac_srcdir=.
7477 ac_top_srcdir=$ac_top_builddir_sub
7478 ac_abs_top_srcdir=$ac_pwd ;;
7479 [\\/]* | ?:[\\/]* ) # Absolute name.
7480 ac_srcdir=$srcdir$ac_dir_suffix;
7481 ac_top_srcdir=$srcdir
7482 ac_abs_top_srcdir=$srcdir ;;
7483 *) # Relative name.
7484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7485 ac_top_srcdir=$ac_top_build_prefix$srcdir
7486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7487 esac
7488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7489
7490
7491 case $ac_mode in
7492 :F)
7493 #
7494 # CONFIG_FILE
7495 #
7496
7497 _ACEOF
7498
7499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7500 # If the template does not know about datarootdir, expand it.
7501 # FIXME: This hack should be removed a few years after 2.60.
7502 ac_datarootdir_hack=; ac_datarootdir_seen=
7503 ac_sed_dataroot='
7504 /datarootdir/ {
7505 p
7506 q
7507 }
7508 /@datadir@/p
7509 /@docdir@/p
7510 /@infodir@/p
7511 /@localedir@/p
7512 /@mandir@/p'
7513 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7514 *datarootdir*) ac_datarootdir_seen=yes;;
7515 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7517 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7518 _ACEOF
7519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7520 ac_datarootdir_hack='
7521 s&@datadir@&$datadir&g
7522 s&@docdir@&$docdir&g
7523 s&@infodir@&$infodir&g
7524 s&@localedir@&$localedir&g
7525 s&@mandir@&$mandir&g
7526 s&\\\${datarootdir}&$datarootdir&g' ;;
7527 esac
7528 _ACEOF
7529
7530 # Neutralize VPATH when '$srcdir' = '.'.
7531 # Shell code in configure.ac might set extrasub.
7532 # FIXME: do we really want to maintain this feature?
7533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7534 ac_sed_extra="$ac_vpsub
7535 $extrasub
7536 _ACEOF
7537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7538 :t
7539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7540 s|@configure_input@|$ac_sed_conf_input|;t t
7541 s&@top_builddir@&$ac_top_builddir_sub&;t t
7542 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7543 s&@srcdir@&$ac_srcdir&;t t
7544 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7545 s&@top_srcdir@&$ac_top_srcdir&;t t
7546 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7547 s&@builddir@&$ac_builddir&;t t
7548 s&@abs_builddir@&$ac_abs_builddir&;t t
7549 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7550 $ac_datarootdir_hack
7551 "
7552 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7553 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7554
7555 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7556 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7557 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7558 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
7560 which seems to be undefined. Please make sure it is defined" >&5
7561 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
7562 which seems to be undefined. Please make sure it is defined" >&2;}
7563
7564 rm -f "$ac_tmp/stdin"
7565 case $ac_file in
7566 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7567 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7568 esac \
7569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7570 ;;
7571 :H)
7572 #
7573 # CONFIG_HEADER
7574 #
7575 if test x"$ac_file" != x-; then
7576 {
7577 printf "%s\n" "/* $configure_input */" >&1 \
7578 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7579 } >"$ac_tmp/config.h" \
7580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7581 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7583 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
7584 else
7585 rm -f "$ac_file"
7586 mv "$ac_tmp/config.h" "$ac_file" \
7587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7588 fi
7589 else
7590 printf "%s\n" "/* $configure_input */" >&1 \
7591 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7592 || as_fn_error $? "could not create -" "$LINENO" 5
7593 fi
7594 ;;
7595
7596
7597 esac
7598
7599 done # for ac_tag
7600
7601
7602 as_fn_exit 0
7603 _ACEOF
7604 ac_clean_files=$ac_clean_files_save
7605
7606 test $ac_write_fail = 0 ||
7607 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7608
7609
7610 # configure is writing to config.log, and then calls config.status.
7611 # config.status does its own redirection, appending to config.log.
7612 # Unfortunately, on DOS this fails, as config.log is still kept open
7613 # by configure, so config.status won't be able to write to it; its
7614 # output is simply discarded. So we exec the FD to /dev/null,
7615 # effectively closing config.log, so it can be properly (re)opened and
7616 # appended to by config.status. When coming back to configure, we
7617 # need to make the FD available again.
7618 if test "$no_create" != yes; then
7619 ac_cs_success=:
7620 ac_config_status_args=
7621 test "$silent" = yes &&
7622 ac_config_status_args="$ac_config_status_args --quiet"
7623 exec 5>/dev/null
7624 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7625 exec 5>>config.log
7626 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7627 # would make configure fail if this is the last instruction.
7628 $ac_cs_success || as_fn_exit 1
7629 fi
7630 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7632 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7633 fi
7634
7635
7636 if test ! -f config.h; then
7637 cp ${srcdir}/include/config.h.dist config.h
7638 fi
7639
7640 echo
7641 echo well there we are, you now might want to look in config.h and
7642 echo see if there is anything you might want to tune, else you can
7643 echo just run a make here.. good luck!
7644 echo
7645
7646