2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for unrealircd 6.1.6-rc1.
5 # Report bugs to <https://bugs.unrealircd.org/>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \
${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
74 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
81 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself
=$0 ;;
91 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
120 _as_can_reexec
=no
; export _as_can_reexec
;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
129 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec
=; unset _as_can_reexec
;}
142 if test "x$CONFIG_SHELL" = x
; then
143 as_bourne_compatible
="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required
="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev
/null
193 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
199 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
205 *) as_dir
=$as_dir/ ;;
210 for as_base
in sh bash ksh sh5
; do
211 # Try only shells that exist, to save several forks.
212 as_shell
=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
216 CONFIG_SHELL
=$as_shell as_have_required
=yes
217 if as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev
/null
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
234 CONFIG_SHELL
=$SHELL as_have_required
=yes
239 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: https://bugs.unrealircd.org/ about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
280 SHELL
=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE
= GREP_OPTIONS
=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Do nothing but, unlike ":", preserve the value of $?.
327 # Create "$as_dir" as a directory, including parents if necessary.
332 -*) as_dir
=.
/$as_dir;;
334 test -d "$as_dir" || eval $as_mkdir_p || {
338 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
341 as_dirs
="'$as_qdir' $as_dirs"
342 as_dir
=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
365 test -d "$as_dir" && break
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p
()
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
388 eval 'as_fn_append ()
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
413 as_val
=`expr "$@" || test $? -eq 1`
419 # Do nothing but, unlike ":", preserve the value of $?.
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
433 as_status
=$1; test $as_status -eq 0 && as_status
=1
435 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit
$as_status
442 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
449 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
461 as_me
=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
480 # Avoid depending upon Character Ranges.
481 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits
='0123456789'
485 as_cr_alnum
=$as_cr_Letters$as_cr_digits
488 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
489 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
508 chmod +x
"$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec
=no
; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
519 # Exit status is that of the last command.
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C
= ECHO_N
= ECHO_T
=
528 case `echo -n x` in #(((((
530 case `echo 'xy\c'` in
531 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo
='printf %s\n'
544 as_echo_n
='printf %s'
547 rm -f conf$$ conf$$.exe conf$$.
file
548 if test -d conf$$.dir
; then
549 rm -f conf$$.dir
/conf$$.
file
552 mkdir conf$$.dir
2>/dev
/null
554 if (echo >conf$$.
file) 2>/dev
/null
; then
555 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
563 elif ln conf$$.
file conf$$
2>/dev
/null
; then
571 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
572 rmdir conf$$.dir
2>/dev
/null
574 if mkdir -p .
2>/dev
/null
; then
575 as_mkdir_p
='mkdir -p "$as_dir"'
577 test -d .
/-p && rmdir .
/-p
582 as_executable_p
=as_fn_executable_p
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
591 test -n "$DJDIR" || exec 7<&0 </dev
/null
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
602 ac_default_prefix
=/usr
/local
604 ac_config_libobj_dir
=.
611 # Identity of this package.
612 PACKAGE_NAME
='unrealircd'
613 PACKAGE_TARNAME
='unrealircd'
614 PACKAGE_VERSION
='6.1.6-rc1'
615 PACKAGE_STRING
='unrealircd 6.1.6-rc1'
616 PACKAGE_BUGREPORT
='https://bugs.unrealircd.org/'
617 PACKAGE_URL
='https://unrealircd.org/'
619 ac_unique_file
="src/ircd.c"
620 # Factoring default headers for most tests.
621 ac_includes_default
="\
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
652 ac_subst_vars
='LTLIBOBJS
656 GEOIP_MAXMIND_OBJECTS
659 GEOIP_CLASSIC_OBJECTS
755 program_transform_name
768 enable_option_checking
787 with_operoverride_verify
794 enable_dynamic_linking
801 ac_precious_vars
='build_alias
829 # Initialize some variables set by options.
831 ac_init_version
=false
832 ac_unrecognized_opts
=
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
843 program_transform_name
=s
,x
,x
,
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir
='${exec_prefix}/bin'
858 sbindir
='${exec_prefix}/sbin'
859 libexecdir
='${exec_prefix}/libexec'
860 datarootdir
='${prefix}/share'
861 datadir
='${datarootdir}'
862 sysconfdir
='${prefix}/etc'
863 sharedstatedir
='${prefix}/com'
864 localstatedir
='${prefix}/var'
865 runstatedir
='${localstatedir}/run'
866 includedir
='${prefix}/include'
867 oldincludedir
='/usr/include'
868 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir
='${datarootdir}/info'
874 libdir
='${exec_prefix}/lib'
875 localedir
='${datarootdir}/locale'
876 mandir
='${datarootdir}/man'
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\
$ac_option
890 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 case $ac_dashdash$ac_option in
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 -build | --build | --buil | --bui | --bu)
905 ac_prev
=build_alias
;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias
=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev
=cache_file
;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file
=$ac_optarg ;;
917 cache_file
=config.cache
;;
919 -datadir | --datadir | --datadi | --datad)
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir
=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev
=datarootdir
;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir
=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
935 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
936 ac_useropt_orig
=$ac_useropt
937 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
942 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep
=', ';;
945 eval enable_
$ac_useropt=no
;;
947 -docdir | --docdir | --docdi | --doc | --do)
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 -enable-* | --enable-*)
958 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
961 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
962 ac_useropt_orig
=$ac_useropt
963 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
968 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep
=', ';;
971 eval enable_
$ac_useropt=\
$ac_optarg ;;
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev
=exec_prefix
;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix
=$ac_optarg ;;
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
986 -help | --help | --hel | --he | -h)
988 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
989 ac_init_help
=recursive
;;
990 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
991 ac_init_help
=short
;;
993 -host | --host | --hos | --ho)
994 ac_prev
=host_alias
;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias
=$ac_optarg ;;
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 htmldir
=$ac_optarg ;;
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev
=includedir
;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir
=$ac_optarg ;;
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir
=$ac_optarg ;;
1016 -libdir | --libdir | --libdi | --libd)
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir
=$ac_optarg ;;
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev
=libexecdir
;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir
=$ac_optarg ;;
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev
=localedir
;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir
=$ac_optarg ;;
1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
1034 | --localstate | --localstat | --localsta | --localst | --locals)
1035 ac_prev
=localstatedir
;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038 localstatedir
=$ac_optarg ;;
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir
=$ac_optarg ;;
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev
=oldincludedir
;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir
=$ac_optarg ;;
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix
=$ac_optarg ;;
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev
=program_prefix
;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix
=$ac_optarg ;;
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev
=program_suffix
;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix
=$ac_optarg ;;
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev
=program_transform_name
;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name
=$ac_optarg ;;
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir
=$ac_optarg ;;
1107 -psdir | --psdir | --psdi | --psd | --ps)
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1116 -runstatedir | --runstatedir | --runstatedi | --runstated \
1117 | --runstate | --runstat | --runsta | --runst | --runs \
1118 | --run | --ru | --r)
1119 ac_prev
=runstatedir
;;
1120 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1121 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1122 | --run=* | --ru=* | --r=*)
1123 runstatedir
=$ac_optarg ;;
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 sbindir
=$ac_optarg ;;
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1135 ac_prev
=sharedstatedir
;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 sharedstatedir
=$ac_optarg ;;
1142 -site | --site | --sit)
1144 -site=* | --site=* | --sit=*)
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir
=$ac_optarg ;;
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev
=sysconfdir
;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir
=$ac_optarg ;;
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev
=target_alias
;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias
=$ac_optarg ;;
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version
=: ;;
1171 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1174 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1175 ac_useropt_orig
=$ac_useropt
1176 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1181 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep
=', ';;
1184 eval with_
$ac_useropt=\
$ac_optarg ;;
1186 -without-* | --without-*)
1187 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1190 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1191 ac_useropt_orig
=$ac_useropt
1192 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1197 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep
=', ';;
1200 eval with_
$ac_useropt=no
;;
1203 # Obsolete; use --with-x.
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev
=x_includes
;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes
=$ac_optarg ;;
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev
=x_libraries
;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries
=$ac_optarg ;;
1220 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1225 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1231 eval $ac_envvar=\
$ac_optarg
1232 export $ac_envvar ;;
1235 # FIXME: should be removed in autoconf 3.0.
1236 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1238 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1245 if test -n "$ac_prev"; then
1246 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $?
"missing argument to $ac_option"
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1253 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1254 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 # Check all directory arguments for consistency.
1259 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir runstatedir
1264 eval ac_val
=\$
$ac_var
1265 # Remove trailing slashes.
1268 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\
$ac_val;;
1271 # Be sure to have absolute directory names.
1273 [\\/$
]* | ?
:[\\/]* ) continue;;
1274 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1276 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1284 target
=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x
; then
1288 if test "x$build_alias" = x
; then
1289 cross_compiling
=maybe
1290 elif test "x$build_alias" != "x$host_alias"; then
1296 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1298 test "$silent" = yes && exec 6>/dev
/null
1301 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di
=`ls -di .` &&
1303 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $?
"working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $?
"pwd does not report name of working directory"
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted
=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir
=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 printf "%s\n" X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1341 ac_srcdir_defaulted
=no
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1345 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1347 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1359 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 for ac_var
in $ac_precious_vars; do
1362 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1363 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1364 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1365 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1375 \`configure' configures unrealircd 6.1.6-rc1 to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/unrealircd]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1434 --build=BUILD configure
for building on BUILD
[guessed
]
1435 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short
| recursive
) echo "Configuration of unrealircd 6.1.6-rc1:";;
1446 --disable-option-checking ignore unrecognized
--enable/--with options
1447 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1448 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1449 --enable-hardening Enable compiler and linker options to frustrate
1450 memory corruption exploits
[yes]
1451 --enable-ssl= enable ssl will check
/usr
/local
/opt
/openssl
1452 /usr
/local
/ssl
/usr
/lib
/ssl
/usr
/ssl
/usr
/pkg
1453 /usr
/sfw
/usr
/local /usr
1454 --disable-dynamic-linking
1455 Make the IRCd statically link with shared objects
1456 rather than dynamically
(noone knows
if disabling
1457 dynamic linking actually does anything or not
)
1458 --enable-werror Turn compilation warnings into errors
(-Werror)
1459 --enable-asan Enable address sanitizer and other debugging
1460 options
, not recommended
for production servers
!
1461 --enable-libcurl=DIR
enable libcurl
(remote include
) support
1462 --enable-geoip-classic=no
/yes
1463 enable GeoIP Classic support
1464 --enable-libmaxminddb=no
/yes
1465 enable GeoIP libmaxminddb support
1468 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1469 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1470 --with-nick-history=length
1471 Specify the length of the nickname
history
1472 --with-permissions=permissions
1473 Specify the default permissions
for configuration
1475 --with-bindir=path Specify the directory
for the unrealircd binary
1476 --with-scriptdir=path Specify the directory
for the unrealircd start
-stop
1478 --with-confdir=path Specify the directory where configuration files are
1480 --with-builddir=path Specify the build directory
1481 --with-modulesdir=path Specify the directory
for loadable modules
1482 --with-logdir=path Specify the directory where log files are stored
1483 --with-cachedir=path Specify the directory where cached files are stored
1484 --with-tmpdir=path Specify the directory where private temporary files
1485 are stored. Should not be readable or writable by
1486 others
, so not
/tmp
!!
1487 --with-datadir=path Specify the directory where permanent data is stored
1488 --with-docdir=path Specify the directory where documentation is stored
1489 --with-pidfile=path Specify the path of the pid
file
1490 --with-controlfile=path Specify the path of the control socket
1491 --with-privatelibdir=path
1492 Specify the directory where private libraries are
1493 stored. Disable when building a package
for a distro
1494 --with-maxconnections=size
1495 Specify the max
file descriptors to use
1496 --with-no-operoverride Disable OperOverride
1497 --with-operoverride-verify
1498 Require opers to invite themselves to
+s
/+p channels
1499 --without-system-pcre2 Use the system pcre2 package instead of bundled
,
1500 discovered using pkg
-config
1501 --with-system-argon2 Use system argon2 instead of bundled version.
1502 Normally we prefer the one shipped with unrealircd
1503 because it is much faster
1504 --without-system-sodium Use bundled version instead of system sodium
1505 library. Normally autodetected via pkg
-config
1506 --without-system-cares Use bundled version instead of system c
-ares.
1507 Normally autodetected via pkg
-config.
1508 --without-system-jansson
1509 Use bundled version instead of system jansson.
1510 Normally autodetected via pkg
-config.
1512 Some influential environment variables
:
1513 CC C compiler
command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1516 nonstandard directory
<lib dir
>
1517 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1518 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1519 you have headers
in a nonstandard directory
<include dir
>
1521 PKG_CONFIG path to pkg
-config utility
1523 directories to add to pkg
-config's search path
1525 path overriding pkg-config's built
-in search path
1527 C compiler flags
for PCRE2
, overriding pkg
-config
1528 PCRE2_LIBS linker flags
for PCRE2
, overriding pkg
-config
1530 C compiler flags
for ARGON2
, overriding pkg
-config
1531 ARGON2_LIBS linker flags
for ARGON2
, overriding pkg
-config
1533 C compiler flags
for SODIUM
, overriding pkg
-config
1534 SODIUM_LIBS linker flags
for SODIUM
, overriding pkg
-config
1536 C compiler flags
for CARES
, overriding pkg
-config
1537 CARES_LIBS linker flags
for CARES
, overriding pkg
-config
1539 C compiler flags
for JANSSON
, overriding pkg
-config
1541 linker flags
for JANSSON
, overriding pkg
-config
1542 GEOIP_CLASSIC_CFLAGS
1543 C compiler flags
for GEOIP_CLASSIC
, overriding pkg
-config
1545 linker flags
for GEOIP_CLASSIC
, overriding pkg
-config
1547 C compiler flags
for LIBMAXMINDDB
, overriding pkg
-config
1549 linker flags
for LIBMAXMINDDB
, overriding pkg
-config
1551 Use these variables to override the choices made by
`configure' or to help
1552 it to find libraries and programs with nonstandard names/locations.
1554 Report bugs to <https://bugs.unrealircd.org/>.
1555 unrealircd home page: <https://unrealircd.org/>.
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" ||
1564 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1572 # A ".." for each directory in $ac_dir_suffix.
1573 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1574 case $ac_top_builddir_sub in
1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1585 .) # We are building in place.
1587 ac_top_srcdir=$ac_top_builddir_sub
1588 ac_abs_top_srcdir=$ac_pwd ;;
1589 [\\/]* | ?:[\\/]* ) # Absolute name.
1590 ac_srcdir=$srcdir$ac_dir_suffix;
1591 ac_top_srcdir=$srcdir
1592 ac_abs_top_srcdir=$srcdir ;;
1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595 ac_top_srcdir=$ac_top_build_prefix$srcdir
1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600 cd "$ac_dir" || { ac_status=$?; continue; }
1601 # Check for configure.gnu first; this name is used for a wrapper for
1602 # Metaconfig's "Configure" on case-insensitive file systems.
1603 if test -f "$ac_srcdir/configure.gnu"; then
1605 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606 elif test -f "$ac_srcdir/configure"; then
1608 $SHELL "$ac_srcdir/configure" --help=recursive
1610 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612 cd "$ac_pwd" || { ac_status=$?; break; }
1616 test -n "$ac_init_help" && exit $ac_status
1617 if $ac_init_version; then
1619 unrealircd configure 6.1.6-rc1
1620 generated by GNU Autoconf 2.71
1622 Copyright (C) 2021 Free Software Foundation, Inc.
1623 This configure script is free software; the Free Software Foundation
1624 gives unlimited permission to copy, distribute and modify it.
1629 ## ------------------------ ##
1630 ## Autoconf initialization. ##
1631 ## ------------------------ ##
1633 # ac_fn_c_try_compile LINENO
1634 # --------------------------
1635 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_compile ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext conftest.beam
1640 if { { ac_try="$ac_compile"
1642 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1643 *) ac_try_echo
=$ac_try;;
1645 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 printf "%s\n" "$ac_try_echo"; } >&5
1647 (eval "$ac_compile") 2>conftest.err
1649 if test -s conftest.err
; then
1650 grep -v '^ *+' conftest.err
>conftest.er1
1651 cat conftest.er1
>&5
1652 mv -f conftest.er1 conftest.err
1654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest.
$ac_objext
1662 printf "%s\n" "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.
$ac_ext >&5
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status
$ac_retval
1670 } # ac_fn_c_try_compile
1672 # ac_fn_c_try_link LINENO
1673 # -----------------------
1674 # Try to link conftest.$ac_ext, and return whether this succeeded.
1677 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1678 rm -f conftest.
$ac_objext conftest.beam conftest
$ac_exeext
1679 if { { ac_try
="$ac_link"
1681 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 printf "%s\n" "$ac_try_echo"; } >&5
1686 (eval "$ac_link") 2>conftest.err
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest$ac_exeext && {
1698 test "$cross_compiling" = yes ||
1699 test -x conftest$ac_exeext
1704 printf "%s\n" "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1709 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1710 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1711 # interfere with the next link command; also delete a directory that is
1712 # left behind by Apple's compiler. We do this before executing the actions.
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1717 } # ac_fn_c_try_link
1719 # ac_fn_c_try_run LINENO
1720 # ----------------------
1721 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1722 # executables *can* be run.
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_link"
1728 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1729 *) ac_try_echo
=$ac_try;;
1731 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 printf "%s\n" "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>&5
1735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1737 { { case "(($ac_try" in
1738 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 printf "%s\n" "$ac_try_echo"; } >&5
1743 (eval "$ac_try") 2>&5
1745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; }; }
1750 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1751 printf "%s\n" "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 ac_retval=$ac_status
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 printf %s "checking for $2... " >&6; }
1771 if eval test \${$3+y}
1773 printf %s "(cached) " >&6
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1780 if ac_fn_c_try_compile "$LINENO"
1786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 printf "%s\n" "$ac_res" >&6; }
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 } # ac_fn_c_check_header_compile
1795 # ac_fn_c_check_func LINENO FUNC VAR
1796 # ----------------------------------
1797 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1798 ac_fn_c_check_func ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 printf %s "checking for $2... " >&6; }
1803 if eval test \${$3+y}
1805 printf %s "(cached) " >&6
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1809 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1811 #define $2 innocuous_$2
1813 /* System header to define __stub macros and hopefully few prototypes,
1814 which can conflict with char $2 (); below. */
1819 /* Override any GCC internal prototype to avoid an error.
1820 Use char because int might match the return type of a GCC
1821 builtin and then its argument prototype would still apply. */
1826 /* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829 #if defined __stub_$2 || defined __stub___$2
1841 if ac_fn_c_try_link "$LINENO"
1847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1848 conftest$ac_exeext conftest.$ac_ext
1851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 printf "%s\n" "$ac_res" >&6; }
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 } # ac_fn_c_check_func
1857 # ac_fn_c_try_cpp LINENO
1858 # ----------------------
1859 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_cpp conftest.$ac_ext"
1865 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1866 *) ac_try_echo
=$ac_try;;
1868 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 printf "%s\n" "$ac_try_echo"; } >&5
1870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1872 if test -s conftest.err
; then
1873 grep -v '^ *+' conftest.err
>conftest.er1
1874 cat conftest.er1
>&5
1875 mv -f conftest.er1 conftest.err
1877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } > conftest.i
&& {
1879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1880 test ! -s conftest.err
1885 printf "%s\n" "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.
$ac_ext >&5
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status
$ac_retval
1894 ac_configure_args_raw
=
1899 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1901 as_fn_append ac_configure_args_raw
" '$ac_arg'"
1904 case $ac_configure_args_raw in
1908 ac_unsafe_z
='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1909 ac_unsafe_a
="$ac_unsafe_z#~"
1910 ac_safe_unquote
="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1911 ac_configure_args_raw
=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1914 cat >config.log
<<_ACEOF
1915 This file contains any messages produced by compilers while
1916 running configure, to aid debugging if configure makes a mistake.
1918 It was created by unrealircd $as_me 6.1.6-rc1, which was
1919 generated by GNU Autoconf 2.71. Invocation command line was
1921 $ $0$ac_configure_args_raw
1931 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1932 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1933 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1934 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1935 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1937 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1938 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1940 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1941 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1942 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1943 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1944 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1945 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1946 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1954 case $as_dir in #(((
1957 *) as_dir
=$as_dir/ ;;
1959 printf "%s\n" "PATH: $as_dir"
1975 # Keep a trace of the command line.
1976 # Strip out --no-create and --no-recursion so they do not pile up.
1977 # Strip out --silent because we don't want to record it for future runs.
1978 # Also quote any args containing shell meta-characters.
1979 # Make two passes to allow for proper duplicate-argument suppression.
1983 ac_must_keep_next
=false
1989 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1991 | -silent | --silent | --silen | --sile | --sil)
1994 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1999 as_fn_append ac_configure_args1
" '$ac_arg'"
2000 if test $ac_must_keep_next = true
; then
2001 ac_must_keep_next
=false
# Got value, back to normal.
2004 *=* | --config-cache | -C | -disable-* | --disable-* \
2005 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2006 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2007 | -with-* | --with-* | -without-* | --without-* | --x)
2008 case "$ac_configure_args0 " in
2009 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2012 -* ) ac_must_keep_next
=true
;;
2015 as_fn_append ac_configure_args
" '$ac_arg'"
2020 { ac_configure_args0
=; unset ac_configure_args0
;}
2021 { ac_configure_args1
=; unset ac_configure_args1
;}
2023 # When interrupted or exit'd, cleanup temporary files, and complete
2024 # config.log. We remove comments because anyway the quotes in there
2025 # would cause problems or look ugly.
2026 # WARNING: Use '\'' to represent an apostrophe within the trap.
2027 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2028 trap 'exit_status=$?
2031 # Save into config.log some information that might help in debugging.
2035 printf "%s\n" "## ---------------- ##
2036 ## Cache variables. ##
2037 ## ---------------- ##"
2039 # The following way of writing the cache mishandles newlines in values,
2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042 eval ac_val=\$$ac_var
2046 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2047 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2050 _ | IFS | as_nl) ;; #(
2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2052 *) { eval $ac_var=; unset $ac_var;} ;;
2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058 *${as_nl}ac_space=\ *)
2060 "s/'\''/'\''\\\\'\'''\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2071 printf "%s\n" "## ----------------- ##
2072 ## Output variables. ##
2073 ## ----------------- ##"
2075 for ac_var in $ac_subst_vars
2077 eval ac_val=\$$ac_var
2079 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 printf "%s\n" "$ac_var='\''$ac_val'\''"
2085 if test -n "$ac_subst_files"; then
2086 printf "%s\n" "## ------------------- ##
2087 ## File substitutions. ##
2088 ## ------------------- ##"
2090 for ac_var
in $ac_subst_files
2092 eval ac_val
=\$
$ac_var
2094 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 printf "%s\n" "$ac_var='\''$ac_val'\''"
2101 if test -s confdefs.h; then
2102 printf "%s\n" "## ----------- ##
2109 test "$ac_signal" != 0 &&
2110 printf "%s\n" "$as_me: caught signal $ac_signal"
2111 printf "%s\n" "$as_me: exit $exit_status"
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2117 for ac_signal
in 1 2 13 15; do
2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2122 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2123 rm -f -r conftest
* confdefs.h
2125 printf "%s\n" "/* confdefs.h */" > confdefs.h
2127 # Predefined preprocessor variables.
2129 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2131 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2133 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2135 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2137 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2139 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2142 # Let the site file select an alternate cache file if it wants to.
2143 # Prefer an explicitly selected file to automatically selected ones.
2144 if test -n "$CONFIG_SITE"; then
2145 ac_site_files
="$CONFIG_SITE"
2146 elif test "x$prefix" != xNONE
; then
2147 ac_site_files
="$prefix/share/config.site $prefix/etc/config.site"
2149 ac_site_files
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2152 for ac_site_file
in $ac_site_files
2154 case $ac_site_file in #(
2158 ac_site_file
=.
/$ac_site_file ;;
2160 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2162 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2163 sed 's/^/| /' "$ac_site_file" >&5
2165 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2166 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2167 as_fn_error $?
"failed to load site script $ac_site_file
2168 See \`config.log' for more details" "$LINENO" 5; }
2172 if test -r "$cache_file"; then
2173 # Some versions of bash will fail to source /dev/null (special files
2174 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2175 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2177 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2179 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2180 *) .
"./$cache_file";;
2184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2185 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2189 # Test code for whether the C compiler supports C89 (global declarations)
2190 ac_c_conftest_c89_globals
='
2191 /* Does the compiler advertise C89 conformance?
2192 Do not test the value of __STDC__, because some compilers set it to 0
2193 while being otherwise adequately conformant. */
2194 #if !defined __STDC__
2195 # error "Compiler does not advertise C89 conformance"
2201 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2202 struct buf { int x; };
2203 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2204 static char *e (p, i)
2210 static char *f (char * (*g) (char **, int), char **p, ...)
2215 s = g (p, va_arg (v,int));
2220 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2221 function prototypes and stuff, but not \xHH hex character constants.
2222 These do not provoke an error unfortunately, instead are silently treated
2223 as an "x". The following induces an error, until -std is added to get
2224 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2225 array size at least. It is necessary to write \x00 == 0 to get something
2226 that is true only with -std. */
2227 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2229 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2230 inside strings and character constants. */
2231 #define FOO(x) '\''x'\''
2232 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2234 int test (int i, double x);
2235 struct s1 {int (*f) (int a);};
2236 struct s2 {int (*f) (double a);};
2237 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2240 # Test code for whether the C compiler supports C89 (body of main).
2241 ac_c_conftest_c89_main
='
2242 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2245 # Test code for whether the C compiler supports C99 (global declarations)
2246 ac_c_conftest_c99_globals
='
2247 // Does the compiler advertise C99 conformance?
2248 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2249 # error "Compiler does not advertise C99 conformance"
2252 #include <stdbool.h>
2253 extern int puts (const char *);
2254 extern int printf (const char *, ...);
2255 extern int dprintf (int, const char *, ...);
2256 extern void *malloc (size_t);
2258 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2259 // dprintf is used instead of fprintf to avoid needing to declare
2261 #define debug(...) dprintf (2, __VA_ARGS__)
2262 #define showlist(...) puts (#__VA_ARGS__)
2263 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2265 test_varargs_macros (void)
2270 debug ("X = %d\n", x);
2271 showlist (The first, second, and third items.);
2272 report (x>y, "x is %d but y is %d", x, y);
2275 // Check long long types.
2276 #define BIG64 18446744073709551615ull
2277 #define BIG32 4294967295ul
2278 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2280 #error "your preprocessor is broken"
2284 #error "your preprocessor is broken"
2286 static long long int bignum = -9223372036854775807LL;
2287 static unsigned long long int ubignum = BIG64;
2289 struct incomplete_array
2297 const wchar_t *name;
2301 typedef const char *ccp;
2304 test_restrict (ccp restrict text)
2306 // See if C++-style comments work.
2307 // Iterate through items via the restricted pointer.
2308 // Also check for declarations in for loops.
2309 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2314 // Check varargs and va_copy.
2316 test_varargs (const char *format, ...)
2319 va_start (args, format);
2321 va_copy (args_copy, args);
2323 const char *str = "";
2331 case '\''s'\'': // string
2332 str = va_arg (args_copy, const char *);
2334 case '\''d'\'': // int
2335 number = va_arg (args_copy, int);
2337 case '\''f'\'': // float
2338 fnumber = va_arg (args_copy, double);
2347 return *str && number && fnumber;
2351 # Test code for whether the C compiler supports C99 (body of main).
2352 ac_c_conftest_c99_main
='
2354 _Bool success = false;
2355 success |= (argc != 0);
2358 if (test_restrict ("String literal") == 0)
2360 char *restrict newvar = "Another string";
2363 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2364 test_varargs_macros ();
2366 // Check flexible array members.
2367 struct incomplete_array *ia =
2368 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2370 for (int i = 0; i < ia->datasize; ++i)
2371 ia->data[i] = i * 1.234;
2373 // Check named initializers.
2374 struct named_init ni = {
2376 .name = L"Test wide string",
2377 .average = 543.34343,
2382 int dynamic_array[ni.number];
2383 dynamic_array[0] = argv[0][0];
2384 dynamic_array[ni.number - 1] = 543;
2386 // work around unused variable warnings
2387 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2388 || dynamic_array[ni.number - 1] != 543);
2391 # Test code for whether the C compiler supports C11 (global declarations)
2392 ac_c_conftest_c11_globals
='
2393 // Does the compiler advertise C11 conformance?
2394 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2395 # error "Compiler does not advertise C11 conformance"
2399 char _Alignas (double) aligned_as_double;
2400 char _Alignas (0) no_special_alignment;
2401 extern char aligned_as_int;
2402 char _Alignas (0) _Alignas (int) aligned_as_int;
2407 int_alignment = _Alignof (int),
2408 int_array_alignment = _Alignof (int[100]),
2409 char_alignment = _Alignof (char)
2411 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2414 int _Noreturn does_not_return (void) { for (;;) continue; }
2416 // Check _Static_assert.
2417 struct test_static_assert
2420 _Static_assert (sizeof (int) <= sizeof (long int),
2421 "_Static_assert does not work in struct");
2425 // Check UTF-8 literals.
2426 #define u8 syntax error!
2427 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2429 // Check duplicate typedefs.
2430 typedef long *long_ptr;
2431 typedef long int *long_ptr;
2432 typedef long_ptr long_ptr;
2434 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2438 struct { int i; int j; };
2439 struct { int k; long int l; } w;
2445 # Test code for whether the C compiler supports C11 (body of main).
2446 ac_c_conftest_c11_main
='
2447 _Static_assert ((offsetof (struct anonymous, i)
2448 == offsetof (struct anonymous, w.k)),
2449 "Anonymous union alignment botch");
2455 # Test code for whether the C compiler supports C11 (complete).
2456 ac_c_conftest_c11_program
="${ac_c_conftest_c89_globals}
2457 ${ac_c_conftest_c99_globals}
2458 ${ac_c_conftest_c11_globals}
2461 main (int argc, char **argv)
2464 ${ac_c_conftest_c89_main}
2465 ${ac_c_conftest_c99_main}
2466 ${ac_c_conftest_c11_main}
2471 # Test code for whether the C compiler supports C99 (complete).
2472 ac_c_conftest_c99_program
="${ac_c_conftest_c89_globals}
2473 ${ac_c_conftest_c99_globals}
2476 main (int argc, char **argv)
2479 ${ac_c_conftest_c89_main}
2480 ${ac_c_conftest_c99_main}
2485 # Test code for whether the C compiler supports C89 (complete).
2486 ac_c_conftest_c89_program
="${ac_c_conftest_c89_globals}
2489 main (int argc, char **argv)
2492 ${ac_c_conftest_c89_main}
2497 as_fn_append ac_header_c_list
" stdio.h stdio_h HAVE_STDIO_H"
2498 as_fn_append ac_header_c_list
" stdlib.h stdlib_h HAVE_STDLIB_H"
2499 as_fn_append ac_header_c_list
" string.h string_h HAVE_STRING_H"
2500 as_fn_append ac_header_c_list
" inttypes.h inttypes_h HAVE_INTTYPES_H"
2501 as_fn_append ac_header_c_list
" stdint.h stdint_h HAVE_STDINT_H"
2502 as_fn_append ac_header_c_list
" strings.h strings_h HAVE_STRINGS_H"
2503 as_fn_append ac_header_c_list
" sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2504 as_fn_append ac_header_c_list
" sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2505 as_fn_append ac_header_c_list
" unistd.h unistd_h HAVE_UNISTD_H"
2507 # Auxiliary files required by this configure script.
2508 ac_aux_files
="config.guess config.sub"
2510 # Locations in which to look for auxiliary files.
2511 ac_aux_dir_candidates
="${srcdir}/autoconf"
2513 # Search for a directory containing all of the required auxiliary files,
2514 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2515 # If we don't find one directory that contains all the files we need,
2516 # we report the set of missing files from the *first* directory in
2517 # $ac_aux_dir_candidates and give up.
2518 ac_missing_aux_files
=""
2519 ac_first_candidate
=:
2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2523 for as_dir
in $ac_aux_dir_candidates
2526 case $as_dir in #(((
2529 *) as_dir
=$as_dir/ ;;
2533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2534 ac_aux_dir_found
=yes
2536 for ac_aux
in $ac_aux_files
2538 # As a special case, if "install-sh" is required, that requirement
2539 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2540 # and $ac_install_sh is set appropriately for whichever one is found.
2541 if test x
"$ac_aux" = x
"install-sh"
2543 if test -f "${as_dir}install-sh"; then
2544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2545 ac_install_sh
="${as_dir}install-sh -c"
2546 elif test -f "${as_dir}install.sh"; then
2547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2548 ac_install_sh
="${as_dir}install.sh -c"
2549 elif test -f "${as_dir}shtool"; then
2550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2551 ac_install_sh
="${as_dir}shtool install -c"
2554 if $ac_first_candidate; then
2555 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
2561 if test -f "${as_dir}${ac_aux}"; then
2562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2565 if $ac_first_candidate; then
2566 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
2573 if test "$ac_aux_dir_found" = yes; then
2574 ac_aux_dir
="$as_dir"
2577 ac_first_candidate
=false
2586 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2590 # These three variables are undocumented and unsupported,
2591 # and are intended to be withdrawn in a future Autoconf release.
2592 # They can cause serious problems if a builder's source tree is in a directory
2593 # whose full name contains unusual characters.
2594 if test -f "${ac_aux_dir}config.guess"; then
2595 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
2597 if test -f "${ac_aux_dir}config.sub"; then
2598 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
2600 if test -f "$ac_aux_dir/configure"; then
2601 ac_configure
="$SHELL ${ac_aux_dir}configure"
2604 # Check that the precious variables saved in the cache have kept the same
2606 ac_cache_corrupted
=false
2607 for ac_var
in $ac_precious_vars; do
2608 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2609 eval ac_new_set
=\
$ac_env_${ac_var}_set
2610 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2611 eval ac_new_val
=\
$ac_env_${ac_var}_value
2612 case $ac_old_set,$ac_new_set in
2614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2615 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2616 ac_cache_corrupted
=: ;;
2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2619 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2620 ac_cache_corrupted
=: ;;
2623 if test "x$ac_old_val" != "x$ac_new_val"; then
2624 # differences in whitespace do not lead to failure.
2625 ac_old_val_w
=`echo x $ac_old_val`
2626 ac_new_val_w
=`echo x $ac_new_val`
2627 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2629 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2630 ac_cache_corrupted
=:
2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2633 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2634 eval $ac_var=\
$ac_old_val
2636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2637 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2639 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2642 # Pass precious variables to config.status.
2643 if test "$ac_new_set" = set; then
2645 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2646 *) ac_arg
=$ac_var=$ac_new_val ;;
2648 case " $ac_configure_args " in
2649 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2650 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2654 if $ac_cache_corrupted; then
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2656 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2658 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2659 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2660 and start over" "$LINENO" 5
2662 ## -------------------- ##
2663 ## Main body of script. ##
2664 ## -------------------- ##
2667 ac_cpp
='$CPP $CPPFLAGS'
2668 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2674 ac_config_headers
="$ac_config_headers include/setup.h"
2679 if test "x$enable_dynamic_linking" = "x"; then
2680 echo "Please use ./Config instead of ./configure"
2684 orig_cflags
="$CFLAGS"
2686 BUILDDIR_NOW
="`pwd`"
2688 # Generation version number (e.g.: X in X.Y.Z)
2689 UNREAL_VERSION_GENERATION
="6"
2691 printf "%s\n" "#define UNREAL_VERSION_GENERATION $UNREAL_VERSION_GENERATION" >>confdefs.h
2694 # Major version number (e.g.: Y in X.Y.Z)
2695 UNREAL_VERSION_MAJOR
="1"
2697 printf "%s\n" "#define UNREAL_VERSION_MAJOR $UNREAL_VERSION_MAJOR" >>confdefs.h
2700 # Minor version number (e.g.: Z in X.Y.Z)
2701 UNREAL_VERSION_MINOR
="6"
2703 printf "%s\n" "#define UNREAL_VERSION_MINOR $UNREAL_VERSION_MINOR" >>confdefs.h
2706 # The version suffix such as a beta marker or release candidate
2707 # marker. (e.g.: -rcX for unrealircd-3.2.9-rcX). This macro is a
2708 # string instead of an integer because it contains arbitrary data.
2709 UNREAL_VERSION_SUFFIX
="-rc1"
2711 printf "%s\n" "#define UNREAL_VERSION_SUFFIX \"$UNREAL_VERSION_SUFFIX\"" >>confdefs.h
2714 # Extract the first word of "rm", so it can be a program name with args.
2715 set dummy
rm; ac_word
=$2
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 printf %s
"checking for $ac_word... " >&6; }
2718 if test ${ac_cv_path_RM+y}
2720 printf %s
"(cached) " >&6
2724 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
2727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2731 case $as_dir in #(((
2734 *) as_dir
=$as_dir/ ;;
2736 for ac_exec_ext
in '' $ac_executable_extensions; do
2737 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2738 ac_cv_path_RM
="$as_dir$ac_word$ac_exec_ext"
2739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2750 if test -n "$RM"; then
2751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
2752 printf "%s\n" "$RM" >&6; }
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 printf "%s\n" "no" >&6; }
2759 # Extract the first word of "cp", so it can be a program name with args.
2760 set dummy
cp; ac_word
=$2
2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 printf %s
"checking for $ac_word... " >&6; }
2763 if test ${ac_cv_path_CP+y}
2765 printf %s
"(cached) " >&6
2769 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
2772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2776 case $as_dir in #(((
2779 *) as_dir
=$as_dir/ ;;
2781 for ac_exec_ext
in '' $ac_executable_extensions; do
2782 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2783 ac_cv_path_CP
="$as_dir$ac_word$ac_exec_ext"
2784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2795 if test -n "$CP"; then
2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
2797 printf "%s\n" "$CP" >&6; }
2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 printf "%s\n" "no" >&6; }
2804 # Extract the first word of "touch", so it can be a program name with args.
2805 set dummy
touch; ac_word
=$2
2806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 printf %s
"checking for $ac_word... " >&6; }
2808 if test ${ac_cv_path_TOUCH+y}
2810 printf %s
"(cached) " >&6
2814 ac_cv_path_TOUCH
="$TOUCH" # Let the user override the test with a path.
2817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2821 case $as_dir in #(((
2824 *) as_dir
=$as_dir/ ;;
2826 for ac_exec_ext
in '' $ac_executable_extensions; do
2827 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2828 ac_cv_path_TOUCH
="$as_dir$ac_word$ac_exec_ext"
2829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2839 TOUCH
=$ac_cv_path_TOUCH
2840 if test -n "$TOUCH"; then
2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
2842 printf "%s\n" "$TOUCH" >&6; }
2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 printf "%s\n" "no" >&6; }
2849 # Extract the first word of "openssl", so it can be a program name with args.
2850 set dummy openssl
; ac_word
=$2
2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 printf %s
"checking for $ac_word... " >&6; }
2853 if test ${ac_cv_path_OPENSSLPATH+y}
2855 printf %s
"(cached) " >&6
2857 case $OPENSSLPATH in
2859 ac_cv_path_OPENSSLPATH
="$OPENSSLPATH" # Let the user override the test with a path.
2862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2866 case $as_dir in #(((
2869 *) as_dir
=$as_dir/ ;;
2871 for ac_exec_ext
in '' $ac_executable_extensions; do
2872 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2873 ac_cv_path_OPENSSLPATH
="$as_dir$ac_word$ac_exec_ext"
2874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2884 OPENSSLPATH
=$ac_cv_path_OPENSSLPATH
2885 if test -n "$OPENSSLPATH"; then
2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSLPATH" >&5
2887 printf "%s\n" "$OPENSSLPATH" >&6; }
2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 printf "%s\n" "no" >&6; }
2894 if test x
"$OPENSSLPATH" = "x"
2898 echo "Apparently you do not have both the openssl binary and openssl development libraries installed."
2899 echo "The following packages are required:"
2900 echo "1) The library package is often called 'openssl-dev', 'openssl-devel' or 'libssl-dev'"
2901 echo "2) The binary package is usually called 'openssl'."
2902 echo "NOTE: you or your system administrator needs to install the library AND the binary package."
2903 echo "After doing so, simply re-run ./Config"
2908 # Extract the first word of "install", so it can be a program name with args.
2909 set dummy
install; ac_word
=$2
2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 printf %s
"checking for $ac_word... " >&6; }
2912 if test ${ac_cv_path_INSTALL+y}
2914 printf %s
"(cached) " >&6
2918 ac_cv_path_INSTALL
="$INSTALL" # Let the user override the test with a path.
2921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2925 case $as_dir in #(((
2928 *) as_dir
=$as_dir/ ;;
2930 for ac_exec_ext
in '' $ac_executable_extensions; do
2931 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2932 ac_cv_path_INSTALL
="$as_dir$ac_word$ac_exec_ext"
2933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2943 INSTALL
=$ac_cv_path_INSTALL
2944 if test -n "$INSTALL"; then
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2946 printf "%s\n" "$INSTALL" >&6; }
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 printf "%s\n" "no" >&6; }
2953 # Extract the first word of "gunzip", so it can be a program name with args.
2954 set dummy gunzip
; ac_word
=$2
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 printf %s
"checking for $ac_word... " >&6; }
2957 if test ${ac_cv_path_GUNZIP+y}
2959 printf %s
"(cached) " >&6
2963 ac_cv_path_GUNZIP
="$GUNZIP" # Let the user override the test with a path.
2966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2970 case $as_dir in #(((
2973 *) as_dir
=$as_dir/ ;;
2975 for ac_exec_ext
in '' $ac_executable_extensions; do
2976 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2977 ac_cv_path_GUNZIP
="$as_dir$ac_word$ac_exec_ext"
2978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2988 GUNZIP
=$ac_cv_path_GUNZIP
2989 if test -n "$GUNZIP"; then
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5
2991 printf "%s\n" "$GUNZIP" >&6; }
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 printf "%s\n" "no" >&6; }
2998 # Extract the first word of "pkg-config", so it can be a program name with args.
2999 set dummy pkg
-config; ac_word
=$2
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 printf %s
"checking for $ac_word... " >&6; }
3002 if test ${ac_cv_path_PKGCONFIG+y}
3004 printf %s
"(cached) " >&6
3008 ac_cv_path_PKGCONFIG
="$PKGCONFIG" # Let the user override the test with a path.
3011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3015 case $as_dir in #(((
3018 *) as_dir
=$as_dir/ ;;
3020 for ac_exec_ext
in '' $ac_executable_extensions; do
3021 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3022 ac_cv_path_PKGCONFIG
="$as_dir$ac_word$ac_exec_ext"
3023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3033 PKGCONFIG
=$ac_cv_path_PKGCONFIG
3034 if test -n "$PKGCONFIG"; then
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
3036 printf "%s\n" "$PKGCONFIG" >&6; }
3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 printf "%s\n" "no" >&6; }
3054 ac_cpp
='$CPP $CPPFLAGS'
3055 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3058 if test -n "$ac_tool_prefix"; then
3059 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3060 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 printf %s
"checking for $ac_word... " >&6; }
3063 if test ${ac_cv_prog_CC+y}
3065 printf %s
"(cached) " >&6
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC
="$CC" # Let the user override the test.
3070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3074 case $as_dir in #(((
3077 *) as_dir
=$as_dir/ ;;
3079 for ac_exec_ext
in '' $ac_executable_extensions; do
3080 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3092 if test -n "$CC"; then
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094 printf "%s\n" "$CC" >&6; }
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 printf "%s\n" "no" >&6; }
3102 if test -z "$ac_cv_prog_CC"; then
3104 # Extract the first word of "gcc", so it can be a program name with args.
3105 set dummy gcc
; ac_word
=$2
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 printf %s
"checking for $ac_word... " >&6; }
3108 if test ${ac_cv_prog_ac_ct_CC+y}
3110 printf %s
"(cached) " >&6
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3119 case $as_dir in #(((
3122 *) as_dir
=$as_dir/ ;;
3124 for ac_exec_ext
in '' $ac_executable_extensions; do
3125 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_ac_ct_CC
="gcc"
3127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3136 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3137 if test -n "$ac_ct_CC"; then
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3139 printf "%s\n" "$ac_ct_CC" >&6; }
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 printf "%s\n" "no" >&6; }
3145 if test "x$ac_ct_CC" = x
; then
3148 case $cross_compiling:$ac_tool_warned in
3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned
=yes ;;
3160 if test -z "$CC"; then
3161 if test -n "$ac_tool_prefix"; then
3162 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3163 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 printf %s
"checking for $ac_word... " >&6; }
3166 if test ${ac_cv_prog_CC+y}
3168 printf %s
"(cached) " >&6
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC
="$CC" # Let the user override the test.
3173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3177 case $as_dir in #(((
3180 *) as_dir
=$as_dir/ ;;
3182 for ac_exec_ext
in '' $ac_executable_extensions; do
3183 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3195 if test -n "$CC"; then
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 printf "%s\n" "$CC" >&6; }
3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 printf "%s\n" "no" >&6; }
3206 if test -z "$CC"; then
3207 # Extract the first word of "cc", so it can be a program name with args.
3208 set dummy cc
; ac_word
=$2
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 printf %s
"checking for $ac_word... " >&6; }
3211 if test ${ac_cv_prog_CC+y}
3213 printf %s
"(cached) " >&6
3215 if test -n "$CC"; then
3216 ac_cv_prog_CC
="$CC" # Let the user override the test.
3219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3223 case $as_dir in #(((
3226 *) as_dir
=$as_dir/ ;;
3228 for ac_exec_ext
in '' $ac_executable_extensions; do
3229 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3230 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3231 ac_prog_rejected
=yes
3235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3242 if test $ac_prog_rejected = yes; then
3243 # We found a bogon in the path, so make sure we never use it.
3244 set dummy
$ac_cv_prog_CC
3246 if test $# != 0; then
3247 # We chose a different compiler from the bogus one.
3248 # However, it has the same basename, so the bogon will be chosen
3249 # first if we set CC to just the basename; use the full file name.
3251 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
3257 if test -n "$CC"; then
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259 printf "%s\n" "$CC" >&6; }
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 printf "%s\n" "no" >&6; }
3267 if test -z "$CC"; then
3268 if test -n "$ac_tool_prefix"; then
3269 for ac_prog
in cl.exe
3271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3272 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 printf %s
"checking for $ac_word... " >&6; }
3275 if test ${ac_cv_prog_CC+y}
3277 printf %s
"(cached) " >&6
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC
="$CC" # Let the user override the test.
3282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3286 case $as_dir in #(((
3289 *) as_dir
=$as_dir/ ;;
3291 for ac_exec_ext
in '' $ac_executable_extensions; do
3292 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3304 if test -n "$CC"; then
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306 printf "%s\n" "$CC" >&6; }
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 printf "%s\n" "no" >&6; }
3313 test -n "$CC" && break
3316 if test -z "$CC"; then
3318 for ac_prog
in cl.exe
3320 # Extract the first word of "$ac_prog", so it can be a program name with args.
3321 set dummy
$ac_prog; ac_word
=$2
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 printf %s
"checking for $ac_word... " >&6; }
3324 if test ${ac_cv_prog_ac_ct_CC+y}
3326 printf %s
"(cached) " >&6
3328 if test -n "$ac_ct_CC"; then
3329 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3335 case $as_dir in #(((
3338 *) as_dir
=$as_dir/ ;;
3340 for ac_exec_ext
in '' $ac_executable_extensions; do
3341 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_ac_ct_CC
="$ac_prog"
3343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3352 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3353 if test -n "$ac_ct_CC"; then
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3355 printf "%s\n" "$ac_ct_CC" >&6; }
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 printf "%s\n" "no" >&6; }
3362 test -n "$ac_ct_CC" && break
3365 if test "x$ac_ct_CC" = x
; then
3368 case $cross_compiling:$ac_tool_warned in
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3371 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3372 ac_tool_warned
=yes ;;
3379 if test -z "$CC"; then
3380 if test -n "$ac_tool_prefix"; then
3381 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3382 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 printf %s
"checking for $ac_word... " >&6; }
3385 if test ${ac_cv_prog_CC+y}
3387 printf %s
"(cached) " >&6
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC
="$CC" # Let the user override the test.
3392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3396 case $as_dir in #(((
3399 *) as_dir
=$as_dir/ ;;
3401 for ac_exec_ext
in '' $ac_executable_extensions; do
3402 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3403 ac_cv_prog_CC
="${ac_tool_prefix}clang"
3404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3414 if test -n "$CC"; then
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416 printf "%s\n" "$CC" >&6; }
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 printf "%s\n" "no" >&6; }
3424 if test -z "$ac_cv_prog_CC"; then
3426 # Extract the first word of "clang", so it can be a program name with args.
3427 set dummy clang
; ac_word
=$2
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 printf %s
"checking for $ac_word... " >&6; }
3430 if test ${ac_cv_prog_ac_ct_CC+y}
3432 printf %s
"(cached) " >&6
3434 if test -n "$ac_ct_CC"; then
3435 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3441 case $as_dir in #(((
3444 *) as_dir
=$as_dir/ ;;
3446 for ac_exec_ext
in '' $ac_executable_extensions; do
3447 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_ac_ct_CC
="clang"
3449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3458 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3459 if test -n "$ac_ct_CC"; then
3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3461 printf "%s\n" "$ac_ct_CC" >&6; }
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 printf "%s\n" "no" >&6; }
3467 if test "x$ac_ct_CC" = x
; then
3470 case $cross_compiling:$ac_tool_warned in
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3473 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3474 ac_tool_warned
=yes ;;
3485 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error $?
"no acceptable C compiler found in \$PATH
3488 See \`config.log' for more details" "$LINENO" 5; }
3490 # Provide some information about the compiler.
3491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3494 for ac_option
in --version -v -V -qversion -version; do
3495 { { ac_try
="$ac_compiler $ac_option >&5"
3497 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 printf "%s\n" "$ac_try_echo"; } >&5
3502 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3504 if test -s conftest.err; then
3506 ... rest of stderr output deleted ...
3507 10q' conftest.err >conftest.er1
3508 cat conftest.er1 >&5
3510 rm -f conftest.er1 conftest.err
3511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3526 ac_clean_files_save=$ac_clean_files
3527 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3528 # Try to create an executable without -o first, disregard a.out.
3529 # It will help us diagnose broken compilers, and finding out an intuition
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3532 printf %s "checking whether the C compiler works... " >&6; }
3533 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3535 # The possible output files:
3536 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3539 for ac_file in $ac_files
3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3543 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3548 if { { ac_try="$ac_link_default"
3550 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3551 *) ac_try_echo
=$ac_try;;
3553 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554 printf "%s\n" "$ac_try_echo"; } >&5
3555 (eval "$ac_link_default") 2>&5
3557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }
3560 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3561 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3562 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3563 # so that the user can short-circuit this test for compilers unknown to
3565 for ac_file
in $ac_files ''
3567 test -f "$ac_file" || continue
3569 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
3572 # We found the default executable, but exeext='' is most
3576 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
3578 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3580 # We set ac_cv_exeext here because the later test for it is not
3581 # safe: cross compilers may not add the suffix if given an `-o'
3582 # argument, so we may need to know it at that point already.
3583 # Even if this section looks crufty: it has the advantage of
3590 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3595 if test -z "$ac_file"
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 printf "%s\n" "no" >&6; }
3599 printf "%s\n" "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.
$ac_ext >&5
3602 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3604 as_fn_error
77 "C compiler cannot create executables
3605 See \`config.log' for more details" "$LINENO" 5; }
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3608 printf "%s\n" "yes" >&6; }
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3611 printf %s
"checking for C compiler default output file name... " >&6; }
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3613 printf "%s\n" "$ac_file" >&6; }
3614 ac_exeext
=$ac_cv_exeext
3616 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3617 ac_clean_files
=$ac_clean_files_save
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3619 printf %s
"checking for suffix of executables... " >&6; }
3620 if { { ac_try
="$ac_link"
3622 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 printf "%s\n" "$ac_try_echo"; } >&5
3627 (eval "$ac_link") 2>&5
3629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }
3632 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3633 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3634 # work properly (i.e., refer to `conftest.exe'), while it won't with
3636 for ac_file
in conftest.exe conftest conftest.
*; do
3637 test -f "$ac_file" || continue
3639 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
3640 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3646 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3649 See \`config.log' for more details" "$LINENO" 5; }
3651 rm -f conftest conftest
$ac_cv_exeext
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3653 printf "%s\n" "$ac_cv_exeext" >&6; }
3655 rm -f conftest.
$ac_ext
3656 EXEEXT
=$ac_cv_exeext
3658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3664 FILE *f = fopen ("conftest.out", "w");
3665 return ferror (f) || fclose (f) != 0;
3671 ac_clean_files
="$ac_clean_files conftest.out"
3672 # Check that the compiler produces executables we can run. If not, either
3673 # the compiler is broken, or we cross compile.
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3675 printf %s
"checking whether we are cross compiling... " >&6; }
3676 if test "$cross_compiling" != yes; then
3677 { { ac_try
="$ac_link"
3679 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 printf "%s\n" "$ac_try_echo"; } >&5
3684 (eval "$ac_link") 2>&5
3686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687 test $ac_status = 0; }
3688 if { ac_try='./conftest$ac_cv_exeext'
3689 { { case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3691 *) ac_try_echo
=$ac_try;;
3693 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 printf "%s\n" "$ac_try_echo"; } >&5
3695 (eval "$ac_try") 2>&5
3697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698 test $ac_status = 0; }; }; then
3701 if test "$cross_compiling" = maybe
; then
3704 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error
77 "cannot run C compiled programs.
3707 If you meant to cross compile, use \`--host'.
3708 See \`config.log' for more details" "$LINENO" 5; }
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3713 printf "%s\n" "$cross_compiling" >&6; }
3715 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3716 ac_clean_files
=$ac_clean_files_save
3717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3718 printf %s
"checking for suffix of object files... " >&6; }
3719 if test ${ac_cv_objext+y}
3721 printf %s
"(cached) " >&6
3723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3734 rm -f conftest.o conftest.obj
3735 if { { ac_try
="$ac_compile"
3737 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 printf "%s\n" "$ac_try_echo"; } >&5
3742 (eval "$ac_compile") 2>&5
3744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }
3747 for ac_file in conftest.o conftest.obj conftest.*; do
3748 test -f "$ac_file" || continue;
3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3751 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3756 printf "%s\n" "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3759 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3761 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3762 See \
`config.log' for more details" "$LINENO" 5; }
3764 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3767 printf "%s\n" "$ac_cv_objext" >&6; }
3768 OBJEXT=$ac_cv_objext
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3771 printf %s "checking whether the compiler supports GNU C... " >&6; }
3772 if test ${ac_cv_c_compiler_gnu+y}
3774 printf %s "(cached) " >&6
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3790 if ac_fn_c_try_compile "$LINENO"
3796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3797 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3801 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804 if test $ac_compiler_gnu = yes; then
3809 ac_test_CFLAGS=${CFLAGS+y}
3810 ac_save_CFLAGS=$CFLAGS
3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3812 printf %s "checking whether $CC accepts -g... " >&6; }
3813 if test ${ac_cv_prog_cc_g+y}
3815 printf %s "(cached) " >&6
3817 ac_save_c_werror_flag=$ac_c_werror_flag
3818 ac_c_werror_flag=yes
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3832 if ac_fn_c_try_compile "$LINENO"
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3848 if ac_fn_c_try_compile "$LINENO"
3852 ac_c_werror_flag=$ac_save_c_werror_flag
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3865 if ac_fn_c_try_compile "$LINENO"
3869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3874 ac_c_werror_flag=$ac_save_c_werror_flag
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3877 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3878 if test $ac_test_CFLAGS; then
3879 CFLAGS=$ac_save_CFLAGS
3880 elif test $ac_cv_prog_cc_g = yes; then
3881 if test "$GCC" = yes; then
3887 if test "$GCC" = yes; then
3894 if test x$ac_prog_cc_stdc = xno
3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3897 printf %s "checking for $CC option to enable C11 features... " >&6; }
3898 if test ${ac_cv_prog_cc_c11+y}
3900 printf %s "(cached) " >&6
3902 ac_cv_prog_cc_c11=no
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906 $ac_c_conftest_c11_program
3908 for ac_arg in '' -std=gnu11
3910 CC="$ac_save_CC $ac_arg"
3911 if ac_fn_c_try_compile "$LINENO"
3913 ac_cv_prog_cc_c11=$ac_arg
3915 rm -f core conftest.err conftest.$ac_objext conftest.beam
3916 test "x$ac_cv_prog_cc_c11" != "xno" && break
3918 rm -f conftest.$ac_ext
3922 if test "x$ac_cv_prog_cc_c11" = xno
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3925 printf "%s\n" "unsupported" >&6; }
3927 if test "x$ac_cv_prog_cc_c11" = x
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3930 printf "%s\n" "none needed" >&6; }
3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3933 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3934 CC="$CC $ac_cv_prog_cc_c11"
3936 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3940 if test x$ac_prog_cc_stdc = xno
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3943 printf %s "checking for $CC option to enable C99 features... " >&6; }
3944 if test ${ac_cv_prog_cc_c99+y}
3946 printf %s "(cached) " >&6
3948 ac_cv_prog_cc_c99=no
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3952 $ac_c_conftest_c99_program
3954 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3956 CC="$ac_save_CC $ac_arg"
3957 if ac_fn_c_try_compile "$LINENO"
3959 ac_cv_prog_cc_c99=$ac_arg
3961 rm -f core conftest.err conftest.$ac_objext conftest.beam
3962 test "x$ac_cv_prog_cc_c99" != "xno" && break
3964 rm -f conftest.$ac_ext
3968 if test "x$ac_cv_prog_cc_c99" = xno
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3971 printf "%s\n" "unsupported" >&6; }
3973 if test "x$ac_cv_prog_cc_c99" = x
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3976 printf "%s\n" "none needed" >&6; }
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3979 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3980 CC="$CC $ac_cv_prog_cc_c99"
3982 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3986 if test x$ac_prog_cc_stdc = xno
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3989 printf %s "checking for $CC option to enable C89 features... " >&6; }
3990 if test ${ac_cv_prog_cc_c89+y}
3992 printf %s "(cached) " >&6
3994 ac_cv_prog_cc_c89=no
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998 $ac_c_conftest_c89_program
4000 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002 CC="$ac_save_CC $ac_arg"
4003 if ac_fn_c_try_compile "$LINENO"
4005 ac_cv_prog_cc_c89=$ac_arg
4007 rm -f core conftest.err conftest.$ac_objext conftest.beam
4008 test "x$ac_cv_prog_cc_c89" != "xno" && break
4010 rm -f conftest.$ac_ext
4014 if test "x$ac_cv_prog_cc_c89" = xno
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4017 printf "%s\n" "unsupported" >&6; }
4019 if test "x$ac_cv_prog_cc_c89" = x
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4022 printf "%s\n" "none needed" >&6; }
4024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4025 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4026 CC="$CC $ac_cv_prog_cc_c89"
4028 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 if test "$ac_cv_prog_cc_c99" = "no"
4042 as_fn_error $? "No C99 compiler was found. Please install gcc or clang and other build tools. Eg, on Debian/Ubuntu you probably want to run the following as root: apt-get install build-essential " "$LINENO" 5
4045 # Extract the first word of "gmake", so it can be a program name with args.
4046 set dummy gmake; ac_word=$2
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 printf %s "checking for $ac_word... " >&6; }
4049 if test ${ac_cv_prog_MAKER+y}
4051 printf %s "(cached) " >&6
4053 if test -n "$MAKER"; then
4054 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 case $as_dir in #(((
4063 *) as_dir=$as_dir/ ;;
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4067 ac_cv_prog_MAKER="gmake"
4068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4075 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
4078 MAKER=$ac_cv_prog_MAKER
4079 if test -n "$MAKER"; then
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKER" >&5
4081 printf "%s\n" "$MAKER" >&6; }
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084 printf "%s\n" "no" >&6; }
4088 # Extract the first word of "gmake", so it can be a program name with args.
4089 set dummy gmake; ac_word=$2
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091 printf %s "checking for $ac_word... " >&6; }
4092 if test ${ac_cv_path_GMAKE+y}
4094 printf %s "(cached) " >&6
4098 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 case $as_dir in #(((
4108 *) as_dir=$as_dir/ ;;
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4112 ac_cv_path_GMAKE="$as_dir$ac_word$ac_exec_ext"
4113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4123 GMAKE=$ac_cv_path_GMAKE
4124 if test -n "$GMAKE"; then
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4126 printf "%s\n" "$GMAKE" >&6; }
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 printf "%s\n" "no" >&6; }
4133 if $MAKER --version | grep -q "GNU Make"
4137 as_fn_error $? "It seems your system does not have make/gmake installed. If you are on Linux then install make, otherwise install gmake." "$LINENO" 5
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -ldescrypt" >&5
4142 printf %s "checking for crypt in -ldescrypt... " >&6; }
4143 if test ${ac_cv_lib_descrypt_crypt+y}
4145 printf %s "(cached) " >&6
4147 ac_check_lib_save_LIBS=$LIBS
4148 LIBS="-ldescrypt $LIBS"
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4152 /* Override any GCC internal prototype to avoid an error.
4153 Use char because int might match the return type of a GCC
4154 builtin and then its argument prototype would still apply. */
4164 if ac_fn_c_try_link "$LINENO"
4166 ac_cv_lib_descrypt_crypt=yes
4168 ac_cv_lib_descrypt_crypt=no
4170 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4171 conftest$ac_exeext conftest.$ac_ext
4172 LIBS=$ac_check_lib_save_LIBS
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_descrypt_crypt" >&5
4175 printf "%s\n" "$ac_cv_lib_descrypt_crypt" >&6; }
4176 if test "x$ac_cv_lib_descrypt_crypt" = xyes
4179 printf "%s\n" "#define HAVE_CRYPT /**/" >>confdefs.h
4181 IRCDLIBS="$IRCDLIBS-ldescrypt "
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
4184 printf %s "checking for crypt in -lcrypt... " >&6; }
4185 if test ${ac_cv_lib_crypt_crypt+y}
4187 printf %s "(cached) " >&6
4189 ac_check_lib_save_LIBS=$LIBS
4190 LIBS="-lcrypt $LIBS"
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4194 /* Override any GCC internal prototype to avoid an error.
4195 Use char because int might match the return type of a GCC
4196 builtin and then its argument prototype would still apply. */
4206 if ac_fn_c_try_link "$LINENO"
4208 ac_cv_lib_crypt_crypt=yes
4210 ac_cv_lib_crypt_crypt=no
4212 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4213 conftest$ac_exeext conftest.$ac_ext
4214 LIBS=$ac_check_lib_save_LIBS
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
4217 printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; }
4218 if test "x$ac_cv_lib_crypt_crypt" = xyes
4221 printf "%s\n" "#define HAVE_CRYPT /**/" >>confdefs.h
4223 IRCDLIBS="$IRCDLIBS-lcrypt "
4229 case $host_cpu in #(
4230 i?86|amd64|x86_64) :
4231 ac_cv_c_bigendian=no
4236 ac_header= ac_cache=
4237 for ac_item in $ac_header_c_list
4239 if test $ac_cache; then
4240 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4241 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4242 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4244 ac_header= ac_cache=
4245 elif test $ac_header; then
4259 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4262 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4266 printf %s "checking whether byte ordering is bigendian... " >&6; }
4267 if test ${ac_cv_c_bigendian+y}
4269 printf %s "(cached) " >&6
4271 ac_cv_c_bigendian=unknown
4272 # See if we're dealing with a universal compiler.
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275 #ifndef __APPLE_CC__
4276 not a universal capable compiler
4281 if ac_fn_c_try_compile "$LINENO"
4284 # Check for potential -arch flags. It is not universal unless
4285 # there are at least two -arch flags with different values.
4288 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4289 if test -n "$ac_prev"; then
4291 i?86 | x86_64 | ppc | ppc64)
4292 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4295 ac_cv_c_bigendian=universal
4301 elif test "x$ac_word" = "x-arch"; then
4306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4307 if test $ac_cv_c_bigendian = unknown; then
4308 # See if sys/param.h defines the BYTE_ORDER macro.
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4311 #include <sys/types.h>
4312 #include <sys/param.h>
4317 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4318 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4327 if ac_fn_c_try_compile "$LINENO"
4329 # It does; now see whether it defined to BIG_ENDIAN or not.
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332 #include <sys/types.h>
4333 #include <sys/param.h>
4338 #if BYTE_ORDER != BIG_ENDIAN
4346 if ac_fn_c_try_compile "$LINENO"
4348 ac_cv_c_bigendian=yes
4350 ac_cv_c_bigendian=no
4352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4356 if test $ac_cv_c_bigendian = unknown; then
4357 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4365 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4373 if ac_fn_c_try_compile "$LINENO"
4375 # It does; now see whether it defined to _BIG_ENDIAN or not.
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4391 if ac_fn_c_try_compile "$LINENO"
4393 ac_cv_c_bigendian=yes
4395 ac_cv_c_bigendian=no
4397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4401 if test $ac_cv_c_bigendian = unknown; then
4402 # Compile a test program.
4403 if test "$cross_compiling" = yes
4405 # Try to guess by grepping values from an object file.
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408 unsigned short int ascii_mm[] =
4409 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4410 unsigned short int ascii_ii[] =
4411 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4412 int use_ascii (int i) {
4413 return ascii_mm[i] + ascii_ii[i];
4415 unsigned short int ebcdic_ii[] =
4416 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4417 unsigned short int ebcdic_mm[] =
4418 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4419 int use_ebcdic (int i) {
4420 return ebcdic_mm[i] + ebcdic_ii[i];
4427 return use_ascii (foo) == use_ebcdic (foo);
4432 if ac_fn_c_try_compile "$LINENO"
4434 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4435 ac_cv_c_bigendian=yes
4437 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4438 if test "$ac_cv_c_bigendian" = unknown; then
4439 ac_cv_c_bigendian=no
4441 # finding both strings is unlikely to happen, but who knows?
4442 ac_cv_c_bigendian=unknown
4446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 $ac_includes_default
4455 /* Are we little or big endian? From Harbison&Steele. */
4459 char c[sizeof (long int)];
4462 return u.c[sizeof (long int) - 1] == 1;
4468 if ac_fn_c_try_run "$LINENO"
4470 ac_cv_c_bigendian=no
4472 ac_cv_c_bigendian=yes
4474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4475 conftest.$ac_objext conftest.beam conftest.$ac_ext
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4481 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
4482 case $ac_cv_c_bigendian in #(
4485 printf "%s\n" "#define NATIVE_BIG_ENDIAN 1" >>confdefs.h
4489 printf "%s\n" "#define NATIVE_LITTLE_ENDIAN 1" >>confdefs.h
4492 as_fn_error $? "universal endianness is not supported - compile separately and use lipo(1)" "$LINENO" 5
4496 as_fn_error $? "unknown endianness" "$LINENO" 5 ;;
4500 # We want to check for compiler flag support, but there is no way to make
4501 # clang's "argument unused" warning fatal. So we invoke the compiler through a
4502 # wrapper script that greps for this message.
4506 flag_wrap="$srcdir/extras/wrap-compiler-for-flag-check"
4508 CXX="$flag_wrap $CXX"
4511 # We use the same hardening flags for C and C++. We must check that each flag
4512 # is supported by both compilers.
4517 # Check whether --enable-hardening was given.
4518 if test ${enable_hardening+y}
4520 enableval=$enable_hardening; hardening="$enableval"
4528 if test x"$hardening" != x"no"
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-overflow" >&5
4538 printf %s "checking whether C compiler accepts -fno-strict-overflow... " >&6; }
4539 if test ${ax_cv_check_cflags__Werror___fno_strict_overflow+y}
4541 printf %s "(cached) " >&6
4544 ax_check_save_flags=$CFLAGS
4545 CFLAGS="$CFLAGS -Werror -fno-strict-overflow"
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4557 if ac_fn_c_try_compile "$LINENO"
4559 ax_cv_check_cflags__Werror___fno_strict_overflow=yes
4561 ax_cv_check_cflags__Werror___fno_strict_overflow=no
4563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4564 CFLAGS=$ax_check_save_flags
4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_overflow" >&5
4567 printf "%s\n" "$ax_cv_check_cflags__Werror___fno_strict_overflow" >&6; }
4568 if test x"$ax_cv_check_cflags__Werror___fno_strict_overflow" = xyes
4570 HARDEN_CFLAGS="$HARDEN_CFLAGS -fno-strict-overflow"
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582 # This one will likely succeed, even on platforms where it does nothing.
4584 ac_cpp='$CPP $CPPFLAGS'
4585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_FORTIFY_SOURCE=3" >&5
4590 printf %s "checking whether C compiler accepts -D_FORTIFY_SOURCE=3... " >&6; }
4591 if test ${ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_3+y}
4593 printf %s "(cached) " >&6
4596 ax_check_save_flags=$CFLAGS
4597 CFLAGS="$CFLAGS -Werror -D_FORTIFY_SOURCE=3"
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4609 if ac_fn_c_try_compile "$LINENO"
4611 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_3=yes
4613 ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_3=no
4615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4616 CFLAGS=$ax_check_save_flags
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_3" >&5
4619 printf "%s\n" "$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_3" >&6; }
4620 if test x"$ax_cv_check_cflags__Werror___D_FORTIFY_SOURCE_3" = xyes
4622 HARDEN_CFLAGS="$HARDEN_CFLAGS -D_FORTIFY_SOURCE=3"
4628 ac_cpp='$CPP $CPPFLAGS'
4629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
4641 printf %s "checking whether C compiler accepts -fstack-protector-all... " >&6; }
4642 if test ${ax_cv_check_cflags__Werror___fstack_protector_all+y}
4644 printf %s "(cached) " >&6
4647 ax_check_save_flags=$CFLAGS
4648 CFLAGS="$CFLAGS -Werror -fstack-protector-all"
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4660 if ac_fn_c_try_compile "$LINENO"
4662 ax_cv_check_cflags__Werror___fstack_protector_all=yes
4664 ax_cv_check_cflags__Werror___fstack_protector_all=no
4666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4667 CFLAGS=$ax_check_save_flags
4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fstack_protector_all" >&5
4670 printf "%s\n" "$ax_cv_check_cflags__Werror___fstack_protector_all" >&6; }
4671 if test x"$ax_cv_check_cflags__Werror___fstack_protector_all" = xyes
4673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
4674 printf %s "checking whether the linker accepts -fstack-protector-all... " >&6; }
4675 if test ${ax_cv_check_ldflags__Werror___fstack_protector_all+y}
4677 printf %s "(cached) " >&6
4680 ax_check_save_flags=$LDFLAGS
4681 LDFLAGS="$LDFLAGS -Werror -fstack-protector-all"
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4693 if ac_fn_c_try_link "$LINENO"
4695 ax_cv_check_ldflags__Werror___fstack_protector_all=yes
4697 ax_cv_check_ldflags__Werror___fstack_protector_all=no
4699 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4700 conftest$ac_exeext conftest.$ac_ext
4701 LDFLAGS=$ax_check_save_flags
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fstack_protector_all" >&5
4704 printf "%s\n" "$ax_cv_check_ldflags__Werror___fstack_protector_all" >&6; }
4705 if test x"$ax_cv_check_ldflags__Werror___fstack_protector_all" = xyes
4707 HARDEN_CFLAGS="$HARDEN_CFLAGS -fstack-protector-all"
4709 ac_cpp='$CPP $CPPFLAGS'
4710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstack-protector" >&5
4715 printf %s "checking whether C compiler accepts -Wstack-protector... " >&6; }
4716 if test ${ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector+y}
4718 printf %s "(cached) " >&6
4721 ax_check_save_flags=$CFLAGS
4722 CFLAGS="$CFLAGS -Werror -fstack-protector-all -Wstack-protector"
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4734 if ac_fn_c_try_compile "$LINENO"
4736 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=yes
4738 ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector=no
4740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4741 CFLAGS=$ax_check_save_flags
4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&5
4744 printf "%s\n" "$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" >&6; }
4745 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all__Wstack_protector" = xyes
4747 HARDEN_CFLAGS="$HARDEN_CFLAGS -Wstack-protector"
4753 ac_cpp='$CPP $CPPFLAGS'
4754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4759 ac_cpp='$CPP $CPPFLAGS'
4760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts --param ssp-buffer-size=1" >&5
4765 printf %s "checking whether C compiler accepts --param ssp-buffer-size=1... " >&6; }
4766 if test ${ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1+y}
4768 printf %s "(cached) " >&6
4771 ax_check_save_flags=$CFLAGS
4772 CFLAGS="$CFLAGS -Werror -fstack-protector-all --param ssp-buffer-size=1"
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4784 if ac_fn_c_try_compile "$LINENO"
4786 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=yes
4788 ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1=no
4790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4791 CFLAGS=$ax_check_save_flags
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&5
4794 printf "%s\n" "$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" >&6; }
4795 if test x"$ax_cv_check_cflags__Werror__fstack_protector_all___param_ssp_buffer_size_1" = xyes
4797 HARDEN_CFLAGS="$HARDEN_CFLAGS --param ssp-buffer-size=1"
4803 ac_cpp='$CPP $CPPFLAGS'
4804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817 ac_cpp='$CPP $CPPFLAGS'
4818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823 # Added in UnrealIRCd 5.0.5 (default on Ubuntu 19.10)
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-clash-protection" >&5
4831 printf %s "checking whether C compiler accepts -fstack-clash-protection... " >&6; }
4832 if test ${ax_cv_check_cflags__Werror___fstack_clash_protection+y}
4834 printf %s "(cached) " >&6
4837 ax_check_save_flags=$CFLAGS
4838 CFLAGS="$CFLAGS -Werror -fstack-clash-protection"
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4850 if ac_fn_c_try_compile "$LINENO"
4852 ax_cv_check_cflags__Werror___fstack_clash_protection=yes
4854 ax_cv_check_cflags__Werror___fstack_clash_protection=no
4856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4857 CFLAGS=$ax_check_save_flags
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fstack_clash_protection" >&5
4860 printf "%s\n" "$ax_cv_check_cflags__Werror___fstack_clash_protection" >&6; }
4861 if test x"$ax_cv_check_cflags__Werror___fstack_clash_protection" = xyes
4863 HARDEN_CFLAGS="$HARDEN_CFLAGS -fstack-clash-protection"
4869 ac_cpp='$CPP $CPPFLAGS'
4870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875 # Control Flow Enforcement (ROP hardening) - requires CPU hardware support
4877 ac_cpp='$CPP $CPPFLAGS'
4878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fcf-protection" >&5
4883 printf %s "checking whether C compiler accepts -fcf-protection... " >&6; }
4884 if test ${ax_cv_check_cflags__Werror___fcf_protection+y}
4886 printf %s "(cached) " >&6
4889 ax_check_save_flags=$CFLAGS
4890 CFLAGS="$CFLAGS -Werror -fcf-protection"
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4902 if ac_fn_c_try_compile "$LINENO"
4904 ax_cv_check_cflags__Werror___fcf_protection=yes
4906 ax_cv_check_cflags__Werror___fcf_protection=no
4908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4909 CFLAGS=$ax_check_save_flags
4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fcf_protection" >&5
4912 printf "%s\n" "$ax_cv_check_cflags__Werror___fcf_protection" >&6; }
4913 if test x"$ax_cv_check_cflags__Werror___fcf_protection" = xyes
4915 HARDEN_CFLAGS="$HARDEN_CFLAGS -fcf-protection"
4921 ac_cpp='$CPP $CPPFLAGS'
4922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927 # At the link step, we might want -pie (GCC) or -Wl,-pie (Clang on OS X)
4929 # The linker checks also compile code, so we need to include -fPIE as well.
4931 ac_cpp='$CPP $CPPFLAGS'
4932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
4937 printf %s "checking whether C compiler accepts -fPIE... " >&6; }
4938 if test ${ax_cv_check_cflags__Werror___fPIE+y}
4940 printf %s "(cached) " >&6
4943 ax_check_save_flags=$CFLAGS
4944 CFLAGS="$CFLAGS -Werror -fPIE"
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4956 if ac_fn_c_try_compile "$LINENO"
4958 ax_cv_check_cflags__Werror___fPIE=yes
4960 ax_cv_check_cflags__Werror___fPIE=no
4962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4963 CFLAGS=$ax_check_save_flags
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fPIE" >&5
4966 printf "%s\n" "$ax_cv_check_cflags__Werror___fPIE" >&6; }
4967 if test x"$ax_cv_check_cflags__Werror___fPIE" = xyes
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE -pie" >&5
4970 printf %s "checking whether the linker accepts -fPIE -pie... " >&6; }
4971 if test ${ax_cv_check_ldflags__Werror___fPIE__pie+y}
4973 printf %s "(cached) " >&6
4976 ax_check_save_flags=$LDFLAGS
4977 LDFLAGS="$LDFLAGS -Werror -fPIE -pie"
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4989 if ac_fn_c_try_link "$LINENO"
4991 ax_cv_check_ldflags__Werror___fPIE__pie=yes
4993 ax_cv_check_ldflags__Werror___fPIE__pie=no
4995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4996 conftest$ac_exeext conftest.$ac_ext
4997 LDFLAGS=$ax_check_save_flags
4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fPIE__pie" >&5
5000 printf "%s\n" "$ax_cv_check_ldflags__Werror___fPIE__pie" >&6; }
5001 if test x"$ax_cv_check_ldflags__Werror___fPIE__pie" = xyes
5003 HARDEN_BINCFLAGS="-fPIE"
5004 HARDEN_BINLDFLAGS="-pie"
5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIE -Wl,-pie" >&5
5007 printf %s "checking whether the linker accepts -fPIE -Wl,-pie... " >&6; }
5008 if test ${ax_cv_check_ldflags__Werror___fPIE__Wl__pie+y}
5010 printf %s "(cached) " >&6
5013 ax_check_save_flags=$LDFLAGS
5014 LDFLAGS="$LDFLAGS -Werror -fPIE -Wl,-pie"
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5026 if ac_fn_c_try_link "$LINENO"
5028 ax_cv_check_ldflags__Werror___fPIE__Wl__pie=yes
5030 ax_cv_check_ldflags__Werror___fPIE__Wl__pie=no
5032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5033 conftest$ac_exeext conftest.$ac_ext
5034 LDFLAGS=$ax_check_save_flags
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___fPIE__Wl__pie" >&5
5037 printf "%s\n" "$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" >&6; }
5038 if test x"$ax_cv_check_ldflags__Werror___fPIE__Wl__pie" = xyes
5040 HARDEN_BINCFLAGS="-fPIE"
5041 HARDEN_BINLDFLAGS="-Wl,-pie"
5053 ac_cpp='$CPP $CPPFLAGS'
5054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
5060 printf %s "checking whether the linker accepts -Wl,-z,relro... " >&6; }
5061 if test ${ax_cv_check_ldflags__Werror___Wl__z_relro+y}
5063 printf %s "(cached) " >&6
5066 ax_check_save_flags=$LDFLAGS
5067 LDFLAGS="$LDFLAGS -Werror -Wl,-z,relro"
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5079 if ac_fn_c_try_link "$LINENO"
5081 ax_cv_check_ldflags__Werror___Wl__z_relro=yes
5083 ax_cv_check_ldflags__Werror___Wl__z_relro=no
5085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5086 conftest$ac_exeext conftest.$ac_ext
5087 LDFLAGS=$ax_check_save_flags
5089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___Wl__z_relro" >&5
5090 printf "%s\n" "$ax_cv_check_ldflags__Werror___Wl__z_relro" >&6; }
5091 if test x"$ax_cv_check_ldflags__Werror___Wl__z_relro" = xyes
5093 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,relro"
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
5095 printf %s "checking whether the linker accepts -Wl,-z,now... " >&6; }
5096 if test ${ax_cv_check_ldflags__Werror___Wl__z_now+y}
5098 printf %s "(cached) " >&6
5101 ax_check_save_flags=$LDFLAGS
5102 LDFLAGS="$LDFLAGS -Werror -Wl,-z,now"
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5114 if ac_fn_c_try_link "$LINENO"
5116 ax_cv_check_ldflags__Werror___Wl__z_now=yes
5118 ax_cv_check_ldflags__Werror___Wl__z_now=no
5120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5121 conftest$ac_exeext conftest.$ac_ext
5122 LDFLAGS=$ax_check_save_flags
5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags__Werror___Wl__z_now" >&5
5125 printf "%s\n" "$ax_cv_check_ldflags__Werror___Wl__z_now" >&6; }
5126 if test x"$ax_cv_check_ldflags__Werror___Wl__z_now" = xyes
5128 HARDEN_LDFLAGS="$HARDEN_LDFLAGS -Wl,-z,now"
5143 # End of flag tests.
5149 ac_cpp='$CPP $CPPFLAGS'
5150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-strict-aliasing" >&5
5155 printf %s "checking whether C compiler accepts -fno-strict-aliasing... " >&6; }
5156 if test ${ax_cv_check_cflags__Werror___fno_strict_aliasing+y}
5158 printf %s "(cached) " >&6
5161 ax_check_save_flags=$CFLAGS
5162 CFLAGS="$CFLAGS -Werror -fno-strict-aliasing"
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5174 if ac_fn_c_try_compile "$LINENO"
5176 ax_cv_check_cflags__Werror___fno_strict_aliasing=yes
5178 ax_cv_check_cflags__Werror___fno_strict_aliasing=no
5180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5181 CFLAGS=$ax_check_save_flags
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_strict_aliasing" >&5
5184 printf "%s\n" "$ax_cv_check_cflags__Werror___fno_strict_aliasing" >&6; }
5185 if test x"$ax_cv_check_cflags__Werror___fno_strict_aliasing" = xyes
5187 CFLAGS="$CFLAGS -fno-strict-aliasing"
5193 ac_cpp='$CPP $CPPFLAGS'
5194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200 ac_cpp='$CPP $CPPFLAGS'
5201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-common" >&5
5206 printf %s "checking whether C compiler accepts -fno-common... " >&6; }
5207 if test ${ax_cv_check_cflags__Werror___fno_common+y}
5209 printf %s "(cached) " >&6
5212 ax_check_save_flags=$CFLAGS
5213 CFLAGS="$CFLAGS -Werror -fno-common"
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5225 if ac_fn_c_try_compile "$LINENO"
5227 ax_cv_check_cflags__Werror___fno_common=yes
5229 ax_cv_check_cflags__Werror___fno_common=no
5231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5232 CFLAGS=$ax_check_save_flags
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___fno_common" >&5
5235 printf "%s\n" "$ax_cv_check_cflags__Werror___fno_common" >&6; }
5236 if test x"$ax_cv_check_cflags__Werror___fno_common" = xyes
5238 CFLAGS="$CFLAGS -fno-common"
5244 ac_cpp='$CPP $CPPFLAGS'
5245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250 CFLAGS="$CFLAGS -funsigned-char"
5254 CFLAGS="$CFLAGS -Wall"
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
5263 printf %s "checking whether C compiler accepts -Wextra... " >&6; }
5264 if test ${ax_cv_check_cflags__Werror___Wextra+y}
5266 printf %s "(cached) " >&6
5269 ax_check_save_flags=$CFLAGS
5270 CFLAGS="$CFLAGS -Werror -Wextra"
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5282 if ac_fn_c_try_compile "$LINENO"
5284 ax_cv_check_cflags__Werror___Wextra=yes
5286 ax_cv_check_cflags__Werror___Wextra=no
5288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5289 CFLAGS=$ax_check_save_flags
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wextra" >&5
5292 printf "%s\n" "$ax_cv_check_cflags__Werror___Wextra" >&6; }
5293 if test x"$ax_cv_check_cflags__Werror___Wextra" = xyes
5295 CFLAGS="$CFLAGS -Wextra"
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Waggregate-return" >&5
5313 printf %s "checking whether C compiler accepts -Waggregate-return... " >&6; }
5314 if test ${ax_cv_check_cflags__Werror___Waggregate_return+y}
5316 printf %s "(cached) " >&6
5319 ax_check_save_flags=$CFLAGS
5320 CFLAGS="$CFLAGS -Werror -Waggregate-return"
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5332 if ac_fn_c_try_compile "$LINENO"
5334 ax_cv_check_cflags__Werror___Waggregate_return=yes
5336 ax_cv_check_cflags__Werror___Waggregate_return=no
5338 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5339 CFLAGS=$ax_check_save_flags
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Waggregate_return" >&5
5342 printf "%s\n" "$ax_cv_check_cflags__Werror___Waggregate_return" >&6; }
5343 if test x"$ax_cv_check_cflags__Werror___Waggregate_return" = xyes
5345 CFLAGS="$CFLAGS -Waggregate-return"
5351 ac_cpp='$CPP $CPPFLAGS'
5352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357 ac_cpp='$CPP $CPPFLAGS'
5358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-nonliteral" >&5
5363 printf %s "checking whether C compiler accepts -Wformat-nonliteral... " >&6; }
5364 if test ${ax_cv_check_cflags__Werror___Wformat_nonliteral+y}
5366 printf %s "(cached) " >&6
5369 ax_check_save_flags=$CFLAGS
5370 CFLAGS="$CFLAGS -Werror -Wformat-nonliteral"
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5382 if ac_fn_c_try_compile "$LINENO"
5384 ax_cv_check_cflags__Werror___Wformat_nonliteral=yes
5386 ax_cv_check_cflags__Werror___Wformat_nonliteral=no
5388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5389 CFLAGS=$ax_check_save_flags
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_nonliteral" >&5
5392 printf "%s\n" "$ax_cv_check_cflags__Werror___Wformat_nonliteral" >&6; }
5393 if test x"$ax_cv_check_cflags__Werror___Wformat_nonliteral" = xyes
5395 CFLAGS="$CFLAGS -Wformat-nonliteral"
5401 ac_cpp='$CPP $CPPFLAGS'
5402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-cond" >&5
5414 printf %s "checking whether C compiler accepts -Wduplicated-cond... " >&6; }
5415 if test ${ax_cv_check_cflags__Werror___Wduplicated_cond+y}
5417 printf %s "(cached) " >&6
5420 ax_check_save_flags=$CFLAGS
5421 CFLAGS="$CFLAGS -Werror -Wduplicated-cond"
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5433 if ac_fn_c_try_compile "$LINENO"
5435 ax_cv_check_cflags__Werror___Wduplicated_cond=yes
5437 ax_cv_check_cflags__Werror___Wduplicated_cond=no
5439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5440 CFLAGS=$ax_check_save_flags
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_cond" >&5
5443 printf "%s\n" "$ax_cv_check_cflags__Werror___Wduplicated_cond" >&6; }
5444 if test x"$ax_cv_check_cflags__Werror___Wduplicated_cond" = xyes
5446 CFLAGS="$CFLAGS -Wduplicated-cond"
5452 ac_cpp='$CPP $CPPFLAGS'
5453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5458 ac_cpp='$CPP $CPPFLAGS'
5459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-branches" >&5
5464 printf %s "checking whether C compiler accepts -Wduplicated-branches... " >&6; }
5465 if test ${ax_cv_check_cflags__Werror___Wduplicated_branches+y}
5467 printf %s "(cached) " >&6
5470 ax_check_save_flags=$CFLAGS
5471 CFLAGS="$CFLAGS -Werror -Wduplicated-branches"
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5483 if ac_fn_c_try_compile "$LINENO"
5485 ax_cv_check_cflags__Werror___Wduplicated_branches=yes
5487 ax_cv_check_cflags__Werror___Wduplicated_branches=no
5489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5490 CFLAGS=$ax_check_save_flags
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wduplicated_branches" >&5
5493 printf "%s\n" "$ax_cv_check_cflags__Werror___Wduplicated_branches" >&6; }
5494 if test x"$ax_cv_check_cflags__Werror___Wduplicated_branches" = xyes
5496 CFLAGS="$CFLAGS -Wduplicated-branches"
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
5509 ac_cpp='$CPP $CPPFLAGS'
5510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wparentheses" >&5
5515 printf %s "checking whether C compiler accepts -Wparentheses... " >&6; }
5516 if test ${ax_cv_check_cflags__Werror___Wparentheses+y}
5518 printf %s "(cached) " >&6
5521 ax_check_save_flags=$CFLAGS
5522 CFLAGS="$CFLAGS -Werror -Wparentheses"
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5534 if ac_fn_c_try_compile "$LINENO"
5536 ax_cv_check_cflags__Werror___Wparentheses=yes
5538 ax_cv_check_cflags__Werror___Wparentheses=no
5540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5541 CFLAGS=$ax_check_save_flags
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wparentheses" >&5
5544 printf "%s\n" "$ax_cv_check_cflags__Werror___Wparentheses" >&6; }
5545 if test x"$ax_cv_check_cflags__Werror___Wparentheses" = xyes
5547 CFLAGS="$CFLAGS -Wparentheses"
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5562 ac_cpp='$CPP $CPPFLAGS'
5563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpointer-sign" >&5
5568 printf %s "checking whether C compiler accepts -Wpointer-sign... " >&6; }
5569 if test ${ax_cv_check_cflags__Werror___Wpointer_sign+y}
5571 printf %s "(cached) " >&6
5574 ax_check_save_flags=$CFLAGS
5575 CFLAGS="$CFLAGS -Werror -Wpointer-sign"
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5587 if ac_fn_c_try_compile "$LINENO"
5589 ax_cv_check_cflags__Werror___Wpointer_sign=yes
5591 ax_cv_check_cflags__Werror___Wpointer_sign=no
5593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5594 CFLAGS=$ax_check_save_flags
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wpointer_sign" >&5
5597 printf "%s\n" "$ax_cv_check_cflags__Werror___Wpointer_sign" >&6; }
5598 if test x"$ax_cv_check_cflags__Werror___Wpointer_sign" = xyes
5600 CFLAGS="$CFLAGS -Wno-pointer-sign"
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Winvalid-source-encoding" >&5
5619 printf %s "checking whether C compiler accepts -Winvalid-source-encoding... " >&6; }
5620 if test ${ax_cv_check_cflags__Werror___Winvalid_source_encoding+y}
5622 printf %s "(cached) " >&6
5625 ax_check_save_flags=$CFLAGS
5626 CFLAGS="$CFLAGS -Werror -Winvalid-source-encoding"
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5638 if ac_fn_c_try_compile "$LINENO"
5640 ax_cv_check_cflags__Werror___Winvalid_source_encoding=yes
5642 ax_cv_check_cflags__Werror___Winvalid_source_encoding=no
5644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5645 CFLAGS=$ax_check_save_flags
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Winvalid_source_encoding" >&5
5648 printf "%s\n" "$ax_cv_check_cflags__Werror___Winvalid_source_encoding" >&6; }
5649 if test x"$ax_cv_check_cflags__Werror___Winvalid_source_encoding" = xyes
5651 CFLAGS="$CFLAGS -Wno-invalid-source-encoding"
5657 ac_cpp='$CPP $CPPFLAGS'
5658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5664 ac_cpp='$CPP $CPPFLAGS'
5665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-zero-length" >&5
5670 printf %s "checking whether C compiler accepts -Wformat-zero-length... " >&6; }
5671 if test ${ax_cv_check_cflags__Werror___Wformat_zero_length+y}
5673 printf %s "(cached) " >&6
5676 ax_check_save_flags=$CFLAGS
5677 CFLAGS="$CFLAGS -Werror -Wformat-zero-length"
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5689 if ac_fn_c_try_compile "$LINENO"
5691 ax_cv_check_cflags__Werror___Wformat_zero_length=yes
5693 ax_cv_check_cflags__Werror___Wformat_zero_length=no
5695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5696 CFLAGS=$ax_check_save_flags
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_zero_length" >&5
5699 printf "%s\n" "$ax_cv_check_cflags__Werror___Wformat_zero_length" >&6; }
5700 if test x"$ax_cv_check_cflags__Werror___Wformat_zero_length" = xyes
5702 CFLAGS="$CFLAGS -Wno-format-zero-length"
5708 ac_cpp='$CPP $CPPFLAGS'
5709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5715 ac_cpp='$CPP $CPPFLAGS'
5716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5
5721 printf %s "checking whether C compiler accepts -Wformat-truncation... " >&6; }
5722 if test ${ax_cv_check_cflags__Werror___Wformat_truncation+y}
5724 printf %s "(cached) " >&6
5727 ax_check_save_flags=$CFLAGS
5728 CFLAGS="$CFLAGS -Werror -Wformat-truncation"
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5740 if ac_fn_c_try_compile "$LINENO"
5742 ax_cv_check_cflags__Werror___Wformat_truncation=yes
5744 ax_cv_check_cflags__Werror___Wformat_truncation=no
5746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5747 CFLAGS=$ax_check_save_flags
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_truncation" >&5
5750 printf "%s\n" "$ax_cv_check_cflags__Werror___Wformat_truncation" >&6; }
5751 if test x"$ax_cv_check_cflags__Werror___Wformat_truncation" = xyes
5753 CFLAGS="$CFLAGS -Wno-format-truncation"
5759 ac_cpp='$CPP $CPPFLAGS'
5760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5766 ac_cpp='$CPP $CPPFLAGS'
5767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-overflow" >&5
5772 printf %s "checking whether C compiler accepts -Wformat-overflow... " >&6; }
5773 if test ${ax_cv_check_cflags__Werror___Wformat_overflow+y}
5775 printf %s "(cached) " >&6
5778 ax_check_save_flags=$CFLAGS
5779 CFLAGS="$CFLAGS -Werror -Wformat-overflow"
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5791 if ac_fn_c_try_compile "$LINENO"
5793 ax_cv_check_cflags__Werror___Wformat_overflow=yes
5795 ax_cv_check_cflags__Werror___Wformat_overflow=no
5797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5798 CFLAGS=$ax_check_save_flags
5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wformat_overflow" >&5
5801 printf "%s\n" "$ax_cv_check_cflags__Werror___Wformat_overflow" >&6; }
5802 if test x"$ax_cv_check_cflags__Werror___Wformat_overflow" = xyes
5804 CFLAGS="$CFLAGS -Wno-format-overflow"
5810 ac_cpp='$CPP $CPPFLAGS'
5811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5817 ac_cpp='$CPP $CPPFLAGS'
5818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused" >&5
5823 printf %s "checking whether C compiler accepts -Wunused... " >&6; }
5824 if test ${ax_cv_check_cflags__Werror___Wunused+y}
5826 printf %s "(cached) " >&6
5829 ax_check_save_flags=$CFLAGS
5830 CFLAGS="$CFLAGS -Werror -Wunused"
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5842 if ac_fn_c_try_compile "$LINENO"
5844 ax_cv_check_cflags__Werror___Wunused=yes
5846 ax_cv_check_cflags__Werror___Wunused=no
5848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5849 CFLAGS=$ax_check_save_flags
5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunused" >&5
5852 printf "%s\n" "$ax_cv_check_cflags__Werror___Wunused" >&6; }
5853 if test x"$ax_cv_check_cflags__Werror___Wunused" = xyes
5855 CFLAGS="$CFLAGS -Wno-unused"
5861 ac_cpp='$CPP $CPPFLAGS'
5862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5867 ac_cpp='$CPP $CPPFLAGS'
5868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-parameter" >&5
5873 printf %s "checking whether C compiler accepts -Wunused-parameter... " >&6; }
5874 if test ${ax_cv_check_cflags__Werror___Wunused_parameter+y}
5876 printf %s "(cached) " >&6
5879 ax_check_save_flags=$CFLAGS
5880 CFLAGS="$CFLAGS -Werror -Wunused-parameter"
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5892 if ac_fn_c_try_compile "$LINENO"
5894 ax_cv_check_cflags__Werror___Wunused_parameter=yes
5896 ax_cv_check_cflags__Werror___Wunused_parameter=no
5898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5899 CFLAGS=$ax_check_save_flags
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunused_parameter" >&5
5902 printf "%s\n" "$ax_cv_check_cflags__Werror___Wunused_parameter" >&6; }
5903 if test x"$ax_cv_check_cflags__Werror___Wunused_parameter" = xyes
5905 CFLAGS="$CFLAGS -Wno-unused-parameter"
5911 ac_cpp='$CPP $CPPFLAGS'
5912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5917 ac_cpp='$CPP $CPPFLAGS'
5918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-but-set-parameter" >&5
5923 printf %s "checking whether C compiler accepts -Wunused-but-set-parameter... " >&6; }
5924 if test ${ax_cv_check_cflags__Werror___Wunused_but_set_parameter+y}
5926 printf %s "(cached) " >&6
5929 ax_check_save_flags=$CFLAGS
5930 CFLAGS="$CFLAGS -Werror -Wunused-but-set-parameter"
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5942 if ac_fn_c_try_compile "$LINENO"
5944 ax_cv_check_cflags__Werror___Wunused_but_set_parameter=yes
5946 ax_cv_check_cflags__Werror___Wunused_but_set_parameter=no
5948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5949 CFLAGS=$ax_check_save_flags
5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunused_but_set_parameter" >&5
5952 printf "%s\n" "$ax_cv_check_cflags__Werror___Wunused_but_set_parameter" >&6; }
5953 if test x"$ax_cv_check_cflags__Werror___Wunused_but_set_parameter" = xyes
5955 CFLAGS="$CFLAGS -Wno-unused-but-set-parameter"
5961 ac_cpp='$CPP $CPPFLAGS'
5962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5968 ac_cpp='$CPP $CPPFLAGS'
5969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wchar-subscripts" >&5
5974 printf %s "checking whether C compiler accepts -Wchar-subscripts... " >&6; }
5975 if test ${ax_cv_check_cflags__Werror___Wchar_subscripts+y}
5977 printf %s "(cached) " >&6
5980 ax_check_save_flags=$CFLAGS
5981 CFLAGS="$CFLAGS -Werror -Wchar-subscripts"
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5993 if ac_fn_c_try_compile "$LINENO"
5995 ax_cv_check_cflags__Werror___Wchar_subscripts=yes
5997 ax_cv_check_cflags__Werror___Wchar_subscripts=no
5999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6000 CFLAGS=$ax_check_save_flags
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wchar_subscripts" >&5
6003 printf "%s\n" "$ax_cv_check_cflags__Werror___Wchar_subscripts" >&6; }
6004 if test x"$ax_cv_check_cflags__Werror___Wchar_subscripts" = xyes
6006 CFLAGS="$CFLAGS -Wno-char-subscripts"
6012 ac_cpp='$CPP $CPPFLAGS'
6013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6019 ac_cpp='$CPP $CPPFLAGS'
6020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wsign-compare" >&5
6025 printf %s "checking whether C compiler accepts -Wsign-compare... " >&6; }
6026 if test ${ax_cv_check_cflags__Werror___Wsign_compare+y}
6028 printf %s "(cached) " >&6
6031 ax_check_save_flags=$CFLAGS
6032 CFLAGS="$CFLAGS -Werror -Wsign-compare"
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6044 if ac_fn_c_try_compile "$LINENO"
6046 ax_cv_check_cflags__Werror___Wsign_compare=yes
6048 ax_cv_check_cflags__Werror___Wsign_compare=no
6050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6051 CFLAGS=$ax_check_save_flags
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wsign_compare" >&5
6054 printf "%s\n" "$ax_cv_check_cflags__Werror___Wsign_compare" >&6; }
6055 if test x"$ax_cv_check_cflags__Werror___Wsign_compare" = xyes
6057 CFLAGS="$CFLAGS -Wno-sign-compare"
6063 ac_cpp='$CPP $CPPFLAGS'
6064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6070 ac_cpp='$CPP $CPPFLAGS'
6071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wempty-body" >&5
6076 printf %s "checking whether C compiler accepts -Wempty-body... " >&6; }
6077 if test ${ax_cv_check_cflags__Werror___Wempty_body+y}
6079 printf %s "(cached) " >&6
6082 ax_check_save_flags=$CFLAGS
6083 CFLAGS="$CFLAGS -Werror -Wempty-body"
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6095 if ac_fn_c_try_compile "$LINENO"
6097 ax_cv_check_cflags__Werror___Wempty_body=yes
6099 ax_cv_check_cflags__Werror___Wempty_body=no
6101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6102 CFLAGS=$ax_check_save_flags
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wempty_body" >&5
6105 printf "%s\n" "$ax_cv_check_cflags__Werror___Wempty_body" >&6; }
6106 if test x"$ax_cv_check_cflags__Werror___Wempty_body" = xyes
6108 CFLAGS="$CFLAGS -Wno-empty-body"
6114 ac_cpp='$CPP $CPPFLAGS'
6115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6121 ac_cpp='$CPP $CPPFLAGS'
6122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wdeprecated-non-prototype" >&5
6127 printf %s "checking whether C compiler accepts -Wdeprecated-non-prototype... " >&6; }
6128 if test ${ax_cv_check_cflags__Werror___Wdeprecated_non_prototype+y}
6130 printf %s "(cached) " >&6
6133 ax_check_save_flags=$CFLAGS
6134 CFLAGS="$CFLAGS -Werror -Wdeprecated-non-prototype"
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6146 if ac_fn_c_try_compile "$LINENO"
6148 ax_cv_check_cflags__Werror___Wdeprecated_non_prototype=yes
6150 ax_cv_check_cflags__Werror___Wdeprecated_non_prototype=no
6152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6153 CFLAGS=$ax_check_save_flags
6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wdeprecated_non_prototype" >&5
6156 printf "%s\n" "$ax_cv_check_cflags__Werror___Wdeprecated_non_prototype" >&6; }
6157 if test x"$ax_cv_check_cflags__Werror___Wdeprecated_non_prototype" = xyes
6159 CFLAGS="$CFLAGS -Wno-deprecated-non-prototype"
6165 ac_cpp='$CPP $CPPFLAGS'
6166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171 if $CC --version | grep -q "clang version 3."
6173 CFLAGS="$CFLAGS -Wno-tautological-compare -Wno-pragmas"
6177 ac_cpp='$CPP $CPPFLAGS'
6178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wpragmas" >&5
6183 printf %s "checking whether C compiler accepts -Wpragmas... " >&6; }
6184 if test ${ax_cv_check_cflags__Werror___Wpragmas+y}
6186 printf %s "(cached) " >&6
6189 ax_check_save_flags=$CFLAGS
6190 CFLAGS="$CFLAGS -Werror -Wpragmas"
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6202 if ac_fn_c_try_compile "$LINENO"
6204 ax_cv_check_cflags__Werror___Wpragmas=yes
6206 ax_cv_check_cflags__Werror___Wpragmas=no
6208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6209 CFLAGS=$ax_check_save_flags
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wpragmas" >&5
6212 printf "%s\n" "$ax_cv_check_cflags__Werror___Wpragmas" >&6; }
6213 if test x"$ax_cv_check_cflags__Werror___Wpragmas" = xyes
6221 ac_cpp='$CPP $CPPFLAGS'
6222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6227 ac_cpp='$CPP $CPPFLAGS'
6228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunknown-warning-option" >&5
6233 printf %s "checking whether C compiler accepts -Wunknown-warning-option... " >&6; }
6234 if test ${ax_cv_check_cflags__Werror___Wunknown_warning_option+y}
6236 printf %s "(cached) " >&6
6239 ax_check_save_flags=$CFLAGS
6240 CFLAGS="$CFLAGS -Werror -Wunknown-warning-option"
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6252 if ac_fn_c_try_compile "$LINENO"
6254 ax_cv_check_cflags__Werror___Wunknown_warning_option=yes
6256 ax_cv_check_cflags__Werror___Wunknown_warning_option=no
6258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6259 CFLAGS=$ax_check_save_flags
6261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror___Wunknown_warning_option" >&5
6262 printf "%s\n" "$ax_cv_check_cflags__Werror___Wunknown_warning_option" >&6; }
6263 if test x"$ax_cv_check_cflags__Werror___Wunknown_warning_option" = xyes
6265 unknown_warning_option=1
6267 unknown_warning_option=0
6271 ac_cpp='$CPP $CPPFLAGS'
6272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6277 if test "$unknown_warning_option" = "1"; then
6278 CFLAGS="$CFLAGS -Wno-unknown-warning-option"
6280 if test "$no_pragmas" = "1"; then
6281 CFLAGS="$CFLAGS -Wno-pragmas"
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system has IPv6 support" >&5
6290 printf %s "checking if your system has IPv6 support... " >&6; }
6291 if test ${ac_cv_ip6+y}
6293 printf %s "(cached) " >&6
6296 if test "$cross_compiling" = yes
6298 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6299 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6300 as_fn_error $? "cannot run
test program
while cross compiling
6301 See \
`config.log' for more details" "$LINENO" 5; }
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6306 #include <sys/types.h>
6307 #include <sys/socket.h>
6310 int s = socket(AF_INET6, SOCK_STREAM, 0);
6311 exit(0); /* We only check if the code compiles, that's enough. We can deal with missing runtime IPv6 */
6315 if ac_fn_c_try_run "$LINENO"
6321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6322 conftest.$ac_objext conftest.beam conftest.$ac_ext
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip6" >&5
6328 printf "%s\n" "$ac_cv_ip6" >&6; }
6329 if test "$ac_cv_ip6" = "no"; then
6330 as_fn_error $? "Your system does not support IPv6" "$LINENO" 5
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if you have getsockopt TCP_INFO" >&5
6334 printf %s "checking if you have getsockopt TCP_INFO... " >&6; }
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6337 #include <sys/types.h>
6339 #include <sys/socket.h>
6340 #include <netinet/in.h>
6341 #include <netinet/tcp.h>
6342 #include <sys/socket.h>
6347 socklen_t optlen = sizeof(struct tcp_info);
6351 #if defined(__FreeBSD__)
6356 ti.tcpi_snd_cwnd = 0;
6357 ti.tcpi_snd_mss = 0;
6358 ti.tcpi_rcv_mss = 0;
6359 getsockopt(0, IPPROTO_TCP, TCP_INFO, &ti, &optlen);
6365 if ac_fn_c_try_compile "$LINENO"
6368 printf "%s\n" "#define HAVE_TCP_INFO 1" >>confdefs.h
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6371 printf "%s\n" "yes" >&6; }
6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 printf "%s\n" "no" >&6; }
6376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6378 ac_fn_c_check_header_compile "$LINENO" "sys/syslog.h" "ac_cv_header_sys_syslog_h" "$ac_includes_default"
6379 if test "x$ac_cv_header_sys_syslog_h" = xyes
6382 printf "%s\n" "#define SYSSYSLOGH /**/" >>confdefs.h
6386 ac_fn_c_check_header_compile "$LINENO" "sys/rusage.h" "ac_cv_header_sys_rusage_h" "$ac_includes_default"
6387 if test "x$ac_cv_header_sys_rusage_h" = xyes
6390 printf "%s\n" "#define RUSAGEH /**/" >>confdefs.h
6394 ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
6395 if test "x$ac_cv_header_glob_h" = xyes
6398 printf "%s\n" "#define GLOBH /**/" >>confdefs.h
6402 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
6403 if test "x$ac_cv_header_stdint_h" = xyes
6405 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
6408 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6409 if test "x$ac_cv_header_inttypes_h" = xyes
6411 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
6417 for ac_func in strlcpy
6419 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
6420 if test "x$ac_cv_func_strlcpy" = xyes
6422 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
6424 printf "%s\n" "#define HAVE_STRLCPY /**/" >>confdefs.h
6430 for ac_func in strlcat
6432 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
6433 if test "x$ac_cv_func_strlcat" = xyes
6435 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
6437 printf "%s\n" "#define HAVE_STRLCAT /**/" >>confdefs.h
6443 for ac_func in strlncat
6445 ac_fn_c_check_func "$LINENO" "strlncat" "ac_cv_func_strlncat"
6446 if test "x$ac_cv_func_strlncat" = xyes
6448 printf "%s\n" "#define HAVE_STRLNCAT 1" >>confdefs.h
6450 printf "%s\n" "#define HAVE_STRLNCAT /**/" >>confdefs.h
6456 for ac_func in strlncpy
6458 ac_fn_c_check_func "$LINENO" "strlncpy" "ac_cv_func_strlncpy"
6459 if test "x$ac_cv_func_strlncpy" = xyes
6461 printf "%s\n" "#define HAVE_STRLNCPY 1" >>confdefs.h
6463 printf "%s\n" "#define HAVE_STRLNCPY /**/" >>confdefs.h
6470 for ac_func in getrusage
6472 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
6473 if test "x$ac_cv_func_getrusage" = xyes
6475 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
6477 printf "%s\n" "#define GETRUSAGE_2 /**/" >>confdefs.h
6481 for ac_func in times
6483 ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times"
6484 if test "x$ac_cv_func_times" = xyes
6486 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
6488 printf "%s\n" "#define TIMES_2 /**/" >>confdefs.h
6497 ac_cpp='$CPP $CPPFLAGS'
6498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6502 printf %s "checking how to run the C preprocessor... " >&6; }
6503 # On Suns, sometimes $CPP names a directory.
6504 if test -n "$CPP" && test -d "$CPP"; then
6507 if test -z "$CPP"; then
6508 if test ${ac_cv_prog_CPP+y}
6510 printf %s "(cached) " >&6
6512 # Double quotes because $CC needs to be expanded
6513 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6516 for ac_c_preproc_warn_flag in '' yes
6518 # Use a header file that comes with gcc, so configuring glibc
6519 # with a fresh cross-compiler works.
6520 # On the NeXT, cc -E runs the code through the compiler's parser,
6521 # not just through cpp. "Syntax error" is here to catch this case.
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6527 if ac_fn_c_try_cpp "$LINENO"
6531 # Broken: fails on valid input.
6534 rm -f conftest.err conftest.i conftest.$ac_ext
6536 # OK, works on sane cases. Now check whether nonexistent headers
6537 # can be detected and how.
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 #include <ac_nonexistent.h>
6542 if ac_fn_c_try_cpp "$LINENO"
6544 # Broken: success on invalid input.
6547 # Passes both tests.
6551 rm -f conftest.err conftest.i conftest.$ac_ext
6554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6555 rm -f conftest.i conftest.err conftest.
$ac_ext
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6570 printf "%s\n" "$CPP" >&6; }
6572 for ac_c_preproc_warn_flag
in '' yes
6574 # Use a header file that comes with gcc, so configuring glibc
6575 # with a fresh cross-compiler works.
6576 # On the NeXT, cc -E runs the code through the compiler's parser,
6577 # not just through cpp. "Syntax error" is here to catch this case.
6578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6583 if ac_fn_c_try_cpp
"$LINENO"
6587 # Broken: fails on valid input.
6590 rm -f conftest.err conftest.i conftest.
$ac_ext
6592 # OK, works on sane cases. Now check whether nonexistent headers
6593 # can be detected and how.
6594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596 #include <ac_nonexistent.h>
6598 if ac_fn_c_try_cpp
"$LINENO"
6600 # Broken: success on invalid input.
6603 # Passes both tests.
6607 rm -f conftest.err conftest.i conftest.
$ac_ext
6610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6611 rm -f conftest.i conftest.err conftest.
$ac_ext
6616 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6617 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6618 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
6619 See \`config.log' for more details" "$LINENO" 5; }
6623 ac_cpp
='$CPP $CPPFLAGS'
6624 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6625 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6626 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6630 printf %s
"checking for grep that handles long lines and -e... " >&6; }
6631 if test ${ac_cv_path_GREP+y}
6633 printf %s
"(cached) " >&6
6635 if test -z "$GREP"; then
6636 ac_path_GREP_found
=false
6637 # Loop through the user's path and test for each of PROGNAME-LIST
6638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6639 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6642 case $as_dir in #(((
6645 *) as_dir
=$as_dir/ ;;
6647 for ac_prog
in grep ggrep
6649 for ac_exec_ext
in '' $ac_executable_extensions; do
6650 ac_path_GREP
="$as_dir$ac_prog$ac_exec_ext"
6651 as_fn_executable_p
"$ac_path_GREP" || continue
6652 # Check for GNU ac_path_GREP and select it if it is found.
6653 # Check for GNU $ac_path_GREP
6654 case `"$ac_path_GREP" --version 2>&1` in
6656 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6659 printf %s
0123456789 >"conftest.in"
6662 cat "conftest.in" "conftest.in" >"conftest.tmp"
6663 mv "conftest.tmp" "conftest.in"
6664 cp "conftest.in" "conftest.nl"
6665 printf "%s\n" 'GREP' >> "conftest.nl"
6666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
6667 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
6668 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6669 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6670 # Best one so far, save it but keep looking for a better one
6671 ac_cv_path_GREP
="$ac_path_GREP"
6672 ac_path_GREP_max
=$ac_count
6674 # 10*(2^10) chars as input seems more than enough
6675 test $ac_count -gt 10 && break
6677 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6680 $ac_path_GREP_found && break 3
6685 if test -z "$ac_cv_path_GREP"; then
6686 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6689 ac_cv_path_GREP
=$GREP
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6694 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6695 GREP
="$ac_cv_path_GREP"
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6699 printf %s
"checking for egrep... " >&6; }
6700 if test ${ac_cv_path_EGREP+y}
6702 printf %s
"(cached) " >&6
6704 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
6705 then ac_cv_path_EGREP
="$GREP -E"
6707 if test -z "$EGREP"; then
6708 ac_path_EGREP_found
=false
6709 # Loop through the user's path and test for each of PROGNAME-LIST
6710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6711 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6714 case $as_dir in #(((
6717 *) as_dir
=$as_dir/ ;;
6719 for ac_prog
in egrep
6721 for ac_exec_ext
in '' $ac_executable_extensions; do
6722 ac_path_EGREP
="$as_dir$ac_prog$ac_exec_ext"
6723 as_fn_executable_p
"$ac_path_EGREP" || continue
6724 # Check for GNU ac_path_EGREP and select it if it is found.
6725 # Check for GNU $ac_path_EGREP
6726 case `"$ac_path_EGREP" --version 2>&1` in
6728 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6731 printf %s
0123456789 >"conftest.in"
6734 cat "conftest.in" "conftest.in" >"conftest.tmp"
6735 mv "conftest.tmp" "conftest.in"
6736 cp "conftest.in" "conftest.nl"
6737 printf "%s\n" 'EGREP' >> "conftest.nl"
6738 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
6739 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
6740 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6741 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6742 # Best one so far, save it but keep looking for a better one
6743 ac_cv_path_EGREP
="$ac_path_EGREP"
6744 ac_path_EGREP_max
=$ac_count
6746 # 10*(2^10) chars as input seems more than enough
6747 test $ac_count -gt 10 && break
6749 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6752 $ac_path_EGREP_found && break 3
6757 if test -z "$ac_cv_path_EGREP"; then
6758 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6761 ac_cv_path_EGREP
=$EGREP
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6767 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6768 EGREP
="$ac_cv_path_EGREP"
6772 for ac_func
in setproctitle
6774 ac_fn_c_check_func
"$LINENO" "setproctitle" "ac_cv_func_setproctitle"
6775 if test "x$ac_cv_func_setproctitle" = xyes
6777 printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h
6779 printf "%s\n" "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
6783 printf %s
"checking for setproctitle in -lutil... " >&6; }
6784 if test ${ac_cv_lib_util_setproctitle+y}
6786 printf %s
"(cached) " >&6
6788 ac_check_lib_save_LIBS
=$LIBS
6790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6793 /* Override any GCC internal prototype to avoid an error.
6794 Use char because int might match the return type of a GCC
6795 builtin and then its argument prototype would still apply. */
6796 char setproctitle ();
6800 return setproctitle ();
6805 if ac_fn_c_try_link
"$LINENO"
6807 ac_cv_lib_util_setproctitle
=yes
6809 ac_cv_lib_util_setproctitle
=no
6811 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
6812 conftest
$ac_exeext conftest.
$ac_ext
6813 LIBS
=$ac_check_lib_save_LIBS
6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
6816 printf "%s\n" "$ac_cv_lib_util_setproctitle" >&6; }
6817 if test "x$ac_cv_lib_util_setproctitle" = xyes
6820 printf "%s\n" "#define HAVE_SETPROCTITLE /**/" >>confdefs.h
6822 IRCDLIBS
="$IRCDLIBS-lutil"
6825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 #include <sys/exec.h>
6830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6831 $EGREP "#define.*PS_STRINGS.*" >/dev
/null
2>&1
6834 printf "%s\n" "#define HAVE_PSSTRINGS /**/" >>confdefs.h
6838 for ac_func
in pstat
6840 ac_fn_c_check_func
"$LINENO" "pstat" "ac_cv_func_pstat"
6841 if test "x$ac_cv_func_pstat" = xyes
6843 printf "%s\n" "#define HAVE_PSTAT 1" >>confdefs.h
6845 printf "%s\n" "#define HAVE_PSTAT /**/" >>confdefs.h
6863 for ac_func
in explicit_bzero
6865 ac_fn_c_check_func
"$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
6866 if test "x$ac_cv_func_explicit_bzero" = xyes
6868 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
6870 printf "%s\n" "#define HAVE_EXPLICIT_BZERO /**/" >>confdefs.h
6876 for ac_func
in syslog
6878 ac_fn_c_check_func
"$LINENO" "syslog" "ac_cv_func_syslog"
6879 if test "x$ac_cv_func_syslog" = xyes
6881 printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h
6883 printf "%s\n" "#define HAVE_SYSLOG /**/" >>confdefs.h
6889 for ac_func
in strnlen
6891 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
6892 if test "x$ac_cv_func_strnlen" = xyes
6894 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
6896 printf "%s\n" "#define HAVE_STRNLEN /**/" >>confdefs.h
6905 # Check whether --with-nick-history was given.
6906 if test ${with_nick_history+y}
6908 withval
=$with_nick_history;
6909 printf "%s\n" "#define NICKNAMEHISTORYLENGTH $withval" >>confdefs.h
6913 printf "%s\n" "#define NICKNAMEHISTORYLENGTH 2000" >>confdefs.h
6918 # Check whether --with-permissions was given.
6919 if test ${with_permissions+y}
6921 withval
=$with_permissions;
6922 printf "%s\n" "#define DEFAULT_PERMISSIONS 0$withval" >>confdefs.h
6926 printf "%s\n" "#define DEFAULT_PERMISSIONS 0600" >>confdefs.h
6932 # Check whether --with-bindir was given.
6933 if test ${with_bindir+y}
6935 withval
=$with_bindir;
6936 printf "%s\n" "#define BINDIR \"$withval\"" >>confdefs.h
6941 printf "%s\n" "#define BINDIR \"$HOME/unrealircd/bin\"" >>confdefs.h
6943 BINDIR
="$HOME/unrealircd/bin"
6948 # Check whether --with-scriptdir was given.
6949 if test ${with_scriptdir+y}
6951 withval
=$with_scriptdir;
6952 printf "%s\n" "#define SCRIPTDIR \"$withval\"" >>confdefs.h
6954 SCRIPTDIR
="$withval"
6957 printf "%s\n" "#define SCRIPTDIR \"$HOME/unrealircd\"" >>confdefs.h
6959 SCRIPTDIR
="$HOME/unrealircd"
6964 # Check whether --with-confdir was given.
6965 if test ${with_confdir+y}
6967 withval
=$with_confdir;
6968 printf "%s\n" "#define CONFDIR \"$withval\"" >>confdefs.h
6973 printf "%s\n" "#define CONFDIR \"$HOME/unrealircd/conf\"" >>confdefs.h
6975 CONFDIR
="$HOME/unrealircd/conf"
6980 # Check whether --with-builddir was given.
6981 if test ${with_builddir+y}
6983 withval
=$with_builddir;
6984 printf "%s\n" "#define BUILDDIR \"$withval\"" >>confdefs.h
6989 printf "%s\n" "#define BUILDDIR \"$BUILDDIR_NOW\"" >>confdefs.h
6991 BUILDDIR
="$BUILDDIR_NOW"
6996 # Check whether --with-modulesdir was given.
6997 if test ${with_modulesdir+y}
6999 withval
=$with_modulesdir;
7000 printf "%s\n" "#define MODULESDIR \"$withval\"" >>confdefs.h
7002 MODULESDIR
="$withval"
7005 printf "%s\n" "#define MODULESDIR \"$HOME/unrealircd/modules\"" >>confdefs.h
7007 MODULESDIR
="$HOME/unrealircd/modules"
7012 # Check whether --with-logdir was given.
7013 if test ${with_logdir+y}
7015 withval
=$with_logdir;
7016 printf "%s\n" "#define LOGDIR \"$withval\"" >>confdefs.h
7021 printf "%s\n" "#define LOGDIR \"$HOME/unrealircd/logs\"" >>confdefs.h
7023 LOGDIR
="$HOME/unrealircd/logs"
7028 # Check whether --with-cachedir was given.
7029 if test ${with_cachedir+y}
7031 withval
=$with_cachedir;
7032 printf "%s\n" "#define CACHEDIR \"$withval\"" >>confdefs.h
7037 printf "%s\n" "#define CACHEDIR \"$HOME/unrealircd/cache\"" >>confdefs.h
7039 CACHEDIR
="$HOME/unrealircd/cache"
7044 # Check whether --with-tmpdir was given.
7045 if test ${with_tmpdir+y}
7047 withval
=$with_tmpdir;
7048 printf "%s\n" "#define TMPDIR \"$withval\"" >>confdefs.h
7053 printf "%s\n" "#define TMPDIR \"$HOME/unrealircd/tmp\"" >>confdefs.h
7055 TMPDIR
="$HOME/unrealircd/tmp"
7060 # Check whether --with-datadir was given.
7061 if test ${with_datadir+y}
7063 withval
=$with_datadir;
7064 printf "%s\n" "#define PERMDATADIR \"$withval\"" >>confdefs.h
7066 PERMDATADIR
="$withval"
7069 printf "%s\n" "#define DATADIR \"$HOME/unrealircd/data\"" >>confdefs.h
7071 PERMDATADIR
="$HOME/unrealircd/data"
7076 # Check whether --with-docdir was given.
7077 if test ${with_docdir+y}
7079 withval
=$with_docdir;
7080 printf "%s\n" "#define DOCDIR \"$withval\"" >>confdefs.h
7085 printf "%s\n" "#define DOCDIR \"$HOME/unrealircd/doc\"" >>confdefs.h
7087 DOCDIR
="$HOME/unrealircd/doc"
7092 # Check whether --with-pidfile was given.
7093 if test ${with_pidfile+y}
7095 withval
=$with_pidfile;
7096 printf "%s\n" "#define PIDFILE \"$withval\"" >>confdefs.h
7101 printf "%s\n" "#define PIDFILE \"$HOME/unrealircd/data/unrealircd.pid\"" >>confdefs.h
7103 PIDFILE
="$HOME/unrealircd/data/unrealircd.pid"
7108 # Check whether --with-controlfile was given.
7109 if test ${with_controlfile+y}
7111 withval
=$with_controlfile;
7112 printf "%s\n" "#define CONTROLFILE \"$withval\"" >>confdefs.h
7114 CONTROLFILE
="$withval"
7117 printf "%s\n" "#define CONTROLFILE \"$HOME/unrealircd/data/unrealircd.ctl\"" >>confdefs.h
7119 CONTROLFILE
="$HOME/unrealircd/data/unrealircd.ctl"
7124 # Check whether --with-privatelibdir was given.
7125 if test ${with_privatelibdir+y}
7127 withval
=$with_privatelibdir;
7129 with_privatelibdir
="yes"
7132 if test "x$with_privatelibdir" = "xno"
7135 elif test "x$with_privatelibdir" = "xyes"
7137 PRIVATELIBDIR
="$HOME/unrealircd/lib"
7139 PRIVATELIBDIR
="$with_privatelibdir"
7141 if test "x$PRIVATELIBDIR" = "x"
7143 LDFLAGS_PRIVATELIBS
=""
7146 printf "%s\n" "#define PRIVATELIBDIR \"$PRIVATELIBDIR\"" >>confdefs.h
7148 LDFLAGS_PRIVATELIBS
="-Wl,-rpath,$PRIVATELIBDIR"
7149 LDFLAGS
="$LDFLAGS $LDFLAGS_PRIVATELIBS"
7168 # Check whether --with-maxconnections was given.
7169 if test ${with_maxconnections+y}
7171 withval
=$with_maxconnections; ac_fd
=$withval
7177 printf "%s\n" "#define MAXCONNECTIONS_REQUEST $ac_fd" >>confdefs.h
7181 # Check whether --with-no-operoverride was given.
7182 if test ${with_no_operoverride+y}
7184 withval
=$with_no_operoverride; if test $withval = "yes"
7187 printf "%s\n" "#define NO_OPEROVERRIDE /**/" >>confdefs.h
7193 # Check whether --with-operoverride-verify was given.
7194 if test ${with_operoverride_verify+y}
7196 withval
=$with_operoverride_verify; if test $withval = "yes"
7199 printf "%s\n" "#define OPEROVERRIDE_VERIFY /**/" >>confdefs.h
7205 # Check whether --with-system-pcre2 was given.
7206 if test ${with_system_pcre2+y}
7208 withval
=$with_system_pcre2;
7210 with_system_pcre2
=yes
7214 # Check whether --with-system-argon2 was given.
7215 if test ${with_system_argon2+y}
7217 withval
=$with_system_argon2;
7219 with_system_argon2
=no
7223 # Check whether --with-system-sodium was given.
7224 if test ${with_system_sodium+y}
7226 withval
=$with_system_sodium;
7228 with_system_sodium
=yes
7232 # Check whether --with-system-cares was given.
7233 if test ${with_system_cares+y}
7235 withval
=$with_system_cares;
7237 with_system_cares
=yes
7241 # Check whether --with-system-jansson was given.
7242 if test ${with_system_jansson+y}
7244 withval
=$with_system_jansson;
7246 with_system_jansson
=yes
7250 # Check whether --enable-ssl was given.
7251 if test ${enable_ssl+y}
7253 enableval
=$enable_ssl;
7258 if test $enable_ssl != "no"
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
7262 printf %s
"checking for OpenSSL... " >&6; }
7263 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
7265 if test -f "$dir/include/openssl/ssl.h"; then
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir/include/openssl" >&5
7267 printf "%s\n" "found in $ssldir/include/openssl" >&6; }
7269 if test ! "$ssldir" = "/usr" ; then
7270 CFLAGS
="$CFLAGS -I$ssldir/include";
7274 if test -f "$dir/include/ssl.h"; then
7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $ssldir/include" >&5
7276 printf "%s\n" "found in $ssldir/include" >&6; }
7278 if test ! "$ssldir" = "/usr" ; then
7279 CFLAGS
="$CFLAGS -I$ssldir/include";
7284 if test x_
$found_ssl != x_yes
; then
7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7286 printf "%s\n" "not found" >&6; }
7288 echo "Apparently you do not have both the openssl binary and openssl development libraries installed."
7289 echo "The following packages are required:"
7290 echo "1) The library package is often called 'openssl-dev', 'openssl-devel' or 'libssl-dev'"
7291 echo "2) The binary package is usually called 'openssl'."
7292 echo "NOTE: you or your system administrator needs to install the library AND the binary package."
7293 echo "After doing so, simply re-run ./Config"
7296 CRYPTOLIB
="-lssl -lcrypto";
7297 if test ! "$ssldir" = "/usr" ; then
7298 if test -d "$ssldir/lib64" ; then
7299 LDFLAGS
="$LDFLAGS -L$ssldir/lib64";
7301 LDFLAGS
="$LDFLAGS -L$ssldir/lib";
7303 if test -f "$ssldir/bin/openssl"; then
7304 OPENSSLPATH
="$ssldir/bin/openssl";
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
7308 printf %s
"checking OpenSSL linking with -ldl... " >&6; }
7310 LIBS
="$LIBS $CRYPTOLIB -ldl"
7311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313 #include <openssl/err.h>
7322 if ac_fn_c_try_link
"$LINENO"
7325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7326 printf "%s\n" "yes" >&6; }
7327 CRYPTOLIB
="$CRYPTOLIB -ldl"
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 printf "%s\n" "no" >&6; }
7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
7335 printf %s
"checking OpenSSL linking with -ldl and -lpthread... " >&6; }
7336 LIBS
="$SAVE_LIBS $CRYPTOLIB -ldl -lpthread"
7337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 #include <openssl/err.h>
7348 if ac_fn_c_try_link
"$LINENO"
7351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7352 printf "%s\n" "yes" >&6; }
7353 CRYPTOLIB
="$CRYPTOLIB -ldl -lpthread"
7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 printf "%s\n" "no" >&6; }
7361 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7362 conftest
$ac_exeext conftest.
$ac_ext
7365 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7366 conftest
$ac_exeext conftest.
$ac_ext
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set1_curves_list in SSL library" >&5
7374 printf %s
"checking for SSL_CTX_set1_curves_list in SSL library... " >&6; }
7376 ac_cpp
='$CPP $CPPFLAGS'
7377 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7382 LIBS
="$LIBS $CRYPTOLIB"
7383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7385 #include <openssl/ssl.h>
7389 SSL_CTX *ctx = NULL; SSL_CTX_set1_curves_list(ctx, "test");
7394 if ac_fn_c_try_link
"$LINENO"
7400 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7401 conftest
$ac_exeext conftest.
$ac_ext
7404 ac_cpp
='$CPP $CPPFLAGS'
7405 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7409 if test $has_function = 1; then
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7411 printf "%s\n" "yes" >&6; }
7413 printf "%s\n" "#define HAS_SSL_CTX_SET1_CURVES_LIST /**/" >>confdefs.h
7416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 printf "%s\n" "no" >&6; }
7421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_min_proto_version in SSL library" >&5
7422 printf %s
"checking for SSL_CTX_set_min_proto_version in SSL library... " >&6; }
7424 ac_cpp
='$CPP $CPPFLAGS'
7425 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7426 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7427 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7430 LIBS
="$LIBS $CRYPTOLIB"
7431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 #include <openssl/ssl.h>
7437 SSL_CTX *ctx = NULL; SSL_CTX_set_min_proto_version(ctx, TLS1_VERSION);
7442 if ac_fn_c_try_link
"$LINENO"
7448 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7449 conftest
$ac_exeext conftest.
$ac_ext
7452 ac_cpp
='$CPP $CPPFLAGS'
7453 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7457 if test $has_function = 1; then
7458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7459 printf "%s\n" "yes" >&6; }
7461 printf "%s\n" "#define HAS_SSL_CTX_SET_MIN_PROTO_VERSION /**/" >>confdefs.h
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 printf "%s\n" "no" >&6; }
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_security_level in SSL library" >&5
7470 printf %s
"checking for SSL_CTX_set_security_level in SSL library... " >&6; }
7472 ac_cpp
='$CPP $CPPFLAGS'
7473 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7474 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7475 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7478 LIBS
="$LIBS $CRYPTOLIB"
7479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7481 #include <openssl/ssl.h>
7485 SSL_CTX *ctx = NULL; SSL_CTX_set_security_level(ctx, 1);
7490 if ac_fn_c_try_link
"$LINENO"
7496 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7497 conftest
$ac_exeext conftest.
$ac_ext
7500 ac_cpp
='$CPP $CPPFLAGS'
7501 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7502 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7503 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7505 if test $has_function = 1; then
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7507 printf "%s\n" "yes" >&6; }
7509 printf "%s\n" "#define HAS_SSL_CTX_SET_SECURITY_LEVEL /**/" >>confdefs.h
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 printf "%s\n" "no" >&6; }
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ASN1_TIME_diff in SSL library" >&5
7518 printf %s
"checking for ASN1_TIME_diff in SSL library... " >&6; }
7520 ac_cpp
='$CPP $CPPFLAGS'
7521 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7526 LIBS
="$LIBS $CRYPTOLIB"
7527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7529 #include <openssl/ssl.h>
7533 int one, two; ASN1_TIME_diff(&one, &two, NULL, NULL);
7538 if ac_fn_c_try_link
"$LINENO"
7544 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7545 conftest
$ac_exeext conftest.
$ac_ext
7548 ac_cpp
='$CPP $CPPFLAGS'
7549 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7553 if test $has_function = 1; then
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7555 printf "%s\n" "yes" >&6; }
7557 printf "%s\n" "#define HAS_ASN1_TIME_diff /**/" >>confdefs.h
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 printf "%s\n" "no" >&6; }
7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X509_get0_notAfter in SSL library" >&5
7566 printf %s
"checking for X509_get0_notAfter in SSL library... " >&6; }
7568 ac_cpp
='$CPP $CPPFLAGS'
7569 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7570 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7571 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7574 LIBS
="$LIBS $CRYPTOLIB"
7575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7577 #include <openssl/ssl.h>
7581 X509_get0_notAfter(NULL);
7586 if ac_fn_c_try_link
"$LINENO"
7592 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7593 conftest
$ac_exeext conftest.
$ac_ext
7596 ac_cpp
='$CPP $CPPFLAGS'
7597 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7598 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7599 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7601 if test $has_function = 1; then
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7603 printf "%s\n" "yes" >&6; }
7605 printf "%s\n" "#define HAS_X509_get0_notAfter /**/" >>confdefs.h
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 printf "%s\n" "no" >&6; }
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X509_check_host in SSL library" >&5
7614 printf %s
"checking for X509_check_host in SSL library... " >&6; }
7616 ac_cpp
='$CPP $CPPFLAGS'
7617 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7618 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7619 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7622 LIBS
="$LIBS $CRYPTOLIB"
7623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7625 #include <openssl/x509v3.h>
7629 X509_check_host(NULL, NULL, 0, 0, NULL);
7634 if ac_fn_c_try_link
"$LINENO"
7640 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7641 conftest
$ac_exeext conftest.
$ac_ext
7644 ac_cpp
='$CPP $CPPFLAGS'
7645 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7646 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7647 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7649 if test $has_function = 1; then
7650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7651 printf "%s\n" "yes" >&6; }
7653 printf "%s\n" "#define HAS_X509_check_host /**/" >>confdefs.h
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 printf "%s\n" "no" >&6; }
7660 # Check whether --enable-dynamic-linking was given.
7661 if test ${enable_dynamic_linking+y}
7663 enableval
=$enable_dynamic_linking; enable_dynamic_linking
=$enableval
7665 enable_dynamic_linking
="yes"
7668 if test $enable_dynamic_linking = "yes"
7671 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
7672 if test "x$ac_cv_func_dlopen" = xyes
7676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7677 printf %s
"checking for dlopen in -ldl... " >&6; }
7678 if test ${ac_cv_lib_dl_dlopen+y}
7680 printf %s
"(cached) " >&6
7682 ac_check_lib_save_LIBS
=$LIBS
7684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7687 /* Override any GCC internal prototype to avoid an error.
7688 Use char because int might match the return type of a GCC
7689 builtin and then its argument prototype would still apply. */
7699 if ac_fn_c_try_link
"$LINENO"
7701 ac_cv_lib_dl_dlopen
=yes
7703 ac_cv_lib_dl_dlopen
=no
7705 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7706 conftest
$ac_exeext conftest.
$ac_ext
7707 LIBS
=$ac_check_lib_save_LIBS
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7710 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
7711 if test "x$ac_cv_lib_dl_dlopen" = xyes
7713 IRCDLIBS
="$IRCDLIBS -ldl"
7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Dynamic linking is not enabled because dlopen was not found" >&5
7717 printf "%s\n" "$as_me: WARNING: Dynamic linking is not enabled because dlopen was not found" >&2;}
7718 printf "%s\n" "#define STATIC_LINKING 1" >>confdefs.h
7728 CFLAGS
="$CFLAGS -Wl,-export-dynamic"
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need the -export-dynamic flag" >&5
7730 printf %s
"checking if we need the -export-dynamic flag... " >&6; }
7731 if test ${ac_cv_export_dynamic+y}
7733 printf %s
"(cached) " >&6
7736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7747 if ac_fn_c_try_link
"$LINENO"
7749 ac_cv_export_dynamic
=yes
7751 ac_cv_export_dynamic
=no
7753 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7754 conftest
$ac_exeext conftest.
$ac_ext
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_export_dynamic" >&5
7757 printf "%s\n" "$ac_cv_export_dynamic" >&6; }
7759 if test "$ac_cv_export_dynamic" = "yes"; then
7760 DYNAMIC_LDFLAGS
="-Wl,-export-dynamic"
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
7764 printf %s
"checking for compiler option to produce PIC... " >&6; }
7765 if test ${ac_cv_pic+y}
7767 printf %s
"(cached) " >&6
7770 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7771 ac_cv_pic
="-fPIC -DPIC -shared"
7774 ac_cv_pic
="-std=gnu89 -bundle -flat_namespace -undefined suppress"
7783 ac_cv_pic
="-KPIC -DPIC -G"
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pic" >&5
7790 printf "%s\n" "$ac_cv_pic" >&6; }
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system prepends an underscore on symbols" >&5
7792 printf %s
"checking if your system prepends an underscore on symbols... " >&6; }
7793 if test ${ac_cv_underscore+y}
7795 printf %s
"(cached) " >&6
7798 cat >uscore.c
<< __EOF__
7803 $CC -o uscore
$CFLAGS uscore.c
1>&5
7804 if test -z "`strings -a uscore |grep '^_main$'`"; then
7807 ac_cv_underscore
=yes
7809 rm -f uscore uscore.c
7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_underscore" >&5
7813 printf "%s\n" "$ac_cv_underscore" >&6; }
7814 if test "$ac_cv_underscore" = "yes"; then
7816 printf "%s\n" "#define UNDERSCORE /**/" >>confdefs.h
7820 MODULEFLAGS
="$ac_cv_pic $DYNAMIC_LDFLAGS"
7824 printf "%s\n" "#define STATIC_LINKING /**/" >>confdefs.h
7828 # Check whether --enable-werror was given.
7829 if test ${enable_werror+y}
7831 enableval
=$enable_werror; ac_cv_werror
="$enableval"
7837 # Check whether --enable-asan was given.
7838 if test ${enable_asan+y}
7840 enableval
=$enable_asan; ac_cv_asan
="$enableval"
7849 ac_fn_c_check_func
"$LINENO" "poll" "ac_cv_func_poll"
7850 if test "x$ac_cv_func_poll" = xyes
7852 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
7854 printf "%s\n" "#define HAVE_POLL /**/" >>confdefs.h
7860 for ac_func
in epoll_create epoll_ctl epoll_wait
7862 as_ac_var
=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
7863 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7864 if eval test \"x\$
"$as_ac_var"\" = x
"yes"
7866 cat >>confdefs.h
<<_ACEOF
7867 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
7870 printf "%s\n" "#define HAVE_EPOLL /**/" >>confdefs.h
7876 for ac_func
in kqueue kevent
7878 as_ac_var
=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
7879 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7880 if eval test \"x\$
"$as_ac_var"\" = x
"yes"
7882 cat >>confdefs.h
<<_ACEOF
7883 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
7886 printf "%s\n" "#define HAVE_KQUEUE /**/" >>confdefs.h
7892 export PATH_SEPARATOR
7894 has_system_pcre2
="no"
7902 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7903 if test -n "$ac_tool_prefix"; then
7904 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7905 set dummy
${ac_tool_prefix}pkg
-config; ac_word
=$2
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 printf %s
"checking for $ac_word... " >&6; }
7908 if test ${ac_cv_path_PKG_CONFIG+y}
7910 printf %s
"(cached) " >&6
7914 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7921 case $as_dir in #(((
7924 *) as_dir
=$as_dir/ ;;
7926 for ac_exec_ext
in '' $ac_executable_extensions; do
7927 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
7928 ac_cv_path_PKG_CONFIG
="$as_dir$ac_word$ac_exec_ext"
7929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7939 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7940 if test -n "$PKG_CONFIG"; then
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7942 printf "%s\n" "$PKG_CONFIG" >&6; }
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 printf "%s\n" "no" >&6; }
7950 if test -z "$ac_cv_path_PKG_CONFIG"; then
7951 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7952 # Extract the first word of "pkg-config", so it can be a program name with args.
7953 set dummy pkg
-config; ac_word
=$2
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 printf %s
"checking for $ac_word... " >&6; }
7956 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
7958 printf %s
"(cached) " >&6
7960 case $ac_pt_PKG_CONFIG in
7962 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7969 case $as_dir in #(((
7972 *) as_dir
=$as_dir/ ;;
7974 for ac_exec_ext
in '' $ac_executable_extensions; do
7975 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
7976 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir$ac_word$ac_exec_ext"
7977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7987 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7988 if test -n "$ac_pt_PKG_CONFIG"; then
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7990 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 printf "%s\n" "no" >&6; }
7996 if test "x$ac_pt_PKG_CONFIG" = x
; then
7999 case $cross_compiling:$ac_tool_warned in
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8002 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8003 ac_tool_warned
=yes ;;
8005 PKG_CONFIG
=$ac_pt_PKG_CONFIG
8008 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
8012 if test -n "$PKG_CONFIG"; then
8013 _pkg_min_version
=0.9.0
8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8015 printf %s
"checking pkg-config is at least version $_pkg_min_version... " >&6; }
8016 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8018 printf "%s\n" "yes" >&6; }
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 printf "%s\n" "no" >&6; }
8025 if test "x$with_system_pcre2" = "xyes"
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpcre2-8 >= 10.36" >&5
8031 printf %s
"checking for libpcre2-8 >= 10.36... " >&6; }
8033 if test -n "$PCRE2_CFLAGS"; then
8034 pkg_cv_PCRE2_CFLAGS
="$PCRE2_CFLAGS"
8035 elif test -n "$PKG_CONFIG"; then
8036 if test -n "$PKG_CONFIG" && \
8037 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.36\""; } >&5
8038 ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.36") 2>&5
8040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041 test $ac_status = 0; }; then
8042 pkg_cv_PCRE2_CFLAGS
=`$PKG_CONFIG --cflags "libpcre2-8 >= 10.36" 2>/dev/null`
8043 test "x$?" != "x0" && pkg_failed
=yes
8050 if test -n "$PCRE2_LIBS"; then
8051 pkg_cv_PCRE2_LIBS
="$PCRE2_LIBS"
8052 elif test -n "$PKG_CONFIG"; then
8053 if test -n "$PKG_CONFIG" && \
8054 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8 >= 10.36\""; } >&5
8055 ($PKG_CONFIG --exists --print-errors "libpcre2-8 >= 10.36") 2>&5
8057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8058 test $ac_status = 0; }; then
8059 pkg_cv_PCRE2_LIBS
=`$PKG_CONFIG --libs "libpcre2-8 >= 10.36" 2>/dev/null`
8060 test "x$?" != "x0" && pkg_failed
=yes
8070 if test $pkg_failed = yes; then
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072 printf "%s\n" "no" >&6; }
8074 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8075 _pkg_short_errors_supported
=yes
8077 _pkg_short_errors_supported
=no
8079 if test $_pkg_short_errors_supported = yes; then
8080 PCRE2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre2-8 >= 10.36" 2>&1`
8082 PCRE2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libpcre2-8 >= 10.36" 2>&1`
8084 # Put the nasty error message in config.log where it belongs
8085 echo "$PCRE2_PKG_ERRORS" >&5
8088 elif test $pkg_failed = untried
; then
8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 printf "%s\n" "no" >&6; }
8093 PCRE2_CFLAGS
=$pkg_cv_PCRE2_CFLAGS
8094 PCRE2_LIBS
=$pkg_cv_PCRE2_LIBS
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8096 printf "%s\n" "yes" >&6; }
8097 has_system_pcre2
=yes
8098 if test "x$PRIVATELIBDIR" != "x"
8100 rm -f "$PRIVATELIBDIR/"libpcre2
*
8105 if test "$has_system_pcre2" = "no"
8108 pcre2_version
="10.42"
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: extracting PCRE2 regex library" >&5
8110 printf "%s\n" "extracting PCRE2 regex library" >&6; }
8113 rm -rf pcre2
-$pcre2_version pcre2
8114 if test "x$ac_cv_path_GUNZIP" = "x" ; then
8115 tar xfz pcre2.
tar.gz
8117 cp pcre2.
tar.gz pcre2.
tar.gz.bak
8118 gunzip
-f pcre2.
tar.gz
8119 cp pcre2.
tar.gz.bak pcre2.
tar.gz
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: configuring PCRE2 regex library" >&5
8123 printf "%s\n" "configuring PCRE2 regex library" >&6; }
8124 cd pcre2
-$pcre2_version
8125 .
/configure
--enable-jit --enable-shared --prefix=$cur_dir/extras
/pcre2
--libdir=$PRIVATELIBDIR || exit 1
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling PCRE2 regex library" >&5
8127 printf "%s\n" "compiling PCRE2 regex library" >&6; }
8128 $ac_cv_prog_MAKER || exit 1
8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: installing PCRE2 regex library" >&5
8130 printf "%s\n" "installing PCRE2 regex library" >&6; }
8131 rm -f "$PRIVATELIBDIR/"libpcre2
*
8132 $ac_cv_prog_MAKER install || exit 1
8133 PCRE2_CFLAGS
="-I$cur_dir/extras/pcre2/include"
8136 if test -n "$ac_cv_path_PKGCONFIG"
8138 PCRE2_LIBS
="`$ac_cv_path_PKGCONFIG --libs libpcre2-8.pc`"
8140 if test -z "$PCRE2_LIBS"
8142 PCRE2_LIBS
="$PRIVATELIBDIR/libpcre2-8.so"
8149 has_system_argon2
="no"
8150 if test "x$with_system_argon2" = "xyes"
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libargon2 >= 0~20161029" >&5
8156 printf %s
"checking for libargon2 >= 0~20161029... " >&6; }
8158 if test -n "$ARGON2_CFLAGS"; then
8159 pkg_cv_ARGON2_CFLAGS
="$ARGON2_CFLAGS"
8160 elif test -n "$PKG_CONFIG"; then
8161 if test -n "$PKG_CONFIG" && \
8162 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2 >= 0~20161029\""; } >&5
8163 ($PKG_CONFIG --exists --print-errors "libargon2 >= 0~20161029") 2>&5
8165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8166 test $ac_status = 0; }; then
8167 pkg_cv_ARGON2_CFLAGS
=`$PKG_CONFIG --cflags "libargon2 >= 0~20161029" 2>/dev/null`
8168 test "x$?" != "x0" && pkg_failed
=yes
8175 if test -n "$ARGON2_LIBS"; then
8176 pkg_cv_ARGON2_LIBS
="$ARGON2_LIBS"
8177 elif test -n "$PKG_CONFIG"; then
8178 if test -n "$PKG_CONFIG" && \
8179 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2 >= 0~20161029\""; } >&5
8180 ($PKG_CONFIG --exists --print-errors "libargon2 >= 0~20161029") 2>&5
8182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8183 test $ac_status = 0; }; then
8184 pkg_cv_ARGON2_LIBS
=`$PKG_CONFIG --libs "libargon2 >= 0~20161029" 2>/dev/null`
8185 test "x$?" != "x0" && pkg_failed
=yes
8195 if test $pkg_failed = yes; then
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 printf "%s\n" "no" >&6; }
8199 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8200 _pkg_short_errors_supported
=yes
8202 _pkg_short_errors_supported
=no
8204 if test $_pkg_short_errors_supported = yes; then
8205 ARGON2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libargon2 >= 0~20161029" 2>&1`
8207 ARGON2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libargon2 >= 0~20161029" 2>&1`
8209 # Put the nasty error message in config.log where it belongs
8210 echo "$ARGON2_PKG_ERRORS" >&5
8212 has_system_argon2
=no
8213 elif test $pkg_failed = untried
; then
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 printf "%s\n" "no" >&6; }
8216 has_system_argon2
=no
8218 ARGON2_CFLAGS
=$pkg_cv_ARGON2_CFLAGS
8219 ARGON2_LIBS
=$pkg_cv_ARGON2_LIBS
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8221 printf "%s\n" "yes" >&6; }
8222 has_system_argon2
=yes
8223 if test "x$PRIVATELIBDIR" != "x"
8225 rm -f "$PRIVATELIBDIR/"libargon2
*
8230 if test "$has_system_argon2" = "no"
8233 argon2_version
="20190702"
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: extracting Argon2 library" >&5
8235 printf "%s\n" "extracting Argon2 library" >&6; }
8238 rm -rf argon2
-$argon2_version argon2
8239 if test "x$ac_cv_path_GUNZIP" = "x" ; then
8240 tar xfz argon2.
tar.gz
8242 cp argon2.
tar.gz argon2.
tar.gz.bak
8243 gunzip
-f argon2.
tar.gz
8244 cp argon2.
tar.gz.bak argon2.
tar.gz
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling Argon2 library" >&5
8248 printf "%s\n" "compiling Argon2 library" >&6; }
8249 cd argon2
-$argon2_version
8250 $ac_cv_prog_MAKER || exit 1
8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: installing Argon2 library" >&5
8252 printf "%s\n" "installing Argon2 library" >&6; }
8253 $ac_cv_prog_MAKER install PREFIX
=$cur_dir/extras
/argon2
|| exit 1
8254 # We need to manually copy the libs to PRIVATELIBDIR because
8255 # there is no way to tell make install in libargon2 to do so.
8256 # BUT FIRST, delete the old library so it becomes an unlink+create
8257 # operation rather than overwriting the existing file which would
8258 # lead to a crash of the currently running IRCd.
8259 rm -f "$PRIVATELIBDIR/"libargon2
*
8260 # Now copy the new library files:
8261 cp -av $cur_dir/extras
/argon
2/lib
/* $PRIVATELIBDIR/
8262 ARGON2_CFLAGS
="-I$cur_dir/extras/argon2/include"
8264 ARGON2_LIBS
="-L$PRIVATELIBDIR -largon2"
8270 has_system_sodium
="no"
8271 if test "x$with_system_sodium" = "xyes"
8276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsodium >= 1.0.16" >&5
8277 printf %s
"checking for libsodium >= 1.0.16... " >&6; }
8279 if test -n "$SODIUM_CFLAGS"; then
8280 pkg_cv_SODIUM_CFLAGS
="$SODIUM_CFLAGS"
8281 elif test -n "$PKG_CONFIG"; then
8282 if test -n "$PKG_CONFIG" && \
8283 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium >= 1.0.16\""; } >&5
8284 ($PKG_CONFIG --exists --print-errors "libsodium >= 1.0.16") 2>&5
8286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8287 test $ac_status = 0; }; then
8288 pkg_cv_SODIUM_CFLAGS
=`$PKG_CONFIG --cflags "libsodium >= 1.0.16" 2>/dev/null`
8289 test "x$?" != "x0" && pkg_failed
=yes
8296 if test -n "$SODIUM_LIBS"; then
8297 pkg_cv_SODIUM_LIBS
="$SODIUM_LIBS"
8298 elif test -n "$PKG_CONFIG"; then
8299 if test -n "$PKG_CONFIG" && \
8300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsodium >= 1.0.16\""; } >&5
8301 ($PKG_CONFIG --exists --print-errors "libsodium >= 1.0.16") 2>&5
8303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8304 test $ac_status = 0; }; then
8305 pkg_cv_SODIUM_LIBS
=`$PKG_CONFIG --libs "libsodium >= 1.0.16" 2>/dev/null`
8306 test "x$?" != "x0" && pkg_failed
=yes
8316 if test $pkg_failed = yes; then
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 printf "%s\n" "no" >&6; }
8320 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8321 _pkg_short_errors_supported
=yes
8323 _pkg_short_errors_supported
=no
8325 if test $_pkg_short_errors_supported = yes; then
8326 SODIUM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsodium >= 1.0.16" 2>&1`
8328 SODIUM_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsodium >= 1.0.16" 2>&1`
8330 # Put the nasty error message in config.log where it belongs
8331 echo "$SODIUM_PKG_ERRORS" >&5
8333 has_system_sodium
=no
8334 elif test $pkg_failed = untried
; then
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 printf "%s\n" "no" >&6; }
8337 has_system_sodium
=no
8339 SODIUM_CFLAGS
=$pkg_cv_SODIUM_CFLAGS
8340 SODIUM_LIBS
=$pkg_cv_SODIUM_LIBS
8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8342 printf "%s\n" "yes" >&6; }
8343 has_system_sodium
=yes
8344 if test "x$PRIVATELIBDIR" != "x"
8346 rm -f "$PRIVATELIBDIR/"libsodium
*
8351 if test "$has_system_sodium" = "no"
8354 sodium_version
="1.0.18"
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: extracting sodium library" >&5
8356 printf "%s\n" "extracting sodium library" >&6; }
8359 rm -rf sodium
-$sodium_version sodium
8360 if test "x$ac_cv_path_GUNZIP" = "x" ; then
8361 tar xfz libsodium.
tar.gz
8363 cp libsodium.
tar.gz libsodium.
tar.gz.bak
8364 gunzip
-f libsodium.
tar.gz
8365 cp libsodium.
tar.gz.bak libsodium.
tar.gz
8366 tar xf libsodium.
tar
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling sodium library" >&5
8369 printf "%s\n" "compiling sodium library" >&6; }
8370 cd libsodium
-$sodium_version
8371 save_cflags
="$CFLAGS"
8372 CFLAGS
="$orig_cflags"
8374 .
/configure
--prefix=$cur_dir/extras
/sodium
--libdir=$PRIVATELIBDIR --enable-shared --disable-static --enable-opt || exit 1
8375 CFLAGS
="$save_cflags"
8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling sodium resolver library" >&5
8377 printf "%s\n" "compiling sodium resolver library" >&6; }
8378 $ac_cv_prog_MAKER || exit 1
8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: installing sodium resolver library" >&5
8380 printf "%s\n" "installing sodium resolver library" >&6; }
8381 rm -f "$PRIVATELIBDIR/"libsodium
*
8382 $ac_cv_prog_MAKER install || exit 1
8383 SODIUM_CFLAGS
="-I$cur_dir/extras/sodium/include"
8386 if test -n "$ac_cv_path_PKGCONFIG"
8388 SODIUM_LIBS
="`$ac_cv_path_PKGCONFIG --libs libsodium.pc`"
8390 if test -z "$SODIUM_LIBS"
8392 SODIUM_LIBS
="-L$PRIVATELIBDIR -lsodium"
8399 has_system_cares
="no"
8400 if test "x$with_system_cares" = "xyes"
8405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares >= 1.6.0" >&5
8406 printf %s
"checking for libcares >= 1.6.0... " >&6; }
8408 if test -n "$CARES_CFLAGS"; then
8409 pkg_cv_CARES_CFLAGS
="$CARES_CFLAGS"
8410 elif test -n "$PKG_CONFIG"; then
8411 if test -n "$PKG_CONFIG" && \
8412 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.0\""; } >&5
8413 ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.0") 2>&5
8415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8416 test $ac_status = 0; }; then
8417 pkg_cv_CARES_CFLAGS
=`$PKG_CONFIG --cflags "libcares >= 1.6.0" 2>/dev/null`
8418 test "x$?" != "x0" && pkg_failed
=yes
8425 if test -n "$CARES_LIBS"; then
8426 pkg_cv_CARES_LIBS
="$CARES_LIBS"
8427 elif test -n "$PKG_CONFIG"; then
8428 if test -n "$PKG_CONFIG" && \
8429 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcares >= 1.6.0\""; } >&5
8430 ($PKG_CONFIG --exists --print-errors "libcares >= 1.6.0") 2>&5
8432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8433 test $ac_status = 0; }; then
8434 pkg_cv_CARES_LIBS
=`$PKG_CONFIG --libs "libcares >= 1.6.0" 2>/dev/null`
8435 test "x$?" != "x0" && pkg_failed
=yes
8445 if test $pkg_failed = yes; then
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 printf "%s\n" "no" >&6; }
8449 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8450 _pkg_short_errors_supported
=yes
8452 _pkg_short_errors_supported
=no
8454 if test $_pkg_short_errors_supported = yes; then
8455 CARES_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcares >= 1.6.0" 2>&1`
8457 CARES_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libcares >= 1.6.0" 2>&1`
8459 # Put the nasty error message in config.log where it belongs
8460 echo "$CARES_PKG_ERRORS" >&5
8463 elif test $pkg_failed = untried
; then
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465 printf "%s\n" "no" >&6; }
8468 CARES_CFLAGS
=$pkg_cv_CARES_CFLAGS
8469 CARES_LIBS
=$pkg_cv_CARES_LIBS
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8471 printf "%s\n" "yes" >&6; }
8472 has_system_cares
=yes
8473 if test "x$PRIVATELIBDIR" != "x"
8475 rm -f "$PRIVATELIBDIR/"libcares
*
8480 if test "$has_system_cares" = "no"
8483 cares_version
="1.19.1"
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: extracting c-ares resolver library" >&5
8485 printf "%s\n" "extracting c-ares resolver library" >&6; }
8488 rm -rf c
-ares-$cares_version c
-ares
8489 if test "x$ac_cv_path_GUNZIP" = "x" ; then
8490 tar xfz c
-ares.
tar.gz
8492 cp c
-ares.
tar.gz c
-ares.
tar.gz.bak
8493 gunzip
-f c
-ares.
tar.gz
8494 cp c
-ares.
tar.gz.bak c
-ares.
tar.gz
8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: configuring c-ares library" >&5
8498 printf "%s\n" "configuring c-ares library" >&6; }
8499 cd c
-ares-$cares_version
8500 save_cflags
="$CFLAGS"
8501 CFLAGS
="$orig_cflags"
8503 .
/configure
--prefix=$cur_dir/extras
/c
-ares --libdir=$PRIVATELIBDIR --enable-shared --disable-tests || exit 1
8504 CFLAGS
="$save_cflags"
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling c-ares resolver library" >&5
8506 printf "%s\n" "compiling c-ares resolver library" >&6; }
8507 $ac_cv_prog_MAKER || exit 1
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: installing c-ares resolver library" >&5
8509 printf "%s\n" "installing c-ares resolver library" >&6; }
8510 rm -f "$PRIVATELIBDIR/"libcares
*
8511 $ac_cv_prog_MAKER install || exit 1
8512 CARES_CFLAGS
="-I$cur_dir/extras/c-ares/include"
8514 CARES_LIBS
="-L$PRIVATELIBDIR"
8517 CARESLIBSALT
="$PRIVATELIBDIR/libcares.so"
8521 CARESLIBSALT
="$CARESLIBSALT"
8524 CARESLIBSALT
="$CARESLIBSALT -lrt"
8527 CARESLIBSALT
="$CARESLIBSALT -lrt"
8531 if test "x$ac_cv_path_PKGCONFIG" = "x" ; then
8532 CARES_LIBS
="$CARES_LIBS $CARESLIBSALT"
8534 CARES_LIBSPRE
="$CARES_LIBS"
8535 CARES_LIBS
="$CARES_LIBS `$ac_cv_path_PKGCONFIG --libs libcares.pc | sed -e 's,-L\([^ ]\+lib\) -lcares,\1/libcares.so,'`"
8536 if test "$CARES_LIBS" = "$CARES_LIBSPRE " ; then
8537 CARES_LIBS
="$CARES_LIBS $CARESLIBSALT"
8545 has_system_jansson
="no"
8546 if test "x$with_system_jansson" = "xyes"
8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jansson >= 2.0.0" >&5
8552 printf %s
"checking for jansson >= 2.0.0... " >&6; }
8554 if test -n "$JANSSON_CFLAGS"; then
8555 pkg_cv_JANSSON_CFLAGS
="$JANSSON_CFLAGS"
8556 elif test -n "$PKG_CONFIG"; then
8557 if test -n "$PKG_CONFIG" && \
8558 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.0.0\""; } >&5
8559 ($PKG_CONFIG --exists --print-errors "jansson >= 2.0.0") 2>&5
8561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8562 test $ac_status = 0; }; then
8563 pkg_cv_JANSSON_CFLAGS
=`$PKG_CONFIG --cflags "jansson >= 2.0.0" 2>/dev/null`
8564 test "x$?" != "x0" && pkg_failed
=yes
8571 if test -n "$JANSSON_LIBS"; then
8572 pkg_cv_JANSSON_LIBS
="$JANSSON_LIBS"
8573 elif test -n "$PKG_CONFIG"; then
8574 if test -n "$PKG_CONFIG" && \
8575 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.0.0\""; } >&5
8576 ($PKG_CONFIG --exists --print-errors "jansson >= 2.0.0") 2>&5
8578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8579 test $ac_status = 0; }; then
8580 pkg_cv_JANSSON_LIBS
=`$PKG_CONFIG --libs "jansson >= 2.0.0" 2>/dev/null`
8581 test "x$?" != "x0" && pkg_failed
=yes
8591 if test $pkg_failed = yes; then
8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 printf "%s\n" "no" >&6; }
8595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8596 _pkg_short_errors_supported
=yes
8598 _pkg_short_errors_supported
=no
8600 if test $_pkg_short_errors_supported = yes; then
8601 JANSSON_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.0.0" 2>&1`
8603 JANSSON_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.0.0" 2>&1`
8605 # Put the nasty error message in config.log where it belongs
8606 echo "$JANSSON_PKG_ERRORS" >&5
8608 has_system_jansson
=no
8609 elif test $pkg_failed = untried
; then
8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 printf "%s\n" "no" >&6; }
8612 has_system_jansson
=no
8614 JANSSON_CFLAGS
=$pkg_cv_JANSSON_CFLAGS
8615 JANSSON_LIBS
=$pkg_cv_JANSSON_LIBS
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8617 printf "%s\n" "yes" >&6; }
8618 has_system_jansson
=yes
8619 if test "x$PRIVATELIBDIR" != "x"
8621 rm -f "$PRIVATELIBDIR/"libjansson
*
8626 if test "$has_system_jansson" = "no"
8629 jansson_version
="2.14"
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: extracting jansson library" >&5
8631 printf "%s\n" "extracting jansson library" >&6; }
8634 rm -rf jansson
-$jansson_version jansson
8635 if test "x$ac_cv_path_GUNZIP" = "x" ; then
8636 tar xfz jansson.
tar.gz
8638 cp jansson.
tar.gz jansson.
tar.gz.bak
8639 gunzip
-f jansson.
tar.gz
8640 cp jansson.
tar.gz.bak jansson.
tar.gz
8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling jansson library" >&5
8644 printf "%s\n" "compiling jansson library" >&6; }
8645 cd jansson
-$jansson_version
8646 save_cflags
="$CFLAGS"
8647 CFLAGS
="$orig_cflags"
8649 .
/configure
--prefix=$cur_dir/extras
/jansson
--libdir=$PRIVATELIBDIR --enable-shared --disable-static || exit 1
8650 CFLAGS
="$save_cflags"
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling jansson resolver library" >&5
8652 printf "%s\n" "compiling jansson resolver library" >&6; }
8653 $ac_cv_prog_MAKER || exit 1
8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: installing jansson resolver library" >&5
8655 printf "%s\n" "installing jansson resolver library" >&6; }
8656 rm -f "$PRIVATELIBDIR/"libjansson
*
8657 $ac_cv_prog_MAKER install || exit 1
8658 JANSSON_CFLAGS
="-I$cur_dir/extras/jansson/include"
8661 if test -n "$ac_cv_path_PKGCONFIG"
8663 JANSSON_LIBS
="`$ac_cv_path_PKGCONFIG --libs jansson.pc`"
8665 if test -z "$JANSSON_LIBS"
8667 JANSSON_LIBS
="-L$PRIVATELIBDIR -ljansson"
8678 # Make sure we can run config.sub.
8679 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
8680 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8683 printf %s
"checking build system type... " >&6; }
8684 if test ${ac_cv_build+y}
8686 printf %s
"(cached) " >&6
8688 ac_build_alias
=$build_alias
8689 test "x$ac_build_alias" = x
&&
8690 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
8691 test "x$ac_build_alias" = x
&&
8692 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
8693 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
8694 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8698 printf "%s\n" "$ac_cv_build" >&6; }
8699 case $ac_cv_build in
8701 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
8704 ac_save_IFS
=$IFS; IFS
='-'
8710 # Remember, the first character of IFS is used to create $*,
8711 # except with old shells:
8714 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
8717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8718 printf %s
"checking host system type... " >&6; }
8719 if test ${ac_cv_host+y}
8721 printf %s
"(cached) " >&6
8723 if test "x$host_alias" = x
; then
8724 ac_cv_host
=$ac_cv_build
8726 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
8727 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8732 printf "%s\n" "$ac_cv_host" >&6; }
8735 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
8738 ac_save_IFS
=$IFS; IFS
='-'
8744 # Remember, the first character of IFS is used to create $*,
8745 # except with old shells:
8748 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
8754 ac_cpp
='$CPP $CPPFLAGS'
8755 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8756 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8757 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8761 # We used to check for pthread.h first, but this fails if pthread.h
8762 # requires special compiler flags (e.g. on True64 or Sequent).
8763 # It gets checked for in the link test anyway.
8765 # First of all, check if the user has set any of the PTHREAD_LIBS,
8766 # etcetera environment variables, and if threads linking works using
8768 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
8769 save_CFLAGS
="$CFLAGS"
8770 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8772 LIBS
="$PTHREAD_LIBS $LIBS"
8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8774 printf %s
"checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8776 /* end confdefs.h. */
8778 /* Override any GCC internal prototype to avoid an error.
8779 Use char because int might match the return type of a GCC
8780 builtin and then its argument prototype would still apply. */
8781 char pthread_join ();
8785 return pthread_join ();
8790 if ac_fn_c_try_link
"$LINENO"
8794 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
8795 conftest
$ac_exeext conftest.
$ac_ext
8796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8797 printf "%s\n" "$ax_pthread_ok" >&6; }
8798 if test x
"$ax_pthread_ok" = xno
; then
8803 CFLAGS
="$save_CFLAGS"
8806 # We must check for the threads library under a number of different
8807 # names; the ordering is very important because some systems
8808 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8809 # libraries is broken (non-POSIX).
8811 # Create a list of thread flags to try. Items starting with a "-" are
8812 # C compiler flags, and other items are library names, except for "none"
8813 # which indicates that we try without any flags at all, and "pthread-config"
8814 # which is a program returning the flags for the Pth emulation library.
8816 ax_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8818 # The ordering *is* (sometimes) important. Some notes on the
8819 # individual items follow:
8821 # pthreads: AIX (must check this before -lpthread)
8822 # none: in case threads are in libc; should be tried before -Kthread and
8823 # other compiler flags to prevent continual compiler warnings
8824 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8825 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8826 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8827 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8828 # -pthreads: Solaris/gcc
8829 # -mthreads: Mingw32/gcc, Lynx/gcc
8830 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8831 # doesn't hurt to check since this sometimes defines pthreads too;
8832 # also defines -D_REENTRANT)
8833 # ... -mt is also the pthreads flag for HP/aCC
8834 # pthread: Linux, etcetera
8835 # --thread-safe: KAI C++
8836 # pthread-config: use pthread-config program (for GNU Pth library)
8841 # On Solaris (at least, for some versions), libc contains stubbed
8842 # (non-functional) versions of the pthreads routines, so link-based
8843 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8844 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8845 # a function called by this macro, so we could check for that, but
8846 # who knows whether they'll stub that too in a future libc.) So,
8847 # we'll just look for -pthreads and -lpthread first:
8849 ax_pthread_flags
="-pthreads pthread -mt -pthread $ax_pthread_flags"
8853 ax_pthread_flags
="-pthread $ax_pthread_flags"
8857 # Clang doesn't consider unrecognized options an error unless we specify
8858 # -Werror. We throw in some extra Clang-specific options to ensure that
8859 # this doesn't happen for GCC, which also accepts -Werror.
8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
8862 printf %s
"checking if compiler needs -Werror to reject unknown flags... " >&6; }
8863 save_CFLAGS
="$CFLAGS"
8864 ax_pthread_extra_flags
="-Werror"
8865 CFLAGS
="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
8866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8877 if ac_fn_c_try_compile
"$LINENO"
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8880 printf "%s\n" "yes" >&6; }
8882 ax_pthread_extra_flags
=
8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 printf "%s\n" "no" >&6; }
8886 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8887 CFLAGS
="$save_CFLAGS"
8889 if test x
"$ax_pthread_ok" = xno
; then
8890 for flag
in $ax_pthread_flags; do
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8895 printf %s
"checking whether pthreads work without any flags... " >&6; }
8899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8900 printf %s
"checking whether pthreads work with $flag... " >&6; }
8901 PTHREAD_CFLAGS
="$flag"
8905 # Extract the first word of "pthread-config", so it can be a program name with args.
8906 set dummy pthread
-config; ac_word
=$2
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908 printf %s
"checking for $ac_word... " >&6; }
8909 if test ${ac_cv_prog_ax_pthread_config+y}
8911 printf %s
"(cached) " >&6
8913 if test -n "$ax_pthread_config"; then
8914 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
8916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8920 case $as_dir in #(((
8923 *) as_dir
=$as_dir/ ;;
8925 for ac_exec_ext
in '' $ac_executable_extensions; do
8926 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
8927 ac_cv_prog_ax_pthread_config
="yes"
8928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8935 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
8938 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
8939 if test -n "$ax_pthread_config"; then
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8941 printf "%s\n" "$ax_pthread_config" >&6; }
8943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 printf "%s\n" "no" >&6; }
8948 if test x
"$ax_pthread_config" = xno
; then continue; fi
8949 PTHREAD_CFLAGS
="`pthread-config --cflags`"
8950 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
8954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8955 printf %s
"checking for the pthreads library -l$flag... " >&6; }
8956 PTHREAD_LIBS
="-l$flag"
8961 save_CFLAGS
="$CFLAGS"
8962 LIBS
="$PTHREAD_LIBS $LIBS"
8963 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
8965 # Check for various functions. We must include pthread.h,
8966 # since some functions may be macros. (On the Sequent, we
8967 # need a special flag -Kthread to make this header compile.)
8968 # We check for pthread_join because it is in -lpthread on IRIX
8969 # while pthread_create is in libc. We check for pthread_attr_init
8970 # due to DEC craziness with -lpthreads. We check for
8971 # pthread_cleanup_push because it is one of the few pthread
8972 # functions on Solaris that doesn't have a non-functional libc stub.
8973 # We try pthread_create on general principles.
8974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8976 #include <pthread.h>
8977 static void routine(void *a) { a = 0; }
8978 static void *start_routine(void *a) { return a; }
8982 pthread_t th; pthread_attr_t attr;
8983 pthread_create(&th, 0, start_routine, 0);
8984 pthread_join(th, 0);
8985 pthread_attr_init(&attr);
8986 pthread_cleanup_push(routine, 0);
8987 pthread_cleanup_pop(0) /* ; */
8992 if ac_fn_c_try_link
"$LINENO"
8996 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
8997 conftest
$ac_exeext conftest.
$ac_ext
9000 CFLAGS
="$save_CFLAGS"
9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9003 printf "%s\n" "$ax_pthread_ok" >&6; }
9004 if test "x$ax_pthread_ok" = xyes
; then
9013 # Various other checks:
9014 if test "x$ax_pthread_ok" = xyes
; then
9016 LIBS
="$PTHREAD_LIBS $LIBS"
9017 save_CFLAGS
="$CFLAGS"
9018 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9020 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9022 printf %s
"checking for joinable pthread attribute... " >&6; }
9024 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
9025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9027 #include <pthread.h>
9031 int attr = $attr; return attr /* ; */
9036 if ac_fn_c_try_link
"$LINENO"
9038 attr_name
=$attr; break
9040 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
9041 conftest
$ac_exeext conftest.
$ac_ext
9043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9044 printf "%s\n" "$attr_name" >&6; }
9045 if test "$attr_name" != PTHREAD_CREATE_JOINABLE
; then
9047 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9052 printf %s
"checking if more special flags are required for pthreads... " >&6; }
9055 aix
* | freebsd
* | darwin
*) flag
="-D_THREAD_SAFE";;
9056 osf
* | hpux
*) flag
="-D_REENTRANT";;
9058 if test "$GCC" = "yes"; then
9061 # TODO: What about Clang on Solaris?
9062 flag
="-mt -D_REENTRANT"
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9067 printf "%s\n" "$flag" >&6; }
9068 if test "x$flag" != xno
; then
9069 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9073 printf %s
"checking for PTHREAD_PRIO_INHERIT... " >&6; }
9074 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
9076 printf %s
"(cached) " >&6
9079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h. */
9081 #include <pthread.h>
9085 int i = PTHREAD_PRIO_INHERIT;
9090 if ac_fn_c_try_link
"$LINENO"
9092 ax_cv_PTHREAD_PRIO_INHERIT
=yes
9094 ax_cv_PTHREAD_PRIO_INHERIT
=no
9096 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
9097 conftest
$ac_exeext conftest.
$ac_ext
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9101 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9102 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
9105 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9110 CFLAGS
="$save_CFLAGS"
9112 # More AIX lossage: compile with *_r variant
9113 if test "x$GCC" != xyes
; then
9117 x
*/c89
|x
*/c89_128
|x
*/c99
|x
*/c99_128
|x
*/cc
|x
*/cc128
|x
*/xlc
|x
*/xlc_v6
|x
*/xlc128
|x
*/xlc128_v6
) :
9118 #handle absolute path differently from PATH based program lookup
9121 if as_fn_executable_p
${CC}_r
9123 PTHREAD_CC
="${CC}_r"
9126 for ac_prog
in ${CC}_r
9128 # Extract the first word of "$ac_prog", so it can be a program name with args.
9129 set dummy
$ac_prog; ac_word
=$2
9130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9131 printf %s
"checking for $ac_word... " >&6; }
9132 if test ${ac_cv_prog_PTHREAD_CC+y}
9134 printf %s
"(cached) " >&6
9136 if test -n "$PTHREAD_CC"; then
9137 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
9139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9143 case $as_dir in #(((
9146 *) as_dir
=$as_dir/ ;;
9148 for ac_exec_ext
in '' $ac_executable_extensions; do
9149 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9150 ac_cv_prog_PTHREAD_CC
="$ac_prog"
9151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9160 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
9161 if test -n "$PTHREAD_CC"; then
9162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9163 printf "%s\n" "$PTHREAD_CC" >&6; }
9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 printf "%s\n" "no" >&6; }
9170 test -n "$PTHREAD_CC" && break
9172 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9183 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9189 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9190 if test x
"$ax_pthread_ok" = xyes
; then
9192 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
9200 ac_cpp
='$CPP $CPPFLAGS'
9201 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9202 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9203 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9208 # Check whether --enable-libcurl was given.
9209 if test ${enable_libcurl+y}
9211 enableval
=$enable_libcurl; enable_curl
=$enableval
9217 if test "x$enable_curl" != "xno"
9220 CURLCONFIG
="curl-config"
9221 if test "x$enable_curl" != "xyes"
9223 CURLCONFIG
="$enable_curl/bin/curl-config"
9226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CURLCONFIG" >&5
9227 printf %s
"checking $CURLCONFIG... " >&6; }
9228 if $CURLCONFIG --version 2>/dev
/null
>/dev
/null
9230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9231 printf "%s\n" "yes" >&6; }
9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234 printf "%s\n" "no" >&6; }
9235 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9236 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9237 as_fn_error $?
"Could not find curl-config, try editing --enable-libcurl
9238 See \`config.log' for more details" "$LINENO" 5; }
9241 CURLCFLAG
="`$CURLCONFIG --cflags`"
9242 CURLLIBS
="`$CURLCONFIG --libs`"
9244 if $CURLCONFIG --libs | grep -q -e ares
9251 if test -z "${CURLLIBS}"
9253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CURLLIBS is empty, that probably means that I could not find $enable_curl/bin/curl-config" >&5
9254 printf "%s\n" "$as_me: WARNING: CURLLIBS is empty, that probably means that I could not find $enable_curl/bin/curl-config" >&2;}
9258 if test "x$has_system_cares" = "xno" && test "x$BUILDDIR/extras/curl" != "x$enable_curl" && test "$CURLUSESCARES" != "0"
9263 You have decided to build unrealIRCd with libcURL (remote includes) support.
9264 However, you have system-installed c-ares support has either been disabled
9265 (--without-system-cares) or is unavailable.
9266 Because UnrealIRCd will use a bundled copy of c-ares which may be incompatible
9267 with the system-installed libcURL, this is a bad idea which may result in error
9268 messages looking like:
9270 error downloading ... Could not resolve host: example.net (Successful completion)
9272 Or UnrealIRCd might even crash.
9274 Please build UnrealIRCd with --with-system-cares when enabling --enable-libcurl
9279 IRCDLIBS
="$IRCDLIBS $CURLLIBS"
9280 CFLAGS
="$CFLAGS $CURLCFLAG"
9282 printf "%s\n" "#define USE_LIBCURL /**/" >>confdefs.h
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl_easy_init() in $CURLLIBS" >&5
9286 printf %s
"checking curl_easy_init() in $CURLLIBS... " >&6; }
9288 CFLAGS_SAVEDA
="$CFLAGS"
9290 LIBS
="$IRCDLIBS $IRCDLIBS_CURL_CARES"
9291 CFLAGS
="$CFLAGS $CFLAGS_CURL_CARES"
9292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9295 #include <curl/curl.h>
9299 CURL *curl = curl_easy_init();
9305 if ac_fn_c_try_link
"$LINENO"
9307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9308 printf "%s\n" "yes" >&6; }
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 printf "%s\n" "no" >&6; }
9312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9313 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9314 as_fn_error $?
"You asked for libcURL (remote includes) support, but it can't be found at $enable_curl
9315 See \`config.log' for more details" "$LINENO" 5; }
9318 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
9319 conftest
$ac_exeext conftest.
$ac_ext
9321 CFLAGS
="$CFLAGS_SAVEDA"
9333 # Check whether --enable-geoip_classic was given.
9334 if test ${enable_geoip_classic+y}
9336 enableval
=$enable_geoip_classic; enable_geoip_classic
=$enableval
9338 enable_geoip_classic
=no
9342 if test "x$enable_geoip_classic" = "xyes"
9345 has_system_geoip_classic
="no"
9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for geoip >= 1.6.0" >&5
9349 printf %s
"checking for geoip >= 1.6.0... " >&6; }
9351 if test -n "$GEOIP_CLASSIC_CFLAGS"; then
9352 pkg_cv_GEOIP_CLASSIC_CFLAGS
="$GEOIP_CLASSIC_CFLAGS"
9353 elif test -n "$PKG_CONFIG"; then
9354 if test -n "$PKG_CONFIG" && \
9355 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"geoip >= 1.6.0\""; } >&5
9356 ($PKG_CONFIG --exists --print-errors "geoip >= 1.6.0") 2>&5
9358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9359 test $ac_status = 0; }; then
9360 pkg_cv_GEOIP_CLASSIC_CFLAGS
=`$PKG_CONFIG --cflags "geoip >= 1.6.0" 2>/dev/null`
9361 test "x$?" != "x0" && pkg_failed
=yes
9368 if test -n "$GEOIP_CLASSIC_LIBS"; then
9369 pkg_cv_GEOIP_CLASSIC_LIBS
="$GEOIP_CLASSIC_LIBS"
9370 elif test -n "$PKG_CONFIG"; then
9371 if test -n "$PKG_CONFIG" && \
9372 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"geoip >= 1.6.0\""; } >&5
9373 ($PKG_CONFIG --exists --print-errors "geoip >= 1.6.0") 2>&5
9375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9376 test $ac_status = 0; }; then
9377 pkg_cv_GEOIP_CLASSIC_LIBS
=`$PKG_CONFIG --libs "geoip >= 1.6.0" 2>/dev/null`
9378 test "x$?" != "x0" && pkg_failed
=yes
9388 if test $pkg_failed = yes; then
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390 printf "%s\n" "no" >&6; }
9392 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9393 _pkg_short_errors_supported
=yes
9395 _pkg_short_errors_supported
=no
9397 if test $_pkg_short_errors_supported = yes; then
9398 GEOIP_CLASSIC_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "geoip >= 1.6.0" 2>&1`
9400 GEOIP_CLASSIC_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "geoip >= 1.6.0" 2>&1`
9402 # Put the nasty error message in config.log where it belongs
9403 echo "$GEOIP_CLASSIC_PKG_ERRORS" >&5
9405 has_system_geoip_classic
=no
9406 elif test $pkg_failed = untried
; then
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408 printf "%s\n" "no" >&6; }
9409 has_system_geoip_classic
=no
9411 GEOIP_CLASSIC_CFLAGS
=$pkg_cv_GEOIP_CLASSIC_CFLAGS
9412 GEOIP_CLASSIC_LIBS
=$pkg_cv_GEOIP_CLASSIC_LIBS
9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9414 printf "%s\n" "yes" >&6; }
9415 has_system_geoip_classic
=yes
9416 if test "x$PRIVATELIBDIR" != "x"
9418 rm -f "$PRIVATELIBDIR/"libGeoIP.
*
9422 if test "$has_system_geoip_classic" = "no"
9425 geoip_classic_version
="1.6.12"
9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: extracting GeoIP Classic library" >&5
9427 printf "%s\n" "extracting GeoIP Classic library" >&6; }
9430 rm -rf GeoIP
-$geoip_classic_version geoip
-classic
9431 if test "x$ac_cv_path_GUNZIP" = "x" ; then
9432 tar xfz geoip
-classic.
tar.gz
9434 cp geoip
-classic.
tar.gz geoip
-classic.
tar.gz.bak
9435 gunzip
-f geoip
-classic.
tar.gz
9436 cp geoip
-classic.
tar.gz.bak geoip
-classic.
tar.gz
9437 tar xf geoip
-classic.
tar
9439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: configuring GeoIP Classic library" >&5
9440 printf "%s\n" "configuring GeoIP Classic library" >&6; }
9441 cd GeoIP
-$geoip_classic_version
9442 save_cflags
="$CFLAGS"
9443 CFLAGS
="$orig_cflags"
9445 .
/configure
--prefix=$cur_dir/extras
/geoip
-classic --libdir=$PRIVATELIBDIR --enable-shared --disable-static || exit 1
9446 CFLAGS
="$save_cflags"
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: compiling GeoIP Classic library" >&5
9448 printf "%s\n" "compiling GeoIP Classic library" >&6; }
9449 $ac_cv_prog_MAKER || exit 1
9450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: installing GeoIP Classic library" >&5
9451 printf "%s\n" "installing GeoIP Classic library" >&6; }
9452 rm -f "$PRIVATELIBDIR/"libGeoIP.so
*
9453 $ac_cv_prog_MAKER install || exit 1
9454 if test -n "$ac_cv_path_PKGCONFIG"
9456 GEOIP_CLASSIC_LIBS
="`$ac_cv_path_PKGCONFIG --libs geoip.pc`"
9457 GEOIP_CLASSIC_CFLAGS
="`$ac_cv_path_PKGCONFIG --cflags geoip.pc`"
9459 if test -z "$GEOIP_CLASSIC_LIBS"
9461 GEOIP_CLASSIC_LIBS
="-L$PRIVATELIBDIR -lGeoIP"
9462 GEOIP_CLASSIC_CFLAGS
="-I$cur_dir/extras/geoip-classic/include"
9471 GEOIP_CLASSIC_OBJECTS
="geoip_classic.so"
9477 # Check whether --enable-libmaxminddb was given.
9478 if test ${enable_libmaxminddb+y}
9480 enableval
=$enable_libmaxminddb; enable_libmaxminddb
=$enableval
9482 enable_libmaxminddb
=no
9486 if test "x$enable_libmaxminddb" = "xyes"
9489 has_system_libmaxminddb
="no"
9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmaxminddb >= 1.4.3" >&5
9493 printf %s
"checking for libmaxminddb >= 1.4.3... " >&6; }
9495 if test -n "$LIBMAXMINDDB_CFLAGS"; then
9496 pkg_cv_LIBMAXMINDDB_CFLAGS
="$LIBMAXMINDDB_CFLAGS"
9497 elif test -n "$PKG_CONFIG"; then
9498 if test -n "$PKG_CONFIG" && \
9499 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb >= 1.4.3\""; } >&5
9500 ($PKG_CONFIG --exists --print-errors "libmaxminddb >= 1.4.3") 2>&5
9502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9503 test $ac_status = 0; }; then
9504 pkg_cv_LIBMAXMINDDB_CFLAGS
=`$PKG_CONFIG --cflags "libmaxminddb >= 1.4.3" 2>/dev/null`
9505 test "x$?" != "x0" && pkg_failed
=yes
9512 if test -n "$LIBMAXMINDDB_LIBS"; then
9513 pkg_cv_LIBMAXMINDDB_LIBS
="$LIBMAXMINDDB_LIBS"
9514 elif test -n "$PKG_CONFIG"; then
9515 if test -n "$PKG_CONFIG" && \
9516 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb >= 1.4.3\""; } >&5
9517 ($PKG_CONFIG --exists --print-errors "libmaxminddb >= 1.4.3") 2>&5
9519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9520 test $ac_status = 0; }; then
9521 pkg_cv_LIBMAXMINDDB_LIBS
=`$PKG_CONFIG --libs "libmaxminddb >= 1.4.3" 2>/dev/null`
9522 test "x$?" != "x0" && pkg_failed
=yes
9532 if test $pkg_failed = yes; then
9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 printf "%s\n" "no" >&6; }
9536 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9537 _pkg_short_errors_supported
=yes
9539 _pkg_short_errors_supported
=no
9541 if test $_pkg_short_errors_supported = yes; then
9542 LIBMAXMINDDB_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb >= 1.4.3" 2>&1`
9544 LIBMAXMINDDB_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb >= 1.4.3" 2>&1`
9546 # Put the nasty error message in config.log where it belongs
9547 echo "$LIBMAXMINDDB_PKG_ERRORS" >&5
9549 as_fn_error $?
"Package requirements (libmaxminddb >= 1.4.3) were not met:
9551 $LIBMAXMINDDB_PKG_ERRORS
9553 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9554 installed software in a non-standard prefix.
9556 Alternatively, you may set the environment variables LIBMAXMINDDB_CFLAGS
9557 and LIBMAXMINDDB_LIBS to avoid the need to call pkg-config.
9558 See the pkg-config man page for more details." "$LINENO" 5
9559 elif test $pkg_failed = untried
; then
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 printf "%s\n" "no" >&6; }
9562 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9563 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9564 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9565 is in your PATH or set the PKG_CONFIG environment variable to the full
9568 Alternatively, you may set the environment variables LIBMAXMINDDB_CFLAGS
9569 and LIBMAXMINDDB_LIBS to avoid the need to call pkg-config.
9570 See the pkg-config man page for more details.
9572 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9573 See \`config.log' for more details" "$LINENO" 5; }
9575 LIBMAXMINDDB_CFLAGS
=$pkg_cv_LIBMAXMINDDB_CFLAGS
9576 LIBMAXMINDDB_LIBS
=$pkg_cv_LIBMAXMINDDB_LIBS
9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9578 printf "%s\n" "yes" >&6; }
9579 has_system_libmaxminddb
=yes
9581 if test "x$has_system_libmaxminddb" = "xyes"
9588 GEOIP_MAXMIND_OBJECTS
="geoip_maxmind.so"
9596 UNRLINCDIR
="`pwd`/include"
9598 if test "$ac_cv_werror" = "yes" ; then
9599 CFLAGS
="$CFLAGS -Werror"
9602 if test "$ac_cv_asan" = "yes" ; then
9603 CFLAGS
="$CFLAGS -O2 -fno-inline -fsanitize=address -fno-omit-frame-pointer -DNOCLOSEFD"
9604 IRCDLIBS
="-fsanitize=address $IRCDLIBS"
9611 ac_config_files
="$ac_config_files Makefile src/Makefile src/modules/Makefile src/modules/chanmodes/Makefile src/modules/usermodes/Makefile src/modules/extbans/Makefile src/modules/rpc/Makefile src/modules/third/Makefile extras/unrealircd-upgrade-script unrealircd"
9613 cat >confcache
<<\_ACEOF
9614 # This file is a shell script that caches the results of configure
9615 # tests run on this system so they can be shared between configure
9616 # scripts and configure runs, see configure's option --config-cache.
9617 # It is not useful on other systems. If it contains results you don't
9618 # want to keep, you may remove or edit it.
9620 # config.status only pays attention to the cache file if you give it
9621 # the --recheck option to rerun configure.
9623 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9624 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9629 # The following way of writing the cache mishandles newlines in values,
9630 # but we know of no workaround that is simple, portable, and efficient.
9631 # So, we kill variables containing newlines.
9632 # Ultrix sh set writes to stderr and can't be redirected directly,
9633 # and sets the high bit in the cache file unless we assign to the vars.
9635 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9636 eval ac_val
=\$
$ac_var
9640 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9641 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9644 _
| IFS
| as_nl
) ;; #(
9645 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
9646 *) { eval $ac_var=; unset $ac_var;} ;;
9652 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9653 *${as_nl}ac_space
=\
*)
9654 # `set' does not quote correctly, so add quotes: double-quote
9655 # substitution turns \\\\ into \\, and sed turns \\ into \.
9658 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9661 # `set' quotes correctly as required by POSIX, so do not add quotes.
9662 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9671 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9673 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9675 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9676 if test -w "$cache_file"; then
9677 if test "x$cache_file" != "x/dev/null"; then
9678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9679 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9680 if test ! -f "$cache_file" || test -h "$cache_file"; then
9681 cat confcache
>"$cache_file"
9683 case $cache_file in #(
9685 mv -f confcache
"$cache_file"$$
&&
9686 mv -f "$cache_file"$$
"$cache_file" ;; #(
9688 mv -f confcache
"$cache_file" ;;
9693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9694 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9699 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9700 # Let make expand exec_prefix.
9701 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9703 DEFS
=-DHAVE_CONFIG_H
9708 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9709 # 1. Remove the extension, and $U if already installed.
9710 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9711 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9712 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9713 # will be set to the directory where LIBOBJS objects are built.
9714 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9715 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9719 LTLIBOBJS
=$ac_ltlibobjs
9723 : "${CONFIG_STATUS=./config.status}"
9725 ac_clean_files_save
=$ac_clean_files
9726 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9728 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9730 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9732 # Generated by $as_me.
9733 # Run this file to recreate the current configuration.
9734 # Compiler output produced by configure, useful for debugging
9735 # configure, is in config.log if it exists.
9741 SHELL=\${CONFIG_SHELL-$SHELL}
9744 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
9745 ## -------------------- ##
9746 ## M4sh Initialization. ##
9747 ## -------------------- ##
9749 # Be more Bourne compatible
9750 DUALCASE
=1; export DUALCASE
# for MKS sh
9752 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
9756 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9757 # is contrary to our usage. Disable this feature.
9758 alias -g '${1+"$@"}'='"$@"'
9759 setopt NO_GLOB_SUBST
9761 case `(set -o) 2>/dev/null` in #(
9771 # Reset variables that may have inherited troublesome values from
9774 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9775 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9776 # side effect of setting IFS to empty, thus disabling word splitting.)
9777 # Quoting is to prevent editors from complaining about space-tab.
9787 # Ensure predictable behavior from utilities with locale-dependent output.
9793 # We cannot yet rely on "unset" to work, but we need these variables
9794 # to be unset--not just set to an empty or harmless value--now, to
9795 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9796 # also avoids known problems related to "unset" and subshell syntax
9797 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9798 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
9799 do eval test \
${$as_var+y} \
9800 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
9803 # Ensure that fds 0, 1, and 2 are open.
9804 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
9805 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
9806 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
9808 # The user is always right.
9809 if ${PATH_SEPARATOR+false} :; then
9811 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
9812 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
9818 # Find who we are. Look in the path if we contain no directory separator.
9821 *[\\/]* ) as_myself
=$0 ;;
9822 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9826 case $as_dir in #(((
9829 *) as_dir
=$as_dir/ ;;
9831 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
9837 # We did not find ourselves, most probably we were run as `sh COMMAND'
9838 # in which case we are not to be found in the path.
9839 if test "x$as_myself" = x
; then
9842 if test ! -f "$as_myself"; then
9843 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9849 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9850 # ----------------------------------------
9851 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9852 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9853 # script with STATUS, using 1 if that was 0.
9856 as_status
=$1; test $as_status -eq 0 && as_status
=1
9858 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9861 printf "%s\n" "$as_me: error: $2" >&2
9862 as_fn_exit
$as_status
9867 # as_fn_set_status STATUS
9868 # -----------------------
9869 # Set $? to STATUS, without forking.
9873 } # as_fn_set_status
9877 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9887 # Portably unset VAR.
9890 { eval $1=; unset $1;}
9892 as_unset
=as_fn_unset
9894 # as_fn_append VAR VALUE
9895 # ----------------------
9896 # Append the text in VALUE to the end of the definition contained in VAR. Take
9897 # advantage of any shell optimizations that allow amortized linear growth over
9898 # repeated appends, instead of the typical quadratic growth present in naive
9900 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
9902 eval 'as_fn_append ()
9913 # as_fn_arith ARG...
9914 # ------------------
9915 # Perform arithmetic evaluation on the ARGs, and store the result in the
9916 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9917 # must be portable across $(()) and expr.
9918 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
9920 eval 'as_fn_arith ()
9927 as_val
=`expr "$@" || test $? -eq 1`
9932 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9933 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9939 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9940 as_basename
=basename
9945 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9951 as_me
=`$as_basename -- "$0" ||
9952 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9953 X"$0" : 'X\(//\)$' \| \
9954 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9955 printf "%s\n" X/"$0" |
9956 sed '/^.*\/\([^/][^/]*\)\/*$/{
9970 # Avoid depending upon Character Ranges.
9971 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9972 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9973 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9974 as_cr_digits
='0123456789'
9975 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9978 # Determine whether it's possible to make 'echo' print without a newline.
9979 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
9980 # for compatibility with existing Makefiles.
9981 ECHO_C
= ECHO_N
= ECHO_T
=
9982 case `echo -n x` in #(((((
9984 case `echo 'xy\c'` in
9985 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9987 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9994 # For backward compatibility with old third-party macros, we provide
9995 # the shell variables $as_echo and $as_echo_n. New code should use
9996 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
9997 as_echo
='printf %s\n'
9998 as_echo_n
='printf %s'
10000 rm -f conf$$ conf$$.exe conf$$.
file
10001 if test -d conf$$.dir
; then
10002 rm -f conf$$.dir
/conf$$.
file
10005 mkdir conf$$.dir
2>/dev
/null
10007 if (echo >conf$$.
file) 2>/dev
/null
; then
10008 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10010 # ... but there are two gotchas:
10011 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10012 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10013 # In both cases, we have to default to `cp -pR'.
10014 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
10016 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10024 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10025 rmdir conf$$.dir
2>/dev
/null
10030 # Create "$as_dir" as a directory, including parents if necessary.
10035 -*) as_dir
=.
/$as_dir;;
10037 test -d "$as_dir" || eval $as_mkdir_p || {
10041 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10042 *) as_qdir
=$as_dir;;
10044 as_dirs
="'$as_qdir' $as_dirs"
10045 as_dir
=`$as_dirname -- "$as_dir" ||
10046 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10047 X"$as_dir" : 'X\(//\)[^/]' \| \
10048 X"$as_dir" : 'X\(//\)$' \| \
10049 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10050 printf "%s\n" X"$as_dir" |
10051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10055 /^X\(\/\/\)[^/].*/{
10068 test -d "$as_dir" && break
10070 test -z "$as_dirs" || eval "mkdir $as_dirs"
10071 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10075 if mkdir -p .
2>/dev
/null
; then
10076 as_mkdir_p
='mkdir -p "$as_dir"'
10078 test -d .
/-p && rmdir .
/-p
10083 # as_fn_executable_p FILE
10084 # -----------------------
10085 # Test if FILE is an executable regular file.
10086 as_fn_executable_p
()
10088 test -f "$1" && test -x "$1"
10089 } # as_fn_executable_p
10090 as_test_x
='test -x'
10091 as_executable_p
=as_fn_executable_p
10093 # Sed expression to map a string onto a valid CPP name.
10094 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10096 # Sed expression to map a string onto a valid variable name.
10097 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10101 ## ----------------------------------- ##
10102 ## Main body of $CONFIG_STATUS script. ##
10103 ## ----------------------------------- ##
10105 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10107 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10108 # Save the log message, to keep $0 and so on meaningful, and to
10109 # report actual input values of CONFIG_FILES etc. instead of their
10110 # values after options handling.
10112 This file was extended by unrealircd $as_me 6.1.6-rc1, which was
10113 generated by GNU Autoconf 2.71. Invocation command line was
10115 CONFIG_FILES = $CONFIG_FILES
10116 CONFIG_HEADERS = $CONFIG_HEADERS
10117 CONFIG_LINKS = $CONFIG_LINKS
10118 CONFIG_COMMANDS = $CONFIG_COMMANDS
10121 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10126 case $ac_config_files in *"
10127 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10130 case $ac_config_headers in *"
10131 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10136 # Files that config.status was made for.
10137 config_files="$ac_config_files"
10138 config_headers="$ac_config_headers"
10142 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10144 \`$as_me' instantiates files and other configuration actions
10145 from templates according to the current configuration. Unless the files
10146 and actions are specified as TAGs, all are instantiated by default.
10148 Usage: $0 [OPTION]... [TAG]...
10150 -h, --help print this help, then exit
10151 -V, --version print version number and configuration settings, then exit
10152 --config print configuration, then exit
10153 -q, --quiet, --silent
10154 do not print progress messages
10155 -d, --debug don't remove temporary files
10156 --recheck update $as_me by reconfiguring in the same conditions
10157 --file=FILE[:TEMPLATE]
10158 instantiate the configuration file FILE
10159 --header=FILE[:TEMPLATE]
10160 instantiate the configuration header FILE
10162 Configuration files:
10165 Configuration headers:
10168 Report bugs to <https://bugs.unrealircd.org/>.
10169 unrealircd home page: <https://unrealircd.org/>."
10172 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10173 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10175 ac_cs_config='$ac_cs_config_escaped'
10177 unrealircd config.status 6.1.6-rc1
10178 configured by $0, generated by GNU Autoconf 2.71,
10179 with options \\"\$ac_cs_config\\"
10181 Copyright (C) 2021 Free Software Foundation, Inc.
10182 This config.status script is free software; the Free Software Foundation
10183 gives unlimited permission to copy, distribute and modify it."
10187 test -n "\$AWK" || AWK=awk
10190 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10191 # The default lists apply if the user does not specify any file.
10197 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10198 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10202 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10214 # Handling of the options.
10215 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10217 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10218 printf "%s\n" "$ac_cs_version"; exit ;;
10219 --config | --confi | --conf | --con | --co | --c )
10220 printf "%s\n" "$ac_cs_config"; exit ;;
10221 --debug | --debu | --deb | --de | --d | -d )
10223 --file | --fil | --fi | --f )
10226 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10227 '') as_fn_error $?
"missing file argument" ;;
10229 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10230 ac_need_defaults
=false
;;
10231 --header | --heade | --head | --hea )
10234 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10236 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10237 ac_need_defaults
=false
;;
10239 # Conflict between --help and --header
10240 as_fn_error $?
"ambiguous option: \`$1'
10241 Try \`$0 --help' for more information.";;
10242 --help | --hel | -h )
10243 printf "%s\n" "$ac_cs_usage"; exit ;;
10244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10245 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10248 # This is an error.
10249 -*) as_fn_error $?
"unrecognized option: \`$1'
10250 Try \`$0 --help' for more information." ;;
10252 *) as_fn_append ac_config_targets
" $1"
10253 ac_need_defaults
=false
;;
10259 ac_configure_extra_args
=
10261 if $ac_cs_silent; then
10263 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10268 if \$ac_cs_recheck; then
10269 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10271 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10272 CONFIG_SHELL='$SHELL'
10273 export CONFIG_SHELL
10278 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10282 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10283 ## Running $as_me. ##
10285 printf "%s\n" "$ac_log"
10289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10292 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10294 # Handling of arguments.
10295 for ac_config_target
in $ac_config_targets
10297 case $ac_config_target in
10298 "include/setup.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/setup.h" ;;
10299 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10300 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
10301 "src/modules/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/Makefile" ;;
10302 "src/modules/chanmodes/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/chanmodes/Makefile" ;;
10303 "src/modules/usermodes/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/usermodes/Makefile" ;;
10304 "src/modules/extbans/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/extbans/Makefile" ;;
10305 "src/modules/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/rpc/Makefile" ;;
10306 "src/modules/third/Makefile") CONFIG_FILES
="$CONFIG_FILES src/modules/third/Makefile" ;;
10307 "extras/unrealircd-upgrade-script") CONFIG_FILES
="$CONFIG_FILES extras/unrealircd-upgrade-script" ;;
10308 "unrealircd") CONFIG_FILES
="$CONFIG_FILES unrealircd" ;;
10310 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10315 # If the user did not use the arguments to specify the items to instantiate,
10316 # then the envvar interface is used. Set only those that are not.
10317 # We use the long form for the default assignment because of an extremely
10318 # bizarre bug on SunOS 4.1.3.
10319 if $ac_need_defaults; then
10320 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
10321 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
10324 # Have a temporary directory for convenience. Make it in the build tree
10325 # simply because there is no reason against having it here, and in addition,
10326 # creating and moving files from /tmp can sometimes cause problems.
10327 # Hook for its removal unless debugging.
10328 # Note that there is a small window in which the directory will not be cleaned:
10329 # after its creation but before its name has been assigned to `$tmp'.
10333 trap 'exit_status=$?
10334 : "${ac_tmp:=$tmp}"
10335 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10337 trap 'as_fn_exit 1' 1 2 13 15
10339 # Create a (secure) tmp directory for tmp files.
10342 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10346 tmp
=.
/conf$$
-$RANDOM
10347 (umask 077 && mkdir "$tmp")
10348 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10351 # Set up the scripts for CONFIG_FILES section.
10352 # No need to generate them if there are no CONFIG_FILES.
10353 # This happens for instance with `./config.status config.h'.
10354 if test -n "$CONFIG_FILES"; then
10357 ac_cr
=`echo X | tr X '\015'`
10358 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10359 # But we know of no other shell where ac_cr would be empty at this
10360 # point, so we can use a bashism as a fallback.
10361 if test "x$ac_cr" = x
; then
10362 eval ac_cr
=\$
\'\\r
\'
10364 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10365 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10368 ac_cs_awk_cr
=$ac_cr
10371 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10376 echo "cat >conf$$subs.awk <<_ACEOF" &&
10377 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10379 } >conf$$subs.sh ||
10380 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10381 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10383 for ac_last_try in false false false false false :; do
10384 . ./conf$$subs.sh ||
10385 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10387 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10388 if test $ac_delim_n = $ac_delim_num; then
10390 elif $ac_last_try; then
10391 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10393 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10396 rm -f conf$$subs.sh
10398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10399 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10403 s/^/S["/; s
/!.
*/"]=/
10413 s/\(.\{148\}\)..*/\1/
10415 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10420 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10427 s/\(.\{148\}\)..*/\1/
10429 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10433 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10438 ' <conf$$subs.awk | sed '
10443 ' >>$CONFIG_STATUS || ac_write_fail=1
10444 rm -f conf$$subs.awk
10445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10447 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10448 for (key in S) S_is_set[key] = 1
10454 nfields = split(line, field, "@
")
10456 len = length(field[1])
10457 for (i = 2; i < nfields; i++) {
10459 keylen = length(key)
10460 if (S_is_set[key]) {
10462 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10463 len += length(value) + length(field[++i])
10474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10475 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10476 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10479 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10480 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10483 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10484 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10485 # trailing colons and then remove the whole line if VPATH becomes empty
10486 # (actually we leave an empty line to preserve line numbers).
10487 if test "x
$srcdir" = x.; then
10488 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10507 fi # test -n "$CONFIG_FILES"
10509 # Set up the scripts for CONFIG_HEADERS section.
10510 # No need to generate them if there are no CONFIG_HEADERS.
10511 # This happens for instance with `./config.status Makefile'.
10512 if test -n "$CONFIG_HEADERS"; then
10513 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10517 # Transform confdefs.h into an awk script `defines.awk', embedded as
10518 # here-document in config.status, that substitutes the proper values into
10519 # config.h.in to produce config.h.
10521 # Create a delimiter string that does not exist in confdefs.h, to ease
10522 # handling of long lines.
10524 for ac_last_try in false false :; do
10525 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10526 if test -z "$ac_tt"; then
10528 elif $ac_last_try; then
10529 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10531 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10535 # For the awk script, D is an array of macro values keyed by name,
10536 # likewise P contains macro parameters if any. Preserve backslash
10537 # newline sequences.
10539 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10541 s/.\{148\}/&'"$ac_delim"'/g
10544 s/^[ ]*#[ ]*define[ ][ ]*/ /
10551 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10553 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10557 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10558 D["\
1"]=" \
3\\\\\\n
"\\/p
10560 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10565 s/.\{148\}/&'"$ac_delim"'/g
10570 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10573 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10575 ' <confdefs.h | sed '
10576 s/'"$ac_delim"'/"\\\
10577 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10580 for (key in D) D_is_set[key] = 1
10583 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10585 split(line, arg, " ")
10586 if (arg[1] == "#") {
10590 defundef
= substr
(arg
[1], 2)
10593 split(mac1
, mac2
, "(") #)
10595 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10596 if (D_is_set
[macro
]) {
10597 # Preserve the white space surrounding the "#".
10598 print prefix
"define", macro P
[macro
] D
[macro
]
10601 # Replace #undef with comments. This is necessary, for example,
10602 # in the case of _POSIX_SOURCE, which is predefined and required
10603 # on some systems where configure will not decide to define it.
10604 if (defundef
== "undef") {
10605 print
"/*", prefix defundef
, macro
, "*/"
10613 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10614 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10615 fi # test -n "$CONFIG_HEADERS"
10618 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
10623 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10625 case $ac_mode$ac_tag in
10627 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10628 :[FH
]-) ac_tag
=-:-;;
10629 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10646 -) ac_f
="$ac_tmp/stdin";;
10647 *) # Look for the file first in the build tree, then in the source tree
10648 # (if the path is not absolute). The absolute path cannot be DOS-style,
10649 # because $ac_f cannot contain `:'.
10653 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10655 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10657 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10658 as_fn_append ac_file_inputs
" '$ac_f'"
10661 # Let's still pretend it is `configure' which instantiates (i.e., don't
10662 # use $as_me), people would be surprised to read:
10663 # /* config.h. Generated by config.status. */
10664 configure_input
='Generated from '`
10665 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10667 if test x
"$ac_file" != x
-; then
10668 configure_input
="$ac_file. $configure_input"
10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10670 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10672 # Neutralize special characters interpreted by sed in replacement strings.
10673 case $configure_input in #(
10674 *\
&* | *\
|* | *\\* )
10675 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
10676 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10677 *) ac_sed_conf_input
=$configure_input;;
10681 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10682 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10687 ac_dir
=`$as_dirname -- "$ac_file" ||
10688 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10689 X"$ac_file" : 'X\(//\)[^/]' \| \
10690 X"$ac_file" : 'X\(//\)$' \| \
10691 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10692 printf "%s\n" X"$ac_file" |
10693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10697 /^X\(\/\/\)[^/].*/{
10710 as_dir
="$ac_dir"; as_fn_mkdir_p
10714 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10716 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10717 # A ".." for each directory in $ac_dir_suffix.
10718 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10719 case $ac_top_builddir_sub in
10720 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10721 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10724 ac_abs_top_builddir
=$ac_pwd
10725 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10726 # for backward compatibility:
10727 ac_top_builddir
=$ac_top_build_prefix
10730 .
) # We are building in place.
10732 ac_top_srcdir
=$ac_top_builddir_sub
10733 ac_abs_top_srcdir
=$ac_pwd ;;
10734 [\\/]* | ?
:[\\/]* ) # Absolute name.
10735 ac_srcdir
=$srcdir$ac_dir_suffix;
10736 ac_top_srcdir
=$srcdir
10737 ac_abs_top_srcdir
=$srcdir ;;
10738 *) # Relative name.
10739 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10740 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10741 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10743 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10754 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10755 # If the template does not know about datarootdir, expand it.
10756 # FIXME: This hack should be removed a few years after 2.60.
10757 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10768 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10769 *datarootdir
*) ac_datarootdir_seen
=yes;;
10770 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
10771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10772 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10775 ac_datarootdir_hack='
10776 s&@datadir@&$datadir&g
10777 s&@docdir@&$docdir&g
10778 s&@infodir@&$infodir&g
10779 s&@localedir@&$localedir&g
10780 s&@mandir@&$mandir&g
10781 s&\\\${datarootdir}&$datarootdir&g' ;;
10785 # Neutralize VPATH when `$srcdir' = `.'.
10786 # Shell code in configure.ac might set extrasub.
10787 # FIXME: do we really want to maintain this feature?
10788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10789 ac_sed_extra="$ac_vpsub
10792 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10794 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
10795 s
|@configure_input@
|$ac_sed_conf_input|;t t
10796 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10797 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10798 s
&@srcdir@
&$ac_srcdir&;t t
10799 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10800 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10801 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10802 s
&@builddir@
&$ac_builddir&;t t
10803 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10804 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10805 $ac_datarootdir_hack
10807 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10808 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10810 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10811 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10812 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10813 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10814 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10815 which seems to be undefined. Please make sure it is defined" >&5
10816 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10817 which seems to be undefined. Please make sure it is defined" >&2;}
10819 rm -f "$ac_tmp/stdin"
10821 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10822 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10824 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10830 if test x"$ac_file" != x-; then
10832 printf "%s\n" "/* $configure_input */" >&1 \
10833 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10834 } >"$ac_tmp/config.h" \
10835 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10836 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10838 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
10841 mv "$ac_tmp/config.h" "$ac_file" \
10842 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10845 printf "%s\n" "/* $configure_input */" >&1 \
10846 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10847 || as_fn_error $? "could not create -" "$LINENO" 5
10859 ac_clean_files=$ac_clean_files_save
10861 test $ac_write_fail = 0 ||
10862 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10865 # configure is writing to config.log, and then calls config.status.
10866 # config.status does its own redirection, appending to config.log.
10867 # Unfortunately, on DOS this fails, as config.log is still kept open
10868 # by configure, so config.status won't be able to
write to it
; its
10869 # output is simply discarded. So we exec the FD to /dev/null,
10870 # effectively closing config.log, so it can be properly (re)opened and
10871 # appended to by config.status. When coming back to configure, we
10872 # need to make the FD available again.
10873 if test "$no_create" != yes; then
10875 ac_config_status_args
=
10876 test "$silent" = yes &&
10877 ac_config_status_args
="$ac_config_status_args --quiet"
10879 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10881 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10882 # would make configure fail if this is the last instruction.
10883 $ac_cs_success || as_fn_exit
1
10885 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10887 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10890 chmod 0700 unrealircd