Ignore all of lib/gl/.
[libidn.git] / libc / README
blob89c06fd830829924f528a37320131518769656ef
1 Libidn libc/README -- Instructions for building as a GNU Libc add-on.
2 Copyright (C) 2003, 2004 Simon Josefsson
3 See the end for copying conditions.
5 GNU Libidn is now part of GNU Libc, so the stand-alone patch and
6 instructions that were distributed here before has been removed.
8 See getaddrinfo-idn.txt for the write-up of the API that is used in
9 Libc.
11 Simply build Libc as you would normally, but specify "libidn" as an
12 add-on, as in --enable-add-ons=libidn to configure.
14 Once installed, you may build and run the sample still distributed in
15 this directory, perhaps as follows:
17 $ gcc -o example example.c -L/usr/local/glibc/lib -Wl,-rpath,/usr/local/glibc/lib -nostdinc -I/usr/local/glibc/include -I/usr/include -I/usr/lib/gcc-lib/i386-linux/2.95.4/include
18 $ CHARSET=iso-8859-1 ./example
19 locale charset `iso-8859-1'
20 gettaddrinfo(räksmörgås.josefsson.org):
21 address `217.13.230.178'
22 canonical name `178.230.13.217.in-addr.dgcsystems.net'
25 Internally the domain name xn--rksmrgs-5wao1o.josefsson.org is looked
26 up in DNS.
28 ----------------------------------------------------------------------
29 Copying and distribution of this file, with or without modification,
30 are permitted in any medium without royalty provided the copyright
31 notice and this notice are preserved.