Sync translations from Transifex and run lupdate
[qBittorrent.git] / configure
blobda4254f38e9ffb3b83f6e17b766ad293bf8398b8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.70 for qbittorrent v4.4.0alpha.
5 # Report bugs to <bugs.qbittorrent.org>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 as_nop=:
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else $as_nop
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
39 # Reset variables that may have inherited troublesome values from
40 # the environment.
42 # IFS needs to be set, to space, tab, and newline, in precisely that order.
43 # (If _AS_PATH_WALK were called with IFS unset, it would have the
44 # side effect of setting IFS to empty, thus disabling word splitting.)
45 # Quoting is to prevent editors from complaining about space-tab.
46 as_nl='
48 export as_nl
49 IFS=" "" $as_nl"
51 PS1='$ '
52 PS2='> '
53 PS4='+ '
55 # Ensure predictable behavior from utilities with locale-dependent output.
56 LC_ALL=C
57 export LC_ALL
58 LANGUAGE=C
59 export LANGUAGE
61 # We cannot yet rely on "unset" to work, but we need these variables
62 # to be unset--not just set to an empty or harmless value--now, to
63 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
64 # also avoids known problems related to "unset" and subshell syntax
65 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
66 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
67 do eval test \${$as_var+y} \
68 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
69 done
71 # Ensure that fds 0, 1, and 2 are open.
72 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
73 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
74 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76 # The user is always right.
77 if ${PATH_SEPARATOR+false} :; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # Find who we are. Look in the path if we contain no directory separator.
87 as_myself=
88 case $0 in #((
89 *[\\/]* ) as_myself=$0 ;;
90 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91 for as_dir in $PATH
93 IFS=$as_save_IFS
94 case $as_dir in #(((
95 '') as_dir=./ ;;
96 */) ;;
97 *) as_dir=$as_dir/ ;;
98 esac
99 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
116 # Use a proper internal environment variable to ensure we don't fall
117 # into an infinite loop, continuously re-executing ourselves.
118 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
119 _as_can_reexec=no; export _as_can_reexec;
120 # We cannot yet assume a decent shell, so we have to provide a
121 # neutralization value for shells without unset; and this also
122 # works around shells that cannot unset nonexistent variables.
123 # Preserve -v and -x to the replacement shell.
124 BASH_ENV=/dev/null
125 ENV=/dev/null
126 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
127 case $- in # ((((
128 *v*x* | *x*v* ) as_opts=-vx ;;
129 *v* ) as_opts=-v ;;
130 *x* ) as_opts=-x ;;
131 * ) as_opts= ;;
132 esac
133 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
134 # Admittedly, this is quite paranoid, since all the known shells bail
135 # out after a failed `exec'.
136 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
137 exit 255
139 # We don't want this to propagate to other subprocesses.
140 { _as_can_reexec=; unset _as_can_reexec;}
141 if test "x$CONFIG_SHELL" = x; then
142 as_bourne_compatible="as_nop=:
143 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else \$as_nop
152 case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
157 esac
160 as_required="as_fn_return () { (exit \$1); }
161 as_fn_success () { as_fn_return 0; }
162 as_fn_failure () { as_fn_return 1; }
163 as_fn_ret_success () { return 0; }
164 as_fn_ret_failure () { return 1; }
166 exitcode=0
167 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
168 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
169 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
170 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
171 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
172 then :
174 else \$as_nop
175 exitcode=1; echo positional parameters were not saved.
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null
187 then :
188 as_have_required=yes
189 else $as_nop
190 as_have_required=no
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 then :
195 else $as_nop
196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 as_found=false
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 IFS=$as_save_IFS
201 case $as_dir in #(((
202 '') as_dir=./ ;;
203 */) ;;
204 *) as_dir=$as_dir/ ;;
205 esac
206 as_found=:
207 case $as_dir in #(
209 for as_base in sh bash ksh sh5; do
210 # Try only shells that exist, to save several forks.
211 as_shell=$as_dir$as_base
212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 then :
215 CONFIG_SHELL=$as_shell as_have_required=yes
216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217 then :
218 break 2
221 done;;
222 esac
223 as_found=false
224 done
225 IFS=$as_save_IFS
226 if $as_found
227 then :
229 else $as_nop
230 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x
239 then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
261 if test x$as_have_required = xno
262 then :
263 printf "%s\n" "$0: This script requires a shell more modern than all"
264 printf "%s\n" "$0: the shells that I found on your system."
265 if test ${ZSH_VERSION+y} ; then
266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
270 $0: bugs.qbittorrent.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
303 return $1
304 } # as_fn_set_status
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315 # as_fn_nop
316 # ---------
317 # Do nothing but, unlike ":", preserve the value of $?.
318 as_fn_nop ()
320 return $?
322 as_nop=as_fn_nop
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 printf "%s\n" X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
355 /^X\(\/\/\)$/{
356 s//\1/
359 /^X\(\/\).*/{
360 s//\1/
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370 } # as_fn_mkdir_p
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
386 then :
387 eval 'as_fn_append ()
389 eval $1+=\$2
391 else $as_nop
392 as_fn_append ()
394 eval $1=\$$1\$2
396 fi # as_fn_append
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
404 then :
405 eval 'as_fn_arith ()
407 as_val=$(( $* ))
409 else $as_nop
410 as_fn_arith ()
412 as_val=`expr "$@" || test $? -eq 1`
414 fi # as_fn_arith
416 # as_fn_nop
417 # ---------
418 # Do nothing but, unlike ":", preserve the value of $?.
419 as_fn_nop ()
421 return $?
423 as_nop=as_fn_nop
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
469 /^X\/\(\/\/\)$/{
470 s//\1/
473 /^X\/\(\/\).*/{
474 s//\1/
477 s/.*/./; q'`
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 s/[$]LINENO.*/&-/
498 t lineno
500 :lineno
502 :loop
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 t loop
505 s/-\n.*//
506 ' >$as_me.lineno &&
507 chmod +x "$as_me.lineno" ||
508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
517 . "./$as_me.lineno"
518 # Exit status is that of the last command.
519 exit
523 # Determine whether it's possible to make 'echo' print without a newline.
524 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525 # for compatibility with existing Makefiles.
526 ECHO_C= ECHO_N= ECHO_T=
527 case `echo -n x` in #(((((
528 -n*)
529 case `echo 'xy\c'` in
530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
531 xy) ECHO_C='\c';;
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
533 ECHO_T=' ';;
534 esac;;
536 ECHO_N='-n';;
537 esac
539 # For backward compatibility with old third-party macros, we provide
540 # the shell variables $as_echo and $as_echo_n. New code should use
541 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542 as_echo='printf %s\n'
543 as_echo_n='printf %s'
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559 # In both cases, we have to default to `cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
567 else
568 as_ln_s='cp -pR'
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
583 # Sed expression to map a string onto a valid CPP name.
584 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586 # Sed expression to map a string onto a valid variable name.
587 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590 test -n "$DJDIR" || exec 7<&0 </dev/null
591 exec 6>&1
593 # Name of the host.
594 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595 # so uname gets run too.
596 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599 # Initializations.
601 ac_default_prefix=/usr/local
602 ac_clean_files=
603 ac_config_libobj_dir=.
604 LIBOBJS=
605 cross_compiling=no
606 subdirs=
607 MFLAGS=
608 MAKEFLAGS=
610 # Identity of this package.
611 PACKAGE_NAME='qbittorrent'
612 PACKAGE_TARNAME='qbittorrent'
613 PACKAGE_VERSION='v4.4.0alpha'
614 PACKAGE_STRING='qbittorrent v4.4.0alpha'
615 PACKAGE_BUGREPORT='bugs.qbittorrent.org'
616 PACKAGE_URL='https://www.qbittorrent.org/'
618 ac_subst_vars='am__EXEEXT_FALSE
619 am__EXEEXT_TRUE
620 LTLIBOBJS
621 LIBOBJS
622 QBT_REMOVE_DEFINES
623 QBT_ADD_DEFINES
624 QBT_REMOVE_CONFIG
625 QBT_ADD_CONFIG
626 QBT_CONF_EXTRA_CFLAGS
627 QBT_CONF_INCLUDES
628 QBT_CXX
629 QBT_CC
630 EXPAND_MANDIR
631 EXPAND_DATADIR
632 EXPAND_BINDIR
633 EXPAND_PREFIX
634 zlib_LIBS
635 zlib_CFLAGS
636 openssl_LIBS
637 openssl_CFLAGS
638 libtorrent_LIBS
639 libtorrent_CFLAGS
640 BOOST_SYSTEM_LIB
641 BOOST_LDFLAGS
642 BOOST_CPPFLAGS
643 Qt5Svg_LIBS
644 Qt5Svg_CFLAGS
645 QT_QMAKE
646 PKG_CONFIG_LIBDIR
647 PKG_CONFIG_PATH
648 PKG_CONFIG
649 AM_BACKSLASH
650 AM_DEFAULT_VERBOSITY
651 AM_DEFAULT_V
652 AM_V
653 am__fastdepCXX_FALSE
654 am__fastdepCXX_TRUE
655 CXXDEPMODE
656 am__fastdepCC_FALSE
657 am__fastdepCC_TRUE
658 CCDEPMODE
659 am__nodep
660 AMDEPBACKSLASH
661 AMDEP_FALSE
662 AMDEP_TRUE
663 am__include
664 DEPDIR
665 am__untar
666 am__tar
667 AMTAR
668 am__leading_dot
669 SET_MAKE
671 mkdir_p
672 MKDIR_P
673 INSTALL_STRIP_PROGRAM
674 STRIP
675 install_sh
676 MAKEINFO
677 AUTOHEADER
678 AUTOMAKE
679 AUTOCONF
680 ACLOCAL
681 VERSION
682 PACKAGE
683 CYGPATH_W
684 am__isrc
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
697 ac_ct_CXX
698 CXXFLAGS
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
707 target_alias
708 host_alias
709 build_alias
710 LIBS
711 ECHO_T
712 ECHO_N
713 ECHO_C
714 DEFS
715 mandir
716 localedir
717 libdir
718 psdir
719 pdfdir
720 dvidir
721 htmldir
722 infodir
723 docdir
724 oldincludedir
725 includedir
726 runstatedir
727 localstatedir
728 sharedstatedir
729 sysconfdir
730 datadir
731 datarootdir
732 libexecdir
733 sbindir
734 bindir
735 program_transform_name
736 prefix
737 exec_prefix
738 PACKAGE_URL
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL
746 am__quote'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 enable_dependency_tracking
751 enable_silent_rules
752 enable_debug
753 enable_stacktrace
754 enable_gui
755 enable_systemd
756 enable_webui
757 enable_qt_dbus
758 with_boost
759 with_boost_libdir
760 with_boost_system
762 ac_precious_vars='build_alias
763 host_alias
764 target_alias
766 CFLAGS
767 LDFLAGS
768 LIBS
769 CPPFLAGS
771 CXXFLAGS
773 PKG_CONFIG
774 PKG_CONFIG_PATH
775 PKG_CONFIG_LIBDIR
776 QT_QMAKE
777 Qt5Svg_CFLAGS
778 Qt5Svg_LIBS
779 libtorrent_CFLAGS
780 libtorrent_LIBS
781 openssl_CFLAGS
782 openssl_LIBS
783 zlib_CFLAGS
784 zlib_LIBS'
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 runstatedir='${localstatedir}/run'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
836 ac_prev=
837 ac_dashdash=
838 for ac_option
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
843 ac_prev=
844 continue
847 case $ac_option in
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *=) ac_optarg= ;;
850 *) ac_optarg=yes ;;
851 esac
853 case $ac_dashdash$ac_option in
855 ac_dashdash=yes ;;
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
874 --config-cache | -C)
875 cache_file=config.cache ;;
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: \`$ac_useropt'"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: \`$ac_useropt'"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1074 -runstatedir | --runstatedir | --runstatedi | --runstated \
1075 | --runstate | --runstat | --runsta | --runst | --runs \
1076 | --run | --ru | --r)
1077 ac_prev=runstatedir ;;
1078 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1079 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1080 | --run=* | --ru=* | --r=*)
1081 runstatedir=$ac_optarg ;;
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 ac_prev=sbindir ;;
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 | --sbi=* | --sb=*)
1087 sbindir=$ac_optarg ;;
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1092 | --sha | --sh)
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 | --sha=* | --sh=*)
1098 sharedstatedir=$ac_optarg ;;
1100 -site | --site | --sit)
1101 ac_prev=site ;;
1102 -site=* | --site=* | --sit=*)
1103 site=$ac_optarg ;;
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 ac_prev=srcdir ;;
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123 verbose=yes ;;
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1128 -with-* | --with-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: \`$ac_useropt'"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: \`$ac_useropt'"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1153 "with_$ac_useropt"
1154 "*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=no ;;
1160 --x)
1161 # Obsolete; use --with-x.
1162 with_x=yes ;;
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1182 *=*)
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 case $ac_envvar in #(
1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188 esac
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1193 # FIXME: should be removed in autoconf 3.0.
1194 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200 esac
1201 done
1203 if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205 as_fn_error $? "missing argument to $ac_option"
1208 if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1210 no) ;;
1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213 esac
1216 # Check all directory arguments for consistency.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir runstatedir
1222 eval ac_val=\$$ac_var
1223 # Remove trailing slashes.
1224 case $ac_val in
1225 */ )
1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\$ac_val;;
1228 esac
1229 # Be sure to have absolute directory names.
1230 case $ac_val in
1231 [\\/$]* | ?:[\\/]* ) continue;;
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233 esac
1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235 done
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1240 build=$build_alias
1241 host=$host_alias
1242 target=$target_alias
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246 if test "x$build_alias" = x; then
1247 cross_compiling=maybe
1248 elif test "x$build_alias" != "x$host_alias"; then
1249 cross_compiling=yes
1253 ac_tool_prefix=
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256 test "$silent" = yes && exec 6>/dev/null
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262 as_fn_error $? "working directory cannot be determined"
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 as_fn_error $? "pwd does not report name of working directory"
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir=`$as_dirname -- "$as_myself" ||
1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$as_myself" : 'X\(//\)[^/]' \| \
1274 X"$as_myself" : 'X\(//\)$' \| \
1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 printf "%s\n" X"$as_myself" |
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 s//\1/
1281 /^X\(\/\/\)[^/].*/{
1282 s//\1/
1285 /^X\(\/\/\)$/{
1286 s//\1/
1289 /^X\(\/\).*/{
1290 s//\1/
1293 s/.*/./; q'`
1294 srcdir=$ac_confdir
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 srcdir=..
1298 else
1299 ac_srcdir_defaulted=no
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 srcdir=.
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1327 # Report the --help message.
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1332 cat <<_ACEOF
1333 \`configure' configures qbittorrent v4.4.0alpha to adapt to many kinds of systems.
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1340 Defaults for the options are specified in brackets.
1342 Configuration:
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking ...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 [PREFIX]
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1364 For better control, use the options below.
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/qbittorrent]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1387 _ACEOF
1389 cat <<\_ACEOF
1391 Program names:
1392 --program-prefix=PREFIX prepend PREFIX to installed program names
1393 --program-suffix=SUFFIX append SUFFIX to installed program names
1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1396 System types:
1397 --build=BUILD configure for building on BUILD [guessed]
1398 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1399 _ACEOF
1402 if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of qbittorrent v4.4.0alpha:";;
1405 esac
1406 cat <<\_ACEOF
1408 Optional Features:
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --enable-dependency-tracking
1413 do not reject slow dependency extractors
1414 --disable-dependency-tracking
1415 speeds up one-time build
1416 --enable-silent-rules less verbose build output (undo: "make V=1")
1417 --disable-silent-rules verbose build output (undo: "make V=0")
1418 --enable-debug Enable debug build
1419 --enable-stacktrace Enable stacktrace feature (default=auto)
1420 --disable-gui Disable the GUI for headless running. Disables
1421 QtDBus and the GeoIP Database.
1422 --enable-systemd Install the systemd service file (headless only).
1423 --disable-webui Disable the WebUI.
1424 --disable-qt-dbus Disable use of QtDBus (GUI only)
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-boost[=ARG] use Boost library from a standard location
1430 (ARG=yes), from the specified location (ARG=<path>),
1431 or disable it (ARG=no) [ARG=yes]
1432 --with-boost-libdir=LIB_DIR
1433 Force given directory for boost libraries. Note that
1434 this will override library path detection, so use
1435 this parameter only if default library detection
1436 fails and you know exactly where your boost
1437 libraries are located.
1438 --with-boost-system[=special-lib]
1439 use the System library from boost - it is possible
1440 to specify a certain library for the linker e.g.
1441 --with-boost-system=boost_system-gcc-mt
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 CXX C++ compiler command
1452 CXXFLAGS C++ compiler flags
1453 PKG_CONFIG path to pkg-config utility
1454 PKG_CONFIG_PATH
1455 directories to add to pkg-config's search path
1456 PKG_CONFIG_LIBDIR
1457 path overriding pkg-config's built-in search path
1458 QT_QMAKE value of host_bins for Qt5Core >= 5.12, overriding pkg-config
1459 Qt5Svg_CFLAGS
1460 C compiler flags for Qt5Svg, overriding pkg-config
1461 Qt5Svg_LIBS linker flags for Qt5Svg, overriding pkg-config
1462 libtorrent_CFLAGS
1463 C compiler flags for libtorrent, overriding pkg-config
1464 libtorrent_LIBS
1465 linker flags for libtorrent, overriding pkg-config
1466 openssl_CFLAGS
1467 C compiler flags for openssl, overriding pkg-config
1468 openssl_LIBS
1469 linker flags for openssl, overriding pkg-config
1470 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1471 zlib_LIBS linker flags for zlib, overriding pkg-config
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1476 Report bugs to <bugs.qbittorrent.org>.
1477 qbittorrent home page: <https://www.qbittorrent.org/>.
1478 _ACEOF
1479 ac_status=$?
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1506 case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for configure.gnu first; this name is used for a wrapper for
1524 # Metaconfig's "Configure" on case-insensitive file systems.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1531 else
1532 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1535 done
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540 cat <<\_ACEOF
1541 qbittorrent configure v4.4.0alpha
1542 generated by GNU Autoconf 2.70
1544 Copyright (C) 2020 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548 exit
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext conftest.beam
1562 if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 printf "%s\n" "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext
1581 then :
1582 ac_retval=0
1583 else $as_nop
1584 printf "%s\n" "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1587 ac_retval=1
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1592 } # ac_fn_c_try_compile
1594 # ac_fn_cxx_try_compile LINENO
1595 # ----------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_cxx_try_compile ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext conftest.beam
1601 if { { ac_try="$ac_compile"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 printf "%s\n" "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_cxx_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext
1620 then :
1621 ac_retval=0
1622 else $as_nop
1623 printf "%s\n" "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1626 ac_retval=1
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1631 } # ac_fn_cxx_try_compile
1633 # ac_fn_cxx_try_link LINENO
1634 # -------------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_cxx_try_link ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1640 if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 printf "%s\n" "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_cxx_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest$ac_exeext && {
1659 test "$cross_compiling" = yes ||
1660 test -x conftest$ac_exeext
1662 then :
1663 ac_retval=0
1664 else $as_nop
1665 printf "%s\n" "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1668 ac_retval=1
1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672 # interfere with the next link command; also delete a directory that is
1673 # left behind by Apple's compiler. We do this before executing the actions.
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1678 } # ac_fn_cxx_try_link
1679 ac_configure_args_raw=
1680 for ac_arg
1682 case $ac_arg in
1683 *\'*)
1684 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1685 esac
1686 as_fn_append ac_configure_args_raw " '$ac_arg'"
1687 done
1689 case $ac_configure_args_raw in
1690 *$as_nl*)
1691 ac_safe_unquote= ;;
1693 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1694 ac_unsafe_a="$ac_unsafe_z#~"
1695 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1696 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1697 esac
1699 cat >config.log <<_ACEOF
1700 This file contains any messages produced by compilers while
1701 running configure, to aid debugging if configure makes a mistake.
1703 It was created by qbittorrent $as_me v4.4.0alpha, which was
1704 generated by GNU Autoconf 2.70. Invocation command line was
1706 $ $0$ac_configure_args_raw
1708 _ACEOF
1709 exec 5>>config.log
1711 cat <<_ASUNAME
1712 ## --------- ##
1713 ## Platform. ##
1714 ## --------- ##
1716 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1717 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1718 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1719 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1720 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1722 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1723 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1725 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1726 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1727 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1728 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1729 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1730 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1731 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1733 _ASUNAME
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1738 IFS=$as_save_IFS
1739 case $as_dir in #(((
1740 '') as_dir=./ ;;
1741 */) ;;
1742 *) as_dir=$as_dir/ ;;
1743 esac
1744 printf "%s\n" "PATH: $as_dir"
1745 done
1746 IFS=$as_save_IFS
1748 } >&5
1750 cat >&5 <<_ACEOF
1753 ## ----------- ##
1754 ## Core tests. ##
1755 ## ----------- ##
1757 _ACEOF
1760 # Keep a trace of the command line.
1761 # Strip out --no-create and --no-recursion so they do not pile up.
1762 # Strip out --silent because we don't want to record it for future runs.
1763 # Also quote any args containing shell meta-characters.
1764 # Make two passes to allow for proper duplicate-argument suppression.
1765 ac_configure_args=
1766 ac_configure_args0=
1767 ac_configure_args1=
1768 ac_must_keep_next=false
1769 for ac_pass in 1 2
1771 for ac_arg
1773 case $ac_arg in
1774 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1776 | -silent | --silent | --silen | --sile | --sil)
1777 continue ;;
1778 *\'*)
1779 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1780 esac
1781 case $ac_pass in
1782 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1784 as_fn_append ac_configure_args1 " '$ac_arg'"
1785 if test $ac_must_keep_next = true; then
1786 ac_must_keep_next=false # Got value, back to normal.
1787 else
1788 case $ac_arg in
1789 *=* | --config-cache | -C | -disable-* | --disable-* \
1790 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1791 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1792 | -with-* | --with-* | -without-* | --without-* | --x)
1793 case "$ac_configure_args0 " in
1794 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1795 esac
1797 -* ) ac_must_keep_next=true ;;
1798 esac
1800 as_fn_append ac_configure_args " '$ac_arg'"
1802 esac
1803 done
1804 done
1805 { ac_configure_args0=; unset ac_configure_args0;}
1806 { ac_configure_args1=; unset ac_configure_args1;}
1808 # When interrupted or exit'd, cleanup temporary files, and complete
1809 # config.log. We remove comments because anyway the quotes in there
1810 # would cause problems or look ugly.
1811 # WARNING: Use '\'' to represent an apostrophe within the trap.
1812 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1813 trap 'exit_status=$?
1814 # Sanitize IFS.
1815 IFS=" "" $as_nl"
1816 # Save into config.log some information that might help in debugging.
1818 echo
1820 printf "%s\n" "## ---------------- ##
1821 ## Cache variables. ##
1822 ## ---------------- ##"
1823 echo
1824 # The following way of writing the cache mishandles newlines in values,
1826 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1827 eval ac_val=\$$ac_var
1828 case $ac_val in #(
1829 *${as_nl}*)
1830 case $ac_var in #(
1831 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1832 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1833 esac
1834 case $ac_var in #(
1835 _ | IFS | as_nl) ;; #(
1836 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1837 *) { eval $ac_var=; unset $ac_var;} ;;
1838 esac ;;
1839 esac
1840 done
1841 (set) 2>&1 |
1842 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1843 *${as_nl}ac_space=\ *)
1844 sed -n \
1845 "s/'\''/'\''\\\\'\'''\''/g;
1846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1847 ;; #(
1849 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1851 esac |
1852 sort
1854 echo
1856 printf "%s\n" "## ----------------- ##
1857 ## Output variables. ##
1858 ## ----------------- ##"
1859 echo
1860 for ac_var in $ac_subst_vars
1862 eval ac_val=\$$ac_var
1863 case $ac_val in
1864 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865 esac
1866 printf "%s\n" "$ac_var='\''$ac_val'\''"
1867 done | sort
1868 echo
1870 if test -n "$ac_subst_files"; then
1871 printf "%s\n" "## ------------------- ##
1872 ## File substitutions. ##
1873 ## ------------------- ##"
1874 echo
1875 for ac_var in $ac_subst_files
1877 eval ac_val=\$$ac_var
1878 case $ac_val in
1879 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1880 esac
1881 printf "%s\n" "$ac_var='\''$ac_val'\''"
1882 done | sort
1883 echo
1886 if test -s confdefs.h; then
1887 printf "%s\n" "## ----------- ##
1888 ## confdefs.h. ##
1889 ## ----------- ##"
1890 echo
1891 cat confdefs.h
1892 echo
1894 test "$ac_signal" != 0 &&
1895 printf "%s\n" "$as_me: caught signal $ac_signal"
1896 printf "%s\n" "$as_me: exit $exit_status"
1897 } >&5
1898 rm -f core *.core core.conftest.* &&
1899 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1900 exit $exit_status
1902 for ac_signal in 1 2 13 15; do
1903 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1904 done
1905 ac_signal=0
1907 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1908 rm -f -r conftest* confdefs.h
1910 printf "%s\n" "/* confdefs.h */" > confdefs.h
1912 # Predefined preprocessor variables.
1914 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1916 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1918 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1920 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1922 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1924 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1927 # Let the site file select an alternate cache file if it wants to.
1928 # Prefer an explicitly selected file to automatically selected ones.
1929 if test -n "$CONFIG_SITE"; then
1930 ac_site_files="$CONFIG_SITE"
1931 elif test "x$prefix" != xNONE; then
1932 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1933 else
1934 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1937 for ac_site_file in $ac_site_files
1939 case $ac_site_file in #(
1940 */*) :
1941 ;; #(
1942 *) :
1943 ac_site_file=./$ac_site_file ;;
1944 esac
1945 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1947 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1948 sed 's/^/| /' "$ac_site_file" >&5
1949 . "$ac_site_file" \
1950 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1951 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1952 as_fn_error $? "failed to load site script $ac_site_file
1953 See \`config.log' for more details" "$LINENO" 5; }
1955 done
1957 if test -r "$cache_file"; then
1958 # Some versions of bash will fail to source /dev/null (special files
1959 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1960 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1962 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1963 case $cache_file in
1964 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1965 *) . "./$cache_file";;
1966 esac
1968 else
1969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1970 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1971 >$cache_file
1974 # Test code for whether the C compiler supports C89 (global declarations)
1975 ac_c_conftest_c89_globals='
1976 /* Does the compiler advertise C89 conformance?
1977 Do not test the value of __STDC__, because some compilers set it to 0
1978 while being otherwise adequately conformant. */
1979 #if !defined __STDC__
1980 # error "Compiler does not advertise C89 conformance"
1981 #endif
1983 #include <stddef.h>
1984 #include <stdarg.h>
1985 struct stat;
1986 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1987 struct buf { int x; };
1988 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1989 static char *e (p, i)
1990 char **p;
1991 int i;
1993 return p[i];
1995 static char *f (char * (*g) (char **, int), char **p, ...)
1997 char *s;
1998 va_list v;
1999 va_start (v,p);
2000 s = g (p, va_arg (v,int));
2001 va_end (v);
2002 return s;
2005 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2006 function prototypes and stuff, but not \xHH hex character constants.
2007 These do not provoke an error unfortunately, instead are silently treated
2008 as an "x". The following induces an error, until -std is added to get
2009 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2010 array size at least. It is necessary to write \x00 == 0 to get something
2011 that is true only with -std. */
2012 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2014 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2015 inside strings and character constants. */
2016 #define FOO(x) '\''x'\''
2017 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2019 int test (int i, double x);
2020 struct s1 {int (*f) (int a);};
2021 struct s2 {int (*f) (double a);};
2022 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2023 int, int);'
2025 # Test code for whether the C compiler supports C89 (body of main).
2026 ac_c_conftest_c89_main='
2027 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2030 # Test code for whether the C compiler supports C99 (global declarations)
2031 ac_c_conftest_c99_globals='
2032 // Does the compiler advertise C99 conformance?
2033 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2034 # error "Compiler does not advertise C99 conformance"
2035 #endif
2037 #include <stdbool.h>
2038 extern int puts (const char *);
2039 extern int printf (const char *, ...);
2040 extern int dprintf (int, const char *, ...);
2041 extern void *malloc (size_t);
2043 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2044 // dprintf is used instead of fprintf to avoid needing to declare
2045 // FILE and stderr.
2046 #define debug(...) dprintf (2, __VA_ARGS__)
2047 #define showlist(...) puts (#__VA_ARGS__)
2048 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2049 static void
2050 test_varargs_macros (void)
2052 int x = 1234;
2053 int y = 5678;
2054 debug ("Flag");
2055 debug ("X = %d\n", x);
2056 showlist (The first, second, and third items.);
2057 report (x>y, "x is %d but y is %d", x, y);
2060 // Check long long types.
2061 #define BIG64 18446744073709551615ull
2062 #define BIG32 4294967295ul
2063 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2064 #if !BIG_OK
2065 #error "your preprocessor is broken"
2066 #endif
2067 #if BIG_OK
2068 #else
2069 #error "your preprocessor is broken"
2070 #endif
2071 static long long int bignum = -9223372036854775807LL;
2072 static unsigned long long int ubignum = BIG64;
2074 struct incomplete_array
2076 int datasize;
2077 double data[];
2080 struct named_init {
2081 int number;
2082 const wchar_t *name;
2083 double average;
2086 typedef const char *ccp;
2088 static inline int
2089 test_restrict (ccp restrict text)
2091 // See if C++-style comments work.
2092 // Iterate through items via the restricted pointer.
2093 // Also check for declarations in for loops.
2094 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2095 continue;
2096 return 0;
2099 // Check varargs and va_copy.
2100 static bool
2101 test_varargs (const char *format, ...)
2103 va_list args;
2104 va_start (args, format);
2105 va_list args_copy;
2106 va_copy (args_copy, args);
2108 const char *str = "";
2109 int number = 0;
2110 float fnumber = 0;
2112 while (*format)
2114 switch (*format++)
2116 case '\''s'\'': // string
2117 str = va_arg (args_copy, const char *);
2118 break;
2119 case '\''d'\'': // int
2120 number = va_arg (args_copy, int);
2121 break;
2122 case '\''f'\'': // float
2123 fnumber = va_arg (args_copy, double);
2124 break;
2125 default:
2126 break;
2129 va_end (args_copy);
2130 va_end (args);
2132 return *str && number && fnumber;
2136 # Test code for whether the C compiler supports C99 (body of main).
2137 ac_c_conftest_c99_main='
2138 // Check bool.
2139 _Bool success = false;
2140 success |= (argc != 0);
2142 // Check restrict.
2143 if (test_restrict ("String literal") == 0)
2144 success = true;
2145 char *restrict newvar = "Another string";
2147 // Check varargs.
2148 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2149 test_varargs_macros ();
2151 // Check flexible array members.
2152 struct incomplete_array *ia =
2153 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2154 ia->datasize = 10;
2155 for (int i = 0; i < ia->datasize; ++i)
2156 ia->data[i] = i * 1.234;
2158 // Check named initializers.
2159 struct named_init ni = {
2160 .number = 34,
2161 .name = L"Test wide string",
2162 .average = 543.34343,
2165 ni.number = 58;
2167 int dynamic_array[ni.number];
2168 dynamic_array[0] = argv[0][0];
2169 dynamic_array[ni.number - 1] = 543;
2171 // work around unused variable warnings
2172 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2173 || dynamic_array[ni.number - 1] != 543);
2176 # Test code for whether the C compiler supports C11 (global declarations)
2177 ac_c_conftest_c11_globals='
2178 // Does the compiler advertise C11 conformance?
2179 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2180 # error "Compiler does not advertise C11 conformance"
2181 #endif
2183 // Check _Alignas.
2184 char _Alignas (double) aligned_as_double;
2185 char _Alignas (0) no_special_alignment;
2186 extern char aligned_as_int;
2187 char _Alignas (0) _Alignas (int) aligned_as_int;
2189 // Check _Alignof.
2190 enum
2192 int_alignment = _Alignof (int),
2193 int_array_alignment = _Alignof (int[100]),
2194 char_alignment = _Alignof (char)
2196 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2198 // Check _Noreturn.
2199 int _Noreturn does_not_return (void) { for (;;) continue; }
2201 // Check _Static_assert.
2202 struct test_static_assert
2204 int x;
2205 _Static_assert (sizeof (int) <= sizeof (long int),
2206 "_Static_assert does not work in struct");
2207 long int y;
2210 // Check UTF-8 literals.
2211 #define u8 syntax error!
2212 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2214 // Check duplicate typedefs.
2215 typedef long *long_ptr;
2216 typedef long int *long_ptr;
2217 typedef long_ptr long_ptr;
2219 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2220 struct anonymous
2222 union {
2223 struct { int i; int j; };
2224 struct { int k; long int l; } w;
2226 int m;
2227 } v1;
2230 # Test code for whether the C compiler supports C11 (body of main).
2231 ac_c_conftest_c11_main='
2232 _Static_assert ((offsetof (struct anonymous, i)
2233 == offsetof (struct anonymous, w.k)),
2234 "Anonymous union alignment botch");
2235 v1.i = 2;
2236 v1.w.k = 5;
2237 ok |= v1.i != 5;
2240 # Test code for whether the C compiler supports C11 (complete).
2241 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2242 ${ac_c_conftest_c99_globals}
2243 ${ac_c_conftest_c11_globals}
2246 main (int argc, char **argv)
2248 int ok = 0;
2249 ${ac_c_conftest_c89_main}
2250 ${ac_c_conftest_c99_main}
2251 ${ac_c_conftest_c11_main}
2252 return ok;
2256 # Test code for whether the C compiler supports C99 (complete).
2257 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2258 ${ac_c_conftest_c99_globals}
2261 main (int argc, char **argv)
2263 int ok = 0;
2264 ${ac_c_conftest_c89_main}
2265 ${ac_c_conftest_c99_main}
2266 return ok;
2270 # Test code for whether the C compiler supports C89 (complete).
2271 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2274 main (int argc, char **argv)
2276 int ok = 0;
2277 ${ac_c_conftest_c89_main}
2278 return ok;
2282 # Test code for whether the C++ compiler supports C++98 (global declarations)
2283 ac_cxx_conftest_cxx98_globals='
2284 // Does the compiler advertise C++98 conformance?
2285 #if !defined __cplusplus || __cplusplus < 199711L
2286 # error "Compiler does not advertise C++98 conformance"
2287 #endif
2289 // These inclusions are to reject old compilers that
2290 // lack the unsuffixed header files.
2291 #include <cstdlib>
2292 #include <exception>
2294 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2295 extern void assert (int);
2296 namespace std {
2297 extern int strcmp (const char *, const char *);
2300 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2301 using std::exception;
2302 using std::strcmp;
2304 namespace {
2306 void test_exception_syntax()
2308 try {
2309 throw "test";
2310 } catch (const char *s) {
2311 // Extra parentheses suppress a warning when building autoconf itself,
2312 // due to lint rules shared with more typical C programs.
2313 assert (!(strcmp) (s, "test"));
2317 template <typename T> struct test_template
2319 T const val;
2320 explicit test_template(T t) : val(t) {}
2321 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2324 } // anonymous namespace
2327 # Test code for whether the C++ compiler supports C++98 (body of main)
2328 ac_cxx_conftest_cxx98_main='
2329 assert (argc);
2330 assert (! argv[0]);
2332 test_exception_syntax ();
2333 test_template<double> tt (2.0);
2334 assert (tt.add (4) == 6.0);
2335 assert (true && !false);
2339 # Test code for whether the C++ compiler supports C++11 (global declarations)
2340 ac_cxx_conftest_cxx11_globals='
2341 // Does the compiler advertise C++ 2011 conformance?
2342 #if !defined __cplusplus || __cplusplus < 201103L
2343 # error "Compiler does not advertise C++11 conformance"
2344 #endif
2346 namespace cxx11test
2348 constexpr int get_val() { return 20; }
2350 struct testinit
2352 int i;
2353 double d;
2356 class delegate
2358 public:
2359 delegate(int n) : n(n) {}
2360 delegate(): delegate(2354) {}
2362 virtual int getval() { return this->n; };
2363 protected:
2364 int n;
2367 class overridden : public delegate
2369 public:
2370 overridden(int n): delegate(n) {}
2371 virtual int getval() override final { return this->n * 2; }
2374 class nocopy
2376 public:
2377 nocopy(int i): i(i) {}
2378 nocopy() = default;
2379 nocopy(const nocopy&) = delete;
2380 nocopy & operator=(const nocopy&) = delete;
2381 private:
2382 int i;
2385 // for testing lambda expressions
2386 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2388 return f(v);
2391 // for testing variadic templates and trailing return types
2392 template <typename V> auto sum(V first) -> V
2394 return first;
2396 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2398 return first + sum(rest...);
2403 # Test code for whether the C++ compiler supports C++11 (body of main)
2404 ac_cxx_conftest_cxx11_main='
2406 // Test auto and decltype
2407 auto a1 = 6538;
2408 auto a2 = 48573953.4;
2409 auto a3 = "String literal";
2411 int total = 0;
2412 for (auto i = a3; *i; ++i) { total += *i; }
2414 decltype(a2) a4 = 34895.034;
2417 // Test constexpr
2418 short sa[cxx11test::get_val()] = { 0 };
2421 // Test initializer lists
2422 cxx11test::testinit il = { 4323, 435234.23544 };
2425 // Test range-based for
2426 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2427 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2428 for (auto &x : array) { x += 23; }
2431 // Test lambda expressions
2432 using cxx11test::eval;
2433 assert (eval ([](int x) { return x*2; }, 21) == 42);
2434 double d = 2.0;
2435 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2436 assert (d == 5.0);
2437 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2438 assert (d == 5.0);
2441 // Test use of variadic templates
2442 using cxx11test::sum;
2443 auto a = sum(1);
2444 auto b = sum(1, 2);
2445 auto c = sum(1.0, 2.0, 3.0);
2448 // Test constructor delegation
2449 cxx11test::delegate d1;
2450 cxx11test::delegate d2();
2451 cxx11test::delegate d3(45);
2454 // Test override and final
2455 cxx11test::overridden o1(55464);
2458 // Test nullptr
2459 char *c = nullptr;
2462 // Test template brackets
2463 test_template<::test_template<int>> v(test_template<int>(12));
2466 // Unicode literals
2467 char const *utf8 = u8"UTF-8 string \u2500";
2468 char16_t const *utf16 = u"UTF-8 string \u2500";
2469 char32_t const *utf32 = U"UTF-32 string \u2500";
2473 # Test code for whether the C compiler supports C++11 (complete).
2474 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2475 ${ac_cxx_conftest_cxx11_globals}
2478 main (int argc, char **argv)
2480 int ok = 0;
2481 ${ac_cxx_conftest_cxx98_main}
2482 ${ac_cxx_conftest_cxx11_main}
2483 return ok;
2487 # Test code for whether the C compiler supports C++98 (complete).
2488 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2490 main (int argc, char **argv)
2492 int ok = 0;
2493 ${ac_cxx_conftest_cxx98_main}
2494 return ok;
2499 # Auxiliary files required by this configure script.
2500 ac_aux_files="missing install-sh config.guess config.sub compile"
2502 # Locations in which to look for auxiliary files.
2503 ac_aux_dir_candidates="${srcdir}/build-aux"
2505 # Search for a directory containing all of the required auxiliary files,
2506 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2507 # If we don't find one directory that contains all the files we need,
2508 # we report the set of missing files from the *first* directory in
2509 # $ac_aux_dir_candidates and give up.
2510 ac_missing_aux_files=""
2511 ac_first_candidate=:
2512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 as_found=false
2515 for as_dir in $ac_aux_dir_candidates
2517 IFS=$as_save_IFS
2518 case $as_dir in #(((
2519 '') as_dir=./ ;;
2520 */) ;;
2521 *) as_dir=$as_dir/ ;;
2522 esac
2523 as_found=:
2525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2526 ac_aux_dir_found=yes
2527 ac_install_sh=
2528 for ac_aux in $ac_aux_files
2530 # As a special case, if "install-sh" is required, that requirement
2531 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2532 # and $ac_install_sh is set appropriately for whichever one is found.
2533 if test x"$ac_aux" = x"install-sh"
2534 then
2535 if test -f "${as_dir}install-sh"; then
2536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2537 ac_install_sh="${as_dir}install-sh -c"
2538 elif test -f "${as_dir}install.sh"; then
2539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2540 ac_install_sh="${as_dir}install.sh -c"
2541 elif test -f "${as_dir}shtool"; then
2542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2543 ac_install_sh="${as_dir}shtool install -c"
2544 else
2545 ac_aux_dir_found=no
2546 if $ac_first_candidate; then
2547 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2548 else
2549 break
2552 else
2553 if test -f "${as_dir}${ac_aux}"; then
2554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2555 else
2556 ac_aux_dir_found=no
2557 if $ac_first_candidate; then
2558 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2559 else
2560 break
2564 done
2565 if test "$ac_aux_dir_found" = yes; then
2566 ac_aux_dir="$as_dir"
2567 break
2569 ac_first_candidate=false
2571 as_found=false
2572 done
2573 IFS=$as_save_IFS
2574 if $as_found
2575 then :
2577 else $as_nop
2578 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2582 # These three variables are undocumented and unsupported,
2583 # and are intended to be withdrawn in a future Autoconf release.
2584 # They can cause serious problems if a builder's source tree is in a directory
2585 # whose full name contains unusual characters.
2586 if test -f "${ac_aux_dir}config.guess"; then
2587 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2589 if test -f "${ac_aux_dir}config.sub"; then
2590 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2592 if test -f "$ac_aux_dir/configure"; then
2593 ac_configure="$SHELL ${ac_aux_dir}configure"
2596 # Check that the precious variables saved in the cache have kept the same
2597 # value.
2598 ac_cache_corrupted=false
2599 for ac_var in $ac_precious_vars; do
2600 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2601 eval ac_new_set=\$ac_env_${ac_var}_set
2602 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2603 eval ac_new_val=\$ac_env_${ac_var}_value
2604 case $ac_old_set,$ac_new_set in
2605 set,)
2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2607 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2608 ac_cache_corrupted=: ;;
2609 ,set)
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2611 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2612 ac_cache_corrupted=: ;;
2613 ,);;
2615 if test "x$ac_old_val" != "x$ac_new_val"; then
2616 # differences in whitespace do not lead to failure.
2617 ac_old_val_w=`echo x $ac_old_val`
2618 ac_new_val_w=`echo x $ac_new_val`
2619 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2621 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2622 ac_cache_corrupted=:
2623 else
2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2625 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2626 eval $ac_var=\$ac_old_val
2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2629 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2631 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2632 fi;;
2633 esac
2634 # Pass precious variables to config.status.
2635 if test "$ac_new_set" = set; then
2636 case $ac_new_val in
2637 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2638 *) ac_arg=$ac_var=$ac_new_val ;;
2639 esac
2640 case " $ac_configure_args " in
2641 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2642 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2643 esac
2645 done
2646 if $ac_cache_corrupted; then
2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2648 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2650 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2651 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2652 and start over" "$LINENO" 5
2654 ## -------------------- ##
2655 ## Main body of script. ##
2656 ## -------------------- ##
2658 ac_ext=c
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2667 : ${CFLAGS=""}
2668 : ${CXXFLAGS=""}
2678 ac_ext=c
2679 ac_cpp='$CPP $CPPFLAGS'
2680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683 if test -n "$ac_tool_prefix"; then
2684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 printf %s "checking for $ac_word... " >&6; }
2688 if test ${ac_cv_prog_CC+y}
2689 then :
2690 printf %s "(cached) " >&6
2691 else $as_nop
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2698 IFS=$as_save_IFS
2699 case $as_dir in #(((
2700 '') as_dir=./ ;;
2701 */) ;;
2702 *) as_dir=$as_dir/ ;;
2703 esac
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2706 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2708 break 2
2710 done
2711 done
2712 IFS=$as_save_IFS
2716 CC=$ac_cv_prog_CC
2717 if test -n "$CC"; then
2718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2719 printf "%s\n" "$CC" >&6; }
2720 else
2721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 printf "%s\n" "no" >&6; }
2727 if test -z "$ac_cv_prog_CC"; then
2728 ac_ct_CC=$CC
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc; ac_word=$2
2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 printf %s "checking for $ac_word... " >&6; }
2733 if test ${ac_cv_prog_ac_ct_CC+y}
2734 then :
2735 printf %s "(cached) " >&6
2736 else $as_nop
2737 if test -n "$ac_ct_CC"; then
2738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2743 IFS=$as_save_IFS
2744 case $as_dir in #(((
2745 '') as_dir=./ ;;
2746 */) ;;
2747 *) as_dir=$as_dir/ ;;
2748 esac
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_ac_ct_CC="gcc"
2752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2753 break 2
2755 done
2756 done
2757 IFS=$as_save_IFS
2761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2762 if test -n "$ac_ct_CC"; then
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2764 printf "%s\n" "$ac_ct_CC" >&6; }
2765 else
2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 printf "%s\n" "no" >&6; }
2770 if test "x$ac_ct_CC" = x; then
2771 CC=""
2772 else
2773 case $cross_compiling:$ac_tool_warned in
2774 yes:)
2775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2776 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2777 ac_tool_warned=yes ;;
2778 esac
2779 CC=$ac_ct_CC
2781 else
2782 CC="$ac_cv_prog_CC"
2785 if test -z "$CC"; then
2786 if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}cc; ac_word=$2
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 printf %s "checking for $ac_word... " >&6; }
2791 if test ${ac_cv_prog_CC+y}
2792 then :
2793 printf %s "(cached) " >&6
2794 else $as_nop
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2801 IFS=$as_save_IFS
2802 case $as_dir in #(((
2803 '') as_dir=./ ;;
2804 */) ;;
2805 *) as_dir=$as_dir/ ;;
2806 esac
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2809 ac_cv_prog_CC="${ac_tool_prefix}cc"
2810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2811 break 2
2813 done
2814 done
2815 IFS=$as_save_IFS
2819 CC=$ac_cv_prog_CC
2820 if test -n "$CC"; then
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822 printf "%s\n" "$CC" >&6; }
2823 else
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 printf "%s\n" "no" >&6; }
2831 if test -z "$CC"; then
2832 # Extract the first word of "cc", so it can be a program name with args.
2833 set dummy cc; ac_word=$2
2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 printf %s "checking for $ac_word... " >&6; }
2836 if test ${ac_cv_prog_CC+y}
2837 then :
2838 printf %s "(cached) " >&6
2839 else $as_nop
2840 if test -n "$CC"; then
2841 ac_cv_prog_CC="$CC" # Let the user override the test.
2842 else
2843 ac_prog_rejected=no
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2847 IFS=$as_save_IFS
2848 case $as_dir in #(((
2849 '') as_dir=./ ;;
2850 */) ;;
2851 *) as_dir=$as_dir/ ;;
2852 esac
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2855 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2856 ac_prog_rejected=yes
2857 continue
2859 ac_cv_prog_CC="cc"
2860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2861 break 2
2863 done
2864 done
2865 IFS=$as_save_IFS
2867 if test $ac_prog_rejected = yes; then
2868 # We found a bogon in the path, so make sure we never use it.
2869 set dummy $ac_cv_prog_CC
2870 shift
2871 if test $# != 0; then
2872 # We chose a different compiler from the bogus one.
2873 # However, it has the same basename, so the bogon will be chosen
2874 # first if we set CC to just the basename; use the full file name.
2875 shift
2876 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2881 CC=$ac_cv_prog_CC
2882 if test -n "$CC"; then
2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2884 printf "%s\n" "$CC" >&6; }
2885 else
2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 printf "%s\n" "no" >&6; }
2892 if test -z "$CC"; then
2893 if test -n "$ac_tool_prefix"; then
2894 for ac_prog in cl.exe
2896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 printf %s "checking for $ac_word... " >&6; }
2900 if test ${ac_cv_prog_CC+y}
2901 then :
2902 printf %s "(cached) " >&6
2903 else $as_nop
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2910 IFS=$as_save_IFS
2911 case $as_dir in #(((
2912 '') as_dir=./ ;;
2913 */) ;;
2914 *) as_dir=$as_dir/ ;;
2915 esac
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2920 break 2
2922 done
2923 done
2924 IFS=$as_save_IFS
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931 printf "%s\n" "$CC" >&6; }
2932 else
2933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 printf "%s\n" "no" >&6; }
2938 test -n "$CC" && break
2939 done
2941 if test -z "$CC"; then
2942 ac_ct_CC=$CC
2943 for ac_prog in cl.exe
2945 # Extract the first word of "$ac_prog", so it can be a program name with args.
2946 set dummy $ac_prog; ac_word=$2
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 printf %s "checking for $ac_word... " >&6; }
2949 if test ${ac_cv_prog_ac_ct_CC+y}
2950 then :
2951 printf %s "(cached) " >&6
2952 else $as_nop
2953 if test -n "$ac_ct_CC"; then
2954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2959 IFS=$as_save_IFS
2960 case $as_dir in #(((
2961 '') as_dir=./ ;;
2962 */) ;;
2963 *) as_dir=$as_dir/ ;;
2964 esac
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_CC="$ac_prog"
2968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2969 break 2
2971 done
2972 done
2973 IFS=$as_save_IFS
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2980 printf "%s\n" "$ac_ct_CC" >&6; }
2981 else
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 printf "%s\n" "no" >&6; }
2987 test -n "$ac_ct_CC" && break
2988 done
2990 if test "x$ac_ct_CC" = x; then
2991 CC=""
2992 else
2993 case $cross_compiling:$ac_tool_warned in
2994 yes:)
2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2996 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997 ac_tool_warned=yes ;;
2998 esac
2999 CC=$ac_ct_CC
3004 if test -z "$CC"; then
3005 if test -n "$ac_tool_prefix"; then
3006 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3007 set dummy ${ac_tool_prefix}clang; ac_word=$2
3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 printf %s "checking for $ac_word... " >&6; }
3010 if test ${ac_cv_prog_CC+y}
3011 then :
3012 printf %s "(cached) " >&6
3013 else $as_nop
3014 if test -n "$CC"; then
3015 ac_cv_prog_CC="$CC" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3020 IFS=$as_save_IFS
3021 case $as_dir in #(((
3022 '') as_dir=./ ;;
3023 */) ;;
3024 *) as_dir=$as_dir/ ;;
3025 esac
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3028 ac_cv_prog_CC="${ac_tool_prefix}clang"
3029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3030 break 2
3032 done
3033 done
3034 IFS=$as_save_IFS
3038 CC=$ac_cv_prog_CC
3039 if test -n "$CC"; then
3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041 printf "%s\n" "$CC" >&6; }
3042 else
3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 printf "%s\n" "no" >&6; }
3049 if test -z "$ac_cv_prog_CC"; then
3050 ac_ct_CC=$CC
3051 # Extract the first word of "clang", so it can be a program name with args.
3052 set dummy clang; ac_word=$2
3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 printf %s "checking for $ac_word... " >&6; }
3055 if test ${ac_cv_prog_ac_ct_CC+y}
3056 then :
3057 printf %s "(cached) " >&6
3058 else $as_nop
3059 if test -n "$ac_ct_CC"; then
3060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3065 IFS=$as_save_IFS
3066 case $as_dir in #(((
3067 '') as_dir=./ ;;
3068 */) ;;
3069 *) as_dir=$as_dir/ ;;
3070 esac
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_ac_ct_CC="clang"
3074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3075 break 2
3077 done
3078 done
3079 IFS=$as_save_IFS
3083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3084 if test -n "$ac_ct_CC"; then
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3086 printf "%s\n" "$ac_ct_CC" >&6; }
3087 else
3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 printf "%s\n" "no" >&6; }
3092 if test "x$ac_ct_CC" = x; then
3093 CC=""
3094 else
3095 case $cross_compiling:$ac_tool_warned in
3096 yes:)
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3098 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3099 ac_tool_warned=yes ;;
3100 esac
3101 CC=$ac_ct_CC
3103 else
3104 CC="$ac_cv_prog_CC"
3110 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3111 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3112 as_fn_error $? "no acceptable C compiler found in \$PATH
3113 See \`config.log' for more details" "$LINENO" 5; }
3115 # Provide some information about the compiler.
3116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3117 set X $ac_compile
3118 ac_compiler=$2
3119 for ac_option in --version -v -V -qversion -version; do
3120 { { ac_try="$ac_compiler $ac_option >&5"
3121 case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 printf "%s\n" "$ac_try_echo"; } >&5
3127 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3128 ac_status=$?
3129 if test -s conftest.err; then
3130 sed '10a\
3131 ... rest of stderr output deleted ...
3132 10q' conftest.err >conftest.er1
3133 cat conftest.er1 >&5
3135 rm -f conftest.er1 conftest.err
3136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137 test $ac_status = 0; }
3138 done
3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h. */
3144 main (void)
3148 return 0;
3150 _ACEOF
3151 ac_clean_files_save=$ac_clean_files
3152 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3153 # Try to create an executable without -o first, disregard a.out.
3154 # It will help us diagnose broken compilers, and finding out an intuition
3155 # of exeext.
3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3157 printf %s "checking whether the C compiler works... " >&6; }
3158 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3160 # The possible output files:
3161 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3163 ac_rmfiles=
3164 for ac_file in $ac_files
3166 case $ac_file in
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3168 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3169 esac
3170 done
3171 rm -f $ac_rmfiles
3173 if { { ac_try="$ac_link_default"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 printf "%s\n" "$ac_try_echo"; } >&5
3180 (eval "$ac_link_default") 2>&5
3181 ac_status=$?
3182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }
3184 then :
3185 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3186 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3187 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3188 # so that the user can short-circuit this test for compilers unknown to
3189 # Autoconf.
3190 for ac_file in $ac_files ''
3192 test -f "$ac_file" || continue
3193 case $ac_file in
3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3196 [ab].out )
3197 # We found the default executable, but exeext='' is most
3198 # certainly right.
3199 break;;
3200 *.* )
3201 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3202 then :; else
3203 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3205 # We set ac_cv_exeext here because the later test for it is not
3206 # safe: cross compilers may not add the suffix if given an `-o'
3207 # argument, so we may need to know it at that point already.
3208 # Even if this section looks crufty: it has the advantage of
3209 # actually working.
3210 break;;
3212 break;;
3213 esac
3214 done
3215 test "$ac_cv_exeext" = no && ac_cv_exeext=
3217 else $as_nop
3218 ac_file=''
3220 if test -z "$ac_file"
3221 then :
3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 printf "%s\n" "no" >&6; }
3224 printf "%s\n" "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3229 as_fn_error 77 "C compiler cannot create executables
3230 See \`config.log' for more details" "$LINENO" 5; }
3231 else $as_nop
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233 printf "%s\n" "yes" >&6; }
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3236 printf %s "checking for C compiler default output file name... " >&6; }
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3238 printf "%s\n" "$ac_file" >&6; }
3239 ac_exeext=$ac_cv_exeext
3241 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3242 ac_clean_files=$ac_clean_files_save
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3244 printf %s "checking for suffix of executables... " >&6; }
3245 if { { ac_try="$ac_link"
3246 case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 printf "%s\n" "$ac_try_echo"; } >&5
3252 (eval "$ac_link") 2>&5
3253 ac_status=$?
3254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }
3256 then :
3257 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3258 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3259 # work properly (i.e., refer to `conftest.exe'), while it won't with
3260 # `rm'.
3261 for ac_file in conftest.exe conftest conftest.*; do
3262 test -f "$ac_file" || continue
3263 case $ac_file in
3264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3265 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3266 break;;
3267 * ) break;;
3268 esac
3269 done
3270 else $as_nop
3271 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3273 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3274 See \`config.log' for more details" "$LINENO" 5; }
3276 rm -f conftest conftest$ac_cv_exeext
3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3278 printf "%s\n" "$ac_cv_exeext" >&6; }
3280 rm -f conftest.$ac_ext
3281 EXEEXT=$ac_cv_exeext
3282 ac_exeext=$EXEEXT
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3285 #include <stdio.h>
3287 main (void)
3289 FILE *f = fopen ("conftest.out", "w");
3290 return ferror (f) || fclose (f) != 0;
3293 return 0;
3295 _ACEOF
3296 ac_clean_files="$ac_clean_files conftest.out"
3297 # Check that the compiler produces executables we can run. If not, either
3298 # the compiler is broken, or we cross compile.
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3300 printf %s "checking whether we are cross compiling... " >&6; }
3301 if test "$cross_compiling" != yes; then
3302 { { ac_try="$ac_link"
3303 case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 printf "%s\n" "$ac_try_echo"; } >&5
3309 (eval "$ac_link") 2>&5
3310 ac_status=$?
3311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }
3313 if { ac_try='./conftest$ac_cv_exeext'
3314 { { case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317 esac
3318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319 printf "%s\n" "$ac_try_echo"; } >&5
3320 (eval "$ac_try") 2>&5
3321 ac_status=$?
3322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }; }; then
3324 cross_compiling=no
3325 else
3326 if test "$cross_compiling" = maybe; then
3327 cross_compiling=yes
3328 else
3329 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error 77 "cannot run C compiled programs.
3332 If you meant to cross compile, use \`--host'.
3333 See \`config.log' for more details" "$LINENO" 5; }
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3338 printf "%s\n" "$cross_compiling" >&6; }
3340 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3341 ac_clean_files=$ac_clean_files_save
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3343 printf %s "checking for suffix of object files... " >&6; }
3344 if test ${ac_cv_objext+y}
3345 then :
3346 printf %s "(cached) " >&6
3347 else $as_nop
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3352 main (void)
3356 return 0;
3358 _ACEOF
3359 rm -f conftest.o conftest.obj
3360 if { { ac_try="$ac_compile"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366 printf "%s\n" "$ac_try_echo"; } >&5
3367 (eval "$ac_compile") 2>&5
3368 ac_status=$?
3369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370 test $ac_status = 0; }
3371 then :
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3376 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3377 break;;
3378 esac
3379 done
3380 else $as_nop
3381 printf "%s\n" "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error $? "cannot compute suffix of object files: cannot compile
3387 See \`config.log' for more details" "$LINENO" 5; }
3389 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3392 printf "%s\n" "$ac_cv_objext" >&6; }
3393 OBJEXT=$ac_cv_objext
3394 ac_objext=$OBJEXT
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3396 printf %s "checking whether the compiler supports GNU C... " >&6; }
3397 if test ${ac_cv_c_compiler_gnu+y}
3398 then :
3399 printf %s "(cached) " >&6
3400 else $as_nop
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3405 main (void)
3407 #ifndef __GNUC__
3408 choke me
3409 #endif
3412 return 0;
3414 _ACEOF
3415 if ac_fn_c_try_compile "$LINENO"
3416 then :
3417 ac_compiler_gnu=yes
3418 else $as_nop
3419 ac_compiler_gnu=no
3421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3426 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429 if test $ac_compiler_gnu = yes; then
3430 GCC=yes
3431 else
3432 GCC=
3434 ac_test_CFLAGS=${CFLAGS+y}
3435 ac_save_CFLAGS=$CFLAGS
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3437 printf %s "checking whether $CC accepts -g... " >&6; }
3438 if test ${ac_cv_prog_cc_g+y}
3439 then :
3440 printf %s "(cached) " >&6
3441 else $as_nop
3442 ac_save_c_werror_flag=$ac_c_werror_flag
3443 ac_c_werror_flag=yes
3444 ac_cv_prog_cc_g=no
3445 CFLAGS="-g"
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3450 main (void)
3454 return 0;
3456 _ACEOF
3457 if ac_fn_c_try_compile "$LINENO"
3458 then :
3459 ac_cv_prog_cc_g=yes
3460 else $as_nop
3461 CFLAGS=""
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3466 main (void)
3470 return 0;
3472 _ACEOF
3473 if ac_fn_c_try_compile "$LINENO"
3474 then :
3476 else $as_nop
3477 ac_c_werror_flag=$ac_save_c_werror_flag
3478 CFLAGS="-g"
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3483 main (void)
3487 return 0;
3489 _ACEOF
3490 if ac_fn_c_try_compile "$LINENO"
3491 then :
3492 ac_cv_prog_cc_g=yes
3494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3499 ac_c_werror_flag=$ac_save_c_werror_flag
3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3502 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3503 if test $ac_test_CFLAGS; then
3504 CFLAGS=$ac_save_CFLAGS
3505 elif test $ac_cv_prog_cc_g = yes; then
3506 if test "$GCC" = yes; then
3507 CFLAGS="-g -O2"
3508 else
3509 CFLAGS="-g"
3511 else
3512 if test "$GCC" = yes; then
3513 CFLAGS="-O2"
3514 else
3515 CFLAGS=
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3519 printf %s "checking for $CC option to enable C11 features... " >&6; }
3520 if test ${ac_cv_prog_cc_c11+y}
3521 then :
3522 printf %s "(cached) " >&6
3523 else $as_nop
3524 ac_cv_prog_cc_c11=no
3525 ac_save_CC=$CC
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528 $ac_c_conftest_c11_program
3529 _ACEOF
3530 for ac_arg in '' -std=gnu11
3532 CC="$ac_save_CC $ac_arg"
3533 if ac_fn_c_try_compile "$LINENO"
3534 then :
3535 ac_cv_prog_cc_c11=$ac_arg
3537 rm -f core conftest.err conftest.$ac_objext conftest.beam
3538 test "x$ac_cv_prog_cc_c11" != "xno" && break
3539 done
3540 rm -f conftest.$ac_ext
3541 CC=$ac_save_CC
3544 # AC_CACHE_VAL
3545 ac_prog_cc_stdc_options=
3546 case "x$ac_cv_prog_cc_c11" in #(
3547 x) :
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3549 printf "%s\n" "none needed" >&6; } ;; #(
3550 xno) :
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3552 printf "%s\n" "unsupported" >&6; } ;; #(
3553 *) :
3554 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
3555 CC="$CC$ac_prog_cc_stdc_options"
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3557 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;;
3558 esac
3559 if test "x$ac_cv_prog_cc_c11" != xno
3560 then :
3561 ac_prog_cc_stdc=c11
3562 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3563 else $as_nop
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3565 printf %s "checking for $CC option to enable C99 features... " >&6; }
3566 if test ${ac_cv_prog_cc_c99+y}
3567 then :
3568 printf %s "(cached) " >&6
3569 else $as_nop
3570 ac_cv_prog_cc_c99=no
3571 ac_save_CC=$CC
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574 $ac_c_conftest_c89_program
3575 _ACEOF
3576 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
3578 CC="$ac_save_CC $ac_arg"
3579 if ac_fn_c_try_compile "$LINENO"
3580 then :
3581 ac_cv_prog_cc_c99=$ac_arg
3583 rm -f core conftest.err conftest.$ac_objext conftest.beam
3584 test "x$ac_cv_prog_cc_c99" != "xno" && break
3585 done
3586 rm -f conftest.$ac_ext
3587 CC=$ac_save_CC
3590 # AC_CACHE_VAL
3591 ac_prog_cc_stdc_options=
3592 case "x$ac_cv_prog_cc_c99" in #(
3593 x) :
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3595 printf "%s\n" "none needed" >&6; } ;; #(
3596 xno) :
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3598 printf "%s\n" "unsupported" >&6; } ;; #(
3599 *) :
3600 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
3601 CC="$CC$ac_prog_cc_stdc_options"
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3603 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;;
3604 esac
3605 if test "x$ac_cv_prog_cc_c99" != xno
3606 then :
3607 ac_prog_cc_stdc=c99
3608 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3609 else $as_nop
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3611 printf %s "checking for $CC option to enable C89 features... " >&6; }
3612 if test ${ac_cv_prog_cc_c89+y}
3613 then :
3614 printf %s "(cached) " >&6
3615 else $as_nop
3616 ac_cv_prog_cc_c89=no
3617 ac_save_CC=$CC
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620 $ac_c_conftest_c89_program
3621 _ACEOF
3622 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3623 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3625 CC="$ac_save_CC $ac_arg"
3626 if ac_fn_c_try_compile "$LINENO"
3627 then :
3628 ac_cv_prog_cc_c89=$ac_arg
3630 rm -f core conftest.err conftest.$ac_objext conftest.beam
3631 test "x$ac_cv_prog_cc_c89" != "xno" && break
3632 done
3633 rm -f conftest.$ac_ext
3634 CC=$ac_save_CC
3637 # AC_CACHE_VAL
3638 ac_prog_cc_stdc_options=
3639 case "x$ac_cv_prog_cc_c89" in #(
3640 x) :
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3642 printf "%s\n" "none needed" >&6; } ;; #(
3643 xno) :
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3645 printf "%s\n" "unsupported" >&6; } ;; #(
3646 *) :
3647 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
3648 CC="$CC$ac_prog_cc_stdc_options"
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3650 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;;
3651 esac
3652 if test "x$ac_cv_prog_cc_c89" != xno
3653 then :
3654 ac_prog_cc_stdc=c89
3655 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3656 else $as_nop
3657 ac_prog_cc_stdc=no
3658 ac_cv_prog_cc_stdc=no
3665 ac_ext=c
3666 ac_cpp='$CPP $CPPFLAGS'
3667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673 # Expand $ac_aux_dir to an absolute path.
3674 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3677 ac_ext=c
3678 ac_cpp='$CPP $CPPFLAGS'
3679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3683 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3684 if test ${am_cv_prog_cc_c_o+y}
3685 then :
3686 printf %s "(cached) " >&6
3687 else $as_nop
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3692 main (void)
3696 return 0;
3698 _ACEOF
3699 # Make sure it works both with $CC and with simple cc.
3700 # Following AC_PROG_CC_C_O, we do the test twice because some
3701 # compilers refuse to overwrite an existing .o file with -o,
3702 # though they will create one.
3703 am_cv_prog_cc_c_o=yes
3704 for am_i in 1 2; do
3705 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3706 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } \
3710 && test -f conftest2.$ac_objext; then
3711 : OK
3712 else
3713 am_cv_prog_cc_c_o=no
3714 break
3716 done
3717 rm -f core conftest*
3718 unset am_i
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3721 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3722 if test "$am_cv_prog_cc_c_o" != yes; then
3723 # Losing compiler, so override with the script.
3724 # FIXME: It is wrong to rewrite CC.
3725 # But if we don't then we get into trouble of one sort or another.
3726 # A longer-term fix would be to have automake use am__CC in this case,
3727 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3728 CC="$am_aux_dir/compile $CC"
3730 ac_ext=c
3731 ac_cpp='$CPP $CPPFLAGS'
3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743 ac_ext=cpp
3744 ac_cpp='$CXXCPP $CPPFLAGS'
3745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3748 if test -z "$CXX"; then
3749 if test -n "$CCC"; then
3750 CXX=$CCC
3751 else
3752 if test -n "$ac_tool_prefix"; then
3753 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 printf %s "checking for $ac_word... " >&6; }
3759 if test ${ac_cv_prog_CXX+y}
3760 then :
3761 printf %s "(cached) " >&6
3762 else $as_nop
3763 if test -n "$CXX"; then
3764 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3769 IFS=$as_save_IFS
3770 case $as_dir in #(((
3771 '') as_dir=./ ;;
3772 */) ;;
3773 *) as_dir=$as_dir/ ;;
3774 esac
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3779 break 2
3781 done
3782 done
3783 IFS=$as_save_IFS
3787 CXX=$ac_cv_prog_CXX
3788 if test -n "$CXX"; then
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3790 printf "%s\n" "$CXX" >&6; }
3791 else
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 printf "%s\n" "no" >&6; }
3797 test -n "$CXX" && break
3798 done
3800 if test -z "$CXX"; then
3801 ac_ct_CXX=$CXX
3802 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3804 # Extract the first word of "$ac_prog", so it can be a program name with args.
3805 set dummy $ac_prog; ac_word=$2
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807 printf %s "checking for $ac_word... " >&6; }
3808 if test ${ac_cv_prog_ac_ct_CXX+y}
3809 then :
3810 printf %s "(cached) " >&6
3811 else $as_nop
3812 if test -n "$ac_ct_CXX"; then
3813 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3814 else
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3818 IFS=$as_save_IFS
3819 case $as_dir in #(((
3820 '') as_dir=./ ;;
3821 */) ;;
3822 *) as_dir=$as_dir/ ;;
3823 esac
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3826 ac_cv_prog_ac_ct_CXX="$ac_prog"
3827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3828 break 2
3830 done
3831 done
3832 IFS=$as_save_IFS
3836 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3837 if test -n "$ac_ct_CXX"; then
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3839 printf "%s\n" "$ac_ct_CXX" >&6; }
3840 else
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842 printf "%s\n" "no" >&6; }
3846 test -n "$ac_ct_CXX" && break
3847 done
3849 if test "x$ac_ct_CXX" = x; then
3850 CXX="g++"
3851 else
3852 case $cross_compiling:$ac_tool_warned in
3853 yes:)
3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3855 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3856 ac_tool_warned=yes ;;
3857 esac
3858 CXX=$ac_ct_CXX
3864 # Provide some information about the compiler.
3865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3866 set X $ac_compile
3867 ac_compiler=$2
3868 for ac_option in --version -v -V -qversion; do
3869 { { ac_try="$ac_compiler $ac_option >&5"
3870 case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873 esac
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 printf "%s\n" "$ac_try_echo"; } >&5
3876 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3877 ac_status=$?
3878 if test -s conftest.err; then
3879 sed '10a\
3880 ... rest of stderr output deleted ...
3881 10q' conftest.err >conftest.er1
3882 cat conftest.er1 >&5
3884 rm -f conftest.er1 conftest.err
3885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3886 test $ac_status = 0; }
3887 done
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3890 printf %s "checking whether the compiler supports GNU C++... " >&6; }
3891 if test ${ac_cv_cxx_compiler_gnu+y}
3892 then :
3893 printf %s "(cached) " >&6
3894 else $as_nop
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3899 main (void)
3901 #ifndef __GNUC__
3902 choke me
3903 #endif
3906 return 0;
3908 _ACEOF
3909 if ac_fn_cxx_try_compile "$LINENO"
3910 then :
3911 ac_compiler_gnu=yes
3912 else $as_nop
3913 ac_compiler_gnu=no
3915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3916 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3920 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
3921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3923 if test $ac_compiler_gnu = yes; then
3924 GXX=yes
3925 else
3926 GXX=
3928 ac_test_CXXFLAGS=${CXXFLAGS+y}
3929 ac_save_CXXFLAGS=$CXXFLAGS
3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3931 printf %s "checking whether $CXX accepts -g... " >&6; }
3932 if test ${ac_cv_prog_cxx_g+y}
3933 then :
3934 printf %s "(cached) " >&6
3935 else $as_nop
3936 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3937 ac_cxx_werror_flag=yes
3938 ac_cv_prog_cxx_g=no
3939 CXXFLAGS="-g"
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3944 main (void)
3948 return 0;
3950 _ACEOF
3951 if ac_fn_cxx_try_compile "$LINENO"
3952 then :
3953 ac_cv_prog_cxx_g=yes
3954 else $as_nop
3955 CXXFLAGS=""
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3960 main (void)
3964 return 0;
3966 _ACEOF
3967 if ac_fn_cxx_try_compile "$LINENO"
3968 then :
3970 else $as_nop
3971 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3972 CXXFLAGS="-g"
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3977 main (void)
3981 return 0;
3983 _ACEOF
3984 if ac_fn_cxx_try_compile "$LINENO"
3985 then :
3986 ac_cv_prog_cxx_g=yes
3988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3993 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3996 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
3997 if test $ac_test_CXXFLAGS; then
3998 CXXFLAGS=$ac_save_CXXFLAGS
3999 elif test $ac_cv_prog_cxx_g = yes; then
4000 if test "$GXX" = yes; then
4001 CXXFLAGS="-g -O2"
4002 else
4003 CXXFLAGS="-g"
4005 else
4006 if test "$GXX" = yes; then
4007 CXXFLAGS="-O2"
4008 else
4009 CXXFLAGS=
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4013 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4014 if test ${ac_cv_prog_cxx_cxx11+y}
4015 then :
4016 printf %s "(cached) " >&6
4017 else $as_nop
4018 ac_cv_prog_cxx_cxx11=no
4019 ac_save_CXX=$CXX
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4022 $ac_cxx_conftest_cxx11_program
4023 _ACEOF
4024 for ac_arg in '' -std=gnu++11 -std=c++11 -std=gnu++0x -std=c++0x -qlanglvl=extended0x -AA
4026 CXX="$ac_save_CXX $ac_arg"
4027 if ac_fn_cxx_try_compile "$LINENO"
4028 then :
4029 ac_cv_prog_cxx_cxx11=$ac_arg
4031 rm -f core conftest.err conftest.$ac_objext conftest.beam
4032 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4033 done
4034 rm -f conftest.$ac_ext
4035 CXX=$ac_save_CXX
4038 # AC_CACHE_VAL
4039 ac_prog_cxx_stdcxx_options=
4040 case "x$ac_cv_prog_cxx_cxx11" in #(
4041 x) :
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4043 printf "%s\n" "none needed" >&6; } ;; #(
4044 xno) :
4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4046 printf "%s\n" "unsupported" >&6; } ;; #(
4047 *) :
4048 ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx11"
4049 CXX=$CXX$ac_prog_cxx_stdcxx_options
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4051 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } ;;
4052 esac
4053 if test "x$ac_cv_prog_cxx_cxx11" != xno
4054 then :
4055 ac_prog_cxx_stdcxx=cxx11
4056 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4057 ac_cv_prog_cxx_cxx98=$ac_cv_prog_cxx_cxx11
4058 else $as_nop
4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4060 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4061 if test ${ac_cv_prog_cxx_cxx98+y}
4062 then :
4063 printf %s "(cached) " >&6
4064 else $as_nop
4065 ac_cv_prog_cxx_cxx98=no
4066 ac_save_CXX=$CXX
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069 $ac_cxx_conftest_cxx98_program
4070 _ACEOF
4071 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4073 CXX="$ac_save_CXX $ac_arg"
4074 if ac_fn_cxx_try_compile "$LINENO"
4075 then :
4076 ac_cv_prog_cxx_cxx98=$ac_arg
4078 rm -f core conftest.err conftest.$ac_objext conftest.beam
4079 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4080 done
4081 rm -f conftest.$ac_ext
4082 CXX=$ac_save_CXX
4085 # AC_CACHE_VAL
4086 ac_prog_cxx_stdcxx_options=
4087 case "x$ac_cv_prog_cxx_cxx98" in #(
4088 x) :
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4090 printf "%s\n" "none needed" >&6; } ;; #(
4091 xno) :
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4093 printf "%s\n" "unsupported" >&6; } ;; #(
4094 *) :
4095 ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_cxx98"
4096 CXX=$CXX$ac_prog_cxx_stdcxx_options
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4098 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } ;;
4099 esac
4100 if test "x$ac_cv_prog_cxx_cxx98" != xno
4101 then :
4102 ac_prog_cxx_stdcxx=cxx98
4103 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4104 else $as_nop
4105 ac_prog_cxx_stdcxx=no
4106 ac_cv_prog_cxx_stdcxx=no
4111 ac_ext=c
4112 ac_cpp='$CPP $CPPFLAGS'
4113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4118 printf %s "checking for a sed that does not truncate output... " >&6; }
4119 if test ${ac_cv_path_SED+y}
4120 then :
4121 printf %s "(cached) " >&6
4122 else $as_nop
4123 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4124 for ac_i in 1 2 3 4 5 6 7; do
4125 ac_script="$ac_script$as_nl$ac_script"
4126 done
4127 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4128 { ac_script=; unset ac_script;}
4129 if test -z "$SED"; then
4130 ac_path_SED_found=false
4131 # Loop through the user's path and test for each of PROGNAME-LIST
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4135 IFS=$as_save_IFS
4136 case $as_dir in #(((
4137 '') as_dir=./ ;;
4138 */) ;;
4139 *) as_dir=$as_dir/ ;;
4140 esac
4141 for ac_prog in sed gsed
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4145 as_fn_executable_p "$ac_path_SED" || continue
4146 # Check for GNU ac_path_SED and select it if it is found.
4147 # Check for GNU $ac_path_SED
4148 case `"$ac_path_SED" --version 2>&1` in
4149 *GNU*)
4150 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4152 ac_count=0
4153 printf %s 0123456789 >"conftest.in"
4154 while :
4156 cat "conftest.in" "conftest.in" >"conftest.tmp"
4157 mv "conftest.tmp" "conftest.in"
4158 cp "conftest.in" "conftest.nl"
4159 printf "%s\n" '' >> "conftest.nl"
4160 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4162 as_fn_arith $ac_count + 1 && ac_count=$as_val
4163 if test $ac_count -gt ${ac_path_SED_max-0}; then
4164 # Best one so far, save it but keep looking for a better one
4165 ac_cv_path_SED="$ac_path_SED"
4166 ac_path_SED_max=$ac_count
4168 # 10*(2^10) chars as input seems more than enough
4169 test $ac_count -gt 10 && break
4170 done
4171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4172 esac
4174 $ac_path_SED_found && break 3
4175 done
4176 done
4177 done
4178 IFS=$as_save_IFS
4179 if test -z "$ac_cv_path_SED"; then
4180 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4182 else
4183 ac_cv_path_SED=$SED
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4188 printf "%s\n" "$ac_cv_path_SED" >&6; }
4189 SED="$ac_cv_path_SED"
4190 rm -f conftest.sed
4192 ac_ext=cpp
4193 ac_cpp='$CXXCPP $CPPFLAGS'
4194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4200 # Make sure we can run config.sub.
4201 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4202 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4205 printf %s "checking build system type... " >&6; }
4206 if test ${ac_cv_build+y}
4207 then :
4208 printf %s "(cached) " >&6
4209 else $as_nop
4210 ac_build_alias=$build_alias
4211 test "x$ac_build_alias" = x &&
4212 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4213 test "x$ac_build_alias" = x &&
4214 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4215 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4216 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4220 printf "%s\n" "$ac_cv_build" >&6; }
4221 case $ac_cv_build in
4222 *-*-*) ;;
4223 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4224 esac
4225 build=$ac_cv_build
4226 ac_save_IFS=$IFS; IFS='-'
4227 set x $ac_cv_build
4228 shift
4229 build_cpu=$1
4230 build_vendor=$2
4231 shift; shift
4232 # Remember, the first character of IFS is used to create $*,
4233 # except with old shells:
4234 build_os=$*
4235 IFS=$ac_save_IFS
4236 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4240 printf %s "checking host system type... " >&6; }
4241 if test ${ac_cv_host+y}
4242 then :
4243 printf %s "(cached) " >&6
4244 else $as_nop
4245 if test "x$host_alias" = x; then
4246 ac_cv_host=$ac_cv_build
4247 else
4248 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4249 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4254 printf "%s\n" "$ac_cv_host" >&6; }
4255 case $ac_cv_host in
4256 *-*-*) ;;
4257 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4258 esac
4259 host=$ac_cv_host
4260 ac_save_IFS=$IFS; IFS='-'
4261 set x $ac_cv_host
4262 shift
4263 host_cpu=$1
4264 host_vendor=$2
4265 shift; shift
4266 # Remember, the first character of IFS is used to create $*,
4267 # except with old shells:
4268 host_os=$*
4269 IFS=$ac_save_IFS
4270 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4273 am__api_version='1.16'
4276 # Find a good install program. We prefer a C program (faster),
4277 # so one script is as good as another. But avoid the broken or
4278 # incompatible versions:
4279 # SysV /etc/install, /usr/sbin/install
4280 # SunOS /usr/etc/install
4281 # IRIX /sbin/install
4282 # AIX /bin/install
4283 # AmigaOS /C/install, which installs bootblocks on floppy discs
4284 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4285 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4286 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4287 # OS/2's system install, which has a completely different semantic
4288 # ./install, which can be erroneously created by make from ./install.sh.
4289 # Reject install programs that cannot install multiple files.
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4291 printf %s "checking for a BSD-compatible install... " >&6; }
4292 if test -z "$INSTALL"; then
4293 if test ${ac_cv_path_install+y}
4294 then :
4295 printf %s "(cached) " >&6
4296 else $as_nop
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4300 IFS=$as_save_IFS
4301 case $as_dir in #(((
4302 '') as_dir=./ ;;
4303 */) ;;
4304 *) as_dir=$as_dir/ ;;
4305 esac
4306 # Account for fact that we put trailing slashes in our PATH walk.
4307 case $as_dir in #((
4308 ./ | /[cC]/* | \
4309 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4310 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4311 /usr/ucb/* ) ;;
4313 # OSF1 and SCO ODT 3.0 have their own names for install.
4314 # Don't use installbsd from OSF since it installs stuff as root
4315 # by default.
4316 for ac_prog in ginstall scoinst install; do
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4319 if test $ac_prog = install &&
4320 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4321 # AIX install. It has an incompatible calling convention.
4323 elif test $ac_prog = install &&
4324 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4325 # program-specific install script used by HP pwplus--don't use.
4327 else
4328 rm -rf conftest.one conftest.two conftest.dir
4329 echo one > conftest.one
4330 echo two > conftest.two
4331 mkdir conftest.dir
4332 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4333 test -s conftest.one && test -s conftest.two &&
4334 test -s conftest.dir/conftest.one &&
4335 test -s conftest.dir/conftest.two
4336 then
4337 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4338 break 3
4342 done
4343 done
4345 esac
4347 done
4348 IFS=$as_save_IFS
4350 rm -rf conftest.one conftest.two conftest.dir
4353 if test ${ac_cv_path_install+y}; then
4354 INSTALL=$ac_cv_path_install
4355 else
4356 # As a last resort, use the slow shell script. Don't cache a
4357 # value for INSTALL within a source directory, because that will
4358 # break other packages using the cache if that directory is
4359 # removed, or if the value is a relative name.
4360 INSTALL=$ac_install_sh
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4364 printf "%s\n" "$INSTALL" >&6; }
4366 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4367 # It thinks the first close brace ends the variable substitution.
4368 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4370 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4372 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4375 printf %s "checking whether build environment is sane... " >&6; }
4376 # Reject unsafe characters in $srcdir or the absolute working directory
4377 # name. Accept space and tab only in the latter.
4378 am_lf='
4380 case `pwd` in
4381 *[\\\"\#\$\&\'\`$am_lf]*)
4382 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4383 esac
4384 case $srcdir in
4385 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4386 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4387 esac
4389 # Do 'set' in a subshell so we don't clobber the current shell's
4390 # arguments. Must try -L first in case configure is actually a
4391 # symlink; some systems play weird games with the mod time of symlinks
4392 # (eg FreeBSD returns the mod time of the symlink's containing
4393 # directory).
4394 if (
4395 am_has_slept=no
4396 for am_try in 1 2; do
4397 echo "timestamp, slept: $am_has_slept" > conftest.file
4398 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4399 if test "$*" = "X"; then
4400 # -L didn't work.
4401 set X `ls -t "$srcdir/configure" conftest.file`
4403 if test "$*" != "X $srcdir/configure conftest.file" \
4404 && test "$*" != "X conftest.file $srcdir/configure"; then
4406 # If neither matched, then we have a broken ls. This can happen
4407 # if, for instance, CONFIG_SHELL is bash and it inherits a
4408 # broken ls alias from the environment. This has actually
4409 # happened. Such a system could not be considered "sane".
4410 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4411 alias in your environment" "$LINENO" 5
4413 if test "$2" = conftest.file || test $am_try -eq 2; then
4414 break
4416 # Just in case.
4417 sleep 1
4418 am_has_slept=yes
4419 done
4420 test "$2" = conftest.file
4422 then
4423 # Ok.
4425 else
4426 as_fn_error $? "newly created file is older than distributed files!
4427 Check your system clock" "$LINENO" 5
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4430 printf "%s\n" "yes" >&6; }
4431 # If we didn't sleep, we still need to ensure time stamps of config.status and
4432 # generated files are strictly newer.
4433 am_sleep_pid=
4434 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4435 ( sleep 1 ) &
4436 am_sleep_pid=$!
4439 rm -f conftest.file
4441 test "$program_prefix" != NONE &&
4442 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4443 # Use a double $ so make ignores it.
4444 test "$program_suffix" != NONE &&
4445 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4446 # Double any \ or $.
4447 # By default was `s,x,x', remove it if useless.
4448 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4449 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4452 if test x"${MISSING+set}" != xset; then
4453 case $am_aux_dir in
4454 *\ * | *\ *)
4455 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4457 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4458 esac
4460 # Use eval to expand $SHELL
4461 if eval "$MISSING --is-lightweight"; then
4462 am_missing_run="$MISSING "
4463 else
4464 am_missing_run=
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4466 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4469 if test x"${install_sh+set}" != xset; then
4470 case $am_aux_dir in
4471 *\ * | *\ *)
4472 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4474 install_sh="\${SHELL} $am_aux_dir/install-sh"
4475 esac
4478 # Installed binaries are usually stripped using 'strip' when the user
4479 # run "make install-strip". However 'strip' might not be the right
4480 # tool to use in cross-compilation environments, therefore Automake
4481 # will honor the 'STRIP' environment variable to overrule this program.
4482 if test "$cross_compiling" != no; then
4483 if test -n "$ac_tool_prefix"; then
4484 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4485 set dummy ${ac_tool_prefix}strip; ac_word=$2
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 printf %s "checking for $ac_word... " >&6; }
4488 if test ${ac_cv_prog_STRIP+y}
4489 then :
4490 printf %s "(cached) " >&6
4491 else $as_nop
4492 if test -n "$STRIP"; then
4493 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4498 IFS=$as_save_IFS
4499 case $as_dir in #(((
4500 '') as_dir=./ ;;
4501 */) ;;
4502 *) as_dir=$as_dir/ ;;
4503 esac
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4508 break 2
4510 done
4511 done
4512 IFS=$as_save_IFS
4516 STRIP=$ac_cv_prog_STRIP
4517 if test -n "$STRIP"; then
4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4519 printf "%s\n" "$STRIP" >&6; }
4520 else
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 printf "%s\n" "no" >&6; }
4527 if test -z "$ac_cv_prog_STRIP"; then
4528 ac_ct_STRIP=$STRIP
4529 # Extract the first word of "strip", so it can be a program name with args.
4530 set dummy strip; ac_word=$2
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 printf %s "checking for $ac_word... " >&6; }
4533 if test ${ac_cv_prog_ac_ct_STRIP+y}
4534 then :
4535 printf %s "(cached) " >&6
4536 else $as_nop
4537 if test -n "$ac_ct_STRIP"; then
4538 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4539 else
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4543 IFS=$as_save_IFS
4544 case $as_dir in #(((
4545 '') as_dir=./ ;;
4546 */) ;;
4547 *) as_dir=$as_dir/ ;;
4548 esac
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_ac_ct_STRIP="strip"
4552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4553 break 2
4555 done
4556 done
4557 IFS=$as_save_IFS
4561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4562 if test -n "$ac_ct_STRIP"; then
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4564 printf "%s\n" "$ac_ct_STRIP" >&6; }
4565 else
4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 printf "%s\n" "no" >&6; }
4570 if test "x$ac_ct_STRIP" = x; then
4571 STRIP=":"
4572 else
4573 case $cross_compiling:$ac_tool_warned in
4574 yes:)
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4576 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4577 ac_tool_warned=yes ;;
4578 esac
4579 STRIP=$ac_ct_STRIP
4581 else
4582 STRIP="$ac_cv_prog_STRIP"
4586 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4590 printf %s "checking for a race-free mkdir -p... " >&6; }
4591 if test -z "$MKDIR_P"; then
4592 if test ${ac_cv_path_mkdir+y}
4593 then :
4594 printf %s "(cached) " >&6
4595 else $as_nop
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4599 IFS=$as_save_IFS
4600 case $as_dir in #(((
4601 '') as_dir=./ ;;
4602 */) ;;
4603 *) as_dir=$as_dir/ ;;
4604 esac
4605 for ac_prog in mkdir gmkdir; do
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4608 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4609 'mkdir ('*'coreutils) '* | \
4610 'BusyBox '* | \
4611 'mkdir (fileutils) '4.1*)
4612 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4613 break 3;;
4614 esac
4615 done
4616 done
4617 done
4618 IFS=$as_save_IFS
4622 test -d ./--version && rmdir ./--version
4623 if test ${ac_cv_path_mkdir+y}; then
4624 MKDIR_P="$ac_cv_path_mkdir -p"
4625 else
4626 # As a last resort, use the slow shell script. Don't cache a
4627 # value for MKDIR_P within a source directory, because that will
4628 # break other packages using the cache if that directory is
4629 # removed, or if the value is a relative name.
4630 MKDIR_P="$ac_install_sh -d"
4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4634 printf "%s\n" "$MKDIR_P" >&6; }
4636 for ac_prog in gawk mawk nawk awk
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 printf %s "checking for $ac_word... " >&6; }
4642 if test ${ac_cv_prog_AWK+y}
4643 then :
4644 printf %s "(cached) " >&6
4645 else $as_nop
4646 if test -n "$AWK"; then
4647 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 case $as_dir in #(((
4654 '') as_dir=./ ;;
4655 */) ;;
4656 *) as_dir=$as_dir/ ;;
4657 esac
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_AWK="$ac_prog"
4661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4662 break 2
4664 done
4665 done
4666 IFS=$as_save_IFS
4670 AWK=$ac_cv_prog_AWK
4671 if test -n "$AWK"; then
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4673 printf "%s\n" "$AWK" >&6; }
4674 else
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 printf "%s\n" "no" >&6; }
4680 test -n "$AWK" && break
4681 done
4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4684 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4685 set x ${MAKE-make}
4686 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4687 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4688 then :
4689 printf %s "(cached) " >&6
4690 else $as_nop
4691 cat >conftest.make <<\_ACEOF
4692 SHELL = /bin/sh
4693 all:
4694 @echo '@@@%%%=$(MAKE)=@@@%%%'
4695 _ACEOF
4696 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4697 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4698 *@@@%%%=?*=@@@%%%*)
4699 eval ac_cv_prog_make_${ac_make}_set=yes;;
4701 eval ac_cv_prog_make_${ac_make}_set=no;;
4702 esac
4703 rm -f conftest.make
4705 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4707 printf "%s\n" "yes" >&6; }
4708 SET_MAKE=
4709 else
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 printf "%s\n" "no" >&6; }
4712 SET_MAKE="MAKE=${MAKE-make}"
4715 rm -rf .tst 2>/dev/null
4716 mkdir .tst 2>/dev/null
4717 if test -d .tst; then
4718 am__leading_dot=.
4719 else
4720 am__leading_dot=_
4722 rmdir .tst 2>/dev/null
4724 DEPDIR="${am__leading_dot}deps"
4726 ac_config_commands="$ac_config_commands depfiles"
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4729 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4730 cat > confinc.mk << 'END'
4731 am__doit:
4732 @echo this is the am__doit target >confinc.out
4733 .PHONY: am__doit
4735 am__include="#"
4736 am__quote=
4737 # BSD make does it like this.
4738 echo '.include "confinc.mk" # ignored' > confmf.BSD
4739 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4740 echo 'include confinc.mk # ignored' > confmf.GNU
4741 _am_result=no
4742 for s in GNU BSD; do
4743 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4744 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }
4748 case $?:`cat confinc.out 2>/dev/null` in #(
4749 '0:this is the am__doit target') :
4750 case $s in #(
4751 BSD) :
4752 am__include='.include' am__quote='"' ;; #(
4753 *) :
4754 am__include='include' am__quote='' ;;
4755 esac ;; #(
4756 *) :
4758 esac
4759 if test "$am__include" != "#"; then
4760 _am_result="yes ($s style)"
4761 break
4763 done
4764 rm -f confinc.* confmf.*
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4766 printf "%s\n" "${_am_result}" >&6; }
4768 # Check whether --enable-dependency-tracking was given.
4769 if test ${enable_dependency_tracking+y}
4770 then :
4771 enableval=$enable_dependency_tracking;
4774 if test "x$enable_dependency_tracking" != xno; then
4775 am_depcomp="$ac_aux_dir/depcomp"
4776 AMDEPBACKSLASH='\'
4777 am__nodep='_no'
4779 if test "x$enable_dependency_tracking" != xno; then
4780 AMDEP_TRUE=
4781 AMDEP_FALSE='#'
4782 else
4783 AMDEP_TRUE='#'
4784 AMDEP_FALSE=
4788 # Check whether --enable-silent-rules was given.
4789 if test ${enable_silent_rules+y}
4790 then :
4791 enableval=$enable_silent_rules;
4794 case $enable_silent_rules in # (((
4795 yes) AM_DEFAULT_VERBOSITY=0;;
4796 no) AM_DEFAULT_VERBOSITY=1;;
4797 *) AM_DEFAULT_VERBOSITY=1;;
4798 esac
4799 am_make=${MAKE-make}
4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4801 printf %s "checking whether $am_make supports nested variables... " >&6; }
4802 if test ${am_cv_make_support_nested_variables+y}
4803 then :
4804 printf %s "(cached) " >&6
4805 else $as_nop
4806 if printf "%s\n" 'TRUE=$(BAR$(V))
4807 BAR0=false
4808 BAR1=true
4810 am__doit:
4811 @$(TRUE)
4812 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4813 am_cv_make_support_nested_variables=yes
4814 else
4815 am_cv_make_support_nested_variables=no
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4819 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4820 if test $am_cv_make_support_nested_variables = yes; then
4821 AM_V='$(V)'
4822 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4823 else
4824 AM_V=$AM_DEFAULT_VERBOSITY
4825 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4827 AM_BACKSLASH='\'
4829 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4830 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4831 # is not polluted with repeated "-I."
4832 am__isrc=' -I$(srcdir)'
4833 # test to see if srcdir already configured
4834 if test -f $srcdir/config.status; then
4835 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4839 # test whether we have cygpath
4840 if test -z "$CYGPATH_W"; then
4841 if (cygpath --version) >/dev/null 2>/dev/null; then
4842 CYGPATH_W='cygpath -w'
4843 else
4844 CYGPATH_W=echo
4849 # Define the identity of the package.
4850 PACKAGE='qbittorrent'
4851 VERSION='v4.4.0alpha'
4854 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4857 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4859 # Some tools Automake needs.
4861 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4864 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4867 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4870 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4873 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4875 # For better backward compatibility. To be removed once Automake 1.9.x
4876 # dies out for good. For more background, see:
4877 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4878 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4879 mkdir_p='$(MKDIR_P)'
4881 # We need awk for the "check" target (and possibly the TAP driver). The
4882 # system "awk" is bad on some platforms.
4883 # Always define AMTAR for backward compatibility. Yes, it's still used
4884 # in the wild :-( We should find a proper way to deprecate it ...
4885 AMTAR='$${TAR-tar}'
4888 # We'll loop over all known methods to create a tar archive until one works.
4889 _am_tools='gnutar pax cpio none'
4891 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4897 depcc="$CC" am_compiler_list=
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4900 printf %s "checking dependency style of $depcc... " >&6; }
4901 if test ${am_cv_CC_dependencies_compiler_type+y}
4902 then :
4903 printf %s "(cached) " >&6
4904 else $as_nop
4905 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4906 # We make a subdir and do the tests there. Otherwise we can end up
4907 # making bogus files that we don't know about and never remove. For
4908 # instance it was reported that on HP-UX the gcc test will end up
4909 # making a dummy file named 'D' -- because '-MD' means "put the output
4910 # in D".
4911 rm -rf conftest.dir
4912 mkdir conftest.dir
4913 # Copy depcomp to subdir because otherwise we won't find it if we're
4914 # using a relative directory.
4915 cp "$am_depcomp" conftest.dir
4916 cd conftest.dir
4917 # We will build objects and dependencies in a subdirectory because
4918 # it helps to detect inapplicable dependency modes. For instance
4919 # both Tru64's cc and ICC support -MD to output dependencies as a
4920 # side effect of compilation, but ICC will put the dependencies in
4921 # the current directory while Tru64 will put them in the object
4922 # directory.
4923 mkdir sub
4925 am_cv_CC_dependencies_compiler_type=none
4926 if test "$am_compiler_list" = ""; then
4927 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4929 am__universal=false
4930 case " $depcc " in #(
4931 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4932 esac
4934 for depmode in $am_compiler_list; do
4935 # Setup a source with many dependencies, because some compilers
4936 # like to wrap large dependency lists on column 80 (with \), and
4937 # we should not choose a depcomp mode which is confused by this.
4939 # We need to recreate these files for each test, as the compiler may
4940 # overwrite some of them when testing with obscure command lines.
4941 # This happens at least with the AIX C compiler.
4942 : > sub/conftest.c
4943 for i in 1 2 3 4 5 6; do
4944 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4945 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4946 # Solaris 10 /bin/sh.
4947 echo '/* dummy */' > sub/conftst$i.h
4948 done
4949 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4951 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4952 # mode. It turns out that the SunPro C++ compiler does not properly
4953 # handle '-M -o', and we need to detect this. Also, some Intel
4954 # versions had trouble with output in subdirs.
4955 am__obj=sub/conftest.${OBJEXT-o}
4956 am__minus_obj="-o $am__obj"
4957 case $depmode in
4958 gcc)
4959 # This depmode causes a compiler race in universal mode.
4960 test "$am__universal" = false || continue
4962 nosideeffect)
4963 # After this tag, mechanisms are not by side-effect, so they'll
4964 # only be used when explicitly requested.
4965 if test "x$enable_dependency_tracking" = xyes; then
4966 continue
4967 else
4968 break
4971 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4972 # This compiler won't grok '-c -o', but also, the minuso test has
4973 # not run yet. These depmodes are late enough in the game, and
4974 # so weak that their functioning should not be impacted.
4975 am__obj=conftest.${OBJEXT-o}
4976 am__minus_obj=
4978 none) break ;;
4979 esac
4980 if depmode=$depmode \
4981 source=sub/conftest.c object=$am__obj \
4982 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4983 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4984 >/dev/null 2>conftest.err &&
4985 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4986 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4987 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4988 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4989 # icc doesn't choke on unknown options, it will just issue warnings
4990 # or remarks (even with -Werror). So we grep stderr for any message
4991 # that says an option was ignored or not supported.
4992 # When given -MP, icc 7.0 and 7.1 complain thusly:
4993 # icc: Command line warning: ignoring option '-M'; no argument required
4994 # The diagnosis changed in icc 8.0:
4995 # icc: Command line remark: option '-MP' not supported
4996 if (grep 'ignoring option' conftest.err ||
4997 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4998 am_cv_CC_dependencies_compiler_type=$depmode
4999 break
5002 done
5004 cd ..
5005 rm -rf conftest.dir
5006 else
5007 am_cv_CC_dependencies_compiler_type=none
5011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5012 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5013 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5016 test "x$enable_dependency_tracking" != xno \
5017 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5018 am__fastdepCC_TRUE=
5019 am__fastdepCC_FALSE='#'
5020 else
5021 am__fastdepCC_TRUE='#'
5022 am__fastdepCC_FALSE=
5026 depcc="$CXX" am_compiler_list=
5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5029 printf %s "checking dependency style of $depcc... " >&6; }
5030 if test ${am_cv_CXX_dependencies_compiler_type+y}
5031 then :
5032 printf %s "(cached) " >&6
5033 else $as_nop
5034 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5035 # We make a subdir and do the tests there. Otherwise we can end up
5036 # making bogus files that we don't know about and never remove. For
5037 # instance it was reported that on HP-UX the gcc test will end up
5038 # making a dummy file named 'D' -- because '-MD' means "put the output
5039 # in D".
5040 rm -rf conftest.dir
5041 mkdir conftest.dir
5042 # Copy depcomp to subdir because otherwise we won't find it if we're
5043 # using a relative directory.
5044 cp "$am_depcomp" conftest.dir
5045 cd conftest.dir
5046 # We will build objects and dependencies in a subdirectory because
5047 # it helps to detect inapplicable dependency modes. For instance
5048 # both Tru64's cc and ICC support -MD to output dependencies as a
5049 # side effect of compilation, but ICC will put the dependencies in
5050 # the current directory while Tru64 will put them in the object
5051 # directory.
5052 mkdir sub
5054 am_cv_CXX_dependencies_compiler_type=none
5055 if test "$am_compiler_list" = ""; then
5056 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5058 am__universal=false
5059 case " $depcc " in #(
5060 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5061 esac
5063 for depmode in $am_compiler_list; do
5064 # Setup a source with many dependencies, because some compilers
5065 # like to wrap large dependency lists on column 80 (with \), and
5066 # we should not choose a depcomp mode which is confused by this.
5068 # We need to recreate these files for each test, as the compiler may
5069 # overwrite some of them when testing with obscure command lines.
5070 # This happens at least with the AIX C compiler.
5071 : > sub/conftest.c
5072 for i in 1 2 3 4 5 6; do
5073 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5074 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5075 # Solaris 10 /bin/sh.
5076 echo '/* dummy */' > sub/conftst$i.h
5077 done
5078 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5080 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5081 # mode. It turns out that the SunPro C++ compiler does not properly
5082 # handle '-M -o', and we need to detect this. Also, some Intel
5083 # versions had trouble with output in subdirs.
5084 am__obj=sub/conftest.${OBJEXT-o}
5085 am__minus_obj="-o $am__obj"
5086 case $depmode in
5087 gcc)
5088 # This depmode causes a compiler race in universal mode.
5089 test "$am__universal" = false || continue
5091 nosideeffect)
5092 # After this tag, mechanisms are not by side-effect, so they'll
5093 # only be used when explicitly requested.
5094 if test "x$enable_dependency_tracking" = xyes; then
5095 continue
5096 else
5097 break
5100 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5101 # This compiler won't grok '-c -o', but also, the minuso test has
5102 # not run yet. These depmodes are late enough in the game, and
5103 # so weak that their functioning should not be impacted.
5104 am__obj=conftest.${OBJEXT-o}
5105 am__minus_obj=
5107 none) break ;;
5108 esac
5109 if depmode=$depmode \
5110 source=sub/conftest.c object=$am__obj \
5111 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5112 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5113 >/dev/null 2>conftest.err &&
5114 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5115 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5116 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5117 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5118 # icc doesn't choke on unknown options, it will just issue warnings
5119 # or remarks (even with -Werror). So we grep stderr for any message
5120 # that says an option was ignored or not supported.
5121 # When given -MP, icc 7.0 and 7.1 complain thusly:
5122 # icc: Command line warning: ignoring option '-M'; no argument required
5123 # The diagnosis changed in icc 8.0:
5124 # icc: Command line remark: option '-MP' not supported
5125 if (grep 'ignoring option' conftest.err ||
5126 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5127 am_cv_CXX_dependencies_compiler_type=$depmode
5128 break
5131 done
5133 cd ..
5134 rm -rf conftest.dir
5135 else
5136 am_cv_CXX_dependencies_compiler_type=none
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5141 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5142 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5145 test "x$enable_dependency_tracking" != xno \
5146 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5147 am__fastdepCXX_TRUE=
5148 am__fastdepCXX_FALSE='#'
5149 else
5150 am__fastdepCXX_TRUE='#'
5151 am__fastdepCXX_FALSE=
5156 # POSIX will say in a future version that running "rm -f" with no argument
5157 # is OK; and we want to be able to make that assumption in our Makefile
5158 # recipes. So use an aggressive probe to check that the usage we want is
5159 # actually supported "in the wild" to an acceptable degree.
5160 # See automake bug#10828.
5161 # To make any issue more visible, cause the running configure to be aborted
5162 # by default if the 'rm' program in use doesn't match our expectations; the
5163 # user can still override this though.
5164 if rm -f && rm -fr && rm -rf; then : OK; else
5165 cat >&2 <<'END'
5166 Oops!
5168 Your 'rm' program seems unable to run without file operands specified
5169 on the command line, even when the '-f' option is present. This is contrary
5170 to the behaviour of most rm programs out there, and not conforming with
5171 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5173 Please tell bug-automake@gnu.org about your system, including the value
5174 of your $PATH and any error possibly output before this message. This
5175 can help us improve future automake versions.
5178 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5179 echo 'Configuration will proceed anyway, since you have set the' >&2
5180 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5181 echo >&2
5182 else
5183 cat >&2 <<'END'
5184 Aborting the configuration process, to ensure you take notice of the issue.
5186 You can download and install GNU coreutils to get an 'rm' implementation
5187 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5189 If you want to complete the configuration process using your problematic
5190 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5191 to "yes", and re-run configure.
5194 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5199 # use compiler from env variables if available
5200 QBT_CC="$CC"
5201 QBT_CXX="$CXX"
5203 # Define --wth-* and --enable-* arguments
5205 # Check whether --enable-debug was given.
5206 if test ${enable_debug+y}
5207 then :
5208 enableval=$enable_debug;
5209 else $as_nop
5210 enable_debug=no
5214 # Check whether --enable-stacktrace was given.
5215 if test ${enable_stacktrace+y}
5216 then :
5217 enableval=$enable_stacktrace;
5218 else $as_nop
5219 enable_stacktrace=auto
5223 # Check whether --enable-gui was given.
5224 if test ${enable_gui+y}
5225 then :
5226 enableval=$enable_gui;
5227 else $as_nop
5228 enable_gui=yes
5232 # Check whether --enable-systemd was given.
5233 if test ${enable_systemd+y}
5234 then :
5235 enableval=$enable_systemd;
5236 else $as_nop
5237 enable_systemd=no
5241 # Check whether --enable-webui was given.
5242 if test ${enable_webui+y}
5243 then :
5244 enableval=$enable_webui;
5245 else $as_nop
5246 enable_webui=yes
5250 # Check whether --enable-qt-dbus was given.
5251 if test ${enable_qt_dbus+y}
5252 then :
5253 enableval=$enable_qt_dbus;
5254 else $as_nop
5255 enable_qt_dbus=yes
5259 # Detect OS
5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS is FreeBSD" >&5
5261 printf %s "checking whether OS is FreeBSD... " >&6; }
5262 if expr "$host_os" : ".*freebsd.*" > /dev/null
5263 then :
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5265 printf "%s\n" "yes" >&6; }
5266 LIBS="-lexecinfo $LIBS"
5267 else $as_nop
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 printf "%s\n" "no" >&6; }
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS is macOS" >&5
5273 printf %s "checking whether OS is macOS... " >&6; }
5274 if expr "$host_os" : ".*darwin.*" > /dev/null
5275 then :
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5277 printf "%s\n" "yes" >&6; }
5278 enable_qt_dbus=no
5279 else $as_nop
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 printf "%s\n" "no" >&6; }
5284 # Require 0.23 pkg-config
5292 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5293 if test -n "$ac_tool_prefix"; then
5294 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5295 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 printf %s "checking for $ac_word... " >&6; }
5298 if test ${ac_cv_path_PKG_CONFIG+y}
5299 then :
5300 printf %s "(cached) " >&6
5301 else $as_nop
5302 case $PKG_CONFIG in
5303 [\\/]* | ?:[\\/]*)
5304 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5310 IFS=$as_save_IFS
5311 case $as_dir in #(((
5312 '') as_dir=./ ;;
5313 */) ;;
5314 *) as_dir=$as_dir/ ;;
5315 esac
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5318 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5320 break 2
5322 done
5323 done
5324 IFS=$as_save_IFS
5327 esac
5329 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5330 if test -n "$PKG_CONFIG"; then
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5332 printf "%s\n" "$PKG_CONFIG" >&6; }
5333 else
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 printf "%s\n" "no" >&6; }
5340 if test -z "$ac_cv_path_PKG_CONFIG"; then
5341 ac_pt_PKG_CONFIG=$PKG_CONFIG
5342 # Extract the first word of "pkg-config", so it can be a program name with args.
5343 set dummy pkg-config; ac_word=$2
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 printf %s "checking for $ac_word... " >&6; }
5346 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5347 then :
5348 printf %s "(cached) " >&6
5349 else $as_nop
5350 case $ac_pt_PKG_CONFIG in
5351 [\\/]* | ?:[\\/]*)
5352 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5358 IFS=$as_save_IFS
5359 case $as_dir in #(((
5360 '') as_dir=./ ;;
5361 */) ;;
5362 *) as_dir=$as_dir/ ;;
5363 esac
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5366 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5372 IFS=$as_save_IFS
5375 esac
5377 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5378 if test -n "$ac_pt_PKG_CONFIG"; then
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5380 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5381 else
5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 printf "%s\n" "no" >&6; }
5386 if test "x$ac_pt_PKG_CONFIG" = x; then
5387 PKG_CONFIG=""
5388 else
5389 case $cross_compiling:$ac_tool_warned in
5390 yes:)
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5392 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5393 ac_tool_warned=yes ;;
5394 esac
5395 PKG_CONFIG=$ac_pt_PKG_CONFIG
5397 else
5398 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5402 if test -n "$PKG_CONFIG"; then
5403 _pkg_min_version=0.23
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5405 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5406 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5408 printf "%s\n" "yes" >&6; }
5409 else
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 printf "%s\n" "no" >&6; }
5412 PKG_CONFIG=""
5415 if test "x$PKG_CONFIG" = "x"
5416 then :
5417 as_fn_error $? "Could not find pkg-config" "$LINENO" 5
5420 # Check which arguments were set and act accordingly
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the Debug build" >&5
5422 printf %s "checking whether to enable the Debug build... " >&6; }
5423 case "x$enable_debug" in #(
5424 "xno") :
5425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 printf "%s\n" "no" >&6; }
5427 QBT_ADD_CONFIG="$QBT_ADD_CONFIG release"
5428 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG debug" ;; #(
5429 "xyes") :
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5431 printf "%s\n" "yes" >&6; }
5432 QBT_ADD_CONFIG="$QBT_ADD_CONFIG debug"
5433 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG release" ;; #(
5434 *) :
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
5436 printf "%s\n" "$enable_debug" >&6; }
5437 as_fn_error $? "Unknown option \"$enable_debug\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5438 esac
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the stacktrace feature" >&5
5441 printf %s "checking whether to enable the stacktrace feature... " >&6; }
5443 case "x$enable_stacktrace" in #(
5444 "xno") :
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 printf "%s\n" "no" >&6; }
5447 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG stacktrace" ;; #(
5448 "xyes") :
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5450 printf "%s\n" "yes" >&6; }
5451 QBT_ADD_CONFIG="$QBT_ADD_CONFIG stacktrace" ;; #(
5452 "xauto") :
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455 #include <execinfo.h>
5456 _ACEOF
5457 if ac_fn_cxx_try_compile "$LINENO"
5458 then :
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5460 printf "%s\n" "yes" >&6; }
5461 QBT_ADD_CONFIG="$QBT_ADD_CONFIG stacktrace"
5462 else $as_nop
5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 printf "%s\n" "no" >&6; }
5465 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG stacktrace"
5467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; #(
5468 *) :
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_stacktrace" >&5
5470 printf "%s\n" "$enable_stacktrace" >&6; }
5471 as_fn_error $? "Unknown option \"$enable_stacktrace\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5472 esac
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the GUI" >&5
5475 printf %s "checking whether to enable the GUI... " >&6; }
5476 case "x$enable_gui" in #(
5477 "xyes") :
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5479 printf "%s\n" "yes" >&6; }
5480 enable_systemd=no
5481 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nogui" ;; #(
5482 "xno") :
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 printf "%s\n" "no" >&6; }
5485 enable_qt_dbus=no
5486 QBT_ADD_CONFIG="$QBT_ADD_CONFIG nogui" ;; #(
5487 *) :
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gui" >&5
5489 printf "%s\n" "$enable_gui" >&6; }
5490 as_fn_error $? "Unknown option \"$enable_gui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5491 esac
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install the systemd service file" >&5
5494 printf %s "checking whether to install the systemd service file... " >&6; }
5495 case "x$enable_systemd" in #(
5496 "xyes") :
5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5498 printf "%s\n" "yes" >&6; }
5499 QBT_ADD_CONFIG="$QBT_ADD_CONFIG systemd" ;; #(
5500 "xno") :
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 printf "%s\n" "no" >&6; }
5503 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG systemd" ;; #(
5504 *) :
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_systemd" >&5
5506 printf "%s\n" "$enable_systemd" >&6; }
5507 as_fn_error $? "Unknown option \"$enable_systemd\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5508 esac
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the WebUI" >&5
5511 printf %s "checking whether to enable the WebUI... " >&6; }
5512 case "x$enable_webui" in #(
5513 "xyes") :
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515 printf "%s\n" "yes" >&6; }
5516 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG nowebui" ;; #(
5517 "xno") :
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 printf "%s\n" "no" >&6; }
5520 QBT_ADD_CONFIG="$QBT_ADD_CONFIG nowebui" ;; #(
5521 *) :
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_webui" >&5
5523 printf "%s\n" "$enable_webui" >&6; }
5524 as_fn_error $? "Unknown option \"$enable_webui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5525 esac
5527 if test -n "$PKG_CONFIG" && \
5528 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.12\""; } >&5
5529 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.12") 2>&5
5530 ac_status=$?
5531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5532 test $ac_status = 0; }; then
5534 if test -n "$QT_QMAKE"; then
5535 pkg_cv_QT_QMAKE="$QT_QMAKE"
5536 elif test -n "$PKG_CONFIG"; then
5537 if test -n "$PKG_CONFIG" && \
5538 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.12\""; } >&5
5539 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.12") 2>&5
5540 ac_status=$?
5541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5542 test $ac_status = 0; }; then
5543 pkg_cv_QT_QMAKE=`$PKG_CONFIG --variable="host_bins" "Qt5Core >= 5.12" 2>/dev/null`
5544 test "x$?" != "x0" && pkg_failed=yes
5545 else
5546 pkg_failed=yes
5548 else
5549 pkg_failed=untried
5551 QT_QMAKE=$pkg_cv_QT_QMAKE
5553 if test "x$QT_QMAKE" = x""
5554 then :
5560 if test -f "$QT_QMAKE/qmake"
5561 then :
5562 QT_QMAKE="$QT_QMAKE/qmake"
5563 else $as_nop
5564 if test -f "$QT_QMAKE/qmake-qt5"
5565 then :
5566 QT_QMAKE="$QT_QMAKE/qmake-qt5"
5567 else $as_nop
5568 QT_QMAKE=""
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5 qmake >= 5.12" >&5
5574 printf %s "checking for Qt5 qmake >= 5.12... " >&6; }
5575 if test "x$QT_QMAKE" != "x"
5576 then :
5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QT_QMAKE" >&5
5578 printf "%s\n" "$QT_QMAKE" >&6; }
5579 else $as_nop
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5581 printf "%s\n" "not found" >&6; }
5585 if test "x$QT_QMAKE" = "x"
5586 then :
5587 as_fn_error $? "Could not find qmake" "$LINENO" 5
5590 if test "x$enable_gui" = "xyes"
5591 then :
5593 pkg_failed=no
5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5Svg" >&5
5595 printf %s "checking for Qt5Svg... " >&6; }
5597 if test -n "$Qt5Svg_CFLAGS"; then
5598 pkg_cv_Qt5Svg_CFLAGS="$Qt5Svg_CFLAGS"
5599 elif test -n "$PKG_CONFIG"; then
5600 if test -n "$PKG_CONFIG" && \
5601 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.12\""; } >&5
5602 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.12") 2>&5
5603 ac_status=$?
5604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5605 test $ac_status = 0; }; then
5606 pkg_cv_Qt5Svg_CFLAGS=`$PKG_CONFIG --cflags "Qt5Svg >= 5.12" 2>/dev/null`
5607 test "x$?" != "x0" && pkg_failed=yes
5608 else
5609 pkg_failed=yes
5611 else
5612 pkg_failed=untried
5614 if test -n "$Qt5Svg_LIBS"; then
5615 pkg_cv_Qt5Svg_LIBS="$Qt5Svg_LIBS"
5616 elif test -n "$PKG_CONFIG"; then
5617 if test -n "$PKG_CONFIG" && \
5618 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Svg >= 5.12\""; } >&5
5619 ($PKG_CONFIG --exists --print-errors "Qt5Svg >= 5.12") 2>&5
5620 ac_status=$?
5621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5622 test $ac_status = 0; }; then
5623 pkg_cv_Qt5Svg_LIBS=`$PKG_CONFIG --libs "Qt5Svg >= 5.12" 2>/dev/null`
5624 test "x$?" != "x0" && pkg_failed=yes
5625 else
5626 pkg_failed=yes
5628 else
5629 pkg_failed=untried
5634 if test $pkg_failed = yes; then
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 printf "%s\n" "no" >&6; }
5638 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5639 _pkg_short_errors_supported=yes
5640 else
5641 _pkg_short_errors_supported=no
5643 if test $_pkg_short_errors_supported = yes; then
5644 Qt5Svg_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Svg >= 5.12" 2>&1`
5645 else
5646 Qt5Svg_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Svg >= 5.12" 2>&1`
5648 # Put the nasty error message in config.log where it belongs
5649 echo "$Qt5Svg_PKG_ERRORS" >&5
5651 as_fn_error $? "Package requirements (Qt5Svg >= 5.12) were not met:
5653 $Qt5Svg_PKG_ERRORS
5655 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5656 installed software in a non-standard prefix.
5658 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
5659 and Qt5Svg_LIBS to avoid the need to call pkg-config.
5660 See the pkg-config man page for more details." "$LINENO" 5
5661 elif test $pkg_failed = untried; then
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 printf "%s\n" "no" >&6; }
5664 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5665 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5666 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5667 is in your PATH or set the PKG_CONFIG environment variable to the full
5668 path to pkg-config.
5670 Alternatively, you may set the environment variables Qt5Svg_CFLAGS
5671 and Qt5Svg_LIBS to avoid the need to call pkg-config.
5672 See the pkg-config man page for more details.
5674 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5675 See \`config.log' for more details" "$LINENO" 5; }
5676 else
5677 Qt5Svg_CFLAGS=$pkg_cv_Qt5Svg_CFLAGS
5678 Qt5Svg_LIBS=$pkg_cv_Qt5Svg_LIBS
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5680 printf "%s\n" "yes" >&6; }
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether QtDBus should be enabled" >&5
5686 printf %s "checking whether QtDBus should be enabled... " >&6; }
5687 case "x$enable_qt_dbus" in #(
5688 "xyes") :
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5690 printf "%s\n" "yes" >&6; }
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5DBus >= 5.12" >&5
5692 printf %s "checking for Qt5DBus >= 5.12... " >&6; }
5693 if test -n "$PKG_CONFIG" && \
5694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5DBus >= 5.12\""; } >&5
5695 ($PKG_CONFIG --exists --print-errors "Qt5DBus >= 5.12") 2>&5
5696 ac_status=$?
5697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5698 test $ac_status = 0; }; then
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
5700 printf "%s\n" "found" >&6; }
5701 HAVE_QTDBUS=true
5702 else
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5704 printf "%s\n" "not found" >&6; }
5705 HAVE_QTDBUS=false
5708 if test "x$HAVE_QTDBUS" = "xfalse"
5709 then :
5710 as_fn_error $? "Could not find QtDBus" "$LINENO" 5
5711 else $as_nop
5712 QBT_ADD_CONFIG="$QBT_ADD_CONFIG dbus"
5714 fi ;; #(
5715 "xno") :
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 printf "%s\n" "no" >&6; }
5718 QBT_REMOVE_CONFIG="$QBT_REMOVE_CONFIG dbus" ;; #(
5719 *) :
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_qt_dbus" >&5
5721 printf "%s\n" "$enable_qt_dbus" >&6; }
5722 as_fn_error $? "Unknown option \"$enable_qt_dbus\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
5723 esac
5728 # Check whether --with-boost was given.
5729 if test ${with_boost+y}
5730 then :
5731 withval=$with_boost;
5732 case $withval in #(
5733 no) :
5734 want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #(
5735 yes) :
5736 want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #(
5737 *) :
5738 want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;;
5739 esac
5741 else $as_nop
5742 want_boost="yes"
5748 # Check whether --with-boost-libdir was given.
5749 if test ${with_boost_libdir+y}
5750 then :
5751 withval=$with_boost_libdir;
5752 if test -d "$withval"
5753 then :
5754 _AX_BOOST_BASE_boost_lib_path="$withval"
5755 else $as_nop
5756 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
5759 else $as_nop
5760 _AX_BOOST_BASE_boost_lib_path=""
5764 BOOST_LDFLAGS=""
5765 BOOST_CPPFLAGS=""
5766 if test "x$want_boost" = "xyes"
5767 then :
5770 if test "x1.65" = "x"
5771 then :
5772 _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0"
5773 else $as_nop
5774 _AX_BOOST_BASE_TONUMERICVERSION_req="1.65"
5776 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'`
5777 _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'`
5778 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"
5779 then :
5780 as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5
5782 _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'`
5783 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"
5784 then :
5785 _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0"
5787 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
5788 if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"
5789 then :
5790 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0"
5792 _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`
5793 WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET
5795 succeeded=no
5799 case ${host_cpu} in #(
5800 x86_64) :
5801 libsubdirs="lib64 libx32 lib lib64" ;; #(
5802 mips*64*) :
5803 libsubdirs="lib64 lib32 lib lib64" ;; #(
5804 ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64) :
5805 libsubdirs="lib64 lib lib64" ;; #(
5806 *) :
5807 libsubdirs="lib"
5809 esac
5811 case ${host_cpu} in #(
5812 i?86) :
5813 multiarch_libsubdir="lib/i386-${host_os}" ;; #(
5814 *) :
5815 multiarch_libsubdir="lib/${host_cpu}-${host_os}"
5817 esac
5819 if test "x$_AX_BOOST_BASE_boost_path" != "x"
5820 then :
5822 { 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
5823 printf %s "checking for boostlib >= 1.65 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; }
5824 if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"
5825 then :
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5828 printf "%s\n" "yes" >&6; }
5829 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include"
5830 for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do
5831 { 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
5832 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; }
5833 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"
5834 then :
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5837 printf "%s\n" "yes" >&6; }
5838 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp";
5839 break;
5841 else $as_nop
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 printf "%s\n" "no" >&6; }
5845 done
5846 else $as_nop
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 printf "%s\n" "no" >&6; }
5852 else $as_nop
5854 if test X"$cross_compiling" = Xyes; then
5855 search_libsubdirs=$multiarch_libsubdir
5856 else
5857 search_libsubdirs="$multiarch_libsubdir $libsubdirs"
5859 for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
5860 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then
5861 for libsubdir in $search_libsubdirs ; do
5862 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5863 done
5864 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir"
5865 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include"
5866 break;
5868 done
5872 if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"
5873 then :
5874 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path"
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.65 ($WANT_BOOST_VERSION)" >&5
5878 printf %s "checking for boostlib >= 1.65 ($WANT_BOOST_VERSION)... " >&6; }
5879 CPPFLAGS_SAVED="$CPPFLAGS"
5880 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
5881 export CPPFLAGS
5883 LDFLAGS_SAVED="$LDFLAGS"
5884 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5885 export LDFLAGS
5888 ac_ext=cpp
5889 ac_cpp='$CXXCPP $CPPFLAGS'
5890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5897 #include <boost/version.hpp>
5900 main (void)
5903 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
5906 return 0;
5908 _ACEOF
5909 if ac_fn_cxx_try_compile "$LINENO"
5910 then :
5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5913 printf "%s\n" "yes" >&6; }
5914 succeeded=yes
5915 found_system=yes
5918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5919 ac_ext=cpp
5920 ac_cpp='$CXXCPP $CPPFLAGS'
5921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5928 if test "x$succeeded" != "xyes" ; then
5929 CPPFLAGS="$CPPFLAGS_SAVED"
5930 LDFLAGS="$LDFLAGS_SAVED"
5931 BOOST_CPPFLAGS=
5932 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5933 BOOST_LDFLAGS=
5935 _version=0
5936 if test -n "$_AX_BOOST_BASE_boost_path" ; then
5937 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then
5938 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
5939 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5940 V_CHECK=`expr $_version_tmp \> $_version`
5941 if test "x$V_CHECK" = "x1" ; then
5942 _version=$_version_tmp
5944 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
5945 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE"
5946 done
5947 if test -z "$BOOST_CPPFLAGS"; then
5948 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then
5949 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path"
5952 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then
5953 for libsubdir in $libsubdirs ; do
5954 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5955 done
5956 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir"
5959 else
5960 if test "x$cross_compiling" != "xyes" ; then
5961 for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do
5962 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then
5963 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do
5964 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5965 V_CHECK=`expr $_version_tmp \> $_version`
5966 if test "x$V_CHECK" = "x1" ; then
5967 _version=$_version_tmp
5968 best_path=$_AX_BOOST_BASE_boost_path
5970 done
5972 done
5974 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
5975 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
5976 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5977 for libsubdir in $libsubdirs ; do
5978 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5979 done
5980 BOOST_LDFLAGS="-L$best_path/$libsubdir"
5984 if test -n "$BOOST_ROOT" ; then
5985 for libsubdir in $libsubdirs ; do
5986 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
5987 done
5988 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
5989 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
5990 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
5991 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
5992 V_CHECK=`expr $stage_version_shorten \>\= $_version`
5993 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
5995 printf "%s\n" "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
5996 BOOST_CPPFLAGS="-I$BOOST_ROOT"
5997 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
6003 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
6004 export CPPFLAGS
6005 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
6006 export LDFLAGS
6008 ac_ext=cpp
6009 ac_cpp='$CXXCPP $CPPFLAGS'
6010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6017 #include <boost/version.hpp>
6020 main (void)
6023 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))]));
6026 return 0;
6028 _ACEOF
6029 if ac_fn_cxx_try_compile "$LINENO"
6030 then :
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6033 printf "%s\n" "yes" >&6; }
6034 succeeded=yes
6035 found_system=yes
6038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6039 ac_ext=cpp
6040 ac_cpp='$CXXCPP $CPPFLAGS'
6041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6047 if test "x$succeeded" != "xyes" ; then
6048 if test "x$_version" = "x0" ; then
6049 { 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
6050 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;}
6051 else
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
6053 printf "%s\n" "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
6055 # execute ACTION-IF-NOT-FOUND (if present):
6056 as_fn_error $? "Could not find Boost" "$LINENO" 5
6057 else
6059 printf "%s\n" "#define HAVE_BOOST /**/" >>confdefs.h
6061 # execute ACTION-IF-FOUND (if present):
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&5
6063 printf "%s\n" "$as_me: Boost CXXFLAGS: \"$BOOST_CPPFLAGS\"" >&6;}
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&5
6065 printf "%s\n" "$as_me: Boost LDFLAGS: \"$BOOST_LDFLAGS\"" >&6;}
6068 CPPFLAGS="$CPPFLAGS_SAVED"
6069 LDFLAGS="$LDFLAGS_SAVED"
6076 CXXFLAGS="$BOOST_CPPFLAGS $CXXFLAGS"
6077 LDFLAGS="$BOOST_LDFLAGS $LDFLAGS"
6079 # add workaround for problematic boost version
6080 # taken from ax_boost_base.m4
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6085 #include <boost/version.hpp>
6087 main (void)
6089 (void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < (106000))]));
6091 return 0;
6093 _ACEOF
6094 if ac_fn_cxx_try_compile "$LINENO"
6095 then :
6097 else $as_nop
6098 QBT_ADD_DEFINES="$QBT_ADD_DEFINES BOOST_NO_CXX11_RVALUE_REFERENCES"
6100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6104 # Check whether --with-boost-system was given.
6105 if test ${with_boost_system+y}
6106 then :
6107 withval=$with_boost_system;
6108 if test "$withval" = "no"; then
6109 want_boost="no"
6110 elif test "$withval" = "yes"; then
6111 want_boost="yes"
6112 ax_boost_user_system_lib=""
6113 else
6114 want_boost="yes"
6115 ax_boost_user_system_lib="$withval"
6118 else $as_nop
6119 want_boost="yes"
6124 if test "x$want_boost" = "xyes"; then
6127 CPPFLAGS_SAVED="$CPPFLAGS"
6128 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
6129 export CPPFLAGS
6131 LDFLAGS_SAVED="$LDFLAGS"
6132 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
6133 export LDFLAGS
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
6136 printf %s "checking whether the Boost::System library is available... " >&6; }
6137 if test ${ax_cv_boost_system+y}
6138 then :
6139 printf %s "(cached) " >&6
6140 else $as_nop
6141 ac_ext=cpp
6142 ac_cpp='$CXXCPP $CPPFLAGS'
6143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6147 CXXFLAGS_SAVE=$CXXFLAGS
6148 CXXFLAGS=
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152 #include <boost/system/error_code.hpp>
6154 main (void)
6156 boost::system::error_category *a = 0;
6158 return 0;
6160 _ACEOF
6161 if ac_fn_cxx_try_compile "$LINENO"
6162 then :
6163 ax_cv_boost_system=yes
6164 else $as_nop
6165 ax_cv_boost_system=no
6167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6168 CXXFLAGS=$CXXFLAGS_SAVE
6169 ac_ext=cpp
6170 ac_cpp='$CXXCPP $CPPFLAGS'
6171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
6178 printf "%s\n" "$ax_cv_boost_system" >&6; }
6179 if test "x$ax_cv_boost_system" = "xyes"; then
6183 printf "%s\n" "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
6185 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
6187 LDFLAGS_SAVE=$LDFLAGS
6188 if test "x$ax_boost_user_system_lib" = "x"; then
6189 for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
6190 ax_lib=${libextension}
6191 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
6193 printf %s "checking for exit in -l$ax_lib... " >&6; }
6194 if eval test \${$as_ac_Lib+y}
6195 then :
6196 printf %s "(cached) " >&6
6197 else $as_nop
6198 ac_check_lib_save_LIBS=$LIBS
6199 LIBS="-l$ax_lib $LIBS"
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6203 namespace conftest {
6204 extern "C" int exit ();
6207 main (void)
6209 return conftest::exit ();
6211 return 0;
6213 _ACEOF
6214 if ac_fn_cxx_try_link "$LINENO"
6215 then :
6216 eval "$as_ac_Lib=yes"
6217 else $as_nop
6218 eval "$as_ac_Lib=no"
6220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6221 conftest$ac_exeext conftest.$ac_ext
6222 LIBS=$ac_check_lib_save_LIBS
6224 eval ac_res=\$$as_ac_Lib
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6226 printf "%s\n" "$ac_res" >&6; }
6227 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
6228 then :
6229 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
6230 else $as_nop
6231 link_system="no"
6234 done
6235 if test "x$link_system" != "xyes"; then
6236 for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
6237 ax_lib=${libextension}
6238 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
6240 printf %s "checking for exit in -l$ax_lib... " >&6; }
6241 if eval test \${$as_ac_Lib+y}
6242 then :
6243 printf %s "(cached) " >&6
6244 else $as_nop
6245 ac_check_lib_save_LIBS=$LIBS
6246 LIBS="-l$ax_lib $LIBS"
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6250 namespace conftest {
6251 extern "C" int exit ();
6254 main (void)
6256 return conftest::exit ();
6258 return 0;
6260 _ACEOF
6261 if ac_fn_cxx_try_link "$LINENO"
6262 then :
6263 eval "$as_ac_Lib=yes"
6264 else $as_nop
6265 eval "$as_ac_Lib=no"
6267 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6268 conftest$ac_exeext conftest.$ac_ext
6269 LIBS=$ac_check_lib_save_LIBS
6271 eval ac_res=\$$as_ac_Lib
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6273 printf "%s\n" "$ac_res" >&6; }
6274 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
6275 then :
6276 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
6277 else $as_nop
6278 link_system="no"
6281 done
6284 else
6285 for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
6286 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$ax_lib""_exit" | $as_tr_sh`
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
6288 printf %s "checking for exit in -l$ax_lib... " >&6; }
6289 if eval test \${$as_ac_Lib+y}
6290 then :
6291 printf %s "(cached) " >&6
6292 else $as_nop
6293 ac_check_lib_save_LIBS=$LIBS
6294 LIBS="-l$ax_lib $LIBS"
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6298 namespace conftest {
6299 extern "C" int exit ();
6302 main (void)
6304 return conftest::exit ();
6306 return 0;
6308 _ACEOF
6309 if ac_fn_cxx_try_link "$LINENO"
6310 then :
6311 eval "$as_ac_Lib=yes"
6312 else $as_nop
6313 eval "$as_ac_Lib=no"
6315 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6316 conftest$ac_exeext conftest.$ac_ext
6317 LIBS=$ac_check_lib_save_LIBS
6319 eval ac_res=\$$as_ac_Lib
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6321 printf "%s\n" "$ac_res" >&6; }
6322 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
6323 then :
6324 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
6325 else $as_nop
6326 link_system="no"
6329 done
6332 if test "x$ax_lib" = "x"; then
6333 as_fn_error $? "Could not find a version of the Boost::System library!" "$LINENO" 5
6335 if test "x$link_system" = "xno"; then
6336 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
6340 CPPFLAGS="$CPPFLAGS_SAVED"
6341 LDFLAGS="$LDFLAGS_SAVED"
6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Boost.System LIB: \"$BOOST_SYSTEM_LIB\"" >&5
6345 printf "%s\n" "$as_me: Boost.System LIB: \"$BOOST_SYSTEM_LIB\"" >&6;}
6346 LIBS="$BOOST_SYSTEM_LIB $LIBS"
6349 pkg_failed=no
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libtorrent" >&5
6351 printf %s "checking for libtorrent... " >&6; }
6353 if test -n "$libtorrent_CFLAGS"; then
6354 pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
6355 elif test -n "$PKG_CONFIG"; then
6356 if test -n "$PKG_CONFIG" && \
6357 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.12\""; } >&5
6358 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.12") 2>&5
6359 ac_status=$?
6360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361 test $ac_status = 0; }; then
6362 pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.2.12" 2>/dev/null`
6363 test "x$?" != "x0" && pkg_failed=yes
6364 else
6365 pkg_failed=yes
6367 else
6368 pkg_failed=untried
6370 if test -n "$libtorrent_LIBS"; then
6371 pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
6372 elif test -n "$PKG_CONFIG"; then
6373 if test -n "$PKG_CONFIG" && \
6374 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.2.12\""; } >&5
6375 ($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.2.12") 2>&5
6376 ac_status=$?
6377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6378 test $ac_status = 0; }; then
6379 pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.2.12" 2>/dev/null`
6380 test "x$?" != "x0" && pkg_failed=yes
6381 else
6382 pkg_failed=yes
6384 else
6385 pkg_failed=untried
6390 if test $pkg_failed = yes; then
6391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 printf "%s\n" "no" >&6; }
6394 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6395 _pkg_short_errors_supported=yes
6396 else
6397 _pkg_short_errors_supported=no
6399 if test $_pkg_short_errors_supported = yes; then
6400 libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.12" 2>&1`
6401 else
6402 libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.2.12" 2>&1`
6404 # Put the nasty error message in config.log where it belongs
6405 echo "$libtorrent_PKG_ERRORS" >&5
6407 as_fn_error $? "Package requirements (libtorrent-rasterbar >= 1.2.12) were not met:
6409 $libtorrent_PKG_ERRORS
6411 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6412 installed software in a non-standard prefix.
6414 Alternatively, you may set the environment variables libtorrent_CFLAGS
6415 and libtorrent_LIBS to avoid the need to call pkg-config.
6416 See the pkg-config man page for more details." "$LINENO" 5
6417 elif test $pkg_failed = untried; then
6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 printf "%s\n" "no" >&6; }
6420 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6421 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6422 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6423 is in your PATH or set the PKG_CONFIG environment variable to the full
6424 path to pkg-config.
6426 Alternatively, you may set the environment variables libtorrent_CFLAGS
6427 and libtorrent_LIBS to avoid the need to call pkg-config.
6428 See the pkg-config man page for more details.
6430 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6431 See \`config.log' for more details" "$LINENO" 5; }
6432 else
6433 libtorrent_CFLAGS=$pkg_cv_libtorrent_CFLAGS
6434 libtorrent_LIBS=$pkg_cv_libtorrent_LIBS
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6436 printf "%s\n" "yes" >&6; }
6437 CXXFLAGS="$libtorrent_CFLAGS $CXXFLAGS"
6438 LIBS="$libtorrent_LIBS $LIBS"
6442 pkg_failed=no
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
6444 printf %s "checking for openssl... " >&6; }
6446 if test -n "$openssl_CFLAGS"; then
6447 pkg_cv_openssl_CFLAGS="$openssl_CFLAGS"
6448 elif test -n "$PKG_CONFIG"; then
6449 if test -n "$PKG_CONFIG" && \
6450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.1\""; } >&5
6451 ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.1") 2>&5
6452 ac_status=$?
6453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; }; then
6455 pkg_cv_openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.1.1" 2>/dev/null`
6456 test "x$?" != "x0" && pkg_failed=yes
6457 else
6458 pkg_failed=yes
6460 else
6461 pkg_failed=untried
6463 if test -n "$openssl_LIBS"; then
6464 pkg_cv_openssl_LIBS="$openssl_LIBS"
6465 elif test -n "$PKG_CONFIG"; then
6466 if test -n "$PKG_CONFIG" && \
6467 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.1\""; } >&5
6468 ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.1") 2>&5
6469 ac_status=$?
6470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471 test $ac_status = 0; }; then
6472 pkg_cv_openssl_LIBS=`$PKG_CONFIG --libs "openssl >= 1.1.1" 2>/dev/null`
6473 test "x$?" != "x0" && pkg_failed=yes
6474 else
6475 pkg_failed=yes
6477 else
6478 pkg_failed=untried
6483 if test $pkg_failed = yes; then
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 printf "%s\n" "no" >&6; }
6487 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6488 _pkg_short_errors_supported=yes
6489 else
6490 _pkg_short_errors_supported=no
6492 if test $_pkg_short_errors_supported = yes; then
6493 openssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.1.1" 2>&1`
6494 else
6495 openssl_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.1.1" 2>&1`
6497 # Put the nasty error message in config.log where it belongs
6498 echo "$openssl_PKG_ERRORS" >&5
6500 as_fn_error $? "Package requirements (openssl >= 1.1.1) were not met:
6502 $openssl_PKG_ERRORS
6504 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6505 installed software in a non-standard prefix.
6507 Alternatively, you may set the environment variables openssl_CFLAGS
6508 and openssl_LIBS to avoid the need to call pkg-config.
6509 See the pkg-config man page for more details." "$LINENO" 5
6510 elif test $pkg_failed = untried; then
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 printf "%s\n" "no" >&6; }
6513 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6514 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6515 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6516 is in your PATH or set the PKG_CONFIG environment variable to the full
6517 path to pkg-config.
6519 Alternatively, you may set the environment variables openssl_CFLAGS
6520 and openssl_LIBS to avoid the need to call pkg-config.
6521 See the pkg-config man page for more details.
6523 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6524 See \`config.log' for more details" "$LINENO" 5; }
6525 else
6526 openssl_CFLAGS=$pkg_cv_openssl_CFLAGS
6527 openssl_LIBS=$pkg_cv_openssl_LIBS
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6529 printf "%s\n" "yes" >&6; }
6530 CXXFLAGS="$openssl_CFLAGS $CXXFLAGS"
6531 LIBS="$openssl_LIBS $LIBS"
6535 pkg_failed=no
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
6537 printf %s "checking for zlib... " >&6; }
6539 if test -n "$zlib_CFLAGS"; then
6540 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
6541 elif test -n "$PKG_CONFIG"; then
6542 if test -n "$PKG_CONFIG" && \
6543 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.11\""; } >&5
6544 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.11") 2>&5
6545 ac_status=$?
6546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; }; then
6548 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.11" 2>/dev/null`
6549 test "x$?" != "x0" && pkg_failed=yes
6550 else
6551 pkg_failed=yes
6553 else
6554 pkg_failed=untried
6556 if test -n "$zlib_LIBS"; then
6557 pkg_cv_zlib_LIBS="$zlib_LIBS"
6558 elif test -n "$PKG_CONFIG"; then
6559 if test -n "$PKG_CONFIG" && \
6560 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.11\""; } >&5
6561 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.11") 2>&5
6562 ac_status=$?
6563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6564 test $ac_status = 0; }; then
6565 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.11" 2>/dev/null`
6566 test "x$?" != "x0" && pkg_failed=yes
6567 else
6568 pkg_failed=yes
6570 else
6571 pkg_failed=untried
6576 if test $pkg_failed = yes; then
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 printf "%s\n" "no" >&6; }
6580 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6581 _pkg_short_errors_supported=yes
6582 else
6583 _pkg_short_errors_supported=no
6585 if test $_pkg_short_errors_supported = yes; then
6586 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.11" 2>&1`
6587 else
6588 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.11" 2>&1`
6590 # Put the nasty error message in config.log where it belongs
6591 echo "$zlib_PKG_ERRORS" >&5
6593 as_fn_error $? "Package requirements (zlib >= 1.2.11) were not met:
6595 $zlib_PKG_ERRORS
6597 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6598 installed software in a non-standard prefix.
6600 Alternatively, you may set the environment variables zlib_CFLAGS
6601 and zlib_LIBS to avoid the need to call pkg-config.
6602 See the pkg-config man page for more details." "$LINENO" 5
6603 elif test $pkg_failed = untried; then
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 printf "%s\n" "no" >&6; }
6606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6607 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6608 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6609 is in your PATH or set the PKG_CONFIG environment variable to the full
6610 path to pkg-config.
6612 Alternatively, you may set the environment variables zlib_CFLAGS
6613 and zlib_LIBS to avoid the need to call pkg-config.
6614 See the pkg-config man page for more details.
6616 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6617 See \`config.log' for more details" "$LINENO" 5; }
6618 else
6619 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
6620 zlib_LIBS=$pkg_cv_zlib_LIBS
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6622 printf "%s\n" "yes" >&6; }
6623 CXXFLAGS="$zlib_CFLAGS $CXXFLAGS"
6624 LIBS="$zlib_LIBS $LIBS"
6627 # Check if already in >= C++17 mode because of the flags returned by one of the above packages
6628 TMP_CXXFLAGS="$CXXFLAGS"
6629 CXXFLAGS=""
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler defaults to C++17 or later mode" >&5
6631 printf %s "checking if compiler defaults to C++17 or later mode... " >&6; }
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6635 #ifndef __cplusplus
6636 #error "This is not a C++ compiler"
6637 #elif __cplusplus < 201703L
6638 #error "This is not a C++17 compiler"
6639 #endif
6641 main (void)
6645 return 0;
6648 _ACEOF
6649 if ac_fn_cxx_try_compile "$LINENO"
6650 then :
6651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6652 printf "%s\n" "yes" >&6; }
6653 QBT_CXX17_FOUND="yes"
6654 else $as_nop
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 printf "%s\n" "no" >&6; }
6657 QBT_CXX17_FOUND="no"
6659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6661 # In case of no, check if the compiler can support at least C++17
6662 # and if yes, enable it leaving a warning to the user
6663 if test "x$QBT_CXX17_FOUND" = "xno"
6664 then :
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports C++17" >&5
6666 printf %s "checking if compiler supports C++17... " >&6; }
6667 CXXFLAGS="-std=c++17"
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6671 #ifndef __cplusplus
6672 #error "This is not a C++ compiler"
6673 #elif __cplusplus < 201703L
6674 #error "This is not a C++17 compiler"
6675 #endif
6677 main (void)
6681 return 0;
6684 _ACEOF
6685 if ac_fn_cxx_try_compile "$LINENO"
6686 then :
6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6688 printf "%s\n" "yes" >&6; }
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C++17 is disabled by the set compiler flags" >&5
6690 printf %s "checking if C++17 is disabled by the set compiler flags... " >&6; }
6691 # prepend the flag so it won't override conflicting user defined flags
6692 CXXFLAGS="-std=c++17 $TMP_CXXFLAGS"
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6696 #ifndef __cplusplus
6697 #error "This is not a C++ compiler"
6698 #elif __cplusplus < 201703L
6699 #error "This is not a C++17 compiler"
6700 #endif
6702 main (void)
6706 return 0;
6709 _ACEOF
6710 if ac_fn_cxx_try_compile "$LINENO"
6711 then :
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 printf "%s\n" "no" >&6; }
6714 QBT_ADD_CONFIG="$QBT_ADD_CONFIG c++17"
6715 { 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
6716 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;}
6717 else $as_nop
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6719 printf "%s\n" "yes" >&6; }
6720 as_fn_error $? "The compiler supports C++17 but the user or a dependency has explicitly enabled a lower mode." "$LINENO" 5
6722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6723 else $as_nop
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 printf "%s\n" "no" >&6; }
6726 as_fn_error $? "A compiler supporting C++17 is required." "$LINENO" 5
6728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6731 CXXFLAGS="$TMP_CXXFLAGS"
6733 # These are required because autoconf doesn't expand these **particular**
6734 # vars automatically. And qmake cannot autoexpand them.
6736 prefix_NONE=
6737 exec_prefix_NONE=
6738 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6739 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6740 eval ax_define_dir="\"$prefix\""
6741 eval ax_define_dir="\"$ax_define_dir\""
6742 EXPAND_PREFIX="$ax_define_dir"
6744 printf "%s\n" "#define EXPAND_PREFIX \"$ax_define_dir\"" >>confdefs.h
6746 test "$prefix_NONE" && prefix=NONE
6747 test "$exec_prefix_NONE" && exec_prefix=NONE
6750 prefix_NONE=
6751 exec_prefix_NONE=
6752 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6753 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6754 eval ax_define_dir="\"$bindir\""
6755 eval ax_define_dir="\"$ax_define_dir\""
6756 EXPAND_BINDIR="$ax_define_dir"
6758 printf "%s\n" "#define EXPAND_BINDIR \"$ax_define_dir\"" >>confdefs.h
6760 test "$prefix_NONE" && prefix=NONE
6761 test "$exec_prefix_NONE" && exec_prefix=NONE
6764 prefix_NONE=
6765 exec_prefix_NONE=
6766 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6767 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6768 eval ax_define_dir="\"$datadir\""
6769 eval ax_define_dir="\"$ax_define_dir\""
6770 EXPAND_DATADIR="$ax_define_dir"
6772 printf "%s\n" "#define EXPAND_DATADIR \"$ax_define_dir\"" >>confdefs.h
6774 test "$prefix_NONE" && prefix=NONE
6775 test "$exec_prefix_NONE" && exec_prefix=NONE
6778 prefix_NONE=
6779 exec_prefix_NONE=
6780 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
6781 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
6782 eval ax_define_dir="\"$mandir\""
6783 eval ax_define_dir="\"$ax_define_dir\""
6784 EXPAND_MANDIR="$ax_define_dir"
6786 printf "%s\n" "#define EXPAND_MANDIR \"$ax_define_dir\"" >>confdefs.h
6788 test "$prefix_NONE" && prefix=NONE
6789 test "$exec_prefix_NONE" && exec_prefix=NONE
6792 # Original extract() function contributed by pmzqla
6793 # $*: Strings to parse
6794 # Set $QBT_CONF_DEFINES, $QBT_CONF_INCLUDES, $QBT_CONF_EXTRA_CFLAGS
6795 extract() {
6796 if [ -z "$*" ]; then
6797 echo "Input string required"
6798 return 1
6801 # BSD sed needs an actual newline character in the substitute command
6802 new_line='
6804 # Convert " -" to "\n" if not between quotes and remove possible leading white spaces
6805 string=$(echo " $*" | $SED -e "s: -:\\${new_line}:g" -e 's:"\(.*\)\n\(.*\)":\"\1 -\2":g' -e "s:'\(.*\)\n\(.*\)':\'\1 -\2':g" -e 's/^[[:space:]]*//')
6806 SAVEIFS=$IFS
6807 IFS=$(printf "\n\b")
6808 for i in $string; do
6809 case "$(echo "$i" | cut -c1)" in
6810 '') ;;
6811 D) QBT_CONF_DEFINES="$QBT_CONF_DEFINES $(echo $i | cut -c2-)";;
6812 I) QBT_CONF_INCLUDES="$QBT_CONF_INCLUDES $(echo $i | cut -c2-)";;
6813 *) QBT_CONF_EXTRA_CFLAGS="$QBT_CONF_EXTRA_CFLAGS -$i";;
6814 esac
6815 done
6816 IFS=$SAVEIFS
6819 extract "$CFLAGS $CXXFLAGS"
6820 QBT_ADD_DEFINES="$QBT_ADD_DEFINES $QBT_CONF_DEFINES"
6822 # Substitute the values of these vars in conf.pri.in
6832 QBT_CONFIG_FILES="conf.pri"
6834 if test "x$enable_systemd" = "xyes"
6835 then :
6836 QBT_CONFIG_FILES="$QBT_CONFIG_FILES dist/unix/systemd/qbittorrent-nox@.service"
6839 ac_config_files="$ac_config_files "$QBT_CONFIG_FILES""
6841 cat >confcache <<\_ACEOF
6842 # This file is a shell script that caches the results of configure
6843 # tests run on this system so they can be shared between configure
6844 # scripts and configure runs, see configure's option --config-cache.
6845 # It is not useful on other systems. If it contains results you don't
6846 # want to keep, you may remove or edit it.
6848 # config.status only pays attention to the cache file if you give it
6849 # the --recheck option to rerun configure.
6851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6853 # following values.
6855 _ACEOF
6857 # The following way of writing the cache mishandles newlines in values,
6858 # but we know of no workaround that is simple, portable, and efficient.
6859 # So, we kill variables containing newlines.
6860 # Ultrix sh set writes to stderr and can't be redirected directly,
6861 # and sets the high bit in the cache file unless we assign to the vars.
6863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6864 eval ac_val=\$$ac_var
6865 case $ac_val in #(
6866 *${as_nl}*)
6867 case $ac_var in #(
6868 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6869 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6870 esac
6871 case $ac_var in #(
6872 _ | IFS | as_nl) ;; #(
6873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6874 *) { eval $ac_var=; unset $ac_var;} ;;
6875 esac ;;
6876 esac
6877 done
6879 (set) 2>&1 |
6880 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6881 *${as_nl}ac_space=\ *)
6882 # `set' does not quote correctly, so add quotes: double-quote
6883 # substitution turns \\\\ into \\, and sed turns \\ into \.
6884 sed -n \
6885 "s/'/'\\\\''/g;
6886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6887 ;; #(
6889 # `set' quotes correctly as required by POSIX, so do not add quotes.
6890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6892 esac |
6893 sort
6895 sed '
6896 /^ac_cv_env_/b end
6897 t clear
6898 :clear
6899 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6900 t end
6901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6902 :end' >>confcache
6903 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6904 if test -w "$cache_file"; then
6905 if test "x$cache_file" != "x/dev/null"; then
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6907 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6908 if test ! -f "$cache_file" || test -h "$cache_file"; then
6909 cat confcache >"$cache_file"
6910 else
6911 case $cache_file in #(
6912 */* | ?:*)
6913 mv -f confcache "$cache_file"$$ &&
6914 mv -f "$cache_file"$$ "$cache_file" ;; #(
6916 mv -f confcache "$cache_file" ;;
6917 esac
6920 else
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6922 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6925 rm -f confcache
6927 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6928 # Let make expand exec_prefix.
6929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6931 # Transform confdefs.h into DEFS.
6932 # Protect against shell expansion while executing Makefile rules.
6933 # Protect against Makefile macro expansion.
6935 # If the first sed substitution is executed (which looks for macros that
6936 # take arguments), then branch to the quote section. Otherwise,
6937 # look for a macro that doesn't take arguments.
6938 ac_script='
6939 :mline
6940 /\\$/{
6942 s,\\\n,,
6943 b mline
6945 t clear
6946 :clear
6947 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6948 t quote
6949 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6950 t quote
6951 b any
6952 :quote
6953 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6954 s/\[/\\&/g
6955 s/\]/\\&/g
6956 s/\$/$$/g
6958 :any
6961 s/^\n//
6962 s/\n/ /g
6966 DEFS=`sed -n "$ac_script" confdefs.h`
6969 ac_libobjs=
6970 ac_ltlibobjs=
6972 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6973 # 1. Remove the extension, and $U if already installed.
6974 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6975 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6976 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6977 # will be set to the directory where LIBOBJS objects are built.
6978 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6979 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6980 done
6981 LIBOBJS=$ac_libobjs
6983 LTLIBOBJS=$ac_ltlibobjs
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6987 printf %s "checking that generated files are newer than configure... " >&6; }
6988 if test -n "$am_sleep_pid"; then
6989 # Hide warnings about reused PIDs.
6990 wait $am_sleep_pid 2>/dev/null
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6993 printf "%s\n" "done" >&6; }
6994 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6995 as_fn_error $? "conditional \"AMDEP\" was never defined.
6996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6998 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6999 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7002 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7003 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
7004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7006 if test -n "$EXEEXT"; then
7007 am__EXEEXT_TRUE=
7008 am__EXEEXT_FALSE='#'
7009 else
7010 am__EXEEXT_TRUE='#'
7011 am__EXEEXT_FALSE=
7015 : "${CONFIG_STATUS=./config.status}"
7016 ac_write_fail=0
7017 ac_clean_files_save=$ac_clean_files
7018 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7020 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
7021 as_write_fail=0
7022 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7023 #! $SHELL
7024 # Generated by $as_me.
7025 # Run this file to recreate the current configuration.
7026 # Compiler output produced by configure, useful for debugging
7027 # configure, is in config.log if it exists.
7029 debug=false
7030 ac_cs_recheck=false
7031 ac_cs_silent=false
7033 SHELL=\${CONFIG_SHELL-$SHELL}
7034 export SHELL
7035 _ASEOF
7036 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7037 ## -------------------- ##
7038 ## M4sh Initialization. ##
7039 ## -------------------- ##
7041 # Be more Bourne compatible
7042 DUALCASE=1; export DUALCASE # for MKS sh
7043 as_nop=:
7044 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
7045 then :
7046 emulate sh
7047 NULLCMD=:
7048 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7049 # is contrary to our usage. Disable this feature.
7050 alias -g '${1+"$@"}'='"$@"'
7051 setopt NO_GLOB_SUBST
7052 else $as_nop
7053 case `(set -o) 2>/dev/null` in #(
7054 *posix*) :
7055 set -o posix ;; #(
7056 *) :
7058 esac
7063 # Reset variables that may have inherited troublesome values from
7064 # the environment.
7066 # IFS needs to be set, to space, tab, and newline, in precisely that order.
7067 # (If _AS_PATH_WALK were called with IFS unset, it would have the
7068 # side effect of setting IFS to empty, thus disabling word splitting.)
7069 # Quoting is to prevent editors from complaining about space-tab.
7070 as_nl='
7072 export as_nl
7073 IFS=" "" $as_nl"
7075 PS1='$ '
7076 PS2='> '
7077 PS4='+ '
7079 # Ensure predictable behavior from utilities with locale-dependent output.
7080 LC_ALL=C
7081 export LC_ALL
7082 LANGUAGE=C
7083 export LANGUAGE
7085 # We cannot yet rely on "unset" to work, but we need these variables
7086 # to be unset--not just set to an empty or harmless value--now, to
7087 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
7088 # also avoids known problems related to "unset" and subshell syntax
7089 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
7090 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
7091 do eval test \${$as_var+y} \
7092 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7093 done
7095 # Ensure that fds 0, 1, and 2 are open.
7096 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7097 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7098 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7100 # The user is always right.
7101 if ${PATH_SEPARATOR+false} :; then
7102 PATH_SEPARATOR=:
7103 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7104 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7105 PATH_SEPARATOR=';'
7110 # Find who we are. Look in the path if we contain no directory separator.
7111 as_myself=
7112 case $0 in #((
7113 *[\\/]* ) as_myself=$0 ;;
7114 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7117 IFS=$as_save_IFS
7118 case $as_dir in #(((
7119 '') as_dir=./ ;;
7120 */) ;;
7121 *) as_dir=$as_dir/ ;;
7122 esac
7123 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
7124 done
7125 IFS=$as_save_IFS
7128 esac
7129 # We did not find ourselves, most probably we were run as `sh COMMAND'
7130 # in which case we are not to be found in the path.
7131 if test "x$as_myself" = x; then
7132 as_myself=$0
7134 if test ! -f "$as_myself"; then
7135 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7136 exit 1
7141 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7142 # ----------------------------------------
7143 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7144 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7145 # script with STATUS, using 1 if that was 0.
7146 as_fn_error ()
7148 as_status=$1; test $as_status -eq 0 && as_status=1
7149 if test "$4"; then
7150 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7153 printf "%s\n" "$as_me: error: $2" >&2
7154 as_fn_exit $as_status
7155 } # as_fn_error
7159 # as_fn_set_status STATUS
7160 # -----------------------
7161 # Set $? to STATUS, without forking.
7162 as_fn_set_status ()
7164 return $1
7165 } # as_fn_set_status
7167 # as_fn_exit STATUS
7168 # -----------------
7169 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7170 as_fn_exit ()
7172 set +e
7173 as_fn_set_status $1
7174 exit $1
7175 } # as_fn_exit
7177 # as_fn_unset VAR
7178 # ---------------
7179 # Portably unset VAR.
7180 as_fn_unset ()
7182 { eval $1=; unset $1;}
7184 as_unset=as_fn_unset
7186 # as_fn_append VAR VALUE
7187 # ----------------------
7188 # Append the text in VALUE to the end of the definition contained in VAR. Take
7189 # advantage of any shell optimizations that allow amortized linear growth over
7190 # repeated appends, instead of the typical quadratic growth present in naive
7191 # implementations.
7192 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7193 then :
7194 eval 'as_fn_append ()
7196 eval $1+=\$2
7198 else $as_nop
7199 as_fn_append ()
7201 eval $1=\$$1\$2
7203 fi # as_fn_append
7205 # as_fn_arith ARG...
7206 # ------------------
7207 # Perform arithmetic evaluation on the ARGs, and store the result in the
7208 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7209 # must be portable across $(()) and expr.
7210 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7211 then :
7212 eval 'as_fn_arith ()
7214 as_val=$(( $* ))
7216 else $as_nop
7217 as_fn_arith ()
7219 as_val=`expr "$@" || test $? -eq 1`
7221 fi # as_fn_arith
7224 if expr a : '\(a\)' >/dev/null 2>&1 &&
7225 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7226 as_expr=expr
7227 else
7228 as_expr=false
7231 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7232 as_basename=basename
7233 else
7234 as_basename=false
7237 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7238 as_dirname=dirname
7239 else
7240 as_dirname=false
7243 as_me=`$as_basename -- "$0" ||
7244 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7245 X"$0" : 'X\(//\)$' \| \
7246 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7247 printf "%s\n" X/"$0" |
7248 sed '/^.*\/\([^/][^/]*\)\/*$/{
7249 s//\1/
7252 /^X\/\(\/\/\)$/{
7253 s//\1/
7256 /^X\/\(\/\).*/{
7257 s//\1/
7260 s/.*/./; q'`
7262 # Avoid depending upon Character Ranges.
7263 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7264 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7265 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7266 as_cr_digits='0123456789'
7267 as_cr_alnum=$as_cr_Letters$as_cr_digits
7270 # Determine whether it's possible to make 'echo' print without a newline.
7271 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7272 # for compatibility with existing Makefiles.
7273 ECHO_C= ECHO_N= ECHO_T=
7274 case `echo -n x` in #(((((
7275 -n*)
7276 case `echo 'xy\c'` in
7277 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7278 xy) ECHO_C='\c';;
7279 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7280 ECHO_T=' ';;
7281 esac;;
7283 ECHO_N='-n';;
7284 esac
7286 # For backward compatibility with old third-party macros, we provide
7287 # the shell variables $as_echo and $as_echo_n. New code should use
7288 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7289 as_echo='printf %s\n'
7290 as_echo_n='printf %s'
7292 rm -f conf$$ conf$$.exe conf$$.file
7293 if test -d conf$$.dir; then
7294 rm -f conf$$.dir/conf$$.file
7295 else
7296 rm -f conf$$.dir
7297 mkdir conf$$.dir 2>/dev/null
7299 if (echo >conf$$.file) 2>/dev/null; then
7300 if ln -s conf$$.file conf$$ 2>/dev/null; then
7301 as_ln_s='ln -s'
7302 # ... but there are two gotchas:
7303 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7304 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7305 # In both cases, we have to default to `cp -pR'.
7306 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7307 as_ln_s='cp -pR'
7308 elif ln conf$$.file conf$$ 2>/dev/null; then
7309 as_ln_s=ln
7310 else
7311 as_ln_s='cp -pR'
7313 else
7314 as_ln_s='cp -pR'
7316 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7317 rmdir conf$$.dir 2>/dev/null
7320 # as_fn_mkdir_p
7321 # -------------
7322 # Create "$as_dir" as a directory, including parents if necessary.
7323 as_fn_mkdir_p ()
7326 case $as_dir in #(
7327 -*) as_dir=./$as_dir;;
7328 esac
7329 test -d "$as_dir" || eval $as_mkdir_p || {
7330 as_dirs=
7331 while :; do
7332 case $as_dir in #(
7333 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7334 *) as_qdir=$as_dir;;
7335 esac
7336 as_dirs="'$as_qdir' $as_dirs"
7337 as_dir=`$as_dirname -- "$as_dir" ||
7338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7339 X"$as_dir" : 'X\(//\)[^/]' \| \
7340 X"$as_dir" : 'X\(//\)$' \| \
7341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7342 printf "%s\n" X"$as_dir" |
7343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7344 s//\1/
7347 /^X\(\/\/\)[^/].*/{
7348 s//\1/
7351 /^X\(\/\/\)$/{
7352 s//\1/
7355 /^X\(\/\).*/{
7356 s//\1/
7359 s/.*/./; q'`
7360 test -d "$as_dir" && break
7361 done
7362 test -z "$as_dirs" || eval "mkdir $as_dirs"
7363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7366 } # as_fn_mkdir_p
7367 if mkdir -p . 2>/dev/null; then
7368 as_mkdir_p='mkdir -p "$as_dir"'
7369 else
7370 test -d ./-p && rmdir ./-p
7371 as_mkdir_p=false
7375 # as_fn_executable_p FILE
7376 # -----------------------
7377 # Test if FILE is an executable regular file.
7378 as_fn_executable_p ()
7380 test -f "$1" && test -x "$1"
7381 } # as_fn_executable_p
7382 as_test_x='test -x'
7383 as_executable_p=as_fn_executable_p
7385 # Sed expression to map a string onto a valid CPP name.
7386 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7388 # Sed expression to map a string onto a valid variable name.
7389 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7392 exec 6>&1
7393 ## ----------------------------------- ##
7394 ## Main body of $CONFIG_STATUS script. ##
7395 ## ----------------------------------- ##
7396 _ASEOF
7397 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7400 # Save the log message, to keep $0 and so on meaningful, and to
7401 # report actual input values of CONFIG_FILES etc. instead of their
7402 # values after options handling.
7403 ac_log="
7404 This file was extended by qbittorrent $as_me v4.4.0alpha, which was
7405 generated by GNU Autoconf 2.70. Invocation command line was
7407 CONFIG_FILES = $CONFIG_FILES
7408 CONFIG_HEADERS = $CONFIG_HEADERS
7409 CONFIG_LINKS = $CONFIG_LINKS
7410 CONFIG_COMMANDS = $CONFIG_COMMANDS
7411 $ $0 $@
7413 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7416 _ACEOF
7418 case $ac_config_files in *"
7419 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7420 esac
7424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7425 # Files that config.status was made for.
7426 config_files="$ac_config_files"
7427 config_commands="$ac_config_commands"
7429 _ACEOF
7431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7432 ac_cs_usage="\
7433 \`$as_me' instantiates files and other configuration actions
7434 from templates according to the current configuration. Unless the files
7435 and actions are specified as TAGs, all are instantiated by default.
7437 Usage: $0 [OPTION]... [TAG]...
7439 -h, --help print this help, then exit
7440 -V, --version print version number and configuration settings, then exit
7441 --config print configuration, then exit
7442 -q, --quiet, --silent
7443 do not print progress messages
7444 -d, --debug don't remove temporary files
7445 --recheck update $as_me by reconfiguring in the same conditions
7446 --file=FILE[:TEMPLATE]
7447 instantiate the configuration file FILE
7449 Configuration files:
7450 $config_files
7452 Configuration commands:
7453 $config_commands
7455 Report bugs to <bugs.qbittorrent.org>.
7456 qbittorrent home page: <https://www.qbittorrent.org/>."
7458 _ACEOF
7459 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7460 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7462 ac_cs_config='$ac_cs_config_escaped'
7463 ac_cs_version="\\
7464 qbittorrent config.status v4.4.0alpha
7465 configured by $0, generated by GNU Autoconf 2.70,
7466 with options \\"\$ac_cs_config\\"
7468 Copyright (C) 2020 Free Software Foundation, Inc.
7469 This config.status script is free software; the Free Software Foundation
7470 gives unlimited permission to copy, distribute and modify it."
7472 ac_pwd='$ac_pwd'
7473 srcdir='$srcdir'
7474 INSTALL='$INSTALL'
7475 MKDIR_P='$MKDIR_P'
7476 AWK='$AWK'
7477 test -n "\$AWK" || AWK=awk
7478 _ACEOF
7480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7481 # The default lists apply if the user does not specify any file.
7482 ac_need_defaults=:
7483 while test $# != 0
7485 case $1 in
7486 --*=?*)
7487 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7488 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7489 ac_shift=:
7491 --*=)
7492 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7493 ac_optarg=
7494 ac_shift=:
7497 ac_option=$1
7498 ac_optarg=$2
7499 ac_shift=shift
7501 esac
7503 case $ac_option in
7504 # Handling of the options.
7505 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7506 ac_cs_recheck=: ;;
7507 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7508 printf "%s\n" "$ac_cs_version"; exit ;;
7509 --config | --confi | --conf | --con | --co | --c )
7510 printf "%s\n" "$ac_cs_config"; exit ;;
7511 --debug | --debu | --deb | --de | --d | -d )
7512 debug=: ;;
7513 --file | --fil | --fi | --f )
7514 $ac_shift
7515 case $ac_optarg in
7516 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7517 '') as_fn_error $? "missing file argument" ;;
7518 esac
7519 as_fn_append CONFIG_FILES " '$ac_optarg'"
7520 ac_need_defaults=false;;
7521 --he | --h | --help | --hel | -h )
7522 printf "%s\n" "$ac_cs_usage"; exit ;;
7523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7524 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7525 ac_cs_silent=: ;;
7527 # This is an error.
7528 -*) as_fn_error $? "unrecognized option: \`$1'
7529 Try \`$0 --help' for more information." ;;
7531 *) as_fn_append ac_config_targets " $1"
7532 ac_need_defaults=false ;;
7534 esac
7535 shift
7536 done
7538 ac_configure_extra_args=
7540 if $ac_cs_silent; then
7541 exec 6>/dev/null
7542 ac_configure_extra_args="$ac_configure_extra_args --silent"
7545 _ACEOF
7546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7547 if \$ac_cs_recheck; then
7548 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7549 shift
7550 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
7551 CONFIG_SHELL='$SHELL'
7552 export CONFIG_SHELL
7553 exec "\$@"
7556 _ACEOF
7557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7558 exec 5>>config.log
7560 echo
7561 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7562 ## Running $as_me. ##
7563 _ASBOX
7564 printf "%s\n" "$ac_log"
7565 } >&5
7567 _ACEOF
7568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7570 # INIT-COMMANDS
7572 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7574 _ACEOF
7576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7578 # Handling of arguments.
7579 for ac_config_target in $ac_config_targets
7581 case $ac_config_target in
7582 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7583 ""$QBT_CONFIG_FILES"") CONFIG_FILES="$CONFIG_FILES "$QBT_CONFIG_FILES"" ;;
7585 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7586 esac
7587 done
7590 # If the user did not use the arguments to specify the items to instantiate,
7591 # then the envvar interface is used. Set only those that are not.
7592 # We use the long form for the default assignment because of an extremely
7593 # bizarre bug on SunOS 4.1.3.
7594 if $ac_need_defaults; then
7595 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
7596 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
7599 # Have a temporary directory for convenience. Make it in the build tree
7600 # simply because there is no reason against having it here, and in addition,
7601 # creating and moving files from /tmp can sometimes cause problems.
7602 # Hook for its removal unless debugging.
7603 # Note that there is a small window in which the directory will not be cleaned:
7604 # after its creation but before its name has been assigned to `$tmp'.
7605 $debug ||
7607 tmp= ac_tmp=
7608 trap 'exit_status=$?
7609 : "${ac_tmp:=$tmp}"
7610 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7612 trap 'as_fn_exit 1' 1 2 13 15
7614 # Create a (secure) tmp directory for tmp files.
7617 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7618 test -d "$tmp"
7619 } ||
7621 tmp=./conf$$-$RANDOM
7622 (umask 077 && mkdir "$tmp")
7623 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7624 ac_tmp=$tmp
7626 # Set up the scripts for CONFIG_FILES section.
7627 # No need to generate them if there are no CONFIG_FILES.
7628 # This happens for instance with `./config.status config.h'.
7629 if test -n "$CONFIG_FILES"; then
7632 ac_cr=`echo X | tr X '\015'`
7633 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7634 # But we know of no other shell where ac_cr would be empty at this
7635 # point, so we can use a bashism as a fallback.
7636 if test "x$ac_cr" = x; then
7637 eval ac_cr=\$\'\\r\'
7639 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7640 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7641 ac_cs_awk_cr='\\r'
7642 else
7643 ac_cs_awk_cr=$ac_cr
7646 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7647 _ACEOF
7651 echo "cat >conf$$subs.awk <<_ACEOF" &&
7652 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7653 echo "_ACEOF"
7654 } >conf$$subs.sh ||
7655 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7656 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7657 ac_delim='%!_!# '
7658 for ac_last_try in false false false false false :; do
7659 . ./conf$$subs.sh ||
7660 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7662 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7663 if test $ac_delim_n = $ac_delim_num; then
7664 break
7665 elif $ac_last_try; then
7666 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7667 else
7668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7670 done
7671 rm -f conf$$subs.sh
7673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7674 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7675 _ACEOF
7676 sed -n '
7678 s/^/S["/; s/!.*/"]=/
7681 s/^[^!]*!//
7682 :repl
7683 t repl
7684 s/'"$ac_delim"'$//
7685 t delim
7688 s/\(.\{148\}\)..*/\1/
7689 t more1
7690 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7693 b repl
7694 :more1
7695 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7698 s/.\{148\}//
7699 t nl
7700 :delim
7702 s/\(.\{148\}\)..*/\1/
7703 t more2
7704 s/["\\]/\\&/g; s/^/"/; s/$/"/
7707 :more2
7708 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7711 s/.\{148\}//
7712 t delim
7713 ' <conf$$subs.awk | sed '
7714 /^[^""]/{
7716 s/\n//
7718 ' >>$CONFIG_STATUS || ac_write_fail=1
7719 rm -f conf$$subs.awk
7720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7721 _ACAWK
7722 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7723 for (key in S) S_is_set[key] = 1
7724 FS = "\a"
7728 line = $ 0
7729 nfields = split(line, field, "@")
7730 substed = 0
7731 len = length(field[1])
7732 for (i = 2; i < nfields; i++) {
7733 key = field[i]
7734 keylen = length(key)
7735 if (S_is_set[key]) {
7736 value = S[key]
7737 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7738 len += length(value) + length(field[++i])
7739 substed = 1
7740 } else
7741 len += 1 + keylen
7744 print line
7747 _ACAWK
7748 _ACEOF
7749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7750 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7751 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7752 else
7754 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7755 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7756 _ACEOF
7758 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7759 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7760 # trailing colons and then remove the whole line if VPATH becomes empty
7761 # (actually we leave an empty line to preserve line numbers).
7762 if test "x$srcdir" = x.; then
7763 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7765 s///
7766 s/^/:/
7767 s/[ ]*$/:/
7768 s/:\$(srcdir):/:/g
7769 s/:\${srcdir}:/:/g
7770 s/:@srcdir@:/:/g
7771 s/^:*//
7772 s/:*$//
7774 s/\(=[ ]*\).*/\1/
7776 s/\n//
7777 s/^[^=]*=[ ]*$//
7781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7782 fi # test -n "$CONFIG_FILES"
7785 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
7786 shift
7787 for ac_tag
7789 case $ac_tag in
7790 :[FHLC]) ac_mode=$ac_tag; continue;;
7791 esac
7792 case $ac_mode$ac_tag in
7793 :[FHL]*:*);;
7794 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7795 :[FH]-) ac_tag=-:-;;
7796 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7797 esac
7798 ac_save_IFS=$IFS
7799 IFS=:
7800 set x $ac_tag
7801 IFS=$ac_save_IFS
7802 shift
7803 ac_file=$1
7804 shift
7806 case $ac_mode in
7807 :L) ac_source=$1;;
7808 :[FH])
7809 ac_file_inputs=
7810 for ac_f
7812 case $ac_f in
7813 -) ac_f="$ac_tmp/stdin";;
7814 *) # Look for the file first in the build tree, then in the source tree
7815 # (if the path is not absolute). The absolute path cannot be DOS-style,
7816 # because $ac_f cannot contain `:'.
7817 test -f "$ac_f" ||
7818 case $ac_f in
7819 [\\/$]*) false;;
7820 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7821 esac ||
7822 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7823 esac
7824 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7825 as_fn_append ac_file_inputs " '$ac_f'"
7826 done
7828 # Let's still pretend it is `configure' which instantiates (i.e., don't
7829 # use $as_me), people would be surprised to read:
7830 # /* config.h. Generated by config.status. */
7831 configure_input='Generated from '`
7832 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7833 `' by configure.'
7834 if test x"$ac_file" != x-; then
7835 configure_input="$ac_file. $configure_input"
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7837 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7839 # Neutralize special characters interpreted by sed in replacement strings.
7840 case $configure_input in #(
7841 *\&* | *\|* | *\\* )
7842 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
7843 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7844 *) ac_sed_conf_input=$configure_input;;
7845 esac
7847 case $ac_tag in
7848 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7850 esac
7852 esac
7854 ac_dir=`$as_dirname -- "$ac_file" ||
7855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7856 X"$ac_file" : 'X\(//\)[^/]' \| \
7857 X"$ac_file" : 'X\(//\)$' \| \
7858 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7859 printf "%s\n" X"$ac_file" |
7860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7861 s//\1/
7864 /^X\(\/\/\)[^/].*/{
7865 s//\1/
7868 /^X\(\/\/\)$/{
7869 s//\1/
7872 /^X\(\/\).*/{
7873 s//\1/
7876 s/.*/./; q'`
7877 as_dir="$ac_dir"; as_fn_mkdir_p
7878 ac_builddir=.
7880 case "$ac_dir" in
7881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7883 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7884 # A ".." for each directory in $ac_dir_suffix.
7885 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7886 case $ac_top_builddir_sub in
7887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7889 esac ;;
7890 esac
7891 ac_abs_top_builddir=$ac_pwd
7892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7893 # for backward compatibility:
7894 ac_top_builddir=$ac_top_build_prefix
7896 case $srcdir in
7897 .) # We are building in place.
7898 ac_srcdir=.
7899 ac_top_srcdir=$ac_top_builddir_sub
7900 ac_abs_top_srcdir=$ac_pwd ;;
7901 [\\/]* | ?:[\\/]* ) # Absolute name.
7902 ac_srcdir=$srcdir$ac_dir_suffix;
7903 ac_top_srcdir=$srcdir
7904 ac_abs_top_srcdir=$srcdir ;;
7905 *) # Relative name.
7906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7907 ac_top_srcdir=$ac_top_build_prefix$srcdir
7908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7909 esac
7910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7913 case $ac_mode in
7916 # CONFIG_FILE
7919 case $INSTALL in
7920 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7921 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7922 esac
7923 ac_MKDIR_P=$MKDIR_P
7924 case $MKDIR_P in
7925 [\\/$]* | ?:[\\/]* ) ;;
7926 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7927 esac
7928 _ACEOF
7930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7931 # If the template does not know about datarootdir, expand it.
7932 # FIXME: This hack should be removed a few years after 2.60.
7933 ac_datarootdir_hack=; ac_datarootdir_seen=
7934 ac_sed_dataroot='
7935 /datarootdir/ {
7939 /@datadir@/p
7940 /@docdir@/p
7941 /@infodir@/p
7942 /@localedir@/p
7943 /@mandir@/p'
7944 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7945 *datarootdir*) ac_datarootdir_seen=yes;;
7946 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7948 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7949 _ACEOF
7950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7951 ac_datarootdir_hack='
7952 s&@datadir@&$datadir&g
7953 s&@docdir@&$docdir&g
7954 s&@infodir@&$infodir&g
7955 s&@localedir@&$localedir&g
7956 s&@mandir@&$mandir&g
7957 s&\\\${datarootdir}&$datarootdir&g' ;;
7958 esac
7959 _ACEOF
7961 # Neutralize VPATH when `$srcdir' = `.'.
7962 # Shell code in configure.ac might set extrasub.
7963 # FIXME: do we really want to maintain this feature?
7964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7965 ac_sed_extra="$ac_vpsub
7966 $extrasub
7967 _ACEOF
7968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7971 s|@configure_input@|$ac_sed_conf_input|;t t
7972 s&@top_builddir@&$ac_top_builddir_sub&;t t
7973 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7974 s&@srcdir@&$ac_srcdir&;t t
7975 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7976 s&@top_srcdir@&$ac_top_srcdir&;t t
7977 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7978 s&@builddir@&$ac_builddir&;t t
7979 s&@abs_builddir@&$ac_abs_builddir&;t t
7980 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7981 s&@INSTALL@&$ac_INSTALL&;t t
7982 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7983 $ac_datarootdir_hack
7985 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7986 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7989 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7991 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7993 which seems to be undefined. Please make sure it is defined" >&5
7994 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7995 which seems to be undefined. Please make sure it is defined" >&2;}
7997 rm -f "$ac_tmp/stdin"
7998 case $ac_file in
7999 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8000 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8001 esac \
8002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8006 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8007 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
8009 esac
8012 case $ac_file$ac_mode in
8013 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8014 # Older Autoconf quotes --file arguments for eval, but not when files
8015 # are listed without --file. Let's play safe and only enable the eval
8016 # if we detect the quoting.
8017 # TODO: see whether this extra hack can be removed once we start
8018 # requiring Autoconf 2.70 or later.
8019 case $CONFIG_FILES in #(
8020 *\'*) :
8021 eval set x "$CONFIG_FILES" ;; #(
8022 *) :
8023 set x $CONFIG_FILES ;; #(
8024 *) :
8026 esac
8027 shift
8028 # Used to flag and report bootstrapping failures.
8029 am_rc=0
8030 for am_mf
8032 # Strip MF so we end up with the name of the file.
8033 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
8034 # Check whether this is an Automake generated Makefile which includes
8035 # dependency-tracking related rules and includes.
8036 # Grep'ing the whole file directly is not great: AIX grep has a line
8037 # limit of 2048, but all sed's we know have understand at least 4000.
8038 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
8039 || continue
8040 am_dirpart=`$as_dirname -- "$am_mf" ||
8041 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8042 X"$am_mf" : 'X\(//\)[^/]' \| \
8043 X"$am_mf" : 'X\(//\)$' \| \
8044 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8045 printf "%s\n" X"$am_mf" |
8046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8047 s//\1/
8050 /^X\(\/\/\)[^/].*/{
8051 s//\1/
8054 /^X\(\/\/\)$/{
8055 s//\1/
8058 /^X\(\/\).*/{
8059 s//\1/
8062 s/.*/./; q'`
8063 am_filepart=`$as_basename -- "$am_mf" ||
8064 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
8065 X"$am_mf" : 'X\(//\)$' \| \
8066 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8067 printf "%s\n" X/"$am_mf" |
8068 sed '/^.*\/\([^/][^/]*\)\/*$/{
8069 s//\1/
8072 /^X\/\(\/\/\)$/{
8073 s//\1/
8076 /^X\/\(\/\).*/{
8077 s//\1/
8080 s/.*/./; q'`
8081 { echo "$as_me:$LINENO: cd "$am_dirpart" \
8082 && sed -e '/# am--include-marker/d' "$am_filepart" \
8083 | $MAKE -f - am--depfiles" >&5
8084 (cd "$am_dirpart" \
8085 && sed -e '/# am--include-marker/d' "$am_filepart" \
8086 | $MAKE -f - am--depfiles) >&5 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } || am_rc=$?
8090 done
8091 if test $am_rc -ne 0; then
8092 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8093 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8094 as_fn_error $? "Something went wrong bootstrapping makefile fragments
8095 for automatic dependency tracking. If GNU make was not used, consider
8096 re-running the configure script with MAKE=\"gmake\" (or whatever is
8097 necessary). You can also try re-running configure with the
8098 '--disable-dependency-tracking' option to at least be able to build
8099 the package (albeit without support for automatic dependency tracking).
8100 See \`config.log' for more details" "$LINENO" 5; }
8102 { am_dirpart=; unset am_dirpart;}
8103 { am_filepart=; unset am_filepart;}
8104 { am_mf=; unset am_mf;}
8105 { am_rc=; unset am_rc;}
8106 rm -f conftest-deps.mk
8110 esac
8111 done # for ac_tag
8114 as_fn_exit 0
8115 _ACEOF
8116 ac_clean_files=$ac_clean_files_save
8118 test $ac_write_fail = 0 ||
8119 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8122 # configure is writing to config.log, and then calls config.status.
8123 # config.status does its own redirection, appending to config.log.
8124 # Unfortunately, on DOS this fails, as config.log is still kept open
8125 # by configure, so config.status won't be able to write to it; its
8126 # output is simply discarded. So we exec the FD to /dev/null,
8127 # effectively closing config.log, so it can be properly (re)opened and
8128 # appended to by config.status. When coming back to configure, we
8129 # need to make the FD available again.
8130 if test "$no_create" != yes; then
8131 ac_cs_success=:
8132 ac_config_status_args=
8133 test "$silent" = yes &&
8134 ac_config_status_args="$ac_config_status_args --quiet"
8135 exec 5>/dev/null
8136 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8137 exec 5>>config.log
8138 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8139 # would make configure fail if this is the last instruction.
8140 $ac_cs_success || as_fn_exit 1
8142 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8144 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Running qmake to generate the makefile..." >&5
8149 printf "%s\n" "$as_me: Running qmake to generate the makefile..." >&6;}
8150 TOPDIR="$(cd "$(dirname "$0")" && pwd)"
8151 $QT_QMAKE -r "$TOPDIR/qbittorrent.pro" "QMAKE_LRELEASE=$QMAKE_LRELEASE"
8152 qmake_ret="$?"
8154 printf "%s\n"
8155 if test "x$qmake_ret" != "x0"
8156 then :
8157 as_fn_error $? "$QT_QMAKE failed to generate the makefile" "$LINENO" 5
8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Good, the configure finished." >&5
8161 printf "%s\n" "$as_me: Good, the configure finished." >&6;}
8162 printf "%s\n"