mirror of
https://github.com/mirror/wget.git
synced 2025-01-28 13:20:44 +08:00
Fix configure options for metalink
* configure.ac: Ensure metalink support can be properly disabled
This commit is contained in:
parent
b6e242cd6f
commit
595f219a17
13
configure.ac
13
configure.ac
@ -71,10 +71,13 @@ AC_ARG_WITH([ssl],
|
|||||||
[AS_HELP_STRING([--with-ssl={gnutls,openssl}], [specify SSL backend. GNU TLS is the default.])])
|
[AS_HELP_STRING([--with-ssl={gnutls,openssl}], [specify SSL backend. GNU TLS is the default.])])
|
||||||
|
|
||||||
|
|
||||||
dnl Zlib: Configure use iof zlib for compression
|
dnl Zlib: Configure use of zlib for compression
|
||||||
AC_ARG_WITH([zlib],
|
AC_ARG_WITH([zlib],
|
||||||
[AS_HELP_STRING([--without-zlib], [disable zlib.])])
|
[AS_HELP_STRING([--without-zlib], [disable zlib.])])
|
||||||
|
|
||||||
|
dnl Metalink: Configure use of the Metalink library
|
||||||
|
AC_ARG_WITH([metalink],
|
||||||
|
[AS_HELP_STRING([--with-metalink], [enable support for metalinks.])])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Process features
|
dnl Process features
|
||||||
@ -483,9 +486,9 @@ AS_IF([test x"$with_metalink" != xno], [
|
|||||||
LIBS="$METALINK_LIBS $LIBS"
|
LIBS="$METALINK_LIBS $LIBS"
|
||||||
CFLAGS="$METALINK_CFLAGS $CFLAGS"
|
CFLAGS="$METALINK_CFLAGS $CFLAGS"
|
||||||
AC_DEFINE([HAVE_METALINK], [1], [Define if using metalink.])
|
AC_DEFINE([HAVE_METALINK], [1], [Define if using metalink.])
|
||||||
have_metalink=yes
|
with_metalink=yes
|
||||||
], [
|
], [
|
||||||
have_metalink=no
|
with_metalink=no
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
@ -738,7 +741,7 @@ AS_IF([test "X$enable_pcre" != "Xno"],[
|
|||||||
dnl Needed by src/Makefile.am
|
dnl Needed by src/Makefile.am
|
||||||
AM_CONDITIONAL([IRI_IS_ENABLED], [test "X$iri" != "Xno"])
|
AM_CONDITIONAL([IRI_IS_ENABLED], [test "X$iri" != "Xno"])
|
||||||
AM_CONDITIONAL([WITH_SSL], [test "X$with_ssl" != "Xno"])
|
AM_CONDITIONAL([WITH_SSL], [test "X$with_ssl" != "Xno"])
|
||||||
AM_CONDITIONAL([METALINK_IS_ENABLED], [test "X$have_metalink" != "Xno"])
|
AM_CONDITIONAL([METALINK_IS_ENABLED], [test "X$with_metalink" != "Xno"])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Create output
|
dnl Create output
|
||||||
@ -767,6 +770,6 @@ AC_MSG_NOTICE([Summary of build options:
|
|||||||
Debugging: $ENABLE_DEBUG
|
Debugging: $ENABLE_DEBUG
|
||||||
Assertions: $ENABLE_ASSERTION
|
Assertions: $ENABLE_ASSERTION
|
||||||
Valgrind: $VALGRIND_INFO
|
Valgrind: $VALGRIND_INFO
|
||||||
Metalink: $have_metalink
|
Metalink: $with_metalink
|
||||||
GPGME: $have_gpg
|
GPGME: $have_gpg
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user