]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1916. [func] Integrate contibuted IDN code from JPNIC. [RT #15383]
authorMark Andrews <marka@isc.org>
Fri, 9 Sep 2005 06:22:03 +0000 (06:22 +0000)
committerMark Andrews <marka@isc.org>
Fri, 9 Sep 2005 06:22:03 +0000 (06:22 +0000)
CHANGES
README.idnkit
config.h.in

diff --git a/CHANGES b/CHANGES
index 2865dd8106c554de6766e52391393a2a9b0308f2..e28ee8f57560c26e92efc54afd676e9c5ac3c4e6 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,8 @@
 
        --- 9.4.0a1 released ---
 
+1916.  [func]          Integrate contibuted IDN code from JPNIC. [RT #15383]
+
 1915.  [bug]           dig +ndots was broken. [RT #15215]
 
 1914.  [protocol]      DS is required to accept mnemonic algorithms
index bb20b68abac28843fed0a1a468c7c779c47e1f58..b1a319f5f80db219dc26e01105c7617eec7c14e6 100644 (file)
@@ -109,4 +109,116 @@ about idnkit and this patch.
 Bug reports and comments on this kit should be sent to
 mdnkit-bugs@nic.ad.jp and idn-cmt@nic.ad.jp, respectively.
 
-; $Id: README.idnkit,v 1.2 2005/09/09 06:13:57 marka Exp $
+; $Id: README.idnkit,v 1.2.2.1 2005/09/09 06:22:02 marka Exp $
+
+                       BIND-9 IDN patch
+
+              Japan Network Information Center (JPNIC)
+
+
+* What is this patch for?
+
+This patch adds internationalized domain name (IDN) support to BIND-9.
+You'll get internationalized version of dig/host/nslookup commands.
+
+    + internationalized dig/host/nslookup
+       dig/host/nslookup accepts non-ASCII domain names in the local
+       codeset (such as Shift JIS, Big5 or ISO8859-1) determined by
+       the locale information.  The domain names are normalized and
+       converted to the encoding on the DNS protocol, and sent to DNS
+       servers.  The replies are converted back to the local codeset
+       and displayed.
+
+
+* Compilation & installation
+
+0. Prerequisite
+
+You have to build and install idnkit before building this patched version
+of bind-9.
+
+1. Running configure script
+
+Run `configure' in the top directory.  See `README' for the
+configuration options.
+
+This patch adds the following 4 options to `configure'.  You should
+at least specify `--with-idn' option to enable IDN support.
+
+    --with-idn[=IDN_PREFIX]
+       To enable IDN support, you have to specify `--with-idn' option.
+       The argument IDN_PREFIX is the install prefix of idnkit.  If
+       IDN_PREFIX is omitted, PREFIX (derived from `--prefix=PREFIX')
+       is assumed.
+
+    --with-libiconv[=LIBICONV_PREFIX]
+       Specify this option if idnkit you have installed links GNU
+       libiconv.  The argument LIBICONV_PREFIX is install prefix of
+       GNU libiconv.  If the argument is omitted, PREFIX (derived
+       from `--prefix=PREFIX') is assumed.
+
+       `--with-libiconv' is shorthand option for GNU libiconv.
+
+           --with-libiconv=/usr/local
+
+       This is equivalent to:
+
+           --with-iconv='-L/usr/local/lib -R/usr/local/lib -liconv'
+
+       `--with-libiconv' assumes that your C compiler has `-R'
+       option, and that the option adds the specified run-time path
+       to an exacutable binary.  If `-R' option of your compiler has
+       different meaning, or your compiler lacks the option, you
+       should use `--with-iconv' option instead.  Binary command
+       without run-time path information might be unexecutable.
+       In that case, you would see an error message like:
+
+           error in loading shared libraries: libiconv.so.2: cannot
+           open shared object file
+
+       If both `--with-libiconv' and `--with-iconv' options are
+       specified, `--with-iconv' is prior to `--with-libiconv'.
+
+    --with-iconv=ICONV_LIBSPEC
+       If your libc doens't provide iconv(), you need to specify the
+       library containing iconv() with this option.  `ICONV_LIBSPEC'
+       is the argument(s) to `cc' or `ld' to link the library, for
+       example, `--with-iconv="-L/usr/local/lib -liconv"'.
+       You don't need to specify the header file directory for "iconv.h"
+       to the compiler, as it isn't included directly by bind-9 with
+       this patch.
+
+    --with-idnlib=IDN_LIBSPEC
+       With this option, you can explicitly specify the argument(s)
+       to `cc' or `ld' to link the idnkit's library, `libidnkit'.  If
+       this option is not specified, `-L${PREFIX}/lib -lidnkit' is
+       assumed, where ${PREFIX} is the installation prefix specified
+       with `--with-idn' option above.  You may need to use this
+       option to specify extra argments, for example,
+       `--with-idnlib="-L/usr/local/lib -R/usr/local/lib -lidnkit"'.
+
+Please consult `README' for other configuration options.
+
+Note that if you want to specify some extra header file directories,
+you should use the environment variable STD_CINCLUDES instead of
+CFLAGS, as described in README.
+
+2. Compilation and installation
+
+After running "configure", just do
+
+       make
+       make install
+
+for compiling and installing.
+
+
+* Contact information
+
+Please see http//www.nic.ad.jp/en/idn/ for the latest news
+about idnkit and this patch.
+
+Bug reports and comments on this kit should be sent to
+mdnkit-bugs@nic.ad.jp and idn-cmt@nic.ad.jp, respectively.
+
+; $Id: README.idnkit,v 1.2.2.1 2005/09/09 06:22:02 marka Exp $
index 42b29497d1299a33ec78b33e01296767a166a87e..8f0f8edb1d1a066fd52c4026693e6e86a85df2c1 100644 (file)
@@ -16,7 +16,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: config.h.in,v 1.60.18.9 2005/07/18 05:19:42 marka Exp $ */
+/* $Id: config.h.in,v 1.60.18.11 2005/09/09 06:22:03 marka Exp $ */
 
 /*! \file */
 
@@ -180,12 +180,18 @@ int sigwait(const unsigned int *set, int *sig);
 /* Define to 1 if you have the <linux/capability.h> header file. */
 #undef HAVE_LINUX_CAPABILITY_H
 
+/* Define to 1 if you have the <locale.h> header file. */
+#undef HAVE_LOCALE_H
+
 /* Define to 1 if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H
 
 /* Define to 1 if you have the <net/if6.h> header file. */
 #undef HAVE_NET_IF6_H
 
+/* Define to 1 if you have the `setlocale' function. */
+#undef HAVE_SETLOCALE
+
 /* Define to 1 if you have the <stdint.h> header file. */
 #undef HAVE_STDINT_H
 
@@ -267,6 +273,9 @@ int sigwait(const unsigned int *set, int *sig);
    non-blocking. */
 #undef USE_FIONBIO_IOCTL
 
+/* define if idnkit support is to be included. */
+#undef WITH_IDN
+
 /* Define to 1 if your processor stores words with the most significant byte
    first (like Motorola and SPARC, unlike Intel and VAX). */
 #undef WORDS_BIGENDIAN