2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for qbittorrent v4.4.0alpha.
5 # Report bugs to <bugs.qbittorrent.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: bugs.qbittorrent.org about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: 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
='qbittorrent'
613 PACKAGE_TARNAME
='qbittorrent'
614 PACKAGE_VERSION
='v4.4.0alpha'
615 PACKAGE_STRING
='qbittorrent v4.4.0alpha'
616 PACKAGE_BUGREPORT
='bugs.qbittorrent.org'
617 PACKAGE_URL
='https://www.qbittorrent.org/'
619 ac_subst_vars
='am__EXEEXT_FALSE
627 QBT_CONF_EXTRA_CFLAGS
673 INSTALL_STRIP_PROGRAM
735 program_transform_name
749 enable_option_checking
750 enable_dependency_tracking
761 ac_precious_vars
='build_alias
786 # Initialize some variables set by options.
788 ac_init_version
=false
789 ac_unrecognized_opts
=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
800 program_transform_name
=s
,x
,x
,
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir
='${exec_prefix}/bin'
815 sbindir
='${exec_prefix}/sbin'
816 libexecdir
='${exec_prefix}/libexec'
817 datarootdir
='${prefix}/share'
818 datadir
='${datarootdir}'
819 sysconfdir
='${prefix}/etc'
820 sharedstatedir
='${prefix}/com'
821 localstatedir
='${prefix}/var'
822 runstatedir
='${localstatedir}/run'
823 includedir
='${prefix}/include'
824 oldincludedir
='/usr/include'
825 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
826 infodir
='${datarootdir}/info'
831 libdir
='${exec_prefix}/lib'
832 localedir
='${datarootdir}/locale'
833 mandir
='${datarootdir}/man'
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\
$ac_option
847 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 case $ac_dashdash$ac_option in
856 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
858 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
861 -build |
--build |
--buil |
--bui |
--bu)
862 ac_prev
=build_alias
;;
863 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
864 build_alias
=$ac_optarg ;;
866 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
867 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
868 ac_prev
=cache_file
;;
869 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
870 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
871 cache_file
=$ac_optarg ;;
874 cache_file
=config.cache
;;
876 -datadir |
--datadir |
--datadi |
--datad)
878 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
879 datadir
=$ac_optarg ;;
881 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
882 |
--dataroo |
--dataro |
--datar)
883 ac_prev
=datarootdir
;;
884 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
885 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
886 datarootdir
=$ac_optarg ;;
888 -disable-* |
--disable-*)
889 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
892 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
893 ac_useropt_orig
=$ac_useropt
894 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep
=', ';;
902 eval enable_
$ac_useropt=no
;;
904 -docdir |
--docdir |
--docdi |
--doc |
--do)
906 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
909 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
911 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
914 -enable-* |
--enable-*)
915 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
918 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
919 ac_useropt_orig
=$ac_useropt
920 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep
=', ';;
928 eval enable_
$ac_useropt=\
$ac_optarg ;;
930 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
931 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
932 |
--exec |
--exe |
--ex)
933 ac_prev
=exec_prefix
;;
934 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
935 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
936 |
--exec=* |
--exe=* |
--ex=*)
937 exec_prefix
=$ac_optarg ;;
939 -gas |
--gas |
--ga |
--g)
940 # Obsolete; use --with-gas.
943 -help |
--help |
--hel |
--he |
-h)
945 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
946 ac_init_help
=recursive
;;
947 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
948 ac_init_help
=short
;;
950 -host |
--host |
--hos |
--ho)
951 ac_prev
=host_alias
;;
952 -host=* |
--host=* |
--hos=* |
--ho=*)
953 host_alias
=$ac_optarg ;;
955 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
957 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
959 htmldir
=$ac_optarg ;;
961 -includedir |
--includedir |
--includedi |
--included |
--include \
962 |
--includ |
--inclu |
--incl |
--inc)
963 ac_prev
=includedir
;;
964 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
965 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
966 includedir
=$ac_optarg ;;
968 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
970 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
971 infodir
=$ac_optarg ;;
973 -libdir |
--libdir |
--libdi |
--libd)
975 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
978 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
979 |
--libexe |
--libex |
--libe)
980 ac_prev
=libexecdir
;;
981 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
982 |
--libexe=* |
--libex=* |
--libe=*)
983 libexecdir
=$ac_optarg ;;
985 -localedir |
--localedir |
--localedi |
--localed |
--locale)
987 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
988 localedir
=$ac_optarg ;;
990 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
991 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
992 ac_prev
=localstatedir
;;
993 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
994 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
995 localstatedir
=$ac_optarg ;;
997 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
999 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1000 mandir
=$ac_optarg ;;
1002 -nfp |
--nfp |
--nf)
1003 # Obsolete; use --without-fp.
1006 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1007 |
--no-cr |
--no-c |
-n)
1010 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1011 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1014 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1015 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1016 |
--oldin |
--oldi |
--old |
--ol |
--o)
1017 ac_prev
=oldincludedir
;;
1018 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1019 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1020 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1021 oldincludedir
=$ac_optarg ;;
1023 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1025 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1026 prefix
=$ac_optarg ;;
1028 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1029 |
--program-pre |
--program-pr |
--program-p)
1030 ac_prev
=program_prefix
;;
1031 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1032 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1033 program_prefix
=$ac_optarg ;;
1035 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1036 |
--program-suf |
--program-su |
--program-s)
1037 ac_prev
=program_suffix
;;
1038 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1039 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1040 program_suffix
=$ac_optarg ;;
1042 -program-transform-name |
--program-transform-name \
1043 |
--program-transform-nam |
--program-transform-na \
1044 |
--program-transform-n |
--program-transform- \
1045 |
--program-transform |
--program-transfor \
1046 |
--program-transfo |
--program-transf \
1047 |
--program-trans |
--program-tran \
1048 |
--progr-tra |
--program-tr |
--program-t)
1049 ac_prev
=program_transform_name
;;
1050 -program-transform-name=* |
--program-transform-name=* \
1051 |
--program-transform-nam=* |
--program-transform-na=* \
1052 |
--program-transform-n=* |
--program-transform-=* \
1053 |
--program-transform=* |
--program-transfor=* \
1054 |
--program-transfo=* |
--program-transf=* \
1055 |
--program-trans=* |
--program-tran=* \
1056 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1057 program_transform_name
=$ac_optarg ;;
1059 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1061 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1062 pdfdir
=$ac_optarg ;;
1064 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1066 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1069 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1070 |
-silent |
--silent |
--silen |
--sile |
--sil)
1073 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1074 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1075 |
--run |
--ru |
--r)
1076 ac_prev
=runstatedir
;;
1077 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1078 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1079 |
--run=* |
--ru=* |
--r=*)
1080 runstatedir
=$ac_optarg ;;
1082 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1084 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1086 sbindir
=$ac_optarg ;;
1088 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1089 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1090 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1092 ac_prev
=sharedstatedir
;;
1093 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1094 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1095 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1097 sharedstatedir
=$ac_optarg ;;
1099 -site |
--site |
--sit)
1101 -site=* |
--site=* |
--sit=*)
1104 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1106 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1107 srcdir
=$ac_optarg ;;
1109 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1110 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1111 ac_prev
=sysconfdir
;;
1112 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1113 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1114 sysconfdir
=$ac_optarg ;;
1116 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1117 ac_prev
=target_alias
;;
1118 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1119 target_alias
=$ac_optarg ;;
1121 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1124 -version |
--version |
--versio |
--versi |
--vers |
-V)
1125 ac_init_version
=: ;;
1128 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1131 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1132 ac_useropt_orig
=$ac_useropt
1133 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1138 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep
=', ';;
1141 eval with_
$ac_useropt=\
$ac_optarg ;;
1143 -without-* |
--without-*)
1144 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1147 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1148 ac_useropt_orig
=$ac_useropt
1149 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1154 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep
=', ';;
1157 eval with_
$ac_useropt=no
;;
1160 # Obsolete; use --with-x.
1163 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1164 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1165 ac_prev
=x_includes
;;
1166 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1167 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1168 x_includes
=$ac_optarg ;;
1170 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1171 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1172 ac_prev
=x_libraries
;;
1173 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1174 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1175 x_libraries
=$ac_optarg ;;
1177 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1182 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1186 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1188 eval $ac_envvar=\
$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1195 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202 if test -n "$ac_prev"; then
1203 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error $?
"missing argument to $ac_option"
1207 if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1210 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1211 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 # Check all directory arguments for consistency.
1216 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir runstatedir
1221 eval ac_val
=\$
$ac_var
1222 # Remove trailing slashes.
1225 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\
$ac_val;;
1228 # Be sure to have absolute directory names.
1230 [\\/$
]* | ?
:[\\/]* ) continue;;
1231 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1233 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1241 target
=$target_alias
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x
; then
1245 if test "x$build_alias" = x
; then
1246 cross_compiling
=maybe
1247 elif test "x$build_alias" != "x$host_alias"; then
1253 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1255 test "$silent" = yes && exec 6>/dev
/null
1258 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di
=`ls -di .` &&
1260 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $?
"working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $?
"pwd does not report name of working directory"
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted
=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir
=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 printf "%s\n" X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1298 ac_srcdir_defaulted
=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1302 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1304 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var
in $ac_precious_vars; do
1319 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1321 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures qbittorrent v4.4.0alpha to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/qbittorrent]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1396 --build=BUILD configure
for building on BUILD
[guessed
]
1397 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive
) echo "Configuration of qbittorrent v4.4.0alpha:";;
1408 --disable-option-checking ignore unrecognized
--enable/--with options
1409 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1410 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1411 --enable-dependency-tracking
1412 do not reject slow dependency extractors
1413 --disable-dependency-tracking
1414 speeds up one-time build
1415 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1416 --disable-silent-rules verbose build output
(undo
: "make V=0")
1417 --enable-debug Enable debug build
1418 --enable-stacktrace Enable stacktrace feature
(default
=auto
)
1419 --disable-gui Disable the GUI
for headless running. Disables
1420 QtDBus and the GeoIP Database.
1421 --enable-systemd Install the systemd service
file (headless only
).
1422 --disable-webui Disable the WebUI.
1423 --disable-qt-dbus Disable use of QtDBus
(GUI only
)
1426 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1427 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1428 --with-boost[=ARG
] use Boost library from a standard location
1429 (ARG
=yes), from the specified location
(ARG
=<path
>),
1430 or disable it
(ARG
=no
) [ARG
=yes]
1431 --with-boost-libdir=LIB_DIR
1432 Force given directory
for boost libraries. Note that
1433 this will override library path detection
, so use
1434 this parameter only
if default library detection
1435 fails and you know exactly where your boost
1436 libraries are located.
1438 Some influential environment variables
:
1439 CC C compiler
command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1442 nonstandard directory
<lib dir
>
1443 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1444 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1445 you have headers
in a nonstandard directory
<include dir
>
1446 CXX C
++ compiler
command
1447 CXXFLAGS C
++ compiler flags
1448 PKG_CONFIG path to pkg-config utility
1450 directories to add to pkg-config
's search path
1452 path overriding pkg-config's built-in search path
1453 QT_QMAKE value of host_bins
for Qt5Core
>= 5.15.2, overriding pkg-config
1455 C compiler flags
for Qt5Svg
, overriding pkg-config
1456 Qt5Svg_LIBS linker flags
for Qt5Svg
, overriding pkg-config
1458 C compiler flags
for libtorrent
, overriding pkg-config
1460 linker flags
for libtorrent
, overriding pkg-config
1462 C compiler flags
for openssl
, overriding pkg-config
1464 linker flags
for openssl
, overriding pkg-config
1465 zlib_CFLAGS C compiler flags
for zlib
, overriding pkg-config
1466 zlib_LIBS linker flags
for zlib
, overriding pkg-config
1468 Use these variables to override the choices made by
`configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1471 Report bugs to <bugs.qbittorrent.org>.
1472 qbittorrent home page: <https://www.qbittorrent.org/>.
1477 if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 test -d "$ac_dir" ||
1481 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 ac_dir_suffix=/`printf "%s\n" "$ac_dir" |
sed 's|^\.[\\/]||'`
1489 # A ".." for each directory in $ac_dir_suffix.
1490 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1491 case $ac_top_builddir_sub in
1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1502 .) # We are building in place.
1504 ac_top_srcdir=$ac_top_builddir_sub
1505 ac_abs_top_srcdir=$ac_pwd ;;
1506 [\\/]* | ?:[\\/]* ) # Absolute name.
1507 ac_srcdir=$srcdir$ac_dir_suffix;
1508 ac_top_srcdir=$srcdir
1509 ac_abs_top_srcdir=$srcdir ;;
1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512 ac_top_srcdir=$ac_top_build_prefix$srcdir
1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517 cd "$ac_dir" || { ac_status=$?; continue; }
1518 # Check for configure.gnu first; this name is used for a wrapper for
1519 # Metaconfig's "Configure" on case-insensitive file systems.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 qbittorrent configure v4.4.0alpha
1537 generated by GNU Autoconf 2.71
1539 Copyright (C) 2021 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile ()
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext conftest.beam
1557 if { { ac_try="$ac_compile"
1559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1560 *) ac_try_echo
=$ac_try;;
1562 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 printf "%s\n" "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1566 if test -s conftest.err
; then
1567 grep -v '^ *+' conftest.err
>conftest.er1
1568 cat conftest.er1
>&5
1569 mv -f conftest.er1 conftest.err
1571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.
$ac_objext
1579 printf "%s\n" "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.
$ac_ext >&5
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status
$ac_retval
1587 } # ac_fn_c_try_compile
1589 # ac_fn_cxx_try_compile LINENO
1590 # ----------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_cxx_try_compile
()
1594 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1595 rm -f conftest.
$ac_objext conftest.beam
1596 if { { ac_try
="$ac_compile"
1598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 printf "%s\n" "$ac_try_echo"; } >&5
1603 (eval "$ac_compile") 2>conftest.err
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_cxx_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest.$ac_objext
1618 printf "%s\n" "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_cxx_try_compile
1627 ac_configure_args_raw=
1632 ac_arg=`printf "%s\n" "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1634 as_fn_append ac_configure_args_raw " '$ac_arg'"
1637 case $ac_configure_args_raw in
1641 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1642 ac_unsafe_a="$ac_unsafe_z#~
"
1643 ac_safe_unquote="s
/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g
"
1644 ac_configure_args_raw=` printf "%s
\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1647 cat >config.log <<_ACEOF
1648 This file contains any messages produced by compilers while
1649 running configure, to aid debugging if configure makes a mistake.
1651 It was created by qbittorrent $as_me v4.4.0alpha, which was
1652 generated by GNU Autoconf 2.71. Invocation command line was
1654 $ $0$ac_configure_args_raw
1664 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1665 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1666 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1667 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1668 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1670 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1671 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1673 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1674 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1675 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1676 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1677 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1678 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1679 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 case $as_dir in #(((
1690 *) as_dir=$as_dir/ ;;
1692 printf "%s
\n" "PATH
: $as_dir"
1708 # Keep a trace of the command line.
1709 # Strip out --no-create and --no-recursion so they do not pile up.
1710 # Strip out --silent because we don't want to record it for future runs.
1711 # Also quote any args containing shell meta-characters.
1712 # Make two passes to allow for proper duplicate-argument suppression.
1716 ac_must_keep_next=false
1722 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724 | -silent | --silent | --silen | --sile | --sil)
1727 ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1730 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1732 as_fn_append ac_configure_args1 " '$ac_arg'"
1733 if test $ac_must_keep_next = true; then
1734 ac_must_keep_next=false # Got value, back to normal.
1737 *=* | --config-cache | -C | -disable-* | --disable-* \
1738 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740 | -with-* | --with-* | -without-* | --without-* | --x)
1741 case "$ac_configure_args0 " in
1742 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1745 -* ) ac_must_keep_next=true ;;
1748 as_fn_append ac_configure_args " '$ac_arg'"
1753 { ac_configure_args0=; unset ac_configure_args0;}
1754 { ac_configure_args1=; unset ac_configure_args1;}
1756 # When interrupted or exit'd, cleanup temporary files, and complete
1757 # config.log. We remove comments because anyway the quotes in there
1758 # would cause problems or look ugly.
1759 # WARNING: Use '\'' to represent an apostrophe within the trap.
1760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761 trap 'exit_status=$?
1764 # Save into config.log some information that might help in debugging.
1768 printf "%s
\n" "## ---------------- ##
1769 ## Cache variables. ##
1770 ## ---------------- ##"
1772 # The following way of writing the cache mishandles newlines in values,
1774 for ac_var
in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1775 eval ac_val
=\$
$ac_var
1779 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1780 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1783 _ | IFS | as_nl
) ;; #(
1784 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
1785 *) { eval $ac_var=; unset $ac_var;} ;;
1790 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1791 *${as_nl}ac_space
=\
*)
1793 "s/'\''/'\''\\\\'\'''\''/g;
1794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1804 printf "%s\n" "## ----------------- ##
1805 ## Output variables. ##
1806 ## ----------------- ##"
1808 for ac_var
in $ac_subst_vars
1810 eval ac_val
=\$
$ac_var
1812 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814 printf "%s\n" "$ac_var='\''$ac_val'\''"
1818 if test -n "$ac_subst_files"; then
1819 printf "%s\n" "## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##"
1823 for ac_var in $ac_subst_files
1825 eval ac_val=\$$ac_var
1827 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 printf "%s\n" "$ac_var='\''$ac_val'\''"
1834 if test -s confdefs.h
; then
1835 printf "%s\n" "## ----------- ##
1842 test "$ac_signal" != 0 &&
1843 printf "%s\n" "$as_me: caught signal $ac_signal"
1844 printf "%s\n" "$as_me: exit $exit_status"
1846 rm -f core
*.core core.conftest.
* &&
1847 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
1850 for ac_signal in 1 2 13 15; do
1851 trap 'ac_signal
='$ac_signal'; as_fn_exit
1' $ac_signal
1855 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1856 rm -f -r conftest* confdefs.h
1858 printf "%s\n" "/* confdefs.h */" > confdefs.h
1860 # Predefined preprocessor variables.
1862 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1864 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1866 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1868 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1870 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1872 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1875 # Let the site file select an alternate cache file if it wants to.
1876 # Prefer an explicitly selected file to automatically selected ones.
1877 if test -n "$CONFIG_SITE"; then
1878 ac_site_files="$CONFIG_SITE"
1879 elif test "x$prefix" != xNONE; then
1880 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1882 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1885 for ac_site_file in $ac_site_files
1887 case $ac_site_file in #(
1891 ac_site_file=./$ac_site_file ;;
1893 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1895 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's
/^
/|
/' "$ac_site_file" >&5
1898 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1899 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
1900 as_fn_error $? "failed to load site script $ac_site_file
1901 See \`config.log
' for more details" "$LINENO" 5; }
1905 if test -r "$cache_file"; then
1906 # Some versions of bash will fail to source /dev/null (special files
1907 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1908 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1910 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1912 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1913 *) . "./$cache_file";;
1917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1918 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1922 # Test code for whether the C compiler supports C89 (global declarations)
1923 ac_c_conftest_c89_globals='
1924 /* Does the compiler advertise C89 conformance?
1925 Do not
test the value of __STDC__
, because some compilers
set it to
0
1926 while being otherwise adequately conformant.
*/
1927 #if !defined __STDC__
1928 # error "Compiler does not advertise C89 conformance"
1934 /* Most of the following tests are stolen from RCS
5.7 src
/conf.sh.
*/
1935 struct buf
{ int x
; };
1936 struct buf
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
1937 static char
*e
(p
, i
)
1943 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
1948 s
= g
(p
, va_arg
(v
,int
));
1953 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
1954 function prototypes and stuff
, but not \xHH hex character constants.
1955 These
do not provoke an error unfortunately
, instead are silently treated
1956 as an
"x". The following induces an error
, until -std is added to get
1957 proper ANSI mode. Curiously
\x00 != x always comes out true
, for an
1958 array size
at least. It is necessary to
write \x00 == 0 to get something
1959 that is true only with
-std.
*/
1960 int osf4_cc_array
['\''\x00'\'' == 0 ?
1 : -1];
1962 /* IBM C
6 for AIX is almost-ANSI by default
, but it replaces macro parameters
1963 inside
strings and character constants.
*/
1964 #define FOO(x) '\''x'\''
1965 int xlc6_cc_array
[FOO
(a
) == '\''x
'\'' ?
1 : -1];
1967 int
test (int i
, double x
);
1968 struct s1
{int
(*f
) (int a
);};
1969 struct s2
{int
(*f
) (double a
);};
1970 int pairnames
(int
, char
**, int
*(*)(struct buf
*, struct stat
*, int
),
1973 # Test code for whether the C compiler supports C89 (body of main).
1974 ac_c_conftest_c89_main='
1975 ok |
= (argc
== 0 || f
(e
, argv
, 0) != argv
[0] || f
(e
, argv
, 1) != argv
[1]);
1978 # Test code for whether the C compiler supports C99 (global declarations)
1979 ac_c_conftest_c99_globals='
1980 // Does the compiler advertise C99 conformance?
1981 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1982 # error "Compiler does not advertise C99 conformance"
1985 #include <stdbool.h>
1986 extern int puts
(const char
*);
1987 extern int
printf (const char
*, ...
);
1988 extern int dprintf
(int
, const char
*, ...
);
1989 extern void
*malloc
(size_t
);
1991 // Check varargs macros. These examples are taken from C99
6.10.3.5.
1992 // dprintf is used instead of fprintf to avoid needing to
declare
1994 #define debug(...) dprintf (2, __VA_ARGS__)
1995 #define showlist(...) puts (#__VA_ARGS__)
1996 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1998 test_varargs_macros
(void
)
2003 debug
("X = %d\n", x
);
2004 showlist
(The first
, second
, and third items.
);
2005 report
(x
>y
, "x is %d but y is %d", x
, y
);
2008 // Check long long types.
2009 #define BIG64 18446744073709551615ull
2010 #define BIG32 4294967295ul
2011 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2013 #error "your preprocessor is broken"
2017 #error "your preprocessor is broken"
2019 static long long int bignum
= -9223372036854775807LL;
2020 static unsigned long long int ubignum
= BIG64
;
2022 struct incomplete_array
2030 const wchar_t
*name
;
2034 typedef const char
*ccp
;
2037 test_restrict
(ccp restrict text
)
2039 // See
if C
++-style comments work.
2040 // Iterate through items via the restricted pointer.
2041 // Also check
for declarations
in for loops.
2042 for (unsigned int i
= 0; *(text
+i
) != '\''\
0'\''; ++i
)
2047 // Check varargs and va_copy.
2049 test_varargs
(const char
*format
, ...
)
2052 va_start
(args
, format
);
2054 va_copy
(args_copy
, args
);
2056 const char
*str
= "";
2064 case '\''s
'\'': // string
2065 str
= va_arg
(args_copy
, const char
*);
2067 case '\''d
'\'': // int
2068 number
= va_arg
(args_copy
, int
);
2070 case '\''f
'\'': // float
2071 fnumber
= va_arg
(args_copy
, double
);
2080 return *str
&& number
&& fnumber
;
2084 # Test code for whether the C compiler supports C99 (body of main).
2085 ac_c_conftest_c99_main='
2087 _Bool success
= false
;
2088 success |
= (argc
!= 0);
2091 if (test_restrict
("String literal") == 0)
2093 char
*restrict newvar
= "Another string";
2096 success
&= test_varargs
("s, d'\'' f .", "string", 65, 34.234);
2097 test_varargs_macros
();
2099 // Check flexible array members.
2100 struct incomplete_array
*ia
=
2101 malloc
(sizeof
(struct incomplete_array
) + (sizeof
(double
) * 10));
2103 for (int i
= 0; i
< ia-
>datasize
; ++i
)
2104 ia-
>data
[i
] = i
* 1.234;
2106 // Check named initializers.
2107 struct named_init ni
= {
2109 .name
= L
"Test wide string",
2110 .average
= 543.34343,
2115 int dynamic_array
[ni.number
];
2116 dynamic_array
[0] = argv
[0][0];
2117 dynamic_array
[ni.number
- 1] = 543;
2119 // work around unused variable warnings
2120 ok |
= (!success || bignum
== 0LL || ubignum
== 0uLL || newvar
[0] == '\''x
'\''
2121 || dynamic_array
[ni.number
- 1] != 543);
2124 # Test code for whether the C compiler supports C11 (global declarations)
2125 ac_c_conftest_c11_globals='
2126 // Does the compiler advertise C11 conformance?
2127 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2128 # error "Compiler does not advertise C11 conformance"
2132 char _Alignas
(double
) aligned_as_double
;
2133 char _Alignas
(0) no_special_alignment
;
2134 extern char aligned_as_int
;
2135 char _Alignas
(0) _Alignas
(int
) aligned_as_int
;
2140 int_alignment
= _Alignof
(int
),
2141 int_array_alignment
= _Alignof
(int
[100]),
2142 char_alignment
= _Alignof
(char
)
2144 _Static_assert
(0 < -_Alignof (int
), "_Alignof is signed");
2147 int _Noreturn does_not_return
(void
) { for (;;) continue; }
2149 // Check _Static_assert.
2150 struct test_static_assert
2153 _Static_assert
(sizeof
(int
) <= sizeof
(long int
),
2154 "_Static_assert does not work in struct");
2158 // Check UTF-8 literals.
2159 #define u8 syntax error!
2160 char const utf8_literal
[] = u8
"happens to be ASCII" "another string";
2162 // Check duplicate typedefs.
2163 typedef long
*long_ptr
;
2164 typedef long int
*long_ptr
;
2165 typedef long_ptr long_ptr
;
2167 // Anonymous structures and unions
-- taken from C11
6.7.2.1 Example
1.
2171 struct
{ int i
; int j
; };
2172 struct
{ int k
; long int l
; } w
;
2178 # Test code for whether the C compiler supports C11 (body of main).
2179 ac_c_conftest_c11_main='
2180 _Static_assert
((offsetof
(struct anonymous
, i
)
2181 == offsetof
(struct anonymous
, w.k
)),
2182 "Anonymous union alignment botch");
2188 # Test code for whether the C compiler supports C11 (complete).
2189 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2190 ${ac_c_conftest_c99_globals}
2191 ${ac_c_conftest_c11_globals}
2194 main (int argc, char **argv)
2197 ${ac_c_conftest_c89_main}
2198 ${ac_c_conftest_c99_main}
2199 ${ac_c_conftest_c11_main}
2204 # Test code for whether the C compiler supports C99 (complete).
2205 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2206 ${ac_c_conftest_c99_globals}
2209 main (int argc, char **argv)
2212 ${ac_c_conftest_c89_main}
2213 ${ac_c_conftest_c99_main}
2218 # Test code for whether the C compiler supports C89 (complete).
2219 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2222 main (int argc, char **argv)
2225 ${ac_c_conftest_c89_main}
2230 # Test code for whether the C++ compiler supports C++98 (global declarations)
2231 ac_cxx_conftest_cxx98_globals='
2232 // Does the compiler advertise C
++98 conformance?
2233 #if !defined __cplusplus || __cplusplus < 199711L
2234 # error "Compiler does not advertise C++98 conformance"
2237 // These inclusions are to reject old compilers that
2238 // lack the unsuffixed header files.
2240 #include <exception>
2242 // <cassert
> and
<cstring
> are
*not
* freestanding headers
in C
++98.
2243 extern void assert
(int
);
2245 extern int strcmp
(const char
*, const char
*);
2248 // Namespaces
, exceptions
, and templates were all added after
"C++ 2.0".
2249 using std
::exception
;
2254 void test_exception_syntax
()
2258 } catch
(const char
*s
) {
2259 // Extra parentheses suppress a warning when building autoconf itself
,
2260 // due to lint rules shared with
more typical C programs.
2261 assert
(!(strcmp
) (s
, "test"));
2265 template
<typename T
> struct test_template
2268 explicit test_template
(T t
) : val
(t
) {}
2269 template
<typename U
> T add
(U u
) { return static_cast
<T
>(u
) + val
; }
2272 } // anonymous namespace
2275 # Test code for whether the C++ compiler supports C++98 (body of main)
2276 ac_cxx_conftest_cxx98_main='
2280 test_exception_syntax
();
2281 test_template
<double
> tt
(2.0);
2282 assert
(tt.add
(4) == 6.0);
2283 assert
(true
&& !false
);
2287 # Test code for whether the C++ compiler supports C++11 (global declarations)
2288 ac_cxx_conftest_cxx11_globals='
2289 // Does the compiler advertise C
++ 2011 conformance?
2290 #if !defined __cplusplus || __cplusplus < 201103L
2291 # error "Compiler does not advertise C++11 conformance"
2296 constexpr int get_val
() { return 20; }
2307 delegate
(int n
) : n
(n
) {}
2308 delegate
(): delegate
(2354) {}
2310 virtual int getval
() { return this-
>n
; };
2315 class overridden
: public delegate
2318 overridden
(int n
): delegate
(n
) {}
2319 virtual int getval
() override final
{ return this-
>n
* 2; }
2325 nocopy
(int i
): i
(i
) {}
2327 nocopy
(const nocopy
&) = delete
;
2328 nocopy
& operator
=(const nocopy
&) = delete
;
2333 // for testing lambda expressions
2334 template
<typename Ret
, typename Fn
> Ret
eval(Fn f
, Ret v
)
2339 // for testing variadic templates and trailing
return types
2340 template
<typename V
> auto
sum(V first
) -> V
2344 template
<typename V
, typename... Args
> auto
sum(V first
, Args... rest
) -> V
2346 return first
+ sum(rest...
);
2351 # Test code for whether the C++ compiler supports C++11 (body of main)
2352 ac_cxx_conftest_cxx11_main='
2354 // Test auto and decltype
2356 auto a2
= 48573953.4;
2357 auto a3
= "String literal";
2360 for (auto i
= a3
; *i
; ++i
) { total
+= *i
; }
2362 decltype
(a2
) a4
= 34895.034;
2366 short sa
[cxx11test
::get_val
()] = { 0 };
2369 // Test initializer lists
2370 cxx11test
::testinit il
= { 4323, 435234.23544 };
2373 // Test range-based
for
2374 int array
[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2375 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2376 for (auto
&x
: array
) { x
+= 23; }
2379 // Test lambda expressions
2380 using cxx11test
::eval;
2381 assert
(eval ([](int x
) { return x
*2; }, 21) == 42);
2383 assert
(eval ([&](double x
) { return d
+= x
; }, 3.0) == 5.0);
2385 assert
(eval ([=](double x
) mutable
{ return d
+= x
; }, 4.0) == 9.0);
2389 // Test use of variadic templates
2390 using cxx11test
::sum;
2393 auto c
= sum(1.0, 2.0, 3.0);
2396 // Test constructor delegation
2397 cxx11test
::delegate d1
;
2398 cxx11test
::delegate d2
();
2399 cxx11test
::delegate d3
(45);
2402 // Test override and final
2403 cxx11test
::overridden o1
(55464);
2410 // Test template brackets
2411 test_template
<::test_template
<int
>> v
(test_template
<int
>(12));
2415 char const
*utf8
= u8
"UTF-8 string \u2500";
2416 char16_t const
*utf16
= u
"UTF-8 string \u2500";
2417 char32_t const
*utf32
= U
"UTF-32 string \u2500";
2421 # Test code for whether the C compiler supports C++11 (complete).
2422 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2423 ${ac_cxx_conftest_cxx11_globals}
2426 main (int argc, char **argv)
2429 ${ac_cxx_conftest_cxx98_main}
2430 ${ac_cxx_conftest_cxx11_main}
2435 # Test code for whether the C compiler supports C++98 (complete).
2436 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2438 main (int argc, char **argv)
2441 ${ac_cxx_conftest_cxx98_main}
2447 # Auxiliary files required by this configure script.
2448 ac_aux_files="missing install-sh config.guess config.sub compile"
2450 # Locations in which to look for auxiliary files.
2451 ac_aux_dir_candidates="${srcdir}/build-aux"
2453 # Search for a directory containing all of the required auxiliary files,
2454 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2455 # If we don't
find one directory that contains all the files we need
,
2456 # we report the set of missing files from the *first* directory in
2457 # $ac_aux_dir_candidates and give up.
2458 ac_missing_aux_files
=""
2459 ac_first_candidate
=:
2460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2463 for as_dir
in $ac_aux_dir_candidates
2466 case $as_dir in #(((
2469 *) as_dir
=$as_dir/ ;;
2473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2474 ac_aux_dir_found
=yes
2476 for ac_aux
in $ac_aux_files
2478 # As a special case, if "install-sh" is required, that requirement
2479 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2480 # and $ac_install_sh is set appropriately for whichever one is found.
2481 if test x
"$ac_aux" = x
"install-sh"
2483 if test -f "${as_dir}install-sh"; then
2484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2485 ac_install_sh
="${as_dir}install-sh -c"
2486 elif test -f "${as_dir}install.sh"; then
2487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2488 ac_install_sh
="${as_dir}install.sh -c"
2489 elif test -f "${as_dir}shtool"; then
2490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2491 ac_install_sh
="${as_dir}shtool install -c"
2494 if $ac_first_candidate; then
2495 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
2501 if test -f "${as_dir}${ac_aux}"; then
2502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2505 if $ac_first_candidate; then
2506 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
2513 if test "$ac_aux_dir_found" = yes; then
2514 ac_aux_dir
="$as_dir"
2517 ac_first_candidate
=false
2526 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2530 # These three variables are undocumented and unsupported,
2531 # and are intended to be withdrawn in a future Autoconf release.
2532 # They can cause serious problems if a builder's source tree is in a directory
2533 # whose full name contains unusual characters.
2534 if test -f "${ac_aux_dir}config.guess"; then
2535 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
2537 if test -f "${ac_aux_dir}config.sub"; then
2538 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
2540 if test -f "$ac_aux_dir/configure"; then
2541 ac_configure
="$SHELL ${ac_aux_dir}configure"
2544 # Check that the precious variables saved in the cache have kept the same
2546 ac_cache_corrupted
=false
2547 for ac_var
in $ac_precious_vars; do
2548 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2549 eval ac_new_set
=\
$ac_env_${ac_var}_set
2550 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2551 eval ac_new_val
=\
$ac_env_${ac_var}_value
2552 case $ac_old_set,$ac_new_set in
2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2555 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2556 ac_cache_corrupted
=: ;;
2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2559 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2560 ac_cache_corrupted
=: ;;
2563 if test "x$ac_old_val" != "x$ac_new_val"; then
2564 # differences in whitespace do not lead to failure.
2565 ac_old_val_w
=`echo x $ac_old_val`
2566 ac_new_val_w
=`echo x $ac_new_val`
2567 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2569 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2570 ac_cache_corrupted
=:
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2573 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2574 eval $ac_var=\
$ac_old_val
2576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2577 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2579 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2582 # Pass precious variables to config.status.
2583 if test "$ac_new_set" = set; then
2585 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586 *) ac_arg
=$ac_var=$ac_new_val ;;
2588 case " $ac_configure_args " in
2589 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2590 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2594 if $ac_cache_corrupted; then
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2598 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2599 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2600 and start over" "$LINENO" 5
2602 ## -------------------- ##
2603 ## Main body of script. ##
2604 ## -------------------- ##
2607 ac_cpp
='$CPP $CPPFLAGS'
2608 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2627 ac_cpp
='$CPP $CPPFLAGS'
2628 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2633 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 printf %s
"checking for $ac_word... " >&6; }
2636 if test ${ac_cv_prog_CC+y}
2638 printf %s
"(cached) " >&6
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC
="$CC" # Let the user override the test.
2643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2647 case $as_dir in #(((
2650 *) as_dir
=$as_dir/ ;;
2652 for ac_exec_ext
in '' $ac_executable_extensions; do
2653 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2665 if test -n "$CC"; then
2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2667 printf "%s\n" "$CC" >&6; }
2669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 printf "%s\n" "no" >&6; }
2675 if test -z "$ac_cv_prog_CC"; then
2677 # Extract the first word of "gcc", so it can be a program name with args.
2678 set dummy gcc
; ac_word
=$2
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 printf %s
"checking for $ac_word... " >&6; }
2681 if test ${ac_cv_prog_ac_ct_CC+y}
2683 printf %s
"(cached) " >&6
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2692 case $as_dir in #(((
2695 *) as_dir
=$as_dir/ ;;
2697 for ac_exec_ext
in '' $ac_executable_extensions; do
2698 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2699 ac_cv_prog_ac_ct_CC
="gcc"
2700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2709 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2710 if test -n "$ac_ct_CC"; then
2711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2712 printf "%s\n" "$ac_ct_CC" >&6; }
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 printf "%s\n" "no" >&6; }
2718 if test "x$ac_ct_CC" = x
; then
2721 case $cross_compiling:$ac_tool_warned in
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2724 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2725 ac_tool_warned
=yes ;;
2733 if test -z "$CC"; then
2734 if test -n "$ac_tool_prefix"; then
2735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2736 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 printf %s
"checking for $ac_word... " >&6; }
2739 if test ${ac_cv_prog_CC+y}
2741 printf %s
"(cached) " >&6
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC
="$CC" # Let the user override the test.
2746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2750 case $as_dir in #(((
2753 *) as_dir
=$as_dir/ ;;
2755 for ac_exec_ext
in '' $ac_executable_extensions; do
2756 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2768 if test -n "$CC"; then
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2770 printf "%s\n" "$CC" >&6; }
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 printf "%s\n" "no" >&6; }
2779 if test -z "$CC"; then
2780 # Extract the first word of "cc", so it can be a program name with args.
2781 set dummy cc
; ac_word
=$2
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 printf %s
"checking for $ac_word... " >&6; }
2784 if test ${ac_cv_prog_CC+y}
2786 printf %s
"(cached) " >&6
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC
="$CC" # Let the user override the test.
2792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2796 case $as_dir in #(((
2799 *) as_dir
=$as_dir/ ;;
2801 for ac_exec_ext
in '' $ac_executable_extensions; do
2802 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2803 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2804 ac_prog_rejected
=yes
2808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2815 if test $ac_prog_rejected = yes; then
2816 # We found a bogon in the path, so make sure we never use it.
2817 set dummy
$ac_cv_prog_CC
2819 if test $# != 0; then
2820 # We chose a different compiler from the bogus one.
2821 # However, it has the same basename, so the bogon will be chosen
2822 # first if we set CC to just the basename; use the full file name.
2824 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
2830 if test -n "$CC"; then
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2832 printf "%s\n" "$CC" >&6; }
2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 printf "%s\n" "no" >&6; }
2840 if test -z "$CC"; then
2841 if test -n "$ac_tool_prefix"; then
2842 for ac_prog
in cl.exe
2844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2845 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 printf %s
"checking for $ac_word... " >&6; }
2848 if test ${ac_cv_prog_CC+y}
2850 printf %s
"(cached) " >&6
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC
="$CC" # Let the user override the test.
2855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2859 case $as_dir in #(((
2862 *) as_dir
=$as_dir/ ;;
2864 for ac_exec_ext
in '' $ac_executable_extensions; do
2865 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2877 if test -n "$CC"; then
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 printf "%s\n" "$CC" >&6; }
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 printf "%s\n" "no" >&6; }
2886 test -n "$CC" && break
2889 if test -z "$CC"; then
2891 for ac_prog
in cl.exe
2893 # Extract the first word of "$ac_prog", so it can be a program name with args.
2894 set dummy
$ac_prog; ac_word
=$2
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 printf %s
"checking for $ac_word... " >&6; }
2897 if test ${ac_cv_prog_ac_ct_CC+y}
2899 printf %s
"(cached) " >&6
2901 if test -n "$ac_ct_CC"; then
2902 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2908 case $as_dir in #(((
2911 *) as_dir
=$as_dir/ ;;
2913 for ac_exec_ext
in '' $ac_executable_extensions; do
2914 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_ac_ct_CC
="$ac_prog"
2916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2925 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2926 if test -n "$ac_ct_CC"; then
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2928 printf "%s\n" "$ac_ct_CC" >&6; }
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 printf "%s\n" "no" >&6; }
2935 test -n "$ac_ct_CC" && break
2938 if test "x$ac_ct_CC" = x
; then
2941 case $cross_compiling:$ac_tool_warned in
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned
=yes ;;
2952 if test -z "$CC"; then
2953 if test -n "$ac_tool_prefix"; then
2954 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2955 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 printf %s
"checking for $ac_word... " >&6; }
2958 if test ${ac_cv_prog_CC+y}
2960 printf %s
"(cached) " >&6
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC
="$CC" # Let the user override the test.
2965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2969 case $as_dir in #(((
2972 *) as_dir
=$as_dir/ ;;
2974 for ac_exec_ext
in '' $ac_executable_extensions; do
2975 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_CC
="${ac_tool_prefix}clang"
2977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2987 if test -n "$CC"; then
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2989 printf "%s\n" "$CC" >&6; }
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 printf "%s\n" "no" >&6; }
2997 if test -z "$ac_cv_prog_CC"; then
2999 # Extract the first word of "clang", so it can be a program name with args.
3000 set dummy clang
; ac_word
=$2
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 printf %s
"checking for $ac_word... " >&6; }
3003 if test ${ac_cv_prog_ac_ct_CC+y}
3005 printf %s
"(cached) " >&6
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3014 case $as_dir in #(((
3017 *) as_dir
=$as_dir/ ;;
3019 for ac_exec_ext
in '' $ac_executable_extensions; do
3020 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_ac_ct_CC
="clang"
3022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3031 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3032 if test -n "$ac_ct_CC"; then
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3034 printf "%s\n" "$ac_ct_CC" >&6; }
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 printf "%s\n" "no" >&6; }
3040 if test "x$ac_ct_CC" = x
; then
3043 case $cross_compiling:$ac_tool_warned in
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned
=yes ;;
3058 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3060 as_fn_error $?
"no acceptable C compiler found in \$PATH
3061 See \`config.log' for more details" "$LINENO" 5; }
3063 # Provide some information about the compiler.
3064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3067 for ac_option
in --version -v -V -qversion -version; do
3068 { { ac_try
="$ac_compiler $ac_option >&5"
3070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 printf "%s\n" "$ac_try_echo"; } >&5
3075 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3077 if test -s conftest.err; then
3079 ... rest of stderr output deleted ...
3080 10q' conftest.err >conftest.er1
3081 cat conftest.er1 >&5
3083 rm -f conftest.er1 conftest.err
3084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085 test $ac_status = 0; }
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3099 ac_clean_files_save=$ac_clean_files
3100 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3101 # Try to create an executable without -o first, disregard a.out.
3102 # It will help us diagnose broken compilers, and finding out an intuition
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3105 printf %s "checking whether the C compiler works... " >&6; }
3106 ac_link_default=`printf "%s\n" "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3108 # The possible output files:
3109 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3112 for ac_file in $ac_files
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3121 if { { ac_try="$ac_link_default"
3123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3124 *) ac_try_echo
=$ac_try;;
3126 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 printf "%s\n" "$ac_try_echo"; } >&5
3128 (eval "$ac_link_default") 2>&5
3130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131 test $ac_status = 0; }
3133 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3134 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3135 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3136 # so that the user can short-circuit this test for compilers unknown to
3138 for ac_file
in $ac_files ''
3140 test -f "$ac_file" ||
continue
3142 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3145 # We found the default executable, but exeext='' is most
3149 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
3151 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153 # We set ac_cv_exeext here because the later test for it is not
3154 # safe: cross compilers may not add the suffix if given an `-o'
3155 # argument, so we may need to know it at that point already.
3156 # Even if this section looks crufty: it has the advantage of
3163 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3168 if test -z "$ac_file"
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 printf "%s\n" "no" >&6; }
3172 printf "%s\n" "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.
$ac_ext >&5
3175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3177 as_fn_error
77 "C compiler cannot create executables
3178 See \`config.log' for more details" "$LINENO" 5; }
3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181 printf "%s\n" "yes" >&6; }
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3184 printf %s
"checking for C compiler default output file name... " >&6; }
3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3186 printf "%s\n" "$ac_file" >&6; }
3187 ac_exeext
=$ac_cv_exeext
3189 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3190 ac_clean_files
=$ac_clean_files_save
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3192 printf %s
"checking for suffix of executables... " >&6; }
3193 if { { ac_try
="$ac_link"
3195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 printf "%s\n" "$ac_try_echo"; } >&5
3200 (eval "$ac_link") 2>&5
3202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }
3205 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3206 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3207 # work properly (i.e., refer to `conftest.exe'), while it won't with
3209 for ac_file
in conftest.exe conftest conftest.
*; do
3210 test -f "$ac_file" ||
continue
3212 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3213 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3222 See \`config.log' for more details" "$LINENO" 5; }
3224 rm -f conftest conftest
$ac_cv_exeext
3225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3226 printf "%s\n" "$ac_cv_exeext" >&6; }
3228 rm -f conftest.
$ac_ext
3229 EXEEXT
=$ac_cv_exeext
3231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3237 FILE *f = fopen ("conftest.out", "w");
3238 return ferror (f) || fclose (f) != 0;
3244 ac_clean_files
="$ac_clean_files conftest.out"
3245 # Check that the compiler produces executables we can run. If not, either
3246 # the compiler is broken, or we cross compile.
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3248 printf %s
"checking whether we are cross compiling... " >&6; }
3249 if test "$cross_compiling" != yes; then
3250 { { ac_try
="$ac_link"
3252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 printf "%s\n" "$ac_try_echo"; } >&5
3257 (eval "$ac_link") 2>&5
3259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }
3261 if { ac_try='./conftest$ac_cv_exeext'
3262 { { case "(($ac_try" in
3263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3264 *) ac_try_echo
=$ac_try;;
3266 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 printf "%s\n" "$ac_try_echo"; } >&5
3268 (eval "$ac_try") 2>&5
3270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; }; then
3274 if test "$cross_compiling" = maybe
; then
3277 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error
77 "cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \`config.log' for more details" "$LINENO" 5; }
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3286 printf "%s\n" "$cross_compiling" >&6; }
3288 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3289 ac_clean_files
=$ac_clean_files_save
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3291 printf %s
"checking for suffix of object files... " >&6; }
3292 if test ${ac_cv_objext+y}
3294 printf %s
"(cached) " >&6
3296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3307 rm -f conftest.o conftest.obj
3308 if { { ac_try
="$ac_compile"
3310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 printf "%s\n" "$ac_try_echo"; } >&5
3315 (eval "$ac_compile") 2>&5
3317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }
3320 for ac_file in conftest.o conftest.obj conftest.*; do
3321 test -f "$ac_file" || continue;
3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3324 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3329 printf "%s\n" "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3335 See \
`config.log' for more details" "$LINENO" 5; }
3337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3340 printf "%s\n" "$ac_cv_objext" >&6; }
3341 OBJEXT=$ac_cv_objext
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3344 printf %s "checking whether the compiler supports GNU C... " >&6; }
3345 if test ${ac_cv_c_compiler_gnu+y}
3347 printf %s "(cached) " >&6
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3363 if ac_fn_c_try_compile "$LINENO"
3369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3370 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3374 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377 if test $ac_compiler_gnu = yes; then
3382 ac_test_CFLAGS=${CFLAGS+y}
3383 ac_save_CFLAGS=$CFLAGS
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3385 printf %s "checking whether $CC accepts -g... " >&6; }
3386 if test ${ac_cv_prog_cc_g+y}
3388 printf %s "(cached) " >&6
3390 ac_save_c_werror_flag=$ac_c_werror_flag
3391 ac_c_werror_flag=yes
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3405 if ac_fn_c_try_compile "$LINENO"
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3421 if ac_fn_c_try_compile "$LINENO"
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3438 if ac_fn_c_try_compile "$LINENO"
3442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3447 ac_c_werror_flag=$ac_save_c_werror_flag
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3450 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3451 if test $ac_test_CFLAGS; then
3452 CFLAGS=$ac_save_CFLAGS
3453 elif test $ac_cv_prog_cc_g = yes; then
3454 if test "$GCC" = yes; then
3460 if test "$GCC" = yes; then
3467 if test x$ac_prog_cc_stdc = xno
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3470 printf %s "checking for $CC option to enable C11 features... " >&6; }
3471 if test ${ac_cv_prog_cc_c11+y}
3473 printf %s "(cached) " >&6
3475 ac_cv_prog_cc_c11=no
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479 $ac_c_conftest_c11_program
3481 for ac_arg in '' -std=gnu11
3483 CC="$ac_save_CC $ac_arg"
3484 if ac_fn_c_try_compile "$LINENO"
3486 ac_cv_prog_cc_c11=$ac_arg
3488 rm -f core conftest.err conftest.$ac_objext conftest.beam
3489 test "x$ac_cv_prog_cc_c11" != "xno" && break
3491 rm -f conftest.$ac_ext
3495 if test "x$ac_cv_prog_cc_c11" = xno
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3498 printf "%s\n" "unsupported" >&6; }
3500 if test "x$ac_cv_prog_cc_c11" = x
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3503 printf "%s\n" "none needed" >&6; }
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3506 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3507 CC="$CC $ac_cv_prog_cc_c11"
3509 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3513 if test x$ac_prog_cc_stdc = xno
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3516 printf %s "checking for $CC option to enable C99 features... " >&6; }
3517 if test ${ac_cv_prog_cc_c99+y}
3519 printf %s "(cached) " >&6
3521 ac_cv_prog_cc_c99=no
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3525 $ac_c_conftest_c99_program
3527 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3529 CC="$ac_save_CC $ac_arg"
3530 if ac_fn_c_try_compile "$LINENO"
3532 ac_cv_prog_cc_c99=$ac_arg
3534 rm -f core conftest.err conftest.$ac_objext conftest.beam
3535 test "x$ac_cv_prog_cc_c99" != "xno" && break
3537 rm -f conftest.$ac_ext
3541 if test "x$ac_cv_prog_cc_c99" = xno
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3544 printf "%s\n" "unsupported" >&6; }
3546 if test "x$ac_cv_prog_cc_c99" = x
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3549 printf "%s\n" "none needed" >&6; }
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3552 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3553 CC="$CC $ac_cv_prog_cc_c99"
3555 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3559 if test x$ac_prog_cc_stdc = xno
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3562 printf %s "checking for $CC option to enable C89 features... " >&6; }
3563 if test ${ac_cv_prog_cc_c89+y}
3565 printf %s "(cached) " >&6
3567 ac_cv_prog_cc_c89=no
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3571 $ac_c_conftest_c89_program
3573 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3575 CC="$ac_save_CC $ac_arg"
3576 if ac_fn_c_try_compile "$LINENO"
3578 ac_cv_prog_cc_c89=$ac_arg
3580 rm -f core conftest.err conftest.$ac_objext conftest.beam
3581 test "x$ac_cv_prog_cc_c89" != "xno" && break
3583 rm -f conftest.$ac_ext
3587 if test "x$ac_cv_prog_cc_c89" = xno
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3590 printf "%s\n" "unsupported" >&6; }
3592 if test "x$ac_cv_prog_cc_c89" = x
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3595 printf "%s\n" "none needed" >&6; }
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3598 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3599 CC="$CC $ac_cv_prog_cc_c89"
3601 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3607 ac_cpp='$CPP $CPPFLAGS'
3608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 # Expand $ac_aux_dir to an absolute path.
3615 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3624 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3625 if test ${am_cv_prog_cc_c_o+y}
3627 printf %s "(cached) " >&6
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3640 # Make sure it works both with $CC and with simple cc.
3641 # Following AC_PROG_CC_C_O, we do the test twice because some
3642 # compilers refuse to overwrite an existing .o file with -o,
3643 # though they will create one.
3644 am_cv_prog_cc_c_o=yes
3646 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3647 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } \
3651 && test -f conftest2.$ac_objext; then
3654 am_cv_prog_cc_c_o=no
3658 rm -f core conftest*
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3662 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3663 if test "$am_cv_prog_cc_c_o" != yes; then
3664 # Losing compiler, so override with the script.
3665 # FIXME: It is wrong to rewrite CC.
3666 # But if we don't then we get into trouble of one sort or another.
3667 # A longer-term fix would be to have automake use am__CC in this case,
3668 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3669 CC="$am_aux_dir/compile $CC"
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 ac_cpp='$CXXCPP $CPPFLAGS'
3686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3689 if test -z "$CXX"; then
3690 if test -n "$CCC"; then
3693 if test -n "$ac_tool_prefix"; then
3694 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 printf %s "checking for $ac_word... " >&6; }
3700 if test ${ac_cv_prog_CXX+y}
3702 printf %s "(cached) " >&6
3704 if test -n "$CXX"; then
3705 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 case $as_dir in #(((
3714 *) as_dir=$as_dir/ ;;
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3729 if test -n "$CXX"; then
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3731 printf "%s\n" "$CXX" >&6; }
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 printf "%s\n" "no" >&6; }
3738 test -n "$CXX" && break
3741 if test -z "$CXX"; then
3743 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3745 # Extract the first word of "$ac_prog", so it can be a program name with args.
3746 set dummy $ac_prog; ac_word=$2
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 printf %s "checking for $ac_word... " >&6; }
3749 if test ${ac_cv_prog_ac_ct_CXX+y}
3751 printf %s "(cached) " >&6
3753 if test -n "$ac_ct_CXX"; then
3754 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 case $as_dir in #(((
3763 *) as_dir=$as_dir/ ;;
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_ac_ct_CXX="$ac_prog"
3768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3777 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3778 if test -n "$ac_ct_CXX"; then
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3780 printf "%s\n" "$ac_ct_CXX" >&6; }
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 printf "%s\n" "no" >&6; }
3787 test -n "$ac_ct_CXX" && break
3790 if test "x$ac_ct_CXX" = x; then
3793 case $cross_compiling:$ac_tool_warned in
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797 ac_tool_warned=yes ;;
3805 # Provide some information about the compiler.
3806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3809 for ac_option in --version -v -V -qversion; do
3810 { { ac_try="$ac_compiler $ac_option >&5"
3812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3813 *) ac_try_echo
=$ac_try;;
3815 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 printf "%s\n" "$ac_try_echo"; } >&5
3817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3819 if test -s conftest.err
; then
3821 ... rest of stderr output deleted ...
3822 10q' conftest.err
>conftest.er1
3823 cat conftest.er1
>&5
3825 rm -f conftest.er1 conftest.err
3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3831 printf %s
"checking whether the compiler supports GNU C++... " >&6; }
3832 if test ${ac_cv_cxx_compiler_gnu+y}
3834 printf %s
"(cached) " >&6
3836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3850 if ac_fn_cxx_try_compile
"$LINENO"
3856 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3857 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3861 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
3862 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3864 if test $ac_compiler_gnu = yes; then
3869 ac_test_CXXFLAGS
=${CXXFLAGS+y}
3870 ac_save_CXXFLAGS
=$CXXFLAGS
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3872 printf %s
"checking whether $CXX accepts -g... " >&6; }
3873 if test ${ac_cv_prog_cxx_g+y}
3875 printf %s
"(cached) " >&6
3877 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3878 ac_cxx_werror_flag
=yes
3881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3892 if ac_fn_cxx_try_compile
"$LINENO"
3894 ac_cv_prog_cxx_g
=yes
3897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3908 if ac_fn_cxx_try_compile
"$LINENO"
3912 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3925 if ac_fn_cxx_try_compile
"$LINENO"
3927 ac_cv_prog_cxx_g
=yes
3929 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3931 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3933 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3934 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3937 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
3938 if test $ac_test_CXXFLAGS; then
3939 CXXFLAGS
=$ac_save_CXXFLAGS
3940 elif test $ac_cv_prog_cxx_g = yes; then
3941 if test "$GXX" = yes; then
3947 if test "$GXX" = yes; then
3953 ac_prog_cxx_stdcxx
=no
3954 if test x
$ac_prog_cxx_stdcxx = xno
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
3957 printf %s
"checking for $CXX option to enable C++11 features... " >&6; }
3958 if test ${ac_cv_prog_cxx_11+y}
3960 printf %s
"(cached) " >&6
3962 ac_cv_prog_cxx_11
=no
3964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 $ac_cxx_conftest_cxx11_program
3968 for ac_arg
in '' -std=gnu
++11 -std=gnu
++0x
-std=c
++11 -std=c
++0x
-qlanglvl=extended0x
-AA
3970 CXX
="$ac_save_CXX $ac_arg"
3971 if ac_fn_cxx_try_compile
"$LINENO"
3973 ac_cv_prog_cxx_cxx11
=$ac_arg
3975 rm -f core conftest.err conftest.
$ac_objext conftest.beam
3976 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
3978 rm -f conftest.
$ac_ext
3982 if test "x$ac_cv_prog_cxx_cxx11" = xno
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3985 printf "%s\n" "unsupported" >&6; }
3987 if test "x$ac_cv_prog_cxx_cxx11" = x
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3990 printf "%s\n" "none needed" >&6; }
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
3993 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
3994 CXX
="$CXX $ac_cv_prog_cxx_cxx11"
3996 ac_cv_prog_cxx_stdcxx
=$ac_cv_prog_cxx_cxx11
3997 ac_prog_cxx_stdcxx
=cxx11
4000 if test x
$ac_prog_cxx_stdcxx = xno
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4003 printf %s
"checking for $CXX option to enable C++98 features... " >&6; }
4004 if test ${ac_cv_prog_cxx_98+y}
4006 printf %s
"(cached) " >&6
4008 ac_cv_prog_cxx_98
=no
4010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 $ac_cxx_conftest_cxx98_program
4014 for ac_arg
in '' -std=gnu
++98 -std=c
++98 -qlanglvl=extended
-AA
4016 CXX
="$ac_save_CXX $ac_arg"
4017 if ac_fn_cxx_try_compile
"$LINENO"
4019 ac_cv_prog_cxx_cxx98
=$ac_arg
4021 rm -f core conftest.err conftest.
$ac_objext conftest.beam
4022 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4024 rm -f conftest.
$ac_ext
4028 if test "x$ac_cv_prog_cxx_cxx98" = xno
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4031 printf "%s\n" "unsupported" >&6; }
4033 if test "x$ac_cv_prog_cxx_cxx98" = x
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4036 printf "%s\n" "none needed" >&6; }
4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4039 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4040 CXX
="$CXX $ac_cv_prog_cxx_cxx98"
4042 ac_cv_prog_cxx_stdcxx
=$ac_cv_prog_cxx_cxx98
4043 ac_prog_cxx_stdcxx
=cxx98
4048 ac_cpp
='$CPP $CPPFLAGS'
4049 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4054 printf %s
"checking for a sed that does not truncate output... " >&6; }
4055 if test ${ac_cv_path_SED+y}
4057 printf %s
"(cached) " >&6
4059 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4060 for ac_i
in 1 2 3 4 5 6 7; do
4061 ac_script
="$ac_script$as_nl$ac_script"
4063 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4064 { ac_script
=; unset ac_script
;}
4065 if test -z "$SED"; then
4066 ac_path_SED_found
=false
4067 # Loop through the user's path and test for each of PROGNAME-LIST
4068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4072 case $as_dir in #(((
4075 *) as_dir
=$as_dir/ ;;
4077 for ac_prog
in sed gsed
4079 for ac_exec_ext
in '' $ac_executable_extensions; do
4080 ac_path_SED
="$as_dir$ac_prog$ac_exec_ext"
4081 as_fn_executable_p
"$ac_path_SED" ||
continue
4082 # Check for GNU ac_path_SED and select it if it is found.
4083 # Check for GNU $ac_path_SED
4084 case `"$ac_path_SED" --version 2>&1` in
4086 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4089 printf %s
0123456789 >"conftest.in"
4092 cat "conftest.in" "conftest.in" >"conftest.tmp"
4093 mv "conftest.tmp" "conftest.in"
4094 cp "conftest.in" "conftest.nl"
4095 printf "%s\n" '' >> "conftest.nl"
4096 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4097 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4098 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4099 if test $ac_count -gt ${ac_path_SED_max-0}; then
4100 # Best one so far, save it but keep looking for a better one
4101 ac_cv_path_SED
="$ac_path_SED"
4102 ac_path_SED_max
=$ac_count
4104 # 10*(2^10) chars as input seems more than enough
4105 test $ac_count -gt 10 && break
4107 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4110 $ac_path_SED_found && break 3
4115 if test -z "$ac_cv_path_SED"; then
4116 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4124 printf "%s\n" "$ac_cv_path_SED" >&6; }
4125 SED
="$ac_cv_path_SED"
4129 ac_cpp
='$CXXCPP $CPPFLAGS'
4130 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4136 # Make sure we can run config.sub.
4137 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
4138 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4141 printf %s
"checking build system type... " >&6; }
4142 if test ${ac_cv_build+y}
4144 printf %s
"(cached) " >&6
4146 ac_build_alias
=$build_alias
4147 test "x$ac_build_alias" = x
&&
4148 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
4149 test "x$ac_build_alias" = x
&&
4150 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4151 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4152 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4156 printf "%s\n" "$ac_cv_build" >&6; }
4157 case $ac_cv_build in
4159 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4162 ac_save_IFS
=$IFS; IFS
='-'
4168 # Remember, the first character of IFS is used to create $*,
4169 # except with old shells:
4172 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4176 printf %s
"checking host system type... " >&6; }
4177 if test ${ac_cv_host+y}
4179 printf %s
"(cached) " >&6
4181 if test "x$host_alias" = x
; then
4182 ac_cv_host
=$ac_cv_build
4184 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4185 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4190 printf "%s\n" "$ac_cv_host" >&6; }
4193 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4196 ac_save_IFS
=$IFS; IFS
='-'
4202 # Remember, the first character of IFS is used to create $*,
4203 # except with old shells:
4206 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4209 am__api_version
='1.16'
4212 # Find a good install program. We prefer a C program (faster),
4213 # so one script is as good as another. But avoid the broken or
4214 # incompatible versions:
4215 # SysV /etc/install, /usr/sbin/install
4216 # SunOS /usr/etc/install
4217 # IRIX /sbin/install
4219 # AmigaOS /C/install, which installs bootblocks on floppy discs
4220 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4221 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4222 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4223 # OS/2's system install, which has a completely different semantic
4224 # ./install, which can be erroneously created by make from ./install.sh.
4225 # Reject install programs that cannot install multiple files.
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4227 printf %s
"checking for a BSD-compatible install... " >&6; }
4228 if test -z "$INSTALL"; then
4229 if test ${ac_cv_path_install+y}
4231 printf %s
"(cached) " >&6
4233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4237 case $as_dir in #(((
4240 *) as_dir
=$as_dir/ ;;
4242 # Account for fact that we put trailing slashes in our PATH walk.
4245 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4246 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4249 # OSF1 and SCO ODT 3.0 have their own names for install.
4250 # Don't use installbsd from OSF since it installs stuff as root
4252 for ac_prog
in ginstall scoinst
install; do
4253 for ac_exec_ext
in '' $ac_executable_extensions; do
4254 if as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext"; then
4255 if test $ac_prog = install &&
4256 grep dspmsg
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4257 # AIX install. It has an incompatible calling convention.
4259 elif test $ac_prog = install &&
4260 grep pwplus
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4261 # program-specific install script used by HP pwplus--don't use.
4264 rm -rf conftest.one conftest.two conftest.dir
4265 echo one
> conftest.one
4266 echo two
> conftest.two
4268 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir/" &&
4269 test -s conftest.one
&& test -s conftest.two
&&
4270 test -s conftest.dir
/conftest.one
&&
4271 test -s conftest.dir
/conftest.two
4273 ac_cv_path_install
="$as_dir$ac_prog$ac_exec_ext -c"
4286 rm -rf conftest.one conftest.two conftest.dir
4289 if test ${ac_cv_path_install+y}; then
4290 INSTALL
=$ac_cv_path_install
4292 # As a last resort, use the slow shell script. Don't cache a
4293 # value for INSTALL within a source directory, because that will
4294 # break other packages using the cache if that directory is
4295 # removed, or if the value is a relative name.
4296 INSTALL
=$ac_install_sh
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4300 printf "%s\n" "$INSTALL" >&6; }
4302 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4303 # It thinks the first close brace ends the variable substitution.
4304 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4306 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4308 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4311 printf %s
"checking whether build environment is sane... " >&6; }
4312 # Reject unsafe characters in $srcdir or the absolute working directory
4313 # name. Accept space and tab only in the latter.
4317 *[\\\"\
#\$\&\'\`$am_lf]*)
4318 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
4321 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
4322 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4325 # Do 'set' in a subshell so we don't clobber the current shell's
4326 # arguments. Must try -L first in case configure is actually a
4327 # symlink; some systems play weird games with the mod time of symlinks
4328 # (eg FreeBSD returns the mod time of the symlink's containing
4332 for am_try
in 1 2; do
4333 echo "timestamp, slept: $am_has_slept" > conftest.
file
4334 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4335 if test "$*" = "X"; then
4337 set X
`ls -t "$srcdir/configure" conftest.file`
4339 if test "$*" != "X $srcdir/configure conftest.file" \
4340 && test "$*" != "X conftest.file $srcdir/configure"; then
4342 # If neither matched, then we have a broken ls. This can happen
4343 # if, for instance, CONFIG_SHELL is bash and it inherits a
4344 # broken ls alias from the environment. This has actually
4345 # happened. Such a system could not be considered "sane".
4346 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
4347 alias in your environment" "$LINENO" 5
4349 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
4356 test "$2" = conftest.
file
4362 as_fn_error $?
"newly created file is older than distributed files!
4363 Check your system clock" "$LINENO" 5
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4366 printf "%s\n" "yes" >&6; }
4367 # If we didn't sleep, we still need to ensure time stamps of config.status and
4368 # generated files are strictly newer.
4370 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
4377 test "$program_prefix" != NONE
&&
4378 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4379 # Use a double $ so make ignores it.
4380 test "$program_suffix" != NONE
&&
4381 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4382 # Double any \ or $.
4383 # By default was `s,x,x', remove it if useless.
4384 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4385 program_transform_name
=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4388 if test x
"${MISSING+set}" != xset
; then
4389 MISSING
="\${SHELL} '$am_aux_dir/missing'"
4391 # Use eval to expand $SHELL
4392 if eval "$MISSING --is-lightweight"; then
4393 am_missing_run
="$MISSING "
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4397 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4400 if test x
"${install_sh+set}" != xset
; then
4403 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4405 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4409 # Installed binaries are usually stripped using 'strip' when the user
4410 # run "make install-strip". However 'strip' might not be the right
4411 # tool to use in cross-compilation environments, therefore Automake
4412 # will honor the 'STRIP' environment variable to overrule this program.
4413 if test "$cross_compiling" != no
; then
4414 if test -n "$ac_tool_prefix"; then
4415 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4416 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 printf %s
"checking for $ac_word... " >&6; }
4419 if test ${ac_cv_prog_STRIP+y}
4421 printf %s
"(cached) " >&6
4423 if test -n "$STRIP"; then
4424 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4430 case $as_dir in #(((
4433 *) as_dir
=$as_dir/ ;;
4435 for ac_exec_ext
in '' $ac_executable_extensions; do
4436 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4447 STRIP
=$ac_cv_prog_STRIP
4448 if test -n "$STRIP"; then
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4450 printf "%s\n" "$STRIP" >&6; }
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 printf "%s\n" "no" >&6; }
4458 if test -z "$ac_cv_prog_STRIP"; then
4460 # Extract the first word of "strip", so it can be a program name with args.
4461 set dummy strip
; ac_word
=$2
4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 printf %s
"checking for $ac_word... " >&6; }
4464 if test ${ac_cv_prog_ac_ct_STRIP+y}
4466 printf %s
"(cached) " >&6
4468 if test -n "$ac_ct_STRIP"; then
4469 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4475 case $as_dir in #(((
4478 *) as_dir
=$as_dir/ ;;
4480 for ac_exec_ext
in '' $ac_executable_extensions; do
4481 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4482 ac_cv_prog_ac_ct_STRIP
="strip"
4483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4492 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4493 if test -n "$ac_ct_STRIP"; then
4494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4495 printf "%s\n" "$ac_ct_STRIP" >&6; }
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 printf "%s\n" "no" >&6; }
4501 if test "x$ac_ct_STRIP" = x
; then
4504 case $cross_compiling:$ac_tool_warned in
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4507 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4508 ac_tool_warned
=yes ;;
4513 STRIP
="$ac_cv_prog_STRIP"
4517 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4521 printf %s
"checking for a race-free mkdir -p... " >&6; }
4522 if test -z "$MKDIR_P"; then
4523 if test ${ac_cv_path_mkdir+y}
4525 printf %s
"(cached) " >&6
4527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4528 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4531 case $as_dir in #(((
4534 *) as_dir
=$as_dir/ ;;
4536 for ac_prog
in mkdir gmkdir
; do
4537 for ac_exec_ext
in '' $ac_executable_extensions; do
4538 as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext" ||
continue
4539 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4540 'mkdir ('*'coreutils) '* | \
4542 'mkdir (fileutils) '4.1*)
4543 ac_cv_path_mkdir
=$as_dir$ac_prog$ac_exec_ext
4553 test -d .
/--version && rmdir .
/--version
4554 if test ${ac_cv_path_mkdir+y}; then
4555 MKDIR_P
="$ac_cv_path_mkdir -p"
4557 # As a last resort, use the slow shell script. Don't cache a
4558 # value for MKDIR_P within a source directory, because that will
4559 # break other packages using the cache if that directory is
4560 # removed, or if the value is a relative name.
4561 MKDIR_P
="$ac_install_sh -d"
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4565 printf "%s\n" "$MKDIR_P" >&6; }
4567 for ac_prog
in gawk mawk nawk
awk
4569 # Extract the first word of "$ac_prog", so it can be a program name with args.
4570 set dummy
$ac_prog; ac_word
=$2
4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 printf %s
"checking for $ac_word... " >&6; }
4573 if test ${ac_cv_prog_AWK+y}
4575 printf %s
"(cached) " >&6
4577 if test -n "$AWK"; then
4578 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4584 case $as_dir in #(((
4587 *) as_dir
=$as_dir/ ;;
4589 for ac_exec_ext
in '' $ac_executable_extensions; do
4590 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4591 ac_cv_prog_AWK
="$ac_prog"
4592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4602 if test -n "$AWK"; then
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4604 printf "%s\n" "$AWK" >&6; }
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 printf "%s\n" "no" >&6; }
4611 test -n "$AWK" && break
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4615 printf %s
"checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4617 ac_make
=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4618 if eval test \
${ac_cv_prog_make_${ac_make}_set+y}
4620 printf %s
"(cached) " >&6
4622 cat >conftest.
make <<\_ACEOF
4625 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4627 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4628 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4630 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4632 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4636 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4638 printf "%s\n" "yes" >&6; }
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 printf "%s\n" "no" >&6; }
4643 SET_MAKE
="MAKE=${MAKE-make}"
4646 rm -rf .tst
2>/dev
/null
4647 mkdir .tst
2>/dev
/null
4648 if test -d .tst
; then
4653 rmdir .tst
2>/dev
/null
4655 DEPDIR
="${am__leading_dot}deps"
4657 ac_config_commands
="$ac_config_commands depfiles"
4659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4660 printf %s
"checking whether ${MAKE-make} supports the include directive... " >&6; }
4661 cat > confinc.mk
<< 'END'
4663 @
echo this is the am__doit target
>confinc.out
4668 # BSD make does it like this.
4669 echo '.include "confinc.mk" # ignored' > confmf.BSD
4670 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4671 echo 'include confinc.mk # ignored' > confmf.GNU
4673 for s
in GNU BSD
; do
4674 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4675 (${MAKE-make} -f confmf.
$s && cat confinc.out
) >&5 2>&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }
4679 case $?
:`cat confinc.out 2>/dev/null` in #(
4680 '0:this is the am__doit target') :
4683 am__include
='.include' am__quote
='"' ;; #(
4685 am__include
='include' am__quote
='' ;;
4690 if test "$am__include" != "#"; then
4691 _am_result
="yes ($s style)"
4695 rm -f confinc.
* confmf.
*
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4697 printf "%s\n" "${_am_result}" >&6; }
4699 # Check whether --enable-dependency-tracking was given.
4700 if test ${enable_dependency_tracking+y}
4702 enableval
=$enable_dependency_tracking;
4705 if test "x$enable_dependency_tracking" != xno
; then
4706 am_depcomp
="$ac_aux_dir/depcomp"
4710 if test "x$enable_dependency_tracking" != xno; then
4719 # Check whether --enable-silent-rules was given.
4720 if test ${enable_silent_rules+y}
4722 enableval
=$enable_silent_rules;
4725 case $enable_silent_rules in # (((
4726 yes) AM_DEFAULT_VERBOSITY
=0;;
4727 no
) AM_DEFAULT_VERBOSITY
=1;;
4728 *) AM_DEFAULT_VERBOSITY
=1;;
4730 am_make
=${MAKE-make}
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4732 printf %s
"checking whether $am_make supports nested variables... " >&6; }
4733 if test ${am_cv_make_support_nested_variables+y}
4735 printf %s
"(cached) " >&6
4737 if printf "%s\n" 'TRUE=$(BAR$(V))
4743 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4744 am_cv_make_support_nested_variables
=yes
4746 am_cv_make_support_nested_variables
=no
4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4750 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4751 if test $am_cv_make_support_nested_variables = yes; then
4753 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4755 AM_V
=$AM_DEFAULT_VERBOSITY
4756 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4760 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4761 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4762 # is not polluted with repeated "-I."
4763 am__isrc
=' -I$(srcdir)'
4764 # test to see if srcdir already configured
4765 if test -f $srcdir/config.status
; then
4766 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4770 # test whether we have cygpath
4771 if test -z "$CYGPATH_W"; then
4772 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4773 CYGPATH_W
='cygpath -w'
4780 # Define the identity of the package.
4781 PACKAGE
='qbittorrent'
4782 VERSION
='v4.4.0alpha'
4785 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4788 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4790 # Some tools Automake needs.
4792 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4795 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4798 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4801 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4804 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4806 # For better backward compatibility. To be removed once Automake 1.9.x
4807 # dies out for good. For more background, see:
4808 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4809 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4810 mkdir_p
='$(MKDIR_P)'
4812 # We need awk for the "check" target (and possibly the TAP driver). The
4813 # system "awk" is bad on some platforms.
4814 # Always define AMTAR for backward compatibility. Yes, it's still used
4815 # in the wild :-( We should find a proper way to deprecate it ...
4819 # We'll loop over all known methods to create a tar archive until one works.
4820 _am_tools
='gnutar pax cpio none'
4822 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4828 depcc
="$CC" am_compiler_list
=
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4831 printf %s
"checking dependency style of $depcc... " >&6; }
4832 if test ${am_cv_CC_dependencies_compiler_type+y}
4834 printf %s
"(cached) " >&6
4836 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4837 # We make a subdir and do the tests there. Otherwise we can end up
4838 # making bogus files that we don't know about and never remove. For
4839 # instance it was reported that on HP-UX the gcc test will end up
4840 # making a dummy file named 'D' -- because '-MD' means "put the output
4844 # Copy depcomp to subdir because otherwise we won't find it if we're
4845 # using a relative directory.
4846 cp "$am_depcomp" conftest.dir
4848 # We will build objects and dependencies in a subdirectory because
4849 # it helps to detect inapplicable dependency modes. For instance
4850 # both Tru64's cc and ICC support -MD to output dependencies as a
4851 # side effect of compilation, but ICC will put the dependencies in
4852 # the current directory while Tru64 will put them in the object
4856 am_cv_CC_dependencies_compiler_type
=none
4857 if test "$am_compiler_list" = ""; then
4858 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4861 case " $depcc " in #(
4862 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4865 for depmode
in $am_compiler_list; do
4866 # Setup a source with many dependencies, because some compilers
4867 # like to wrap large dependency lists on column 80 (with \), and
4868 # we should not choose a depcomp mode which is confused by this.
4870 # We need to recreate these files for each test, as the compiler may
4871 # overwrite some of them when testing with obscure command lines.
4872 # This happens at least with the AIX C compiler.
4874 for i
in 1 2 3 4 5 6; do
4875 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4876 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4877 # Solaris 10 /bin/sh.
4878 echo '/* dummy */' > sub
/conftst
$i.h
4880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4882 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4883 # mode. It turns out that the SunPro C++ compiler does not properly
4884 # handle '-M -o', and we need to detect this. Also, some Intel
4885 # versions had trouble with output in subdirs.
4886 am__obj
=sub
/conftest.
${OBJEXT-o}
4887 am__minus_obj
="-o $am__obj"
4890 # This depmode causes a compiler race in universal mode.
4891 test "$am__universal" = false ||
continue
4894 # After this tag, mechanisms are not by side-effect, so they'll
4895 # only be used when explicitly requested.
4896 if test "x$enable_dependency_tracking" = xyes
; then
4902 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4903 # This compiler won't grok '-c -o', but also, the minuso test has
4904 # not run yet. These depmodes are late enough in the game, and
4905 # so weak that their functioning should not be impacted.
4906 am__obj
=conftest.
${OBJEXT-o}
4911 if depmode
=$depmode \
4912 source=sub
/conftest.c object
=$am__obj \
4913 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4914 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4915 >/dev
/null
2>conftest.err
&&
4916 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4917 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4918 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4919 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4920 # icc doesn't choke on unknown options, it will just issue warnings
4921 # or remarks (even with -Werror). So we grep stderr for any message
4922 # that says an option was ignored or not supported.
4923 # When given -MP, icc 7.0 and 7.1 complain thusly:
4924 # icc: Command line warning: ignoring option '-M'; no argument required
4925 # The diagnosis changed in icc 8.0:
4926 # icc: Command line remark: option '-MP' not supported
4927 if (grep 'ignoring option' conftest.err ||
4928 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4929 am_cv_CC_dependencies_compiler_type
=$depmode
4938 am_cv_CC_dependencies_compiler_type
=none
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4943 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4944 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4947 test "x$enable_dependency_tracking" != xno \
4948 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4950 am__fastdepCC_FALSE
='#'
4952 am__fastdepCC_TRUE
='#'
4953 am__fastdepCC_FALSE
=
4957 depcc
="$CXX" am_compiler_list
=
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4960 printf %s
"checking dependency style of $depcc... " >&6; }
4961 if test ${am_cv_CXX_dependencies_compiler_type+y}
4963 printf %s
"(cached) " >&6
4965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4966 # We make a subdir and do the tests there. Otherwise we can end up
4967 # making bogus files that we don't know about and never remove. For
4968 # instance it was reported that on HP-UX the gcc test will end up
4969 # making a dummy file named 'D' -- because '-MD' means "put the output
4973 # Copy depcomp to subdir because otherwise we won't find it if we're
4974 # using a relative directory.
4975 cp "$am_depcomp" conftest.dir
4977 # We will build objects and dependencies in a subdirectory because
4978 # it helps to detect inapplicable dependency modes. For instance
4979 # both Tru64's cc and ICC support -MD to output dependencies as a
4980 # side effect of compilation, but ICC will put the dependencies in
4981 # the current directory while Tru64 will put them in the object
4985 am_cv_CXX_dependencies_compiler_type
=none
4986 if test "$am_compiler_list" = ""; then
4987 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4990 case " $depcc " in #(
4991 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4994 for depmode
in $am_compiler_list; do
4995 # Setup a source with many dependencies, because some compilers
4996 # like to wrap large dependency lists on column 80 (with \), and
4997 # we should not choose a depcomp mode which is confused by this.
4999 # We need to recreate these files for each test, as the compiler may
5000 # overwrite some of them when testing with obscure command lines.
5001 # This happens at least with the AIX C compiler.
5003 for i
in 1 2 3 4 5 6; do
5004 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5005 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5006 # Solaris 10 /bin/sh.
5007 echo '/* dummy */' > sub
/conftst
$i.h
5009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5011 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5012 # mode. It turns out that the SunPro C++ compiler does not properly
5013 # handle '-M -o', and we need to detect this. Also, some Intel
5014 # versions had trouble with output in subdirs.
5015 am__obj
=sub
/conftest.
${OBJEXT-o}
5016 am__minus_obj
="-o $am__obj"
5019 # This depmode causes a compiler race in universal mode.
5020 test "$am__universal" = false ||
continue
5023 # After this tag, mechanisms are not by side-effect, so they'll
5024 # only be used when explicitly requested.
5025 if test "x$enable_dependency_tracking" = xyes
; then
5031 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
5032 # This compiler won't grok '-c -o', but also, the minuso test has
5033 # not run yet. These depmodes are late enough in the game, and
5034 # so weak that their functioning should not be impacted.
5035 am__obj
=conftest.
${OBJEXT-o}
5040 if depmode
=$depmode \
5041 source=sub
/conftest.c object
=$am__obj \
5042 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5043 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5044 >/dev
/null
2>conftest.err
&&
5045 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5046 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5047 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5048 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5049 # icc doesn't choke on unknown options, it will just issue warnings
5050 # or remarks (even with -Werror). So we grep stderr for any message
5051 # that says an option was ignored or not supported.
5052 # When given -MP, icc 7.0 and 7.1 complain thusly:
5053 # icc: Command line warning: ignoring option '-M'; no argument required
5054 # The diagnosis changed in icc 8.0:
5055 # icc: Command line remark: option '-MP' not supported
5056 if (grep 'ignoring option' conftest.err ||
5057 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5058 am_cv_CXX_dependencies_compiler_type
=$depmode
5067 am_cv_CXX_dependencies_compiler_type
=none
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5072 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5073 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5076 test "x$enable_dependency_tracking" != xno \
5077 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5078 am__fastdepCXX_TRUE
=
5079 am__fastdepCXX_FALSE
='#'
5081 am__fastdepCXX_TRUE
='#'
5082 am__fastdepCXX_FALSE
=
5087 # POSIX will say in a future version that running "rm -f" with no argument
5088 # is OK; and we want to be able to make that assumption in our Makefile
5089 # recipes. So use an aggressive probe to check that the usage we want is
5090 # actually supported "in the wild" to an acceptable degree.
5091 # See automake bug#10828.
5092 # To make any issue more visible, cause the running configure to be aborted
5093 # by default if the 'rm' program in use doesn't match our expectations; the
5094 # user can still override this though.
5095 if rm -f && rm -fr && rm -rf; then : OK
; else
5099 Your 'rm' program seems unable to run without file operands specified
5100 on the command line, even when the '-f' option is present. This is contrary
5101 to the behaviour of most rm programs out there, and not conforming with
5102 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5104 Please tell bug-automake@gnu.org about your system, including the value
5105 of your $PATH and any error possibly output before this message. This
5106 can help us improve future automake versions.
5109 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
5110 echo 'Configuration will proceed anyway, since you have set the' >&2
5111 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5115 Aborting the configuration process, to ensure you take notice of the issue.
5117 You can download and install GNU coreutils to get an 'rm' implementation
5118 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5120 If you want to complete the configuration process using your problematic
5121 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5122 to "yes", and re-run configure.
5125 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
5130 # use compiler from env variables if available
5134 # Define --wth-* and --enable-* arguments
5136 # Check whether --enable-debug was given.
5137 if test ${enable_debug+y}
5139 enableval
=$enable_debug;
5145 # Check whether --enable-stacktrace was given.
5146 if test ${enable_stacktrace+y}
5148 enableval
=$enable_stacktrace;
5150 enable_stacktrace
=auto
5154 # Check whether --enable-gui was given.
5155 if test ${enable_gui+y}
5157 enableval
=$enable_gui;
5163 # Check whether --enable-systemd was given.
5164 if test ${enable_systemd+y}
5166 enableval
=$enable_systemd;
5172 # Check whether --enable-webui was given.
5173 if test ${enable_webui+y}
5175 enableval
=$enable_webui;
5181 # Check whether --enable-qt-dbus was given.
5182 if test ${enable_qt_dbus+y}
5184 enableval
=$enable_qt_dbus;
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS is FreeBSD" >&5
5192 printf %s
"checking whether OS is FreeBSD... " >&6; }
5193 if expr "$host_os" : ".*freebsd.*" > /dev
/null
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5196 printf "%s\n" "yes" >&6; }
5197 LIBS
="-lexecinfo $LIBS"
5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 printf "%s\n" "no" >&6; }
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS is macOS" >&5
5204 printf %s
"checking whether OS is macOS... " >&6; }
5205 if expr "$host_os" : ".*darwin.*" > /dev
/null
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208 printf "%s\n" "yes" >&6; }
5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 printf "%s\n" "no" >&6; }
5215 # Require 0.23 pkg-config
5223 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5224 if test -n "$ac_tool_prefix"; then
5225 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5226 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 printf %s
"checking for $ac_word... " >&6; }
5229 if test ${ac_cv_path_PKG_CONFIG+y}
5231 printf %s
"(cached) " >&6
5235 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5242 case $as_dir in #(((
5245 *) as_dir
=$as_dir/ ;;
5247 for ac_exec_ext
in '' $ac_executable_extensions; do
5248 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5249 ac_cv_path_PKG_CONFIG
="$as_dir$ac_word$ac_exec_ext"
5250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5260 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5261 if test -n "$PKG_CONFIG"; then
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5263 printf "%s\n" "$PKG_CONFIG" >&6; }
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266 printf "%s\n" "no" >&6; }
5271 if test -z "$ac_cv_path_PKG_CONFIG"; then
5272 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5273 # Extract the first word of "pkg-config", so it can be a program name with args.
5274 set dummy pkg-config
; ac_word
=$2
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276 printf %s
"checking for $ac_word... " >&6; }
5277 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5279 printf %s
"(cached) " >&6
5281 case $ac_pt_PKG_CONFIG in
5283 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5290 case $as_dir in #(((
5293 *) as_dir
=$as_dir/ ;;
5295 for ac_exec_ext
in '' $ac_executable_extensions; do
5296 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5297 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir$ac_word$ac_exec_ext"
5298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5308 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5309 if test -n "$ac_pt_PKG_CONFIG"; then
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5311 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 printf "%s\n" "no" >&6; }
5317 if test "x$ac_pt_PKG_CONFIG" = x
; then
5320 case $cross_compiling:$ac_tool_warned in
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324 ac_tool_warned
=yes ;;
5326 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5329 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5333 if test -n "$PKG_CONFIG"; then
5334 _pkg_min_version
=0.23
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5336 printf %s
"checking pkg-config is at least version $_pkg_min_version... " >&6; }
5337 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5339 printf "%s\n" "yes" >&6; }
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 printf "%s\n" "no" >&6; }
5346 if test "x$PKG_CONFIG" = "x"
5348 as_fn_error $?
"Could not find pkg-config" "$LINENO" 5
5351 # Check which arguments were set and act accordingly
5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the Debug build" >&5
5353 printf %s
"checking whether to enable the Debug build... " >&6; }
5354 case "x$enable_debug" in #(
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 printf "%s\n" "no" >&6; }
5358 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG release"
5359 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG debug" ;; #(
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5362 printf "%s\n" "yes" >&6; }
5363 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG debug"
5364 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG release" ;; #(
5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
5367 printf "%s\n" "$enable_debug" >&6; }
5368 as_fn_error $?
"Unknown option \"$enable_debug\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the stacktrace feature" >&5
5372 printf %s
"checking whether to enable the stacktrace feature... " >&6; }
5374 case "x$enable_stacktrace" in #(
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 printf "%s\n" "no" >&6; }
5378 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG stacktrace" ;; #(
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5381 printf "%s\n" "yes" >&6; }
5382 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG stacktrace" ;; #(
5384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 #include <execinfo.h>
5388 if ac_fn_cxx_try_compile
"$LINENO"
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5391 printf "%s\n" "yes" >&6; }
5392 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG stacktrace"
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 printf "%s\n" "no" >&6; }
5396 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG stacktrace"
5398 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext ;; #(
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_stacktrace" >&5
5401 printf "%s\n" "$enable_stacktrace" >&6; }
5402 as_fn_error $?
"Unknown option \"$enable_stacktrace\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the GUI" >&5
5406 printf %s
"checking whether to enable the GUI... " >&6; }
5407 case "x$enable_gui" in #(
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5410 printf "%s\n" "yes" >&6; }
5412 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG nogui" ;; #(
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 printf "%s\n" "no" >&6; }
5417 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG nogui" ;; #(
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gui" >&5
5420 printf "%s\n" "$enable_gui" >&6; }
5421 as_fn_error $?
"Unknown option \"$enable_gui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install the systemd service file" >&5
5425 printf %s
"checking whether to install the systemd service file... " >&6; }
5426 case "x$enable_systemd" in #(
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429 printf "%s\n" "yes" >&6; }
5430 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG systemd" ;; #(
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 printf "%s\n" "no" >&6; }
5434 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG systemd" ;; #(
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_systemd" >&5
5437 printf "%s\n" "$enable_systemd" >&6; }
5438 as_fn_error $?
"Unknown option \"$enable_systemd\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the WebUI" >&5
5442 printf %s
"checking whether to enable the WebUI... " >&6; }
5443 case "x$enable_webui" in #(
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5446 printf "%s\n" "yes" >&6; }
5447 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG nowebui" ;; #(
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 printf "%s\n" "no" >&6; }
5451 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG nowebui" ;; #(
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_webui" >&5
5454 printf "%s\n" "$enable_webui" >&6; }
5455 as_fn_error $?
"Unknown option \"$enable_webui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5458 if test -n "$PKG_CONFIG" && \
5459 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.15.2\""; } >&5
5460 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.15.2") 2>&5
5462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5463 test $ac_status = 0; }; then
5465 if test -n "$QT_QMAKE"; then
5466 pkg_cv_QT_QMAKE
="$QT_QMAKE"
5467 elif test -n "$PKG_CONFIG"; then
5468 if test -n "$PKG_CONFIG" && \
5469 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.15.2\""; } >&5
5470 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.15.2") 2>&5
5472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473 test $ac_status = 0; }; then
5474 pkg_cv_QT_QMAKE
=`$PKG_CONFIG --variable="host_bins" "Qt5Core >= 5.15.2" 2>/dev/null`
5475 test "x$?" != "x0" && pkg_failed
=yes
5482 QT_QMAKE
=$pkg_cv_QT_QMAKE
5484 if test "x$QT_QMAKE" = x
""
5491 if test -f "$QT_QMAKE/qmake"
5493 QT_QMAKE
="$QT_QMAKE/qmake"
5495 if test -f "$QT_QMAKE/qmake-qt5"
5497 QT_QMAKE
="$QT_QMAKE/qmake-qt5"
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5 qmake >= 5.15.2" >&5
5505 printf %s
"checking for Qt5 qmake >= 5.15.2... " >&6; }
5506 if test "x$QT_QMAKE" != "x"
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QT_QMAKE" >&5
5509 printf "%s\n" "$QT_QMAKE" >&6; }
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5512 printf "%s\n" "not found" >&6; }
5516 if test "x$QT_QMAKE" = "x"
5518 as_fn_error $?
"Could not find qmake" "$LINENO" 5
5521 if test "x$enable_gui" = "xyes"
5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5Svg >= 5.15.2" >&5
5526 printf %s
"checking for Qt5Svg >= 5.15.2... " >&6; }
5528 if test -n "$Qt5Svg_CFLAGS"; then
5529 pkg_cv_Qt5Svg_CFLAGS
="$Qt5Svg_CFLAGS"
5530 elif test -n "$PKG_CONFIG"; then
5531 if test -n "$PKG_CONFIG" && \
5532 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.15.2\""; } >&5
5533 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.15.2") 2>&5
5535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5536 test $ac_status = 0; }; then
5537 pkg_cv_Qt5Svg_CFLAGS
=`$PKG_CONFIG --cflags "Qt5Svg >= 5.15.2" 2>/dev/null`
5538 test "x$?" != "x0" && pkg_failed
=yes
5545 if test -n "$Qt5Svg_LIBS"; then
5546 pkg_cv_Qt5Svg_LIBS
="$Qt5Svg_LIBS"
5547 elif test -n "$PKG_CONFIG"; then
5548 if test -n "$PKG_CONFIG" && \
5549 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.15.2\""; } >&5
5550 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.15.2") 2>&5
5552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5553 test $ac_status = 0; }; then
5554 pkg_cv_Qt5Svg_LIBS
=`$PKG_CONFIG --libs "Qt5Svg >= 5.15.2" 2>/dev/null`
5555 test "x$?" != "x0" && pkg_failed
=yes
5565 if test $pkg_failed = yes; then
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 printf "%s\n" "no" >&6; }
5569 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5570 _pkg_short_errors_supported
=yes
5572 _pkg_short_errors_supported
=no
5574 if test $_pkg_short_errors_supported = yes; then
5575 Qt5Svg_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Svg >= 5.15.2" 2>&1`
5577 Qt5Svg_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Svg >= 5.15.2" 2>&1`
5579 # Put the nasty error message in config.log where it belongs
5580 echo "$Qt5Svg_PKG_ERRORS" >&5
5582 as_fn_error $?
"Package requirements (Qt5Svg >= 5.15.2) were not met:
5586 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5587 installed software in a non-standard prefix.
5589 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
5590 and Qt5Svg_LIBS to avoid the need to call pkg-config.
5591 See the pkg-config man page for more details." "$LINENO" 5
5592 elif test $pkg_failed = untried
; then
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 printf "%s\n" "no" >&6; }
5595 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5596 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5597 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
5598 is in your PATH or set the PKG_CONFIG environment variable to the full
5601 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
5602 and Qt5Svg_LIBS to avoid the need to call pkg-config.
5603 See the pkg-config man page for more details.
5605 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5606 See \`config.log' for more details" "$LINENO" 5; }
5608 Qt5Svg_CFLAGS
=$pkg_cv_Qt5Svg_CFLAGS
5609 Qt5Svg_LIBS
=$pkg_cv_Qt5Svg_LIBS
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5611 printf "%s\n" "yes" >&6; }
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether QtDBus should be enabled" >&5
5617 printf %s
"checking whether QtDBus should be enabled... " >&6; }
5618 case "x$enable_qt_dbus" in #(
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5621 printf "%s\n" "yes" >&6; }
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5DBus >= 5.15.2" >&5
5623 printf %s
"checking for Qt5DBus >= 5.15.2... " >&6; }
5624 if test -n "$PKG_CONFIG" && \
5625 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5DBus >= 5.15.2\""; } >&5
5626 ($PKG_CONFIG --exists --print-errors "Qt5DBus >= 5.15.2") 2>&5
5628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5629 test $ac_status = 0; }; then
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
5631 printf "%s\n" "found" >&6; }
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5635 printf "%s\n" "not found" >&6; }
5639 if test "x$HAVE_QTDBUS" = "xfalse"
5641 as_fn_error $?
"Could not find QtDBus" "$LINENO" 5
5643 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG dbus"
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 printf "%s\n" "no" >&6; }
5649 QBT_REMOVE_CONFIG
="$QBT_REMOVE_CONFIG dbus" ;; #(
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_qt_dbus" >&5
5652 printf "%s\n" "$enable_qt_dbus" >&6; }
5653 as_fn_error $?
"Unknown option \"$enable_qt_dbus\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5659 # Check whether --with-boost was given.
5660 if test ${with_boost+y}
5662 withval
=$with_boost;
5665 want_boost
="no";_AX_BOOST_BASE_boost_path
="" ;; #(
5667 want_boost
="yes";_AX_BOOST_BASE_boost_path
="" ;; #(
5669 want_boost
="yes";_AX_BOOST_BASE_boost_path
="$withval" ;;
5679 # Check whether --with-boost-libdir was given.
5680 if test ${with_boost_libdir+y}
5682 withval
=$with_boost_libdir;
5683 if test -d "$withval"
5685 _AX_BOOST_BASE_boost_lib_path
="$withval"
5687 as_fn_error $?
"--with-boost-libdir expected directory name" "$LINENO" 5
5691 _AX_BOOST_BASE_boost_lib_path
=""
5697 if test "x$want_boost" = "xyes"
5701 if test "x1.65" = "x"
5703 _AX_BOOST_BASE_TONUMERICVERSION_req
="1.20.0"
5705 _AX_BOOST_BASE_TONUMERICVERSION_req
="1.65"
5707 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten
=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
5708 _AX_BOOST_BASE_TONUMERICVERSION_req_major
=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
5709 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"
5711 as_fn_error $?
"You should at least specify libboost major version" "$LINENO" 5
5713 _AX_BOOST_BASE_TONUMERICVERSION_req_minor
=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
5714 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"
5716 _AX_BOOST_BASE_TONUMERICVERSION_req_minor
="0"
5718 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor
=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5719 if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"
5721 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor
="0"
5723 _AX_BOOST_BASE_TONUMERICVERSION_RET
=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor`
5724 WANT_BOOST_VERSION
=$_AX_BOOST_BASE_TONUMERICVERSION_RET
5730 case ${host_cpu} in #(
5732 libsubdirs
="lib64 libx32 lib lib64" ;; #(
5734 libsubdirs
="lib64 lib32 lib lib64" ;; #(
5735 ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64
) :
5736 libsubdirs
="lib64 lib lib64" ;; #(
5742 case ${host_cpu} in #(
5744 multiarch_libsubdir
="lib/i386-${host_os}" ;; #(
5746 multiarch_libsubdir
="lib/${host_cpu}-${host_os}"
5750 if test "x$_AX_BOOST_BASE_boost_path" != "x"
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5
5754 printf %s
"checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
5755 if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 printf "%s\n" "yes" >&6; }
5760 BOOST_CPPFLAGS
="-I$_AX_BOOST_BASE_boost_path/include"
5761 for _AX_BOOST_BASE_boost_path_tmp
in $multiarch_libsubdir $libsubdirs; do
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5
5763 printf %s
"checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; }
5764 if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp"
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5768 printf "%s\n" "yes" >&6; }
5769 BOOST_LDFLAGS
="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 printf "%s\n" "no" >&6; }
5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 printf "%s\n" "no" >&6; }
5785 if test X
"$cross_compiling" = Xyes
; then
5786 search_libsubdirs
=$multiarch_libsubdir
5788 search_libsubdirs
="$multiarch_libsubdir $libsubdirs"
5790 for _AX_BOOST_BASE_boost_path_tmp
in /usr
/usr
/local /opt
/opt
/local ; do
5791 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
5792 for libsubdir
in $search_libsubdirs ; do
5793 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev
/null
2>&1 ; then break; fi
5795 BOOST_LDFLAGS
="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
5796 BOOST_CPPFLAGS
="-I$_AX_BOOST_BASE_boost_path_tmp/include"
5803 if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"
5805 BOOST_LDFLAGS
="-L$_AX_BOOST_BASE_boost_lib_path"
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.65 ($WANT_BOOST_VERSION)" >&5
5809 printf %s
"checking for boostlib >= 1.65 ($WANT_BOOST_VERSION)... " >&6; }
5810 CPPFLAGS_SAVED
="$CPPFLAGS"
5811 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
5814 LDFLAGS_SAVED
="$LDFLAGS"
5815 LDFLAGS
="$LDFLAGS $BOOST_LDFLAGS"
5820 ac_cpp
='$CXXCPP $CPPFLAGS'
5821 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5828 #include <boost/version.hpp>
5834 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
5840 if ac_fn_cxx_try_compile
"$LINENO"
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5844 printf "%s\n" "yes" >&6; }
5849 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5851 ac_cpp
='$CXXCPP $CPPFLAGS'
5852 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5859 if test "x$succeeded" != "xyes" ; then
5860 CPPFLAGS
="$CPPFLAGS_SAVED"
5861 LDFLAGS
="$LDFLAGS_SAVED"
5863 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5867 if test -n "$_AX_BOOST_BASE_boost_path" ; then
5868 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
5869 for i
in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
5870 _version_tmp
=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5871 V_CHECK
=`expr $_version_tmp \> $_version`
5872 if test "x$V_CHECK" = "x1" ; then
5873 _version
=$_version_tmp
5875 VERSION_UNDERSCORE
=`echo $_version | sed 's/\./_/'`
5876 BOOST_CPPFLAGS
="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
5878 if test -z "$BOOST_CPPFLAGS"; then
5879 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
5880 BOOST_CPPFLAGS
="-I$_AX_BOOST_BASE_boost_path"
5883 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
5884 for libsubdir
in $libsubdirs ; do
5885 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev
/null
2>&1 ; then break; fi
5887 BOOST_LDFLAGS
="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
5891 if test "x$cross_compiling" != "xyes" ; then
5892 for _AX_BOOST_BASE_boost_path
in /usr
/usr
/local /opt
/opt
/local ; do
5893 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
5894 for i
in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
5895 _version_tmp
=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5896 V_CHECK
=`expr $_version_tmp \> $_version`
5897 if test "x$V_CHECK" = "x1" ; then
5898 _version
=$_version_tmp
5899 best_path
=$_AX_BOOST_BASE_boost_path
5905 VERSION_UNDERSCORE
=`echo $_version | sed 's/\./_/'`
5906 BOOST_CPPFLAGS
="-I$best_path/include/boost-$VERSION_UNDERSCORE"
5907 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5908 for libsubdir
in $libsubdirs ; do
5909 if ls "$best_path/$libsubdir/libboost_"* >/dev
/null
2>&1 ; then break; fi
5911 BOOST_LDFLAGS
="-L$best_path/$libsubdir"
5915 if test -n "$BOOST_ROOT" ; then
5916 for libsubdir
in $libsubdirs ; do
5917 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev
/null
2>&1 ; then break; fi
5919 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
5920 version_dir
=`expr //$BOOST_ROOT : '.*/\(.*\)'`
5921 stage_version
=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
5922 stage_version_shorten
=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
5923 V_CHECK
=`expr $stage_version_shorten \>\= $_version`
5924 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
5926 printf "%s\n" "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
5927 BOOST_CPPFLAGS
="-I$BOOST_ROOT"
5928 BOOST_LDFLAGS
="-L$BOOST_ROOT/stage/$libsubdir"
5934 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
5936 LDFLAGS
="$LDFLAGS $BOOST_LDFLAGS"
5940 ac_cpp
='$CXXCPP $CPPFLAGS'
5941 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5948 #include <boost/version.hpp>
5954 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
5960 if ac_fn_cxx_try_compile
"$LINENO"
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5964 printf "%s\n" "yes" >&6; }
5969 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5971 ac_cpp
='$CXXCPP $CPPFLAGS'
5972 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5973 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5978 if test "x$succeeded" != "xyes" ; then
5979 if test "x$_version" = "x0" ; then
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version 1.65 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
5981 printf "%s\n" "$as_me: We could not detect the boost libraries (version 1.65 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
5984 printf "%s\n" "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
5986 # execute ACTION-IF-NOT-FOUND (if present):
5987 as_fn_error $?
"Could not find Boost" "$LINENO" 5
5990 printf "%s\n" "#define HAVE_BOOST /**/" >>confdefs.h
5992 # execute ACTION-IF-FOUND (if present):
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&5
5994 printf "%s\n" "$as_me: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&6;}
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&5
5996 printf "%s\n" "$as_me: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&6;}
5999 CPPFLAGS
="$CPPFLAGS_SAVED"
6000 LDFLAGS
="$LDFLAGS_SAVED"
6007 CXXFLAGS
="$BOOST_CPPFLAGS $CXXFLAGS"
6008 LDFLAGS
="$BOOST_LDFLAGS $LDFLAGS"
6010 # add workaround for problematic boost version
6011 # taken from ax_boost_base.m4
6014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6016 #include <boost/version.hpp>
6020 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < (106000))]));
6025 if ac_fn_cxx_try_compile
"$LINENO"
6029 QBT_ADD_DEFINES
="$QBT_ADD_DEFINES BOOST_NO_CXX11_RVALUE_REFERENCES"
6031 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtorrent-rasterbar >= 2.0.4" >&5
6036 printf %s
"checking for libtorrent-rasterbar >= 2.0.4... " >&6; }
6038 if test -n "$libtorrent_CFLAGS"; then
6039 pkg_cv_libtorrent_CFLAGS
="$libtorrent_CFLAGS"
6040 elif test -n "$PKG_CONFIG"; then
6041 if test -n "$PKG_CONFIG" && \
6042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 2.0.4\""; } >&5
6043 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 2.0.4") 2>&5
6045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6046 test $ac_status = 0; }; then
6047 pkg_cv_libtorrent_CFLAGS
=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 2.0.4" 2>/dev/null`
6048 test "x$?" != "x0" && pkg_failed
=yes
6055 if test -n "$libtorrent_LIBS"; then
6056 pkg_cv_libtorrent_LIBS
="$libtorrent_LIBS"
6057 elif test -n "$PKG_CONFIG"; then
6058 if test -n "$PKG_CONFIG" && \
6059 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 2.0.4\""; } >&5
6060 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 2.0.4") 2>&5
6062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063 test $ac_status = 0; }; then
6064 pkg_cv_libtorrent_LIBS
=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 2.0.4" 2>/dev/null`
6065 test "x$?" != "x0" && pkg_failed
=yes
6075 if test $pkg_failed = yes; then
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 printf "%s\n" "no" >&6; }
6079 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6080 _pkg_short_errors_supported
=yes
6082 _pkg_short_errors_supported
=no
6084 if test $_pkg_short_errors_supported = yes; then
6085 libtorrent_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 2.0.4" 2>&1`
6087 libtorrent_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 2.0.4" 2>&1`
6089 # Put the nasty error message in config.log where it belongs
6090 echo "$libtorrent_PKG_ERRORS" >&5
6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" >&5
6095 printf %s
"checking for libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2... " >&6; }
6097 if test -n "$libtorrent_CFLAGS"; then
6098 pkg_cv_libtorrent_CFLAGS
="$libtorrent_CFLAGS"
6099 elif test -n "$PKG_CONFIG"; then
6100 if test -n "$PKG_CONFIG" && \
6101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2\""; } >&5
6102 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2") 2>&5
6104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6105 test $ac_status = 0; }; then
6106 pkg_cv_libtorrent_CFLAGS
=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>/dev/null`
6107 test "x$?" != "x0" && pkg_failed
=yes
6114 if test -n "$libtorrent_LIBS"; then
6115 pkg_cv_libtorrent_LIBS
="$libtorrent_LIBS"
6116 elif test -n "$PKG_CONFIG"; then
6117 if test -n "$PKG_CONFIG" && \
6118 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2\""; } >&5
6119 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2") 2>&5
6121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6122 test $ac_status = 0; }; then
6123 pkg_cv_libtorrent_LIBS
=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>/dev/null`
6124 test "x$?" != "x0" && pkg_failed
=yes
6134 if test $pkg_failed = yes; then
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 printf "%s\n" "no" >&6; }
6138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6139 _pkg_short_errors_supported
=yes
6141 _pkg_short_errors_supported
=no
6143 if test $_pkg_short_errors_supported = yes; then
6144 libtorrent_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>&1`
6146 libtorrent_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>&1`
6148 # Put the nasty error message in config.log where it belongs
6149 echo "$libtorrent_PKG_ERRORS" >&5
6151 as_fn_error $?
"Package requirements (libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2) were not met:
6153 $libtorrent_PKG_ERRORS
6155 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6156 installed software in a non-standard prefix.
6158 Alternatively, you may set the environment variables libtorrent_CFLAGS
6159 and libtorrent_LIBS to avoid the need to call pkg-config.
6160 See the pkg-config man page for more details." "$LINENO" 5
6161 elif test $pkg_failed = untried
; then
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 printf "%s\n" "no" >&6; }
6164 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6165 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6166 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
6167 is in your PATH or set the PKG_CONFIG environment variable to the full
6170 Alternatively, you may set the environment variables libtorrent_CFLAGS
6171 and libtorrent_LIBS to avoid the need to call pkg-config.
6172 See the pkg-config man page for more details.
6174 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6175 See \`config.log' for more details" "$LINENO" 5; }
6177 libtorrent_CFLAGS
=$pkg_cv_libtorrent_CFLAGS
6178 libtorrent_LIBS
=$pkg_cv_libtorrent_LIBS
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6180 printf "%s\n" "yes" >&6; }
6181 CXXFLAGS
="$libtorrent_CFLAGS $CXXFLAGS" LIBS
="$libtorrent_LIBS $LIBS"
6183 elif test $pkg_failed = untried
; then
6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 printf "%s\n" "no" >&6; }
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" >&5
6189 printf %s
"checking for libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2... " >&6; }
6191 if test -n "$libtorrent_CFLAGS"; then
6192 pkg_cv_libtorrent_CFLAGS
="$libtorrent_CFLAGS"
6193 elif test -n "$PKG_CONFIG"; then
6194 if test -n "$PKG_CONFIG" && \
6195 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2\""; } >&5
6196 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2") 2>&5
6198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6199 test $ac_status = 0; }; then
6200 pkg_cv_libtorrent_CFLAGS
=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>/dev/null`
6201 test "x$?" != "x0" && pkg_failed
=yes
6208 if test -n "$libtorrent_LIBS"; then
6209 pkg_cv_libtorrent_LIBS
="$libtorrent_LIBS"
6210 elif test -n "$PKG_CONFIG"; then
6211 if test -n "$PKG_CONFIG" && \
6212 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2\""; } >&5
6213 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2") 2>&5
6215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6216 test $ac_status = 0; }; then
6217 pkg_cv_libtorrent_LIBS
=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>/dev/null`
6218 test "x$?" != "x0" && pkg_failed
=yes
6228 if test $pkg_failed = yes; then
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 printf "%s\n" "no" >&6; }
6232 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6233 _pkg_short_errors_supported
=yes
6235 _pkg_short_errors_supported
=no
6237 if test $_pkg_short_errors_supported = yes; then
6238 libtorrent_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>&1`
6240 libtorrent_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2" 2>&1`
6242 # Put the nasty error message in config.log where it belongs
6243 echo "$libtorrent_PKG_ERRORS" >&5
6245 as_fn_error $?
"Package requirements (libtorrent-rasterbar >= 1.2.14 libtorrent-rasterbar < 2) were not met:
6247 $libtorrent_PKG_ERRORS
6249 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6250 installed software in a non-standard prefix.
6252 Alternatively, you may set the environment variables libtorrent_CFLAGS
6253 and libtorrent_LIBS to avoid the need to call pkg-config.
6254 See the pkg-config man page for more details." "$LINENO" 5
6255 elif test $pkg_failed = untried
; then
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 printf "%s\n" "no" >&6; }
6258 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6259 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6260 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
6261 is in your PATH or set the PKG_CONFIG environment variable to the full
6264 Alternatively, you may set the environment variables libtorrent_CFLAGS
6265 and libtorrent_LIBS to avoid the need to call pkg-config.
6266 See the pkg-config man page for more details.
6268 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6269 See \`config.log' for more details" "$LINENO" 5; }
6271 libtorrent_CFLAGS
=$pkg_cv_libtorrent_CFLAGS
6272 libtorrent_LIBS
=$pkg_cv_libtorrent_LIBS
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6274 printf "%s\n" "yes" >&6; }
6275 CXXFLAGS
="$libtorrent_CFLAGS $CXXFLAGS" LIBS
="$libtorrent_LIBS $LIBS"
6278 libtorrent_CFLAGS
=$pkg_cv_libtorrent_CFLAGS
6279 libtorrent_LIBS
=$pkg_cv_libtorrent_LIBS
6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6281 printf "%s\n" "yes" >&6; }
6282 CXXFLAGS
="$libtorrent_CFLAGS $CXXFLAGS" LIBS
="$libtorrent_LIBS $LIBS"
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.1.1" >&5
6288 printf %s
"checking for openssl >= 1.1.1... " >&6; }
6290 if test -n "$openssl_CFLAGS"; then
6291 pkg_cv_openssl_CFLAGS
="$openssl_CFLAGS"
6292 elif test -n "$PKG_CONFIG"; then
6293 if test -n "$PKG_CONFIG" && \
6294 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.1\""; } >&5
6295 ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.1") 2>&5
6297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6298 test $ac_status = 0; }; then
6299 pkg_cv_openssl_CFLAGS
=`$PKG_CONFIG --cflags "openssl >= 1.1.1" 2>/dev/null`
6300 test "x$?" != "x0" && pkg_failed
=yes
6307 if test -n "$openssl_LIBS"; then
6308 pkg_cv_openssl_LIBS
="$openssl_LIBS"
6309 elif test -n "$PKG_CONFIG"; then
6310 if test -n "$PKG_CONFIG" && \
6311 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.1\""; } >&5
6312 ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.1") 2>&5
6314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6315 test $ac_status = 0; }; then
6316 pkg_cv_openssl_LIBS
=`$PKG_CONFIG --libs "openssl >= 1.1.1" 2>/dev/null`
6317 test "x$?" != "x0" && pkg_failed
=yes
6327 if test $pkg_failed = yes; then
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 printf "%s\n" "no" >&6; }
6331 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6332 _pkg_short_errors_supported
=yes
6334 _pkg_short_errors_supported
=no
6336 if test $_pkg_short_errors_supported = yes; then
6337 openssl_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.1.1" 2>&1`
6339 openssl_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.1.1" 2>&1`
6341 # Put the nasty error message in config.log where it belongs
6342 echo "$openssl_PKG_ERRORS" >&5
6344 as_fn_error $?
"Package requirements (openssl >= 1.1.1) were not met:
6348 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6349 installed software in a non-standard prefix.
6351 Alternatively, you may set the environment variables openssl_CFLAGS
6352 and openssl_LIBS to avoid the need to call pkg-config.
6353 See the pkg-config man page for more details." "$LINENO" 5
6354 elif test $pkg_failed = untried
; then
6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 printf "%s\n" "no" >&6; }
6357 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6358 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6359 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
6360 is in your PATH or set the PKG_CONFIG environment variable to the full
6363 Alternatively, you may set the environment variables openssl_CFLAGS
6364 and openssl_LIBS to avoid the need to call pkg-config.
6365 See the pkg-config man page for more details.
6367 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6368 See \`config.log' for more details" "$LINENO" 5; }
6370 openssl_CFLAGS
=$pkg_cv_openssl_CFLAGS
6371 openssl_LIBS
=$pkg_cv_openssl_LIBS
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6373 printf "%s\n" "yes" >&6; }
6374 CXXFLAGS
="$openssl_CFLAGS $CXXFLAGS"
6375 LIBS
="$openssl_LIBS $LIBS"
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.11" >&5
6381 printf %s
"checking for zlib >= 1.2.11... " >&6; }
6383 if test -n "$zlib_CFLAGS"; then
6384 pkg_cv_zlib_CFLAGS
="$zlib_CFLAGS"
6385 elif test -n "$PKG_CONFIG"; then
6386 if test -n "$PKG_CONFIG" && \
6387 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.11\""; } >&5
6388 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.11") 2>&5
6390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; }; then
6392 pkg_cv_zlib_CFLAGS
=`$PKG_CONFIG --cflags "zlib >= 1.2.11" 2>/dev/null`
6393 test "x$?" != "x0" && pkg_failed
=yes
6400 if test -n "$zlib_LIBS"; then
6401 pkg_cv_zlib_LIBS
="$zlib_LIBS"
6402 elif test -n "$PKG_CONFIG"; then
6403 if test -n "$PKG_CONFIG" && \
6404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.11\""; } >&5
6405 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.11") 2>&5
6407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; }; then
6409 pkg_cv_zlib_LIBS
=`$PKG_CONFIG --libs "zlib >= 1.2.11" 2>/dev/null`
6410 test "x$?" != "x0" && pkg_failed
=yes
6420 if test $pkg_failed = yes; then
6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 printf "%s\n" "no" >&6; }
6424 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6425 _pkg_short_errors_supported
=yes
6427 _pkg_short_errors_supported
=no
6429 if test $_pkg_short_errors_supported = yes; then
6430 zlib_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.11" 2>&1`
6432 zlib_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.11" 2>&1`
6434 # Put the nasty error message in config.log where it belongs
6435 echo "$zlib_PKG_ERRORS" >&5
6437 as_fn_error $?
"Package requirements (zlib >= 1.2.11) were not met:
6441 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6442 installed software in a non-standard prefix.
6444 Alternatively, you may set the environment variables zlib_CFLAGS
6445 and zlib_LIBS to avoid the need to call pkg-config.
6446 See the pkg-config man page for more details." "$LINENO" 5
6447 elif test $pkg_failed = untried
; then
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 printf "%s\n" "no" >&6; }
6450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6451 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6452 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
6453 is in your PATH or set the PKG_CONFIG environment variable to the full
6456 Alternatively, you may set the environment variables zlib_CFLAGS
6457 and zlib_LIBS to avoid the need to call pkg-config.
6458 See the pkg-config man page for more details.
6460 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6461 See \`config.log' for more details" "$LINENO" 5; }
6463 zlib_CFLAGS
=$pkg_cv_zlib_CFLAGS
6464 zlib_LIBS
=$pkg_cv_zlib_LIBS
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6466 printf "%s\n" "yes" >&6; }
6467 CXXFLAGS
="$zlib_CFLAGS $CXXFLAGS"
6468 LIBS
="$zlib_LIBS $LIBS"
6471 # Check if already in >= C++17 mode because of the flags returned by one of the above packages
6472 TMP_CXXFLAGS
="$CXXFLAGS"
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler defaults to C++17 or later mode" >&5
6475 printf %s
"checking if compiler defaults to C++17 or later mode... " >&6; }
6476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6480 #error "This is not a C++ compiler"
6481 #elif __cplusplus < 201703L
6482 #error "This is not a C++17 compiler"
6493 if ac_fn_cxx_try_compile
"$LINENO"
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6496 printf "%s\n" "yes" >&6; }
6497 QBT_CXX17_FOUND
="yes"
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 printf "%s\n" "no" >&6; }
6501 QBT_CXX17_FOUND
="no"
6503 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6505 # In case of no, check if the compiler can support at least C++17
6506 # and if yes, enable it leaving a warning to the user
6507 if test "x$QBT_CXX17_FOUND" = "xno"
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports C++17" >&5
6510 printf %s
"checking if compiler supports C++17... " >&6; }
6511 CXXFLAGS
="-std=c++17"
6512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6516 #error "This is not a C++ compiler"
6517 #elif __cplusplus < 201703L
6518 #error "This is not a C++17 compiler"
6529 if ac_fn_cxx_try_compile
"$LINENO"
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6532 printf "%s\n" "yes" >&6; }
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C++17 is disabled by the set compiler flags" >&5
6534 printf %s
"checking if C++17 is disabled by the set compiler flags... " >&6; }
6535 # prepend the flag so it won't override conflicting user defined flags
6536 CXXFLAGS
="-std=c++17 $TMP_CXXFLAGS"
6537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6541 #error "This is not a C++ compiler"
6542 #elif __cplusplus < 201703L
6543 #error "This is not a C++17 compiler"
6554 if ac_fn_cxx_try_compile
"$LINENO"
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 printf "%s\n" "no" >&6; }
6558 QBT_ADD_CONFIG
="$QBT_ADD_CONFIG c++17"
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: C++17 mode is now force enabled. The C++ mode should match the mode that other libraries were built with, otherwise you'll likely get linking errors." >&5
6560 printf "%s\n" "$as_me: WARNING: C++17 mode is now force enabled. The C++ mode should match the mode that other libraries were built with, otherwise you'll likely get linking errors." >&2;}
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563 printf "%s\n" "yes" >&6; }
6564 as_fn_error $?
"The compiler supports C++17 but the user or a dependency has explicitly enabled a lower mode." "$LINENO" 5
6566 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 printf "%s\n" "no" >&6; }
6570 as_fn_error $?
"A compiler supporting C++17 is required." "$LINENO" 5
6572 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6575 CXXFLAGS
="$TMP_CXXFLAGS"
6577 # These are required because autoconf doesn't expand these **particular**
6578 # vars automatically. And qmake cannot autoexpand them.
6582 test "x$prefix" = xNONE
&& prefix_NONE
=yes && prefix
=$ac_default_prefix
6583 test "x$exec_prefix" = xNONE
&& exec_prefix_NONE
=yes && exec_prefix
=$prefix
6584 eval ax_define_dir
="\"$prefix\""
6585 eval ax_define_dir
="\"$ax_define_dir\""
6586 EXPAND_PREFIX
="$ax_define_dir"
6588 printf "%s\n" "#define EXPAND_PREFIX \"$ax_define_dir\"" >>confdefs.h
6590 test "$prefix_NONE" && prefix
=NONE
6591 test "$exec_prefix_NONE" && exec_prefix
=NONE
6596 test "x$prefix" = xNONE
&& prefix_NONE
=yes && prefix
=$ac_default_prefix
6597 test "x$exec_prefix" = xNONE
&& exec_prefix_NONE
=yes && exec_prefix
=$prefix
6598 eval ax_define_dir
="\"$bindir\""
6599 eval ax_define_dir
="\"$ax_define_dir\""
6600 EXPAND_BINDIR
="$ax_define_dir"
6602 printf "%s\n" "#define EXPAND_BINDIR \"$ax_define_dir\"" >>confdefs.h
6604 test "$prefix_NONE" && prefix
=NONE
6605 test "$exec_prefix_NONE" && exec_prefix
=NONE
6610 test "x$prefix" = xNONE
&& prefix_NONE
=yes && prefix
=$ac_default_prefix
6611 test "x$exec_prefix" = xNONE
&& exec_prefix_NONE
=yes && exec_prefix
=$prefix
6612 eval ax_define_dir
="\"$datadir\""
6613 eval ax_define_dir
="\"$ax_define_dir\""
6614 EXPAND_DATADIR
="$ax_define_dir"
6616 printf "%s\n" "#define EXPAND_DATADIR \"$ax_define_dir\"" >>confdefs.h
6618 test "$prefix_NONE" && prefix
=NONE
6619 test "$exec_prefix_NONE" && exec_prefix
=NONE
6624 test "x$prefix" = xNONE
&& prefix_NONE
=yes && prefix
=$ac_default_prefix
6625 test "x$exec_prefix" = xNONE
&& exec_prefix_NONE
=yes && exec_prefix
=$prefix
6626 eval ax_define_dir
="\"$mandir\""
6627 eval ax_define_dir
="\"$ax_define_dir\""
6628 EXPAND_MANDIR
="$ax_define_dir"
6630 printf "%s\n" "#define EXPAND_MANDIR \"$ax_define_dir\"" >>confdefs.h
6632 test "$prefix_NONE" && prefix
=NONE
6633 test "$exec_prefix_NONE" && exec_prefix
=NONE
6636 # Original extract() function contributed by pmzqla
6637 # $*: Strings to parse
6638 # Set $QBT_CONF_DEFINES, $QBT_CONF_INCLUDES, $QBT_CONF_EXTRA_CFLAGS
6640 if [ -z "$*" ]; then
6641 echo "Input string required"
6645 # BSD sed needs an actual newline character in the substitute command
6648 # Convert " -" to "\n" if not between quotes and remove possible leading white spaces
6649 string
=$
(echo " $*" |
$SED -e "s: -:\\${new_line}:g" -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g" -e 's/^[[:space:]]*//')
6651 IFS
=$
(printf "\n\b")
6652 for i
in $string; do
6653 case "$(echo "$i" | cut -c1)" in
6655 D
) QBT_CONF_DEFINES
="$QBT_CONF_DEFINES $(echo $i | cut -c2-)";;
6656 I
) QBT_CONF_INCLUDES
="$QBT_CONF_INCLUDES $(echo $i | cut -c2-)";;
6657 *) QBT_CONF_EXTRA_CFLAGS
="$QBT_CONF_EXTRA_CFLAGS -$i";;
6663 extract
"$CFLAGS $CXXFLAGS"
6664 QBT_ADD_DEFINES
="$QBT_ADD_DEFINES $QBT_CONF_DEFINES"
6666 # Substitute the values of these vars in conf.pri.in
6676 QBT_CONFIG_FILES
="conf.pri"
6678 if test "x$enable_systemd" = "xyes"
6680 QBT_CONFIG_FILES
="$QBT_CONFIG_FILES dist/unix/systemd/qbittorrent-nox@.service"
6683 ac_config_files
="$ac_config_files "$QBT_CONFIG_FILES""
6685 cat >confcache
<<\_ACEOF
6686 # This file is a shell script that caches the results of configure
6687 # tests run on this system so they can be shared between configure
6688 # scripts and configure runs, see configure's option --config-cache.
6689 # It is not useful on other systems. If it contains results you don't
6690 # want to keep, you may remove or edit it.
6692 # config.status only pays attention to the cache file if you give it
6693 # the --recheck option to rerun configure.
6695 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6696 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6701 # The following way of writing the cache mishandles newlines in values,
6702 # but we know of no workaround that is simple, portable, and efficient.
6703 # So, we kill variables containing newlines.
6704 # Ultrix sh set writes to stderr and can't be redirected directly,
6705 # and sets the high bit in the cache file unless we assign to the vars.
6707 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6708 eval ac_val
=\$
$ac_var
6712 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6713 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6716 _ | IFS | as_nl
) ;; #(
6717 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6718 *) { eval $ac_var=; unset $ac_var;} ;;
6724 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6725 *${as_nl}ac_space
=\
*)
6726 # `set' does not quote correctly, so add quotes: double-quote
6727 # substitution turns \\\\ into \\, and sed turns \\ into \.
6730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6733 # `set' quotes correctly as required by POSIX, so do not add quotes.
6734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6743 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6745 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6747 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6748 if test -w "$cache_file"; then
6749 if test "x$cache_file" != "x/dev/null"; then
6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6751 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6752 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
6753 cat confcache
>"$cache_file"
6755 case $cache_file in #(
6757 mv -f confcache
"$cache_file"$$
&&
6758 mv -f "$cache_file"$$
"$cache_file" ;; #(
6760 mv -f confcache
"$cache_file" ;;
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6766 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6771 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6772 # Let make expand exec_prefix.
6773 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6775 # Transform confdefs.h into DEFS.
6776 # Protect against shell expansion while executing Makefile rules.
6777 # Protect against Makefile macro expansion.
6779 # If the first sed substitution is executed (which looks for macros that
6780 # take arguments), then branch to the quote section. Otherwise,
6781 # look for a macro that doesn't take arguments.
6791 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6793 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6797 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6810 DEFS
=`sed -n "$ac_script" confdefs.h`
6816 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6817 # 1. Remove the extension, and $U if already installed.
6818 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6819 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6820 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6821 # will be set to the directory where LIBOBJS objects are built.
6822 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6823 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6827 LTLIBOBJS
=$ac_ltlibobjs
6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6831 printf %s
"checking that generated files are newer than configure... " >&6; }
6832 if test -n "$am_sleep_pid"; then
6833 # Hide warnings about reused PIDs.
6834 wait $am_sleep_pid 2>/dev
/null
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6837 printf "%s\n" "done" >&6; }
6838 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6839 as_fn_error $?
"conditional \"AMDEP\" was never defined.
6840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6842 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6843 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
6844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6846 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6847 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
6848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6850 if test -n "$EXEEXT"; then
6852 am__EXEEXT_FALSE
='#'
6859 : "${CONFIG_STATUS=./config.status}"
6861 ac_clean_files_save
=$ac_clean_files
6862 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6864 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6866 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6868 # Generated by $as_me.
6869 # Run this file to recreate the current configuration.
6870 # Compiler output produced by configure, useful for debugging
6871 # configure, is in config.log if it exists.
6877 SHELL=\${CONFIG_SHELL-$SHELL}
6880 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6881 ## -------------------- ##
6882 ## M4sh Initialization. ##
6883 ## -------------------- ##
6885 # Be more Bourne compatible
6886 DUALCASE
=1; export DUALCASE
# for MKS sh
6888 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
6892 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6893 # is contrary to our usage. Disable this feature.
6894 alias -g '${1+"$@"}'='"$@"'
6895 setopt NO_GLOB_SUBST
6897 case `(set -o) 2>/dev/null` in #(
6907 # Reset variables that may have inherited troublesome values from
6910 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6911 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6912 # side effect of setting IFS to empty, thus disabling word splitting.)
6913 # Quoting is to prevent editors from complaining about space-tab.
6923 # Ensure predictable behavior from utilities with locale-dependent output.
6929 # We cannot yet rely on "unset" to work, but we need these variables
6930 # to be unset--not just set to an empty or harmless value--now, to
6931 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6932 # also avoids known problems related to "unset" and subshell syntax
6933 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6934 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
6935 do eval test \
${$as_var+y} \
6936 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6939 # Ensure that fds 0, 1, and 2 are open.
6940 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
6941 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
6942 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
6944 # The user is always right.
6945 if ${PATH_SEPARATOR+false} :; then
6947 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
6948 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
6954 # Find who we are. Look in the path if we contain no directory separator.
6957 *[\\/]* ) as_myself
=$0 ;;
6958 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6962 case $as_dir in #(((
6965 *) as_dir
=$as_dir/ ;;
6967 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
6973 # We did not find ourselves, most probably we were run as `sh COMMAND'
6974 # in which case we are not to be found in the path.
6975 if test "x$as_myself" = x
; then
6978 if test ! -f "$as_myself"; then
6979 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6985 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6986 # ----------------------------------------
6987 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6988 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6989 # script with STATUS, using 1 if that was 0.
6992 as_status
=$1; test $as_status -eq 0 && as_status
=1
6994 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6997 printf "%s\n" "$as_me: error: $2" >&2
6998 as_fn_exit
$as_status
7003 # as_fn_set_status STATUS
7004 # -----------------------
7005 # Set $? to STATUS, without forking.
7009 } # as_fn_set_status
7013 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7023 # Portably unset VAR.
7026 { eval $1=; unset $1;}
7028 as_unset
=as_fn_unset
7030 # as_fn_append VAR VALUE
7031 # ----------------------
7032 # Append the text in VALUE to the end of the definition contained in VAR. Take
7033 # advantage of any shell optimizations that allow amortized linear growth over
7034 # repeated appends, instead of the typical quadratic growth present in naive
7036 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
7038 eval 'as_fn_append ()
7049 # as_fn_arith ARG...
7050 # ------------------
7051 # Perform arithmetic evaluation on the ARGs, and store the result in the
7052 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7053 # must be portable across $(()) and expr.
7054 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
7056 eval 'as_fn_arith ()
7063 as_val
=`expr "$@" || test $? -eq 1`
7068 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7069 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7075 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7076 as_basename
=basename
7081 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7087 as_me
=`$as_basename -- "$0" ||
7088 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7089 X"$0" : 'X\(//\)$' \| \
7090 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7091 printf "%s\n" X/"$0" |
7092 sed '/^.*\/\([^/][^/]*\)\/*$/{
7106 # Avoid depending upon Character Ranges.
7107 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7108 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7109 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7110 as_cr_digits
='0123456789'
7111 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7114 # Determine whether it's possible to make 'echo' print without a newline.
7115 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7116 # for compatibility with existing Makefiles.
7117 ECHO_C
= ECHO_N
= ECHO_T
=
7118 case `echo -n x` in #(((((
7120 case `echo 'xy\c'` in
7121 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7123 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7130 # For backward compatibility with old third-party macros, we provide
7131 # the shell variables $as_echo and $as_echo_n. New code should use
7132 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7133 as_echo
='printf %s\n'
7134 as_echo_n
='printf %s'
7136 rm -f conf$$ conf$$.exe conf$$.
file
7137 if test -d conf$$.dir
; then
7138 rm -f conf$$.dir
/conf$$.
file
7141 mkdir conf$$.dir
2>/dev
/null
7143 if (echo >conf$$.
file) 2>/dev
/null
; then
7144 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7146 # ... but there are two gotchas:
7147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7149 # In both cases, we have to default to `cp -pR'.
7150 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7152 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7160 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7161 rmdir conf$$.dir
2>/dev
/null
7166 # Create "$as_dir" as a directory, including parents if necessary.
7171 -*) as_dir
=.
/$as_dir;;
7173 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7177 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7178 *) as_qdir
=$as_dir;;
7180 as_dirs
="'$as_qdir' $as_dirs"
7181 as_dir
=`$as_dirname -- "$as_dir" ||
7182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7183 X"$as_dir" : 'X\(//\)[^/]' \| \
7184 X"$as_dir" : 'X\(//\)$' \| \
7185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7186 printf "%s\n" X"$as_dir" |
7187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7204 test -d "$as_dir" && break
7206 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7207 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7211 if mkdir
-p .
2>/dev
/null
; then
7212 as_mkdir_p
='mkdir -p "$as_dir"'
7214 test -d .
/-p && rmdir .
/-p
7219 # as_fn_executable_p FILE
7220 # -----------------------
7221 # Test if FILE is an executable regular file.
7222 as_fn_executable_p
()
7224 test -f "$1" && test -x "$1"
7225 } # as_fn_executable_p
7227 as_executable_p
=as_fn_executable_p
7229 # Sed expression to map a string onto a valid CPP name.
7230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7232 # Sed expression to map a string onto a valid variable name.
7233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7237 ## ----------------------------------- ##
7238 ## Main body of $CONFIG_STATUS script. ##
7239 ## ----------------------------------- ##
7241 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7244 # Save the log message, to keep $0 and so on meaningful, and to
7245 # report actual input values of CONFIG_FILES etc. instead of their
7246 # values after options handling.
7248 This file was extended by qbittorrent $as_me v4.4.0alpha, which was
7249 generated by GNU Autoconf 2.71. Invocation command line was
7251 CONFIG_FILES = $CONFIG_FILES
7252 CONFIG_HEADERS = $CONFIG_HEADERS
7253 CONFIG_LINKS = $CONFIG_LINKS
7254 CONFIG_COMMANDS = $CONFIG_COMMANDS
7257 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7262 case $ac_config_files in *"
7263 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7269 # Files that config.status was made for.
7270 config_files="$ac_config_files"
7271 config_commands="$ac_config_commands"
7275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7277 \`$as_me' instantiates files and other configuration actions
7278 from templates according to the current configuration. Unless the files
7279 and actions are specified as TAGs, all are instantiated by default.
7281 Usage: $0 [OPTION]... [TAG]...
7283 -h, --help print this help, then exit
7284 -V, --version print version number and configuration settings, then exit
7285 --config print configuration, then exit
7286 -q, --quiet, --silent
7287 do not print progress messages
7288 -d, --debug don't remove temporary files
7289 --recheck update $as_me by reconfiguring in the same conditions
7290 --file=FILE[:TEMPLATE]
7291 instantiate the configuration file FILE
7293 Configuration files:
7296 Configuration commands:
7299 Report bugs to <bugs.qbittorrent.org>.
7300 qbittorrent home page: <https://www.qbittorrent.org/>."
7303 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7304 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7306 ac_cs_config='$ac_cs_config_escaped'
7308 qbittorrent config.status v4.4.0alpha
7309 configured by $0, generated by GNU Autoconf 2.71,
7310 with options \\"\$ac_cs_config\\"
7312 Copyright (C) 2021 Free Software Foundation, Inc.
7313 This config.status script is free software; the Free Software Foundation
7314 gives unlimited permission to copy, distribute and modify it."
7321 test -n "\$AWK" || AWK=awk
7324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7325 # The default lists apply if the user does not specify any file.
7331 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7332 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7336 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7348 # Handling of the options.
7349 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7351 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7352 printf "%s\n" "$ac_cs_version"; exit ;;
7353 --config |
--confi |
--conf |
--con |
--co |
--c )
7354 printf "%s\n" "$ac_cs_config"; exit ;;
7355 --debug |
--debu |
--deb |
--de |
--d |
-d )
7357 --file |
--fil |
--fi |
--f )
7360 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7361 '') as_fn_error $?
"missing file argument" ;;
7363 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7364 ac_need_defaults
=false
;;
7365 --he |
--h |
--help |
--hel |
-h )
7366 printf "%s\n" "$ac_cs_usage"; exit ;;
7367 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7368 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7372 -*) as_fn_error $?
"unrecognized option: \`$1'
7373 Try \`$0 --help' for more information." ;;
7375 *) as_fn_append ac_config_targets
" $1"
7376 ac_need_defaults
=false
;;
7382 ac_configure_extra_args
=
7384 if $ac_cs_silent; then
7386 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7391 if \$ac_cs_recheck; then
7392 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7394 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7395 CONFIG_SHELL='$SHELL'
7401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7405 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7406 ## Running $as_me. ##
7408 printf "%s\n" "$ac_log"
7412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7416 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7422 # Handling of arguments.
7423 for ac_config_target
in $ac_config_targets
7425 case $ac_config_target in
7426 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
7427 ""$QBT_CONFIG_FILES"") CONFIG_FILES
="$CONFIG_FILES "$QBT_CONFIG_FILES"" ;;
7429 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7434 # If the user did not use the arguments to specify the items to instantiate,
7435 # then the envvar interface is used. Set only those that are not.
7436 # We use the long form for the default assignment because of an extremely
7437 # bizarre bug on SunOS 4.1.3.
7438 if $ac_need_defaults; then
7439 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
7440 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS
=$config_commands
7443 # Have a temporary directory for convenience. Make it in the build tree
7444 # simply because there is no reason against having it here, and in addition,
7445 # creating and moving files from /tmp can sometimes cause problems.
7446 # Hook for its removal unless debugging.
7447 # Note that there is a small window in which the directory will not be cleaned:
7448 # after its creation but before its name has been assigned to `$tmp'.
7452 trap 'exit_status=$?
7454 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7456 trap 'as_fn_exit 1' 1 2 13 15
7458 # Create a (secure) tmp directory for tmp files.
7461 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7465 tmp
=.
/conf$$
-$RANDOM
7466 (umask 077 && mkdir
"$tmp")
7467 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7470 # Set up the scripts for CONFIG_FILES section.
7471 # No need to generate them if there are no CONFIG_FILES.
7472 # This happens for instance with `./config.status config.h'.
7473 if test -n "$CONFIG_FILES"; then
7476 ac_cr
=`echo X | tr X '\015'`
7477 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7478 # But we know of no other shell where ac_cr would be empty at this
7479 # point, so we can use a bashism as a fallback.
7480 if test "x$ac_cr" = x
; then
7481 eval ac_cr
=\$
\'\\r
\'
7483 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7484 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7490 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7495 echo "cat >conf$$subs.awk <<_ACEOF" &&
7496 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7499 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7500 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7502 for ac_last_try in false false false false false :; do
7503 . ./conf$$subs.sh ||
7504 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7506 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7507 if test $ac_delim_n = $ac_delim_num; then
7509 elif $ac_last_try; then
7510 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7512 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7518 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7522 s/^/S["/; s
/!.
*/"]=/
7532 s/\(.\{148\}\)..*/\1/
7534 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7539 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7546 s/\(.\{148\}\)..*/\1/
7548 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7552 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7557 ' <conf$$subs.awk | sed '
7562 ' >>$CONFIG_STATUS || ac_write_fail=1
7563 rm -f conf$$subs.awk
7564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7566 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7567 for (key in S) S_is_set[key] = 1
7573 nfields = split(line, field, "@
")
7575 len = length(field[1])
7576 for (i = 2; i < nfields; i++) {
7578 keylen = length(key)
7579 if (S_is_set[key]) {
7581 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7582 len += length(value) + length(field[++i])
7593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7594 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7595 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7598 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7599 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7602 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7603 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7604 # trailing colons and then remove the whole line if VPATH becomes empty
7605 # (actually we leave an empty line to preserve line numbers).
7606 if test "x
$srcdir" = x.; then
7607 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7626 fi # test -n "$CONFIG_FILES"
7629 eval set X " :F
$CONFIG_FILES :C
$CONFIG_COMMANDS"
7634 :[FHLC]) ac_mode=$ac_tag; continue;;
7636 case $ac_mode$ac_tag in
7638 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
7639 :[FH]-) ac_tag=-:-;;
7640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7657 -) ac_f="$ac_tmp/stdin";;
7658 *) # Look for the file first in the build tree, then in the source tree
7659 # (if the path is not absolute). The absolute path cannot be DOS-style,
7660 # because $ac_f cannot contain `:'.
7664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7666 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7668 case $ac_f in *\'*) ac_f=`printf "%s
\n" "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
7669 as_fn_append ac_file_inputs " '$ac_f'"
7672 # Let's still pretend it is `configure' which instantiates (i.e., don't
7673 # use $as_me), people would be surprised to read:
7674 # /* config.h. Generated by config.status. */
7675 configure_input='Generated from '`
7676 printf "%s
\n" "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7678 if test x"$ac_file" != x-; then
7679 configure_input="$ac_file.
$configure_input"
7680 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
7681 printf "%s
\n" "$as_me: creating
$ac_file" >&6;}
7683 # Neutralize special characters interpreted by sed in replacement strings.
7684 case $configure_input in #(
7685 *\&* | *\|* | *\\* )
7686 ac_sed_conf_input=`printf "%s
\n" "$configure_input" |
7687 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7688 *) ac_sed_conf_input=$configure_input;;
7692 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
7693 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
7698 ac_dir=`$as_dirname -- "$ac_file" ||
7699 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7700 X"$ac_file" : 'X\(//\)[^/]' \| \
7701 X"$ac_file" : 'X\(//\)$' \| \
7702 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7703 printf "%s
\n" X"$ac_file" |
7704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7721 as_dir="$ac_dir"; as_fn_mkdir_p
7725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7727 ac_dir_suffix=/`printf "%s
\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7728 # A "..
" for each directory in $ac_dir_suffix.
7729 ac_top_builddir_sub=`printf "%s
\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7730 case $ac_top_builddir_sub in
7731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7735 ac_abs_top_builddir=$ac_pwd
7736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7737 # for backward compatibility:
7738 ac_top_builddir=$ac_top_build_prefix
7741 .) # We are building in place.
7743 ac_top_srcdir=$ac_top_builddir_sub
7744 ac_abs_top_srcdir=$ac_pwd ;;
7745 [\\/]* | ?:[\\/]* ) # Absolute name.
7746 ac_srcdir=$srcdir$ac_dir_suffix;
7747 ac_top_srcdir=$srcdir
7748 ac_abs_top_srcdir=$srcdir ;;
7750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7751 ac_top_srcdir=$ac_top_build_prefix$srcdir
7752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7764 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7765 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7769 [\\/$]* | ?:[\\/]* ) ;;
7770 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7775 # If the template does not know about datarootdir, expand it.
7776 # FIXME: This hack should be removed a few years after 2.60.
7777 ac_datarootdir_hack=; ac_datarootdir_seen=
7788 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
7789 *datarootdir*) ac_datarootdir_seen=yes;;
7790 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7791 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
7792 printf "%s
\n" "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
7794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7795 ac_datarootdir_hack='
7796 s&@datadir@&$datadir&g
7797 s&@docdir@&$docdir&g
7798 s&@infodir@&$infodir&g
7799 s&@localedir@&$localedir&g
7800 s&@mandir@&$mandir&g
7801 s&\\\${datarootdir}&$datarootdir&g' ;;
7805 # Neutralize VPATH when `$srcdir' = `.'.
7806 # Shell code in configure.ac might set extrasub.
7807 # FIXME: do we really want to maintain this feature?
7808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7809 ac_sed_extra="$ac_vpsub
7812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7814 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7815 s|@configure_input@|
$ac_sed_conf_input|
;t t
7816 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7817 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7818 s
&@srcdir@
&$ac_srcdir&;t t
7819 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7820 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7821 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7822 s
&@builddir@
&$ac_builddir&;t t
7823 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7824 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7825 s
&@INSTALL@
&$ac_INSTALL&;t t
7826 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
7827 $ac_datarootdir_hack
7829 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
7830 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
7832 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7833 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
7834 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7835 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
7836 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7837 which seems to be undefined. Please make sure it is defined" >&5
7838 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7839 which seems to be undefined. Please make sure it is defined" >&2;}
7841 rm -f "$ac_tmp/stdin"
7843 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7844 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7850 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7851 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
7856 case $ac_file$ac_mode in
7857 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7858 # Older Autoconf quotes --file arguments for eval, but not when files
7859 # are listed without --file. Let's play safe and only
enable the
eval
7860 # if we detect the quoting.
7861 # TODO: see whether this extra hack can be removed once we start
7862 # requiring Autoconf 2.70 or later.
7863 case $CONFIG_FILES in #(
7865 eval set x
"$CONFIG_FILES" ;; #(
7867 set x
$CONFIG_FILES ;; #(
7872 # Used to flag and report bootstrapping failures.
7876 # Strip MF so we end up with the name of the file.
7877 am_mf
=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
7878 # Check whether this is an Automake generated Makefile which includes
7879 # dependency-tracking related rules and includes.
7880 # Grep'ing the whole file directly is not great: AIX grep has a line
7881 # limit of 2048, but all sed's we know have understand at least 4000.
7882 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" |
grep X
>/dev
/null
2>&1 \
7884 am_dirpart
=`$as_dirname -- "$am_mf" ||
7885 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7886 X"$am_mf" : 'X\(//\)[^/]' \| \
7887 X"$am_mf" : 'X\(//\)$' \| \
7888 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7889 printf "%s\n" X"$am_mf" |
7890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7907 am_filepart
=`$as_basename -- "$am_mf" ||
7908 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7909 X"$am_mf" : 'X\(//\)$' \| \
7910 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7911 printf "%s\n" X/"$am_mf" |
7912 sed '/^.*\/\([^/][^/]*\)\/*$/{
7925 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7926 && sed -e '/# am--include-marker/d' "$am_filepart" \
7927 | $MAKE -f - am--depfiles" >&5
7929 && sed -e '/# am--include-marker/d' "$am_filepart" \
7930 |
$MAKE -f - am--depfiles
) >&5 2>&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } || am_rc
=$?
7935 if test $am_rc -ne 0; then
7936 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7937 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7938 as_fn_error $?
"Something went wrong bootstrapping makefile fragments
7939 for automatic dependency tracking. If GNU make was not used, consider
7940 re-running the configure script with MAKE=\"gmake\" (or whatever is
7941 necessary). You can also try re-running configure with the
7942 '--disable-dependency-tracking' option to at least be able to build
7943 the package (albeit without support for automatic dependency tracking).
7944 See \`config.log' for more details" "$LINENO" 5; }
7946 { am_dirpart
=; unset am_dirpart
;}
7947 { am_filepart
=; unset am_filepart
;}
7948 { am_mf
=; unset am_mf
;}
7949 { am_rc
=; unset am_rc
;}
7950 rm -f conftest-deps.mk
7960 ac_clean_files
=$ac_clean_files_save
7962 test $ac_write_fail = 0 ||
7963 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
7966 # configure is writing to config.log, and then calls config.status.
7967 # config.status does its own redirection, appending to config.log.
7968 # Unfortunately, on DOS this fails, as config.log is still kept open
7969 # by configure, so config.status won't be able to write to it; its
7970 # output is simply discarded. So we exec the FD to /dev/null,
7971 # effectively closing config.log, so it can be properly (re)opened and
7972 # appended to by config.status. When coming back to configure, we
7973 # need to make the FD available again.
7974 if test "$no_create" != yes; then
7976 ac_config_status_args
=
7977 test "$silent" = yes &&
7978 ac_config_status_args
="$ac_config_status_args --quiet"
7980 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7982 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7983 # would make configure fail if this is the last instruction.
7984 $ac_cs_success || as_fn_exit
1
7986 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7988 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Running qmake to generate the makefile..." >&5
7993 printf "%s\n" "$as_me: Running qmake to generate the makefile..." >&6;}
7994 TOPDIR
="$(cd "$
(dirname "$0")" && pwd)"
7995 $QT_QMAKE -r "$TOPDIR/qbittorrent.pro" "QMAKE_LRELEASE=$QMAKE_LRELEASE"
7999 if test "x$qmake_ret" != "x0"
8001 as_fn_error $?
"$QT_QMAKE failed to generate the makefile" "$LINENO" 5
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Good, the configure finished." >&5
8005 printf "%s\n" "$as_me: Good, the configure finished." >&6;}