Codebase list unbound / f714f6a
Imported Upstream version 1.4.20 Robert S. Edmonds 11 years ago
53 changed file(s) with 2405 addition(s) and 976 deletion(s). Raw diff Collapse all Expand all
0 # generated automatically by aclocal 1.11.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
0 # generated automatically by aclocal 1.12.2 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
3
54 # This file is free software; the Free Software Foundation
65 # gives unlimited permission to copy and/or distribute it,
76 # with or without modifications, as long as this notice is preserved.
1413 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1514 #
1615 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18 # Inc.
16 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17 # Foundation, Inc.
1918 # Written by Gordon Matzigkeit, 1996
2019 #
2120 # This file is free software; the Free Software Foundation gives
2423
2524 m4_define([_LT_COPYING], [dnl
2625 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
28 # Inc.
26 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27 # Foundation, Inc.
2928 # Written by Gordon Matzigkeit, 1996
3029 #
3130 # This file is part of GNU Libtool.
159158 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
160159 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
161160
161 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
162 dnl
162163 _LT_DECL([], [host_alias], [0], [The host system])dnl
163164 _LT_DECL([], [host], [0])dnl
164165 _LT_DECL([], [host_os], [0])dnl
644645 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
645646 configured by $[0], generated by m4_PACKAGE_STRING.
646647
647 Copyright (C) 2010 Free Software Foundation, Inc.
648 Copyright (C) 2011 Free Software Foundation, Inc.
648649 This config.lt script is free software; the Free Software Foundation
649650 gives unlimited permision to copy, distribute and modify it."
650651
808809 m4_case([$1],
809810 [C], [_LT_LANG(C)],
810811 [C++], [_LT_LANG(CXX)],
812 [Go], [_LT_LANG(GO)],
811813 [Java], [_LT_LANG(GCJ)],
812814 [Fortran 77], [_LT_LANG(F77)],
813815 [Fortran], [_LT_LANG(FC)],
827829 m4_define([_LT_LANG_]$1[_enabled], [])dnl
828830 _LT_LANG_$1_CONFIG($1)])dnl
829831 ])# _LT_LANG
832
833
834 m4_ifndef([AC_PROG_GO], [
835 # NOTE: This macro has been submitted for inclusion into #
836 # GNU Autoconf as AC_PROG_GO. When it is available in #
837 # a released version of Autoconf we should remove this #
838 # macro and use it instead. #
839 m4_defun([AC_PROG_GO],
840 [AC_LANG_PUSH(Go)dnl
841 AC_ARG_VAR([GOC], [Go compiler command])dnl
842 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
843 _AC_ARG_VAR_LDFLAGS()dnl
844 AC_CHECK_TOOL(GOC, gccgo)
845 if test -z "$GOC"; then
846 if test -n "$ac_tool_prefix"; then
847 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
848 fi
849 fi
850 if test -z "$GOC"; then
851 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
852 fi
853 ])#m4_defun
854 ])#m4_ifndef
830855
831856
832857 # _LT_LANG_DEFAULT_CONFIG
858883 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
859884 m4_ifdef([LT_PROG_GCJ],
860885 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
886
887 AC_PROVIDE_IFELSE([AC_PROG_GO],
888 [LT_LANG(GO)],
889 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
861890
862891 AC_PROVIDE_IFELSE([LT_PROG_RC],
863892 [LT_LANG(RC)],
961990 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
962991 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
963992 _lt_result=$?
964 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
993 # If there is a non-empty error log, and "single_module"
994 # appears in it, assume the flag caused a linker warning
995 if test -s conftest.err && $GREP single_module conftest.err; then
996 cat conftest.err >&AS_MESSAGE_LOG_FD
997 # Otherwise, if the output was created with a 0 exit code from
998 # the compiler, it worked.
999 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9651000 lt_cv_apple_cc_single_mod=yes
9661001 else
9671002 cat conftest.err >&AS_MESSAGE_LOG_FD
9691004 rm -rf libconftest.dylib*
9701005 rm -f conftest.*
9711006 fi])
1007
9721008 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
9731009 [lt_cv_ld_exported_symbols_list],
9741010 [lt_cv_ld_exported_symbols_list=no
9801016 [lt_cv_ld_exported_symbols_list=no])
9811017 LDFLAGS="$save_LDFLAGS"
9821018 ])
1019
9831020 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
9841021 [lt_cv_ld_force_load=no
9851022 cat > conftest.c << _LT_EOF
9971034 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
9981035 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9991036 _lt_result=$?
1000 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
1037 if test -s conftest.err && $GREP force_load conftest.err; then
1038 cat conftest.err >&AS_MESSAGE_LOG_FD
1039 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10011040 lt_cv_ld_force_load=yes
10021041 else
10031042 cat conftest.err >&AS_MESSAGE_LOG_FD
10421081 ])
10431082
10441083
1045 # _LT_DARWIN_LINKER_FEATURES
1046 # --------------------------
1084 # _LT_DARWIN_LINKER_FEATURES([TAG])
1085 # ---------------------------------
10471086 # Checks for linker and compiler features on darwin
10481087 m4_defun([_LT_DARWIN_LINKER_FEATURES],
10491088 [
10541093 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
10551094 if test "$lt_cv_ld_force_load" = "yes"; then
10561095 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1096 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1097 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
10571098 else
10581099 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
10591100 fi
13371378 CFLAGS="$SAVE_CFLAGS"
13381379 fi
13391380 ;;
1340 sparc*-*solaris*)
1381 *-*solaris*)
13411382 # Find out which ABI we are using.
13421383 echo 'int i;' > conftest.$ac_ext
13431384 if AC_TRY_EVAL(ac_compile); then
13441385 case `/usr/bin/file conftest.o` in
13451386 *64-bit*)
13461387 case $lt_cv_prog_gnu_ld in
1347 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1388 yes*)
1389 case $host in
1390 i?86-*-solaris*)
1391 LD="${LD-ld} -m elf_x86_64"
1392 ;;
1393 sparc*-*-solaris*)
1394 LD="${LD-ld} -m elf64_sparc"
1395 ;;
1396 esac
1397 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1398 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1399 LD="${LD-ld}_sol2"
1400 fi
1401 ;;
13481402 *)
13491403 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13501404 LD="${LD-ld} -64"
14211475 if test -n "$RANLIB"; then
14221476 case $host_os in
14231477 openbsd*)
1424 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1478 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
14251479 ;;
14261480 *)
1427 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1481 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
14281482 ;;
14291483 esac
1430 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1484 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
14311485 fi
14321486
14331487 case $host_os in
16051659 interix*)
16061660 # We know the value 262144 and hardcode it with a safety zone (like BSD)
16071661 lt_cv_sys_max_cmd_len=196608
1662 ;;
1663
1664 os2*)
1665 # The test takes a long time on OS/2.
1666 lt_cv_sys_max_cmd_len=8192
16081667 ;;
16091668
16101669 osf*)
16461705 # If test is not a shell built-in, we'll probably end up computing a
16471706 # maximum length that is only half of the actual maximum length, but
16481707 # we can't tell.
1649 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
1708 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
16501709 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16511710 test $i != 17 # 1/2 MB should be enough
16521711 do
21922251
21932252 case $host_os in
21942253 aix3*)
2195 version_type=linux
2254 version_type=linux # correct to gnu/linux during the next big refactor
21962255 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21972256 shlibpath_var=LIBPATH
21982257
22012260 ;;
22022261
22032262 aix[[4-9]]*)
2204 version_type=linux
2263 version_type=linux # correct to gnu/linux during the next big refactor
22052264 need_lib_prefix=no
22062265 need_version=no
22072266 hardcode_into_libs=yes
22662325 ;;
22672326
22682327 bsdi[[45]]*)
2269 version_type=linux
2328 version_type=linux # correct to gnu/linux during the next big refactor
22702329 need_version=no
22712330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22722331 soname_spec='${libname}${release}${shared_ext}$major'
24052464 ;;
24062465
24072466 dgux*)
2408 version_type=linux
2467 version_type=linux # correct to gnu/linux during the next big refactor
24092468 need_lib_prefix=no
24102469 need_version=no
24112470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24122471 soname_spec='${libname}${release}${shared_ext}$major'
24132472 shlibpath_var=LD_LIBRARY_PATH
2414 ;;
2415
2416 freebsd1*)
2417 dynamic_linker=no
24182473 ;;
24192474
24202475 freebsd* | dragonfly*)
24242479 objformat=`/usr/bin/objformat`
24252480 else
24262481 case $host_os in
2427 freebsd[[123]]*) objformat=aout ;;
2482 freebsd[[23]].*) objformat=aout ;;
24282483 *) objformat=elf ;;
24292484 esac
24302485 fi
24422497 esac
24432498 shlibpath_var=LD_LIBRARY_PATH
24442499 case $host_os in
2445 freebsd2*)
2500 freebsd2.*)
24462501 shlibpath_overrides_runpath=yes
24472502 ;;
24482503 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
24622517 ;;
24632518
24642519 gnu*)
2465 version_type=linux
2520 version_type=linux # correct to gnu/linux during the next big refactor
24662521 need_lib_prefix=no
24672522 need_version=no
24682523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24692524 soname_spec='${libname}${release}${shared_ext}$major'
24702525 shlibpath_var=LD_LIBRARY_PATH
2526 shlibpath_overrides_runpath=no
24712527 hardcode_into_libs=yes
24722528 ;;
24732529
24742530 haiku*)
2475 version_type=linux
2531 version_type=linux # correct to gnu/linux during the next big refactor
24762532 need_lib_prefix=no
24772533 need_version=no
24782534 dynamic_linker="$host_os runtime_loader"
25332589 ;;
25342590
25352591 interix[[3-9]]*)
2536 version_type=linux
2592 version_type=linux # correct to gnu/linux during the next big refactor
25372593 need_lib_prefix=no
25382594 need_version=no
25392595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25492605 nonstopux*) version_type=nonstopux ;;
25502606 *)
25512607 if test "$lt_cv_prog_gnu_ld" = yes; then
2552 version_type=linux
2608 version_type=linux # correct to gnu/linux during the next big refactor
25532609 else
25542610 version_type=irix
25552611 fi ;;
25862642 dynamic_linker=no
25872643 ;;
25882644
2589 # This must be Linux ELF.
2645 # This must be glibc/ELF.
25902646 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2591 version_type=linux
2647 version_type=linux # correct to gnu/linux during the next big refactor
25922648 need_lib_prefix=no
25932649 need_version=no
25942650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26552711 ;;
26562712
26572713 newsos6)
2658 version_type=linux
2714 version_type=linux # correct to gnu/linux during the next big refactor
26592715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26602716 shlibpath_var=LD_LIBRARY_PATH
26612717 shlibpath_overrides_runpath=yes
27242780 ;;
27252781
27262782 solaris*)
2727 version_type=linux
2783 version_type=linux # correct to gnu/linux during the next big refactor
27282784 need_lib_prefix=no
27292785 need_version=no
27302786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27492805 ;;
27502806
27512807 sysv4 | sysv4.3*)
2752 version_type=linux
2808 version_type=linux # correct to gnu/linux during the next big refactor
27532809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27542810 soname_spec='${libname}${release}${shared_ext}$major'
27552811 shlibpath_var=LD_LIBRARY_PATH
27732829
27742830 sysv4*MP*)
27752831 if test -d /usr/nec ;then
2776 version_type=linux
2832 version_type=linux # correct to gnu/linux during the next big refactor
27772833 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
27782834 soname_spec='$libname${shared_ext}.$major'
27792835 shlibpath_var=LD_LIBRARY_PATH
28042860
28052861 tpf*)
28062862 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2807 version_type=linux
2863 version_type=linux # correct to gnu/linux during the next big refactor
28082864 need_lib_prefix=no
28092865 need_version=no
28102866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28142870 ;;
28152871
28162872 uts4*)
2817 version_type=linux
2873 version_type=linux # correct to gnu/linux during the next big refactor
28182874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28192875 soname_spec='${libname}${release}${shared_ext}$major'
28202876 shlibpath_var=LD_LIBRARY_PATH
32363292 lt_cv_deplibs_check_method=pass_all
32373293 ;;
32383294
3239 # This must be Linux ELF.
3295 # This must be glibc/ELF.
32403296 linux* | k*bsd*-gnu | kopensolaris*-gnu)
32413297 lt_cv_deplibs_check_method=pass_all
32423298 ;;
36563712 # which start with @ or ?.
36573713 lt_cv_sys_global_symbol_pipe="$AWK ['"\
36583714 " {last_section=section; section=\$ 3};"\
3715 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
36593716 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
36603717 " \$ 0!~/External *\|/{next};"\
36613718 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
42404297 case $cc_basename in
42414298 nvcc*) # Cuda Compiler Driver 2.2
42424299 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4243 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
4300 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4301 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4302 fi
42444303 ;;
42454304 esac
42464305 else
43324391 ;;
43334392 *)
43344393 case `$CC -V 2>&1 | sed 5q` in
4335 *Sun\ F* | *Sun*Fortran*)
4394 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
43364395 # Sun Fortran 8.3 passes all unrecognized flags to the linker
43374396 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
43384397 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
43394398 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4399 ;;
4400 *Sun\ F* | *Sun*Fortran*)
4401 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4402 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4403 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
43404404 ;;
43414405 *Sun\ C*)
43424406 # Sun C 5.9
43434407 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
43444408 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
43454409 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4410 ;;
4411 *Intel*\ [[CF]]*Compiler*)
4412 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4413 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4414 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4415 ;;
4416 *Portland\ Group*)
4417 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4418 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4419 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
43464420 ;;
43474421 esac
43484422 ;;
45034577 ;;
45044578 cygwin* | mingw* | cegcc*)
45054579 case $cc_basename in
4506 cl*) ;;
4580 cl*)
4581 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4582 ;;
45074583 *)
45084584 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
45094585 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
45284604 _LT_TAGVAR(hardcode_direct, $1)=no
45294605 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
45304606 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4531 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
45324607 _LT_TAGVAR(hardcode_libdir_separator, $1)=
45334608 _LT_TAGVAR(hardcode_minus_L, $1)=no
45344609 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
47794854 xlf* | bgf* | bgxlf* | mpixlf*)
47804855 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
47814856 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4782 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4783 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4857 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
47844858 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
47854859 if test "x$supports_anon_versioning" = xyes; then
47864860 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
50755149 # The linker will not automatically build a static lib if we build a DLL.
50765150 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
50775151 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5152 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
50785153 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
50795154 # Don't use ranlib
50805155 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
51215196 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
51225197 ;;
51235198
5124 freebsd1*)
5125 _LT_TAGVAR(ld_shlibs, $1)=no
5126 ;;
5127
51285199 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
51295200 # support. Future versions do this automatically, but an explicit c++rt0.o
51305201 # does not break anything, and helps significantly (at the cost of a little
51375208 ;;
51385209
51395210 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5140 freebsd2*)
5211 freebsd2.*)
51415212 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
51425213 _LT_TAGVAR(hardcode_direct, $1)=yes
51435214 _LT_TAGVAR(hardcode_minus_L, $1)=yes
51765247 fi
51775248 if test "$with_gnu_ld" = no; then
51785249 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5179 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
51805250 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
51815251 _LT_TAGVAR(hardcode_direct, $1)=yes
51825252 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
56185688 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
56195689 [Flag to hardcode $libdir into a binary during linking.
56205690 This must work even if $libdir does not exist])
5621 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5622 [[If ld is used when linking, flag to hardcode $libdir into a binary
5623 during linking. This must work even if $libdir does not exist]])
56245691 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
56255692 [Whether we need a single "-rpath" flag with a separated argument])
56265693 _LT_TAGDECL([], [hardcode_direct], [0],
57745841 _LT_TAGVAR(hardcode_direct, $1)=no
57755842 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
57765843 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5777 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
57785844 _LT_TAGVAR(hardcode_libdir_separator, $1)=
57795845 _LT_TAGVAR(hardcode_minus_L, $1)=no
57805846 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
61446210 esac
61456211 ;;
61466212
6147 freebsd[[12]]*)
6213 freebsd2.*)
61486214 # C++ shared libraries reported to be fairly broken before
61496215 # switch to ELF
61506216 _LT_TAGVAR(ld_shlibs, $1)=no
69056971 }
69066972 };
69076973 _LT_EOF
6974 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6975 package foo
6976 func foo() {
6977 }
6978 _LT_EOF
69086979 ])
69096980
69106981 _lt_libdeps_save_CFLAGS=$CFLAGS
69116982 case "$CC $CFLAGS " in #(
69126983 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
69136984 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6985 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
69146986 esac
69156987
69166988 dnl Parse the compiler output and extract the necessary
71077179 _LT_TAGVAR(hardcode_direct, $1)=no
71087180 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
71097181 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7110 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
71117182 _LT_TAGVAR(hardcode_libdir_separator, $1)=
71127183 _LT_TAGVAR(hardcode_minus_L, $1)=no
71137184 _LT_TAGVAR(hardcode_automatic, $1)=no
72407311 _LT_TAGVAR(hardcode_direct, $1)=no
72417312 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
72427313 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7243 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
72447314 _LT_TAGVAR(hardcode_libdir_separator, $1)=
72457315 _LT_TAGVAR(hardcode_minus_L, $1)=no
72467316 _LT_TAGVAR(hardcode_automatic, $1)=no
74237493 ])# _LT_LANG_GCJ_CONFIG
74247494
74257495
7496 # _LT_LANG_GO_CONFIG([TAG])
7497 # --------------------------
7498 # Ensure that the configuration variables for the GNU Go compiler
7499 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7500 # to write the compiler configuration to `libtool'.
7501 m4_defun([_LT_LANG_GO_CONFIG],
7502 [AC_REQUIRE([LT_PROG_GO])dnl
7503 AC_LANG_SAVE
7504
7505 # Source file extension for Go test sources.
7506 ac_ext=go
7507
7508 # Object file extension for compiled Go test sources.
7509 objext=o
7510 _LT_TAGVAR(objext, $1)=$objext
7511
7512 # Code to be used in simple compile tests
7513 lt_simple_compile_test_code="package main; func main() { }"
7514
7515 # Code to be used in simple link tests
7516 lt_simple_link_test_code='package main; func main() { }'
7517
7518 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7519 _LT_TAG_COMPILER
7520
7521 # save warnings/boilerplate of simple test code
7522 _LT_COMPILER_BOILERPLATE
7523 _LT_LINKER_BOILERPLATE
7524
7525 # Allow CC to be a program name with arguments.
7526 lt_save_CC=$CC
7527 lt_save_CFLAGS=$CFLAGS
7528 lt_save_GCC=$GCC
7529 GCC=yes
7530 CC=${GOC-"gccgo"}
7531 CFLAGS=$GOFLAGS
7532 compiler=$CC
7533 _LT_TAGVAR(compiler, $1)=$CC
7534 _LT_TAGVAR(LD, $1)="$LD"
7535 _LT_CC_BASENAME([$compiler])
7536
7537 # Go did not exist at the time GCC didn't implicitly link libc in.
7538 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7539
7540 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7541 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7542 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7543
7544 if test -n "$compiler"; then
7545 _LT_COMPILER_NO_RTTI($1)
7546 _LT_COMPILER_PIC($1)
7547 _LT_COMPILER_C_O($1)
7548 _LT_COMPILER_FILE_LOCKS($1)
7549 _LT_LINKER_SHLIBS($1)
7550 _LT_LINKER_HARDCODE_LIBPATH($1)
7551
7552 _LT_CONFIG($1)
7553 fi
7554
7555 AC_LANG_RESTORE
7556
7557 GCC=$lt_save_GCC
7558 CC=$lt_save_CC
7559 CFLAGS=$lt_save_CFLAGS
7560 ])# _LT_LANG_GO_CONFIG
7561
7562
74267563 # _LT_LANG_RC_CONFIG([TAG])
74277564 # -------------------------
74287565 # Ensure that the configuration variables for the Windows resource compiler
74907627 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
74917628 dnl aclocal-1.4 backwards compatibility:
74927629 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7630
7631
7632 # LT_PROG_GO
7633 # ----------
7634 AC_DEFUN([LT_PROG_GO],
7635 [AC_CHECK_TOOL(GOC, gccgo,)
7636 ])
74937637
74947638
74957639 # LT_PROG_RC
81568300 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
81578301 m4_define([_LT_WITH_PIC],
81588302 [AC_ARG_WITH([pic],
8159 [AS_HELP_STRING([--with-pic],
8303 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
81608304 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8161 [pic_mode="$withval"],
8305 [lt_p=${PACKAGE-default}
8306 case $withval in
8307 yes|no) pic_mode=$withval ;;
8308 *)
8309 pic_mode=default
8310 # Look at the argument we got. We use all the common list separators.
8311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8312 for lt_pkg in $withval; do
8313 IFS="$lt_save_ifs"
8314 if test "X$lt_pkg" = "X$lt_p"; then
8315 pic_mode=yes
8316 fi
8317 done
8318 IFS="$lt_save_ifs"
8319 ;;
8320 esac],
81628321 [pic_mode=default])
81638322
81648323 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
83308489
83318490 # @configure_input@
83328491
8333 # serial 3293 ltversion.m4
8492 # serial 3337 ltversion.m4
83348493 # This file is part of GNU Libtool
83358494
8336 m4_define([LT_PACKAGE_VERSION], [2.4])
8337 m4_define([LT_PACKAGE_REVISION], [1.3293])
8495 m4_define([LT_PACKAGE_VERSION], [2.4.2])
8496 m4_define([LT_PACKAGE_REVISION], [1.3337])
83388497
83398498 AC_DEFUN([LTVERSION_VERSION],
8340 [macro_version='2.4'
8341 macro_revision='1.3293'
8499 [macro_version='2.4.2'
8500 macro_revision='1.3337'
83428501 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
83438502 _LT_DECL(, macro_revision, 0)
83448503 ])
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-11-20'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-06-10'
77
88 # This file is free software; you can redistribute it and/or modify it
99 # under the terms of the GNU General Public License as published by
1616 # General Public License for more details.
1717 #
1818 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
19 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2220 #
2321 # As a special exception to the GNU General Public License, if you
2422 # distribute this file as part of a program that contains a
5553 GNU config.guess ($timestamp)
5654
5755 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
59 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
57 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
58 Free Software Foundation, Inc.
6059
6160 This is free software; see the source for copying conditions. There is NO
6261 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
143142 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144143 *:NetBSD:*:*)
145144 # NetBSD (nbsd) targets should (where applicable) match one or
146 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
145 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
147146 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148147 # switched to ELF, *-*-netbsd* would select the old
149148 # object file format. This provides both forward
179178 fi
180179 ;;
181180 *)
182 os=netbsd
181 os=netbsd
183182 ;;
184183 esac
185184 # The OS release
222221 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
223222 ;;
224223 *5.*)
225 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
224 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226225 ;;
227226 esac
228227 # According to Compaq, /usr/sbin/psrinfo has been available on
268267 # A Xn.n version is an unreleased experimental baselevel.
269268 # 1.2 uses "1.2" for uname -r.
270269 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
271 exit ;;
270 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
271 exitcode=$?
272 trap '' 0
273 exit $exitcode ;;
272274 Alpha\ *:Windows_NT*:*)
273275 # How do we know it's Interix rather than the generic POSIX subsystem?
274276 # Should we change UNAME_MACHINE based on the output of uname instead
294296 echo s390-ibm-zvmoe
295297 exit ;;
296298 *:OS400:*:*)
297 echo powerpc-ibm-os400
299 echo powerpc-ibm-os400
298300 exit ;;
299301 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
300302 echo arm-acorn-riscix${UNAME_RELEASE}
393395 # MiNT. But MiNT is downward compatible to TOS, so this should
394396 # be no problem.
395397 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
396 echo m68k-atari-mint${UNAME_RELEASE}
398 echo m68k-atari-mint${UNAME_RELEASE}
397399 exit ;;
398400 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
399401 echo m68k-atari-mint${UNAME_RELEASE}
400 exit ;;
402 exit ;;
401403 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
402 echo m68k-atari-mint${UNAME_RELEASE}
404 echo m68k-atari-mint${UNAME_RELEASE}
403405 exit ;;
404406 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
405 echo m68k-milan-mint${UNAME_RELEASE}
406 exit ;;
407 echo m68k-milan-mint${UNAME_RELEASE}
408 exit ;;
407409 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
408 echo m68k-hades-mint${UNAME_RELEASE}
409 exit ;;
410 echo m68k-hades-mint${UNAME_RELEASE}
411 exit ;;
410412 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
411 echo m68k-unknown-mint${UNAME_RELEASE}
412 exit ;;
413 echo m68k-unknown-mint${UNAME_RELEASE}
414 exit ;;
413415 m68k:machten:*:*)
414416 echo m68k-apple-machten${UNAME_RELEASE}
415417 exit ;;
479481 echo m88k-motorola-sysv3
480482 exit ;;
481483 AViiON:dgux:*:*)
482 # DG/UX returns AViiON for all architectures
483 UNAME_PROCESSOR=`/usr/bin/uname -p`
484 # DG/UX returns AViiON for all architectures
485 UNAME_PROCESSOR=`/usr/bin/uname -p`
484486 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
485487 then
486488 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
493495 else
494496 echo i586-dg-dgux${UNAME_RELEASE}
495497 fi
496 exit ;;
498 exit ;;
497499 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
498500 echo m88k-dolphin-sysv3
499501 exit ;;
550552 echo rs6000-ibm-aix3.2
551553 fi
552554 exit ;;
553 *:AIX:*:[456])
555 *:AIX:*:[4567])
554556 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
555557 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
556558 IBM_ARCH=rs6000
593595 9000/[678][0-9][0-9])
594596 if [ -x /usr/bin/getconf ]; then
595597 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
596 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
597 case "${sc_cpu_version}" in
598 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
599 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
600 532) # CPU_PA_RISC2_0
601 case "${sc_kernel_bits}" in
602 32) HP_ARCH="hppa2.0n" ;;
603 64) HP_ARCH="hppa2.0w" ;;
598 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
599 case "${sc_cpu_version}" in
600 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
601 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
602 532) # CPU_PA_RISC2_0
603 case "${sc_kernel_bits}" in
604 32) HP_ARCH="hppa2.0n" ;;
605 64) HP_ARCH="hppa2.0w" ;;
604606 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
605 esac ;;
606 esac
607 esac ;;
608 esac
607609 fi
608610 if [ "${HP_ARCH}" = "" ]; then
609611 eval $set_cc_for_build
610 sed 's/^ //' << EOF >$dummy.c
611
612 #define _HPUX_SOURCE
613 #include <stdlib.h>
614 #include <unistd.h>
615
616 int main ()
617 {
618 #if defined(_SC_KERNEL_BITS)
619 long bits = sysconf(_SC_KERNEL_BITS);
620 #endif
621 long cpu = sysconf (_SC_CPU_VERSION);
622
623 switch (cpu)
624 {
625 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
626 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
627 case CPU_PA_RISC2_0:
628 #if defined(_SC_KERNEL_BITS)
629 switch (bits)
630 {
631 case 64: puts ("hppa2.0w"); break;
632 case 32: puts ("hppa2.0n"); break;
633 default: puts ("hppa2.0"); break;
634 } break;
635 #else /* !defined(_SC_KERNEL_BITS) */
636 puts ("hppa2.0"); break;
637 #endif
638 default: puts ("hppa1.0"); break;
639 }
640 exit (0);
641 }
612 sed 's/^ //' << EOF >$dummy.c
613
614 #define _HPUX_SOURCE
615 #include <stdlib.h>
616 #include <unistd.h>
617
618 int main ()
619 {
620 #if defined(_SC_KERNEL_BITS)
621 long bits = sysconf(_SC_KERNEL_BITS);
622 #endif
623 long cpu = sysconf (_SC_CPU_VERSION);
624
625 switch (cpu)
626 {
627 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
628 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
629 case CPU_PA_RISC2_0:
630 #if defined(_SC_KERNEL_BITS)
631 switch (bits)
632 {
633 case 64: puts ("hppa2.0w"); break;
634 case 32: puts ("hppa2.0n"); break;
635 default: puts ("hppa2.0"); break;
636 } break;
637 #else /* !defined(_SC_KERNEL_BITS) */
638 puts ("hppa2.0"); break;
639 #endif
640 default: puts ("hppa1.0"); break;
641 }
642 exit (0);
643 }
642644 EOF
643645 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
644646 test -z "$HP_ARCH" && HP_ARCH=hppa
729731 exit ;;
730732 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
731733 echo c1-convex-bsd
732 exit ;;
734 exit ;;
733735 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
734736 if getsysinfo -f scalar_acc
735737 then echo c32-convex-bsd
736738 else echo c2-convex-bsd
737739 fi
738 exit ;;
740 exit ;;
739741 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
740742 echo c34-convex-bsd
741 exit ;;
743 exit ;;
742744 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
743745 echo c38-convex-bsd
744 exit ;;
746 exit ;;
745747 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
746748 echo c4-convex-bsd
747 exit ;;
749 exit ;;
748750 CRAY*Y-MP:*:*:*)
749751 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
750752 exit ;;
768770 exit ;;
769771 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
770772 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
771 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
772 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
773 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
774 exit ;;
773 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
774 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
775 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
776 exit ;;
775777 5000:UNIX_System_V:4.*:*)
776 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
777 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
778 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
778 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
779 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
780 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
779781 exit ;;
780782 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
781783 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
787789 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
788790 exit ;;
789791 *:FreeBSD:*:*)
790 case ${UNAME_MACHINE} in
791 pc98)
792 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
792 UNAME_PROCESSOR=`/usr/bin/uname -p`
793 case ${UNAME_PROCESSOR} in
793794 amd64)
794795 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
795796 *)
796 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797798 esac
798799 exit ;;
799800 i*:CYGWIN*:*)
802803 *:MINGW*:*)
803804 echo ${UNAME_MACHINE}-pc-mingw32
804805 exit ;;
806 i*:MSYS*:*)
807 echo ${UNAME_MACHINE}-pc-msys
808 exit ;;
805809 i*:windows32*:*)
806 # uname -m includes "-pc" on this system.
807 echo ${UNAME_MACHINE}-mingw32
810 # uname -m includes "-pc" on this system.
811 echo ${UNAME_MACHINE}-mingw32
808812 exit ;;
809813 i*:PW*:*)
810814 echo ${UNAME_MACHINE}-pc-pw32
811815 exit ;;
812816 *:Interix*:*)
813 case ${UNAME_MACHINE} in
817 case ${UNAME_MACHINE} in
814818 x86)
815819 echo i586-pc-interix${UNAME_RELEASE}
816820 exit ;;
856860 i*86:Minix:*:*)
857861 echo ${UNAME_MACHINE}-pc-minix
858862 exit ;;
863 aarch64:Linux:*:*)
864 echo ${UNAME_MACHINE}-unknown-linux-gnu
865 exit ;;
866 aarch64_be:Linux:*:*)
867 UNAME_MACHINE=aarch64_be
868 echo ${UNAME_MACHINE}-unknown-linux-gnu
869 exit ;;
859870 alpha:Linux:*:*)
860871 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
861872 EV5) UNAME_MACHINE=alphaev5 ;;
865876 EV6) UNAME_MACHINE=alphaev6 ;;
866877 EV67) UNAME_MACHINE=alphaev67 ;;
867878 EV68*) UNAME_MACHINE=alphaev68 ;;
868 esac
879 esac
869880 objdump --private-headers /bin/sh | grep -q ld.so.1
870881 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
871882 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
877888 then
878889 echo ${UNAME_MACHINE}-unknown-linux-gnu
879890 else
880 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
891 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
892 | grep -q __ARM_PCS_VFP
893 then
894 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
895 else
896 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
897 fi
881898 fi
882899 exit ;;
883900 avr32*:Linux:*:*)
884901 echo ${UNAME_MACHINE}-unknown-linux-gnu
885902 exit ;;
886903 cris:Linux:*:*)
887 echo cris-axis-linux-gnu
904 echo ${UNAME_MACHINE}-axis-linux-gnu
888905 exit ;;
889906 crisv32:Linux:*:*)
890 echo crisv32-axis-linux-gnu
907 echo ${UNAME_MACHINE}-axis-linux-gnu
891908 exit ;;
892909 frv:Linux:*:*)
893 echo frv-unknown-linux-gnu
910 echo ${UNAME_MACHINE}-unknown-linux-gnu
911 exit ;;
912 hexagon:Linux:*:*)
913 echo ${UNAME_MACHINE}-unknown-linux-gnu
894914 exit ;;
895915 i*86:Linux:*:*)
896916 LIBC=gnu
932952 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
933953 ;;
934954 or32:Linux:*:*)
935 echo or32-unknown-linux-gnu
955 echo ${UNAME_MACHINE}-unknown-linux-gnu
936956 exit ;;
937957 padre:Linux:*:*)
938958 echo sparc-unknown-linux-gnu
958978 echo ${UNAME_MACHINE}-ibm-linux
959979 exit ;;
960980 sh64*:Linux:*:*)
961 echo ${UNAME_MACHINE}-unknown-linux-gnu
981 echo ${UNAME_MACHINE}-unknown-linux-gnu
962982 exit ;;
963983 sh*:Linux:*:*)
964984 echo ${UNAME_MACHINE}-unknown-linux-gnu
966986 sparc:Linux:*:* | sparc64:Linux:*:*)
967987 echo ${UNAME_MACHINE}-unknown-linux-gnu
968988 exit ;;
989 tile*:Linux:*:*)
990 echo ${UNAME_MACHINE}-unknown-linux-gnu
991 exit ;;
969992 vax:Linux:*:*)
970993 echo ${UNAME_MACHINE}-dec-linux-gnu
971994 exit ;;
972995 x86_64:Linux:*:*)
973 echo x86_64-unknown-linux-gnu
996 echo ${UNAME_MACHINE}-unknown-linux-gnu
974997 exit ;;
975998 xtensa*:Linux:*:*)
976 echo ${UNAME_MACHINE}-unknown-linux-gnu
999 echo ${UNAME_MACHINE}-unknown-linux-gnu
9771000 exit ;;
9781001 i*86:DYNIX/ptx:4*:*)
9791002 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
9821005 echo i386-sequent-sysv4
9831006 exit ;;
9841007 i*86:UNIX_SV:4.2MP:2.*)
985 # Unixware is an offshoot of SVR4, but it has its own version
986 # number series starting with 2...
987 # I am not positive that other SVR4 systems won't match this,
1008 # Unixware is an offshoot of SVR4, but it has its own version
1009 # number series starting with 2...
1010 # I am not positive that other SVR4 systems won't match this,
9881011 # I just have to hope. -- rms.
989 # Use sysv4.2uw... so that sysv4* matches it.
1012 # Use sysv4.2uw... so that sysv4* matches it.
9901013 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
9911014 exit ;;
9921015 i*86:OS/2:*:*)
10181041 fi
10191042 exit ;;
10201043 i*86:*:5:[678]*)
1021 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1044 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10221045 case `/bin/uname -X | grep "^Machine"` in
10231046 *486*) UNAME_MACHINE=i486 ;;
10241047 *Pentium) UNAME_MACHINE=i586 ;;
10461069 exit ;;
10471070 pc:*:*:*)
10481071 # Left here for compatibility:
1049 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1050 # the processor, so we play safe by assuming i586.
1072 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1073 # the processor, so we play safe by assuming i586.
10511074 # Note: whatever this is, it MUST be the same as what config.sub
10521075 # prints for the "djgpp" host, or else GDB configury will decide that
10531076 # this is a cross-build.
10541077 echo i586-pc-msdosdjgpp
1055 exit ;;
1078 exit ;;
10561079 Intel:Mach:3*:*)
10571080 echo i386-pc-mach3
10581081 exit ;;
10871110 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
10881111 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
10891112 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1090 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1091 && { echo i486-ncr-sysv4; exit; } ;;
1113 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1114 && { echo i486-ncr-sysv4; exit; } ;;
10921115 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
10931116 OS_REL='.3'
10941117 test -r /etc/.relid \
11311154 echo ns32k-sni-sysv
11321155 fi
11331156 exit ;;
1134 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1135 # says <Richard.M.Bartel@ccMail.Census.GOV>
1136 echo i586-unisys-sysv4
1137 exit ;;
1157 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1158 # says <Richard.M.Bartel@ccMail.Census.GOV>
1159 echo i586-unisys-sysv4
1160 exit ;;
11381161 *:UNIX_System_V:4*:FTX*)
11391162 # From Gerald Hewes <hewes@openmarket.com>.
11401163 # How about differentiating between stratus architectures? -djm
11601183 exit ;;
11611184 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
11621185 if [ -d /usr/nec ]; then
1163 echo mips-nec-sysv${UNAME_RELEASE}
1186 echo mips-nec-sysv${UNAME_RELEASE}
11641187 else
1165 echo mips-unknown-sysv${UNAME_RELEASE}
1166 fi
1167 exit ;;
1188 echo mips-unknown-sysv${UNAME_RELEASE}
1189 fi
1190 exit ;;
11681191 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
11691192 echo powerpc-be-beos
11701193 exit ;;
12291252 *:QNX:*:4*)
12301253 echo i386-pc-qnx
12311254 exit ;;
1232 NSE-?:NONSTOP_KERNEL:*:*)
1255 NEO-?:NONSTOP_KERNEL:*:*)
1256 echo neo-tandem-nsk${UNAME_RELEASE}
1257 exit ;;
1258 NSE-*:NONSTOP_KERNEL:*:*)
12331259 echo nse-tandem-nsk${UNAME_RELEASE}
12341260 exit ;;
12351261 NSR-?:NONSTOP_KERNEL:*:*)
12741300 echo pdp10-unknown-its
12751301 exit ;;
12761302 SEI:*:*:SEIUX)
1277 echo mips-sei-seiux${UNAME_RELEASE}
1303 echo mips-sei-seiux${UNAME_RELEASE}
12781304 exit ;;
12791305 *:DragonFly:*:*)
12801306 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
12811307 exit ;;
12821308 *:*VMS:*:*)
1283 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1309 UNAME_MACHINE=`(uname -p) 2>/dev/null`
12841310 case "${UNAME_MACHINE}" in
12851311 A*) echo alpha-dec-vms ; exit ;;
12861312 I*) echo ia64-dec-vms ; exit ;;
12971323 exit ;;
12981324 i*86:AROS:*:*)
12991325 echo ${UNAME_MACHINE}-pc-aros
1326 exit ;;
1327 x86_64:VMkernel:*:*)
1328 echo ${UNAME_MACHINE}-unknown-esx
13001329 exit ;;
13011330 esac
13021331
13201349 #include <sys/param.h>
13211350 printf ("m68k-sony-newsos%s\n",
13221351 #ifdef NEWSOS4
1323 "4"
1352 "4"
13241353 #else
1325 ""
1326 #endif
1327 ); exit (0);
1354 ""
1355 #endif
1356 ); exit (0);
13281357 #endif
13291358 #endif
13301359
547547 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
548548 `char[]'. */
549549 #undef YYTEXT_POINTER
550
551 /* Enable large inode numbers on Mac OS X 10.5. */
552 #ifndef _DARWIN_USE_64_BIT_INODE
553 # define _DARWIN_USE_64_BIT_INODE 1
554 #endif
550555
551556 /* Number of bits in a file offset, on hosts where this is settable. */
552557 #undef _FILE_OFFSET_BITS
00 #! /bin/sh
11 # Configuration validation subroutine script.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-11-20'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-04-18'
77
88 # This file is (in principle) common to ALL GNU software.
99 # The presence of a machine in this file suggests that SOME GNU software
2020 # GNU General Public License for more details.
2121 #
2222 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
23 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2624 #
2725 # As a special exception to the GNU General Public License, if you
2826 # distribute this file as part of a program that contains a
7472 version="\
7573 GNU config.sub ($timestamp)
7674
77 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
78 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
75 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
76 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
77 Free Software Foundation, Inc.
7978
8079 This is free software; see the source for copying conditions. There is NO
8180 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
122121 # Here we must recognize all the valid KERNEL-OS combinations.
123122 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
124123 case $maybe_os in
125 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
126 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
124 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
125 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
126 knetbsd*-gnu* | netbsd*-gnu* | \
127127 kopensolaris*-gnu* | \
128128 storm-chaos* | os2-emx* | rtmk-nova*)
129129 os=-$maybe_os
130130 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
131 ;;
132 android-linux)
133 os=-linux-android
134 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
131135 ;;
132136 *)
133137 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
155159 os=
156160 basic_machine=$1
157161 ;;
158 -bluegene*)
159 os=-cnk
162 -bluegene*)
163 os=-cnk
160164 ;;
161165 -sim | -cisco | -oki | -wec | -winbond)
162166 os=
172176 os=-chorusos
173177 basic_machine=$1
174178 ;;
175 -chorusrdb)
176 os=-chorusrdb
179 -chorusrdb)
180 os=-chorusrdb
177181 basic_machine=$1
178 ;;
182 ;;
179183 -hiux*)
180184 os=-hiuxwe2
181185 ;;
219223 ;;
220224 -isc*)
221225 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
226 ;;
227 -lynx*178)
228 os=-lynxos178
229 ;;
230 -lynx*5)
231 os=-lynxos5
222232 ;;
223233 -lynx*)
224234 os=-lynxos
244254 # Some are omitted here because they have special meanings below.
245255 1750a | 580 \
246256 | a29k \
257 | aarch64 | aarch64_be \
247258 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
248259 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
249260 | am33_2.0 \
250261 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
262 | be32 | be64 \
251263 | bfin \
252264 | c4x | clipper \
253265 | d10v | d30v | dlx | dsp16xx \
266 | epiphany \
254267 | fido | fr30 | frv \
255268 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
269 | hexagon \
256270 | i370 | i860 | i960 | ia64 \
257271 | ip2k | iq2000 \
272 | le32 | le64 \
258273 | lm32 \
259274 | m32c | m32r | m32rle | m68000 | m68k | m88k \
260275 | maxq | mb | microblaze | mcore | mep | metag \
280295 | moxie \
281296 | mt \
282297 | msp430 \
298 | nds32 | nds32le | nds32be \
283299 | nios | nios2 \
284300 | ns16k | ns32k \
301 | open8 \
285302 | or32 \
286303 | pdp10 | pdp11 | pj | pjl \
287 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
304 | powerpc | powerpc64 | powerpc64le | powerpcle \
288305 | pyramid \
289 | rx \
306 | rl78 | rx \
290307 | score \
291308 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
292309 | sh64 | sh64le \
293310 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
294311 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
295 | spu | strongarm \
296 | tahoe | thumb | tic4x | tic80 | tron \
312 | spu \
313 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
297314 | ubicom32 \
298 | v850 | v850e \
315 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
299316 | we32k \
300 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
317 | x86 | xc16x | xstormy16 | xtensa \
301318 | z8k | z80)
302319 basic_machine=$basic_machine-unknown
303320 ;;
304 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
305 # Motorola 68HC11/12.
321 c54x)
322 basic_machine=tic54x-unknown
323 ;;
324 c55x)
325 basic_machine=tic55x-unknown
326 ;;
327 c6x)
328 basic_machine=tic6x-unknown
329 ;;
330 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
306331 basic_machine=$basic_machine-unknown
307332 os=-none
308333 ;;
310335 ;;
311336 ms1)
312337 basic_machine=mt-unknown
338 ;;
339
340 strongarm | thumb | xscale)
341 basic_machine=arm-unknown
342 ;;
343 xgate)
344 basic_machine=$basic_machine-unknown
345 os=-none
346 ;;
347 xscaleeb)
348 basic_machine=armeb-unknown
349 ;;
350
351 xscaleel)
352 basic_machine=armel-unknown
313353 ;;
314354
315355 # We use `pc' rather than `unknown'
326366 # Recognize the basic CPU types with company name.
327367 580-* \
328368 | a29k-* \
369 | aarch64-* | aarch64_be-* \
329370 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
330371 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
331372 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
332373 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
333374 | avr-* | avr32-* \
375 | be32-* | be64-* \
334376 | bfin-* | bs2000-* \
335 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
377 | c[123]* | c30-* | [cjt]90-* | c4x-* \
336378 | clipper-* | craynv-* | cydra-* \
337379 | d10v-* | d30v-* | dlx-* \
338380 | elxsi-* \
339381 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
340382 | h8300-* | h8500-* \
341383 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
384 | hexagon-* \
342385 | i*86-* | i860-* | i960-* | ia64-* \
343386 | ip2k-* | iq2000-* \
387 | le32-* | le64-* \
344388 | lm32-* \
345389 | m32c-* | m32r-* | m32rle-* \
346390 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
366410 | mmix-* \
367411 | mt-* \
368412 | msp430-* \
413 | nds32-* | nds32le-* | nds32be-* \
369414 | nios-* | nios2-* \
370415 | none-* | np1-* | ns16k-* | ns32k-* \
416 | open8-* \
371417 | orion-* \
372418 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
373 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
419 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
374420 | pyramid-* \
375 | romp-* | rs6000-* | rx-* \
421 | rl78-* | romp-* | rs6000-* | rx-* \
376422 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
377423 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
378424 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
379425 | sparclite-* \
380 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
381 | tahoe-* | thumb-* \
382 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
426 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
427 | tahoe-* \
428 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
429 | tile*-* \
383430 | tron-* \
384431 | ubicom32-* \
385 | v850-* | v850e-* | vax-* \
432 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
433 | vax-* \
386434 | we32k-* \
387 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
435 | x86-* | x86_64-* | xc16x-* | xps100-* \
388436 | xstormy16-* | xtensa*-* \
389437 | ymp-* \
390438 | z8k-* | z80-*)
409457 basic_machine=a29k-amd
410458 os=-udi
411459 ;;
412 abacus)
460 abacus)
413461 basic_machine=abacus-unknown
414462 ;;
415463 adobe68k)
479527 basic_machine=powerpc-ibm
480528 os=-cnk
481529 ;;
530 c54x-*)
531 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
532 ;;
533 c55x-*)
534 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
535 ;;
536 c6x-*)
537 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
538 ;;
482539 c90)
483540 basic_machine=c90-cray
484541 os=-unicos
485542 ;;
486 cegcc)
543 cegcc)
487544 basic_machine=arm-unknown
488545 os=-cegcc
489546 ;;
515572 basic_machine=craynv-cray
516573 os=-unicosmp
517574 ;;
518 cr16)
575 cr16 | cr16-*)
519576 basic_machine=cr16-unknown
520577 os=-elf
521578 ;;
673730 i370-ibm* | ibm*)
674731 basic_machine=i370-ibm
675732 ;;
676 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
677733 i*86v32)
678734 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
679735 os=-sysv32
731787 basic_machine=ns32k-utek
732788 os=-sysv
733789 ;;
734 microblaze)
790 microblaze)
735791 basic_machine=microblaze-xilinx
736792 ;;
737793 mingw32)
770826 ms1-*)
771827 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
772828 ;;
829 msys)
830 basic_machine=i386-pc
831 os=-msys
832 ;;
773833 mvs)
774834 basic_machine=i370-ibm
775835 os=-mvs
836 ;;
837 nacl)
838 basic_machine=le32-unknown
839 os=-nacl
776840 ;;
777841 ncr3000)
778842 basic_machine=i486-ncr
838902 np1)
839903 basic_machine=np1-gould
840904 ;;
905 neo-tandem)
906 basic_machine=neo-tandem
907 ;;
908 nse-tandem)
909 basic_machine=nse-tandem
910 ;;
841911 nsr-tandem)
842912 basic_machine=nsr-tandem
843913 ;;
920990 ;;
921991 power) basic_machine=power-ibm
922992 ;;
923 ppc) basic_machine=powerpc-unknown
924 ;;
925 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
993 ppc | ppcbe) basic_machine=powerpc-unknown
994 ;;
995 ppc-* | ppcbe-*)
996 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
926997 ;;
927998 ppcle | powerpclittle | ppc-le | powerpc-little)
928999 basic_machine=powerpcle-unknown
10161087 basic_machine=i860-stratus
10171088 os=-sysv4
10181089 ;;
1090 strongarm-* | thumb-*)
1091 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1092 ;;
10191093 sun2)
10201094 basic_machine=m68000-sun
10211095 ;;
10721146 basic_machine=t90-cray
10731147 os=-unicos
10741148 ;;
1075 tic54x | c54x*)
1076 basic_machine=tic54x-unknown
1077 os=-coff
1078 ;;
1079 tic55x | c55x*)
1080 basic_machine=tic55x-unknown
1081 os=-coff
1082 ;;
1083 tic6x | c6x*)
1084 basic_machine=tic6x-unknown
1085 os=-coff
1086 ;;
10871149 tile*)
1088 basic_machine=tile-unknown
1150 basic_machine=$basic_machine-unknown
10891151 os=-linux-gnu
10901152 ;;
10911153 tx39)
11541216 ;;
11551217 xps | xps100)
11561218 basic_machine=xps100-honeywell
1219 ;;
1220 xscale-* | xscalee[bl]-*)
1221 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
11571222 ;;
11581223 ymp)
11591224 basic_machine=ymp-cray
12521317 if [ x"$os" != x"" ]
12531318 then
12541319 case $os in
1255 # First match some system type aliases
1256 # that might get confused with valid system types.
1320 # First match some system type aliases
1321 # that might get confused with valid system types.
12571322 # -solaris* is a basic system type, with this one exception.
1258 -auroraux)
1259 os=-auroraux
1323 -auroraux)
1324 os=-auroraux
12601325 ;;
12611326 -solaris1 | -solaris1.*)
12621327 os=`echo $os | sed -e 's|solaris1|sunos4|'`
12921357 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
12931358 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
12941359 | -chorusos* | -chorusrdb* | -cegcc* \
1295 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1296 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1360 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1361 | -mingw32* | -linux-gnu* | -linux-android* \
1362 | -linux-newlib* | -linux-uclibc* \
12971363 | -uxpv* | -beos* | -mpeix* | -udk* \
12981364 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
12991365 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13401406 -opened*)
13411407 os=-openedition
13421408 ;;
1343 -os400*)
1409 -os400*)
13441410 os=-os400
13451411 ;;
13461412 -wince*)
13891455 -sinix*)
13901456 os=-sysv4
13911457 ;;
1392 -tpf*)
1458 -tpf*)
13931459 os=-tpf
13941460 ;;
13951461 -triton*)
14331499 ;;
14341500 -dicos*)
14351501 os=-dicos
1502 ;;
1503 -nacl*)
14361504 ;;
14371505 -none)
14381506 ;;
14561524 # system, and we'll never get to this point.
14571525
14581526 case $basic_machine in
1459 score-*)
1527 score-*)
14601528 os=-elf
14611529 ;;
1462 spu-*)
1530 spu-*)
14631531 os=-elf
14641532 ;;
14651533 *-acorn)
14711539 arm*-semi)
14721540 os=-aout
14731541 ;;
1474 c4x-* | tic4x-*)
1475 os=-coff
1542 c4x-* | tic4x-*)
1543 os=-coff
1544 ;;
1545 hexagon-*)
1546 os=-elf
1547 ;;
1548 tic54x-*)
1549 os=-coff
1550 ;;
1551 tic55x-*)
1552 os=-coff
1553 ;;
1554 tic6x-*)
1555 os=-coff
14761556 ;;
14771557 # This must come before the *-dec entry.
14781558 pdp10-*)
14921572 ;;
14931573 m68000-sun)
14941574 os=-sunos3
1495 # This also exists in the configure program, but was not the
1496 # default.
1497 # os=-sunos4
14981575 ;;
14991576 m68*-cisco)
15001577 os=-aout
15011578 ;;
1502 mep-*)
1579 mep-*)
15031580 os=-elf
15041581 ;;
15051582 mips*-cisco)
15261603 *-ibm)
15271604 os=-aix
15281605 ;;
1529 *-knuth)
1606 *-knuth)
15301607 os=-mmixware
15311608 ;;
15321609 *-wec)
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for unbound 1.4.19.
2 # Generated by GNU Autoconf 2.69 for unbound 1.4.20.
33 #
44 # Report bugs to <unbound-bugs@nlnetlabs.nl>.
55 #
66 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
9 # Foundation, Inc.
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
108 #
119 #
1210 # This configure script is free software; the Free Software Foundation
135133 # CDPATH.
136134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137135
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
138161 if test "x$CONFIG_SHELL" = x; then
139162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140163 emulate sh
168191 else
169192 exitcode=1; echo positional parameters were not saved.
170193 fi
171 test x\$exitcode = x0 || exit 1"
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
172196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
221245
222246
223247 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 # Preserve -v and -x to the replacement shell.
228 BASH_ENV=/dev/null
229 ENV=/dev/null
230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231 export CONFIG_SHELL
232 case $- in # ((((
233 *v*x* | *x*v* ) as_opts=-vx ;;
234 *v* ) as_opts=-v ;;
235 *x* ) as_opts=-x ;;
236 * ) as_opts= ;;
237 esac
238 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
248 export CONFIG_SHELL
249 # We cannot yet assume a decent shell, so we have to provide a
250 # neutralization value for shells without unset; and this also
251 # works around shells that cannot unset nonexistent variables.
252 # Preserve -v and -x to the replacement shell.
253 BASH_ENV=/dev/null
254 ENV=/dev/null
255 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 case $- in # ((((
257 *v*x* | *x*v* ) as_opts=-vx ;;
258 *v* ) as_opts=-v ;;
259 *x* ) as_opts=-x ;;
260 * ) as_opts= ;;
261 esac
262 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
263 # Admittedly, this is quite paranoid, since all the known shells bail
264 # out after a failed `exec'.
265 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
266 exit 255
239267 fi
240268
241269 if test x$as_have_required = xno; then :
338366
339367
340368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
341377 # as_fn_append VAR VALUE
342378 # ----------------------
343379 # Append the text in VALUE to the end of the definition contained in VAR. Take
459495 chmod +x "$as_me.lineno" ||
460496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
461497
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
462502 # Don't try to exec as it changes $[0], causing all sort of problems
463503 # (the dirname of $[0] is not the place where we might find the
464504 # original and so on. Autoconf is especially sensitive to this).
493533 # ... but there are two gotchas:
494534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
495535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
496 # In both cases, we have to default to `cp -p'.
536 # In both cases, we have to default to `cp -pR'.
497537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
498 as_ln_s='cp -p'
538 as_ln_s='cp -pR'
499539 elif ln conf$$.file conf$$ 2>/dev/null; then
500540 as_ln_s=ln
501541 else
502 as_ln_s='cp -p'
542 as_ln_s='cp -pR'
503543 fi
504544 else
505 as_ln_s='cp -p'
545 as_ln_s='cp -pR'
506546 fi
507547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508548 rmdir conf$$.dir 2>/dev/null
514554 as_mkdir_p=false
515555 fi
516556
517 if test -x / >/dev/null 2>&1; then
518 as_test_x='test -x'
519 else
520 if ls -dL / >/dev/null 2>&1; then
521 as_ls_L_option=L
522 else
523 as_ls_L_option=
524 fi
525 as_test_x='
526 eval sh -c '\''
527 if test -d "$1"; then
528 test -d "$1/.";
529 else
530 case $1 in #(
531 -*)set "./$1";;
532 esac;
533 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
534 ???[sx]*):;;*)false;;esac;fi
535 '\'' sh
536 '
537 fi
538 as_executable_p=$as_test_x
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
539559
540560 # Sed expression to map a string onto a valid CPP name.
541561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569589 # Identity of this package.
570590 PACKAGE_NAME='unbound'
571591 PACKAGE_TARNAME='unbound'
572 PACKAGE_VERSION='1.4.19'
573 PACKAGE_STRING='unbound 1.4.19'
592 PACKAGE_VERSION='1.4.20'
593 PACKAGE_STRING='unbound 1.4.20'
574594 PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl'
575595 PACKAGE_URL=''
576596
12691289 if test "x$host_alias" != x; then
12701290 if test "x$build_alias" = x; then
12711291 cross_compiling=maybe
1272 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1273 If a cross compiler is detected then cross compile mode will be used" >&2
12741292 elif test "x$build_alias" != "x$host_alias"; then
12751293 cross_compiling=yes
12761294 fi
13561374 # Omit some internal or obsolete options to make the list less imposing.
13571375 # This message is too long to be a string in the A/UX 3.1 sh.
13581376 cat <<_ACEOF
1359 \`configure' configures unbound 1.4.19 to adapt to many kinds of systems.
1377 \`configure' configures unbound 1.4.20 to adapt to many kinds of systems.
13601378
13611379 Usage: $0 [OPTION]... [VAR=VALUE]...
13621380
14221440
14231441 if test -n "$ac_init_help"; then
14241442 case $ac_init_help in
1425 short | recursive ) echo "Configuration of unbound 1.4.19:";;
1443 short | recursive ) echo "Configuration of unbound 1.4.20:";;
14261444 esac
14271445 cat <<\_ACEOF
14281446
14791497 not exist if you are content with the builtin.
14801498 --with-username=user set default user that unbound changes to (default
14811499 user is unbound)
1482 --with-pic try to use only PIC/non-PIC objects [default=use
1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
14831501 both]
14841502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
14851503 --with-sysroot=DIR Search for dependent libraries within DIR
15901608 test -n "$ac_init_help" && exit $ac_status
15911609 if $ac_init_version; then
15921610 cat <<\_ACEOF
1593 unbound configure 1.4.19
1594 generated by GNU Autoconf 2.68
1595
1596 Copyright (C) 2010 Free Software Foundation, Inc.
1611 unbound configure 1.4.20
1612 generated by GNU Autoconf 2.69
1613
1614 Copyright (C) 2012 Free Software Foundation, Inc.
15971615 This configure script is free software; the Free Software Foundation
15981616 gives unlimited permission to copy, distribute and modify it.
15991617 _ACEOF
18701888 test ! -s conftest.err
18711889 } && test -s conftest$ac_exeext && {
18721890 test "$cross_compiling" = yes ||
1873 $as_test_x conftest$ac_exeext
1891 test -x conftest$ac_exeext
18741892 }; then :
18751893 ac_retval=0
18761894 else
21162134 This file contains any messages produced by compilers while
21172135 running configure, to aid debugging if configure makes a mistake.
21182136
2119 It was created by unbound $as_me 1.4.19, which was
2120 generated by GNU Autoconf 2.68. Invocation command line was
2137 It was created by unbound $as_me 1.4.20, which was
2138 generated by GNU Autoconf 2.69. Invocation command line was
21212139
21222140 $ $0 $@
21232141
24662484
24672485
24682486 LIBUNBOUND_CURRENT=3
2469 LIBUNBOUND_REVISION=4
2487 LIBUNBOUND_REVISION=5
24702488 LIBUNBOUND_AGE=1
24712489 # 1.0.0 had 0:12:0
24722490 # 1.0.1 had 0:13:0
25022520 # 1.4.17 had 3:2:1
25032521 # 1.4.18 had 3:3:1
25042522 # 1.4.19 had 3:4:1
2523 # 1.4.20 had 4:0:2 # adds libunbound.ttl
25052524
25062525 # Current -- the number of the binary API that we're implementing
25072526 # Revision -- which iteration of the implementation of the binary
27112730 IFS=$as_save_IFS
27122731 test -z "$as_dir" && as_dir=.
27132732 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27152734 ac_cv_prog_CC="${ac_tool_prefix}gcc"
27162735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27172736 break 2
27512770 IFS=$as_save_IFS
27522771 test -z "$as_dir" && as_dir=.
27532772 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27552774 ac_cv_prog_ac_ct_CC="gcc"
27562775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27572776 break 2
28042823 IFS=$as_save_IFS
28052824 test -z "$as_dir" && as_dir=.
28062825 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28082827 ac_cv_prog_CC="${ac_tool_prefix}cc"
28092828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28102829 break 2
28452864 IFS=$as_save_IFS
28462865 test -z "$as_dir" && as_dir=.
28472866 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28492868 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
28502869 ac_prog_rejected=yes
28512870 continue
29032922 IFS=$as_save_IFS
29042923 test -z "$as_dir" && as_dir=.
29052924 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29072926 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
29082927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29092928 break 2
29472966 IFS=$as_save_IFS
29482967 test -z "$as_dir" && as_dir=.
29492968 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29512970 ac_cv_prog_ac_ct_CC="$ac_prog"
29522971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29532972 break 2
33933412 /* end confdefs.h. */
33943413 #include <stdarg.h>
33953414 #include <stdio.h>
3396 #include <sys/types.h>
3397 #include <sys/stat.h>
3415 struct stat;
33983416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
33993417 struct buf { int x; };
34003418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
36343652 for ac_prog in grep ggrep; do
36353653 for ac_exec_ext in '' $ac_executable_extensions; do
36363654 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3637 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3655 as_fn_executable_p "$ac_path_GREP" || continue
36383656 # Check for GNU ac_path_GREP and select it if it is found.
36393657 # Check for GNU $ac_path_GREP
36403658 case `"$ac_path_GREP" --version 2>&1` in
37003718 for ac_prog in egrep; do
37013719 for ac_exec_ext in '' $ac_executable_extensions; do
37023720 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3703 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3721 as_fn_executable_p "$ac_path_EGREP" || continue
37043722 # Check for GNU ac_path_EGREP and select it if it is found.
37053723 # Check for GNU $ac_path_EGREP
37063724 case `"$ac_path_EGREP" --version 2>&1` in
39073925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39083926 /* end confdefs.h. */
39093927
3910 # define __EXTENSIONS__ 1
3911 $ac_includes_default
3928 # define __EXTENSIONS__ 1
3929 $ac_includes_default
39123930 int
39133931 main ()
39143932 {
41404158 int
41414159 main ()
41424160 {
4143 /* FIXME: Include the comments suggested by Paul. */
4161
41444162 #ifndef __cplusplus
4145 /* Ultrix mips cc rejects this. */
4163 /* Ultrix mips cc rejects this sort of thing. */
41464164 typedef int charset[2];
4147 const charset cs;
4165 const charset cs = { 0, 0 };
41484166 /* SunOS 4.1.1 cc rejects this. */
41494167 char const *const *pcpcc;
41504168 char **ppc;
41614179 ++pcpcc;
41624180 ppc = (char**) pcpcc;
41634181 pcpcc = (char const *const *) ppc;
4164 { /* SCO 3.2v4 cc rejects this. */
4165 char *t;
4182 { /* SCO 3.2v4 cc rejects this sort of thing. */
4183 char tx;
4184 char *t = &tx;
41664185 char const *s = 0 ? (char *) 0 : (char const *) 0;
41674186
41684187 *t++ = 0;
41784197 iptr p = 0;
41794198 ++p;
41804199 }
4181 { /* AIX XL C 1.02.0.0 rejects this saying
4200 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
41824201 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4183 struct s { int j; const int *ap[3]; };
4184 struct s *b; b->j = 5;
4202 struct s { int j; const int *ap[3]; } bx;
4203 struct s *b = &bx; b->j = 5;
41854204 }
41864205 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
41874206 const int foo = 10;
43024321 IFS=$as_save_IFS
43034322 test -z "$as_dir" && as_dir=.
43044323 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43064325 ac_cv_prog_CC="${ac_tool_prefix}gcc"
43074326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43084327 break 2
43424361 IFS=$as_save_IFS
43434362 test -z "$as_dir" && as_dir=.
43444363 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43464365 ac_cv_prog_ac_ct_CC="gcc"
43474366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43484367 break 2
43954414 IFS=$as_save_IFS
43964415 test -z "$as_dir" && as_dir=.
43974416 for ac_exec_ext in '' $ac_executable_extensions; do
4398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43994418 ac_cv_prog_CC="${ac_tool_prefix}cc"
44004419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44014420 break 2
44364455 IFS=$as_save_IFS
44374456 test -z "$as_dir" && as_dir=.
44384457 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44404459 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
44414460 ac_prog_rejected=yes
44424461 continue
44944513 IFS=$as_save_IFS
44954514 test -z "$as_dir" && as_dir=.
44964515 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44984517 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
44994518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
45004519 break 2
45384557 IFS=$as_save_IFS
45394558 test -z "$as_dir" && as_dir=.
45404559 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45424561 ac_cv_prog_ac_ct_CC="$ac_prog"
45434562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
45444563 break 2
47344753 /* end confdefs.h. */
47354754 #include <stdarg.h>
47364755 #include <stdio.h>
4737 #include <sys/types.h>
4738 #include <sys/stat.h>
4756 struct stat;
47394757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
47404758 struct buf { int x; };
47414759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
54305448
54315449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5
54325450 $as_echo_n "checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC... " >&6; }
5433 cache=`$as_echo "-D_POSIX_C_SOURCE=200112" | $as_tr_sh`
5451 cache=_D_POSIX_C_SOURCE_200112
54345452 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
54355453 $as_echo_n "(cached) " >&6
54365454 else
59185936 IFS=$as_save_IFS
59195937 test -z "$as_dir" && as_dir=.
59205938 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59225940 ac_cv_prog_LEX="$ac_prog"
59235941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
59245942 break 2
59505968 b { REJECT; }
59515969 c { yymore (); }
59525970 d { yyless (1); }
5953 e { yyless (input () != 0); }
5971 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5972 yyless ((input () != 0)); }
59545973 f { unput (yytext[0]); }
59555974 . { BEGIN INITIAL; }
59565975 %%
60886107 IFS=$as_save_IFS
60896108 test -z "$as_dir" && as_dir=.
60906109 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60926111 ac_cv_prog_YACC="$ac_prog"
60936112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
60946113 break 2
61296148 IFS=$as_save_IFS
61306149 test -z "$as_dir" && as_dir=.
61316150 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
61336152 ac_cv_prog_doxygen="doxygen"
61346153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
61356154 break 2
61676186 IFS=$as_save_IFS
61686187 test -z "$as_dir" && as_dir=.
61696188 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
61716190 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
61726191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
61736192 break 2
62076226 IFS=$as_save_IFS
62086227 test -z "$as_dir" && as_dir=.
62096228 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
62116230 ac_cv_prog_ac_ct_STRIP="strip"
62126231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
62136232 break 2
62816300 IFS=$as_save_IFS
62826301 test -z "$as_dir" && as_dir=.
62836302 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
62856304 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
62866305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
62876306 break 2
63246343 IFS=$as_save_IFS
63256344 test -z "$as_dir" && as_dir=.
63266345 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63286347 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
63296348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63306349 break 2
63726391
63736392
63746393
6375 macro_version='2.4'
6376 macro_revision='1.3293'
6394 macro_version='2.4.2'
6395 macro_revision='1.3337'
63776396
63786397
63796398
64806499 for ac_prog in sed gsed; do
64816500 for ac_exec_ext in '' $ac_executable_extensions; do
64826501 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6483 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6502 as_fn_executable_p "$ac_path_SED" || continue
64846503 # Check for GNU ac_path_SED and select it if it is found.
64856504 # Check for GNU $ac_path_SED
64866505 case `"$ac_path_SED" --version 2>&1` in
65596578 for ac_prog in fgrep; do
65606579 for ac_exec_ext in '' $ac_executable_extensions; do
65616580 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6562 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6581 as_fn_executable_p "$ac_path_FGREP" || continue
65636582 # Check for GNU ac_path_FGREP and select it if it is found.
65646583 # Check for GNU $ac_path_FGREP
65656584 case `"$ac_path_FGREP" --version 2>&1` in
68156834 IFS=$as_save_IFS
68166835 test -z "$as_dir" && as_dir=.
68176836 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
68196838 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
68206839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
68216840 break 2
68596878 IFS=$as_save_IFS
68606879 test -z "$as_dir" && as_dir=.
68616880 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
68636882 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
68646883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
68656884 break 2
70157034 interix*)
70167035 # We know the value 262144 and hardcode it with a safety zone (like BSD)
70177036 lt_cv_sys_max_cmd_len=196608
7037 ;;
7038
7039 os2*)
7040 # The test takes a long time on OS/2.
7041 lt_cv_sys_max_cmd_len=8192
70187042 ;;
70197043
70207044 osf*)
70567080 # If test is not a shell built-in, we'll probably end up computing a
70577081 # maximum length that is only half of the actual maximum length, but
70587082 # we can't tell.
7059 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7083 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
70607084 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
70617085 test $i != 17 # 1/2 MB should be enough
70627086 do
72787302 IFS=$as_save_IFS
72797303 test -z "$as_dir" && as_dir=.
72807304 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72827306 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
72837307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72847308 break 2
73187342 IFS=$as_save_IFS
73197343 test -z "$as_dir" && as_dir=.
73207344 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
73227346 ac_cv_prog_ac_ct_OBJDUMP="objdump"
73237347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73247348 break 2
74857509 lt_cv_deplibs_check_method=pass_all
74867510 ;;
74877511
7488 # This must be Linux ELF.
7512 # This must be glibc/ELF.
74897513 linux* | k*bsd*-gnu | kopensolaris*-gnu)
74907514 lt_cv_deplibs_check_method=pass_all
74917515 ;;
76247648 IFS=$as_save_IFS
76257649 test -z "$as_dir" && as_dir=.
76267650 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
76287652 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
76297653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
76307654 break 2
76647688 IFS=$as_save_IFS
76657689 test -z "$as_dir" && as_dir=.
76667690 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
76687692 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
76697693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
76707694 break 2
77677791 IFS=$as_save_IFS
77687792 test -z "$as_dir" && as_dir=.
77697793 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
77717795 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
77727796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
77737797 break 2
78117835 IFS=$as_save_IFS
78127836 test -z "$as_dir" && as_dir=.
78137837 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
78157839 ac_cv_prog_ac_ct_AR="$ac_prog"
78167840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
78177841 break 2
79367960 IFS=$as_save_IFS
79377961 test -z "$as_dir" && as_dir=.
79387962 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
79407964 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
79417965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
79427966 break 2
79768000 IFS=$as_save_IFS
79778001 test -z "$as_dir" && as_dir=.
79788002 for ac_exec_ext in '' $ac_executable_extensions; do
7979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
79808004 ac_cv_prog_ac_ct_STRIP="strip"
79818005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
79828006 break 2
80358059 IFS=$as_save_IFS
80368060 test -z "$as_dir" && as_dir=.
80378061 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
80398063 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
80408064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80418065 break 2
80758099 IFS=$as_save_IFS
80768100 test -z "$as_dir" && as_dir=.
80778101 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
80798103 ac_cv_prog_ac_ct_RANLIB="ranlib"
80808104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80818105 break 2
81258149 if test -n "$RANLIB"; then
81268150 case $host_os in
81278151 openbsd*)
8128 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8152 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
81298153 ;;
81308154 *)
8131 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8155 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
81328156 ;;
81338157 esac
8134 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8158 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
81358159 fi
81368160
81378161 case $host_os in
81798203 IFS=$as_save_IFS
81808204 test -z "$as_dir" && as_dir=.
81818205 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81838207 ac_cv_prog_AWK="$ac_prog"
81848208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
81858209 break 2
83208344 # which start with @ or ?.
83218345 lt_cv_sys_global_symbol_pipe="$AWK '"\
83228346 " {last_section=section; section=\$ 3};"\
8347 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
83238348 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
83248349 " \$ 0!~/External *\|/{next};"\
83258350 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
87088733 CFLAGS="$SAVE_CFLAGS"
87098734 fi
87108735 ;;
8711 sparc*-*solaris*)
8736 *-*solaris*)
87128737 # Find out which ABI we are using.
87138738 echo 'int i;' > conftest.$ac_ext
87148739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
87198744 case `/usr/bin/file conftest.o` in
87208745 *64-bit*)
87218746 case $lt_cv_prog_gnu_ld in
8722 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8747 yes*)
8748 case $host in
8749 i?86-*-solaris*)
8750 LD="${LD-ld} -m elf_x86_64"
8751 ;;
8752 sparc*-*-solaris*)
8753 LD="${LD-ld} -m elf64_sparc"
8754 ;;
8755 esac
8756 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8757 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8758 LD="${LD-ld}_sol2"
8759 fi
8760 ;;
87238761 *)
87248762 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
87258763 LD="${LD-ld} -64"
87528790 IFS=$as_save_IFS
87538791 test -z "$as_dir" && as_dir=.
87548792 for ac_exec_ext in '' $ac_executable_extensions; do
8755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87568794 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
87578795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
87588796 break 2
87928830 IFS=$as_save_IFS
87938831 test -z "$as_dir" && as_dir=.
87948832 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87968834 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
87978835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
87988836 break 2
88728910 IFS=$as_save_IFS
88738911 test -z "$as_dir" && as_dir=.
88748912 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
88768914 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
88778915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
88788916 break 2
89128950 IFS=$as_save_IFS
89138951 test -z "$as_dir" && as_dir=.
89148952 for ac_exec_ext in '' $ac_executable_extensions; do
8915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
89168954 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
89178955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
89188956 break 2
89649002 IFS=$as_save_IFS
89659003 test -z "$as_dir" && as_dir=.
89669004 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
89689006 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
89699007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
89709008 break 2
90049042 IFS=$as_save_IFS
90059043 test -z "$as_dir" && as_dir=.
90069044 for ac_exec_ext in '' $ac_executable_extensions; do
9007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90089046 ac_cv_prog_ac_ct_NMEDIT="nmedit"
90099047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90109048 break 2
90569094 IFS=$as_save_IFS
90579095 test -z "$as_dir" && as_dir=.
90589096 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90609098 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
90619099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90629100 break 2
90969134 IFS=$as_save_IFS
90979135 test -z "$as_dir" && as_dir=.
90989136 for ac_exec_ext in '' $ac_executable_extensions; do
9099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
91009138 ac_cv_prog_ac_ct_LIPO="lipo"
91019139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
91029140 break 2
91489186 IFS=$as_save_IFS
91499187 test -z "$as_dir" && as_dir=.
91509188 for ac_exec_ext in '' $ac_executable_extensions; do
9151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
91529190 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
91539191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
91549192 break 2
91889226 IFS=$as_save_IFS
91899227 test -z "$as_dir" && as_dir=.
91909228 for ac_exec_ext in '' $ac_executable_extensions; do
9191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
91929230 ac_cv_prog_ac_ct_OTOOL="otool"
91939231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
91949232 break 2
92409278 IFS=$as_save_IFS
92419279 test -z "$as_dir" && as_dir=.
92429280 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
92449282 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
92459283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
92469284 break 2
92809318 IFS=$as_save_IFS
92819319 test -z "$as_dir" && as_dir=.
92829320 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
92849322 ac_cv_prog_ac_ct_OTOOL64="otool64"
92859323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
92869324 break 2
93599397 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
93609398 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
93619399 _lt_result=$?
9362 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9400 # If there is a non-empty error log, and "single_module"
9401 # appears in it, assume the flag caused a linker warning
9402 if test -s conftest.err && $GREP single_module conftest.err; then
9403 cat conftest.err >&5
9404 # Otherwise, if the output was created with a 0 exit code from
9405 # the compiler, it worked.
9406 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
93639407 lt_cv_apple_cc_single_mod=yes
93649408 else
93659409 cat conftest.err >&5
93709414 fi
93719415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
93729416 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9417
93739418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
93749419 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
93759420 if ${lt_cv_ld_exported_symbols_list+:} false; then :
94029447 fi
94039448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
94049449 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9450
94059451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
94069452 $as_echo_n "checking for -force_load linker flag... " >&6; }
94079453 if ${lt_cv_ld_force_load+:} false; then :
94239469 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
94249470 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
94259471 _lt_result=$?
9426 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9472 if test -s conftest.err && $GREP force_load conftest.err; then
9473 cat conftest.err >&5
9474 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
94279475 lt_cv_ld_force_load=yes
94289476 else
94299477 cat conftest.err >&5
95639611
95649612 # Check whether --with-pic was given.
95659613 if test "${with_pic+set}" = set; then :
9566 withval=$with_pic; pic_mode="$withval"
9614 withval=$with_pic; lt_p=${PACKAGE-default}
9615 case $withval in
9616 yes|no) pic_mode=$withval ;;
9617 *)
9618 pic_mode=default
9619 # Look at the argument we got. We use all the common list separators.
9620 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9621 for lt_pkg in $withval; do
9622 IFS="$lt_save_ifs"
9623 if test "X$lt_pkg" = "X$lt_p"; then
9624 pic_mode=yes
9625 fi
9626 done
9627 IFS="$lt_save_ifs"
9628 ;;
9629 esac
95679630 else
95689631 pic_mode=default
95699632 fi
96159678
96169679 # Always use our own libtool.
96179680 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9681
9682
9683
9684
96189685
96199686
96209687
1009610163 case $cc_basename in
1009710164 nvcc*) # Cuda Compiler Driver 2.2
1009810165 lt_prog_compiler_wl='-Xlinker '
10099 lt_prog_compiler_pic='-Xcompiler -fPIC'
10166 if test -n "$lt_prog_compiler_pic"; then
10167 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10168 fi
1010010169 ;;
1010110170 esac
1010210171 else
1018710256 ;;
1018810257 *)
1018910258 case `$CC -V 2>&1 | sed 5q` in
10190 *Sun\ F* | *Sun*Fortran*)
10259 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
1019110260 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1019210261 lt_prog_compiler_pic='-KPIC'
1019310262 lt_prog_compiler_static='-Bstatic'
1019410263 lt_prog_compiler_wl=''
10264 ;;
10265 *Sun\ F* | *Sun*Fortran*)
10266 lt_prog_compiler_pic='-KPIC'
10267 lt_prog_compiler_static='-Bstatic'
10268 lt_prog_compiler_wl='-Qoption ld '
1019510269 ;;
1019610270 *Sun\ C*)
1019710271 # Sun C 5.9
1019810272 lt_prog_compiler_pic='-KPIC'
1019910273 lt_prog_compiler_static='-Bstatic'
1020010274 lt_prog_compiler_wl='-Wl,'
10275 ;;
10276 *Intel*\ [CF]*Compiler*)
10277 lt_prog_compiler_wl='-Wl,'
10278 lt_prog_compiler_pic='-fPIC'
10279 lt_prog_compiler_static='-static'
10280 ;;
10281 *Portland\ Group*)
10282 lt_prog_compiler_wl='-Wl,'
10283 lt_prog_compiler_pic='-fpic'
10284 lt_prog_compiler_static='-Bstatic'
1020110285 ;;
1020210286 esac
1020310287 ;;
1056010644 hardcode_direct=no
1056110645 hardcode_direct_absolute=no
1056210646 hardcode_libdir_flag_spec=
10563 hardcode_libdir_flag_spec_ld=
1056410647 hardcode_libdir_separator=
1056510648 hardcode_minus_L=no
1056610649 hardcode_shlibpath_var=unsupported
1081010893 xlf* | bgf* | bgxlf* | mpixlf*)
1081110894 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
1081210895 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10813 hardcode_libdir_flag_spec=
10814 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1081510897 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
1081610898 if test "x$supports_anon_versioning" = xyes; then
1081710899 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1119011272 # The linker will not automatically build a static lib if we build a DLL.
1119111273 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
1119211274 enable_shared_with_static_runtimes=yes
11275 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
1119311276 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1119411277 # Don't use ranlib
1119511278 old_postinstall_cmds='chmod 644 $oldlib'
1123511318 hardcode_shlibpath_var=unsupported
1123611319 if test "$lt_cv_ld_force_load" = "yes"; then
1123711320 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11321
1123811322 else
1123911323 whole_archive_flag_spec=''
1124011324 fi
1126311347 hardcode_shlibpath_var=no
1126411348 ;;
1126511349
11266 freebsd1*)
11267 ld_shlibs=no
11268 ;;
11269
1127011350 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
1127111351 # support. Future versions do this automatically, but an explicit c++rt0.o
1127211352 # does not break anything, and helps significantly (at the cost of a little
1127911359 ;;
1128011360
1128111361 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11282 freebsd2*)
11362 freebsd2.*)
1128311363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1128411364 hardcode_direct=yes
1128511365 hardcode_minus_L=yes
1131811398 fi
1131911399 if test "$with_gnu_ld" = no; then
1132011400 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11321 hardcode_libdir_flag_spec_ld='+b $libdir'
1132211401 hardcode_libdir_separator=:
1132311402 hardcode_direct=yes
1132411403 hardcode_direct_absolute=yes
1179011869 fi
1179111870 ;;
1179211871 esac
11793
11794
11795
11796
11797
1179811872
1179911873
1180011874
1203612110
1203712111 case $host_os in
1203812112 aix3*)
12039 version_type=linux
12113 version_type=linux # correct to gnu/linux during the next big refactor
1204012114 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1204112115 shlibpath_var=LIBPATH
1204212116
1204512119 ;;
1204612120
1204712121 aix[4-9]*)
12048 version_type=linux
12122 version_type=linux # correct to gnu/linux during the next big refactor
1204912123 need_lib_prefix=no
1205012124 need_version=no
1205112125 hardcode_into_libs=yes
1211012184 ;;
1211112185
1211212186 bsdi[45]*)
12113 version_type=linux
12187 version_type=linux # correct to gnu/linux during the next big refactor
1211412188 need_version=no
1211512189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1211612190 soname_spec='${libname}${release}${shared_ext}$major'
1224912323 ;;
1225012324
1225112325 dgux*)
12252 version_type=linux
12326 version_type=linux # correct to gnu/linux during the next big refactor
1225312327 need_lib_prefix=no
1225412328 need_version=no
1225512329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1225612330 soname_spec='${libname}${release}${shared_ext}$major'
1225712331 shlibpath_var=LD_LIBRARY_PATH
12258 ;;
12259
12260 freebsd1*)
12261 dynamic_linker=no
1226212332 ;;
1226312333
1226412334 freebsd* | dragonfly*)
1226812338 objformat=`/usr/bin/objformat`
1226912339 else
1227012340 case $host_os in
12271 freebsd[123]*) objformat=aout ;;
12341 freebsd[23].*) objformat=aout ;;
1227212342 *) objformat=elf ;;
1227312343 esac
1227412344 fi
1228612356 esac
1228712357 shlibpath_var=LD_LIBRARY_PATH
1228812358 case $host_os in
12289 freebsd2*)
12359 freebsd2.*)
1229012360 shlibpath_overrides_runpath=yes
1229112361 ;;
1229212362 freebsd3.[01]* | freebsdelf3.[01]*)
1230612376 ;;
1230712377
1230812378 gnu*)
12309 version_type=linux
12379 version_type=linux # correct to gnu/linux during the next big refactor
1231012380 need_lib_prefix=no
1231112381 need_version=no
1231212382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1231312383 soname_spec='${libname}${release}${shared_ext}$major'
1231412384 shlibpath_var=LD_LIBRARY_PATH
12385 shlibpath_overrides_runpath=no
1231512386 hardcode_into_libs=yes
1231612387 ;;
1231712388
1231812389 haiku*)
12319 version_type=linux
12390 version_type=linux # correct to gnu/linux during the next big refactor
1232012391 need_lib_prefix=no
1232112392 need_version=no
1232212393 dynamic_linker="$host_os runtime_loader"
1237712448 ;;
1237812449
1237912450 interix[3-9]*)
12380 version_type=linux
12451 version_type=linux # correct to gnu/linux during the next big refactor
1238112452 need_lib_prefix=no
1238212453 need_version=no
1238312454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1239312464 nonstopux*) version_type=nonstopux ;;
1239412465 *)
1239512466 if test "$lt_cv_prog_gnu_ld" = yes; then
12396 version_type=linux
12467 version_type=linux # correct to gnu/linux during the next big refactor
1239712468 else
1239812469 version_type=irix
1239912470 fi ;;
1243012501 dynamic_linker=no
1243112502 ;;
1243212503
12433 # This must be Linux ELF.
12504 # This must be glibc/ELF.
1243412505 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12435 version_type=linux
12506 version_type=linux # correct to gnu/linux during the next big refactor
1243612507 need_lib_prefix=no
1243712508 need_version=no
1243812509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1251812589 ;;
1251912590
1252012591 newsos6)
12521 version_type=linux
12592 version_type=linux # correct to gnu/linux during the next big refactor
1252212593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1252312594 shlibpath_var=LD_LIBRARY_PATH
1252412595 shlibpath_overrides_runpath=yes
1258712658 ;;
1258812659
1258912660 solaris*)
12590 version_type=linux
12661 version_type=linux # correct to gnu/linux during the next big refactor
1259112662 need_lib_prefix=no
1259212663 need_version=no
1259312664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1261212683 ;;
1261312684
1261412685 sysv4 | sysv4.3*)
12615 version_type=linux
12686 version_type=linux # correct to gnu/linux during the next big refactor
1261612687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1261712688 soname_spec='${libname}${release}${shared_ext}$major'
1261812689 shlibpath_var=LD_LIBRARY_PATH
1263612707
1263712708 sysv4*MP*)
1263812709 if test -d /usr/nec ;then
12639 version_type=linux
12710 version_type=linux # correct to gnu/linux during the next big refactor
1264012711 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1264112712 soname_spec='$libname${shared_ext}.$major'
1264212713 shlibpath_var=LD_LIBRARY_PATH
1266712738
1266812739 tpf*)
1266912740 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12670 version_type=linux
12741 version_type=linux # correct to gnu/linux during the next big refactor
1267112742 need_lib_prefix=no
1267212743 need_version=no
1267312744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1267712748 ;;
1267812749
1267912750 uts4*)
12680 version_type=linux
12751 version_type=linux # correct to gnu/linux during the next big refactor
1268112752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1268212753 soname_spec='${libname}${release}${shared_ext}$major'
1268312754 shlibpath_var=LD_LIBRARY_PATH
1344613517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344713518
1344813519 CC="$lt_save_CC"
13520
13521
1344913522
1345013523
1345113524
1449614569 esac
1449714570 rm -rf conftest*
1449814571 fi
14572
14573
1449914574 fi
1450014575
1450114576
1450314578
1450414579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5
1450514580 $as_echo_n "checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC... " >&6; }
14506 cache=`$as_echo "-D_LARGEFILE_SOURCE=1" | $as_tr_sh`
14581 cache=_D_LARGEFILE_SOURCE_1
1450714582 if eval \${cv_prog_cc_flag_needed_$cache+:} false; then :
1450814583 $as_echo_n "(cached) " >&6
1450914584 else
1512915204 IFS=$as_save_IFS
1513015205 test -z "$as_dir" && as_dir=.
1513115206 for ac_exec_ext in '' $ac_executable_extensions; do
15132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513315208 ac_cv_prog_acx_pthread_config="yes"
1513415209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1513515210 break 2
1528515360 IFS=$as_save_IFS
1528615361 test -z "$as_dir" && as_dir=.
1528715362 for ac_exec_ext in '' $ac_executable_extensions; do
15288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528915364 ac_cv_prog_PTHREAD_CC="$ac_prog"
1529015365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1529115366 break 2
1554615621 IFS=$as_save_IFS
1554715622 test -z "$as_dir" && as_dir=.
1554815623 for ac_exec_ext in '' $ac_executable_extensions; do
15549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555015625 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
1555115626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1555215627 break 2
1584615921 IFS=$as_save_IFS
1584715922 test -z "$as_dir" && as_dir=.
1584815923 for ac_exec_ext in '' $ac_executable_extensions; do
15849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585015925 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
1585115926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1585215927 break 2
1600716082
1600816083 $as_echo "#define HAVE_NSS 1" >>confdefs.h
1600916084
16010 if test "$withval" != "/usr" -a "$withval" != "" -a "$withval" != "yes"; then
16011 CPPFLAGS="$CPPFLAGS -I$withval/include"
16085 if test "$withval" != "" -a "$withval" != "yes"; then
16086 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
1601216087 LDFLAGS="$LDFLAGS -L$withval/lib"
1601316088
1601416089 if test "x$enable_rpath" = xyes; then
1601916094
1602016095 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
1602116096 else
16097 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
1602216098 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
1602316099 fi
1602416100 LIBS="$LIBS -lnss3 -lnspr4"
1727917355 IFS=$as_save_IFS
1728017356 test -z "$as_dir" && as_dir=.
1728117357 for ac_exec_ext in '' $ac_executable_extensions; do
17282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728317359 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
1728417360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1728517361 break 2
1731917395 IFS=$as_save_IFS
1732017396 test -z "$as_dir" && as_dir=.
1732117397 for ac_exec_ext in '' $ac_executable_extensions; do
17322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732317399 ac_cv_prog_ac_ct_WINDRES="windres"
1732417400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1732517401 break 2
1851418590 # ... but there are two gotchas:
1851518591 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1851618592 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18517 # In both cases, we have to default to `cp -p'.
18593 # In both cases, we have to default to `cp -pR'.
1851818594 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18519 as_ln_s='cp -p'
18595 as_ln_s='cp -pR'
1852018596 elif ln conf$$.file conf$$ 2>/dev/null; then
1852118597 as_ln_s=ln
1852218598 else
18523 as_ln_s='cp -p'
18599 as_ln_s='cp -pR'
1852418600 fi
1852518601 else
18526 as_ln_s='cp -p'
18602 as_ln_s='cp -pR'
1852718603 fi
1852818604 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1852918605 rmdir conf$$.dir 2>/dev/null
1858318659 as_mkdir_p=false
1858418660 fi
1858518661
18586 if test -x / >/dev/null 2>&1; then
18587 as_test_x='test -x'
18588 else
18589 if ls -dL / >/dev/null 2>&1; then
18590 as_ls_L_option=L
18591 else
18592 as_ls_L_option=
18593 fi
18594 as_test_x='
18595 eval sh -c '\''
18596 if test -d "$1"; then
18597 test -d "$1/.";
18598 else
18599 case $1 in #(
18600 -*)set "./$1";;
18601 esac;
18602 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18603 ???[sx]*):;;*)false;;esac;fi
18604 '\'' sh
18605 '
18606 fi
18607 as_executable_p=$as_test_x
18662
18663 # as_fn_executable_p FILE
18664 # -----------------------
18665 # Test if FILE is an executable regular file.
18666 as_fn_executable_p ()
18667 {
18668 test -f "$1" && test -x "$1"
18669 } # as_fn_executable_p
18670 as_test_x='test -x'
18671 as_executable_p=as_fn_executable_p
1860818672
1860918673 # Sed expression to map a string onto a valid CPP name.
1861018674 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1862518689 # report actual input values of CONFIG_FILES etc. instead of their
1862618690 # values after options handling.
1862718691 ac_log="
18628 This file was extended by unbound $as_me 1.4.19, which was
18629 generated by GNU Autoconf 2.68. Invocation command line was
18692 This file was extended by unbound $as_me 1.4.20, which was
18693 generated by GNU Autoconf 2.69. Invocation command line was
1863018694
1863118695 CONFIG_FILES = $CONFIG_FILES
1863218696 CONFIG_HEADERS = $CONFIG_HEADERS
1869118755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1869218756 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1869318757 ac_cs_version="\\
18694 unbound config.status 1.4.19
18695 configured by $0, generated by GNU Autoconf 2.68,
18758 unbound config.status 1.4.20
18759 configured by $0, generated by GNU Autoconf 2.69,
1869618760 with options \\"\$ac_cs_config\\"
1869718761
18698 Copyright (C) 2010 Free Software Foundation, Inc.
18762 Copyright (C) 2012 Free Software Foundation, Inc.
1869918763 This config.status script is free software; the Free Software Foundation
1870018764 gives unlimited permission to copy, distribute and modify it."
1870118765
1878418848 _ACEOF
1878518849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1878618850 if \$ac_cs_recheck; then
18787 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18851 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1878818852 shift
1878918853 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
1879018854 CONFIG_SHELL='$SHELL'
1882518889 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
1882618890 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
1882718891 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18892 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1882818893 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
1882918894 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
1883018895 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
1890718972 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
1890818973 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
1890918974 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18910 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
1891118975 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
1891218976 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
1891318977 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
1896319027 # Quote evaled strings.
1896419028 for var in SHELL \
1896519029 ECHO \
19030 PATH_SEPARATOR \
1896619031 SED \
1896719032 GREP \
1896819033 EGREP \
1901319078 allow_undefined_flag \
1901419079 no_undefined_flag \
1901519080 hardcode_libdir_flag_spec \
19016 hardcode_libdir_flag_spec_ld \
1901719081 hardcode_libdir_separator \
1901819082 exclude_expsyms \
1901919083 include_expsyms \
1967619740 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1967719741 #
1967819742 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19679 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19680 # Inc.
19743 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19744 # Foundation, Inc.
1968119745 # Written by Gordon Matzigkeit, 1996
1968219746 #
1968319747 # This file is part of GNU Libtool.
1973119795 # An echo program that protects backslashes.
1973219796 ECHO=$lt_ECHO
1973319797
19798 # The PATH separator for the build system.
19799 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19800
1973419801 # The host system.
1973519802 host_alias=$host_alias
1973619803 host=$host
2003120098 # Flag to hardcode \$libdir into a binary during linking.
2003220099 # This must work even if \$libdir does not exist
2003320100 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20034
20035 # If ld is used when linking, flag to hardcode \$libdir into a binary
20036 # during linking. This must work even if \$libdir does not exist.
20037 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
2003820101
2003920102 # Whether we need a single "-rpath" flag with a separated argument.
2004020103 hardcode_libdir_separator=$lt_hardcode_libdir_separator
55 sinclude(acx_python.m4)
66 sinclude(ac_pkg_swig.m4)
77
8 AC_INIT(unbound, 1.4.19, unbound-bugs@nlnetlabs.nl, unbound)
8 AC_INIT(unbound, 1.4.20, unbound-bugs@nlnetlabs.nl, unbound)
99
1010 LIBUNBOUND_CURRENT=3
11 LIBUNBOUND_REVISION=4
11 LIBUNBOUND_REVISION=5
1212 LIBUNBOUND_AGE=1
1313 # 1.0.0 had 0:12:0
1414 # 1.0.1 had 0:13:0
4444 # 1.4.17 had 3:2:1
4545 # 1.4.18 had 3:3:1
4646 # 1.4.19 had 3:4:1
47 # 1.4.20 had 4:0:2 # adds libunbound.ttl
4748
4849 # Current -- the number of the binary API that we're implementing
4950 # Revision -- which iteration of the implementation of the binary
523524 [
524525 USE_NSS="yes"
525526 AC_DEFINE(HAVE_NSS, 1, [Use libnss for crypto])
526 if test "$withval" != "/usr" -a "$withval" != "" -a "$withval" != "yes"; then
527 CPPFLAGS="$CPPFLAGS -I$withval/include"
527 if test "$withval" != "" -a "$withval" != "yes"; then
528 CPPFLAGS="$CPPFLAGS -I$withval/include/nss3"
528529 LDFLAGS="$LDFLAGS -L$withval/lib"
529530 ACX_RUNTIME_PATH_ADD([$withval/lib])
530531 CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS"
531532 else
533 CPPFLAGS="$CPPFLAGS -I/usr/include/nss3"
532534 CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS"
533535 fi
534536 LIBS="$LIBS -lnss3 -lnspr4"
5656 #endif
5757
5858 #ifdef HAVE_NSS
59 #include <nss3/nss.h>
59 /* nss3 */
60 #include "nss.h"
6061 #endif
6162
6263 #include <ldns/ldns.h>
209210 comp_meth = (void*)SSL_COMP_get_compression_methods();
210211 # endif
211212 (void)SSL_library_init();
212 # if defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED)
213 # if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED)
213214 if(!ub_openssl_lock_init())
214215 fatal_exit("could not init openssl locks");
215216 # endif
572573 ERR_remove_state(0);
573574 ERR_free_strings();
574575 RAND_cleanup();
575 # if defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED)
576 # if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED)
576577 ub_openssl_lock_delete();
577578 # endif
578579 #elif defined(HAVE_NSS)
8787 #endif
8888
8989 #ifdef HAVE_NSS
90 # include <nss3/nss.h>
90 /* nss3 */
91 # include "nss.h"
9192 #endif
9293
9394 /** global debug value to keep track of heap memory allocation */
0 21 March 2013: Wouter
1 - release 1.4.20
2
3 14 March 2013: Wouter
4 - iana portlist update.
5 - tag 1.4.20rc1
6
7 12 March 2013: Wouter
8 - Fixup makedist.sh for windows compile.
9
10 11 March 2013: Wouter
11 - iana portlist update.
12 - testcode/ldns-testpkts.c check for makedist is informational.
13
14 15 February 2013: Wouter
15 - fix defines in lookup3 for bigendian bsd alpha
16
17 11 February 2013: Wouter
18 - Fixup openssl_thread init code to only run if compiled with SSL.
19
20 7 February 2013: Wouter
21 - detect endianness in lookup3 on BSD.
22 - add libunbound.ttl at end of result structure, version bump for
23 libunbound and binary backwards compatible, but 1.4.19 is not
24 forward compatible with 1.4.20.
25 - update iana port list.
26
27 30 January 2013: Wouter
28 - includes and have_ssl fixes for nss.
29
30 29 January 2013: Wouter
31 - printout name of zone with duplicate fwd and hint errors.
32
33 28 January 2013: Wouter
34 - updated fwd_zero for newer nc. Updated common.sh for newer netstat.
35
36 17 January 2013: Wouter
37 - unbound-anchors checks the emailAddress of the signer of the
38 root.xml file, default is dnssec@iana.org. It also checks that
39 the signer has the correct key usage for a digital signature.
40 - update iana port list.
41
42 3 January 2013: Wouter
43 - Test that unbound-control checks client credentials.
44 - Test that unbound can handle a CNAME at an intermediate node in
45 the chain of trust (where it seeks a DS record).
46 - Check the commonName of the signer of the root.xml file in
47 unbound-anchor, default is dnssec@iana.org.
48
49 2 January 2013: Wouter
50 - Fix openssl lock free on exit (reported by Robert Fleischman).
51 - iana portlist updated.
52 - Tested that unbound implements the RFC5155 Technical Errata id 3441.
53 Unbound already implements insecure classification of an empty
54 nonterminal in NSEC3 optout zone.
55
56 20 December 2012: Wouter
57 - Fix unbound-anchor xml parse of entity declarations for safety.
58
59 19 December 2012: Wouter
60 - iana portlist updated.
61
62 18 December 2012: Wouter
63 - iana portlist updated.
64
65 14 December 2012: Wouter
66 - Change of D.ROOT-SERVERS.NET A address in default root hints.
67
068 12 December 2012: Wouter
169 - 1.4.19 release.
70 - trunk has 1.4.20 under development.
271
372 5 December 2012: Wouter
473 - note support for AAAA RR type RFC.
0 README for Unbound 1.4.19
0 README for Unbound 1.4.20
11 Copyright 2007 NLnet Labs
22 http://unbound.net
33
00 #
11 # Example configuration file.
22 #
3 # See unbound.conf(5) man page, version 1.4.19.
3 # See unbound.conf(5) man page, version 1.4.20.
44 #
55 # this is a comment.
66
0 .TH "libunbound" "3" "Dec 12, 2012" "NLnet Labs" "unbound 1.4.19"
0 .TH "libunbound" "3" "Mar 21, 2013" "NLnet Labs" "unbound 1.4.20"
11 .\"
22 .\" libunbound.3 -- unbound library functions manual
33 .\"
4141 .B ub_ctx_zone_remove,
4242 .B ub_ctx_data_add,
4343 .B ub_ctx_data_remove
44 \- Unbound DNS validating resolver 1.4.19 functions.
44 \- Unbound DNS validating resolver 1.4.20 functions.
4545 .SH "SYNOPSIS"
4646 .LP
4747 .B #include <unbound.h>
358358 int secure; /* true if result is secure */
359359 int bogus; /* true if a security failure happened */
360360 char* why_bogus; /* string with error if bogus */
361 int ttl; /* number of seconds the result is valid */
361362 };
362363 .fi
363364 .P
0 .TH "unbound-anchor" "8" "Dec 12, 2012" "NLnet Labs" "unbound 1.4.19"
0 .TH "unbound-anchor" "8" "Mar 21, 2013" "NLnet Labs" "unbound 1.4.20"
11 .\"
22 .\" unbound-anchor.8 -- unbound anchor maintenance utility manual
33 .\"
7575 The pathname to the root\-anchors.p7s file on the server. (forms URL with \-u).
7676 The default is /root\-anchors/root\-anchors.p7s. This file has to be a PKCS7
7777 signature over the xml file, using the pem file (\-c) as trust anchor.
78 .TP
79 .B \-n \fIname
80 The emailAddress for the Subject of the signer's certificate from the p7s
81 signature file. Only signatures from this name are allowed. default is
82 dnssec@iana.org. If you pass "" then the emailAddress is not checked.
7883 .TP
7984 .B \-4
8085 Use IPv4 for domain resolution and contacting the server on https. Default is
0 .TH "unbound-checkconf" "8" "Dec 12, 2012" "NLnet Labs" "unbound 1.4.19"
0 .TH "unbound-checkconf" "8" "Mar 21, 2013" "NLnet Labs" "unbound 1.4.20"
11 .\"
22 .\" unbound-checkconf.8 -- unbound configuration checker manual
33 .\"
0 .TH "unbound-control" "8" "Dec 12, 2012" "NLnet Labs" "unbound 1.4.19"
0 .TH "unbound-control" "8" "Mar 21, 2013" "NLnet Labs" "unbound 1.4.20"
11 .\"
22 .\" unbound-control.8 -- unbound remote control manual
33 .\"
0 .TH "unbound\-host" "1" "Dec 12, 2012" "NLnet Labs" "unbound 1.4.19"
0 .TH "unbound\-host" "1" "Mar 21, 2013" "NLnet Labs" "unbound 1.4.20"
11 .\"
22 .\" unbound-host.1 -- unbound DNS lookup utility
33 .\"
0 .TH "unbound" "8" "Dec 12, 2012" "NLnet Labs" "unbound 1.4.19"
0 .TH "unbound" "8" "Mar 21, 2013" "NLnet Labs" "unbound 1.4.20"
11 .\"
22 .\" unbound.8 -- unbound manual
33 .\"
99 .SH "NAME"
1010 .LP
1111 .B unbound
12 \- Unbound DNS validating resolver 1.4.19.
12 \- Unbound DNS validating resolver 1.4.20.
1313 .SH "SYNOPSIS"
1414 .LP
1515 .B unbound
0 .TH "unbound.conf" "5" "Dec 12, 2012" "NLnet Labs" "unbound 1.4.19"
0 .TH "unbound.conf" "5" "Mar 21, 2013" "NLnet Labs" "unbound 1.4.20"
11 .\"
22 .\" unbound.conf.5 -- unbound.conf manual
33 .\"
486486 # then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
487487 # in the documentation. The default is NO.
488488
489 SHOW_DIRECTORIES = YES
489 #SHOW_DIRECTORIES = YES
490490
491491 # Set the SHOW_FILES tag to NO to disable the generation of the Files page.
492492 # This will remove the Files entry from the Quick Index and from the
861861 # files or namespaces will be aligned in HTML using tables. If set to
862862 # NO a bullet list will be used.
863863
864 HTML_ALIGN_MEMBERS = YES
864 #HTML_ALIGN_MEMBERS = YES
865865
866866 # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
867867 # documentation will contain sections that can be hidden and shown after the
10461046 # By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories,
10471047 # and Class Hierarchy pages using a tree view instead of an ordered list.
10481048
1049 USE_INLINE_TREES = NO
1049 #USE_INLINE_TREES = NO
10501050
10511051 # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
10521052 # used to set the initial width (in pixels) of the frame in which the tree
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2011-11-20.07; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
3434 # FSF changes to this file are in the public domain.
3535 #
3636 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
37 # 'make' implicit rules from creating a file called install from it
3838 # when there is no Makefile.
3939 #
4040 # This script is compatible with the BSD install script, but was written
155155 -s) stripcmd=$stripprog;;
156156
157157 -t) dst_arg=$2
158 # Protect names problematic for 'test' and other utilities.
159 case $dst_arg in
160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161 esac
158162 shift;;
159163
160164 -T) no_target_directory=true;;
185189 fi
186190 shift # arg
187191 dst_arg=$arg
192 # Protect names problematic for 'test' and other utilities.
193 case $dst_arg in
194 -* | [=\(\)!]) dst_arg=./$dst_arg;;
195 esac
188196 done
189197 fi
190198
193201 echo "$0: no input file specified." >&2
194202 exit 1
195203 fi
196 # It's OK to call `install-sh -d' without argument.
204 # It's OK to call 'install-sh -d' without argument.
197205 # This can happen when creating conditional directories.
198206 exit 0
199207 fi
200208
201209 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
210 do_exit='(exit $ret); exit $ret'
211 trap "ret=129; $do_exit" 1
212 trap "ret=130; $do_exit" 2
213 trap "ret=141; $do_exit" 13
214 trap "ret=143; $do_exit" 15
203215
204216 # Set umask so as not to create temps with too-generous modes.
205217 # However, 'strip' requires both read and write access to temps.
227239
228240 for src
229241 do
230 # Protect names starting with `-'.
242 # Protect names problematic for 'test' and other utilities.
231243 case $src in
232 -*) src=./$src;;
244 -* | [=\(\)!]) src=./$src;;
233245 esac
234246
235247 if test -n "$dir_arg"; then
251263 echo "$0: no destination specified." >&2
252264 exit 1
253265 fi
254
255266 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260267
261268 # If destination is a directory, append the input filename; won't work
262269 # if double slashes aren't ignored.
346353 if test -z "$dir_arg" || {
347354 # Check for POSIX incompatibilities with -m.
348355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
349 # other-writeable bit of parent directory when it shouldn't.
356 # other-writable bit of parent directory when it shouldn't.
350357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
351358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
352359 case $ls_ld_tmpdir in
384391
385392 case $dstdir in
386393 /*) prefix='/';;
387 -*) prefix='./';;
394 [-=\(\)!]*) prefix='./';;
388395 *) prefix='';;
389396 esac
390397
402409
403410 for d
404411 do
405 test -z "$d" && continue
412 test X"$d" = X && continue
406413
407414 prefix=$prefix$d
408415 if test -d "$prefix"; then
127127 node->namelabs = nmlabs;
128128 node->dp = dp;
129129 if(!rbtree_insert(fwd->tree, &node->node)) {
130 log_err("duplicate forward zone ignored.");
130 char buf[257];
131 dname_str(nm, buf);
132 log_err("duplicate forward zone %s ignored.", buf);
131133 delegpt_free_mlc(dp);
132134 free(node->name);
133135 free(node);
118118 ; on server FTP.INTERNIC.NET
119119 ; -OR- RS.INTERNIC.NET
120120 ;
121 ; related version of root zone: 2010061700
121 ; related version of root zone: changes-on-20120103
122122 */
123123 struct delegpt* dp = delegpt_create_mlc((uint8_t*)"\000");
124124 if(!dp)
128128 if(!ah(dp, "A.ROOT-SERVERS.NET.", "198.41.0.4")) goto failed;
129129 if(!ah(dp, "B.ROOT-SERVERS.NET.", "192.228.79.201")) goto failed;
130130 if(!ah(dp, "C.ROOT-SERVERS.NET.", "192.33.4.12")) goto failed;
131 if(!ah(dp, "D.ROOT-SERVERS.NET.", "128.8.10.90")) goto failed;
131 if(!ah(dp, "D.ROOT-SERVERS.NET.", "199.7.91.13")) goto failed;
132132 if(!ah(dp, "E.ROOT-SERVERS.NET.", "192.203.230.10")) goto failed;
133133 if(!ah(dp, "F.ROOT-SERVERS.NET.", "192.5.5.241")) goto failed;
134134 if(!ah(dp, "G.ROOT-SERVERS.NET.", "192.112.36.4")) goto failed;
171171 node->noprime = (uint8_t)noprime;
172172 if(!name_tree_insert(&hints->tree, &node->node, dp->name, dp->namelen,
173173 dp->namelabs, c)) {
174 log_err("second hints ignored.");
174 char buf[257];
175 dname_str(dp->name, buf);
176 log_err("second hints for zone %s ignored.", buf);
175177 delegpt_free_mlc(dp);
176178 free(node);
177179 }
4343 #include "config.h"
4444 #include <ldns/dname.h>
4545 #include <ldns/wire2host.h>
46 #ifdef HAVE_SSL
4647 #include <openssl/ssl.h>
48 #endif
4749 #include "libunbound/libworker.h"
4850 #include "libunbound/context.h"
4951 #include "libunbound/unbound.h"
8789 ub_randfree(w->env->rnd);
8890 free(w->env);
8991 }
92 #ifdef HAVE_SSL
9093 SSL_CTX_free(w->sslctx);
94 #endif
9195 outside_network_delete(w->back);
9296 comm_base_delete(w->base);
9397 free(w);
406410 /** fill data into result */
407411 static int
408412 fill_res(struct ub_result* res, struct ub_packed_rrset_key* answer,
409 uint8_t* finalcname, struct query_info* rq)
413 uint8_t* finalcname, struct query_info* rq, struct reply_info* rep)
410414 {
411415 size_t i;
412416 struct packed_rrset_data* data;
417 res->ttl = 0;
413418 if(!answer) {
414419 if(finalcname) {
415420 if(!fill_canon(res, finalcname))
416421 return 0; /* out of memory */
417422 }
423 if(rep->rrset_count != 0)
424 res->ttl = (int)rep->ttl;
418425 res->data = (char**)calloc(1, sizeof(char*));
419426 res->len = (int*)calloc(1, sizeof(int));
420427 return (res->data && res->len);
435442 if(!res->data[i])
436443 return 0; /* out of memory */
437444 }
445 /* ttl for positive answers, from CNAME and answer RRs */
446 if(data->count != 0) {
447 size_t j;
448 res->ttl = (int)data->ttl;
449 for(j=0; j<rep->an_numrrsets; j++) {
450 struct packed_rrset_data* d =
451 (struct packed_rrset_data*)rep->rrsets[j]->
452 entry.data;
453 if((int)d->ttl < res->ttl)
454 res->ttl = (int)d->ttl;
455 }
456 }
457 /* ttl for negative answers */
458 if(data->count == 0 && rep->rrset_count != 0)
459 res->ttl = (int)rep->ttl;
438460 res->data[data->count] = NULL;
439461 res->len[data->count] = 0;
440462 return 1;
454476 return; /* error parsing buf, or out of memory */
455477 }
456478 if(!fill_res(res, reply_find_answer_rrset(&rq, rep),
457 reply_find_final_cname_target(&rq, rep), &rq))
479 reply_find_final_cname_target(&rq, rep), &rq, rep))
458480 return; /* out of memory */
459481 /* rcode, havedata, nxdomain, secure, bogus */
460482 res->rcode = (int)FLAGS_GET_RCODE(rep->flags);
192192 * Is NULL if the result is not bogus.
193193 */
194194 char* why_bogus;
195
196 /**
197 * TTL for the result, in seconds. If the security is bogus, then
198 * you also cannot trust this value.
199 */
200 int ttl;
195201 };
196202
197203 /**
00
1 # libtool (GNU libtool) 2.4
1 # libtool (GNU libtool) 2.4.2
22 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
33
44 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
66 # This is free software; see the source for copying conditions. There is NO
77 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
88
4040 # --quiet, --silent don't print informational messages
4141 # --no-quiet, --no-silent
4242 # print informational messages (default)
43 # --no-warn don't display warning messages
4344 # --tag=TAG use configuration variables from tag TAG
4445 # -v, --verbose print more informational messages than default
4546 # --no-verbose don't print the extra informational messages
6869 # compiler: $LTCC
6970 # compiler flags: $LTCFLAGS
7071 # linker: $LD (gnu? $with_gnu_ld)
71 # $progname: (GNU libtool) 2.4
72 # $progname: (GNU libtool) 2.4.2
7273 # automake: $automake_version
7374 # autoconf: $autoconf_version
7475 #
7879
7980 PROGRAM=libtool
8081 PACKAGE=libtool
81 VERSION=2.4
82 VERSION=2.4.2
8283 TIMESTAMP=""
83 package_revision=1.3293
84 package_revision=1.3337
8485
8586 # Be Bourne compatible
8687 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
135136
136137 : ${CP="cp -f"}
137138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
138 : ${EGREP="/bin/grep -E"}
139 : ${FGREP="/bin/grep -F"}
140 : ${GREP="/bin/grep"}
141 : ${LN_S="ln -s"}
142139 : ${MAKE="make"}
143140 : ${MKDIR="mkdir"}
144141 : ${MV="mv -f"}
145142 : ${RM="rm -f"}
146 : ${SED="/bin/sed"}
147143 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
148144 : ${Xsed="$SED -e 1s/^X//"}
149145
386382 ;;
387383 *)
388384 save_IFS="$IFS"
389 IFS=:
385 IFS=${PATH_SEPARATOR-:}
390386 for progdir in $PATH; do
391387 IFS="$save_IFS"
392388 test -x "$progdir/$progname" && break
770766 s*\$LTCFLAGS*'"$LTCFLAGS"'*
771767 s*\$LD*'"$LD"'*
772768 s/\$with_gnu_ld/'"$with_gnu_ld"'/
773 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
774 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
775771 p
776772 d
777773 }
10511047 opt_help=false
10521048 opt_help_all=false
10531049 opt_silent=:
1050 opt_warning=:
10541051 opt_verbose=:
10551052 opt_silent=false
10561053 opt_verbose=false
11171114 ;;
11181115 --no-silent|--no-quiet)
11191116 opt_silent=false
1117 func_append preserve_args " $opt"
1118 ;;
1119 --no-warning|--no-warn)
1120 opt_warning=false
11201121 func_append preserve_args " $opt"
11211122 ;;
11221123 --no-verbose)
20582059 *.[cCFSifmso] | \
20592060 *.ada | *.adb | *.ads | *.asm | \
20602061 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
2061 *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup)
2062 *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
20622063 func_xform "$libobj"
20632064 libobj=$func_xform_result
20642065 ;;
32003201
32013202 # Set up the ranlib parameters.
32023203 oldlib="$destdir/$name"
3204 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
3205 tool_oldlib=$func_to_tool_file_result
32033206
32043207 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
32053208
32063209 if test -n "$stripme" && test -n "$old_striplib"; then
3207 func_show_eval "$old_striplib $oldlib" 'exit $?'
3210 func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
32083211 fi
32093212
32103213 # Do each command in the postinstall commands.
34693472 # linked before any other PIC object. But we must not use
34703473 # pic_flag when linking with -static. The problem exists in
34713474 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
3472 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3475 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
34733476 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
34743477 *-*-hpux*)
34753478 pic_flag_for_symtable=" $pic_flag" ;;
39813984 # launches target application with the remaining arguments.
39823985 func_exec_program ()
39833986 {
3984 for lt_wr_arg
3985 do
3986 case \$lt_wr_arg in
3987 --lt-*) ;;
3988 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
3989 esac
3990 shift
3991 done
3987 case \" \$* \" in
3988 *\\ --lt-*)
3989 for lt_wr_arg
3990 do
3991 case \$lt_wr_arg in
3992 --lt-*) ;;
3993 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
3994 esac
3995 shift
3996 done ;;
3997 esac
39923998 func_exec_program_core \${1+\"\$@\"}
39933999 }
39944000
50565062 {
50575063 EOF
50585064 func_emit_wrapper yes |
5059 $SED -e 's/\([\\"]\)/\\\1/g' \
5060 -e 's/^/ fputs ("/' -e 's/$/\\n", f);/'
5061
5065 $SED -n -e '
5066 s/^\(.\{79\}\)\(..*\)/\1\
5067 \2/
5068 h
5069 s/\([\\"]\)/\\\1/g
5070 s/$/\\n/
5071 s/\([^\n]*\).*/ fputs ("\1", f);/p
5072 g
5073 D'
50625074 cat <<"EOF"
50635075 }
50645076 EOF
56425654 continue
56435655 ;;
56445656
5645 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
5657 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
5658 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
56465659 func_append compiler_flags " $arg"
56475660 func_append compile_command " $arg"
56485661 func_append finalize_command " $arg"
61466159 lib=
61476160 found=no
61486161 case $deplib in
6149 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
6162 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
6163 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
61506164 if test "$linkmode,$pass" = "prog,link"; then
61516165 compile_deplibs="$deplib $compile_deplibs"
61526166 finalize_deplibs="$deplib $finalize_deplibs"
68306844 test "$hardcode_direct_absolute" = no; then
68316845 add="$dir/$linklib"
68326846 elif test "$hardcode_minus_L" = yes; then
6833 add_dir="-L$dir"
6847 add_dir="-L$absdir"
68346848 # Try looking first in the location we're being installed to.
68356849 if test -n "$inst_prefix_dir"; then
68366850 case $libdir in
73157329 # which has an extra 1 added just for fun
73167330 #
73177331 case $version_type in
7332 # correct linux to gnu/linux during the next big refactor
73187333 darwin|linux|osf|windows|none)
73197334 func_arith $number_major + $number_minor
73207335 current=$func_arith_result
74317446 versuffix="$major.$revision"
74327447 ;;
74337448
7434 linux)
7449 linux) # correct to gnu/linux during the next big refactor
74357450 func_arith $current - $age
74367451 major=.$func_arith_result
74377452 versuffix="$major.$age.$revision"
80198034
80208035 # Test again, we may have decided not to build it any more
80218036 if test "$build_libtool_libs" = yes; then
8037 # Remove ${wl} instances when linking with ld.
8038 # FIXME: should test the right _cmds variable.
8039 case $archive_cmds in
8040 *\$LD\ *) wl= ;;
8041 esac
80228042 if test "$hardcode_into_libs" = yes; then
80238043 # Hardcode the library paths
80248044 hardcode_libdirs=
80578077 if test -n "$hardcode_libdir_separator" &&
80588078 test -n "$hardcode_libdirs"; then
80598079 libdir="$hardcode_libdirs"
8060 if test -n "$hardcode_libdir_flag_spec_ld"; then
8061 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
8062 else
8063 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
8064 fi
8080 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
80658081 fi
80668082 if test -n "$runpath_var" && test -n "$perm_rpath"; then
80678083 # We should set the runpath_var.
91519167 esac
91529168 done
91539169 fi
9170 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
9171 tool_oldlib=$func_to_tool_file_result
91549172 eval cmds=\"$old_archive_cmds\"
91559173
91569174 func_len " $cmds"
92609278 *.la)
92619279 func_basename "$deplib"
92629280 name="$func_basename_result"
9263 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
9281 func_resolve_sysroot "$deplib"
9282 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
92649283 test -z "$libdir" && \
92659284 func_fatal_error "\`$deplib' is not a valid libtool archive"
92669285 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
448448 struct local_data* node;
449449 struct local_rrset* rrset;
450450 struct packed_rrset_data* pd;
451 uint16_t rrtype, rrclass;
452 uint32_t ttl;
451 uint16_t rrtype = 0, rrclass = 0;
452 uint32_t ttl = 0;
453453 if(!get_rr_content(rrstr, &nm, &rrtype, &rrclass, &ttl, buf)) {
454454 log_err("bad local-data: %s", rrstr);
455455 return 0;
5757 #include "util/net_help.h"
5858 #include "util/random.h"
5959 #include "util/fptr_wlist.h"
60 #ifdef HAVE_OPENSSL_SSL_H
6061 #include <openssl/ssl.h>
62 #endif
6163
6264 #ifdef HAVE_NETDB_H
6365 #include <netdb.h>
133133 #include <openssl/rand.h>
134134 #endif
135135 #include <openssl/x509.h>
136 #include <openssl/x509v3.h>
136137 #include <openssl/pem.h>
137138
138139 /** name of server in URL to fetch HTTPS from */
141142 #define XMLNAME "root-anchors/root-anchors.xml"
142143 /** path on HTTPS server to p7s file */
143144 #define P7SNAME "root-anchors/root-anchors.p7s"
145 /** name of the signer of the certificate */
146 #define P7SIGNER "dnssec@iana.org"
144147 /** port number for https access */
145148 #define HTTPS_PORT 443
146149
183186 printf("-u name server in https url, default %s\n", URLNAME);
184187 printf("-x path pathname to xml in url, default %s\n", XMLNAME);
185188 printf("-s path pathname to p7s in url, default %s\n", P7SNAME);
189 printf("-n name signer's subject emailAddress, default %s\n", P7SIGNER);
186190 printf("-4 work using IPv4 only\n");
187191 printf("-6 work using IPv6 only\n");
188192 printf("-f resolv.conf use given resolv.conf to resolve -u name\n");
15021506 }
15031507 }
15041508
1509 /* Stop the parser when an entity declaration is encountered. For safety. */
1510 static void
1511 xml_entitydeclhandler(void *userData,
1512 const XML_Char *ATTR_UNUSED(entityName),
1513 int ATTR_UNUSED(is_parameter_entity),
1514 const XML_Char *ATTR_UNUSED(value), int ATTR_UNUSED(value_length),
1515 const XML_Char *ATTR_UNUSED(base),
1516 const XML_Char *ATTR_UNUSED(systemId),
1517 const XML_Char *ATTR_UNUSED(publicId),
1518 const XML_Char *ATTR_UNUSED(notationName))
1519 {
1520 (void)XML_StopParser((XML_Parser)userData, XML_FALSE);
1521 }
1522
15051523 /**
15061524 * XML parser setup of the callbacks for the tags
15071525 */
15301548 if(verb) printf("out of memory\n");
15311549 exit(0);
15321550 }
1551 XML_SetEntityDeclHandler(parser, xml_entitydeclhandler);
15331552 XML_SetElementHandler(parser, xml_startelem, xml_endelem);
15341553 XML_SetCharacterDataHandler(parser, xml_charhandle);
15351554 }
16071626 }
16081627 }
16091628
1629 /* get key usage out of its extension, returns 0 if no key_usage extension */
1630 static unsigned long
1631 get_usage_of_ex(X509* cert)
1632 {
1633 unsigned long val = 0;
1634 ASN1_BIT_STRING* s;
1635 if((s=X509_get_ext_d2i(cert, NID_key_usage, NULL, NULL))) {
1636 if(s->length > 0) {
1637 val = s->data[0];
1638 if(s->length > 1)
1639 val |= s->data[1] << 8;
1640 }
1641 ASN1_BIT_STRING_free(s);
1642 }
1643 return val;
1644 }
1645
1646 /** get valid signers from the list of signers in the signature */
1647 static STACK_OF(X509)*
1648 get_valid_signers(PKCS7* p7, char* p7signer)
1649 {
1650 int i;
1651 STACK_OF(X509)* validsigners = sk_X509_new_null();
1652 STACK_OF(X509)* signers = PKCS7_get0_signers(p7, NULL, 0);
1653 unsigned long usage = 0;
1654 if(!validsigners) {
1655 if(verb) printf("out of memory\n");
1656 sk_X509_free(signers);
1657 return NULL;
1658 }
1659 if(!signers) {
1660 if(verb) printf("no signers in pkcs7 signature\n");
1661 sk_X509_free(validsigners);
1662 return NULL;
1663 }
1664 for(i=0; i<sk_X509_num(signers); i++) {
1665 X509_NAME* nm = X509_get_subject_name(
1666 sk_X509_value(signers, i));
1667 char buf[1024];
1668 if(!nm) {
1669 if(verb) printf("signer %d: cert has no subject name\n", i);
1670 continue;
1671 }
1672 if(verb && nm) {
1673 char* nmline = X509_NAME_oneline(nm, buf,
1674 (int)sizeof(buf));
1675 printf("signer %d: Subject: %s\n", i,
1676 nmline?nmline:"no subject");
1677 if(verb >= 3 && X509_NAME_get_text_by_NID(nm,
1678 NID_commonName, buf, (int)sizeof(buf)))
1679 printf("commonName: %s\n", buf);
1680 if(verb >= 3 && X509_NAME_get_text_by_NID(nm,
1681 NID_pkcs9_emailAddress, buf, (int)sizeof(buf)))
1682 printf("emailAddress: %s\n", buf);
1683 }
1684 if(verb) {
1685 int ku_loc = X509_get_ext_by_NID(
1686 sk_X509_value(signers, i), NID_key_usage, -1);
1687 if(verb >= 3 && ku_loc >= 0) {
1688 X509_EXTENSION *ex = X509_get_ext(
1689 sk_X509_value(signers, i), ku_loc);
1690 if(ex) {
1691 printf("keyUsage: ");
1692 X509V3_EXT_print_fp(stdout, ex, 0, 0);
1693 printf("\n");
1694 }
1695 }
1696 }
1697 if(!p7signer || strcmp(p7signer, "")==0) {
1698 /* there is no name to check, return all records */
1699 if(verb) printf("did not check commonName of signer\n");
1700 } else {
1701 if(!X509_NAME_get_text_by_NID(nm,
1702 NID_pkcs9_emailAddress,
1703 buf, (int)sizeof(buf))) {
1704 if(verb) printf("removed cert with no name\n");
1705 continue; /* no name, no use */
1706 }
1707 if(strcmp(buf, p7signer) != 0) {
1708 if(verb) printf("removed cert with wrong name\n");
1709 continue; /* wrong name, skip it */
1710 }
1711 }
1712
1713 /* check that the key usage allows digital signatures
1714 * (the p7s) */
1715 usage = get_usage_of_ex(sk_X509_value(signers, i));
1716 if(!(usage & KU_DIGITAL_SIGNATURE)) {
1717 if(verb) printf("removed cert with no key usage Digital Signature allowed\n");
1718 continue;
1719 }
1720
1721 /* we like this cert, add it to our list of valid
1722 * signers certificates */
1723 sk_X509_push(validsigners, sk_X509_value(signers, i));
1724 }
1725 sk_X509_free(signers);
1726 return validsigners;
1727 }
1728
16101729 /** verify a PKCS7 signature, false on failure */
16111730 static int
1612 verify_p7sig(BIO* data, BIO* p7s, STACK_OF(X509)* trust)
1731 verify_p7sig(BIO* data, BIO* p7s, STACK_OF(X509)* trust, char* p7signer)
16131732 {
16141733 PKCS7* p7;
16151734 X509_STORE *store = X509_STORE_new();
1735 STACK_OF(X509)* validsigners;
16161736 int secure = 0;
16171737 int i;
16181738 #ifdef X509_V_FLAG_CHECK_SS_SIGNATURE
16341754 #endif
16351755 return 0;
16361756 }
1757 #ifdef X509_V_FLAG_CHECK_SS_SIGNATURE
1758 X509_VERIFY_PARAM_free(param);
1759 #endif
16371760
16381761 (void)BIO_reset(p7s);
16391762 (void)BIO_reset(data);
16581781 }
16591782 if(verb >= 2) printf("setup the X509_STORE\n");
16601783
1661 if(PKCS7_verify(p7, NULL, store, data, NULL, 0) == 1) {
1784 /* check what is in the Subject name of the certificates,
1785 * and build a stack that contains only the right certificates */
1786 validsigners = get_valid_signers(p7, p7signer);
1787 if(!validsigners) {
1788 X509_STORE_free(store);
1789 PKCS7_free(p7);
1790 return 0;
1791 }
1792 if(PKCS7_verify(p7, validsigners, store, data, NULL, PKCS7_NOINTERN) == 1) {
16621793 secure = 1;
16631794 if(verb) printf("the PKCS7 signature verified\n");
16641795 } else {
16671798 }
16681799 }
16691800
1801 sk_X509_free(validsigners);
16701802 X509_STORE_free(store);
16711803 PKCS7_free(p7);
16721804 return secure;
17271859 /** Perform the verification and update of the trustanchor file */
17281860 static void
17291861 verify_and_update_anchor(char* root_anchor_file, BIO* xml, BIO* p7s,
1730 STACK_OF(X509)* cert)
1862 STACK_OF(X509)* cert, char* p7signer)
17311863 {
17321864 BIO* ds;
17331865
17341866 /* verify xml file */
1735 if(!verify_p7sig(xml, p7s, cert)) {
1867 if(!verify_p7sig(xml, p7s, cert, p7signer)) {
17361868 printf("the PKCS7 signature failed\n");
17371869 exit(0);
17381870 }
17561888 /** perform actual certupdate work */
17571889 static int
17581890 do_certupdate(char* root_anchor_file, char* root_cert_file,
1759 char* urlname, char* xmlname, char* p7sname,
1891 char* urlname, char* xmlname, char* p7sname, char* p7signer,
17601892 char* res_conf, char* root_hints, char* debugconf,
17611893 int ip4only, int ip6only, int port, struct ub_result* dnskey)
17621894 {
17891921 p7s = https(ip_list, p7sname, urlname);
17901922
17911923 /* verify and update the root anchor */
1792 verify_and_update_anchor(root_anchor_file, xml, p7s, cert);
1924 verify_and_update_anchor(root_anchor_file, xml, p7s, cert, p7signer);
17931925 if(verb) printf("success: the anchor has been updated "
17941926 "using the cert\n");
17951927
20392171 /** perform the unbound-anchor work */
20402172 static int
20412173 do_root_update_work(char* root_anchor_file, char* root_cert_file,
2042 char* urlname, char* xmlname, char* p7sname,
2174 char* urlname, char* xmlname, char* p7sname, char* p7signer,
20432175 char* res_conf, char* root_hints, char* debugconf,
20442176 int ip4only, int ip6only, int force, int port)
20452177 {
20722204 if((dnskey->rcode == 0 &&
20732205 probe_date_allows_certupdate(root_anchor_file)) || force) {
20742206 if(do_certupdate(root_anchor_file, root_cert_file, urlname,
2075 xmlname, p7sname, res_conf, root_hints, debugconf,
2076 ip4only, ip6only, port, dnskey))
2207 xmlname, p7sname, p7signer, res_conf, root_hints,
2208 debugconf, ip4only, ip6only, port, dnskey))
20772209 return 1;
20782210 return used_builtin;
20792211 }
20962228 char* urlname = URLNAME;
20972229 char* xmlname = XMLNAME;
20982230 char* p7sname = P7SNAME;
2231 char* p7signer = P7SIGNER;
20992232 char* res_conf = NULL;
21002233 char* root_hints = NULL;
21012234 char* debugconf = NULL;
21022235 int dolist=0, ip4only=0, ip6only=0, force=0, port = HTTPS_PORT;
21032236 /* parse the options */
2104 while( (c=getopt(argc, argv, "46C:FP:a:c:f:hlr:s:u:vx:")) != -1) {
2237 while( (c=getopt(argc, argv, "46C:FP:a:c:f:hln:r:s:u:vx:")) != -1) {
21052238 switch(c) {
21062239 case 'l':
21072240 dolist = 1;
21272260 case 's':
21282261 p7sname = optarg;
21292262 break;
2263 case 'n':
2264 p7signer = optarg;
2265 break;
21302266 case 'f':
21312267 res_conf = optarg;
21322268 break;
21642300 if(dolist) do_list_builtin();
21652301
21662302 return do_root_update_work(root_anchor_file, root_cert_file, urlname,
2167 xmlname, p7sname, res_conf, root_hints, debugconf, ip4only,
2168 ip6only, force, port);
2169 }
2303 xmlname, p7sname, p7signer, res_conf, root_hints, debugconf,
2304 ip4only, ip6only, force, port);
2305 }
6161 #include "libunbound/unbound.h"
6262 #include <ldns/ldns.h>
6363 #ifdef HAVE_NSS
64 #include <nss3/nss.h>
64 /* nss3 */
65 #include "nss.h"
6566 #endif
6667
6768 /** verbosity for unbound-host app */
196196 /**
197197 * reads the canned reply file and returns a list of structs
198198 * does an exit on error.
199 * @param name: name of the file to read.
199200 * @param skip_whitespace: skip leftside whitespace.
200201 */
201202 struct entry* read_datafile(const char* name, int skip_whitespace);
5656 #endif
5757
5858 #ifdef HAVE_NSS
59 #include "nss3/nss.h"
59 /* nss3 */
60 #include "nss.h"
6061 #endif
6162
6263 #include <ldns/ldns.h>
115115 # depending on uname try to check for collisions in port numbers
116116 case "`uname`" in
117117 linux|Linux)
118 plist=`netstat -n -A ip -A ip6 -a | sed -e 's/^.*:\([0-9]*\) .*$/\1/'`
118 plist=`netstat -n -A ip -A ip6 -a 2>/dev/null | sed -e 's/^.*:\([0-9]*\) .*$/\1/'`
119119 ;;
120120 FreeBSD|freebsd|NetBSD|netbsd|OpenBSD|openbsd)
121121 plist=`netstat -n -a | grep "^[ut][dc]p[46] " | sed -e 's/^.*\.\([0-9]*\) .*$/\1/'`
Binary diff not shown
Binary diff not shown
0 ; config options
1 ; The island of trust is at example.com
2 server:
3 trust-anchor: "example.com. 3600 IN DS 2854 3 1 46e4ffc6e9a4793b488954bd3f0cc6af0dfb201b"
4 val-override-date: "20070916134226"
5 target-fetch-policy: "0 0 0 0 0"
6
7 stub-zone:
8 name: "."
9 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
10 CONFIG_END
11
12 SCENARIO_BEGIN Test validator with CNAME response to DS in chain of trust
13 ; the CNAME is at a nonempty nonterminal name in the parent zone.
14
15 ; K.ROOT-SERVERS.NET.
16 RANGE_BEGIN 0 100
17 ADDRESS 193.0.14.129
18 ENTRY_BEGIN
19 MATCH opcode qtype qname
20 ADJUST copy_id
21 REPLY QR NOERROR
22 SECTION QUESTION
23 . IN NS
24 SECTION ANSWER
25 . IN NS K.ROOT-SERVERS.NET.
26 SECTION ADDITIONAL
27 K.ROOT-SERVERS.NET. IN A 193.0.14.129
28 ENTRY_END
29
30 ENTRY_BEGIN
31 MATCH opcode subdomain
32 ADJUST copy_id copy_query
33 REPLY QR NOERROR
34 SECTION QUESTION
35 com. IN A
36 SECTION AUTHORITY
37 com. IN NS a.gtld-servers.net.
38 SECTION ADDITIONAL
39 a.gtld-servers.net. IN A 192.5.6.30
40 ENTRY_END
41
42 ENTRY_BEGIN
43 MATCH opcode subdomain
44 ADJUST copy_id copy_query
45 REPLY QR NOERROR
46 SECTION QUESTION
47 net. IN A
48 SECTION AUTHORITY
49 net. IN NS a.gtld-servers.net.
50 SECTION ADDITIONAL
51 a.gtld-servers.net. IN A 192.5.6.30
52 ENTRY_END
53 RANGE_END
54
55 ; a.gtld-servers.net.
56 RANGE_BEGIN 0 100
57 ADDRESS 192.5.6.30
58 ENTRY_BEGIN
59 MATCH opcode qtype qname
60 ADJUST copy_id
61 REPLY QR NOERROR
62 SECTION QUESTION
63 com. IN NS
64 SECTION ANSWER
65 com. IN NS a.gtld-servers.net.
66 SECTION ADDITIONAL
67 a.gtld-servers.net. IN A 192.5.6.30
68 ENTRY_END
69
70 ENTRY_BEGIN
71 MATCH opcode subdomain
72 ADJUST copy_id copy_query
73 REPLY QR NOERROR
74 SECTION QUESTION
75 example.com. IN A
76 SECTION AUTHORITY
77 example.com. IN NS ns.example.com.
78 SECTION ADDITIONAL
79 ns.example.com. IN A 1.2.3.4
80 ENTRY_END
81
82 ENTRY_BEGIN
83 MATCH opcode qtype qname
84 ADJUST copy_id
85 REPLY QR AA NOERROR
86 SECTION QUESTION
87 ns.example.com. IN AAAA
88 SECTION ANSWER
89 ENTRY_END
90
91 ENTRY_BEGIN
92 MATCH opcode subdomain
93 ADJUST copy_id copy_query
94 REPLY QR AA NOERROR
95 SECTION QUESTION
96 example.net. IN A
97 SECTION AUTHORITY
98 example.net. IN NS ns.example.net.
99 SECTION ADDITIONAL
100 ns.example.net. IN A 1.2.3.6
101 ENTRY_END
102
103 RANGE_END
104
105 ; ns.example.com.
106 RANGE_BEGIN 0 100
107 ADDRESS 1.2.3.4
108 ENTRY_BEGIN
109 MATCH opcode qtype qname
110 ADJUST copy_id
111 REPLY QR NOERROR
112 SECTION QUESTION
113 ns.example.com. IN AAAA
114 SECTION ANSWER
115 ; not legal NOERROR/NODATA response, but leniently accepted (not validated)
116 SECTION AUTHORITY
117 example.com. IN NS ns.example.com.
118 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
119 ;example.com. IN SOA alfa.ns.example.com.cz. hostmaster.example.com. 2010030800 10800 86400 604800 86400
120 ;example.com. 3600 IN RRSIG SOA 3 2 3600 20070926134150 20070829134150 2854 example.com. ADsxLOHjxFzwFmwIiGOubqD9nKWAp4RccRIXQ0+EAUGfSDZMCB0ZiFA= ;{id = 2854}
121 SECTION ADDITIONAL
122 ns.example.com. IN A 1.2.3.4
123 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
124 ENTRY_END
125
126 ENTRY_BEGIN
127 MATCH opcode qtype qname
128 ADJUST copy_id
129 REPLY QR NOERROR
130 SECTION QUESTION
131 example.com. IN NS
132 SECTION ANSWER
133 example.com. IN NS ns.example.com.
134 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
135 SECTION ADDITIONAL
136 ns.example.com. IN A 1.2.3.4
137 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
138 ENTRY_END
139
140 ; response to DNSKEY priming query
141 ENTRY_BEGIN
142 MATCH opcode qtype qname
143 ADJUST copy_id
144 REPLY QR NOERROR
145 SECTION QUESTION
146 example.com. IN DNSKEY
147 SECTION ANSWER
148 example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
149 example.com. 3600 IN RRSIG DNSKEY 3 2 3600 20070926134802 20070829134802 2854 example.com. MCwCFG1yhRNtTEa3Eno2zhVVuy2EJX3wAhQeLyUp6+UXcpC5qGNu9tkrTEgPUg== ;{id = 2854}
150 SECTION AUTHORITY
151 example.com. IN NS ns.example.com.
152 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
153 SECTION ADDITIONAL
154 ns.example.com. IN A 1.2.3.4
155 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
156 ENTRY_END
157
158 ; response to DS query for a.example.com, a CNAME
159 ENTRY_BEGIN
160 MATCH opcode qtype qname
161 ADJUST copy_id
162 REPLY QR AA NOERROR
163 SECTION QUESTION
164 a.example.com. IN DS
165 SECTION ANSWER
166 a.example.com. IN CNAME zzz.example.net.
167 a.example.com. 3600 IN RRSIG CNAME 3 3 3600 20070926134150 20070829134150 2854 example.com. AKM6/j6yowuwqbazKzi4fEsavcLwXo3PjglhH9KD68ANZOrdN9y1ZCc=
168 SECTION AUTHORITY
169 SECTION ADDITIONAL
170 ENTRY_END
171
172 ; response to DS query for sub.a.example.com.
173 ENTRY_BEGIN
174 MATCH opcode qtype qname
175 ADJUST copy_id
176 REPLY QR AA NOERROR
177 SECTION QUESTION
178 sub.a.example.com. IN DS
179 SECTION ANSWER
180 sub.a.example.com. 3600 IN DS 57024 7 1 e54100bff773a794854808694c5d217267a53649
181 sub.a.example.com. 3600 IN RRSIG DS 3 4 3600 20070926134150 20070829134150 2854 example.com. ALHDGmpgZlXnAb54z4FbBKw/9nXVBdosG0UCEuh4qU7Lm/fs5Dv9aJw=
182 SECTION AUTHORITY
183 SECTION ADDITIONAL
184 ENTRY_END
185
186 ; delegation down
187 ENTRY_BEGIN
188 MATCH opcode subdomain
189 ADJUST copy_id copy_query
190 REPLY QR NOERROR
191 SECTION QUESTION
192 sub.a.example.com. IN NS
193 SECTION ANSWER
194 SECTION AUTHORITY
195 sub.a.example.com. 3600 IN DS 57024 7 1 e54100bff773a794854808694c5d217267a53649
196 sub.a.example.com. 3600 IN RRSIG DS 3 4 3600 20070926134150 20070829134150 2854 example.com. ALHDGmpgZlXnAb54z4FbBKw/9nXVBdosG0UCEuh4qU7Lm/fs5Dv9aJw=
197 sub.a.example.com. IN NS ns.sub.a.example.com.
198 SECTION ADDITIONAL
199 ns.sub.a.example.com. IN A 1.2.3.5
200 ENTRY_END
201 RANGE_END
202
203 ; ns.sub.a.example.com.
204 RANGE_BEGIN 0 100
205 ADDRESS 1.2.3.5
206
207 ; DNSKEY query
208 ENTRY_BEGIN
209 MATCH opcode qtype qname
210 ADJUST copy_id
211 REPLY QR AA NOERROR
212 SECTION QUESTION
213 sub.a.example.com. IN DNSKEY
214 SECTION ANSWER
215 sub.a.example.com. 3600 IN DNSKEY 257 3 7 AwEAAbvre/wK/WVeoj0SiwVkTD+NefvHPru9YIqLWY0m+0E5NYOpJZdc+PGQQYRzFNOlugVZtFirmv5Lmz7GNiASXtG/IFi//SlE30DxEKQOjt2F6qSZTZ1nZ5XOIMGTwWyp4OoI0egk5JavC5mQbyXqcj82ywt6F5Z3CmnThVl6MtOv ;{id = 57024 (ksk), size = 1024b}
216 sub.a.example.com. 3600 IN RRSIG DNSKEY 7 4 3600 20070926134150 20070829134150 57024 sub.a.example.com. TB3rkkPBD/ESQR9WBpfq2aV+2howI+EJq2+om2EI6PiemQOdpN6ovLvKwCILb0LOsTEFfPpAvRCOuDzRC24sJqBgWpZ4xLxMTcQJ8hMvv7rIUfZotDPO2JYNHSRmpeQLuDGA6P+AtJLYIr7yfOltJmJ0aCJxy3Fm9RQxJxHVbEQ=
217 SECTION AUTHORITY
218 SECTION ADDITIONAL
219 ENTRY_END
220
221 ; query of interest
222 ENTRY_BEGIN
223 MATCH opcode qtype qname
224 ADJUST copy_id
225 REPLY QR AA NOERROR
226 SECTION QUESTION
227 www.sub.a.example.com. IN A
228 SECTION ANSWER
229 www.sub.a.example.com. IN A 10.20.30.40
230 www.sub.a.example.com. 3600 IN RRSIG A 7 5 3600 20070926134150 20070829134150 57024 sub.a.example.com. az44R7VbfooRtaSOO65W+GP4K/fHlIcKMkF/z3LVvDXOdCK+zuYPJycBCYljH5cAhslMXgDeHMOWdcPhKIZ3EjykYUJIGlMckVIMobBieFKFhIX9r/bRpT0vlsCF2YKbmvyjpeRF/sIg2iSNMf/s6wxpZq02Kq6yuHtUEqgx7uA=
231 SECTION AUTHORITY
232 SECTION ADDITIONAL
233 ENTRY_END
234
235 RANGE_END
236
237 ; ns.example.net.
238 RANGE_BEGIN 0 100
239 ADDRESS 1.2.3.6
240
241 ENTRY_BEGIN
242 MATCH opcode qtype qname
243 ADJUST copy_id
244 REPLY QR AA NOERROR
245 SECTION QUESTION
246 zzz.example.net. IN DS
247 SECTION ANSWER
248 SECTION AUTHORITY
249 example.net. IN SOA root. host. 1 2 3 4 5
250 SECTION ADDITIONAL
251 ENTRY_END
252 RANGE_END
253
254
255 STEP 1 QUERY
256 ENTRY_BEGIN
257 REPLY RD DO
258 SECTION QUESTION
259 www.sub.a.example.com. IN A
260 ENTRY_END
261
262 ; recursion happens here.
263 STEP 10 CHECK_ANSWER
264 ENTRY_BEGIN
265 MATCH all
266 REPLY QR RD RA AD NOERROR
267 SECTION QUESTION
268 www.sub.a.example.com. IN A
269 SECTION ANSWER
270 www.sub.a.example.com. 3600 IN A 10.20.30.40
271 www.sub.a.example.com. 3600 IN RRSIG A 7 5 3600 20070926134150 20070829134150 57024 sub.a.example.com. az44R7VbfooRtaSOO65W+GP4K/fHlIcKMkF/z3LVvDXOdCK+zuYPJycBCYljH5cAhslMXgDeHMOWdcPhKIZ3EjykYUJIGlMckVIMobBieFKFhIX9r/bRpT0vlsCF2YKbmvyjpeRF/sIg2iSNMf/s6wxpZq02Kq6yuHtUEqgx7uA=
272 ENTRY_END
273
274 SCENARIO_END
0 ; config options
1 ; The island of trust is at example.com
2 server:
3 trust-anchor: "example.com. 3600 IN DS 2854 3 1 46e4ffc6e9a4793b488954bd3f0cc6af0dfb201b"
4 val-override-date: "20070916134226"
5 target-fetch-policy: "0 0 0 0 0"
6
7 stub-zone:
8 name: "."
9 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
10 CONFIG_END
11
12 SCENARIO_BEGIN Test validator with NSEC3 response for NODATA ENT with optout.
13
14 ; K.ROOT-SERVERS.NET.
15 RANGE_BEGIN 0 100
16 ADDRESS 193.0.14.129
17 ENTRY_BEGIN
18 MATCH opcode qtype qname
19 ADJUST copy_id
20 REPLY QR NOERROR
21 SECTION QUESTION
22 . IN NS
23 SECTION ANSWER
24 . IN NS K.ROOT-SERVERS.NET.
25 SECTION ADDITIONAL
26 K.ROOT-SERVERS.NET. IN A 193.0.14.129
27 ENTRY_END
28
29 ENTRY_BEGIN
30 MATCH opcode subdomain
31 ADJUST copy_id copy_query
32 REPLY QR NOERROR
33 SECTION QUESTION
34 com. IN A
35 SECTION AUTHORITY
36 com. IN NS a.gtld-servers.net.
37 SECTION ADDITIONAL
38 a.gtld-servers.net. IN A 192.5.6.30
39 ENTRY_END
40 RANGE_END
41
42 ; a.gtld-servers.net.
43 RANGE_BEGIN 0 100
44 ADDRESS 192.5.6.30
45 ENTRY_BEGIN
46 MATCH opcode qtype qname
47 ADJUST copy_id
48 REPLY QR NOERROR
49 SECTION QUESTION
50 com. IN NS
51 SECTION ANSWER
52 com. IN NS a.gtld-servers.net.
53 SECTION ADDITIONAL
54 a.gtld-servers.net. IN A 192.5.6.30
55 ENTRY_END
56
57 ENTRY_BEGIN
58 MATCH opcode subdomain
59 ADJUST copy_id copy_query
60 REPLY QR NOERROR
61 SECTION QUESTION
62 example.com. IN A
63 SECTION AUTHORITY
64 example.com. IN NS ns.example.com.
65 SECTION ADDITIONAL
66 ns.example.com. IN A 1.2.3.4
67 ENTRY_END
68 RANGE_END
69
70 ; ns.example.com.
71 RANGE_BEGIN 0 100
72 ADDRESS 1.2.3.4
73 ENTRY_BEGIN
74 MATCH opcode qtype qname
75 ADJUST copy_id
76 REPLY QR AA REFUSED
77 SECTION QUESTION
78 ns.example.com. IN A
79 ENTRY_END
80
81 ENTRY_BEGIN
82 MATCH opcode qtype qname
83 ADJUST copy_id
84 REPLY QR AA REFUSED
85 SECTION QUESTION
86 ns.example.com. IN AAAA
87 ENTRY_END
88
89 ENTRY_BEGIN
90 MATCH opcode qtype qname
91 ADJUST copy_id
92 REPLY QR NOERROR
93 SECTION QUESTION
94 example.com. IN NS
95 SECTION ANSWER
96 example.com. IN NS ns.example.com.
97 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
98 SECTION ADDITIONAL
99 ns.example.com. IN A 1.2.3.4
100 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
101 ENTRY_END
102
103 ; response to DNSKEY priming query
104 ENTRY_BEGIN
105 MATCH opcode qtype qname
106 ADJUST copy_id
107 REPLY QR NOERROR
108 SECTION QUESTION
109 example.com. IN DNSKEY
110 SECTION ANSWER
111 example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
112 example.com. 3600 IN RRSIG DNSKEY 3 2 3600 20070926134802 20070829134802 2854 example.com. MCwCFG1yhRNtTEa3Eno2zhVVuy2EJX3wAhQeLyUp6+UXcpC5qGNu9tkrTEgPUg== ;{id = 2854}
113 SECTION AUTHORITY
114 example.com. IN NS ns.example.com.
115 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
116 SECTION ADDITIONAL
117 ns.example.com. IN A 1.2.3.4
118 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
119 ENTRY_END
120
121 ENTRY_BEGIN
122 MATCH opcode qtype qname
123 ADJUST copy_id
124 REPLY QR NOERROR
125 SECTION QUESTION
126 www.example.com. IN A
127 SECTION AUTHORITY
128 example.com. IN SOA ns.example.com. hostmaster.example.com. 2007090400 28800 7200 604800 18000
129 example.com. 3600 IN RRSIG SOA 3 2 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCM6lsu9byZIQ1yYjJmyYfFWM2RWAIUcR5t84r2La824oWCkLjmHXRQlco= ;{id = 2854}
130
131 ; NODATA response. H(www.example.com.) = s1unhcti19bkdr98fegs0v46mbu3t4m3
132 s1unhcti19bkdr98fegs0v46mbu3t4m3.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd s1unhcti19bkdr98fegs0v46mbu3t4m4 MX RRSIG
133 s1unhcti19bkdr98fegs0v46mbu3t4m3.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. MCwCFE/a24nsY2luhQmZjY/ObAIgNSMkAhQWd4MUOUVK55bD6AbMHWrDA0yvEA== ;{id = 2854}
134
135 ENTRY_END
136
137 ENTRY_BEGIN
138 MATCH opcode qtype qname
139 ADJUST copy_id
140 REPLY QR NOERROR
141 SECTION QUESTION
142 ent.example.com. IN DS
143 SECTION AUTHORITY
144 ; example.com. -> b6fuorg741ufili49mg9j4328ig53sqg.
145 ; OPTOUT
146 b6fuorg741ufili49mg9j4328ig53sqg.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd b6fuorg741ufili49mg9j4328ig54sqg NS SOA DNSKEY RRSIG
147 b6fuorg741ufili49mg9j4328ig53sqg.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AHNLlpOM8cBFBBdzUO9nQC/O6mw3rDUrqcdiSwMKAIckd3k5WZvoP78=
148
149 ; ent.example.com. -> 2kekcu37chvrqjb272ptidu9jhk8oqag.
150 ; OPTOUT SPAN around it
151 2kekcu37chvrqjb272ptidu9jhk7oqag.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd 2kekcu37chvrqjb272ptidu9jhk9oqag
152 2kekcu37chvrqjb272ptidu9jhk7oqag.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AFgtC3UEm/Tu4HIjfDHIDmZkvgwHF0kWKcD3wP2hs+/wOfaILtXBr4c=
153 ENTRY_END
154
155 ; refer to server one down
156 ENTRY_BEGIN
157 MATCH opcode subdomain
158 ADJUST copy_id copy_query
159 REPLY QR NOERROR
160 SECTION QUESTION
161 ent.example.com. IN A
162 SECTION AUTHORITY
163 ; example.com. -> b6fuorg741ufili49mg9j4328ig53sqg.
164 ; OPTOUT
165 b6fuorg741ufili49mg9j4328ig53sqg.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd b6fuorg741ufili49mg9j4328ig54sqg NS SOA DNSKEY RRSIG
166 b6fuorg741ufili49mg9j4328ig53sqg.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AHNLlpOM8cBFBBdzUO9nQC/O6mw3rDUrqcdiSwMKAIckd3k5WZvoP78=
167
168 ; ent.example.com. -> 2kekcu37chvrqjb272ptidu9jhk8oqag.
169 ; OPTOUT SPAN around it
170 2kekcu37chvrqjb272ptidu9jhk7oqag.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd 2kekcu37chvrqjb272ptidu9jhk9oqag
171 2kekcu37chvrqjb272ptidu9jhk7oqag.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AFgtC3UEm/Tu4HIjfDHIDmZkvgwHF0kWKcD3wP2hs+/wOfaILtXBr4c=
172 ENTRY_END
173
174 RANGE_END
175
176 STEP 1 QUERY
177 ENTRY_BEGIN
178 REPLY RD DO
179 SECTION QUESTION
180 ent.example.com. IN A
181 ENTRY_END
182
183 ; recursion happens here.
184 STEP 10 CHECK_ANSWER
185 ENTRY_BEGIN
186 MATCH all
187 REPLY QR RD RA DO NOERROR
188 SECTION QUESTION
189 ent.example.com. IN A
190 SECTION ANSWER
191 SECTION AUTHORITY
192 b6fuorg741ufili49mg9j4328ig53sqg.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd b6fuorg741ufili49mg9j4328ig54sqg NS SOA DNSKEY RRSIG
193 b6fuorg741ufili49mg9j4328ig53sqg.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AHNLlpOM8cBFBBdzUO9nQC/O6mw3rDUrqcdiSwMKAIckd3k5WZvoP78=
194 2kekcu37chvrqjb272ptidu9jhk7oqag.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd 2kekcu37chvrqjb272ptidu9jhk9oqag
195 2kekcu37chvrqjb272ptidu9jhk7oqag.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AFgtC3UEm/Tu4HIjfDHIDmZkvgwHF0kWKcD3wP2hs+/wOfaILtXBr4c=
196 SECTION ADDITIONAL
197 ENTRY_END
198
199 SCENARIO_END
0 ; config options
1 ; The island of trust is at example.com
2 server:
3 trust-anchor: "example.com. 3600 IN DS 2854 3 1 46e4ffc6e9a4793b488954bd3f0cc6af0dfb201b"
4 val-override-date: "20070916134226"
5 target-fetch-policy: "0 0 0 0 0"
6
7 stub-zone:
8 name: "."
9 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
10 CONFIG_END
11
12 SCENARIO_BEGIN Test validator with NSEC3 response for NODATA ENT with optout.
13
14 ; K.ROOT-SERVERS.NET.
15 RANGE_BEGIN 0 100
16 ADDRESS 193.0.14.129
17 ENTRY_BEGIN
18 MATCH opcode qtype qname
19 ADJUST copy_id
20 REPLY QR NOERROR
21 SECTION QUESTION
22 . IN NS
23 SECTION ANSWER
24 . IN NS K.ROOT-SERVERS.NET.
25 SECTION ADDITIONAL
26 K.ROOT-SERVERS.NET. IN A 193.0.14.129
27 ENTRY_END
28
29 ENTRY_BEGIN
30 MATCH opcode subdomain
31 ADJUST copy_id copy_query
32 REPLY QR NOERROR
33 SECTION QUESTION
34 com. IN A
35 SECTION AUTHORITY
36 com. IN NS a.gtld-servers.net.
37 SECTION ADDITIONAL
38 a.gtld-servers.net. IN A 192.5.6.30
39 ENTRY_END
40 RANGE_END
41
42 ; a.gtld-servers.net.
43 RANGE_BEGIN 0 100
44 ADDRESS 192.5.6.30
45 ENTRY_BEGIN
46 MATCH opcode qtype qname
47 ADJUST copy_id
48 REPLY QR NOERROR
49 SECTION QUESTION
50 com. IN NS
51 SECTION ANSWER
52 com. IN NS a.gtld-servers.net.
53 SECTION ADDITIONAL
54 a.gtld-servers.net. IN A 192.5.6.30
55 ENTRY_END
56
57 ENTRY_BEGIN
58 MATCH opcode subdomain
59 ADJUST copy_id copy_query
60 REPLY QR NOERROR
61 SECTION QUESTION
62 example.com. IN A
63 SECTION AUTHORITY
64 example.com. IN NS ns.example.com.
65 SECTION ADDITIONAL
66 ns.example.com. IN A 1.2.3.4
67 ENTRY_END
68 RANGE_END
69
70 ; ns.example.com.
71 RANGE_BEGIN 0 100
72 ADDRESS 1.2.3.4
73 ENTRY_BEGIN
74 MATCH opcode qtype qname
75 ADJUST copy_id
76 REPLY QR AA REFUSED
77 SECTION QUESTION
78 ns.example.com. IN A
79 ENTRY_END
80
81 ENTRY_BEGIN
82 MATCH opcode qtype qname
83 ADJUST copy_id
84 REPLY QR AA REFUSED
85 SECTION QUESTION
86 ns.example.com. IN AAAA
87 ENTRY_END
88
89 ENTRY_BEGIN
90 MATCH opcode qtype qname
91 ADJUST copy_id
92 REPLY QR NOERROR
93 SECTION QUESTION
94 example.com. IN NS
95 SECTION ANSWER
96 example.com. IN NS ns.example.com.
97 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
98 SECTION ADDITIONAL
99 ns.example.com. IN A 1.2.3.4
100 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
101 ENTRY_END
102
103 ; response to DNSKEY priming query
104 ENTRY_BEGIN
105 MATCH opcode qtype qname
106 ADJUST copy_id
107 REPLY QR NOERROR
108 SECTION QUESTION
109 example.com. IN DNSKEY
110 SECTION ANSWER
111 example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
112 example.com. 3600 IN RRSIG DNSKEY 3 2 3600 20070926134802 20070829134802 2854 example.com. MCwCFG1yhRNtTEa3Eno2zhVVuy2EJX3wAhQeLyUp6+UXcpC5qGNu9tkrTEgPUg== ;{id = 2854}
113 SECTION AUTHORITY
114 example.com. IN NS ns.example.com.
115 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
116 SECTION ADDITIONAL
117 ns.example.com. IN A 1.2.3.4
118 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
119 ENTRY_END
120
121 ENTRY_BEGIN
122 MATCH opcode qtype qname
123 ADJUST copy_id
124 REPLY QR NOERROR
125 SECTION QUESTION
126 www.example.com. IN A
127 SECTION AUTHORITY
128 example.com. IN SOA ns.example.com. hostmaster.example.com. 2007090400 28800 7200 604800 18000
129 example.com. 3600 IN RRSIG SOA 3 2 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCM6lsu9byZIQ1yYjJmyYfFWM2RWAIUcR5t84r2La824oWCkLjmHXRQlco= ;{id = 2854}
130
131 ; NODATA response. H(www.example.com.) = s1unhcti19bkdr98fegs0v46mbu3t4m3
132 s1unhcti19bkdr98fegs0v46mbu3t4m3.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd s1unhcti19bkdr98fegs0v46mbu3t4m4 MX RRSIG
133 s1unhcti19bkdr98fegs0v46mbu3t4m3.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. MCwCFE/a24nsY2luhQmZjY/ObAIgNSMkAhQWd4MUOUVK55bD6AbMHWrDA0yvEA== ;{id = 2854}
134
135 ENTRY_END
136
137 ENTRY_BEGIN
138 MATCH opcode qtype qname
139 ADJUST copy_id
140 REPLY QR NOERROR
141 SECTION QUESTION
142 ent.example.com. IN DS
143 SECTION AUTHORITY
144 ; example.com. -> b6fuorg741ufili49mg9j4328ig53sqg.
145 ; OPTOUT
146 b6fuorg741ufili49mg9j4328ig53sqg.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd b6fuorg741ufili49mg9j4328ig54sqg NS SOA DNSKEY RRSIG
147 b6fuorg741ufili49mg9j4328ig53sqg.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AHNLlpOM8cBFBBdzUO9nQC/O6mw3rDUrqcdiSwMKAIckd3k5WZvoP78=
148
149 ; ent.example.com. -> 2kekcu37chvrqjb272ptidu9jhk8oqag.
150 ; the span does not have OPTOUT
151 2kekcu37chvrqjb272ptidu9jhk7oqag.example.com. IN NSEC3 1 0 123 aabb00123456bbccdd 2kekcu37chvrqjb272ptidu9jhk9oqag
152 2kekcu37chvrqjb272ptidu9jhk7oqag.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AAaGjBrmbElksOWsOAU0vdNwbRKsbsQgOwhFkONaynSk9M+2QpJQ6+k=
153 ENTRY_END
154
155 ; refer to server one down
156 ENTRY_BEGIN
157 MATCH opcode subdomain
158 ADJUST copy_id copy_query
159 REPLY QR NOERROR
160 SECTION QUESTION
161 ent.example.com. IN A
162 SECTION AUTHORITY
163 ; example.com. -> b6fuorg741ufili49mg9j4328ig53sqg.
164 ; OPTOUT
165 b6fuorg741ufili49mg9j4328ig53sqg.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd b6fuorg741ufili49mg9j4328ig54sqg NS SOA DNSKEY RRSIG
166 b6fuorg741ufili49mg9j4328ig53sqg.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AHNLlpOM8cBFBBdzUO9nQC/O6mw3rDUrqcdiSwMKAIckd3k5WZvoP78=
167
168 ; ent.example.com. -> 2kekcu37chvrqjb272ptidu9jhk8oqag.
169 ; the span does not have OPTOUT
170 2kekcu37chvrqjb272ptidu9jhk7oqag.example.com. IN NSEC3 1 0 123 aabb00123456bbccdd 2kekcu37chvrqjb272ptidu9jhk9oqag
171 2kekcu37chvrqjb272ptidu9jhk7oqag.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AAaGjBrmbElksOWsOAU0vdNwbRKsbsQgOwhFkONaynSk9M+2QpJQ6+k=
172 ENTRY_END
173
174 RANGE_END
175
176 STEP 1 QUERY
177 ENTRY_BEGIN
178 REPLY RD DO
179 SECTION QUESTION
180 ent.example.com. IN A
181 ENTRY_END
182
183 ; recursion happens here.
184 STEP 10 CHECK_ANSWER
185 ENTRY_BEGIN
186 MATCH all
187 REPLY QR RD RA DO SERVFAIL
188 SECTION QUESTION
189 ent.example.com. IN A
190 SECTION ANSWER
191 SECTION AUTHORITY
192 SECTION ADDITIONAL
193 ENTRY_END
194
195 SCENARIO_END
0 ; config options
1 ; The island of trust is at example.com
2 server:
3 trust-anchor: "example.com. 3600 IN DS 2854 3 1 46e4ffc6e9a4793b488954bd3f0cc6af0dfb201b"
4 val-override-date: "20070916134226"
5 target-fetch-policy: "0 0 0 0 0"
6
7 stub-zone:
8 name: "."
9 stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
10 CONFIG_END
11
12 SCENARIO_BEGIN Test validator NODATA ENT with nsec3 optout matches the ent.
13
14 ; K.ROOT-SERVERS.NET.
15 RANGE_BEGIN 0 100
16 ADDRESS 193.0.14.129
17 ENTRY_BEGIN
18 MATCH opcode qtype qname
19 ADJUST copy_id
20 REPLY QR NOERROR
21 SECTION QUESTION
22 . IN NS
23 SECTION ANSWER
24 . IN NS K.ROOT-SERVERS.NET.
25 SECTION ADDITIONAL
26 K.ROOT-SERVERS.NET. IN A 193.0.14.129
27 ENTRY_END
28
29 ENTRY_BEGIN
30 MATCH opcode subdomain
31 ADJUST copy_id copy_query
32 REPLY QR NOERROR
33 SECTION QUESTION
34 com. IN A
35 SECTION AUTHORITY
36 com. IN NS a.gtld-servers.net.
37 SECTION ADDITIONAL
38 a.gtld-servers.net. IN A 192.5.6.30
39 ENTRY_END
40 RANGE_END
41
42 ; a.gtld-servers.net.
43 RANGE_BEGIN 0 100
44 ADDRESS 192.5.6.30
45 ENTRY_BEGIN
46 MATCH opcode qtype qname
47 ADJUST copy_id
48 REPLY QR NOERROR
49 SECTION QUESTION
50 com. IN NS
51 SECTION ANSWER
52 com. IN NS a.gtld-servers.net.
53 SECTION ADDITIONAL
54 a.gtld-servers.net. IN A 192.5.6.30
55 ENTRY_END
56
57 ENTRY_BEGIN
58 MATCH opcode subdomain
59 ADJUST copy_id copy_query
60 REPLY QR NOERROR
61 SECTION QUESTION
62 example.com. IN A
63 SECTION AUTHORITY
64 example.com. IN NS ns.example.com.
65 SECTION ADDITIONAL
66 ns.example.com. IN A 1.2.3.4
67 ENTRY_END
68 RANGE_END
69
70 ; ns.example.com.
71 RANGE_BEGIN 0 100
72 ADDRESS 1.2.3.4
73 ENTRY_BEGIN
74 MATCH opcode qtype qname
75 ADJUST copy_id
76 REPLY QR AA REFUSED
77 SECTION QUESTION
78 ns.example.com. IN A
79 ENTRY_END
80
81 ENTRY_BEGIN
82 MATCH opcode qtype qname
83 ADJUST copy_id
84 REPLY QR AA REFUSED
85 SECTION QUESTION
86 ns.example.com. IN AAAA
87 ENTRY_END
88
89 ENTRY_BEGIN
90 MATCH opcode qtype qname
91 ADJUST copy_id
92 REPLY QR NOERROR
93 SECTION QUESTION
94 example.com. IN NS
95 SECTION ANSWER
96 example.com. IN NS ns.example.com.
97 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
98 SECTION ADDITIONAL
99 ns.example.com. IN A 1.2.3.4
100 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
101 ENTRY_END
102
103 ; response to DNSKEY priming query
104 ENTRY_BEGIN
105 MATCH opcode qtype qname
106 ADJUST copy_id
107 REPLY QR NOERROR
108 SECTION QUESTION
109 example.com. IN DNSKEY
110 SECTION ANSWER
111 example.com. 3600 IN DNSKEY 256 3 3 ALXLUsWqUrY3JYER3T4TBJII s70j+sDS/UT2QRp61SE7S3E EXopNXoFE73JLRmvpi/UrOO/Vz4Se 6wXv/CYCKjGw06U4WRgR YXcpEhJROyNapmdIKSx hOzfLVE1gqA0PweZR8d tY3aNQSRn3sPpwJr6Mi /PqQKAMMrZ9ckJpf1+b QMOOvxgzz2U1GS18b3y ZKcgTMEaJzd/GZYzi/B N2DzQ0MsrSwYXfsNLFO Bbs8PJMW4LYIxeeOe6rUgkWOF 7CC9Dh/dduQ1QrsJhmZAEFfd6ByYV+ ;{id = 2854 (zsk), size = 1688b}
112 example.com. 3600 IN RRSIG DNSKEY 3 2 3600 20070926134802 20070829134802 2854 example.com. MCwCFG1yhRNtTEa3Eno2zhVVuy2EJX3wAhQeLyUp6+UXcpC5qGNu9tkrTEgPUg== ;{id = 2854}
113 SECTION AUTHORITY
114 example.com. IN NS ns.example.com.
115 example.com. 3600 IN RRSIG NS 3 2 3600 20070926134150 20070829134150 2854 example.com. MC0CFQCN+qHdJxoI/2tNKwsb08pra/G7aAIUAWA5sDdJTbrXA1/3OaesGBAO3sI= ;{id = 2854}
116 SECTION ADDITIONAL
117 ns.example.com. IN A 1.2.3.4
118 ns.example.com. 3600 IN RRSIG A 3 3 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCMSWxVehgOQLoYclB9PIAbNP229AIUeH0vNNGJhjnZiqgIOKvs1EhzqAo= ;{id = 2854}
119 ENTRY_END
120
121 ENTRY_BEGIN
122 MATCH opcode qtype qname
123 ADJUST copy_id
124 REPLY QR NOERROR
125 SECTION QUESTION
126 www.example.com. IN A
127 SECTION AUTHORITY
128 example.com. IN SOA ns.example.com. hostmaster.example.com. 2007090400 28800 7200 604800 18000
129 example.com. 3600 IN RRSIG SOA 3 2 3600 20070926135752 20070829135752 2854 example.com. MC0CFQCM6lsu9byZIQ1yYjJmyYfFWM2RWAIUcR5t84r2La824oWCkLjmHXRQlco= ;{id = 2854}
130
131 ; NODATA response. H(www.example.com.) = s1unhcti19bkdr98fegs0v46mbu3t4m3
132 s1unhcti19bkdr98fegs0v46mbu3t4m3.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd s1unhcti19bkdr98fegs0v46mbu3t4m4 MX RRSIG
133 s1unhcti19bkdr98fegs0v46mbu3t4m3.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. MCwCFE/a24nsY2luhQmZjY/ObAIgNSMkAhQWd4MUOUVK55bD6AbMHWrDA0yvEA== ;{id = 2854}
134
135 ENTRY_END
136
137 ENTRY_BEGIN
138 MATCH opcode qtype qname
139 ADJUST copy_id
140 REPLY QR NOERROR
141 SECTION QUESTION
142 ent.example.com. IN DS
143 SECTION AUTHORITY
144 ; example.com. -> b6fuorg741ufili49mg9j4328ig53sqg.
145 ; OPTOUT
146 b6fuorg741ufili49mg9j4328ig53sqg.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd b6fuorg741ufili49mg9j4328ig54sqg NS SOA DNSKEY RRSIG
147 b6fuorg741ufili49mg9j4328ig53sqg.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AHNLlpOM8cBFBBdzUO9nQC/O6mw3rDUrqcdiSwMKAIckd3k5WZvoP78=
148
149 ; ent.example.com. -> 2kekcu37chvrqjb272ptidu9jhk8oqag.
150 ; OPTOUT
151 2kekcu37chvrqjb272ptidu9jhk8oqag.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd 2kekcu37chvrqjb272ptidu9jhk9oqag
152 2kekcu37chvrqjb272ptidu9jhk8oqag.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AJl6kanB5RTIcTJysEzDUNqQAr0ftIqzGzQw2+v8RLEbn3Yhi1bEfOQ=
153 ENTRY_END
154
155 ; refer to server one down
156 ENTRY_BEGIN
157 MATCH opcode subdomain
158 ADJUST copy_id copy_query
159 REPLY QR NOERROR
160 SECTION QUESTION
161 ent.example.com. IN A
162 SECTION AUTHORITY
163 ; example.com. -> b6fuorg741ufili49mg9j4328ig53sqg.
164 ; OPTOUT
165 b6fuorg741ufili49mg9j4328ig53sqg.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd b6fuorg741ufili49mg9j4328ig54sqg NS SOA DNSKEY RRSIG
166 b6fuorg741ufili49mg9j4328ig53sqg.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AHNLlpOM8cBFBBdzUO9nQC/O6mw3rDUrqcdiSwMKAIckd3k5WZvoP78=
167
168 ; ent.example.com. -> 2kekcu37chvrqjb272ptidu9jhk8oqag.
169 ; OPTOUT
170 2kekcu37chvrqjb272ptidu9jhk8oqag.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd 2kekcu37chvrqjb272ptidu9jhk9oqag
171 2kekcu37chvrqjb272ptidu9jhk8oqag.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AJl6kanB5RTIcTJysEzDUNqQAr0ftIqzGzQw2+v8RLEbn3Yhi1bEfOQ=
172 ENTRY_END
173
174 RANGE_END
175
176 STEP 1 QUERY
177 ENTRY_BEGIN
178 REPLY RD DO
179 SECTION QUESTION
180 ent.example.com. IN A
181 ENTRY_END
182
183 ; recursion happens here.
184 STEP 10 CHECK_ANSWER
185 ENTRY_BEGIN
186 MATCH all
187 REPLY QR RD RA AD DO NOERROR
188 SECTION QUESTION
189 ent.example.com. IN A
190 SECTION ANSWER
191 SECTION AUTHORITY
192 b6fuorg741ufili49mg9j4328ig53sqg.example.com. 3600 IN NSEC3 1 1 123 aabb00123456bbccdd b6fuorg741ufili49mg9j4328ig54sqg NS SOA RRSIG DNSKEY
193 b6fuorg741ufili49mg9j4328ig53sqg.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AHNLlpOM8cBFBBdzUO9nQC/O6mw3rDUrqcdiSwMKAIckd3k5WZvoP78=
194 2kekcu37chvrqjb272ptidu9jhk8oqag.example.com. 3600 IN NSEC3 1 1 123 aabb00123456bbccdd 2kekcu37chvrqjb272ptidu9jhk9oqag
195 2kekcu37chvrqjb272ptidu9jhk8oqag.example.com. 3600 IN RRSIG NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AJl6kanB5RTIcTJysEzDUNqQAr0ftIqzGzQw2+v8RLEbn3Yhi1bEfOQ=
196 SECTION ADDITIONAL
197 ENTRY_END
198
199 SCENARIO_END
99 #define FLEX_SCANNER
1010 #define YY_FLEX_MAJOR_VERSION 2
1111 #define YY_FLEX_MINOR_VERSION 5
12 #define YY_FLEX_SUBMINOR_VERSION 35
12 #define YY_FLEX_SUBMINOR_VERSION 36
1313 #if YY_FLEX_SUBMINOR_VERSION > 0
1414 #define FLEX_BETA
1515 #endif
5454 typedef unsigned char flex_uint8_t;
5555 typedef unsigned short int flex_uint16_t;
5656 typedef unsigned int flex_uint32_t;
57 #endif /* ! C99 */
5857
5958 /* Limits of integral types. */
6059 #ifndef INT8_MIN
8483 #ifndef UINT32_MAX
8584 #define UINT32_MAX (4294967295U)
8685 #endif
86
87 #endif /* ! C99 */
8788
8889 #endif /* ! FLEXINT_H */
8990
153154 typedef struct yy_buffer_state *YY_BUFFER_STATE;
154155 #endif
155156
156 extern int yyleng;
157 #ifndef YY_TYPEDEF_YY_SIZE_T
158 #define YY_TYPEDEF_YY_SIZE_T
159 typedef size_t yy_size_t;
160 #endif
161
162 extern yy_size_t yyleng;
157163
158164 extern FILE *yyin, *yyout;
159165
179185
180186 #define unput(c) yyunput( c, (yytext_ptr) )
181187
182 #ifndef YY_TYPEDEF_YY_SIZE_T
183 #define YY_TYPEDEF_YY_SIZE_T
184 typedef size_t yy_size_t;
185 #endif
186
187188 #ifndef YY_STRUCT_YY_BUFFER_STATE
188189 #define YY_STRUCT_YY_BUFFER_STATE
189190 struct yy_buffer_state
201202 /* Number of characters read into yy_ch_buf, not including EOB
202203 * characters.
203204 */
204 int yy_n_chars;
205 yy_size_t yy_n_chars;
205206
206207 /* Whether we "own" the buffer - i.e., we know we created it,
207208 * and can realloc() it to grow it, and should free() it to
271272
272273 /* yy_hold_char holds the character lost when yytext is formed. */
273274 static char yy_hold_char;
274 static int yy_n_chars; /* number of characters read into yy_ch_buf */
275 int yyleng;
275 static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
276 yy_size_t yyleng;
276277
277278 /* Points to current character in buffer. */
278279 static char *yy_c_buf_p = (char *) 0;
300301
301302 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
302303 YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
303 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
304 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len );
304305
305306 void *yyalloc (yy_size_t );
306307 void *yyrealloc (void *,yy_size_t );
19161917 #define YY_NO_INPUT 1
19171918 #endif
19181919
1919 #line 1919 "<stdout>"
1920 #line 1920 "<stdout>"
19201921
19211922 #define INITIAL 0
19221923 #define quotedstring 1
19601961
19611962 void yyset_out (FILE * out_str );
19621963
1963 int yyget_leng (void );
1964 yy_size_t yyget_leng (void );
19641965
19651966 char *yyget_text (void );
19661967
20192020 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
20202021 { \
20212022 int c = '*'; \
2022 unsigned n; \
2023 size_t n; \
20232024 for ( n = 0; n < max_size && \
20242025 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
20252026 buf[n] = (char) c; \
21032104
21042105 #line 168 "util/configlexer.lex"
21052106
2106 #line 2106 "<stdout>"
2107 #line 2107 "<stdout>"
21072108
21082109 if ( !(yy_init) )
21092110 {
29942995 #line 388 "util/configlexer.lex"
29952996 ECHO;
29962997 YY_BREAK
2997 #line 2997 "<stdout>"
2998 #line 2998 "<stdout>"
29982999
29993000 case YY_END_OF_BUFFER:
30003001 {
31783179
31793180 else
31803181 {
3181 int num_to_read =
3182 yy_size_t num_to_read =
31823183 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
31833184
31843185 while ( num_to_read <= 0 )
31853186 { /* Not enough room in the buffer - grow it. */
31863187
31873188 /* just a shorter name for the current buffer */
3188 YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
3189 YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
31893190
31903191 int yy_c_buf_p_offset =
31913192 (int) ((yy_c_buf_p) - b->yy_ch_buf);
31923193
31933194 if ( b->yy_is_our_buffer )
31943195 {
3195 int new_size = b->yy_buf_size * 2;
3196 yy_size_t new_size = b->yy_buf_size * 2;
31963197
31973198 if ( new_size <= 0 )
31983199 b->yy_buf_size += b->yy_buf_size / 8;
32233224
32243225 /* Read in more data. */
32253226 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
3226 (yy_n_chars), (size_t) num_to_read );
3227 (yy_n_chars), num_to_read );
32273228
32283229 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
32293230 }
33183319 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
33193320 yy_is_jam = (yy_current_state == 1342);
33203321
3321 return yy_is_jam ? 0 : yy_current_state;
3322 return yy_is_jam ? 0 : yy_current_state;
33223323 }
33233324
33243325 #ifndef YY_NO_INPUT
33453346
33463347 else
33473348 { /* need more input */
3348 int offset = (yy_c_buf_p) - (yytext_ptr);
3349 yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
33493350 ++(yy_c_buf_p);
33503351
33513352 switch ( yy_get_next_buffer( ) )
35053506 yyfree((void *) b );
35063507 }
35073508
3508 #ifndef __cplusplus
3509 extern int isatty (int );
3510 #endif /* __cplusplus */
3511
35123509 /* Initializes or reinitializes a buffer.
35133510 * This function is sometimes called more than once on the same buffer,
35143511 * such as during a yyrestart() or at EOF.
36213618 */
36223619 static void yyensure_buffer_stack (void)
36233620 {
3624 int num_to_alloc;
3621 yy_size_t num_to_alloc;
36253622
36263623 if (!(yy_buffer_stack)) {
36273624
37133710
37143711 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
37153712 * scan from a @e copy of @a bytes.
3716 * @param bytes the byte buffer to scan
3717 * @param len the number of bytes in the buffer pointed to by @a bytes.
3713 * @param yybytes the byte buffer to scan
3714 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
37183715 *
37193716 * @return the newly allocated buffer state object.
37203717 */
3721 YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
3718 YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
37223719 {
37233720 YY_BUFFER_STATE b;
37243721 char *buf;
38053802 /** Get the length of the current token.
38063803 *
38073804 */
3808 int yyget_leng (void)
3805 yy_size_t yyget_leng (void)
38093806 {
38103807 return yyleng;
38113808 }
0 /* A Bison parser, made by GNU Bison 2.5. */
0 /* A Bison parser, made by GNU Bison 2.6.1. */
11
22 /* Bison implementation for Yacc-like parsers in C
33
4 Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
4 Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
55
66 This program is free software: you can redistribute it and/or modify
77 it under the terms of the GNU General Public License as published by
4343 #define YYBISON 1
4444
4545 /* Bison version. */
46 #define YYBISON_VERSION "2.5"
46 #define YYBISON_VERSION "2.6.1"
4747
4848 /* Skeleton name. */
4949 #define YYSKELETON_NAME "yacc.c"
5757 /* Pull parsers. */
5858 #define YYPULL 1
5959
60 /* Using locations. */
61 #define YYLSP_NEEDED 0
6260
6361
6462
6563 /* Copy the first part of user declarations. */
66
67 /* Line 268 of yacc.c */
64 /* Line 336 of yacc.c */
6865 #line 38 "util/configparser.y"
6966
7067 #include "config.h"
9289 #endif
9390
9491
95
96 /* Line 268 of yacc.c */
97 #line 99 "util/configparser.c"
98
99 /* Enabling traces. */
100 #ifndef YYDEBUG
101 # define YYDEBUG 0
102 #endif
92 /* Line 336 of yacc.c */
93 #line 95 "util/configparser.c"
94
95 # ifndef YY_NULL
96 # if defined __cplusplus && 201103L <= __cplusplus
97 # define YY_NULL nullptr
98 # else
99 # define YY_NULL 0
100 # endif
101 # endif
103102
104103 /* Enabling verbose error messages. */
105104 #ifdef YYERROR_VERBOSE
109108 # define YYERROR_VERBOSE 0
110109 #endif
111110
112 /* Enabling the token table. */
113 #ifndef YYTOKEN_TABLE
114 # define YYTOKEN_TABLE 0
115 #endif
116
111 /* In a future release of Bison, this section will be replaced
112 by #include "configparser.h". */
113 #ifndef YY_UTIL_CONFIGPARSER_H
114 # define YY_UTIL_CONFIGPARSER_H
115 /* Enabling traces. */
116 #ifndef YYDEBUG
117 # define YYDEBUG 0
118 #endif
119 #if YYDEBUG
120 extern int yydebug;
121 #endif
117122
118123 /* Tokens. */
119124 #ifndef YYTOKENTYPE
381386
382387
383388
384
385389 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
386390 typedef union YYSTYPE
387391 {
388
389 /* Line 293 of yacc.c */
392 /* Line 350 of yacc.c */
390393 #line 64 "util/configparser.y"
391394
392395 char* str;
393396
394397
395
396 /* Line 293 of yacc.c */
397 #line 399 "util/configparser.c"
398 /* Line 350 of yacc.c */
399 #line 401 "util/configparser.c"
398400 } YYSTYPE;
399401 # define YYSTYPE_IS_TRIVIAL 1
400402 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
401403 # define YYSTYPE_IS_DECLARED 1
402404 #endif
403405
406 extern YYSTYPE yylval;
407
408 #ifdef YYPARSE_PARAM
409 #if defined __STDC__ || defined __cplusplus
410 int yyparse (void *YYPARSE_PARAM);
411 #else
412 int yyparse ();
413 #endif
414 #else /* ! YYPARSE_PARAM */
415 #if defined __STDC__ || defined __cplusplus
416 int yyparse (void);
417 #else
418 int yyparse ();
419 #endif
420 #endif /* ! YYPARSE_PARAM */
421
422 #endif /* !YY_UTIL_CONFIGPARSER_H */
404423
405424 /* Copy the second part of user declarations. */
406425
407
408 /* Line 343 of yacc.c */
409 #line 411 "util/configparser.c"
426 /* Line 353 of yacc.c */
427 #line 429 "util/configparser.c"
410428
411429 #ifdef short
412430 # undef short
512530 # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
513531 || defined __cplusplus || defined _MSC_VER)
514532 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
533 /* Use EXIT_SUCCESS as a witness for stdlib.h. */
515534 # ifndef EXIT_SUCCESS
516535 # define EXIT_SUCCESS 0
517536 # endif
603622 #endif
604623
605624 #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
606 /* Copy COUNT objects from FROM to TO. The source and destination do
625 /* Copy COUNT objects from SRC to DST. The source and destination do
607626 not overlap. */
608627 # ifndef YYCOPY
609628 # if defined __GNUC__ && 1 < __GNUC__
610 # define YYCOPY(To, From, Count) \
611 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
629 # define YYCOPY(Dst, Src, Count) \
630 __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
612631 # else
613 # define YYCOPY(To, From, Count) \
614 do \
615 { \
616 YYSIZE_T yyi; \
617 for (yyi = 0; yyi < (Count); yyi++) \
618 (To)[yyi] = (From)[yyi]; \
619 } \
632 # define YYCOPY(Dst, Src, Count) \
633 do \
634 { \
635 YYSIZE_T yyi; \
636 for (yyi = 0; yyi < (Count); yyi++) \
637 (Dst)[yyi] = (Src)[yyi]; \
638 } \
620639 while (YYID (0))
621640 # endif
622641 # endif
820839 };
821840 #endif
822841
823 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
842 #if YYDEBUG || YYERROR_VERBOSE || 0
824843 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
825844 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
826845 static const char *const yytname[] =
916935 "rc_control_enable", "rc_control_port", "rc_control_interface",
917936 "rc_server_key_file", "rc_server_cert_file", "rc_control_key_file",
918937 "rc_control_cert_file", "pythonstart", "contents_py", "content_py",
919 "py_script", 0
938 "py_script", YY_NULL
920939 };
921940 #endif
922941
12681287
12691288 #define YYRECOVERING() (!!yyerrstatus)
12701289
1271 #define YYBACKUP(Token, Value) \
1272 do \
1273 if (yychar == YYEMPTY && yylen == 1) \
1274 { \
1275 yychar = (Token); \
1276 yylval = (Value); \
1277 YYPOPSTACK (1); \
1278 goto yybackup; \
1279 } \
1280 else \
1281 { \
1290 #define YYBACKUP(Token, Value) \
1291 do \
1292 if (yychar == YYEMPTY) \
1293 { \
1294 yychar = (Token); \
1295 yylval = (Value); \
1296 YYPOPSTACK (yylen); \
1297 yystate = *yyssp; \
1298 goto yybackup; \
1299 } \
1300 else \
1301 { \
12821302 yyerror (YY_("syntax error: cannot back up")); \
12831303 YYERROR; \
12841304 } \
12881308 #define YYTERROR 1
12891309 #define YYERRCODE 256
12901310
1291
12921311 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
12931312 If N is 0, then set CURRENT to the empty location which ends
12941313 the previous symbol: RHS[0] (always defined). */
12951314
1315 #ifndef YYLLOC_DEFAULT
1316 # define YYLLOC_DEFAULT(Current, Rhs, N) \
1317 do \
1318 if (YYID (N)) \
1319 { \
1320 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
1321 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
1322 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
1323 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
1324 } \
1325 else \
1326 { \
1327 (Current).first_line = (Current).last_line = \
1328 YYRHSLOC (Rhs, 0).last_line; \
1329 (Current).first_column = (Current).last_column = \
1330 YYRHSLOC (Rhs, 0).last_column; \
1331 } \
1332 while (YYID (0))
1333 #endif
1334
12961335 #define YYRHSLOC(Rhs, K) ((Rhs)[K])
1297 #ifndef YYLLOC_DEFAULT
1298 # define YYLLOC_DEFAULT(Current, Rhs, N) \
1299 do \
1300 if (YYID (N)) \
1301 { \
1302 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
1303 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
1304 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
1305 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
1306 } \
1307 else \
1308 { \
1309 (Current).first_line = (Current).last_line = \
1310 YYRHSLOC (Rhs, 0).last_line; \
1311 (Current).first_column = (Current).last_column = \
1312 YYRHSLOC (Rhs, 0).last_column; \
1313 } \
1314 while (YYID (0))
1315 #endif
1336
13161337
13171338
13181339 /* This macro is provided for backward compatibility. */
13731394 YYSTYPE const * const yyvaluep;
13741395 #endif
13751396 {
1397 FILE *yyo = yyoutput;
1398 YYUSE (yyo);
13761399 if (!yyvaluep)
13771400 return;
13781401 # ifdef YYPRINT
16241647 yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
16251648 yytype_int16 *yyssp, int yytoken)
16261649 {
1627 YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]);
1650 YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]);
16281651 YYSIZE_T yysize = yysize0;
16291652 YYSIZE_T yysize1;
16301653 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
16311654 /* Internationalized format string. */
1632 const char *yyformat = 0;
1655 const char *yyformat = YY_NULL;
16331656 /* Arguments of yyformat. */
16341657 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
16351658 /* Number of reported tokens (one for the "unexpected", one per
16891712 break;
16901713 }
16911714 yyarg[yycount++] = yytname[yyx];
1692 yysize1 = yysize + yytnamerr (0, yytname[yyx]);
1715 yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]);
16931716 if (! (yysize <= yysize1
16941717 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
16951718 return 2;
17811804 }
17821805
17831806
1784 /* Prevent warnings from -Wmissing-prototypes. */
1785 #ifdef YYPARSE_PARAM
1786 #if defined __STDC__ || defined __cplusplus
1787 int yyparse (void *YYPARSE_PARAM);
1788 #else
1789 int yyparse ();
1790 #endif
1791 #else /* ! YYPARSE_PARAM */
1792 #if defined __STDC__ || defined __cplusplus
1793 int yyparse (void);
1794 #else
1795 int yyparse ();
1796 #endif
1797 #endif /* ! YYPARSE_PARAM */
17981807
17991808
18001809 /* The lookahead symbol. */
18411850 `yyss': related to states.
18421851 `yyvs': related to semantic values.
18431852
1844 Refer to the stacks thru separate pointers, to allow yyoverflow
1853 Refer to the stacks through separate pointers, to allow yyoverflow
18451854 to reallocate them elsewhere. */
18461855
18471856 /* The state stack. */
18951904 The wasted elements are never initialized. */
18961905 yyssp = yyss;
18971906 yyvsp = yyvs;
1898
18991907 goto yysetstate;
19001908
19011909 /*------------------------------------------------------------.
20732081 switch (yyn)
20742082 {
20752083 case 9:
2076
2077 /* Line 1806 of yacc.c */
2084 /* Line 1787 of yacc.c */
20782085 #line 118 "util/configparser.y"
20792086 {
20802087 OUTYY(("\nP(server:)\n"));
20822089 break;
20832090
20842091 case 110:
2085
2086 /* Line 1806 of yacc.c */
2092 /* Line 1787 of yacc.c */
20872093 #line 167 "util/configparser.y"
20882094 {
20892095 struct config_stub* s;
20982104 break;
20992105
21002106 case 118:
2101
2102 /* Line 1806 of yacc.c */
2107 /* Line 1787 of yacc.c */
21032108 #line 183 "util/configparser.y"
21042109 {
21052110 struct config_stub* s;
21142119 break;
21152120
21162121 case 125:
2117
2118 /* Line 1806 of yacc.c */
2122 /* Line 1787 of yacc.c */
21192123 #line 199 "util/configparser.y"
21202124 {
21212125 OUTYY(("P(server_num_threads:%s)\n", (yyvsp[(2) - (2)].str)));
21272131 break;
21282132
21292133 case 126:
2130
2131 /* Line 1806 of yacc.c */
2134 /* Line 1787 of yacc.c */
21322135 #line 208 "util/configparser.y"
21332136 {
21342137 OUTYY(("P(server_verbosity:%s)\n", (yyvsp[(2) - (2)].str)));
21402143 break;
21412144
21422145 case 127:
2143
2144 /* Line 1806 of yacc.c */
2146 /* Line 1787 of yacc.c */
21452147 #line 217 "util/configparser.y"
21462148 {
21472149 OUTYY(("P(server_statistics_interval:%s)\n", (yyvsp[(2) - (2)].str)));
21552157 break;
21562158
21572159 case 128:
2158
2159 /* Line 1806 of yacc.c */
2160 /* Line 1787 of yacc.c */
21602161 #line 228 "util/configparser.y"
21612162 {
21622163 OUTYY(("P(server_statistics_cumulative:%s)\n", (yyvsp[(2) - (2)].str)));
21682169 break;
21692170
21702171 case 129:
2171
2172 /* Line 1806 of yacc.c */
2172 /* Line 1787 of yacc.c */
21732173 #line 237 "util/configparser.y"
21742174 {
21752175 OUTYY(("P(server_extended_statistics:%s)\n", (yyvsp[(2) - (2)].str)));
21812181 break;
21822182
21832183 case 130:
2184
2185 /* Line 1806 of yacc.c */
2184 /* Line 1787 of yacc.c */
21862185 #line 246 "util/configparser.y"
21872186 {
21882187 OUTYY(("P(server_port:%s)\n", (yyvsp[(2) - (2)].str)));
21942193 break;
21952194
21962195 case 131:
2197
2198 /* Line 1806 of yacc.c */
2196 /* Line 1787 of yacc.c */
21992197 #line 255 "util/configparser.y"
22002198 {
22012199 OUTYY(("P(server_interface:%s)\n", (yyvsp[(2) - (2)].str)));
22112209 break;
22122210
22132211 case 132:
2214
2215 /* Line 1806 of yacc.c */
2212 /* Line 1787 of yacc.c */
22162213 #line 268 "util/configparser.y"
22172214 {
22182215 OUTYY(("P(server_outgoing_interface:%s)\n", (yyvsp[(2) - (2)].str)));
22302227 break;
22312228
22322229 case 133:
2233
2234 /* Line 1806 of yacc.c */
2230 /* Line 1787 of yacc.c */
22352231 #line 283 "util/configparser.y"
22362232 {
22372233 OUTYY(("P(server_outgoing_range:%s)\n", (yyvsp[(2) - (2)].str)));
22432239 break;
22442240
22452241 case 134:
2246
2247 /* Line 1806 of yacc.c */
2242 /* Line 1787 of yacc.c */
22482243 #line 292 "util/configparser.y"
22492244 {
22502245 OUTYY(("P(server_outgoing_port_permit:%s)\n", (yyvsp[(2) - (2)].str)));
22562251 break;
22572252
22582253 case 135:
2259
2260 /* Line 1806 of yacc.c */
2254 /* Line 1787 of yacc.c */
22612255 #line 301 "util/configparser.y"
22622256 {
22632257 OUTYY(("P(server_outgoing_port_avoid:%s)\n", (yyvsp[(2) - (2)].str)));
22692263 break;
22702264
22712265 case 136:
2272
2273 /* Line 1806 of yacc.c */
2266 /* Line 1787 of yacc.c */
22742267 #line 310 "util/configparser.y"
22752268 {
22762269 OUTYY(("P(server_outgoing_num_tcp:%s)\n", (yyvsp[(2) - (2)].str)));
22822275 break;
22832276
22842277 case 137:
2285
2286 /* Line 1806 of yacc.c */
2278 /* Line 1787 of yacc.c */
22872279 #line 319 "util/configparser.y"
22882280 {
22892281 OUTYY(("P(server_incoming_num_tcp:%s)\n", (yyvsp[(2) - (2)].str)));
22952287 break;
22962288
22972289 case 138:
2298
2299 /* Line 1806 of yacc.c */
2290 /* Line 1787 of yacc.c */
23002291 #line 328 "util/configparser.y"
23012292 {
23022293 OUTYY(("P(server_interface_automatic:%s)\n", (yyvsp[(2) - (2)].str)));
23082299 break;
23092300
23102301 case 139:
2311
2312 /* Line 1806 of yacc.c */
2302 /* Line 1787 of yacc.c */
23132303 #line 337 "util/configparser.y"
23142304 {
23152305 OUTYY(("P(server_do_ip4:%s)\n", (yyvsp[(2) - (2)].str)));
23212311 break;
23222312
23232313 case 140:
2324
2325 /* Line 1806 of yacc.c */
2314 /* Line 1787 of yacc.c */
23262315 #line 346 "util/configparser.y"
23272316 {
23282317 OUTYY(("P(server_do_ip6:%s)\n", (yyvsp[(2) - (2)].str)));
23342323 break;
23352324
23362325 case 141:
2337
2338 /* Line 1806 of yacc.c */
2326 /* Line 1787 of yacc.c */
23392327 #line 355 "util/configparser.y"
23402328 {
23412329 OUTYY(("P(server_do_udp:%s)\n", (yyvsp[(2) - (2)].str)));
23472335 break;
23482336
23492337 case 142:
2350
2351 /* Line 1806 of yacc.c */
2338 /* Line 1787 of yacc.c */
23522339 #line 364 "util/configparser.y"
23532340 {
23542341 OUTYY(("P(server_do_tcp:%s)\n", (yyvsp[(2) - (2)].str)));
23602347 break;
23612348
23622349 case 143:
2363
2364 /* Line 1806 of yacc.c */
2350 /* Line 1787 of yacc.c */
23652351 #line 373 "util/configparser.y"
23662352 {
23672353 OUTYY(("P(server_tcp_upstream:%s)\n", (yyvsp[(2) - (2)].str)));
23732359 break;
23742360
23752361 case 144:
2376
2377 /* Line 1806 of yacc.c */
2362 /* Line 1787 of yacc.c */
23782363 #line 382 "util/configparser.y"
23792364 {
23802365 OUTYY(("P(server_ssl_upstream:%s)\n", (yyvsp[(2) - (2)].str)));
23862371 break;
23872372
23882373 case 145:
2389
2390 /* Line 1806 of yacc.c */
2374 /* Line 1787 of yacc.c */
23912375 #line 391 "util/configparser.y"
23922376 {
23932377 OUTYY(("P(server_ssl_service_key:%s)\n", (yyvsp[(2) - (2)].str)));
23972381 break;
23982382
23992383 case 146:
2400
2401 /* Line 1806 of yacc.c */
2384 /* Line 1787 of yacc.c */
24022385 #line 398 "util/configparser.y"
24032386 {
24042387 OUTYY(("P(server_ssl_service_pem:%s)\n", (yyvsp[(2) - (2)].str)));
24082391 break;
24092392
24102393 case 147:
2411
2412 /* Line 1806 of yacc.c */
2394 /* Line 1787 of yacc.c */
24132395 #line 405 "util/configparser.y"
24142396 {
24152397 OUTYY(("P(server_ssl_port:%s)\n", (yyvsp[(2) - (2)].str)));
24212403 break;
24222404
24232405 case 148:
2424
2425 /* Line 1806 of yacc.c */
2406 /* Line 1787 of yacc.c */
24262407 #line 414 "util/configparser.y"
24272408 {
24282409 OUTYY(("P(server_do_daemonize:%s)\n", (yyvsp[(2) - (2)].str)));
24342415 break;
24352416
24362417 case 149:
2437
2438 /* Line 1806 of yacc.c */
2418 /* Line 1787 of yacc.c */
24392419 #line 423 "util/configparser.y"
24402420 {
24412421 OUTYY(("P(server_use_syslog:%s)\n", (yyvsp[(2) - (2)].str)));
24522432 break;
24532433
24542434 case 150:
2455
2456 /* Line 1806 of yacc.c */
2435 /* Line 1787 of yacc.c */
24572436 #line 437 "util/configparser.y"
24582437 {
24592438 OUTYY(("P(server_log_time_ascii:%s)\n", (yyvsp[(2) - (2)].str)));
24652444 break;
24662445
24672446 case 151:
2468
2469 /* Line 1806 of yacc.c */
2447 /* Line 1787 of yacc.c */
24702448 #line 446 "util/configparser.y"
24712449 {
24722450 OUTYY(("P(server_log_queries:%s)\n", (yyvsp[(2) - (2)].str)));
24782456 break;
24792457
24802458 case 152:
2481
2482 /* Line 1806 of yacc.c */
2459 /* Line 1787 of yacc.c */
24832460 #line 455 "util/configparser.y"
24842461 {
24852462 OUTYY(("P(server_chroot:%s)\n", (yyvsp[(2) - (2)].str)));
24892466 break;
24902467
24912468 case 153:
2492
2493 /* Line 1806 of yacc.c */
2469 /* Line 1787 of yacc.c */
24942470 #line 462 "util/configparser.y"
24952471 {
24962472 OUTYY(("P(server_username:%s)\n", (yyvsp[(2) - (2)].str)));
25002476 break;
25012477
25022478 case 154:
2503
2504 /* Line 1806 of yacc.c */
2479 /* Line 1787 of yacc.c */
25052480 #line 469 "util/configparser.y"
25062481 {
25072482 OUTYY(("P(server_directory:%s)\n", (yyvsp[(2) - (2)].str)));
25112486 break;
25122487
25132488 case 155:
2514
2515 /* Line 1806 of yacc.c */
2489 /* Line 1787 of yacc.c */
25162490 #line 476 "util/configparser.y"
25172491 {
25182492 OUTYY(("P(server_logfile:%s)\n", (yyvsp[(2) - (2)].str)));
25232497 break;
25242498
25252499 case 156:
2526
2527 /* Line 1806 of yacc.c */
2500 /* Line 1787 of yacc.c */
25282501 #line 484 "util/configparser.y"
25292502 {
25302503 OUTYY(("P(server_pidfile:%s)\n", (yyvsp[(2) - (2)].str)));
25342507 break;
25352508
25362509 case 157:
2537
2538 /* Line 1806 of yacc.c */
2510 /* Line 1787 of yacc.c */
25392511 #line 491 "util/configparser.y"
25402512 {
25412513 OUTYY(("P(server_root_hints:%s)\n", (yyvsp[(2) - (2)].str)));
25452517 break;
25462518
25472519 case 158:
2548
2549 /* Line 1806 of yacc.c */
2520 /* Line 1787 of yacc.c */
25502521 #line 498 "util/configparser.y"
25512522 {
25522523 OUTYY(("P(server_dlv_anchor_file:%s)\n", (yyvsp[(2) - (2)].str)));
25562527 break;
25572528
25582529 case 159:
2559
2560 /* Line 1806 of yacc.c */
2530 /* Line 1787 of yacc.c */
25612531 #line 505 "util/configparser.y"
25622532 {
25632533 OUTYY(("P(server_dlv_anchor:%s)\n", (yyvsp[(2) - (2)].str)));
25672537 break;
25682538
25692539 case 160:
2570
2571 /* Line 1806 of yacc.c */
2540 /* Line 1787 of yacc.c */
25722541 #line 512 "util/configparser.y"
25732542 {
25742543 OUTYY(("P(server_auto_trust_anchor_file:%s)\n", (yyvsp[(2) - (2)].str)));
25792548 break;
25802549
25812550 case 161:
2582
2583 /* Line 1806 of yacc.c */
2551 /* Line 1787 of yacc.c */
25842552 #line 520 "util/configparser.y"
25852553 {
25862554 OUTYY(("P(server_trust_anchor_file:%s)\n", (yyvsp[(2) - (2)].str)));
25912559 break;
25922560
25932561 case 162:
2594
2595 /* Line 1806 of yacc.c */
2562 /* Line 1787 of yacc.c */
25962563 #line 528 "util/configparser.y"
25972564 {
25982565 OUTYY(("P(server_trusted_keys_file:%s)\n", (yyvsp[(2) - (2)].str)));
26032570 break;
26042571
26052572 case 163:
2606
2607 /* Line 1806 of yacc.c */
2573 /* Line 1787 of yacc.c */
26082574 #line 536 "util/configparser.y"
26092575 {
26102576 OUTYY(("P(server_trust_anchor:%s)\n", (yyvsp[(2) - (2)].str)));
26142580 break;
26152581
26162582 case 164:
2617
2618 /* Line 1806 of yacc.c */
2583 /* Line 1787 of yacc.c */
26192584 #line 543 "util/configparser.y"
26202585 {
26212586 OUTYY(("P(server_domain_insecure:%s)\n", (yyvsp[(2) - (2)].str)));
26252590 break;
26262591
26272592 case 165:
2628
2629 /* Line 1806 of yacc.c */
2593 /* Line 1787 of yacc.c */
26302594 #line 550 "util/configparser.y"
26312595 {
26322596 OUTYY(("P(server_hide_identity:%s)\n", (yyvsp[(2) - (2)].str)));
26382602 break;
26392603
26402604 case 166:
2641
2642 /* Line 1806 of yacc.c */
2605 /* Line 1787 of yacc.c */
26432606 #line 559 "util/configparser.y"
26442607 {
26452608 OUTYY(("P(server_hide_version:%s)\n", (yyvsp[(2) - (2)].str)));
26512614 break;
26522615
26532616 case 167:
2654
2655 /* Line 1806 of yacc.c */
2617 /* Line 1787 of yacc.c */
26562618 #line 568 "util/configparser.y"
26572619 {
26582620 OUTYY(("P(server_identity:%s)\n", (yyvsp[(2) - (2)].str)));
26622624 break;
26632625
26642626 case 168:
2665
2666 /* Line 1806 of yacc.c */
2627 /* Line 1787 of yacc.c */
26672628 #line 575 "util/configparser.y"
26682629 {
26692630 OUTYY(("P(server_version:%s)\n", (yyvsp[(2) - (2)].str)));
26732634 break;
26742635
26752636 case 169:
2676
2677 /* Line 1806 of yacc.c */
2637 /* Line 1787 of yacc.c */
26782638 #line 582 "util/configparser.y"
26792639 {
26802640 OUTYY(("P(server_so_rcvbuf:%s)\n", (yyvsp[(2) - (2)].str)));
26852645 break;
26862646
26872647 case 170:
2688
2689 /* Line 1806 of yacc.c */
2648 /* Line 1787 of yacc.c */
26902649 #line 590 "util/configparser.y"
26912650 {
26922651 OUTYY(("P(server_so_sndbuf:%s)\n", (yyvsp[(2) - (2)].str)));
26972656 break;
26982657
26992658 case 171:
2700
2701 /* Line 1806 of yacc.c */
2659 /* Line 1787 of yacc.c */
27022660 #line 598 "util/configparser.y"
27032661 {
27042662 OUTYY(("P(server_edns_buffer_size:%s)\n", (yyvsp[(2) - (2)].str)));
27142672 break;
27152673
27162674 case 172:
2717
2718 /* Line 1806 of yacc.c */
2675 /* Line 1787 of yacc.c */
27192676 #line 611 "util/configparser.y"
27202677 {
27212678 OUTYY(("P(server_msg_buffer_size:%s)\n", (yyvsp[(2) - (2)].str)));
27292686 break;
27302687
27312688 case 173:
2732
2733 /* Line 1806 of yacc.c */
2689 /* Line 1787 of yacc.c */
27342690 #line 622 "util/configparser.y"
27352691 {
27362692 OUTYY(("P(server_msg_cache_size:%s)\n", (yyvsp[(2) - (2)].str)));
27412697 break;
27422698
27432699 case 174:
2744
2745 /* Line 1806 of yacc.c */
2700 /* Line 1787 of yacc.c */
27462701 #line 630 "util/configparser.y"
27472702 {
27482703 OUTYY(("P(server_msg_cache_slabs:%s)\n", (yyvsp[(2) - (2)].str)));
27582713 break;
27592714
27602715 case 175:
2761
2762 /* Line 1806 of yacc.c */
2716 /* Line 1787 of yacc.c */
27632717 #line 643 "util/configparser.y"
27642718 {
27652719 OUTYY(("P(server_num_queries_per_thread:%s)\n", (yyvsp[(2) - (2)].str)));
27712725 break;
27722726
27732727 case 176:
2774
2775 /* Line 1806 of yacc.c */
2728 /* Line 1787 of yacc.c */
27762729 #line 652 "util/configparser.y"
27772730 {
27782731 OUTYY(("P(server_jostle_timeout:%s)\n", (yyvsp[(2) - (2)].str)));
27842737 break;
27852738
27862739 case 177:
2787
2788 /* Line 1806 of yacc.c */
2740 /* Line 1787 of yacc.c */
27892741 #line 661 "util/configparser.y"
27902742 {
27912743 OUTYY(("P(server_rrset_cache_size:%s)\n", (yyvsp[(2) - (2)].str)));
27962748 break;
27972749
27982750 case 178:
2799
2800 /* Line 1806 of yacc.c */
2751 /* Line 1787 of yacc.c */
28012752 #line 669 "util/configparser.y"
28022753 {
28032754 OUTYY(("P(server_rrset_cache_slabs:%s)\n", (yyvsp[(2) - (2)].str)));
28132764 break;
28142765
28152766 case 179:
2816
2817 /* Line 1806 of yacc.c */
2767 /* Line 1787 of yacc.c */
28182768 #line 682 "util/configparser.y"
28192769 {
28202770 OUTYY(("P(server_infra_host_ttl:%s)\n", (yyvsp[(2) - (2)].str)));
28262776 break;
28272777
28282778 case 180:
2829
2830 /* Line 1806 of yacc.c */
2779 /* Line 1787 of yacc.c */
28312780 #line 691 "util/configparser.y"
28322781 {
28332782 OUTYY(("P(server_infra_lame_ttl:%s)\n", (yyvsp[(2) - (2)].str)));
28382787 break;
28392788
28402789 case 181:
2841
2842 /* Line 1806 of yacc.c */
2790 /* Line 1787 of yacc.c */
28432791 #line 699 "util/configparser.y"
28442792 {
28452793 OUTYY(("P(server_infra_cache_numhosts:%s)\n", (yyvsp[(2) - (2)].str)));
28512799 break;
28522800
28532801 case 182:
2854
2855 /* Line 1806 of yacc.c */
2802 /* Line 1787 of yacc.c */
28562803 #line 708 "util/configparser.y"
28572804 {
28582805 OUTYY(("P(server_infra_cache_lame_size:%s)\n", (yyvsp[(2) - (2)].str)));
28632810 break;
28642811
28652812 case 183:
2866
2867 /* Line 1806 of yacc.c */
2813 /* Line 1787 of yacc.c */
28682814 #line 716 "util/configparser.y"
28692815 {
28702816 OUTYY(("P(server_infra_cache_slabs:%s)\n", (yyvsp[(2) - (2)].str)));
28802826 break;
28812827
28822828 case 184:
2883
2884 /* Line 1806 of yacc.c */
2829 /* Line 1787 of yacc.c */
28852830 #line 729 "util/configparser.y"
28862831 {
28872832 OUTYY(("P(server_target_fetch_policy:%s)\n", (yyvsp[(2) - (2)].str)));
28912836 break;
28922837
28932838 case 185:
2894
2895 /* Line 1806 of yacc.c */
2839 /* Line 1787 of yacc.c */
28962840 #line 736 "util/configparser.y"
28972841 {
28982842 OUTYY(("P(server_harden_short_bufsize:%s)\n", (yyvsp[(2) - (2)].str)));
29052849 break;
29062850
29072851 case 186:
2908
2909 /* Line 1806 of yacc.c */
2852 /* Line 1787 of yacc.c */
29102853 #line 746 "util/configparser.y"
29112854 {
29122855 OUTYY(("P(server_harden_large_queries:%s)\n", (yyvsp[(2) - (2)].str)));
29192862 break;
29202863
29212864 case 187:
2922
2923 /* Line 1806 of yacc.c */
2865 /* Line 1787 of yacc.c */
29242866 #line 756 "util/configparser.y"
29252867 {
29262868 OUTYY(("P(server_harden_glue:%s)\n", (yyvsp[(2) - (2)].str)));
29332875 break;
29342876
29352877 case 188:
2936
2937 /* Line 1806 of yacc.c */
2878 /* Line 1787 of yacc.c */
29382879 #line 766 "util/configparser.y"
29392880 {
29402881 OUTYY(("P(server_harden_dnssec_stripped:%s)\n", (yyvsp[(2) - (2)].str)));
29472888 break;
29482889
29492890 case 189:
2950
2951 /* Line 1806 of yacc.c */
2891 /* Line 1787 of yacc.c */
29522892 #line 776 "util/configparser.y"
29532893 {
29542894 OUTYY(("P(server_harden_below_nxdomain:%s)\n", (yyvsp[(2) - (2)].str)));
29612901 break;
29622902
29632903 case 190:
2964
2965 /* Line 1806 of yacc.c */
2904 /* Line 1787 of yacc.c */
29662905 #line 786 "util/configparser.y"
29672906 {
29682907 OUTYY(("P(server_harden_referral_path:%s)\n", (yyvsp[(2) - (2)].str)));
29752914 break;
29762915
29772916 case 191:
2978
2979 /* Line 1806 of yacc.c */
2917 /* Line 1787 of yacc.c */
29802918 #line 796 "util/configparser.y"
29812919 {
29822920 OUTYY(("P(server_use_caps_for_id:%s)\n", (yyvsp[(2) - (2)].str)));
29892927 break;
29902928
29912929 case 192:
2992
2993 /* Line 1806 of yacc.c */
2930 /* Line 1787 of yacc.c */
29942931 #line 806 "util/configparser.y"
29952932 {
29962933 OUTYY(("P(server_private_address:%s)\n", (yyvsp[(2) - (2)].str)));
30002937 break;
30012938
30022939 case 193:
3003
3004 /* Line 1806 of yacc.c */
2940 /* Line 1787 of yacc.c */
30052941 #line 813 "util/configparser.y"
30062942 {
30072943 OUTYY(("P(server_private_domain:%s)\n", (yyvsp[(2) - (2)].str)));
30112947 break;
30122948
30132949 case 194:
3014
3015 /* Line 1806 of yacc.c */
2950 /* Line 1787 of yacc.c */
30162951 #line 820 "util/configparser.y"
30172952 {
30182953 OUTYY(("P(server_prefetch:%s)\n", (yyvsp[(2) - (2)].str)));
30242959 break;
30252960
30262961 case 195:
3027
3028 /* Line 1806 of yacc.c */
2962 /* Line 1787 of yacc.c */
30292963 #line 829 "util/configparser.y"
30302964 {
30312965 OUTYY(("P(server_prefetch_key:%s)\n", (yyvsp[(2) - (2)].str)));
30372971 break;
30382972
30392973 case 196:
3040
3041 /* Line 1806 of yacc.c */
2974 /* Line 1787 of yacc.c */
30422975 #line 838 "util/configparser.y"
30432976 {
30442977 OUTYY(("P(server_unwanted_reply_threshold:%s)\n", (yyvsp[(2) - (2)].str)));
30502983 break;
30512984
30522985 case 197:
3053
3054 /* Line 1806 of yacc.c */
2986 /* Line 1787 of yacc.c */
30552987 #line 847 "util/configparser.y"
30562988 {
30572989 OUTYY(("P(server_do_not_query_address:%s)\n", (yyvsp[(2) - (2)].str)));
30612993 break;
30622994
30632995 case 198:
3064
3065 /* Line 1806 of yacc.c */
2996 /* Line 1787 of yacc.c */
30662997 #line 854 "util/configparser.y"
30672998 {
30682999 OUTYY(("P(server_do_not_query_localhost:%s)\n", (yyvsp[(2) - (2)].str)));
30753006 break;
30763007
30773008 case 199:
3078
3079 /* Line 1806 of yacc.c */
3009 /* Line 1787 of yacc.c */
30803010 #line 864 "util/configparser.y"
30813011 {
30823012 OUTYY(("P(server_access_control:%s %s)\n", (yyvsp[(2) - (3)].str), (yyvsp[(3) - (3)].str)));
30933023 break;
30943024
30953025 case 200:
3096
3097 /* Line 1806 of yacc.c */
3026 /* Line 1787 of yacc.c */
30983027 #line 878 "util/configparser.y"
30993028 {
31003029 OUTYY(("P(server_module_conf:%s)\n", (yyvsp[(2) - (2)].str)));
31043033 break;
31053034
31063035 case 201:
3107
3108 /* Line 1806 of yacc.c */
3036 /* Line 1787 of yacc.c */
31093037 #line 885 "util/configparser.y"
31103038 {
31113039 OUTYY(("P(server_val_override_date:%s)\n", (yyvsp[(2) - (2)].str)));
31263054 break;
31273055
31283056 case 202:
3129
3130 /* Line 1806 of yacc.c */
3057 /* Line 1787 of yacc.c */
31313058 #line 903 "util/configparser.y"
31323059 {
31333060 OUTYY(("P(server_val_sig_skew_min:%s)\n", (yyvsp[(2) - (2)].str)));
31433070 break;
31443071
31453072 case 203:
3146
3147 /* Line 1806 of yacc.c */
3073 /* Line 1787 of yacc.c */
31483074 #line 916 "util/configparser.y"
31493075 {
31503076 OUTYY(("P(server_val_sig_skew_max:%s)\n", (yyvsp[(2) - (2)].str)));
31603086 break;
31613087
31623088 case 204:
3163
3164 /* Line 1806 of yacc.c */
3089 /* Line 1787 of yacc.c */
31653090 #line 929 "util/configparser.y"
31663091 {
31673092 OUTYY(("P(server_cache_max_ttl:%s)\n", (yyvsp[(2) - (2)].str)));
31733098 break;
31743099
31753100 case 205:
3176
3177 /* Line 1806 of yacc.c */
3101 /* Line 1787 of yacc.c */
31783102 #line 938 "util/configparser.y"
31793103 {
31803104 OUTYY(("P(server_cache_min_ttl:%s)\n", (yyvsp[(2) - (2)].str)));
31863110 break;
31873111
31883112 case 206:
3189
3190 /* Line 1806 of yacc.c */
3113 /* Line 1787 of yacc.c */
31913114 #line 947 "util/configparser.y"
31923115 {
31933116 OUTYY(("P(server_bogus_ttl:%s)\n", (yyvsp[(2) - (2)].str)));
31993122 break;
32003123
32013124 case 207:
3202
3203 /* Line 1806 of yacc.c */
3125 /* Line 1787 of yacc.c */
32043126 #line 956 "util/configparser.y"
32053127 {
32063128 OUTYY(("P(server_val_clean_additional:%s)\n", (yyvsp[(2) - (2)].str)));
32133135 break;
32143136
32153137 case 208:
3216
3217 /* Line 1806 of yacc.c */
3138 /* Line 1787 of yacc.c */
32183139 #line 966 "util/configparser.y"
32193140 {
32203141 OUTYY(("P(server_val_permissive_mode:%s)\n", (yyvsp[(2) - (2)].str)));
32273148 break;
32283149
32293150 case 209:
3230
3231 /* Line 1806 of yacc.c */
3151 /* Line 1787 of yacc.c */
32323152 #line 976 "util/configparser.y"
32333153 {
32343154 OUTYY(("P(server_ignore_cd_flag:%s)\n", (yyvsp[(2) - (2)].str)));
32403160 break;
32413161
32423162 case 210:
3243
3244 /* Line 1806 of yacc.c */
3163 /* Line 1787 of yacc.c */
32453164 #line 985 "util/configparser.y"
32463165 {
32473166 OUTYY(("P(server_val_log_level:%s)\n", (yyvsp[(2) - (2)].str)));
32533172 break;
32543173
32553174 case 211:
3256
3257 /* Line 1806 of yacc.c */
3175 /* Line 1787 of yacc.c */
32583176 #line 994 "util/configparser.y"
32593177 {
32603178 OUTYY(("P(server_val_nsec3_keysize_iterations:%s)\n", (yyvsp[(2) - (2)].str)));
32643182 break;
32653183
32663184 case 212:
3267
3268 /* Line 1806 of yacc.c */
3185 /* Line 1787 of yacc.c */
32693186 #line 1001 "util/configparser.y"
32703187 {
32713188 OUTYY(("P(server_add_holddown:%s)\n", (yyvsp[(2) - (2)].str)));
32773194 break;
32783195
32793196 case 213:
3280
3281 /* Line 1806 of yacc.c */
3197 /* Line 1787 of yacc.c */
32823198 #line 1010 "util/configparser.y"
32833199 {
32843200 OUTYY(("P(server_del_holddown:%s)\n", (yyvsp[(2) - (2)].str)));
32903206 break;
32913207
32923208 case 214:
3293
3294 /* Line 1806 of yacc.c */
3209 /* Line 1787 of yacc.c */
32953210 #line 1019 "util/configparser.y"
32963211 {
32973212 OUTYY(("P(server_keep_missing:%s)\n", (yyvsp[(2) - (2)].str)));
33033218 break;
33043219
33053220 case 215:
3306
3307 /* Line 1806 of yacc.c */
3221 /* Line 1787 of yacc.c */
33083222 #line 1028 "util/configparser.y"
33093223 {
33103224 OUTYY(("P(server_key_cache_size:%s)\n", (yyvsp[(2) - (2)].str)));
33153229 break;
33163230
33173231 case 216:
3318
3319 /* Line 1806 of yacc.c */
3232 /* Line 1787 of yacc.c */
33203233 #line 1036 "util/configparser.y"
33213234 {
33223235 OUTYY(("P(server_key_cache_slabs:%s)\n", (yyvsp[(2) - (2)].str)));
33323245 break;
33333246
33343247 case 217:
3335
3336 /* Line 1806 of yacc.c */
3248 /* Line 1787 of yacc.c */
33373249 #line 1049 "util/configparser.y"
33383250 {
33393251 OUTYY(("P(server_neg_cache_size:%s)\n", (yyvsp[(2) - (2)].str)));
33443256 break;
33453257
33463258 case 218:
3347
3348 /* Line 1806 of yacc.c */
3259 /* Line 1787 of yacc.c */
33493260 #line 1057 "util/configparser.y"
33503261 {
33513262 OUTYY(("P(server_local_zone:%s %s)\n", (yyvsp[(2) - (3)].str), (yyvsp[(3) - (3)].str)));
33703281 break;
33713282
33723283 case 219:
3373
3374 /* Line 1806 of yacc.c */
3284 /* Line 1787 of yacc.c */
33753285 #line 1079 "util/configparser.y"
33763286 {
33773287 OUTYY(("P(server_local_data:%s)\n", (yyvsp[(2) - (2)].str)));
33813291 break;
33823292
33833293 case 220:
3384
3385 /* Line 1806 of yacc.c */
3294 /* Line 1787 of yacc.c */
33863295 #line 1086 "util/configparser.y"
33873296 {
33883297 char* ptr;
34003309 break;
34013310
34023311 case 221:
3403
3404 /* Line 1806 of yacc.c */
3312 /* Line 1787 of yacc.c */
34053313 #line 1101 "util/configparser.y"
34063314 {
34073315 OUTYY(("P(server_minimal_responses:%s)\n", (yyvsp[(2) - (2)].str)));
34143322 break;
34153323
34163324 case 222:
3417
3418 /* Line 1806 of yacc.c */
3325 /* Line 1787 of yacc.c */
34193326 #line 1111 "util/configparser.y"
34203327 {
34213328 OUTYY(("P(server_rrset_roundrobin:%s)\n", (yyvsp[(2) - (2)].str)));
34283335 break;
34293336
34303337 case 223:
3431
3432 /* Line 1806 of yacc.c */
3338 /* Line 1787 of yacc.c */
34333339 #line 1121 "util/configparser.y"
34343340 {
34353341 OUTYY(("P(name:%s)\n", (yyvsp[(2) - (2)].str)));
34423348 break;
34433349
34443350 case 224:
3445
3446 /* Line 1806 of yacc.c */
3351 /* Line 1787 of yacc.c */
34473352 #line 1131 "util/configparser.y"
34483353 {
34493354 OUTYY(("P(stub-host:%s)\n", (yyvsp[(2) - (2)].str)));
34533358 break;
34543359
34553360 case 225:
3456
3457 /* Line 1806 of yacc.c */
3361 /* Line 1787 of yacc.c */
34583362 #line 1138 "util/configparser.y"
34593363 {
34603364 OUTYY(("P(stub-addr:%s)\n", (yyvsp[(2) - (2)].str)));
34643368 break;
34653369
34663370 case 226:
3467
3468 /* Line 1806 of yacc.c */
3371 /* Line 1787 of yacc.c */
34693372 #line 1145 "util/configparser.y"
34703373 {
34713374 OUTYY(("P(stub-first:%s)\n", (yyvsp[(2) - (2)].str)));
34773380 break;
34783381
34793382 case 227:
3480
3481 /* Line 1806 of yacc.c */
3383 /* Line 1787 of yacc.c */
34823384 #line 1154 "util/configparser.y"
34833385 {
34843386 OUTYY(("P(stub-prime:%s)\n", (yyvsp[(2) - (2)].str)));
34913393 break;
34923394
34933395 case 228:
3494
3495 /* Line 1806 of yacc.c */
3396 /* Line 1787 of yacc.c */
34963397 #line 1164 "util/configparser.y"
34973398 {
34983399 OUTYY(("P(name:%s)\n", (yyvsp[(2) - (2)].str)));
35053406 break;
35063407
35073408 case 229:
3508
3509 /* Line 1806 of yacc.c */
3409 /* Line 1787 of yacc.c */
35103410 #line 1174 "util/configparser.y"
35113411 {
35123412 OUTYY(("P(forward-host:%s)\n", (yyvsp[(2) - (2)].str)));
35163416 break;
35173417
35183418 case 230:
3519
3520 /* Line 1806 of yacc.c */
3419 /* Line 1787 of yacc.c */
35213420 #line 1181 "util/configparser.y"
35223421 {
35233422 OUTYY(("P(forward-addr:%s)\n", (yyvsp[(2) - (2)].str)));
35273426 break;
35283427
35293428 case 231:
3530
3531 /* Line 1806 of yacc.c */
3429 /* Line 1787 of yacc.c */
35323430 #line 1188 "util/configparser.y"
35333431 {
35343432 OUTYY(("P(forward-first:%s)\n", (yyvsp[(2) - (2)].str)));
35403438 break;
35413439
35423440 case 232:
3543
3544 /* Line 1806 of yacc.c */
3441 /* Line 1787 of yacc.c */
35453442 #line 1197 "util/configparser.y"
35463443 {
35473444 OUTYY(("\nP(remote-control:)\n"));
35493446 break;
35503447
35513448 case 242:
3552
3553 /* Line 1806 of yacc.c */
3449 /* Line 1787 of yacc.c */
35543450 #line 1208 "util/configparser.y"
35553451 {
35563452 OUTYY(("P(control_enable:%s)\n", (yyvsp[(2) - (2)].str)));
35633459 break;
35643460
35653461 case 243:
3566
3567 /* Line 1806 of yacc.c */
3462 /* Line 1787 of yacc.c */
35683463 #line 1218 "util/configparser.y"
35693464 {
35703465 OUTYY(("P(control_port:%s)\n", (yyvsp[(2) - (2)].str)));
35763471 break;
35773472
35783473 case 244:
3579
3580 /* Line 1806 of yacc.c */
3474 /* Line 1787 of yacc.c */
35813475 #line 1227 "util/configparser.y"
35823476 {
35833477 OUTYY(("P(control_interface:%s)\n", (yyvsp[(2) - (2)].str)));
35873481 break;
35883482
35893483 case 245:
3590
3591 /* Line 1806 of yacc.c */
3484 /* Line 1787 of yacc.c */
35923485 #line 1234 "util/configparser.y"
35933486 {
35943487 OUTYY(("P(rc_server_key_file:%s)\n", (yyvsp[(2) - (2)].str)));
35983491 break;
35993492
36003493 case 246:
3601
3602 /* Line 1806 of yacc.c */
3494 /* Line 1787 of yacc.c */
36033495 #line 1241 "util/configparser.y"
36043496 {
36053497 OUTYY(("P(rc_server_cert_file:%s)\n", (yyvsp[(2) - (2)].str)));
36093501 break;
36103502
36113503 case 247:
3612
3613 /* Line 1806 of yacc.c */
3504 /* Line 1787 of yacc.c */
36143505 #line 1248 "util/configparser.y"
36153506 {
36163507 OUTYY(("P(rc_control_key_file:%s)\n", (yyvsp[(2) - (2)].str)));
36203511 break;
36213512
36223513 case 248:
3623
3624 /* Line 1806 of yacc.c */
3514 /* Line 1787 of yacc.c */
36253515 #line 1255 "util/configparser.y"
36263516 {
36273517 OUTYY(("P(rc_control_cert_file:%s)\n", (yyvsp[(2) - (2)].str)));
36313521 break;
36323522
36333523 case 249:
3634
3635 /* Line 1806 of yacc.c */
3524 /* Line 1787 of yacc.c */
36363525 #line 1262 "util/configparser.y"
36373526 {
36383527 OUTYY(("\nP(python:)\n"));
36403529 break;
36413530
36423531 case 253:
3643
3644 /* Line 1806 of yacc.c */
3532 /* Line 1787 of yacc.c */
36453533 #line 1271 "util/configparser.y"
36463534 {
36473535 OUTYY(("P(python-script:%s)\n", (yyvsp[(2) - (2)].str)));
36513539 break;
36523540
36533541
3654
3655 /* Line 1806 of yacc.c */
3656 #line 3658 "util/configparser.c"
3542 /* Line 1787 of yacc.c */
3543 #line 3545 "util/configparser.c"
36573544 default: break;
36583545 }
36593546 /* User semantic actions sometimes alter yychar, and that requires
38403727 yyresult = 1;
38413728 goto yyreturn;
38423729
3843 #if !defined(yyoverflow) || YYERROR_VERBOSE
3730 #if !defined yyoverflow || YYERROR_VERBOSE
38443731 /*-------------------------------------------------.
38453732 | yyexhaustedlab -- memory exhaustion comes here. |
38463733 `-------------------------------------------------*/
38823769 }
38833770
38843771
3885
3886 /* Line 2067 of yacc.c */
3772 /* Line 2048 of yacc.c */
38873773 #line 1276 "util/configparser.y"
38883774
38893775
0 /* A Bison parser, made by GNU Bison 2.5. */
0 /* A Bison parser, made by GNU Bison 2.6.1. */
11
22 /* Bison interface for Yacc-like parsers in C
33
4 Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
4 Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
55
66 This program is free software: you can redistribute it and/or modify
77 it under the terms of the GNU General Public License as published by
2929 This special exception was added by the Free Software Foundation in
3030 version 2.2 of Bison. */
3131
32 #ifndef YY_UTIL_CONFIGPARSER_H
33 # define YY_UTIL_CONFIGPARSER_H
34 /* Enabling traces. */
35 #ifndef YYDEBUG
36 # define YYDEBUG 0
37 #endif
38 #if YYDEBUG
39 extern int yydebug;
40 #endif
3241
3342 /* Tokens. */
3443 #ifndef YYTOKENTYPE
296305
297306
298307
299
300308 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
301309 typedef union YYSTYPE
302310 {
303
304 /* Line 2068 of yacc.c */
311 /* Line 2049 of yacc.c */
305312 #line 64 "util/configparser.y"
306313
307314 char* str;
308315
309316
310
311 /* Line 2068 of yacc.c */
312 #line 314 "util/configparser.h"
317 /* Line 2049 of yacc.c */
318 #line 320 "util/configparser.h"
313319 } YYSTYPE;
314320 # define YYSTYPE_IS_TRIVIAL 1
315321 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
318324
319325 extern YYSTYPE yylval;
320326
321
327 #ifdef YYPARSE_PARAM
328 #if defined __STDC__ || defined __cplusplus
329 int yyparse (void *YYPARSE_PARAM);
330 #else
331 int yyparse ();
332 #endif
333 #else /* ! YYPARSE_PARAM */
334 #if defined __STDC__ || defined __cplusplus
335 int yyparse (void);
336 #else
337 int yyparse ();
338 #endif
339 #endif /* ! YYPARSE_PARAM */
340
341 #endif /* !YY_UTIL_CONFIGPARSER_H */
39593959 4743,
39603960 4744,
39613961 4745,
3962 4747,
39623963 4749,
39633964 4750,
39643965 4751,
42604261 5632,
42614262 5633,
42624263 5634,
4264 5670,
42634265 5671,
42644266 5672,
42654267 5673,
44044406 6306,
44054407 6315,
44064408 6316,
4409 6317,
44074410 6320,
44084411 6321,
44094412 6322,
45514554 7070,
45524555 7071,
45534556 7080,
4557 7095,
45544558 7099,
45554559 7100,
45564560 7101,
46614665 7799,
46624666 7800,
46634667 7801,
4668 7802,
46644669 7810,
46654670 7845,
46664671 7846,
47944799 8763,
47954800 8764,
47964801 8765,
4802 8766,
47974803 8770,
47984804 8786,
47994805 8787,
48794885 9217,
48804886 9222,
48814887 9255,
4888 9277,
48824889 9278,
48834890 9279,
48844891 9280,
50865093 13929,
50875094 14000,
50885095 14001,
5096 14002,
50895097 14033,
50905098 14034,
50915099 14141,
51635171 19539,
51645172 19540,
51655173 19541,
5174 19788,
51665175 19999,
51675176 20000,
51685177 20001,
52265235 24242,
52275236 24249,
52285237 24321,
5238 24322,
52295239 24386,
52305240 24465,
52315241 24554,
53335343 42508,
53345344 42509,
53355345 42510,
5346 43000,
53365347 43188,
53375348 43189,
53385349 43190,
53465357 44553,
53475358 44600,
53485359 44818,
5360 44900,
53495361 45000,
53505362 45054,
53515363 45678,
53535365 45966,
53545366 46999,
53555367 47000,
5368 47100,
53565369 47557,
53575370 47624,
53585371 47806,
725725 #endif
726726 }
727727
728 #if defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED)
728 #if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED)
729729 /** global lock list for openssl locks */
730730 static lock_basic_t *ub_openssl_locks = NULL;
731731
750750
751751 int ub_openssl_lock_init(void)
752752 {
753 #if defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED)
753 #if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED)
754754 int i;
755755 ub_openssl_locks = (lock_basic_t*)malloc(
756756 sizeof(lock_basic_t)*CRYPTO_num_locks());
767767
768768 void ub_openssl_lock_delete(void)
769769 {
770 #if defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED)
770 #if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED)
771771 int i;
772772 if(!ub_openssl_locks)
773773 return;
774 CRYPTO_set_id_callback(NULL);
775 CRYPTO_set_locking_callback(NULL);
774776 for(i=0; i<CRYPTO_num_locks(); i++) {
775777 lock_basic_destroy(&ub_openssl_locks[i]);
776778 }
779 free(ub_openssl_locks);
777780 #endif /* OPENSSL_THREADS */
778781 }
779782
9494 # endif /* USE_WINSOCK */
9595 #else /* USE_MINI_EVENT */
9696 /* we use libevent */
97 # include <event.h>
97 # ifdef HAVE_EVENT_H
98 # include <event.h>
99 # else
100 # include "event2/event.h"
101 # include "event2/event_struct.h"
102 # include "event2/event_compat.h"
103 # endif
98104 #endif /* USE_MINI_EVENT */
99105
100106 /**
6464 #include <openssl/rc4.h>
6565 #include <openssl/err.h>
6666 #elif defined(HAVE_NSS)
67 #include <nspr4/prerror.h>
68 #include <nss3/secport.h>
69 #include <nss3/pk11pub.h>
67 /* nspr4 */
68 #include "prerror.h"
69 /* nss3 */
70 #include "secport.h"
71 #include "pk11pub.h"
7072 #endif
7173
7274 /**
00 /*
1 February 2013(Wouter) patch defines for BSD endianness, from Brad Smith.
12 January 2012(Wouter) added randomised initial value, fallout from 28c3.
23 March 2007(Wouter) adapted from lookup3.c original, add config.h include.
34 added #ifdef VALGRIND to remove 298,384,660 'unused variable k8' warnings.
5152 #ifdef linux
5253 # include <endian.h> /* attempt to define endianness */
5354 #endif
55 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
56 #include <sys/endian.h> /* attempt to define endianness */
57 #endif
58 #ifdef __OpenBSD__
59 #include <machine/endian.h> /* attempt to define endianness */
60 #endif
5461
5562 /* random initial value */
5663 static uint32_t raninit = 0xdeadbeef;
6774 */
6875 #if (defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && \
6976 __BYTE_ORDER == __LITTLE_ENDIAN) || \
77 (defined(_BYTE_ORDER) && defined(_LITTLE_ENDIAN) && \
78 _BYTE_ORDER == _LITTLE_ENDIAN) || \
7079 (defined(i386) || defined(__i386__) || defined(__i486__) || \
7180 defined(__i586__) || defined(__i686__) || defined(vax) || defined(MIPSEL))
7281 # define HASH_LITTLE_ENDIAN 1
7382 # define HASH_BIG_ENDIAN 0
83 #elif (!defined(_BYTE_ORDER) && !defined(__BYTE_ORDER) && defined(_BIG_ENDIAN))
84 # define HASH_LITTLE_ENDIAN 0
85 # define HASH_BIG_ENDIAN 1
7486 #elif (defined(__BYTE_ORDER) && defined(__BIG_ENDIAN) && \
7587 __BYTE_ORDER == __BIG_ENDIAN) || \
88 (defined(_BYTE_ORDER) && defined(_BIG_ENDIAN) && \
89 _BYTE_ORDER == _BIG_ENDIAN) || \
7690 (defined(sparc) || defined(POWERPC) || defined(mc68000) || defined(sel))
7791 # define HASH_LITTLE_ENDIAN 0
7892 # define HASH_BIG_ENDIAN 1
465465 * @param anchors: all points.
466466 * @param str: comments line
467467 * @param fname: filename
468 * @param origin: $ORIGIN.
468 * @param origin: the $ORIGIN.
469469 * @param prev: passed to ldns.
470470 * @param skip: if true, the result is NULL, but not an error, skip it.
471471 * @return false on failure, otherwise the tp read.
4545 #include "openssl/ssl.h"
4646 #endif
4747 #ifdef HAVE_NSS
48 #include <nss3/sechash.h>
48 /* nss3 */
49 #include "sechash.h"
4950 #endif
5051 #include "validator/val_nsec3.h"
5152 #include "validator/validator.h"
552552 /**************************************************/
553553 #elif defined(HAVE_NSS)
554554 /* libnss implementation */
555 #include <nss3/sechash.h>
556 #include <nss3/pk11pub.h>
557 #include <nss3/keyhi.h>
558 #include <nss3/secerr.h>
559 #include <nss3/cryptohi.h>
560 #include <nspr4/prerror.h>
555 /* nss3 */
556 #include "sechash.h"
557 #include "pk11pub.h"
558 #include "keyhi.h"
559 #include "secerr.h"
560 #include "cryptohi.h"
561 /* nspr4 */
562 #include "prerror.h"
561563
562564 size_t
563565 ds_digest_size_supported(int algo)
8181 SetOutPath $INSTDIR
8282
8383 # libgcc exception lib used by NSISdl plugin (in crosscompile).
84 File /nonfatal "/oname=$PLUGINSDIR\libgcc_s_sjlj-1.dll" "/usr/i686-pc-mingw32/sys-root/mingw/bin/libgcc_s_sjlj-1.dll"
84 File /nonfatal "/oname=$PLUGINSDIR\libgcc_s_sjlj-1.dll" "/usr/i686-w64-mingw32/sys-root/mingw/bin/libgcc_s_sjlj-1.dll"
8585
8686 NSISdl::download "http://ftp.isc.org/www/dlv/dlv.isc.org.key" "$INSTDIR\dlv.isc.org.key"
8787 Pop $R0 # result from Inetc::get
379379 daemon_delete(daemon);
380380 }
381381
382 #ifdef DOXYGEN
383 #define ATTR_UNUSED(x) x
384 #endif
382385 /**
383386 * The main function for the service.
384387 * Called by the services API when starting unbound on windows in background.