mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Remove idnkit-1 support from dig
This commit is contained in:
@@ -41,10 +41,10 @@ DEPLIBS = ${DNSDEPLIBS} ${IRSDEPLIBS} ${BIND9DEPLIBS} \
|
|||||||
${ISCDEPLIBS} ${ISCCFGDEPLIBS}
|
${ISCDEPLIBS} ${ISCCFGDEPLIBS}
|
||||||
|
|
||||||
LIBS = ${DNSLIBS} ${IRSLIBS} ${BIND9LIBS} ${ISCCFGLIBS} \
|
LIBS = ${DNSLIBS} ${IRSLIBS} ${BIND9LIBS} ${ISCCFGLIBS} \
|
||||||
${ISCLIBS} @IDNKIT_LIBS@ @LIBIDN2_LIBS@ @LIBS@
|
${ISCLIBS} @LIBIDN2_LIBS@ @LIBS@
|
||||||
|
|
||||||
NOSYMLIBS = ${DNSLIBS} ${IRSLIBS} ${BIND9LIBS} ${ISCCFGLIBS} \
|
NOSYMLIBS = ${DNSLIBS} ${IRSLIBS} ${BIND9LIBS} ${ISCCFGLIBS} \
|
||||||
${ISCNOSYMLIBS} @IDNKIT_LIBS@ @LIBIDN2_LIBS@ @LIBS@
|
${ISCNOSYMLIBS} @LIBIDN2_LIBS@ @LIBS@
|
||||||
|
|
||||||
SUBDIRS =
|
SUBDIRS =
|
||||||
|
|
||||||
|
@@ -31,12 +31,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_IDN_SUPPORT
|
#ifdef WITH_IDN_SUPPORT
|
||||||
#ifdef WITH_IDNKIT
|
|
||||||
#include <idn/result.h>
|
|
||||||
#include <idn/log.h>
|
|
||||||
#include <idn/resconf.h>
|
|
||||||
#include <idn/api.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef WITH_LIBIDN2
|
#ifdef WITH_LIBIDN2
|
||||||
#include <idn2.h>
|
#include <idn2.h>
|
||||||
@@ -157,9 +151,6 @@ static isc_result_t output_filter(isc_buffer_t *buffer,
|
|||||||
isc_boolean_t absolute);
|
isc_boolean_t absolute);
|
||||||
#define MAXDLEN 256
|
#define MAXDLEN 256
|
||||||
|
|
||||||
#ifdef WITH_IDNKIT
|
|
||||||
int idnoptions = 0;
|
|
||||||
#endif
|
|
||||||
#endif /* WITH_IDN_OUT_SUPPORT */
|
#endif /* WITH_IDN_OUT_SUPPORT */
|
||||||
|
|
||||||
isc_socket_t *keep = NULL;
|
isc_socket_t *keep = NULL;
|
||||||
@@ -4304,54 +4295,6 @@ output_filter(isc_buffer_t *buffer, unsigned int used_org,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_IDN_SUPPORT
|
#ifdef WITH_IDN_SUPPORT
|
||||||
#ifdef WITH_IDNKIT
|
|
||||||
static void
|
|
||||||
idnkit_check_result(idn_result_t result, const char *msg) {
|
|
||||||
if (result != idn_success) {
|
|
||||||
fatal("%s: %s", msg, idn_result_tostring(result));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
idn_initialize(void) {
|
|
||||||
idn_result_t result;
|
|
||||||
|
|
||||||
/* Create configuration context. */
|
|
||||||
result = idn_nameinit(1);
|
|
||||||
idnkit_check_result(result, "idnkit api initialization failed");
|
|
||||||
return (ISC_R_SUCCESS);
|
|
||||||
}
|
|
||||||
|
|
||||||
static isc_result_t
|
|
||||||
idn_locale_to_ace(const char *from, char *to, size_t tolen) {
|
|
||||||
char utf8_textname[MXNAME];
|
|
||||||
idn_result_t result;
|
|
||||||
|
|
||||||
result = idn_encodename(IDN_LOCALCONV | IDN_DELIMMAP, from,
|
|
||||||
utf8_textname, sizeof(utf8_textname));
|
|
||||||
idnkit_check_result(result, "idnkit idn_encodename to utf8 failed");
|
|
||||||
|
|
||||||
result = idn_encodename(idnoptions | IDN_LOCALMAP | IDN_NAMEPREP |
|
|
||||||
IDN_IDNCONV | IDN_LENCHECK,
|
|
||||||
utf8_textname, to, tolen);
|
|
||||||
idnkit_check_result(result, "idnkit idn_encodename to idn failed");
|
|
||||||
return (ISC_R_SUCCESS);
|
|
||||||
}
|
|
||||||
|
|
||||||
static isc_result_t
|
|
||||||
idn_ace_to_locale(const char *from, char *to, size_t tolen) {
|
|
||||||
idn_result_t result;
|
|
||||||
|
|
||||||
result = idn_decodename(IDN_DECODE_APP, from, to, tolen);
|
|
||||||
if (result != idn_success) {
|
|
||||||
debug("idnkit idn_decodename failed: %s",
|
|
||||||
idn_result_tostring(result));
|
|
||||||
return (ISC_R_FAILURE);
|
|
||||||
}
|
|
||||||
return (ISC_R_SUCCESS);
|
|
||||||
}
|
|
||||||
#endif /* WITH_IDNKIT */
|
|
||||||
|
|
||||||
#ifdef WITH_LIBIDN2
|
#ifdef WITH_LIBIDN2
|
||||||
static void
|
static void
|
||||||
idn_initialize(void) {
|
idn_initialize(void) {
|
||||||
|
@@ -19,13 +19,6 @@
|
|||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_IDNKIT
|
|
||||||
#include <idn/result.h>
|
|
||||||
#include <idn/log.h>
|
|
||||||
#include <idn/resconf.h>
|
|
||||||
#include <idn/api.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <isc/app.h>
|
#include <isc/app.h>
|
||||||
#include <isc/commandline.h>
|
#include <isc/commandline.h>
|
||||||
#include <isc/netaddr.h>
|
#include <isc/netaddr.h>
|
||||||
@@ -721,9 +714,6 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) {
|
|||||||
lookup->rdtype != dns_rdatatype_axfr)
|
lookup->rdtype != dns_rdatatype_axfr)
|
||||||
lookup->rdtype = rdtype;
|
lookup->rdtype = rdtype;
|
||||||
lookup->rdtypeset = ISC_TRUE;
|
lookup->rdtypeset = ISC_TRUE;
|
||||||
#ifdef WITH_IDNKIT
|
|
||||||
idnoptions = 0;
|
|
||||||
#endif
|
|
||||||
if (rdtype == dns_rdatatype_axfr) {
|
if (rdtype == dns_rdatatype_axfr) {
|
||||||
/* -l -t any -v */
|
/* -l -t any -v */
|
||||||
list_type = dns_rdatatype_any;
|
list_type = dns_rdatatype_any;
|
||||||
@@ -736,13 +726,6 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) {
|
|||||||
} else if (rdtype == dns_rdatatype_any) {
|
} else if (rdtype == dns_rdatatype_any) {
|
||||||
if (!lookup->tcp_mode_set)
|
if (!lookup->tcp_mode_set)
|
||||||
lookup->tcp_mode = ISC_TRUE;
|
lookup->tcp_mode = ISC_TRUE;
|
||||||
#ifdef WITH_IDNKIT
|
|
||||||
} else if (rdtype == dns_rdatatype_a ||
|
|
||||||
rdtype == dns_rdatatype_aaaa ||
|
|
||||||
rdtype == dns_rdatatype_mx) {
|
|
||||||
idnoptions = IDN_ASCCHECK;
|
|
||||||
list_type = rdtype;
|
|
||||||
#endif
|
|
||||||
} else
|
} else
|
||||||
list_type = rdtype;
|
list_type = rdtype;
|
||||||
list_addresses = ISC_FALSE;
|
list_addresses = ISC_FALSE;
|
||||||
@@ -771,9 +754,6 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv) {
|
|||||||
if (!lookup->rdtypeset ||
|
if (!lookup->rdtypeset ||
|
||||||
lookup->rdtype != dns_rdatatype_axfr)
|
lookup->rdtype != dns_rdatatype_axfr)
|
||||||
lookup->rdtype = dns_rdatatype_any;
|
lookup->rdtype = dns_rdatatype_any;
|
||||||
#ifdef WITH_IDNKIT
|
|
||||||
idnoptions = 0;
|
|
||||||
#endif
|
|
||||||
list_type = dns_rdatatype_any;
|
list_type = dns_rdatatype_any;
|
||||||
list_addresses = ISC_FALSE;
|
list_addresses = ISC_FALSE;
|
||||||
lookup->rdtypeset = ISC_TRUE;
|
lookup->rdtypeset = ISC_TRUE;
|
||||||
@@ -885,9 +865,6 @@ main(int argc, char **argv) {
|
|||||||
ISC_LIST_INIT(search_list);
|
ISC_LIST_INIT(search_list);
|
||||||
|
|
||||||
fatalexit = 1;
|
fatalexit = 1;
|
||||||
#ifdef WITH_IDNKIT
|
|
||||||
idnoptions = IDN_ASCCHECK;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* setup dighost callbacks */
|
/* setup dighost callbacks */
|
||||||
dighost_printmessage = printmessage;
|
dighost_printmessage = printmessage;
|
||||||
|
@@ -269,9 +269,6 @@ extern char *progname;
|
|||||||
extern int tries;
|
extern int tries;
|
||||||
extern int fatalexit;
|
extern int fatalexit;
|
||||||
extern isc_boolean_t verbose;
|
extern isc_boolean_t verbose;
|
||||||
#ifdef WITH_IDNKIT
|
|
||||||
extern int idnoptions;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Routines in dighost.c.
|
* Routines in dighost.c.
|
||||||
|
@@ -596,9 +596,6 @@ int sigwait(const unsigned int *set, int *sig);
|
|||||||
/* Define to enable very verbose query trace logging. */
|
/* Define to enable very verbose query trace logging. */
|
||||||
#undef WANT_QUERYTRACE
|
#undef WANT_QUERYTRACE
|
||||||
|
|
||||||
/* define if idnkit support is to be included. */
|
|
||||||
#undef WITH_IDNKIT
|
|
||||||
|
|
||||||
/* define if IDN output support is to be included. */
|
/* define if IDN output support is to be included. */
|
||||||
#undef WITH_IDN_OUT_SUPPORT
|
#undef WITH_IDN_OUT_SUPPORT
|
||||||
|
|
||||||
|
125
configure
vendored
125
configure
vendored
@@ -683,7 +683,6 @@ ATFBIN
|
|||||||
ATFBUILD
|
ATFBUILD
|
||||||
LIBIDN2_LIBS
|
LIBIDN2_LIBS
|
||||||
LIBIDN2_CFLAGS
|
LIBIDN2_CFLAGS
|
||||||
IDNKIT_LIBS
|
|
||||||
XSLT_DBLATEX_FASTBOOK
|
XSLT_DBLATEX_FASTBOOK
|
||||||
XSLT_DBLATEX_STYLE
|
XSLT_DBLATEX_STYLE
|
||||||
XSLT_DOCBOOK_MAKETOC_XHTML
|
XSLT_DOCBOOK_MAKETOC_XHTML
|
||||||
@@ -1042,10 +1041,6 @@ enable_dnstap
|
|||||||
with_protobuf_c
|
with_protobuf_c
|
||||||
with_libfstrm
|
with_libfstrm
|
||||||
with_docbook_xsl
|
with_docbook_xsl
|
||||||
with_idnkit
|
|
||||||
with_libiconv
|
|
||||||
with_iconv
|
|
||||||
with_idnlib
|
|
||||||
with_libidn2
|
with_libidn2
|
||||||
with_atf
|
with_atf
|
||||||
with_tuning
|
with_tuning
|
||||||
@@ -1777,10 +1772,6 @@ Optional Packages:
|
|||||||
--with-protobuf-c=path Path where protobuf-c is installed, for dnstap
|
--with-protobuf-c=path Path where protobuf-c is installed, for dnstap
|
||||||
--with-libfstrm=path Path where libfstrm is installed, for dnstap
|
--with-libfstrm=path Path where libfstrm is installed, for dnstap
|
||||||
--with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets
|
--with-docbook-xsl=PATH specify path for Docbook-XSL stylesheets
|
||||||
--with-idnkit=PATH enable IDN support using idnkit [yes|no|path]
|
|
||||||
--with-libiconv=IPREFIX GNU libiconv are in IPREFIX [default PREFIX]
|
|
||||||
--with-iconv=LIBSPEC specify iconv library [default -liconv]
|
|
||||||
--with-idnlib=ARG specify libidnkit
|
|
||||||
--with-libidn2=PATH enable IDN support using GNU libidn2 [yes|no|path]
|
--with-libidn2=PATH enable IDN support using GNU libidn2 [yes|no|path]
|
||||||
--with-atf support Automated Test Framework
|
--with-atf support Automated Test Framework
|
||||||
--with-tuning=ARG Specify server tuning (large or default)
|
--with-tuning=ARG Specify server tuning (large or default)
|
||||||
@@ -22543,99 +22534,6 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# IDN support using idnkit
|
|
||||||
#
|
|
||||||
|
|
||||||
# Check whether --with-idnkit was given.
|
|
||||||
if test "${with_idnkit+set}" = set; then :
|
|
||||||
withval=$with_idnkit; use_idnkit="$withval"
|
|
||||||
else
|
|
||||||
use_idnkit="no"
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$use_idnkit" in
|
|
||||||
yes)
|
|
||||||
if test X$prefix = XNONE ; then
|
|
||||||
idnkit_path=/usr/local
|
|
||||||
else
|
|
||||||
idnkit_path=$prefix
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
no)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
idnkit_path="$use_idnkit"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
iconvinc=
|
|
||||||
iconvlib=
|
|
||||||
|
|
||||||
# Check whether --with-libiconv was given.
|
|
||||||
if test "${with_libiconv+set}" = set; then :
|
|
||||||
withval=$with_libiconv; use_libiconv="$withval"
|
|
||||||
else
|
|
||||||
use_libiconv="no"
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$use_libiconv" in
|
|
||||||
yes)
|
|
||||||
if test X$prefix = XNONE ; then
|
|
||||||
iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv"
|
|
||||||
else
|
|
||||||
iconvlib="-L$prefix/lib -R$prefix/lib -liconv"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
no)
|
|
||||||
iconvlib=
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
|
||||||
# Check whether --with-iconv was given.
|
|
||||||
if test "${with_iconv+set}" = set; then :
|
|
||||||
withval=$with_iconv; iconvlib="$withval"
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$iconvlib" in
|
|
||||||
no)
|
|
||||||
iconvlib=
|
|
||||||
;;
|
|
||||||
yes)
|
|
||||||
iconvlib=-liconv
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
|
||||||
# Check whether --with-idnlib was given.
|
|
||||||
if test "${with_idnlib+set}" = set; then :
|
|
||||||
withval=$with_idnlib; idnlib="$withval"
|
|
||||||
else
|
|
||||||
idnlib="no"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "yes" = "$idnlib"; then
|
|
||||||
as_fn_error $? "You must specify ARG for --with-idnlib." "$LINENO" 5
|
|
||||||
fi
|
|
||||||
|
|
||||||
IDNKIT_LIBS=
|
|
||||||
if test "no" != "$use_idnkit"; then
|
|
||||||
|
|
||||||
$as_echo "#define WITH_IDNKIT 1" >>confdefs.h
|
|
||||||
|
|
||||||
STD_CINCLUDES="$STD_CINCLUDES -I$idnkit_path/include"
|
|
||||||
if test "no" != "$idnlib"; then
|
|
||||||
IDNKIT_LIBS="$idnlib $iconvlib"
|
|
||||||
else
|
|
||||||
IDNKIT_LIBS="-L$idnkit_path/lib -lidnkit $iconvlib"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# IDN support using libidn2
|
# IDN support using libidn2
|
||||||
#
|
#
|
||||||
@@ -22721,6 +22619,9 @@ ac_res=$ac_cv_search_idn2_to_ascii_8z
|
|||||||
if test "$ac_res" != no; then :
|
if test "$ac_res" != no; then :
|
||||||
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
||||||
|
|
||||||
|
$as_echo "#define WITH_IDN_SUPPORT 1" >>confdefs.h
|
||||||
|
|
||||||
|
|
||||||
$as_echo "#define WITH_LIBIDN2 1" >>confdefs.h
|
$as_echo "#define WITH_LIBIDN2 1" >>confdefs.h
|
||||||
|
|
||||||
else
|
else
|
||||||
@@ -22757,26 +22658,6 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# IDN support in general
|
|
||||||
#
|
|
||||||
|
|
||||||
# check if idnkit and libidn2 are not used at the same time
|
|
||||||
if test "$use_idnkit" != no && test "$use_libidn2" != no; then
|
|
||||||
as_fn_error $? "idnkit and libidn2 cannot be used at the same time." "$LINENO" 5
|
|
||||||
fi
|
|
||||||
# the IDN support is on
|
|
||||||
if test "$use_idnkit" != no || test "$use_libidn2" != no; then
|
|
||||||
|
|
||||||
$as_echo "#define WITH_IDN_SUPPORT 1" >>confdefs.h
|
|
||||||
|
|
||||||
if test "$use_libidn2" = no || test "$use_libidn2_out" != no; then
|
|
||||||
|
|
||||||
$as_echo "#define WITH_IDN_OUT_SUPPORT 1" >>confdefs.h
|
|
||||||
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Check whether to build Automated Test Framework unit tests
|
# Check whether to build Automated Test Framework unit tests
|
||||||
#
|
#
|
||||||
|
95
configure.in
95
configure.in
@@ -4697,82 +4697,6 @@ dblatex_xsl_trees="/usr/local/share/xml/docbook/stylesheet/dblatex /usr/pkg/shar
|
|||||||
NOM_PATH_FILE(XSLT_DBLATEX_STYLE, xsl/docbook.xsl, $dblatex_xsl_trees)
|
NOM_PATH_FILE(XSLT_DBLATEX_STYLE, xsl/docbook.xsl, $dblatex_xsl_trees)
|
||||||
NOM_PATH_FILE(XSLT_DBLATEX_FASTBOOK, xsl/latex_book_fast.xsl, $dblatex_xsl_trees)
|
NOM_PATH_FILE(XSLT_DBLATEX_FASTBOOK, xsl/latex_book_fast.xsl, $dblatex_xsl_trees)
|
||||||
|
|
||||||
#
|
|
||||||
# IDN support using idnkit
|
|
||||||
#
|
|
||||||
AC_ARG_WITH(idnkit,
|
|
||||||
AS_HELP_STRING([--with-idnkit[=PATH]],
|
|
||||||
[enable IDN support using idnkit [yes|no|path]]),
|
|
||||||
use_idnkit="$withval", use_idnkit="no")
|
|
||||||
case "$use_idnkit" in
|
|
||||||
yes)
|
|
||||||
if test X$prefix = XNONE ; then
|
|
||||||
idnkit_path=/usr/local
|
|
||||||
else
|
|
||||||
idnkit_path=$prefix
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
no)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
idnkit_path="$use_idnkit"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
iconvinc=
|
|
||||||
iconvlib=
|
|
||||||
AC_ARG_WITH(libiconv,
|
|
||||||
AS_HELP_STRING([--with-libiconv[=IPREFIX]],
|
|
||||||
[GNU libiconv are in IPREFIX [default PREFIX]]),
|
|
||||||
use_libiconv="$withval", use_libiconv="no")
|
|
||||||
case "$use_libiconv" in
|
|
||||||
yes)
|
|
||||||
if test X$prefix = XNONE ; then
|
|
||||||
iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv"
|
|
||||||
else
|
|
||||||
iconvlib="-L$prefix/lib -R$prefix/lib -liconv"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
no)
|
|
||||||
iconvlib=
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
AC_ARG_WITH(iconv,
|
|
||||||
AS_HELP_STRING([--with-iconv[=LIBSPEC]],
|
|
||||||
[specify iconv library [default -liconv]]),
|
|
||||||
iconvlib="$withval")
|
|
||||||
case "$iconvlib" in
|
|
||||||
no)
|
|
||||||
iconvlib=
|
|
||||||
;;
|
|
||||||
yes)
|
|
||||||
iconvlib=-liconv
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
AC_ARG_WITH(idnlib,
|
|
||||||
AS_HELP_STRING([--with-idnlib=ARG], [specify libidnkit]),
|
|
||||||
idnlib="$withval", idnlib="no")
|
|
||||||
if test "yes" = "$idnlib"; then
|
|
||||||
AC_MSG_ERROR([You must specify ARG for --with-idnlib.])
|
|
||||||
fi
|
|
||||||
|
|
||||||
IDNKIT_LIBS=
|
|
||||||
if test "no" != "$use_idnkit"; then
|
|
||||||
AC_DEFINE(WITH_IDNKIT, 1, [define if idnkit support is to be included.])
|
|
||||||
STD_CINCLUDES="$STD_CINCLUDES -I$idnkit_path/include"
|
|
||||||
if test "no" != "$idnlib"; then
|
|
||||||
IDNKIT_LIBS="$idnlib $iconvlib"
|
|
||||||
else
|
|
||||||
IDNKIT_LIBS="-L$idnkit_path/lib -lidnkit $iconvlib"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
AC_SUBST(IDNKIT_LIBS)
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# IDN support using libidn2
|
# IDN support using libidn2
|
||||||
#
|
#
|
||||||
@@ -4794,7 +4718,8 @@ AS_CASE([$use_libidn2],
|
|||||||
|
|
||||||
AS_IF([test "$use_libidn2" != "no"],
|
AS_IF([test "$use_libidn2" != "no"],
|
||||||
[AC_SEARCH_LIBS([idn2_to_ascii_8z], [idn2],
|
[AC_SEARCH_LIBS([idn2_to_ascii_8z], [idn2],
|
||||||
[AC_DEFINE(WITH_LIBIDN2, 1, [define if libidn2 support is to be included.])],
|
[AC_DEFINE(WITH_IDN_SUPPORT, 1, [define if IDN input support is to be included.])
|
||||||
|
AC_DEFINE(WITH_LIBIDN2, 1, [define if libidn2 support is to be included.])],
|
||||||
[AC_MSG_ERROR([libidn2 requested, but not found])])
|
[AC_MSG_ERROR([libidn2 requested, but not found])])
|
||||||
AC_MSG_CHECKING(whether libidn2 supports idn2_to_unicode_8zlz)
|
AC_MSG_CHECKING(whether libidn2 supports idn2_to_unicode_8zlz)
|
||||||
AC_TRY_LINK([#include <idn2.h>],
|
AC_TRY_LINK([#include <idn2.h>],
|
||||||
@@ -4806,22 +4731,6 @@ AS_IF([test "$use_libidn2" != "no"],
|
|||||||
AC_SUBST([LIBIDN2_CFLAGS])
|
AC_SUBST([LIBIDN2_CFLAGS])
|
||||||
AC_SUBST([LIBIDN2_LIBS])
|
AC_SUBST([LIBIDN2_LIBS])
|
||||||
|
|
||||||
#
|
|
||||||
# IDN support in general
|
|
||||||
#
|
|
||||||
|
|
||||||
# check if idnkit and libidn2 are not used at the same time
|
|
||||||
if test "$use_idnkit" != no && test "$use_libidn2" != no; then
|
|
||||||
AC_MSG_ERROR([idnkit and libidn2 cannot be used at the same time.])
|
|
||||||
fi
|
|
||||||
# the IDN support is on
|
|
||||||
if test "$use_idnkit" != no || test "$use_libidn2" != no; then
|
|
||||||
AC_DEFINE(WITH_IDN_SUPPORT, 1, [define if IDN input support is to be included.])
|
|
||||||
if test "$use_libidn2" = no || test "$use_libidn2_out" != no; then
|
|
||||||
AC_DEFINE(WITH_IDN_OUT_SUPPORT, 1, [define if IDN output support is to be included.])
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Check whether to build Automated Test Framework unit tests
|
# Check whether to build Automated Test Framework unit tests
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user