Imported Upstream version 1.4.20
Robert S. Edmonds
11 years ago
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 | ||
5 | 4 | # This file is free software; the Free Software Foundation |
6 | 5 | # gives unlimited permission to copy and/or distribute it, |
7 | 6 | # with or without modifications, as long as this notice is preserved. |
14 | 13 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
15 | 14 | # |
16 | 15 | # 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. | |
19 | 18 | # Written by Gordon Matzigkeit, 1996 |
20 | 19 | # |
21 | 20 | # This file is free software; the Free Software Foundation gives |
24 | 23 | |
25 | 24 | m4_define([_LT_COPYING], [dnl |
26 | 25 | # 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. | |
29 | 28 | # Written by Gordon Matzigkeit, 1996 |
30 | 29 | # |
31 | 30 | # This file is part of GNU Libtool. |
159 | 158 | AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl |
160 | 159 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl |
161 | 160 | |
161 | _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl | |
162 | dnl | |
162 | 163 | _LT_DECL([], [host_alias], [0], [The host system])dnl |
163 | 164 | _LT_DECL([], [host], [0])dnl |
164 | 165 | _LT_DECL([], [host_os], [0])dnl |
644 | 645 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
645 | 646 | configured by $[0], generated by m4_PACKAGE_STRING. |
646 | 647 | |
647 | Copyright (C) 2010 Free Software Foundation, Inc. | |
648 | Copyright (C) 2011 Free Software Foundation, Inc. | |
648 | 649 | This config.lt script is free software; the Free Software Foundation |
649 | 650 | gives unlimited permision to copy, distribute and modify it." |
650 | 651 | |
808 | 809 | m4_case([$1], |
809 | 810 | [C], [_LT_LANG(C)], |
810 | 811 | [C++], [_LT_LANG(CXX)], |
812 | [Go], [_LT_LANG(GO)], | |
811 | 813 | [Java], [_LT_LANG(GCJ)], |
812 | 814 | [Fortran 77], [_LT_LANG(F77)], |
813 | 815 | [Fortran], [_LT_LANG(FC)], |
827 | 829 | m4_define([_LT_LANG_]$1[_enabled], [])dnl |
828 | 830 | _LT_LANG_$1_CONFIG($1)])dnl |
829 | 831 | ])# _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 | |
830 | 855 | |
831 | 856 | |
832 | 857 | # _LT_LANG_DEFAULT_CONFIG |
858 | 883 | [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
859 | 884 | m4_ifdef([LT_PROG_GCJ], |
860 | 885 | [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)])]) | |
861 | 890 | |
862 | 891 | AC_PROVIDE_IFELSE([LT_PROG_RC], |
863 | 892 | [LT_LANG(RC)], |
961 | 990 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
962 | 991 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
963 | 992 | _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 | |
965 | 1000 | lt_cv_apple_cc_single_mod=yes |
966 | 1001 | else |
967 | 1002 | cat conftest.err >&AS_MESSAGE_LOG_FD |
969 | 1004 | rm -rf libconftest.dylib* |
970 | 1005 | rm -f conftest.* |
971 | 1006 | fi]) |
1007 | ||
972 | 1008 | AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
973 | 1009 | [lt_cv_ld_exported_symbols_list], |
974 | 1010 | [lt_cv_ld_exported_symbols_list=no |
980 | 1016 | [lt_cv_ld_exported_symbols_list=no]) |
981 | 1017 | LDFLAGS="$save_LDFLAGS" |
982 | 1018 | ]) |
1019 | ||
983 | 1020 | AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], |
984 | 1021 | [lt_cv_ld_force_load=no |
985 | 1022 | cat > conftest.c << _LT_EOF |
997 | 1034 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD |
998 | 1035 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
999 | 1036 | _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 | |
1001 | 1040 | lt_cv_ld_force_load=yes |
1002 | 1041 | else |
1003 | 1042 | cat conftest.err >&AS_MESSAGE_LOG_FD |
1042 | 1081 | ]) |
1043 | 1082 | |
1044 | 1083 | |
1045 | # _LT_DARWIN_LINKER_FEATURES | |
1046 | # -------------------------- | |
1084 | # _LT_DARWIN_LINKER_FEATURES([TAG]) | |
1085 | # --------------------------------- | |
1047 | 1086 | # Checks for linker and compiler features on darwin |
1048 | 1087 | m4_defun([_LT_DARWIN_LINKER_FEATURES], |
1049 | 1088 | [ |
1054 | 1093 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
1055 | 1094 | if test "$lt_cv_ld_force_load" = "yes"; then |
1056 | 1095 | _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]) | |
1057 | 1098 | else |
1058 | 1099 | _LT_TAGVAR(whole_archive_flag_spec, $1)='' |
1059 | 1100 | fi |
1337 | 1378 | CFLAGS="$SAVE_CFLAGS" |
1338 | 1379 | fi |
1339 | 1380 | ;; |
1340 | sparc*-*solaris*) | |
1381 | *-*solaris*) | |
1341 | 1382 | # Find out which ABI we are using. |
1342 | 1383 | echo 'int i;' > conftest.$ac_ext |
1343 | 1384 | if AC_TRY_EVAL(ac_compile); then |
1344 | 1385 | case `/usr/bin/file conftest.o` in |
1345 | 1386 | *64-bit*) |
1346 | 1387 | 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 | ;; | |
1348 | 1402 | *) |
1349 | 1403 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
1350 | 1404 | LD="${LD-ld} -64" |
1421 | 1475 | if test -n "$RANLIB"; then |
1422 | 1476 | case $host_os in |
1423 | 1477 | openbsd*) |
1424 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
1478 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
1425 | 1479 | ;; |
1426 | 1480 | *) |
1427 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
1481 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
1428 | 1482 | ;; |
1429 | 1483 | esac |
1430 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
1484 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
1431 | 1485 | fi |
1432 | 1486 | |
1433 | 1487 | case $host_os in |
1605 | 1659 | interix*) |
1606 | 1660 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
1607 | 1661 | 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 | |
1608 | 1667 | ;; |
1609 | 1668 | |
1610 | 1669 | osf*) |
1646 | 1705 | # If test is not a shell built-in, we'll probably end up computing a |
1647 | 1706 | # maximum length that is only half of the actual maximum length, but |
1648 | 1707 | # 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` \ | |
1650 | 1709 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
1651 | 1710 | test $i != 17 # 1/2 MB should be enough |
1652 | 1711 | do |
2192 | 2251 | |
2193 | 2252 | case $host_os in |
2194 | 2253 | aix3*) |
2195 | version_type=linux | |
2254 | version_type=linux # correct to gnu/linux during the next big refactor | |
2196 | 2255 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
2197 | 2256 | shlibpath_var=LIBPATH |
2198 | 2257 | |
2201 | 2260 | ;; |
2202 | 2261 | |
2203 | 2262 | aix[[4-9]]*) |
2204 | version_type=linux | |
2263 | version_type=linux # correct to gnu/linux during the next big refactor | |
2205 | 2264 | need_lib_prefix=no |
2206 | 2265 | need_version=no |
2207 | 2266 | hardcode_into_libs=yes |
2266 | 2325 | ;; |
2267 | 2326 | |
2268 | 2327 | bsdi[[45]]*) |
2269 | version_type=linux | |
2328 | version_type=linux # correct to gnu/linux during the next big refactor | |
2270 | 2329 | need_version=no |
2271 | 2330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2272 | 2331 | soname_spec='${libname}${release}${shared_ext}$major' |
2405 | 2464 | ;; |
2406 | 2465 | |
2407 | 2466 | dgux*) |
2408 | version_type=linux | |
2467 | version_type=linux # correct to gnu/linux during the next big refactor | |
2409 | 2468 | need_lib_prefix=no |
2410 | 2469 | need_version=no |
2411 | 2470 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
2412 | 2471 | soname_spec='${libname}${release}${shared_ext}$major' |
2413 | 2472 | shlibpath_var=LD_LIBRARY_PATH |
2414 | ;; | |
2415 | ||
2416 | freebsd1*) | |
2417 | dynamic_linker=no | |
2418 | 2473 | ;; |
2419 | 2474 | |
2420 | 2475 | freebsd* | dragonfly*) |
2424 | 2479 | objformat=`/usr/bin/objformat` |
2425 | 2480 | else |
2426 | 2481 | case $host_os in |
2427 | freebsd[[123]]*) objformat=aout ;; | |
2482 | freebsd[[23]].*) objformat=aout ;; | |
2428 | 2483 | *) objformat=elf ;; |
2429 | 2484 | esac |
2430 | 2485 | fi |
2442 | 2497 | esac |
2443 | 2498 | shlibpath_var=LD_LIBRARY_PATH |
2444 | 2499 | case $host_os in |
2445 | freebsd2*) | |
2500 | freebsd2.*) | |
2446 | 2501 | shlibpath_overrides_runpath=yes |
2447 | 2502 | ;; |
2448 | 2503 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
2462 | 2517 | ;; |
2463 | 2518 | |
2464 | 2519 | gnu*) |
2465 | version_type=linux | |
2520 | version_type=linux # correct to gnu/linux during the next big refactor | |
2466 | 2521 | need_lib_prefix=no |
2467 | 2522 | need_version=no |
2468 | 2523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
2469 | 2524 | soname_spec='${libname}${release}${shared_ext}$major' |
2470 | 2525 | shlibpath_var=LD_LIBRARY_PATH |
2526 | shlibpath_overrides_runpath=no | |
2471 | 2527 | hardcode_into_libs=yes |
2472 | 2528 | ;; |
2473 | 2529 | |
2474 | 2530 | haiku*) |
2475 | version_type=linux | |
2531 | version_type=linux # correct to gnu/linux during the next big refactor | |
2476 | 2532 | need_lib_prefix=no |
2477 | 2533 | need_version=no |
2478 | 2534 | dynamic_linker="$host_os runtime_loader" |
2533 | 2589 | ;; |
2534 | 2590 | |
2535 | 2591 | interix[[3-9]]*) |
2536 | version_type=linux | |
2592 | version_type=linux # correct to gnu/linux during the next big refactor | |
2537 | 2593 | need_lib_prefix=no |
2538 | 2594 | need_version=no |
2539 | 2595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2549 | 2605 | nonstopux*) version_type=nonstopux ;; |
2550 | 2606 | *) |
2551 | 2607 | 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 | |
2553 | 2609 | else |
2554 | 2610 | version_type=irix |
2555 | 2611 | fi ;; |
2586 | 2642 | dynamic_linker=no |
2587 | 2643 | ;; |
2588 | 2644 | |
2589 | # This must be Linux ELF. | |
2645 | # This must be glibc/ELF. | |
2590 | 2646 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
2591 | version_type=linux | |
2647 | version_type=linux # correct to gnu/linux during the next big refactor | |
2592 | 2648 | need_lib_prefix=no |
2593 | 2649 | need_version=no |
2594 | 2650 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2655 | 2711 | ;; |
2656 | 2712 | |
2657 | 2713 | newsos6) |
2658 | version_type=linux | |
2714 | version_type=linux # correct to gnu/linux during the next big refactor | |
2659 | 2715 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2660 | 2716 | shlibpath_var=LD_LIBRARY_PATH |
2661 | 2717 | shlibpath_overrides_runpath=yes |
2724 | 2780 | ;; |
2725 | 2781 | |
2726 | 2782 | solaris*) |
2727 | version_type=linux | |
2783 | version_type=linux # correct to gnu/linux during the next big refactor | |
2728 | 2784 | need_lib_prefix=no |
2729 | 2785 | need_version=no |
2730 | 2786 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2749 | 2805 | ;; |
2750 | 2806 | |
2751 | 2807 | sysv4 | sysv4.3*) |
2752 | version_type=linux | |
2808 | version_type=linux # correct to gnu/linux during the next big refactor | |
2753 | 2809 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2754 | 2810 | soname_spec='${libname}${release}${shared_ext}$major' |
2755 | 2811 | shlibpath_var=LD_LIBRARY_PATH |
2773 | 2829 | |
2774 | 2830 | sysv4*MP*) |
2775 | 2831 | if test -d /usr/nec ;then |
2776 | version_type=linux | |
2832 | version_type=linux # correct to gnu/linux during the next big refactor | |
2777 | 2833 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
2778 | 2834 | soname_spec='$libname${shared_ext}.$major' |
2779 | 2835 | shlibpath_var=LD_LIBRARY_PATH |
2804 | 2860 | |
2805 | 2861 | tpf*) |
2806 | 2862 | # 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 | |
2808 | 2864 | need_lib_prefix=no |
2809 | 2865 | need_version=no |
2810 | 2866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2814 | 2870 | ;; |
2815 | 2871 | |
2816 | 2872 | uts4*) |
2817 | version_type=linux | |
2873 | version_type=linux # correct to gnu/linux during the next big refactor | |
2818 | 2874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2819 | 2875 | soname_spec='${libname}${release}${shared_ext}$major' |
2820 | 2876 | shlibpath_var=LD_LIBRARY_PATH |
3236 | 3292 | lt_cv_deplibs_check_method=pass_all |
3237 | 3293 | ;; |
3238 | 3294 | |
3239 | # This must be Linux ELF. | |
3295 | # This must be glibc/ELF. | |
3240 | 3296 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
3241 | 3297 | lt_cv_deplibs_check_method=pass_all |
3242 | 3298 | ;; |
3656 | 3712 | # which start with @ or ?. |
3657 | 3713 | lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
3658 | 3714 | " {last_section=section; section=\$ 3};"\ |
3715 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
3659 | 3716 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
3660 | 3717 | " \$ 0!~/External *\|/{next};"\ |
3661 | 3718 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
4240 | 4297 | case $cc_basename in |
4241 | 4298 | nvcc*) # Cuda Compiler Driver 2.2 |
4242 | 4299 | _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 | |
4244 | 4303 | ;; |
4245 | 4304 | esac |
4246 | 4305 | else |
4332 | 4391 | ;; |
4333 | 4392 | *) |
4334 | 4393 | 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]]*) | |
4336 | 4395 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
4337 | 4396 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4338 | 4397 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4339 | 4398 | _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 ' | |
4340 | 4404 | ;; |
4341 | 4405 | *Sun\ C*) |
4342 | 4406 | # Sun C 5.9 |
4343 | 4407 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4344 | 4408 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4345 | 4409 | _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' | |
4346 | 4420 | ;; |
4347 | 4421 | esac |
4348 | 4422 | ;; |
4503 | 4577 | ;; |
4504 | 4578 | cygwin* | mingw* | cegcc*) |
4505 | 4579 | case $cc_basename in |
4506 | cl*) ;; | |
4580 | cl*) | |
4581 | _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
4582 | ;; | |
4507 | 4583 | *) |
4508 | 4584 | _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' |
4509 | 4585 | _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] |
4528 | 4604 | _LT_TAGVAR(hardcode_direct, $1)=no |
4529 | 4605 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
4530 | 4606 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4531 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
4532 | 4607 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
4533 | 4608 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
4534 | 4609 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4779 | 4854 | xlf* | bgf* | bgxlf* | mpixlf*) |
4780 | 4855 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
4781 | 4856 | _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' | |
4784 | 4858 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
4785 | 4859 | if test "x$supports_anon_versioning" = xyes; then |
4786 | 4860 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
5075 | 5149 | # The linker will not automatically build a static lib if we build a DLL. |
5076 | 5150 | # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
5077 | 5151 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5152 | _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
5078 | 5153 | _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' |
5079 | 5154 | # Don't use ranlib |
5080 | 5155 | _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' |
5121 | 5196 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5122 | 5197 | ;; |
5123 | 5198 | |
5124 | freebsd1*) | |
5125 | _LT_TAGVAR(ld_shlibs, $1)=no | |
5126 | ;; | |
5127 | ||
5128 | 5199 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
5129 | 5200 | # support. Future versions do this automatically, but an explicit c++rt0.o |
5130 | 5201 | # does not break anything, and helps significantly (at the cost of a little |
5137 | 5208 | ;; |
5138 | 5209 | |
5139 | 5210 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
5140 | freebsd2*) | |
5211 | freebsd2.*) | |
5141 | 5212 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
5142 | 5213 | _LT_TAGVAR(hardcode_direct, $1)=yes |
5143 | 5214 | _LT_TAGVAR(hardcode_minus_L, $1)=yes |
5176 | 5247 | fi |
5177 | 5248 | if test "$with_gnu_ld" = no; then |
5178 | 5249 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
5179 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | |
5180 | 5250 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
5181 | 5251 | _LT_TAGVAR(hardcode_direct, $1)=yes |
5182 | 5252 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
5618 | 5688 | _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
5619 | 5689 | [Flag to hardcode $libdir into a binary during linking. |
5620 | 5690 | 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]]) | |
5624 | 5691 | _LT_TAGDECL([], [hardcode_libdir_separator], [1], |
5625 | 5692 | [Whether we need a single "-rpath" flag with a separated argument]) |
5626 | 5693 | _LT_TAGDECL([], [hardcode_direct], [0], |
5774 | 5841 | _LT_TAGVAR(hardcode_direct, $1)=no |
5775 | 5842 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
5776 | 5843 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
5777 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
5778 | 5844 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
5779 | 5845 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
5780 | 5846 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
6144 | 6210 | esac |
6145 | 6211 | ;; |
6146 | 6212 | |
6147 | freebsd[[12]]*) | |
6213 | freebsd2.*) | |
6148 | 6214 | # C++ shared libraries reported to be fairly broken before |
6149 | 6215 | # switch to ELF |
6150 | 6216 | _LT_TAGVAR(ld_shlibs, $1)=no |
6905 | 6971 | } |
6906 | 6972 | }; |
6907 | 6973 | _LT_EOF |
6974 | ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF | |
6975 | package foo | |
6976 | func foo() { | |
6977 | } | |
6978 | _LT_EOF | |
6908 | 6979 | ]) |
6909 | 6980 | |
6910 | 6981 | _lt_libdeps_save_CFLAGS=$CFLAGS |
6911 | 6982 | case "$CC $CFLAGS " in #( |
6912 | 6983 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
6913 | 6984 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
6985 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; | |
6914 | 6986 | esac |
6915 | 6987 | |
6916 | 6988 | dnl Parse the compiler output and extract the necessary |
7107 | 7179 | _LT_TAGVAR(hardcode_direct, $1)=no |
7108 | 7180 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
7109 | 7181 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
7110 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
7111 | 7182 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
7112 | 7183 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
7113 | 7184 | _LT_TAGVAR(hardcode_automatic, $1)=no |
7240 | 7311 | _LT_TAGVAR(hardcode_direct, $1)=no |
7241 | 7312 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
7242 | 7313 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
7243 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
7244 | 7314 | _LT_TAGVAR(hardcode_libdir_separator, $1)= |
7245 | 7315 | _LT_TAGVAR(hardcode_minus_L, $1)=no |
7246 | 7316 | _LT_TAGVAR(hardcode_automatic, $1)=no |
7423 | 7493 | ])# _LT_LANG_GCJ_CONFIG |
7424 | 7494 | |
7425 | 7495 | |
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 | ||
7426 | 7563 | # _LT_LANG_RC_CONFIG([TAG]) |
7427 | 7564 | # ------------------------- |
7428 | 7565 | # Ensure that the configuration variables for the Windows resource compiler |
7490 | 7627 | AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) |
7491 | 7628 | dnl aclocal-1.4 backwards compatibility: |
7492 | 7629 | 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 | ]) | |
7493 | 7637 | |
7494 | 7638 | |
7495 | 7639 | # LT_PROG_RC |
8156 | 8300 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
8157 | 8301 | m4_define([_LT_WITH_PIC], |
8158 | 8302 | [AC_ARG_WITH([pic], |
8159 | [AS_HELP_STRING([--with-pic], | |
8303 | [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], | |
8160 | 8304 | [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], | |
8162 | 8321 | [pic_mode=default]) |
8163 | 8322 | |
8164 | 8323 | test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) |
8330 | 8489 | |
8331 | 8490 | # @configure_input@ |
8332 | 8491 | |
8333 | # serial 3293 ltversion.m4 | |
8492 | # serial 3337 ltversion.m4 | |
8334 | 8493 | # This file is part of GNU Libtool |
8335 | 8494 | |
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]) | |
8338 | 8497 | |
8339 | 8498 | 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' | |
8342 | 8501 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) |
8343 | 8502 | _LT_DECL(, macro_revision, 0) |
8344 | 8503 | ]) |
0 | 0 | #! /bin/sh |
1 | 1 | # Attempt to guess a canonical system name. |
2 | 2 | # 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' | |
7 | 7 | |
8 | 8 | # This file is free software; you can redistribute it and/or modify it |
9 | 9 | # under the terms of the GNU General Public License as published by |
16 | 16 | # General Public License for more details. |
17 | 17 | # |
18 | 18 | # 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/>. | |
22 | 20 | # |
23 | 21 | # As a special exception to the GNU General Public License, if you |
24 | 22 | # distribute this file as part of a program that contains a |
55 | 53 | GNU config.guess ($timestamp) |
56 | 54 | |
57 | 55 | 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. | |
60 | 59 | |
61 | 60 | This is free software; see the source for copying conditions. There is NO |
62 | 61 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
143 | 142 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
144 | 143 | *:NetBSD:*:*) |
145 | 144 | # NetBSD (nbsd) targets should (where applicable) match one or |
146 | # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, | |
145 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, | |
147 | 146 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
148 | 147 | # switched to ELF, *-*-netbsd* would select the old |
149 | 148 | # object file format. This provides both forward |
179 | 178 | fi |
180 | 179 | ;; |
181 | 180 | *) |
182 | os=netbsd | |
181 | os=netbsd | |
183 | 182 | ;; |
184 | 183 | esac |
185 | 184 | # The OS release |
222 | 221 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
223 | 222 | ;; |
224 | 223 | *5.*) |
225 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | |
224 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | |
226 | 225 | ;; |
227 | 226 | esac |
228 | 227 | # According to Compaq, /usr/sbin/psrinfo has been available on |
268 | 267 | # A Xn.n version is an unreleased experimental baselevel. |
269 | 268 | # 1.2 uses "1.2" for uname -r. |
270 | 269 | 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 ;; | |
272 | 274 | Alpha\ *:Windows_NT*:*) |
273 | 275 | # How do we know it's Interix rather than the generic POSIX subsystem? |
274 | 276 | # Should we change UNAME_MACHINE based on the output of uname instead |
294 | 296 | echo s390-ibm-zvmoe |
295 | 297 | exit ;; |
296 | 298 | *:OS400:*:*) |
297 | echo powerpc-ibm-os400 | |
299 | echo powerpc-ibm-os400 | |
298 | 300 | exit ;; |
299 | 301 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
300 | 302 | echo arm-acorn-riscix${UNAME_RELEASE} |
393 | 395 | # MiNT. But MiNT is downward compatible to TOS, so this should |
394 | 396 | # be no problem. |
395 | 397 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
396 | echo m68k-atari-mint${UNAME_RELEASE} | |
398 | echo m68k-atari-mint${UNAME_RELEASE} | |
397 | 399 | exit ;; |
398 | 400 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
399 | 401 | echo m68k-atari-mint${UNAME_RELEASE} |
400 | exit ;; | |
402 | exit ;; | |
401 | 403 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
402 | echo m68k-atari-mint${UNAME_RELEASE} | |
404 | echo m68k-atari-mint${UNAME_RELEASE} | |
403 | 405 | exit ;; |
404 | 406 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
405 | echo m68k-milan-mint${UNAME_RELEASE} | |
406 | exit ;; | |
407 | echo m68k-milan-mint${UNAME_RELEASE} | |
408 | exit ;; | |
407 | 409 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
408 | echo m68k-hades-mint${UNAME_RELEASE} | |
409 | exit ;; | |
410 | echo m68k-hades-mint${UNAME_RELEASE} | |
411 | exit ;; | |
410 | 412 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
411 | echo m68k-unknown-mint${UNAME_RELEASE} | |
412 | exit ;; | |
413 | echo m68k-unknown-mint${UNAME_RELEASE} | |
414 | exit ;; | |
413 | 415 | m68k:machten:*:*) |
414 | 416 | echo m68k-apple-machten${UNAME_RELEASE} |
415 | 417 | exit ;; |
479 | 481 | echo m88k-motorola-sysv3 |
480 | 482 | exit ;; |
481 | 483 | 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` | |
484 | 486 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
485 | 487 | then |
486 | 488 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
493 | 495 | else |
494 | 496 | echo i586-dg-dgux${UNAME_RELEASE} |
495 | 497 | fi |
496 | exit ;; | |
498 | exit ;; | |
497 | 499 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
498 | 500 | echo m88k-dolphin-sysv3 |
499 | 501 | exit ;; |
550 | 552 | echo rs6000-ibm-aix3.2 |
551 | 553 | fi |
552 | 554 | exit ;; |
553 | *:AIX:*:[456]) | |
555 | *:AIX:*:[4567]) | |
554 | 556 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
555 | 557 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
556 | 558 | IBM_ARCH=rs6000 |
593 | 595 | 9000/[678][0-9][0-9]) |
594 | 596 | if [ -x /usr/bin/getconf ]; then |
595 | 597 | 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" ;; | |
604 | 606 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
605 | esac ;; | |
606 | esac | |
607 | esac ;; | |
608 | esac | |
607 | 609 | fi |
608 | 610 | if [ "${HP_ARCH}" = "" ]; then |
609 | 611 | 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 | } | |
642 | 644 | EOF |
643 | 645 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` |
644 | 646 | test -z "$HP_ARCH" && HP_ARCH=hppa |
729 | 731 | exit ;; |
730 | 732 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
731 | 733 | echo c1-convex-bsd |
732 | exit ;; | |
734 | exit ;; | |
733 | 735 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
734 | 736 | if getsysinfo -f scalar_acc |
735 | 737 | then echo c32-convex-bsd |
736 | 738 | else echo c2-convex-bsd |
737 | 739 | fi |
738 | exit ;; | |
740 | exit ;; | |
739 | 741 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
740 | 742 | echo c34-convex-bsd |
741 | exit ;; | |
743 | exit ;; | |
742 | 744 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
743 | 745 | echo c38-convex-bsd |
744 | exit ;; | |
746 | exit ;; | |
745 | 747 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
746 | 748 | echo c4-convex-bsd |
747 | exit ;; | |
749 | exit ;; | |
748 | 750 | CRAY*Y-MP:*:*:*) |
749 | 751 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
750 | 752 | exit ;; |
768 | 770 | exit ;; |
769 | 771 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
770 | 772 | 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 ;; | |
775 | 777 | 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}" | |
779 | 781 | exit ;; |
780 | 782 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
781 | 783 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
787 | 789 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
788 | 790 | exit ;; |
789 | 791 | *: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 | |
793 | 794 | amd64) |
794 | 795 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; |
795 | 796 | *) |
796 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
797 | echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
797 | 798 | esac |
798 | 799 | exit ;; |
799 | 800 | i*:CYGWIN*:*) |
802 | 803 | *:MINGW*:*) |
803 | 804 | echo ${UNAME_MACHINE}-pc-mingw32 |
804 | 805 | exit ;; |
806 | i*:MSYS*:*) | |
807 | echo ${UNAME_MACHINE}-pc-msys | |
808 | exit ;; | |
805 | 809 | 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 | |
808 | 812 | exit ;; |
809 | 813 | i*:PW*:*) |
810 | 814 | echo ${UNAME_MACHINE}-pc-pw32 |
811 | 815 | exit ;; |
812 | 816 | *:Interix*:*) |
813 | case ${UNAME_MACHINE} in | |
817 | case ${UNAME_MACHINE} in | |
814 | 818 | x86) |
815 | 819 | echo i586-pc-interix${UNAME_RELEASE} |
816 | 820 | exit ;; |
856 | 860 | i*86:Minix:*:*) |
857 | 861 | echo ${UNAME_MACHINE}-pc-minix |
858 | 862 | 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 ;; | |
859 | 870 | alpha:Linux:*:*) |
860 | 871 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
861 | 872 | EV5) UNAME_MACHINE=alphaev5 ;; |
865 | 876 | EV6) UNAME_MACHINE=alphaev6 ;; |
866 | 877 | EV67) UNAME_MACHINE=alphaev67 ;; |
867 | 878 | EV68*) UNAME_MACHINE=alphaev68 ;; |
868 | esac | |
879 | esac | |
869 | 880 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
870 | 881 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
871 | 882 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
877 | 888 | then |
878 | 889 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
879 | 890 | 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 | |
881 | 898 | fi |
882 | 899 | exit ;; |
883 | 900 | avr32*:Linux:*:*) |
884 | 901 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
885 | 902 | exit ;; |
886 | 903 | cris:Linux:*:*) |
887 | echo cris-axis-linux-gnu | |
904 | echo ${UNAME_MACHINE}-axis-linux-gnu | |
888 | 905 | exit ;; |
889 | 906 | crisv32:Linux:*:*) |
890 | echo crisv32-axis-linux-gnu | |
907 | echo ${UNAME_MACHINE}-axis-linux-gnu | |
891 | 908 | exit ;; |
892 | 909 | 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 | |
894 | 914 | exit ;; |
895 | 915 | i*86:Linux:*:*) |
896 | 916 | LIBC=gnu |
932 | 952 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
933 | 953 | ;; |
934 | 954 | or32:Linux:*:*) |
935 | echo or32-unknown-linux-gnu | |
955 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
936 | 956 | exit ;; |
937 | 957 | padre:Linux:*:*) |
938 | 958 | echo sparc-unknown-linux-gnu |
958 | 978 | echo ${UNAME_MACHINE}-ibm-linux |
959 | 979 | exit ;; |
960 | 980 | sh64*:Linux:*:*) |
961 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
981 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
962 | 982 | exit ;; |
963 | 983 | sh*:Linux:*:*) |
964 | 984 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
966 | 986 | sparc:Linux:*:* | sparc64:Linux:*:*) |
967 | 987 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
968 | 988 | exit ;; |
989 | tile*:Linux:*:*) | |
990 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
991 | exit ;; | |
969 | 992 | vax:Linux:*:*) |
970 | 993 | echo ${UNAME_MACHINE}-dec-linux-gnu |
971 | 994 | exit ;; |
972 | 995 | x86_64:Linux:*:*) |
973 | echo x86_64-unknown-linux-gnu | |
996 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
974 | 997 | exit ;; |
975 | 998 | xtensa*:Linux:*:*) |
976 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
999 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
977 | 1000 | exit ;; |
978 | 1001 | i*86:DYNIX/ptx:4*:*) |
979 | 1002 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
982 | 1005 | echo i386-sequent-sysv4 |
983 | 1006 | exit ;; |
984 | 1007 | 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, | |
988 | 1011 | # I just have to hope. -- rms. |
989 | # Use sysv4.2uw... so that sysv4* matches it. | |
1012 | # Use sysv4.2uw... so that sysv4* matches it. | |
990 | 1013 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
991 | 1014 | exit ;; |
992 | 1015 | i*86:OS/2:*:*) |
1018 | 1041 | fi |
1019 | 1042 | exit ;; |
1020 | 1043 | i*86:*:5:[678]*) |
1021 | # UnixWare 7.x, OpenUNIX and OpenServer 6. | |
1044 | # UnixWare 7.x, OpenUNIX and OpenServer 6. | |
1022 | 1045 | case `/bin/uname -X | grep "^Machine"` in |
1023 | 1046 | *486*) UNAME_MACHINE=i486 ;; |
1024 | 1047 | *Pentium) UNAME_MACHINE=i586 ;; |
1046 | 1069 | exit ;; |
1047 | 1070 | pc:*:*:*) |
1048 | 1071 | # 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. | |
1051 | 1074 | # Note: whatever this is, it MUST be the same as what config.sub |
1052 | 1075 | # prints for the "djgpp" host, or else GDB configury will decide that |
1053 | 1076 | # this is a cross-build. |
1054 | 1077 | echo i586-pc-msdosdjgpp |
1055 | exit ;; | |
1078 | exit ;; | |
1056 | 1079 | Intel:Mach:3*:*) |
1057 | 1080 | echo i386-pc-mach3 |
1058 | 1081 | exit ;; |
1087 | 1110 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1088 | 1111 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; |
1089 | 1112 | 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; } ;; | |
1092 | 1115 | NCR*:*:4.2:* | MPRAS*:*:4.2:*) |
1093 | 1116 | OS_REL='.3' |
1094 | 1117 | test -r /etc/.relid \ |
1131 | 1154 | echo ns32k-sni-sysv |
1132 | 1155 | fi |
1133 | 1156 | 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 ;; | |
1138 | 1161 | *:UNIX_System_V:4*:FTX*) |
1139 | 1162 | # From Gerald Hewes <hewes@openmarket.com>. |
1140 | 1163 | # How about differentiating between stratus architectures? -djm |
1160 | 1183 | exit ;; |
1161 | 1184 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1162 | 1185 | if [ -d /usr/nec ]; then |
1163 | echo mips-nec-sysv${UNAME_RELEASE} | |
1186 | echo mips-nec-sysv${UNAME_RELEASE} | |
1164 | 1187 | else |
1165 | echo mips-unknown-sysv${UNAME_RELEASE} | |
1166 | fi | |
1167 | exit ;; | |
1188 | echo mips-unknown-sysv${UNAME_RELEASE} | |
1189 | fi | |
1190 | exit ;; | |
1168 | 1191 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1169 | 1192 | echo powerpc-be-beos |
1170 | 1193 | exit ;; |
1229 | 1252 | *:QNX:*:4*) |
1230 | 1253 | echo i386-pc-qnx |
1231 | 1254 | exit ;; |
1232 | NSE-?:NONSTOP_KERNEL:*:*) | |
1255 | NEO-?:NONSTOP_KERNEL:*:*) | |
1256 | echo neo-tandem-nsk${UNAME_RELEASE} | |
1257 | exit ;; | |
1258 | NSE-*:NONSTOP_KERNEL:*:*) | |
1233 | 1259 | echo nse-tandem-nsk${UNAME_RELEASE} |
1234 | 1260 | exit ;; |
1235 | 1261 | NSR-?:NONSTOP_KERNEL:*:*) |
1274 | 1300 | echo pdp10-unknown-its |
1275 | 1301 | exit ;; |
1276 | 1302 | SEI:*:*:SEIUX) |
1277 | echo mips-sei-seiux${UNAME_RELEASE} | |
1303 | echo mips-sei-seiux${UNAME_RELEASE} | |
1278 | 1304 | exit ;; |
1279 | 1305 | *:DragonFly:*:*) |
1280 | 1306 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
1281 | 1307 | exit ;; |
1282 | 1308 | *:*VMS:*:*) |
1283 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
1309 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
1284 | 1310 | case "${UNAME_MACHINE}" in |
1285 | 1311 | A*) echo alpha-dec-vms ; exit ;; |
1286 | 1312 | I*) echo ia64-dec-vms ; exit ;; |
1297 | 1323 | exit ;; |
1298 | 1324 | i*86:AROS:*:*) |
1299 | 1325 | echo ${UNAME_MACHINE}-pc-aros |
1326 | exit ;; | |
1327 | x86_64:VMkernel:*:*) | |
1328 | echo ${UNAME_MACHINE}-unknown-esx | |
1300 | 1329 | exit ;; |
1301 | 1330 | esac |
1302 | 1331 | |
1320 | 1349 | #include <sys/param.h> |
1321 | 1350 | printf ("m68k-sony-newsos%s\n", |
1322 | 1351 | #ifdef NEWSOS4 |
1323 | "4" | |
1352 | "4" | |
1324 | 1353 | #else |
1325 | "" | |
1326 | #endif | |
1327 | ); exit (0); | |
1354 | "" | |
1355 | #endif | |
1356 | ); exit (0); | |
1328 | 1357 | #endif |
1329 | 1358 | #endif |
1330 | 1359 |
547 | 547 | /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a |
548 | 548 | `char[]'. */ |
549 | 549 | #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 | |
550 | 555 | |
551 | 556 | /* Number of bits in a file offset, on hosts where this is settable. */ |
552 | 557 | #undef _FILE_OFFSET_BITS |
0 | 0 | #! /bin/sh |
1 | 1 | # Configuration validation subroutine script. |
2 | 2 | # 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' | |
7 | 7 | |
8 | 8 | # This file is (in principle) common to ALL GNU software. |
9 | 9 | # The presence of a machine in this file suggests that SOME GNU software |
20 | 20 | # GNU General Public License for more details. |
21 | 21 | # |
22 | 22 | # 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/>. | |
26 | 24 | # |
27 | 25 | # As a special exception to the GNU General Public License, if you |
28 | 26 | # distribute this file as part of a program that contains a |
74 | 72 | version="\ |
75 | 73 | GNU config.sub ($timestamp) |
76 | 74 | |
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. | |
79 | 78 | |
80 | 79 | This is free software; see the source for copying conditions. There is NO |
81 | 80 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
122 | 121 | # Here we must recognize all the valid KERNEL-OS combinations. |
123 | 122 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
124 | 123 | 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* | \ | |
127 | 127 | kopensolaris*-gnu* | \ |
128 | 128 | storm-chaos* | os2-emx* | rtmk-nova*) |
129 | 129 | os=-$maybe_os |
130 | 130 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
131 | ;; | |
132 | android-linux) | |
133 | os=-linux-android | |
134 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
131 | 135 | ;; |
132 | 136 | *) |
133 | 137 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
155 | 159 | os= |
156 | 160 | basic_machine=$1 |
157 | 161 | ;; |
158 | -bluegene*) | |
159 | os=-cnk | |
162 | -bluegene*) | |
163 | os=-cnk | |
160 | 164 | ;; |
161 | 165 | -sim | -cisco | -oki | -wec | -winbond) |
162 | 166 | os= |
172 | 176 | os=-chorusos |
173 | 177 | basic_machine=$1 |
174 | 178 | ;; |
175 | -chorusrdb) | |
176 | os=-chorusrdb | |
179 | -chorusrdb) | |
180 | os=-chorusrdb | |
177 | 181 | basic_machine=$1 |
178 | ;; | |
182 | ;; | |
179 | 183 | -hiux*) |
180 | 184 | os=-hiuxwe2 |
181 | 185 | ;; |
219 | 223 | ;; |
220 | 224 | -isc*) |
221 | 225 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
226 | ;; | |
227 | -lynx*178) | |
228 | os=-lynxos178 | |
229 | ;; | |
230 | -lynx*5) | |
231 | os=-lynxos5 | |
222 | 232 | ;; |
223 | 233 | -lynx*) |
224 | 234 | os=-lynxos |
244 | 254 | # Some are omitted here because they have special meanings below. |
245 | 255 | 1750a | 580 \ |
246 | 256 | | a29k \ |
257 | | aarch64 | aarch64_be \ | |
247 | 258 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
248 | 259 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
249 | 260 | | am33_2.0 \ |
250 | 261 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
262 | | be32 | be64 \ | |
251 | 263 | | bfin \ |
252 | 264 | | c4x | clipper \ |
253 | 265 | | d10v | d30v | dlx | dsp16xx \ |
266 | | epiphany \ | |
254 | 267 | | fido | fr30 | frv \ |
255 | 268 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
269 | | hexagon \ | |
256 | 270 | | i370 | i860 | i960 | ia64 \ |
257 | 271 | | ip2k | iq2000 \ |
272 | | le32 | le64 \ | |
258 | 273 | | lm32 \ |
259 | 274 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
260 | 275 | | maxq | mb | microblaze | mcore | mep | metag \ |
280 | 295 | | moxie \ |
281 | 296 | | mt \ |
282 | 297 | | msp430 \ |
298 | | nds32 | nds32le | nds32be \ | |
283 | 299 | | nios | nios2 \ |
284 | 300 | | ns16k | ns32k \ |
301 | | open8 \ | |
285 | 302 | | or32 \ |
286 | 303 | | pdp10 | pdp11 | pj | pjl \ |
287 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | |
304 | | powerpc | powerpc64 | powerpc64le | powerpcle \ | |
288 | 305 | | pyramid \ |
289 | | rx \ | |
306 | | rl78 | rx \ | |
290 | 307 | | score \ |
291 | 308 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
292 | 309 | | sh64 | sh64le \ |
293 | 310 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
294 | 311 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
295 | | spu | strongarm \ | |
296 | | tahoe | thumb | tic4x | tic80 | tron \ | |
312 | | spu \ | |
313 | | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | |
297 | 314 | | ubicom32 \ |
298 | | v850 | v850e \ | |
315 | | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | |
299 | 316 | | we32k \ |
300 | | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | |
317 | | x86 | xc16x | xstormy16 | xtensa \ | |
301 | 318 | | z8k | z80) |
302 | 319 | basic_machine=$basic_machine-unknown |
303 | 320 | ;; |
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) | |
306 | 331 | basic_machine=$basic_machine-unknown |
307 | 332 | os=-none |
308 | 333 | ;; |
310 | 335 | ;; |
311 | 336 | ms1) |
312 | 337 | 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 | |
313 | 353 | ;; |
314 | 354 | |
315 | 355 | # We use `pc' rather than `unknown' |
326 | 366 | # Recognize the basic CPU types with company name. |
327 | 367 | 580-* \ |
328 | 368 | | a29k-* \ |
369 | | aarch64-* | aarch64_be-* \ | |
329 | 370 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
330 | 371 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
331 | 372 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ |
332 | 373 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
333 | 374 | | avr-* | avr32-* \ |
375 | | be32-* | be64-* \ | |
334 | 376 | | bfin-* | bs2000-* \ |
335 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | |
377 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ | |
336 | 378 | | clipper-* | craynv-* | cydra-* \ |
337 | 379 | | d10v-* | d30v-* | dlx-* \ |
338 | 380 | | elxsi-* \ |
339 | 381 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ |
340 | 382 | | h8300-* | h8500-* \ |
341 | 383 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
384 | | hexagon-* \ | |
342 | 385 | | i*86-* | i860-* | i960-* | ia64-* \ |
343 | 386 | | ip2k-* | iq2000-* \ |
387 | | le32-* | le64-* \ | |
344 | 388 | | lm32-* \ |
345 | 389 | | m32c-* | m32r-* | m32rle-* \ |
346 | 390 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
366 | 410 | | mmix-* \ |
367 | 411 | | mt-* \ |
368 | 412 | | msp430-* \ |
413 | | nds32-* | nds32le-* | nds32be-* \ | |
369 | 414 | | nios-* | nios2-* \ |
370 | 415 | | none-* | np1-* | ns16k-* | ns32k-* \ |
416 | | open8-* \ | |
371 | 417 | | orion-* \ |
372 | 418 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
373 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | |
419 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | |
374 | 420 | | pyramid-* \ |
375 | | romp-* | rs6000-* | rx-* \ | |
421 | | rl78-* | romp-* | rs6000-* | rx-* \ | |
376 | 422 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
377 | 423 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
378 | 424 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
379 | 425 | | 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*-* \ | |
383 | 430 | | tron-* \ |
384 | 431 | | ubicom32-* \ |
385 | | v850-* | v850e-* | vax-* \ | |
432 | | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | |
433 | | vax-* \ | |
386 | 434 | | we32k-* \ |
387 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | |
435 | | x86-* | x86_64-* | xc16x-* | xps100-* \ | |
388 | 436 | | xstormy16-* | xtensa*-* \ |
389 | 437 | | ymp-* \ |
390 | 438 | | z8k-* | z80-*) |
409 | 457 | basic_machine=a29k-amd |
410 | 458 | os=-udi |
411 | 459 | ;; |
412 | abacus) | |
460 | abacus) | |
413 | 461 | basic_machine=abacus-unknown |
414 | 462 | ;; |
415 | 463 | adobe68k) |
479 | 527 | basic_machine=powerpc-ibm |
480 | 528 | os=-cnk |
481 | 529 | ;; |
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 | ;; | |
482 | 539 | c90) |
483 | 540 | basic_machine=c90-cray |
484 | 541 | os=-unicos |
485 | 542 | ;; |
486 | cegcc) | |
543 | cegcc) | |
487 | 544 | basic_machine=arm-unknown |
488 | 545 | os=-cegcc |
489 | 546 | ;; |
515 | 572 | basic_machine=craynv-cray |
516 | 573 | os=-unicosmp |
517 | 574 | ;; |
518 | cr16) | |
575 | cr16 | cr16-*) | |
519 | 576 | basic_machine=cr16-unknown |
520 | 577 | os=-elf |
521 | 578 | ;; |
673 | 730 | i370-ibm* | ibm*) |
674 | 731 | basic_machine=i370-ibm |
675 | 732 | ;; |
676 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? | |
677 | 733 | i*86v32) |
678 | 734 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
679 | 735 | os=-sysv32 |
731 | 787 | basic_machine=ns32k-utek |
732 | 788 | os=-sysv |
733 | 789 | ;; |
734 | microblaze) | |
790 | microblaze) | |
735 | 791 | basic_machine=microblaze-xilinx |
736 | 792 | ;; |
737 | 793 | mingw32) |
770 | 826 | ms1-*) |
771 | 827 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
772 | 828 | ;; |
829 | msys) | |
830 | basic_machine=i386-pc | |
831 | os=-msys | |
832 | ;; | |
773 | 833 | mvs) |
774 | 834 | basic_machine=i370-ibm |
775 | 835 | os=-mvs |
836 | ;; | |
837 | nacl) | |
838 | basic_machine=le32-unknown | |
839 | os=-nacl | |
776 | 840 | ;; |
777 | 841 | ncr3000) |
778 | 842 | basic_machine=i486-ncr |
838 | 902 | np1) |
839 | 903 | basic_machine=np1-gould |
840 | 904 | ;; |
905 | neo-tandem) | |
906 | basic_machine=neo-tandem | |
907 | ;; | |
908 | nse-tandem) | |
909 | basic_machine=nse-tandem | |
910 | ;; | |
841 | 911 | nsr-tandem) |
842 | 912 | basic_machine=nsr-tandem |
843 | 913 | ;; |
920 | 990 | ;; |
921 | 991 | power) basic_machine=power-ibm |
922 | 992 | ;; |
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/^[^-]*-//'` | |
926 | 997 | ;; |
927 | 998 | ppcle | powerpclittle | ppc-le | powerpc-little) |
928 | 999 | basic_machine=powerpcle-unknown |
1016 | 1087 | basic_machine=i860-stratus |
1017 | 1088 | os=-sysv4 |
1018 | 1089 | ;; |
1090 | strongarm-* | thumb-*) | |
1091 | basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1092 | ;; | |
1019 | 1093 | sun2) |
1020 | 1094 | basic_machine=m68000-sun |
1021 | 1095 | ;; |
1072 | 1146 | basic_machine=t90-cray |
1073 | 1147 | os=-unicos |
1074 | 1148 | ;; |
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 | ;; | |
1087 | 1149 | tile*) |
1088 | basic_machine=tile-unknown | |
1150 | basic_machine=$basic_machine-unknown | |
1089 | 1151 | os=-linux-gnu |
1090 | 1152 | ;; |
1091 | 1153 | tx39) |
1154 | 1216 | ;; |
1155 | 1217 | xps | xps100) |
1156 | 1218 | basic_machine=xps100-honeywell |
1219 | ;; | |
1220 | xscale-* | xscalee[bl]-*) | |
1221 | basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` | |
1157 | 1222 | ;; |
1158 | 1223 | ymp) |
1159 | 1224 | basic_machine=ymp-cray |
1252 | 1317 | if [ x"$os" != x"" ] |
1253 | 1318 | then |
1254 | 1319 | 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. | |
1257 | 1322 | # -solaris* is a basic system type, with this one exception. |
1258 | -auroraux) | |
1259 | os=-auroraux | |
1323 | -auroraux) | |
1324 | os=-auroraux | |
1260 | 1325 | ;; |
1261 | 1326 | -solaris1 | -solaris1.*) |
1262 | 1327 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
1292 | 1357 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1293 | 1358 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1294 | 1359 | | -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* \ | |
1297 | 1363 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1298 | 1364 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1299 | 1365 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1340 | 1406 | -opened*) |
1341 | 1407 | os=-openedition |
1342 | 1408 | ;; |
1343 | -os400*) | |
1409 | -os400*) | |
1344 | 1410 | os=-os400 |
1345 | 1411 | ;; |
1346 | 1412 | -wince*) |
1389 | 1455 | -sinix*) |
1390 | 1456 | os=-sysv4 |
1391 | 1457 | ;; |
1392 | -tpf*) | |
1458 | -tpf*) | |
1393 | 1459 | os=-tpf |
1394 | 1460 | ;; |
1395 | 1461 | -triton*) |
1433 | 1499 | ;; |
1434 | 1500 | -dicos*) |
1435 | 1501 | os=-dicos |
1502 | ;; | |
1503 | -nacl*) | |
1436 | 1504 | ;; |
1437 | 1505 | -none) |
1438 | 1506 | ;; |
1456 | 1524 | # system, and we'll never get to this point. |
1457 | 1525 | |
1458 | 1526 | case $basic_machine in |
1459 | score-*) | |
1527 | score-*) | |
1460 | 1528 | os=-elf |
1461 | 1529 | ;; |
1462 | spu-*) | |
1530 | spu-*) | |
1463 | 1531 | os=-elf |
1464 | 1532 | ;; |
1465 | 1533 | *-acorn) |
1471 | 1539 | arm*-semi) |
1472 | 1540 | os=-aout |
1473 | 1541 | ;; |
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 | |
1476 | 1556 | ;; |
1477 | 1557 | # This must come before the *-dec entry. |
1478 | 1558 | pdp10-*) |
1492 | 1572 | ;; |
1493 | 1573 | m68000-sun) |
1494 | 1574 | os=-sunos3 |
1495 | # This also exists in the configure program, but was not the | |
1496 | # default. | |
1497 | # os=-sunos4 | |
1498 | 1575 | ;; |
1499 | 1576 | m68*-cisco) |
1500 | 1577 | os=-aout |
1501 | 1578 | ;; |
1502 | mep-*) | |
1579 | mep-*) | |
1503 | 1580 | os=-elf |
1504 | 1581 | ;; |
1505 | 1582 | mips*-cisco) |
1526 | 1603 | *-ibm) |
1527 | 1604 | os=-aix |
1528 | 1605 | ;; |
1529 | *-knuth) | |
1606 | *-knuth) | |
1530 | 1607 | os=-mmixware |
1531 | 1608 | ;; |
1532 | 1609 | *-wec) |
0 | 0 | #! /bin/sh |
1 | 1 | # 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. | |
3 | 3 | # |
4 | 4 | # Report bugs to <unbound-bugs@nlnetlabs.nl>. |
5 | 5 | # |
6 | 6 | # |
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. | |
10 | 8 | # |
11 | 9 | # |
12 | 10 | # This configure script is free software; the Free Software Foundation |
135 | 133 | # CDPATH. |
136 | 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
137 | 135 | |
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;} | |
138 | 161 | if test "x$CONFIG_SHELL" = x; then |
139 | 162 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
140 | 163 | emulate sh |
168 | 191 | else |
169 | 192 | exitcode=1; echo positional parameters were not saved. |
170 | 193 | fi |
171 | test x\$exitcode = x0 || exit 1" | |
194 | test x\$exitcode = x0 || exit 1 | |
195 | test -x / || exit 1" | |
172 | 196 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
173 | 197 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
174 | 198 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
221 | 245 | |
222 | 246 | |
223 | 247 | 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 | |
239 | 267 | fi |
240 | 268 | |
241 | 269 | if test x$as_have_required = xno; then : |
338 | 366 | |
339 | 367 | |
340 | 368 | } # 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 | |
341 | 377 | # as_fn_append VAR VALUE |
342 | 378 | # ---------------------- |
343 | 379 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
459 | 495 | chmod +x "$as_me.lineno" || |
460 | 496 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
461 | 497 | |
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 | |
462 | 502 | # Don't try to exec as it changes $[0], causing all sort of problems |
463 | 503 | # (the dirname of $[0] is not the place where we might find the |
464 | 504 | # original and so on. Autoconf is especially sensitive to this). |
493 | 533 | # ... but there are two gotchas: |
494 | 534 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
495 | 535 | # 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'. | |
497 | 537 | 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' | |
499 | 539 | elif ln conf$$.file conf$$ 2>/dev/null; then |
500 | 540 | as_ln_s=ln |
501 | 541 | else |
502 | as_ln_s='cp -p' | |
542 | as_ln_s='cp -pR' | |
503 | 543 | fi |
504 | 544 | else |
505 | as_ln_s='cp -p' | |
545 | as_ln_s='cp -pR' | |
506 | 546 | fi |
507 | 547 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
508 | 548 | rmdir conf$$.dir 2>/dev/null |
514 | 554 | as_mkdir_p=false |
515 | 555 | fi |
516 | 556 | |
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 | |
539 | 559 | |
540 | 560 | # Sed expression to map a string onto a valid CPP name. |
541 | 561 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
569 | 589 | # Identity of this package. |
570 | 590 | PACKAGE_NAME='unbound' |
571 | 591 | 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' | |
574 | 594 | PACKAGE_BUGREPORT='unbound-bugs@nlnetlabs.nl' |
575 | 595 | PACKAGE_URL='' |
576 | 596 | |
1269 | 1289 | if test "x$host_alias" != x; then |
1270 | 1290 | if test "x$build_alias" = x; then |
1271 | 1291 | 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 | |
1274 | 1292 | elif test "x$build_alias" != "x$host_alias"; then |
1275 | 1293 | cross_compiling=yes |
1276 | 1294 | fi |
1356 | 1374 | # Omit some internal or obsolete options to make the list less imposing. |
1357 | 1375 | # This message is too long to be a string in the A/UX 3.1 sh. |
1358 | 1376 | 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. | |
1360 | 1378 | |
1361 | 1379 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1362 | 1380 | |
1422 | 1440 | |
1423 | 1441 | if test -n "$ac_init_help"; then |
1424 | 1442 | 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:";; | |
1426 | 1444 | esac |
1427 | 1445 | cat <<\_ACEOF |
1428 | 1446 | |
1479 | 1497 | not exist if you are content with the builtin. |
1480 | 1498 | --with-username=user set default user that unbound changes to (default |
1481 | 1499 | 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 | |
1483 | 1501 | both] |
1484 | 1502 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1485 | 1503 | --with-sysroot=DIR Search for dependent libraries within DIR |
1590 | 1608 | test -n "$ac_init_help" && exit $ac_status |
1591 | 1609 | if $ac_init_version; then |
1592 | 1610 | 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. | |
1597 | 1615 | This configure script is free software; the Free Software Foundation |
1598 | 1616 | gives unlimited permission to copy, distribute and modify it. |
1599 | 1617 | _ACEOF |
1870 | 1888 | test ! -s conftest.err |
1871 | 1889 | } && test -s conftest$ac_exeext && { |
1872 | 1890 | test "$cross_compiling" = yes || |
1873 | $as_test_x conftest$ac_exeext | |
1891 | test -x conftest$ac_exeext | |
1874 | 1892 | }; then : |
1875 | 1893 | ac_retval=0 |
1876 | 1894 | else |
2116 | 2134 | This file contains any messages produced by compilers while |
2117 | 2135 | running configure, to aid debugging if configure makes a mistake. |
2118 | 2136 | |
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 | |
2121 | 2139 | |
2122 | 2140 | $ $0 $@ |
2123 | 2141 | |
2466 | 2484 | |
2467 | 2485 | |
2468 | 2486 | LIBUNBOUND_CURRENT=3 |
2469 | LIBUNBOUND_REVISION=4 | |
2487 | LIBUNBOUND_REVISION=5 | |
2470 | 2488 | LIBUNBOUND_AGE=1 |
2471 | 2489 | # 1.0.0 had 0:12:0 |
2472 | 2490 | # 1.0.1 had 0:13:0 |
2502 | 2520 | # 1.4.17 had 3:2:1 |
2503 | 2521 | # 1.4.18 had 3:3:1 |
2504 | 2522 | # 1.4.19 had 3:4:1 |
2523 | # 1.4.20 had 4:0:2 # adds libunbound.ttl | |
2505 | 2524 | |
2506 | 2525 | # Current -- the number of the binary API that we're implementing |
2507 | 2526 | # Revision -- which iteration of the implementation of the binary |
2711 | 2730 | IFS=$as_save_IFS |
2712 | 2731 | test -z "$as_dir" && as_dir=. |
2713 | 2732 | 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 | |
2715 | 2734 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2716 | 2735 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2717 | 2736 | break 2 |
2751 | 2770 | IFS=$as_save_IFS |
2752 | 2771 | test -z "$as_dir" && as_dir=. |
2753 | 2772 | 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 | |
2755 | 2774 | ac_cv_prog_ac_ct_CC="gcc" |
2756 | 2775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2757 | 2776 | break 2 |
2804 | 2823 | IFS=$as_save_IFS |
2805 | 2824 | test -z "$as_dir" && as_dir=. |
2806 | 2825 | 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 | |
2808 | 2827 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2809 | 2828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2810 | 2829 | break 2 |
2845 | 2864 | IFS=$as_save_IFS |
2846 | 2865 | test -z "$as_dir" && as_dir=. |
2847 | 2866 | 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 | |
2849 | 2868 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2850 | 2869 | ac_prog_rejected=yes |
2851 | 2870 | continue |
2903 | 2922 | IFS=$as_save_IFS |
2904 | 2923 | test -z "$as_dir" && as_dir=. |
2905 | 2924 | 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 | |
2907 | 2926 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2908 | 2927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2909 | 2928 | break 2 |
2947 | 2966 | IFS=$as_save_IFS |
2948 | 2967 | test -z "$as_dir" && as_dir=. |
2949 | 2968 | 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 | |
2951 | 2970 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2952 | 2971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2953 | 2972 | break 2 |
3393 | 3412 | /* end confdefs.h. */ |
3394 | 3413 | #include <stdarg.h> |
3395 | 3414 | #include <stdio.h> |
3396 | #include <sys/types.h> | |
3397 | #include <sys/stat.h> | |
3415 | struct stat; | |
3398 | 3416 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3399 | 3417 | struct buf { int x; }; |
3400 | 3418 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3634 | 3652 | for ac_prog in grep ggrep; do |
3635 | 3653 | for ac_exec_ext in '' $ac_executable_extensions; do |
3636 | 3654 | 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 | |
3638 | 3656 | # Check for GNU ac_path_GREP and select it if it is found. |
3639 | 3657 | # Check for GNU $ac_path_GREP |
3640 | 3658 | case `"$ac_path_GREP" --version 2>&1` in |
3700 | 3718 | for ac_prog in egrep; do |
3701 | 3719 | for ac_exec_ext in '' $ac_executable_extensions; do |
3702 | 3720 | 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 | |
3704 | 3722 | # Check for GNU ac_path_EGREP and select it if it is found. |
3705 | 3723 | # Check for GNU $ac_path_EGREP |
3706 | 3724 | case `"$ac_path_EGREP" --version 2>&1` in |
3907 | 3925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3908 | 3926 | /* end confdefs.h. */ |
3909 | 3927 | |
3910 | # define __EXTENSIONS__ 1 | |
3911 | $ac_includes_default | |
3928 | # define __EXTENSIONS__ 1 | |
3929 | $ac_includes_default | |
3912 | 3930 | int |
3913 | 3931 | main () |
3914 | 3932 | { |
4140 | 4158 | int |
4141 | 4159 | main () |
4142 | 4160 | { |
4143 | /* FIXME: Include the comments suggested by Paul. */ | |
4161 | ||
4144 | 4162 | #ifndef __cplusplus |
4145 | /* Ultrix mips cc rejects this. */ | |
4163 | /* Ultrix mips cc rejects this sort of thing. */ | |
4146 | 4164 | typedef int charset[2]; |
4147 | const charset cs; | |
4165 | const charset cs = { 0, 0 }; | |
4148 | 4166 | /* SunOS 4.1.1 cc rejects this. */ |
4149 | 4167 | char const *const *pcpcc; |
4150 | 4168 | char **ppc; |
4161 | 4179 | ++pcpcc; |
4162 | 4180 | ppc = (char**) pcpcc; |
4163 | 4181 | 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; | |
4166 | 4185 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
4167 | 4186 | |
4168 | 4187 | *t++ = 0; |
4178 | 4197 | iptr p = 0; |
4179 | 4198 | ++p; |
4180 | 4199 | } |
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 | |
4182 | 4201 | "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; | |
4185 | 4204 | } |
4186 | 4205 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
4187 | 4206 | const int foo = 10; |
4302 | 4321 | IFS=$as_save_IFS |
4303 | 4322 | test -z "$as_dir" && as_dir=. |
4304 | 4323 | 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 | |
4306 | 4325 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
4307 | 4326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4308 | 4327 | break 2 |
4342 | 4361 | IFS=$as_save_IFS |
4343 | 4362 | test -z "$as_dir" && as_dir=. |
4344 | 4363 | 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 | |
4346 | 4365 | ac_cv_prog_ac_ct_CC="gcc" |
4347 | 4366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4348 | 4367 | break 2 |
4395 | 4414 | IFS=$as_save_IFS |
4396 | 4415 | test -z "$as_dir" && as_dir=. |
4397 | 4416 | 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 | |
4399 | 4418 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
4400 | 4419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4401 | 4420 | break 2 |
4436 | 4455 | IFS=$as_save_IFS |
4437 | 4456 | test -z "$as_dir" && as_dir=. |
4438 | 4457 | 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 | |
4440 | 4459 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4441 | 4460 | ac_prog_rejected=yes |
4442 | 4461 | continue |
4494 | 4513 | IFS=$as_save_IFS |
4495 | 4514 | test -z "$as_dir" && as_dir=. |
4496 | 4515 | 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 | |
4498 | 4517 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
4499 | 4518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4500 | 4519 | break 2 |
4538 | 4557 | IFS=$as_save_IFS |
4539 | 4558 | test -z "$as_dir" && as_dir=. |
4540 | 4559 | 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 | |
4542 | 4561 | ac_cv_prog_ac_ct_CC="$ac_prog" |
4543 | 4562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4544 | 4563 | break 2 |
4734 | 4753 | /* end confdefs.h. */ |
4735 | 4754 | #include <stdarg.h> |
4736 | 4755 | #include <stdio.h> |
4737 | #include <sys/types.h> | |
4738 | #include <sys/stat.h> | |
4756 | struct stat; | |
4739 | 4757 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4740 | 4758 | struct buf { int x; }; |
4741 | 4759 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
5430 | 5448 | |
5431 | 5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for $CC" >&5 |
5432 | 5450 | $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 | |
5434 | 5452 | if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : |
5435 | 5453 | $as_echo_n "(cached) " >&6 |
5436 | 5454 | else |
5918 | 5936 | IFS=$as_save_IFS |
5919 | 5937 | test -z "$as_dir" && as_dir=. |
5920 | 5938 | 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 | |
5922 | 5940 | ac_cv_prog_LEX="$ac_prog" |
5923 | 5941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5924 | 5942 | break 2 |
5950 | 5968 | b { REJECT; } |
5951 | 5969 | c { yymore (); } |
5952 | 5970 | 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)); } | |
5954 | 5973 | f { unput (yytext[0]); } |
5955 | 5974 | . { BEGIN INITIAL; } |
5956 | 5975 | %% |
6088 | 6107 | IFS=$as_save_IFS |
6089 | 6108 | test -z "$as_dir" && as_dir=. |
6090 | 6109 | 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 | |
6092 | 6111 | ac_cv_prog_YACC="$ac_prog" |
6093 | 6112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6094 | 6113 | break 2 |
6129 | 6148 | IFS=$as_save_IFS |
6130 | 6149 | test -z "$as_dir" && as_dir=. |
6131 | 6150 | 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 | |
6133 | 6152 | ac_cv_prog_doxygen="doxygen" |
6134 | 6153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6135 | 6154 | break 2 |
6167 | 6186 | IFS=$as_save_IFS |
6168 | 6187 | test -z "$as_dir" && as_dir=. |
6169 | 6188 | 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 | |
6171 | 6190 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6172 | 6191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6173 | 6192 | break 2 |
6207 | 6226 | IFS=$as_save_IFS |
6208 | 6227 | test -z "$as_dir" && as_dir=. |
6209 | 6228 | 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 | |
6211 | 6230 | ac_cv_prog_ac_ct_STRIP="strip" |
6212 | 6231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6213 | 6232 | break 2 |
6281 | 6300 | IFS=$as_save_IFS |
6282 | 6301 | test -z "$as_dir" && as_dir=. |
6283 | 6302 | 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 | |
6285 | 6304 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
6286 | 6305 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6287 | 6306 | break 2 |
6324 | 6343 | IFS=$as_save_IFS |
6325 | 6344 | test -z "$as_dir" && as_dir=. |
6326 | 6345 | 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 | |
6328 | 6347 | ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" |
6329 | 6348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6330 | 6349 | break 2 |
6372 | 6391 | |
6373 | 6392 | |
6374 | 6393 | |
6375 | macro_version='2.4' | |
6376 | macro_revision='1.3293' | |
6394 | macro_version='2.4.2' | |
6395 | macro_revision='1.3337' | |
6377 | 6396 | |
6378 | 6397 | |
6379 | 6398 | |
6480 | 6499 | for ac_prog in sed gsed; do |
6481 | 6500 | for ac_exec_ext in '' $ac_executable_extensions; do |
6482 | 6501 | 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 | |
6484 | 6503 | # Check for GNU ac_path_SED and select it if it is found. |
6485 | 6504 | # Check for GNU $ac_path_SED |
6486 | 6505 | case `"$ac_path_SED" --version 2>&1` in |
6559 | 6578 | for ac_prog in fgrep; do |
6560 | 6579 | for ac_exec_ext in '' $ac_executable_extensions; do |
6561 | 6580 | 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 | |
6563 | 6582 | # Check for GNU ac_path_FGREP and select it if it is found. |
6564 | 6583 | # Check for GNU $ac_path_FGREP |
6565 | 6584 | case `"$ac_path_FGREP" --version 2>&1` in |
6815 | 6834 | IFS=$as_save_IFS |
6816 | 6835 | test -z "$as_dir" && as_dir=. |
6817 | 6836 | 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 | |
6819 | 6838 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
6820 | 6839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6821 | 6840 | break 2 |
6859 | 6878 | IFS=$as_save_IFS |
6860 | 6879 | test -z "$as_dir" && as_dir=. |
6861 | 6880 | 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 | |
6863 | 6882 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
6864 | 6883 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6865 | 6884 | break 2 |
7015 | 7034 | interix*) |
7016 | 7035 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
7017 | 7036 | 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 | |
7018 | 7042 | ;; |
7019 | 7043 | |
7020 | 7044 | osf*) |
7056 | 7080 | # If test is not a shell built-in, we'll probably end up computing a |
7057 | 7081 | # maximum length that is only half of the actual maximum length, but |
7058 | 7082 | # 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` \ | |
7060 | 7084 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
7061 | 7085 | test $i != 17 # 1/2 MB should be enough |
7062 | 7086 | do |
7278 | 7302 | IFS=$as_save_IFS |
7279 | 7303 | test -z "$as_dir" && as_dir=. |
7280 | 7304 | 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 | |
7282 | 7306 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
7283 | 7307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7284 | 7308 | break 2 |
7318 | 7342 | IFS=$as_save_IFS |
7319 | 7343 | test -z "$as_dir" && as_dir=. |
7320 | 7344 | 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 | |
7322 | 7346 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
7323 | 7347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7324 | 7348 | break 2 |
7485 | 7509 | lt_cv_deplibs_check_method=pass_all |
7486 | 7510 | ;; |
7487 | 7511 | |
7488 | # This must be Linux ELF. | |
7512 | # This must be glibc/ELF. | |
7489 | 7513 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
7490 | 7514 | lt_cv_deplibs_check_method=pass_all |
7491 | 7515 | ;; |
7624 | 7648 | IFS=$as_save_IFS |
7625 | 7649 | test -z "$as_dir" && as_dir=. |
7626 | 7650 | 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 | |
7628 | 7652 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
7629 | 7653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7630 | 7654 | break 2 |
7664 | 7688 | IFS=$as_save_IFS |
7665 | 7689 | test -z "$as_dir" && as_dir=. |
7666 | 7690 | 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 | |
7668 | 7692 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
7669 | 7693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7670 | 7694 | break 2 |
7767 | 7791 | IFS=$as_save_IFS |
7768 | 7792 | test -z "$as_dir" && as_dir=. |
7769 | 7793 | 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 | |
7771 | 7795 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
7772 | 7796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7773 | 7797 | break 2 |
7811 | 7835 | IFS=$as_save_IFS |
7812 | 7836 | test -z "$as_dir" && as_dir=. |
7813 | 7837 | 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 | |
7815 | 7839 | ac_cv_prog_ac_ct_AR="$ac_prog" |
7816 | 7840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7817 | 7841 | break 2 |
7936 | 7960 | IFS=$as_save_IFS |
7937 | 7961 | test -z "$as_dir" && as_dir=. |
7938 | 7962 | 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 | |
7940 | 7964 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
7941 | 7965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7942 | 7966 | break 2 |
7976 | 8000 | IFS=$as_save_IFS |
7977 | 8001 | test -z "$as_dir" && as_dir=. |
7978 | 8002 | 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 | |
7980 | 8004 | ac_cv_prog_ac_ct_STRIP="strip" |
7981 | 8005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7982 | 8006 | break 2 |
8035 | 8059 | IFS=$as_save_IFS |
8036 | 8060 | test -z "$as_dir" && as_dir=. |
8037 | 8061 | 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 | |
8039 | 8063 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
8040 | 8064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8041 | 8065 | break 2 |
8075 | 8099 | IFS=$as_save_IFS |
8076 | 8100 | test -z "$as_dir" && as_dir=. |
8077 | 8101 | 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 | |
8079 | 8103 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
8080 | 8104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8081 | 8105 | break 2 |
8125 | 8149 | if test -n "$RANLIB"; then |
8126 | 8150 | case $host_os in |
8127 | 8151 | openbsd*) |
8128 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
8152 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
8129 | 8153 | ;; |
8130 | 8154 | *) |
8131 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
8155 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
8132 | 8156 | ;; |
8133 | 8157 | esac |
8134 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
8158 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
8135 | 8159 | fi |
8136 | 8160 | |
8137 | 8161 | case $host_os in |
8179 | 8203 | IFS=$as_save_IFS |
8180 | 8204 | test -z "$as_dir" && as_dir=. |
8181 | 8205 | 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 | |
8183 | 8207 | ac_cv_prog_AWK="$ac_prog" |
8184 | 8208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8185 | 8209 | break 2 |
8320 | 8344 | # which start with @ or ?. |
8321 | 8345 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
8322 | 8346 | " {last_section=section; section=\$ 3};"\ |
8347 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
8323 | 8348 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
8324 | 8349 | " \$ 0!~/External *\|/{next};"\ |
8325 | 8350 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
8708 | 8733 | CFLAGS="$SAVE_CFLAGS" |
8709 | 8734 | fi |
8710 | 8735 | ;; |
8711 | sparc*-*solaris*) | |
8736 | *-*solaris*) | |
8712 | 8737 | # Find out which ABI we are using. |
8713 | 8738 | echo 'int i;' > conftest.$ac_ext |
8714 | 8739 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8719 | 8744 | case `/usr/bin/file conftest.o` in |
8720 | 8745 | *64-bit*) |
8721 | 8746 | 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 | ;; | |
8723 | 8761 | *) |
8724 | 8762 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
8725 | 8763 | LD="${LD-ld} -64" |
8752 | 8790 | IFS=$as_save_IFS |
8753 | 8791 | test -z "$as_dir" && as_dir=. |
8754 | 8792 | 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 | |
8756 | 8794 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
8757 | 8795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8758 | 8796 | break 2 |
8792 | 8830 | IFS=$as_save_IFS |
8793 | 8831 | test -z "$as_dir" && as_dir=. |
8794 | 8832 | 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 | |
8796 | 8834 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
8797 | 8835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8798 | 8836 | break 2 |
8872 | 8910 | IFS=$as_save_IFS |
8873 | 8911 | test -z "$as_dir" && as_dir=. |
8874 | 8912 | 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 | |
8876 | 8914 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
8877 | 8915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8878 | 8916 | break 2 |
8912 | 8950 | IFS=$as_save_IFS |
8913 | 8951 | test -z "$as_dir" && as_dir=. |
8914 | 8952 | 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 | |
8916 | 8954 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
8917 | 8955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8918 | 8956 | break 2 |
8964 | 9002 | IFS=$as_save_IFS |
8965 | 9003 | test -z "$as_dir" && as_dir=. |
8966 | 9004 | 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 | |
8968 | 9006 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
8969 | 9007 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8970 | 9008 | break 2 |
9004 | 9042 | IFS=$as_save_IFS |
9005 | 9043 | test -z "$as_dir" && as_dir=. |
9006 | 9044 | 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 | |
9008 | 9046 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
9009 | 9047 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9010 | 9048 | break 2 |
9056 | 9094 | IFS=$as_save_IFS |
9057 | 9095 | test -z "$as_dir" && as_dir=. |
9058 | 9096 | 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 | |
9060 | 9098 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
9061 | 9099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9062 | 9100 | break 2 |
9096 | 9134 | IFS=$as_save_IFS |
9097 | 9135 | test -z "$as_dir" && as_dir=. |
9098 | 9136 | 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 | |
9100 | 9138 | ac_cv_prog_ac_ct_LIPO="lipo" |
9101 | 9139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9102 | 9140 | break 2 |
9148 | 9186 | IFS=$as_save_IFS |
9149 | 9187 | test -z "$as_dir" && as_dir=. |
9150 | 9188 | 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 | |
9152 | 9190 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
9153 | 9191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9154 | 9192 | break 2 |
9188 | 9226 | IFS=$as_save_IFS |
9189 | 9227 | test -z "$as_dir" && as_dir=. |
9190 | 9228 | 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 | |
9192 | 9230 | ac_cv_prog_ac_ct_OTOOL="otool" |
9193 | 9231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9194 | 9232 | break 2 |
9240 | 9278 | IFS=$as_save_IFS |
9241 | 9279 | test -z "$as_dir" && as_dir=. |
9242 | 9280 | 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 | |
9244 | 9282 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
9245 | 9283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9246 | 9284 | break 2 |
9280 | 9318 | IFS=$as_save_IFS |
9281 | 9319 | test -z "$as_dir" && as_dir=. |
9282 | 9320 | 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 | |
9284 | 9322 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
9285 | 9323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9286 | 9324 | break 2 |
9359 | 9397 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
9360 | 9398 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
9361 | 9399 | _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 | |
9363 | 9407 | lt_cv_apple_cc_single_mod=yes |
9364 | 9408 | else |
9365 | 9409 | cat conftest.err >&5 |
9370 | 9414 | fi |
9371 | 9415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
9372 | 9416 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
9417 | ||
9373 | 9418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
9374 | 9419 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
9375 | 9420 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
9402 | 9447 | fi |
9403 | 9448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
9404 | 9449 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
9450 | ||
9405 | 9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
9406 | 9452 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
9407 | 9453 | if ${lt_cv_ld_force_load+:} false; then : |
9423 | 9469 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
9424 | 9470 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
9425 | 9471 | _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 | |
9427 | 9475 | lt_cv_ld_force_load=yes |
9428 | 9476 | else |
9429 | 9477 | cat conftest.err >&5 |
9563 | 9611 | |
9564 | 9612 | # Check whether --with-pic was given. |
9565 | 9613 | 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 | |
9567 | 9630 | else |
9568 | 9631 | pic_mode=default |
9569 | 9632 | fi |
9615 | 9678 | |
9616 | 9679 | # Always use our own libtool. |
9617 | 9680 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
9681 | ||
9682 | ||
9683 | ||
9684 | ||
9618 | 9685 | |
9619 | 9686 | |
9620 | 9687 | |
10096 | 10163 | case $cc_basename in |
10097 | 10164 | nvcc*) # Cuda Compiler Driver 2.2 |
10098 | 10165 | 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 | |
10100 | 10169 | ;; |
10101 | 10170 | esac |
10102 | 10171 | else |
10187 | 10256 | ;; |
10188 | 10257 | *) |
10189 | 10258 | 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]*) | |
10191 | 10260 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
10192 | 10261 | lt_prog_compiler_pic='-KPIC' |
10193 | 10262 | lt_prog_compiler_static='-Bstatic' |
10194 | 10263 | 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 ' | |
10195 | 10269 | ;; |
10196 | 10270 | *Sun\ C*) |
10197 | 10271 | # Sun C 5.9 |
10198 | 10272 | lt_prog_compiler_pic='-KPIC' |
10199 | 10273 | lt_prog_compiler_static='-Bstatic' |
10200 | 10274 | 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' | |
10201 | 10285 | ;; |
10202 | 10286 | esac |
10203 | 10287 | ;; |
10560 | 10644 | hardcode_direct=no |
10561 | 10645 | hardcode_direct_absolute=no |
10562 | 10646 | hardcode_libdir_flag_spec= |
10563 | hardcode_libdir_flag_spec_ld= | |
10564 | 10647 | hardcode_libdir_separator= |
10565 | 10648 | hardcode_minus_L=no |
10566 | 10649 | hardcode_shlibpath_var=unsupported |
10810 | 10893 | xlf* | bgf* | bgxlf* | mpixlf*) |
10811 | 10894 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10812 | 10895 | 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' | |
10815 | 10897 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
10816 | 10898 | if test "x$supports_anon_versioning" = xyes; then |
10817 | 10899 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
11190 | 11272 | # The linker will not automatically build a static lib if we build a DLL. |
11191 | 11273 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
11192 | 11274 | enable_shared_with_static_runtimes=yes |
11275 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
11193 | 11276 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
11194 | 11277 | # Don't use ranlib |
11195 | 11278 | old_postinstall_cmds='chmod 644 $oldlib' |
11235 | 11318 | hardcode_shlibpath_var=unsupported |
11236 | 11319 | if test "$lt_cv_ld_force_load" = "yes"; then |
11237 | 11320 | 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 | ||
11238 | 11322 | else |
11239 | 11323 | whole_archive_flag_spec='' |
11240 | 11324 | fi |
11263 | 11347 | hardcode_shlibpath_var=no |
11264 | 11348 | ;; |
11265 | 11349 | |
11266 | freebsd1*) | |
11267 | ld_shlibs=no | |
11268 | ;; | |
11269 | ||
11270 | 11350 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
11271 | 11351 | # support. Future versions do this automatically, but an explicit c++rt0.o |
11272 | 11352 | # does not break anything, and helps significantly (at the cost of a little |
11279 | 11359 | ;; |
11280 | 11360 | |
11281 | 11361 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
11282 | freebsd2*) | |
11362 | freebsd2.*) | |
11283 | 11363 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
11284 | 11364 | hardcode_direct=yes |
11285 | 11365 | hardcode_minus_L=yes |
11318 | 11398 | fi |
11319 | 11399 | if test "$with_gnu_ld" = no; then |
11320 | 11400 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
11321 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
11322 | 11401 | hardcode_libdir_separator=: |
11323 | 11402 | hardcode_direct=yes |
11324 | 11403 | hardcode_direct_absolute=yes |
11790 | 11869 | fi |
11791 | 11870 | ;; |
11792 | 11871 | esac |
11793 | ||
11794 | ||
11795 | ||
11796 | ||
11797 | ||
11798 | 11872 | |
11799 | 11873 | |
11800 | 11874 | |
12036 | 12110 | |
12037 | 12111 | case $host_os in |
12038 | 12112 | aix3*) |
12039 | version_type=linux | |
12113 | version_type=linux # correct to gnu/linux during the next big refactor | |
12040 | 12114 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12041 | 12115 | shlibpath_var=LIBPATH |
12042 | 12116 | |
12045 | 12119 | ;; |
12046 | 12120 | |
12047 | 12121 | aix[4-9]*) |
12048 | version_type=linux | |
12122 | version_type=linux # correct to gnu/linux during the next big refactor | |
12049 | 12123 | need_lib_prefix=no |
12050 | 12124 | need_version=no |
12051 | 12125 | hardcode_into_libs=yes |
12110 | 12184 | ;; |
12111 | 12185 | |
12112 | 12186 | bsdi[45]*) |
12113 | version_type=linux | |
12187 | version_type=linux # correct to gnu/linux during the next big refactor | |
12114 | 12188 | need_version=no |
12115 | 12189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12116 | 12190 | soname_spec='${libname}${release}${shared_ext}$major' |
12249 | 12323 | ;; |
12250 | 12324 | |
12251 | 12325 | dgux*) |
12252 | version_type=linux | |
12326 | version_type=linux # correct to gnu/linux during the next big refactor | |
12253 | 12327 | need_lib_prefix=no |
12254 | 12328 | need_version=no |
12255 | 12329 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12256 | 12330 | soname_spec='${libname}${release}${shared_ext}$major' |
12257 | 12331 | shlibpath_var=LD_LIBRARY_PATH |
12258 | ;; | |
12259 | ||
12260 | freebsd1*) | |
12261 | dynamic_linker=no | |
12262 | 12332 | ;; |
12263 | 12333 | |
12264 | 12334 | freebsd* | dragonfly*) |
12268 | 12338 | objformat=`/usr/bin/objformat` |
12269 | 12339 | else |
12270 | 12340 | case $host_os in |
12271 | freebsd[123]*) objformat=aout ;; | |
12341 | freebsd[23].*) objformat=aout ;; | |
12272 | 12342 | *) objformat=elf ;; |
12273 | 12343 | esac |
12274 | 12344 | fi |
12286 | 12356 | esac |
12287 | 12357 | shlibpath_var=LD_LIBRARY_PATH |
12288 | 12358 | case $host_os in |
12289 | freebsd2*) | |
12359 | freebsd2.*) | |
12290 | 12360 | shlibpath_overrides_runpath=yes |
12291 | 12361 | ;; |
12292 | 12362 | freebsd3.[01]* | freebsdelf3.[01]*) |
12306 | 12376 | ;; |
12307 | 12377 | |
12308 | 12378 | gnu*) |
12309 | version_type=linux | |
12379 | version_type=linux # correct to gnu/linux during the next big refactor | |
12310 | 12380 | need_lib_prefix=no |
12311 | 12381 | need_version=no |
12312 | 12382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12313 | 12383 | soname_spec='${libname}${release}${shared_ext}$major' |
12314 | 12384 | shlibpath_var=LD_LIBRARY_PATH |
12385 | shlibpath_overrides_runpath=no | |
12315 | 12386 | hardcode_into_libs=yes |
12316 | 12387 | ;; |
12317 | 12388 | |
12318 | 12389 | haiku*) |
12319 | version_type=linux | |
12390 | version_type=linux # correct to gnu/linux during the next big refactor | |
12320 | 12391 | need_lib_prefix=no |
12321 | 12392 | need_version=no |
12322 | 12393 | dynamic_linker="$host_os runtime_loader" |
12377 | 12448 | ;; |
12378 | 12449 | |
12379 | 12450 | interix[3-9]*) |
12380 | version_type=linux | |
12451 | version_type=linux # correct to gnu/linux during the next big refactor | |
12381 | 12452 | need_lib_prefix=no |
12382 | 12453 | need_version=no |
12383 | 12454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12393 | 12464 | nonstopux*) version_type=nonstopux ;; |
12394 | 12465 | *) |
12395 | 12466 | 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 | |
12397 | 12468 | else |
12398 | 12469 | version_type=irix |
12399 | 12470 | fi ;; |
12430 | 12501 | dynamic_linker=no |
12431 | 12502 | ;; |
12432 | 12503 | |
12433 | # This must be Linux ELF. | |
12504 | # This must be glibc/ELF. | |
12434 | 12505 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
12435 | version_type=linux | |
12506 | version_type=linux # correct to gnu/linux during the next big refactor | |
12436 | 12507 | need_lib_prefix=no |
12437 | 12508 | need_version=no |
12438 | 12509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12518 | 12589 | ;; |
12519 | 12590 | |
12520 | 12591 | newsos6) |
12521 | version_type=linux | |
12592 | version_type=linux # correct to gnu/linux during the next big refactor | |
12522 | 12593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12523 | 12594 | shlibpath_var=LD_LIBRARY_PATH |
12524 | 12595 | shlibpath_overrides_runpath=yes |
12587 | 12658 | ;; |
12588 | 12659 | |
12589 | 12660 | solaris*) |
12590 | version_type=linux | |
12661 | version_type=linux # correct to gnu/linux during the next big refactor | |
12591 | 12662 | need_lib_prefix=no |
12592 | 12663 | need_version=no |
12593 | 12664 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12612 | 12683 | ;; |
12613 | 12684 | |
12614 | 12685 | sysv4 | sysv4.3*) |
12615 | version_type=linux | |
12686 | version_type=linux # correct to gnu/linux during the next big refactor | |
12616 | 12687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12617 | 12688 | soname_spec='${libname}${release}${shared_ext}$major' |
12618 | 12689 | shlibpath_var=LD_LIBRARY_PATH |
12636 | 12707 | |
12637 | 12708 | sysv4*MP*) |
12638 | 12709 | if test -d /usr/nec ;then |
12639 | version_type=linux | |
12710 | version_type=linux # correct to gnu/linux during the next big refactor | |
12640 | 12711 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
12641 | 12712 | soname_spec='$libname${shared_ext}.$major' |
12642 | 12713 | shlibpath_var=LD_LIBRARY_PATH |
12667 | 12738 | |
12668 | 12739 | tpf*) |
12669 | 12740 | # 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 | |
12671 | 12742 | need_lib_prefix=no |
12672 | 12743 | need_version=no |
12673 | 12744 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12677 | 12748 | ;; |
12678 | 12749 | |
12679 | 12750 | uts4*) |
12680 | version_type=linux | |
12751 | version_type=linux # correct to gnu/linux during the next big refactor | |
12681 | 12752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12682 | 12753 | soname_spec='${libname}${release}${shared_ext}$major' |
12683 | 12754 | shlibpath_var=LD_LIBRARY_PATH |
13446 | 13517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13447 | 13518 | |
13448 | 13519 | CC="$lt_save_CC" |
13520 | ||
13521 | ||
13449 | 13522 | |
13450 | 13523 | |
13451 | 13524 | |
14496 | 14569 | esac |
14497 | 14570 | rm -rf conftest* |
14498 | 14571 | fi |
14572 | ||
14573 | ||
14499 | 14574 | fi |
14500 | 14575 | |
14501 | 14576 | |
14503 | 14578 | |
14504 | 14579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_LARGEFILE_SOURCE=1 as a flag for $CC" >&5 |
14505 | 14580 | $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 | |
14507 | 14582 | if eval \${cv_prog_cc_flag_needed_$cache+:} false; then : |
14508 | 14583 | $as_echo_n "(cached) " >&6 |
14509 | 14584 | else |
15129 | 15204 | IFS=$as_save_IFS |
15130 | 15205 | test -z "$as_dir" && as_dir=. |
15131 | 15206 | 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 | |
15133 | 15208 | ac_cv_prog_acx_pthread_config="yes" |
15134 | 15209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15135 | 15210 | break 2 |
15285 | 15360 | IFS=$as_save_IFS |
15286 | 15361 | test -z "$as_dir" && as_dir=. |
15287 | 15362 | 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 | |
15289 | 15364 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
15290 | 15365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15291 | 15366 | break 2 |
15546 | 15621 | IFS=$as_save_IFS |
15547 | 15622 | test -z "$as_dir" && as_dir=. |
15548 | 15623 | 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 | |
15550 | 15625 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
15551 | 15626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15552 | 15627 | break 2 |
15846 | 15921 | IFS=$as_save_IFS |
15847 | 15922 | test -z "$as_dir" && as_dir=. |
15848 | 15923 | 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 | |
15850 | 15925 | ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" |
15851 | 15926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15852 | 15927 | break 2 |
16007 | 16082 | |
16008 | 16083 | $as_echo "#define HAVE_NSS 1" >>confdefs.h |
16009 | 16084 | |
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" | |
16012 | 16087 | LDFLAGS="$LDFLAGS -L$withval/lib" |
16013 | 16088 | |
16014 | 16089 | if test "x$enable_rpath" = xyes; then |
16019 | 16094 | |
16020 | 16095 | CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" |
16021 | 16096 | else |
16097 | CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" | |
16022 | 16098 | CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" |
16023 | 16099 | fi |
16024 | 16100 | LIBS="$LIBS -lnss3 -lnspr4" |
17279 | 17355 | IFS=$as_save_IFS |
17280 | 17356 | test -z "$as_dir" && as_dir=. |
17281 | 17357 | 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 | |
17283 | 17359 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
17284 | 17360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
17285 | 17361 | break 2 |
17319 | 17395 | IFS=$as_save_IFS |
17320 | 17396 | test -z "$as_dir" && as_dir=. |
17321 | 17397 | 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 | |
17323 | 17399 | ac_cv_prog_ac_ct_WINDRES="windres" |
17324 | 17400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
17325 | 17401 | break 2 |
18514 | 18590 | # ... but there are two gotchas: |
18515 | 18591 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
18516 | 18592 | # 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'. | |
18518 | 18594 | 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' | |
18520 | 18596 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18521 | 18597 | as_ln_s=ln |
18522 | 18598 | else |
18523 | as_ln_s='cp -p' | |
18599 | as_ln_s='cp -pR' | |
18524 | 18600 | fi |
18525 | 18601 | else |
18526 | as_ln_s='cp -p' | |
18602 | as_ln_s='cp -pR' | |
18527 | 18603 | fi |
18528 | 18604 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18529 | 18605 | rmdir conf$$.dir 2>/dev/null |
18583 | 18659 | as_mkdir_p=false |
18584 | 18660 | fi |
18585 | 18661 | |
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 | |
18608 | 18672 | |
18609 | 18673 | # Sed expression to map a string onto a valid CPP name. |
18610 | 18674 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
18625 | 18689 | # report actual input values of CONFIG_FILES etc. instead of their |
18626 | 18690 | # values after options handling. |
18627 | 18691 | 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 | |
18630 | 18694 | |
18631 | 18695 | CONFIG_FILES = $CONFIG_FILES |
18632 | 18696 | CONFIG_HEADERS = $CONFIG_HEADERS |
18691 | 18755 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18692 | 18756 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
18693 | 18757 | 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, | |
18696 | 18760 | with options \\"\$ac_cs_config\\" |
18697 | 18761 | |
18698 | Copyright (C) 2010 Free Software Foundation, Inc. | |
18762 | Copyright (C) 2012 Free Software Foundation, Inc. | |
18699 | 18763 | This config.status script is free software; the Free Software Foundation |
18700 | 18764 | gives unlimited permission to copy, distribute and modify it." |
18701 | 18765 | |
18784 | 18848 | _ACEOF |
18785 | 18849 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18786 | 18850 | 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 | |
18788 | 18852 | shift |
18789 | 18853 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
18790 | 18854 | CONFIG_SHELL='$SHELL' |
18825 | 18889 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
18826 | 18890 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
18827 | 18891 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
18892 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
18828 | 18893 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
18829 | 18894 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
18830 | 18895 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
18907 | 18972 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
18908 | 18973 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
18909 | 18974 | 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"`' | |
18911 | 18975 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
18912 | 18976 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
18913 | 18977 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
18963 | 19027 | # Quote evaled strings. |
18964 | 19028 | for var in SHELL \ |
18965 | 19029 | ECHO \ |
19030 | PATH_SEPARATOR \ | |
18966 | 19031 | SED \ |
18967 | 19032 | GREP \ |
18968 | 19033 | EGREP \ |
19013 | 19078 | allow_undefined_flag \ |
19014 | 19079 | no_undefined_flag \ |
19015 | 19080 | hardcode_libdir_flag_spec \ |
19016 | hardcode_libdir_flag_spec_ld \ | |
19017 | 19081 | hardcode_libdir_separator \ |
19018 | 19082 | exclude_expsyms \ |
19019 | 19083 | include_expsyms \ |
19676 | 19740 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
19677 | 19741 | # |
19678 | 19742 | # 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. | |
19681 | 19745 | # Written by Gordon Matzigkeit, 1996 |
19682 | 19746 | # |
19683 | 19747 | # This file is part of GNU Libtool. |
19731 | 19795 | # An echo program that protects backslashes. |
19732 | 19796 | ECHO=$lt_ECHO |
19733 | 19797 | |
19798 | # The PATH separator for the build system. | |
19799 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
19800 | ||
19734 | 19801 | # The host system. |
19735 | 19802 | host_alias=$host_alias |
19736 | 19803 | host=$host |
20031 | 20098 | # Flag to hardcode \$libdir into a binary during linking. |
20032 | 20099 | # This must work even if \$libdir does not exist |
20033 | 20100 | 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 | |
20038 | 20101 | |
20039 | 20102 | # Whether we need a single "-rpath" flag with a separated argument. |
20040 | 20103 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
5 | 5 | sinclude(acx_python.m4) |
6 | 6 | sinclude(ac_pkg_swig.m4) |
7 | 7 | |
8 | AC_INIT(unbound, 1.4.19, unbound-bugs@nlnetlabs.nl, unbound) | |
8 | AC_INIT(unbound, 1.4.20, unbound-bugs@nlnetlabs.nl, unbound) | |
9 | 9 | |
10 | 10 | LIBUNBOUND_CURRENT=3 |
11 | LIBUNBOUND_REVISION=4 | |
11 | LIBUNBOUND_REVISION=5 | |
12 | 12 | LIBUNBOUND_AGE=1 |
13 | 13 | # 1.0.0 had 0:12:0 |
14 | 14 | # 1.0.1 had 0:13:0 |
44 | 44 | # 1.4.17 had 3:2:1 |
45 | 45 | # 1.4.18 had 3:3:1 |
46 | 46 | # 1.4.19 had 3:4:1 |
47 | # 1.4.20 had 4:0:2 # adds libunbound.ttl | |
47 | 48 | |
48 | 49 | # Current -- the number of the binary API that we're implementing |
49 | 50 | # Revision -- which iteration of the implementation of the binary |
523 | 524 | [ |
524 | 525 | USE_NSS="yes" |
525 | 526 | 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" | |
528 | 529 | LDFLAGS="$LDFLAGS -L$withval/lib" |
529 | 530 | ACX_RUNTIME_PATH_ADD([$withval/lib]) |
530 | 531 | CPPFLAGS="-I$withval/include/nspr4 $CPPFLAGS" |
531 | 532 | else |
533 | CPPFLAGS="$CPPFLAGS -I/usr/include/nss3" | |
532 | 534 | CPPFLAGS="-I/usr/include/nspr4 $CPPFLAGS" |
533 | 535 | fi |
534 | 536 | LIBS="$LIBS -lnss3 -lnspr4" |
56 | 56 | #endif |
57 | 57 | |
58 | 58 | #ifdef HAVE_NSS |
59 | #include <nss3/nss.h> | |
59 | /* nss3 */ | |
60 | #include "nss.h" | |
60 | 61 | #endif |
61 | 62 | |
62 | 63 | #include <ldns/ldns.h> |
209 | 210 | comp_meth = (void*)SSL_COMP_get_compression_methods(); |
210 | 211 | # endif |
211 | 212 | (void)SSL_library_init(); |
212 | # if defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) | |
213 | # if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) | |
213 | 214 | if(!ub_openssl_lock_init()) |
214 | 215 | fatal_exit("could not init openssl locks"); |
215 | 216 | # endif |
572 | 573 | ERR_remove_state(0); |
573 | 574 | ERR_free_strings(); |
574 | 575 | RAND_cleanup(); |
575 | # if defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) | |
576 | # if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) | |
576 | 577 | ub_openssl_lock_delete(); |
577 | 578 | # endif |
578 | 579 | #elif defined(HAVE_NSS) |
87 | 87 | #endif |
88 | 88 | |
89 | 89 | #ifdef HAVE_NSS |
90 | # include <nss3/nss.h> | |
90 | /* nss3 */ | |
91 | # include "nss.h" | |
91 | 92 | #endif |
92 | 93 | |
93 | 94 | /** 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 | ||
0 | 68 | 12 December 2012: Wouter |
1 | 69 | - 1.4.19 release. |
70 | - trunk has 1.4.20 under development. | |
2 | 71 | |
3 | 72 | 5 December 2012: Wouter |
4 | 73 | - note support for AAAA RR type RFC. |
0 | README for Unbound 1.4.19 | |
0 | README for Unbound 1.4.20 | |
1 | 1 | Copyright 2007 NLnet Labs |
2 | 2 | http://unbound.net |
3 | 3 |
0 | 0 | # |
1 | 1 | # Example configuration file. |
2 | 2 | # |
3 | # See unbound.conf(5) man page, version 1.4.19. | |
3 | # See unbound.conf(5) man page, version 1.4.20. | |
4 | 4 | # |
5 | 5 | # this is a comment. |
6 | 6 |
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" | |
1 | 1 | .\" |
2 | 2 | .\" libunbound.3 -- unbound library functions manual |
3 | 3 | .\" |
41 | 41 | .B ub_ctx_zone_remove, |
42 | 42 | .B ub_ctx_data_add, |
43 | 43 | .B ub_ctx_data_remove |
44 | \- Unbound DNS validating resolver 1.4.19 functions. | |
44 | \- Unbound DNS validating resolver 1.4.20 functions. | |
45 | 45 | .SH "SYNOPSIS" |
46 | 46 | .LP |
47 | 47 | .B #include <unbound.h> |
358 | 358 | int secure; /* true if result is secure */ |
359 | 359 | int bogus; /* true if a security failure happened */ |
360 | 360 | char* why_bogus; /* string with error if bogus */ |
361 | int ttl; /* number of seconds the result is valid */ | |
361 | 362 | }; |
362 | 363 | .fi |
363 | 364 | .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" | |
1 | 1 | .\" |
2 | 2 | .\" unbound-anchor.8 -- unbound anchor maintenance utility manual |
3 | 3 | .\" |
75 | 75 | The pathname to the root\-anchors.p7s file on the server. (forms URL with \-u). |
76 | 76 | The default is /root\-anchors/root\-anchors.p7s. This file has to be a PKCS7 |
77 | 77 | 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. | |
78 | 83 | .TP |
79 | 84 | .B \-4 |
80 | 85 | 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" | |
1 | 1 | .\" |
2 | 2 | .\" unbound-checkconf.8 -- unbound configuration checker manual |
3 | 3 | .\" |
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" | |
1 | 1 | .\" |
2 | 2 | .\" unbound-control.8 -- unbound remote control manual |
3 | 3 | .\" |
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" | |
1 | 1 | .\" |
2 | 2 | .\" unbound-host.1 -- unbound DNS lookup utility |
3 | 3 | .\" |
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" | |
1 | 1 | .\" |
2 | 2 | .\" unbound.8 -- unbound manual |
3 | 3 | .\" |
9 | 9 | .SH "NAME" |
10 | 10 | .LP |
11 | 11 | .B unbound |
12 | \- Unbound DNS validating resolver 1.4.19. | |
12 | \- Unbound DNS validating resolver 1.4.20. | |
13 | 13 | .SH "SYNOPSIS" |
14 | 14 | .LP |
15 | 15 | .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" | |
1 | 1 | .\" |
2 | 2 | .\" unbound.conf.5 -- unbound.conf manual |
3 | 3 | .\" |
486 | 486 | # then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy |
487 | 487 | # in the documentation. The default is NO. |
488 | 488 | |
489 | SHOW_DIRECTORIES = YES | |
489 | #SHOW_DIRECTORIES = YES | |
490 | 490 | |
491 | 491 | # Set the SHOW_FILES tag to NO to disable the generation of the Files page. |
492 | 492 | # This will remove the Files entry from the Quick Index and from the |
861 | 861 | # files or namespaces will be aligned in HTML using tables. If set to |
862 | 862 | # NO a bullet list will be used. |
863 | 863 | |
864 | HTML_ALIGN_MEMBERS = YES | |
864 | #HTML_ALIGN_MEMBERS = YES | |
865 | 865 | |
866 | 866 | # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML |
867 | 867 | # documentation will contain sections that can be hidden and shown after the |
1046 | 1046 | # By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, |
1047 | 1047 | # and Class Hierarchy pages using a tree view instead of an ordered list. |
1048 | 1048 | |
1049 | USE_INLINE_TREES = NO | |
1049 | #USE_INLINE_TREES = NO | |
1050 | 1050 | |
1051 | 1051 | # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be |
1052 | 1052 | # used to set the initial width (in pixels) of the frame in which the tree |
0 | 0 | #!/bin/sh |
1 | 1 | # install - install a program, script, or datafile |
2 | 2 | |
3 | scriptversion=2009-04-28.21; # UTC | |
3 | scriptversion=2011-11-20.07; # UTC | |
4 | 4 | |
5 | 5 | # This originates from X11R5 (mit/util/scripts/install.sh), which was |
6 | 6 | # later released in X11R6 (xc/config/util/install.sh) with the |
34 | 34 | # FSF changes to this file are in the public domain. |
35 | 35 | # |
36 | 36 | # 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 | |
38 | 38 | # when there is no Makefile. |
39 | 39 | # |
40 | 40 | # This script is compatible with the BSD install script, but was written |
155 | 155 | -s) stripcmd=$stripprog;; |
156 | 156 | |
157 | 157 | -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 | |
158 | 162 | shift;; |
159 | 163 | |
160 | 164 | -T) no_target_directory=true;; |
185 | 189 | fi |
186 | 190 | shift # arg |
187 | 191 | dst_arg=$arg |
192 | # Protect names problematic for 'test' and other utilities. | |
193 | case $dst_arg in | |
194 | -* | [=\(\)!]) dst_arg=./$dst_arg;; | |
195 | esac | |
188 | 196 | done |
189 | 197 | fi |
190 | 198 | |
193 | 201 | echo "$0: no input file specified." >&2 |
194 | 202 | exit 1 |
195 | 203 | fi |
196 | # It's OK to call `install-sh -d' without argument. | |
204 | # It's OK to call 'install-sh -d' without argument. | |
197 | 205 | # This can happen when creating conditional directories. |
198 | 206 | exit 0 |
199 | 207 | fi |
200 | 208 | |
201 | 209 | 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 | |
203 | 215 | |
204 | 216 | # Set umask so as not to create temps with too-generous modes. |
205 | 217 | # However, 'strip' requires both read and write access to temps. |
227 | 239 | |
228 | 240 | for src |
229 | 241 | do |
230 | # Protect names starting with `-'. | |
242 | # Protect names problematic for 'test' and other utilities. | |
231 | 243 | case $src in |
232 | -*) src=./$src;; | |
244 | -* | [=\(\)!]) src=./$src;; | |
233 | 245 | esac |
234 | 246 | |
235 | 247 | if test -n "$dir_arg"; then |
251 | 263 | echo "$0: no destination specified." >&2 |
252 | 264 | exit 1 |
253 | 265 | fi |
254 | ||
255 | 266 | dst=$dst_arg |
256 | # Protect names starting with `-'. | |
257 | case $dst in | |
258 | -*) dst=./$dst;; | |
259 | esac | |
260 | 267 | |
261 | 268 | # If destination is a directory, append the input filename; won't work |
262 | 269 | # if double slashes aren't ignored. |
346 | 353 | if test -z "$dir_arg" || { |
347 | 354 | # Check for POSIX incompatibilities with -m. |
348 | 355 | # 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. | |
350 | 357 | # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. |
351 | 358 | ls_ld_tmpdir=`ls -ld "$tmpdir"` |
352 | 359 | case $ls_ld_tmpdir in |
384 | 391 | |
385 | 392 | case $dstdir in |
386 | 393 | /*) prefix='/';; |
387 | -*) prefix='./';; | |
394 | [-=\(\)!]*) prefix='./';; | |
388 | 395 | *) prefix='';; |
389 | 396 | esac |
390 | 397 | |
402 | 409 | |
403 | 410 | for d |
404 | 411 | do |
405 | test -z "$d" && continue | |
412 | test X"$d" = X && continue | |
406 | 413 | |
407 | 414 | prefix=$prefix$d |
408 | 415 | if test -d "$prefix"; then |
127 | 127 | node->namelabs = nmlabs; |
128 | 128 | node->dp = dp; |
129 | 129 | 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); | |
131 | 133 | delegpt_free_mlc(dp); |
132 | 134 | free(node->name); |
133 | 135 | free(node); |
118 | 118 | ; on server FTP.INTERNIC.NET |
119 | 119 | ; -OR- RS.INTERNIC.NET |
120 | 120 | ; |
121 | ; related version of root zone: 2010061700 | |
121 | ; related version of root zone: changes-on-20120103 | |
122 | 122 | */ |
123 | 123 | struct delegpt* dp = delegpt_create_mlc((uint8_t*)"\000"); |
124 | 124 | if(!dp) |
128 | 128 | if(!ah(dp, "A.ROOT-SERVERS.NET.", "198.41.0.4")) goto failed; |
129 | 129 | if(!ah(dp, "B.ROOT-SERVERS.NET.", "192.228.79.201")) goto failed; |
130 | 130 | 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; | |
132 | 132 | if(!ah(dp, "E.ROOT-SERVERS.NET.", "192.203.230.10")) goto failed; |
133 | 133 | if(!ah(dp, "F.ROOT-SERVERS.NET.", "192.5.5.241")) goto failed; |
134 | 134 | if(!ah(dp, "G.ROOT-SERVERS.NET.", "192.112.36.4")) goto failed; |
171 | 171 | node->noprime = (uint8_t)noprime; |
172 | 172 | if(!name_tree_insert(&hints->tree, &node->node, dp->name, dp->namelen, |
173 | 173 | 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); | |
175 | 177 | delegpt_free_mlc(dp); |
176 | 178 | free(node); |
177 | 179 | } |
43 | 43 | #include "config.h" |
44 | 44 | #include <ldns/dname.h> |
45 | 45 | #include <ldns/wire2host.h> |
46 | #ifdef HAVE_SSL | |
46 | 47 | #include <openssl/ssl.h> |
48 | #endif | |
47 | 49 | #include "libunbound/libworker.h" |
48 | 50 | #include "libunbound/context.h" |
49 | 51 | #include "libunbound/unbound.h" |
87 | 89 | ub_randfree(w->env->rnd); |
88 | 90 | free(w->env); |
89 | 91 | } |
92 | #ifdef HAVE_SSL | |
90 | 93 | SSL_CTX_free(w->sslctx); |
94 | #endif | |
91 | 95 | outside_network_delete(w->back); |
92 | 96 | comm_base_delete(w->base); |
93 | 97 | free(w); |
406 | 410 | /** fill data into result */ |
407 | 411 | static int |
408 | 412 | 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) | |
410 | 414 | { |
411 | 415 | size_t i; |
412 | 416 | struct packed_rrset_data* data; |
417 | res->ttl = 0; | |
413 | 418 | if(!answer) { |
414 | 419 | if(finalcname) { |
415 | 420 | if(!fill_canon(res, finalcname)) |
416 | 421 | return 0; /* out of memory */ |
417 | 422 | } |
423 | if(rep->rrset_count != 0) | |
424 | res->ttl = (int)rep->ttl; | |
418 | 425 | res->data = (char**)calloc(1, sizeof(char*)); |
419 | 426 | res->len = (int*)calloc(1, sizeof(int)); |
420 | 427 | return (res->data && res->len); |
435 | 442 | if(!res->data[i]) |
436 | 443 | return 0; /* out of memory */ |
437 | 444 | } |
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; | |
438 | 460 | res->data[data->count] = NULL; |
439 | 461 | res->len[data->count] = 0; |
440 | 462 | return 1; |
454 | 476 | return; /* error parsing buf, or out of memory */ |
455 | 477 | } |
456 | 478 | 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)) | |
458 | 480 | return; /* out of memory */ |
459 | 481 | /* rcode, havedata, nxdomain, secure, bogus */ |
460 | 482 | res->rcode = (int)FLAGS_GET_RCODE(rep->flags); |
192 | 192 | * Is NULL if the result is not bogus. |
193 | 193 | */ |
194 | 194 | 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; | |
195 | 201 | }; |
196 | 202 | |
197 | 203 | /** |
0 | 0 | |
1 | # libtool (GNU libtool) 2.4 | |
1 | # libtool (GNU libtool) 2.4.2 | |
2 | 2 | # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
3 | 3 | |
4 | 4 | # 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. | |
6 | 6 | # This is free software; see the source for copying conditions. There is NO |
7 | 7 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
8 | 8 | |
40 | 40 | # --quiet, --silent don't print informational messages |
41 | 41 | # --no-quiet, --no-silent |
42 | 42 | # print informational messages (default) |
43 | # --no-warn don't display warning messages | |
43 | 44 | # --tag=TAG use configuration variables from tag TAG |
44 | 45 | # -v, --verbose print more informational messages than default |
45 | 46 | # --no-verbose don't print the extra informational messages |
68 | 69 | # compiler: $LTCC |
69 | 70 | # compiler flags: $LTCFLAGS |
70 | 71 | # linker: $LD (gnu? $with_gnu_ld) |
71 | # $progname: (GNU libtool) 2.4 | |
72 | # $progname: (GNU libtool) 2.4.2 | |
72 | 73 | # automake: $automake_version |
73 | 74 | # autoconf: $autoconf_version |
74 | 75 | # |
78 | 79 | |
79 | 80 | PROGRAM=libtool |
80 | 81 | PACKAGE=libtool |
81 | VERSION=2.4 | |
82 | VERSION=2.4.2 | |
82 | 83 | TIMESTAMP="" |
83 | package_revision=1.3293 | |
84 | package_revision=1.3337 | |
84 | 85 | |
85 | 86 | # Be Bourne compatible |
86 | 87 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
135 | 136 | |
136 | 137 | : ${CP="cp -f"} |
137 | 138 | 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"} | |
142 | 139 | : ${MAKE="make"} |
143 | 140 | : ${MKDIR="mkdir"} |
144 | 141 | : ${MV="mv -f"} |
145 | 142 | : ${RM="rm -f"} |
146 | : ${SED="/bin/sed"} | |
147 | 143 | : ${SHELL="${CONFIG_SHELL-/bin/sh}"} |
148 | 144 | : ${Xsed="$SED -e 1s/^X//"} |
149 | 145 | |
386 | 382 | ;; |
387 | 383 | *) |
388 | 384 | save_IFS="$IFS" |
389 | IFS=: | |
385 | IFS=${PATH_SEPARATOR-:} | |
390 | 386 | for progdir in $PATH; do |
391 | 387 | IFS="$save_IFS" |
392 | 388 | test -x "$progdir/$progname" && break |
770 | 766 | s*\$LTCFLAGS*'"$LTCFLAGS"'* |
771 | 767 | s*\$LD*'"$LD"'* |
772 | 768 | 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`"'/ | |
775 | 771 | p |
776 | 772 | d |
777 | 773 | } |
1051 | 1047 | opt_help=false |
1052 | 1048 | opt_help_all=false |
1053 | 1049 | opt_silent=: |
1050 | opt_warning=: | |
1054 | 1051 | opt_verbose=: |
1055 | 1052 | opt_silent=false |
1056 | 1053 | opt_verbose=false |
1117 | 1114 | ;; |
1118 | 1115 | --no-silent|--no-quiet) |
1119 | 1116 | opt_silent=false |
1117 | func_append preserve_args " $opt" | |
1118 | ;; | |
1119 | --no-warning|--no-warn) | |
1120 | opt_warning=false | |
1120 | 1121 | func_append preserve_args " $opt" |
1121 | 1122 | ;; |
1122 | 1123 | --no-verbose) |
2058 | 2059 | *.[cCFSifmso] | \ |
2059 | 2060 | *.ada | *.adb | *.ads | *.asm | \ |
2060 | 2061 | *.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) | |
2062 | 2063 | func_xform "$libobj" |
2063 | 2064 | libobj=$func_xform_result |
2064 | 2065 | ;; |
3200 | 3201 | |
3201 | 3202 | # Set up the ranlib parameters. |
3202 | 3203 | oldlib="$destdir/$name" |
3204 | func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 | |
3205 | tool_oldlib=$func_to_tool_file_result | |
3203 | 3206 | |
3204 | 3207 | func_show_eval "$install_prog \$file \$oldlib" 'exit $?' |
3205 | 3208 | |
3206 | 3209 | 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 $?' | |
3208 | 3211 | fi |
3209 | 3212 | |
3210 | 3213 | # Do each command in the postinstall commands. |
3469 | 3472 | # linked before any other PIC object. But we must not use |
3470 | 3473 | # pic_flag when linking with -static. The problem exists in |
3471 | 3474 | # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. |
3472 | *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) | |
3475 | *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) | |
3473 | 3476 | pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; |
3474 | 3477 | *-*-hpux*) |
3475 | 3478 | pic_flag_for_symtable=" $pic_flag" ;; |
3981 | 3984 | # launches target application with the remaining arguments. |
3982 | 3985 | func_exec_program () |
3983 | 3986 | { |
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 | |
3992 | 3998 | func_exec_program_core \${1+\"\$@\"} |
3993 | 3999 | } |
3994 | 4000 | |
5056 | 5062 | { |
5057 | 5063 | EOF |
5058 | 5064 | 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' | |
5062 | 5074 | cat <<"EOF" |
5063 | 5075 | } |
5064 | 5076 | EOF |
5642 | 5654 | continue |
5643 | 5655 | ;; |
5644 | 5656 | |
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=*) | |
5646 | 5659 | func_append compiler_flags " $arg" |
5647 | 5660 | func_append compile_command " $arg" |
5648 | 5661 | func_append finalize_command " $arg" |
6146 | 6159 | lib= |
6147 | 6160 | found=no |
6148 | 6161 | 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=*) | |
6150 | 6164 | if test "$linkmode,$pass" = "prog,link"; then |
6151 | 6165 | compile_deplibs="$deplib $compile_deplibs" |
6152 | 6166 | finalize_deplibs="$deplib $finalize_deplibs" |
6830 | 6844 | test "$hardcode_direct_absolute" = no; then |
6831 | 6845 | add="$dir/$linklib" |
6832 | 6846 | elif test "$hardcode_minus_L" = yes; then |
6833 | add_dir="-L$dir" | |
6847 | add_dir="-L$absdir" | |
6834 | 6848 | # Try looking first in the location we're being installed to. |
6835 | 6849 | if test -n "$inst_prefix_dir"; then |
6836 | 6850 | case $libdir in |
7315 | 7329 | # which has an extra 1 added just for fun |
7316 | 7330 | # |
7317 | 7331 | case $version_type in |
7332 | # correct linux to gnu/linux during the next big refactor | |
7318 | 7333 | darwin|linux|osf|windows|none) |
7319 | 7334 | func_arith $number_major + $number_minor |
7320 | 7335 | current=$func_arith_result |
7431 | 7446 | versuffix="$major.$revision" |
7432 | 7447 | ;; |
7433 | 7448 | |
7434 | linux) | |
7449 | linux) # correct to gnu/linux during the next big refactor | |
7435 | 7450 | func_arith $current - $age |
7436 | 7451 | major=.$func_arith_result |
7437 | 7452 | versuffix="$major.$age.$revision" |
8019 | 8034 | |
8020 | 8035 | # Test again, we may have decided not to build it any more |
8021 | 8036 | 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 | |
8022 | 8042 | if test "$hardcode_into_libs" = yes; then |
8023 | 8043 | # Hardcode the library paths |
8024 | 8044 | hardcode_libdirs= |
8057 | 8077 | if test -n "$hardcode_libdir_separator" && |
8058 | 8078 | test -n "$hardcode_libdirs"; then |
8059 | 8079 | 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\"" | |
8065 | 8081 | fi |
8066 | 8082 | if test -n "$runpath_var" && test -n "$perm_rpath"; then |
8067 | 8083 | # We should set the runpath_var. |
9151 | 9167 | esac |
9152 | 9168 | done |
9153 | 9169 | fi |
9170 | func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 | |
9171 | tool_oldlib=$func_to_tool_file_result | |
9154 | 9172 | eval cmds=\"$old_archive_cmds\" |
9155 | 9173 | |
9156 | 9174 | func_len " $cmds" |
9260 | 9278 | *.la) |
9261 | 9279 | func_basename "$deplib" |
9262 | 9280 | 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` | |
9264 | 9283 | test -z "$libdir" && \ |
9265 | 9284 | func_fatal_error "\`$deplib' is not a valid libtool archive" |
9266 | 9285 | func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" |
448 | 448 | struct local_data* node; |
449 | 449 | struct local_rrset* rrset; |
450 | 450 | 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; | |
453 | 453 | if(!get_rr_content(rrstr, &nm, &rrtype, &rrclass, &ttl, buf)) { |
454 | 454 | log_err("bad local-data: %s", rrstr); |
455 | 455 | return 0; |
57 | 57 | #include "util/net_help.h" |
58 | 58 | #include "util/random.h" |
59 | 59 | #include "util/fptr_wlist.h" |
60 | #ifdef HAVE_OPENSSL_SSL_H | |
60 | 61 | #include <openssl/ssl.h> |
62 | #endif | |
61 | 63 | |
62 | 64 | #ifdef HAVE_NETDB_H |
63 | 65 | #include <netdb.h> |
133 | 133 | #include <openssl/rand.h> |
134 | 134 | #endif |
135 | 135 | #include <openssl/x509.h> |
136 | #include <openssl/x509v3.h> | |
136 | 137 | #include <openssl/pem.h> |
137 | 138 | |
138 | 139 | /** name of server in URL to fetch HTTPS from */ |
141 | 142 | #define XMLNAME "root-anchors/root-anchors.xml" |
142 | 143 | /** path on HTTPS server to p7s file */ |
143 | 144 | #define P7SNAME "root-anchors/root-anchors.p7s" |
145 | /** name of the signer of the certificate */ | |
146 | #define P7SIGNER "dnssec@iana.org" | |
144 | 147 | /** port number for https access */ |
145 | 148 | #define HTTPS_PORT 443 |
146 | 149 | |
183 | 186 | printf("-u name server in https url, default %s\n", URLNAME); |
184 | 187 | printf("-x path pathname to xml in url, default %s\n", XMLNAME); |
185 | 188 | printf("-s path pathname to p7s in url, default %s\n", P7SNAME); |
189 | printf("-n name signer's subject emailAddress, default %s\n", P7SIGNER); | |
186 | 190 | printf("-4 work using IPv4 only\n"); |
187 | 191 | printf("-6 work using IPv6 only\n"); |
188 | 192 | printf("-f resolv.conf use given resolv.conf to resolve -u name\n"); |
1502 | 1506 | } |
1503 | 1507 | } |
1504 | 1508 | |
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 | ||
1505 | 1523 | /** |
1506 | 1524 | * XML parser setup of the callbacks for the tags |
1507 | 1525 | */ |
1530 | 1548 | if(verb) printf("out of memory\n"); |
1531 | 1549 | exit(0); |
1532 | 1550 | } |
1551 | XML_SetEntityDeclHandler(parser, xml_entitydeclhandler); | |
1533 | 1552 | XML_SetElementHandler(parser, xml_startelem, xml_endelem); |
1534 | 1553 | XML_SetCharacterDataHandler(parser, xml_charhandle); |
1535 | 1554 | } |
1607 | 1626 | } |
1608 | 1627 | } |
1609 | 1628 | |
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 | ||
1610 | 1729 | /** verify a PKCS7 signature, false on failure */ |
1611 | 1730 | 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) | |
1613 | 1732 | { |
1614 | 1733 | PKCS7* p7; |
1615 | 1734 | X509_STORE *store = X509_STORE_new(); |
1735 | STACK_OF(X509)* validsigners; | |
1616 | 1736 | int secure = 0; |
1617 | 1737 | int i; |
1618 | 1738 | #ifdef X509_V_FLAG_CHECK_SS_SIGNATURE |
1634 | 1754 | #endif |
1635 | 1755 | return 0; |
1636 | 1756 | } |
1757 | #ifdef X509_V_FLAG_CHECK_SS_SIGNATURE | |
1758 | X509_VERIFY_PARAM_free(param); | |
1759 | #endif | |
1637 | 1760 | |
1638 | 1761 | (void)BIO_reset(p7s); |
1639 | 1762 | (void)BIO_reset(data); |
1658 | 1781 | } |
1659 | 1782 | if(verb >= 2) printf("setup the X509_STORE\n"); |
1660 | 1783 | |
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) { | |
1662 | 1793 | secure = 1; |
1663 | 1794 | if(verb) printf("the PKCS7 signature verified\n"); |
1664 | 1795 | } else { |
1667 | 1798 | } |
1668 | 1799 | } |
1669 | 1800 | |
1801 | sk_X509_free(validsigners); | |
1670 | 1802 | X509_STORE_free(store); |
1671 | 1803 | PKCS7_free(p7); |
1672 | 1804 | return secure; |
1727 | 1859 | /** Perform the verification and update of the trustanchor file */ |
1728 | 1860 | static void |
1729 | 1861 | verify_and_update_anchor(char* root_anchor_file, BIO* xml, BIO* p7s, |
1730 | STACK_OF(X509)* cert) | |
1862 | STACK_OF(X509)* cert, char* p7signer) | |
1731 | 1863 | { |
1732 | 1864 | BIO* ds; |
1733 | 1865 | |
1734 | 1866 | /* verify xml file */ |
1735 | if(!verify_p7sig(xml, p7s, cert)) { | |
1867 | if(!verify_p7sig(xml, p7s, cert, p7signer)) { | |
1736 | 1868 | printf("the PKCS7 signature failed\n"); |
1737 | 1869 | exit(0); |
1738 | 1870 | } |
1756 | 1888 | /** perform actual certupdate work */ |
1757 | 1889 | static int |
1758 | 1890 | 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, | |
1760 | 1892 | char* res_conf, char* root_hints, char* debugconf, |
1761 | 1893 | int ip4only, int ip6only, int port, struct ub_result* dnskey) |
1762 | 1894 | { |
1789 | 1921 | p7s = https(ip_list, p7sname, urlname); |
1790 | 1922 | |
1791 | 1923 | /* 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); | |
1793 | 1925 | if(verb) printf("success: the anchor has been updated " |
1794 | 1926 | "using the cert\n"); |
1795 | 1927 | |
2039 | 2171 | /** perform the unbound-anchor work */ |
2040 | 2172 | static int |
2041 | 2173 | 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, | |
2043 | 2175 | char* res_conf, char* root_hints, char* debugconf, |
2044 | 2176 | int ip4only, int ip6only, int force, int port) |
2045 | 2177 | { |
2072 | 2204 | if((dnskey->rcode == 0 && |
2073 | 2205 | probe_date_allows_certupdate(root_anchor_file)) || force) { |
2074 | 2206 | 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)) | |
2077 | 2209 | return 1; |
2078 | 2210 | return used_builtin; |
2079 | 2211 | } |
2096 | 2228 | char* urlname = URLNAME; |
2097 | 2229 | char* xmlname = XMLNAME; |
2098 | 2230 | char* p7sname = P7SNAME; |
2231 | char* p7signer = P7SIGNER; | |
2099 | 2232 | char* res_conf = NULL; |
2100 | 2233 | char* root_hints = NULL; |
2101 | 2234 | char* debugconf = NULL; |
2102 | 2235 | int dolist=0, ip4only=0, ip6only=0, force=0, port = HTTPS_PORT; |
2103 | 2236 | /* 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) { | |
2105 | 2238 | switch(c) { |
2106 | 2239 | case 'l': |
2107 | 2240 | dolist = 1; |
2127 | 2260 | case 's': |
2128 | 2261 | p7sname = optarg; |
2129 | 2262 | break; |
2263 | case 'n': | |
2264 | p7signer = optarg; | |
2265 | break; | |
2130 | 2266 | case 'f': |
2131 | 2267 | res_conf = optarg; |
2132 | 2268 | break; |
2164 | 2300 | if(dolist) do_list_builtin(); |
2165 | 2301 | |
2166 | 2302 | 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 | } |
61 | 61 | #include "libunbound/unbound.h" |
62 | 62 | #include <ldns/ldns.h> |
63 | 63 | #ifdef HAVE_NSS |
64 | #include <nss3/nss.h> | |
64 | /* nss3 */ | |
65 | #include "nss.h" | |
65 | 66 | #endif |
66 | 67 | |
67 | 68 | /** verbosity for unbound-host app */ |
196 | 196 | /** |
197 | 197 | * reads the canned reply file and returns a list of structs |
198 | 198 | * does an exit on error. |
199 | * @param name: name of the file to read. | |
199 | 200 | * @param skip_whitespace: skip leftside whitespace. |
200 | 201 | */ |
201 | 202 | struct entry* read_datafile(const char* name, int skip_whitespace); |
56 | 56 | #endif |
57 | 57 | |
58 | 58 | #ifdef HAVE_NSS |
59 | #include "nss3/nss.h" | |
59 | /* nss3 */ | |
60 | #include "nss.h" | |
60 | 61 | #endif |
61 | 62 | |
62 | 63 | #include <ldns/ldns.h> |
Binary diff not shown
Binary diff not shown
115 | 115 | # depending on uname try to check for collisions in port numbers |
116 | 116 | case "`uname`" in |
117 | 117 | 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/'` | |
119 | 119 | ;; |
120 | 120 | FreeBSD|freebsd|NetBSD|netbsd|OpenBSD|openbsd) |
121 | 121 | 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 |
9 | 9 | #define FLEX_SCANNER |
10 | 10 | #define YY_FLEX_MAJOR_VERSION 2 |
11 | 11 | #define YY_FLEX_MINOR_VERSION 5 |
12 | #define YY_FLEX_SUBMINOR_VERSION 35 | |
12 | #define YY_FLEX_SUBMINOR_VERSION 36 | |
13 | 13 | #if YY_FLEX_SUBMINOR_VERSION > 0 |
14 | 14 | #define FLEX_BETA |
15 | 15 | #endif |
54 | 54 | typedef unsigned char flex_uint8_t; |
55 | 55 | typedef unsigned short int flex_uint16_t; |
56 | 56 | typedef unsigned int flex_uint32_t; |
57 | #endif /* ! C99 */ | |
58 | 57 | |
59 | 58 | /* Limits of integral types. */ |
60 | 59 | #ifndef INT8_MIN |
84 | 83 | #ifndef UINT32_MAX |
85 | 84 | #define UINT32_MAX (4294967295U) |
86 | 85 | #endif |
86 | ||
87 | #endif /* ! C99 */ | |
87 | 88 | |
88 | 89 | #endif /* ! FLEXINT_H */ |
89 | 90 | |
153 | 154 | typedef struct yy_buffer_state *YY_BUFFER_STATE; |
154 | 155 | #endif |
155 | 156 | |
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; | |
157 | 163 | |
158 | 164 | extern FILE *yyin, *yyout; |
159 | 165 | |
179 | 185 | |
180 | 186 | #define unput(c) yyunput( c, (yytext_ptr) ) |
181 | 187 | |
182 | #ifndef YY_TYPEDEF_YY_SIZE_T | |
183 | #define YY_TYPEDEF_YY_SIZE_T | |
184 | typedef size_t yy_size_t; | |
185 | #endif | |
186 | ||
187 | 188 | #ifndef YY_STRUCT_YY_BUFFER_STATE |
188 | 189 | #define YY_STRUCT_YY_BUFFER_STATE |
189 | 190 | struct yy_buffer_state |
201 | 202 | /* Number of characters read into yy_ch_buf, not including EOB |
202 | 203 | * characters. |
203 | 204 | */ |
204 | int yy_n_chars; | |
205 | yy_size_t yy_n_chars; | |
205 | 206 | |
206 | 207 | /* Whether we "own" the buffer - i.e., we know we created it, |
207 | 208 | * and can realloc() it to grow it, and should free() it to |
271 | 272 | |
272 | 273 | /* yy_hold_char holds the character lost when yytext is formed. */ |
273 | 274 | 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; | |
276 | 277 | |
277 | 278 | /* Points to current character in buffer. */ |
278 | 279 | static char *yy_c_buf_p = (char *) 0; |
300 | 301 | |
301 | 302 | YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); |
302 | 303 | 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 ); | |
304 | 305 | |
305 | 306 | void *yyalloc (yy_size_t ); |
306 | 307 | void *yyrealloc (void *,yy_size_t ); |
1916 | 1917 | #define YY_NO_INPUT 1 |
1917 | 1918 | #endif |
1918 | 1919 | |
1919 | #line 1919 "<stdout>" | |
1920 | #line 1920 "<stdout>" | |
1920 | 1921 | |
1921 | 1922 | #define INITIAL 0 |
1922 | 1923 | #define quotedstring 1 |
1960 | 1961 | |
1961 | 1962 | void yyset_out (FILE * out_str ); |
1962 | 1963 | |
1963 | int yyget_leng (void ); | |
1964 | yy_size_t yyget_leng (void ); | |
1964 | 1965 | |
1965 | 1966 | char *yyget_text (void ); |
1966 | 1967 | |
2019 | 2020 | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
2020 | 2021 | { \ |
2021 | 2022 | int c = '*'; \ |
2022 | unsigned n; \ | |
2023 | size_t n; \ | |
2023 | 2024 | for ( n = 0; n < max_size && \ |
2024 | 2025 | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
2025 | 2026 | buf[n] = (char) c; \ |
2103 | 2104 | |
2104 | 2105 | #line 168 "util/configlexer.lex" |
2105 | 2106 | |
2106 | #line 2106 "<stdout>" | |
2107 | #line 2107 "<stdout>" | |
2107 | 2108 | |
2108 | 2109 | if ( !(yy_init) ) |
2109 | 2110 | { |
2994 | 2995 | #line 388 "util/configlexer.lex" |
2995 | 2996 | ECHO; |
2996 | 2997 | YY_BREAK |
2997 | #line 2997 "<stdout>" | |
2998 | #line 2998 "<stdout>" | |
2998 | 2999 | |
2999 | 3000 | case YY_END_OF_BUFFER: |
3000 | 3001 | { |
3178 | 3179 | |
3179 | 3180 | else |
3180 | 3181 | { |
3181 | int num_to_read = | |
3182 | yy_size_t num_to_read = | |
3182 | 3183 | YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; |
3183 | 3184 | |
3184 | 3185 | while ( num_to_read <= 0 ) |
3185 | 3186 | { /* Not enough room in the buffer - grow it. */ |
3186 | 3187 | |
3187 | 3188 | /* 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; | |
3189 | 3190 | |
3190 | 3191 | int yy_c_buf_p_offset = |
3191 | 3192 | (int) ((yy_c_buf_p) - b->yy_ch_buf); |
3192 | 3193 | |
3193 | 3194 | if ( b->yy_is_our_buffer ) |
3194 | 3195 | { |
3195 | int new_size = b->yy_buf_size * 2; | |
3196 | yy_size_t new_size = b->yy_buf_size * 2; | |
3196 | 3197 | |
3197 | 3198 | if ( new_size <= 0 ) |
3198 | 3199 | b->yy_buf_size += b->yy_buf_size / 8; |
3223 | 3224 | |
3224 | 3225 | /* Read in more data. */ |
3225 | 3226 | 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 ); | |
3227 | 3228 | |
3228 | 3229 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
3229 | 3230 | } |
3318 | 3319 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
3319 | 3320 | yy_is_jam = (yy_current_state == 1342); |
3320 | 3321 | |
3321 | return yy_is_jam ? 0 : yy_current_state; | |
3322 | return yy_is_jam ? 0 : yy_current_state; | |
3322 | 3323 | } |
3323 | 3324 | |
3324 | 3325 | #ifndef YY_NO_INPUT |
3345 | 3346 | |
3346 | 3347 | else |
3347 | 3348 | { /* need more input */ |
3348 | int offset = (yy_c_buf_p) - (yytext_ptr); | |
3349 | yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); | |
3349 | 3350 | ++(yy_c_buf_p); |
3350 | 3351 | |
3351 | 3352 | switch ( yy_get_next_buffer( ) ) |
3505 | 3506 | yyfree((void *) b ); |
3506 | 3507 | } |
3507 | 3508 | |
3508 | #ifndef __cplusplus | |
3509 | extern int isatty (int ); | |
3510 | #endif /* __cplusplus */ | |
3511 | ||
3512 | 3509 | /* Initializes or reinitializes a buffer. |
3513 | 3510 | * This function is sometimes called more than once on the same buffer, |
3514 | 3511 | * such as during a yyrestart() or at EOF. |
3621 | 3618 | */ |
3622 | 3619 | static void yyensure_buffer_stack (void) |
3623 | 3620 | { |
3624 | int num_to_alloc; | |
3621 | yy_size_t num_to_alloc; | |
3625 | 3622 | |
3626 | 3623 | if (!(yy_buffer_stack)) { |
3627 | 3624 | |
3713 | 3710 | |
3714 | 3711 | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will |
3715 | 3712 | * 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. | |
3718 | 3715 | * |
3719 | 3716 | * @return the newly allocated buffer state object. |
3720 | 3717 | */ |
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 ) | |
3722 | 3719 | { |
3723 | 3720 | YY_BUFFER_STATE b; |
3724 | 3721 | char *buf; |
3805 | 3802 | /** Get the length of the current token. |
3806 | 3803 | * |
3807 | 3804 | */ |
3808 | int yyget_leng (void) | |
3805 | yy_size_t yyget_leng (void) | |
3809 | 3806 | { |
3810 | 3807 | return yyleng; |
3811 | 3808 | } |
0 | /* A Bison parser, made by GNU Bison 2.5. */ | |
0 | /* A Bison parser, made by GNU Bison 2.6.1. */ | |
1 | 1 | |
2 | 2 | /* Bison implementation for Yacc-like parsers in C |
3 | 3 | |
4 | Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. | |
4 | Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc. | |
5 | 5 | |
6 | 6 | This program is free software: you can redistribute it and/or modify |
7 | 7 | it under the terms of the GNU General Public License as published by |
43 | 43 | #define YYBISON 1 |
44 | 44 | |
45 | 45 | /* Bison version. */ |
46 | #define YYBISON_VERSION "2.5" | |
46 | #define YYBISON_VERSION "2.6.1" | |
47 | 47 | |
48 | 48 | /* Skeleton name. */ |
49 | 49 | #define YYSKELETON_NAME "yacc.c" |
57 | 57 | /* Pull parsers. */ |
58 | 58 | #define YYPULL 1 |
59 | 59 | |
60 | /* Using locations. */ | |
61 | #define YYLSP_NEEDED 0 | |
62 | 60 | |
63 | 61 | |
64 | 62 | |
65 | 63 | /* Copy the first part of user declarations. */ |
66 | ||
67 | /* Line 268 of yacc.c */ | |
64 | /* Line 336 of yacc.c */ | |
68 | 65 | #line 38 "util/configparser.y" |
69 | 66 | |
70 | 67 | #include "config.h" |
92 | 89 | #endif |
93 | 90 | |
94 | 91 | |
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 | |
103 | 102 | |
104 | 103 | /* Enabling verbose error messages. */ |
105 | 104 | #ifdef YYERROR_VERBOSE |
109 | 108 | # define YYERROR_VERBOSE 0 |
110 | 109 | #endif |
111 | 110 | |
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 | |
117 | 122 | |
118 | 123 | /* Tokens. */ |
119 | 124 | #ifndef YYTOKENTYPE |
381 | 386 | |
382 | 387 | |
383 | 388 | |
384 | ||
385 | 389 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
386 | 390 | typedef union YYSTYPE |
387 | 391 | { |
388 | ||
389 | /* Line 293 of yacc.c */ | |
392 | /* Line 350 of yacc.c */ | |
390 | 393 | #line 64 "util/configparser.y" |
391 | 394 | |
392 | 395 | char* str; |
393 | 396 | |
394 | 397 | |
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" | |
398 | 400 | } YYSTYPE; |
399 | 401 | # define YYSTYPE_IS_TRIVIAL 1 |
400 | 402 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
401 | 403 | # define YYSTYPE_IS_DECLARED 1 |
402 | 404 | #endif |
403 | 405 | |
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 */ | |
404 | 423 | |
405 | 424 | /* Copy the second part of user declarations. */ |
406 | 425 | |
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" | |
410 | 428 | |
411 | 429 | #ifdef short |
412 | 430 | # undef short |
512 | 530 | # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ |
513 | 531 | || defined __cplusplus || defined _MSC_VER) |
514 | 532 | # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
533 | /* Use EXIT_SUCCESS as a witness for stdlib.h. */ | |
515 | 534 | # ifndef EXIT_SUCCESS |
516 | 535 | # define EXIT_SUCCESS 0 |
517 | 536 | # endif |
603 | 622 | #endif |
604 | 623 | |
605 | 624 | #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 | |
607 | 626 | not overlap. */ |
608 | 627 | # ifndef YYCOPY |
609 | 628 | # 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))) | |
612 | 631 | # 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 | } \ | |
620 | 639 | while (YYID (0)) |
621 | 640 | # endif |
622 | 641 | # endif |
820 | 839 | }; |
821 | 840 | #endif |
822 | 841 | |
823 | #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE | |
842 | #if YYDEBUG || YYERROR_VERBOSE || 0 | |
824 | 843 | /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
825 | 844 | First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
826 | 845 | static const char *const yytname[] = |
916 | 935 | "rc_control_enable", "rc_control_port", "rc_control_interface", |
917 | 936 | "rc_server_key_file", "rc_server_cert_file", "rc_control_key_file", |
918 | 937 | "rc_control_cert_file", "pythonstart", "contents_py", "content_py", |
919 | "py_script", 0 | |
938 | "py_script", YY_NULL | |
920 | 939 | }; |
921 | 940 | #endif |
922 | 941 | |
1268 | 1287 | |
1269 | 1288 | #define YYRECOVERING() (!!yyerrstatus) |
1270 | 1289 | |
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 | { \ | |
1282 | 1302 | yyerror (YY_("syntax error: cannot back up")); \ |
1283 | 1303 | YYERROR; \ |
1284 | 1304 | } \ |
1288 | 1308 | #define YYTERROR 1 |
1289 | 1309 | #define YYERRCODE 256 |
1290 | 1310 | |
1291 | ||
1292 | 1311 | /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. |
1293 | 1312 | If N is 0, then set CURRENT to the empty location which ends |
1294 | 1313 | the previous symbol: RHS[0] (always defined). */ |
1295 | 1314 | |
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 | ||
1296 | 1335 | #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 | ||
1316 | 1337 | |
1317 | 1338 | |
1318 | 1339 | /* This macro is provided for backward compatibility. */ |
1373 | 1394 | YYSTYPE const * const yyvaluep; |
1374 | 1395 | #endif |
1375 | 1396 | { |
1397 | FILE *yyo = yyoutput; | |
1398 | YYUSE (yyo); | |
1376 | 1399 | if (!yyvaluep) |
1377 | 1400 | return; |
1378 | 1401 | # ifdef YYPRINT |
1624 | 1647 | yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, |
1625 | 1648 | yytype_int16 *yyssp, int yytoken) |
1626 | 1649 | { |
1627 | YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]); | |
1650 | YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]); | |
1628 | 1651 | YYSIZE_T yysize = yysize0; |
1629 | 1652 | YYSIZE_T yysize1; |
1630 | 1653 | enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; |
1631 | 1654 | /* Internationalized format string. */ |
1632 | const char *yyformat = 0; | |
1655 | const char *yyformat = YY_NULL; | |
1633 | 1656 | /* Arguments of yyformat. */ |
1634 | 1657 | char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; |
1635 | 1658 | /* Number of reported tokens (one for the "unexpected", one per |
1689 | 1712 | break; |
1690 | 1713 | } |
1691 | 1714 | yyarg[yycount++] = yytname[yyx]; |
1692 | yysize1 = yysize + yytnamerr (0, yytname[yyx]); | |
1715 | yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]); | |
1693 | 1716 | if (! (yysize <= yysize1 |
1694 | 1717 | && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
1695 | 1718 | return 2; |
1781 | 1804 | } |
1782 | 1805 | |
1783 | 1806 | |
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 */ | |
1798 | 1807 | |
1799 | 1808 | |
1800 | 1809 | /* The lookahead symbol. */ |
1841 | 1850 | `yyss': related to states. |
1842 | 1851 | `yyvs': related to semantic values. |
1843 | 1852 | |
1844 | Refer to the stacks thru separate pointers, to allow yyoverflow | |
1853 | Refer to the stacks through separate pointers, to allow yyoverflow | |
1845 | 1854 | to reallocate them elsewhere. */ |
1846 | 1855 | |
1847 | 1856 | /* The state stack. */ |
1895 | 1904 | The wasted elements are never initialized. */ |
1896 | 1905 | yyssp = yyss; |
1897 | 1906 | yyvsp = yyvs; |
1898 | ||
1899 | 1907 | goto yysetstate; |
1900 | 1908 | |
1901 | 1909 | /*------------------------------------------------------------. |
2073 | 2081 | switch (yyn) |
2074 | 2082 | { |
2075 | 2083 | case 9: |
2076 | ||
2077 | /* Line 1806 of yacc.c */ | |
2084 | /* Line 1787 of yacc.c */ | |
2078 | 2085 | #line 118 "util/configparser.y" |
2079 | 2086 | { |
2080 | 2087 | OUTYY(("\nP(server:)\n")); |
2082 | 2089 | break; |
2083 | 2090 | |
2084 | 2091 | case 110: |
2085 | ||
2086 | /* Line 1806 of yacc.c */ | |
2092 | /* Line 1787 of yacc.c */ | |
2087 | 2093 | #line 167 "util/configparser.y" |
2088 | 2094 | { |
2089 | 2095 | struct config_stub* s; |
2098 | 2104 | break; |
2099 | 2105 | |
2100 | 2106 | case 118: |
2101 | ||
2102 | /* Line 1806 of yacc.c */ | |
2107 | /* Line 1787 of yacc.c */ | |
2103 | 2108 | #line 183 "util/configparser.y" |
2104 | 2109 | { |
2105 | 2110 | struct config_stub* s; |
2114 | 2119 | break; |
2115 | 2120 | |
2116 | 2121 | case 125: |
2117 | ||
2118 | /* Line 1806 of yacc.c */ | |
2122 | /* Line 1787 of yacc.c */ | |
2119 | 2123 | #line 199 "util/configparser.y" |
2120 | 2124 | { |
2121 | 2125 | OUTYY(("P(server_num_threads:%s)\n", (yyvsp[(2) - (2)].str))); |
2127 | 2131 | break; |
2128 | 2132 | |
2129 | 2133 | case 126: |
2130 | ||
2131 | /* Line 1806 of yacc.c */ | |
2134 | /* Line 1787 of yacc.c */ | |
2132 | 2135 | #line 208 "util/configparser.y" |
2133 | 2136 | { |
2134 | 2137 | OUTYY(("P(server_verbosity:%s)\n", (yyvsp[(2) - (2)].str))); |
2140 | 2143 | break; |
2141 | 2144 | |
2142 | 2145 | case 127: |
2143 | ||
2144 | /* Line 1806 of yacc.c */ | |
2146 | /* Line 1787 of yacc.c */ | |
2145 | 2147 | #line 217 "util/configparser.y" |
2146 | 2148 | { |
2147 | 2149 | OUTYY(("P(server_statistics_interval:%s)\n", (yyvsp[(2) - (2)].str))); |
2155 | 2157 | break; |
2156 | 2158 | |
2157 | 2159 | case 128: |
2158 | ||
2159 | /* Line 1806 of yacc.c */ | |
2160 | /* Line 1787 of yacc.c */ | |
2160 | 2161 | #line 228 "util/configparser.y" |
2161 | 2162 | { |
2162 | 2163 | OUTYY(("P(server_statistics_cumulative:%s)\n", (yyvsp[(2) - (2)].str))); |
2168 | 2169 | break; |
2169 | 2170 | |
2170 | 2171 | case 129: |
2171 | ||
2172 | /* Line 1806 of yacc.c */ | |
2172 | /* Line 1787 of yacc.c */ | |
2173 | 2173 | #line 237 "util/configparser.y" |
2174 | 2174 | { |
2175 | 2175 | OUTYY(("P(server_extended_statistics:%s)\n", (yyvsp[(2) - (2)].str))); |
2181 | 2181 | break; |
2182 | 2182 | |
2183 | 2183 | case 130: |
2184 | ||
2185 | /* Line 1806 of yacc.c */ | |
2184 | /* Line 1787 of yacc.c */ | |
2186 | 2185 | #line 246 "util/configparser.y" |
2187 | 2186 | { |
2188 | 2187 | OUTYY(("P(server_port:%s)\n", (yyvsp[(2) - (2)].str))); |
2194 | 2193 | break; |
2195 | 2194 | |
2196 | 2195 | case 131: |
2197 | ||
2198 | /* Line 1806 of yacc.c */ | |
2196 | /* Line 1787 of yacc.c */ | |
2199 | 2197 | #line 255 "util/configparser.y" |
2200 | 2198 | { |
2201 | 2199 | OUTYY(("P(server_interface:%s)\n", (yyvsp[(2) - (2)].str))); |
2211 | 2209 | break; |
2212 | 2210 | |
2213 | 2211 | case 132: |
2214 | ||
2215 | /* Line 1806 of yacc.c */ | |
2212 | /* Line 1787 of yacc.c */ | |
2216 | 2213 | #line 268 "util/configparser.y" |
2217 | 2214 | { |
2218 | 2215 | OUTYY(("P(server_outgoing_interface:%s)\n", (yyvsp[(2) - (2)].str))); |
2230 | 2227 | break; |
2231 | 2228 | |
2232 | 2229 | case 133: |
2233 | ||
2234 | /* Line 1806 of yacc.c */ | |
2230 | /* Line 1787 of yacc.c */ | |
2235 | 2231 | #line 283 "util/configparser.y" |
2236 | 2232 | { |
2237 | 2233 | OUTYY(("P(server_outgoing_range:%s)\n", (yyvsp[(2) - (2)].str))); |
2243 | 2239 | break; |
2244 | 2240 | |
2245 | 2241 | case 134: |
2246 | ||
2247 | /* Line 1806 of yacc.c */ | |
2242 | /* Line 1787 of yacc.c */ | |
2248 | 2243 | #line 292 "util/configparser.y" |
2249 | 2244 | { |
2250 | 2245 | OUTYY(("P(server_outgoing_port_permit:%s)\n", (yyvsp[(2) - (2)].str))); |
2256 | 2251 | break; |
2257 | 2252 | |
2258 | 2253 | case 135: |
2259 | ||
2260 | /* Line 1806 of yacc.c */ | |
2254 | /* Line 1787 of yacc.c */ | |
2261 | 2255 | #line 301 "util/configparser.y" |
2262 | 2256 | { |
2263 | 2257 | OUTYY(("P(server_outgoing_port_avoid:%s)\n", (yyvsp[(2) - (2)].str))); |
2269 | 2263 | break; |
2270 | 2264 | |
2271 | 2265 | case 136: |
2272 | ||
2273 | /* Line 1806 of yacc.c */ | |
2266 | /* Line 1787 of yacc.c */ | |
2274 | 2267 | #line 310 "util/configparser.y" |
2275 | 2268 | { |
2276 | 2269 | OUTYY(("P(server_outgoing_num_tcp:%s)\n", (yyvsp[(2) - (2)].str))); |
2282 | 2275 | break; |
2283 | 2276 | |
2284 | 2277 | case 137: |
2285 | ||
2286 | /* Line 1806 of yacc.c */ | |
2278 | /* Line 1787 of yacc.c */ | |
2287 | 2279 | #line 319 "util/configparser.y" |
2288 | 2280 | { |
2289 | 2281 | OUTYY(("P(server_incoming_num_tcp:%s)\n", (yyvsp[(2) - (2)].str))); |
2295 | 2287 | break; |
2296 | 2288 | |
2297 | 2289 | case 138: |
2298 | ||
2299 | /* Line 1806 of yacc.c */ | |
2290 | /* Line 1787 of yacc.c */ | |
2300 | 2291 | #line 328 "util/configparser.y" |
2301 | 2292 | { |
2302 | 2293 | OUTYY(("P(server_interface_automatic:%s)\n", (yyvsp[(2) - (2)].str))); |
2308 | 2299 | break; |
2309 | 2300 | |
2310 | 2301 | case 139: |
2311 | ||
2312 | /* Line 1806 of yacc.c */ | |
2302 | /* Line 1787 of yacc.c */ | |
2313 | 2303 | #line 337 "util/configparser.y" |
2314 | 2304 | { |
2315 | 2305 | OUTYY(("P(server_do_ip4:%s)\n", (yyvsp[(2) - (2)].str))); |
2321 | 2311 | break; |
2322 | 2312 | |
2323 | 2313 | case 140: |
2324 | ||
2325 | /* Line 1806 of yacc.c */ | |
2314 | /* Line 1787 of yacc.c */ | |
2326 | 2315 | #line 346 "util/configparser.y" |
2327 | 2316 | { |
2328 | 2317 | OUTYY(("P(server_do_ip6:%s)\n", (yyvsp[(2) - (2)].str))); |
2334 | 2323 | break; |
2335 | 2324 | |
2336 | 2325 | case 141: |
2337 | ||
2338 | /* Line 1806 of yacc.c */ | |
2326 | /* Line 1787 of yacc.c */ | |
2339 | 2327 | #line 355 "util/configparser.y" |
2340 | 2328 | { |
2341 | 2329 | OUTYY(("P(server_do_udp:%s)\n", (yyvsp[(2) - (2)].str))); |
2347 | 2335 | break; |
2348 | 2336 | |
2349 | 2337 | case 142: |
2350 | ||
2351 | /* Line 1806 of yacc.c */ | |
2338 | /* Line 1787 of yacc.c */ | |
2352 | 2339 | #line 364 "util/configparser.y" |
2353 | 2340 | { |
2354 | 2341 | OUTYY(("P(server_do_tcp:%s)\n", (yyvsp[(2) - (2)].str))); |
2360 | 2347 | break; |
2361 | 2348 | |
2362 | 2349 | case 143: |
2363 | ||
2364 | /* Line 1806 of yacc.c */ | |
2350 | /* Line 1787 of yacc.c */ | |
2365 | 2351 | #line 373 "util/configparser.y" |
2366 | 2352 | { |
2367 | 2353 | OUTYY(("P(server_tcp_upstream:%s)\n", (yyvsp[(2) - (2)].str))); |
2373 | 2359 | break; |
2374 | 2360 | |
2375 | 2361 | case 144: |
2376 | ||
2377 | /* Line 1806 of yacc.c */ | |
2362 | /* Line 1787 of yacc.c */ | |
2378 | 2363 | #line 382 "util/configparser.y" |
2379 | 2364 | { |
2380 | 2365 | OUTYY(("P(server_ssl_upstream:%s)\n", (yyvsp[(2) - (2)].str))); |
2386 | 2371 | break; |
2387 | 2372 | |
2388 | 2373 | case 145: |
2389 | ||
2390 | /* Line 1806 of yacc.c */ | |
2374 | /* Line 1787 of yacc.c */ | |
2391 | 2375 | #line 391 "util/configparser.y" |
2392 | 2376 | { |
2393 | 2377 | OUTYY(("P(server_ssl_service_key:%s)\n", (yyvsp[(2) - (2)].str))); |
2397 | 2381 | break; |
2398 | 2382 | |
2399 | 2383 | case 146: |
2400 | ||
2401 | /* Line 1806 of yacc.c */ | |
2384 | /* Line 1787 of yacc.c */ | |
2402 | 2385 | #line 398 "util/configparser.y" |
2403 | 2386 | { |
2404 | 2387 | OUTYY(("P(server_ssl_service_pem:%s)\n", (yyvsp[(2) - (2)].str))); |
2408 | 2391 | break; |
2409 | 2392 | |
2410 | 2393 | case 147: |
2411 | ||
2412 | /* Line 1806 of yacc.c */ | |
2394 | /* Line 1787 of yacc.c */ | |
2413 | 2395 | #line 405 "util/configparser.y" |
2414 | 2396 | { |
2415 | 2397 | OUTYY(("P(server_ssl_port:%s)\n", (yyvsp[(2) - (2)].str))); |
2421 | 2403 | break; |
2422 | 2404 | |
2423 | 2405 | case 148: |
2424 | ||
2425 | /* Line 1806 of yacc.c */ | |
2406 | /* Line 1787 of yacc.c */ | |
2426 | 2407 | #line 414 "util/configparser.y" |
2427 | 2408 | { |
2428 | 2409 | OUTYY(("P(server_do_daemonize:%s)\n", (yyvsp[(2) - (2)].str))); |
2434 | 2415 | break; |
2435 | 2416 | |
2436 | 2417 | case 149: |
2437 | ||
2438 | /* Line 1806 of yacc.c */ | |
2418 | /* Line 1787 of yacc.c */ | |
2439 | 2419 | #line 423 "util/configparser.y" |
2440 | 2420 | { |
2441 | 2421 | OUTYY(("P(server_use_syslog:%s)\n", (yyvsp[(2) - (2)].str))); |
2452 | 2432 | break; |
2453 | 2433 | |
2454 | 2434 | case 150: |
2455 | ||
2456 | /* Line 1806 of yacc.c */ | |
2435 | /* Line 1787 of yacc.c */ | |
2457 | 2436 | #line 437 "util/configparser.y" |
2458 | 2437 | { |
2459 | 2438 | OUTYY(("P(server_log_time_ascii:%s)\n", (yyvsp[(2) - (2)].str))); |
2465 | 2444 | break; |
2466 | 2445 | |
2467 | 2446 | case 151: |
2468 | ||
2469 | /* Line 1806 of yacc.c */ | |
2447 | /* Line 1787 of yacc.c */ | |
2470 | 2448 | #line 446 "util/configparser.y" |
2471 | 2449 | { |
2472 | 2450 | OUTYY(("P(server_log_queries:%s)\n", (yyvsp[(2) - (2)].str))); |
2478 | 2456 | break; |
2479 | 2457 | |
2480 | 2458 | case 152: |
2481 | ||
2482 | /* Line 1806 of yacc.c */ | |
2459 | /* Line 1787 of yacc.c */ | |
2483 | 2460 | #line 455 "util/configparser.y" |
2484 | 2461 | { |
2485 | 2462 | OUTYY(("P(server_chroot:%s)\n", (yyvsp[(2) - (2)].str))); |
2489 | 2466 | break; |
2490 | 2467 | |
2491 | 2468 | case 153: |
2492 | ||
2493 | /* Line 1806 of yacc.c */ | |
2469 | /* Line 1787 of yacc.c */ | |
2494 | 2470 | #line 462 "util/configparser.y" |
2495 | 2471 | { |
2496 | 2472 | OUTYY(("P(server_username:%s)\n", (yyvsp[(2) - (2)].str))); |
2500 | 2476 | break; |
2501 | 2477 | |
2502 | 2478 | case 154: |
2503 | ||
2504 | /* Line 1806 of yacc.c */ | |
2479 | /* Line 1787 of yacc.c */ | |
2505 | 2480 | #line 469 "util/configparser.y" |
2506 | 2481 | { |
2507 | 2482 | OUTYY(("P(server_directory:%s)\n", (yyvsp[(2) - (2)].str))); |
2511 | 2486 | break; |
2512 | 2487 | |
2513 | 2488 | case 155: |
2514 | ||
2515 | /* Line 1806 of yacc.c */ | |
2489 | /* Line 1787 of yacc.c */ | |
2516 | 2490 | #line 476 "util/configparser.y" |
2517 | 2491 | { |
2518 | 2492 | OUTYY(("P(server_logfile:%s)\n", (yyvsp[(2) - (2)].str))); |
2523 | 2497 | break; |
2524 | 2498 | |
2525 | 2499 | case 156: |
2526 | ||
2527 | /* Line 1806 of yacc.c */ | |
2500 | /* Line 1787 of yacc.c */ | |
2528 | 2501 | #line 484 "util/configparser.y" |
2529 | 2502 | { |
2530 | 2503 | OUTYY(("P(server_pidfile:%s)\n", (yyvsp[(2) - (2)].str))); |
2534 | 2507 | break; |
2535 | 2508 | |
2536 | 2509 | case 157: |
2537 | ||
2538 | /* Line 1806 of yacc.c */ | |
2510 | /* Line 1787 of yacc.c */ | |
2539 | 2511 | #line 491 "util/configparser.y" |
2540 | 2512 | { |
2541 | 2513 | OUTYY(("P(server_root_hints:%s)\n", (yyvsp[(2) - (2)].str))); |
2545 | 2517 | break; |
2546 | 2518 | |
2547 | 2519 | case 158: |
2548 | ||
2549 | /* Line 1806 of yacc.c */ | |
2520 | /* Line 1787 of yacc.c */ | |
2550 | 2521 | #line 498 "util/configparser.y" |
2551 | 2522 | { |
2552 | 2523 | OUTYY(("P(server_dlv_anchor_file:%s)\n", (yyvsp[(2) - (2)].str))); |
2556 | 2527 | break; |
2557 | 2528 | |
2558 | 2529 | case 159: |
2559 | ||
2560 | /* Line 1806 of yacc.c */ | |
2530 | /* Line 1787 of yacc.c */ | |
2561 | 2531 | #line 505 "util/configparser.y" |
2562 | 2532 | { |
2563 | 2533 | OUTYY(("P(server_dlv_anchor:%s)\n", (yyvsp[(2) - (2)].str))); |
2567 | 2537 | break; |
2568 | 2538 | |
2569 | 2539 | case 160: |
2570 | ||
2571 | /* Line 1806 of yacc.c */ | |
2540 | /* Line 1787 of yacc.c */ | |
2572 | 2541 | #line 512 "util/configparser.y" |
2573 | 2542 | { |
2574 | 2543 | OUTYY(("P(server_auto_trust_anchor_file:%s)\n", (yyvsp[(2) - (2)].str))); |
2579 | 2548 | break; |
2580 | 2549 | |
2581 | 2550 | case 161: |
2582 | ||
2583 | /* Line 1806 of yacc.c */ | |
2551 | /* Line 1787 of yacc.c */ | |
2584 | 2552 | #line 520 "util/configparser.y" |
2585 | 2553 | { |
2586 | 2554 | OUTYY(("P(server_trust_anchor_file:%s)\n", (yyvsp[(2) - (2)].str))); |
2591 | 2559 | break; |
2592 | 2560 | |
2593 | 2561 | case 162: |
2594 | ||
2595 | /* Line 1806 of yacc.c */ | |
2562 | /* Line 1787 of yacc.c */ | |
2596 | 2563 | #line 528 "util/configparser.y" |
2597 | 2564 | { |
2598 | 2565 | OUTYY(("P(server_trusted_keys_file:%s)\n", (yyvsp[(2) - (2)].str))); |
2603 | 2570 | break; |
2604 | 2571 | |
2605 | 2572 | case 163: |
2606 | ||
2607 | /* Line 1806 of yacc.c */ | |
2573 | /* Line 1787 of yacc.c */ | |
2608 | 2574 | #line 536 "util/configparser.y" |
2609 | 2575 | { |
2610 | 2576 | OUTYY(("P(server_trust_anchor:%s)\n", (yyvsp[(2) - (2)].str))); |
2614 | 2580 | break; |
2615 | 2581 | |
2616 | 2582 | case 164: |
2617 | ||
2618 | /* Line 1806 of yacc.c */ | |
2583 | /* Line 1787 of yacc.c */ | |
2619 | 2584 | #line 543 "util/configparser.y" |
2620 | 2585 | { |
2621 | 2586 | OUTYY(("P(server_domain_insecure:%s)\n", (yyvsp[(2) - (2)].str))); |
2625 | 2590 | break; |
2626 | 2591 | |
2627 | 2592 | case 165: |
2628 | ||
2629 | /* Line 1806 of yacc.c */ | |
2593 | /* Line 1787 of yacc.c */ | |
2630 | 2594 | #line 550 "util/configparser.y" |
2631 | 2595 | { |
2632 | 2596 | OUTYY(("P(server_hide_identity:%s)\n", (yyvsp[(2) - (2)].str))); |
2638 | 2602 | break; |
2639 | 2603 | |
2640 | 2604 | case 166: |
2641 | ||
2642 | /* Line 1806 of yacc.c */ | |
2605 | /* Line 1787 of yacc.c */ | |
2643 | 2606 | #line 559 "util/configparser.y" |
2644 | 2607 | { |
2645 | 2608 | OUTYY(("P(server_hide_version:%s)\n", (yyvsp[(2) - (2)].str))); |
2651 | 2614 | break; |
2652 | 2615 | |
2653 | 2616 | case 167: |
2654 | ||
2655 | /* Line 1806 of yacc.c */ | |
2617 | /* Line 1787 of yacc.c */ | |
2656 | 2618 | #line 568 "util/configparser.y" |
2657 | 2619 | { |
2658 | 2620 | OUTYY(("P(server_identity:%s)\n", (yyvsp[(2) - (2)].str))); |
2662 | 2624 | break; |
2663 | 2625 | |
2664 | 2626 | case 168: |
2665 | ||
2666 | /* Line 1806 of yacc.c */ | |
2627 | /* Line 1787 of yacc.c */ | |
2667 | 2628 | #line 575 "util/configparser.y" |
2668 | 2629 | { |
2669 | 2630 | OUTYY(("P(server_version:%s)\n", (yyvsp[(2) - (2)].str))); |
2673 | 2634 | break; |
2674 | 2635 | |
2675 | 2636 | case 169: |
2676 | ||
2677 | /* Line 1806 of yacc.c */ | |
2637 | /* Line 1787 of yacc.c */ | |
2678 | 2638 | #line 582 "util/configparser.y" |
2679 | 2639 | { |
2680 | 2640 | OUTYY(("P(server_so_rcvbuf:%s)\n", (yyvsp[(2) - (2)].str))); |
2685 | 2645 | break; |
2686 | 2646 | |
2687 | 2647 | case 170: |
2688 | ||
2689 | /* Line 1806 of yacc.c */ | |
2648 | /* Line 1787 of yacc.c */ | |
2690 | 2649 | #line 590 "util/configparser.y" |
2691 | 2650 | { |
2692 | 2651 | OUTYY(("P(server_so_sndbuf:%s)\n", (yyvsp[(2) - (2)].str))); |
2697 | 2656 | break; |
2698 | 2657 | |
2699 | 2658 | case 171: |
2700 | ||
2701 | /* Line 1806 of yacc.c */ | |
2659 | /* Line 1787 of yacc.c */ | |
2702 | 2660 | #line 598 "util/configparser.y" |
2703 | 2661 | { |
2704 | 2662 | OUTYY(("P(server_edns_buffer_size:%s)\n", (yyvsp[(2) - (2)].str))); |
2714 | 2672 | break; |
2715 | 2673 | |
2716 | 2674 | case 172: |
2717 | ||
2718 | /* Line 1806 of yacc.c */ | |
2675 | /* Line 1787 of yacc.c */ | |
2719 | 2676 | #line 611 "util/configparser.y" |
2720 | 2677 | { |
2721 | 2678 | OUTYY(("P(server_msg_buffer_size:%s)\n", (yyvsp[(2) - (2)].str))); |
2729 | 2686 | break; |
2730 | 2687 | |
2731 | 2688 | case 173: |
2732 | ||
2733 | /* Line 1806 of yacc.c */ | |
2689 | /* Line 1787 of yacc.c */ | |
2734 | 2690 | #line 622 "util/configparser.y" |
2735 | 2691 | { |
2736 | 2692 | OUTYY(("P(server_msg_cache_size:%s)\n", (yyvsp[(2) - (2)].str))); |
2741 | 2697 | break; |
2742 | 2698 | |
2743 | 2699 | case 174: |
2744 | ||
2745 | /* Line 1806 of yacc.c */ | |
2700 | /* Line 1787 of yacc.c */ | |
2746 | 2701 | #line 630 "util/configparser.y" |
2747 | 2702 | { |
2748 | 2703 | OUTYY(("P(server_msg_cache_slabs:%s)\n", (yyvsp[(2) - (2)].str))); |
2758 | 2713 | break; |
2759 | 2714 | |
2760 | 2715 | case 175: |
2761 | ||
2762 | /* Line 1806 of yacc.c */ | |
2716 | /* Line 1787 of yacc.c */ | |
2763 | 2717 | #line 643 "util/configparser.y" |
2764 | 2718 | { |
2765 | 2719 | OUTYY(("P(server_num_queries_per_thread:%s)\n", (yyvsp[(2) - (2)].str))); |
2771 | 2725 | break; |
2772 | 2726 | |
2773 | 2727 | case 176: |
2774 | ||
2775 | /* Line 1806 of yacc.c */ | |
2728 | /* Line 1787 of yacc.c */ | |
2776 | 2729 | #line 652 "util/configparser.y" |
2777 | 2730 | { |
2778 | 2731 | OUTYY(("P(server_jostle_timeout:%s)\n", (yyvsp[(2) - (2)].str))); |
2784 | 2737 | break; |
2785 | 2738 | |
2786 | 2739 | case 177: |
2787 | ||
2788 | /* Line 1806 of yacc.c */ | |
2740 | /* Line 1787 of yacc.c */ | |
2789 | 2741 | #line 661 "util/configparser.y" |
2790 | 2742 | { |
2791 | 2743 | OUTYY(("P(server_rrset_cache_size:%s)\n", (yyvsp[(2) - (2)].str))); |
2796 | 2748 | break; |
2797 | 2749 | |
2798 | 2750 | case 178: |
2799 | ||
2800 | /* Line 1806 of yacc.c */ | |
2751 | /* Line 1787 of yacc.c */ | |
2801 | 2752 | #line 669 "util/configparser.y" |
2802 | 2753 | { |
2803 | 2754 | OUTYY(("P(server_rrset_cache_slabs:%s)\n", (yyvsp[(2) - (2)].str))); |
2813 | 2764 | break; |
2814 | 2765 | |
2815 | 2766 | case 179: |
2816 | ||
2817 | /* Line 1806 of yacc.c */ | |
2767 | /* Line 1787 of yacc.c */ | |
2818 | 2768 | #line 682 "util/configparser.y" |
2819 | 2769 | { |
2820 | 2770 | OUTYY(("P(server_infra_host_ttl:%s)\n", (yyvsp[(2) - (2)].str))); |
2826 | 2776 | break; |
2827 | 2777 | |
2828 | 2778 | case 180: |
2829 | ||
2830 | /* Line 1806 of yacc.c */ | |
2779 | /* Line 1787 of yacc.c */ | |
2831 | 2780 | #line 691 "util/configparser.y" |
2832 | 2781 | { |
2833 | 2782 | OUTYY(("P(server_infra_lame_ttl:%s)\n", (yyvsp[(2) - (2)].str))); |
2838 | 2787 | break; |
2839 | 2788 | |
2840 | 2789 | case 181: |
2841 | ||
2842 | /* Line 1806 of yacc.c */ | |
2790 | /* Line 1787 of yacc.c */ | |
2843 | 2791 | #line 699 "util/configparser.y" |
2844 | 2792 | { |
2845 | 2793 | OUTYY(("P(server_infra_cache_numhosts:%s)\n", (yyvsp[(2) - (2)].str))); |
2851 | 2799 | break; |
2852 | 2800 | |
2853 | 2801 | case 182: |
2854 | ||
2855 | /* Line 1806 of yacc.c */ | |
2802 | /* Line 1787 of yacc.c */ | |
2856 | 2803 | #line 708 "util/configparser.y" |
2857 | 2804 | { |
2858 | 2805 | OUTYY(("P(server_infra_cache_lame_size:%s)\n", (yyvsp[(2) - (2)].str))); |
2863 | 2810 | break; |
2864 | 2811 | |
2865 | 2812 | case 183: |
2866 | ||
2867 | /* Line 1806 of yacc.c */ | |
2813 | /* Line 1787 of yacc.c */ | |
2868 | 2814 | #line 716 "util/configparser.y" |
2869 | 2815 | { |
2870 | 2816 | OUTYY(("P(server_infra_cache_slabs:%s)\n", (yyvsp[(2) - (2)].str))); |
2880 | 2826 | break; |
2881 | 2827 | |
2882 | 2828 | case 184: |
2883 | ||
2884 | /* Line 1806 of yacc.c */ | |
2829 | /* Line 1787 of yacc.c */ | |
2885 | 2830 | #line 729 "util/configparser.y" |
2886 | 2831 | { |
2887 | 2832 | OUTYY(("P(server_target_fetch_policy:%s)\n", (yyvsp[(2) - (2)].str))); |
2891 | 2836 | break; |
2892 | 2837 | |
2893 | 2838 | case 185: |
2894 | ||
2895 | /* Line 1806 of yacc.c */ | |
2839 | /* Line 1787 of yacc.c */ | |
2896 | 2840 | #line 736 "util/configparser.y" |
2897 | 2841 | { |
2898 | 2842 | OUTYY(("P(server_harden_short_bufsize:%s)\n", (yyvsp[(2) - (2)].str))); |
2905 | 2849 | break; |
2906 | 2850 | |
2907 | 2851 | case 186: |
2908 | ||
2909 | /* Line 1806 of yacc.c */ | |
2852 | /* Line 1787 of yacc.c */ | |
2910 | 2853 | #line 746 "util/configparser.y" |
2911 | 2854 | { |
2912 | 2855 | OUTYY(("P(server_harden_large_queries:%s)\n", (yyvsp[(2) - (2)].str))); |
2919 | 2862 | break; |
2920 | 2863 | |
2921 | 2864 | case 187: |
2922 | ||
2923 | /* Line 1806 of yacc.c */ | |
2865 | /* Line 1787 of yacc.c */ | |
2924 | 2866 | #line 756 "util/configparser.y" |
2925 | 2867 | { |
2926 | 2868 | OUTYY(("P(server_harden_glue:%s)\n", (yyvsp[(2) - (2)].str))); |
2933 | 2875 | break; |
2934 | 2876 | |
2935 | 2877 | case 188: |
2936 | ||
2937 | /* Line 1806 of yacc.c */ | |
2878 | /* Line 1787 of yacc.c */ | |
2938 | 2879 | #line 766 "util/configparser.y" |
2939 | 2880 | { |
2940 | 2881 | OUTYY(("P(server_harden_dnssec_stripped:%s)\n", (yyvsp[(2) - (2)].str))); |
2947 | 2888 | break; |
2948 | 2889 | |
2949 | 2890 | case 189: |
2950 | ||
2951 | /* Line 1806 of yacc.c */ | |
2891 | /* Line 1787 of yacc.c */ | |
2952 | 2892 | #line 776 "util/configparser.y" |
2953 | 2893 | { |
2954 | 2894 | OUTYY(("P(server_harden_below_nxdomain:%s)\n", (yyvsp[(2) - (2)].str))); |
2961 | 2901 | break; |
2962 | 2902 | |
2963 | 2903 | case 190: |
2964 | ||
2965 | /* Line 1806 of yacc.c */ | |
2904 | /* Line 1787 of yacc.c */ | |
2966 | 2905 | #line 786 "util/configparser.y" |
2967 | 2906 | { |
2968 | 2907 | OUTYY(("P(server_harden_referral_path:%s)\n", (yyvsp[(2) - (2)].str))); |
2975 | 2914 | break; |
2976 | 2915 | |
2977 | 2916 | case 191: |
2978 | ||
2979 | /* Line 1806 of yacc.c */ | |
2917 | /* Line 1787 of yacc.c */ | |
2980 | 2918 | #line 796 "util/configparser.y" |
2981 | 2919 | { |
2982 | 2920 | OUTYY(("P(server_use_caps_for_id:%s)\n", (yyvsp[(2) - (2)].str))); |
2989 | 2927 | break; |
2990 | 2928 | |
2991 | 2929 | case 192: |
2992 | ||
2993 | /* Line 1806 of yacc.c */ | |
2930 | /* Line 1787 of yacc.c */ | |
2994 | 2931 | #line 806 "util/configparser.y" |
2995 | 2932 | { |
2996 | 2933 | OUTYY(("P(server_private_address:%s)\n", (yyvsp[(2) - (2)].str))); |
3000 | 2937 | break; |
3001 | 2938 | |
3002 | 2939 | case 193: |
3003 | ||
3004 | /* Line 1806 of yacc.c */ | |
2940 | /* Line 1787 of yacc.c */ | |
3005 | 2941 | #line 813 "util/configparser.y" |
3006 | 2942 | { |
3007 | 2943 | OUTYY(("P(server_private_domain:%s)\n", (yyvsp[(2) - (2)].str))); |
3011 | 2947 | break; |
3012 | 2948 | |
3013 | 2949 | case 194: |
3014 | ||
3015 | /* Line 1806 of yacc.c */ | |
2950 | /* Line 1787 of yacc.c */ | |
3016 | 2951 | #line 820 "util/configparser.y" |
3017 | 2952 | { |
3018 | 2953 | OUTYY(("P(server_prefetch:%s)\n", (yyvsp[(2) - (2)].str))); |
3024 | 2959 | break; |
3025 | 2960 | |
3026 | 2961 | case 195: |
3027 | ||
3028 | /* Line 1806 of yacc.c */ | |
2962 | /* Line 1787 of yacc.c */ | |
3029 | 2963 | #line 829 "util/configparser.y" |
3030 | 2964 | { |
3031 | 2965 | OUTYY(("P(server_prefetch_key:%s)\n", (yyvsp[(2) - (2)].str))); |
3037 | 2971 | break; |
3038 | 2972 | |
3039 | 2973 | case 196: |
3040 | ||
3041 | /* Line 1806 of yacc.c */ | |
2974 | /* Line 1787 of yacc.c */ | |
3042 | 2975 | #line 838 "util/configparser.y" |
3043 | 2976 | { |
3044 | 2977 | OUTYY(("P(server_unwanted_reply_threshold:%s)\n", (yyvsp[(2) - (2)].str))); |
3050 | 2983 | break; |
3051 | 2984 | |
3052 | 2985 | case 197: |
3053 | ||
3054 | /* Line 1806 of yacc.c */ | |
2986 | /* Line 1787 of yacc.c */ | |
3055 | 2987 | #line 847 "util/configparser.y" |
3056 | 2988 | { |
3057 | 2989 | OUTYY(("P(server_do_not_query_address:%s)\n", (yyvsp[(2) - (2)].str))); |
3061 | 2993 | break; |
3062 | 2994 | |
3063 | 2995 | case 198: |
3064 | ||
3065 | /* Line 1806 of yacc.c */ | |
2996 | /* Line 1787 of yacc.c */ | |
3066 | 2997 | #line 854 "util/configparser.y" |
3067 | 2998 | { |
3068 | 2999 | OUTYY(("P(server_do_not_query_localhost:%s)\n", (yyvsp[(2) - (2)].str))); |
3075 | 3006 | break; |
3076 | 3007 | |
3077 | 3008 | case 199: |
3078 | ||
3079 | /* Line 1806 of yacc.c */ | |
3009 | /* Line 1787 of yacc.c */ | |
3080 | 3010 | #line 864 "util/configparser.y" |
3081 | 3011 | { |
3082 | 3012 | OUTYY(("P(server_access_control:%s %s)\n", (yyvsp[(2) - (3)].str), (yyvsp[(3) - (3)].str))); |
3093 | 3023 | break; |
3094 | 3024 | |
3095 | 3025 | case 200: |
3096 | ||
3097 | /* Line 1806 of yacc.c */ | |
3026 | /* Line 1787 of yacc.c */ | |
3098 | 3027 | #line 878 "util/configparser.y" |
3099 | 3028 | { |
3100 | 3029 | OUTYY(("P(server_module_conf:%s)\n", (yyvsp[(2) - (2)].str))); |
3104 | 3033 | break; |
3105 | 3034 | |
3106 | 3035 | case 201: |
3107 | ||
3108 | /* Line 1806 of yacc.c */ | |
3036 | /* Line 1787 of yacc.c */ | |
3109 | 3037 | #line 885 "util/configparser.y" |
3110 | 3038 | { |
3111 | 3039 | OUTYY(("P(server_val_override_date:%s)\n", (yyvsp[(2) - (2)].str))); |
3126 | 3054 | break; |
3127 | 3055 | |
3128 | 3056 | case 202: |
3129 | ||
3130 | /* Line 1806 of yacc.c */ | |
3057 | /* Line 1787 of yacc.c */ | |
3131 | 3058 | #line 903 "util/configparser.y" |
3132 | 3059 | { |
3133 | 3060 | OUTYY(("P(server_val_sig_skew_min:%s)\n", (yyvsp[(2) - (2)].str))); |
3143 | 3070 | break; |
3144 | 3071 | |
3145 | 3072 | case 203: |
3146 | ||
3147 | /* Line 1806 of yacc.c */ | |
3073 | /* Line 1787 of yacc.c */ | |
3148 | 3074 | #line 916 "util/configparser.y" |
3149 | 3075 | { |
3150 | 3076 | OUTYY(("P(server_val_sig_skew_max:%s)\n", (yyvsp[(2) - (2)].str))); |
3160 | 3086 | break; |
3161 | 3087 | |
3162 | 3088 | case 204: |
3163 | ||
3164 | /* Line 1806 of yacc.c */ | |
3089 | /* Line 1787 of yacc.c */ | |
3165 | 3090 | #line 929 "util/configparser.y" |
3166 | 3091 | { |
3167 | 3092 | OUTYY(("P(server_cache_max_ttl:%s)\n", (yyvsp[(2) - (2)].str))); |
3173 | 3098 | break; |
3174 | 3099 | |
3175 | 3100 | case 205: |
3176 | ||
3177 | /* Line 1806 of yacc.c */ | |
3101 | /* Line 1787 of yacc.c */ | |
3178 | 3102 | #line 938 "util/configparser.y" |
3179 | 3103 | { |
3180 | 3104 | OUTYY(("P(server_cache_min_ttl:%s)\n", (yyvsp[(2) - (2)].str))); |
3186 | 3110 | break; |
3187 | 3111 | |
3188 | 3112 | case 206: |
3189 | ||
3190 | /* Line 1806 of yacc.c */ | |
3113 | /* Line 1787 of yacc.c */ | |
3191 | 3114 | #line 947 "util/configparser.y" |
3192 | 3115 | { |
3193 | 3116 | OUTYY(("P(server_bogus_ttl:%s)\n", (yyvsp[(2) - (2)].str))); |
3199 | 3122 | break; |
3200 | 3123 | |
3201 | 3124 | case 207: |
3202 | ||
3203 | /* Line 1806 of yacc.c */ | |
3125 | /* Line 1787 of yacc.c */ | |
3204 | 3126 | #line 956 "util/configparser.y" |
3205 | 3127 | { |
3206 | 3128 | OUTYY(("P(server_val_clean_additional:%s)\n", (yyvsp[(2) - (2)].str))); |
3213 | 3135 | break; |
3214 | 3136 | |
3215 | 3137 | case 208: |
3216 | ||
3217 | /* Line 1806 of yacc.c */ | |
3138 | /* Line 1787 of yacc.c */ | |
3218 | 3139 | #line 966 "util/configparser.y" |
3219 | 3140 | { |
3220 | 3141 | OUTYY(("P(server_val_permissive_mode:%s)\n", (yyvsp[(2) - (2)].str))); |
3227 | 3148 | break; |
3228 | 3149 | |
3229 | 3150 | case 209: |
3230 | ||
3231 | /* Line 1806 of yacc.c */ | |
3151 | /* Line 1787 of yacc.c */ | |
3232 | 3152 | #line 976 "util/configparser.y" |
3233 | 3153 | { |
3234 | 3154 | OUTYY(("P(server_ignore_cd_flag:%s)\n", (yyvsp[(2) - (2)].str))); |
3240 | 3160 | break; |
3241 | 3161 | |
3242 | 3162 | case 210: |
3243 | ||
3244 | /* Line 1806 of yacc.c */ | |
3163 | /* Line 1787 of yacc.c */ | |
3245 | 3164 | #line 985 "util/configparser.y" |
3246 | 3165 | { |
3247 | 3166 | OUTYY(("P(server_val_log_level:%s)\n", (yyvsp[(2) - (2)].str))); |
3253 | 3172 | break; |
3254 | 3173 | |
3255 | 3174 | case 211: |
3256 | ||
3257 | /* Line 1806 of yacc.c */ | |
3175 | /* Line 1787 of yacc.c */ | |
3258 | 3176 | #line 994 "util/configparser.y" |
3259 | 3177 | { |
3260 | 3178 | OUTYY(("P(server_val_nsec3_keysize_iterations:%s)\n", (yyvsp[(2) - (2)].str))); |
3264 | 3182 | break; |
3265 | 3183 | |
3266 | 3184 | case 212: |
3267 | ||
3268 | /* Line 1806 of yacc.c */ | |
3185 | /* Line 1787 of yacc.c */ | |
3269 | 3186 | #line 1001 "util/configparser.y" |
3270 | 3187 | { |
3271 | 3188 | OUTYY(("P(server_add_holddown:%s)\n", (yyvsp[(2) - (2)].str))); |
3277 | 3194 | break; |
3278 | 3195 | |
3279 | 3196 | case 213: |
3280 | ||
3281 | /* Line 1806 of yacc.c */ | |
3197 | /* Line 1787 of yacc.c */ | |
3282 | 3198 | #line 1010 "util/configparser.y" |
3283 | 3199 | { |
3284 | 3200 | OUTYY(("P(server_del_holddown:%s)\n", (yyvsp[(2) - (2)].str))); |
3290 | 3206 | break; |
3291 | 3207 | |
3292 | 3208 | case 214: |
3293 | ||
3294 | /* Line 1806 of yacc.c */ | |
3209 | /* Line 1787 of yacc.c */ | |
3295 | 3210 | #line 1019 "util/configparser.y" |
3296 | 3211 | { |
3297 | 3212 | OUTYY(("P(server_keep_missing:%s)\n", (yyvsp[(2) - (2)].str))); |
3303 | 3218 | break; |
3304 | 3219 | |
3305 | 3220 | case 215: |
3306 | ||
3307 | /* Line 1806 of yacc.c */ | |
3221 | /* Line 1787 of yacc.c */ | |
3308 | 3222 | #line 1028 "util/configparser.y" |
3309 | 3223 | { |
3310 | 3224 | OUTYY(("P(server_key_cache_size:%s)\n", (yyvsp[(2) - (2)].str))); |
3315 | 3229 | break; |
3316 | 3230 | |
3317 | 3231 | case 216: |
3318 | ||
3319 | /* Line 1806 of yacc.c */ | |
3232 | /* Line 1787 of yacc.c */ | |
3320 | 3233 | #line 1036 "util/configparser.y" |
3321 | 3234 | { |
3322 | 3235 | OUTYY(("P(server_key_cache_slabs:%s)\n", (yyvsp[(2) - (2)].str))); |
3332 | 3245 | break; |
3333 | 3246 | |
3334 | 3247 | case 217: |
3335 | ||
3336 | /* Line 1806 of yacc.c */ | |
3248 | /* Line 1787 of yacc.c */ | |
3337 | 3249 | #line 1049 "util/configparser.y" |
3338 | 3250 | { |
3339 | 3251 | OUTYY(("P(server_neg_cache_size:%s)\n", (yyvsp[(2) - (2)].str))); |
3344 | 3256 | break; |
3345 | 3257 | |
3346 | 3258 | case 218: |
3347 | ||
3348 | /* Line 1806 of yacc.c */ | |
3259 | /* Line 1787 of yacc.c */ | |
3349 | 3260 | #line 1057 "util/configparser.y" |
3350 | 3261 | { |
3351 | 3262 | OUTYY(("P(server_local_zone:%s %s)\n", (yyvsp[(2) - (3)].str), (yyvsp[(3) - (3)].str))); |
3370 | 3281 | break; |
3371 | 3282 | |
3372 | 3283 | case 219: |
3373 | ||
3374 | /* Line 1806 of yacc.c */ | |
3284 | /* Line 1787 of yacc.c */ | |
3375 | 3285 | #line 1079 "util/configparser.y" |
3376 | 3286 | { |
3377 | 3287 | OUTYY(("P(server_local_data:%s)\n", (yyvsp[(2) - (2)].str))); |
3381 | 3291 | break; |
3382 | 3292 | |
3383 | 3293 | case 220: |
3384 | ||
3385 | /* Line 1806 of yacc.c */ | |
3294 | /* Line 1787 of yacc.c */ | |
3386 | 3295 | #line 1086 "util/configparser.y" |
3387 | 3296 | { |
3388 | 3297 | char* ptr; |
3400 | 3309 | break; |
3401 | 3310 | |
3402 | 3311 | case 221: |
3403 | ||
3404 | /* Line 1806 of yacc.c */ | |
3312 | /* Line 1787 of yacc.c */ | |
3405 | 3313 | #line 1101 "util/configparser.y" |
3406 | 3314 | { |
3407 | 3315 | OUTYY(("P(server_minimal_responses:%s)\n", (yyvsp[(2) - (2)].str))); |
3414 | 3322 | break; |
3415 | 3323 | |
3416 | 3324 | case 222: |
3417 | ||
3418 | /* Line 1806 of yacc.c */ | |
3325 | /* Line 1787 of yacc.c */ | |
3419 | 3326 | #line 1111 "util/configparser.y" |
3420 | 3327 | { |
3421 | 3328 | OUTYY(("P(server_rrset_roundrobin:%s)\n", (yyvsp[(2) - (2)].str))); |
3428 | 3335 | break; |
3429 | 3336 | |
3430 | 3337 | case 223: |
3431 | ||
3432 | /* Line 1806 of yacc.c */ | |
3338 | /* Line 1787 of yacc.c */ | |
3433 | 3339 | #line 1121 "util/configparser.y" |
3434 | 3340 | { |
3435 | 3341 | OUTYY(("P(name:%s)\n", (yyvsp[(2) - (2)].str))); |
3442 | 3348 | break; |
3443 | 3349 | |
3444 | 3350 | case 224: |
3445 | ||
3446 | /* Line 1806 of yacc.c */ | |
3351 | /* Line 1787 of yacc.c */ | |
3447 | 3352 | #line 1131 "util/configparser.y" |
3448 | 3353 | { |
3449 | 3354 | OUTYY(("P(stub-host:%s)\n", (yyvsp[(2) - (2)].str))); |
3453 | 3358 | break; |
3454 | 3359 | |
3455 | 3360 | case 225: |
3456 | ||
3457 | /* Line 1806 of yacc.c */ | |
3361 | /* Line 1787 of yacc.c */ | |
3458 | 3362 | #line 1138 "util/configparser.y" |
3459 | 3363 | { |
3460 | 3364 | OUTYY(("P(stub-addr:%s)\n", (yyvsp[(2) - (2)].str))); |
3464 | 3368 | break; |
3465 | 3369 | |
3466 | 3370 | case 226: |
3467 | ||
3468 | /* Line 1806 of yacc.c */ | |
3371 | /* Line 1787 of yacc.c */ | |
3469 | 3372 | #line 1145 "util/configparser.y" |
3470 | 3373 | { |
3471 | 3374 | OUTYY(("P(stub-first:%s)\n", (yyvsp[(2) - (2)].str))); |
3477 | 3380 | break; |
3478 | 3381 | |
3479 | 3382 | case 227: |
3480 | ||
3481 | /* Line 1806 of yacc.c */ | |
3383 | /* Line 1787 of yacc.c */ | |
3482 | 3384 | #line 1154 "util/configparser.y" |
3483 | 3385 | { |
3484 | 3386 | OUTYY(("P(stub-prime:%s)\n", (yyvsp[(2) - (2)].str))); |
3491 | 3393 | break; |
3492 | 3394 | |
3493 | 3395 | case 228: |
3494 | ||
3495 | /* Line 1806 of yacc.c */ | |
3396 | /* Line 1787 of yacc.c */ | |
3496 | 3397 | #line 1164 "util/configparser.y" |
3497 | 3398 | { |
3498 | 3399 | OUTYY(("P(name:%s)\n", (yyvsp[(2) - (2)].str))); |
3505 | 3406 | break; |
3506 | 3407 | |
3507 | 3408 | case 229: |
3508 | ||
3509 | /* Line 1806 of yacc.c */ | |
3409 | /* Line 1787 of yacc.c */ | |
3510 | 3410 | #line 1174 "util/configparser.y" |
3511 | 3411 | { |
3512 | 3412 | OUTYY(("P(forward-host:%s)\n", (yyvsp[(2) - (2)].str))); |
3516 | 3416 | break; |
3517 | 3417 | |
3518 | 3418 | case 230: |
3519 | ||
3520 | /* Line 1806 of yacc.c */ | |
3419 | /* Line 1787 of yacc.c */ | |
3521 | 3420 | #line 1181 "util/configparser.y" |
3522 | 3421 | { |
3523 | 3422 | OUTYY(("P(forward-addr:%s)\n", (yyvsp[(2) - (2)].str))); |
3527 | 3426 | break; |
3528 | 3427 | |
3529 | 3428 | case 231: |
3530 | ||
3531 | /* Line 1806 of yacc.c */ | |
3429 | /* Line 1787 of yacc.c */ | |
3532 | 3430 | #line 1188 "util/configparser.y" |
3533 | 3431 | { |
3534 | 3432 | OUTYY(("P(forward-first:%s)\n", (yyvsp[(2) - (2)].str))); |
3540 | 3438 | break; |
3541 | 3439 | |
3542 | 3440 | case 232: |
3543 | ||
3544 | /* Line 1806 of yacc.c */ | |
3441 | /* Line 1787 of yacc.c */ | |
3545 | 3442 | #line 1197 "util/configparser.y" |
3546 | 3443 | { |
3547 | 3444 | OUTYY(("\nP(remote-control:)\n")); |
3549 | 3446 | break; |
3550 | 3447 | |
3551 | 3448 | case 242: |
3552 | ||
3553 | /* Line 1806 of yacc.c */ | |
3449 | /* Line 1787 of yacc.c */ | |
3554 | 3450 | #line 1208 "util/configparser.y" |
3555 | 3451 | { |
3556 | 3452 | OUTYY(("P(control_enable:%s)\n", (yyvsp[(2) - (2)].str))); |
3563 | 3459 | break; |
3564 | 3460 | |
3565 | 3461 | case 243: |
3566 | ||
3567 | /* Line 1806 of yacc.c */ | |
3462 | /* Line 1787 of yacc.c */ | |
3568 | 3463 | #line 1218 "util/configparser.y" |
3569 | 3464 | { |
3570 | 3465 | OUTYY(("P(control_port:%s)\n", (yyvsp[(2) - (2)].str))); |
3576 | 3471 | break; |
3577 | 3472 | |
3578 | 3473 | case 244: |
3579 | ||
3580 | /* Line 1806 of yacc.c */ | |
3474 | /* Line 1787 of yacc.c */ | |
3581 | 3475 | #line 1227 "util/configparser.y" |
3582 | 3476 | { |
3583 | 3477 | OUTYY(("P(control_interface:%s)\n", (yyvsp[(2) - (2)].str))); |
3587 | 3481 | break; |
3588 | 3482 | |
3589 | 3483 | case 245: |
3590 | ||
3591 | /* Line 1806 of yacc.c */ | |
3484 | /* Line 1787 of yacc.c */ | |
3592 | 3485 | #line 1234 "util/configparser.y" |
3593 | 3486 | { |
3594 | 3487 | OUTYY(("P(rc_server_key_file:%s)\n", (yyvsp[(2) - (2)].str))); |
3598 | 3491 | break; |
3599 | 3492 | |
3600 | 3493 | case 246: |
3601 | ||
3602 | /* Line 1806 of yacc.c */ | |
3494 | /* Line 1787 of yacc.c */ | |
3603 | 3495 | #line 1241 "util/configparser.y" |
3604 | 3496 | { |
3605 | 3497 | OUTYY(("P(rc_server_cert_file:%s)\n", (yyvsp[(2) - (2)].str))); |
3609 | 3501 | break; |
3610 | 3502 | |
3611 | 3503 | case 247: |
3612 | ||
3613 | /* Line 1806 of yacc.c */ | |
3504 | /* Line 1787 of yacc.c */ | |
3614 | 3505 | #line 1248 "util/configparser.y" |
3615 | 3506 | { |
3616 | 3507 | OUTYY(("P(rc_control_key_file:%s)\n", (yyvsp[(2) - (2)].str))); |
3620 | 3511 | break; |
3621 | 3512 | |
3622 | 3513 | case 248: |
3623 | ||
3624 | /* Line 1806 of yacc.c */ | |
3514 | /* Line 1787 of yacc.c */ | |
3625 | 3515 | #line 1255 "util/configparser.y" |
3626 | 3516 | { |
3627 | 3517 | OUTYY(("P(rc_control_cert_file:%s)\n", (yyvsp[(2) - (2)].str))); |
3631 | 3521 | break; |
3632 | 3522 | |
3633 | 3523 | case 249: |
3634 | ||
3635 | /* Line 1806 of yacc.c */ | |
3524 | /* Line 1787 of yacc.c */ | |
3636 | 3525 | #line 1262 "util/configparser.y" |
3637 | 3526 | { |
3638 | 3527 | OUTYY(("\nP(python:)\n")); |
3640 | 3529 | break; |
3641 | 3530 | |
3642 | 3531 | case 253: |
3643 | ||
3644 | /* Line 1806 of yacc.c */ | |
3532 | /* Line 1787 of yacc.c */ | |
3645 | 3533 | #line 1271 "util/configparser.y" |
3646 | 3534 | { |
3647 | 3535 | OUTYY(("P(python-script:%s)\n", (yyvsp[(2) - (2)].str))); |
3651 | 3539 | break; |
3652 | 3540 | |
3653 | 3541 | |
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" | |
3657 | 3544 | default: break; |
3658 | 3545 | } |
3659 | 3546 | /* User semantic actions sometimes alter yychar, and that requires |
3840 | 3727 | yyresult = 1; |
3841 | 3728 | goto yyreturn; |
3842 | 3729 | |
3843 | #if !defined(yyoverflow) || YYERROR_VERBOSE | |
3730 | #if !defined yyoverflow || YYERROR_VERBOSE | |
3844 | 3731 | /*-------------------------------------------------. |
3845 | 3732 | | yyexhaustedlab -- memory exhaustion comes here. | |
3846 | 3733 | `-------------------------------------------------*/ |
3882 | 3769 | } |
3883 | 3770 | |
3884 | 3771 | |
3885 | ||
3886 | /* Line 2067 of yacc.c */ | |
3772 | /* Line 2048 of yacc.c */ | |
3887 | 3773 | #line 1276 "util/configparser.y" |
3888 | 3774 | |
3889 | 3775 |
0 | /* A Bison parser, made by GNU Bison 2.5. */ | |
0 | /* A Bison parser, made by GNU Bison 2.6.1. */ | |
1 | 1 | |
2 | 2 | /* Bison interface for Yacc-like parsers in C |
3 | 3 | |
4 | Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. | |
4 | Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc. | |
5 | 5 | |
6 | 6 | This program is free software: you can redistribute it and/or modify |
7 | 7 | it under the terms of the GNU General Public License as published by |
29 | 29 | This special exception was added by the Free Software Foundation in |
30 | 30 | version 2.2 of Bison. */ |
31 | 31 | |
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 | |
32 | 41 | |
33 | 42 | /* Tokens. */ |
34 | 43 | #ifndef YYTOKENTYPE |
296 | 305 | |
297 | 306 | |
298 | 307 | |
299 | ||
300 | 308 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
301 | 309 | typedef union YYSTYPE |
302 | 310 | { |
303 | ||
304 | /* Line 2068 of yacc.c */ | |
311 | /* Line 2049 of yacc.c */ | |
305 | 312 | #line 64 "util/configparser.y" |
306 | 313 | |
307 | 314 | char* str; |
308 | 315 | |
309 | 316 | |
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" | |
313 | 319 | } YYSTYPE; |
314 | 320 | # define YYSTYPE_IS_TRIVIAL 1 |
315 | 321 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
318 | 324 | |
319 | 325 | extern YYSTYPE yylval; |
320 | 326 | |
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 */ |
3959 | 3959 | 4743, |
3960 | 3960 | 4744, |
3961 | 3961 | 4745, |
3962 | 4747, | |
3962 | 3963 | 4749, |
3963 | 3964 | 4750, |
3964 | 3965 | 4751, |
4260 | 4261 | 5632, |
4261 | 4262 | 5633, |
4262 | 4263 | 5634, |
4264 | 5670, | |
4263 | 4265 | 5671, |
4264 | 4266 | 5672, |
4265 | 4267 | 5673, |
4404 | 4406 | 6306, |
4405 | 4407 | 6315, |
4406 | 4408 | 6316, |
4409 | 6317, | |
4407 | 4410 | 6320, |
4408 | 4411 | 6321, |
4409 | 4412 | 6322, |
4551 | 4554 | 7070, |
4552 | 4555 | 7071, |
4553 | 4556 | 7080, |
4557 | 7095, | |
4554 | 4558 | 7099, |
4555 | 4559 | 7100, |
4556 | 4560 | 7101, |
4661 | 4665 | 7799, |
4662 | 4666 | 7800, |
4663 | 4667 | 7801, |
4668 | 7802, | |
4664 | 4669 | 7810, |
4665 | 4670 | 7845, |
4666 | 4671 | 7846, |
4794 | 4799 | 8763, |
4795 | 4800 | 8764, |
4796 | 4801 | 8765, |
4802 | 8766, | |
4797 | 4803 | 8770, |
4798 | 4804 | 8786, |
4799 | 4805 | 8787, |
4879 | 4885 | 9217, |
4880 | 4886 | 9222, |
4881 | 4887 | 9255, |
4888 | 9277, | |
4882 | 4889 | 9278, |
4883 | 4890 | 9279, |
4884 | 4891 | 9280, |
5086 | 5093 | 13929, |
5087 | 5094 | 14000, |
5088 | 5095 | 14001, |
5096 | 14002, | |
5089 | 5097 | 14033, |
5090 | 5098 | 14034, |
5091 | 5099 | 14141, |
5163 | 5171 | 19539, |
5164 | 5172 | 19540, |
5165 | 5173 | 19541, |
5174 | 19788, | |
5166 | 5175 | 19999, |
5167 | 5176 | 20000, |
5168 | 5177 | 20001, |
5226 | 5235 | 24242, |
5227 | 5236 | 24249, |
5228 | 5237 | 24321, |
5238 | 24322, | |
5229 | 5239 | 24386, |
5230 | 5240 | 24465, |
5231 | 5241 | 24554, |
5333 | 5343 | 42508, |
5334 | 5344 | 42509, |
5335 | 5345 | 42510, |
5346 | 43000, | |
5336 | 5347 | 43188, |
5337 | 5348 | 43189, |
5338 | 5349 | 43190, |
5346 | 5357 | 44553, |
5347 | 5358 | 44600, |
5348 | 5359 | 44818, |
5360 | 44900, | |
5349 | 5361 | 45000, |
5350 | 5362 | 45054, |
5351 | 5363 | 45678, |
5353 | 5365 | 45966, |
5354 | 5366 | 46999, |
5355 | 5367 | 47000, |
5368 | 47100, | |
5356 | 5369 | 47557, |
5357 | 5370 | 47624, |
5358 | 5371 | 47806, |
725 | 725 | #endif |
726 | 726 | } |
727 | 727 | |
728 | #if defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) | |
728 | #if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) | |
729 | 729 | /** global lock list for openssl locks */ |
730 | 730 | static lock_basic_t *ub_openssl_locks = NULL; |
731 | 731 | |
750 | 750 | |
751 | 751 | int ub_openssl_lock_init(void) |
752 | 752 | { |
753 | #if defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) | |
753 | #if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) | |
754 | 754 | int i; |
755 | 755 | ub_openssl_locks = (lock_basic_t*)malloc( |
756 | 756 | sizeof(lock_basic_t)*CRYPTO_num_locks()); |
767 | 767 | |
768 | 768 | void ub_openssl_lock_delete(void) |
769 | 769 | { |
770 | #if defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) | |
770 | #if defined(HAVE_SSL) && defined(OPENSSL_THREADS) && !defined(THREADS_DISABLED) | |
771 | 771 | int i; |
772 | 772 | if(!ub_openssl_locks) |
773 | 773 | return; |
774 | CRYPTO_set_id_callback(NULL); | |
775 | CRYPTO_set_locking_callback(NULL); | |
774 | 776 | for(i=0; i<CRYPTO_num_locks(); i++) { |
775 | 777 | lock_basic_destroy(&ub_openssl_locks[i]); |
776 | 778 | } |
779 | free(ub_openssl_locks); | |
777 | 780 | #endif /* OPENSSL_THREADS */ |
778 | 781 | } |
779 | 782 |
94 | 94 | # endif /* USE_WINSOCK */ |
95 | 95 | #else /* USE_MINI_EVENT */ |
96 | 96 | /* 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 | |
98 | 104 | #endif /* USE_MINI_EVENT */ |
99 | 105 | |
100 | 106 | /** |
64 | 64 | #include <openssl/rc4.h> |
65 | 65 | #include <openssl/err.h> |
66 | 66 | #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" | |
70 | 72 | #endif |
71 | 73 | |
72 | 74 | /** |
0 | 0 | /* |
1 | February 2013(Wouter) patch defines for BSD endianness, from Brad Smith. | |
1 | 2 | January 2012(Wouter) added randomised initial value, fallout from 28c3. |
2 | 3 | March 2007(Wouter) adapted from lookup3.c original, add config.h include. |
3 | 4 | added #ifdef VALGRIND to remove 298,384,660 'unused variable k8' warnings. |
51 | 52 | #ifdef linux |
52 | 53 | # include <endian.h> /* attempt to define endianness */ |
53 | 54 | #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 | |
54 | 61 | |
55 | 62 | /* random initial value */ |
56 | 63 | static uint32_t raninit = 0xdeadbeef; |
67 | 74 | */ |
68 | 75 | #if (defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && \ |
69 | 76 | __BYTE_ORDER == __LITTLE_ENDIAN) || \ |
77 | (defined(_BYTE_ORDER) && defined(_LITTLE_ENDIAN) && \ | |
78 | _BYTE_ORDER == _LITTLE_ENDIAN) || \ | |
70 | 79 | (defined(i386) || defined(__i386__) || defined(__i486__) || \ |
71 | 80 | defined(__i586__) || defined(__i686__) || defined(vax) || defined(MIPSEL)) |
72 | 81 | # define HASH_LITTLE_ENDIAN 1 |
73 | 82 | # 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 | |
74 | 86 | #elif (defined(__BYTE_ORDER) && defined(__BIG_ENDIAN) && \ |
75 | 87 | __BYTE_ORDER == __BIG_ENDIAN) || \ |
88 | (defined(_BYTE_ORDER) && defined(_BIG_ENDIAN) && \ | |
89 | _BYTE_ORDER == _BIG_ENDIAN) || \ | |
76 | 90 | (defined(sparc) || defined(POWERPC) || defined(mc68000) || defined(sel)) |
77 | 91 | # define HASH_LITTLE_ENDIAN 0 |
78 | 92 | # define HASH_BIG_ENDIAN 1 |
465 | 465 | * @param anchors: all points. |
466 | 466 | * @param str: comments line |
467 | 467 | * @param fname: filename |
468 | * @param origin: $ORIGIN. | |
468 | * @param origin: the $ORIGIN. | |
469 | 469 | * @param prev: passed to ldns. |
470 | 470 | * @param skip: if true, the result is NULL, but not an error, skip it. |
471 | 471 | * @return false on failure, otherwise the tp read. |
45 | 45 | #include "openssl/ssl.h" |
46 | 46 | #endif |
47 | 47 | #ifdef HAVE_NSS |
48 | #include <nss3/sechash.h> | |
48 | /* nss3 */ | |
49 | #include "sechash.h" | |
49 | 50 | #endif |
50 | 51 | #include "validator/val_nsec3.h" |
51 | 52 | #include "validator/validator.h" |
552 | 552 | /**************************************************/ |
553 | 553 | #elif defined(HAVE_NSS) |
554 | 554 | /* 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" | |
561 | 563 | |
562 | 564 | size_t |
563 | 565 | ds_digest_size_supported(int algo) |
81 | 81 | SetOutPath $INSTDIR |
82 | 82 | |
83 | 83 | # 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" | |
85 | 85 | |
86 | 86 | NSISdl::download "http://ftp.isc.org/www/dlv/dlv.isc.org.key" "$INSTDIR\dlv.isc.org.key" |
87 | 87 | Pop $R0 # result from Inetc::get |