2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for unrealircd 4.2.4.1.
5 # Report bugs to <https://bugs.unrealircd.org/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://bugs.unrealircd.org/ about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir -p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
581 PACKAGE_NAME
='unrealircd'
582 PACKAGE_TARNAME
='unrealircd'
583 PACKAGE_VERSION
='4.2.4.1'
584 PACKAGE_STRING
='unrealircd 4.2.4.1'
585 PACKAGE_BUGREPORT
='https://bugs.unrealircd.org/'
586 PACKAGE_URL
='https://unrealircd.org/'
588 ac_unique_file
="src/ircd.c"
589 # Factoring default headers for most tests.
590 ac_includes_default
="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 ac_subst_vars
='LTLIBOBJS
722 program_transform_name
735 enable_option_checking
757 with_operoverride_verify
758 with_disable_extendedban_stacking
765 enable_dynamic_linking
770 ac_precious_vars
='build_alias
792 # Initialize some variables set by options.
794 ac_init_version
=false
795 ac_unrecognized_opts
=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
806 program_transform_name
=s
,x
,x
,
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir
='${exec_prefix}/bin'
821 sbindir
='${exec_prefix}/sbin'
822 libexecdir
='${exec_prefix}/libexec'
823 datarootdir
='${prefix}/share'
824 datadir
='${datarootdir}'
825 sysconfdir
='${prefix}/etc'
826 sharedstatedir
='${prefix}/com'
827 localstatedir
='${prefix}/var'
828 runstatedir
='${localstatedir}/run'
829 includedir
='${prefix}/include'
830 oldincludedir
='/usr/include'
831 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir
='${datarootdir}/info'
837 libdir
='${exec_prefix}/lib'
838 localedir
='${datarootdir}/locale'
839 mandir
='${datarootdir}/man'
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\
$ac_option
853 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 # Accept the important Cygnus configure options, so we can diagnose typos.
860 case $ac_dashdash$ac_option in
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 -build | --build | --buil | --bui | --bu)
870 ac_prev
=build_alias
;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias
=$ac_optarg ;;
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev
=cache_file
;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file
=$ac_optarg ;;
882 cache_file
=config.cache
;;
884 -datadir | --datadir | --datadi | --datad)
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir
=$ac_optarg ;;
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev
=datarootdir
;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir
=$ac_optarg ;;
896 -disable-* | --disable-*)
897 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
900 as_fn_error $?
"invalid feature name: $ac_useropt"
901 ac_useropt_orig
=$ac_useropt
902 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
907 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep
=', ';;
910 eval enable_
$ac_useropt=no
;;
912 -docdir | --docdir | --docdi | --doc | --do)
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 -enable-* | --enable-*)
923 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
926 as_fn_error $?
"invalid feature name: $ac_useropt"
927 ac_useropt_orig
=$ac_useropt
928 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
933 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep
=', ';;
936 eval enable_
$ac_useropt=\
$ac_optarg ;;
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev
=exec_prefix
;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix
=$ac_optarg ;;
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
951 -help | --help | --hel | --he | -h)
953 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
954 ac_init_help
=recursive
;;
955 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
956 ac_init_help
=short
;;
958 -host | --host | --hos | --ho)
959 ac_prev
=host_alias
;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias
=$ac_optarg ;;
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967 htmldir
=$ac_optarg ;;
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev
=includedir
;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir
=$ac_optarg ;;
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir
=$ac_optarg ;;
981 -libdir | --libdir | --libdi | --libd)
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev
=libexecdir
;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir
=$ac_optarg ;;
993 -localedir | --localedir | --localedi | --localed | --locale)
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir
=$ac_optarg ;;
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev
=localstatedir
;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir
=$ac_optarg ;;
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir
=$ac_optarg ;;
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev
=oldincludedir
;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir
=$ac_optarg ;;
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix
=$ac_optarg ;;
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev
=program_prefix
;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix
=$ac_optarg ;;
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev
=program_suffix
;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix
=$ac_optarg ;;
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev
=program_transform_name
;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name
=$ac_optarg ;;
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir
=$ac_optarg ;;
1072 -psdir | --psdir | --psdi | --psd | --ps)
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1081 -runstatedir | --runstatedir | --runstatedi | --runstated \
1082 | --runstate | --runstat | --runsta | --runst | --runs \
1083 | --run | --ru | --r)
1084 ac_prev
=runstatedir
;;
1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1087 | --run=* | --ru=* | --r=*)
1088 runstatedir
=$ac_optarg ;;
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 sbindir
=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1100 ac_prev
=sharedstatedir
;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 sharedstatedir
=$ac_optarg ;;
1107 -site | --site | --sit)
1109 -site=* | --site=* | --sit=*)
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir
=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev
=sysconfdir
;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir
=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev
=target_alias
;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias
=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version
=: ;;
1136 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1139 as_fn_error $?
"invalid package name: $ac_useropt"
1140 ac_useropt_orig
=$ac_useropt
1141 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1146 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep
=', ';;
1149 eval with_
$ac_useropt=\
$ac_optarg ;;
1151 -without-* | --without-*)
1152 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1155 as_fn_error $?
"invalid package name: $ac_useropt"
1156 ac_useropt_orig
=$ac_useropt
1157 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1162 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep
=', ';;
1165 eval with_
$ac_useropt=no
;;
1168 # Obsolete; use --with-x.
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev
=x_includes
;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes
=$ac_optarg ;;
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev
=x_libraries
;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries
=$ac_optarg ;;
1185 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1190 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1196 eval $ac_envvar=\
$ac_optarg
1197 export $ac_envvar ;;
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210 if test -n "$ac_prev"; then
1211 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $?
"missing argument to $ac_option"
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1218 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 # Check all directory arguments for consistency.
1224 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir runstatedir
1229 eval ac_val
=\$
$ac_var
1230 # Remove trailing slashes.
1233 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\
$ac_val;;
1236 # Be sure to have absolute directory names.
1238 [\\/$
]* | ?
:[\\/]* ) continue;;
1239 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1241 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1249 target
=$target_alias
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x
; then
1253 if test "x$build_alias" = x
; then
1254 cross_compiling
=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1261 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1263 test "$silent" = yes && exec 6>/dev
/null
1266 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di
=`ls -di .` &&
1268 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $?
"working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $?
"pwd does not report name of working directory"
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted
=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir
=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1306 ac_srcdir_defaulted
=no
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1310 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1312 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1324 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 for ac_var
in $ac_precious_vars; do
1327 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1328 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1329 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1330 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1334 # Report the --help message.
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1340 \`configure' configures unrealircd 4.2.4.1 to adapt to many kinds of systems.
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1347 Defaults for the options are specified in brackets.
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1371 For better control, use the options below.
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/unrealircd]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1399 --build=BUILD configure
for building on BUILD
[guessed
]
1400 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1404 if test -n "$ac_init_help"; then
1405 case $ac_init_help in
1406 short
| recursive
) echo "Configuration of unrealircd 4.2.4.1:";;
1411 --disable-option-checking ignore unrecognized
--enable/--with options
1412 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1413 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1414 --enable-hardening Enable compiler and linker options to frustrate
1415 memory corruption exploits
[yes]
1416 --disable-prefixaq Disable chanadmin
(+a
) and chanowner
(+q
) prefixes
1417 --enable-ssl= enable ssl will check
/usr
/local
/opt
/openssl
1418 /usr
/local
/ssl
/usr
/lib
/ssl
/usr
/ssl
/usr
/pkg
1419 /usr
/sfw
/usr
/local /usr
1420 --disable-dynamic-linking
1421 Make the IRCd statically link with shared objects
1422 rather than dynamically
(noone knows
if disabling
1423 dynamic linking actually does anything or not
)
1424 --enable-werror Turn compilation warnings into errors
(-Werror)
1425 --enable-asan Enable address sanitizer
, not recommended
for
1427 --enable-libcurl=DIR
enable libcurl
(remote include
) support
1430 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1431 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1432 --with-nick-history=length
1433 Specify the length of the nickname
history
1434 --with-sendq=maxsendq Specify the max sendq
for the server
1435 --with-permissions=permissions
1436 Specify the default permissions
for configuration
1438 --with-bindir=path Specify the directory
for the unrealircd binary
1439 --with-scriptdir=path Specify the directory
for the unrealircd start
-stop
1441 --with-confdir=path Specify the directory where configuration files are
1443 --with-modulesdir=path Specify the directory
for loadable modules
1444 --with-logdir=path Specify the directory where log files are stored
1445 --with-cachedir=path Specify the directory where cached files are stored
1446 --with-tmpdir=path Specify the directory where private temporary files
1447 are stored. Should not be readable or writable by
1448 others
, so not
/tmp
!!
1449 --with-datadir=path Specify the directory where permanent data is stored
1450 --with-docdir=path Specify the directory where documentation is stored
1451 --with-pidfile=path Specify the path of the pid
file
1452 --with-privatelibdir=path
1453 Specify the directory where private libraries are
1454 stored. Disable when building a package
for a distro
1455 --with-maxconnections=size
1456 Specify the max
file descriptors to use
1457 --with-showlistmodes Specify whether modes are shown
in /list
1458 --with-shunnotices Notify a user when he
/she is no longer shunned
1459 --with-no-operoverride Disable OperOverride
1460 --with-disableusermod Disable
/set* and
/chg
*
1461 --with-operoverride-verify
1462 Require opers to invite themselves to
+s
/+p channels
1463 --with-disable-extendedban-stacking
1464 Disable extended ban stacking
1465 --without-tre Do not use the old deprecated TRE regex library
1466 --with-system-tre Use the system tre package instead of bundled
,
1467 discovered using pkg
-config
1468 --with-system-pcre2 Use the system pcre2 package instead of bundled
,
1469 discovered using pkg
-config
1470 --without-system-argon2 Use bundled version instead of system argon2
1471 library. Normally autodetected via pkg
-config
1472 --without-system-cares Use bundled version instead of system c
-ares.
1473 Normally autodetected via pkg
-config.
1475 Some influential environment variables
:
1476 CC C compiler
command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1479 nonstandard directory
<lib dir
>
1480 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1481 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1482 you have headers
in a nonstandard directory
<include dir
>
1484 PKG_CONFIG path to pkg
-config utility
1486 directories to add to pkg
-config's search path
1488 path overriding pkg-config's built
-in search path
1489 TRE_CFLAGS C compiler flags
for TRE
, overriding pkg
-config
1490 TRE_LIBS linker flags
for TRE
, overriding pkg
-config
1492 C compiler flags
for PCRE2
, overriding pkg
-config
1493 PCRE2_LIBS linker flags
for PCRE2
, overriding pkg
-config
1495 C compiler flags
for ARGON2
, overriding pkg
-config
1496 ARGON2_LIBS linker flags
for ARGON2
, overriding pkg
-config
1498 C compiler flags
for CARES
, overriding pkg
-config
1499 CARES_LIBS linker flags
for CARES
, overriding pkg
-config
1501 Use these variables to override the choices made by
`configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 Report bugs to <https://bugs.unrealircd.org/>.
1505 unrealircd home page: <https://unrealircd.org/>.
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" ||
1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1535 .) # We are building in place.
1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
1540 ac_srcdir=$srcdir$ac_dir_suffix;
1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1568 unrealircd configure 4.2.4.1
1569 generated by GNU Autoconf 2.69
1571 Copyright (C) 2012 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1578 ## ------------------------ ##
1579 ## Autoconf initialization. ##
1580 ## ------------------------ ##
1582 # ac_fn_c_try_compile LINENO
1583 # --------------------------
1584 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_compile ()
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext
1589 if { { ac_try="$ac_compile"
1591 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1592 *) ac_try_echo
=$ac_try;;
1594 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_compile") 2>conftest.err
1598 if test -s conftest.err
; then
1599 grep -v '^ *+' conftest.err
>conftest.er1
1600 cat conftest.er1
>&5
1601 mv -f conftest.er1 conftest.err
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest.
$ac_objext; then :
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.
$ac_ext >&5
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status
$ac_retval
1618 } # ac_fn_c_try_compile
1620 # ac_fn_c_try_link LINENO
1621 # -----------------------
1622 # Try to link conftest.$ac_ext, and return whether this succeeded.
1625 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1626 rm -f conftest.
$ac_objext conftest
$ac_exeext
1627 if { { ac_try
="$ac_link"
1629 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_link") 2>conftest.err
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest$ac_exeext && {
1646 test "$cross_compiling" = yes ||
1647 test -x conftest$ac_exeext
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1656 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1657 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1658 # interfere with the next link command; also delete a directory that is
1659 # left behind by Apple's compiler. We do this before executing the actions.
1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1664 } # ac_fn_c_try_link
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669 # that executables *can* be run.
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_link"
1675 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1676 *) ac_try_echo
=$ac_try;;
1678 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>&5
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }; then :
1696 $as_echo "$as_me: program exited with status $ac_status" >&5
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1700 ac_retval=$ac_status
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1708 # ac_fn_c_try_cpp LINENO
1709 # ----------------------
1710 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_cpp conftest.$ac_ext"
1716 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1717 *) ac_try_echo
=$ac_try;;
1719 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723 if test -s conftest.err
; then
1724 grep -v '^ *+' conftest.err
>conftest.er1
1725 cat conftest.er1
>&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } > conftest.i
&& {
1730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.
$ac_ext >&5
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status
$ac_retval
1745 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1746 # -------------------------------------------------------
1747 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1748 # the include files in INCLUDES and setting the cache variable VAR
1750 ac_fn_c_check_header_mongrel
()
1752 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1753 if eval \
${$3+:} false
; then :
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \
${$3+:} false
; then :
1757 $as_echo_n "(cached) " >&6
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1763 # Is the header compilable?
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1765 $as_echo_n "checking $2 usability... " >&6; }
1766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1771 if ac_fn_c_try_compile
"$LINENO"; then :
1772 ac_header_compiler
=yes
1774 ac_header_compiler
=no
1776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1778 $as_echo "$ac_header_compiler" >&6; }
1780 # Is the header present?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1782 $as_echo_n "checking $2 presence... " >&6; }
1783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1787 if ac_fn_c_try_cpp
"$LINENO"; then :
1788 ac_header_preproc
=yes
1790 ac_header_preproc
=no
1792 rm -f conftest.err conftest.i conftest.
$ac_ext
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1794 $as_echo "$ac_header_preproc" >&6; }
1796 # So? What about this header?
1797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1800 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1802 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1806 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1808 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1810 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1812 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1814 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 ( $as_echo "## ------------------------------------------- ##
1816 ## Report this to https://bugs.unrealircd.org/ ##
1817 ## ------------------------------------------- ##"
1818 ) | sed "s/^/$as_me: WARNING: /" >&2
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \
${$3+:} false
; then :
1824 $as_echo_n "(cached) " >&6
1826 eval "$3=\$ac_header_compiler"
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 } # ac_fn_c_check_header_mongrel
1836 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1837 # -------------------------------------------------------
1838 # Tests whether HEADER exists and can be compiled using the include files in
1839 # INCLUDES, setting the cache variable VAR accordingly.
1840 ac_fn_c_check_header_compile
()
1842 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \
${$3+:} false
; then :
1846 $as_echo_n "(cached) " >&6
1848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1853 if ac_fn_c_try_compile
"$LINENO"; then :
1858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865 } # ac_fn_c_check_header_compile
1867 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1868 # -------------------------------------------
1869 # Tests whether TYPE exists after having included INCLUDES, setting cache
1870 # variable VAR accordingly.
1871 ac_fn_c_check_type
()
1873 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \
${$3+:} false
; then :
1877 $as_echo_n "(cached) " >&6
1880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1892 if ac_fn_c_try_compile
"$LINENO"; then :
1893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1905 if ac_fn_c_try_compile
"$LINENO"; then :
1910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 } # ac_fn_c_check_type
1921 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1922 # --------------------------------------------
1923 # Tries to find the compile-time value of EXPR in a program that includes
1924 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1926 ac_fn_c_compute_int
()
1928 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1929 if test "$cross_compiling" = yes; then
1930 # Depending upon the size, compute the lo and hi bounds.
1931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1937 static int test_array [1 - 2 * !(($2) >= 0)];
1939 return test_array [0];
1945 if ac_fn_c_try_compile
"$LINENO"; then :
1948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1954 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1956 return test_array [0];
1962 if ac_fn_c_try_compile
"$LINENO"; then :
1963 ac_hi
=$ac_mid; break
1965 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1966 if test $ac_lo -le $ac_mid; then
1970 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1981 static int test_array [1 - 2 * !(($2) < 0)];
1983 return test_array [0];
1989 if ac_fn_c_try_compile
"$LINENO"; then :
1992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1998 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2000 return test_array [0];
2006 if ac_fn_c_try_compile
"$LINENO"; then :
2007 ac_lo
=$ac_mid; break
2009 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2010 if test $ac_mid -le $ac_hi; then
2014 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2024 # Binary search between lo and hi bounds.
2025 while test "x$ac_lo" != "x$ac_hi"; do
2026 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2035 return test_array [0];
2041 if ac_fn_c_try_compile
"$LINENO"; then :
2044 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2049 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2056 static long int longval () { return $2; }
2057 static unsigned long int ulongval () { return $2; }
2064 FILE *f = fopen ("conftest.val", "w");
2069 long int i = longval ();
2072 fprintf (f, "%ld", i);
2076 unsigned long int i = ulongval ();
2079 fprintf (f, "%lu", i);
2081 /* Do not output a trailing newline, as this causes \r\n confusion
2082 on some platforms. */
2083 return ferror (f) || fclose (f) != 0;
2089 if ac_fn_c_try_run
"$LINENO"; then :
2090 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2094 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2095 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status
$ac_retval
2102 } # ac_fn_c_compute_int
2104 # ac_fn_c_check_func LINENO FUNC VAR
2105 # ----------------------------------
2106 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2107 ac_fn_c_check_func
()
2109 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \
${$3+:} false
; then :
2113 $as_echo_n "(cached) " >&6
2115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2119 #define $2 innocuous_$2
2121 /* System header to define __stub macros and hopefully few prototypes,
2122 which can conflict with char $2 (); below.
2123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2124 <limits.h> exists even on freestanding compilers. */
2127 # include <limits.h>
2129 # include <assert.h>
2134 /* Override any GCC internal prototype to avoid an error.
2135 Use char because int might match the return type of a GCC
2136 builtin and then its argument prototype would still apply. */
2141 /* The GNU C library defines this for functions which it implements
2142 to always fail with ENOSYS. Some functions are actually named
2143 something starting with __ and the normal name is an alias. */
2144 #if defined __stub_$2 || defined __stub___$2
2156 if ac_fn_c_try_link
"$LINENO"; then :
2161 rm -f core conftest.err conftest.
$ac_objext \
2162 conftest
$ac_exeext conftest.
$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 } # ac_fn_c_check_func
2170 cat >config.log
<<_ACEOF
2171 This file contains any messages produced by compilers while
2172 running configure, to aid debugging if configure makes a mistake.
2174 It was created by unrealircd $as_me 4.2.4.1, which was
2175 generated by GNU Autoconf 2.69. Invocation command line was
2187 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2188 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2189 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2190 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2191 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2193 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2194 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2196 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2197 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2198 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2199 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2200 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2201 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2202 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2210 test -z "$as_dir" && as_dir
=.
2211 $as_echo "PATH: $as_dir"
2227 # Keep a trace of the command line.
2228 # Strip out --no-create and --no-recursion so they do not pile up.
2229 # Strip out --silent because we don't want to record it for future runs.
2230 # Also quote any args containing shell meta-characters.
2231 # Make two passes to allow for proper duplicate-argument suppression.
2235 ac_must_keep_next
=false
2241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2243 | -silent | --silent | --silen | --sile | --sil)
2246 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2249 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2251 as_fn_append ac_configure_args1
" '$ac_arg'"
2252 if test $ac_must_keep_next = true
; then
2253 ac_must_keep_next
=false
# Got value, back to normal.
2256 *=* | --config-cache | -C | -disable-* | --disable-* \
2257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2259 | -with-* | --with-* | -without-* | --without-* | --x)
2260 case "$ac_configure_args0 " in
2261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2264 -* ) ac_must_keep_next
=true
;;
2267 as_fn_append ac_configure_args
" '$ac_arg'"
2272 { ac_configure_args0
=; unset ac_configure_args0
;}
2273 { ac_configure_args1
=; unset ac_configure_args1
;}
2275 # When interrupted or exit'd, cleanup temporary files, and complete
2276 # config.log. We remove comments because anyway the quotes in there
2277 # would cause problems or look ugly.
2278 # WARNING: Use '\'' to represent an apostrophe within the trap.
2279 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2280 trap 'exit_status=$?
2281 # Save into config.log some information that might help in debugging.
2285 $as_echo "## ---------------- ##
2286 ## Cache variables. ##
2287 ## ---------------- ##"
2289 # The following way of writing the cache mishandles newlines in values,
2291 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2292 eval ac_val=\$$ac_var
2296 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2297 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2300 _ | IFS | as_nl) ;; #(
2301 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2302 *) { eval $ac_var=; unset $ac_var;} ;;
2307 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2308 *${as_nl}ac_space=\ *)
2310 "s/'\''/'\''\\\\'\'''\''/g;
2311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2314 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2321 $as_echo "## ----------------- ##
2322 ## Output variables. ##
2323 ## ----------------- ##"
2325 for ac_var in $ac_subst_vars
2327 eval ac_val=\$$ac_var
2329 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331 $as_echo "$ac_var='\''$ac_val'\''"
2335 if test -n "$ac_subst_files"; then
2336 $as_echo "## ------------------- ##
2337 ## File substitutions. ##
2338 ## ------------------- ##"
2340 for ac_var
in $ac_subst_files
2342 eval ac_val
=\$
$ac_var
2344 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346 $as_echo "$ac_var='\''$ac_val'\''"
2351 if test -s confdefs.h; then
2352 $as_echo "## ----------- ##
2359 test "$ac_signal" != 0 &&
2360 $as_echo "$as_me: caught signal $ac_signal"
2361 $as_echo "$as_me: exit $exit_status"
2363 rm -f core *.core core.conftest.* &&
2364 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2367 for ac_signal
in 1 2 13 15; do
2368 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2372 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2373 rm -f -r conftest
* confdefs.h
2375 $as_echo "/* confdefs.h */" > confdefs.h
2377 # Predefined preprocessor variables.
2379 cat >>confdefs.h
<<_ACEOF
2380 #define PACKAGE_NAME "$PACKAGE_NAME"
2383 cat >>confdefs.h
<<_ACEOF
2384 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2387 cat >>confdefs.h
<<_ACEOF
2388 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2391 cat >>confdefs.h
<<_ACEOF
2392 #define PACKAGE_STRING "$PACKAGE_STRING"
2395 cat >>confdefs.h
<<_ACEOF
2396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2399 cat >>confdefs.h
<<_ACEOF
2400 #define PACKAGE_URL "$PACKAGE_URL"
2404 # Let the site file select an alternate cache file if it wants to.
2405 # Prefer an explicitly selected file to automatically selected ones.
2408 if test -n "$CONFIG_SITE"; then
2409 # We do not want a PATH search for config.site.
2410 case $CONFIG_SITE in #((
2411 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2412 */*) ac_site_file1
=$CONFIG_SITE;;
2413 *) ac_site_file1
=.
/$CONFIG_SITE;;
2415 elif test "x$prefix" != xNONE
; then
2416 ac_site_file1
=$prefix/share
/config.site
2417 ac_site_file2
=$prefix/etc
/config.site
2419 ac_site_file1
=$ac_default_prefix/share
/config.site
2420 ac_site_file2
=$ac_default_prefix/etc
/config.site
2422 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2424 test "x$ac_site_file" = xNONE
&& continue
2425 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2427 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2428 sed 's/^/| /' "$ac_site_file" >&5
2430 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2432 as_fn_error $?
"failed to load site script $ac_site_file
2433 See \`config.log' for more details" "$LINENO" 5; }
2437 if test -r "$cache_file"; then
2438 # Some versions of bash will fail to source /dev/null (special files
2439 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2440 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2442 $as_echo "$as_me: loading cache $cache_file" >&6;}
2444 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2445 *) .
"./$cache_file";;
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2450 $as_echo "$as_me: creating cache $cache_file" >&6;}
2454 # Check that the precious variables saved in the cache have kept the same
2456 ac_cache_corrupted
=false
2457 for ac_var
in $ac_precious_vars; do
2458 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2459 eval ac_new_set
=\
$ac_env_${ac_var}_set
2460 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2461 eval ac_new_val
=\
$ac_env_${ac_var}_value
2462 case $ac_old_set,$ac_new_set in
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2465 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2466 ac_cache_corrupted
=: ;;
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2469 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2470 ac_cache_corrupted
=: ;;
2473 if test "x$ac_old_val" != "x$ac_new_val"; then
2474 # differences in whitespace do not lead to failure.
2475 ac_old_val_w
=`echo x $ac_old_val`
2476 ac_new_val_w
=`echo x $ac_new_val`
2477 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2479 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2480 ac_cache_corrupted
=:
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2483 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2484 eval $ac_var=\
$ac_old_val
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2487 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2489 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2492 # Pass precious variables to config.status.
2493 if test "$ac_new_set" = set; then
2495 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2496 *) ac_arg
=$ac_var=$ac_new_val ;;
2498 case " $ac_configure_args " in
2499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2500 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2504 if $ac_cache_corrupted; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2508 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2509 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2511 ## -------------------- ##
2512 ## Main body of script. ##
2513 ## -------------------- ##
2516 ac_cpp
='$CPP $CPPFLAGS'
2517 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2523 ac_config_headers
="$ac_config_headers include/setup.h"
2526 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2527 if test -f "$ac_dir/install-sh"; then
2529 ac_install_sh
="$ac_aux_dir/install-sh -c"
2531 elif test -f "$ac_dir/install.sh"; then
2533 ac_install_sh
="$ac_aux_dir/install.sh -c"
2535 elif test -f "$ac_dir/shtool"; then
2537 ac_install_sh
="$ac_aux_dir/shtool install -c"
2541 if test -z "$ac_aux_dir"; then
2542 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2545 # These three variables are undocumented and unsupported,
2546 # and are intended to be withdrawn in a future Autoconf release.
2547 # They can cause serious problems if a builder's source tree is in a directory
2548 # whose full name contains unusual characters.
2549 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2550 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2551 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2556 if test "x$enable_dynamic_linking" = "x"; then
2557 echo "Please use ./Config instead of ./configure"
2561 orig_cflags
="$CFLAGS"
2566 # Generation version number (e.g.: X in X.Y.Z)
2567 UNREAL_VERSION_GENERATION
="4"
2569 cat >>confdefs.h
<<_ACEOF
2570 #define UNREAL_VERSION_GENERATION $UNREAL_VERSION_GENERATION
2574 # Major version number (e.g.: Y in X.Y.Z)
2575 UNREAL_VERSION_MAJOR
="2"
2577 cat >>confdefs.h
<<_ACEOF
2578 #define UNREAL_VERSION_MAJOR $UNREAL_VERSION_MAJOR
2582 # Minor version number (e.g.: Z in X.Y.Z)
2583 UNREAL_VERSION_MINOR
="4"
2585 cat >>confdefs.h
<<_ACEOF
2586 #define UNREAL_VERSION_MINOR $UNREAL_VERSION_MINOR
2590 # The version suffix such as a beta marker or release candidate
2591 # marker. (e.g.: -rcX for unrealircd-3.2.9-rcX). This macro is a
2592 # string instead of an integer because it contains arbitrary data.
2593 UNREAL_VERSION_SUFFIX
=".1"
2595 cat >>confdefs.h
<<_ACEOF
2596 #define UNREAL_VERSION_SUFFIX "$UNREAL_VERSION_SUFFIX"
2600 # Extract the first word of "rm", so it can be a program name with args.
2601 set dummy
rm; ac_word
=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_path_RM+:} false
; then :
2605 $as_echo_n "(cached) " >&6
2609 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
2612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir
=.
2617 for ac_exec_ext
in '' $ac_executable_extensions; do
2618 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 if test -n "$RM"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
2633 $as_echo "$RM" >&6; }
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2640 # Extract the first word of "cp", so it can be a program name with args.
2641 set dummy
cp; ac_word
=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_path_CP+:} false
; then :
2645 $as_echo_n "(cached) " >&6
2649 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
2652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir
=.
2657 for ac_exec_ext
in '' $ac_executable_extensions; do
2658 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2659 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 if test -n "$CP"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
2673 $as_echo "$CP" >&6; }
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2680 # Extract the first word of "touch", so it can be a program name with args.
2681 set dummy
touch; ac_word
=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_path_TOUCH+:} false
; then :
2685 $as_echo_n "(cached) " >&6
2689 ac_cv_path_TOUCH
="$TOUCH" # Let the user override the test with a path.
2692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir
=.
2697 for ac_exec_ext
in '' $ac_executable_extensions; do
2698 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2699 ac_cv_path_TOUCH
="$as_dir/$ac_word$ac_exec_ext"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 TOUCH
=$ac_cv_path_TOUCH
2711 if test -n "$TOUCH"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
2713 $as_echo "$TOUCH" >&6; }
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2720 # Extract the first word of "openssl", so it can be a program name with args.
2721 set dummy openssl
; ac_word
=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_path_OPENSSLPATH+:} false
; then :
2725 $as_echo_n "(cached) " >&6
2727 case $OPENSSLPATH in
2729 ac_cv_path_OPENSSLPATH
="$OPENSSLPATH" # Let the user override the test with a path.
2732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir
=.
2737 for ac_exec_ext
in '' $ac_executable_extensions; do
2738 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2739 ac_cv_path_OPENSSLPATH
="$as_dir/$ac_word$ac_exec_ext"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 OPENSSLPATH
=$ac_cv_path_OPENSSLPATH
2751 if test -n "$OPENSSLPATH"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSLPATH" >&5
2753 $as_echo "$OPENSSLPATH" >&6; }
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 $as_echo "no" >&6; }
2760 if test x
"$OPENSSLPATH" = "x"; then :
2763 echo "Apparently you do not have both the openssl binary and openssl development libraries installed."
2764 echo "The following packages are required:"
2765 echo "1) The library package is often called 'openssl-dev', 'openssl-devel' or 'libssl-dev'"
2766 echo "2) The binary package is usually called 'openssl'."
2767 echo "NOTE: you or your system administrator needs to install the library AND the binary package."
2768 echo "After doing so, simply re-run ./Config"
2773 # Extract the first word of "install", so it can be a program name with args.
2774 set dummy
install; ac_word
=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_path_INSTALL+:} false
; then :
2778 $as_echo_n "(cached) " >&6
2782 ac_cv_path_INSTALL
="$INSTALL" # Let the user override the test with a path.
2785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir
=.
2790 for ac_exec_ext
in '' $ac_executable_extensions; do
2791 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_path_INSTALL
="$as_dir/$ac_word$ac_exec_ext"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 INSTALL
=$ac_cv_path_INSTALL
2804 if test -n "$INSTALL"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2806 $as_echo "$INSTALL" >&6; }
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2813 # Extract the first word of "gmake", so it can be a program name with args.
2814 set dummy gmake
; ac_word
=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_MAKER+:} false
; then :
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$MAKER"; then
2821 ac_cv_prog_MAKER
="$MAKER" # Let the user override the test.
2823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir
=.
2828 for ac_exec_ext
in '' $ac_executable_extensions; do
2829 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_MAKER
="gmake"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER
="make"
2841 MAKER
=$ac_cv_prog_MAKER
2842 if test -n "$MAKER"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKER" >&5
2844 $as_echo "$MAKER" >&6; }
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2851 # Extract the first word of "gmake", so it can be a program name with args.
2852 set dummy gmake
; ac_word
=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_path_GMAKE+:} false
; then :
2856 $as_echo_n "(cached) " >&6
2860 ac_cv_path_GMAKE
="$GMAKE" # Let the user override the test with a path.
2863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir
=.
2868 for ac_exec_ext
in '' $ac_executable_extensions; do
2869 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2870 ac_cv_path_GMAKE
="$as_dir/$ac_word$ac_exec_ext"
2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 GMAKE
=$ac_cv_path_GMAKE
2882 if test -n "$GMAKE"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
2884 $as_echo "$GMAKE" >&6; }
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2891 # Extract the first word of "gunzip", so it can be a program name with args.
2892 set dummy gunzip
; ac_word
=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_path_GUNZIP+:} false
; then :
2896 $as_echo_n "(cached) " >&6
2900 ac_cv_path_GUNZIP
="$GUNZIP" # Let the user override the test with a path.
2903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2907 test -z "$as_dir" && as_dir
=.
2908 for ac_exec_ext
in '' $ac_executable_extensions; do
2909 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2910 ac_cv_path_GUNZIP
="$as_dir/$ac_word$ac_exec_ext"
2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 GUNZIP
=$ac_cv_path_GUNZIP
2922 if test -n "$GUNZIP"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
2924 $as_echo "$GUNZIP" >&6; }
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2931 # Extract the first word of "pkg-config", so it can be a program name with args.
2932 set dummy pkg
-config; ac_word
=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_path_PKGCONFIG+:} false
; then :
2936 $as_echo_n "(cached) " >&6
2940 ac_cv_path_PKGCONFIG
="$PKGCONFIG" # Let the user override the test with a path.
2943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir
=.
2948 for ac_exec_ext
in '' $ac_executable_extensions; do
2949 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_path_PKGCONFIG
="$as_dir/$ac_word$ac_exec_ext"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 PKGCONFIG
=$ac_cv_path_PKGCONFIG
2962 if test -n "$PKGCONFIG"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
2964 $as_echo "$PKGCONFIG" >&6; }
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2973 ac_cpp
='$CPP $CPPFLAGS'
2974 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2977 if test -n "$ac_tool_prefix"; then
2978 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2979 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_CC+:} false
; then :
2983 $as_echo_n "(cached) " >&6
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC
="$CC" # Let the user override the test.
2988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2992 test -z "$as_dir" && as_dir
=.
2993 for ac_exec_ext
in '' $ac_executable_extensions; do
2994 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 if test -n "$CC"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3008 $as_echo "$CC" >&6; }
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3016 if test -z "$ac_cv_prog_CC"; then
3018 # Extract the first word of "gcc", so it can be a program name with args.
3019 set dummy gcc
; ac_word
=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3023 $as_echo_n "(cached) " >&6
3025 if test -n "$ac_ct_CC"; then
3026 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir
=.
3033 for ac_exec_ext
in '' $ac_executable_extensions; do
3034 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3035 ac_cv_prog_ac_ct_CC
="gcc"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3046 if test -n "$ac_ct_CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3048 $as_echo "$ac_ct_CC" >&6; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3054 if test "x$ac_ct_CC" = x
; then
3057 case $cross_compiling:$ac_tool_warned in
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3061 ac_tool_warned
=yes ;;
3069 if test -z "$CC"; then
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3072 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_CC+:} false
; then :
3076 $as_echo_n "(cached) " >&6
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC
="$CC" # Let the user override the test.
3081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir
=.
3086 for ac_exec_ext
in '' $ac_executable_extensions; do
3087 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 if test -n "$CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3110 if test -z "$CC"; then
3111 # Extract the first word of "cc", so it can be a program name with args.
3112 set dummy cc
; ac_word
=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_CC+:} false
; then :
3116 $as_echo_n "(cached) " >&6
3118 if test -n "$CC"; then
3119 ac_cv_prog_CC
="$CC" # Let the user override the test.
3122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3126 test -z "$as_dir" && as_dir
=.
3127 for ac_exec_ext
in '' $ac_executable_extensions; do
3128 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3129 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3130 ac_prog_rejected
=yes
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 if test $ac_prog_rejected = yes; then
3142 # We found a bogon in the path, so make sure we never use it.
3143 set dummy
$ac_cv_prog_CC
3145 if test $# != 0; then
3146 # We chose a different compiler from the bogus one.
3147 # However, it has the same basename, so the bogon will be chosen
3148 # first if we set CC to just the basename; use the full file name.
3150 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3156 if test -n "$CC"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158 $as_echo "$CC" >&6; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3166 if test -z "$CC"; then
3167 if test -n "$ac_tool_prefix"; then
3168 for ac_prog
in cl.exe
3170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3171 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_CC+:} false
; then :
3175 $as_echo_n "(cached) " >&6
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC
="$CC" # Let the user override the test.
3180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3184 test -z "$as_dir" && as_dir
=.
3185 for ac_exec_ext
in '' $ac_executable_extensions; do
3186 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 if test -n "$CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 $as_echo "$CC" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3207 test -n "$CC" && break
3210 if test -z "$CC"; then
3212 for ac_prog
in cl.exe
3214 # Extract the first word of "$ac_prog", so it can be a program name with args.
3215 set dummy
$ac_prog; ac_word
=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3219 $as_echo_n "(cached) " >&6
3221 if test -n "$ac_ct_CC"; then
3222 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir
=.
3229 for ac_exec_ext
in '' $ac_executable_extensions; do
3230 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_ac_ct_CC
="$ac_prog"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3242 if test -n "$ac_ct_CC"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3244 $as_echo "$ac_ct_CC" >&6; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3251 test -n "$ac_ct_CC" && break
3254 if test "x$ac_ct_CC" = x
; then
3257 case $cross_compiling:$ac_tool_warned in
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3261 ac_tool_warned
=yes ;;
3270 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error $?
"no acceptable C compiler found in \$PATH
3273 See \`config.log' for more details" "$LINENO" 5; }
3275 # Provide some information about the compiler.
3276 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3279 for ac_option
in --version -v -V -qversion; do
3280 { { ac_try
="$ac_compiler $ac_option >&5"
3282 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3289 if test -s conftest.err; then
3291 ... rest of stderr output deleted ...
3292 10q' conftest.err >conftest.er1
3293 cat conftest.er1 >&5
3295 rm -f conftest.er1 conftest.err
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297 test $ac_status = 0; }
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3311 ac_clean_files_save=$ac_clean_files
3312 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3313 # Try to create an executable without -o first, disregard a.out.
3314 # It will help us diagnose broken compilers, and finding out an intuition
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3317 $as_echo_n "checking whether the C compiler works... " >&6; }
3318 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3320 # The possible output files:
3321 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3324 for ac_file in $ac_files
3327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3328 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3333 if { { ac_try="$ac_link_default"
3335 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3336 *) ac_try_echo
=$ac_try;;
3338 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_link_default") 2>&5
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }; then :
3344 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3345 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3346 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3347 # so that the user can short-circuit this test for compilers unknown to
3349 for ac_file
in $ac_files ''
3351 test -f "$ac_file" || continue
3353 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
3356 # We found the default executable, but exeext='' is most
3360 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3362 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3364 # We set ac_cv_exeext here because the later test for it is not
3365 # safe: cross compilers may not add the suffix if given an `-o'
3366 # argument, so we may need to know it at that point already.
3367 # Even if this section looks crufty: it has the advantage of
3374 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3379 if test -z "$ac_file"; then :
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 $as_echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.
$ac_ext >&5
3385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error
77 "C compiler cannot create executables
3388 See \`config.log' for more details" "$LINENO" 5; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3391 $as_echo "yes" >&6; }
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3394 $as_echo_n "checking for C compiler default output file name... " >&6; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3396 $as_echo "$ac_file" >&6; }
3397 ac_exeext
=$ac_cv_exeext
3399 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3400 ac_clean_files
=$ac_clean_files_save
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3402 $as_echo_n "checking for suffix of executables... " >&6; }
3403 if { { ac_try
="$ac_link"
3405 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_link") 2>&5
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }; then :
3414 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3415 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3416 # work properly (i.e., refer to `conftest.exe'), while it won't with
3418 for ac_file
in conftest.exe conftest conftest.
*; do
3419 test -f "$ac_file" || continue
3421 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
3422 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3431 See \`config.log' for more details" "$LINENO" 5; }
3433 rm -f conftest conftest
$ac_cv_exeext
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3435 $as_echo "$ac_cv_exeext" >&6; }
3437 rm -f conftest.
$ac_ext
3438 EXEEXT
=$ac_cv_exeext
3440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3446 FILE *f = fopen ("conftest.out", "w");
3447 return ferror (f) || fclose (f) != 0;
3453 ac_clean_files
="$ac_clean_files conftest.out"
3454 # Check that the compiler produces executables we can run. If not, either
3455 # the compiler is broken, or we cross compile.
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3457 $as_echo_n "checking whether we are cross compiling... " >&6; }
3458 if test "$cross_compiling" != yes; then
3459 { { ac_try
="$ac_link"
3461 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466 (eval "$ac_link") 2>&5
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }
3470 if { ac_try='./conftest$ac_cv_exeext'
3471 { { case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3473 *) ac_try_echo
=$ac_try;;
3475 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_try") 2>&5
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }; }; then
3483 if test "$cross_compiling" = maybe
; then
3486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error $?
"cannot run C compiled programs.
3489 If you meant to cross compile, use \`--host'.
3490 See \`config.log' for more details" "$LINENO" 5; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3495 $as_echo "$cross_compiling" >&6; }
3497 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3498 ac_clean_files
=$ac_clean_files_save
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3500 $as_echo_n "checking for suffix of object files... " >&6; }
3501 if ${ac_cv_objext+:} false
; then :
3502 $as_echo_n "(cached) " >&6
3504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3515 rm -f conftest.o conftest.obj
3516 if { { ac_try
="$ac_compile"
3518 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_compile") 2>&5
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }; then :
3527 for ac_file in conftest.o conftest.obj conftest.*; do
3528 test -f "$ac_file" || continue;
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3542 See \
`config.log' for more details" "$LINENO" 5; }
3544 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3547 $as_echo "$ac_cv_objext" >&6; }
3548 OBJEXT=$ac_cv_objext
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3551 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3552 if ${ac_cv_c_compiler_gnu+:} false; then :
3553 $as_echo_n "(cached) " >&6
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3569 if ac_fn_c_try_compile "$LINENO"; then :
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3579 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3580 if test $ac_compiler_gnu = yes; then
3585 ac_test_CFLAGS=${CFLAGS+set}
3586 ac_save_CFLAGS=$CFLAGS
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3588 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3589 if ${ac_cv_prog_cc_g+:} false; then :
3590 $as_echo_n "(cached) " >&6
3592 ac_save_c_werror_flag=$ac_c_werror_flag
3593 ac_c_werror_flag=yes
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3607 if ac_fn_c_try_compile "$LINENO"; then :
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3622 if ac_fn_c_try_compile "$LINENO"; then :
3625 ac_c_werror_flag=$ac_save_c_werror_flag
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3638 if ac_fn_c_try_compile "$LINENO"; then :
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 ac_c_werror_flag=$ac_save_c_werror_flag
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3649 $as_echo "$ac_cv_prog_cc_g" >&6; }
3650 if test "$ac_test_CFLAGS" = set; then
3651 CFLAGS=$ac_save_CFLAGS
3652 elif test $ac_cv_prog_cc_g = yes; then
3653 if test "$GCC" = yes; then
3659 if test "$GCC" = yes; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3666 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3667 if ${ac_cv_prog_cc_c89+:} false; then :
3668 $as_echo_n "(cached) " >&6
3670 ac_cv_prog_cc_c89=no
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3678 struct buf { int x; };
3679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3680 static char *e (p, i)
3686 static char *f (char * (*g) (char **, int), char **p, ...)
3691 s = g (p, va_arg (v,int));
3696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3697 function prototypes and stuff, but not '\xHH' hex character constants.
3698 These don't provoke an error unfortunately, instead are silently treated
3699 as 'x'. The following induces an error, until -std is added to get
3700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3701 array size at least. It's necessary to write '\x00'==0 to get something
3702 that's true only with -std. */
3703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3705 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3706 inside strings and character constants. */
3708 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3710 int test (int i, double x);
3711 struct s1 {int (*f) (int a);};
3712 struct s2 {int (*f) (double a);};
3713 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3719 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3724 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3725 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3727 CC="$ac_save_CC $ac_arg"
3728 if ac_fn_c_try_compile "$LINENO"; then :
3729 ac_cv_prog_cc_c89=$ac_arg
3731 rm -f core conftest.err conftest.$ac_objext
3732 test "x$ac_cv_prog_cc_c89" != "xno" && break
3734 rm -f conftest.$ac_ext
3739 case "x$ac_cv_prog_cc_c89" in
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3742 $as_echo "none needed" >&6; } ;;
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3745 $as_echo "unsupported" >&6; } ;;
3747 CC="$CC $ac_cv_prog_cc_c89"
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3749 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3751 if test "x$ac_cv_prog_cc_c89" != xno; then :
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -ldescrypt" >&5
3763 $as_echo_n "checking for crypt in -ldescrypt... " >&6; }
3764 if ${ac_cv_lib_descrypt_crypt+:} false; then :
3765 $as_echo_n "(cached) " >&6
3767 ac_check_lib_save_LIBS=$LIBS
3768 LIBS="-ldescrypt $LIBS"
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3772 /* Override any GCC internal prototype to avoid an error.
3773 Use char because int might match the return type of a GCC
3774 builtin and then its argument prototype would still apply. */
3787 if ac_fn_c_try_link "$LINENO"; then :
3788 ac_cv_lib_descrypt_crypt=yes
3790 ac_cv_lib_descrypt_crypt=no
3792 rm -f core conftest.err conftest.$ac_objext \
3793 conftest$ac_exeext conftest.$ac_ext
3794 LIBS=$ac_check_lib_save_LIBS
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_descrypt_crypt" >&5
3797 $as_echo "$ac_cv_lib_descrypt_crypt" >&6; }
3798 if test "x$ac_cv_lib_descrypt_crypt" = xyes; then :
3800 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
3802 IRCDLIBS="$IRCDLIBS-ldescrypt "
3803 MKPASSWDLIBS="-ldescrypt"
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
3806 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
3807 if ${ac_cv_lib_crypt_crypt+:} false; then :
3808 $as_echo_n "(cached) " >&6
3810 ac_check_lib_save_LIBS=$LIBS
3811 LIBS="-lcrypt $LIBS"
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3815 /* Override any GCC internal prototype to avoid an error.
3816 Use char because int might match the return type of a GCC
3817 builtin and then its argument prototype would still apply. */
3830 if ac_fn_c_try_link "$LINENO"; then :
3831 ac_cv_lib_crypt_crypt=yes
3833 ac_cv_lib_crypt_crypt=no
3835 rm -f core conftest.err conftest.$ac_objext \
3836 conftest$ac_exeext conftest.$ac_ext
3837 LIBS=$ac_check_lib_save_LIBS
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
3840 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
3841 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
3843 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
3845 IRCDLIBS="$IRCDLIBS-lcrypt "
3846 MKPASSWDLIBS="-lcrypt"
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
3852 $as_echo_n "checking for socket in -lsocket... " >&6; }
3853 if ${ac_cv_lib_socket_socket+:} false; then :
3854 $as_echo_n "(cached) " >&6
3856 ac_check_lib_save_LIBS=$LIBS
3857 LIBS="-lsocket $LIBS"
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3861 /* Override any GCC internal prototype to avoid an error.
3862 Use char because int might match the return type of a GCC
3863 builtin and then its argument prototype would still apply. */
3876 if ac_fn_c_try_link "$LINENO"; then :
3877 ac_cv_lib_socket_socket=yes
3879 ac_cv_lib_socket_socket=no
3881 rm -f core conftest.err conftest.$ac_objext \
3882 conftest$ac_exeext conftest.$ac_ext
3883 LIBS=$ac_check_lib_save_LIBS
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
3886 $as_echo "$ac_cv_lib_socket_socket" >&6; }
3887 if test "x$ac_cv_lib_socket_socket" = xyes; then :
3888 IRCDLIBS="$IRCDLIBS-lsocket "
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
3893 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
3894 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
3895 $as_echo_n "(cached) " >&6
3897 ac_check_lib_save_LIBS=$LIBS
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3902 /* Override any GCC internal prototype to avoid an error.
3903 Use char because int might match the return type of a GCC
3904 builtin and then its argument prototype would still apply. */
3912 return inet_ntoa ();
3917 if ac_fn_c_try_link "$LINENO"; then :
3918 ac_cv_lib_nsl_inet_ntoa=yes
3920 ac_cv_lib_nsl_inet_ntoa=no
3922 rm -f core conftest.err conftest.$ac_objext \
3923 conftest$ac_exeext conftest.$ac_ext
3924 LIBS=$ac_check_lib_save_LIBS
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
3927 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
3928 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
3929 IRCDLIBS="$IRCDLIBS-lnsl "
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_egd in -lcrypto" >&5
3934 $as_echo_n "checking for RAND_egd in -lcrypto... " >&6; }
3935 if ${ac_cv_lib_crypto_RAND_egd+:} false; then :
3936 $as_echo_n "(cached) " >&6
3938 ac_check_lib_save_LIBS=$LIBS
3939 LIBS="-lcrypto $LIBS"
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3943 /* Override any GCC internal prototype to avoid an error.
3944 Use char because int might match the return type of a GCC
3945 builtin and then its argument prototype would still apply. */
3958 if ac_fn_c_try_link "$LINENO"; then :
3959 ac_cv_lib_crypto_RAND_egd=yes
3961 ac_cv_lib_crypto_RAND_egd=no
3963 rm -f core conftest.err conftest.$ac_objext \
3964 conftest$ac_exeext conftest.$ac_ext
3965 LIBS=$ac_check_lib_save_LIBS
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_egd" >&5
3968 $as_echo "$ac_cv_lib_crypto_RAND_egd" >&6; }
3969 if test "x$ac_cv_lib_crypto_RAND_egd" = xyes; then :
3971 $as_echo "#define HAVE_RAND_EGD 1" >>confdefs.h
3978 # We want to check for compiler flag support, but there is no way to make
3979 # clang's "argument unused" warning fatal. So we invoke the compiler through a
3980 # wrapper script that greps for this message.
3984 flag_wrap="$srcdir/extras/wrap-compiler-for-flag-check"
3986 CXX="$flag_wrap $CXX"
3989 # We use the same hardening flags for C and C++. We must check that each flag
3990 # is supported by both compilers.
3995 # Check whether --enable-hardening was given.
3996 if test "${enable_hardening+set}" = set; then :
3997 enableval=$enable_hardening; hardening="$enableval"
4005 if test x"$hardening" != x"no"; then :
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
4014 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
4015 if ${ax_cv_check_cflags__Werror___fno_strict_overflow+:} false; then :
4016 $as_echo_n "(cached) " >&6
4019 ax_check_save_flags=$CFLAGS
4020 CFLAGS="$CFLAGS -Werror -fno-strict-overflow"
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4032 if ac_fn_c_try_compile "$LINENO"; then :
4033 ax_cv_check_cflags__Werror___fno_strict_overflow=yes
4035 ax_cv_check_cflags__Werror___fno_strict_overflow=no
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 CFLAGS=$ax_check_save_flags
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_overflow" >&5
4041 $as_echo "$ax_cv_check_cflags__Werror___fno_strict_overflow" >&6; }
4042 if test x"$ax_cv_check_cflags__Werror___fno_strict_overflow" = xyes; then :
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
4050 $as_echo_n "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
4051 if ${ax_cv_check_cflags__Werror___fno_strict_overflow+:} false; then :
4052 $as_echo_n "(cached) " >&6
4055 ax_check_save_flags=$CFLAGS
4056 CFLAGS="$CFLAGS -Werror -fno-strict-overflow"
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ax_cv_check_cflags__Werror___fno_strict_overflow=yes
4071 ax_cv_check_cflags__Werror___fno_strict_overflow=no
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 CFLAGS=$ax_check_save_flags
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_overflow" >&5
4077 $as_echo "$ax_cv_check_cflags__Werror___fno_strict_overflow" >&6; }
4078 if test x"$ax_cv_check_cflags__Werror___fno_strict_overflow" = xyes; then :
4079 HARDEN_CFLAGS="$HARDEN_CFLAGS -fno-strict-overflow"
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095 ac_cpp='$CPP $CPPFLAGS'
4096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101 # This one will likely succeed, even on platforms where it does nothing.
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
4109 $as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
4110 if ${ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2+:} false; then :
4111 $as_echo_n "(cached) " >&6
4114 ax_check_save_flags=$CFLAGS
4115 CFLAGS="$CFLAGS -Werror -D_FORTIFY_SOURCE=2"
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=yes
4130 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=no
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 CFLAGS=$ax_check_save_flags
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&5
4136 $as_echo "$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&6; }
4137 if test x"$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" = xyes; then :
4139 ac_cpp='$CPP $CPPFLAGS'
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=2" >&5
4145 $as_echo_n "checking whether C compiler accepts -D_FORTIFY_SOURCE=2... " >&6; }
4146 if ${ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2+:} false; then :
4147 $as_echo_n "(cached) " >&6
4150 ax_check_save_flags=$CFLAGS
4151 CFLAGS="$CFLAGS -Werror -D_FORTIFY_SOURCE=2"
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4163 if ac_fn_c_try_compile "$LINENO"; then :
4164 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=yes
4166 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2=no
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 CFLAGS=$ax_check_save_flags
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&5
4172 $as_echo "$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" >&6; }
4173 if test x"$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_2" = xyes; then :
4174 HARDEN_CFLAGS="$HARDEN_CFLAGS -D_FORTIFY_SOURCE=2"
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
4203 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
4204 if ${ax_cv_check_cflags__Werror___fstack_protector_all+:} false; then :
4205 $as_echo_n "(cached) " >&6
4208 ax_check_save_flags=$CFLAGS
4209 CFLAGS="$CFLAGS -Werror -fstack-protector-all"
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ax_cv_check_cflags__Werror___fstack_protector_all=yes
4224 ax_cv_check_cflags__Werror___fstack_protector_all=no
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 CFLAGS=$ax_check_save_flags
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fstack_protector_all" >&5
4230 $as_echo "$ax_cv_check_cflags__Werror___fstack_protector_all" >&6; }
4231 if test x"$ax_cv_check_cflags__Werror___fstack_protector_all" = xyes; then :
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
4239 $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
4240 if ${ax_cv_check_cflags__Werror___fstack_protector_all+:} false; then :
4241 $as_echo_n "(cached) " >&6
4244 ax_check_save_flags=$CFLAGS
4245 CFLAGS="$CFLAGS -Werror -fstack-protector-all"
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 ax_cv_check_cflags__Werror___fstack_protector_all=yes
4260 ax_cv_check_cflags__Werror___fstack_protector_all=no
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263 CFLAGS=$ax_check_save_flags
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fstack_protector_all" >&5
4266 $as_echo "$ax_cv_check_cflags__Werror___fstack_protector_all" >&6; }
4267 if test x"$ax_cv_check_cflags__Werror___fstack_protector_all" = xyes; then :
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
4269 $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
4270 if ${ax_cv_check_ldflags__Werror___fstack_protector_all+:} false; then :
4271 $as_echo_n "(cached) " >&6
4274 ax_check_save_flags=$LDFLAGS
4275 LDFLAGS="$LDFLAGS -Werror -fstack-protector-all"
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4287 if ac_fn_c_try_link "$LINENO"; then :
4288 ax_cv_check_ldflags__Werror___fstack_protector_all=yes
4290 ax_cv_check_ldflags__Werror___fstack_protector_all=no
4292 rm -f core conftest.err conftest.$ac_objext \
4293 conftest$ac_exeext conftest.$ac_ext
4294 LDFLAGS=$ax_check_save_flags
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fstack_protector_all" >&5
4297 $as_echo "$ax_cv_check_ldflags__Werror___fstack_protector_all" >&6; }
4298 if test x"$ax_cv_check_ldflags__Werror___fstack_protector_all" = xyes; then :
4299 HARDEN_CFLAGS="$HARDEN_CFLAGS -fstack-protector-all"
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstack-protector" >&5
4307 $as_echo_n "checking whether C compiler accepts -Wstack-protector... " >&6; }
4308 if ${ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector+:} false; then :
4309 $as_echo_n "(cached) " >&6
4312 ax_check_save_flags=$CFLAGS
4313 CFLAGS="$CFLAGS -Werror -fstack-protector-all -Wstack-protector"
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4325 if ac_fn_c_try_compile "$LINENO"; then :
4326 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=yes
4328 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=no
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 CFLAGS=$ax_check_save_flags
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&5
4334 $as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&6; }
4335 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" = xyes; then :
4337 ac_cpp='$CPP $CPPFLAGS'
4338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstack-protector" >&5
4343 $as_echo_n "checking whether C compiler accepts -Wstack-protector... " >&6; }
4344 if ${ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector+:} false; then :
4345 $as_echo_n "(cached) " >&6
4348 ax_check_save_flags=$CFLAGS
4349 CFLAGS="$CFLAGS -Werror -fstack-protector-all -Wstack-protector"
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4361 if ac_fn_c_try_compile "$LINENO"; then :
4362 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=yes
4364 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=no
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367 CFLAGS=$ax_check_save_flags
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&5
4370 $as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&6; }
4371 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" = xyes; then :
4372 HARDEN_CFLAGS="$HARDEN_CFLAGS -Wstack-protector"
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts --param ssp-buffer-size=1" >&5
4400 $as_echo_n "checking whether C compiler accepts --param ssp-buffer-size=1... " >&6; }
4401 if ${ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1+:} false; then :
4402 $as_echo_n "(cached) " >&6
4405 ax_check_save_flags=$CFLAGS
4406 CFLAGS="$CFLAGS -Werror -fstack-protector-all --param ssp-buffer-size=1"
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4418 if ac_fn_c_try_compile "$LINENO"; then :
4419 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=yes
4421 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=no
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 CFLAGS=$ax_check_save_flags
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&5
4427 $as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&6; }
4428 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" = xyes; then :
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts --param ssp-buffer-size=1" >&5
4436 $as_echo_n "checking whether C compiler accepts --param ssp-buffer-size=1... " >&6; }
4437 if ${ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1+:} false; then :
4438 $as_echo_n "(cached) " >&6
4441 ax_check_save_flags=$CFLAGS
4442 CFLAGS="$CFLAGS -Werror -fstack-protector-all --param ssp-buffer-size=1"
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4454 if ac_fn_c_try_compile "$LINENO"; then :
4455 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=yes
4457 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=no
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 CFLAGS=$ax_check_save_flags
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&5
4463 $as_echo "$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&6; }
4464 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" = xyes; then :
4465 HARDEN_CFLAGS="$HARDEN_CFLAGS --param ssp-buffer-size=1"
4471 ac_cpp='$CPP $CPPFLAGS'
4472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505 ac_cpp='$CPP $CPPFLAGS'
4506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4511 # At the link step, we might want -pie (GCC) or -Wl,-pie (Clang on OS X)
4513 # The linker checks also compile code, so we need to include -fPIE as well.
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
4521 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
4522 if ${ax_cv_check_cflags__Werror___fPIE+:} false; then :
4523 $as_echo_n "(cached) " >&6
4526 ax_check_save_flags=$CFLAGS
4527 CFLAGS="$CFLAGS -Werror -fPIE"
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4539 if ac_fn_c_try_compile "$LINENO"; then :
4540 ax_cv_check_cflags__Werror___fPIE=yes
4542 ax_cv_check_cflags__Werror___fPIE=no
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 CFLAGS=$ax_check_save_flags
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fPIE" >&5
4548 $as_echo "$ax_cv_check_cflags__Werror___fPIE" >&6; }
4549 if test x"$ax_cv_check_cflags__Werror___fPIE" = xyes; then :
4551 ac_cpp='$CPP $CPPFLAGS'
4552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
4557 $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
4558 if ${ax_cv_check_cflags__Werror___fPIE+:} false; then :
4559 $as_echo_n "(cached) " >&6
4562 ax_check_save_flags=$CFLAGS
4563 CFLAGS="$CFLAGS -Werror -fPIE"
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4575 if ac_fn_c_try_compile "$LINENO"; then :
4576 ax_cv_check_cflags__Werror___fPIE=yes
4578 ax_cv_check_cflags__Werror___fPIE=no
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 CFLAGS=$ax_check_save_flags
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fPIE" >&5
4584 $as_echo "$ax_cv_check_cflags__Werror___fPIE" >&6; }
4585 if test x"$ax_cv_check_cflags__Werror___fPIE" = xyes; then :
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE -pie" >&5
4587 $as_echo_n "checking whether the linker accepts -fPIE -pie... " >&6; }
4588 if ${ax_cv_check_ldflags__Werror___fPIE__pie+:} false; then :
4589 $as_echo_n "(cached) " >&6
4592 ax_check_save_flags=$LDFLAGS
4593 LDFLAGS="$LDFLAGS -Werror -fPIE -pie"
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4605 if ac_fn_c_try_link "$LINENO"; then :
4606 ax_cv_check_ldflags__Werror___fPIE__pie=yes
4608 ax_cv_check_ldflags__Werror___fPIE__pie=no
4610 rm -f core conftest.err conftest.$ac_objext \
4611 conftest$ac_exeext conftest.$ac_ext
4612 LDFLAGS=$ax_check_save_flags
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fPIE__pie" >&5
4615 $as_echo "$ax_cv_check_ldflags__Werror___fPIE__pie" >&6; }
4616 if test x"$ax_cv_check_ldflags__Werror___fPIE__pie" = xyes; then :
4617 HARDEN_BINCFLAGS="-fPIE"
4618 HARDEN_BINLDFLAGS="-pie"
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE -Wl,-pie" >&5
4621 $as_echo_n "checking whether the linker accepts -fPIE -Wl,-pie... " >&6; }
4622 if ${ax_cv_check_ldflags__Werror___fPIE__Wl__pie+:} false; then :
4623 $as_echo_n "(cached) " >&6
4626 ax_check_save_flags=$LDFLAGS
4627 LDFLAGS="$LDFLAGS -Werror -fPIE -Wl,-pie"
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4639 if ac_fn_c_try_link "$LINENO"; then :
4640 ax_cv_check_ldflags__Werror___fPIE__Wl__pie=yes
4642 ax_cv_check_ldflags__Werror___fPIE__Wl__pie=no
4644 rm -f core conftest.err conftest.$ac_objext \
4645 conftest$ac_exeext conftest.$ac_ext
4646 LDFLAGS=$ax_check_save_flags
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fPIE__Wl__pie" >&5
4649 $as_echo "$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" >&6; }
4650 if test x"$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" = xyes; then :
4651 HARDEN_BINCFLAGS="-fPIE"
4652 HARDEN_BINLDFLAGS="-Wl,-pie"
4664 ac_cpp='$CPP $CPPFLAGS'
4665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4674 ac_cpp='$CPP $CPPFLAGS'
4675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
4681 $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
4682 if ${ax_cv_check_ldflags__Werror___Wl__z_relro+:} false; then :
4683 $as_echo_n "(cached) " >&6
4686 ax_check_save_flags=$LDFLAGS
4687 LDFLAGS="$LDFLAGS -Werror -Wl,-z,relro"
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4699 if ac_fn_c_try_link "$LINENO"; then :
4700 ax_cv_check_ldflags__Werror___Wl__z_relro=yes
4702 ax_cv_check_ldflags__Werror___Wl__z_relro=no
4704 rm -f core conftest.err conftest.$ac_objext \
4705 conftest$ac_exeext conftest.$ac_ext
4706 LDFLAGS=$ax_check_save_flags
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___Wl__z_relro" >&5
4709 $as_echo "$ax_cv_check_ldflags__Werror___Wl__z_relro" >&6; }
4710 if test x"$ax_cv_check_ldflags__Werror___Wl__z_relro" = xyes; then :
4711 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,relro"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
4713 $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
4714 if ${ax_cv_check_ldflags__Werror___Wl__z_now+:} false; then :
4715 $as_echo_n "(cached) " >&6
4718 ax_check_save_flags=$LDFLAGS
4719 LDFLAGS="$LDFLAGS -Werror -Wl,-z,now"
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4731 if ac_fn_c_try_link "$LINENO"; then :
4732 ax_cv_check_ldflags__Werror___Wl__z_now=yes
4734 ax_cv_check_ldflags__Werror___Wl__z_now=no
4736 rm -f core conftest.err conftest.$ac_objext \
4737 conftest$ac_exeext conftest.$ac_ext
4738 LDFLAGS=$ax_check_save_flags
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___Wl__z_now" >&5
4741 $as_echo "$ax_cv_check_ldflags__Werror___Wl__z_now" >&6; }
4742 if test x"$ax_cv_check_ldflags__Werror___Wl__z_now" = xyes; then :
4743 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,now"
4758 # End of flag tests.
4764 ac_cpp='$CPP $CPPFLAGS'
4765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
4770 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
4771 if ${ax_cv_check_cflags__Werror___fno_strict_aliasing+:} false; then :
4772 $as_echo_n "(cached) " >&6
4775 ax_check_save_flags=$CFLAGS
4776 CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 ax_cv_check_cflags__Werror___fno_strict_aliasing=yes
4791 ax_cv_check_cflags__Werror___fno_strict_aliasing=no
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 CFLAGS=$ax_check_save_flags
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_aliasing" >&5
4797 $as_echo "$ax_cv_check_cflags__Werror___fno_strict_aliasing" >&6; }
4798 if test x"$ax_cv_check_cflags__Werror___fno_strict_aliasing" = xyes; then :
4800 ac_cpp='$CPP $CPPFLAGS'
4801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
4806 $as_echo_n "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
4807 if ${ax_cv_check_cflags__Werror___fno_strict_aliasing+:} false; then :
4808 $as_echo_n "(cached) " >&6
4811 ax_check_save_flags=$CFLAGS
4812 CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 ax_cv_check_cflags__Werror___fno_strict_aliasing=yes
4827 ax_cv_check_cflags__Werror___fno_strict_aliasing=no
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830 CFLAGS=$ax_check_save_flags
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_aliasing" >&5
4833 $as_echo "$ax_cv_check_cflags__Werror___fno_strict_aliasing" >&6; }
4834 if test x"$ax_cv_check_cflags__Werror___fno_strict_aliasing" = xyes; then :
4835 CFLAGS="$CFLAGS -fno-strict-aliasing"
4841 ac_cpp='$CPP $CPPFLAGS'
4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851 ac_cpp='$CPP $CPPFLAGS'
4852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857 CFLAGS="$CFLAGS -funsigned-char"
4860 CFLAGS="$CFLAGS -Wall"
4863 ac_cpp='$CPP $CPPFLAGS'
4864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
4869 $as_echo_n "checking whether C compiler accepts -Wextra... " >&6; }
4870 if ${ax_cv_check_cflags__Werror___Wextra+:} false; then :
4871 $as_echo_n "(cached) " >&6
4874 ax_check_save_flags=$CFLAGS
4875 CFLAGS="$CFLAGS -Werror -Wextra"
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 ax_cv_check_cflags__Werror___Wextra=yes
4890 ax_cv_check_cflags__Werror___Wextra=no
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 CFLAGS=$ax_check_save_flags
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wextra" >&5
4896 $as_echo "$ax_cv_check_cflags__Werror___Wextra" >&6; }
4897 if test x"$ax_cv_check_cflags__Werror___Wextra" = xyes; then :
4899 ac_cpp='$CPP $CPPFLAGS'
4900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
4905 $as_echo_n "checking whether C compiler accepts -Wextra... " >&6; }
4906 if ${ax_cv_check_cflags__Werror___Wextra+:} false; then :
4907 $as_echo_n "(cached) " >&6
4910 ax_check_save_flags=$CFLAGS
4911 CFLAGS="$CFLAGS -Werror -Wextra"
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 ax_cv_check_cflags__Werror___Wextra=yes
4926 ax_cv_check_cflags__Werror___Wextra=no
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 CFLAGS=$ax_check_save_flags
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wextra" >&5
4932 $as_echo "$ax_cv_check_cflags__Werror___Wextra" >&6; }
4933 if test x"$ax_cv_check_cflags__Werror___Wextra" = xyes; then :
4934 CFLAGS="$CFLAGS -Wextra"
4940 ac_cpp='$CPP $CPPFLAGS'
4941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950 ac_cpp='$CPP $CPPFLAGS'
4951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4956 ac_cpp='$CPP $CPPFLAGS'
4957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waggregate-return" >&5
4962 $as_echo_n "checking whether C compiler accepts -Waggregate-return... " >&6; }
4963 if ${ax_cv_check_cflags__Werror___Waggregate_return+:} false; then :
4964 $as_echo_n "(cached) " >&6
4967 ax_check_save_flags=$CFLAGS
4968 CFLAGS="$CFLAGS -Werror -Waggregate-return"
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4980 if ac_fn_c_try_compile "$LINENO"; then :
4981 ax_cv_check_cflags__Werror___Waggregate_return=yes
4983 ax_cv_check_cflags__Werror___Waggregate_return=no
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 CFLAGS=$ax_check_save_flags
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Waggregate_return" >&5
4989 $as_echo "$ax_cv_check_cflags__Werror___Waggregate_return" >&6; }
4990 if test x"$ax_cv_check_cflags__Werror___Waggregate_return" = xyes; then :
4992 ac_cpp='$CPP $CPPFLAGS'
4993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waggregate-return" >&5
4998 $as_echo_n "checking whether C compiler accepts -Waggregate-return... " >&6; }
4999 if ${ax_cv_check_cflags__Werror___Waggregate_return+:} false; then :
5000 $as_echo_n "(cached) " >&6
5003 ax_check_save_flags=$CFLAGS
5004 CFLAGS="$CFLAGS -Werror -Waggregate-return"
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5016 if ac_fn_c_try_compile "$LINENO"; then :
5017 ax_cv_check_cflags__Werror___Waggregate_return=yes
5019 ax_cv_check_cflags__Werror___Waggregate_return=no
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 CFLAGS=$ax_check_save_flags
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Waggregate_return" >&5
5025 $as_echo "$ax_cv_check_cflags__Werror___Waggregate_return" >&6; }
5026 if test x"$ax_cv_check_cflags__Werror___Waggregate_return" = xyes; then :
5027 CFLAGS="$CFLAGS -Waggregate-return"
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 ac_cpp='$CPP $CPPFLAGS'
5044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049 ac_cpp='$CPP $CPPFLAGS'
5050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-cond" >&5
5055 $as_echo_n "checking whether C compiler accepts -Wduplicated-cond... " >&6; }
5056 if ${ax_cv_check_cflags__Werror___Wduplicated_cond+:} false; then :
5057 $as_echo_n "(cached) " >&6
5060 ax_check_save_flags=$CFLAGS
5061 CFLAGS="$CFLAGS -Werror -Wduplicated-cond"
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5073 if ac_fn_c_try_compile "$LINENO"; then :
5074 ax_cv_check_cflags__Werror___Wduplicated_cond=yes
5076 ax_cv_check_cflags__Werror___Wduplicated_cond=no
5078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079 CFLAGS=$ax_check_save_flags
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_cond" >&5
5082 $as_echo "$ax_cv_check_cflags__Werror___Wduplicated_cond" >&6; }
5083 if test x"$ax_cv_check_cflags__Werror___Wduplicated_cond" = xyes; then :
5085 ac_cpp='$CPP $CPPFLAGS'
5086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-cond" >&5
5091 $as_echo_n "checking whether C compiler accepts -Wduplicated-cond... " >&6; }
5092 if ${ax_cv_check_cflags__Werror___Wduplicated_cond+:} false; then :
5093 $as_echo_n "(cached) " >&6
5096 ax_check_save_flags=$CFLAGS
5097 CFLAGS="$CFLAGS -Werror -Wduplicated-cond"
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5109 if ac_fn_c_try_compile "$LINENO"; then :
5110 ax_cv_check_cflags__Werror___Wduplicated_cond=yes
5112 ax_cv_check_cflags__Werror___Wduplicated_cond=no
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 CFLAGS=$ax_check_save_flags
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_cond" >&5
5118 $as_echo "$ax_cv_check_cflags__Werror___Wduplicated_cond" >&6; }
5119 if test x"$ax_cv_check_cflags__Werror___Wduplicated_cond" = xyes; then :
5120 CFLAGS="$CFLAGS -Wduplicated-cond"
5126 ac_cpp='$CPP $CPPFLAGS'
5127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136 ac_cpp='$CPP $CPPFLAGS'
5137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142 ac_cpp='$CPP $CPPFLAGS'
5143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-branches" >&5
5148 $as_echo_n "checking whether C compiler accepts -Wduplicated-branches... " >&6; }
5149 if ${ax_cv_check_cflags__Werror___Wduplicated_branches+:} false; then :
5150 $as_echo_n "(cached) " >&6
5153 ax_check_save_flags=$CFLAGS
5154 CFLAGS="$CFLAGS -Werror -Wduplicated-branches"
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5166 if ac_fn_c_try_compile "$LINENO"; then :
5167 ax_cv_check_cflags__Werror___Wduplicated_branches=yes
5169 ax_cv_check_cflags__Werror___Wduplicated_branches=no
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 CFLAGS=$ax_check_save_flags
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_branches" >&5
5175 $as_echo "$ax_cv_check_cflags__Werror___Wduplicated_branches" >&6; }
5176 if test x"$ax_cv_check_cflags__Werror___Wduplicated_branches" = xyes; then :
5178 ac_cpp='$CPP $CPPFLAGS'
5179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-branches" >&5
5184 $as_echo_n "checking whether C compiler accepts -Wduplicated-branches... " >&6; }
5185 if ${ax_cv_check_cflags__Werror___Wduplicated_branches+:} false; then :
5186 $as_echo_n "(cached) " >&6
5189 ax_check_save_flags=$CFLAGS
5190 CFLAGS="$CFLAGS -Werror -Wduplicated-branches"
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5202 if ac_fn_c_try_compile "$LINENO"; then :
5203 ax_cv_check_cflags__Werror___Wduplicated_branches=yes
5205 ax_cv_check_cflags__Werror___Wduplicated_branches=no
5207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208 CFLAGS=$ax_check_save_flags
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_branches" >&5
5211 $as_echo "$ax_cv_check_cflags__Werror___Wduplicated_branches" >&6; }
5212 if test x"$ax_cv_check_cflags__Werror___Wduplicated_branches" = xyes; then :
5213 CFLAGS="$CFLAGS -Wduplicated-branches"
5219 ac_cpp='$CPP $CPPFLAGS'
5220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229 ac_cpp='$CPP $CPPFLAGS'
5230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-sign" >&5
5243 $as_echo_n "checking whether C compiler accepts -Wpointer-sign... " >&6; }
5244 if ${ax_cv_check_cflags__Werror___Wpointer_sign+:} false; then :
5245 $as_echo_n "(cached) " >&6
5248 ax_check_save_flags=$CFLAGS
5249 CFLAGS="$CFLAGS -Werror -Wpointer-sign"
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5261 if ac_fn_c_try_compile "$LINENO"; then :
5262 ax_cv_check_cflags__Werror___Wpointer_sign=yes
5264 ax_cv_check_cflags__Werror___Wpointer_sign=no
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 CFLAGS=$ax_check_save_flags
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wpointer_sign" >&5
5270 $as_echo "$ax_cv_check_cflags__Werror___Wpointer_sign" >&6; }
5271 if test x"$ax_cv_check_cflags__Werror___Wpointer_sign" = xyes; then :
5273 ac_cpp='$CPP $CPPFLAGS'
5274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-sign" >&5
5279 $as_echo_n "checking whether C compiler accepts -Wpointer-sign... " >&6; }
5280 if ${ax_cv_check_cflags__Werror___Wpointer_sign+:} false; then :
5281 $as_echo_n "(cached) " >&6
5284 ax_check_save_flags=$CFLAGS
5285 CFLAGS="$CFLAGS -Werror -Wpointer-sign"
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298 ax_cv_check_cflags__Werror___Wpointer_sign=yes
5300 ax_cv_check_cflags__Werror___Wpointer_sign=no
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 CFLAGS=$ax_check_save_flags
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wpointer_sign" >&5
5306 $as_echo "$ax_cv_check_cflags__Werror___Wpointer_sign" >&6; }
5307 if test x"$ax_cv_check_cflags__Werror___Wpointer_sign" = xyes; then :
5308 CFLAGS="$CFLAGS -Wno-pointer-sign"
5314 ac_cpp='$CPP $CPPFLAGS'
5315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5324 ac_cpp='$CPP $CPPFLAGS'
5325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5331 ac_cpp='$CPP $CPPFLAGS'
5332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winvalid-source-encoding" >&5
5337 $as_echo_n "checking whether C compiler accepts -Winvalid-source-encoding... " >&6; }
5338 if ${ax_cv_check_cflags__Werror___Winvalid_source_encoding+:} false; then :
5339 $as_echo_n "(cached) " >&6
5342 ax_check_save_flags=$CFLAGS
5343 CFLAGS="$CFLAGS -Werror -Winvalid-source-encoding"
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5355 if ac_fn_c_try_compile "$LINENO"; then :
5356 ax_cv_check_cflags__Werror___Winvalid_source_encoding=yes
5358 ax_cv_check_cflags__Werror___Winvalid_source_encoding=no
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 CFLAGS=$ax_check_save_flags
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Winvalid_source_encoding" >&5
5364 $as_echo "$ax_cv_check_cflags__Werror___Winvalid_source_encoding" >&6; }
5365 if test x"$ax_cv_check_cflags__Werror___Winvalid_source_encoding" = xyes; then :
5367 ac_cpp='$CPP $CPPFLAGS'
5368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winvalid-source-encoding" >&5
5373 $as_echo_n "checking whether C compiler accepts -Winvalid-source-encoding... " >&6; }
5374 if ${ax_cv_check_cflags__Werror___Winvalid_source_encoding+:} false; then :
5375 $as_echo_n "(cached) " >&6
5378 ax_check_save_flags=$CFLAGS
5379 CFLAGS="$CFLAGS -Werror -Winvalid-source-encoding"
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392 ax_cv_check_cflags__Werror___Winvalid_source_encoding=yes
5394 ax_cv_check_cflags__Werror___Winvalid_source_encoding=no
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 CFLAGS=$ax_check_save_flags
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Winvalid_source_encoding" >&5
5400 $as_echo "$ax_cv_check_cflags__Werror___Winvalid_source_encoding" >&6; }
5401 if test x"$ax_cv_check_cflags__Werror___Winvalid_source_encoding" = xyes; then :
5402 CFLAGS="$CFLAGS -Wno-invalid-source-encoding"
5408 ac_cpp='$CPP $CPPFLAGS'
5409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418 ac_cpp='$CPP $CPPFLAGS'
5419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425 ac_cpp='$CPP $CPPFLAGS'
5426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-zero-length" >&5
5431 $as_echo_n "checking whether C compiler accepts -Wformat-zero-length... " >&6; }
5432 if ${ax_cv_check_cflags__Werror___Wformat_zero_length+:} false; then :
5433 $as_echo_n "(cached) " >&6
5436 ax_check_save_flags=$CFLAGS
5437 CFLAGS="$CFLAGS -Werror -Wformat-zero-length"
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5449 if ac_fn_c_try_compile "$LINENO"; then :
5450 ax_cv_check_cflags__Werror___Wformat_zero_length=yes
5452 ax_cv_check_cflags__Werror___Wformat_zero_length=no
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 CFLAGS=$ax_check_save_flags
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_zero_length" >&5
5458 $as_echo "$ax_cv_check_cflags__Werror___Wformat_zero_length" >&6; }
5459 if test x"$ax_cv_check_cflags__Werror___Wformat_zero_length" = xyes; then :
5461 ac_cpp='$CPP $CPPFLAGS'
5462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-zero-length" >&5
5467 $as_echo_n "checking whether C compiler accepts -Wformat-zero-length... " >&6; }
5468 if ${ax_cv_check_cflags__Werror___Wformat_zero_length+:} false; then :
5469 $as_echo_n "(cached) " >&6
5472 ax_check_save_flags=$CFLAGS
5473 CFLAGS="$CFLAGS -Werror -Wformat-zero-length"
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5485 if ac_fn_c_try_compile "$LINENO"; then :
5486 ax_cv_check_cflags__Werror___Wformat_zero_length=yes
5488 ax_cv_check_cflags__Werror___Wformat_zero_length=no
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 CFLAGS=$ax_check_save_flags
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_zero_length" >&5
5494 $as_echo "$ax_cv_check_cflags__Werror___Wformat_zero_length" >&6; }
5495 if test x"$ax_cv_check_cflags__Werror___Wformat_zero_length" = xyes; then :
5496 CFLAGS="$CFLAGS -Wno-format-zero-length"
5502 ac_cpp='$CPP $CPPFLAGS'
5503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5512 ac_cpp='$CPP $CPPFLAGS'
5513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5519 ac_cpp='$CPP $CPPFLAGS'
5520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5
5525 $as_echo_n "checking whether C compiler accepts -Wformat-truncation... " >&6; }
5526 if ${ax_cv_check_cflags__Werror___Wformat_truncation+:} false; then :
5527 $as_echo_n "(cached) " >&6
5530 ax_check_save_flags=$CFLAGS
5531 CFLAGS="$CFLAGS -Werror -Wformat-truncation"
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5543 if ac_fn_c_try_compile "$LINENO"; then :
5544 ax_cv_check_cflags__Werror___Wformat_truncation=yes
5546 ax_cv_check_cflags__Werror___Wformat_truncation=no
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 CFLAGS=$ax_check_save_flags
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_truncation" >&5
5552 $as_echo "$ax_cv_check_cflags__Werror___Wformat_truncation" >&6; }
5553 if test x"$ax_cv_check_cflags__Werror___Wformat_truncation" = xyes; then :
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5
5561 $as_echo_n "checking whether C compiler accepts -Wformat-truncation... " >&6; }
5562 if ${ax_cv_check_cflags__Werror___Wformat_truncation+:} false; then :
5563 $as_echo_n "(cached) " >&6
5566 ax_check_save_flags=$CFLAGS
5567 CFLAGS="$CFLAGS -Werror -Wformat-truncation"
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5579 if ac_fn_c_try_compile "$LINENO"; then :
5580 ax_cv_check_cflags__Werror___Wformat_truncation=yes
5582 ax_cv_check_cflags__Werror___Wformat_truncation=no
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 CFLAGS=$ax_check_save_flags
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_truncation" >&5
5588 $as_echo "$ax_cv_check_cflags__Werror___Wformat_truncation" >&6; }
5589 if test x"$ax_cv_check_cflags__Werror___Wformat_truncation" = xyes; then :
5590 CFLAGS="$CFLAGS -Wno-format-truncation"
5596 ac_cpp='$CPP $CPPFLAGS'
5597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5606 ac_cpp='$CPP $CPPFLAGS'
5607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5613 ac_cpp='$CPP $CPPFLAGS'
5614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused" >&5
5619 $as_echo_n "checking whether C compiler accepts -Wunused... " >&6; }
5620 if ${ax_cv_check_cflags__Werror___Wunused+:} false; then :
5621 $as_echo_n "(cached) " >&6
5624 ax_check_save_flags=$CFLAGS
5625 CFLAGS="$CFLAGS -Werror -Wunused"
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5637 if ac_fn_c_try_compile "$LINENO"; then :
5638 ax_cv_check_cflags__Werror___Wunused=yes
5640 ax_cv_check_cflags__Werror___Wunused=no
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 CFLAGS=$ax_check_save_flags
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunused" >&5
5646 $as_echo "$ax_cv_check_cflags__Werror___Wunused" >&6; }
5647 if test x"$ax_cv_check_cflags__Werror___Wunused" = xyes; then :
5649 ac_cpp='$CPP $CPPFLAGS'
5650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused" >&5
5655 $as_echo_n "checking whether C compiler accepts -Wunused... " >&6; }
5656 if ${ax_cv_check_cflags__Werror___Wunused+:} false; then :
5657 $as_echo_n "(cached) " >&6
5660 ax_check_save_flags=$CFLAGS
5661 CFLAGS="$CFLAGS -Werror -Wunused"
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674 ax_cv_check_cflags__Werror___Wunused=yes
5676 ax_cv_check_cflags__Werror___Wunused=no
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 CFLAGS=$ax_check_save_flags
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunused" >&5
5682 $as_echo "$ax_cv_check_cflags__Werror___Wunused" >&6; }
5683 if test x"$ax_cv_check_cflags__Werror___Wunused" = xyes; then :
5684 CFLAGS="$CFLAGS -Wno-unused"
5690 ac_cpp='$CPP $CPPFLAGS'
5691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700 ac_cpp='$CPP $CPPFLAGS'
5701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706 ac_cpp='$CPP $CPPFLAGS'
5707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-parameter" >&5
5712 $as_echo_n "checking whether C compiler accepts -Wunused-parameter... " >&6; }
5713 if ${ax_cv_check_cflags__Werror___Wunused_parameter+:} false; then :
5714 $as_echo_n "(cached) " >&6
5717 ax_check_save_flags=$CFLAGS
5718 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5730 if ac_fn_c_try_compile "$LINENO"; then :
5731 ax_cv_check_cflags__Werror___Wunused_parameter=yes
5733 ax_cv_check_cflags__Werror___Wunused_parameter=no
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 CFLAGS=$ax_check_save_flags
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunused_parameter" >&5
5739 $as_echo "$ax_cv_check_cflags__Werror___Wunused_parameter" >&6; }
5740 if test x"$ax_cv_check_cflags__Werror___Wunused_parameter" = xyes; then :
5742 ac_cpp='$CPP $CPPFLAGS'
5743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-parameter" >&5
5748 $as_echo_n "checking whether C compiler accepts -Wunused-parameter... " >&6; }
5749 if ${ax_cv_check_cflags__Werror___Wunused_parameter+:} false; then :
5750 $as_echo_n "(cached) " >&6
5753 ax_check_save_flags=$CFLAGS
5754 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5766 if ac_fn_c_try_compile "$LINENO"; then :
5767 ax_cv_check_cflags__Werror___Wunused_parameter=yes
5769 ax_cv_check_cflags__Werror___Wunused_parameter=no
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 CFLAGS=$ax_check_save_flags
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunused_parameter" >&5
5775 $as_echo "$ax_cv_check_cflags__Werror___Wunused_parameter" >&6; }
5776 if test x"$ax_cv_check_cflags__Werror___Wunused_parameter" = xyes; then :
5777 CFLAGS="$CFLAGS -Wno-unused-parameter"
5783 ac_cpp='$CPP $CPPFLAGS'
5784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5793 ac_cpp='$CPP $CPPFLAGS'
5794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800 ac_cpp='$CPP $CPPFLAGS'
5801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wchar-subscripts" >&5
5806 $as_echo_n "checking whether C compiler accepts -Wchar-subscripts... " >&6; }
5807 if ${ax_cv_check_cflags__Werror___Wchar_subscripts+:} false; then :
5808 $as_echo_n "(cached) " >&6
5811 ax_check_save_flags=$CFLAGS
5812 CFLAGS="$CFLAGS -Werror -Wchar-subscripts"
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5824 if ac_fn_c_try_compile "$LINENO"; then :
5825 ax_cv_check_cflags__Werror___Wchar_subscripts=yes
5827 ax_cv_check_cflags__Werror___Wchar_subscripts=no
5829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830 CFLAGS=$ax_check_save_flags
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wchar_subscripts" >&5
5833 $as_echo "$ax_cv_check_cflags__Werror___Wchar_subscripts" >&6; }
5834 if test x"$ax_cv_check_cflags__Werror___Wchar_subscripts" = xyes; then :
5836 ac_cpp='$CPP $CPPFLAGS'
5837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wchar-subscripts" >&5
5842 $as_echo_n "checking whether C compiler accepts -Wchar-subscripts... " >&6; }
5843 if ${ax_cv_check_cflags__Werror___Wchar_subscripts+:} false; then :
5844 $as_echo_n "(cached) " >&6
5847 ax_check_save_flags=$CFLAGS
5848 CFLAGS="$CFLAGS -Werror -Wchar-subscripts"
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5860 if ac_fn_c_try_compile "$LINENO"; then :
5861 ax_cv_check_cflags__Werror___Wchar_subscripts=yes
5863 ax_cv_check_cflags__Werror___Wchar_subscripts=no
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 CFLAGS=$ax_check_save_flags
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wchar_subscripts" >&5
5869 $as_echo "$ax_cv_check_cflags__Werror___Wchar_subscripts" >&6; }
5870 if test x"$ax_cv_check_cflags__Werror___Wchar_subscripts" = xyes; then :
5871 CFLAGS="$CFLAGS -Wno-char-subscripts"
5877 ac_cpp='$CPP $CPPFLAGS'
5878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5887 ac_cpp='$CPP $CPPFLAGS'
5888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5894 ac_cpp='$CPP $CPPFLAGS'
5895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsign-compare" >&5
5900 $as_echo_n "checking whether C compiler accepts -Wsign-compare... " >&6; }
5901 if ${ax_cv_check_cflags__Werror___Wsign_compare+:} false; then :
5902 $as_echo_n "(cached) " >&6
5905 ax_check_save_flags=$CFLAGS
5906 CFLAGS="$CFLAGS -Werror -Wsign-compare"
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5918 if ac_fn_c_try_compile "$LINENO"; then :
5919 ax_cv_check_cflags__Werror___Wsign_compare=yes
5921 ax_cv_check_cflags__Werror___Wsign_compare=no
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924 CFLAGS=$ax_check_save_flags
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wsign_compare" >&5
5927 $as_echo "$ax_cv_check_cflags__Werror___Wsign_compare" >&6; }
5928 if test x"$ax_cv_check_cflags__Werror___Wsign_compare" = xyes; then :
5930 ac_cpp='$CPP $CPPFLAGS'
5931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsign-compare" >&5
5936 $as_echo_n "checking whether C compiler accepts -Wsign-compare... " >&6; }
5937 if ${ax_cv_check_cflags__Werror___Wsign_compare+:} false; then :
5938 $as_echo_n "(cached) " >&6
5941 ax_check_save_flags=$CFLAGS
5942 CFLAGS="$CFLAGS -Werror -Wsign-compare"
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5954 if ac_fn_c_try_compile "$LINENO"; then :
5955 ax_cv_check_cflags__Werror___Wsign_compare=yes
5957 ax_cv_check_cflags__Werror___Wsign_compare=no
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 CFLAGS=$ax_check_save_flags
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wsign_compare" >&5
5963 $as_echo "$ax_cv_check_cflags__Werror___Wsign_compare" >&6; }
5964 if test x"$ax_cv_check_cflags__Werror___Wsign_compare" = xyes; then :
5965 CFLAGS="$CFLAGS -Wno-sign-compare"
5971 ac_cpp='$CPP $CPPFLAGS'
5972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5981 ac_cpp='$CPP $CPPFLAGS'
5982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5988 ac_cpp='$CPP $CPPFLAGS'
5989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wempty-body" >&5
5994 $as_echo_n "checking whether C compiler accepts -Wempty-body... " >&6; }
5995 if ${ax_cv_check_cflags__Werror___Wempty_body+:} false; then :
5996 $as_echo_n "(cached) " >&6
5999 ax_check_save_flags=$CFLAGS
6000 CFLAGS="$CFLAGS -Werror -Wempty-body"
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6012 if ac_fn_c_try_compile "$LINENO"; then :
6013 ax_cv_check_cflags__Werror___Wempty_body=yes
6015 ax_cv_check_cflags__Werror___Wempty_body=no
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 CFLAGS=$ax_check_save_flags
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wempty_body" >&5
6021 $as_echo "$ax_cv_check_cflags__Werror___Wempty_body" >&6; }
6022 if test x"$ax_cv_check_cflags__Werror___Wempty_body" = xyes; then :
6024 ac_cpp='$CPP $CPPFLAGS'
6025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wempty-body" >&5
6030 $as_echo_n "checking whether C compiler accepts -Wempty-body... " >&6; }
6031 if ${ax_cv_check_cflags__Werror___Wempty_body+:} false; then :
6032 $as_echo_n "(cached) " >&6
6035 ax_check_save_flags=$CFLAGS
6036 CFLAGS="$CFLAGS -Werror -Wempty-body"
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6048 if ac_fn_c_try_compile "$LINENO"; then :
6049 ax_cv_check_cflags__Werror___Wempty_body=yes
6051 ax_cv_check_cflags__Werror___Wempty_body=no
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 CFLAGS=$ax_check_save_flags
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wempty_body" >&5
6057 $as_echo "$ax_cv_check_cflags__Werror___Wempty_body" >&6; }
6058 if test x"$ax_cv_check_cflags__Werror___Wempty_body" = xyes; then :
6059 CFLAGS="$CFLAGS -Wno-empty-body"
6065 ac_cpp='$CPP $CPPFLAGS'
6066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075 ac_cpp='$CPP $CPPFLAGS'
6076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6082 ac_cpp='$CPP $CPPFLAGS'
6083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress" >&5
6088 $as_echo_n "checking whether C compiler accepts -Waddress... " >&6; }
6089 if ${ax_cv_check_cflags__Werror___Waddress+:} false; then :
6090 $as_echo_n "(cached) " >&6
6093 ax_check_save_flags=$CFLAGS
6094 CFLAGS="$CFLAGS -Werror -Waddress"
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6106 if ac_fn_c_try_compile "$LINENO"; then :
6107 ax_cv_check_cflags__Werror___Waddress=yes
6109 ax_cv_check_cflags__Werror___Waddress=no
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112 CFLAGS=$ax_check_save_flags
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Waddress" >&5
6115 $as_echo "$ax_cv_check_cflags__Werror___Waddress" >&6; }
6116 if test x"$ax_cv_check_cflags__Werror___Waddress" = xyes; then :
6118 ac_cpp='$CPP $CPPFLAGS'
6119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waddress" >&5
6124 $as_echo_n "checking whether C compiler accepts -Waddress... " >&6; }
6125 if ${ax_cv_check_cflags__Werror___Waddress+:} false; then :
6126 $as_echo_n "(cached) " >&6
6129 ax_check_save_flags=$CFLAGS
6130 CFLAGS="$CFLAGS -Werror -Waddress"
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6142 if ac_fn_c_try_compile "$LINENO"; then :
6143 ax_cv_check_cflags__Werror___Waddress=yes
6145 ax_cv_check_cflags__Werror___Waddress=no
6147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148 CFLAGS=$ax_check_save_flags
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Waddress" >&5
6151 $as_echo "$ax_cv_check_cflags__Werror___Waddress" >&6; }
6152 if test x"$ax_cv_check_cflags__Werror___Waddress" = xyes; then :
6153 CFLAGS="$CFLAGS -Wno-address"
6159 ac_cpp='$CPP $CPPFLAGS'
6160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6169 ac_cpp='$CPP $CPPFLAGS'
6170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system has IPv6 support" >&5
6180 $as_echo_n "checking if your system has IPv6 support... " >&6; }
6181 if ${ac_cv_ip6+:} false; then :
6182 $as_echo_n "(cached) " >&6
6186 LIBS="$LIBS $SOCKLIB"
6187 if test "$cross_compiling" = yes; then :
6188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6190 as_fn_error $? "cannot run
test program
while cross compiling
6191 See \
`config.log' for more details" "$LINENO" 5; }
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6196 #include <sys/types.h>
6197 #include <sys/socket.h>
6199 int s = socket(AF_INET6, SOCK_STREAM, 0);
6200 exit(0); /* We only check if the code compiles, that's enough. We can deal with missing runtime IPv6 */
6204 if ac_fn_c_try_run "$LINENO"; then :
6209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6210 conftest.$ac_objext conftest.beam conftest.$ac_ext
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip6" >&5
6216 $as_echo "$ac_cv_ip6" >&6; }
6217 if test "$ac_cv_ip6" = "no"; then
6218 as_fn_error $? "Your system does not support IPv6" "$LINENO" 5
6223 ac_cpp='$CPP $CPPFLAGS'
6224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6228 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6229 # On Suns, sometimes $CPP names a directory.
6230 if test -n "$CPP" && test -d "$CPP"; then
6233 if test -z "$CPP"; then
6234 if ${ac_cv_prog_CPP+:} false; then :
6235 $as_echo_n "(cached) " >&6
6237 # Double quotes because CPP needs to be expanded
6238 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6241 for ac_c_preproc_warn_flag in '' yes
6243 # Use a header file that comes with gcc, so configuring glibc
6244 # with a fresh cross-compiler works.
6245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6246 # <limits.h> exists even on freestanding compilers.
6247 # On the NeXT, cc -E runs the code through the compiler's parser,
6248 # not just through cpp. "Syntax error" is here to catch this case.
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6252 # include <limits.h>
6254 # include <assert.h>
6258 if ac_fn_c_try_cpp "$LINENO"; then :
6261 # Broken: fails on valid input.
6264 rm -f conftest.err conftest.i conftest.$ac_ext
6266 # OK, works on sane cases. Now check whether nonexistent headers
6267 # can be detected and how.
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 #include <ac_nonexistent.h>
6272 if ac_fn_c_try_cpp "$LINENO"; then :
6273 # Broken: success on invalid input.
6276 # Passes both tests.
6280 rm -f conftest.err conftest.i conftest.$ac_ext
6283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6284 rm -f conftest.i conftest.err conftest.
$ac_ext
6285 if $ac_preproc_ok; then :
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6298 $as_echo "$CPP" >&6; }
6300 for ac_c_preproc_warn_flag
in '' yes
6302 # Use a header file that comes with gcc, so configuring glibc
6303 # with a fresh cross-compiler works.
6304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6305 # <limits.h> exists even on freestanding compilers.
6306 # On the NeXT, cc -E runs the code through the compiler's parser,
6307 # not just through cpp. "Syntax error" is here to catch this case.
6308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6311 # include <limits.h>
6313 # include <assert.h>
6317 if ac_fn_c_try_cpp
"$LINENO"; then :
6320 # Broken: fails on valid input.
6323 rm -f conftest.err conftest.i conftest.
$ac_ext
6325 # OK, works on sane cases. Now check whether nonexistent headers
6326 # can be detected and how.
6327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 #include <ac_nonexistent.h>
6331 if ac_fn_c_try_cpp
"$LINENO"; then :
6332 # Broken: success on invalid input.
6335 # Passes both tests.
6339 rm -f conftest.err conftest.i conftest.
$ac_ext
6342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6343 rm -f conftest.i conftest.err conftest.
$ac_ext
6344 if $ac_preproc_ok; then :
6347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6349 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6350 See \`config.log' for more details" "$LINENO" 5; }
6354 ac_cpp
='$CPP $CPPFLAGS'
6355 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6361 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6362 if ${ac_cv_path_GREP+:} false
; then :
6363 $as_echo_n "(cached) " >&6
6365 if test -z "$GREP"; then
6366 ac_path_GREP_found
=false
6367 # Loop through the user's path and test for each of PROGNAME-LIST
6368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6369 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6372 test -z "$as_dir" && as_dir
=.
6373 for ac_prog
in grep ggrep
; do
6374 for ac_exec_ext
in '' $ac_executable_extensions; do
6375 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6376 as_fn_executable_p
"$ac_path_GREP" || continue
6377 # Check for GNU ac_path_GREP and select it if it is found.
6378 # Check for GNU $ac_path_GREP
6379 case `"$ac_path_GREP" --version 2>&1` in
6381 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6384 $as_echo_n 0123456789 >"conftest.in"
6387 cat "conftest.in" "conftest.in" >"conftest.tmp"
6388 mv "conftest.tmp" "conftest.in"
6389 cp "conftest.in" "conftest.nl"
6390 $as_echo 'GREP' >> "conftest.nl"
6391 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
6392 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
6393 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6394 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6395 # Best one so far, save it but keep looking for a better one
6396 ac_cv_path_GREP
="$ac_path_GREP"
6397 ac_path_GREP_max
=$ac_count
6399 # 10*(2^10) chars as input seems more than enough
6400 test $ac_count -gt 10 && break
6402 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6405 $ac_path_GREP_found && break 3
6410 if test -z "$ac_cv_path_GREP"; then
6411 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6414 ac_cv_path_GREP
=$GREP
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6419 $as_echo "$ac_cv_path_GREP" >&6; }
6420 GREP
="$ac_cv_path_GREP"
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6424 $as_echo_n "checking for egrep... " >&6; }
6425 if ${ac_cv_path_EGREP+:} false
; then :
6426 $as_echo_n "(cached) " >&6
6428 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
6429 then ac_cv_path_EGREP
="$GREP -E"
6431 if test -z "$EGREP"; then
6432 ac_path_EGREP_found
=false
6433 # Loop through the user's path and test for each of PROGNAME-LIST
6434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6435 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6438 test -z "$as_dir" && as_dir
=.
6439 for ac_prog
in egrep; do
6440 for ac_exec_ext
in '' $ac_executable_extensions; do
6441 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6442 as_fn_executable_p
"$ac_path_EGREP" || continue
6443 # Check for GNU ac_path_EGREP and select it if it is found.
6444 # Check for GNU $ac_path_EGREP
6445 case `"$ac_path_EGREP" --version 2>&1` in
6447 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6450 $as_echo_n 0123456789 >"conftest.in"
6453 cat "conftest.in" "conftest.in" >"conftest.tmp"
6454 mv "conftest.tmp" "conftest.in"
6455 cp "conftest.in" "conftest.nl"
6456 $as_echo 'EGREP' >> "conftest.nl"
6457 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
6458 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
6459 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6460 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6461 # Best one so far, save it but keep looking for a better one
6462 ac_cv_path_EGREP
="$ac_path_EGREP"
6463 ac_path_EGREP_max
=$ac_count
6465 # 10*(2^10) chars as input seems more than enough
6466 test $ac_count -gt 10 && break
6468 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6471 $ac_path_EGREP_found && break 3
6476 if test -z "$ac_cv_path_EGREP"; then
6477 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6480 ac_cv_path_EGREP
=$EGREP
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6486 $as_echo "$ac_cv_path_EGREP" >&6; }
6487 EGREP
="$ac_cv_path_EGREP"
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6491 $as_echo_n "checking for ANSI C header files... " >&6; }
6492 if ${ac_cv_header_stdc+:} false
; then :
6493 $as_echo_n "(cached) " >&6
6495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6510 if ac_fn_c_try_compile
"$LINENO"; then :
6511 ac_cv_header_stdc
=yes
6513 ac_cv_header_stdc
=no
6515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6517 if test $ac_cv_header_stdc = yes; then
6518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525 $EGREP "memchr" >/dev
/null
2>&1; then :
6528 ac_cv_header_stdc
=no
6534 if test $ac_cv_header_stdc = yes; then
6535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6542 $EGREP "free" >/dev
/null
2>&1; then :
6545 ac_cv_header_stdc
=no
6551 if test $ac_cv_header_stdc = yes; then
6552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6553 if test "$cross_compiling" = yes; then :
6556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6560 #if ((' ' & 0x0FF) == 0x020)
6561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6564 # define ISLOWER(c) \
6565 (('a' <= (c) && (c) <= 'i') \
6566 || ('j' <= (c) && (c) <= 'r') \
6567 || ('s' <= (c) && (c) <= 'z'))
6568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6576 for (i = 0; i < 256; i++)
6577 if (XOR (islower (i), ISLOWER (i))
6578 || toupper (i) != TOUPPER (i))
6583 if ac_fn_c_try_run
"$LINENO"; then :
6586 ac_cv_header_stdc
=no
6588 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6589 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6595 $as_echo "$ac_cv_header_stdc" >&6; }
6596 if test $ac_cv_header_stdc = yes; then
6598 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6602 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6603 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6604 inttypes.h stdint.h unistd.h
6606 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6607 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6609 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6610 cat >>confdefs.h
<<_ACEOF
6611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6619 ac_fn_c_check_header_mongrel
"$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
6620 if test "x$ac_cv_header_sys_param_h" = xyes
; then :
6622 $as_echo "#define PARAMH /**/" >>confdefs.h
6627 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6628 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
6630 $as_echo "#define STDLIBH /**/" >>confdefs.h
6635 ac_fn_c_check_header_mongrel
"$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
6636 if test "x$ac_cv_header_stddef_h" = xyes
; then :
6638 $as_echo "#define STDDEFH /**/" >>confdefs.h
6643 ac_fn_c_check_header_mongrel
"$LINENO" "sys/syslog.h" "ac_cv_header_sys_syslog_h" "$ac_includes_default"
6644 if test "x$ac_cv_header_sys_syslog_h" = xyes
; then :
6646 $as_echo "#define SYSSYSLOGH /**/" >>confdefs.h
6651 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
6652 if test "x$ac_cv_header_unistd_h" = xyes
; then :
6654 $as_echo "#define UNISTDH /**/" >>confdefs.h
6659 ac_fn_c_check_header_mongrel
"$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
6660 if test "x$ac_cv_header_string_h" = xyes
; then :
6662 $as_echo "#define STRINGH /**/" >>confdefs.h
6667 ac_fn_c_check_header_mongrel
"$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
6668 if test "x$ac_cv_header_strings_h" = xyes
; then :
6670 $as_echo "#define STRINGSH /**/" >>confdefs.h
6675 ac_fn_c_check_header_mongrel
"$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
6676 if test "x$ac_cv_header_malloc_h" = xyes
; then :
6678 $as_echo "#define MALLOCH <malloc.h>" >>confdefs.h
6683 ac_fn_c_check_header_mongrel
"$LINENO" "sys/rusage.h" "ac_cv_header_sys_rusage_h" "$ac_includes_default"
6684 if test "x$ac_cv_header_sys_rusage_h" = xyes
; then :
6686 $as_echo "#define RUSAGEH /**/" >>confdefs.h
6691 ac_fn_c_check_header_mongrel
"$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
6692 if test "x$ac_cv_header_glob_h" = xyes
; then :
6694 $as_echo "#define GLOBH /**/" >>confdefs.h
6699 for ac_header
in stdint.h inttypes.h
6701 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6702 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6703 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6704 cat >>confdefs.h
<<_ACEOF
6705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6713 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6714 if ${ac_cv_c_const+:} false
; then :
6715 $as_echo_n "(cached) " >&6
6717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6725 /* Ultrix mips cc rejects this sort of thing. */
6726 typedef int charset[2];
6727 const charset cs = { 0, 0 };
6728 /* SunOS 4.1.1 cc rejects this. */
6729 char const *const *pcpcc;
6731 /* NEC SVR4.0.2 mips cc rejects this. */
6732 struct point {int x, y;};
6733 static struct point const zero = {0,0};
6734 /* AIX XL C 1.02.0.0 rejects this.
6735 It does not let you subtract one const X* pointer from another in
6736 an arm of an if-expression whose if-part is not a constant
6738 const char *g = "string";
6739 pcpcc = &g + (g ? g-g : 0);
6740 /* HPUX 7.0 cc rejects these. */
6742 ppc = (char**) pcpcc;
6743 pcpcc = (char const *const *) ppc;
6744 { /* SCO 3.2v4 cc rejects this sort of thing. */
6747 char const *s = 0 ? (char *) 0 : (char const *) 0;
6752 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6754 const int *foo = &x[0];
6757 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6758 typedef const int *iptr;
6762 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6763 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6764 struct s { int j; const int *ap[3]; } bx;
6765 struct s *b = &bx; b->j = 5;
6767 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6771 return !cs[0] && !zero.x;
6778 if ac_fn_c_try_compile
"$LINENO"; then :
6783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6786 $as_echo "$ac_cv_c_const" >&6; }
6787 if test $ac_cv_c_const = no
; then
6789 $as_echo "#define const /**/" >>confdefs.h
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6794 $as_echo_n "checking for inline... " >&6; }
6795 if ${ac_cv_c_inline+:} false
; then :
6796 $as_echo_n "(cached) " >&6
6799 for ac_kw
in inline __inline__ __inline
; do
6800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6804 static $ac_kw foo_t static_foo () {return 0; }
6805 $ac_kw foo_t foo () {return 0; }
6809 if ac_fn_c_try_compile
"$LINENO"; then :
6810 ac_cv_c_inline
=$ac_kw
6812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6813 test "$ac_cv_c_inline" != no
&& break
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6818 $as_echo "$ac_cv_c_inline" >&6; }
6820 case $ac_cv_c_inline in
6823 case $ac_cv_c_inline in
6825 *) ac_val
=$ac_cv_c_inline;;
6827 cat >>confdefs.h
<<_ACEOF
6829 #define inline $ac_val
6836 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6837 if test "x$ac_cv_type_mode_t" = xyes
; then :
6841 cat >>confdefs.h
<<_ACEOF
6847 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6848 if test "x$ac_cv_type_size_t" = xyes
; then :
6852 cat >>confdefs.h
<<_ACEOF
6853 #define size_t unsigned int
6859 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6860 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6862 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6865 for ac_type
in 'int' 'long int' 'long long int'; do
6866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6868 $ac_includes_default
6872 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6874 return test_array [0];
6880 if ac_fn_c_try_compile
"$LINENO"; then :
6882 cat >>confdefs.h
<<_ACEOF
6883 #define intptr_t $ac_type
6888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6889 test -z "$ac_type" && break
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6896 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6897 if ${ac_cv_header_time+:} false
; then :
6898 $as_echo_n "(cached) " >&6
6900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902 #include <sys/types.h>
6903 #include <sys/time.h>
6909 if ((struct tm *) 0)
6915 if ac_fn_c_try_compile
"$LINENO"; then :
6916 ac_cv_header_time
=yes
6918 ac_cv_header_time
=no
6920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6923 $as_echo "$ac_cv_header_time" >&6; }
6924 if test $ac_cv_header_time = yes; then
6926 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6931 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6932 if ${ac_cv_header_sys_wait_h+:} false
; then :
6933 $as_echo_n "(cached) " >&6
6935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6937 #include <sys/types.h>
6938 #include <sys/wait.h>
6940 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6943 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6951 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6956 if ac_fn_c_try_compile
"$LINENO"; then :
6957 ac_cv_header_sys_wait_h
=yes
6959 ac_cv_header_sys_wait_h
=no
6961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6964 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6965 if test $ac_cv_header_sys_wait_h = yes; then
6967 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6972 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6973 if ${ac_cv_struct_tm+:} false
; then :
6974 $as_echo_n "(cached) " >&6
6976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6978 #include <sys/types.h>
6985 int *p = &tm.tm_sec;
6991 if ac_fn_c_try_compile
"$LINENO"; then :
6992 ac_cv_struct_tm
=time.h
6994 ac_cv_struct_tm
=sys
/time.h
6996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6999 $as_echo "$ac_cv_struct_tm" >&6; }
7000 if test $ac_cv_struct_tm = sys
/time.h
; then
7002 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7007 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7008 if ${ac_cv_type_uid_t+:} false
; then :
7009 $as_echo_n "(cached) " >&6
7011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7013 #include <sys/types.h>
7016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7017 $EGREP "uid_t" >/dev
/null
2>&1; then :
7018 ac_cv_type_uid_t
=yes
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7026 $as_echo "$ac_cv_type_uid_t" >&6; }
7027 if test $ac_cv_type_uid_t = no
; then
7029 $as_echo "#define uid_t int" >>confdefs.h
7032 $as_echo "#define gid_t int" >>confdefs.h
7036 # The cast to long int works around a bug in the HP C Compiler
7037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7038 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7039 # This bug is HP SR number 8606223364.
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
7041 $as_echo_n "checking size of short... " >&6; }
7042 if ${ac_cv_sizeof_short+:} false
; then :
7043 $as_echo_n "(cached) " >&6
7045 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
7048 if test "$ac_cv_type_short" = yes; then
7049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7051 as_fn_error
77 "cannot compute sizeof (short)
7052 See \`config.log' for more details" "$LINENO" 5; }
7054 ac_cv_sizeof_short
=0
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
7060 $as_echo "$ac_cv_sizeof_short" >&6; }
7064 cat >>confdefs.h
<<_ACEOF
7065 #define SIZEOF_SHORT $ac_cv_sizeof_short
7069 # The cast to long int works around a bug in the HP C Compiler
7070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7072 # This bug is HP SR number 8606223364.
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
7074 $as_echo_n "checking size of int... " >&6; }
7075 if ${ac_cv_sizeof_int+:} false
; then :
7076 $as_echo_n "(cached) " >&6
7078 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
7081 if test "$ac_cv_type_int" = yes; then
7082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7084 as_fn_error
77 "cannot compute sizeof (int)
7085 See \`config.log' for more details" "$LINENO" 5; }
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
7093 $as_echo "$ac_cv_sizeof_int" >&6; }
7097 cat >>confdefs.h
<<_ACEOF
7098 #define SIZEOF_INT $ac_cv_sizeof_int
7102 # The cast to long int works around a bug in the HP C Compiler
7103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7105 # This bug is HP SR number 8606223364.
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7107 $as_echo_n "checking size of long... " >&6; }
7108 if ${ac_cv_sizeof_long+:} false
; then :
7109 $as_echo_n "(cached) " >&6
7111 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7114 if test "$ac_cv_type_long" = yes; then
7115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7117 as_fn_error
77 "cannot compute sizeof (long)
7118 See \`config.log' for more details" "$LINENO" 5; }
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7126 $as_echo "$ac_cv_sizeof_long" >&6; }
7130 cat >>confdefs.h
<<_ACEOF
7131 #define SIZEOF_LONG $ac_cv_sizeof_long
7135 if test "$ac_cv_sizeof_int" = 2 ; then
7136 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7137 if test "x$ac_cv_type_int16_t" = xyes
; then :
7141 cat >>confdefs.h
<<_ACEOF
7147 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
7148 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
7152 cat >>confdefs.h
<<_ACEOF
7153 #define u_int16_t unsigned int
7158 elif test "$ac_cv_sizeof_short" = 2 ; then
7159 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7160 if test "x$ac_cv_type_int16_t" = xyes
; then :
7164 cat >>confdefs.h
<<_ACEOF
7165 #define int16_t short
7170 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
7171 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
7175 cat >>confdefs.h
<<_ACEOF
7176 #define u_int16_t unsigned short
7182 as_fn_error $?
"Cannot find a type with size of 16 bits" "$LINENO" 5
7184 if test "$ac_cv_sizeof_int" = 4 ; then
7185 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7186 if test "x$ac_cv_type_int32_t" = xyes
; then :
7190 cat >>confdefs.h
<<_ACEOF
7196 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
7197 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
7201 cat >>confdefs.h
<<_ACEOF
7202 #define u_int32_t unsigned int
7207 elif test "$ac_cv_sizeof_short" = 4 ; then
7208 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7209 if test "x$ac_cv_type_int32_t" = xyes
; then :
7213 cat >>confdefs.h
<<_ACEOF
7214 #define int32_t short
7219 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
7220 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
7224 cat >>confdefs.h
<<_ACEOF
7225 #define u_int32_t unsigned short
7230 elif test "$ac_cv_sizeof_long" = 4 ; then
7231 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7232 if test "x$ac_cv_type_int32_t" = xyes
; then :
7236 cat >>confdefs.h
<<_ACEOF
7237 #define int32_t long
7242 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
7243 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
7247 cat >>confdefs.h
<<_ACEOF
7248 #define u_int32_t unsigned long
7254 as_fn_error $?
"Cannot find a type with size of 32 bits" "$LINENO" 5
7256 # The cast to long int works around a bug in the HP C Compiler
7257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7259 # This bug is HP SR number 8606223364.
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of rlim_t" >&5
7261 $as_echo_n "checking size of rlim_t... " >&6; }
7262 if ${ac_cv_sizeof_rlim_t+:} false
; then :
7263 $as_echo_n "(cached) " >&6
7265 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (rlim_t))" "ac_cv_sizeof_rlim_t" "$ac_includes_default"; then :
7268 if test "$ac_cv_type_rlim_t" = yes; then
7269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7271 as_fn_error
77 "cannot compute sizeof (rlim_t)
7272 See \`config.log' for more details" "$LINENO" 5; }
7274 ac_cv_sizeof_rlim_t
=0
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_rlim_t" >&5
7280 $as_echo "$ac_cv_sizeof_rlim_t" >&6; }
7284 cat >>confdefs.h
<<_ACEOF
7285 #define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t
7289 if test "$ac_cv_sizeof_rlim_t" = 8 ; then
7291 $as_echo "#define LONG_LONG_RLIM_T /**/" >>confdefs.h
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of nonblocking sockets you have" >&5
7297 $as_echo_n "checking what kind of nonblocking sockets you have... " >&6; }
7298 if ${ac_cv_nonblocking+:} false
; then :
7299 $as_echo_n "(cached) " >&6
7303 LIBS
="$LIBS $SOCKLIB"
7304 if test "$cross_compiling" = yes; then :
7305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7307 as_fn_error $?
"cannot run test program while cross compiling
7308 See \`config.log' for more details" "$LINENO" 5; }
7310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7313 #include <sys/types.h>
7314 #include <sys/socket.h>
7316 #include <sys/ioctl.h>
7317 #include <sys/file.h>
7325 int f, l = sizeof(x);
7326 f = socket(AF_INET, SOCK_DGRAM, 0);
7327 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK))) {
7328 signal(SIGALRM, alarmed);
7330 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
7339 if ac_fn_c_try_run
"$LINENO"; then :
7340 ac_cv_nonblocking
=O_NONBLOCK
7343 if test "$cross_compiling" = yes; then :
7344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7346 as_fn_error $?
"cannot run test program while cross compiling
7347 See \`config.log' for more details" "$LINENO" 5; }
7349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7352 #include <sys/types.h>
7353 #include <sys/socket.h>
7355 #include <sys/ioctl.h>
7356 #include <sys/file.h>
7364 int f, l = sizeof(x);
7365 f = socket(AF_INET, SOCK_DGRAM, 0);
7366 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY))) {
7367 signal(SIGALRM, alarmed);
7369 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
7377 if ac_fn_c_try_run
"$LINENO"; then :
7378 ac_cv_nonblocking
=O_NDELAY
7381 if test "$cross_compiling" = yes; then :
7382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7384 as_fn_error $?
"cannot run test program while cross compiling
7385 See \`config.log' for more details" "$LINENO" 5; }
7387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7388 /* end confdefs.h. */
7390 #include <sys/types.h>
7391 #include <sys/socket.h>
7393 #include <sys/ioctl.h>
7394 #include <sys/file.h>
7402 int f, l = sizeof(x);
7403 f = socket(AF_INET, SOCK_DGRAM, 0);
7404 if (f >= 0 && !(fcntl(f, F_SETFL, FIONBIO))) {
7405 signal(SIGALRM, alarmed);
7407 recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
7415 if ac_fn_c_try_run
"$LINENO"; then :
7416 ac_cv_nonblocking
=FIONBIO
7418 ac_cv_nonblocking
=none
7420 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7421 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7425 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7426 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7430 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7431 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nonblocking" >&5
7436 $as_echo "$ac_cv_nonblocking" >&6; }
7437 if test "$ac_cv_nonblocking" = "O_NONBLOCK"; then
7439 $as_echo "#define NBLOCK_POSIX /**/" >>confdefs.h
7441 elif test "$ac_cv_nonblocking" = "O_NDELAY"; then
7443 $as_echo "#define NBLOCK_BSD /**/" >>confdefs.h
7445 elif test "$ac_cv_nonblocking" = "FIONBIO"; then
7447 $as_echo "#define NBLOCK_SYSV /**/" >>confdefs.h
7451 if test $ac_cv_c_compiler_gnu = yes; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
7453 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
7454 if ${ac_cv_prog_gcc_traditional+:} false
; then :
7455 $as_echo_n "(cached) " >&6
7457 ac_pattern
="Autoconf.*'x'"
7458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7464 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
7465 ac_cv_prog_gcc_traditional
=yes
7467 ac_cv_prog_gcc_traditional
=no
7472 if test $ac_cv_prog_gcc_traditional = no
; then
7473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7479 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
7480 ac_cv_prog_gcc_traditional
=yes
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
7487 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
7488 if test $ac_cv_prog_gcc_traditional = yes; then
7489 CC
="$CC -traditional"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
7494 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
7495 if ${ac_cv_func_setpgrp_void+:} false
; then :
7496 $as_echo_n "(cached) " >&6
7498 if test "$cross_compiling" = yes; then :
7499 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
7501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503 $ac_includes_default
7507 /* If this system has a BSD-style setpgrp which takes arguments,
7508 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
7509 exit successfully. */
7510 return setpgrp (1,1) != -1;
7515 if ac_fn_c_try_run
"$LINENO"; then :
7516 ac_cv_func_setpgrp_void
=no
7518 ac_cv_func_setpgrp_void
=yes
7520 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7521 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
7526 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
7527 if test $ac_cv_func_setpgrp_void = yes; then
7529 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
7533 if ${ac_cv_func_setvbuf_reversed+:} false
; then :
7534 $as_echo_n "(cached) " >&6
7536 ac_cv_func_setvbuf_reversed
=no
7540 for ac_func
in snprintf
7542 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
7543 if test "x$ac_cv_func_snprintf" = xyes
; then :
7544 cat >>confdefs.h
<<_ACEOF
7545 #define HAVE_SNPRINTF 1
7548 $as_echo "#define HAVE_SNPRINTF /**/" >>confdefs.h
7553 for ac_func
in vsnprintf
7555 ac_fn_c_check_func
"$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
7556 if test "x$ac_cv_func_vsnprintf" = xyes
; then :
7557 cat >>confdefs.h
<<_ACEOF
7558 #define HAVE_VSNPRINTF 1
7561 $as_echo "#define HAVE_VSNPRINTF /**/" >>confdefs.h
7566 for ac_func
in strlcpy
7568 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
7569 if test "x$ac_cv_func_strlcpy" = xyes
; then :
7570 cat >>confdefs.h
<<_ACEOF
7571 #define HAVE_STRLCPY 1
7574 $as_echo "#define HAVE_STRLCPY /**/" >>confdefs.h
7579 for ac_func
in strlcat
7581 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
7582 if test "x$ac_cv_func_strlcat" = xyes
; then :
7583 cat >>confdefs.h
<<_ACEOF
7584 #define HAVE_STRLCAT 1
7587 $as_echo "#define HAVE_STRLCAT /**/" >>confdefs.h
7592 for ac_func
in strlncat
7594 ac_fn_c_check_func
"$LINENO" "strlncat" "ac_cv_func_strlncat"
7595 if test "x$ac_cv_func_strlncat" = xyes
; then :
7596 cat >>confdefs.h
<<_ACEOF
7597 #define HAVE_STRLNCAT 1
7600 $as_echo "#define HAVE_STRLNCAT /**/" >>confdefs.h
7605 for ac_func
in inet_pton
7607 ac_fn_c_check_func
"$LINENO" "inet_pton" "ac_cv_func_inet_pton"
7608 if test "x$ac_cv_func_inet_pton" = xyes
; then :
7609 cat >>confdefs.h
<<_ACEOF
7610 #define HAVE_INET_PTON 1
7613 $as_echo "#define HAVE_INET_PTON /**/" >>confdefs.h
7618 for ac_func
in inet_ntop
7620 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
7621 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
7622 cat >>confdefs.h
<<_ACEOF
7623 #define HAVE_INET_NTOP 1
7626 $as_echo "#define HAVE_INET_NTOP /**/" >>confdefs.h
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99 variable length arrays are supported" >&5
7632 $as_echo_n "checking if C99 variable length arrays are supported... " >&6; }
7633 if ${ac_cv_varlen_arrays+:} false
; then :
7634 $as_echo_n "(cached) " >&6
7637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7654 if ac_fn_c_try_compile
"$LINENO"; then :
7655 ac_cv_varlen_arrays
=yes
7657 ac_cv_varlen_arrays
=no
7659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_varlen_arrays" >&5
7663 $as_echo "$ac_cv_varlen_arrays" >&6; }
7664 if test "$ac_cv_varlen_arrays" = "yes" ; then
7666 $as_echo "#define HAVE_C99_VARLEN_ARRAY /**/" >>confdefs.h
7670 for ac_func
in setrlimit
7672 ac_fn_c_check_func
"$LINENO" "setrlimit" "ac_cv_func_setrlimit"
7673 if test "x$ac_cv_func_setrlimit" = xyes
; then :
7674 cat >>confdefs.h
<<_ACEOF
7675 #define HAVE_SETRLIMIT 1
7681 for ac_func
in vprintf
7683 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
7684 if test "x$ac_cv_func_vprintf" = xyes
; then :
7685 cat >>confdefs.h
<<_ACEOF
7686 #define HAVE_VPRINTF 1
7689 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
7690 if test "x$ac_cv_func__doprnt" = xyes
; then :
7692 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7700 for ac_func
in gettimeofday
7702 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
7703 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
7704 cat >>confdefs.h
<<_ACEOF
7705 #define HAVE_GETTIMEOFDAY 1
7708 $as_echo "#define GETTIMEOFDAY /**/" >>confdefs.h
7711 for ac_func
in lrand48
7713 ac_fn_c_check_func
"$LINENO" "lrand48" "ac_cv_func_lrand48"
7714 if test "x$ac_cv_func_lrand48" = xyes
; then :
7715 cat >>confdefs.h
<<_ACEOF
7716 #define HAVE_LRAND48 1
7719 $as_echo "#define LRADN48 /**/" >>confdefs.h
7727 for ac_func
in getrusage
7729 ac_fn_c_check_func
"$LINENO" "getrusage" "ac_cv_func_getrusage"
7730 if test "x$ac_cv_func_getrusage" = xyes
; then :
7731 cat >>confdefs.h
<<_ACEOF
7732 #define HAVE_GETRUSAGE 1
7735 $as_echo "#define GETRUSAGE_2 /**/" >>confdefs.h
7738 for ac_func
in times
7740 ac_fn_c_check_func
"$LINENO" "times" "ac_cv_func_times"
7741 if test "x$ac_cv_func_times" = xyes
; then :
7742 cat >>confdefs.h
<<_ACEOF
7743 #define HAVE_TIMES 1
7746 $as_echo "#define TIMES_2 /**/" >>confdefs.h
7754 for ac_func
in setproctitle
7756 ac_fn_c_check_func
"$LINENO" "setproctitle" "ac_cv_func_setproctitle"
7757 if test "x$ac_cv_func_setproctitle" = xyes
; then :
7758 cat >>confdefs.h
<<_ACEOF
7759 #define HAVE_SETPROCTITLE 1
7762 $as_echo "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
7766 $as_echo_n "checking for setproctitle in -lutil... " >&6; }
7767 if ${ac_cv_lib_util_setproctitle+:} false
; then :
7768 $as_echo_n "(cached) " >&6
7770 ac_check_lib_save_LIBS
=$LIBS
7772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7775 /* Override any GCC internal prototype to avoid an error.
7776 Use char because int might match the return type of a GCC
7777 builtin and then its argument prototype would still apply. */
7781 char setproctitle ();
7785 return setproctitle ();
7790 if ac_fn_c_try_link
"$LINENO"; then :
7791 ac_cv_lib_util_setproctitle
=yes
7793 ac_cv_lib_util_setproctitle
=no
7795 rm -f core conftest.err conftest.
$ac_objext \
7796 conftest
$ac_exeext conftest.
$ac_ext
7797 LIBS
=$ac_check_lib_save_LIBS
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
7800 $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
7801 if test "x$ac_cv_lib_util_setproctitle" = xyes
; then :
7803 $as_echo "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
7805 IRCDLIBS
="$IRCDLIBS-lutil"
7808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7810 #include <sys/exec.h>
7813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7814 $EGREP "#define.*PS_STRINGS.*" >/dev
/null
2>&1; then :
7816 $as_echo "#define HAVE_PSSTRINGS /**/" >>confdefs.h
7819 for ac_func
in pstat
7821 ac_fn_c_check_func
"$LINENO" "pstat" "ac_cv_func_pstat"
7822 if test "x$ac_cv_func_pstat" = xyes
; then :
7823 cat >>confdefs.h
<<_ACEOF
7824 #define HAVE_PSTAT 1
7827 $as_echo "#define HAVE_PSTAT /**/" >>confdefs.h
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of signals you have" >&5
7846 $as_echo_n "checking what type of signals you have... " >&6; }
7847 if ${ac_cv_sigtype+:} false
; then :
7848 $as_echo_n "(cached) " >&6
7851 if test "$cross_compiling" = yes; then :
7852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7854 as_fn_error $?
"cannot run test program while cross compiling
7855 See \`config.log' for more details" "$LINENO" 5; }
7857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7862 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L);
7866 if ac_fn_c_try_run
"$LINENO"; then :
7870 if test "$cross_compiling" = yes; then :
7871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7873 as_fn_error $?
"cannot run test program while cross compiling
7874 See \`config.log' for more details" "$LINENO" 5; }
7876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7886 kill(getpid(), SIGTERM);
7891 signal(SIGTERM, handler);
7892 kill(getpid(), SIGTERM);
7897 if ac_fn_c_try_run
"$LINENO"; then :
7902 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7903 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7907 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7908 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigtype" >&5
7913 $as_echo "$ac_cv_sigtype" >&6; }
7915 if test "$ac_cv_sigtype" = "POSIX"; then
7917 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
7919 elif test "$ac_cv_sigtype" = "BSD"; then
7921 $as_echo "#define BSD_RELIABLE_SIGNALS /**/" >>confdefs.h
7925 $as_echo "#define SYSV_UNRELIABLE_SIGNALS /**/" >>confdefs.h
7928 for ac_func
in strtoken
7930 ac_fn_c_check_func
"$LINENO" "strtoken" "ac_cv_func_strtoken"
7931 if test "x$ac_cv_func_strtoken" = xyes
; then :
7932 cat >>confdefs.h
<<_ACEOF
7933 #define HAVE_STRTOKEN 1
7938 $as_echo "#define NEED_STRTOKEN /**/" >>confdefs.h
7943 for ac_func
in strtok
7945 ac_fn_c_check_func
"$LINENO" "strtok" "ac_cv_func_strtok"
7946 if test "x$ac_cv_func_strtok" = xyes
; then :
7947 cat >>confdefs.h
<<_ACEOF
7948 #define HAVE_STRTOK 1
7953 $as_echo "#define NEED_STRTOK /**/" >>confdefs.h
7958 for ac_func
in strerror
7960 ac_fn_c_check_func
"$LINENO" "strerror" "ac_cv_func_strerror"
7961 if test "x$ac_cv_func_strerror" = xyes
; then :
7962 cat >>confdefs.h
<<_ACEOF
7963 #define HAVE_STRERROR 1
7968 $as_echo "#define NEED_STRERROR /**/" >>confdefs.h
7973 for ac_func
in index
7975 ac_fn_c_check_func
"$LINENO" "index" "ac_cv_func_index"
7976 if test "x$ac_cv_func_index" = xyes
; then :
7977 cat >>confdefs.h
<<_ACEOF
7978 #define HAVE_INDEX 1
7983 $as_echo "#define NOINDEX /**/" >>confdefs.h
7988 for ac_func
in strtoul
7990 ac_fn_c_check_func
"$LINENO" "strtoul" "ac_cv_func_strtoul"
7991 if test "x$ac_cv_func_strtoul" = xyes
; then :
7992 cat >>confdefs.h
<<_ACEOF
7993 #define HAVE_STRTOUL 1
8001 for ac_func
in bcopy
8003 ac_fn_c_check_func
"$LINENO" "bcopy" "ac_cv_func_bcopy"
8004 if test "x$ac_cv_func_bcopy" = xyes
; then :
8005 cat >>confdefs.h
<<_ACEOF
8006 #define HAVE_BCOPY 1
8011 $as_echo "#define NEED_BCOPY /**/" >>confdefs.h
8018 ac_fn_c_check_func
"$LINENO" "bcmp" "ac_cv_func_bcmp"
8019 if test "x$ac_cv_func_bcmp" = xyes
; then :
8020 cat >>confdefs.h
<<_ACEOF
8026 $as_echo "#define NEED_BCMP /**/" >>confdefs.h
8031 for ac_func
in bzero
8033 ac_fn_c_check_func
"$LINENO" "bzero" "ac_cv_func_bzero"
8034 if test "x$ac_cv_func_bzero" = xyes
; then :
8035 cat >>confdefs.h
<<_ACEOF
8036 #define HAVE_BZERO 1
8041 $as_echo "#define NEED_BZERO /**/" >>confdefs.h
8046 for ac_func
in strcasecmp
8048 ac_fn_c_check_func
"$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8049 if test "x$ac_cv_func_strcasecmp" = xyes
; then :
8050 cat >>confdefs.h
<<_ACEOF
8051 #define HAVE_STRCASECMP 1
8054 $as_echo "#define GOT_STRCASECMP /**/" >>confdefs.h
8060 LIBS
="$LIBS $SOCKLIB $INETLIB"
8061 for ac_func
in inet_addr
8063 ac_fn_c_check_func
"$LINENO" "inet_addr" "ac_cv_func_inet_addr"
8064 if test "x$ac_cv_func_inet_addr" = xyes
; then :
8065 cat >>confdefs.h
<<_ACEOF
8066 #define HAVE_INET_ADDR 1
8071 $as_echo "#define NEED_INET_ADDR /**/" >>confdefs.h
8076 for ac_func
in inet_ntoa
8078 ac_fn_c_check_func
"$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
8079 if test "x$ac_cv_func_inet_ntoa" = xyes
; then :
8080 cat >>confdefs.h
<<_ACEOF
8081 #define HAVE_INET_NTOA 1
8086 $as_echo "#define NEED_INET_NTOA /**/" >>confdefs.h
8092 for ac_func
in syslog
8094 ac_fn_c_check_func
"$LINENO" "syslog" "ac_cv_func_syslog"
8095 if test "x$ac_cv_func_syslog" = xyes
; then :
8096 cat >>confdefs.h
<<_ACEOF
8097 #define HAVE_SYSLOG 1
8100 $as_echo "#define HAVE_SYSLOG /**/" >>confdefs.h
8110 # Check whether --with-nick-history was given.
8111 if test "${with_nick_history+set}" = set; then :
8112 withval
=$with_nick_history;
8113 cat >>confdefs.h
<<_ACEOF
8114 #define NICKNAMEHISTORYLENGTH $withval
8119 $as_echo "#define NICKNAMEHISTORYLENGTH 2000" >>confdefs.h
8124 # Check whether --with-sendq was given.
8125 if test "${with_sendq+set}" = set; then :
8126 withval
=$with_sendq;
8127 cat >>confdefs.h
<<_ACEOF
8128 #define MAXSENDQLENGTH $withval
8133 $as_echo "#define MAXSENDQLENGTH 3000000" >>confdefs.h
8138 # Check whether --with-permissions was given.
8139 if test "${with_permissions+set}" = set; then :
8140 withval
=$with_permissions;
8141 cat >>confdefs.h
<<_ACEOF
8142 #define DEFAULT_PERMISSIONS 0$withval
8147 $as_echo "#define DEFAULT_PERMISSIONS 0600" >>confdefs.h
8153 # Check whether --with-bindir was given.
8154 if test "${with_bindir+set}" = set; then :
8155 withval
=$with_bindir;
8156 cat >>confdefs.h
<<_ACEOF
8157 #define BINDIR "$withval"
8163 cat >>confdefs.h
<<_ACEOF
8164 #define BINDIR "$HOME/unrealircd/bin"
8167 BINDIR
="$HOME/unrealircd/bin"
8172 # Check whether --with-scriptdir was given.
8173 if test "${with_scriptdir+set}" = set; then :
8174 withval
=$with_scriptdir;
8175 cat >>confdefs.h
<<_ACEOF
8176 #define SCRIPTDIR "$withval"
8179 SCRIPTDIR
="$withval"
8182 cat >>confdefs.h
<<_ACEOF
8183 #define SCRIPTDIR "$HOME/unrealircd"
8186 SCRIPTDIR
="$HOME/unrealircd"
8191 # Check whether --with-confdir was given.
8192 if test "${with_confdir+set}" = set; then :
8193 withval
=$with_confdir;
8194 cat >>confdefs.h
<<_ACEOF
8195 #define CONFDIR "$withval"
8201 cat >>confdefs.h
<<_ACEOF
8202 #define CONFDIR "$HOME/unrealircd/conf"
8205 CONFDIR
="$HOME/unrealircd/conf"
8210 # Check whether --with-modulesdir was given.
8211 if test "${with_modulesdir+set}" = set; then :
8212 withval
=$with_modulesdir;
8213 cat >>confdefs.h
<<_ACEOF
8214 #define MODULESDIR "$withval"
8217 MODULESDIR
="$withval"
8220 cat >>confdefs.h
<<_ACEOF
8221 #define MODULESDIR "$HOME/unrealircd/modules"
8224 MODULESDIR
="$HOME/unrealircd/modules"
8229 # Check whether --with-logdir was given.
8230 if test "${with_logdir+set}" = set; then :
8231 withval
=$with_logdir;
8232 cat >>confdefs.h
<<_ACEOF
8233 #define LOGDIR "$withval"
8239 cat >>confdefs.h
<<_ACEOF
8240 #define LOGDIR "$HOME/unrealircd/logs"
8243 LOGDIR
="$HOME/unrealircd/logs"
8248 # Check whether --with-cachedir was given.
8249 if test "${with_cachedir+set}" = set; then :
8250 withval
=$with_cachedir;
8251 cat >>confdefs.h
<<_ACEOF
8252 #define CACHEDIR "$withval"
8258 cat >>confdefs.h
<<_ACEOF
8259 #define CACHEDIR "$HOME/unrealircd/cache"
8262 CACHEDIR
="$HOME/unrealircd/cache"
8267 # Check whether --with-tmpdir was given.
8268 if test "${with_tmpdir+set}" = set; then :
8269 withval
=$with_tmpdir;
8270 cat >>confdefs.h
<<_ACEOF
8271 #define TMPDIR "$withval"
8277 cat >>confdefs.h
<<_ACEOF
8278 #define TMPDIR "$HOME/unrealircd/tmp"
8281 TMPDIR
="$HOME/unrealircd/tmp"
8286 # Check whether --with-datadir was given.
8287 if test "${with_datadir+set}" = set; then :
8288 withval
=$with_datadir;
8289 cat >>confdefs.h
<<_ACEOF
8290 #define PERMDATADIR "$withval"
8293 PERMDATADIR
="$withval"
8296 cat >>confdefs.h
<<_ACEOF
8297 #define DATADIR "$HOME/unrealircd/data"
8300 PERMDATADIR
="$HOME/unrealircd/data"
8305 # Check whether --with-docdir was given.
8306 if test "${with_docdir+set}" = set; then :
8307 withval
=$with_docdir;
8308 cat >>confdefs.h
<<_ACEOF
8309 #define DOCDIR "$withval"
8315 cat >>confdefs.h
<<_ACEOF
8316 #define DOCDIR "$HOME/unrealircd/doc"
8319 DOCDIR
="$HOME/unrealircd/doc"
8324 # Check whether --with-pidfile was given.
8325 if test "${with_pidfile+set}" = set; then :
8326 withval
=$with_pidfile;
8327 cat >>confdefs.h
<<_ACEOF
8328 #define PIDFILE "$withval"
8334 cat >>confdefs.h
<<_ACEOF
8335 #define PIDFILE "$HOME/unrealircd/data/unrealircd.pid"
8338 PIDFILE
="$HOME/unrealircd/data/unrealircd.pid"
8343 # Check whether --with-privatelibdir was given.
8344 if test "${with_privatelibdir+set}" = set; then :
8345 withval
=$with_privatelibdir;
8347 with_privatelibdir
="yes"
8350 if test "x$with_privatelibdir" = "xno"; then :
8352 elif test "x$with_privatelibdir" = "xyes"; then :
8353 PRIVATELIBDIR
="$HOME/unrealircd/lib"
8355 PRIVATELIBDIR
="$with_privatelibdir"
8357 if test "x$PRIVATELIBDIR" = "x"; then :
8358 LDFLAGS_PRIVATELIBS
=""
8361 cat >>confdefs.h
<<_ACEOF
8362 #define PRIVATELIBDIR "$PRIVATELIBDIR"
8365 LDFLAGS_PRIVATELIBS
="-Wl,-rpath,$PRIVATELIBDIR"
8366 LDFLAGS
="$LDFLAGS $LDFLAGS_PRIVATELIBS"
8383 # Check whether --with-maxconnections was given.
8384 if test "${with_maxconnections+set}" = set; then :
8385 withval
=$with_maxconnections; ac_fd
=$withval
8391 cat >>confdefs.h
<<_ACEOF
8392 #define MAXCONNECTIONS_REQUEST $ac_fd
8396 # Check whether --enable-prefixaq was given.
8397 if test "${enable_prefixaq+set}" = set; then :
8398 enableval
=$enable_prefixaq;
8403 if test $enable_prefixaq = "yes"; then :
8405 $as_echo "#define PREFIX_AQ /**/" >>confdefs.h
8410 # Check whether --with-showlistmodes was given.
8411 if test "${with_showlistmodes+set}" = set; then :
8412 withval
=$with_showlistmodes; if test $withval = "yes"; then :
8414 $as_echo "#define LIST_SHOW_MODES /**/" >>confdefs.h
8420 # Check whether --with-shunnotices was given.
8421 if test "${with_shunnotices+set}" = set; then :
8422 withval
=$with_shunnotices; if test $withval = "yes"; then :
8424 $as_echo "#define SHUN_NOTICES /**/" >>confdefs.h
8430 # Check whether --with-no-operoverride was given.
8431 if test "${with_no_operoverride+set}" = set; then :
8432 withval
=$with_no_operoverride; if test $withval = "yes"; then :
8434 $as_echo "#define NO_OPEROVERRIDE /**/" >>confdefs.h
8440 # Check whether --with-disableusermod was given.
8441 if test "${with_disableusermod+set}" = set; then :
8442 withval
=$with_disableusermod; if test $withval = "yes"; then :
8444 $as_echo "#define DISABLE_USERMOD /**/" >>confdefs.h
8450 # Check whether --with-operoverride-verify was given.
8451 if test "${with_operoverride_verify+set}" = set; then :
8452 withval
=$with_operoverride_verify; if test $withval = "yes"; then :
8454 $as_echo "#define OPEROVERRIDE_VERIFY /**/" >>confdefs.h
8460 # Check whether --with-disable-extendedban-stacking was given.
8461 if test "${with_disable_extendedban_stacking+set}" = set; then :
8462 withval
=$with_disable_extendedban_stacking; if test $withval = "yes"; then :
8464 $as_echo "#define DISABLE_STACKED_EXTBANS /**/" >>confdefs.h
8470 # Check whether --with-tre was given.
8471 if test "${with_tre+set}" = set; then :
8472 withval
=$with_tre; with_tre
=no
8478 # Check whether --with-system-tre was given.
8479 if test "${with_system_tre+set}" = set; then :
8480 withval
=$with_system_tre;
8486 # Check whether --with-system-pcre2 was given.
8487 if test "${with_system_pcre2+set}" = set; then :
8488 withval
=$with_system_pcre2;
8490 with_system_pcre2
=no
8494 # Check whether --with-system-argon2 was given.
8495 if test "${with_system_argon2+set}" = set; then :
8496 withval
=$with_system_argon2;
8498 with_system_argon2
=yes
8502 # Check whether --with-system-cares was given.
8503 if test "${with_system_cares+set}" = set; then :
8504 withval
=$with_system_cares;
8506 with_system_cares
=yes
8510 # Check whether --enable-ssl was given.
8511 if test "${enable_ssl+set}" = set; then :
8512 enableval
=$enable_ssl;
8517 if test $enable_ssl != "no"; then :
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
8520 $as_echo_n "checking for openssl... " >&6; }
8521 for dir
in $enable_ssl /usr
/local
/opt
/openssl
/usr
/local
/ssl
/usr
/lib
/ssl
/usr
/ssl
/usr
/pkg
/usr
/sfw
/usr
/local /usr
; do
8523 if test -f "$dir/include/openssl/ssl.h"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir/include/openssl" >&5
8525 $as_echo "found in $ssldir/include/openssl" >&6; }
8527 if test ! "$ssldir" = "/usr" ; then
8528 CFLAGS
="$CFLAGS -I$ssldir/include";
8532 if test -f "$dir/include/ssl.h"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ssldir/include" >&5
8534 $as_echo "found in $ssldir/include" >&6; }
8536 if test ! "$ssldir" = "/usr" ; then
8537 CFLAGS
="$CFLAGS -I$ssldir/include";
8542 if test x_
$found_ssl != x_yes
; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8544 $as_echo "not found" >&6; }
8546 echo "Apparently you do not have both the openssl binary and openssl development libraries installed."
8547 echo "The following packages are required:"
8548 echo "1) The library package is often called 'openssl-dev', 'openssl-devel' or 'libssl-dev'"
8549 echo "2) The binary package is usually called 'openssl'."
8550 echo "NOTE: you or your system administrator needs to install the library AND the binary package."
8551 echo "After doing so, simply re-run ./Config"
8554 CRYPTOLIB
="-lssl -lcrypto";
8555 if test ! "$ssldir" = "/usr" ; then
8556 LDFLAGS
="$LDFLAGS -L$ssldir/lib";
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set1_curves_list in SSL library" >&5
8564 $as_echo_n "checking for SSL_CTX_set1_curves_list in SSL library... " >&6; }
8566 ac_cpp
='$CPP $CPPFLAGS'
8567 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8568 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8569 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8572 LIBS
="$LIBS $CRYPTOLIB"
8573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8574 /* end confdefs.h. */
8575 #include <openssl/ssl.h>
8579 SSL_CTX *ctx = NULL; SSL_CTX_set1_curves_list(ctx, "test");
8584 if ac_fn_c_try_link
"$LINENO"; then :
8589 rm -f core conftest.err conftest.
$ac_objext \
8590 conftest
$ac_exeext conftest.
$ac_ext
8593 ac_cpp
='$CPP $CPPFLAGS'
8594 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8595 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8596 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8598 if test $has_function = 1; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8600 $as_echo "yes" >&6; }
8602 $as_echo "#define HAS_SSL_CTX_SET1_CURVES_LIST /**/" >>confdefs.h
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606 $as_echo "no" >&6; }
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_min_proto_version in SSL library" >&5
8611 $as_echo_n "checking for SSL_CTX_set_min_proto_version in SSL library... " >&6; }
8613 ac_cpp
='$CPP $CPPFLAGS'
8614 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8615 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8616 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8619 LIBS
="$LIBS $CRYPTOLIB"
8620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8622 #include <openssl/ssl.h>
8626 SSL_CTX *ctx = NULL; SSL_CTX_set_min_proto_version(ctx, TLS1_VERSION);
8631 if ac_fn_c_try_link
"$LINENO"; then :
8636 rm -f core conftest.err conftest.
$ac_objext \
8637 conftest
$ac_exeext conftest.
$ac_ext
8640 ac_cpp
='$CPP $CPPFLAGS'
8641 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8645 if test $has_function = 1; then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8647 $as_echo "yes" >&6; }
8649 $as_echo "#define HAS_SSL_CTX_SET_MIN_PROTO_VERSION /**/" >>confdefs.h
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8656 # Check whether --enable-dynamic-linking was given.
8657 if test "${enable_dynamic_linking+set}" = set; then :
8658 enableval
=$enable_dynamic_linking; enable_dynamic_linking
=$enableval
8660 enable_dynamic_linking
="yes"
8663 if test $enable_dynamic_linking = "yes"; then :
8665 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
8666 if test "x$ac_cv_func_dlopen" = xyes
; then :
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8670 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8671 if ${ac_cv_lib_dl_dlopen+:} false
; then :
8672 $as_echo_n "(cached) " >&6
8674 ac_check_lib_save_LIBS
=$LIBS
8676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8679 /* Override any GCC internal prototype to avoid an error.
8680 Use char because int might match the return type of a GCC
8681 builtin and then its argument prototype would still apply. */
8694 if ac_fn_c_try_link
"$LINENO"; then :
8695 ac_cv_lib_dl_dlopen
=yes
8697 ac_cv_lib_dl_dlopen
=no
8699 rm -f core conftest.err conftest.
$ac_objext \
8700 conftest
$ac_exeext conftest.
$ac_ext
8701 LIBS
=$ac_check_lib_save_LIBS
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8704 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8705 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
8706 IRCDLIBS
="$IRCDLIBS -ldl"
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dynamic linking is not enabled because dlopen was not found" >&5
8710 $as_echo "$as_me: WARNING: Dynamic linking is not enabled because dlopen was not found" >&2;}
8711 $as_echo "#define STATIC_LINKING 1" >>confdefs.h
8721 CFLAGS
="$CFLAGS -Wl,-export-dynamic"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need the -export-dynamic flag" >&5
8723 $as_echo_n "checking if we need the -export-dynamic flag... " >&6; }
8724 if ${ac_cv_export_dynamic+:} false
; then :
8725 $as_echo_n "(cached) " >&6
8728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8739 if ac_fn_c_try_link
"$LINENO"; then :
8740 ac_cv_export_dynamic
=yes
8742 ac_cv_export_dynamic
=no
8744 rm -f core conftest.err conftest.
$ac_objext \
8745 conftest
$ac_exeext conftest.
$ac_ext
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_export_dynamic" >&5
8748 $as_echo "$ac_cv_export_dynamic" >&6; }
8750 if test "$ac_cv_export_dynamic" = "yes"; then
8751 DYNAMIC_LDFLAGS
="-Wl,-export-dynamic"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8755 $as_echo_n "checking for compiler option to produce PIC... " >&6; }
8756 if ${ac_cv_pic+:} false
; then :
8757 $as_echo_n "(cached) " >&6
8760 if test "$ac_cv_c_compiler_gnu" = "yes"; then
8761 ac_cv_pic
="-fPIC -DPIC -shared"
8764 ac_cv_pic
="-std=gnu89 -bundle -flat_namespace -undefined suppress"
8773 ac_cv_pic
="-KPIC -DPIC -G"
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pic" >&5
8780 $as_echo "$ac_cv_pic" >&6; }
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system prepends an underscore on symbols" >&5
8782 $as_echo_n "checking if your system prepends an underscore on symbols... " >&6; }
8783 if ${ac_cv_underscore+:} false
; then :
8784 $as_echo_n "(cached) " >&6
8787 cat >uscore.c
<< __EOF__
8792 $CC -o uscore
$CFLAGS uscore.c
1>&5
8793 if test -z "`strings -a uscore |grep '^_main$'`"; then
8796 ac_cv_underscore
=yes
8798 rm -f uscore uscore.c
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_underscore" >&5
8802 $as_echo "$ac_cv_underscore" >&6; }
8803 if test "$ac_cv_underscore" = "yes"; then
8805 $as_echo "#define UNDERSCORE /**/" >>confdefs.h
8809 MODULEFLAGS
="$ac_cv_pic $DYNAMIC_LDFLAGS"
8813 $as_echo "#define STATIC_LINKING /**/" >>confdefs.h
8817 # Check whether --enable-werror was given.
8818 if test "${enable_werror+set}" = set; then :
8819 enableval
=$enable_werror; ac_cv_werror
="$enableval"
8825 # Check whether --enable-asan was given.
8826 if test "${enable_asan+set}" = set; then :
8827 enableval
=$enable_asan; ac_cv_asan
="$enableval"
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors" >&5
8834 $as_echo_n "checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors... " >&6; }
8835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8838 #include <sys/types.h>
8839 #include <sys/time.h>
8841 #if FD_SETSIZE < $ac_fd
8842 #error FD_SETSIZE is smaller than $ac_fd
8848 if ac_fn_c_try_compile
"$LINENO"; then :
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8850 $as_echo "yes" >&6; }
8853 # must be passed on the commandline to avoid a ``warning, you redefined something''
8854 FD_SETSIZE
="-DFD_SETSIZE=$ac_fd"
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8865 $as_echo "#define _SOLARIS /**/" >>confdefs.h
8867 IRCDLIBS
="$IRCDLIBS -lresolv "
8873 ac_fn_c_check_func
"$LINENO" "poll" "ac_cv_func_poll"
8874 if test "x$ac_cv_func_poll" = xyes
; then :
8875 cat >>confdefs.h
<<_ACEOF
8879 $as_echo "#define HAVE_POLL /**/" >>confdefs.h
8884 for ac_func
in epoll_create epoll_ctl epoll_wait
8886 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8887 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8888 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8889 cat >>confdefs.h
<<_ACEOF
8890 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8893 $as_echo "#define HAVE_EPOLL /**/" >>confdefs.h
8898 for ac_func
in kqueue kevent
8900 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8901 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8902 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8903 cat >>confdefs.h
<<_ACEOF
8904 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8907 $as_echo "#define HAVE_KQUEUE /**/" >>confdefs.h
8913 export PATH_SEPARATOR
8915 if test "x$with_tre" = "xyes"; then :
8918 $as_echo "#define USE_TRE /**/" >>confdefs.h
8923 if test "x$with_system_tre" = "xno"; then :
8925 if test "x$with_tre" = "xyes"; then :
8933 if test "x$compile_tre" = "xyes"; then :
8935 tre_version
="0.8.0-git"
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting TRE regex library" >&5
8937 $as_echo "extracting TRE regex library" >&6; }
8940 rm -rf tre
-$tre_version regexp
8941 if test "x$ac_cv_path_GUNZIP" = "x" ; then
8944 cp tre.
tar.gz tre.
tar.gz.bak
8945 gunzip
-f tre.
tar.gz
8946 cp tre.
tar.gz.bak tre.
tar.gz
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring TRE regex library" >&5
8950 $as_echo "configuring TRE regex library" >&6; }
8952 .
/configure
--disable-agrep --enable-shared --disable-system-abi --disable-wchar --disable-multibyte --prefix=$cur_dir/extras
/regexp
--libdir=$PRIVATELIBDIR || exit 1
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling TRE regex library" >&5
8954 $as_echo "compiling TRE regex library" >&6; }
8955 $ac_cv_prog_MAKER || exit 1
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: installing TRE regex library" >&5
8957 $as_echo "installing TRE regex library" >&6; }
8958 $ac_cv_prog_MAKER install || exit 1
8959 TRE_CFLAGS
="-I$cur_dir/extras/regexp/include"
8963 if test -n "$ac_cv_path_PKGCONFIG"; then :
8964 TRE_LIBS
="`$ac_cv_path_PKGCONFIG --libs tre.pc`"
8966 if test -z "$TRE_LIBS"; then :
8967 TRE_LIBS
="$PRIVATELIBDIR/libtre.so"
8981 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8982 if test -n "$ac_tool_prefix"; then
8983 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8984 set dummy
${ac_tool_prefix}pkg
-config; ac_word
=$2
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8986 $as_echo_n "checking for $ac_word... " >&6; }
8987 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
8988 $as_echo_n "(cached) " >&6
8992 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8999 test -z "$as_dir" && as_dir
=.
9000 for ac_exec_ext
in '' $ac_executable_extensions; do
9001 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9002 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9014 if test -n "$PKG_CONFIG"; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9016 $as_echo "$PKG_CONFIG" >&6; }
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9024 if test -z "$ac_cv_path_PKG_CONFIG"; then
9025 ac_pt_PKG_CONFIG
=$PKG_CONFIG
9026 # Extract the first word of "pkg-config", so it can be a program name with args.
9027 set dummy pkg
-config; ac_word
=$2
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029 $as_echo_n "checking for $ac_word... " >&6; }
9030 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
9031 $as_echo_n "(cached) " >&6
9033 case $ac_pt_PKG_CONFIG in
9035 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9042 test -z "$as_dir" && as_dir
=.
9043 for ac_exec_ext
in '' $ac_executable_extensions; do
9044 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9045 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9056 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
9057 if test -n "$ac_pt_PKG_CONFIG"; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9059 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 $as_echo "no" >&6; }
9065 if test "x$ac_pt_PKG_CONFIG" = x
; then
9068 case $cross_compiling:$ac_tool_warned in
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9072 ac_tool_warned
=yes ;;
9074 PKG_CONFIG
=$ac_pt_PKG_CONFIG
9077 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
9081 if test -n "$PKG_CONFIG"; then
9082 _pkg_min_version
=0.9.0
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9084 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9085 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9087 $as_echo "yes" >&6; }
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9094 if test "x$with_system_tre" = "xyes"; then :
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TRE" >&5
9099 $as_echo_n "checking for TRE... " >&6; }
9101 if test -n "$TRE_CFLAGS"; then
9102 pkg_cv_TRE_CFLAGS
="$TRE_CFLAGS"
9103 elif test -n "$PKG_CONFIG"; then
9104 if test -n "$PKG_CONFIG" && \
9105 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tre >= 0.7.5\""; } >&5
9106 ($PKG_CONFIG --exists --print-errors "tre >= 0.7.5") 2>&5
9108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9109 test $ac_status = 0; }; then
9110 pkg_cv_TRE_CFLAGS
=`$PKG_CONFIG --cflags "tre >= 0.7.5" 2>/dev/null`
9111 test "x$?" != "x0" && pkg_failed
=yes
9118 if test -n "$TRE_LIBS"; then
9119 pkg_cv_TRE_LIBS
="$TRE_LIBS"
9120 elif test -n "$PKG_CONFIG"; then
9121 if test -n "$PKG_CONFIG" && \
9122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tre >= 0.7.5\""; } >&5
9123 ($PKG_CONFIG --exists --print-errors "tre >= 0.7.5") 2>&5
9125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9126 test $ac_status = 0; }; then
9127 pkg_cv_TRE_LIBS
=`$PKG_CONFIG --libs "tre >= 0.7.5" 2>/dev/null`
9128 test "x$?" != "x0" && pkg_failed
=yes
9138 if test $pkg_failed = yes; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9142 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9143 _pkg_short_errors_supported
=yes
9145 _pkg_short_errors_supported
=no
9147 if test $_pkg_short_errors_supported = yes; then
9148 TRE_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tre >= 0.7.5" 2>&1`
9150 TRE_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "tre >= 0.7.5" 2>&1`
9152 # Put the nasty error message in config.log where it belongs
9153 echo "$TRE_PKG_ERRORS" >&5
9155 as_fn_error $?
"Package requirements (tre >= 0.7.5) were not met:
9159 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9160 installed software in a non-standard prefix.
9162 Alternatively, you may set the environment variables TRE_CFLAGS
9163 and TRE_LIBS to avoid the need to call pkg-config.
9164 See the pkg-config man page for more details." "$LINENO" 5
9165 elif test $pkg_failed = untried
; then
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9170 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9171 is in your PATH or set the PKG_CONFIG environment variable to the full
9174 Alternatively, you may set the environment variables TRE_CFLAGS
9175 and TRE_LIBS to avoid the need to call pkg-config.
9176 See the pkg-config man page for more details.
9178 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9179 See \`config.log' for more details" "$LINENO" 5; }
9181 TRE_CFLAGS
=$pkg_cv_TRE_CFLAGS
9182 TRE_LIBS
=$pkg_cv_TRE_LIBS
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9184 $as_echo "yes" >&6; }
9190 if test "x$with_system_pcre2" = "xno"; then :
9192 pcre2_version
="10.32"
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting PCRE2 regex library" >&5
9194 $as_echo "extracting PCRE2 regex library" >&6; }
9197 rm -rf pcre2
-$pcre2_version pcre2
9198 if test "x$ac_cv_path_GUNZIP" = "x" ; then
9199 tar xfz pcre2.
tar.gz
9201 cp pcre2.
tar.gz pcre2.
tar.gz.bak
9202 gunzip
-f pcre2.
tar.gz
9203 cp pcre2.
tar.gz.bak pcre2.
tar.gz
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring PCRE2 regex library" >&5
9207 $as_echo "configuring PCRE2 regex library" >&6; }
9208 cd pcre2
-$pcre2_version
9209 .
/configure
--enable-jit --enable-shared --disable-unicode --prefix=$cur_dir/extras
/pcre2
--libdir=$PRIVATELIBDIR || exit 1
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling PCRE2 regex library" >&5
9211 $as_echo "compiling PCRE2 regex library" >&6; }
9212 $ac_cv_prog_MAKER || exit 1
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: installing PCRE2 regex library" >&5
9214 $as_echo "installing PCRE2 regex library" >&6; }
9215 $ac_cv_prog_MAKER install || exit 1
9216 PCRE2_CFLAGS
="-I$cur_dir/extras/pcre2/include"
9220 if test -n "$ac_cv_path_PKGCONFIG"; then :
9221 PCRE2_LIBS
="`$ac_cv_path_PKGCONFIG --libs libpcre2-8.pc`"
9223 if test -z "$PCRE2_LIBS"; then :
9224 PCRE2_LIBS
="$PRIVATELIBDIR/libpcre2-8.so"
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE2" >&5
9234 $as_echo_n "checking for PCRE2... " >&6; }
9236 if test -n "$PCRE2_CFLAGS"; then
9237 pkg_cv_PCRE2_CFLAGS
="$PCRE2_CFLAGS"
9238 elif test -n "$PKG_CONFIG"; then
9239 if test -n "$PKG_CONFIG" && \
9240 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.00\""; } >&5
9241 ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.00") 2>&5
9243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9244 test $ac_status = 0; }; then
9245 pkg_cv_PCRE2_CFLAGS
=`$PKG_CONFIG --cflags "libpcre2-8 >= 10.00" 2>/dev/null`
9246 test "x$?" != "x0" && pkg_failed
=yes
9253 if test -n "$PCRE2_LIBS"; then
9254 pkg_cv_PCRE2_LIBS
="$PCRE2_LIBS"
9255 elif test -n "$PKG_CONFIG"; then
9256 if test -n "$PKG_CONFIG" && \
9257 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.00\""; } >&5
9258 ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.00") 2>&5
9260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9261 test $ac_status = 0; }; then
9262 pkg_cv_PCRE2_LIBS
=`$PKG_CONFIG --libs "libpcre2-8 >= 10.00" 2>/dev/null`
9263 test "x$?" != "x0" && pkg_failed
=yes
9273 if test $pkg_failed = yes; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9275 $as_echo "no" >&6; }
9277 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9278 _pkg_short_errors_supported
=yes
9280 _pkg_short_errors_supported
=no
9282 if test $_pkg_short_errors_supported = yes; then
9283 PCRE2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre2-8 >= 10.00" 2>&1`
9285 PCRE2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libpcre2-8 >= 10.00" 2>&1`
9287 # Put the nasty error message in config.log where it belongs
9288 echo "$PCRE2_PKG_ERRORS" >&5
9290 as_fn_error $?
"Package requirements (libpcre2-8 >= 10.00) were not met:
9294 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9295 installed software in a non-standard prefix.
9297 Alternatively, you may set the environment variables PCRE2_CFLAGS
9298 and PCRE2_LIBS to avoid the need to call pkg-config.
9299 See the pkg-config man page for more details." "$LINENO" 5
9300 elif test $pkg_failed = untried
; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302 $as_echo "no" >&6; }
9303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9305 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9306 is in your PATH or set the PKG_CONFIG environment variable to the full
9309 Alternatively, you may set the environment variables PCRE2_CFLAGS
9310 and PCRE2_LIBS to avoid the need to call pkg-config.
9311 See the pkg-config man page for more details.
9313 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9314 See \`config.log' for more details" "$LINENO" 5; }
9316 PCRE2_CFLAGS
=$pkg_cv_PCRE2_CFLAGS
9317 PCRE2_LIBS
=$pkg_cv_PCRE2_LIBS
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9319 $as_echo "yes" >&6; }
9325 has_system_argon2
="no"
9326 if test "x$with_system_argon2" = "xyes"; then :
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARGON2" >&5
9331 $as_echo_n "checking for ARGON2... " >&6; }
9333 if test -n "$ARGON2_CFLAGS"; then
9334 pkg_cv_ARGON2_CFLAGS
="$ARGON2_CFLAGS"
9335 elif test -n "$PKG_CONFIG"; then
9336 if test -n "$PKG_CONFIG" && \
9337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2 >= 0~20161029\""; } >&5
9338 ($PKG_CONFIG --exists --print-errors "libargon2 >= 0~20161029") 2>&5
9340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9341 test $ac_status = 0; }; then
9342 pkg_cv_ARGON2_CFLAGS
=`$PKG_CONFIG --cflags "libargon2 >= 0~20161029" 2>/dev/null`
9343 test "x$?" != "x0" && pkg_failed
=yes
9350 if test -n "$ARGON2_LIBS"; then
9351 pkg_cv_ARGON2_LIBS
="$ARGON2_LIBS"
9352 elif test -n "$PKG_CONFIG"; then
9353 if test -n "$PKG_CONFIG" && \
9354 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2 >= 0~20161029\""; } >&5
9355 ($PKG_CONFIG --exists --print-errors "libargon2 >= 0~20161029") 2>&5
9357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9358 test $ac_status = 0; }; then
9359 pkg_cv_ARGON2_LIBS
=`$PKG_CONFIG --libs "libargon2 >= 0~20161029" 2>/dev/null`
9360 test "x$?" != "x0" && pkg_failed
=yes
9370 if test $pkg_failed = yes; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9372 $as_echo "no" >&6; }
9374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9375 _pkg_short_errors_supported
=yes
9377 _pkg_short_errors_supported
=no
9379 if test $_pkg_short_errors_supported = yes; then
9380 ARGON2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libargon2 >= 0~20161029" 2>&1`
9382 ARGON2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libargon2 >= 0~20161029" 2>&1`
9384 # Put the nasty error message in config.log where it belongs
9385 echo "$ARGON2_PKG_ERRORS" >&5
9387 has_system_argon2
=no
9388 elif test $pkg_failed = untried
; then
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390 $as_echo "no" >&6; }
9391 has_system_argon2
=no
9393 ARGON2_CFLAGS
=$pkg_cv_ARGON2_CFLAGS
9394 ARGON2_LIBS
=$pkg_cv_ARGON2_LIBS
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9396 $as_echo "yes" >&6; }
9397 has_system_argon2
=yes
9398 if test "x$PRIVATELIBDIR" != "x"; then :
9399 rm -f "$PRIVATELIBDIR/"libargon2
*
9404 if test "$has_system_argon2" = "no"; then :
9406 argon2_version
="20181209"
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting Argon2 library" >&5
9408 $as_echo "extracting Argon2 library" >&6; }
9411 rm -rf argon2
-$argon2_version argon2
9412 if test "x$ac_cv_path_GUNZIP" = "x" ; then
9413 tar xfz argon2
-$argon2_version.
tar.gz
9415 cp argon2
-$argon2_version.
tar.gz argon2
-$argon2_version.
tar.gz.bak
9416 gunzip
-f argon2
-$argon2_version.
tar.gz
9417 cp argon2
-$argon2_version.
tar.gz.bak argon2
-$argon2_version.
tar.gz
9418 tar xf argon2
-$argon2_version.
tar
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling Argon2 library" >&5
9421 $as_echo "compiling Argon2 library" >&6; }
9422 cd argon2
-$argon2_version
9423 $ac_cv_prog_MAKER || exit 1
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: installing Argon2 library" >&5
9425 $as_echo "installing Argon2 library" >&6; }
9426 $ac_cv_prog_MAKER install PREFIX
=$cur_dir/extras
/argon2
|| exit 1
9427 # We need to manually copy the libs to PRIVATELIBDIR because
9428 # there is no way to tell make install in libargon2 to do so.
9429 cp -av $cur_dir/extras
/argon
2/lib
/* $PRIVATELIBDIR/
9430 ARGON2_CFLAGS
="-I$cur_dir/extras/argon2/include"
9432 ARGON2_LIBS
="-L$PRIVATELIBDIR -largon2"
9438 has_system_cares
="no"
9439 if test "x$with_system_cares" = "xyes"; then :
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CARES" >&5
9444 $as_echo_n "checking for CARES... " >&6; }
9446 if test -n "$CARES_CFLAGS"; then
9447 pkg_cv_CARES_CFLAGS
="$CARES_CFLAGS"
9448 elif test -n "$PKG_CONFIG"; then
9449 if test -n "$PKG_CONFIG" && \
9450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.0\""; } >&5
9451 ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.0") 2>&5
9453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9454 test $ac_status = 0; }; then
9455 pkg_cv_CARES_CFLAGS
=`$PKG_CONFIG --cflags "libcares >= 1.6.0" 2>/dev/null`
9456 test "x$?" != "x0" && pkg_failed
=yes
9463 if test -n "$CARES_LIBS"; then
9464 pkg_cv_CARES_LIBS
="$CARES_LIBS"
9465 elif test -n "$PKG_CONFIG"; then
9466 if test -n "$PKG_CONFIG" && \
9467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.0\""; } >&5
9468 ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.0") 2>&5
9470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9471 test $ac_status = 0; }; then
9472 pkg_cv_CARES_LIBS
=`$PKG_CONFIG --libs "libcares >= 1.6.0" 2>/dev/null`
9473 test "x$?" != "x0" && pkg_failed
=yes
9483 if test $pkg_failed = yes; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485 $as_echo "no" >&6; }
9487 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9488 _pkg_short_errors_supported
=yes
9490 _pkg_short_errors_supported
=no
9492 if test $_pkg_short_errors_supported = yes; then
9493 CARES_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcares >= 1.6.0" 2>&1`
9495 CARES_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libcares >= 1.6.0" 2>&1`
9497 # Put the nasty error message in config.log where it belongs
9498 echo "$CARES_PKG_ERRORS" >&5
9501 elif test $pkg_failed = untried
; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9506 CARES_CFLAGS
=$pkg_cv_CARES_CFLAGS
9507 CARES_LIBS
=$pkg_cv_CARES_LIBS
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9509 $as_echo "yes" >&6; }
9510 has_system_cares
=yes
9511 if test "x$PRIVATELIBDIR" != "x"; then :
9512 rm -f "$PRIVATELIBDIR/"libcares
*
9517 if test "$has_system_cares" = "no"; then :
9519 cares_version
="1.15.0"
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: extracting c-ares resolver library" >&5
9521 $as_echo "extracting c-ares resolver library" >&6; }
9524 rm -rf c
-ares-$cares_version c
-ares
9525 if test "x$ac_cv_path_GUNZIP" = "x" ; then
9526 tar xfz c
-ares.
tar.gz
9528 cp c
-ares.
tar.gz c
-ares.
tar.gz.bak
9529 gunzip
-f c
-ares.
tar.gz
9530 cp c
-ares.
tar.gz.bak c
-ares.
tar.gz
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: configuring c-ares library" >&5
9534 $as_echo "configuring c-ares library" >&6; }
9535 cd c
-ares-$cares_version
9536 save_cflags
="$CFLAGS"
9537 CFLAGS
="$orig_cflags"
9539 .
/configure
--prefix=$cur_dir/extras
/c
-ares --libdir=$PRIVATELIBDIR --enable-shared || exit 1
9540 CFLAGS
="$save_cflags"
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiling c-ares resolver library" >&5
9542 $as_echo "compiling c-ares resolver library" >&6; }
9543 $ac_cv_prog_MAKER || exit 1
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: installing c-ares resolver library" >&5
9545 $as_echo "installing c-ares resolver library" >&6; }
9546 $ac_cv_prog_MAKER install || exit 1
9547 CARES_CFLAGS
="-I$cur_dir/extras/c-ares/include"
9549 CARES_LIBS
="-L$PRIVATELIBDIR"
9552 CARESLIBSALT
="$PRIVATELIBDIR/libcares.so"
9556 CARESLIBSALT
="$CARESLIBSALT"
9559 CARESLIBSALT
="$CARESLIBSALT -lrt"
9562 CARESLIBSALT
="$CARESLIBSALT -lrt"
9566 if test "x$ac_cv_path_PKGCONFIG" = "x" ; then
9567 CARES_LIBS
="$CARES_LIBS $CARESLIBSALT"
9569 CARES_LIBSPRE
="$CARES_LIBS"
9570 CARES_LIBS
="$CARES_LIBS `$ac_cv_path_PKGCONFIG --libs libcares.pc | sed -e 's,-L\([^ ]\+lib\) -lcares,\1/libcares.so,'`"
9571 if test "$CARES_LIBS" = "$CARES_LIBSPRE " ; then
9572 CARES_LIBS
="$CARES_LIBS $CARESLIBSALT"
9580 # Make sure we can run config.sub.
9581 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
9582 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
9585 $as_echo_n "checking build system type... " >&6; }
9586 if ${ac_cv_build+:} false
; then :
9587 $as_echo_n "(cached) " >&6
9589 ac_build_alias
=$build_alias
9590 test "x$ac_build_alias" = x
&&
9591 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
9592 test "x$ac_build_alias" = x
&&
9593 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
9594 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
9595 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
9599 $as_echo "$ac_cv_build" >&6; }
9600 case $ac_cv_build in
9602 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
9605 ac_save_IFS
=$IFS; IFS
='-'
9611 # Remember, the first character of IFS is used to create $*,
9612 # except with old shells:
9615 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
9619 $as_echo_n "checking host system type... " >&6; }
9620 if ${ac_cv_host+:} false
; then :
9621 $as_echo_n "(cached) " >&6
9623 if test "x$host_alias" = x
; then
9624 ac_cv_host
=$ac_cv_build
9626 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
9627 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
9632 $as_echo "$ac_cv_host" >&6; }
9635 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
9638 ac_save_IFS
=$IFS; IFS
='-'
9644 # Remember, the first character of IFS is used to create $*,
9645 # except with old shells:
9648 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
9654 ac_cpp
='$CPP $CPPFLAGS'
9655 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9656 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9657 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9661 # We used to check for pthread.h first, but this fails if pthread.h
9662 # requires special compiler flags (e.g. on True64 or Sequent).
9663 # It gets checked for in the link test anyway.
9665 # First of all, check if the user has set any of the PTHREAD_LIBS,
9666 # etcetera environment variables, and if threads linking works using
9668 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
9669 save_CFLAGS
="$CFLAGS"
9670 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9672 LIBS
="$PTHREAD_LIBS $LIBS"
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9674 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9678 /* Override any GCC internal prototype to avoid an error.
9679 Use char because int might match the return type of a GCC
9680 builtin and then its argument prototype would still apply. */
9684 char pthread_join ();
9688 return pthread_join ();
9693 if ac_fn_c_try_link
"$LINENO"; then :
9696 rm -f core conftest.err conftest.
$ac_objext \
9697 conftest
$ac_exeext conftest.
$ac_ext
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9699 $as_echo "$ax_pthread_ok" >&6; }
9700 if test x
"$ax_pthread_ok" = xno
; then
9705 CFLAGS
="$save_CFLAGS"
9708 # We must check for the threads library under a number of different
9709 # names; the ordering is very important because some systems
9710 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9711 # libraries is broken (non-POSIX).
9713 # Create a list of thread flags to try. Items starting with a "-" are
9714 # C compiler flags, and other items are library names, except for "none"
9715 # which indicates that we try without any flags at all, and "pthread-config"
9716 # which is a program returning the flags for the Pth emulation library.
9718 ax_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9720 # The ordering *is* (sometimes) important. Some notes on the
9721 # individual items follow:
9723 # pthreads: AIX (must check this before -lpthread)
9724 # none: in case threads are in libc; should be tried before -Kthread and
9725 # other compiler flags to prevent continual compiler warnings
9726 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9727 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9728 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9729 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9730 # -pthreads: Solaris/gcc
9731 # -mthreads: Mingw32/gcc, Lynx/gcc
9732 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9733 # doesn't hurt to check since this sometimes defines pthreads too;
9734 # also defines -D_REENTRANT)
9735 # ... -mt is also the pthreads flag for HP/aCC
9736 # pthread: Linux, etcetera
9737 # --thread-safe: KAI C++
9738 # pthread-config: use pthread-config program (for GNU Pth library)
9743 # On Solaris (at least, for some versions), libc contains stubbed
9744 # (non-functional) versions of the pthreads routines, so link-based
9745 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9746 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9747 # a function called by this macro, so we could check for that, but
9748 # who knows whether they'll stub that too in a future libc.) So,
9749 # we'll just look for -pthreads and -lpthread first:
9751 ax_pthread_flags
="-pthreads pthread -mt -pthread $ax_pthread_flags"
9755 ax_pthread_flags
="-pthread $ax_pthread_flags"
9759 # Clang doesn't consider unrecognized options an error unless we specify
9760 # -Werror. We throw in some extra Clang-specific options to ensure that
9761 # this doesn't happen for GCC, which also accepts -Werror.
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9764 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9765 save_CFLAGS
="$CFLAGS"
9766 ax_pthread_extra_flags
="-Werror"
9767 CFLAGS
="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9779 if ac_fn_c_try_compile
"$LINENO"; then :
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9781 $as_echo "yes" >&6; }
9783 ax_pthread_extra_flags
=
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785 $as_echo "no" >&6; }
9787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9788 CFLAGS
="$save_CFLAGS"
9790 if test x
"$ax_pthread_ok" = xno
; then
9791 for flag
in $ax_pthread_flags; do
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9796 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9801 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
9802 PTHREAD_CFLAGS
="$flag"
9806 # Extract the first word of "pthread-config", so it can be a program name with args.
9807 set dummy pthread
-config; ac_word
=$2
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9809 $as_echo_n "checking for $ac_word... " >&6; }
9810 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
9811 $as_echo_n "(cached) " >&6
9813 if test -n "$ax_pthread_config"; then
9814 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
9816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9820 test -z "$as_dir" && as_dir
=.
9821 for ac_exec_ext
in '' $ac_executable_extensions; do
9822 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9823 ac_cv_prog_ax_pthread_config
="yes"
9824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
9834 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
9835 if test -n "$ax_pthread_config"; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9837 $as_echo "$ax_pthread_config" >&6; }
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9844 if test x
"$ax_pthread_config" = xno
; then continue; fi
9845 PTHREAD_CFLAGS
="`pthread-config --cflags`"
9846 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9851 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9852 PTHREAD_LIBS
="-l$flag"
9857 save_CFLAGS
="$CFLAGS"
9858 LIBS
="$PTHREAD_LIBS $LIBS"
9859 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
9861 # Check for various functions. We must include pthread.h,
9862 # since some functions may be macros. (On the Sequent, we
9863 # need a special flag -Kthread to make this header compile.)
9864 # We check for pthread_join because it is in -lpthread on IRIX
9865 # while pthread_create is in libc. We check for pthread_attr_init
9866 # due to DEC craziness with -lpthreads. We check for
9867 # pthread_cleanup_push because it is one of the few pthread
9868 # functions on Solaris that doesn't have a non-functional libc stub.
9869 # We try pthread_create on general principles.
9870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 #include <pthread.h>
9873 static void routine(void *a) { a = 0; }
9874 static void *start_routine(void *a) { return a; }
9878 pthread_t th; pthread_attr_t attr;
9879 pthread_create(&th, 0, start_routine, 0);
9880 pthread_join(th, 0);
9881 pthread_attr_init(&attr);
9882 pthread_cleanup_push(routine, 0);
9883 pthread_cleanup_pop(0) /* ; */
9888 if ac_fn_c_try_link
"$LINENO"; then :
9891 rm -f core conftest.err conftest.
$ac_objext \
9892 conftest
$ac_exeext conftest.
$ac_ext
9895 CFLAGS
="$save_CFLAGS"
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9898 $as_echo "$ax_pthread_ok" >&6; }
9899 if test "x$ax_pthread_ok" = xyes
; then
9908 # Various other checks:
9909 if test "x$ax_pthread_ok" = xyes
; then
9911 LIBS
="$PTHREAD_LIBS $LIBS"
9912 save_CFLAGS
="$CFLAGS"
9913 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9915 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9917 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9919 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
9920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 #include <pthread.h>
9926 int attr = $attr; return attr /* ; */
9931 if ac_fn_c_try_link
"$LINENO"; then :
9932 attr_name
=$attr; break
9934 rm -f core conftest.err conftest.
$ac_objext \
9935 conftest
$ac_exeext conftest.
$ac_ext
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9938 $as_echo "$attr_name" >&6; }
9939 if test "$attr_name" != PTHREAD_CREATE_JOINABLE
; then
9941 cat >>confdefs.h
<<_ACEOF
9942 #define PTHREAD_CREATE_JOINABLE $attr_name
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9948 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9951 aix
* | freebsd
* | darwin
*) flag
="-D_THREAD_SAFE";;
9952 osf
* | hpux
*) flag
="-D_REENTRANT";;
9954 if test "$GCC" = "yes"; then
9957 # TODO: What about Clang on Solaris?
9958 flag
="-mt -D_REENTRANT"
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9963 $as_echo "$flag" >&6; }
9964 if test "x$flag" != xno
; then
9965 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9969 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9970 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
9971 $as_echo_n "(cached) " >&6
9974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976 #include <pthread.h>
9980 int i = PTHREAD_PRIO_INHERIT;
9985 if ac_fn_c_try_link
"$LINENO"; then :
9986 ax_cv_PTHREAD_PRIO_INHERIT
=yes
9988 ax_cv_PTHREAD_PRIO_INHERIT
=no
9990 rm -f core conftest.err conftest.
$ac_objext \
9991 conftest
$ac_exeext conftest.
$ac_ext
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9995 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9996 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9998 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10003 CFLAGS
="$save_CFLAGS"
10005 # More AIX lossage: compile with *_r variant
10006 if test "x$GCC" != xyes
; then
10010 x
*/c89
|x
*/c89_128
|x
*/c99
|x
*/c99_128
|x
*/cc
|x
*/cc128
|x
*/xlc
|x
*/xlc_v6
|x
*/xlc128
|x
*/xlc128_v6
) :
10011 #handle absolute path differently from PATH based program lookup
10014 if as_fn_executable_p
${CC}_r
; then :
10015 PTHREAD_CC
="${CC}_r"
10018 for ac_prog
in ${CC}_r
10020 # Extract the first word of "$ac_prog", so it can be a program name with args.
10021 set dummy
$ac_prog; ac_word
=$2
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10023 $as_echo_n "checking for $ac_word... " >&6; }
10024 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
10025 $as_echo_n "(cached) " >&6
10027 if test -n "$PTHREAD_CC"; then
10028 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
10030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10031 for as_dir
in $PATH
10034 test -z "$as_dir" && as_dir
=.
10035 for ac_exec_ext
in '' $ac_executable_extensions; do
10036 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10037 ac_cv_prog_PTHREAD_CC
="$ac_prog"
10038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
10048 if test -n "$PTHREAD_CC"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10050 $as_echo "$PTHREAD_CC" >&6; }
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10057 test -n "$PTHREAD_CC" && break
10059 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
10070 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
10076 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10077 if test x
"$ax_pthread_ok" = xyes
; then
10079 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10087 ac_cpp
='$CPP $CPPFLAGS'
10088 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10089 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10090 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10095 # Check whether --enable-libcurl was given.
10096 if test "${enable_libcurl+set}" = set; then :
10097 enableval
=$enable_libcurl; enable_curl
=$enableval
10103 if test "x$enable_curl" != "xno"; then :
10105 CURLCONFIG
="curl-config"
10106 if test "x$enable_curl" != "xyes"; then :
10107 CURLCONFIG
="$enable_curl/bin/curl-config"
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CURLCONFIG" >&5
10111 $as_echo_n "checking $CURLCONFIG... " >&6; }
10112 if $CURLCONFIG --version 2>/dev
/null
>/dev
/null
; then :
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10114 $as_echo "yes" >&6; }
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 $as_echo "no" >&6; }
10118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10120 as_fn_error $?
"Could not find curl-config, try editing --enable-libcurl
10121 See \`config.log' for more details" "$LINENO" 5; }
10124 CURLCFLAG
="`$CURLCONFIG --cflags`"
10125 CURLLIBS
="`$CURLCONFIG --libs`"
10127 if $CURLCONFIG --libs | grep -q -e ares
; then :
10133 if test -z "${CURLLIBS}"; then :
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CURLLIBS is empty, that probably means that I could not find $enable_curl/bin/curl-config" >&5
10135 $as_echo "$as_me: WARNING: CURLLIBS is empty, that probably means that I could not find $enable_curl/bin/curl-config" >&2;}
10139 if test "x$has_system_cares" = "xno" && test "x$BUILDDIR/extras/curl" != "x$enable_curl" && test "$CURLUSESCARES" != "0" ; then :
10143 You have decided to build unrealIRCd with libcURL (remote includes) support.
10144 However, you have system-installed c-ares support has either been disabled
10145 (--without-system-cares) or is unavailable.
10146 Because UnrealIRCd will use a bundled copy of c-ares which may be incompatible
10147 with the system-installed libcURL, this is a bad idea which may result in error
10148 messages looking like:
10150 \`\`[error] unrealircd.conf:9: include: error downloading '(http://example.net/ex.conf)': Could not resolve host: example.net (Successful completion)''
10152 Or UnrealIRCd might even crash.
10154 Please build UnrealIRCd with --with-system-cares when enabling --enable-libcurl
10159 IRCDLIBS
="$IRCDLIBS $CURLLIBS"
10160 CFLAGS
="$CFLAGS $CURLCFLAG"
10162 $as_echo "#define USE_LIBCURL /**/" >>confdefs.h
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl_easy_init() in $CURLLIBS" >&5
10166 $as_echo_n "checking curl_easy_init() in $CURLLIBS... " >&6; }
10167 LIBS_SAVEDA
="$LIBS"
10168 CFLAGS_SAVEDA
="$CFLAGS"
10170 LIBS
="$IRCDLIBS $IRCDLIBS_CURL_CARES"
10171 CFLAGS
="$CFLAGS $CFLAGS_CURL_CARES"
10172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10175 #include <curl/curl.h>
10179 CURL *curl = curl_easy_init();
10185 if ac_fn_c_try_link
"$LINENO"; then :
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10187 $as_echo "yes" >&6; }
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190 $as_echo "no" >&6; }
10191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10193 as_fn_error $?
"You asked for libcURL (remote includes) support, but it can't be found at $enable_curl
10194 See \`config.log' for more details" "$LINENO" 5; }
10197 rm -f core conftest.err conftest.
$ac_objext \
10198 conftest
$ac_exeext conftest.
$ac_ext
10199 LIBS
="$LIBS_SAVEDA"
10200 CFLAGS
="$CFLAGS_SAVEDA"
10207 UNRLINCDIR
="`pwd`/include"
10209 if test "$ac_cv_werror" = "yes" ; then
10210 CFLAGS
="$CFLAGS -Werror"
10213 if test "$ac_cv_asan" = "yes" ; then
10214 CFLAGS
="$CFLAGS -O0 -fno-inline -fsanitize=address -fno-omit-frame-pointer -DNOCLOSEFD"
10215 IRCDLIBS
="-fsanitize=address $IRCDLIBS"
10222 ac_config_files
="$ac_config_files Makefile src/Makefile src/modules/Makefile src/modules/chanmodes/Makefile src/modules/usermodes/Makefile src/modules/snomasks/Makefile src/modules/extbans/Makefile src/modules/cap/Makefile src/modules/third/Makefile unrealircd"
10224 cat >confcache
<<\_ACEOF
10225 # This file is a shell script that caches the results of configure
10226 # tests run on this system so they can be shared between configure
10227 # scripts and configure runs, see configure's option --config-cache.
10228 # It is not useful on other systems. If it contains results you don't
10229 # want to keep, you may remove or edit it.
10231 # config.status only pays attention to the cache file if you give it
10232 # the --recheck option to rerun configure.
10234 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10235 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10236 # following values.
10240 # The following way of writing the cache mishandles newlines in values,
10241 # but we know of no workaround that is simple, portable, and efficient.
10242 # So, we kill variables containing newlines.
10243 # Ultrix sh set writes to stderr and can't be redirected directly,
10244 # and sets the high bit in the cache file unless we assign to the vars.
10246 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10247 eval ac_val
=\$
$ac_var
10251 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10252 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10255 _
| IFS
| as_nl
) ;; #(
10256 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
10257 *) { eval $ac_var=; unset $ac_var;} ;;
10263 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10264 *${as_nl}ac_space
=\
*)
10265 # `set' does not quote correctly, so add quotes: double-quote
10266 # substitution turns \\\\ into \\, and sed turns \\ into \.
10269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10272 # `set' quotes correctly as required by POSIX, so do not add quotes.
10273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10282 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10284 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10286 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10287 if test -w "$cache_file"; then
10288 if test "x$cache_file" != "x/dev/null"; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10290 $as_echo "$as_me: updating cache $cache_file" >&6;}
10291 if test ! -f "$cache_file" || test -h "$cache_file"; then
10292 cat confcache
>"$cache_file"
10294 case $cache_file in #(
10296 mv -f confcache
"$cache_file"$$
&&
10297 mv -f "$cache_file"$$
"$cache_file" ;; #(
10299 mv -f confcache
"$cache_file" ;;
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10305 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10310 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10311 # Let make expand exec_prefix.
10312 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10314 DEFS
=-DHAVE_CONFIG_H
10319 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10320 # 1. Remove the extension, and $U if already installed.
10321 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10322 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10323 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10324 # will be set to the directory where LIBOBJS objects are built.
10325 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10326 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10328 LIBOBJS
=$ac_libobjs
10330 LTLIBOBJS
=$ac_ltlibobjs
10334 : "${CONFIG_STATUS=./config.status}"
10336 ac_clean_files_save
=$ac_clean_files
10337 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10339 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10341 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10343 # Generated by $as_me.
10344 # Run this file to recreate the current configuration.
10345 # Compiler output produced by configure, useful for debugging
10346 # configure, is in config.log if it exists.
10349 ac_cs_recheck=false
10352 SHELL=\${CONFIG_SHELL-$SHELL}
10355 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
10356 ## -------------------- ##
10357 ## M4sh Initialization. ##
10358 ## -------------------- ##
10360 # Be more Bourne compatible
10361 DUALCASE
=1; export DUALCASE
# for MKS sh
10362 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10365 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10366 # is contrary to our usage. Disable this feature.
10367 alias -g '${1+"$@"}'='"$@"'
10368 setopt NO_GLOB_SUBST
10370 case `(set -o) 2>/dev/null` in #(
10382 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10383 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10386 # Prefer a ksh shell builtin over an external printf program on Solaris,
10387 # but without wasting forks for bash or zsh.
10388 if test -z "$BASH_VERSION$ZSH_VERSION" \
10389 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10390 as_echo='print
-r --'
10391 as_echo_n='print
-rn --'
10392 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10393 as_echo='printf %s
\n'
10394 as_echo_n='printf %s
'
10396 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10397 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10398 as_echo_n='/usr
/ucb
/echo -n'
10400 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10401 as_echo_n_body='eval
10405 expr "X$arg" : "X\\(.*\\)$as_nl";
10406 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10408 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10410 export as_echo_n_body
10411 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10413 export as_echo_body
10414 as_echo='sh
-c $as_echo_body as_echo
'
10417 # The user is always right.
10418 if test "${PATH_SEPARATOR+set}" != set; then
10420 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10421 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10428 # We need space, tab and new line, in precisely that order. Quoting is
10429 # there to prevent editors from complaining about space-tab.
10430 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10431 # splitting by setting IFS to empty value.)
10434 # Find who we are. Look in the path if we contain no directory separator.
10437 *[\\/]* ) as_myself=$0 ;;
10438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439 for as_dir in $PATH
10442 test -z "$as_dir" && as_dir=.
10443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10449 # We did not find ourselves, most probably we were run as `sh COMMAND'
10450 # in which case we are not to be found in the path.
10451 if test "x$as_myself" = x
; then
10454 if test ! -f "$as_myself"; then
10455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10459 # Unset variables that we do not need and which cause bugs (e.g. in
10460 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10461 # suppresses any "Segmentation fault" message there. '((' could
10462 # trigger a bug in pdksh 5.2.14.
10463 for as_var
in BASH_ENV ENV MAIL MAILPATH
10464 do eval test x\
${$as_var+set} = xset \
10465 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
10478 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10481 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10482 # ----------------------------------------
10483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10485 # script with STATUS, using 1 if that was 0.
10488 as_status
=$1; test $as_status -eq 0 && as_status
=1
10490 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10493 $as_echo "$as_me: error: $2" >&2
10494 as_fn_exit
$as_status
10498 # as_fn_set_status STATUS
10499 # -----------------------
10500 # Set $? to STATUS, without forking.
10501 as_fn_set_status
()
10504 } # as_fn_set_status
10506 # as_fn_exit STATUS
10507 # -----------------
10508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10512 as_fn_set_status
$1
10518 # Portably unset VAR.
10521 { eval $1=; unset $1;}
10523 as_unset
=as_fn_unset
10524 # as_fn_append VAR VALUE
10525 # ----------------------
10526 # Append the text in VALUE to the end of the definition contained in VAR. Take
10527 # advantage of any shell optimizations that allow amortized linear growth over
10528 # repeated appends, instead of the typical quadratic growth present in naive
10530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10531 eval 'as_fn_append ()
10542 # as_fn_arith ARG...
10543 # ------------------
10544 # Perform arithmetic evaluation on the ARGs, and store the result in the
10545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10546 # must be portable across $(()) and expr.
10547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10548 eval 'as_fn_arith ()
10555 as_val
=`expr "$@" || test $? -eq 1`
10560 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10561 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10567 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10568 as_basename
=basename
10573 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10579 as_me
=`$as_basename -- "$0" ||
10580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10581 X"$0" : 'X\(//\)$' \| \
10582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10584 sed '/^.*\/\([^/][^/]*\)\/*$/{
10598 # Avoid depending upon Character Ranges.
10599 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10600 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10601 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10602 as_cr_digits
='0123456789'
10603 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10605 ECHO_C
= ECHO_N
= ECHO_T
=
10606 case `echo -n x` in #(((((
10608 case `echo 'xy\c'` in
10609 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10611 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10618 rm -f conf$$ conf$$.exe conf$$.
file
10619 if test -d conf$$.dir
; then
10620 rm -f conf$$.dir
/conf$$.
file
10623 mkdir conf$$.dir
2>/dev
/null
10625 if (echo >conf$$.
file) 2>/dev
/null
; then
10626 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10628 # ... but there are two gotchas:
10629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10631 # In both cases, we have to default to `cp -pR'.
10632 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
10634 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10642 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10643 rmdir conf$$.dir
2>/dev
/null
10648 # Create "$as_dir" as a directory, including parents if necessary.
10653 -*) as_dir
=.
/$as_dir;;
10655 test -d "$as_dir" || eval $as_mkdir_p || {
10659 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10660 *) as_qdir
=$as_dir;;
10662 as_dirs
="'$as_qdir' $as_dirs"
10663 as_dir
=`$as_dirname -- "$as_dir" ||
10664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10665 X"$as_dir" : 'X\(//\)[^/]' \| \
10666 X"$as_dir" : 'X\(//\)$' \| \
10667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10668 $as_echo X"$as_dir" |
10669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10673 /^X\(\/\/\)[^/].*/{
10686 test -d "$as_dir" && break
10688 test -z "$as_dirs" || eval "mkdir $as_dirs"
10689 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10693 if mkdir -p .
2>/dev
/null
; then
10694 as_mkdir_p
='mkdir -p "$as_dir"'
10696 test -d .
/-p && rmdir .
/-p
10701 # as_fn_executable_p FILE
10702 # -----------------------
10703 # Test if FILE is an executable regular file.
10704 as_fn_executable_p
()
10706 test -f "$1" && test -x "$1"
10707 } # as_fn_executable_p
10708 as_test_x
='test -x'
10709 as_executable_p
=as_fn_executable_p
10711 # Sed expression to map a string onto a valid CPP name.
10712 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10714 # Sed expression to map a string onto a valid variable name.
10715 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10719 ## ----------------------------------- ##
10720 ## Main body of $CONFIG_STATUS script. ##
10721 ## ----------------------------------- ##
10723 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10725 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10726 # Save the log message, to keep $0 and so on meaningful, and to
10727 # report actual input values of CONFIG_FILES etc. instead of their
10728 # values after options handling.
10730 This file was extended by unrealircd $as_me 4.2.4.1, which was
10731 generated by GNU Autoconf 2.69. Invocation command line was
10733 CONFIG_FILES = $CONFIG_FILES
10734 CONFIG_HEADERS = $CONFIG_HEADERS
10735 CONFIG_LINKS = $CONFIG_LINKS
10736 CONFIG_COMMANDS = $CONFIG_COMMANDS
10739 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10744 case $ac_config_files in *"
10745 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10748 case $ac_config_headers in *"
10749 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10754 # Files that config.status was made for.
10755 config_files="$ac_config_files"
10756 config_headers="$ac_config_headers"
10760 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10762 \`$as_me' instantiates files and other configuration actions
10763 from templates according to the current configuration. Unless the files
10764 and actions are specified as TAGs, all are instantiated by default.
10766 Usage: $0 [OPTION]... [TAG]...
10768 -h, --help print this help, then exit
10769 -V, --version print version number and configuration settings, then exit
10770 --config print configuration, then exit
10771 -q, --quiet, --silent
10772 do not print progress messages
10773 -d, --debug don't remove temporary files
10774 --recheck update $as_me by reconfiguring in the same conditions
10775 --file=FILE[:TEMPLATE]
10776 instantiate the configuration file FILE
10777 --header=FILE[:TEMPLATE]
10778 instantiate the configuration header FILE
10780 Configuration files:
10783 Configuration headers:
10786 Report bugs to <https://bugs.unrealircd.org/>.
10787 unrealircd home page: <https://unrealircd.org/>."
10790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10791 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10793 unrealircd config.status 4.2.4.1
10794 configured by $0, generated by GNU Autoconf 2.69,
10795 with options \\"\$ac_cs_config\\"
10797 Copyright (C) 2012 Free Software Foundation, Inc.
10798 This config.status script is free software; the Free Software Foundation
10799 gives unlimited permission to copy, distribute and modify it."
10803 test -n "\$AWK" || AWK=awk
10806 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10807 # The default lists apply if the user does not specify any file.
10813 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10814 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10818 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10830 # Handling of the options.
10831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10833 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10834 $as_echo "$ac_cs_version"; exit ;;
10835 --config | --confi | --conf | --con | --co | --c )
10836 $as_echo "$ac_cs_config"; exit ;;
10837 --debug | --debu | --deb | --de | --d | -d )
10839 --file | --fil | --fi | --f )
10842 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10843 '') as_fn_error $?
"missing file argument" ;;
10845 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10846 ac_need_defaults
=false
;;
10847 --header | --heade | --head | --hea )
10850 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10852 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10853 ac_need_defaults
=false
;;
10855 # Conflict between --help and --header
10856 as_fn_error $?
"ambiguous option: \`$1'
10857 Try \`$0 --help' for more information.";;
10858 --help | --hel | -h )
10859 $as_echo "$ac_cs_usage"; exit ;;
10860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10861 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10864 # This is an error.
10865 -*) as_fn_error $?
"unrecognized option: \`$1'
10866 Try \`$0 --help' for more information." ;;
10868 *) as_fn_append ac_config_targets
" $1"
10869 ac_need_defaults
=false
;;
10875 ac_configure_extra_args
=
10877 if $ac_cs_silent; then
10879 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10884 if \$ac_cs_recheck; then
10885 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10887 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10888 CONFIG_SHELL='$SHELL'
10889 export CONFIG_SHELL
10894 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10898 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10899 ## Running $as_me. ##
10905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10908 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10910 # Handling of arguments.
10911 for ac_config_target
in $ac_config_targets
10913 case $ac_config_target in
10914 "include/setup.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/setup.h" ;;
10915 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10916 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
10917 "src/modules/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/Makefile" ;;
10918 "src/modules/chanmodes/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/chanmodes/Makefile" ;;
10919 "src/modules/usermodes/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/usermodes/Makefile" ;;
10920 "src/modules/snomasks/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/snomasks/Makefile" ;;
10921 "src/modules/extbans/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/extbans/Makefile" ;;
10922 "src/modules/cap/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/cap/Makefile" ;;
10923 "src/modules/third/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/third/Makefile" ;;
10924 "unrealircd") CONFIG_FILES
="$CONFIG_FILES unrealircd" ;;
10926 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10931 # If the user did not use the arguments to specify the items to instantiate,
10932 # then the envvar interface is used. Set only those that are not.
10933 # We use the long form for the default assignment because of an extremely
10934 # bizarre bug on SunOS 4.1.3.
10935 if $ac_need_defaults; then
10936 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10937 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10940 # Have a temporary directory for convenience. Make it in the build tree
10941 # simply because there is no reason against having it here, and in addition,
10942 # creating and moving files from /tmp can sometimes cause problems.
10943 # Hook for its removal unless debugging.
10944 # Note that there is a small window in which the directory will not be cleaned:
10945 # after its creation but before its name has been assigned to `$tmp'.
10949 trap 'exit_status=$?
10950 : "${ac_tmp:=$tmp}"
10951 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10953 trap 'as_fn_exit 1' 1 2 13 15
10955 # Create a (secure) tmp directory for tmp files.
10958 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10962 tmp
=.
/conf$$
-$RANDOM
10963 (umask 077 && mkdir "$tmp")
10964 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10967 # Set up the scripts for CONFIG_FILES section.
10968 # No need to generate them if there are no CONFIG_FILES.
10969 # This happens for instance with `./config.status config.h'.
10970 if test -n "$CONFIG_FILES"; then
10973 ac_cr
=`echo X | tr X '\015'`
10974 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10975 # But we know of no other shell where ac_cr would be empty at this
10976 # point, so we can use a bashism as a fallback.
10977 if test "x$ac_cr" = x
; then
10978 eval ac_cr
=\$
\'\\r
\'
10980 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10981 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10984 ac_cs_awk_cr
=$ac_cr
10987 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10992 echo "cat >conf$$subs.awk <<_ACEOF" &&
10993 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10995 } >conf$$subs.sh ||
10996 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10997 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10999 for ac_last_try in false false false false false :; do
11000 . ./conf$$subs.sh ||
11001 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11003 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11004 if test $ac_delim_n = $ac_delim_num; then
11006 elif $ac_last_try; then
11007 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11009 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11012 rm -f conf$$subs.sh
11014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11015 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11019 s/^/S["/; s
/!.
*/"]=/
11029 s/\(.\{148\}\)..*/\1/
11031 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11036 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11043 s/\(.\{148\}\)..*/\1/
11045 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11049 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11054 ' <conf$$subs.awk | sed '
11059 ' >>$CONFIG_STATUS || ac_write_fail=1
11060 rm -f conf$$subs.awk
11061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11063 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11064 for (key in S) S_is_set[key] = 1
11070 nfields = split(line, field, "@
")
11072 len = length(field[1])
11073 for (i = 2; i < nfields; i++) {
11075 keylen = length(key)
11076 if (S_is_set[key]) {
11078 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11079 len += length(value) + length(field[++i])
11090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11091 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11092 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11095 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11096 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11099 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11100 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11101 # trailing colons and then remove the whole line if VPATH becomes empty
11102 # (actually we leave an empty line to preserve line numbers).
11103 if test "x
$srcdir" = x.; then
11104 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11123 fi # test -n "$CONFIG_FILES"
11125 # Set up the scripts for CONFIG_HEADERS section.
11126 # No need to generate them if there are no CONFIG_HEADERS.
11127 # This happens for instance with `./config.status Makefile'.
11128 if test -n "$CONFIG_HEADERS"; then
11129 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11133 # Transform confdefs.h into an awk script `defines.awk', embedded as
11134 # here-document in config.status, that substitutes the proper values into
11135 # config.h.in to produce config.h.
11137 # Create a delimiter string that does not exist in confdefs.h, to ease
11138 # handling of long lines.
11140 for ac_last_try in false false :; do
11141 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11142 if test -z "$ac_tt"; then
11144 elif $ac_last_try; then
11145 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11147 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11151 # For the awk script, D is an array of macro values keyed by name,
11152 # likewise P contains macro parameters if any. Preserve backslash
11153 # newline sequences.
11155 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11157 s/.\{148\}/&'"$ac_delim"'/g
11160 s/^[ ]*#[ ]*define[ ][ ]*/ /
11167 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11169 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11173 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11174 D["\
1"]=" \
3\\\\\\n
"\\/p
11176 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11181 s/.\{148\}/&'"$ac_delim"'/g
11186 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11189 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11191 ' <confdefs.h | sed '
11192 s/'"$ac_delim"'/"\\\
11193 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11196 for (key in D) D_is_set[key] = 1
11199 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11201 split(line, arg, " ")
11202 if (arg[1] == "#") {
11206 defundef
= substr
(arg
[1], 2)
11209 split(mac1
, mac2
, "(") #)
11211 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11212 if (D_is_set
[macro
]) {
11213 # Preserve the white space surrounding the "#".
11214 print prefix
"define", macro P
[macro
] D
[macro
]
11217 # Replace #undef with comments. This is necessary, for example,
11218 # in the case of _POSIX_SOURCE, which is predefined and required
11219 # on some systems where configure will not decide to define it.
11220 if (defundef
== "undef") {
11221 print
"/*", prefix defundef
, macro
, "*/"
11229 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
11230 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11231 fi # test -n "$CONFIG_HEADERS"
11234 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11239 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11241 case $ac_mode$ac_tag in
11243 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11244 :[FH
]-) ac_tag
=-:-;;
11245 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11262 -) ac_f
="$ac_tmp/stdin";;
11263 *) # Look for the file first in the build tree, then in the source tree
11264 # (if the path is not absolute). The absolute path cannot be DOS-style,
11265 # because $ac_f cannot contain `:'.
11269 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11271 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11273 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11274 as_fn_append ac_file_inputs
" '$ac_f'"
11277 # Let's still pretend it is `configure' which instantiates (i.e., don't
11278 # use $as_me), people would be surprised to read:
11279 # /* config.h. Generated by config.status. */
11280 configure_input
='Generated from '`
11281 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11283 if test x
"$ac_file" != x
-; then
11284 configure_input
="$ac_file. $configure_input"
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11286 $as_echo "$as_me: creating $ac_file" >&6;}
11288 # Neutralize special characters interpreted by sed in replacement strings.
11289 case $configure_input in #(
11290 *\
&* | *\
|* | *\\* )
11291 ac_sed_conf_input
=`$as_echo "$configure_input" |
11292 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11293 *) ac_sed_conf_input
=$configure_input;;
11297 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11298 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11303 ac_dir
=`$as_dirname -- "$ac_file" ||
11304 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11305 X"$ac_file" : 'X\(//\)[^/]' \| \
11306 X"$ac_file" : 'X\(//\)$' \| \
11307 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11308 $as_echo X"$ac_file" |
11309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11313 /^X\(\/\/\)[^/].*/{
11326 as_dir
="$ac_dir"; as_fn_mkdir_p
11330 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11332 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11333 # A ".." for each directory in $ac_dir_suffix.
11334 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11335 case $ac_top_builddir_sub in
11336 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11337 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11340 ac_abs_top_builddir
=$ac_pwd
11341 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11342 # for backward compatibility:
11343 ac_top_builddir
=$ac_top_build_prefix
11346 .
) # We are building in place.
11348 ac_top_srcdir
=$ac_top_builddir_sub
11349 ac_abs_top_srcdir
=$ac_pwd ;;
11350 [\\/]* | ?
:[\\/]* ) # Absolute name.
11351 ac_srcdir
=$srcdir$ac_dir_suffix;
11352 ac_top_srcdir
=$srcdir
11353 ac_abs_top_srcdir
=$srcdir ;;
11354 *) # Relative name.
11355 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11356 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11357 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11359 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11370 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
11371 # If the template does not know about datarootdir, expand it.
11372 # FIXME: This hack should be removed a few years after 2.60.
11373 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11384 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11385 *datarootdir
*) ac_datarootdir_seen
=yes;;
11386 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11388 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11391 ac_datarootdir_hack='
11392 s&@datadir@&$datadir&g
11393 s&@docdir@&$docdir&g
11394 s&@infodir@&$infodir&g
11395 s&@localedir@&$localedir&g
11396 s&@mandir@&$mandir&g
11397 s&\\\${datarootdir}&$datarootdir&g' ;;
11401 # Neutralize VPATH when `$srcdir' = `.'.
11402 # Shell code in configure.ac might set extrasub.
11403 # FIXME: do we really want to maintain this feature?
11404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11405 ac_sed_extra="$ac_vpsub
11408 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
11410 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
11411 s
|@configure_input@
|$ac_sed_conf_input|;t t
11412 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11413 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11414 s
&@srcdir@
&$ac_srcdir&;t t
11415 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11416 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11417 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11418 s
&@builddir@
&$ac_builddir&;t t
11419 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11420 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11421 $ac_datarootdir_hack
11423 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11424 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11426 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11427 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11428 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11429 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11431 which seems to be undefined. Please make sure it is defined" >&5
11432 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11433 which seems to be undefined. Please make sure it is defined" >&2;}
11435 rm -f "$ac_tmp/stdin"
11437 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11438 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11446 if test x"$ac_file" != x-; then
11448 $as_echo "/* $configure_input */" \
11449 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11450 } >"$ac_tmp/config.h" \
11451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11452 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11454 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11457 mv "$ac_tmp/config.h" "$ac_file" \
11458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11461 $as_echo "/* $configure_input */" \
11462 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11463 || as_fn_error $? "could not create -" "$LINENO" 5
11475 ac_clean_files=$ac_clean_files_save
11477 test $ac_write_fail = 0 ||
11478 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11481 # configure is writing to config.log, and then calls config.status.
11482 # config.status does its own redirection, appending to config.log.
11483 # Unfortunately, on DOS this fails, as config.log is still kept open
11484 # by configure, so config.status won't be able to
write to it
; its
11485 # output is simply discarded. So we exec the FD to /dev/null,
11486 # effectively closing config.log, so it can be properly (re)opened and
11487 # appended to by config.status. When coming back to configure, we
11488 # need to make the FD available again.
11489 if test "$no_create" != yes; then
11491 ac_config_status_args
=
11492 test "$silent" = yes &&
11493 ac_config_status_args
="$ac_config_status_args --quiet"
11495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11498 # would make configure fail if this is the last instruction.
11499 $ac_cs_success || as_fn_exit
1
11501 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11503 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11506 chmod 0700 unrealircd