16422
##################################
16423
# Checking libarchive dependency
16424
##################################
16427
# Check whether --enable-libarchive was given.
16428
if test "${enable_libarchive+set}" = set; then :
16429
enableval=$enable_libarchive;
16431
enable_libarchive=auto
16434
if test "x$enable_libarchive" != "xno" ; then
16437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARCHIVE" >&5
16438
$as_echo_n "checking for ARCHIVE... " >&6; }
16440
if test -n "$ARCHIVE_CFLAGS"; then
16441
pkg_cv_ARCHIVE_CFLAGS="$ARCHIVE_CFLAGS"
16442
elif test -n "$PKG_CONFIG"; then
16443
if test -n "$PKG_CONFIG" && \
16444
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libarchive >= \$LIBARCHIVE_REQS\""; } >&5
16445
($PKG_CONFIG --exists --print-errors "libarchive >= $LIBARCHIVE_REQS") 2>&5
16447
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16448
test $ac_status = 0; }; then
16449
pkg_cv_ARCHIVE_CFLAGS=`$PKG_CONFIG --cflags "libarchive >= $LIBARCHIVE_REQS" 2>/dev/null`
16456
if test -n "$ARCHIVE_LIBS"; then
16457
pkg_cv_ARCHIVE_LIBS="$ARCHIVE_LIBS"
16458
elif test -n "$PKG_CONFIG"; then
16459
if test -n "$PKG_CONFIG" && \
16460
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libarchive >= \$LIBARCHIVE_REQS\""; } >&5
16461
($PKG_CONFIG --exists --print-errors "libarchive >= $LIBARCHIVE_REQS") 2>&5
16463
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16464
test $ac_status = 0; }; then
16465
pkg_cv_ARCHIVE_LIBS=`$PKG_CONFIG --libs "libarchive >= $LIBARCHIVE_REQS" 2>/dev/null`
16475
if test $pkg_failed = yes; then
16476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16477
$as_echo "no" >&6; }
16479
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16480
_pkg_short_errors_supported=yes
16482
_pkg_short_errors_supported=no
16484
if test $_pkg_short_errors_supported = yes; then
16485
ARCHIVE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libarchive >= $LIBARCHIVE_REQS" 2>&1`
16487
ARCHIVE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libarchive >= $LIBARCHIVE_REQS" 2>&1`
16489
# Put the nasty error message in config.log where it belongs
16490
echo "$ARCHIVE_PKG_ERRORS" >&5
16493
elif test $pkg_failed = untried; then
16494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16495
$as_echo "no" >&6; }
16498
ARCHIVE_CFLAGS=$pkg_cv_ARCHIVE_CFLAGS
16499
ARCHIVE_LIBS=$pkg_cv_ARCHIVE_LIBS
16500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16501
$as_echo "yes" >&6; }
16502
have_libarchive=yes
16504
if test "x$enable_libarchive" = "xyes" -a "x$have_libarchive" = "xno" ; then
16505
as_fn_error $? "Libarchive support requested but not available." "$LINENO" 5
16507
if test "x$have_libarchive" = "xyes" ; then
16508
pkg_modules="$pkg_modules libarchive"
16509
ARCHIVE="libarchive"
16511
$as_echo "#define HAVE_LIBARCHIVE 1" >>confdefs.h
16518
################################
16519
# Checking libgcrypt dependency
16520
################################
16523
# Check whether --with-libgcrypt-prefix was given.
16524
if test "${with_libgcrypt_prefix+set}" = set; then :
16525
withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
16527
libgcrypt_config_prefix=""
16530
if test x$libgcrypt_config_prefix != x ; then
16531
if test x${LIBGCRYPT_CONFIG+set} != xset ; then
16532
LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
16536
if test -n "$ac_tool_prefix"; then
16537
# Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
16538
set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
16539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16540
$as_echo_n "checking for $ac_word... " >&6; }
16541
if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
16542
$as_echo_n "(cached) " >&6
16544
case $LIBGCRYPT_CONFIG in
16546
ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16550
for as_dir in $PATH
16553
test -z "$as_dir" && as_dir=.
16554
for ac_exec_ext in '' $ac_executable_extensions; do
16555
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16556
ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16557
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16567
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
16568
if test -n "$LIBGCRYPT_CONFIG"; then
16569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
16570
$as_echo "$LIBGCRYPT_CONFIG" >&6; }
16572
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573
$as_echo "no" >&6; }
16578
if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
16579
ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
16580
# Extract the first word of "libgcrypt-config", so it can be a program name with args.
16581
set dummy libgcrypt-config; ac_word=$2
16582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16583
$as_echo_n "checking for $ac_word... " >&6; }
16584
if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
16585
$as_echo_n "(cached) " >&6
16587
case $ac_pt_LIBGCRYPT_CONFIG in
16589
ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16593
for as_dir in $PATH
16596
test -z "$as_dir" && as_dir=.
16597
for ac_exec_ext in '' $ac_executable_extensions; do
16598
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16599
ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16600
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16610
ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
16611
if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
16612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
16613
$as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
16615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16616
$as_echo "no" >&6; }
16619
if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
16620
LIBGCRYPT_CONFIG="no"
16622
case $cross_compiling:$ac_tool_warned in
16624
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16625
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16626
ac_tool_warned=yes ;;
16628
LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
16631
LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
16635
if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
16636
req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
16637
min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
16639
req_libgcrypt_api=0
16640
min_libgcrypt_version="$tmp"
16643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
16644
$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
16646
if test "$LIBGCRYPT_CONFIG" != "no" ; then
16647
req_major=`echo $min_libgcrypt_version | \
16648
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
16649
req_minor=`echo $min_libgcrypt_version | \
16650
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
16651
req_micro=`echo $min_libgcrypt_version | \
16652
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
16653
libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
16654
major=`echo $libgcrypt_config_version | \
16655
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
16656
minor=`echo $libgcrypt_config_version | \
16657
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
16658
micro=`echo $libgcrypt_config_version | \
16659
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
16660
if test "$major" -gt "$req_major"; then
16663
if test "$major" -eq "$req_major"; then
16664
if test "$minor" -gt "$req_minor"; then
16667
if test "$minor" -eq "$req_minor"; then
16668
if test "$micro" -ge "$req_micro"; then
16676
if test $ok = yes; then
16677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
16678
$as_echo "yes ($libgcrypt_config_version)" >&6; }
16680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16681
$as_echo "no" >&6; }
16683
if test $ok = yes; then
16684
# If we have a recent libgcrypt, we should also check that the
16685
# API is compatible
16686
if test "$req_libgcrypt_api" -gt 0 ; then
16687
tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
16688
if test "$tmp" -gt 0 ; then
16689
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
16690
$as_echo_n "checking LIBGCRYPT API version... " >&6; }
16691
if test "$req_libgcrypt_api" -eq "$tmp" ; then
16692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
16693
$as_echo "okay" >&6; }
16696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
16697
$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
16702
if test $ok = yes; then
16703
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
16704
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
16706
if test x"$host" != x ; then
16707
libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
16708
if test x"$libgcrypt_config_host" != xnone ; then
16709
if test x"$libgcrypt_config_host" != x"$host" ; then
16710
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16712
*** The config script $LIBGCRYPT_CONFIG was
16713
*** built for $libgcrypt_config_host and thus may not match the
16714
*** used host $host.
16715
*** You may want to use the configure option --with-libgcrypt-prefix
16716
*** to specify a matching config script.
16718
$as_echo "$as_me: WARNING:
16720
*** The config script $LIBGCRYPT_CONFIG was
16721
*** built for $libgcrypt_config_host and thus may not match the
16722
*** used host $host.
16723
*** You may want to use the configure option --with-libgcrypt-prefix
16724
*** to specify a matching config script.
16730
LIBGCRYPT_CFLAGS=""
16739
# Check whether --enable-libgcrypt was given.
16740
if test "${enable_libgcrypt+set}" = set; then :
16741
enableval=$enable_libgcrypt;
16743
enable_libgcrypt=auto
16746
if test "x$enable_libgcrypt" != "xno" ; then
16747
if test "x$enable_libgcrypt" = "xyes" -a "x$have_libgcrypt" = "xno" ; then
16748
as_fn_error $? "Libgcrypt support requested but not available." "$LINENO" 5
16750
if test "x$have_libgcrypt" = "xyes" ; then
16752
$as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
16402
16759
pkg_failed=no
16403
16760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOTEM_PLPARSER" >&5
16957
17315
if test x$enable_gtk_doc = xyes; then
16958
17316
if test -n "$PKG_CONFIG" && \
16959
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.11\""; } >&5
16960
($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.11") 2>&5
17317
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.14\""; } >&5
17318
($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.14") 2>&5
16962
17320
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16963
17321
test $ac_status = 0; }; then
16966
as_fn_error $? "You need to have gtk-doc >= 1.11 installed to build $PACKAGE_NAME" "$LINENO" 5
17324
as_fn_error $? "You need to have gtk-doc >= 1.14 installed to build $PACKAGE_NAME" "$LINENO" 5
17326
if test "x$PACKAGE_NAME" != "xglib"; then
17329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
17330
$as_echo_n "checking for GTKDOC_DEPS... " >&6; }
17332
if test -n "$GTKDOC_DEPS_CFLAGS"; then
17333
pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
17334
elif test -n "$PKG_CONFIG"; then
17335
if test -n "$PKG_CONFIG" && \
17336
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
17337
($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
17339
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17340
test $ac_status = 0; }; then
17341
pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
17348
if test -n "$GTKDOC_DEPS_LIBS"; then
17349
pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
17350
elif test -n "$PKG_CONFIG"; then
17351
if test -n "$PKG_CONFIG" && \
17352
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
17353
($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
17355
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17356
test $ac_status = 0; }; then
17357
pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
17367
if test $pkg_failed = yes; then
17368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17369
$as_echo "no" >&6; }
17371
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17372
_pkg_short_errors_supported=yes
17374
_pkg_short_errors_supported=no
17376
if test $_pkg_short_errors_supported = yes; then
17377
GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
17379
GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
17381
# Put the nasty error message in config.log where it belongs
17382
echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
17384
as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met:
17386
$GTKDOC_DEPS_PKG_ERRORS
17388
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17389
installed software in a non-standard prefix.
17391
Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
17392
and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
17393
See the pkg-config man page for more details." "$LINENO" 5
17395
elif test $pkg_failed = untried; then
17396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17397
$as_echo "no" >&6; }
17398
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17399
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17400
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17401
is in your PATH or set the PKG_CONFIG environment variable to the full
17402
path to pkg-config.
17404
Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
17405
and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
17406
See the pkg-config man page for more details.
17408
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17409
See \`config.log' for more details" "$LINENO" 5; }
17412
GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
17413
GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
17414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17415
$as_echo "yes" >&6; }
16970
17421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5