1 IDN patch for bind-9.2.1
2 ========================
5 This is a patch file for ISC BIND 9.2.1 to make it work with
6 internationalized domain names. With this patch you'll get IDN-aware
9 To apply this patch, you should go to the top directory of the BIND
10 distribution (where you see `README' file), then invoke `patch'
13 % patch -p0 < this-file
15 Then follow the instructions described in `README.idnkit' to compile
20 diff -c /dev/null mdn/othersrc/bind9/README.idnkit:1.2
21 *** README.idnkit Mon May 27 16:53:24 2002
22 --- README.idnkit Tue Mar 26 16:35:05 2002
29 + Japan Network Information Center (JPNIC)
32 + * What is this patch for?
34 + This patch adds internationalized domain name (IDN) support to BIND-9.
35 + You'll get internationalized version of dig/host/nslookup commands.
37 + + internationalized dig/host/nslookup
38 + dig/host/nslookup accepts non-ASCII domain names in the local
39 + codeset (such as Shift JIS, Big5 or ISO8859-1) determined by
40 + the locale information. The domain names are normalized and
41 + converted to the encoding on the DNS protocol, and sent to DNS
42 + servers. The replies are converted back to the local codeset
46 + * Compilation & installation
50 + You have to build and install idnkit before building this patched version
53 + 1. Running configure script
55 + Run `configure' in the top directory. See `README' for the
56 + configuration options.
58 + This patch adds the following 4 options to `configure'. You should
59 + at least specify `--with-idn' option to enable IDN support.
61 + --with-idn[=IDN_PREFIX]
62 + To enable IDN support, you have to specify `--with-idn' option.
63 + The argument IDN_PREFIX is the install prefix of idnkit. If
64 + IDN_PREFIX is omitted, PREFIX (derived from `--prefix=PREFIX')
67 + --with-libiconv[=LIBICONV_PREFIX]
68 + Specify this option if idnkit you have installed links GNU
69 + libiconv. The argument LIBICONV_PREFIX is install prefix of
70 + GNU libiconv. If the argument is omitted, PREFIX (derived
71 + from `--prefix=PREFIX') is assumed.
73 + `--with-libiconv' is shorthand option for GNU libiconv.
75 + --with-libiconv=/usr/local
77 + This is equivalent to:
79 + --with-iconv='-L/usr/local/lib -R/usr/local/lib -liconv'
81 + `--with-libiconv' assumes that your C compiler has `-R'
82 + option, and that the option adds the specified run-time path
83 + to an exacutable binary. If `-R' option of your compiler has
84 + different meaning, or your compiler lacks the option, you
85 + should use `--with-iconv' option instead. Binary command
86 + without run-time path information might be unexecutable.
87 + In that case, you would see an error message like:
89 + error in loading shared libraries: libiconv.so.2: cannot
90 + open shared object file
92 + If both `--with-libiconv' and `--with-iconv' options are
93 + specified, `--with-iconv' is prior to `--with-libiconv'.
95 + --with-iconv=ICONV_LIBSPEC
96 + If your libc doens't provide iconv(), you need to specify the
97 + library containing iconv() with this option. `ICONV_LIBSPEC'
98 + is the argument(s) to `cc' or `ld' to link the library, for
99 + example, `--with-iconv="-L/usr/local/lib -liconv"'.
100 + You don't need to specify the header file directory for "iconv.h"
101 + to the compiler, as it isn't included directly by bind-9 with
104 + --with-idnlib=IDN_LIBSPEC
105 + With this option, you can explicitly specify the argument(s)
106 + to `cc' or `ld' to link the idnkit's library, `libidnkit'. If
107 + this option is not specified, `-L${PREFIX}/lib -lidnkit' is
108 + assumed, where ${PREFIX} is the installation prefix specified
109 + with `--with-idn' option above. You may need to use this
110 + option to specify extra argments, for example,
111 + `--with-idnlib="-L/usr/local/lib -R/usr/local/lib -lidnkit"'.
113 + Please consult `README' for other configuration options.
115 + Note that if you want to specify some extra header file directories,
116 + you should use the environment variable STD_CINCLUDES instead of
117 + CFLAGS, as described in README.
119 + 2. Compilation and installation
121 + After running "configure", just do
126 + for compiling and installing.
129 + * Contact information
131 + Please see http//www.nic.ad.jp/jp/research/mdn/ for the latest news
132 + about idnkit and this patch.
134 + Bug reports and comments on this kit should be sent to
135 + mdnkit-bugs@nic.ad.jp and mdn-cmt@nic.ad.jp, respectively.
138 + ; Id: bind-9.2.1-patch,v 1.1 2003/06/04 00:27:30 marka Exp
140 diff -c mdn/othersrc/bind9/config.h.in:1.1.1.6 mdn/othersrc/bind9/config.h.in:1.12
141 *** config.h.in Tue Nov 27 16:55:45 2001
142 --- config.h.in Tue Mar 19 16:45:35 2002
146 /* define if you have strerror in the C library. */
149 + /* Define if you have the setlocale function. */
150 + #undef HAVE_SETLOCALE
152 /* Define if you have the <dlfcn.h> header file. */
158 /* Define if you have the <linux/capability.h> header file. */
159 #undef HAVE_LINUX_CAPABILITY_H
161 + /* Define if you have the <locale.h> header file. */
162 + #undef HAVE_LOCALE_H
164 /* Define if you have the <sys/prctl.h> header file. */
165 #undef HAVE_SYS_PRCTL_H
171 /* Define if you have the socket library (-lsocket). */
172 #undef HAVE_LIBSOCKET
174 + /* define if idnkit support is to be included. */
178 diff -c mdn/othersrc/bind9/configure:1.1.1.9 mdn/othersrc/bind9/configure:1.15
179 *** configure Wed May 22 17:14:53 2002
180 --- configure Mon May 27 12:10:14 2002
184 --with-kame[=PATH] use Kame IPv6 [default path /usr/local/v6]"
186 --disable-linux-caps disable linux capabilities"
188 + --with-idn[=MPREFIX] enable IDN support using idnkit [default PREFIX]"
190 + --with-libiconv[=IPREFIX] GNU libiconv are in IPREFIX [default PREFIX]"
192 + --with-iconv[=LIBSPEC] specify iconv library [default -liconv]"
194 + --with-idnlib=ARG specify libidnkit"
196 # Initialize some variables set by options.
197 # The variables have the same names as the options, with
202 echo $ac_n "checking host system type""... $ac_c" 1>&6
203 ! echo "configure:915: checking host system type" >&5
206 case "$host_alias" in
210 echo $ac_n "checking host system type""... $ac_c" 1>&6
211 ! echo "configure:923: checking host system type" >&5
214 case "$host_alias" in
219 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
220 ! echo "configure:937: checking whether ${MAKE-make} sets \${MAKE}" >&5
221 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
222 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
223 echo $ac_n "(cached) $ac_c" 1>&6
227 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
228 ! echo "configure:945: checking whether ${MAKE-make} sets \${MAKE}" >&5
229 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
230 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
231 echo $ac_n "(cached) $ac_c" 1>&6
234 # Extract the first word of "ranlib", so it can be a program name with args.
235 set dummy ranlib; ac_word=$2
236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
237 ! echo "configure:966: checking for $ac_word" >&5
238 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
239 echo $ac_n "(cached) $ac_c" 1>&6
242 # Extract the first word of "ranlib", so it can be a program name with args.
243 set dummy ranlib; ac_word=$2
244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
245 ! echo "configure:974: checking for $ac_word" >&5
246 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
247 echo $ac_n "(cached) $ac_c" 1>&6
251 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
252 # ./install, which can be erroneously created by make from ./install.sh.
253 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
254 ! echo "configure:1005: checking for a BSD compatible install" >&5
255 if test -z "$INSTALL"; then
256 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
257 echo $ac_n "(cached) $ac_c" 1>&6
259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
260 # ./install, which can be erroneously created by make from ./install.sh.
261 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
262 ! echo "configure:1013: checking for a BSD compatible install" >&5
263 if test -z "$INSTALL"; then
264 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
265 echo $ac_n "(cached) $ac_c" 1>&6
268 # Extract the first word of "ar", so it can be a program name with args.
269 set dummy ar; ac_word=$2
270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
271 ! echo "configure:1066: checking for $ac_word" >&5
272 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
273 echo $ac_n "(cached) $ac_c" 1>&6
276 # Extract the first word of "ar", so it can be a program name with args.
277 set dummy ar; ac_word=$2
278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
279 ! echo "configure:1074: checking for $ac_word" >&5
280 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
281 echo $ac_n "(cached) $ac_c" 1>&6
285 # Extract the first word of "$ac_prog", so it can be a program name with args.
286 set dummy $ac_prog; ac_word=$2
287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
288 ! echo "configure:1125: checking for $ac_word" >&5
289 if eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
290 echo $ac_n "(cached) $ac_c" 1>&6
293 # Extract the first word of "$ac_prog", so it can be a program name with args.
294 set dummy $ac_prog; ac_word=$2
295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
296 ! echo "configure:1133: checking for $ac_word" >&5
297 if eval "test \"`echo '$''{'ac_cv_path_ETAGS'+set}'`\" = set"; then
298 echo $ac_n "(cached) $ac_c" 1>&6
303 if test "X$ETAGS" != "X"; then
304 echo $ac_n "checking for Exuberant Ctags etags""... $ac_c" 1>&6
305 ! echo "configure:1167: checking for Exuberant Ctags etags" >&5
306 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
307 echo "$ac_t""yes" 1>&6
311 if test "X$ETAGS" != "X"; then
312 echo $ac_n "checking for Exuberant Ctags etags""... $ac_c" 1>&6
313 ! echo "configure:1175: checking for Exuberant Ctags etags" >&5
314 if $ETAGS --version 2>&1 | grep 'Exuberant Ctags' >/dev/null 2>&1; then
315 echo "$ac_t""yes" 1>&6
319 # Extract the first word of "$ac_prog", so it can be a program name with args.
320 set dummy $ac_prog; ac_word=$2
321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
322 ! echo "configure:1185: checking for $ac_word" >&5
323 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
324 echo $ac_n "(cached) $ac_c" 1>&6
327 # Extract the first word of "$ac_prog", so it can be a program name with args.
328 set dummy $ac_prog; ac_word=$2
329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
330 ! echo "configure:1193: checking for $ac_word" >&5
331 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
332 echo $ac_n "(cached) $ac_c" 1>&6
336 # Extract the first word of "gcc", so it can be a program name with args.
337 set dummy gcc; ac_word=$2
338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
339 ! echo "configure:1332: checking for $ac_word" >&5
340 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
341 echo $ac_n "(cached) $ac_c" 1>&6
344 # Extract the first word of "gcc", so it can be a program name with args.
345 set dummy gcc; ac_word=$2
346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
347 ! echo "configure:1340: checking for $ac_word" >&5
348 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
349 echo $ac_n "(cached) $ac_c" 1>&6
353 # Extract the first word of "cc", so it can be a program name with args.
354 set dummy cc; ac_word=$2
355 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
356 ! echo "configure:1362: checking for $ac_word" >&5
357 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
358 echo $ac_n "(cached) $ac_c" 1>&6
361 # Extract the first word of "cc", so it can be a program name with args.
362 set dummy cc; ac_word=$2
363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
364 ! echo "configure:1370: checking for $ac_word" >&5
365 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
366 echo $ac_n "(cached) $ac_c" 1>&6
370 # Extract the first word of "cl", so it can be a program name with args.
371 set dummy cl; ac_word=$2
372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
373 ! echo "configure:1413: checking for $ac_word" >&5
374 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
375 echo $ac_n "(cached) $ac_c" 1>&6
378 # Extract the first word of "cl", so it can be a program name with args.
379 set dummy cl; ac_word=$2
380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
381 ! echo "configure:1421: checking for $ac_word" >&5
382 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
383 echo $ac_n "(cached) $ac_c" 1>&6
389 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
390 ! echo "configure:1445: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
393 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
397 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
398 ! echo "configure:1453: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
405 cat > conftest.$ac_ext << EOF
407 ! #line 1456 "configure"
408 #include "confdefs.h"
412 ! if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
413 ac_cv_prog_cc_works=yes
414 # If we can't run a trivial program, we are probably using a cross compiler.
415 if (./conftest; exit) 2>/dev/null; then
418 cat > conftest.$ac_ext << EOF
420 ! #line 1464 "configure"
421 #include "confdefs.h"
425 ! if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
426 ac_cv_prog_cc_works=yes
427 # If we can't run a trivial program, we are probably using a cross compiler.
428 if (./conftest; exit) 2>/dev/null; then
431 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
433 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
434 ! echo "configure:1487: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
435 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
436 cross_compiling=$ac_cv_prog_cc_cross
438 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
439 ! echo "configure:1492: checking whether we are using GNU C" >&5
440 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
441 echo $ac_n "(cached) $ac_c" 1>&6
444 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
446 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
447 ! echo "configure:1495: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
448 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
449 cross_compiling=$ac_cv_prog_cc_cross
451 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
452 ! echo "configure:1500: checking whether we are using GNU C" >&5
453 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
454 echo $ac_n "(cached) $ac_c" 1>&6
461 ! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
469 ! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
475 ac_save_CFLAGS="$CFLAGS"
477 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
478 ! echo "configure:1520: checking whether ${CC-cc} accepts -g" >&5
479 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
480 echo $ac_n "(cached) $ac_c" 1>&6
483 ac_save_CFLAGS="$CFLAGS"
485 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
486 ! echo "configure:1528: checking whether ${CC-cc} accepts -g" >&5
487 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
488 echo $ac_n "(cached) $ac_c" 1>&6
494 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
495 ! echo "configure:1553: checking how to run the C preprocessor" >&5
496 # On Suns, sometimes $CPP names a directory.
497 if test -n "$CPP" && test -d "$CPP"; then
502 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
503 ! echo "configure:1561: checking how to run the C preprocessor" >&5
504 # On Suns, sometimes $CPP names a directory.
505 if test -n "$CPP" && test -d "$CPP"; then
509 # On the NeXT, cc -E runs the code through the compiler's parser,
510 # not just through cpp.
511 cat > conftest.$ac_ext <<EOF
512 ! #line 1568 "configure"
513 #include "confdefs.h"
517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
518 ! { (eval echo configure:1574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
520 if test -z "$ac_err"; then
523 # On the NeXT, cc -E runs the code through the compiler's parser,
524 # not just through cpp.
525 cat > conftest.$ac_ext <<EOF
526 ! #line 1576 "configure"
527 #include "confdefs.h"
531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
532 ! { (eval echo configure:1582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
534 if test -z "$ac_err"; then
539 CPP="${CC-cc} -E -traditional-cpp"
540 cat > conftest.$ac_ext <<EOF
541 ! #line 1585 "configure"
542 #include "confdefs.h"
546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
547 ! { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
549 if test -z "$ac_err"; then
553 CPP="${CC-cc} -E -traditional-cpp"
554 cat > conftest.$ac_ext <<EOF
555 ! #line 1593 "configure"
556 #include "confdefs.h"
560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
561 ! { (eval echo configure:1599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
563 if test -z "$ac_err"; then
568 CPP="${CC-cc} -nologo -E"
569 cat > conftest.$ac_ext <<EOF
570 ! #line 1602 "configure"
571 #include "confdefs.h"
575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
576 ! { (eval echo configure:1608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
578 if test -z "$ac_err"; then
582 CPP="${CC-cc} -nologo -E"
583 cat > conftest.$ac_ext <<EOF
584 ! #line 1610 "configure"
585 #include "confdefs.h"
589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
590 ! { (eval echo configure:1616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
592 if test -z "$ac_err"; then
596 echo "$ac_t""$CPP" 1>&6
598 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
599 ! echo "configure:1633: checking for ANSI C header files" >&5
600 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
601 echo $ac_n "(cached) $ac_c" 1>&6
603 cat > conftest.$ac_ext <<EOF
604 ! #line 1638 "configure"
605 #include "confdefs.h"
609 echo "$ac_t""$CPP" 1>&6
611 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
612 ! echo "configure:1641: checking for ANSI C header files" >&5
613 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
614 echo $ac_n "(cached) $ac_c" 1>&6
616 cat > conftest.$ac_ext <<EOF
617 ! #line 1646 "configure"
618 #include "confdefs.h"
625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
626 ! { (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
628 if test -z "$ac_err"; then
633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
634 ! { (eval echo configure:1654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
636 if test -z "$ac_err"; then
640 if test $ac_cv_header_stdc = yes; then
641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
642 cat > conftest.$ac_ext <<EOF
643 ! #line 1663 "configure"
644 #include "confdefs.h"
648 if test $ac_cv_header_stdc = yes; then
649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
650 cat > conftest.$ac_ext <<EOF
651 ! #line 1671 "configure"
652 #include "confdefs.h"
657 if test $ac_cv_header_stdc = yes; then
658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
659 cat > conftest.$ac_ext <<EOF
660 ! #line 1681 "configure"
661 #include "confdefs.h"
665 if test $ac_cv_header_stdc = yes; then
666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
667 cat > conftest.$ac_ext <<EOF
668 ! #line 1689 "configure"
669 #include "confdefs.h"
676 cat > conftest.$ac_ext <<EOF
677 ! #line 1702 "configure"
678 #include "confdefs.h"
680 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
684 cat > conftest.$ac_ext <<EOF
685 ! #line 1710 "configure"
686 #include "confdefs.h"
688 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
694 ! if { (eval echo configure:1713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
702 ! if { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
711 ! echo "configure:1741: checking for $ac_hdr" >&5
712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
715 cat > conftest.$ac_ext <<EOF
716 ! #line 1746 "configure"
717 #include "confdefs.h"
720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
721 ! { (eval echo configure:1751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
723 if test -z "$ac_err"; then
727 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
729 ! echo "configure:1749: checking for $ac_hdr" >&5
730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
733 cat > conftest.$ac_ext <<EOF
734 ! #line 1754 "configure"
735 #include "confdefs.h"
738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
739 ! { (eval echo configure:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
741 if test -z "$ac_err"; then
747 echo $ac_n "checking for working const""... $ac_c" 1>&6
748 ! echo "configure:1779: checking for working const" >&5
749 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
752 cat > conftest.$ac_ext <<EOF
753 ! #line 1784 "configure"
754 #include "confdefs.h"
760 echo $ac_n "checking for working const""... $ac_c" 1>&6
761 ! echo "configure:1787: checking for working const" >&5
762 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
763 echo $ac_n "(cached) $ac_c" 1>&6
765 cat > conftest.$ac_ext <<EOF
766 ! #line 1792 "configure"
767 #include "confdefs.h"
775 ! if { (eval echo configure:1833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
783 ! if { (eval echo configure:1841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
791 echo $ac_n "checking for inline""... $ac_c" 1>&6
792 ! echo "configure:1854: checking for inline" >&5
793 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
794 echo $ac_n "(cached) $ac_c" 1>&6
797 for ac_kw in inline __inline__ __inline; do
798 cat > conftest.$ac_ext <<EOF
799 ! #line 1861 "configure"
800 #include "confdefs.h"
806 ! if { (eval echo configure:1868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
808 ac_cv_c_inline=$ac_kw; break
813 echo $ac_n "checking for inline""... $ac_c" 1>&6
814 ! echo "configure:1862: checking for inline" >&5
815 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
816 echo $ac_n "(cached) $ac_c" 1>&6
819 for ac_kw in inline __inline__ __inline; do
820 cat > conftest.$ac_ext <<EOF
821 ! #line 1869 "configure"
822 #include "confdefs.h"
828 ! if { (eval echo configure:1876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
830 ac_cv_c_inline=$ac_kw; break
836 echo $ac_n "checking for sysctlbyname""... $ac_c" 1>&6
837 ! echo "configure:1894: checking for sysctlbyname" >&5
838 if eval "test \"`echo '$''{'ac_cv_func_sysctlbyname'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 cat > conftest.$ac_ext <<EOF
842 ! #line 1899 "configure"
843 #include "confdefs.h"
844 /* System header to define __stub macros and hopefully few prototypes,
845 which can conflict with char sysctlbyname(); below. */
849 echo $ac_n "checking for sysctlbyname""... $ac_c" 1>&6
850 ! echo "configure:1902: checking for sysctlbyname" >&5
851 if eval "test \"`echo '$''{'ac_cv_func_sysctlbyname'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
854 cat > conftest.$ac_ext <<EOF
855 ! #line 1907 "configure"
856 #include "confdefs.h"
857 /* System header to define __stub macros and hopefully few prototypes,
858 which can conflict with char sysctlbyname(); below. */
864 ! if { (eval echo configure:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
866 eval "ac_cv_func_sysctlbyname=yes"
872 ! if { (eval echo configure:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
874 eval "ac_cv_func_sysctlbyname=yes"
878 # is reported to not support "static inline" (RT #1212).
880 echo $ac_n "checking for static inline breakage""... $ac_c" 1>&6
881 ! echo "configure:1950: checking for static inline breakage" >&5
882 cat > conftest.$ac_ext <<EOF
883 ! #line 1952 "configure"
884 #include "confdefs.h"
888 # is reported to not support "static inline" (RT #1212).
890 echo $ac_n "checking for static inline breakage""... $ac_c" 1>&6
891 ! echo "configure:1958: checking for static inline breakage" >&5
892 cat > conftest.$ac_ext <<EOF
893 ! #line 1960 "configure"
894 #include "confdefs.h"
902 ! if { (eval echo configure:1969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
904 echo "$ac_t""no" 1>&6
910 ! if { (eval echo configure:1977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
912 echo "$ac_t""no" 1>&6
918 echo $ac_n "checking for size_t""... $ac_c" 1>&6
919 ! echo "configure:1985: checking for size_t" >&5
920 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
921 echo $ac_n "(cached) $ac_c" 1>&6
923 cat > conftest.$ac_ext <<EOF
924 ! #line 1990 "configure"
925 #include "confdefs.h"
926 #include <sys/types.h>
931 echo $ac_n "checking for size_t""... $ac_c" 1>&6
932 ! echo "configure:1993: checking for size_t" >&5
933 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
936 cat > conftest.$ac_ext <<EOF
937 ! #line 1998 "configure"
938 #include "confdefs.h"
939 #include <sys/types.h>
945 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
946 ! echo "configure:2018: checking for ssize_t" >&5
947 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
950 cat > conftest.$ac_ext <<EOF
951 ! #line 2023 "configure"
952 #include "confdefs.h"
953 #include <sys/types.h>
958 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
959 ! echo "configure:2026: checking for ssize_t" >&5
960 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
963 cat > conftest.$ac_ext <<EOF
964 ! #line 2031 "configure"
965 #include "confdefs.h"
966 #include <sys/types.h>
972 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
973 ! echo "configure:2051: checking whether time.h and sys/time.h may both be included" >&5
974 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 cat > conftest.$ac_ext <<EOF
978 ! #line 2056 "configure"
979 #include "confdefs.h"
980 #include <sys/types.h>
981 #include <sys/time.h>
985 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
986 ! echo "configure:2059: checking whether time.h and sys/time.h may both be included" >&5
987 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
990 cat > conftest.$ac_ext <<EOF
991 ! #line 2064 "configure"
992 #include "confdefs.h"
993 #include <sys/types.h>
994 #include <sys/time.h>
1000 ! if { (eval echo configure:2065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1002 ac_cv_header_time=yes
1008 ! if { (eval echo configure:2073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1010 ac_cv_header_time=yes
1016 echo $ac_n "checking for long long""... $ac_c" 1>&6
1017 ! echo "configure:2086: checking for long long" >&5
1018 cat > conftest.$ac_ext <<EOF
1019 ! #line 2088 "configure"
1020 #include "confdefs.h"
1023 long long i = 0; return (0);
1026 ! if { (eval echo configure:2095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1028 echo "$ac_t""yes" 1>&6
1029 ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1"
1033 echo $ac_n "checking for long long""... $ac_c" 1>&6
1034 ! echo "configure:2094: checking for long long" >&5
1035 cat > conftest.$ac_ext <<EOF
1036 ! #line 2096 "configure"
1037 #include "confdefs.h"
1040 long long i = 0; return (0);
1043 ! if { (eval echo configure:2103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1045 echo "$ac_t""yes" 1>&6
1046 ISC_PLATFORM_HAVELONGLONG="#define ISC_PLATFORM_HAVELONGLONG 1"
1049 case $ac_cv_header_unistd_h in
1051 echo $ac_n "checking if unistd.h defines fd_set""... $ac_c" 1>&6
1052 ! echo "configure:2115: checking if unistd.h defines fd_set" >&5
1053 cat > conftest.$ac_ext <<EOF
1054 ! #line 2117 "configure"
1055 #include "confdefs.h"
1059 case $ac_cv_header_unistd_h in
1061 echo $ac_n "checking if unistd.h defines fd_set""... $ac_c" 1>&6
1062 ! echo "configure:2123: checking if unistd.h defines fd_set" >&5
1063 cat > conftest.$ac_ext <<EOF
1064 ! #line 2125 "configure"
1065 #include "confdefs.h"
1070 fd_set read_set; return (0);
1073 ! if { (eval echo configure:2125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1075 echo "$ac_t""yes" 1>&6
1076 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
1078 fd_set read_set; return (0);
1081 ! if { (eval echo configure:2133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1083 echo "$ac_t""yes" 1>&6
1084 ISC_PLATFORM_NEEDSYSSELECTH="#undef ISC_PLATFORM_NEEDSYSSELECTH"
1087 # Find the machine's endian flavor.
1089 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1090 ! echo "configure:2167: checking whether byte ordering is bigendian" >&5
1091 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 ac_cv_c_bigendian=unknown
1095 # See if sys/param.h defines the BYTE_ORDER macro.
1096 cat > conftest.$ac_ext <<EOF
1097 ! #line 2174 "configure"
1098 #include "confdefs.h"
1099 #include <sys/types.h>
1100 #include <sys/param.h>
1102 # Find the machine's endian flavor.
1104 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1105 ! echo "configure:2175: checking whether byte ordering is bigendian" >&5
1106 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 ac_cv_c_bigendian=unknown
1110 # See if sys/param.h defines the BYTE_ORDER macro.
1111 cat > conftest.$ac_ext <<EOF
1112 ! #line 2182 "configure"
1113 #include "confdefs.h"
1114 #include <sys/types.h>
1115 #include <sys/param.h>
1121 ! if { (eval echo configure:2185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1123 # It does; now see whether it defined to BIG_ENDIAN or not.
1124 cat > conftest.$ac_ext <<EOF
1125 ! #line 2189 "configure"
1126 #include "confdefs.h"
1127 #include <sys/types.h>
1128 #include <sys/param.h>
1133 ! if { (eval echo configure:2193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1135 # It does; now see whether it defined to BIG_ENDIAN or not.
1136 cat > conftest.$ac_ext <<EOF
1137 ! #line 2197 "configure"
1138 #include "confdefs.h"
1139 #include <sys/types.h>
1140 #include <sys/param.h>
1146 ! if { (eval echo configure:2200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1148 ac_cv_c_bigendian=yes
1154 ! if { (eval echo configure:2208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1156 ac_cv_c_bigendian=yes
1160 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1162 cat > conftest.$ac_ext <<EOF
1163 ! #line 2220 "configure"
1164 #include "confdefs.h"
1166 /* Are we little or big endian? From Harbison&Steele. */
1168 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1170 cat > conftest.$ac_ext <<EOF
1171 ! #line 2228 "configure"
1172 #include "confdefs.h"
1174 /* Are we little or big endian? From Harbison&Steele. */
1177 exit (u.c[sizeof (long) - 1] == 1);
1180 ! if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1182 ac_cv_c_bigendian=no
1185 exit (u.c[sizeof (long) - 1] == 1);
1188 ! if { (eval echo configure:2241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1190 ac_cv_c_bigendian=no
1194 # was --with-openssl specified?
1196 echo $ac_n "checking for OpenSSL library""... $ac_c" 1>&6
1197 ! echo "configure:2261: checking for OpenSSL library" >&5
1198 # Check whether --with-openssl or --without-openssl was given.
1199 if test "${with_openssl+set}" = set; then
1200 withval="$with_openssl"
1202 # was --with-openssl specified?
1204 echo $ac_n "checking for OpenSSL library""... $ac_c" 1>&6
1205 ! echo "configure:2269: checking for OpenSSL library" >&5
1206 # Check whether --with-openssl or --without-openssl was given.
1207 if test "${with_openssl+set}" = set; then
1208 withval="$with_openssl"
1211 echo "$ac_t""using openssl from $use_openssl/lib and $use_openssl/include" 1>&6
1213 echo $ac_n "checking OpenSSL library version""... $ac_c" 1>&6
1214 ! echo "configure:2302: checking OpenSSL library version" >&5
1215 saved_cflags="$CFLAGS"
1217 CFLAGS="$CFLAGS $DST_OPENSSL_INC"
1219 echo "$ac_t""using openssl from $use_openssl/lib and $use_openssl/include" 1>&6
1221 echo $ac_n "checking OpenSSL library version""... $ac_c" 1>&6
1222 ! echo "configure:2310: checking OpenSSL library version" >&5
1223 saved_cflags="$CFLAGS"
1225 CFLAGS="$CFLAGS $DST_OPENSSL_INC"
1228 echo "$ac_t""assuming target platform has compatible version" 1>&6
1230 cat > conftest.$ac_ext <<EOF
1231 ! #line 2311 "configure"
1232 #include "confdefs.h"
1236 echo "$ac_t""assuming target platform has compatible version" 1>&6
1238 cat > conftest.$ac_ext <<EOF
1239 ! #line 2319 "configure"
1240 #include "confdefs.h"
1248 ! if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1250 echo "$ac_t""ok" 1>&6
1256 ! if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1258 echo "$ac_t""ok" 1>&6
1262 # was --with-randomdev specified?
1264 echo $ac_n "checking for random device""... $ac_c" 1>&6
1265 ! echo "configure:2391: checking for random device" >&5
1266 # Check whether --with-randomdev or --without-randomdev was given.
1267 if test "${with_randomdev+set}" = set; then
1268 withval="$with_randomdev"
1270 # was --with-randomdev specified?
1272 echo $ac_n "checking for random device""... $ac_c" 1>&6
1273 ! echo "configure:2399: checking for random device" >&5
1274 # Check whether --with-randomdev or --without-randomdev was given.
1275 if test "${with_randomdev+set}" = set; then
1276 withval="$with_randomdev"
1280 ac_safe=`echo "$devrandom" | sed 'y%./+-%__p_%'`
1281 echo $ac_n "checking for $devrandom""... $ac_c" 1>&6
1282 ! echo "configure:2415: checking for $devrandom" >&5
1283 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1288 ac_safe=`echo "$devrandom" | sed 'y%./+-%__p_%'`
1289 echo $ac_n "checking for $devrandom""... $ac_c" 1>&6
1290 ! echo "configure:2423: checking for $devrandom" >&5
1291 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1298 echo $ac_n "checking whether to build with thread support""... $ac_c" 1>&6
1299 ! echo "configure:2467: checking whether to build with thread support" >&5
1306 echo $ac_n "checking whether to build with thread support""... $ac_c" 1>&6
1307 ! echo "configure:2475: checking whether to build with thread support" >&5
1313 # experiment with it.
1315 echo $ac_n "checking which NetBSD thread library to use""... $ac_c" 1>&6
1316 ! echo "configure:2555: checking which NetBSD thread library to use" >&5
1318 # Check whether --with-ptl2 or --without-ptl2 was given.
1319 if test "${with_ptl2+set}" = set; then
1321 # experiment with it.
1323 echo $ac_n "checking which NetBSD thread library to use""... $ac_c" 1>&6
1324 ! echo "configure:2563: checking which NetBSD thread library to use" >&5
1326 # Check whether --with-ptl2 or --without-ptl2 was given.
1327 if test "${with_ptl2+set}" = set; then
1332 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1333 ! echo "configure:2594: checking for pthread_create in -lpthread" >&5
1334 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1340 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1341 ! echo "configure:2602: checking for pthread_create in -lpthread" >&5
1342 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1347 ac_save_LIBS="$LIBS"
1348 LIBS="-lpthread $LIBS"
1349 cat > conftest.$ac_ext <<EOF
1350 ! #line 2602 "configure"
1351 #include "confdefs.h"
1352 /* Override any gcc2 internal prototype to avoid an error. */
1353 /* We use char because int might match the return type of a gcc2
1355 ac_save_LIBS="$LIBS"
1356 LIBS="-lpthread $LIBS"
1357 cat > conftest.$ac_ext <<EOF
1358 ! #line 2610 "configure"
1359 #include "confdefs.h"
1360 /* Override any gcc2 internal prototype to avoid an error. */
1361 /* We use char because int might match the return type of a gcc2
1367 ! if { (eval echo configure:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1369 eval "ac_cv_lib_$ac_lib_var=yes"
1375 ! if { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1377 eval "ac_cv_lib_$ac_lib_var=yes"
1382 echo "$ac_t""no" 1>&6
1383 echo $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
1384 ! echo "configure:2639: checking for __pthread_create in -lpthread" >&5
1385 ac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
1386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1390 echo "$ac_t""no" 1>&6
1391 echo $ac_n "checking for __pthread_create in -lpthread""... $ac_c" 1>&6
1392 ! echo "configure:2647: checking for __pthread_create in -lpthread" >&5
1393 ac_lib_var=`echo pthread'_'__pthread_create | sed 'y%./+-%__p_%'`
1394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1398 ac_save_LIBS="$LIBS"
1399 LIBS="-lpthread $LIBS"
1400 cat > conftest.$ac_ext <<EOF
1401 ! #line 2647 "configure"
1402 #include "confdefs.h"
1403 /* Override any gcc2 internal prototype to avoid an error. */
1404 /* We use char because int might match the return type of a gcc2
1406 ac_save_LIBS="$LIBS"
1407 LIBS="-lpthread $LIBS"
1408 cat > conftest.$ac_ext <<EOF
1409 ! #line 2655 "configure"
1410 #include "confdefs.h"
1411 /* Override any gcc2 internal prototype to avoid an error. */
1412 /* We use char because int might match the return type of a gcc2
1418 ! if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1420 eval "ac_cv_lib_$ac_lib_var=yes"
1426 ! if { (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1428 eval "ac_cv_lib_$ac_lib_var=yes"
1433 echo "$ac_t""no" 1>&6
1434 echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
1435 ! echo "configure:2684: checking for __pthread_create_system in -lpthread" >&5
1436 ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
1437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1441 echo "$ac_t""no" 1>&6
1442 echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
1443 ! echo "configure:2692: checking for __pthread_create_system in -lpthread" >&5
1444 ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
1445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1449 ac_save_LIBS="$LIBS"
1450 LIBS="-lpthread $LIBS"
1451 cat > conftest.$ac_ext <<EOF
1452 ! #line 2692 "configure"
1453 #include "confdefs.h"
1454 /* Override any gcc2 internal prototype to avoid an error. */
1455 /* We use char because int might match the return type of a gcc2
1457 ac_save_LIBS="$LIBS"
1458 LIBS="-lpthread $LIBS"
1459 cat > conftest.$ac_ext <<EOF
1460 ! #line 2700 "configure"
1461 #include "confdefs.h"
1462 /* Override any gcc2 internal prototype to avoid an error. */
1463 /* We use char because int might match the return type of a gcc2
1466 __pthread_create_system()
1469 ! if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1471 eval "ac_cv_lib_$ac_lib_var=yes"
1474 __pthread_create_system()
1477 ! if { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1479 eval "ac_cv_lib_$ac_lib_var=yes"
1484 echo "$ac_t""no" 1>&6
1485 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1486 ! echo "configure:2729: checking for pthread_create in -lc_r" >&5
1487 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
1488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1492 echo "$ac_t""no" 1>&6
1493 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1494 ! echo "configure:2737: checking for pthread_create in -lc_r" >&5
1495 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
1496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1500 ac_save_LIBS="$LIBS"
1502 cat > conftest.$ac_ext <<EOF
1503 ! #line 2737 "configure"
1504 #include "confdefs.h"
1505 /* Override any gcc2 internal prototype to avoid an error. */
1506 /* We use char because int might match the return type of a gcc2
1508 ac_save_LIBS="$LIBS"
1510 cat > conftest.$ac_ext <<EOF
1511 ! #line 2745 "configure"
1512 #include "confdefs.h"
1513 /* Override any gcc2 internal prototype to avoid an error. */
1514 /* We use char because int might match the return type of a gcc2
1520 ! if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1522 eval "ac_cv_lib_$ac_lib_var=yes"
1528 ! if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1530 eval "ac_cv_lib_$ac_lib_var=yes"
1535 echo "$ac_t""no" 1>&6
1536 echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
1537 ! echo "configure:2774: checking for pthread_create in -lc" >&5
1538 ac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'`
1539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1543 echo "$ac_t""no" 1>&6
1544 echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
1545 ! echo "configure:2782: checking for pthread_create in -lc" >&5
1546 ac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'`
1547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1551 ac_save_LIBS="$LIBS"
1553 cat > conftest.$ac_ext <<EOF
1554 ! #line 2782 "configure"
1555 #include "confdefs.h"
1556 /* Override any gcc2 internal prototype to avoid an error. */
1557 /* We use char because int might match the return type of a gcc2
1559 ac_save_LIBS="$LIBS"
1561 cat > conftest.$ac_ext <<EOF
1562 ! #line 2790 "configure"
1563 #include "confdefs.h"
1564 /* Override any gcc2 internal prototype to avoid an error. */
1565 /* We use char because int might match the return type of a gcc2
1571 ! if { (eval echo configure:2793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1573 eval "ac_cv_lib_$ac_lib_var=yes"
1579 ! if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1581 eval "ac_cv_lib_$ac_lib_var=yes"
1585 # We'd like to use sigwait() too
1587 echo $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
1588 ! echo "configure:2839: checking for sigwait in -lc" >&5
1589 ac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
1590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1593 # We'd like to use sigwait() too
1595 echo $ac_n "checking for sigwait in -lc""... $ac_c" 1>&6
1596 ! echo "configure:2847: checking for sigwait in -lc" >&5
1597 ac_lib_var=`echo c'_'sigwait | sed 'y%./+-%__p_%'`
1598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1599 echo $ac_n "(cached) $ac_c" 1>&6
1602 ac_save_LIBS="$LIBS"
1604 cat > conftest.$ac_ext <<EOF
1605 ! #line 2847 "configure"
1606 #include "confdefs.h"
1607 /* Override any gcc2 internal prototype to avoid an error. */
1608 /* We use char because int might match the return type of a gcc2
1610 ac_save_LIBS="$LIBS"
1612 cat > conftest.$ac_ext <<EOF
1613 ! #line 2855 "configure"
1614 #include "confdefs.h"
1615 /* Override any gcc2 internal prototype to avoid an error. */
1616 /* We use char because int might match the return type of a gcc2
1622 ! if { (eval echo configure:2858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1624 eval "ac_cv_lib_$ac_lib_var=yes"
1630 ! if { (eval echo configure:2866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1632 eval "ac_cv_lib_$ac_lib_var=yes"
1637 echo "$ac_t""no" 1>&6
1638 echo $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
1639 ! echo "configure:2880: checking for sigwait in -lpthread" >&5
1640 ac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
1641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1645 echo "$ac_t""no" 1>&6
1646 echo $ac_n "checking for sigwait in -lpthread""... $ac_c" 1>&6
1647 ! echo "configure:2888: checking for sigwait in -lpthread" >&5
1648 ac_lib_var=`echo pthread'_'sigwait | sed 'y%./+-%__p_%'`
1649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1653 ac_save_LIBS="$LIBS"
1654 LIBS="-lpthread $LIBS"
1655 cat > conftest.$ac_ext <<EOF
1656 ! #line 2888 "configure"
1657 #include "confdefs.h"
1658 /* Override any gcc2 internal prototype to avoid an error. */
1659 /* We use char because int might match the return type of a gcc2
1661 ac_save_LIBS="$LIBS"
1662 LIBS="-lpthread $LIBS"
1663 cat > conftest.$ac_ext <<EOF
1664 ! #line 2896 "configure"
1665 #include "confdefs.h"
1666 /* Override any gcc2 internal prototype to avoid an error. */
1667 /* We use char because int might match the return type of a gcc2
1673 ! if { (eval echo configure:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1675 eval "ac_cv_lib_$ac_lib_var=yes"
1681 ! if { (eval echo configure:2907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1683 eval "ac_cv_lib_$ac_lib_var=yes"
1688 echo "$ac_t""no" 1>&6
1689 echo $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
1690 ! echo "configure:2921: checking for _Psigwait in -lpthread" >&5
1691 ac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
1692 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1696 echo "$ac_t""no" 1>&6
1697 echo $ac_n "checking for _Psigwait in -lpthread""... $ac_c" 1>&6
1698 ! echo "configure:2929: checking for _Psigwait in -lpthread" >&5
1699 ac_lib_var=`echo pthread'_'_Psigwait | sed 'y%./+-%__p_%'`
1700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1704 ac_save_LIBS="$LIBS"
1705 LIBS="-lpthread $LIBS"
1706 cat > conftest.$ac_ext <<EOF
1707 ! #line 2929 "configure"
1708 #include "confdefs.h"
1709 /* Override any gcc2 internal prototype to avoid an error. */
1710 /* We use char because int might match the return type of a gcc2
1712 ac_save_LIBS="$LIBS"
1713 LIBS="-lpthread $LIBS"
1714 cat > conftest.$ac_ext <<EOF
1715 ! #line 2937 "configure"
1716 #include "confdefs.h"
1717 /* Override any gcc2 internal prototype to avoid an error. */
1718 /* We use char because int might match the return type of a gcc2
1724 ! if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1726 eval "ac_cv_lib_$ac_lib_var=yes"
1732 ! if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1734 eval "ac_cv_lib_$ac_lib_var=yes"
1740 echo $ac_n "checking for pthread_attr_getstacksize""... $ac_c" 1>&6
1741 ! echo "configure:2970: checking for pthread_attr_getstacksize" >&5
1742 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getstacksize'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1745 cat > conftest.$ac_ext <<EOF
1746 ! #line 2975 "configure"
1747 #include "confdefs.h"
1748 /* System header to define __stub macros and hopefully few prototypes,
1749 which can conflict with char pthread_attr_getstacksize(); below. */
1753 echo $ac_n "checking for pthread_attr_getstacksize""... $ac_c" 1>&6
1754 ! echo "configure:2978: checking for pthread_attr_getstacksize" >&5
1755 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getstacksize'+set}'`\" = set"; then
1756 echo $ac_n "(cached) $ac_c" 1>&6
1758 cat > conftest.$ac_ext <<EOF
1759 ! #line 2983 "configure"
1760 #include "confdefs.h"
1761 /* System header to define __stub macros and hopefully few prototypes,
1762 which can conflict with char pthread_attr_getstacksize(); below. */
1768 ! if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1770 eval "ac_cv_func_pthread_attr_getstacksize=yes"
1776 ! if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1778 eval "ac_cv_func_pthread_attr_getstacksize=yes"
1784 echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
1785 ! echo "configure:3030: checking for sigwait in -lc_r" >&5
1786 ac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
1787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1792 echo $ac_n "checking for sigwait in -lc_r""... $ac_c" 1>&6
1793 ! echo "configure:3038: checking for sigwait in -lc_r" >&5
1794 ac_lib_var=`echo c_r'_'sigwait | sed 'y%./+-%__p_%'`
1795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1799 ac_save_LIBS="$LIBS"
1801 cat > conftest.$ac_ext <<EOF
1802 ! #line 3038 "configure"
1803 #include "confdefs.h"
1804 /* Override any gcc2 internal prototype to avoid an error. */
1805 /* We use char because int might match the return type of a gcc2
1807 ac_save_LIBS="$LIBS"
1809 cat > conftest.$ac_ext <<EOF
1810 ! #line 3046 "configure"
1811 #include "confdefs.h"
1812 /* Override any gcc2 internal prototype to avoid an error. */
1813 /* We use char because int might match the return type of a gcc2
1819 ! if { (eval echo configure:3049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1821 eval "ac_cv_lib_$ac_lib_var=yes"
1827 ! if { (eval echo configure:3057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1829 eval "ac_cv_lib_$ac_lib_var=yes"
1835 echo $ac_n "checking for pthread_setconcurrency""... $ac_c" 1>&6
1836 ! echo "configure:3104: checking for pthread_setconcurrency" >&5
1837 if eval "test \"`echo '$''{'ac_cv_func_pthread_setconcurrency'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.$ac_ext <<EOF
1841 ! #line 3109 "configure"
1842 #include "confdefs.h"
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char pthread_setconcurrency(); below. */
1848 echo $ac_n "checking for pthread_setconcurrency""... $ac_c" 1>&6
1849 ! echo "configure:3112: checking for pthread_setconcurrency" >&5
1850 if eval "test \"`echo '$''{'ac_cv_func_pthread_setconcurrency'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 cat > conftest.$ac_ext <<EOF
1854 ! #line 3117 "configure"
1855 #include "confdefs.h"
1856 /* System header to define __stub macros and hopefully few prototypes,
1857 which can conflict with char pthread_setconcurrency(); below. */
1863 ! if { (eval echo configure:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1865 eval "ac_cv_func_pthread_setconcurrency=yes"
1871 ! if { (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1873 eval "ac_cv_func_pthread_setconcurrency=yes"
1877 # Look for sysconf to allow detection of the number of processors.
1879 echo $ac_n "checking for sysconf""... $ac_c" 1>&6
1880 ! echo "configure:3170: checking for sysconf" >&5
1881 if eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 cat > conftest.$ac_ext <<EOF
1885 ! #line 3175 "configure"
1886 #include "confdefs.h"
1887 /* System header to define __stub macros and hopefully few prototypes,
1888 which can conflict with char sysconf(); below. */
1890 # Look for sysconf to allow detection of the number of processors.
1892 echo $ac_n "checking for sysconf""... $ac_c" 1>&6
1893 ! echo "configure:3178: checking for sysconf" >&5
1894 if eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
1895 echo $ac_n "(cached) $ac_c" 1>&6
1897 cat > conftest.$ac_ext <<EOF
1898 ! #line 3183 "configure"
1899 #include "confdefs.h"
1900 /* System header to define __stub macros and hopefully few prototypes,
1901 which can conflict with char sysconf(); below. */
1907 ! if { (eval echo configure:3198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1909 eval "ac_cv_func_sysconf=yes"
1915 ! if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1917 eval "ac_cv_func_sysconf=yes"
1923 echo $ac_n "checking for flockfile""... $ac_c" 1>&6
1924 ! echo "configure:3279: checking for flockfile" >&5
1925 if eval "test \"`echo '$''{'ac_cv_func_flockfile'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 cat > conftest.$ac_ext <<EOF
1929 ! #line 3284 "configure"
1930 #include "confdefs.h"
1931 /* System header to define __stub macros and hopefully few prototypes,
1932 which can conflict with char flockfile(); below. */
1936 echo $ac_n "checking for flockfile""... $ac_c" 1>&6
1937 ! echo "configure:3287: checking for flockfile" >&5
1938 if eval "test \"`echo '$''{'ac_cv_func_flockfile'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1941 cat > conftest.$ac_ext <<EOF
1942 ! #line 3292 "configure"
1943 #include "confdefs.h"
1944 /* System header to define __stub macros and hopefully few prototypes,
1945 which can conflict with char flockfile(); below. */
1951 ! if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1953 eval "ac_cv_func_flockfile=yes"
1959 ! if { (eval echo configure:3315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1961 eval "ac_cv_func_flockfile=yes"
1967 echo $ac_n "checking for getc_unlocked""... $ac_c" 1>&6
1968 ! echo "configure:3330: checking for getc_unlocked" >&5
1969 if eval "test \"`echo '$''{'ac_cv_func_getc_unlocked'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1972 cat > conftest.$ac_ext <<EOF
1973 ! #line 3335 "configure"
1974 #include "confdefs.h"
1975 /* System header to define __stub macros and hopefully few prototypes,
1976 which can conflict with char getc_unlocked(); below. */
1980 echo $ac_n "checking for getc_unlocked""... $ac_c" 1>&6
1981 ! echo "configure:3338: checking for getc_unlocked" >&5
1982 if eval "test \"`echo '$''{'ac_cv_func_getc_unlocked'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 cat > conftest.$ac_ext <<EOF
1986 ! #line 3343 "configure"
1987 #include "confdefs.h"
1988 /* System header to define __stub macros and hopefully few prototypes,
1989 which can conflict with char getc_unlocked(); below. */
1995 ! if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1997 eval "ac_cv_func_getc_unlocked=yes"
2003 ! if { (eval echo configure:3366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2005 eval "ac_cv_func_getc_unlocked=yes"
2009 # Indicate what the final decision was regarding threads.
2011 echo $ac_n "checking whether to build with threads""... $ac_c" 1>&6
2012 ! echo "configure:3385: checking whether to build with threads" >&5
2013 if $use_threads; then
2014 echo "$ac_t""yes" 1>&6
2017 # Indicate what the final decision was regarding threads.
2019 echo $ac_n "checking whether to build with threads""... $ac_c" 1>&6
2020 ! echo "configure:3393: checking whether to build with threads" >&5
2021 if $use_threads; then
2022 echo "$ac_t""yes" 1>&6
2028 echo $ac_n "checking for catgets""... $ac_c" 1>&6
2029 ! echo "configure:3461: checking for catgets" >&5
2030 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 cat > conftest.$ac_ext <<EOF
2034 ! #line 3466 "configure"
2035 #include "confdefs.h"
2036 /* System header to define __stub macros and hopefully few prototypes,
2037 which can conflict with char catgets(); below. */
2041 echo $ac_n "checking for catgets""... $ac_c" 1>&6
2042 ! echo "configure:3469: checking for catgets" >&5
2043 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 cat > conftest.$ac_ext <<EOF
2047 ! #line 3474 "configure"
2048 #include "confdefs.h"
2049 /* System header to define __stub macros and hopefully few prototypes,
2050 which can conflict with char catgets(); below. */
2056 ! if { (eval echo configure:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2058 eval "ac_cv_func_catgets=yes"
2064 ! if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2066 eval "ac_cv_func_catgets=yes"
2072 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2073 ! echo "configure:3527: checking for socket in -lsocket" >&5
2074 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2080 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2081 ! echo "configure:3535: checking for socket in -lsocket" >&5
2082 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2087 ac_save_LIBS="$LIBS"
2088 LIBS="-lsocket $LIBS"
2089 cat > conftest.$ac_ext <<EOF
2090 ! #line 3535 "configure"
2091 #include "confdefs.h"
2092 /* Override any gcc2 internal prototype to avoid an error. */
2093 /* We use char because int might match the return type of a gcc2
2095 ac_save_LIBS="$LIBS"
2096 LIBS="-lsocket $LIBS"
2097 cat > conftest.$ac_ext <<EOF
2098 ! #line 3543 "configure"
2099 #include "confdefs.h"
2100 /* Override any gcc2 internal prototype to avoid an error. */
2101 /* We use char because int might match the return type of a gcc2
2107 ! if { (eval echo configure:3546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2109 eval "ac_cv_lib_$ac_lib_var=yes"
2115 ! if { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2117 eval "ac_cv_lib_$ac_lib_var=yes"
2123 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
2124 ! echo "configure:3574: checking for inet_ntoa in -lnsl" >&5
2125 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
2126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2131 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
2132 ! echo "configure:3582: checking for inet_ntoa in -lnsl" >&5
2133 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
2134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2138 ac_save_LIBS="$LIBS"
2140 cat > conftest.$ac_ext <<EOF
2141 ! #line 3582 "configure"
2142 #include "confdefs.h"
2143 /* Override any gcc2 internal prototype to avoid an error. */
2144 /* We use char because int might match the return type of a gcc2
2146 ac_save_LIBS="$LIBS"
2148 cat > conftest.$ac_ext <<EOF
2149 ! #line 3590 "configure"
2150 #include "confdefs.h"
2151 /* Override any gcc2 internal prototype to avoid an error. */
2152 /* We use char because int might match the return type of a gcc2
2158 ! if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2160 eval "ac_cv_lib_$ac_lib_var=yes"
2166 ! if { (eval echo configure:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2168 eval "ac_cv_lib_$ac_lib_var=yes"
2174 echo $ac_n "checking whether to use purify""... $ac_c" 1>&6
2175 ! echo "configure:3627: checking whether to use purify" >&5
2176 # Check whether --with-purify or --without-purify was given.
2177 if test "${with_purify+set}" = set; then
2178 withval="$with_purify"
2182 echo $ac_n "checking whether to use purify""... $ac_c" 1>&6
2183 ! echo "configure:3635: checking whether to use purify" >&5
2184 # Check whether --with-purify or --without-purify was given.
2185 if test "${with_purify+set}" = set; then
2186 withval="$with_purify"
2189 # Extract the first word of "purify", so it can be a program name with args.
2190 set dummy purify; ac_word=$2
2191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2192 ! echo "configure:3644: checking for $ac_word" >&5
2193 if eval "test \"`echo '$''{'ac_cv_path_purify_path'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2197 # Extract the first word of "purify", so it can be a program name with args.
2198 set dummy purify; ac_word=$2
2199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2200 ! echo "configure:3652: checking for $ac_word" >&5
2201 if eval "test \"`echo '$''{'ac_cv_path_purify_path'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2206 case $use_libtool in
2208 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2209 ! echo "configure:3721: checking for Cygwin environment" >&5
2210 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2213 cat > conftest.$ac_ext <<EOF
2214 ! #line 3726 "configure"
2215 #include "confdefs.h"
2219 case $use_libtool in
2221 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2222 ! echo "configure:3729: checking for Cygwin environment" >&5
2223 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 cat > conftest.$ac_ext <<EOF
2227 ! #line 3734 "configure"
2228 #include "confdefs.h"
2236 ! if { (eval echo configure:3737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2244 ! if { (eval echo configure:3745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2251 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2252 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2253 ! echo "configure:3754: checking for mingw32 environment" >&5
2254 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6
2257 cat > conftest.$ac_ext <<EOF
2258 ! #line 3759 "configure"
2259 #include "confdefs.h"
2265 ! if { (eval echo configure:3766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2271 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2272 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2273 ! echo "configure:3762: checking for mingw32 environment" >&5
2274 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 cat > conftest.$ac_ext <<EOF
2278 ! #line 3767 "configure"
2279 #include "confdefs.h"
2285 ! if { (eval echo configure:3774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2293 echo $ac_n "checking build system type""... $ac_c" 1>&6
2294 ! echo "configure:3852: checking build system type" >&5
2297 case "$build_alias" in
2301 echo $ac_n "checking build system type""... $ac_c" 1>&6
2302 ! echo "configure:3860: checking build system type" >&5
2305 case "$build_alias" in
2308 if test "$GCC" = yes; then
2309 # Check if gcc -print-prog-name=ld gives a path.
2310 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2311 ! echo "configure:3881: checking for ld used by GCC" >&5
2314 # gcc leaves a trailing carriage return which upsets mingw
2316 if test "$GCC" = yes; then
2317 # Check if gcc -print-prog-name=ld gives a path.
2318 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2319 ! echo "configure:3889: checking for ld used by GCC" >&5
2322 # gcc leaves a trailing carriage return which upsets mingw
2326 elif test "$with_gnu_ld" = yes; then
2327 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2328 ! echo "configure:3911: checking for GNU ld" >&5
2330 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2331 ! echo "configure:3914: checking for non-GNU ld" >&5
2333 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2337 elif test "$with_gnu_ld" = yes; then
2338 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2339 ! echo "configure:3919: checking for GNU ld" >&5
2341 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2342 ! echo "configure:3922: checking for non-GNU ld" >&5
2344 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2349 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2350 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2351 ! echo "configure:3949: checking if the linker ($LD) is GNU ld" >&5
2352 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2357 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2358 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2359 ! echo "configure:3957: checking if the linker ($LD) is GNU ld" >&5
2360 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2367 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
2368 ! echo "configure:3966: checking for $LD option to reload object files" >&5
2369 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2375 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
2376 ! echo "configure:3974: checking for $LD option to reload object files" >&5
2377 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2382 test -n "$reload_flag" && reload_flag=" $reload_flag"
2384 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2385 ! echo "configure:3978: checking for BSD-compatible nm" >&5
2386 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2390 test -n "$reload_flag" && reload_flag=" $reload_flag"
2392 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2393 ! echo "configure:3986: checking for BSD-compatible nm" >&5
2394 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2399 echo "$ac_t""$NM" 1>&6
2401 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2402 ! echo "configure:4016: checking whether ln -s works" >&5
2403 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2407 echo "$ac_t""$NM" 1>&6
2409 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2410 ! echo "configure:4024: checking whether ln -s works" >&5
2411 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2418 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2419 ! echo "configure:4037: checking how to recognise dependant libraries" >&5
2420 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2426 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2427 ! echo "configure:4045: checking how to recognise dependant libraries" >&5
2428 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2433 deplibs_check_method=$lt_cv_deplibs_check_method
2435 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2436 ! echo "configure:4210: checking for object suffix" >&5
2437 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2441 echo 'int i = 1;' > conftest.$ac_ext
2442 ! if { (eval echo configure:4216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2443 for ac_file in conftest.*; do
2447 deplibs_check_method=$lt_cv_deplibs_check_method
2449 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2450 ! echo "configure:4218: checking for object suffix" >&5
2451 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2455 echo 'int i = 1;' > conftest.$ac_ext
2456 ! if { (eval echo configure:4224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2457 for ac_file in conftest.*; do
2464 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2465 ! echo "configure:4236: checking for executable suffix" >&5
2466 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2472 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2473 ! echo "configure:4244: checking for executable suffix" >&5
2474 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2480 echo 'int main () { return 0; }' > conftest.$ac_ext
2482 ! if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2483 for file in conftest.*; do
2485 ! *.c | *.o | *.obj) ;;
2486 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2491 echo 'int main () { return 0; }' > conftest.$ac_ext
2493 ! if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2494 for file in conftest.*; do
2496 ! *.c | *.C | *.o | *.obj) ;;
2497 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2503 # Check for command to grab the raw symbol name followed by C symbol from nm.
2504 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2505 ! echo "configure:4277: checking command to parse $NM output" >&5
2506 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2511 # Check for command to grab the raw symbol name followed by C symbol from nm.
2512 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2513 ! echo "configure:4285: checking command to parse $NM output" >&5
2514 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2519 int main(){nm_test_var='a';nm_test_func();return(0);}
2522 ! if { (eval echo configure:4353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2523 # Now try to grab the symbols.
2525 ! if { (eval echo configure:4356: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2526 # Try sorting and uniquifying the output.
2527 if sort "$nlist" | uniq > "$nlist"T; then
2528 mv -f "$nlist"T "$nlist"
2530 int main(){nm_test_var='a';nm_test_func();return(0);}
2533 ! if { (eval echo configure:4361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2534 # Now try to grab the symbols.
2536 ! if { (eval echo configure:4364: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2537 # Try sorting and uniquifying the output.
2538 if sort "$nlist" | uniq > "$nlist"T; then
2539 mv -f "$nlist"T "$nlist"
2542 save_CFLAGS="$CFLAGS"
2543 LIBS="conftstm.$ac_objext"
2544 CFLAGS="$CFLAGS$no_builtin_flag"
2545 ! if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2550 save_CFLAGS="$CFLAGS"
2551 LIBS="conftstm.$ac_objext"
2552 CFLAGS="$CFLAGS$no_builtin_flag"
2553 ! if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2560 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2562 ! echo "configure:4453: checking for $ac_hdr" >&5
2563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2566 cat > conftest.$ac_ext <<EOF
2567 ! #line 4458 "configure"
2568 #include "confdefs.h"
2571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2572 ! { (eval echo configure:4463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2574 if test -z "$ac_err"; then
2578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2580 ! echo "configure:4461: checking for $ac_hdr" >&5
2581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 cat > conftest.$ac_ext <<EOF
2585 ! #line 4466 "configure"
2586 #include "confdefs.h"
2589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2590 ! { (eval echo configure:4471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2592 if test -z "$ac_err"; then
2597 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2598 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2599 ! echo "configure:4498: checking for ${ac_tool_prefix}file" >&5
2600 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2605 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2606 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2607 ! echo "configure:4506: checking for ${ac_tool_prefix}file" >&5
2608 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2613 if test -z "$lt_cv_path_MAGIC_CMD"; then
2614 if test -n "$ac_tool_prefix"; then
2615 echo $ac_n "checking for file""... $ac_c" 1>&6
2616 ! echo "configure:4560: checking for file" >&5
2617 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2621 if test -z "$lt_cv_path_MAGIC_CMD"; then
2622 if test -n "$ac_tool_prefix"; then
2623 echo $ac_n "checking for file""... $ac_c" 1>&6
2624 ! echo "configure:4568: checking for file" >&5
2625 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2633 ! echo "configure:4631: checking for $ac_word" >&5
2634 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2638 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2641 ! echo "configure:4639: checking for $ac_word" >&5
2642 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2647 # Extract the first word of "ranlib", so it can be a program name with args.
2648 set dummy ranlib; ac_word=$2
2649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2650 ! echo "configure:4663: checking for $ac_word" >&5
2651 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2655 # Extract the first word of "ranlib", so it can be a program name with args.
2656 set dummy ranlib; ac_word=$2
2657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2658 ! echo "configure:4671: checking for $ac_word" >&5
2659 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2665 set dummy ${ac_tool_prefix}strip; ac_word=$2
2666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2667 ! echo "configure:4698: checking for $ac_word" >&5
2668 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2673 set dummy ${ac_tool_prefix}strip; ac_word=$2
2674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2675 ! echo "configure:4706: checking for $ac_word" >&5
2676 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2681 # Extract the first word of "strip", so it can be a program name with args.
2682 set dummy strip; ac_word=$2
2683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2684 ! echo "configure:4730: checking for $ac_word" >&5
2685 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2689 # Extract the first word of "strip", so it can be a program name with args.
2690 set dummy strip; ac_word=$2
2691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2692 ! echo "configure:4738: checking for $ac_word" >&5
2693 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2700 # Find out which ABI we are using.
2701 ! echo '#line 4779 "configure"' > conftest.$ac_ext
2702 ! if { (eval echo configure:4780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2703 case `/usr/bin/file conftest.$ac_objext` in
2709 # Find out which ABI we are using.
2710 ! echo '#line 4787 "configure"' > conftest.$ac_ext
2711 ! if { (eval echo configure:4788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2712 case `/usr/bin/file conftest.$ac_objext` in
2717 SAVE_CFLAGS="$CFLAGS"
2718 CFLAGS="$CFLAGS -belf"
2719 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2720 ! echo "configure:4801: checking whether the C compiler needs -belf" >&5
2721 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2725 SAVE_CFLAGS="$CFLAGS"
2726 CFLAGS="$CFLAGS -belf"
2727 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2728 ! echo "configure:4809: checking whether the C compiler needs -belf" >&5
2729 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2734 cross_compiling=$ac_cv_prog_cc_cross
2736 cat > conftest.$ac_ext <<EOF
2737 ! #line 4814 "configure"
2738 #include "confdefs.h"
2744 ! if { (eval echo configure:4821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2746 lt_cv_cc_needs_belf=yes
2749 cross_compiling=$ac_cv_prog_cc_cross
2751 cat > conftest.$ac_ext <<EOF
2752 ! #line 4822 "configure"
2753 #include "confdefs.h"
2759 ! if { (eval echo configure:4829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2761 lt_cv_cc_needs_belf=yes
2765 ## FIXME: this should be a separate macro
2767 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2768 ! echo "configure:4936: checking for objdir" >&5
2769 rm -f .libs 2>/dev/null
2770 mkdir .libs 2>/dev/null
2771 if test -d .libs; then
2773 ## FIXME: this should be a separate macro
2775 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2776 ! echo "configure:4944: checking for objdir" >&5
2777 rm -f .libs 2>/dev/null
2778 mkdir .libs 2>/dev/null
2779 if test -d .libs; then
2782 # in isolation, and that seeing it set (from the cache) indicates that
2783 # the associated values are set (in the cache) correctly too.
2784 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2785 ! echo "configure:4967: checking for $compiler option to produce PIC" >&5
2786 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2790 # in isolation, and that seeing it set (from the cache) indicates that
2791 # the associated values are set (in the cache) correctly too.
2792 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2793 ! echo "configure:4975: checking for $compiler option to produce PIC" >&5
2794 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2800 # Check to make sure the pic_flag actually works.
2801 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2802 ! echo "configure:5119: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2803 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2806 save_CFLAGS="$CFLAGS"
2807 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2808 cat > conftest.$ac_ext <<EOF
2809 ! #line 5126 "configure"
2810 #include "confdefs.h"
2816 ! if { (eval echo configure:5133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2819 hpux9* | hpux10* | hpux11*)
2822 # Check to make sure the pic_flag actually works.
2823 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2824 ! echo "configure:5127: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2825 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 save_CFLAGS="$CFLAGS"
2829 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2830 cat > conftest.$ac_ext <<EOF
2831 ! #line 5134 "configure"
2832 #include "confdefs.h"
2838 ! if { (eval echo configure:5141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2841 hpux9* | hpux10* | hpux11*)
2844 ## FIXME: this should be a separate macro
2846 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2847 ! echo "configure:5189: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2848 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2852 ## FIXME: this should be a separate macro
2854 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2855 ! echo "configure:5197: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2856 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2861 save_LDFLAGS="$LDFLAGS"
2862 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2863 cat > conftest.$ac_ext <<EOF
2864 ! #line 5197 "configure"
2865 #include "confdefs.h"
2871 ! if { (eval echo configure:5204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2873 lt_cv_prog_cc_static_works=yes
2876 save_LDFLAGS="$LDFLAGS"
2877 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2878 cat > conftest.$ac_ext <<EOF
2879 ! #line 5205 "configure"
2880 #include "confdefs.h"
2886 ! if { (eval echo configure:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2888 lt_cv_prog_cc_static_works=yes
2893 # Check to see if options -o and -c are simultaneously supported by compiler
2894 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2895 ! echo "configure:5235: checking if $compiler supports -c -o file.$ac_objext" >&5
2896 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2901 # Check to see if options -o and -c are simultaneously supported by compiler
2902 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2903 ! echo "configure:5243: checking if $compiler supports -c -o file.$ac_objext" >&5
2904 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2909 save_CFLAGS="$CFLAGS"
2910 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2912 ! if { (eval echo configure:5254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2913 # The compiler can only warn and ignore the option if not recognized
2914 # So say no if there are warnings
2915 if test -s out/conftest.err; then
2917 save_CFLAGS="$CFLAGS"
2918 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2920 ! if { (eval echo configure:5262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2921 # The compiler can only warn and ignore the option if not recognized
2922 # So say no if there are warnings
2923 if test -s out/conftest.err; then
2926 if test x"$compiler_c_o" = x"yes"; then
2927 # Check to see if we can write to a .lo
2928 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2929 ! echo "configure:5283: checking if $compiler supports -c -o file.lo" >&5
2930 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2934 if test x"$compiler_c_o" = x"yes"; then
2935 # Check to see if we can write to a .lo
2936 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2937 ! echo "configure:5291: checking if $compiler supports -c -o file.lo" >&5
2938 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2943 save_CFLAGS="$CFLAGS"
2944 CFLAGS="$CFLAGS -c -o conftest.lo"
2945 cat > conftest.$ac_ext <<EOF
2946 ! #line 5292 "configure"
2947 #include "confdefs.h"
2950 int some_variable = 0;
2953 ! if { (eval echo configure:5299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2955 # The compiler can only warn and ignore the option if not recognized
2956 # So say no if there are warnings
2958 save_CFLAGS="$CFLAGS"
2959 CFLAGS="$CFLAGS -c -o conftest.lo"
2960 cat > conftest.$ac_ext <<EOF
2961 ! #line 5300 "configure"
2962 #include "confdefs.h"
2965 int some_variable = 0;
2968 ! if { (eval echo configure:5307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2970 # The compiler can only warn and ignore the option if not recognized
2971 # So say no if there are warnings
2974 if test "$compiler_c_o" = no && test "$need_locks" != no; then
2975 # do not overwrite the value of need_locks provided by the user
2976 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
2977 ! echo "configure:5333: checking if we can lock with hard links" >&5
2980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2982 if test "$compiler_c_o" = no && test "$need_locks" != no; then
2983 # do not overwrite the value of need_locks provided by the user
2984 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
2985 ! echo "configure:5341: checking if we can lock with hard links" >&5
2988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2991 if test "$GCC" = yes; then
2992 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
2993 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
2994 ! echo "configure:5356: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
2995 echo "int some_variable = 0;" > conftest.$ac_ext
2996 save_CFLAGS="$CFLAGS"
2997 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
2998 compiler_rtti_exceptions=no
2999 cat > conftest.$ac_ext <<EOF
3000 ! #line 5362 "configure"
3001 #include "confdefs.h"
3004 int some_variable = 0;
3007 ! if { (eval echo configure:5369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3009 # The compiler can only warn and ignore the option if not recognized
3010 # So say no if there are warnings
3012 if test "$GCC" = yes; then
3013 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3014 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3015 ! echo "configure:5364: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3016 echo "int some_variable = 0;" > conftest.$ac_ext
3017 save_CFLAGS="$CFLAGS"
3018 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3019 compiler_rtti_exceptions=no
3020 cat > conftest.$ac_ext <<EOF
3021 ! #line 5370 "configure"
3022 #include "confdefs.h"
3025 int some_variable = 0;
3028 ! if { (eval echo configure:5377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3030 # The compiler can only warn and ignore the option if not recognized
3031 # So say no if there are warnings
3035 # See if the linker supports building shared libraries.
3036 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3037 ! echo "configure:5400: checking whether the linker ($LD) supports shared libraries" >&5
3039 allow_undefined_flag=
3043 # See if the linker supports building shared libraries.
3044 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3045 ! echo "configure:5408: checking whether the linker ($LD) supports shared libraries" >&5
3047 allow_undefined_flag=
3052 # Check hardcoding attributes.
3053 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3054 ! echo "configure:6020: checking how to hardcode library paths into programs" >&5
3056 if test -n "$hardcode_libdir_flag_spec" || \
3057 test -n "$runpath_var"; then
3060 # Check hardcoding attributes.
3061 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3062 ! echo "configure:6028: checking how to hardcode library paths into programs" >&5
3064 if test -n "$hardcode_libdir_flag_spec" || \
3065 test -n "$runpath_var"; then
3070 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3071 ! echo "configure:6052: checking whether stripping libraries is possible" >&5
3072 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3073 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3074 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3078 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3079 ! echo "configure:6060: checking whether stripping libraries is possible" >&5
3080 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3081 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3082 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3086 # PORTME Fill in your ld.so characteristics
3087 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3088 ! echo "configure:6070: checking dynamic linker characteristics" >&5
3090 libname_spec='lib$name'
3094 # PORTME Fill in your ld.so characteristics
3095 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3096 ! echo "configure:6078: checking dynamic linker characteristics" >&5
3098 libname_spec='lib$name'
3103 # Report the final consequences.
3104 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
3105 ! echo "configure:6460: checking if libtool supports shared libraries" >&5
3106 echo "$ac_t""$can_build_shared" 1>&6
3111 # Report the final consequences.
3112 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
3113 ! echo "configure:6468: checking if libtool supports shared libraries" >&5
3114 echo "$ac_t""$can_build_shared" 1>&6
3121 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3122 ! echo "configure:6501: checking for dlopen in -ldl" >&5
3123 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3125 echo $ac_n "(cached) $ac_c" 1>&6
3129 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3130 ! echo "configure:6509: checking for dlopen in -ldl" >&5
3131 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3136 ac_save_LIBS="$LIBS"
3138 cat > conftest.$ac_ext <<EOF
3139 ! #line 6509 "configure"
3140 #include "confdefs.h"
3141 /* Override any gcc2 internal prototype to avoid an error. */
3142 /* We use char because int might match the return type of a gcc2
3144 ac_save_LIBS="$LIBS"
3146 cat > conftest.$ac_ext <<EOF
3147 ! #line 6517 "configure"
3148 #include "confdefs.h"
3149 /* Override any gcc2 internal prototype to avoid an error. */
3150 /* We use char because int might match the return type of a gcc2
3156 ! if { (eval echo configure:6520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3158 eval "ac_cv_lib_$ac_lib_var=yes"
3164 ! if { (eval echo configure:6528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3166 eval "ac_cv_lib_$ac_lib_var=yes"
3171 echo "$ac_t""no" 1>&6
3172 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
3173 ! echo "configure:6539: checking for dlopen" >&5
3174 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 cat > conftest.$ac_ext <<EOF
3178 ! #line 6544 "configure"
3179 #include "confdefs.h"
3180 /* System header to define __stub macros and hopefully few prototypes,
3181 which can conflict with char dlopen(); below. */
3184 echo "$ac_t""no" 1>&6
3185 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
3186 ! echo "configure:6547: checking for dlopen" >&5
3187 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 cat > conftest.$ac_ext <<EOF
3191 ! #line 6552 "configure"
3192 #include "confdefs.h"
3193 /* System header to define __stub macros and hopefully few prototypes,
3194 which can conflict with char dlopen(); below. */
3200 ! if { (eval echo configure:6567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3202 eval "ac_cv_func_dlopen=yes"
3208 ! if { (eval echo configure:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3210 eval "ac_cv_func_dlopen=yes"
3215 echo "$ac_t""no" 1>&6
3216 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
3217 ! echo "configure:6585: checking for shl_load" >&5
3218 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3221 cat > conftest.$ac_ext <<EOF
3222 ! #line 6590 "configure"
3223 #include "confdefs.h"
3224 /* System header to define __stub macros and hopefully few prototypes,
3225 which can conflict with char shl_load(); below. */
3228 echo "$ac_t""no" 1>&6
3229 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
3230 ! echo "configure:6593: checking for shl_load" >&5
3231 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 cat > conftest.$ac_ext <<EOF
3235 ! #line 6598 "configure"
3236 #include "confdefs.h"
3237 /* System header to define __stub macros and hopefully few prototypes,
3238 which can conflict with char shl_load(); below. */
3244 ! if { (eval echo configure:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3246 eval "ac_cv_func_shl_load=yes"
3252 ! if { (eval echo configure:6621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3254 eval "ac_cv_func_shl_load=yes"
3259 echo "$ac_t""no" 1>&6
3260 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
3261 ! echo "configure:6631: checking for dlopen in -lsvld" >&5
3262 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
3263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3267 echo "$ac_t""no" 1>&6
3268 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
3269 ! echo "configure:6639: checking for dlopen in -lsvld" >&5
3270 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
3271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3272 echo $ac_n "(cached) $ac_c" 1>&6
3275 ac_save_LIBS="$LIBS"
3277 cat > conftest.$ac_ext <<EOF
3278 ! #line 6639 "configure"
3279 #include "confdefs.h"
3280 /* Override any gcc2 internal prototype to avoid an error. */
3281 /* We use char because int might match the return type of a gcc2
3283 ac_save_LIBS="$LIBS"
3285 cat > conftest.$ac_ext <<EOF
3286 ! #line 6647 "configure"
3287 #include "confdefs.h"
3288 /* Override any gcc2 internal prototype to avoid an error. */
3289 /* We use char because int might match the return type of a gcc2
3295 ! if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3297 eval "ac_cv_lib_$ac_lib_var=yes"
3303 ! if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3305 eval "ac_cv_lib_$ac_lib_var=yes"
3310 echo "$ac_t""no" 1>&6
3311 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
3312 ! echo "configure:6669: checking for shl_load in -ldld" >&5
3313 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
3314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3318 echo "$ac_t""no" 1>&6
3319 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
3320 ! echo "configure:6677: checking for shl_load in -ldld" >&5
3321 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
3322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3326 ac_save_LIBS="$LIBS"
3328 cat > conftest.$ac_ext <<EOF
3329 ! #line 6677 "configure"
3330 #include "confdefs.h"
3331 /* Override any gcc2 internal prototype to avoid an error. */
3332 /* We use char because int might match the return type of a gcc2
3334 ac_save_LIBS="$LIBS"
3336 cat > conftest.$ac_ext <<EOF
3337 ! #line 6685 "configure"
3338 #include "confdefs.h"
3339 /* Override any gcc2 internal prototype to avoid an error. */
3340 /* We use char because int might match the return type of a gcc2
3346 ! if { (eval echo configure:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3348 eval "ac_cv_lib_$ac_lib_var=yes"
3354 ! if { (eval echo configure:6696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3356 eval "ac_cv_lib_$ac_lib_var=yes"
3360 LIBS="$lt_cv_dlopen_libs $LIBS"
3362 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
3363 ! echo "configure:6741: checking whether a program can dlopen itself" >&5
3364 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3368 LIBS="$lt_cv_dlopen_libs $LIBS"
3370 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
3371 ! echo "configure:6749: checking whether a program can dlopen itself" >&5
3372 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3378 lt_status=$lt_dlunknown
3379 cat > conftest.$ac_ext <<EOF
3380 ! #line 6751 "configure"
3381 #include "confdefs.h"
3385 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3386 lt_status=$lt_dlunknown
3387 cat > conftest.$ac_ext <<EOF
3388 ! #line 6759 "configure"
3389 #include "confdefs.h"
3397 ! if { (eval echo configure:6812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
3398 (./conftest; exit; ) 2>/dev/null
3405 ! if { (eval echo configure:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
3406 (./conftest; exit; ) 2>/dev/null
3411 if test "x$lt_cv_dlopen_self" = xyes; then
3412 LDFLAGS="$LDFLAGS $link_static_flag"
3413 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
3414 ! echo "configure:6835: checking whether a statically linked program can dlopen itself" >&5
3415 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3419 if test "x$lt_cv_dlopen_self" = xyes; then
3420 LDFLAGS="$LDFLAGS $link_static_flag"
3421 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
3422 ! echo "configure:6843: checking whether a statically linked program can dlopen itself" >&5
3423 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3428 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3429 lt_status=$lt_dlunknown
3430 cat > conftest.$ac_ext <<EOF
3431 ! #line 6845 "configure"
3432 #include "confdefs.h"
3436 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3437 lt_status=$lt_dlunknown
3438 cat > conftest.$ac_ext <<EOF
3439 ! #line 6853 "configure"
3440 #include "confdefs.h"
3448 ! if { (eval echo configure:6906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
3449 (./conftest; exit; ) 2>/dev/null
3456 ! if { (eval echo configure:6914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
3457 (./conftest; exit; ) 2>/dev/null
3462 # systems, -lgcc has to come before -lc. If gcc already passes -lc
3463 # to ld, don't add -lc before -lgcc.
3464 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
3465 ! echo "configure:6957: checking whether -lc should be explicitly linked in" >&5
3466 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3470 echo 'static int dummy;' > conftest.$ac_ext
3472 ! if { (eval echo configure:6964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3475 libobjs=conftest.$ac_objext
3477 # systems, -lgcc has to come before -lc. If gcc already passes -lc
3478 # to ld, don't add -lc before -lgcc.
3479 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
3480 ! echo "configure:6965: checking whether -lc should be explicitly linked in" >&5
3481 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
3482 echo $ac_n "(cached) $ac_c" 1>&6
3485 echo 'static int dummy;' > conftest.$ac_ext
3487 ! if { (eval echo configure:6972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3490 libobjs=conftest.$ac_objext
3494 save_allow_undefined_flag=$allow_undefined_flag
3495 allow_undefined_flag=
3496 ! if { (eval echo configure:6977: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
3498 lt_cv_archive_cmds_need_lc=no
3502 save_allow_undefined_flag=$allow_undefined_flag
3503 allow_undefined_flag=
3504 ! if { (eval echo configure:6985: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
3506 lt_cv_archive_cmds_need_lc=no
3510 # the right suffix on the files.
3512 echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
3513 ! echo "configure:7634: checking for IPv6 structures" >&5
3514 cat > conftest.$ac_ext <<EOF
3515 ! #line 7636 "configure"
3516 #include "confdefs.h"
3518 #include <sys/types.h>
3520 # the right suffix on the files.
3522 echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6
3523 ! echo "configure:7642: checking for IPv6 structures" >&5
3524 cat > conftest.$ac_ext <<EOF
3525 ! #line 7644 "configure"
3526 #include "confdefs.h"
3528 #include <sys/types.h>
3531 struct sockaddr_in6 sin6; return (0);
3534 ! if { (eval echo configure:7646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3536 echo "$ac_t""yes" 1>&6
3539 struct sockaddr_in6 sin6; return (0);
3542 ! if { (eval echo configure:7654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3544 echo "$ac_t""yes" 1>&6
3548 # This is done before other IPv6 linking tests to LIBS is properly set.
3550 echo $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
3551 ! echo "configure:7664: checking for Kame IPv6 support" >&5
3552 # Check whether --with-kame or --without-kame was given.
3553 if test "${with_kame+set}" = set; then
3554 withval="$with_kame"
3556 # This is done before other IPv6 linking tests to LIBS is properly set.
3558 echo $ac_n "checking for Kame IPv6 support""... $ac_c" 1>&6
3559 ! echo "configure:7672: checking for Kame IPv6 support" >&5
3560 # Check whether --with-kame or --without-kame was given.
3561 if test "${with_kame+set}" = set; then
3562 withval="$with_kame"
3565 LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
3567 echo $ac_n "checking for in6_addr""... $ac_c" 1>&6
3568 ! echo "configure:7755: checking for in6_addr" >&5
3569 cat > conftest.$ac_ext <<EOF
3570 ! #line 7757 "configure"
3571 #include "confdefs.h"
3573 #include <sys/types.h>
3575 LWRES_PLATFORM_HAVEIPV6="#define LWRES_PLATFORM_HAVEIPV6 1"
3577 echo $ac_n "checking for in6_addr""... $ac_c" 1>&6
3578 ! echo "configure:7763: checking for in6_addr" >&5
3579 cat > conftest.$ac_ext <<EOF
3580 ! #line 7765 "configure"
3581 #include "confdefs.h"
3583 #include <sys/types.h>
3586 struct in6_addr in6; return (0);
3589 ! if { (eval echo configure:7770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3591 echo "$ac_t""yes" 1>&6
3592 ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
3594 struct in6_addr in6; return (0);
3597 ! if { (eval echo configure:7778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3599 echo "$ac_t""yes" 1>&6
3600 ISC_PLATFORM_HAVEINADDR6="#undef ISC_PLATFORM_HAVEINADDR6"
3605 echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
3606 ! echo "configure:7788: checking for in6addr_any" >&5
3607 cat > conftest.$ac_ext <<EOF
3608 ! #line 7790 "configure"
3609 #include "confdefs.h"
3611 #include <sys/types.h>
3615 echo $ac_n "checking for in6addr_any""... $ac_c" 1>&6
3616 ! echo "configure:7796: checking for in6addr_any" >&5
3617 cat > conftest.$ac_ext <<EOF
3618 ! #line 7798 "configure"
3619 #include "confdefs.h"
3621 #include <sys/types.h>
3624 struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
3627 ! if { (eval echo configure:7804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3629 echo "$ac_t""yes" 1>&6
3630 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
3632 struct in6_addr in6; in6 = in6addr_any; return (in6.s6_addr[0]);
3635 ! if { (eval echo configure:7812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3637 echo "$ac_t""yes" 1>&6
3638 ISC_PLATFORM_NEEDIN6ADDRANY="#undef ISC_PLATFORM_NEEDIN6ADDRANY"
3643 echo $ac_n "checking for in6addr_loopback""... $ac_c" 1>&6
3644 ! echo "configure:7820: checking for in6addr_loopback" >&5
3645 cat > conftest.$ac_ext <<EOF
3646 ! #line 7822 "configure"
3647 #include "confdefs.h"
3649 #include <sys/types.h>
3653 echo $ac_n "checking for in6addr_loopback""... $ac_c" 1>&6
3654 ! echo "configure:7828: checking for in6addr_loopback" >&5
3655 cat > conftest.$ac_ext <<EOF
3656 ! #line 7830 "configure"
3657 #include "confdefs.h"
3659 #include <sys/types.h>
3662 struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]);
3665 ! if { (eval echo configure:7836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3667 echo "$ac_t""yes" 1>&6
3668 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK"
3670 struct in6_addr in6; in6 = in6addr_loopback; return (in6.s6_addr[0]);
3673 ! if { (eval echo configure:7844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3675 echo "$ac_t""yes" 1>&6
3676 ISC_PLATFORM_NEEDIN6ADDRLOOPBACK="#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK"
3681 echo $ac_n "checking for sin6_scope_id in struct sockaddr_in6""... $ac_c" 1>&6
3682 ! echo "configure:7852: checking for sin6_scope_id in struct sockaddr_in6" >&5
3683 cat > conftest.$ac_ext <<EOF
3684 ! #line 7854 "configure"
3685 #include "confdefs.h"
3687 #include <sys/types.h>
3691 echo $ac_n "checking for sin6_scope_id in struct sockaddr_in6""... $ac_c" 1>&6
3692 ! echo "configure:7860: checking for sin6_scope_id in struct sockaddr_in6" >&5
3693 cat > conftest.$ac_ext <<EOF
3694 ! #line 7862 "configure"
3695 #include "confdefs.h"
3697 #include <sys/types.h>
3700 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
3703 ! if { (eval echo configure:7867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3705 echo "$ac_t""yes" 1>&6
3706 result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
3708 struct sockaddr_in6 xyzzy; xyzzy.sin6_scope_id = 0; return (0);
3711 ! if { (eval echo configure:7875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3713 echo "$ac_t""yes" 1>&6
3714 result="#define LWRES_HAVE_SIN6_SCOPE_ID 1"
3717 LWRES_HAVE_SIN6_SCOPE_ID="$result"
3719 echo $ac_n "checking for in6_pktinfo""... $ac_c" 1>&6
3720 ! echo "configure:7882: checking for in6_pktinfo" >&5
3721 cat > conftest.$ac_ext <<EOF
3722 ! #line 7884 "configure"
3723 #include "confdefs.h"
3725 #include <sys/types.h>
3727 LWRES_HAVE_SIN6_SCOPE_ID="$result"
3729 echo $ac_n "checking for in6_pktinfo""... $ac_c" 1>&6
3730 ! echo "configure:7890: checking for in6_pktinfo" >&5
3731 cat > conftest.$ac_ext <<EOF
3732 ! #line 7892 "configure"
3733 #include "confdefs.h"
3735 #include <sys/types.h>
3738 struct in6_pktinfo xyzzy; return (0);
3741 ! if { (eval echo configure:7897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3743 echo "$ac_t""yes" 1>&6
3744 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
3746 struct in6_pktinfo xyzzy; return (0);
3749 ! if { (eval echo configure:7905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3751 echo "$ac_t""yes" 1>&6
3752 ISC_PLATFORM_HAVEIN6PKTINFO="#define ISC_PLATFORM_HAVEIN6PKTINFO 1"
3757 echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
3758 ! echo "configure:7952: checking for inet_ntop" >&5
3759 cat > conftest.$ac_ext <<EOF
3760 ! #line 7954 "configure"
3761 #include "confdefs.h"
3763 #include <sys/types.h>
3767 echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
3768 ! echo "configure:7960: checking for inet_ntop" >&5
3769 cat > conftest.$ac_ext <<EOF
3770 ! #line 7962 "configure"
3771 #include "confdefs.h"
3773 #include <sys/types.h>
3776 inet_ntop(0, 0, 0, 0); return (0);
3779 ! if { (eval echo configure:7964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3781 echo "$ac_t""yes" 1>&6
3782 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
3784 inet_ntop(0, 0, 0, 0); return (0);
3787 ! if { (eval echo configure:7972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3789 echo "$ac_t""yes" 1>&6
3790 ISC_PLATFORM_NEEDNTOP="#undef ISC_PLATFORM_NEEDNTOP"
3793 # zeros should also be rejected.
3795 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
3796 ! echo "configure:7985: checking for inet_pton" >&5
3797 if test "$cross_compiling" = yes; then
3798 echo "$ac_t""assuming target platform has working inet_pton" 1>&6
3799 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
3801 cat > conftest.$ac_ext <<EOF
3802 ! #line 7991 "configure"
3803 #include "confdefs.h"
3805 #include <sys/types.h>
3807 # zeros should also be rejected.
3809 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
3810 ! echo "configure:7993: checking for inet_pton" >&5
3811 if test "$cross_compiling" = yes; then
3812 echo "$ac_t""assuming target platform has working inet_pton" 1>&6
3813 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
3815 cat > conftest.$ac_ext <<EOF
3816 ! #line 7999 "configure"
3817 #include "confdefs.h"
3819 #include <sys/types.h>
3822 main() { char a[4]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 :
3823 inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 : 0); }
3825 ! if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3827 echo "$ac_t""yes" 1>&6
3828 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
3830 main() { char a[4]; return (inet_pton(AF_INET, "1.2.3", a) == 1 ? 1 :
3831 inet_pton(AF_INET, "1.2.3.04", a) == 1 ? 1 : 0); }
3833 ! if { (eval echo configure:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3835 echo "$ac_t""yes" 1>&6
3836 ISC_PLATFORM_NEEDPTON="#undef ISC_PLATFORM_NEEDPTON"
3841 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3842 ! echo "configure:8019: checking for inet_aton" >&5
3843 cat > conftest.$ac_ext <<EOF
3844 ! #line 8021 "configure"
3845 #include "confdefs.h"
3847 #include <sys/types.h>
3851 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3852 ! echo "configure:8027: checking for inet_aton" >&5
3853 cat > conftest.$ac_ext <<EOF
3854 ! #line 8029 "configure"
3855 #include "confdefs.h"
3857 #include <sys/types.h>
3860 struct in_addr in; inet_aton(0, &in); return (0);
3863 ! if { (eval echo configure:8031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3865 echo "$ac_t""yes" 1>&6
3866 ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
3868 struct in_addr in; inet_aton(0, &in); return (0);
3871 ! if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3873 echo "$ac_t""yes" 1>&6
3874 ISC_PLATFORM_NEEDATON="#undef ISC_PLATFORM_NEEDATON"
3879 echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
3880 ! echo "configure:8064: checking for sa_len in struct sockaddr" >&5
3881 cat > conftest.$ac_ext <<EOF
3882 ! #line 8066 "configure"
3883 #include "confdefs.h"
3885 #include <sys/types.h>
3889 echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
3890 ! echo "configure:8072: checking for sa_len in struct sockaddr" >&5
3891 cat > conftest.$ac_ext <<EOF
3892 ! #line 8074 "configure"
3893 #include "confdefs.h"
3895 #include <sys/types.h>
3898 struct sockaddr sa; sa.sa_len = 0; return (0);
3901 ! if { (eval echo configure:8075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3903 echo "$ac_t""yes" 1>&6
3904 ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
3906 struct sockaddr sa; sa.sa_len = 0; return (0);
3909 ! if { (eval echo configure:8083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3911 echo "$ac_t""yes" 1>&6
3912 ISC_PLATFORM_HAVESALEN="#define ISC_PLATFORM_HAVESALEN 1"
3915 # Look for a 4.4BSD or 4.3BSD struct msghdr
3917 echo $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
3918 ! echo "configure:8096: checking for struct msghdr flavor" >&5
3919 cat > conftest.$ac_ext <<EOF
3920 ! #line 8098 "configure"
3921 #include "confdefs.h"
3923 #include <sys/types.h>
3925 # Look for a 4.4BSD or 4.3BSD struct msghdr
3927 echo $ac_n "checking for struct msghdr flavor""... $ac_c" 1>&6
3928 ! echo "configure:8104: checking for struct msghdr flavor" >&5
3929 cat > conftest.$ac_ext <<EOF
3930 ! #line 8106 "configure"
3931 #include "confdefs.h"
3933 #include <sys/types.h>
3936 struct msghdr msg; msg.msg_flags = 0; return (0);
3939 ! if { (eval echo configure:8107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3941 echo "$ac_t""4.4BSD" 1>&6
3942 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
3944 struct msghdr msg; msg.msg_flags = 0; return (0);
3947 ! if { (eval echo configure:8115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3949 echo "$ac_t""4.4BSD" 1>&6
3950 ISC_PLATFORM_MSGHDRFLAVOR="#define ISC_NET_BSD44MSGHDR 1"
3953 # Look for in_port_t.
3955 echo $ac_n "checking for type in_port_t""... $ac_c" 1>&6
3956 ! echo "configure:8125: checking for type in_port_t" >&5
3957 cat > conftest.$ac_ext <<EOF
3958 ! #line 8127 "configure"
3959 #include "confdefs.h"
3961 #include <sys/types.h>
3963 # Look for in_port_t.
3965 echo $ac_n "checking for type in_port_t""... $ac_c" 1>&6
3966 ! echo "configure:8133: checking for type in_port_t" >&5
3967 cat > conftest.$ac_ext <<EOF
3968 ! #line 8135 "configure"
3969 #include "confdefs.h"
3971 #include <sys/types.h>
3974 in_port_t port = 25; return (0);
3977 ! if { (eval echo configure:8136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3979 echo "$ac_t""yes" 1>&6
3980 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
3982 in_port_t port = 25; return (0);
3985 ! if { (eval echo configure:8144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3987 echo "$ac_t""yes" 1>&6
3988 ISC_PLATFORM_NEEDPORTT="#undef ISC_PLATFORM_NEEDPORTT"
3991 # Check for addrinfo
3993 echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
3994 ! echo "configure:8154: checking for struct addrinfo" >&5
3995 cat > conftest.$ac_ext <<EOF
3996 ! #line 8156 "configure"
3997 #include "confdefs.h"
4001 # Check for addrinfo
4003 echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
4004 ! echo "configure:8162: checking for struct addrinfo" >&5
4005 cat > conftest.$ac_ext <<EOF
4006 ! #line 8164 "configure"
4007 #include "confdefs.h"
4012 struct addrinfo a; return (0);
4015 ! if { (eval echo configure:8164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4017 echo "$ac_t""yes" 1>&6
4018 ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
4020 struct addrinfo a; return (0);
4023 ! if { (eval echo configure:8172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4025 echo "$ac_t""yes" 1>&6
4026 ISC_LWRES_NEEDADDRINFO="#undef ISC_LWRES_NEEDADDRINFO"
4029 # Check for rrsetinfo
4031 echo $ac_n "checking for struct rrsetinfo""... $ac_c" 1>&6
4032 ! echo "configure:8186: checking for struct rrsetinfo" >&5
4033 cat > conftest.$ac_ext <<EOF
4034 ! #line 8188 "configure"
4035 #include "confdefs.h"
4039 # Check for rrsetinfo
4041 echo $ac_n "checking for struct rrsetinfo""... $ac_c" 1>&6
4042 ! echo "configure:8194: checking for struct rrsetinfo" >&5
4043 cat > conftest.$ac_ext <<EOF
4044 ! #line 8196 "configure"
4045 #include "confdefs.h"
4050 struct rrsetinfo r; return (0);
4053 ! if { (eval echo configure:8196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4055 echo "$ac_t""yes" 1>&6
4056 ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO"
4058 struct rrsetinfo r; return (0);
4061 ! if { (eval echo configure:8204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 echo "$ac_t""yes" 1>&6
4064 ISC_LWRES_NEEDRRSETINFO="#undef ISC_LWRES_NEEDRRSETINFO"
4069 echo $ac_n "checking for int sethostent""... $ac_c" 1>&6
4070 ! echo "configure:8211: checking for int sethostent" >&5
4071 cat > conftest.$ac_ext <<EOF
4072 ! #line 8213 "configure"
4073 #include "confdefs.h"
4079 echo $ac_n "checking for int sethostent""... $ac_c" 1>&6
4080 ! echo "configure:8219: checking for int sethostent" >&5
4081 cat > conftest.$ac_ext <<EOF
4082 ! #line 8221 "configure"
4083 #include "confdefs.h"
4088 int i = sethostent(0); return(0);
4091 ! if { (eval echo configure:8221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4093 echo "$ac_t""yes" 1>&6
4094 ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
4096 int i = sethostent(0); return(0);
4099 ! if { (eval echo configure:8229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4101 echo "$ac_t""yes" 1>&6
4102 ISC_LWRES_SETHOSTENTINT="#define ISC_LWRES_SETHOSTENTINT 1"
4107 echo $ac_n "checking for int endhostent""... $ac_c" 1>&6
4108 ! echo "configure:8236: checking for int endhostent" >&5
4109 cat > conftest.$ac_ext <<EOF
4110 ! #line 8238 "configure"
4111 #include "confdefs.h"
4117 echo $ac_n "checking for int endhostent""... $ac_c" 1>&6
4118 ! echo "configure:8244: checking for int endhostent" >&5
4119 cat > conftest.$ac_ext <<EOF
4120 ! #line 8246 "configure"
4121 #include "confdefs.h"
4126 int i = endhostent(); return(0);
4129 ! if { (eval echo configure:8246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4131 echo "$ac_t""yes" 1>&6
4132 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
4134 int i = endhostent(); return(0);
4137 ! if { (eval echo configure:8254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4139 echo "$ac_t""yes" 1>&6
4140 ISC_LWRES_ENDHOSTENTINT="#define ISC_LWRES_ENDHOSTENTINT 1"
4145 echo $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
4146 ! echo "configure:8261: checking for getnetbyaddr(in_addr_t, ...)" >&5
4147 cat > conftest.$ac_ext <<EOF
4148 ! #line 8263 "configure"
4149 #include "confdefs.h"
4155 echo $ac_n "checking for getnetbyaddr(in_addr_t, ...)""... $ac_c" 1>&6
4156 ! echo "configure:8269: checking for getnetbyaddr(in_addr_t, ...)" >&5
4157 cat > conftest.$ac_ext <<EOF
4158 ! #line 8271 "configure"
4159 #include "confdefs.h"
4167 ! if { (eval echo configure:8272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4169 echo "$ac_t""yes" 1>&6
4170 ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
4175 ! if { (eval echo configure:8280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4177 echo "$ac_t""yes" 1>&6
4178 ISC_LWRES_GETNETBYADDRINADDR="#define ISC_LWRES_GETNETBYADDRINADDR 1"
4183 echo $ac_n "checking for int setnetent""... $ac_c" 1>&6
4184 ! echo "configure:8287: checking for int setnetent" >&5
4185 cat > conftest.$ac_ext <<EOF
4186 ! #line 8289 "configure"
4187 #include "confdefs.h"
4193 echo $ac_n "checking for int setnetent""... $ac_c" 1>&6
4194 ! echo "configure:8295: checking for int setnetent" >&5
4195 cat > conftest.$ac_ext <<EOF
4196 ! #line 8297 "configure"
4197 #include "confdefs.h"
4202 int i = setnetent(0); return(0);
4205 ! if { (eval echo configure:8297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4207 echo "$ac_t""yes" 1>&6
4208 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
4210 int i = setnetent(0); return(0);
4213 ! if { (eval echo configure:8305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4215 echo "$ac_t""yes" 1>&6
4216 ISC_LWRES_SETNETENTINT="#define ISC_LWRES_SETNETENTINT 1"
4221 echo $ac_n "checking for int endnetent""... $ac_c" 1>&6
4222 ! echo "configure:8312: checking for int endnetent" >&5
4223 cat > conftest.$ac_ext <<EOF
4224 ! #line 8314 "configure"
4225 #include "confdefs.h"
4231 echo $ac_n "checking for int endnetent""... $ac_c" 1>&6
4232 ! echo "configure:8320: checking for int endnetent" >&5
4233 cat > conftest.$ac_ext <<EOF
4234 ! #line 8322 "configure"
4235 #include "confdefs.h"
4240 int i = endnetent(); return(0);
4243 ! if { (eval echo configure:8322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4245 echo "$ac_t""yes" 1>&6
4246 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
4248 int i = endnetent(); return(0);
4251 ! if { (eval echo configure:8330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4253 echo "$ac_t""yes" 1>&6
4254 ISC_LWRES_ENDNETENTINT="#define ISC_LWRES_ENDNETENTINT 1"
4259 echo $ac_n "checking for gethostbyaddr(const void *, size_t, ...)""... $ac_c" 1>&6
4260 ! echo "configure:8337: checking for gethostbyaddr(const void *, size_t, ...)" >&5
4261 cat > conftest.$ac_ext <<EOF
4262 ! #line 8339 "configure"
4263 #include "confdefs.h"
4269 echo $ac_n "checking for gethostbyaddr(const void *, size_t, ...)""... $ac_c" 1>&6
4270 ! echo "configure:8345: checking for gethostbyaddr(const void *, size_t, ...)" >&5
4271 cat > conftest.$ac_ext <<EOF
4272 ! #line 8347 "configure"
4273 #include "confdefs.h"
4281 ! if { (eval echo configure:8348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4283 echo "$ac_t""yes" 1>&6
4284 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
4289 ! if { (eval echo configure:8356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4291 echo "$ac_t""yes" 1>&6
4292 ISC_LWRES_GETHOSTBYADDRVOID="#define ISC_LWRES_GETHOSTBYADDRVOID 1"
4297 echo $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
4298 ! echo "configure:8363: checking for h_errno in netdb.h" >&5
4299 cat > conftest.$ac_ext <<EOF
4300 ! #line 8365 "configure"
4301 #include "confdefs.h"
4307 echo $ac_n "checking for h_errno in netdb.h""... $ac_c" 1>&6
4308 ! echo "configure:8371: checking for h_errno in netdb.h" >&5
4309 cat > conftest.$ac_ext <<EOF
4310 ! #line 8373 "configure"
4311 #include "confdefs.h"
4316 h_errno = 1; return(0);
4319 ! if { (eval echo configure:8373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4321 echo "$ac_t""yes" 1>&6
4322 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
4324 h_errno = 1; return(0);
4327 ! if { (eval echo configure:8381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4329 echo "$ac_t""yes" 1>&6
4330 ISC_LWRES_NEEDHERRNO="#undef ISC_LWRES_NEEDHERRNO"
4335 echo $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
4336 ! echo "configure:8388: checking for getipnodebyname" >&5
4337 if eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
4338 echo $ac_n "(cached) $ac_c" 1>&6
4340 cat > conftest.$ac_ext <<EOF
4341 ! #line 8393 "configure"
4342 #include "confdefs.h"
4343 /* System header to define __stub macros and hopefully few prototypes,
4344 which can conflict with char getipnodebyname(); below. */
4348 echo $ac_n "checking for getipnodebyname""... $ac_c" 1>&6
4349 ! echo "configure:8396: checking for getipnodebyname" >&5
4350 if eval "test \"`echo '$''{'ac_cv_func_getipnodebyname'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4353 cat > conftest.$ac_ext <<EOF
4354 ! #line 8401 "configure"
4355 #include "confdefs.h"
4356 /* System header to define __stub macros and hopefully few prototypes,
4357 which can conflict with char getipnodebyname(); below. */
4363 ! if { (eval echo configure:8416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4365 eval "ac_cv_func_getipnodebyname=yes"
4371 ! if { (eval echo configure:8424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4373 eval "ac_cv_func_getipnodebyname=yes"
4379 echo $ac_n "checking for getnameinfo""... $ac_c" 1>&6
4380 ! echo "configure:8437: checking for getnameinfo" >&5
4381 if eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 cat > conftest.$ac_ext <<EOF
4385 ! #line 8442 "configure"
4386 #include "confdefs.h"
4387 /* System header to define __stub macros and hopefully few prototypes,
4388 which can conflict with char getnameinfo(); below. */
4392 echo $ac_n "checking for getnameinfo""... $ac_c" 1>&6
4393 ! echo "configure:8445: checking for getnameinfo" >&5
4394 if eval "test \"`echo '$''{'ac_cv_func_getnameinfo'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4397 cat > conftest.$ac_ext <<EOF
4398 ! #line 8450 "configure"
4399 #include "confdefs.h"
4400 /* System header to define __stub macros and hopefully few prototypes,
4401 which can conflict with char getnameinfo(); below. */
4407 ! if { (eval echo configure:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4409 eval "ac_cv_func_getnameinfo=yes"
4415 ! if { (eval echo configure:8473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4417 eval "ac_cv_func_getnameinfo=yes"
4423 echo $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
4424 ! echo "configure:8486: checking for getaddrinfo" >&5
4425 if eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4428 cat > conftest.$ac_ext <<EOF
4429 ! #line 8491 "configure"
4430 #include "confdefs.h"
4431 /* System header to define __stub macros and hopefully few prototypes,
4432 which can conflict with char getaddrinfo(); below. */
4436 echo $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
4437 ! echo "configure:8494: checking for getaddrinfo" >&5
4438 if eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6
4441 cat > conftest.$ac_ext <<EOF
4442 ! #line 8499 "configure"
4443 #include "confdefs.h"
4444 /* System header to define __stub macros and hopefully few prototypes,
4445 which can conflict with char getaddrinfo(); below. */
4451 ! if { (eval echo configure:8514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4453 eval "ac_cv_func_getaddrinfo=yes"
4459 ! if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4461 eval "ac_cv_func_getaddrinfo=yes"
4467 echo $ac_n "checking for gai_strerror""... $ac_c" 1>&6
4468 ! echo "configure:8539: checking for gai_strerror" >&5
4469 if eval "test \"`echo '$''{'ac_cv_func_gai_strerror'+set}'`\" = set"; then
4470 echo $ac_n "(cached) $ac_c" 1>&6
4472 cat > conftest.$ac_ext <<EOF
4473 ! #line 8544 "configure"
4474 #include "confdefs.h"
4475 /* System header to define __stub macros and hopefully few prototypes,
4476 which can conflict with char gai_strerror(); below. */
4480 echo $ac_n "checking for gai_strerror""... $ac_c" 1>&6
4481 ! echo "configure:8547: checking for gai_strerror" >&5
4482 if eval "test \"`echo '$''{'ac_cv_func_gai_strerror'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 cat > conftest.$ac_ext <<EOF
4486 ! #line 8552 "configure"
4487 #include "confdefs.h"
4488 /* System header to define __stub macros and hopefully few prototypes,
4489 which can conflict with char gai_strerror(); below. */
4495 ! if { (eval echo configure:8567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4497 eval "ac_cv_func_gai_strerror=yes"
4503 ! if { (eval echo configure:8575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4505 eval "ac_cv_func_gai_strerror=yes"
4509 # Look for a sysctl call to get the list of network interfaces.
4511 echo $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
4512 ! echo "configure:8597: checking for interface list sysctl" >&5
4513 cat > conftest.$ac_ext <<EOF
4514 ! #line 8599 "configure"
4515 #include "confdefs.h"
4517 #include <sys/param.h>
4519 # Look for a sysctl call to get the list of network interfaces.
4521 echo $ac_n "checking for interface list sysctl""... $ac_c" 1>&6
4522 ! echo "configure:8605: checking for interface list sysctl" >&5
4523 cat > conftest.$ac_ext <<EOF
4524 ! #line 8607 "configure"
4525 #include "confdefs.h"
4527 #include <sys/param.h>
4530 # AC_CHECK_FUNC() incorrectly succeeds because it declares
4531 # the function itself.
4532 echo $ac_n "checking for correctly declared strsep()""... $ac_c" 1>&6
4533 ! echo "configure:8636: checking for correctly declared strsep()" >&5
4534 cat > conftest.$ac_ext <<EOF
4535 ! #line 8638 "configure"
4536 #include "confdefs.h"
4539 char *sp; char *foo = strsep(&sp, ".");
4542 ! if { (eval echo configure:8645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4544 echo "$ac_t""yes" 1>&6; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
4547 # AC_CHECK_FUNC() incorrectly succeeds because it declares
4548 # the function itself.
4549 echo $ac_n "checking for correctly declared strsep()""... $ac_c" 1>&6
4550 ! echo "configure:8644: checking for correctly declared strsep()" >&5
4551 cat > conftest.$ac_ext <<EOF
4552 ! #line 8646 "configure"
4553 #include "confdefs.h"
4556 char *sp; char *foo = strsep(&sp, ".");
4559 ! if { (eval echo configure:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4561 echo "$ac_t""yes" 1>&6; ISC_PLATFORM_NEEDSTRSEP="#undef ISC_PLATFORM_NEEDSTRSEP"
4567 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
4568 ! echo "configure:8657: checking for vsnprintf" >&5
4569 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4572 cat > conftest.$ac_ext <<EOF
4573 ! #line 8662 "configure"
4574 #include "confdefs.h"
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char vsnprintf(); below. */
4580 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
4581 ! echo "configure:8665: checking for vsnprintf" >&5
4582 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
4583 echo $ac_n "(cached) $ac_c" 1>&6
4585 cat > conftest.$ac_ext <<EOF
4586 ! #line 8670 "configure"
4587 #include "confdefs.h"
4588 /* System header to define __stub macros and hopefully few prototypes,
4589 which can conflict with char vsnprintf(); below. */
4595 ! if { (eval echo configure:8685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4597 eval "ac_cv_func_vsnprintf=yes"
4603 ! if { (eval echo configure:8693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4605 eval "ac_cv_func_vsnprintf=yes"
4611 echo $ac_n "checking for strerror""... $ac_c" 1>&6
4612 ! echo "configure:8710: checking for strerror" >&5
4613 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4616 cat > conftest.$ac_ext <<EOF
4617 ! #line 8715 "configure"
4618 #include "confdefs.h"
4619 /* System header to define __stub macros and hopefully few prototypes,
4620 which can conflict with char strerror(); below. */
4624 echo $ac_n "checking for strerror""... $ac_c" 1>&6
4625 ! echo "configure:8718: checking for strerror" >&5
4626 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 cat > conftest.$ac_ext <<EOF
4630 ! #line 8723 "configure"
4631 #include "confdefs.h"
4632 /* System header to define __stub macros and hopefully few prototypes,
4633 which can conflict with char strerror(); below. */
4639 ! if { (eval echo configure:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4641 eval "ac_cv_func_strerror=yes"
4647 ! if { (eval echo configure:8746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4649 eval "ac_cv_func_strerror=yes"
4653 # but that's defined elsewhere since we don't use configure on Win32.
4655 echo $ac_n "checking printf format modifier for 64-bit integers""... $ac_c" 1>&6
4656 ! echo "configure:8772: checking printf format modifier for 64-bit integers" >&5
4657 if test "$cross_compiling" = yes; then
4658 echo "$ac_t""assuming target platform uses ll" 1>&6
4659 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
4661 cat > conftest.$ac_ext <<EOF
4662 ! #line 8778 "configure"
4663 #include "confdefs.h"
4664 main() { exit(!(sizeof(long long int) == sizeof(long int))); }
4666 ! if { (eval echo configure:8782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4668 echo "$ac_t""l" 1>&6
4669 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
4671 # but that's defined elsewhere since we don't use configure on Win32.
4673 echo $ac_n "checking printf format modifier for 64-bit integers""... $ac_c" 1>&6
4674 ! echo "configure:8780: checking printf format modifier for 64-bit integers" >&5
4675 if test "$cross_compiling" = yes; then
4676 echo "$ac_t""assuming target platform uses ll" 1>&6
4677 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "ll"'
4679 cat > conftest.$ac_ext <<EOF
4680 ! #line 8786 "configure"
4681 #include "confdefs.h"
4682 main() { exit(!(sizeof(long long int) == sizeof(long int))); }
4684 ! if { (eval echo configure:8790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4686 echo "$ac_t""l" 1>&6
4687 ISC_PLATFORM_QUADFORMAT='#define ISC_PLATFORM_QUADFORMAT "l"'
4692 echo $ac_n "checking for chroot""... $ac_c" 1>&6
4693 ! echo "configure:8802: checking for chroot" >&5
4694 if eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6
4697 cat > conftest.$ac_ext <<EOF
4698 ! #line 8807 "configure"
4699 #include "confdefs.h"
4700 /* System header to define __stub macros and hopefully few prototypes,
4701 which can conflict with char chroot(); below. */
4705 echo $ac_n "checking for chroot""... $ac_c" 1>&6
4706 ! echo "configure:8810: checking for chroot" >&5
4707 if eval "test \"`echo '$''{'ac_cv_func_chroot'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4710 cat > conftest.$ac_ext <<EOF
4711 ! #line 8815 "configure"
4712 #include "confdefs.h"
4713 /* System header to define __stub macros and hopefully few prototypes,
4714 which can conflict with char chroot(); below. */
4720 ! if { (eval echo configure:8830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4722 eval "ac_cv_func_chroot=yes"
4728 ! if { (eval echo configure:8838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4730 eval "ac_cv_func_chroot=yes"
4735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4737 ! echo "configure:8864: checking for $ac_hdr" >&5
4738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 cat > conftest.$ac_ext <<EOF
4742 ! #line 8869 "configure"
4743 #include "confdefs.h"
4746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4747 ! { (eval echo configure:8874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4749 if test -z "$ac_err"; then
4753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4755 ! echo "configure:8872: checking for $ac_hdr" >&5
4756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 cat > conftest.$ac_ext <<EOF
4760 ! #line 8877 "configure"
4761 #include "confdefs.h"
4764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4765 ! { (eval echo configure:8882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4767 if test -z "$ac_err"; then
4772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4774 ! echo "configure:8908: checking for $ac_hdr" >&5
4775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 cat > conftest.$ac_ext <<EOF
4779 ! #line 8913 "configure"
4780 #include "confdefs.h"
4783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4784 ! { (eval echo configure:8918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4786 if test -z "$ac_err"; then
4790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4792 ! echo "configure:8916: checking for $ac_hdr" >&5
4793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4796 cat > conftest.$ac_ext <<EOF
4797 ! #line 8921 "configure"
4798 #include "confdefs.h"
4801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4802 ! { (eval echo configure:8926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4804 if test -z "$ac_err"; then
4808 # BSD/OS, and perhaps some others, don't define rlim_t.
4810 echo $ac_n "checking for type rlim_t""... $ac_c" 1>&6
4811 ! echo "configure:8949: checking for type rlim_t" >&5
4812 cat > conftest.$ac_ext <<EOF
4813 ! #line 8951 "configure"
4814 #include "confdefs.h"
4816 #include <sys/types.h>
4818 # BSD/OS, and perhaps some others, don't define rlim_t.
4820 echo $ac_n "checking for type rlim_t""... $ac_c" 1>&6
4821 ! echo "configure:8957: checking for type rlim_t" >&5
4822 cat > conftest.$ac_ext <<EOF
4823 ! #line 8959 "configure"
4824 #include "confdefs.h"
4826 #include <sys/types.h>
4829 rlim_t rl = 19671212; return (0);
4832 ! if { (eval echo configure:8961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4834 echo "$ac_t""yes" 1>&6
4835 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t"
4837 rlim_t rl = 19671212; return (0);
4840 ! if { (eval echo configure:8969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4842 echo "$ac_t""yes" 1>&6
4843 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE rlim_t"
4846 echo "$ac_t""no" 1>&6
4848 echo $ac_n "checking type of rlim_cur""... $ac_c" 1>&6
4849 ! echo "configure:8972: checking type of rlim_cur" >&5
4850 if test "$cross_compiling" = yes; then
4851 { echo "configure: error: cannot determine type of rlim_cur when cross compiling - define rlim_t" 1>&2; exit 1; }
4853 cat > conftest.$ac_ext <<EOF
4854 ! #line 8977 "configure"
4855 #include "confdefs.h"
4857 #include <sys/types.h>
4859 echo "$ac_t""no" 1>&6
4861 echo $ac_n "checking type of rlim_cur""... $ac_c" 1>&6
4862 ! echo "configure:8980: checking type of rlim_cur" >&5
4863 if test "$cross_compiling" = yes; then
4864 { echo "configure: error: cannot determine type of rlim_cur when cross compiling - define rlim_t" 1>&2; exit 1; }
4866 cat > conftest.$ac_ext <<EOF
4867 ! #line 8985 "configure"
4868 #include "confdefs.h"
4870 #include <sys/types.h>
4873 #include <sys/resource.h>
4874 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
4876 ! if { (eval echo configure:8985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4878 echo "$ac_t""int" 1>&6
4879 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int"
4881 #include <sys/resource.h>
4882 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(int)));}
4884 ! if { (eval echo configure:8993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4886 echo "$ac_t""int" 1>&6
4887 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE int"
4890 { echo "configure: error: this cannot happen" 1>&2; exit 1; }
4892 cat > conftest.$ac_ext <<EOF
4893 ! #line 8998 "configure"
4894 #include "confdefs.h"
4896 #include <sys/types.h>
4898 { echo "configure: error: this cannot happen" 1>&2; exit 1; }
4900 cat > conftest.$ac_ext <<EOF
4901 ! #line 9006 "configure"
4902 #include "confdefs.h"
4904 #include <sys/types.h>
4907 #include <sys/resource.h>
4908 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
4910 ! if { (eval echo configure:9006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4912 echo "$ac_t""long int" 1>&6
4913 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int"
4915 #include <sys/resource.h>
4916 main() { struct rlimit r; exit(!(sizeof(r.rlim_cur) == sizeof(long int)));}
4918 ! if { (eval echo configure:9014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4920 echo "$ac_t""long int" 1>&6
4921 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long int"
4924 { echo "configure: error: this cannot happen" 1>&2; exit 1; }
4926 cat > conftest.$ac_ext <<EOF
4927 ! #line 9019 "configure"
4928 #include "confdefs.h"
4930 #include <sys/types.h>
4932 { echo "configure: error: this cannot happen" 1>&2; exit 1; }
4934 cat > conftest.$ac_ext <<EOF
4935 ! #line 9027 "configure"
4936 #include "confdefs.h"
4938 #include <sys/types.h>
4941 #include <sys/resource.h>
4942 main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
4944 ! if { (eval echo configure:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4946 echo "$ac_t""long long int" 1>&6
4947 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
4949 #include <sys/resource.h>
4950 main() { struct rlimit r; exit((!sizeof(r.rlim_cur) == sizeof(long long int)));}
4952 ! if { (eval echo configure:9035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4954 echo "$ac_t""long long int" 1>&6
4955 ISC_PLATFORM_RLIMITTYPE="#define ISC_PLATFORM_RLIMITTYPE long long int"
4958 # Extract the first word of "$ac_prog", so it can be a program name with args.
4959 set dummy $ac_prog; ac_word=$2
4960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4961 ! echo "configure:9151: checking for $ac_word" >&5
4962 if eval "test \"`echo '$''{'ac_cv_path_OPENJADE'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4966 # Extract the first word of "$ac_prog", so it can be a program name with args.
4967 set dummy $ac_prog; ac_word=$2
4968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4969 ! echo "configure:9159: checking for $ac_word" >&5
4970 if eval "test \"`echo '$''{'ac_cv_path_OPENJADE'+set}'`\" = set"; then
4971 echo $ac_n "(cached) $ac_c" 1>&6
4975 # Extract the first word of "$ac_prog", so it can be a program name with args.
4976 set dummy $ac_prog; ac_word=$2
4977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4978 ! echo "configure:9198: checking for $ac_word" >&5
4979 if eval "test \"`echo '$''{'ac_cv_path_JADETEX'+set}'`\" = set"; then
4980 echo $ac_n "(cached) $ac_c" 1>&6
4983 # Extract the first word of "$ac_prog", so it can be a program name with args.
4984 set dummy $ac_prog; ac_word=$2
4985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4986 ! echo "configure:9206: checking for $ac_word" >&5
4987 if eval "test \"`echo '$''{'ac_cv_path_JADETEX'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4992 # Extract the first word of "$ac_prog", so it can be a program name with args.
4993 set dummy $ac_prog; ac_word=$2
4994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4995 ! echo "configure:9241: checking for $ac_word" >&5
4996 if eval "test \"`echo '$''{'ac_cv_path_PDFJADETEX'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
5000 # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5003 ! echo "configure:9249: checking for $ac_word" >&5
5004 if eval "test \"`echo '$''{'ac_cv_path_PDFJADETEX'+set}'`\" = set"; then
5005 echo $ac_n "(cached) $ac_c" 1>&6
5011 echo $ac_n "checking for catalog""... $ac_c" 1>&6
5012 ! echo "configure:9297: checking for catalog" >&5
5019 echo $ac_n "checking for catalog""... $ac_c" 1>&6
5020 ! echo "configure:9305: checking for catalog" >&5
5028 echo $ac_n "checking for html/docbook.dsl""... $ac_c" 1>&6
5029 ! echo "configure:9339: checking for html/docbook.dsl" >&5
5032 f=$d/html/docbook.dsl
5036 echo $ac_n "checking for html/docbook.dsl""... $ac_c" 1>&6
5037 ! echo "configure:9347: checking for html/docbook.dsl" >&5
5040 f=$d/html/docbook.dsl
5045 echo $ac_n "checking for print/docbook.dsl""... $ac_c" 1>&6
5046 ! echo "configure:9360: checking for print/docbook.dsl" >&5
5049 f=$d/print/docbook.dsl
5053 echo $ac_n "checking for print/docbook.dsl""... $ac_c" 1>&6
5054 ! echo "configure:9368: checking for print/docbook.dsl" >&5
5057 f=$d/print/docbook.dsl
5062 echo $ac_n "checking for docbook/dsssl/modular/dtds/decls/xml.dcl""... $ac_c" 1>&6
5063 ! echo "configure:9386: checking for docbook/dsssl/modular/dtds/decls/xml.dcl" >&5
5066 f=$d/docbook/dsssl/modular/dtds/decls/xml.dcl
5070 echo $ac_n "checking for docbook/dsssl/modular/dtds/decls/xml.dcl""... $ac_c" 1>&6
5071 ! echo "configure:9394: checking for docbook/dsssl/modular/dtds/decls/xml.dcl" >&5
5074 f=$d/docbook/dsssl/modular/dtds/decls/xml.dcl
5079 echo $ac_n "checking for docbook2X/docbook2man-spec.pl""... $ac_c" 1>&6
5080 ! echo "configure:9412: checking for docbook2X/docbook2man-spec.pl" >&5
5083 f=$d/docbook2X/docbook2man-spec.pl
5087 echo $ac_n "checking for docbook2X/docbook2man-spec.pl""... $ac_c" 1>&6
5088 ! echo "configure:9420: checking for docbook2X/docbook2man-spec.pl" >&5
5091 f=$d/docbook2X/docbook2man-spec.pl
5100 + # Check whether --with-idn or --without-idn was given.
5101 + if test "${with_idn+set}" = set; then
5102 + withval="$with_idn"
5103 + use_idn="$withval"
5108 + case "$use_idn" in
5110 + if test X$prefix = XNONE ; then
5111 + idn_path=/usr/local
5119 + idn_path="$use_idn"
5125 + # Check whether --with-libiconv or --without-libiconv was given.
5126 + if test "${with_libiconv+set}" = set; then
5127 + withval="$with_libiconv"
5128 + use_libiconv="$withval"
5133 + case "$use_libiconv" in
5135 + if test X$prefix = XNONE ; then
5136 + iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv"
5138 + iconvlib="-L$prefix/lib -R$prefix/lib -liconv"
5145 + iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv"
5149 + # Check whether --with-iconv or --without-iconv was given.
5150 + if test "${with_iconv+set}" = set; then
5151 + withval="$with_iconv"
5152 + iconvlib="$withval"
5155 + case "$iconvlib" in
5164 + # Check whether --with-idnlib or --without-idnlib was given.
5165 + if test "${with_idnlib+set}" = set; then
5166 + withval="$with_idnlib"
5172 + if test "$idnlib" = yes; then
5173 + { echo "configure: error: You must specify ARG for --with-idnlib." 1>&2; exit 1; }
5177 + if test "$use_idn" != no; then
5178 + cat >> confdefs.h <<\EOF
5179 + #define WITH_IDN 1
5182 + STD_CINCLUDES="$STD_CINCLUDES -I$idn_path/include"
5183 + if test "$idnlib" != no; then
5184 + IDNLIBS="$idnlib $iconvlib"
5186 + IDNLIBS="-L$idn_path/lib -lidnkit $iconvlib"
5191 + for ac_hdr in locale.h
5193 + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5194 + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5195 + echo "configure:9537: checking for $ac_hdr" >&5
5196 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5197 + echo $ac_n "(cached) $ac_c" 1>&6
5199 + cat > conftest.$ac_ext <<EOF
5200 + #line 9542 "configure"
5201 + #include "confdefs.h"
5202 + #include <$ac_hdr>
5204 + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5205 + { (eval echo configure:9547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5206 + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5207 + if test -z "$ac_err"; then
5209 + eval "ac_cv_header_$ac_safe=yes"
5211 + echo "$ac_err" >&5
5212 + echo "configure: failed program was:" >&5
5213 + cat conftest.$ac_ext >&5
5215 + eval "ac_cv_header_$ac_safe=no"
5219 + if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5220 + echo "$ac_t""yes" 1>&6
5221 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5222 + cat >> confdefs.h <<EOF
5223 + #define $ac_tr_hdr 1
5227 + echo "$ac_t""no" 1>&6
5231 + for ac_func in setlocale
5233 + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5234 + echo "configure:9576: checking for $ac_func" >&5
5235 + if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5236 + echo $ac_n "(cached) $ac_c" 1>&6
5238 + cat > conftest.$ac_ext <<EOF
5239 + #line 9581 "configure"
5240 + #include "confdefs.h"
5241 + /* System header to define __stub macros and hopefully few prototypes,
5242 + which can conflict with char $ac_func(); below. */
5243 + #include <assert.h>
5244 + /* Override any gcc2 internal prototype to avoid an error. */
5245 + /* We use char because int might match the return type of a gcc2
5246 + builtin and then its argument prototype would still apply. */
5251 + /* The GNU C library defines this for functions which it implements
5252 + to always fail with ENOSYS. Some functions are actually named
5253 + something starting with __ and the normal name is an alias. */
5254 + #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5262 + if { (eval echo configure:9604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5264 + eval "ac_cv_func_$ac_func=yes"
5266 + echo "configure: failed program was:" >&5
5267 + cat conftest.$ac_ext >&5
5269 + eval "ac_cv_func_$ac_func=no"
5274 + if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5275 + echo "$ac_t""yes" 1>&6
5276 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5277 + cat >> confdefs.h <<EOF
5278 + #define $ac_tr_func 1
5282 + echo "$ac_t""no" 1>&6
5294 s%@PRINTSTYLE@%$PRINTSTYLE%g
5295 s%@XMLDCL@%$XMLDCL%g
5296 s%@DOCBOOK2MANSPEC@%$DOCBOOK2MANSPEC%g
5297 + s%@IDNLIBS@%$IDNLIBS%g
5298 s%@BIND9_TOP_BUILDDIR@%$BIND9_TOP_BUILDDIR%g
5299 s%@BIND9_ISC_BUILDINCLUDE@%$BIND9_ISC_BUILDINCLUDE%g
5300 s%@BIND9_ISCCC_BUILDINCLUDE@%$BIND9_ISCCC_BUILDINCLUDE%g
5304 # Split the substitutions into bite-sized pieces for seds with
5305 # small command number limits, like on Digital OSF/1 and HP-UX.
5306 ! ac_max_sed_cmds=50 # Maximum number of lines to put in a sed script.
5307 ac_file=1 # Number of current file.
5308 ac_beg=1 # First line for current file.
5309 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5310 --- 10027,10033 ----
5312 # Split the substitutions into bite-sized pieces for seds with
5313 # small command number limits, like on Digital OSF/1 and HP-UX.
5314 ! ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5315 ac_file=1 # Number of current file.
5316 ac_beg=1 # First line for current file.
5317 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5319 diff -c mdn/othersrc/bind9/configure.in:1.1.1.9 mdn/othersrc/bind9/configure.in:1.15
5320 *** configure.in Wed May 22 17:14:53 2002
5321 --- configure.in Mon May 27 12:10:14 2002
5325 NOM_PATH_FILE(DOCBOOK2MANSPEC, docbook2X/docbook2man-spec.pl, $sgmltrees)
5331 + [ --with-idn[=MPREFIX] enable IDN support using idnkit [default PREFIX]],
5332 + use_idn="$withval", use_idn="no")
5333 + case "$use_idn" in
5335 + if test X$prefix = XNONE ; then
5336 + idn_path=/usr/local
5344 + idn_path="$use_idn"
5350 + AC_ARG_WITH(libiconv,
5351 + [ --with-libiconv[=IPREFIX] GNU libiconv are in IPREFIX [default PREFIX]],
5352 + use_libiconv="$withval", use_libiconv="no")
5353 + case "$use_libiconv" in
5355 + if test X$prefix = XNONE ; then
5356 + iconvlib="-L/usr/local/lib -R/usr/local/lib -liconv"
5358 + iconvlib="-L$prefix/lib -R$prefix/lib -liconv"
5365 + iconvlib="-L$use_libiconv/lib -R$use_libiconv/lib -liconv"
5369 + AC_ARG_WITH(iconv,
5370 + [ --with-iconv[=LIBSPEC] specify iconv library [default -liconv]],
5371 + iconvlib="$withval")
5372 + case "$iconvlib" in
5381 + AC_ARG_WITH(idnlib,
5382 + [ --with-idnlib=ARG specify libidnkit],
5383 + idnlib="$withval", idnlib="no")
5384 + if test "$idnlib" = yes; then
5385 + AC_MSG_ERROR([You must specify ARG for --with-idnlib.])
5389 + if test "$use_idn" != no; then
5390 + AC_DEFINE(WITH_IDN, 1, [define if idnkit support is to be included.])
5391 + STD_CINCLUDES="$STD_CINCLUDES -I$idn_path/include"
5392 + if test "$idnlib" != no; then
5393 + IDNLIBS="$idnlib $iconvlib"
5395 + IDNLIBS="-L$idn_path/lib -lidnkit $iconvlib"
5400 + AC_CHECK_HEADERS(locale.h)
5401 + AC_CHECK_FUNCS(setlocale)
5406 AC_SUBST(BIND9_TOP_BUILDDIR)
5407 Index: bin/dig/Makefile.in
5408 diff -c mdn/othersrc/bind9/bin/dig/Makefile.in:1.1.1.6 mdn/othersrc/bind9/bin/dig/Makefile.in:1.3
5409 *** bin/dig/Makefile.in Tue Nov 27 16:55:50 2001
5410 --- bin/dig/Makefile.in Tue Mar 19 16:45:35 2002
5414 DEPLIBS = ${DNSDEPLIBS} ${ISCDEPLIBS}
5416 ! LIBS = ${DNSLIBS} ${ISCLIBS} @LIBS@
5422 DEPLIBS = ${DNSDEPLIBS} ${ISCDEPLIBS}
5424 ! LIBS = ${DNSLIBS} ${ISCLIBS} @IDNLIBS@ @LIBS@
5428 Index: bin/dig/dig.1
5429 diff -c mdn/othersrc/bind9/bin/dig/dig.1:1.1.1.2 mdn/othersrc/bind9/bin/dig/dig.1:1.4
5430 *** bin/dig/dig.1 Wed May 22 17:14:53 2002
5431 --- bin/dig/dig.1 Mon May 27 12:10:14 2002
5435 \fI+noqr\fR which means that \fBdig\fR
5436 will not print the initial query when it looks up the NS records for
5440 + If \fBdig\fR has been built with IDN (internationalized
5441 + domain name) support, it can accept and display non-ASCII domain names.
5442 + \fBdig\fR appropriately converts character encoding of
5443 + domain name before sending a request to DNS server or displaying a
5444 + reply from the server.
5445 + If you'd like to turn off the IDN support for some reason, defines
5446 + the \fBIDN_DISABLE\fR environment variable.
5447 + The IDN support is disabled if the the variable is set when
5451 \fI/etc/resolv.conf\fR
5452 Index: bin/dig/dig.docbook
5453 diff -c mdn/othersrc/bind9/bin/dig/dig.docbook:1.1.1.2 mdn/othersrc/bind9/bin/dig/dig.docbook:1.4
5454 *** bin/dig/dig.docbook Wed May 22 17:14:53 2002
5455 --- bin/dig/dig.docbook Mon May 27 12:10:15 2002
5462 + <title>IDN SUPPORT</title>
5464 + If <command>dig</command> has been built with IDN (internationalized
5465 + domain name) support, it can accept and display non-ASCII domain names.
5466 + <command>dig</command> appropriately converts character encoding of
5467 + domain name before sending a request to DNS server or displaying a
5468 + reply from the server.
5469 + If you'd like to turn off the IDN support for some reason, defines
5470 + the <envar>IDN_DISABLE</envar> environment variable.
5471 + The IDN support is disabled if the the variable is set when
5472 + <command>dig</command> runs.
5477 <title>FILES</title>
5479 <filename>/etc/resolv.conf</filename>
5480 Index: bin/dig/dighost.c
5481 diff -c mdn/othersrc/bind9/bin/dig/dighost.c:1.1.1.12 mdn/othersrc/bind9/bin/dig/dighost.c:1.32
5482 *** bin/dig/dighost.c Wed May 22 17:14:53 2002
5483 --- bin/dig/dighost.c Mon May 27 12:10:15 2002
5490 + #ifdef HAVE_LOCALE_H
5491 + #include <locale.h>
5495 + #include <idn/result.h>
5496 + #include <idn/log.h>
5497 + #include <idn/resconf.h>
5498 + #include <idn/api.h>
5501 #include <dns/byaddr.h>
5502 #include <dns/fixedname.h>
5503 #include <dns/message.h>
5507 isc_mutex_t lookup_lock;
5508 dig_lookup_t *current_lookup = NULL;
5511 + static void initialize_idn(void);
5512 + static isc_result_t output_filter(isc_buffer_t *buffer,
5513 + unsigned int used_org,
5514 + isc_boolean_t absolute);
5515 + static idn_result_t append_textname(char *name, const char *origin,
5517 + static void idn_check_result(idn_result_t r, const char *msg);
5519 + #define MAXDLEN 256
5523 * Apply and clear locks at the event level in global task.
5524 * Can I get rid of these using shutdown events? XXX
5528 ISC_LIST_APPEND(server_list, srv, link);
5535 if (keyfile[0] != 0)
5537 else if (keysecret[0] != 0)
5542 dns_compress_t cctx;
5546 + char utf8_textname[MXNAME], utf8_origin[MXNAME], idn_textname[MXNAME];
5550 + dns_name_settotextfilter(output_filter);
5553 REQUIRE(lookup != NULL);
5558 isc_buffer_init(&lookup->onamebuf, lookup->onamespace,
5559 sizeof(lookup->onamespace));
5563 + * We cannot convert `textname' and `origin' separately.
5564 + * `textname' doesn't contain TLD, but local mapping needs
5567 + mr = idn_encodename(IDN_LOCALCONV | IDN_DELIMMAP, lookup->textname,
5568 + utf8_textname, sizeof(utf8_textname));
5569 + idn_check_result(mr, "convert textname to UTF-8");
5573 * If the name has too many dots, force the origin to be NULL
5574 * (which produces an absolute lookup). Otherwise, take the origin
5578 * is TRUE or we got a domain line in the resolv.conf file.
5580 /* XXX New search here? */
5582 + if ((count_dots(utf8_textname) >= ndots) || !usesearch)
5583 + lookup->origin = NULL; /* Force abs lookup */
5584 + else if (lookup->origin == NULL && lookup->new_search && usesearch) {
5585 + lookup->origin = ISC_LIST_HEAD(search_list);
5588 if ((count_dots(lookup->textname) >= ndots) || !usesearch)
5589 lookup->origin = NULL; /* Force abs lookup */
5590 else if (lookup->origin == NULL && lookup->new_search && usesearch) {
5591 lookup->origin = ISC_LIST_HEAD(search_list);
5596 if (lookup->origin != NULL) {
5597 + mr = idn_encodename(IDN_LOCALCONV | IDN_DELIMMAP,
5598 + lookup->origin->origin, utf8_origin,
5599 + sizeof(utf8_origin));
5600 + idn_check_result(mr, "convert origin to UTF-8");
5601 + mr = append_textname(utf8_textname, utf8_origin,
5602 + sizeof(utf8_textname));
5603 + idn_check_result(mr, "append origin to textname");
5605 + mr = idn_encodename(IDN_LOCALMAP | IDN_NAMEPREP | IDN_ASCCHECK |
5606 + IDN_IDNCONV | IDN_LENCHECK, utf8_textname,
5607 + idn_textname, sizeof(idn_textname));
5608 + idn_check_result(mr, "convert UTF-8 textname to IDN encoding");
5614 + if (lookup->origin != NULL) {
5616 debug("trying origin %s", lookup->origin->origin);
5617 result = dns_message_gettempname(lookup->sendmsg,
5622 if (lookup->trace && lookup->trace_root)
5623 dns_name_clone(dns_rootname, lookup->name);
5626 + len = strlen(idn_textname);
5627 + isc_buffer_init(&b, idn_textname, len);
5628 + isc_buffer_add(&b, len);
5629 + result = dns_name_fromtext(lookup->name, &b,
5632 + &lookup->namebuf);
5634 len = strlen(lookup->textname);
5635 isc_buffer_init(&b, lookup->textname, len);
5636 isc_buffer_add(&b, len);
5645 if (result != ISC_R_SUCCESS) {
5646 dns_message_puttempname(lookup->sendmsg,
5651 isc_mem_destroy(&mctx);
5656 + initialize_idn(void) {
5659 + #ifdef HAVE_SETLOCALE
5661 + (void)setlocale(LC_ALL, "");
5663 + /* Create configuration context. */
5664 + r = idn_nameinit(1);
5665 + if (r != idn_success)
5666 + fatal("idn api initialization failed: %s",
5667 + idn_result_tostring(r));
5669 + /* Set domain name -> text post-conversion filter. */
5670 + dns_name_settotextfilter(output_filter);
5673 + static isc_result_t
5674 + output_filter(isc_buffer_t *buffer, unsigned int used_org,
5675 + isc_boolean_t absolute)
5677 + char tmp1[MAXDLEN], tmp2[MAXDLEN];
5678 + size_t fromlen, tolen;
5679 + isc_boolean_t end_with_dot;
5682 + * Copy contents of 'buffer' to 'tmp1', supply trailing dot
5683 + * if 'absolute' is true, and terminate with NUL.
5685 + fromlen = isc_buffer_usedlength(buffer) - used_org;
5686 + if (fromlen >= MAXDLEN)
5687 + return (ISC_R_SUCCESS);
5688 + memcpy(tmp1, (char *)isc_buffer_base(buffer) + used_org, fromlen);
5689 + end_with_dot = (tmp1[fromlen - 1] == '.') ? ISC_TRUE : ISC_FALSE;
5690 + if (absolute && !end_with_dot) {
5692 + if (fromlen >= MAXDLEN)
5693 + return (ISC_R_SUCCESS);
5694 + tmp1[fromlen - 1] = '.';
5696 + tmp1[fromlen] = '\0';
5699 + * Convert contents of 'tmp1' to local encoding.
5701 + if (idn_decodename(IDN_DECODE_APP, tmp1, tmp2, MAXDLEN) != idn_success)
5702 + return (ISC_R_SUCCESS);
5703 + strcpy(tmp1, tmp2);
5706 + * Copy the converted contents in 'tmp1' back to 'buffer'.
5707 + * If we have appended trailing dot, remove it.
5709 + tolen = strlen(tmp1);
5710 + if (absolute && !end_with_dot && tmp1[tolen - 1] == '.')
5713 + if (isc_buffer_length(buffer) < used_org + tolen)
5714 + return (ISC_R_NOSPACE);
5716 + isc_buffer_subtract(buffer, isc_buffer_usedlength(buffer) - used_org);
5717 + memcpy(isc_buffer_used(buffer), tmp1, tolen);
5718 + isc_buffer_add(buffer, tolen);
5720 + return (ISC_R_SUCCESS);
5723 + static idn_result_t
5724 + append_textname(char *name, const char *origin, size_t namesize) {
5725 + size_t namelen = strlen(name);
5726 + size_t originlen = strlen(origin);
5728 + /* Already absolute? */
5729 + if (namelen > 0 && name[namelen - 1] == '.')
5730 + return idn_success;
5732 + /* Append dot and origin */
5734 + if (namelen + 1 + originlen >= namesize)
5735 + return idn_buffer_overflow;
5737 + name[namelen++] = '.';
5738 + (void)strcpy(name + namelen, origin);
5739 + return idn_success;
5743 + idn_check_result(idn_result_t r, const char *msg) {
5744 + if (r != idn_success) {
5746 + fatal("%s: %s", msg, idn_result_tostring(r));
5750 + #endif /* WITH_IDN */
5751 Index: bin/dig/host.1
5752 diff -c mdn/othersrc/bind9/bin/dig/host.1:1.1.1.1 mdn/othersrc/bind9/bin/dig/host.1:1.3
5753 *** bin/dig/host.1 Tue Nov 27 16:55:51 2001
5754 --- bin/dig/host.1 Tue Mar 19 16:45:36 2002
5758 effectively wait forever for a reply. The time to wait for a response
5759 will be set to the number of seconds given by the hardware's maximum
5760 value for an integer quantity.
5763 + If \fBhost\fR has been built with IDN (internationalized
5764 + domain name) support, it can accept and display non-ASCII domain names.
5765 + \fBhost\fR appropriately converts character encoding of
5766 + domain name before sending a request to DNS server or displaying a
5767 + reply from the server.
5768 + If you'd like to turn off the IDN support for some reason, defines
5769 + the \fBIDN_DISABLE\fR environment variable.
5770 + The IDN support is disabled if the the variable is set when
5774 \fI/etc/resolv.conf\fR
5775 Index: bin/dig/host.docbook
5776 diff -c mdn/othersrc/bind9/bin/dig/host.docbook:1.1.1.1 mdn/othersrc/bind9/bin/dig/host.docbook:1.3
5777 *** bin/dig/host.docbook Tue Nov 27 16:55:51 2001
5778 --- bin/dig/host.docbook Tue Mar 19 16:45:36 2002
5785 + <title>IDN SUPPORT</title>
5787 + If <command>host</command> has been built with IDN (internationalized
5788 + domain name) support, it can accept and display non-ASCII domain names.
5789 + <command>host</command> appropriately converts character encoding of
5790 + domain name before sending a request to DNS server or displaying a
5791 + reply from the server.
5792 + If you'd like to turn off the IDN support for some reason, defines
5793 + the <envar>IDN_DISABLE</envar> environment variable.
5794 + The IDN support is disabled if the the variable is set when
5795 + <command>host</command> runs.
5800 <title>FILES</title>
5802 <filename>/etc/resolv.conf</filename>
5803 Index: lib/dns/name.c
5804 diff -c mdn/othersrc/bind9/lib/dns/name.c:1.1.1.10 mdn/othersrc/bind9/lib/dns/name.c:1.14
5805 *** lib/dns/name.c Wed May 22 17:15:27 2002
5806 --- lib/dns/name.c Mon May 27 12:10:15 2002
5810 /* XXXDCL make const? */
5811 dns_name_t *dns_wildcardname = &wild;
5815 + * dns_name_t to text post-conversion procedure.
5817 + static dns_name_totextfilter_t totext_filter_proc = NULL;
5821 set_offsets(const dns_name_t *name, unsigned char *offsets,
5822 dns_name_t *set_name);
5826 unsigned int labels;
5827 isc_boolean_t saw_root = ISC_FALSE;
5830 + unsigned int oused = target->used;
5834 * This function assumes the name is in proper uncompressed
5839 isc_buffer_add(target, tlen - trem);
5842 + if (totext_filter_proc != NULL)
5843 + return ((*totext_filter_proc)(target, oused, saw_root));
5845 return (ISC_R_SUCCESS);
5851 return (ISC_R_SUCCESS);
5856 + dns_name_settotextfilter(dns_name_totextfilter_t proc) {
5857 + totext_filter_proc = proc;
5860 Index: lib/dns/include/dns/name.h
5861 diff -c mdn/othersrc/bind9/lib/dns/include/dns/name.h:1.1.1.7 mdn/othersrc/bind9/lib/dns/include/dns/name.h:1.10
5862 *** lib/dns/include/dns/name.h Wed May 22 17:15:29 2002
5863 --- lib/dns/include/dns/name.h Mon May 27 12:10:15 2002
5868 #define DNS_NAME_MAXWIRE 255
5872 + * Text output filter procedure.
5873 + * 'target' is the buffer to be converted. The region to be converted
5874 + * is from 'buffer'->base + 'used_org' to the end of the used region.
5876 + typedef isc_result_t (*dns_name_totextfilter_t)(isc_buffer_t *target,
5877 + unsigned int used_org,
5878 + isc_boolean_t absolute);
5893 + dns_name_settotextfilter(dns_name_totextfilter_t proc);
5895 + * Call 'proc' at the end of dns_name_totext.
5897 + #endif /* WITH_IDN */
5899 #define DNS_NAME_FORMATSIZE (DNS_NAME_MAXTEXT + 1)