summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2019-12-16 23:56:35 +0000
committersthen <sthen@openbsd.org>2019-12-16 23:56:35 +0000
commitda8ab630dbf8af49cb464ac14aaf11fcda41c15e (patch)
tree983a920885ceab1da98cd3ecbb46f192481a38cb
parentAdd AMD FCH (KERNCZ) to the list of supported devices. (diff)
downloadwireguard-openbsd-da8ab630dbf8af49cb464ac14aaf11fcda41c15e.tar.xz
wireguard-openbsd-da8ab630dbf8af49cb464ac14aaf11fcda41c15e.zip
scrap some unused files, part of a bigger diff to update to 9.10.8-P1
(last ISC licensed release) but that has an issue with dig -6 so I'm breaking it out for now
-rw-r--r--usr.sbin/bind/aclocal.m42
-rw-r--r--usr.sbin/bind/configure929
-rw-r--r--usr.sbin/bind/configure.in7
-rw-r--r--usr.sbin/bind/lib/bind9/win32/DLLMain.c57
-rw-r--r--usr.sbin/bind/lib/bind9/win32/libbind9.def8
-rw-r--r--usr.sbin/bind/lib/bind9/win32/libbind9.dsp.in137
-rw-r--r--usr.sbin/bind/lib/bind9/win32/libbind9.dsw29
-rw-r--r--usr.sbin/bind/lib/bind9/win32/libbind9.mak.in452
-rw-r--r--usr.sbin/bind/lib/bind9/win32/libbind9.vcxproj.filters.in45
-rw-r--r--usr.sbin/bind/lib/bind9/win32/libbind9.vcxproj.in123
-rw-r--r--usr.sbin/bind/lib/bind9/win32/libbind9.vcxproj.user3
-rw-r--r--usr.sbin/bind/lib/bind9/win32/version.c28
-rw-r--r--usr.sbin/bind/lib/dns/tests/Atffile5
-rw-r--r--usr.sbin/bind/lib/dns/tests/Kdh.+002+18602.key1
-rw-r--r--usr.sbin/bind/lib/dns/tests/Krsa.+005+29235.key5
-rw-r--r--usr.sbin/bind/lib/dns/tests/Makefile.in238
-rw-r--r--usr.sbin/bind/lib/dns/tests/acl_test.c291
-rw-r--r--usr.sbin/bind/lib/dns/tests/db_test.c86
-rw-r--r--usr.sbin/bind/lib/dns/tests/dbdiff_test.c172
-rw-r--r--usr.sbin/bind/lib/dns/tests/dbiterator_test.c437
-rw-r--r--usr.sbin/bind/lib/dns/tests/dbversion_test.c740
-rw-r--r--usr.sbin/bind/lib/dns/tests/dh_test.c99
-rw-r--r--usr.sbin/bind/lib/dns/tests/dispatch_test.c160
-rw-r--r--usr.sbin/bind/lib/dns/tests/dnstest.c328
-rw-r--r--usr.sbin/bind/lib/dns/tests/dnstest.h82
-rw-r--r--usr.sbin/bind/lib/dns/tests/geoip_test.c695
-rw-r--r--usr.sbin/bind/lib/dns/tests/gost_test.c389
-rw-r--r--usr.sbin/bind/lib/dns/tests/master_test.c689
-rw-r--r--usr.sbin/bind/lib/dns/tests/mkraw.pl31
-rw-r--r--usr.sbin/bind/lib/dns/tests/name_test.c235
-rw-r--r--usr.sbin/bind/lib/dns/tests/nsec3_test.c102
-rw-r--r--usr.sbin/bind/lib/dns/tests/peer_test.c145
-rw-r--r--usr.sbin/bind/lib/dns/tests/private_test.c225
-rw-r--r--usr.sbin/bind/lib/dns/tests/rbt_serialize_test.c465
-rw-r--r--usr.sbin/bind/lib/dns/tests/rbt_test.c1230
-rw-r--r--usr.sbin/bind/lib/dns/tests/rdata_test.c623
-rw-r--r--usr.sbin/bind/lib/dns/tests/rdataset_test.c131
-rw-r--r--usr.sbin/bind/lib/dns/tests/rdatasetstats_test.c176
-rw-r--r--usr.sbin/bind/lib/dns/tests/rsa_test.c319
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/dbiterator/zone1.data37
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/dbiterator/zone2.data319
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/diff/zone1.data20
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/diff/zone2.data21
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/diff/zone3.data19
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master1.data11
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master10.data7
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master11.data6
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master12.data.in1
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master13.data.in1
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master14.data.in1
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master15.data1609
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master16.data1609
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master17.data14
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master2.data11
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master3.data11
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master4.data11
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master5.data11
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master6.data33
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master7.data17
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master8.data4
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/master/master9.data4
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/nsec3/1024.db21
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/nsec3/2048.db21
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/nsec3/4096.db21
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/nsec3/min-1024.db25
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/nsec3/min-2048.db23
-rw-r--r--usr.sbin/bind/lib/dns/tests/testdata/zt/zone1.db27
-rw-r--r--usr.sbin/bind/lib/dns/tests/time_test.c218
-rw-r--r--usr.sbin/bind/lib/dns/tests/tsig_test.c499
-rw-r--r--usr.sbin/bind/lib/dns/tests/update_test.c275
-rw-r--r--usr.sbin/bind/lib/dns/tests/zonemgr_test.c259
-rw-r--r--usr.sbin/bind/lib/dns/tests/zt_test.c295
-rw-r--r--usr.sbin/bind/lib/irs/tests/Atffile5
-rw-r--r--usr.sbin/bind/lib/irs/tests/Makefile.in60
-rw-r--r--usr.sbin/bind/lib/irs/tests/resconf_test.c141
-rw-r--r--usr.sbin/bind/lib/irs/tests/testdata/domain.conf15
-rw-r--r--usr.sbin/bind/lib/irs/tests/testdata/nameserver-v4.conf15
-rw-r--r--usr.sbin/bind/lib/irs/tests/testdata/nameserver-v6.conf15
-rw-r--r--usr.sbin/bind/lib/irs/tests/testdata/options-debug.conf15
-rw-r--r--usr.sbin/bind/lib/irs/tests/testdata/options-ndots.conf15
-rw-r--r--usr.sbin/bind/lib/irs/tests/testdata/options-timeout.conf15
-rw-r--r--usr.sbin/bind/lib/irs/tests/testdata/options-unknown.conf15
-rw-r--r--usr.sbin/bind/lib/irs/tests/testdata/options.conf15
-rw-r--r--usr.sbin/bind/lib/irs/tests/testdata/port.conf15
-rw-r--r--usr.sbin/bind/lib/irs/tests/testdata/resolv.conf22
-rw-r--r--usr.sbin/bind/lib/irs/tests/testdata/search.conf15
-rw-r--r--usr.sbin/bind/lib/irs/tests/testdata/sortlist-v4.conf15
-rw-r--r--usr.sbin/bind/lib/irs/tests/testdata/timeout.conf15
-rw-r--r--usr.sbin/bind/lib/irs/tests/testdata/unknown.conf15
-rw-r--r--usr.sbin/bind/lib/irs/win32/DLLMain.c56
-rw-r--r--usr.sbin/bind/lib/irs/win32/Makefile.in24
-rw-r--r--usr.sbin/bind/lib/irs/win32/include/Makefile.in24
-rw-r--r--usr.sbin/bind/lib/irs/win32/include/irs/Makefile.in33
-rw-r--r--usr.sbin/bind/lib/irs/win32/include/irs/netdb.h207
-rw-r--r--usr.sbin/bind/lib/irs/win32/include/irs/platform.h43
-rw-r--r--usr.sbin/bind/lib/irs/win32/libirs.def27
-rw-r--r--usr.sbin/bind/lib/irs/win32/libirs.dsp.in169
-rw-r--r--usr.sbin/bind/lib/irs/win32/libirs.dsw29
-rw-r--r--usr.sbin/bind/lib/irs/win32/libirs.mak.in548
-rw-r--r--usr.sbin/bind/lib/irs/win32/libirs.vcxproj.filters.in69
-rw-r--r--usr.sbin/bind/lib/irs/win32/libirs.vcxproj.in131
-rw-r--r--usr.sbin/bind/lib/irs/win32/libirs.vcxproj.user3
-rw-r--r--usr.sbin/bind/lib/irs/win32/version.c27
-rw-r--r--usr.sbin/bind/lib/isc/tests/Atffile5
-rw-r--r--usr.sbin/bind/lib/isc/tests/Makefile.in141
-rw-r--r--usr.sbin/bind/lib/isc/tests/aes_test.c300
-rw-r--r--usr.sbin/bind/lib/isc/tests/counter_test.c69
-rw-r--r--usr.sbin/bind/lib/isc/tests/errno_test.c110
-rw-r--r--usr.sbin/bind/lib/isc/tests/hash_test.c1981
-rw-r--r--usr.sbin/bind/lib/isc/tests/isctest.c186
-rw-r--r--usr.sbin/bind/lib/isc/tests/isctest.h57
-rw-r--r--usr.sbin/bind/lib/isc/tests/lex_test.c69
-rw-r--r--usr.sbin/bind/lib/isc/tests/mem_test.c160
-rw-r--r--usr.sbin/bind/lib/isc/tests/netaddr_test.c70
-rw-r--r--usr.sbin/bind/lib/isc/tests/parse_test.c70
-rw-r--r--usr.sbin/bind/lib/isc/tests/pool_test.c186
-rw-r--r--usr.sbin/bind/lib/isc/tests/print_test.c168
-rw-r--r--usr.sbin/bind/lib/isc/tests/queue_test.c144
-rw-r--r--usr.sbin/bind/lib/isc/tests/radix_test.c95
-rw-r--r--usr.sbin/bind/lib/isc/tests/regex_test.c1126
-rw-r--r--usr.sbin/bind/lib/isc/tests/safe_test.c73
-rw-r--r--usr.sbin/bind/lib/isc/tests/sockaddr_test.c137
-rw-r--r--usr.sbin/bind/lib/isc/tests/socket_test.c798
-rw-r--r--usr.sbin/bind/lib/isc/tests/symtab_test.c147
-rw-r--r--usr.sbin/bind/lib/isc/tests/task_test.c416
-rw-r--r--usr.sbin/bind/lib/isc/tests/taskpool_test.c211
-rw-r--r--usr.sbin/bind/lib/isc/tests/time_test.c51
-rw-r--r--usr.sbin/bind/lib/isccc/win32/DLLMain.c57
-rw-r--r--usr.sbin/bind/lib/isccc/win32/libisccc.def70
-rw-r--r--usr.sbin/bind/lib/isccc/win32/libisccc.dsp.in201
-rw-r--r--usr.sbin/bind/lib/isccc/win32/libisccc.dsw29
-rw-r--r--usr.sbin/bind/lib/isccc/win32/libisccc.mak.in540
-rw-r--r--usr.sbin/bind/lib/isccc/win32/libisccc.vcxproj.filters.in93
-rw-r--r--usr.sbin/bind/lib/isccc/win32/libisccc.vcxproj.in139
-rw-r--r--usr.sbin/bind/lib/isccc/win32/libisccc.vcxproj.user3
-rw-r--r--usr.sbin/bind/lib/isccc/win32/version.c28
-rw-r--r--usr.sbin/bind/lib/lwres/tests/Atffile5
-rw-r--r--usr.sbin/bind/lib/lwres/tests/Makefile.in54
-rw-r--r--usr.sbin/bind/lib/lwres/tests/config_test.c73
-rw-r--r--usr.sbin/bind/lib/lwres/tests/testdata/link-local.conf1
-rw-r--r--usr.sbin/bind/lib/samples/win32/async.dsp.in103
-rw-r--r--usr.sbin/bind/lib/samples/win32/async.dsw29
-rw-r--r--usr.sbin/bind/lib/samples/win32/async.mak.in299
-rw-r--r--usr.sbin/bind/lib/samples/win32/async.vcxproj.filters.in22
-rw-r--r--usr.sbin/bind/lib/samples/win32/async.vcxproj.in108
-rw-r--r--usr.sbin/bind/lib/samples/win32/async.vcxproj.user3
-rw-r--r--usr.sbin/bind/lib/samples/win32/gai.dsp.in103
-rw-r--r--usr.sbin/bind/lib/samples/win32/gai.dsw29
-rw-r--r--usr.sbin/bind/lib/samples/win32/gai.mak.in299
-rw-r--r--usr.sbin/bind/lib/samples/win32/gai.vcxproj.filters.in22
-rw-r--r--usr.sbin/bind/lib/samples/win32/gai.vcxproj.in108
-rw-r--r--usr.sbin/bind/lib/samples/win32/gai.vcxproj.user3
-rw-r--r--usr.sbin/bind/lib/samples/win32/nsprobe.dsp.in103
-rw-r--r--usr.sbin/bind/lib/samples/win32/nsprobe.dsw29
-rw-r--r--usr.sbin/bind/lib/samples/win32/nsprobe.mak.in299
-rw-r--r--usr.sbin/bind/lib/samples/win32/nsprobe.vcxproj.filters.in22
-rw-r--r--usr.sbin/bind/lib/samples/win32/nsprobe.vcxproj.in108
-rw-r--r--usr.sbin/bind/lib/samples/win32/nsprobe.vcxproj.user3
-rw-r--r--usr.sbin/bind/lib/samples/win32/request.dsp.in103
-rw-r--r--usr.sbin/bind/lib/samples/win32/request.dsw29
-rw-r--r--usr.sbin/bind/lib/samples/win32/request.mak.in299
-rw-r--r--usr.sbin/bind/lib/samples/win32/request.vcxproj.filters.in22
-rw-r--r--usr.sbin/bind/lib/samples/win32/request.vcxproj.in108
-rw-r--r--usr.sbin/bind/lib/samples/win32/request.vcxproj.user3
-rw-r--r--usr.sbin/bind/lib/samples/win32/resolve.dsp.in103
-rw-r--r--usr.sbin/bind/lib/samples/win32/resolve.dsw29
-rw-r--r--usr.sbin/bind/lib/samples/win32/resolve.mak.in299
-rw-r--r--usr.sbin/bind/lib/samples/win32/resolve.vcxproj.filters.in22
-rw-r--r--usr.sbin/bind/lib/samples/win32/resolve.vcxproj.in108
-rw-r--r--usr.sbin/bind/lib/samples/win32/resolve.vcxproj.user3
-rw-r--r--usr.sbin/bind/lib/samples/win32/update.dsp.in103
-rw-r--r--usr.sbin/bind/lib/samples/win32/update.dsw29
-rw-r--r--usr.sbin/bind/lib/samples/win32/update.mak.in299
-rw-r--r--usr.sbin/bind/lib/samples/win32/update.vcxproj.filters.in22
-rw-r--r--usr.sbin/bind/lib/samples/win32/update.vcxproj.in108
-rw-r--r--usr.sbin/bind/lib/samples/win32/update.vcxproj.user3
-rw-r--r--usr.sbin/bind/lib/tests/Makefile.in56
-rw-r--r--usr.sbin/bind/lib/tests/T_testlist.imp3
-rw-r--r--usr.sbin/bind/lib/tests/include/Makefile.in25
-rw-r--r--usr.sbin/bind/lib/tests/include/tests/Makefile.in27
-rw-r--r--usr.sbin/bind/lib/tests/include/tests/t_api.h115
-rw-r--r--usr.sbin/bind/lib/tests/t_api.c849
-rw-r--r--usr.sbin/bind/lib/tests/win32/DLLMain.c56
-rw-r--r--usr.sbin/bind/lib/tests/win32/libtests.def15
-rw-r--r--usr.sbin/bind/lib/tests/win32/libtests.dsp.in121
-rw-r--r--usr.sbin/bind/lib/tests/win32/libtests.dsw29
-rw-r--r--usr.sbin/bind/lib/tests/win32/libtests.mak.in378
-rw-r--r--usr.sbin/bind/lib/tests/win32/libtests.vcxproj.filters.in33
-rw-r--r--usr.sbin/bind/lib/tests/win32/libtests.vcxproj.in119
-rw-r--r--usr.sbin/bind/lib/tests/win32/libtests.vcxproj.user3
-rw-r--r--usr.sbin/bind/lib/win32/bindevt/bindevt.c31
-rw-r--r--usr.sbin/bind/lib/win32/bindevt/bindevt.dsp.in132
-rw-r--r--usr.sbin/bind/lib/win32/bindevt/bindevt.dsw29
-rw-r--r--usr.sbin/bind/lib/win32/bindevt/bindevt.mak.in310
-rw-r--r--usr.sbin/bind/lib/win32/bindevt/bindevt.mc47
-rw-r--r--usr.sbin/bind/lib/win32/bindevt/bindevt.vcxproj.filters.in12
-rw-r--r--usr.sbin/bind/lib/win32/bindevt/bindevt.vcxproj.in130
-rw-r--r--usr.sbin/bind/lib/win32/bindevt/bindevt.vcxproj.user3
-rw-r--r--usr.sbin/bind/libtool.m46000
-rw-r--r--usr.sbin/bind/libtool.m4.file6000
200 files changed, 2 insertions, 43161 deletions
diff --git a/usr.sbin/bind/aclocal.m4 b/usr.sbin/bind/aclocal.m4
index 13fd22ef687..2b8fc6fca6c 100644
--- a/usr.sbin/bind/aclocal.m4
+++ b/usr.sbin/bind/aclocal.m4
@@ -1,4 +1,4 @@
-sinclude(libtool.m4.dir/libtool.m4.dir)dnl
+sinclude(libtool.m4.dir/libtool.m4)dnl
sinclude(libtool.m4.dir/ltoptions.m4)dnl
sinclude(libtool.m4.dir/ltsugar.m4)dnl
sinclude(libtool.m4.dir/ltversion.m4)dnl
diff --git a/usr.sbin/bind/configure b/usr.sbin/bind/configure
index 3acb8ec81a9..3faf95ee60d 100644
--- a/usr.sbin/bind/configure
+++ b/usr.sbin/bind/configure
@@ -659,7 +659,6 @@ DLZ_DRIVER_SRCS
DLZ_DRIVER_LIBS
DLZ_DRIVER_INCLUDES
CONTRIB_DLZ
-PG_CONFIG
SO_TARGETS
SO_LD
SO_LDFLAGS
@@ -1043,13 +1042,6 @@ with_atf
with_tuning
enable_querytrace
with_dlopen
-with_dlz_postgres
-with_dlz_mysql
-with_dlz_bdb
-with_dlz_filesystem
-with_dlz_ldap
-with_dlz_odbc
-with_dlz_stub
with_make_clean
enable_full_report
'
@@ -1754,20 +1746,6 @@ Optional Packages:
--with-atf=ARG support Automated Test Framework
--with-tuning=ARG Specify server tuning (large or default)
--with-dlopen=ARG support dynamically loadable DLZ drivers
- --with-dlz-postgres=PATH Build with Postgres DLZ driver yes|no|path.
- (Required to use Postgres with DLZ)
- --with-dlz-mysql=PATH Build with MySQL DLZ driver yes|no|path.
- (Required to use MySQL with DLZ)
- --with-dlz-bdb=PATH Build with Berkeley DB DLZ driver yes|no|path.
- (Required to use Berkeley DB with DLZ)
- --with-dlz-filesystem=ARG Build with filesystem DLZ driver yes|no.
- (Required to use file system driver with DLZ)
- --with-dlz-ldap=PATH Build with LDAP DLZ driver yes|no|path.
- (Required to use LDAP with DLZ)
- --with-dlz-odbc=PATH Build with ODBC DLZ driver yes|no|path.
- (Required to use ODBC with DLZ)
- --with-dlz-stub=ARG Build with stub DLZ driver yes|no.
- (Required to use stub driver with DLZ)
--with-make-clean run "make clean" at end of configure [yes|no]
Some influential environment variables:
@@ -21581,812 +21559,6 @@ fi
-# Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-#
-# Shorthand. Note quoting: DLZ_DRIVER_DIR expanded in Makefile, not here.
-#
-dlzdir='${DLZ_DRIVER_DIR}'
-
-#
-# Private autoconf macro to simplify configuring drivers:
-#
-# DLZ_ADD_DRIVER(DEFINE, DRIVER, INCLUDES, LIBS)
-#
-# where:
-# DEFINE is FOO (to define -DDLZ_FOO)
-# DRIVER is dlz_foo_driver (sources without the .c)
-# INCLUDES is any necessary include definitions
-# LIBS is any necessary library definitions
-#
-
-
-#
-# Check for the various DLZ drivers
-#
-
-#
-# Was --with-dlz-postgres specified?
-#
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres DLZ driver" >&5
-$as_echo_n "checking for Postgres DLZ driver... " >&6; }
-
-# Check whether --with-dlz_postgres was given.
-if test "${with_dlz_postgres+set}" = set; then :
- withval=$with_dlz_postgres; use_dlz_postgres="$withval"
-else
- use_dlz_postgres="no"
-fi
-
-
-if test "$use_dlz_postgres" != "no"
-then
- if test "$use_dlz_postgres" != "yes"
- then
- for ac_prog in pg_config
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_PG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $PG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $use_dlz_postgres/bin
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-PG_CONFIG=$ac_cv_path_PG_CONFIG
-if test -n "$PG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
-$as_echo "$PG_CONFIG" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$PG_CONFIG" && break
-done
-test -n "$PG_CONFIG" || PG_CONFIG="not found"
-
- else
- for ac_prog in pg_config
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_PG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $PG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
-
- ;;
-esac
-fi
-PG_CONFIG=$ac_cv_path_PG_CONFIG
-if test -n "$PG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
-$as_echo "$PG_CONFIG" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
- test -n "$PG_CONFIG" && break
-done
-test -n "$PG_CONFIG" || PG_CONFIG="not found"
-
- fi
-
- if test "$PG_CONFIG" != "not found"
- then
- use_dlz_postgres=`$PG_CONFIG --includedir`
- use_dlz_postgres_lib=`$PG_CONFIG --libdir`
- else
- pgprefix="$use_dlz_postgres"
- use_dlz_postgres="$pgprefix/include"
- use_dlz_postgres_lib="$pgprefix/lib"
- fi
-fi
-
-if test "$use_dlz_postgres" = "yes/include"
-then
- # User did not specify path and Postgres didn't say - guess it
- pgdirs="/usr /usr/local /usr/local/pgsql /usr/pkg"
- for d in $pgdirs
- do
- if test -f $d/include/libpq-fe.h
- then
- use_dlz_postgres=$d/include
- use_dlz_postgres_lib=$d/lib
- break
- fi
- done
-fi
-
-if test "$use_dlz_postgres" = "yes/include"
-then
- # Still no joy, give up
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
-$as_echo "not found" >&6; }
- as_fn_error $? "No pg_config and PostgreSQL was not found in any of $pgdirs; use --with-dlz-postgres=/path or put pg_config in your path" "$LINENO" 5
-fi
-
-case "$use_dlz_postgres" in
- no)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- ;;
- *)
-
- CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_POSTGRES"
- for i in dlz_postgres_driver
- do
- DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
- DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
- done
- if test -n "-I$use_dlz_postgres"
- then
- DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_postgres"
- fi
- if test -n "-L$use_dlz_postgres_lib -lpq"
- then
- DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_postgres_lib -lpq"
- fi
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&5
-$as_echo "using PostgreSQL from $use_dlz_postgres_lib and $use_dlz_postgres" >&6; }
- ;;
-esac
-
-
-#
-# Was --with-dlz-mysql specified?
-#
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL DLZ driver" >&5
-$as_echo_n "checking for MySQL DLZ driver... " >&6; }
-
-# Check whether --with-dlz_mysql was given.
-if test "${with_dlz_mysql+set}" = set; then :
- withval=$with_dlz_mysql; use_dlz_mysql="$withval"
-else
- use_dlz_mysql="no"
-fi
-
-
-mysql_include=""
-mysql_lib=""
-if test "$use_dlz_mysql" = "yes"
-then
- # User did not specify a path - guess it
- mysqldirs="/usr /usr/local /usr/local/mysql /usr/pkg"
- for d in $mysqldirs
- do
- if test -f $d/include/mysql/mysql.h
- then
- use_dlz_mysql=$d
- mysql_include=$d/include/mysql
- if test -d $d/lib/mysql
- then
- mysql_lib=$d/lib/mysql
- else
- mysql_lib=$d/lib
- fi
- break
- elif test -f $d/include/mysql.h
- then
- use_dlz_mysql=$d
- mysql_include=$d/include
- if test -d $d/lib/mysql
- then
- mysql_lib=$d/lib/mysql
- else
- mysql_lib=$d/lib
- fi
- break
- fi
- done
-elif test "$use_dlz_mysql" != "no"
-then
- d=$use_dlz_mysql
- if test -f $d/include/mysql/mysql.h
- then
- mysql_include=$d/include/mysql
- if test -d $d/lib/mysql
- then
- mysql_lib=$d/lib/mysql
- else
- mysql_lib=$d/lib
- fi
- elif test -f $d/include/mysql.h
- then
- mysql_include=$d/include
- if test -d $d/lib/mysql
- then
- mysql_lib=$d/lib/mysql
- else
- mysql_lib=$d/lib
- fi
- fi
-fi
-
-if test "$use_dlz_mysql" = "yes"
-then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
-$as_echo "not found" >&6; }
- as_fn_error $? "MySQL was not found in any of $mysqldirs; use --with-dlz-mysql=/path" "$LINENO" 5
-fi
-
-case "$use_dlz_mysql" in
- no)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- ;;
- *)
-
- CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_MYSQL"
- for i in dlz_mysql_driver
- do
- DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
- DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
- done
- if test -n "-I${mysql_include}"
- then
- DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I${mysql_include}"
- fi
- if test -n "-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
- then
- DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L${mysql_lib} -lmysqlclient -lz -lcrypt -lm"
- fi
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: using mysql from ${mysql_lib} and ${mysql_include}" >&5
-$as_echo "using mysql from ${mysql_lib} and ${mysql_include}" >&6; }
- ;;
-esac
-
-
-#
-# Was --with-dlz-bdb specified?
-#
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB DLZ driver..." >&5
-$as_echo_n "checking for Berkeley DB DLZ driver...... " >&6; }
-
-# Check whether --with-dlz_bdb was given.
-if test "${with_dlz_bdb+set}" = set; then :
- withval=$with_dlz_bdb; use_dlz_bdb="$withval"
-else
- use_dlz_bdb="no"
-fi
-
-
-case "$use_dlz_bdb" in
- no)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- ;;
- *)
- if test "$use_dlz_bdb" = "yes"
- then
- # User did not specify a path - guess directories
- bdbdirs="/usr/local /usr/pkg /usr"
- elif test -d "$use_dlz_bdb"
- then
- # User specified directory and it exists
- bdbdirs="$use_dlz_bdb"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
-$as_echo "not found" >&6; }
- as_fn_error $? "path $use_dlz_bdb does not exist" "$LINENO" 5
- bdbdirs=""
- fi
-
- # Use path we were given or guessed. This is insanely
- # complicated because we have to search for a bunch of
- # platform-specific variations and have to check
- # separately for include and library directories.
-
- # Set both to yes, so we can check them later
- dlz_bdb_inc="yes"
- dlz_bdb_libs="yes"
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
-$as_echo "" >&6; }
- for dd in $bdbdirs
- do
- # Skip nonexistant directories
- if test ! -d "$dd"
- then
- continue
- fi
-
- # Check other locations for includes.
- # Order is important (sigh).
-
- bdb_incdirs="/db53 /db51 /db48 /db47 /db46 /db45 /db44 /db43 /db42 /db41 /db4 /db"
- # include a blank element first
- for d in "" $bdb_incdirs
- do
- if test -f "$dd/include${d}/db.h"
- then
- dlz_bdb_inc="-I$dd/include${d}"
- break
- fi
- done
-
- # Give up on this directory if we couldn't
- # find the include subdir
-
- if test "$dlz_bdb_inc" = "yes"
- then
- continue
- fi
-
- # Look for libname other than libdb.so.
- # Order is important (sigh).
-
- bdb_libnames="db53 db-5.3 db51 db-5.1 db48 db-4.8 db47 db-4.7 db46 db-4.6 db45 db-4.5 db44 db-4.4 db43 db-4.3 db42 db-4.2 db41 db-4.1 db"
- for d in $bdb_libnames
- do
- if test "$dd" = "/usr"
- then
- as_ac_Lib=`$as_echo "ac_cv_lib_$d''_db_create" | $as_tr_sh`
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -l$d" >&5
-$as_echo_n "checking for db_create in -l$d... " >&6; }
-if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-l$d $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char db_create ();
-int
-main ()
-{
-return db_create ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
-else
- eval "$as_ac_Lib=no"
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
-if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- dlz_bdb_libs="-l${d}"
-fi
-
- if test $dlz_bdb_libs != "yes"
- then
- break
- fi
- elif test -f "$dd/lib/lib${d}.so"
- then
- dlz_bdb_libs="-L${dd}/lib -l${d}"
- break
- fi
- done
-
- # If we found both incdir and lib, we're done
- if test "$dlz_bdb_libs" != "yes"
- then
- break
- fi
-
- # Otherwise, we're starting over
-
- dlz_bdb_inc="yes"
- dlz_bdb_libs="yes"
- done
-
- # Done searching, now make sure we got everything.
-
- if test "$dlz_bdb_inc" = "yes"
- then
- as_fn_error $? "could not find Berkeley DB include directory" "$LINENO" 5
- fi
-
- if test "$dlz_bdb_libs" = "yes"
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
-$as_echo "not found" >&6; }
- as_fn_error $? "could not find Berkeley DB library" "$LINENO" 5
- fi
-
-
- CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_BDB"
- for i in dlz_bdb_driver dlz_bdbhpt_driver
- do
- DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
- DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
- done
- if test -n "$dlz_bdb_inc"
- then
- DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_bdb_inc"
- fi
- if test -n "$dlz_bdb_libs"
- then
- DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_bdb_libs"
- fi
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&5
-$as_echo "using Berkeley DB: $dlz_bdb_inc $dlz_bdb_libs" >&6; }
-
- ac_config_files="$ac_config_files contrib/dlz/bin/dlzbdb/Makefile"
-
- ;;
-esac
-
-
-#
-# Was --with-dlz-filesystem specified?
-#
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file system DLZ driver" >&5
-$as_echo_n "checking for file system DLZ driver... " >&6; }
-
-# Check whether --with-dlz_filesystem was given.
-if test "${with_dlz_filesystem+set}" = set; then :
- withval=$with_dlz_filesystem; use_dlz_filesystem="$withval"
-else
- use_dlz_filesystem="no"
-fi
-
-
-case "$use_dlz_filesystem" in
- no)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- ;;
- *)
-
- CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_FILESYSTEM"
- for i in dlz_filesystem_driver
- do
- DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
- DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
- done
- if test -n ""
- then
- DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
- fi
- if test -n ""
- then
- DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
- fi
-
- DLZ_SYSTEM_TEST=filesystem
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
- ;;
-esac
-
-
-#
-# Was --with-dlz-ldap specified?
-#
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP DLZ driver" >&5
-$as_echo_n "checking for LDAP DLZ driver... " >&6; }
-
-# Check whether --with-dlz_ldap was given.
-if test "${with_dlz_ldap+set}" = set; then :
- withval=$with_dlz_ldap; use_dlz_ldap="$withval"
-else
- use_dlz_ldap="no"
-fi
-
-
-if test "$use_dlz_ldap" = "yes"
-then
- # User did not specify a path - guess it
- ldapdirs="/usr /usr/local /usr/pkg"
- for d in $ldapdirs
- do
- if test -f $d/include/ldap.h
- then
- use_dlz_ldap=$d
- break
- fi
- done
-fi
-
-if test "$use_dlz_ldap" = "yes"
-then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
-$as_echo "not found" >&6; }
- as_fn_error $? "LDAP headers were not found in any of $ldapdirs; use --with-dlz-ldap=/path" "$LINENO" 5
-fi
-
-case "$use_dlz_ldap" in
- no)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- ;;
- *)
-
- CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_LDAP"
- for i in dlz_ldap_driver
- do
- DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
- DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
- done
- if test -n "-I$use_dlz_ldap/include"
- then
- DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES -I$use_dlz_ldap/include"
- fi
- if test -n "-L$use_dlz_ldap/lib -lldap -llber"
- then
- DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS -L$use_dlz_ldap/lib -lldap -llber"
- fi
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&5
-$as_echo "using LDAP from $use_dlz_ldap/lib and $use_dlz_ldap/include" >&6; }
- ;;
-esac
-
-
-#
-# Was --with-dlz-odbc specified?
-#
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC DLZ driver" >&5
-$as_echo_n "checking for ODBC DLZ driver... " >&6; }
-
-# Check whether --with-dlz_odbc was given.
-if test "${with_dlz_odbc+set}" = set; then :
- withval=$with_dlz_odbc; use_dlz_odbc="$withval"
-else
- use_dlz_odbc="no"
-fi
-
-
-if test "$use_dlz_odbc" = "yes"
-then
- # User did not specify a path - guess it
- libodbc_found=no
- sql_h_found=no
- ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
-if test "x$ac_cv_header_sql_h" = xyes; then :
- sql_h_found=yes
-fi
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
-$as_echo_n "checking for SQLConnect in -lodbc... " >&6; }
-if ${ac_cv_lib_odbc_SQLConnect+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lodbc $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char SQLConnect ();
-int
-main ()
-{
-return SQLConnect ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_odbc_SQLConnect=yes
-else
- ac_cv_lib_odbc_SQLConnect=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
-$as_echo "$ac_cv_lib_odbc_SQLConnect" >&6; }
-if test "x$ac_cv_lib_odbc_SQLConnect" = xyes; then :
- libodbc_found=yes
-fi
-
-
- if test $libodbc_found = "yes" -o $sql_h_found = "yes"
- then
- use_dlz_odbc=system
- dlz_odbc_include=""
- dlz_odbc_libs="-lodbc"
- else
- odbcdirs="/usr /usr/local /usr/pkg"
- for d in $odbcdirs
- do
- if test -f $d/include/sql.h -a -f $d/lib/libodbc.a
- then
- use_dlz_odbc=$d
- dlz_odbc_include="-I$use_dlz_odbc/include"
- dlz_odbc_libs="-L$use_dlz_odbc/lib -lodbc"
- break
- fi
- done
- fi
-fi
-
-case "$use_dlz_odbc" in
- no)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- ;;
- yes)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
-$as_echo "not found" >&6; }
- as_fn_error $? "ODBC headers were not found in any of $odbcdirs; use --with-dlz-odbc=/path" "$LINENO" 5
- ;;
- *)
-
- CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_ODBC"
- for i in dlz_odbc_driver
- do
- DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
- DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
- done
- if test -n "$dlz_odbc_include"
- then
- DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES $dlz_odbc_include"
- fi
- if test -n "$dlz_odbc_libs"
- then
- DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS $dlz_odbc_libs"
- fi
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ODBC from $use_dlz_odbc" >&5
-$as_echo "using ODBC from $use_dlz_odbc" >&6; }
- ;;
-esac
-
-
-#
-# Was --with-dlz-stub specified?
-#
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stub DLZ driver" >&5
-$as_echo_n "checking for stub DLZ driver... " >&6; }
-
-# Check whether --with-dlz_stub was given.
-if test "${with_dlz_stub+set}" = set; then :
- withval=$with_dlz_stub; use_dlz_stub="$withval"
-else
- use_dlz_stub="no"
-fi
-
-
-case "$use_dlz_stub" in
- no)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
- ;;
- *)
-
-
- CONTRIB_DLZ="$CONTRIB_DLZ -DDLZ_STUB"
- for i in dlz_stub_driver
- do
- DLZ_DRIVER_SRCS="$DLZ_DRIVER_SRCS $dlzdir/$i.c"
- DLZ_DRIVER_OBJS="$DLZ_DRIVER_OBJS $i.$O"
- done
- if test -n ""
- then
- DLZ_DRIVER_INCLUDES="$DLZ_DRIVER_INCLUDES "
- fi
- if test -n ""
- then
- DLZ_DRIVER_LIBS="$DLZ_DRIVER_LIBS "
- fi
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
- ;;
-esac
-
-# Add any additional DLZ drivers here.
-
-#
-# Finally, some generic stuff that applies to all drivers, assuming
-# we're compiling contrib DLZ drivers at all.
-#
-if test -n "$CONTRIB_DLZ"
-then
- CONTRIB_DLZ="-DCONTRIB_DLZ $CONTRIB_DLZ"
-
- #
- # Where to find DLZ driver header files.
- #
- DLZ_DRIVER_INCLUDES="-I$dlzdir/include $DLZ_DRIVER_INCLUDES"
-
- #
- # Initialization and shutdown wrappers, helper functions.
- #
- DLZ_DRIVER_SRCS="$dlzdir/dlz_drivers.c $dlzdir/sdlz_helper.c $DLZ_DRIVER_SRCS"
- DLZ_DRIVER_OBJS="dlz_drivers.$O sdlz_helper.$O $DLZ_DRIVER_OBJS"
-fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking contributed DLZ drivers" >&5
$as_echo_n "checking contributed DLZ drivers... " >&6; }
@@ -22565,7 +21737,7 @@ ac_config_commands="$ac_config_commands chmod"
# elsewhere if there's a good reason for doing so.
#
-ac_config_files="$ac_config_files make/Makefile make/mkdep Makefile bin/Makefile bin/dig/Makefile isc-config.sh lib/Makefile lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/dns/tests/Makefile lib/irs/Makefile lib/irs/include/Makefile lib/irs/include/irs/Makefile lib/irs/include/irs/netdb.h lib/irs/include/irs/platform.h lib/irs/tests/Makefile lib/isc/$arch/Makefile lib/isc/$arch/include/Makefile lib/isc/$arch/include/isc/Makefile lib/isc/$thread_dir/Makefile lib/isc/$thread_dir/include/Makefile lib/isc/$thread_dir/include/isc/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/include/pk11/Makefile lib/isc/include/pkcs11/Makefile lib/isc/tests/Makefile lib/isc/nls/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isc/unix/include/pkcs11/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/lwres/Makefile lib/lwres/include/Makefile lib/lwres/include/lwres/Makefile lib/lwres/include/lwres/netdb.h lib/lwres/include/lwres/platform.h lib/lwres/man/Makefile lib/lwres/tests/Makefile lib/lwres/unix/Makefile lib/lwres/unix/include/Makefile lib/lwres/unix/include/lwres/Makefile lib/tests/Makefile lib/tests/include/Makefile lib/tests/include/tests/Makefile lib/samples/Makefile lib/samples/Makefile-postinstall"
+ac_config_files="$ac_config_files make/Makefile make/mkdep Makefile bin/Makefile bin/dig/Makefile isc-config.sh lib/Makefile lib/bind9/Makefile lib/bind9/include/Makefile lib/bind9/include/bind9/Makefile lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/irs/Makefile lib/irs/include/Makefile lib/irs/include/irs/Makefile lib/irs/include/irs/netdb.h lib/irs/include/irs/platform.h lib/isc/$arch/Makefile lib/isc/$arch/include/Makefile lib/isc/$arch/include/isc/Makefile lib/isc/$thread_dir/Makefile lib/isc/$thread_dir/include/Makefile lib/isc/$thread_dir/include/isc/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/include/isc/platform.h lib/isc/include/pk11/Makefile lib/isc/include/pkcs11/Makefile lib/isc/nls/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isc/unix/include/pkcs11/Makefile lib/isccc/Makefile lib/isccc/include/Makefile lib/isccc/include/isccc/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/lwres/Makefile lib/lwres/include/Makefile lib/lwres/include/lwres/Makefile lib/lwres/include/lwres/netdb.h lib/lwres/include/lwres/platform.h lib/lwres/man/Makefile lib/lwres/unix/Makefile lib/lwres/unix/include/Makefile lib/lwres/unix/include/lwres/Makefile lib/samples/Makefile lib/samples/Makefile-postinstall"
#
@@ -23556,103 +22728,13 @@ do
"make/rules") CONFIG_FILES="$CONFIG_FILES make/rules" ;;
"make/includes") CONFIG_FILES="$CONFIG_FILES make/includes" ;;
"atf-config") CONFIG_COMMANDS="$CONFIG_COMMANDS atf-config" ;;
- "contrib/dlz/bin/dlzbdb/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dlz/bin/dlzbdb/Makefile" ;;
"$DLZ_DRIVER_RULES") CONFIG_FILES="$CONFIG_FILES $DLZ_DRIVER_RULES" ;;
"chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod" ;;
"make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
"make/mkdep") CONFIG_FILES="$CONFIG_FILES make/mkdep" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
- "bin/check/Makefile") CONFIG_FILES="$CONFIG_FILES bin/check/Makefile" ;;
- "bin/confgen/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/Makefile" ;;
- "bin/confgen/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/confgen/unix/Makefile" ;;
- "bin/delv/Makefile") CONFIG_FILES="$CONFIG_FILES bin/delv/Makefile" ;;
"bin/dig/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dig/Makefile" ;;
- "bin/dnssec/Makefile") CONFIG_FILES="$CONFIG_FILES bin/dnssec/Makefile" ;;
- "bin/named/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/Makefile" ;;
- "bin/named/unix/Makefile") CONFIG_FILES="$CONFIG_FILES bin/named/unix/Makefile" ;;
- "bin/nsupdate/Makefile") CONFIG_FILES="$CONFIG_FILES bin/nsupdate/Makefile" ;;
- "bin/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pkcs11/Makefile" ;;
- "bin/python/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/Makefile" ;;
- "bin/python/isc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/Makefile" ;;
- "bin/python/isc/utils.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/utils.py" ;;
- "bin/python/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/Makefile" ;;
- "bin/python/dnssec-checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-checkds.py" ;;
- "bin/python/dnssec-coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/dnssec-coverage.py" ;;
- "bin/python/isc/__init__.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/__init__.py" ;;
- "bin/python/isc/checkds.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/checkds.py" ;;
- "bin/python/isc/coverage.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/coverage.py" ;;
- "bin/python/isc/dnskey.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/dnskey.py" ;;
- "bin/python/isc/eventlist.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/eventlist.py" ;;
- "bin/python/isc/keydict.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keydict.py" ;;
- "bin/python/isc/keyevent.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyevent.py" ;;
- "bin/python/isc/keyzone.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/keyzone.py" ;;
- "bin/python/isc/tests/dnskey_test.py") CONFIG_FILES="$CONFIG_FILES bin/python/isc/tests/dnskey_test.py" ;;
- "bin/rndc/Makefile") CONFIG_FILES="$CONFIG_FILES bin/rndc/Makefile" ;;
- "bin/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/Makefile" ;;
- "bin/tests/atomic/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/atomic/Makefile" ;;
- "bin/tests/db/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/db/Makefile" ;;
- "bin/tests/dst/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Makefile" ;;
- "bin/tests/dst/Kdh.+002+18602.key") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Kdh.+002+18602.key" ;;
- "bin/tests/dst/Kdh.+002+18602.private") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Kdh.+002+18602.private" ;;
- "bin/tests/dst/Kdh.+002+48957.key") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Kdh.+002+48957.key" ;;
- "bin/tests/dst/Kdh.+002+48957.private") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Kdh.+002+48957.private" ;;
- "bin/tests/dst/Ktest.+001+00002.key") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Ktest.+001+00002.key" ;;
- "bin/tests/dst/Ktest.+001+54622.key") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Ktest.+001+54622.key" ;;
- "bin/tests/dst/Ktest.+001+54622.private") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Ktest.+001+54622.private" ;;
- "bin/tests/dst/Ktest.+003+23616.key") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Ktest.+003+23616.key" ;;
- "bin/tests/dst/Ktest.+003+23616.private") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Ktest.+003+23616.private" ;;
- "bin/tests/dst/Ktest.+003+49667.key") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/Ktest.+003+49667.key" ;;
- "bin/tests/dst/dst_2_data") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/dst_2_data" ;;
- "bin/tests/dst/t2_data_1") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/t2_data_1" ;;
- "bin/tests/dst/t2_data_2") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/t2_data_2" ;;
- "bin/tests/dst/t2_dsasig") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/t2_dsasig" ;;
- "bin/tests/dst/t2_rsasig") CONFIG_FILES="$CONFIG_FILES bin/tests/dst/t2_rsasig" ;;
- "bin/tests/hashes/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/hashes/Makefile" ;;
- "bin/tests/headerdep_test.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/headerdep_test.sh" ;;
- "bin/tests/master/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/master/Makefile" ;;
- "bin/tests/mem/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/mem/Makefile" ;;
- "bin/tests/names/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/names/Makefile" ;;
- "bin/tests/net/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/net/Makefile" ;;
- "bin/tests/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/Makefile" ;;
- "bin/tests/pkcs11/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/pkcs11/benchmarks/Makefile" ;;
- "bin/tests/rbt/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/rbt/Makefile" ;;
- "bin/tests/resolver/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/resolver/Makefile" ;;
- "bin/tests/sockaddr/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/sockaddr/Makefile" ;;
- "bin/tests/system/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/Makefile" ;;
- "bin/tests/system/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/conf.sh" ;;
- "bin/tests/system/dlz/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlz/prereq.sh" ;;
- "bin/tests/system/dlzexternal/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/Makefile" ;;
- "bin/tests/system/dlzexternal/ns1/named.conf") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzexternal/ns1/named.conf" ;;
- "bin/tests/system/dlzredir/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/dlzredir/prereq.sh" ;;
- "bin/tests/system/inline/checkdsa.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/inline/checkdsa.sh" ;;
- "bin/tests/system/lwresd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/lwresd/Makefile" ;;
- "bin/tests/system/rsabigexponent/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/rsabigexponent/Makefile" ;;
- "bin/tests/system/sit/prereq.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/system/sit/prereq.sh" ;;
- "bin/tests/system/tkey/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/system/tkey/Makefile" ;;
- "bin/tests/tasks/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/tasks/Makefile" ;;
- "bin/tests/timers/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/timers/Makefile" ;;
- "bin/tests/virtual-time/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/Makefile" ;;
- "bin/tests/virtual-time/conf.sh") CONFIG_FILES="$CONFIG_FILES bin/tests/virtual-time/conf.sh" ;;
- "bin/tools/Makefile") CONFIG_FILES="$CONFIG_FILES bin/tools/Makefile" ;;
- "contrib/scripts/check-secure-delegation.pl") CONFIG_FILES="$CONFIG_FILES contrib/scripts/check-secure-delegation.pl" ;;
- "contrib/scripts/zone-edit.sh") CONFIG_FILES="$CONFIG_FILES contrib/scripts/zone-edit.sh" ;;
- "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
- "doc/arm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/arm/Makefile" ;;
- "doc/arm/noteversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/noteversion.xml" ;;
- "doc/arm/pkgversion.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/pkgversion.xml" ;;
- "doc/arm/releaseinfo.xml") CONFIG_FILES="$CONFIG_FILES doc/arm/releaseinfo.xml" ;;
- "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
- "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
- "doc/doxygen/doxygen-input-filter") CONFIG_FILES="$CONFIG_FILES doc/doxygen/doxygen-input-filter" ;;
- "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
- "doc/tex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tex/Makefile" ;;
- "doc/tex/armstyle.sty") CONFIG_FILES="$CONFIG_FILES doc/tex/armstyle.sty" ;;
- "doc/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/xsl/Makefile" ;;
- "doc/xsl/isc-docbook-chunk.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-chunk.xsl" ;;
- "doc/xsl/isc-docbook-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-docbook-html.xsl" ;;
- "doc/xsl/isc-manpage.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-manpage.xsl" ;;
- "doc/xsl/isc-notes-html.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/isc-notes-html.xsl" ;;
"isc-config.sh") CONFIG_FILES="$CONFIG_FILES isc-config.sh" ;;
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
"lib/bind9/Makefile") CONFIG_FILES="$CONFIG_FILES lib/bind9/Makefile" ;;
@@ -23662,13 +22744,11 @@ do
"lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;;
"lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;;
"lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;;
- "lib/dns/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/tests/Makefile" ;;
"lib/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/Makefile" ;;
"lib/irs/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/Makefile" ;;
"lib/irs/include/irs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/Makefile" ;;
"lib/irs/include/irs/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/netdb.h" ;;
"lib/irs/include/irs/platform.h") CONFIG_FILES="$CONFIG_FILES lib/irs/include/irs/platform.h" ;;
- "lib/irs/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/irs/tests/Makefile" ;;
"lib/isc/$arch/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/Makefile" ;;
"lib/isc/$arch/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/Makefile" ;;
"lib/isc/$arch/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/$arch/include/isc/Makefile" ;;
@@ -23681,7 +22761,6 @@ do
"lib/isc/include/isc/platform.h") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/platform.h" ;;
"lib/isc/include/pk11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pk11/Makefile" ;;
"lib/isc/include/pkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/pkcs11/Makefile" ;;
- "lib/isc/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/tests/Makefile" ;;
"lib/isc/nls/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nls/Makefile" ;;
"lib/isc/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/Makefile" ;;
"lib/isc/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/unix/include/Makefile" ;;
@@ -23699,17 +22778,11 @@ do
"lib/lwres/include/lwres/netdb.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/netdb.h" ;;
"lib/lwres/include/lwres/platform.h") CONFIG_FILES="$CONFIG_FILES lib/lwres/include/lwres/platform.h" ;;
"lib/lwres/man/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/man/Makefile" ;;
- "lib/lwres/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/tests/Makefile" ;;
"lib/lwres/unix/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/Makefile" ;;
"lib/lwres/unix/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/Makefile" ;;
"lib/lwres/unix/include/lwres/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lwres/unix/include/lwres/Makefile" ;;
- "lib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/Makefile" ;;
- "lib/tests/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/Makefile" ;;
- "lib/tests/include/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tests/include/tests/Makefile" ;;
"lib/samples/Makefile") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile" ;;
"lib/samples/Makefile-postinstall") CONFIG_FILES="$CONFIG_FILES lib/samples/Makefile-postinstall" ;;
- "unit/Makefile") CONFIG_FILES="$CONFIG_FILES unit/Makefile" ;;
- "unit/unittest.sh") CONFIG_FILES="$CONFIG_FILES unit/unittest.sh" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
esac
diff --git a/usr.sbin/bind/configure.in b/usr.sbin/bind/configure.in
index d79ff8034eb..900b2dfe387 100644
--- a/usr.sbin/bind/configure.in
+++ b/usr.sbin/bind/configure.in
@@ -4887,13 +4887,11 @@ AC_CONFIG_FILES([
lib/dns/include/Makefile
lib/dns/include/dns/Makefile
lib/dns/include/dst/Makefile
- lib/dns/tests/Makefile
lib/irs/Makefile
lib/irs/include/Makefile
lib/irs/include/irs/Makefile
lib/irs/include/irs/netdb.h
lib/irs/include/irs/platform.h
- lib/irs/tests/Makefile
lib/isc/$arch/Makefile
lib/isc/$arch/include/Makefile
lib/isc/$arch/include/isc/Makefile
@@ -4906,7 +4904,6 @@ AC_CONFIG_FILES([
lib/isc/include/isc/platform.h
lib/isc/include/pk11/Makefile
lib/isc/include/pkcs11/Makefile
- lib/isc/tests/Makefile
lib/isc/nls/Makefile
lib/isc/unix/Makefile
lib/isc/unix/include/Makefile
@@ -4924,13 +4921,9 @@ AC_CONFIG_FILES([
lib/lwres/include/lwres/netdb.h
lib/lwres/include/lwres/platform.h
lib/lwres/man/Makefile
- lib/lwres/tests/Makefile
lib/lwres/unix/Makefile
lib/lwres/unix/include/Makefile
lib/lwres/unix/include/lwres/Makefile
- lib/tests/Makefile
- lib/tests/include/Makefile
- lib/tests/include/tests/Makefile
lib/samples/Makefile
lib/samples/Makefile-postinstall
])
diff --git a/usr.sbin/bind/lib/bind9/win32/DLLMain.c b/usr.sbin/bind/lib/bind9/win32/DLLMain.c
deleted file mode 100644
index f0c27856f3f..00000000000
--- a/usr.sbin/bind/lib/bind9/win32/DLLMain.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
- * Copyright (C) 2001 Internet Software Consortium.
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: DLLMain.c,v 1.1 2019/12/16 16:31:33 deraadt Exp $ */
-
-#include <windows.h>
-#include <signal.h>
-
-/*
- * Called when we enter the DLL
- */
-__declspec(dllexport) BOOL WINAPI DllMain(HINSTANCE hinstDLL,
- DWORD fdwReason, LPVOID lpvReserved)
-{
- switch (fdwReason) {
- /*
- * The DLL is loading due to process
- * initialization or a call to LoadLibrary.
- */
- case DLL_PROCESS_ATTACH:
- break;
-
- /* The attached process creates a new thread. */
- case DLL_THREAD_ATTACH:
- break;
-
- /* The thread of the attached process terminates. */
- case DLL_THREAD_DETACH:
- break;
-
- /*
- * The DLL is unloading from a process due to
- * process termination or a call to FreeLibrary.
- */
- case DLL_PROCESS_DETACH:
- break;
-
- default:
- break;
- }
- return (TRUE);
-}
-
diff --git a/usr.sbin/bind/lib/bind9/win32/libbind9.def b/usr.sbin/bind/lib/bind9/win32/libbind9.def
deleted file mode 100644
index b9a14ad3e87..00000000000
--- a/usr.sbin/bind/lib/bind9/win32/libbind9.def
+++ /dev/null
@@ -1,8 +0,0 @@
-LIBRARY libbind9
-
-; Exported Functions
-EXPORTS
-bind9_check_namedconf
-bind9_check_key
-bind9_getaddresses
-
diff --git a/usr.sbin/bind/lib/bind9/win32/libbind9.dsp.in b/usr.sbin/bind/lib/bind9/win32/libbind9.dsp.in
deleted file mode 100644
index 48de05a7dca..00000000000
--- a/usr.sbin/bind/lib/bind9/win32/libbind9.dsp.in
+++ /dev/null
@@ -1,137 +0,0 @@
-# Microsoft Developer Studio Project File - Name="libbind9" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "@PLATFORM@ (x86) Dynamic-Link Library" 0x0102
-
-CFG=libbind9 - @PLATFORM@ Release
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "libbind9.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "libbind9.mak" CFG="libbind9 - @PLATFORM@ Release"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "libbind9 - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE "libbind9 - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "libbind9 - @PLATFORM@ Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 @COPTX@ @COPTI@ /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "libbind9_EXPORTS" @COPTY@ /FD /c
-# ADD CPP /nologo /MD /W3 @COPTX@ @COPTI@ /O2 @LIBXML2_INC@ @GEOIP_INC@ /I "../../../lib/dns/win32/include" /I "./" /I "../../../" /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isccfg/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "NDEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "USE_MD5" @CRYPTO@ /D "LIBBIND9_EXPORTS" @COPTY@ /FD /c
-# SUBTRACT CPP /X
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll @MACHINE@
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib /nologo /dll @MACHINE@ /out:"../../../Build/Release/libbind9.dll"
-
-!ELSEIF "$(CFG)" == "libbind9 - @PLATFORM@ Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "libbind9_EXPORTS" @COPTY@ /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od @LIBXML2_INC@ @GEOIP_INC@ /I "../../../lib/isccfg/include" /I "./" /I "../../../" /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "USE_MD5" @CRYPTO@ /D "LIBBIND9_EXPORTS" /FR @COPTY@ /FD /GZ /c
-# SUBTRACT CPP /X
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug @MACHINE@ /pdbtype:sept
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/debug/libisc.lib ../../dns/win32/debug/libdns.lib ../../isccfg/win32/debug/libisccfg.lib /nologo /dll /debug @MACHINE@ /out:"../../../Build/Debug/libbind9.dll" /pdbtype:sept
-
-!ENDIF
-
-# Begin Target
-
-# Name "libbind9 - @PLATFORM@ Release"
-# Name "libbind9 - @PLATFORM@ Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=..\check.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\DLLMain.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\getaddresses.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\version.c
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=..\include\bind9\check.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\bind9\getaddresses.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\bind9\version.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# Begin Source File
-
-SOURCE=.\libbind9.def
-# End Source File
-# End Target
-# End Project
diff --git a/usr.sbin/bind/lib/bind9/win32/libbind9.dsw b/usr.sbin/bind/lib/bind9/win32/libbind9.dsw
deleted file mode 100644
index 08109824521..00000000000
--- a/usr.sbin/bind/lib/bind9/win32/libbind9.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "libbind9"=.\libbind9.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/usr.sbin/bind/lib/bind9/win32/libbind9.mak.in b/usr.sbin/bind/lib/bind9/win32/libbind9.mak.in
deleted file mode 100644
index 64be3e3257b..00000000000
--- a/usr.sbin/bind/lib/bind9/win32/libbind9.mak.in
+++ /dev/null
@@ -1,452 +0,0 @@
-# Microsoft Developer Studio Generated NMAKE File, Based on libbind9.dsp
-!IF "$(CFG)" == ""
-CFG=libbind9 - @PLATFORM@ Release
-!MESSAGE No configuration specified. Defaulting to libbind9 - @PLATFORM@ Release.
-!ENDIF
-
-!IF "$(CFG)" != "libbind9 - @PLATFORM@ Release" && "$(CFG)" != "libbind9 - @PLATFORM@ Debug"
-!MESSAGE Invalid configuration "$(CFG)" specified.
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "libbind9.mak" CFG="libbind9 - @PLATFORM@ Release"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "libbind9 - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE "libbind9 - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE
-!ERROR An invalid configuration is specified.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "libbind9 - @PLATFORM@ Release"
-_VC_MANIFEST_INC=0
-_VC_MANIFEST_BASENAME=__VC80
-!ELSE
-_VC_MANIFEST_INC=1
-_VC_MANIFEST_BASENAME=__VC80.Debug
-!ENDIF
-
-####################################################
-# Specifying name of temporary resource file used only in incremental builds:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-_VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
-!else
-_VC_MANIFEST_AUTO_RES=
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
-
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
-
-!endif
-####################################################
-# _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-_VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
- $(_VC_MANIFEST_BASENAME).auto.rc \
- $(_VC_MANIFEST_BASENAME).auto.manifest
-
-!else
-
-_VC_MANIFEST_CLEAN=
-
-!endif
-
-!IF "$(CFG)" == "libbind9 - @PLATFORM@ Release"
-
-OUTDIR=.\Release
-INTDIR=.\Release
-
-!IF "$(RECURSE)" == "0"
-
-ALL : "..\..\..\Build\Release\libbind9.dll"
-
-!ELSE
-
-ALL : "libisccfg - @PLATFORM@ Release" "libisc - @PLATFORM@ Release" "libdns - @PLATFORM@ Release" "..\..\..\Build\Release\libbind9.dll"
-
-!ENDIF
-
-!IF "$(RECURSE)" == "1"
-CLEAN :"libdns - @PLATFORM@ ReleaseCLEAN" "libisc - @PLATFORM@ ReleaseCLEAN" "libisccfg - @PLATFORM@ ReleaseCLEAN"
-!ELSE
-CLEAN :
-!ENDIF
- -@erase "$(INTDIR)\check.obj"
- -@erase "$(INTDIR)\DLLMain.obj"
- -@erase "$(INTDIR)\getaddresses.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\version.obj"
- -@erase "$(OUTDIR)\libbind9.exp"
- -@erase "$(OUTDIR)\libbind9.lib"
- -@erase "..\..\..\Build\Release\libbind9.dll"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP_PROJ=/nologo /MD /W3 @COPTX@ @COPTI@ /O2 @LIBXML2_INC@ @GEOIP_INC@ /I "../../../lib/dns/win32/include" /I "./" /I "../../../" /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isccfg/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "NDEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "USE_MD5" @CRYPTO@ /D "LIBBIND9_EXPORTS" /Fp"$(INTDIR)\libbind9.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
-MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\libbind9.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib /nologo /dll /incremental:no /pdb:"$(OUTDIR)\libbind9.pdb" @MACHINE@ /def:".\libbind9.def" /out:"../../../Build/Release/libbind9.dll" /implib:"$(OUTDIR)\libbind9.lib"
-DEF_FILE= \
- ".\libbind9.def"
-LINK32_OBJS= \
- "$(INTDIR)\check.obj" \
- "$(INTDIR)\DLLMain.obj" \
- "$(INTDIR)\getaddresses.obj" \
- "$(INTDIR)\version.obj" \
- "..\..\dns\win32\Release\libdns.lib" \
- "..\..\isc\win32\Release\libisc.lib" \
- "..\..\isccfg\win32\Release\libisccfg.lib"
-
-"..\..\..\Build\Release\libbind9.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_DLL)
-
-!ELSEIF "$(CFG)" == "libbind9 - @PLATFORM@ Debug"
-
-OUTDIR=.\Debug
-INTDIR=.\Debug
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-!IF "$(RECURSE)" == "0"
-
-ALL : "..\..\..\Build\Debug\libbind9.dll" "$(OUTDIR)\libbind9.bsc"
-
-!ELSE
-
-ALL : "libisccfg - @PLATFORM@ Debug" "libisc - @PLATFORM@ Debug" "libdns - @PLATFORM@ Debug" "..\..\..\Build\Debug\libbind9.dll" "$(OUTDIR)\libbind9.bsc"
-
-!ENDIF
-
-!IF "$(RECURSE)" == "1"
-CLEAN :"libdns - @PLATFORM@ DebugCLEAN" "libisc - @PLATFORM@ DebugCLEAN" "libisccfg - @PLATFORM@ DebugCLEAN"
-!ELSE
-CLEAN :
-!ENDIF
- -@erase "$(INTDIR)\check.obj"
- -@erase "$(INTDIR)\check.sbr"
- -@erase "$(INTDIR)\DLLMain.obj"
- -@erase "$(INTDIR)\DLLMain.sbr"
- -@erase "$(INTDIR)\getaddresses.obj"
- -@erase "$(INTDIR)\getaddresses.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(INTDIR)\version.obj"
- -@erase "$(INTDIR)\version.sbr"
- -@erase "$(OUTDIR)\libbind9.bsc"
- -@erase "$(OUTDIR)\libbind9.exp"
- -@erase "$(OUTDIR)\libbind9.lib"
- -@erase "$(OUTDIR)\libbind9.pdb"
- -@erase "..\..\..\Build\Debug\libbind9.dll"
- -@erase "..\..\..\Build\Debug\libbind9.ilk"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP_PROJ=/nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od @LIBXML2_INC@ @GEOIP_INC@ /I "../../../lib/isccfg/include" /I "./" /I "../../../" /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "USE_MD5" @CRYPTO@ /D "LIBBIND9_EXPORTS" /FR"$(INTDIR)\\" /Fp"$(INTDIR)\libbind9.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\libbind9.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\check.sbr" \
- "$(INTDIR)\DLLMain.sbr" \
- "$(INTDIR)\getaddresses.sbr" \
- "$(INTDIR)\version.sbr"
-
-"$(OUTDIR)\libbind9.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/debug/libisc.lib ../../dns/win32/debug/libdns.lib ../../isccfg/win32/debug/libisccfg.lib /nologo /dll /incremental:yes /pdb:"$(OUTDIR)\libbind9.pdb" /debug @MACHINE@ /def:".\libbind9.def" /out:"../../../Build/Debug/libbind9.dll" /implib:"$(OUTDIR)\libbind9.lib" /pdbtype:sept
-DEF_FILE= \
- ".\libbind9.def"
-LINK32_OBJS= \
- "$(INTDIR)\check.obj" \
- "$(INTDIR)\DLLMain.obj" \
- "$(INTDIR)\getaddresses.obj" \
- "$(INTDIR)\version.obj" \
- "..\..\dns\win32\Debug\libdns.lib" \
- "..\..\isc\win32\Debug\libisc.lib" \
- "..\..\isccfg\win32\Debug\libisccfg.lib"
-
-"..\..\..\Build\Debug\libbind9.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_DLL)
-
-!ENDIF
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("libbind9.dep")
-!INCLUDE "libbind9.dep"
-!ELSE
-!MESSAGE Warning: cannot find "libbind9.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "libbind9 - @PLATFORM@ Release" || "$(CFG)" == "libbind9 - @PLATFORM@ Debug"
-SOURCE=..\check.c
-
-!IF "$(CFG)" == "libbind9 - @PLATFORM@ Release"
-
-
-"$(INTDIR)\check.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libbind9 - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\check.obj" "$(INTDIR)\check.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=.\DLLMain.c
-
-!IF "$(CFG)" == "libbind9 - @PLATFORM@ Release"
-
-
-"$(INTDIR)\DLLMain.obj" : $(SOURCE) "$(INTDIR)"
-
-
-!ELSEIF "$(CFG)" == "libbind9 - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\DLLMain.obj" "$(INTDIR)\DLLMain.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-!ENDIF
-
-SOURCE=..\getaddresses.c
-
-!IF "$(CFG)" == "libbind9 - @PLATFORM@ Release"
-
-
-"$(INTDIR)\getaddresses.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libbind9 - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\getaddresses.obj" "$(INTDIR)\getaddresses.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=.\version.c
-
-!IF "$(CFG)" == "libbind9 - @PLATFORM@ Release"
-
-
-"$(INTDIR)\version.obj" : $(SOURCE) "$(INTDIR)"
-
-
-!ELSEIF "$(CFG)" == "libbind9 - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\version.obj" "$(INTDIR)\version.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-!ENDIF
-
-!IF "$(CFG)" == "libbind9 - @PLATFORM@ Release"
-
-"libdns - @PLATFORM@ Release" :
- cd "..\..\dns\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Release"
- cd "..\..\bind9\win32"
-
-"libdns - @PLATFORM@ ReleaseCLEAN" :
- cd "..\..\dns\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Release" RECURSE=1 CLEAN
- cd "..\..\bind9\win32"
-
-!ELSEIF "$(CFG)" == "libbind9 - @PLATFORM@ Debug"
-
-"libdns - @PLATFORM@ Debug" :
- cd "..\..\dns\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Debug"
- cd "..\..\bind9\win32"
-
-"libdns - @PLATFORM@ DebugCLEAN" :
- cd "..\..\dns\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Debug" RECURSE=1 CLEAN
- cd "..\..\bind9\win32"
-
-!ENDIF
-
-!IF "$(CFG)" == "libbind9 - @PLATFORM@ Release"
-
-"libisc - @PLATFORM@ Release" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release"
- cd "..\..\bind9\win32"
-
-"libisc - @PLATFORM@ ReleaseCLEAN" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release" RECURSE=1 CLEAN
- cd "..\..\bind9\win32"
-
-!ELSEIF "$(CFG)" == "libbind9 - @PLATFORM@ Debug"
-
-"libisc - @PLATFORM@ Debug" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug"
- cd "..\..\bind9\win32"
-
-"libisc - @PLATFORM@ DebugCLEAN" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug" RECURSE=1 CLEAN
- cd "..\..\bind9\win32"
-
-!ENDIF
-
-!IF "$(CFG)" == "libbind9 - @PLATFORM@ Release"
-
-"libisccfg - @PLATFORM@ Release" :
- cd "..\..\isccfg\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Release"
- cd "..\..\bind9\win32"
-
-"libisccfg - @PLATFORM@ ReleaseCLEAN" :
- cd "..\..\isccfg\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Release" RECURSE=1 CLEAN
- cd "..\..\bind9\win32"
-
-!ELSEIF "$(CFG)" == "libbind9 - @PLATFORM@ Debug"
-
-"libisccfg - @PLATFORM@ Debug" :
- cd "..\..\isccfg\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Debug"
- cd "..\..\bind9\win32"
-
-"libisccfg - @PLATFORM@ DebugCLEAN" :
- cd "..\..\isccfg\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Debug" RECURSE=1 CLEAN
- cd "..\..\bind9\win32"
-
-!ENDIF
-
-
-!ENDIF
-
-####################################################
-# Commands to generate initial empty manifest file and the RC file
-# that references it, and for generating the .res file:
-
-$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
-
-$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
- type <<$@
-#include <winuser.h>
-1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
-<< KEEP
-
-$(_VC_MANIFEST_BASENAME).auto.manifest :
- type <<$@
-<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
-<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
-</assembly>
-<< KEEP
diff --git a/usr.sbin/bind/lib/bind9/win32/libbind9.vcxproj.filters.in b/usr.sbin/bind/lib/bind9/win32/libbind9.vcxproj.filters.in
deleted file mode 100644
index 3db59f17b8a..00000000000
--- a/usr.sbin/bind/lib/bind9/win32/libbind9.vcxproj.filters.in
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
- <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
- <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
- </Filter>
- <Filter Include="Resource Files">
- <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
- <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <None Include="libbind9.def" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="DLLMain.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="version.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\check.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\getaddresses.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\include\bind9\check.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\bind9\getaddresses.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\bind9\version.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- </ItemGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/bind9/win32/libbind9.vcxproj.in b/usr.sbin/bind/lib/bind9/win32/libbind9.vcxproj.in
deleted file mode 100644
index a6bba84f408..00000000000
--- a/usr.sbin/bind/lib/bind9/win32/libbind9.vcxproj.in
+++ /dev/null
@@ -1,123 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|@PLATFORM@">
- <Configuration>Debug</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|@PLATFORM@">
- <Configuration>Release</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{E741C10B-B075-4206-9596-46765B665E03}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>libbind9</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;USE_MD5;@CRYPTO@_DEBUG;_WINDOWS;_USRDLL;LIBBIND9_EXPORTS;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>./;../../../;include;../include;../../isc/win32;../../isc/win32/include;../../isc/include;../../isccfg/include;../../dns/include;@LIBXML2_INC@@GEOIP_INC@%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <BrowseInformation>true</BrowseInformation>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <AdditionalLibraryDirectories>../../isc/win32/$(Configuration);../../dns/win32/$(Configuration);../../isccfg/win32/$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <ModuleDefinitionFile>.\libbind9.def</ModuleDefinitionFile>
- <ImportLibrary>.\$(Configuration)\$(ProjectName).lib</ImportLibrary>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;USE_MD5;@CRYPTO@NDEBUG;_WINDOWS;_USRDLL;LIBBIND9_EXPORTS;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>./;../../../;include;../include;../../isc/win32;../../isc/win32/include;../../isc/include;../../isccfg/include;../../dns/include;@LIBXML2_INC@@GEOIP_INC@%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
- <WholeProgramOptimization>false</WholeProgramOptimization>
- <StringPooling>true</StringPooling>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <AdditionalLibraryDirectories>../../isc/win32/$(Configuration);../../dns/win32/$(Configuration);../../isccfg/win32/$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <ModuleDefinitionFile>.\libbind9.def</ModuleDefinitionFile>
- <ImportLibrary>.\$(Configuration)\$(ProjectName).lib</ImportLibrary>
- <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <None Include="libbind9.def" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\check.c" />
- <ClCompile Include="..\getaddresses.c" />
- <ClCompile Include="DLLMain.c" />
- <ClCompile Include="version.c" />
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\include\bind9\check.h" />
- <ClInclude Include="..\include\bind9\getaddresses.h" />
- <ClInclude Include="..\include\bind9\version.h" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/usr.sbin/bind/lib/bind9/win32/libbind9.vcxproj.user b/usr.sbin/bind/lib/bind9/win32/libbind9.vcxproj.user
deleted file mode 100644
index 695b5c78b91..00000000000
--- a/usr.sbin/bind/lib/bind9/win32/libbind9.vcxproj.user
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/bind9/win32/version.c b/usr.sbin/bind/lib/bind9/win32/version.c
deleted file mode 100644
index 038e4c47cc6..00000000000
--- a/usr.sbin/bind/lib/bind9/win32/version.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
- * Copyright (C) 1998-2001 Internet Software Consortium.
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: version.c,v 1.1 2019/12/16 16:31:33 deraadt Exp $ */
-
-#include <versions.h>
-
-#include <bind9/version.h>
-
-LIBBIND9_EXTERNAL_DATA const char bind9_version[] = VERSION;
-
-LIBBIND9_EXTERNAL_DATA const unsigned int bind9_libinterface = LIBINTERFACE;
-LIBBIND9_EXTERNAL_DATA const unsigned int bind9_librevision = LIBREVISION;
-LIBBIND9_EXTERNAL_DATA const unsigned int bind9_libage = LIBAGE;
diff --git a/usr.sbin/bind/lib/dns/tests/Atffile b/usr.sbin/bind/lib/dns/tests/Atffile
deleted file mode 100644
index c3e044f41a8..00000000000
--- a/usr.sbin/bind/lib/dns/tests/Atffile
+++ /dev/null
@@ -1,5 +0,0 @@
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = bind9
-
-tp-glob: *_test
diff --git a/usr.sbin/bind/lib/dns/tests/Kdh.+002+18602.key b/usr.sbin/bind/lib/dns/tests/Kdh.+002+18602.key
deleted file mode 100644
index 09b4cf56aa0..00000000000
--- a/usr.sbin/bind/lib/dns/tests/Kdh.+002+18602.key
+++ /dev/null
@@ -1 +0,0 @@
-dh. IN KEY 0 2 2 AAEBAAAAYIHI/wjtOagNga9GILSoS02IVelgLilPE/TfhtvShsiDAXqb IfxQcj2JkuOnNLs5ttb2WZXWl5/jsSjIxHMwMF2XY4gwt/lwHBf/vgYH r7aIxnKXov1jk9rymTLHGKIOtg==
diff --git a/usr.sbin/bind/lib/dns/tests/Krsa.+005+29235.key b/usr.sbin/bind/lib/dns/tests/Krsa.+005+29235.key
deleted file mode 100644
index e2d81e79dbd..00000000000
--- a/usr.sbin/bind/lib/dns/tests/Krsa.+005+29235.key
+++ /dev/null
@@ -1,5 +0,0 @@
-; This is a zone-signing key, keyid 29235, for rsa.
-; Created: 20160819191802 (Fri Aug 19 21:18:02 2016)
-; Publish: 20160819191802 (Fri Aug 19 21:18:02 2016)
-; Activate: 20160819191802 (Fri Aug 19 21:18:02 2016)
-rsa. IN DNSKEY 256 3 5 AwEAAdLT1R3qiqCqll3Xzh2qFMvehQ9FODsPftw5U4UjB3QwnJ/3+dph 9kZBBeaJagUBVYzoArk6XNydpp3HhSCFDcIiepL6r8XAifW3SqI1KCne OD38kSCl/Qm9P0+3CFWokGVubsSQ+3dpQZxqx5bzOXthbuzAr6X+gDUE LAyHtCQNmJ+4ktdCoj3DNYW0z/xLvrcB2Lns7H+/qWnGPL4f3hr7Vbak Oeay+4J4KGdY2LFxJUVts6QrgAA8gz4mV9YIJFP+C4B3b/Z7qgqZRxmT 0pic+fJC5+sq0l8KwavPn0n+HqVuJNvppVKMdTbsmmuk69RFGMjbFkP7 tnCiqC9Zi6s=
diff --git a/usr.sbin/bind/lib/dns/tests/Makefile.in b/usr.sbin/bind/lib/dns/tests/Makefile.in
deleted file mode 100644
index 61bb3cdc64a..00000000000
--- a/usr.sbin/bind/lib/dns/tests/Makefile.in
+++ /dev/null
@@ -1,238 +0,0 @@
-# Copyright (C) 2011-2017 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-# $Id: Makefile.in,v 1.1 2019/12/16 16:31:34 deraadt Exp $
-
-srcdir = @srcdir@
-VPATH = @srcdir@
-top_srcdir = @top_srcdir@
-
-# Attempt to disable parallel processing.
-.NOTPARALLEL:
-.NO_PARALLEL:
-
-VERSION=@BIND9_VERSION@
-
-@BIND9_MAKE_INCLUDES@
-
-CINCLUDES = -I. -Iinclude ${DNS_INCLUDES} ${ISC_INCLUDES} \
- @DST_OPENSSL_INC@
-CDEFINES = @CRYPTO@ -DTESTS="\"${top_builddir}/lib/dns/tests/\""
-
-ISCLIBS = ../../isc/libisc.@A@
-ISCDEPLIBS = ../../isc/libisc.@A@
-DNSLIBS = ../libdns.@A@ @DNS_CRYPTO_LIBS@
-DNSDEPLIBS = ../libdns.@A@
-
-LIBS = @LIBS@ @ATFLIBS@
-
-OBJS = dnstest.@O@
-SRCS = acl_test.c \
- db_test.c \
- dbdiff_test.c \
- dbiterator_test.c \
- dh_test.c \
- dispatch_test.c \
- dnstest.c \
- geoip_test.c \
- gost_test.c \
- master_test.c \
- name_test.c \
- nsec3_test.c \
- peer_test.c \
- private_test.c \
- rbt_test.c \
- rbt_serialize_test.c \
- rdata_test.c \
- rdataset_test.c \
- rdatasetstats_test.c \
- rsa_test.c \
- time_test.c \
- tsig_test.c \
- update_test.c \
- zonemgr_test.c \
- zt_test.c
-
-SUBDIRS =
-TARGETS = acl_test@EXEEXT@ \
- db_test@EXEEXT@ \
- dbdiff_test@EXEEXT@ \
- dbiterator_test@EXEEXT@ \
- dbversion_test@EXEEXT@ \
- dh_test@EXEEXT@ \
- dispatch_test@EXEEXT@ \
- geoip_test@EXEEXT@ \
- gost_test@EXEEXT@ \
- master_test@EXEEXT@ \
- name_test@EXEEXT@ \
- nsec3_test@EXEEXT@ \
- peer_test@EXEEXT@ \
- private_test@EXEEXT@ \
- rbt_test@EXEEXT@ \
- rbt_serialize_test@EXEEXT@ \
- rdata_test@EXEEXT@ \
- rdataset_test@EXEEXT@ \
- rdatasetstats_test@EXEEXT@ \
- rsa_test@EXEEXT@ \
- time_test@EXEEXT@ \
- tsig_test@EXEEXT@ \
- update_test@EXEEXT@ \
- zonemgr_test@EXEEXT@ \
- zt_test@EXEEXT@
-
-@BIND9_MAKE_RULES@
-
-acl_test@EXEEXT@: acl_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- acl_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-master_test@EXEEXT@: master_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- test -d testdata || mkdir testdata
- test -d testdata/master || mkdir testdata/master
- ${PERL} ${srcdir}/mkraw.pl < ${srcdir}/testdata/master/master12.data.in \
- > testdata/master/master12.data
- ${PERL} ${srcdir}/mkraw.pl < ${srcdir}/testdata/master/master13.data.in \
- > testdata/master/master13.data
- ${PERL} ${srcdir}/mkraw.pl < ${srcdir}/testdata/master/master14.data.in \
- > testdata/master/master14.data
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- master_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-time_test@EXEEXT@: time_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- time_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-peer_test@EXEEXT@: peer_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- peer_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-private_test@EXEEXT@: private_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- private_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-update_test@EXEEXT@: update_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- update_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-zonemgr_test@EXEEXT@: zonemgr_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- zonemgr_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-dbiterator_test@EXEEXT@: dbiterator_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- dbiterator_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-dbdiff_test@EXEEXT@: dbdiff_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- dbdiff_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-dbversion_test@EXEEXT@: dbversion_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- dbversion_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-zt_test@EXEEXT@: zt_test.@O@ dnstest.@O@ \
- ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- zt_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-name_test@EXEEXT@: name_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- name_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-nsec3_test@EXEEXT@: nsec3_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- nsec3_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-rdataset_test@EXEEXT@: rdataset_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- rdataset_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-dispatch_test@EXEEXT@: dispatch_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- dispatch_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-rdatasetstats_test@EXEEXT@: rdatasetstats_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- rdatasetstats_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-rbt_test@EXEEXT@: rbt_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- rbt_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-rbt_serialize_test@EXEEXT@: rbt_serialize_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- rbt_serialize_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-rdata_test@EXEEXT@: rdata_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- rdata_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-geoip_test@EXEEXT@: geoip_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- geoip_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-db_test@EXEEXT@: db_test.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- db_test.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-gost_test@EXEEXT@: gost_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- gost_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-dh_test@EXEEXT@: dh_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- dh_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-rsa_test@EXEEXT@: rsa_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- rsa_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-tsig_test@EXEEXT@: tsig_test.@O@ dnstest.@O@ ${ISCDEPLIBS} ${DNSDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- tsig_test.@O@ dnstest.@O@ ${DNSLIBS} \
- ${ISCLIBS} ${LIBS}
-
-unit::
- sh ${top_srcdir}/unit/unittest.sh
-
-clean distclean::
- rm -f ${TARGETS}
- rm -f atf.out
- rm -f testdata/master/master12.data testdata/master/master13.data \
- testdata/master/master14.data
- rm -f zone.bin
diff --git a/usr.sbin/bind/lib/dns/tests/acl_test.c b/usr.sbin/bind/lib/dns/tests/acl_test.c
deleted file mode 100644
index b1a2273675f..00000000000
--- a/usr.sbin/bind/lib/dns/tests/acl_test.c
+++ /dev/null
@@ -1,291 +0,0 @@
-/*
- * Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: acl_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <stdio.h>
-#include <unistd.h>
-
-#include <isc/print.h>
-
-#include <dns/acl.h>
-#include "dnstest.h"
-
-/*
- * Helper functions
- */
-
-#define BUFLEN 255
-#define BIGBUFLEN (70 * 1024)
-#define TEST_ORIGIN "test"
-
-ATF_TC(dns_acl_isinsecure);
-ATF_TC_HEAD(dns_acl_isinsecure, tc) {
- atf_tc_set_md_var(tc, "descr", "test that dns_acl_isinsecure works");
-}
-ATF_TC_BODY(dns_acl_isinsecure, tc) {
- isc_result_t result;
- dns_acl_t *any = NULL;
- dns_acl_t *none = NULL;
- dns_acl_t *notnone = NULL;
- dns_acl_t *notany = NULL;
-
- dns_acl_t *pos4pos6 = NULL;
- dns_acl_t *notpos4pos6 = NULL;
- dns_acl_t *neg4pos6 = NULL;
- dns_acl_t *notneg4pos6 = NULL;
- dns_acl_t *pos4neg6 = NULL;
- dns_acl_t *notpos4neg6 = NULL;
- dns_acl_t *neg4neg6 = NULL;
- dns_acl_t *notneg4neg6 = NULL;
-
- dns_acl_t *loop4 = NULL;
- dns_acl_t *notloop4 = NULL;
-
- dns_acl_t *loop6 = NULL;
- dns_acl_t *notloop6 = NULL;
-
- dns_acl_t *loop4pos6 = NULL;
- dns_acl_t *notloop4pos6 = NULL;
- dns_acl_t *loop4neg6 = NULL;
- dns_acl_t *notloop4neg6 = NULL;
-
- struct in_addr inaddr;
- isc_netaddr_t addr;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_any(mctx, &any);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_none(mctx, &none);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &notnone);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &notany);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_merge(notnone, none, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_merge(notany, any, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- ATF_CHECK(dns_acl_isinsecure(any)); /* any; */
- ATF_CHECK(!dns_acl_isinsecure(none)); /* none; */
- ATF_CHECK(!dns_acl_isinsecure(notany)); /* !any; */
- ATF_CHECK(!dns_acl_isinsecure(notnone)); /* !none; */
-
- dns_acl_detach(&any);
- dns_acl_detach(&none);
- dns_acl_detach(&notany);
- dns_acl_detach(&notnone);
-
- result = dns_acl_create(mctx, 1, &pos4pos6);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &notpos4pos6);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &neg4pos6);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &notneg4pos6);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &pos4neg6);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &notpos4neg6);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &neg4neg6);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &notneg4neg6);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- inaddr.s_addr = htonl(0x0a000000); /* 10.0.0.0 */
- isc_netaddr_fromin(&addr, &inaddr);
- result = dns_iptable_addprefix(pos4pos6->iptable, &addr, 8, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- addr.family = AF_INET6; /* 0a00:: */
- result = dns_iptable_addprefix(pos4pos6->iptable, &addr, 8, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_merge(notpos4pos6, pos4pos6, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- inaddr.s_addr = htonl(0x0a000000); /* !10.0.0.0/8 */
- isc_netaddr_fromin(&addr, &inaddr);
- result = dns_iptable_addprefix(neg4pos6->iptable, &addr, 8, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- addr.family = AF_INET6; /* 0a00::/8 */
- result = dns_iptable_addprefix(neg4pos6->iptable, &addr, 8, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_merge(notneg4pos6, neg4pos6, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- inaddr.s_addr = htonl(0x0a000000); /* 10.0.0.0/8 */
- isc_netaddr_fromin(&addr, &inaddr);
- result = dns_iptable_addprefix(pos4neg6->iptable, &addr, 8, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- addr.family = AF_INET6; /* !0a00::/8 */
- result = dns_iptable_addprefix(pos4neg6->iptable, &addr, 8, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_merge(notpos4neg6, pos4neg6, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- inaddr.s_addr = htonl(0x0a000000); /* !10.0.0.0/8 */
- isc_netaddr_fromin(&addr, &inaddr);
- result = dns_iptable_addprefix(neg4neg6->iptable, &addr, 8, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- addr.family = AF_INET6; /* !0a00::/8 */
- result = dns_iptable_addprefix(neg4neg6->iptable, &addr, 8, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_merge(notneg4neg6, neg4neg6, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- ATF_CHECK(dns_acl_isinsecure(pos4pos6));
- ATF_CHECK(!dns_acl_isinsecure(notpos4pos6));
- ATF_CHECK(dns_acl_isinsecure(neg4pos6));
- ATF_CHECK(!dns_acl_isinsecure(notneg4pos6));
- ATF_CHECK(dns_acl_isinsecure(pos4neg6));
- ATF_CHECK(!dns_acl_isinsecure(notpos4neg6));
- ATF_CHECK(!dns_acl_isinsecure(neg4neg6));
- ATF_CHECK(!dns_acl_isinsecure(notneg4neg6));
-
- dns_acl_detach(&pos4pos6);
- dns_acl_detach(&notpos4pos6);
- dns_acl_detach(&neg4pos6);
- dns_acl_detach(&notneg4pos6);
- dns_acl_detach(&pos4neg6);
- dns_acl_detach(&notpos4neg6);
- dns_acl_detach(&neg4neg6);
- dns_acl_detach(&notneg4neg6);
-
- result = dns_acl_create(mctx, 1, &loop4);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &notloop4);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &loop6);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &notloop6);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- inaddr.s_addr = htonl(0x7f000001); /* 127.0.0.1 */
- isc_netaddr_fromin(&addr, &inaddr);
- result = dns_iptable_addprefix(loop4->iptable, &addr, 32, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_merge(notloop4, loop4, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- isc_netaddr_fromin6(&addr, &in6addr_loopback); /* ::1 */
- result = dns_iptable_addprefix(loop6->iptable, &addr, 128, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_merge(notloop6, loop6, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- ATF_CHECK(!dns_acl_isinsecure(loop4));
- ATF_CHECK(!dns_acl_isinsecure(notloop4));
- ATF_CHECK(!dns_acl_isinsecure(loop6));
- ATF_CHECK(!dns_acl_isinsecure(notloop6));
-
- dns_acl_detach(&loop4);
- dns_acl_detach(&notloop4);
- dns_acl_detach(&loop6);
- dns_acl_detach(&notloop6);
-
- result = dns_acl_create(mctx, 1, &loop4pos6);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &notloop4pos6);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &loop4neg6);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_create(mctx, 1, &notloop4neg6);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- inaddr.s_addr = htonl(0x7f000001); /* 127.0.0.1 */
- isc_netaddr_fromin(&addr, &inaddr);
- result = dns_iptable_addprefix(loop4pos6->iptable, &addr, 32, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- addr.family = AF_INET6; /* f700:0001::/32 */
- result = dns_iptable_addprefix(loop4pos6->iptable, &addr, 32, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_merge(notloop4pos6, loop4pos6, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- inaddr.s_addr = htonl(0x7f000001); /* 127.0.0.1 */
- isc_netaddr_fromin(&addr, &inaddr);
- result = dns_iptable_addprefix(loop4neg6->iptable, &addr, 32, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- addr.family = AF_INET6; /* !f700:0001::/32 */
- result = dns_iptable_addprefix(loop4neg6->iptable, &addr, 32,
- ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_acl_merge(notloop4neg6, loop4neg6, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- ATF_CHECK(dns_acl_isinsecure(loop4pos6));
- ATF_CHECK(!dns_acl_isinsecure(notloop4pos6));
- ATF_CHECK(!dns_acl_isinsecure(loop4neg6));
- ATF_CHECK(!dns_acl_isinsecure(notloop4neg6));
-
- dns_acl_detach(&loop4pos6);
- dns_acl_detach(&notloop4pos6);
- dns_acl_detach(&loop4neg6);
- dns_acl_detach(&notloop4neg6);
-
- dns_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, dns_acl_isinsecure);
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/dns/tests/db_test.c b/usr.sbin/bind/lib/dns/tests/db_test.c
deleted file mode 100644
index 32e0694b2b6..00000000000
--- a/usr.sbin/bind/lib/dns/tests/db_test.c
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Copyright (C) 2013, 2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: db_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-#include <stdlib.h>
-
-#include <dns/db.h>
-#include <dns/dbiterator.h>
-#include <dns/name.h>
-#include <dns/journal.h>
-
-#include "dnstest.h"
-
-/*
- * Helper functions
- */
-
-#define BUFLEN 255
-#define BIGBUFLEN (64 * 1024)
-#define TEST_ORIGIN "test"
-
-/*
- * Individual unit tests
- */
-
-ATF_TC(getoriginnode);
-ATF_TC_HEAD(getoriginnode, tc) {
- atf_tc_set_md_var(tc, "descr",
- "test multiple calls to dns_db_getoriginnode");
-}
-ATF_TC_BODY(getoriginnode, tc) {
- dns_db_t *db = NULL;
- dns_dbnode_t *node = NULL;
- isc_mem_t *mymctx = NULL;
- isc_result_t result;
-
- result = isc_mem_create(0, 0, &mymctx);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_hash_create(mymctx, NULL, 256);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_db_create(mymctx, "rbt", dns_rootname, dns_dbtype_zone,
- dns_rdataclass_in, 0, NULL, &db);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_db_getoriginnode(db, &node);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- dns_db_detachnode(db, &node);
-
- result = dns_db_getoriginnode(db, &node);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- dns_db_detachnode(db, &node);
-
- dns_db_detach(&db);
- isc_mem_detach(&mymctx);
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, getoriginnode);
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/dns/tests/dbdiff_test.c b/usr.sbin/bind/lib/dns/tests/dbdiff_test.c
deleted file mode 100644
index 1f618c5c068..00000000000
--- a/usr.sbin/bind/lib/dns/tests/dbdiff_test.c
+++ /dev/null
@@ -1,172 +0,0 @@
-/*
- * Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: dbdiff_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-#include <stdlib.h>
-
-#include <dns/db.h>
-#include <dns/dbiterator.h>
-#include <dns/name.h>
-#include <dns/journal.h>
-
-#include "dnstest.h"
-
-/*
- * Helper functions
- */
-
-#define BUFLEN 255
-#define BIGBUFLEN (64 * 1024)
-#define TEST_ORIGIN "test"
-
-static void
-test_create(const atf_tc_t *tc, dns_db_t **old, dns_db_t **new) {
- isc_result_t result;
-
- result = dns_test_loaddb(old, dns_dbtype_zone, TEST_ORIGIN,
- atf_tc_get_md_var(tc, "X-old"));
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_test_loaddb(new, dns_dbtype_zone, TEST_ORIGIN,
- atf_tc_get_md_var(tc, "X-new"));
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-}
-
-/*
- * Individual unit tests
- */
-
-ATF_TC(diffx_same);
-ATF_TC_HEAD(diffx_same, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_db_diffx of identical content");
- atf_tc_set_md_var(tc, "X-old", "testdata/diff/zone1.data");
- atf_tc_set_md_var(tc, "X-new", "testdata/diff/zone1.data"); }
-ATF_TC_BODY(diffx_same, tc) {
- dns_db_t *new = NULL, *old = NULL;
- isc_result_t result;
- dns_diff_t diff;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- test_create(tc, &old, &new);
-
- dns_diff_init(mctx, &diff);
-
- result = dns_db_diffx(&diff, new, NULL, old, NULL, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- ATF_REQUIRE_EQ(ISC_LIST_EMPTY(diff.tuples), ISC_TRUE);
-
- dns_diff_clear(&diff);
- dns_db_detach(&new);
- dns_db_detach(&old);
- dns_test_end();
-}
-
-ATF_TC(diffx_add);
-ATF_TC_HEAD(diffx_add, tc) {
- atf_tc_set_md_var(tc, "descr",
- "dns_db_diffx of zone with record added");
- atf_tc_set_md_var(tc, "X-old", "testdata/diff/zone1.data");
- atf_tc_set_md_var(tc, "X-new", "testdata/diff/zone2.data");
-}
-ATF_TC_BODY(diffx_add, tc) {
- dns_db_t *new = NULL, *old = NULL;
- dns_difftuple_t *tuple;
- isc_result_t result;
- dns_diff_t diff;
- int count = 0;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- test_create(tc, &old, &new);
-
- dns_diff_init(mctx, &diff);
-
- result = dns_db_diffx(&diff, new, NULL, old, NULL, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- ATF_REQUIRE_EQ(ISC_LIST_EMPTY(diff.tuples), ISC_FALSE);
- for (tuple = ISC_LIST_HEAD(diff.tuples); tuple != NULL;
- tuple = ISC_LIST_NEXT(tuple, link)) {
- ATF_REQUIRE_EQ(tuple->op, DNS_DIFFOP_ADD);
- count++;
- }
- ATF_REQUIRE_EQ(count, 1);
-
- dns_diff_clear(&diff);
- dns_db_detach(&new);
- dns_db_detach(&old);
- dns_test_end();
-}
-
-ATF_TC(diffx_remove);
-ATF_TC_HEAD(diffx_remove, tc) {
- atf_tc_set_md_var(tc, "descr",
- "dns_db_diffx of zone with record removed");
- atf_tc_set_md_var(tc, "X-old", "testdata/diff/zone1.data");
- atf_tc_set_md_var(tc, "X-new", "testdata/diff/zone3.data");
-}
-ATF_TC_BODY(diffx_remove, tc) {
- dns_db_t *new = NULL, *old = NULL;
- dns_difftuple_t *tuple;
- isc_result_t result;
- dns_diff_t diff;
- int count = 0;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- test_create(tc, &old, &new);
-
- dns_diff_init(mctx, &diff);
-
- result = dns_db_diffx(&diff, new, NULL, old, NULL, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- ATF_REQUIRE_EQ(ISC_LIST_EMPTY(diff.tuples), ISC_FALSE);
- for (tuple = ISC_LIST_HEAD(diff.tuples); tuple != NULL;
- tuple = ISC_LIST_NEXT(tuple, link)) {
- ATF_REQUIRE_EQ(tuple->op, DNS_DIFFOP_DEL);
- count++;
- }
- ATF_REQUIRE_EQ(count, 1);
-
- dns_diff_clear(&diff);
- dns_db_detach(&new);
- dns_db_detach(&old);
- dns_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, diffx_same);
- ATF_TP_ADD_TC(tp, diffx_add);
- ATF_TP_ADD_TC(tp, diffx_remove);
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/dns/tests/dbiterator_test.c b/usr.sbin/bind/lib/dns/tests/dbiterator_test.c
deleted file mode 100644
index 0962278151f..00000000000
--- a/usr.sbin/bind/lib/dns/tests/dbiterator_test.c
+++ /dev/null
@@ -1,437 +0,0 @@
-/*
- * Copyright (C) 2011, 2012, 2016 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: dbiterator_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-#include <stdlib.h>
-
-#include <dns/db.h>
-#include <dns/dbiterator.h>
-#include <dns/name.h>
-
-#include "dnstest.h"
-
-/*
- * Helper functions
- */
-
-#define BUFLEN 255
-#define BIGBUFLEN (64 * 1024)
-#define TEST_ORIGIN "test"
-
-static isc_result_t
-make_name(const char *src, dns_name_t *name) {
- isc_buffer_t b;
- isc_buffer_constinit(&b, src, strlen(src));
- isc_buffer_add(&b, strlen(src));
- return (dns_name_fromtext(name, &b, dns_rootname, 0, NULL));
-}
-
-/*
- * Individual unit tests
- */
-
-/* create: make sure we can create a dbiterator */
-static void
-test_create(const atf_tc_t *tc) {
- isc_result_t result;
- dns_db_t *db = NULL;
- dns_dbiterator_t *iter = NULL;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_test_loaddb(&db, dns_dbtype_cache, TEST_ORIGIN,
- atf_tc_get_md_var(tc, "X-filename"));
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_db_createiterator(db, 0, &iter);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_dbiterator_destroy(&iter);
- dns_db_detach(&db);
- dns_test_end();
-}
-
-ATF_TC(create);
-ATF_TC_HEAD(create, tc) {
- atf_tc_set_md_var(tc, "descr", "create a database iterator");
- atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
-}
-ATF_TC_BODY(create, tc) {
- test_create(tc);
-}
-
-ATF_TC(create_nsec3);
-ATF_TC_HEAD(create_nsec3, tc) {
- atf_tc_set_md_var(tc, "descr", "create a database iterator (NSEC3)");
- atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
-}
-ATF_TC_BODY(create_nsec3, tc) {
- test_create(tc);
-}
-
-/* walk: walk a database */
-static void
-test_walk(const atf_tc_t *tc) {
- isc_result_t result;
- dns_db_t *db = NULL;
- dns_dbiterator_t *iter = NULL;
- dns_dbnode_t *node = NULL;
- dns_name_t *name;
- dns_fixedname_t f;
- int i = 0;
-
- UNUSED(tc);
-
- dns_fixedname_init(&f);
- name = dns_fixedname_name(&f);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_test_loaddb(&db, dns_dbtype_cache, TEST_ORIGIN,
- atf_tc_get_md_var(tc, "X-filename"));
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_db_createiterator(db, 0, &iter);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- for (result = dns_dbiterator_first(iter);
- result == ISC_R_SUCCESS;
- result = dns_dbiterator_next(iter)) {
- result = dns_dbiterator_current(iter, &node, name);
- if (result == DNS_R_NEWORIGIN)
- result = ISC_R_SUCCESS;
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- dns_db_detachnode(db, &node);
- i++;
- }
-
- ATF_CHECK_EQ(i, atoi(atf_tc_get_md_var(tc, "X-nodes")));
-
- dns_dbiterator_destroy(&iter);
- dns_db_detach(&db);
- dns_test_end();
-}
-
-ATF_TC(walk);
-ATF_TC_HEAD(walk, tc) {
- atf_tc_set_md_var(tc, "descr", "walk database");
- atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
- atf_tc_set_md_var(tc, "X-nodes", "12");
-}
-ATF_TC_BODY(walk, tc) {
- test_walk(tc);
-}
-
-ATF_TC(walk_nsec3);
-ATF_TC_HEAD(walk_nsec3, tc) {
- atf_tc_set_md_var(tc, "descr", "walk database");
- atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
- atf_tc_set_md_var(tc, "X-nodes", "33");
-}
-ATF_TC_BODY(walk_nsec3, tc) {
- test_walk(tc);
-}
-
-/* reverse: walk database backwards */
-static void test_reverse(const atf_tc_t *tc) {
- isc_result_t result;
- dns_db_t *db = NULL;
- dns_dbiterator_t *iter = NULL;
- dns_dbnode_t *node = NULL;
- dns_name_t *name;
- dns_fixedname_t f;
- int i = 0;
-
- UNUSED(tc);
-
- dns_fixedname_init(&f);
- name = dns_fixedname_name(&f);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_test_loaddb(&db, dns_dbtype_cache, TEST_ORIGIN,
- atf_tc_get_md_var(tc, "X-filename"));
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_db_createiterator(db, 0, &iter);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- for (result = dns_dbiterator_last(iter);
- result == ISC_R_SUCCESS;
- result = dns_dbiterator_prev(iter)) {
- result = dns_dbiterator_current(iter, &node, name);
- if (result == DNS_R_NEWORIGIN)
- result = ISC_R_SUCCESS;
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- dns_db_detachnode(db, &node);
- i++;
- }
-
- ATF_CHECK_EQ(i, 12);
-
- dns_dbiterator_destroy(&iter);
- dns_db_detach(&db);
- dns_test_end();
-}
-
-ATF_TC(reverse);
-ATF_TC_HEAD(reverse, tc) {
- atf_tc_set_md_var(tc, "descr", "walk database backwards");
- atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
-}
-ATF_TC_BODY(reverse, tc) {
- test_reverse(tc);
-}
-
-ATF_TC(reverse_nsec3);
-ATF_TC_HEAD(reverse_nsec3, tc) {
- atf_tc_set_md_var(tc, "descr", "walk database backwards");
- atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
-}
-ATF_TC_BODY(reverse_nsec3, tc) {
- test_reverse(tc);
-}
-
-/* seek: walk database starting at a particular node */
-static void test_seek(const atf_tc_t *tc) {
- isc_result_t result;
- dns_db_t *db = NULL;
- dns_dbiterator_t *iter = NULL;
- dns_dbnode_t *node = NULL;
- dns_name_t *name, *seekname;
- dns_fixedname_t f1, f2;
- int i = 0;
-
- UNUSED(tc);
-
- dns_fixedname_init(&f1);
- name = dns_fixedname_name(&f1);
- dns_fixedname_init(&f2);
- seekname = dns_fixedname_name(&f2);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_test_loaddb(&db, dns_dbtype_cache, TEST_ORIGIN,
- atf_tc_get_md_var(tc, "X-filename"));
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_db_createiterator(db, 0, &iter);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = make_name("c." TEST_ORIGIN, seekname);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_dbiterator_seek(iter, seekname);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- while (result == ISC_R_SUCCESS) {
- result = dns_dbiterator_current(iter, &node, name);
- if (result == DNS_R_NEWORIGIN)
- result = ISC_R_SUCCESS;
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- dns_db_detachnode(db, &node);
- result = dns_dbiterator_next(iter);
- i++;
- }
-
- ATF_CHECK_EQ(i, atoi(atf_tc_get_md_var(tc, "X-nodes")));
-
- dns_dbiterator_destroy(&iter);
- dns_db_detach(&db);
- dns_test_end();
-}
-
-ATF_TC(seek);
-ATF_TC_HEAD(seek, tc) {
- atf_tc_set_md_var(tc, "descr", "walk database starting at "
- "a particular node");
- atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
- atf_tc_set_md_var(tc, "X-nodes", "9");
-}
-ATF_TC_BODY(seek, tc) {
- test_seek(tc);
-}
-
-ATF_TC(seek_nsec3);
-ATF_TC_HEAD(seek_nsec3, tc) {
- atf_tc_set_md_var(tc, "descr", "walk database starting at "
- "a particular node");
- atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
- atf_tc_set_md_var(tc, "X-nodes", "30");
-}
-ATF_TC_BODY(seek_nsec3, tc) {
- test_seek(tc);
-}
-
-/*
- * seek_emty: walk database starting at an empty nonterminal node
- * (should fail)
- */
-static void test_seek_empty(const atf_tc_t *tc) {
- isc_result_t result;
- dns_db_t *db = NULL;
- dns_dbiterator_t *iter = NULL;
- dns_name_t *seekname;
- dns_fixedname_t f1;
-
- UNUSED(tc);
-
- dns_fixedname_init(&f1);
- seekname = dns_fixedname_name(&f1);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_test_loaddb(&db, dns_dbtype_cache, TEST_ORIGIN,
- atf_tc_get_md_var(tc, "X-filename"));
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_db_createiterator(db, 0, &iter);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = make_name("d." TEST_ORIGIN, seekname);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_dbiterator_seek(iter, seekname);
- ATF_CHECK_EQ(result, DNS_R_PARTIALMATCH);
-
- dns_dbiterator_destroy(&iter);
- dns_db_detach(&db);
- dns_test_end();
-}
-
-ATF_TC(seek_empty);
-ATF_TC_HEAD(seek_empty, tc) {
- atf_tc_set_md_var(tc, "descr", "walk database starting at an "
- "empty nonterminal node");
- atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
-}
-ATF_TC_BODY(seek_empty, tc) {
- test_seek_empty(tc);
-}
-
-ATF_TC(seek_empty_nsec3);
-ATF_TC_HEAD(seek_empty_nsec3, tc) {
- atf_tc_set_md_var(tc, "descr", "walk database starting at an "
- "empty nonterminal node");
- atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
-}
-ATF_TC_BODY(seek_empty_nsec3, tc) {
- test_seek_empty(tc);
-}
-
-/*
- * seek_emty: walk database starting at an empty nonterminal node
- * (should fail)
- */
-static void test_seek_nx(const atf_tc_t *tc) {
- isc_result_t result;
- dns_db_t *db = NULL;
- dns_dbiterator_t *iter = NULL;
- dns_name_t *seekname;
- dns_fixedname_t f1;
-
- UNUSED(tc);
-
- dns_fixedname_init(&f1);
- seekname = dns_fixedname_name(&f1);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_test_loaddb(&db, dns_dbtype_cache, TEST_ORIGIN,
- atf_tc_get_md_var(tc, "X-filename"));
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_db_createiterator(db, 0, &iter);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = make_name("nonexistent." TEST_ORIGIN, seekname);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_dbiterator_seek(iter, seekname);
- ATF_CHECK_EQ(result, DNS_R_PARTIALMATCH);
-
- result = make_name("nonexistent.", seekname);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_dbiterator_seek(iter, seekname);
- ATF_CHECK_EQ(result, ISC_R_NOTFOUND);
-
- dns_dbiterator_destroy(&iter);
- dns_db_detach(&db);
- dns_test_end();
-}
-
-ATF_TC(seek_nx);
-ATF_TC_HEAD(seek_nx, tc) {
- atf_tc_set_md_var(tc, "descr", "attempt to walk database starting "
- "at a nonexistent node");
- atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone1.data");
-}
-ATF_TC_BODY(seek_nx, tc) {
- test_seek_nx(tc);
-}
-
-ATF_TC(seek_nx_nsec3);
-ATF_TC_HEAD(seek_nx_nsec3, tc) {
- atf_tc_set_md_var(tc, "descr", "attempt to walk database starting "
- "at a nonexistent node");
- atf_tc_set_md_var(tc, "X-filename", "testdata/dbiterator/zone2.data");
-}
-ATF_TC_BODY(seek_nx_nsec3, tc) {
- test_seek_nx(tc);
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, create);
- ATF_TP_ADD_TC(tp, create_nsec3);
- ATF_TP_ADD_TC(tp, walk);
- ATF_TP_ADD_TC(tp, walk_nsec3);
- ATF_TP_ADD_TC(tp, reverse);
- ATF_TP_ADD_TC(tp, reverse_nsec3);
- ATF_TP_ADD_TC(tp, seek);
- ATF_TP_ADD_TC(tp, seek_nsec3);
- ATF_TP_ADD_TC(tp, seek_empty);
- ATF_TP_ADD_TC(tp, seek_empty_nsec3);
- ATF_TP_ADD_TC(tp, seek_nx);
- ATF_TP_ADD_TC(tp, seek_nx_nsec3);
- return (atf_no_error());
-}
-
-/*
- * XXX:
- * dns_dbiterator API calls that are not yet part of this unit test:
- *
- * dns_dbiterator_pause
- * dns_dbiterator_origin
- * dns_dbiterator_setcleanmode
- */
diff --git a/usr.sbin/bind/lib/dns/tests/dbversion_test.c b/usr.sbin/bind/lib/dns/tests/dbversion_test.c
deleted file mode 100644
index 47ec7d8c7a2..00000000000
--- a/usr.sbin/bind/lib/dns/tests/dbversion_test.c
+++ /dev/null
@@ -1,740 +0,0 @@
-/*
- * Copyright (C) 2011, 2012, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: dbversion_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <stdlib.h>
-#include <time.h>
-#include <unistd.h>
-
-#include <isc/file.h>
-#include <isc/result.h>
-#include <isc/serial.h>
-#include <isc/stdtime.h>
-#include <isc/msgcat.h>
-
-#include <dns/db.h>
-#include <dns/rdatalist.h>
-#include <dns/rdataset.h>
-#include <dns/rdatasetiter.h>
-#include <dns/nsec3.h>
-
-#include "dnstest.h"
-
-static char tempname[11] = "dtXXXXXXXX";
-
-static void
-local_callback(const char *file, int line, isc_assertiontype_t type,
- const char *cond)
-{
- UNUSED(file); UNUSED(line); UNUSED(type); UNUSED(cond);
- if (strcmp(tempname, "dtXXXXXXXX"))
- unlink(tempname);
- atf_tc_pass();
- exit(0);
-}
-
-static dns_db_t *db1 = NULL, *db2 = NULL;
-static dns_dbversion_t *v1 = NULL, *v2 = NULL;
-
-static void
-setup_db(void) {
- isc_result_t result;
- result = dns_db_create(mctx, "rbt", dns_rootname, dns_dbtype_zone,
- dns_rdataclass_in, 0, NULL, &db1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- dns_db_newversion(db1, &v1);
-
- result = dns_db_create(mctx, "rbt", dns_rootname, dns_dbtype_zone,
- dns_rdataclass_in, 0, NULL, &db2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- dns_db_newversion(db2, &v2);
-}
-
-static void
-close_db(void) {
- if (v1 != NULL) {
- dns_db_closeversion(db1, &v1, ISC_FALSE);
- ATF_REQUIRE_EQ(v1, NULL);
- }
- if (db1 != NULL) {
- dns_db_detach(&db1);
- ATF_REQUIRE_EQ(db1, NULL);
- }
-
- if (v2 != NULL) {
- dns_db_closeversion(db2, &v2, ISC_FALSE);
- ATF_REQUIRE_EQ(v2, NULL);
- }
- if (db2 != NULL) {
- dns_db_detach(&db2);
- ATF_REQUIRE_EQ(db2, NULL);
- }
-}
-
-#define VERSION(callback) ((callback == NULL) ? v1 : v2)
-#define VERSIONP(callback) ((callback == NULL) ? &v1 : &v2)
-/*
- * Individual unit tests
- */
-static void
-attachversion(isc_assertioncallback_t callback) {
- isc_result_t result;
- dns_dbversion_t *v = NULL;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- setup_db();
-
- isc_assertion_setcallback(callback);
- dns_db_attachversion(db1, VERSION(callback), &v);
- if (callback != NULL)
- atf_tc_fail("dns_db_attachversion did not assert");
-
- ATF_REQUIRE_EQ(v, v1);
- dns_db_closeversion(db1, &v, ISC_FALSE);
- ATF_REQUIRE_EQ(v, NULL);
-
- close_db();
- dns_test_end();
-}
-
-ATF_TC(attachversion);
-ATF_TC_HEAD(attachversion, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_attachversion passes with matching db/verison");
-}
-ATF_TC_BODY(attachversion, tc) {
-
- UNUSED(tc);
-
- attachversion(NULL);
-}
-
-ATF_TC(attachversion_bad);
-ATF_TC_HEAD(attachversion_bad, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_attachversion aborts with mis-matching db/verison");
-}
-ATF_TC_BODY(attachversion_bad, tc) {
-
- UNUSED(tc);
-
- attachversion(local_callback);
-}
-
-static void
-closeversion(isc_assertioncallback_t callback) {
- isc_result_t result;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- setup_db();
-
- isc_assertion_setcallback(callback);
- dns_db_closeversion(db1, VERSIONP(callback), ISC_FALSE);
- if (callback != NULL)
- atf_tc_fail("dns_db_closeversion did not assert");
- ATF_REQUIRE_EQ(v1, NULL);
-
- close_db();
- dns_test_end();
-}
-
-ATF_TC(closeversion);
-ATF_TC_HEAD(closeversion, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_closeversion passes with matching db/verison");
-}
-ATF_TC_BODY(closeversion, tc) {
-
- UNUSED(tc);
-
- closeversion(NULL);
-}
-
-ATF_TC(closeversion_bad);
-ATF_TC_HEAD(closeversion_bad, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_closeversion asserts with mis-matching db/verison");
-}
-ATF_TC_BODY(closeversion_bad, tc) {
-
- UNUSED(tc);
-
- closeversion(local_callback);
-}
-
-static void
-find(isc_assertioncallback_t callback) {
- isc_result_t result;
- dns_rdataset_t rdataset;
- dns_fixedname_t fixed;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- setup_db();
-
- dns_rdataset_init(&rdataset);
- dns_fixedname_init(&fixed);
-
- isc_assertion_setcallback(callback);
- result = dns_db_find(db1, dns_rootname, VERSION(callback),
- dns_rdatatype_soa, 0, 0, NULL,
- dns_fixedname_name(&fixed), &rdataset, NULL);
- if (callback != NULL)
- atf_tc_fail("dns_db_find did not assert");
- ATF_REQUIRE_EQ(result, DNS_R_NXDOMAIN);
-
- close_db();
-
- dns_test_end();
-}
-ATF_TC(find);
-ATF_TC_HEAD(find, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_find passes with matching db/version");
-}
-ATF_TC_BODY(find, tc) {
-
- UNUSED(tc);
-
- find(NULL);
-}
-
-ATF_TC(find_bad);
-ATF_TC_HEAD(find_bad, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_find asserts with mis-matching db/version");
-}
-ATF_TC_BODY(find_bad, tc) {
-
- UNUSED(tc);
-
- find(local_callback);
-}
-
-static void
-allrdatasets(isc_assertioncallback_t callback) {
- isc_result_t result;
- dns_dbnode_t *node = NULL;
- dns_rdatasetiter_t *iterator = NULL;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- setup_db();
-
- result = dns_db_findnode(db1, dns_rootname, ISC_FALSE, &node);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- isc_assertion_setcallback(callback);
- result = dns_db_allrdatasets(db1, node, VERSION(callback), 0,
- &iterator);
- if (callback != NULL)
- atf_tc_fail("dns_db_allrdatasets did not assert");
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_rdatasetiter_destroy(&iterator);
- ATF_REQUIRE_EQ(iterator, NULL);
-
- dns_db_detachnode(db1, &node);
- ATF_REQUIRE_EQ(node, NULL);
-
- close_db();
-
- dns_test_end();
-}
-
-ATF_TC(allrdatasets);
-ATF_TC_HEAD(allrdatasets, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_allrdatasets passes with matching db/version");
-}
-ATF_TC_BODY(allrdatasets, tc) {
-
- UNUSED(tc);
-
- allrdatasets(NULL);
-}
-
-ATF_TC(allrdatasets_bad);
-ATF_TC_HEAD(allrdatasets_bad, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_allrdatasets aborts with mis-matching db/version");
-}
-ATF_TC_BODY(allrdatasets_bad, tc) {
-
- UNUSED(tc);
-
- allrdatasets(local_callback);
-}
-
-static void
-findrdataset(isc_assertioncallback_t callback) {
- isc_result_t result;
- dns_rdataset_t rdataset;
- dns_fixedname_t fixed;
- dns_dbnode_t *node = NULL;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- setup_db();
-
- dns_rdataset_init(&rdataset);
- dns_fixedname_init(&fixed);
-
- result = dns_db_findnode(db1, dns_rootname, ISC_FALSE, &node);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- isc_assertion_setcallback(callback);
- result = dns_db_findrdataset(db1, node, VERSION(callback),
- dns_rdatatype_soa, 0, 0, &rdataset, NULL);
- if (callback != NULL)
- atf_tc_fail("dns_db_findrdataset did not assert");
- ATF_REQUIRE_EQ(result, ISC_R_NOTFOUND);
-
- dns_db_detachnode(db1, &node);
- ATF_REQUIRE_EQ(node, NULL);
-
- close_db();
-
- dns_test_end();
-}
-
-ATF_TC(findrdataset);
-ATF_TC_HEAD(findrdataset, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_findrdataset passes with matching db/version");
-}
-ATF_TC_BODY(findrdataset, tc) {
-
- UNUSED(tc);
-
- findrdataset(NULL);
-}
-
-ATF_TC(findrdataset_bad);
-ATF_TC_HEAD(findrdataset_bad, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_findrdataset aborts with mis-matching db/version");
-}
-ATF_TC_BODY(findrdataset_bad, tc) {
-
- UNUSED(tc);
-
- findrdataset(local_callback);
-}
-
-static void
-deleterdataset(isc_assertioncallback_t callback) {
- isc_result_t result;
- dns_rdataset_t rdataset;
- dns_fixedname_t fixed;
- dns_dbnode_t *node = NULL;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- setup_db();
-
- dns_rdataset_init(&rdataset);
- dns_fixedname_init(&fixed);
-
- result = dns_db_findnode(db1, dns_rootname, ISC_FALSE, &node);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- isc_assertion_setcallback(callback);
- result = dns_db_deleterdataset(db1, node, VERSION(callback),
- dns_rdatatype_soa, 0);
- if (callback != NULL)
- atf_tc_fail("dns_db_deleterdataset did not assert");
- ATF_REQUIRE_EQ(result, DNS_R_UNCHANGED);
-
- dns_db_detachnode(db1, &node);
- ATF_REQUIRE_EQ(node, NULL);
-
- close_db();
-
- dns_test_end();
-}
-
-ATF_TC(deleterdataset);
-ATF_TC_HEAD(deleterdataset, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_deleterdataset passes with matching db/version");
-}
-ATF_TC_BODY(deleterdataset, tc) {
-
- UNUSED(tc);
-
- deleterdataset(NULL);
-}
-
-ATF_TC(deleterdataset_bad);
-ATF_TC_HEAD(deleterdataset_bad, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_deleterdataset aborts with mis-matching db/version");
-}
-ATF_TC_BODY(deleterdataset_bad, tc) {
-
- UNUSED(tc);
-
- deleterdataset(local_callback);
-}
-
-static void
-subtract(isc_assertioncallback_t callback) {
- isc_result_t result;
- dns_rdataset_t rdataset;
- dns_fixedname_t fixed;
- dns_dbnode_t *node = NULL;
- dns_rdatalist_t rdatalist;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- setup_db();
-
- dns_rdataset_init(&rdataset);
- dns_rdatalist_init(&rdatalist);
- dns_fixedname_init(&fixed);
-
- rdatalist.rdclass = dns_rdataclass_in;
-
- result = dns_rdatalist_tordataset(&rdatalist, &rdataset);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_db_findnode(db1, dns_rootname, ISC_FALSE, &node);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- isc_assertion_setcallback(callback);
- result = dns_db_subtractrdataset(db1, node, VERSION(callback),
- &rdataset, 0, NULL);
- if (callback != NULL)
- atf_tc_fail("dns_db_subtractrdataset did not assert");
- ATF_REQUIRE_EQ(result, DNS_R_UNCHANGED);
-
- dns_db_detachnode(db1, &node);
- ATF_REQUIRE_EQ(node, NULL);
-
- close_db();
-
- dns_test_end();
-}
-
-ATF_TC(subtractrdataset);
-ATF_TC_HEAD(subtractrdataset, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_subtractrdataset passes with matching db/version");
-}
-ATF_TC_BODY(subtractrdataset, tc) {
-
- UNUSED(tc);
-
- subtract(NULL);
-}
-
-ATF_TC(subtractrdataset_bad);
-ATF_TC_HEAD(subtractrdataset_bad, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_subtractrdataset aborts with mis-matching db/version");
-}
-ATF_TC_BODY(subtractrdataset_bad, tc) {
-
- UNUSED(tc);
-
- subtract(local_callback);
-}
-
-static void
-dump(isc_assertioncallback_t callback) {
- isc_result_t result;
- FILE *f = NULL;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- setup_db();
-
- result = isc_file_openunique(tempname, &f);
- fclose(f);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- isc_assertion_setcallback(callback);
- result = dns_db_dump(db1, VERSION(callback), tempname);
- (void)unlink(tempname);
- if (callback != NULL)
- atf_tc_fail("dns_db_dump did not assert");
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- close_db();
-
- dns_test_end();
-}
-
-ATF_TC(dump);
-ATF_TC_HEAD(dump, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_dump passes with matching db/version");
-}
-ATF_TC_BODY(dump, tc) {
-
- UNUSED(tc);
-
- dump(NULL);
-}
-
-ATF_TC(dump_bad);
-ATF_TC_HEAD(dump_bad, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_dump aborts with mis-matching db/version");
-}
-ATF_TC_BODY(dump_bad, tc) {
-
- UNUSED(tc);
-
- dump(local_callback);
-}
-
-static void
-addrdataset(isc_assertioncallback_t callback) {
- isc_result_t result;
- dns_rdataset_t rdataset;
- dns_fixedname_t fixed;
- dns_dbnode_t *node = NULL;
- dns_rdatalist_t rdatalist;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- setup_db();
-
- dns_rdataset_init(&rdataset);
- dns_rdatalist_init(&rdatalist);
- dns_fixedname_init(&fixed);
-
- rdatalist.rdclass = dns_rdataclass_in;
-
- result = dns_rdatalist_tordataset(&rdatalist, &rdataset);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_db_findnode(db1, dns_rootname, ISC_FALSE, &node);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- isc_assertion_setcallback(callback);
- result = dns_db_addrdataset(db1, node, VERSION(callback), 0, &rdataset,
- 0, NULL);
- if (callback != NULL)
- atf_tc_fail("dns_db_adddataset did not assert");
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_db_detachnode(db1, &node);
- ATF_REQUIRE_EQ(node, NULL);
-
- close_db();
-
- dns_test_end();
-}
-
-ATF_TC(addrdataset);
-ATF_TC_HEAD(addrdataset, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_addrdataset passes with matching db/version");
-}
-ATF_TC_BODY(addrdataset, tc) {
-
- UNUSED(tc);
-
- addrdataset(NULL);
-}
-
-ATF_TC(addrdataset_bad);
-ATF_TC_HEAD(addrdataset_bad, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_addrdataset aborts with mis-matching db/version");
-}
-ATF_TC_BODY(addrdataset_bad, tc) {
-
- UNUSED(tc);
-
- addrdataset(local_callback);
-}
-
-static void
-getnsec3parameters(isc_assertioncallback_t callback) {
- isc_result_t result;
- dns_hash_t hash;
- isc_uint8_t flags;
- isc_uint16_t iterations;
- unsigned char salt[DNS_NSEC3_SALTSIZE];
- size_t salt_length = sizeof(salt);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- setup_db();
-
- isc_assertion_setcallback(callback);
- result = dns_db_getnsec3parameters(db1, VERSION(callback), &hash,
- &flags, &iterations, salt,
- &salt_length);
- if (callback != NULL)
- atf_tc_fail("dns_db_dump did not assert");
- ATF_REQUIRE_EQ(result, ISC_R_NOTFOUND);
-
- close_db();
-
- dns_test_end();
-}
-
-ATF_TC(getnsec3parameters);
-ATF_TC_HEAD(getnsec3parameters, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_getnsec3parameters passes with matching db/version");
-}
-ATF_TC_BODY(getnsec3parameters, tc) {
-
- UNUSED(tc);
-
- getnsec3parameters(NULL);
-}
-
-ATF_TC(getnsec3parameters_bad);
-ATF_TC_HEAD(getnsec3parameters_bad, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_db_getnsec3parameters aborts with mis-matching db/version");
-}
-ATF_TC_BODY(getnsec3parameters_bad, tc) {
-
- UNUSED(tc);
-
- getnsec3parameters(local_callback);
-}
-
-static void
-resigned(isc_assertioncallback_t callback) {
- isc_result_t result;
- dns_rdataset_t rdataset, added;
- dns_dbnode_t *node = NULL;
- dns_rdatalist_t rdatalist;
- dns_rdata_rrsig_t rrsig;
- dns_rdata_t rdata = DNS_RDATA_INIT;
- isc_buffer_t b;
- unsigned char buf[1024];
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- setup_db();
-
- /*
- * Create a dummy RRSIG record and set a resigning time.
- */
- dns_rdataset_init(&added);
- dns_rdataset_init(&rdataset);
- dns_rdatalist_init(&rdatalist);
- isc_buffer_init(&b, buf, sizeof(buf));
-
- DNS_RDATACOMMON_INIT(&rrsig, dns_rdatatype_rrsig, dns_rdataclass_in);
- rrsig.covered = dns_rdatatype_a;
- rrsig.algorithm = 100;
- rrsig.labels = 0;
- rrsig.originalttl = 0;
- rrsig.timeexpire = 3600;
- rrsig.timesigned = 0;
- rrsig.keyid = 0;
- dns_name_init(&rrsig.signer, NULL);
- dns_name_clone(dns_rootname, &rrsig.signer);
- rrsig.siglen = 0;
- rrsig.signature = NULL;
-
- result = dns_rdata_fromstruct(&rdata, dns_rdataclass_in,
- dns_rdatatype_rrsig, &rrsig, &b);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- rdatalist.rdclass = dns_rdataclass_in;
- rdatalist.type = dns_rdatatype_rrsig;
- ISC_LIST_APPEND(rdatalist.rdata, &rdata, link);
-
- result = dns_rdatalist_tordataset(&rdatalist, &rdataset);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- rdataset.attributes |= DNS_RDATASETATTR_RESIGN;
- rdataset.resign = 7200;
-
- result = dns_db_findnode(db1, dns_rootname, ISC_FALSE, &node);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_db_addrdataset(db1, node, v1, 0, &rdataset, 0, &added);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_db_detachnode(db1, &node);
- ATF_REQUIRE_EQ(node, NULL);
-
- isc_assertion_setcallback(callback);
- dns_db_resigned(db1, &added, VERSION(callback));
- if (callback != NULL)
- atf_tc_fail("dns_db_resigned did not assert");
-
- dns_rdataset_disassociate(&added);
-
- close_db();
-
- dns_test_end();
-}
-
-ATF_TC(resigned);
-ATF_TC_HEAD(resigned, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_rdataset_resigned passes with matching db/version");
-}
-ATF_TC_BODY(resigned, tc) {
-
- UNUSED(tc);
-
- resigned(NULL);
-}
-
-ATF_TC(resigned_bad);
-ATF_TC_HEAD(resigned_bad, tc) {
- atf_tc_set_md_var(tc, "descr", "check dns_rdataset_resigned aborts with mis-matching db/version");
-}
-ATF_TC_BODY(resigned_bad, tc) {
-
- UNUSED(tc);
-
- resigned(local_callback);
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, dump);
- ATF_TP_ADD_TC(tp, dump_bad);
- ATF_TP_ADD_TC(tp, find);
- ATF_TP_ADD_TC(tp, find_bad);
- ATF_TP_ADD_TC(tp, allrdatasets);
- ATF_TP_ADD_TC(tp, allrdatasets_bad);
- ATF_TP_ADD_TC(tp, findrdataset);
- ATF_TP_ADD_TC(tp, findrdataset_bad);
- ATF_TP_ADD_TC(tp, addrdataset);
- ATF_TP_ADD_TC(tp, addrdataset_bad);
- ATF_TP_ADD_TC(tp, deleterdataset);
- ATF_TP_ADD_TC(tp, deleterdataset_bad);
- ATF_TP_ADD_TC(tp, subtractrdataset);
- ATF_TP_ADD_TC(tp, subtractrdataset_bad);
- ATF_TP_ADD_TC(tp, attachversion);
- ATF_TP_ADD_TC(tp, attachversion_bad);
- ATF_TP_ADD_TC(tp, closeversion);
- ATF_TP_ADD_TC(tp, closeversion_bad);
- ATF_TP_ADD_TC(tp, getnsec3parameters);
- ATF_TP_ADD_TC(tp, getnsec3parameters_bad);
- ATF_TP_ADD_TC(tp, resigned);
- ATF_TP_ADD_TC(tp, resigned_bad);
-
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/dns/tests/dh_test.c b/usr.sbin/bind/lib/dns/tests/dh_test.c
deleted file mode 100644
index 190990aae0e..00000000000
--- a/usr.sbin/bind/lib/dns/tests/dh_test.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * Copyright (C) 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: dh_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/* ! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <isc/util.h>
-#include <isc/string.h>
-
-#include <pk11/site.h>
-
-#include <dns/name.h>
-#include <dst/result.h>
-
-#include "../dst_internal.h"
-
-#include "dnstest.h"
-
-#if defined(OPENSSL) && !defined(PK11_DH_DISABLE)
-
-ATF_TC(isc_dh_computesecret);
-ATF_TC_HEAD(isc_dh_computesecret, tc) {
- atf_tc_set_md_var(tc, "descr", "OpenSSL DH_compute_key() failure");
-}
-ATF_TC_BODY(isc_dh_computesecret, tc) {
- dst_key_t *key = NULL;
- isc_buffer_t buf;
- unsigned char array[1024];
- isc_result_t ret;
- dns_fixedname_t fname;
- dns_name_t *name;
-
- UNUSED(tc);
-
- ret = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- dns_fixedname_init(&fname);
- name = dns_fixedname_name(&fname);
- isc_buffer_constinit(&buf, "dh.", 3);
- isc_buffer_add(&buf, 3);
- ret = dns_name_fromtext(name, &buf, NULL, 0, NULL);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- ret = dst_key_fromfile(name, 18602, DST_ALG_DH,
- DST_TYPE_PUBLIC | DST_TYPE_KEY,
- "./", mctx, &key);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- isc_buffer_init(&buf, array, sizeof(array));
- ret = dst_key_computesecret(key, key, &buf);
- ATF_REQUIRE_EQ(ret, DST_R_NOTPRIVATEKEY);
- ret = key->func->computesecret(key, key, &buf);
- ATF_REQUIRE_EQ(ret, DST_R_COMPUTESECRETFAILURE);
-
- dst_key_free(&key);
- dns_test_end();
-}
-#else
-ATF_TC(untested);
-ATF_TC_HEAD(untested, tc) {
- atf_tc_set_md_var(tc, "descr", "skipping OpenSSL DH test");
-}
-ATF_TC_BODY(untested, tc) {
- UNUSED(tc);
- atf_tc_skip("OpenSSL DH not compiled in");
-}
-#endif
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
-#if defined(OPENSSL) && !defined(PK11_DH_DISABLE)
- ATF_TP_ADD_TC(tp, isc_dh_computesecret);
-#else
- ATF_TP_ADD_TC(tp, untested);
-#endif
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/dns/tests/dispatch_test.c b/usr.sbin/bind/lib/dns/tests/dispatch_test.c
deleted file mode 100644
index 1298fcbe30e..00000000000
--- a/usr.sbin/bind/lib/dns/tests/dispatch_test.c
+++ /dev/null
@@ -1,160 +0,0 @@
-/*
- * Copyright (C) 2012, 2014 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: dispatch_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <isc/buffer.h>
-#include <isc/socket.h>
-#include <isc/task.h>
-#include <isc/timer.h>
-
-#include <dns/dispatch.h>
-#include <dns/name.h>
-#include <dns/view.h>
-
-#include "dnstest.h"
-
-dns_dispatchmgr_t *dispatchmgr = NULL;
-dns_dispatchset_t *dset = NULL;
-
-static isc_result_t
-make_dispatchset(unsigned int ndisps) {
- isc_result_t result;
- isc_sockaddr_t any;
- unsigned int attrs;
- dns_dispatch_t *disp = NULL;
-
- result = dns_dispatchmgr_create(mctx, NULL, &dispatchmgr);
- if (result != ISC_R_SUCCESS)
- return (result);
-
- isc_sockaddr_any(&any);
- attrs = DNS_DISPATCHATTR_IPV4 | DNS_DISPATCHATTR_UDP;
- result = dns_dispatch_getudp(dispatchmgr, socketmgr, taskmgr,
- &any, 512, 6, 1024, 17, 19, attrs,
- attrs, &disp);
- if (result != ISC_R_SUCCESS)
- return (result);
-
- result = dns_dispatchset_create(mctx, socketmgr, taskmgr, disp,
- &dset, ndisps);
- dns_dispatch_detach(&disp);
-
- return (result);
-}
-
-static void
-teardown(void) {
- if (dset != NULL)
- dns_dispatchset_destroy(&dset);
- if (dispatchmgr != NULL)
- dns_dispatchmgr_destroy(&dispatchmgr);
-}
-
-/*
- * Individual unit tests
- */
-ATF_TC(dispatchset_create);
-ATF_TC_HEAD(dispatchset_create, tc) {
- atf_tc_set_md_var(tc, "descr", "create dispatch set");
-}
-ATF_TC_BODY(dispatchset_create, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = make_dispatchset(1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- teardown();
-
- result = make_dispatchset(10);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- teardown();
-
- dns_test_end();
-}
-
-
-
-ATF_TC(dispatchset_get);
-ATF_TC_HEAD(dispatchset_get, tc) {
- atf_tc_set_md_var(tc, "descr", "test dispatch set round-robin");
-}
-ATF_TC_BODY(dispatchset_get, tc) {
- isc_result_t result;
- dns_dispatch_t *d1, *d2, *d3, *d4, *d5;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = make_dispatchset(1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- d1 = dns_dispatchset_get(dset);
- d2 = dns_dispatchset_get(dset);
- d3 = dns_dispatchset_get(dset);
- d4 = dns_dispatchset_get(dset);
- d5 = dns_dispatchset_get(dset);
-
- ATF_CHECK_EQ(d1, d2);
- ATF_CHECK_EQ(d2, d3);
- ATF_CHECK_EQ(d3, d4);
- ATF_CHECK_EQ(d4, d5);
-
- teardown();
-
- result = make_dispatchset(4);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- d1 = dns_dispatchset_get(dset);
- d2 = dns_dispatchset_get(dset);
- d3 = dns_dispatchset_get(dset);
- d4 = dns_dispatchset_get(dset);
- d5 = dns_dispatchset_get(dset);
-
- ATF_CHECK_EQ(d1, d5);
- ATF_CHECK(d1 != d2);
- ATF_CHECK(d2 != d3);
- ATF_CHECK(d3 != d4);
- ATF_CHECK(d4 != d5);
-
- teardown();
- dns_test_end();
-}
-
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, dispatchset_create);
- ATF_TP_ADD_TC(tp, dispatchset_get);
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/dns/tests/dnstest.c b/usr.sbin/bind/lib/dns/tests/dnstest.c
deleted file mode 100644
index 6df906f6bd2..00000000000
--- a/usr.sbin/bind/lib/dns/tests/dnstest.c
+++ /dev/null
@@ -1,328 +0,0 @@
-/*
- * Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: dnstest.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <time.h>
-#include <unistd.h>
-
-#include <isc/app.h>
-#include <isc/buffer.h>
-#include <isc/entropy.h>
-#include <isc/hash.h>
-#include <isc/mem.h>
-#include <isc/os.h>
-#include <isc/string.h>
-#include <isc/socket.h>
-#include <isc/task.h>
-#include <isc/timer.h>
-#include <isc/util.h>
-
-#include <dns/db.h>
-#include <dns/fixedname.h>
-#include <dns/log.h>
-#include <dns/name.h>
-#include <dns/result.h>
-#include <dns/view.h>
-#include <dns/zone.h>
-
-#include <dst/dst.h>
-
-#include "dnstest.h"
-
-isc_mem_t *mctx = NULL;
-isc_entropy_t *ectx = NULL;
-isc_log_t *lctx = NULL;
-isc_taskmgr_t *taskmgr = NULL;
-isc_task_t *maintask = NULL;
-isc_timermgr_t *timermgr = NULL;
-isc_socketmgr_t *socketmgr = NULL;
-dns_zonemgr_t *zonemgr = NULL;
-isc_boolean_t app_running = ISC_FALSE;
-int ncpus;
-isc_boolean_t debug_mem_record = ISC_TRUE;
-
-static isc_boolean_t hash_active = ISC_FALSE, dst_active = ISC_FALSE;
-
-/*
- * Logging categories: this needs to match the list in bin/named/log.c.
- */
-static isc_logcategory_t categories[] = {
- { "", 0 },
- { "client", 0 },
- { "network", 0 },
- { "update", 0 },
- { "queries", 0 },
- { "unmatched", 0 },
- { "update-security", 0 },
- { "query-errors", 0 },
- { NULL, 0 }
-};
-
-static void
-cleanup_managers(void) {
- if (app_running)
- isc_app_finish();
- if (socketmgr != NULL)
- isc_socketmgr_destroy(&socketmgr);
- if (maintask != NULL)
- isc_task_destroy(&maintask);
- if (taskmgr != NULL)
- isc_taskmgr_destroy(&taskmgr);
- if (timermgr != NULL)
- isc_timermgr_destroy(&timermgr);
-}
-
-static isc_result_t
-create_managers(void) {
- isc_result_t result;
-#ifdef ISC_PLATFORM_USETHREADS
- ncpus = isc_os_ncpus();
-#else
- ncpus = 1;
-#endif
-
- CHECK(isc_taskmgr_create(mctx, ncpus, 0, &taskmgr));
- CHECK(isc_timermgr_create(mctx, &timermgr));
- CHECK(isc_socketmgr_create(mctx, &socketmgr));
- CHECK(isc_task_create(taskmgr, 0, &maintask));
- return (ISC_R_SUCCESS);
-
- cleanup:
- cleanup_managers();
- return (result);
-}
-
-isc_result_t
-dns_test_begin(FILE *logfile, isc_boolean_t start_managers) {
- isc_result_t result;
-
- if (start_managers)
- CHECK(isc_app_start());
- if (debug_mem_record)
- isc_mem_debugging |= ISC_MEM_DEBUGRECORD;
- CHECK(isc_mem_create(0, 0, &mctx));
- CHECK(isc_entropy_create(mctx, &ectx));
-
- CHECK(isc_hash_create(mctx, ectx, DNS_NAME_MAXWIRE));
- hash_active = ISC_TRUE;
-
- CHECK(dst_lib_init(mctx, ectx, ISC_ENTROPY_BLOCKING));
- dst_active = ISC_TRUE;
-
- if (logfile != NULL) {
- isc_logdestination_t destination;
- isc_logconfig_t *logconfig = NULL;
-
- CHECK(isc_log_create(mctx, &lctx, &logconfig));
- isc_log_registercategories(lctx, categories);
- isc_log_setcontext(lctx);
- dns_log_init(lctx);
- dns_log_setcontext(lctx);
-
- destination.file.stream = logfile;
- destination.file.name = NULL;
- destination.file.versions = ISC_LOG_ROLLNEVER;
- destination.file.maximum_size = 0;
- CHECK(isc_log_createchannel(logconfig, "stderr",
- ISC_LOG_TOFILEDESC,
- ISC_LOG_DYNAMIC,
- &destination, 0));
- CHECK(isc_log_usechannel(logconfig, "stderr", NULL, NULL));
- }
-
- dns_result_register();
-
- if (start_managers)
- CHECK(create_managers());
-
- /*
- * atf-run changes us to a /tmp directory, so tests
- * that access test data files must first chdir to the proper
- * location.
- */
- if (chdir(TESTS) == -1)
- CHECK(ISC_R_FAILURE);
-
- return (ISC_R_SUCCESS);
-
- cleanup:
- dns_test_end();
- return (result);
-}
-
-void
-dns_test_end(void) {
- if (lctx != NULL)
- isc_log_destroy(&lctx);
- if (dst_active) {
- dst_lib_destroy();
- dst_active = ISC_FALSE;
- }
- if (hash_active) {
- isc_hash_destroy();
- hash_active = ISC_FALSE;
- }
- if (ectx != NULL)
- isc_entropy_detach(&ectx);
-
- cleanup_managers();
-
- if (mctx != NULL)
- isc_mem_destroy(&mctx);
-}
-
-/*
- * Create a zone with origin 'name', return a pointer to the zone object in
- * 'zonep'. If 'view' is set, add the zone to that view; otherwise, create
- * a new view for the purpose.
- *
- * If the created view is going to be needed by the caller subsequently,
- * then 'keepview' should be set to true; this will prevent the view
- * from being detached. In this case, the caller is responsible for
- * detaching the view.
- */
-isc_result_t
-dns_test_makezone(const char *name, dns_zone_t **zonep, dns_view_t *view,
- isc_boolean_t keepview)
-{
- isc_result_t result;
- dns_zone_t *zone = NULL;
- isc_buffer_t buffer;
- dns_fixedname_t fixorigin;
- dns_name_t *origin;
-
- if (view == NULL)
- CHECK(dns_view_create(mctx, dns_rdataclass_in, "view", &view));
- else if (!keepview)
- keepview = ISC_TRUE;
-
- zone = *zonep;
- if (zone == NULL)
- CHECK(dns_zone_create(&zone, mctx));
-
- isc_buffer_constinit(&buffer, name, strlen(name));
- isc_buffer_add(&buffer, strlen(name));
- dns_fixedname_init(&fixorigin);
- origin = dns_fixedname_name(&fixorigin);
- CHECK(dns_name_fromtext(origin, &buffer, dns_rootname, 0, NULL));
- CHECK(dns_zone_setorigin(zone, origin));
- dns_zone_setview(zone, view);
- dns_zone_settype(zone, dns_zone_master);
- dns_zone_setclass(zone, view->rdclass);
- dns_view_addzone(view, zone);
-
- if (!keepview)
- dns_view_detach(&view);
-
- *zonep = zone;
-
- return (ISC_R_SUCCESS);
-
- cleanup:
- if (zone != NULL)
- dns_zone_detach(&zone);
- if (view != NULL)
- dns_view_detach(&view);
- return (result);
-}
-
-isc_result_t
-dns_test_setupzonemgr(void) {
- isc_result_t result;
- REQUIRE(zonemgr == NULL);
-
- result = dns_zonemgr_create(mctx, taskmgr, timermgr, socketmgr,
- &zonemgr);
- return (result);
-}
-
-isc_result_t
-dns_test_managezone(dns_zone_t *zone) {
- isc_result_t result;
- REQUIRE(zonemgr != NULL);
-
- result = dns_zonemgr_setsize(zonemgr, 1);
- if (result != ISC_R_SUCCESS)
- return (result);
-
- result = dns_zonemgr_managezone(zonemgr, zone);
- return (result);
-}
-
-void
-dns_test_releasezone(dns_zone_t *zone) {
- REQUIRE(zonemgr != NULL);
- dns_zonemgr_releasezone(zonemgr, zone);
-}
-
-void
-dns_test_closezonemgr(void) {
- REQUIRE(zonemgr != NULL);
-
- dns_zonemgr_shutdown(zonemgr);
- dns_zonemgr_detach(&zonemgr);
-}
-
-/*
- * Sleep for 'usec' microseconds.
- */
-void
-dns_test_nap(isc_uint32_t usec) {
-#ifdef HAVE_NANOSLEEP
- struct timespec ts;
-
- ts.tv_sec = usec / 1000000;
- ts.tv_nsec = (usec % 1000000) * 1000;
- nanosleep(&ts, NULL);
-#elif HAVE_USLEEP
- usleep(usec);
-#else
- /*
- * No fractional-second sleep function is available, so we
- * round up to the nearest second and sleep instead
- */
- sleep((usec / 1000000) + 1);
-#endif
-}
-
-isc_result_t
-dns_test_loaddb(dns_db_t **db, dns_dbtype_t dbtype, const char *origin,
- const char *testfile)
-{
- isc_result_t result;
- dns_fixedname_t fixed;
- dns_name_t *name;
-
- dns_fixedname_init(&fixed);
- name = dns_fixedname_name(&fixed);
-
- result = dns_name_fromstring(name, origin, 0, NULL);
- if (result != ISC_R_SUCCESS)
- return(result);
-
- result = dns_db_create(mctx, "rbt", name, dbtype, dns_rdataclass_in,
- 0, NULL, db);
- if (result != ISC_R_SUCCESS)
- return (result);
-
- result = dns_db_load(*db, testfile);
- return (result);
-}
diff --git a/usr.sbin/bind/lib/dns/tests/dnstest.h b/usr.sbin/bind/lib/dns/tests/dnstest.h
deleted file mode 100644
index 49e67ae4b98..00000000000
--- a/usr.sbin/bind/lib/dns/tests/dnstest.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * Copyright (C) 2011, 2012, 2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: dnstest.h,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <isc/buffer.h>
-#include <isc/entropy.h>
-#include <isc/hash.h>
-#include <isc/log.h>
-#include <isc/mem.h>
-#include <isc/string.h>
-#include <isc/task.h>
-#include <isc/timer.h>
-#include <isc/util.h>
-
-#include <dns/result.h>
-#include <dns/zone.h>
-
-#define CHECK(r) \
- do { \
- result = (r); \
- if (result != ISC_R_SUCCESS) \
- goto cleanup; \
- } while (0)
-
-extern isc_mem_t *mctx;
-extern isc_entropy_t *ectx;
-extern isc_log_t *lctx;
-extern isc_taskmgr_t *taskmgr;
-extern isc_task_t *maintask;
-extern isc_timermgr_t *timermgr;
-extern isc_socketmgr_t *socketmgr;
-extern dns_zonemgr_t *zonemgr;
-extern isc_boolean_t app_running;
-extern int ncpus;
-extern isc_boolean_t debug_mem_record;
-
-isc_result_t
-dns_test_begin(FILE *logfile, isc_boolean_t create_managers);
-
-void
-dns_test_end(void);
-
-isc_result_t
-dns_test_makezone(const char *name, dns_zone_t **zonep, dns_view_t *view,
- isc_boolean_t keepview);
-
-isc_result_t
-dns_test_setupzonemgr(void);
-
-isc_result_t
-dns_test_managezone(dns_zone_t *zone);
-
-void
-dns_test_releasezone(dns_zone_t *zone);
-
-void
-dns_test_closezonemgr(void);
-
-void
-dns_test_nap(isc_uint32_t usec);
-
-isc_result_t
-dns_test_loaddb(dns_db_t **db, dns_dbtype_t dbtype, const char *origin,
- const char *testfile);
diff --git a/usr.sbin/bind/lib/dns/tests/geoip_test.c b/usr.sbin/bind/lib/dns/tests/geoip_test.c
deleted file mode 100644
index 360b50afe80..00000000000
--- a/usr.sbin/bind/lib/dns/tests/geoip_test.c
+++ /dev/null
@@ -1,695 +0,0 @@
-/*
- * Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: geoip_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <isc/print.h>
-#include <isc/types.h>
-
-#include <dns/geoip.h>
-
-#include "dnstest.h"
-
-#ifdef HAVE_GEOIP
-#include <GeoIP.h>
-
-/* We use GeoIP databases from the 'geoip' system test */
-#define TEST_GEOIP_DATA "../../../bin/tests/system/geoip/data"
-
-/*
- * Helper functions
- * (Mostly copied from bin/named/geoip.c)
- */
-static dns_geoip_databases_t geoip = {
- NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
-};
-
-static void
-init_geoip_db(GeoIP **dbp, GeoIPDBTypes edition, GeoIPDBTypes fallback,
- GeoIPOptions method, const char *name)
-{
- char *info;
- GeoIP *db;
-
- REQUIRE(dbp != NULL);
-
- db = *dbp;
-
- if (db != NULL) {
- GeoIP_delete(db);
- db = *dbp = NULL;
- }
-
- if (! GeoIP_db_avail(edition)) {
- fprintf(stderr, "GeoIP %s (type %d) DB not available\n",
- name, edition);
- goto fail;
- }
-
- fprintf(stderr, "initializing GeoIP %s (type %d) DB\n",
- name, edition);
-
- db = GeoIP_open_type(edition, method);
- if (db == NULL) {
- fprintf(stderr,
- "failed to initialize GeoIP %s (type %d) DB%s\n",
- name, edition, fallback == 0
- ? "; geoip matches using this database will fail"
- : "");
- goto fail;
- }
-
- info = GeoIP_database_info(db);
- if (info != NULL)
- fprintf(stderr, "%s\n", info);
-
- *dbp = db;
- return;
-
- fail:
- if (fallback != 0)
- init_geoip_db(dbp, fallback, 0, method, name);
-}
-
-static void
-load_geoip(const char *dir) {
- GeoIPOptions method;
-
-#ifdef _WIN32
- method = GEOIP_STANDARD;
-#else
- method = GEOIP_MMAP_CACHE;
-#endif
-
- if (dir != NULL) {
- char *p;
- DE_CONST(dir, p);
- GeoIP_setup_custom_directory(p);
- }
-
- init_geoip_db(&geoip.country_v4, GEOIP_COUNTRY_EDITION, 0,
- method, "Country (IPv4)");
-#ifdef HAVE_GEOIP_V6
- init_geoip_db(&geoip.country_v6, GEOIP_COUNTRY_EDITION_V6, 0,
- method, "Country (IPv6)");
-#endif
-
- init_geoip_db(&geoip.city_v4, GEOIP_CITY_EDITION_REV1,
- GEOIP_CITY_EDITION_REV0, method, "City (IPv4)");
-#if defined(HAVE_GEOIP_V6) && defined(HAVE_GEOIP_CITY_V6)
- init_geoip_db(&geoip.city_v6, GEOIP_CITY_EDITION_REV1_V6,
- GEOIP_CITY_EDITION_REV0_V6, method, "City (IPv6)");
-#endif
-
- init_geoip_db(&geoip.region, GEOIP_REGION_EDITION_REV1,
- GEOIP_REGION_EDITION_REV0, method, "Region");
- init_geoip_db(&geoip.isp, GEOIP_ISP_EDITION, 0,
- method, "ISP");
- init_geoip_db(&geoip.org, GEOIP_ORG_EDITION, 0,
- method, "Org");
- init_geoip_db(&geoip.as, GEOIP_ASNUM_EDITION, 0,
- method, "AS");
- init_geoip_db(&geoip.domain, GEOIP_DOMAIN_EDITION, 0,
- method, "Domain");
- init_geoip_db(&geoip.netspeed, GEOIP_NETSPEED_EDITION, 0,
- method, "NetSpeed");
-}
-
-static isc_boolean_t
-do_lookup_string(const char *addr, dns_geoip_subtype_t subtype,
- const char *string)
-{
- dns_geoip_elem_t elt;
- struct in_addr in4;
- isc_netaddr_t na;
-
- inet_pton(AF_INET, addr, &in4);
- isc_netaddr_fromin(&na, &in4);
-
- elt.subtype = subtype;
- strcpy(elt.as_string, string);
-
- return (dns_geoip_match(&na, &geoip, &elt));
-}
-
-static isc_boolean_t
-do_lookup_string_v6(const char *addr, dns_geoip_subtype_t subtype,
- const char *string)
-{
- dns_geoip_elem_t elt;
- struct in6_addr in6;
- isc_netaddr_t na;
-
- inet_pton(AF_INET6, addr, &in6);
- isc_netaddr_fromin6(&na, &in6);
-
- elt.subtype = subtype;
- strcpy(elt.as_string, string);
-
- return (dns_geoip_match(&na, &geoip, &elt));
-}
-
-static isc_boolean_t
-do_lookup_int(const char *addr, dns_geoip_subtype_t subtype, int id) {
- dns_geoip_elem_t elt;
- struct in_addr in4;
- isc_netaddr_t na;
-
- inet_pton(AF_INET, addr, &in4);
- isc_netaddr_fromin(&na, &in4);
-
- elt.subtype = subtype;
- elt.as_int = id;
-
- return (dns_geoip_match(&na, &geoip, &elt));
-}
-
-/*
- * Individual unit tests
- */
-
-/* GeoIP country matching */
-ATF_TC(country);
-ATF_TC_HEAD(country, tc) {
- atf_tc_set_md_var(tc, "descr", "test country database matching");
-}
-ATF_TC_BODY(country, tc) {
- isc_result_t result;
- isc_boolean_t match;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
-
- /* Use databases from the geoip system test */
- load_geoip(TEST_GEOIP_DATA);
-
- if (geoip.country_v4 == NULL) {
- dns_test_end();
- atf_tc_skip("Database not available");
- }
-
- match = do_lookup_string("10.53.0.1", dns_geoip_country_code, "AU");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.1",
- dns_geoip_country_code3, "AUS");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.1",
- dns_geoip_country_name, "Australia");
- ATF_CHECK(match);
-
- dns_test_end();
-}
-
-/* GeoIP country (ipv6) matching */
-ATF_TC(country_v6);
-ATF_TC_HEAD(country_v6, tc) {
- atf_tc_set_md_var(tc, "descr", "test country (ipv6) database matching");
-}
-ATF_TC_BODY(country_v6, tc) {
- isc_result_t result;
- isc_boolean_t match;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
-
- /* Use databases from the geoip system test */
- load_geoip(TEST_GEOIP_DATA);
-
- if (geoip.country_v6 == NULL) {
- dns_test_end();
- atf_tc_skip("Database not available");
- }
-
- match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
- dns_geoip_country_code, "AU");
- ATF_CHECK(match);
-
- match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
- dns_geoip_country_code3, "AUS");
- ATF_CHECK(match);
-
- match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
- dns_geoip_country_name, "Australia");
- ATF_CHECK(match);
-
- dns_test_end();
-}
-
-/* GeoIP city (ipv4) matching */
-ATF_TC(city);
-ATF_TC_HEAD(city, tc) {
- atf_tc_set_md_var(tc, "descr", "test city database matching");
-}
-ATF_TC_BODY(city, tc) {
- isc_result_t result;
- isc_boolean_t match;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
-
- /* Use databases from the geoip system test */
- load_geoip(TEST_GEOIP_DATA);
-
- if (geoip.city_v4 == NULL) {
- dns_test_end();
- atf_tc_skip("Database not available");
- }
-
- match = do_lookup_string("10.53.0.1",
- dns_geoip_city_continentcode, "NA");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.1",
- dns_geoip_city_countrycode, "US");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.1",
- dns_geoip_city_countrycode3, "USA");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.1",
- dns_geoip_city_countryname, "United States");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.1",
- dns_geoip_city_region, "CA");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.1",
- dns_geoip_city_regionname, "California");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.1",
- dns_geoip_city_name, "Redwood City");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.1",
- dns_geoip_city_postalcode, "94063");
- ATF_CHECK(match);
-
- match = do_lookup_int("10.53.0.1", dns_geoip_city_areacode, 650);
- ATF_CHECK(match);
-
- match = do_lookup_int("10.53.0.1", dns_geoip_city_metrocode, 807);
- ATF_CHECK(match);
-
- dns_test_end();
-}
-
-/* GeoIP city (ipv6) matching */
-ATF_TC(city_v6);
-ATF_TC_HEAD(city_v6, tc) {
- atf_tc_set_md_var(tc, "descr", "test city (ipv6) database matching");
-}
-ATF_TC_BODY(city_v6, tc) {
- isc_result_t result;
- isc_boolean_t match;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
-
- /* Use databases from the geoip system test */
- load_geoip(TEST_GEOIP_DATA);
-
- if (geoip.city_v6 == NULL) {
- dns_test_end();
- atf_tc_skip("Database not available");
- }
-
- match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
- dns_geoip_city_continentcode, "NA");
- ATF_CHECK(match);
-
- match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
- dns_geoip_city_countrycode, "US");
- ATF_CHECK(match);
-
- match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
- dns_geoip_city_countrycode3, "USA");
- ATF_CHECK(match);
-
- match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
- dns_geoip_city_countryname,
- "United States");
- ATF_CHECK(match);
-
- match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
- dns_geoip_city_region, "CA");
- ATF_CHECK(match);
-
- match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
- dns_geoip_city_regionname, "California");
- ATF_CHECK(match);
-
- match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
- dns_geoip_city_name, "Redwood City");
- ATF_CHECK(match);
-
- match = do_lookup_string_v6("fd92:7065:b8e:ffff::1",
- dns_geoip_city_postalcode, "94063");
- ATF_CHECK(match);
-
- dns_test_end();
-}
-
-
-/* GeoIP region matching */
-ATF_TC(region);
-ATF_TC_HEAD(region, tc) {
- atf_tc_set_md_var(tc, "descr", "test region database matching");
-}
-ATF_TC_BODY(region, tc) {
- isc_result_t result;
- isc_boolean_t match;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
-
- /* Use databases from the geoip system test */
- load_geoip(TEST_GEOIP_DATA);
-
- if (geoip.region == NULL) {
- dns_test_end();
- atf_tc_skip("Database not available");
- }
-
- match = do_lookup_string("10.53.0.1",
- dns_geoip_region_code, "CA");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.1",
- dns_geoip_region_name, "California");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.1",
- dns_geoip_region_countrycode, "US");
- ATF_CHECK(match);
-
- dns_test_end();
-}
-
-/*
- * GeoIP best-database matching
- * (With no specified databse and a city database available, answers
- * should come from city database. With city database unavailable, region
- * database. Region database unavailable, country database.)
- */
-ATF_TC(best);
-ATF_TC_HEAD(best, tc) {
- atf_tc_set_md_var(tc, "descr", "test best database matching");
-}
-ATF_TC_BODY(best, tc) {
- isc_result_t result;
- isc_boolean_t match;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
-
- /* Use databases from the geoip system test */
- load_geoip(TEST_GEOIP_DATA);
-
- if (geoip.region == NULL) {
- dns_test_end();
- atf_tc_skip("Database not available");
- }
-
- match = do_lookup_string("10.53.0.4",
- dns_geoip_countrycode, "US");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.4",
- dns_geoip_countrycode3, "USA");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.4",
- dns_geoip_countryname, "United States");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.4",
- dns_geoip_regionname, "Virginia");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.4",
- dns_geoip_region, "VA");
- ATF_CHECK(match);
-
- GeoIP_delete(geoip.city_v4);
- geoip.city_v4 = NULL;
-
- match = do_lookup_string("10.53.0.4",
- dns_geoip_countrycode, "AU");
- ATF_CHECK(match);
-
- /*
- * Note, region doesn't support code3 or countryname, so
- * the next two would be answered from the country database instead
- */
- match = do_lookup_string("10.53.0.4",
- dns_geoip_countrycode3, "CAN");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.4",
- dns_geoip_countryname, "Canada");
- ATF_CHECK(match);
-
- GeoIP_delete(geoip.region);
- geoip.region = NULL;
-
- match = do_lookup_string("10.53.0.4",
- dns_geoip_countrycode, "CA");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.4",
- dns_geoip_countrycode3, "CAN");
- ATF_CHECK(match);
-
- match = do_lookup_string("10.53.0.4",
- dns_geoip_countryname, "Canada");
- ATF_CHECK(match);
-
- dns_test_end();
-}
-
-
-/* GeoIP asnum matching */
-ATF_TC(asnum);
-ATF_TC_HEAD(asnum, tc) {
- atf_tc_set_md_var(tc, "descr", "test asnum database matching");
-}
-ATF_TC_BODY(asnum, tc) {
- isc_result_t result;
- isc_boolean_t match;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
-
- /* Use databases from the geoip system test */
- load_geoip(TEST_GEOIP_DATA);
-
- if (geoip.as == NULL) {
- dns_test_end();
- atf_tc_skip("Database not available");
- }
-
-
- match = do_lookup_string("10.53.0.3", dns_geoip_as_asnum,
- "AS100003 Three Network Labs");
- ATF_CHECK(match);
-
- dns_test_end();
-}
-
-/* GeoIP isp matching */
-ATF_TC(isp);
-ATF_TC_HEAD(isp, tc) {
- atf_tc_set_md_var(tc, "descr", "test isp database matching");
-}
-ATF_TC_BODY(isp, tc) {
- isc_result_t result;
- isc_boolean_t match;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
-
- /* Use databases from the geoip system test */
- load_geoip(TEST_GEOIP_DATA);
-
- if (geoip.isp == NULL) {
- dns_test_end();
- atf_tc_skip("Database not available");
- }
-
- match = do_lookup_string("10.53.0.1", dns_geoip_isp_name,
- "One Systems, Inc.");
- ATF_CHECK(match);
-
- dns_test_end();
-}
-
-/* GeoIP org matching */
-ATF_TC(org);
-ATF_TC_HEAD(org, tc) {
- atf_tc_set_md_var(tc, "descr", "test org database matching");
-}
-ATF_TC_BODY(org, tc) {
- isc_result_t result;
- isc_boolean_t match;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
-
- /* Use databases from the geoip system test */
- load_geoip(TEST_GEOIP_DATA);
-
- if (geoip.org == NULL) {
- dns_test_end();
- atf_tc_skip("Database not available");
- }
-
- match = do_lookup_string("10.53.0.2", dns_geoip_org_name,
- "Two Technology Ltd.");
- ATF_CHECK(match);
-
- dns_test_end();
-}
-
-/* GeoIP domain matching */
-ATF_TC(domain);
-ATF_TC_HEAD(domain, tc) {
- atf_tc_set_md_var(tc, "descr", "test domain database matching");
-}
-ATF_TC_BODY(domain, tc) {
- isc_result_t result;
- isc_boolean_t match;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
-
- /* Use databases from the geoip system test */
- load_geoip(TEST_GEOIP_DATA);
-
- if (geoip.domain == NULL) {
- dns_test_end();
- atf_tc_skip("Database not available");
- }
-
- match = do_lookup_string("10.53.0.4",
- dns_geoip_domain_name, "four.com");
- ATF_CHECK(match);
-
- dns_test_end();
-}
-
-/* GeoIP netspeed matching */
-ATF_TC(netspeed);
-ATF_TC_HEAD(netspeed, tc) {
- atf_tc_set_md_var(tc, "descr", "test netspeed database matching");
-}
-ATF_TC_BODY(netspeed, tc) {
- isc_result_t result;
- isc_boolean_t match;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
-
- /* Use databases from the geoip system test */
- load_geoip(TEST_GEOIP_DATA);
-
- if (geoip.netspeed == NULL) {
- dns_test_end();
- atf_tc_skip("Database not available");
- }
-
- match = do_lookup_int("10.53.0.1", dns_geoip_netspeed_id, 0);
- ATF_CHECK(match);
-
- match = do_lookup_int("10.53.0.2", dns_geoip_netspeed_id, 1);
- ATF_CHECK(match);
-
- match = do_lookup_int("10.53.0.3", dns_geoip_netspeed_id, 2);
- ATF_CHECK(match);
-
- match = do_lookup_int("10.53.0.4", dns_geoip_netspeed_id, 3);
- ATF_CHECK(match);
-
- dns_test_end();
-}
-#else
-ATF_TC(untested);
-ATF_TC_HEAD(untested, tc) {
- atf_tc_set_md_var(tc, "descr", "skipping geoip test");
-}
-ATF_TC_BODY(untested, tc) {
- UNUSED(tc);
- atf_tc_skip("GeoIP not available");
-}
-#endif
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
-#ifdef HAVE_GEOIP
- ATF_TP_ADD_TC(tp, country);
- ATF_TP_ADD_TC(tp, country_v6);
- ATF_TP_ADD_TC(tp, city);
- ATF_TP_ADD_TC(tp, city_v6);
- ATF_TP_ADD_TC(tp, region);
- ATF_TP_ADD_TC(tp, best);
- ATF_TP_ADD_TC(tp, asnum);
- ATF_TP_ADD_TC(tp, isp);
- ATF_TP_ADD_TC(tp, org);
- ATF_TP_ADD_TC(tp, domain);
- ATF_TP_ADD_TC(tp, netspeed);
-#else
- ATF_TP_ADD_TC(tp, untested);
-#endif
-
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/dns/tests/gost_test.c b/usr.sbin/bind/lib/dns/tests/gost_test.c
deleted file mode 100644
index 9c411a3c6b2..00000000000
--- a/usr.sbin/bind/lib/dns/tests/gost_test.c
+++ /dev/null
@@ -1,389 +0,0 @@
-/*
- * Copyright (C) 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: gost_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/* ! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <stdio.h>
-#include <string.h>
-
-#include <isc/util.h>
-#include <isc/print.h>
-#include <isc/string.h>
-
-#include "dnstest.h"
-
-#ifdef HAVE_OPENSSL_GOST
-#include "../dst_gost.h"
-#include <openssl/err.h>
-#include <openssl/objects.h>
-#include <openssl/rsa.h>
-#include <openssl/engine.h>
-#include <openssl/bn.h>
-#endif
-
-#ifdef HAVE_PKCS11_GOST
-#include "../dst_gost.h"
-#include <pk11/internal.h>
-#define WANT_GOST_PARAMS
-#include <pk11/constants.h>
-#include <pkcs11/pkcs11.h>
-#endif
-
-#if defined(HAVE_OPENSSL_GOST) || defined(HAVE_PKCS11_GOST)
-/*
- * Test data from Wikipedia GOST (hash function)
- */
-
-unsigned char digest[ISC_GOST_DIGESTLENGTH];
-unsigned char buffer[1024];
-const char *s;
-char str[2 * ISC_GOST_DIGESTLENGTH + 1];
-int i = 0;
-
-isc_result_t
-tohexstr(unsigned char *d, unsigned int len, char *out);
-/*
- * Precondition: a hexadecimal number in *d, the length of that number in len,
- * and a pointer to a character array to put the output (*out).
- * Postcondition: A String representation of the given hexadecimal number is
- * placed into the array *out
- *
- * 'out' MUST point to an array of at least len * 2 + 1
- *
- * Return values: ISC_R_SUCCESS if the operation is sucessful
- */
-
-isc_result_t
-tohexstr(unsigned char *d, unsigned int len, char *out) {
-
- out[0]='\0';
- char c_ret[] = "AA";
- unsigned int j;
- strcat(out, "0x");
- for (j = 0; j < len; j++) {
- sprintf(c_ret, "%02X", d[j]);
- strcat(out, c_ret);
- }
- strcat(out, "\0");
- return (ISC_R_SUCCESS);
-}
-
-
-#define TEST_INPUT(x) (x), sizeof(x)-1
-
-typedef struct hash_testcase {
- const char *input;
- size_t input_len;
- const char *result;
- int repeats;
-} hash_testcase_t;
-
-ATF_TC(isc_gost_md);
-ATF_TC_HEAD(isc_gost_md, tc) {
- atf_tc_set_md_var(tc, "descr",
- "GOST R 34.11-94 examples from Wikipedia");
-}
-ATF_TC_BODY(isc_gost_md, tc) {
- isc_gost_t gost;
- isc_result_t result;
-
- UNUSED(tc);
-
- /*
- * These are the various test vectors. All of these are passed
- * through the hash function and the results are compared to the
- * result specified here.
- */
- hash_testcase_t testcases[] = {
- /* Test 1 */
- {
- TEST_INPUT(""),
- "0x981E5F3CA30C841487830F84FB433E1"
- "3AC1101569B9C13584AC483234CD656C0",
- 1
- },
- /* Test 2 */
- {
- TEST_INPUT("a"),
- "0xE74C52DD282183BF37AF0079C9F7805"
- "5715A103F17E3133CEFF1AACF2F403011",
- 1
- },
- /* Test 3 */
- {
- TEST_INPUT("abc"),
- "0xB285056DBF18D7392D7677369524DD1"
- "4747459ED8143997E163B2986F92FD42C",
- 1
- },
- /* Test 4 */
- {
- TEST_INPUT("message digest"),
- "0xBC6041DD2AA401EBFA6E9886734174F"
- "EBDB4729AA972D60F549AC39B29721BA0",
- 1
- },
- /* Test 5 */
- {
- TEST_INPUT("The quick brown fox jumps "
- "over the lazy dog"),
- "0x9004294A361A508C586FE53D1F1B027"
- "46765E71B765472786E4770D565830A76",
- 1
- },
-
- /* Test 6 */
- {
- TEST_INPUT("ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
- "fghijklmnopqrstuvwxyz0123456789"),
- "0x73B70A39497DE53A6E08C67B6D4DB85"
- "3540F03E9389299D9B0156EF7E85D0F61",
- 1
- },
- /* Test 7 */
- {
- TEST_INPUT("1234567890123456789012345678901"
- "2345678901234567890123456789012"
- "345678901234567890"),
- "0x6BC7B38989B28CF93AE8842BF9D7529"
- "05910A7528A61E5BCE0782DE43E610C90",
- 1
- },
- /* Test 8 */
- {
- TEST_INPUT("This is message, length=32 bytes"),
- "0x2CEFC2F7B7BDC514E18EA57FA74FF35"
- "7E7FA17D652C75F69CB1BE7893EDE48EB",
- 1
- },
- /* Test 9 */
- {
- TEST_INPUT("Suppose the original message "
- "has length = 50 bytes"),
- "0xC3730C5CBCCACF915AC292676F21E8B"
- "D4EF75331D9405E5F1A61DC3130A65011",
- 1
- },
- /* Test 10 */
- {
- TEST_INPUT("U") /* times 128 */,
- "0x1C4AC7614691BBF427FA2316216BE8F"
- "10D92EDFD37CD1027514C1008F649C4E8",
- 128
- },
- /* Test 11 */
- {
- TEST_INPUT("a") /* times 1000000 */,
- "0x8693287AA62F9478F7CB312EC0866B6"
- "C4E4A0F11160441E8F4FFCD2715DD554F",
- 1000000
- },
- { NULL, 0, NULL, 1 }
- };
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
-
- hash_testcase_t *testcase = testcases;
-
- while (testcase->input != NULL && testcase->result != NULL) {
- result = isc_gost_init(&gost);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
- for(i = 0; i < testcase->repeats; i++) {
- result = isc_gost_update(&gost,
- (const isc_uint8_t *) testcase->input,
- testcase->input_len);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
- }
- result = isc_gost_final(&gost, digest);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
- tohexstr(digest, ISC_GOST_DIGESTLENGTH, str);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- }
-
- dns_test_end();
-}
-
-ATF_TC(isc_gost_private);
-ATF_TC_HEAD(isc_gost_private, tc) {
- atf_tc_set_md_var(tc, "descr", "GOST R 34.10-2001 private key");
-}
-ATF_TC_BODY(isc_gost_private, tc) {
- isc_result_t result;
- unsigned char privraw[31] = {
- 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
- 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10,
- 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
- 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e
- };
-#ifdef HAVE_OPENSSL_GOST
- unsigned char rbuf[32];
- unsigned char privasn1[70] = {
- 0x30, 0x44, 0x02, 0x01, 0x00, 0x30, 0x1c, 0x06,
- 0x06, 0x2a, 0x85, 0x03, 0x02, 0x02, 0x13, 0x30,
- 0x12, 0x06, 0x07, 0x2a, 0x85, 0x03, 0x02, 0x02,
- 0x23, 0x01, 0x06, 0x07, 0x2a, 0x85, 0x03, 0x02,
- 0x02, 0x1e, 0x01, 0x04, 0x21, 0x02, 0x1f, 0x01,
- 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,
- 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11,
- 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19,
- 0x1a, 0x1b, 0x1c, 0x1d, 0x1e
- };
- unsigned char abuf[71];
- unsigned char gost_dummy_key[71] = {
- 0x30, 0x45, 0x02, 0x01, 0x00, 0x30, 0x1c, 0x06,
- 0x06, 0x2a, 0x85, 0x03, 0x02, 0x02, 0x13, 0x30,
- 0x12, 0x06, 0x07, 0x2a, 0x85, 0x03, 0x02, 0x02,
- 0x23, 0x01, 0x06, 0x07, 0x2a, 0x85, 0x03, 0x02,
- 0x02, 0x1e, 0x01, 0x04, 0x22, 0x02, 0x20, 0x1b,
- 0x3f, 0x94, 0xf7, 0x1a, 0x5f, 0x2f, 0xe7, 0xe5,
- 0x74, 0x0b, 0x8c, 0xd4, 0xb7, 0x18, 0xdd, 0x65,
- 0x68, 0x26, 0xd1, 0x54, 0xfb, 0x77, 0xba, 0x63,
- 0x72, 0xd9, 0xf0, 0x63, 0x87, 0xe0, 0xd6
- };
- EVP_PKEY *pkey;
- EC_KEY *eckey;
- BIGNUM *privkey;
- const BIGNUM *privkey1;
- const unsigned char *p;
- int len;
- unsigned char *q;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
-
- /* raw parse */
- privkey = BN_bin2bn(privraw, (int) sizeof(privraw), NULL);
- ATF_REQUIRE(privkey != NULL);
- p = gost_dummy_key;
- pkey = NULL;
- ATF_REQUIRE(d2i_PrivateKey(NID_id_GostR3410_2001, &pkey, &p,
- (long) sizeof(gost_dummy_key)) != NULL);
- ATF_REQUIRE(pkey != NULL);
- ATF_REQUIRE(EVP_PKEY_bits(pkey) == 256);
- eckey = EVP_PKEY_get0(pkey);
- ATF_REQUIRE(eckey != NULL);
- ATF_REQUIRE(EC_KEY_set_private_key(eckey, privkey) == 1);
- BN_clear_free(privkey);
-
- /* asn1 tofile */
- len = i2d_PrivateKey(pkey, NULL);
- ATF_REQUIRE(len == 70);
- q = abuf;
- ATF_REQUIRE(i2d_PrivateKey(pkey, &q) == len);
- ATF_REQUIRE(memcmp(abuf, privasn1, len) == 0);
- EVP_PKEY_free(pkey);
-
- /* asn1 parse */
- p = privasn1;
- pkey = NULL;
- ATF_REQUIRE(d2i_PrivateKey(NID_id_GostR3410_2001, &pkey, &p,
- (long) len) != NULL);
- ATF_REQUIRE(pkey != NULL);
- eckey = EVP_PKEY_get0(pkey);
- ATF_REQUIRE(eckey != NULL);
- privkey1 = EC_KEY_get0_private_key(eckey);
- len = BN_num_bytes(privkey1);
- ATF_REQUIRE(len == 31);
- ATF_REQUIRE(BN_bn2bin(privkey1, rbuf) == len);
- ATF_REQUIRE(memcmp(rbuf, privraw, len) == 0);
-
- dns_test_end();
-#else
- CK_BBOOL truevalue = TRUE;
- CK_BBOOL falsevalue = FALSE;
- CK_OBJECT_CLASS keyClass = CKO_PRIVATE_KEY;
- CK_KEY_TYPE keyType = CKK_GOSTR3410;
- CK_ATTRIBUTE keyTemplate[] =
- {
- { CKA_CLASS, &keyClass, (CK_ULONG) sizeof(keyClass) },
- { CKA_KEY_TYPE, &keyType, (CK_ULONG) sizeof(keyType) },
- { CKA_TOKEN, &falsevalue, (CK_ULONG) sizeof(falsevalue) },
- { CKA_PRIVATE, &falsevalue, (CK_ULONG) sizeof(falsevalue) },
- { CKA_SENSITIVE, &falsevalue, (CK_ULONG) sizeof(falsevalue) },
- { CKA_SIGN, &truevalue, (CK_ULONG) sizeof(truevalue) },
- { CKA_VALUE, privraw, sizeof(privraw) },
- { CKA_GOSTR3410_PARAMS, pk11_gost_a_paramset,
- (CK_ULONG) sizeof(pk11_gost_a_paramset) },
- { CKA_GOSTR3411_PARAMS, pk11_gost_paramset,
- (CK_ULONG) sizeof(pk11_gost_paramset) }
- };
- CK_MECHANISM mech = { CKM_GOSTR3410_WITH_GOSTR3411, NULL, 0 };
- CK_BYTE sig[64];
- CK_ULONG siglen;
- pk11_context_t pk11_ctx;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
-
- /* create the private key */
- memset(&pk11_ctx, 0, sizeof(pk11_ctx));
- ATF_REQUIRE(pk11_get_session(&pk11_ctx, OP_GOST, ISC_TRUE,
- ISC_FALSE, ISC_FALSE, NULL,
- pk11_get_best_token(OP_GOST)) ==
- ISC_R_SUCCESS);
- pk11_ctx.object = CK_INVALID_HANDLE;
- pk11_ctx.ontoken = ISC_FALSE;
- ATF_REQUIRE(pkcs_C_CreateObject(pk11_ctx.session, keyTemplate,
- (CK_ULONG) 9, &pk11_ctx.object) ==
- CKR_OK);
- ATF_REQUIRE(pk11_ctx.object != CK_INVALID_HANDLE);
-
- /* sign something */
- ATF_REQUIRE(pkcs_C_SignInit(pk11_ctx.session, &mech,
- pk11_ctx.object) == CKR_OK);
- siglen = 0;
- ATF_REQUIRE(pkcs_C_Sign(pk11_ctx.session, sig, 64,
- NULL, &siglen) == CKR_OK);
- ATF_REQUIRE(siglen == 64);
- ATF_REQUIRE(pkcs_C_Sign(pk11_ctx.session, sig, 64,
- sig, &siglen) == CKR_OK);
- ATF_REQUIRE(siglen == 64);
-
- dns_test_end();
-#endif
-};
-#else
-ATF_TC(untested);
-ATF_TC_HEAD(untested, tc) {
- atf_tc_set_md_var(tc, "descr", "skipping gost test");
-}
-ATF_TC_BODY(untested, tc) {
- UNUSED(tc);
- atf_tc_skip("GOST not available");
-}
-#endif
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
-#if defined(HAVE_OPENSSL_GOST) || defined(HAVE_PKCS11_GOST)
- ATF_TP_ADD_TC(tp, isc_gost_md);
- ATF_TP_ADD_TC(tp, isc_gost_private);
-#else
- ATF_TP_ADD_TC(tp, untested);
-#endif
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/dns/tests/master_test.c b/usr.sbin/bind/lib/dns/tests/master_test.c
deleted file mode 100644
index fa19d294724..00000000000
--- a/usr.sbin/bind/lib/dns/tests/master_test.c
+++ /dev/null
@@ -1,689 +0,0 @@
-/*
- * Copyright (C) 2011-2013, 2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: master_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <stdio.h>
-#include <unistd.h>
-
-#include <isc/print.h>
-#include <isc/xml.h>
-
-#include <dns/cache.h>
-#include <dns/callbacks.h>
-#include <dns/db.h>
-#include <dns/master.h>
-#include <dns/masterdump.h>
-#include <dns/name.h>
-#include <dns/rdata.h>
-#include <dns/rdatalist.h>
-#include <dns/rdataset.h>
-
-#include "dnstest.h"
-
-/*
- * Helper functions
- */
-
-#define BUFLEN 255
-#define BIGBUFLEN (70 * 1024)
-#define TEST_ORIGIN "test"
-
-static dns_masterrawheader_t header;
-static isc_boolean_t headerset;
-
-dns_name_t dns_origin;
-char origin[sizeof(TEST_ORIGIN)];
-unsigned char name_buf[BUFLEN];
-dns_rdatacallbacks_t callbacks;
-char *include_file = NULL;
-
-static isc_result_t
-add_callback(void *arg, dns_name_t *owner, dns_rdataset_t *dataset);
-
-static void
-rawdata_callback(dns_zone_t *zone, dns_masterrawheader_t *header);
-
-static isc_result_t
-add_callback(void *arg, dns_name_t *owner, dns_rdataset_t *dataset) {
- char buf[BIGBUFLEN];
- isc_buffer_t target;
- isc_result_t result;
-
- UNUSED(arg);
-
- isc_buffer_init(&target, buf, BIGBUFLEN);
- result = dns_rdataset_totext(dataset, owner, ISC_FALSE, ISC_FALSE,
- &target);
- return(result);
-}
-
-static void
-rawdata_callback(dns_zone_t *zone, dns_masterrawheader_t *h) {
- UNUSED(zone);
- header = *h;
- headerset = ISC_TRUE;
-}
-
-static isc_result_t
-setup_master(void (*warn)(struct dns_rdatacallbacks *, const char *, ...),
- void (*error)(struct dns_rdatacallbacks *, const char *, ...))
-{
- isc_result_t result;
- int len;
- isc_buffer_t source;
- isc_buffer_t target;
-
- strcpy(origin, TEST_ORIGIN);
- len = strlen(origin);
- isc_buffer_init(&source, origin, len);
- isc_buffer_add(&source, len);
- isc_buffer_setactive(&source, len);
- isc_buffer_init(&target, name_buf, BUFLEN);
- dns_name_init(&dns_origin, NULL);
- dns_master_initrawheader(&header);
-
- result = dns_name_fromtext(&dns_origin, &source, dns_rootname,
- 0, &target);
- if (result != ISC_R_SUCCESS)
- return(result);
-
- dns_rdatacallbacks_init_stdio(&callbacks);
- callbacks.add = add_callback;
- callbacks.rawdata = rawdata_callback;
- callbacks.zone = NULL;
- if (warn != NULL)
- callbacks.warn = warn;
- if (error != NULL)
- callbacks.error = error;
- headerset = ISC_FALSE;
- return (result);
-}
-
-static isc_result_t
-test_master(const char *testfile, dns_masterformat_t format,
- void (*warn)(struct dns_rdatacallbacks *, const char *, ...),
- void (*error)(struct dns_rdatacallbacks *, const char *, ...))
-{
- isc_result_t result;
-
- result = setup_master(warn, error);
- if (result != ISC_R_SUCCESS)
- return(result);
-
- result = dns_master_loadfile2(testfile, &dns_origin, &dns_origin,
- dns_rdataclass_in, ISC_TRUE,
- &callbacks, mctx, format);
- return (result);
-}
-
-static void
-include_callback(const char *filename, void *arg) {
- char **argp = (char **) arg;
- *argp = isc_mem_strdup(mctx, filename);
-}
-
-/*
- * Individual unit tests
- */
-
-/* Successful load test */
-ATF_TC(load);
-ATF_TC_HEAD(load, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() loads a "
- "valid master file and returns success");
-}
-ATF_TC_BODY(load, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("testdata/master/master1.data",
- dns_masterformat_text, NULL, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_test_end();
-}
-
-
-/* Unepxected end of file test */
-ATF_TC(unexpected);
-ATF_TC_HEAD(unexpected, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() returns "
- "DNS_R_UNEXPECTED when file ends "
- "too soon");
-}
-ATF_TC_BODY(unexpected, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("testdata/master/master2.data",
- dns_masterformat_text, NULL, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_UNEXPECTEDEND);
-
- dns_test_end();
-}
-
-
-/* No owner test */
-ATF_TC(noowner);
-ATF_TC_HEAD(noowner, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() accepts broken "
- "zones with no TTL for first record "
- "if it is an SOA");
-}
-ATF_TC_BODY(noowner, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("testdata/master/master3.data",
- dns_masterformat_text, NULL, NULL);
- ATF_REQUIRE_EQ(result, DNS_R_NOOWNER);
-
- dns_test_end();
-}
-
-
-/* No TTL test */
-ATF_TC(nottl);
-ATF_TC_HEAD(nottl, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() returns "
- "DNS_R_NOOWNER when no owner name "
- "is specified");
-}
-
-ATF_TC_BODY(nottl, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("testdata/master/master4.data",
- dns_masterformat_text, NULL, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_test_end();
-}
-
-
-/* Bad class test */
-ATF_TC(badclass);
-ATF_TC_HEAD(badclass, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() returns "
- "DNS_R_BADCLASS when record class "
- "doesn't match zone class");
-}
-ATF_TC_BODY(badclass, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("testdata/master/master5.data",
- dns_masterformat_text, NULL, NULL);
- ATF_REQUIRE_EQ(result, DNS_R_BADCLASS);
-
- dns_test_end();
-}
-
-/* Too big rdata test */
-ATF_TC(toobig);
-ATF_TC_HEAD(toobig, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() returns "
- "ISC_R_NOSPACE when record is too big");
-}
-ATF_TC_BODY(toobig, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("testdata/master/master15.data",
- dns_masterformat_text, NULL, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_NOSPACE);
-
- dns_test_end();
-}
-
-/* Maximum rdata test */
-ATF_TC(maxrdata);
-ATF_TC_HEAD(maxrdata, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() returns "
- "ISC_R_SUCCESS when record is maximum "
- "size");
-}
-ATF_TC_BODY(maxrdata, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("testdata/master/master16.data",
- dns_masterformat_text, NULL, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_test_end();
-}
-
-/* DNSKEY test */
-ATF_TC(dnskey);
-ATF_TC_HEAD(dnskey, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() understands "
- "DNSKEY with key material");
-}
-ATF_TC_BODY(dnskey, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("testdata/master/master6.data",
- dns_masterformat_text, NULL, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_test_end();
-}
-
-
-/* DNSKEY with no key material test */
-ATF_TC(dnsnokey);
-ATF_TC_HEAD(dnsnokey, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() understands "
- "DNSKEY with no key material");
-}
-ATF_TC_BODY(dnsnokey, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("testdata/master/master7.data",
- dns_masterformat_text, NULL, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_test_end();
-}
-
-/* Include test */
-ATF_TC(include);
-ATF_TC_HEAD(include, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() understands "
- "$INCLUDE");
-}
-ATF_TC_BODY(include, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("testdata/master/master8.data",
- dns_masterformat_text, NULL, NULL);
- ATF_REQUIRE_EQ(result, DNS_R_SEENINCLUDE);
-
- dns_test_end();
-}
-
-/* Include file list test */
-ATF_TC(master_includelist);
-ATF_TC_HEAD(master_includelist, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile4() returns "
- "names of included file");
-}
-ATF_TC_BODY(master_includelist, tc) {
- isc_result_t result;
- char *filename = NULL;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = setup_master(NULL, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_master_loadfile4("testdata/master/master8.data",
- &dns_origin, &dns_origin,
- dns_rdataclass_in, 0, ISC_TRUE,
- &callbacks, include_callback,
- &filename, mctx, dns_masterformat_text);
- ATF_CHECK_EQ(result, DNS_R_SEENINCLUDE);
- ATF_CHECK(filename != NULL);
- if (filename != NULL) {
- ATF_CHECK_STREQ(filename, "testdata/master/master7.data");
- isc_mem_free(mctx, filename);
- }
-
- dns_test_end();
-}
-
-/* Include failure test */
-ATF_TC(includefail);
-ATF_TC_HEAD(includefail, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() understands "
- "$INCLUDE failures");
-}
-ATF_TC_BODY(includefail, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("testdata/master/master9.data",
- dns_masterformat_text, NULL, NULL);
- ATF_REQUIRE_EQ(result, DNS_R_BADCLASS);
-
- dns_test_end();
-}
-
-
-/* Non-empty blank lines test */
-ATF_TC(blanklines);
-ATF_TC_HEAD(blanklines, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() handles "
- "non-empty blank lines");
-}
-ATF_TC_BODY(blanklines, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("testdata/master/master10.data",
- dns_masterformat_text, NULL, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_test_end();
-}
-
-/* SOA leading zeroes test */
-ATF_TC(leadingzero);
-ATF_TC_HEAD(leadingzero, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() allows "
- "leading zeroes in SOA");
-}
-ATF_TC_BODY(leadingzero, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("testdata/master/master11.data",
- dns_masterformat_text, NULL, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_test_end();
-}
-
-ATF_TC(totext);
-ATF_TC_HEAD(totext, tc) {
- atf_tc_set_md_var(tc, "descr", "masterfile totext tests");
-}
-ATF_TC_BODY(totext, tc) {
- isc_result_t result;
- dns_rdataset_t rdataset;
- dns_rdatalist_t rdatalist;
- isc_buffer_t target;
- unsigned char buf[BIGBUFLEN];
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* First, test with an empty rdataset */
- dns_rdatalist_init(&rdatalist);
- rdatalist.rdclass = dns_rdataclass_in;
- rdatalist.type = dns_rdatatype_none;
- rdatalist.covers = dns_rdatatype_none;
-
- dns_rdataset_init(&rdataset);
- result = dns_rdatalist_tordataset(&rdatalist, &rdataset);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- isc_buffer_init(&target, buf, BIGBUFLEN);
- result = dns_master_rdatasettotext(dns_rootname,
- &rdataset, &dns_master_style_debug,
- &target);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK_EQ(isc_buffer_usedlength(&target), 0);
-
- /*
- * XXX: We will also need to add tests for dumping various
- * rdata types, classes, etc, and comparing the results against
- * known-good output.
- */
-
- dns_test_end();
-}
-
-/* Raw load */
-ATF_TC(loadraw);
-ATF_TC_HEAD(loadraw, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() loads a "
- "valid raw file and returns success");
-}
-ATF_TC_BODY(loadraw, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* Raw format version 0 */
- result = test_master("testdata/master/master12.data",
- dns_masterformat_raw, NULL, NULL);
- ATF_CHECK_STREQ(isc_result_totext(result), "success");
- ATF_CHECK(headerset);
- ATF_CHECK_EQ(header.flags, 0);
-
- /* Raw format version 1, no source serial */
- result = test_master("testdata/master/master13.data",
- dns_masterformat_raw, NULL, NULL);
- ATF_CHECK_STREQ(isc_result_totext(result), "success");
- ATF_CHECK(headerset);
- ATF_CHECK_EQ(header.flags, 0);
-
- /* Raw format version 1, source serial == 2011120101 */
- result = test_master("testdata/master/master14.data",
- dns_masterformat_raw, NULL, NULL);
- ATF_CHECK_STREQ(isc_result_totext(result), "success");
- ATF_CHECK(headerset);
- ATF_CHECK((header.flags & DNS_MASTERRAW_SOURCESERIALSET) != 0);
- ATF_CHECK_EQ(header.sourceserial, 2011120101);
-
- dns_test_end();
-}
-
-/* Raw dump*/
-ATF_TC(dumpraw);
-ATF_TC_HEAD(dumpraw, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_dump*() functions "
- "dump valid raw files");
-}
-ATF_TC_BODY(dumpraw, tc) {
- isc_result_t result;
- dns_db_t *db = NULL;
- dns_dbversion_t *version = NULL;
- char myorigin[sizeof(TEST_ORIGIN)];
- dns_name_t dnsorigin;
- isc_buffer_t source, target;
- unsigned char namebuf[BUFLEN];
- int len;
-
- UNUSED(tc);
-
- strcpy(myorigin, TEST_ORIGIN);
- len = strlen(myorigin);
- isc_buffer_init(&source, myorigin, len);
- isc_buffer_add(&source, len);
- isc_buffer_setactive(&source, len);
- isc_buffer_init(&target, namebuf, BUFLEN);
- dns_name_init(&dnsorigin, NULL);
- result = dns_name_fromtext(&dnsorigin, &source, dns_rootname,
- 0, &target);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_db_create(mctx, "rbt", &dnsorigin, dns_dbtype_zone,
- dns_rdataclass_in, 0, NULL, &db);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_db_load(db, "testdata/master/master1.data");
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_db_currentversion(db, &version);
-
- result = dns_master_dump2(mctx, db, version,
- &dns_master_style_default, "test.dump",
- dns_masterformat_raw);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("test.dump", dns_masterformat_raw, NULL, NULL);
- ATF_CHECK_STREQ(isc_result_totext(result), "success");
- ATF_CHECK(headerset);
- ATF_CHECK_EQ(header.flags, 0);
-
- dns_master_initrawheader(&header);
- header.sourceserial = 12345;
- header.flags |= DNS_MASTERRAW_SOURCESERIALSET;
-
- unlink("test.dump");
- result = dns_master_dump3(mctx, db, version,
- &dns_master_style_default, "test.dump",
- dns_masterformat_raw, &header);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = test_master("test.dump", dns_masterformat_raw, NULL, NULL);
- ATF_CHECK_STREQ(isc_result_totext(result), "success");
- ATF_CHECK(headerset);
- ATF_CHECK((header.flags & DNS_MASTERRAW_SOURCESERIALSET) != 0);
- ATF_CHECK_EQ(header.sourceserial, 12345);
-
- unlink("test.dump");
- dns_db_closeversion(db, &version, ISC_FALSE);
- dns_db_detach(&db);
- dns_test_end();
-}
-
-static const char *warn_expect_value;
-static isc_boolean_t warn_expect_result;
-
-static void
-warn_expect(struct dns_rdatacallbacks *mycallbacks, const char *fmt, ...) {
- char buf[4096];
- va_list ap;
-
- UNUSED(mycallbacks);
-
- va_start(ap, fmt);
- vsnprintf(buf, sizeof(buf), fmt, ap);
- va_end(ap);
- if (warn_expect_value != NULL && strstr(buf, warn_expect_value) != NULL)
- warn_expect_result = ISC_TRUE;
-}
-
-/* Origin change test */
-ATF_TC(neworigin);
-ATF_TC_HEAD(neworigin, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() rejects "
- "zones with inherited name following "
- "$ORIGIN");
-}
-ATF_TC_BODY(neworigin, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- warn_expect_value = "record with inherited owner";
- warn_expect_result = ISC_FALSE;
- result = test_master("testdata/master/master17.data",
- dns_masterformat_text, warn_expect, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK_MSG(warn_expect_result, "'%s' warning not emitted",
- warn_expect_value);
-
- dns_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, load);
- ATF_TP_ADD_TC(tp, unexpected);
- ATF_TP_ADD_TC(tp, noowner);
- ATF_TP_ADD_TC(tp, nottl);
- ATF_TP_ADD_TC(tp, badclass);
- ATF_TP_ADD_TC(tp, dnskey);
- ATF_TP_ADD_TC(tp, dnsnokey);
- ATF_TP_ADD_TC(tp, include);
- ATF_TP_ADD_TC(tp, master_includelist);
- ATF_TP_ADD_TC(tp, includefail);
- ATF_TP_ADD_TC(tp, blanklines);
- ATF_TP_ADD_TC(tp, leadingzero);
- ATF_TP_ADD_TC(tp, totext);
- ATF_TP_ADD_TC(tp, loadraw);
- ATF_TP_ADD_TC(tp, dumpraw);
- ATF_TP_ADD_TC(tp, toobig);
- ATF_TP_ADD_TC(tp, maxrdata);
- ATF_TP_ADD_TC(tp, neworigin);
-
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/dns/tests/mkraw.pl b/usr.sbin/bind/lib/dns/tests/mkraw.pl
deleted file mode 100644
index f238cff39bc..00000000000
--- a/usr.sbin/bind/lib/dns/tests/mkraw.pl
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/perl -w
-#
-# Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-# $Id: mkraw.pl,v 1.1 2019/12/16 16:31:34 deraadt Exp $
-
-# Convert a hexdump to binary format.
-#
-# To convert binary data to the input format for this command,
-# use the following:
-#
-# perl -e 'while (read(STDIN, my $byte, 1)) {
-# print unpack("H2", $byte);
-# }
-# print "\n";' < file > file.in
-
-use strict;
-chomp(my $line = <STDIN>);
-print pack("H*", $line);
diff --git a/usr.sbin/bind/lib/dns/tests/name_test.c b/usr.sbin/bind/lib/dns/tests/name_test.c
deleted file mode 100644
index 5a6064505b5..00000000000
--- a/usr.sbin/bind/lib/dns/tests/name_test.c
+++ /dev/null
@@ -1,235 +0,0 @@
-/*
- * Copyright (C) 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: name_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <isc/os.h>
-#include <isc/print.h>
-#include <isc/thread.h>
-
-#include <dns/name.h>
-#include <dns/fixedname.h>
-#include "dnstest.h"
-
-/*
- * Individual unit tests
- */
-
-ATF_TC(fullcompare);
-ATF_TC_HEAD(fullcompare, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_name_fullcompare test");
-}
-ATF_TC_BODY(fullcompare, tc) {
- dns_fixedname_t fixed1;
- dns_fixedname_t fixed2;
- dns_name_t *name1;
- dns_name_t *name2;
- dns_namereln_t relation;
- int i;
- isc_result_t result;
- struct {
- const char *name1;
- const char *name2;
- dns_namereln_t relation;
- int order;
- unsigned int nlabels;
- } data[] = {
- /* relative */
- { "", "", dns_namereln_equal, 0, 0 },
- { "foo", "", dns_namereln_subdomain, 1, 0 },
- { "", "foo", dns_namereln_contains, -1, 0 },
- { "foo", "bar", dns_namereln_none, 4, 0 },
- { "bar", "foo", dns_namereln_none, -4, 0 },
- { "bar.foo", "foo", dns_namereln_subdomain, 1, 1 },
- { "foo", "bar.foo", dns_namereln_contains, -1, 1 },
- { "baz.bar.foo", "bar.foo", dns_namereln_subdomain, 1, 2 },
- { "bar.foo", "baz.bar.foo", dns_namereln_contains, -1, 2 },
- { "foo.example", "bar.example", dns_namereln_commonancestor,
- 4, 1 },
-
- /* absolute */
- { ".", ".", dns_namereln_equal, 0, 1 },
- { "foo.", "bar.", dns_namereln_commonancestor, 4, 1 },
- { "bar.", "foo.", dns_namereln_commonancestor, -4, 1 },
- { "foo.example.", "bar.example.", dns_namereln_commonancestor,
- 4, 2 },
- { "bar.foo.", "foo.", dns_namereln_subdomain, 1, 2 },
- { "foo.", "bar.foo.", dns_namereln_contains, -1, 2 },
- { "baz.bar.foo.", "bar.foo.", dns_namereln_subdomain, 1, 3 },
- { "bar.foo.", "baz.bar.foo.", dns_namereln_contains, -1, 3 },
- { NULL, NULL, dns_namereln_none, 0, 0 }
- };
-
- UNUSED(tc);
-
- dns_fixedname_init(&fixed1);
- name1 = dns_fixedname_name(&fixed1);
- dns_fixedname_init(&fixed2);
- name2 = dns_fixedname_name(&fixed2);
- for (i = 0; data[i].name1 != NULL; i++) {
- int order = 3000;
- unsigned int nlabels = 3000;
-
- if (data[i].name1[0] == 0) {
- dns_fixedname_init(&fixed1);
- } else {
- result = dns_name_fromstring2(name1, data[i].name1,
- NULL, 0, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- }
- if (data[i].name2[0] == 0) {
- dns_fixedname_init(&fixed2);
- } else {
- result = dns_name_fromstring2(name2, data[i].name2,
- NULL, 0, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- }
- relation = dns_name_fullcompare(name1, name1, &order, &nlabels);
- ATF_REQUIRE_EQ(relation, dns_namereln_equal);
- ATF_REQUIRE_EQ(order, 0);
- ATF_REQUIRE_EQ(nlabels, name1->labels);
-
- /* Some random initializer */
- order = 3001;
- nlabels = 3001;
-
- relation = dns_name_fullcompare(name1, name2, &order, &nlabels);
- ATF_REQUIRE_EQ(relation, data[i].relation);
- ATF_REQUIRE_EQ(order, data[i].order);
- ATF_REQUIRE_EQ(nlabels, data[i].nlabels);
- }
-}
-
-#ifdef ISC_PLATFORM_USETHREADS
-#ifdef DNS_BENCHMARK_TESTS
-
-/*
- * XXXMUKS: Don't delete this code. It is useful in benchmarking the
- * name parser, but we don't require it as part of the unit test runs.
- */
-
-ATF_TC(benchmark);
-ATF_TC_HEAD(benchmark, tc) {
- atf_tc_set_md_var(tc, "descr",
- "Benchmark dns_name_fromwire() implementation");
-}
-
-static void *
-fromwire_thread(void *arg) {
- unsigned int maxval = 32000000;
- uint8_t data[] = {
- 3, 'w', 'w', 'w',
- 7, 'e', 'x', 'a', 'm', 'p', 'l', 'e',
- 7, 'i', 'n', 'v', 'a', 'l', 'i', 'd',
- 0
- };
- unsigned char output_data[DNS_NAME_MAXWIRE];
- isc_buffer_t source, target;
- unsigned int i;
- dns_decompress_t dctx;
-
- UNUSED(arg);
-
- dns_decompress_init(&dctx, -1, DNS_DECOMPRESS_STRICT);
- dns_decompress_setmethods(&dctx, DNS_COMPRESS_NONE);
-
- isc_buffer_init(&source, data, sizeof(data));
- isc_buffer_add(&source, sizeof(data));
- isc_buffer_init(&target, output_data, sizeof(output_data));
-
- /* Parse 32 million names in each thread */
- for (i = 0; i < maxval; i++) {
- dns_name_t name;
-
- isc_buffer_clear(&source);
- isc_buffer_clear(&target);
- isc_buffer_add(&source, sizeof(data));
- isc_buffer_setactive(&source, sizeof(data));
-
- dns_name_init(&name, NULL);
- (void) dns_name_fromwire(&name, &source, &dctx, 0, &target);
- }
-
- return (NULL);
-}
-
-ATF_TC_BODY(benchmark, tc) {
- isc_result_t result;
- unsigned int i;
- isc_time_t ts1, ts2;
- double t;
- unsigned int nthreads;
- isc_thread_t threads[32];
-
- UNUSED(tc);
-
- debug_mem_record = ISC_FALSE;
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_time_now(&ts1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- nthreads = ISC_MIN(isc_os_ncpus(), 32);
- nthreads = ISC_MAX(nthreads, 1);
- for (i = 0; i < nthreads; i++) {
- result = isc_thread_create(fromwire_thread, NULL, &threads[i]);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- }
-
- for (i = 0; i < nthreads; i++) {
- result = isc_thread_join(threads[i], NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- }
-
- result = isc_time_now(&ts2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- t = isc_time_microdiff(&ts2, &ts1);
-
- printf("%u dns_name_fromwire() calls, %f seconds, %f calls/second\n",
- nthreads * 32000000, t / 1000000.0,
- (nthreads * 32000000) / (t / 1000000.0));
-
- dns_test_end();
-}
-
-#endif /* DNS_BENCHMARK_TESTS */
-#endif /* ISC_PLATFORM_USETHREADS */
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, fullcompare);
-#ifdef ISC_PLATFORM_USETHREADS
-#ifdef DNS_BENCHMARK_TESTS
- ATF_TP_ADD_TC(tp, benchmark);
-#endif /* DNS_BENCHMARK_TESTS */
-#endif /* ISC_PLATFORM_USETHREADS */
-
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/dns/tests/nsec3_test.c b/usr.sbin/bind/lib/dns/tests/nsec3_test.c
deleted file mode 100644
index 99b5ad5a491..00000000000
--- a/usr.sbin/bind/lib/dns/tests/nsec3_test.c
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * Copyright (C) 2012, 2014-2016 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: nsec3_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <dns/db.h>
-#include <dns/nsec3.h>
-
-#include "dnstest.h"
-
-#if defined(OPENSSL) || defined(PKCS11CRYPTO)
-/*
- * Helper functions
- */
-
-static void
-iteration_test(const char *file, unsigned int expected) {
- isc_result_t result;
- dns_db_t *db = NULL;
- unsigned int iterations;
-
- result = dns_test_loaddb(&db, dns_dbtype_zone, "test", file);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s", file);
-
- result = dns_nsec3_maxiterations(db, NULL, mctx, &iterations);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s", file);
-
- ATF_CHECK_EQ_MSG(iterations, expected, "%s", file);
-
- dns_db_detach(&db);
-}
-
-/*
- * Individual unit tests
- */
-
-ATF_TC(max_iterations);
-ATF_TC_HEAD(max_iterations, tc) {
- atf_tc_set_md_var(tc, "descr", "check that appropriate max iterations "
- " is returned for different key size mixes");
-}
-ATF_TC_BODY(max_iterations, tc) {
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- iteration_test("testdata/nsec3/1024.db", 150);
- iteration_test("testdata/nsec3/2048.db", 500);
- iteration_test("testdata/nsec3/4096.db", 2500);
- iteration_test("testdata/nsec3/min-1024.db", 150);
- iteration_test("testdata/nsec3/min-2048.db", 500);
-
- dns_test_end();
-}
-#else
-ATF_TC(untested);
-ATF_TC_HEAD(untested, tc) {
- atf_tc_set_md_var(tc, "descr", "skipping nsec3 test");
-}
-ATF_TC_BODY(untested, tc) {
- UNUSED(tc);
- atf_tc_skip("DNSSEC not available");
-}
-#endif
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
-#if defined(OPENSSL) || defined(PKCS11CRYPTO)
- ATF_TP_ADD_TC(tp, max_iterations);
-#else
- ATF_TP_ADD_TC(tp, untested);
-#endif
-
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/dns/tests/peer_test.c b/usr.sbin/bind/lib/dns/tests/peer_test.c
deleted file mode 100644
index 5f5bc538e95..00000000000
--- a/usr.sbin/bind/lib/dns/tests/peer_test.c
+++ /dev/null
@@ -1,145 +0,0 @@
-/*
- * Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <dns/peer.h>
-
-#include "dnstest.h"
-
-/*
- * Individual unit tests
- */
-ATF_TC(dscp);
-ATF_TC_HEAD(dscp, tc) {
- atf_tc_set_md_var(tc, "descr",
- "Test DSCP set/get functions");
-}
-ATF_TC_BODY(dscp, tc) {
- isc_result_t result;
- isc_netaddr_t netaddr;
- struct in_addr ina;
- dns_peer_t *peer = NULL;
- isc_dscp_t dscp;
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /*
- * Create peer structure for the loopback address.
- */
- ina.s_addr = INADDR_LOOPBACK;
- isc_netaddr_fromin(&netaddr, &ina);
- result = dns_peer_new(mctx, &netaddr, &peer);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /*
- * All should be not set on creation.
- * 'dscp' should remain unchanged.
- */
- dscp = 100;
- result = dns_peer_getquerydscp(peer, &dscp);
- ATF_REQUIRE_EQ(result, ISC_R_NOTFOUND);
- ATF_REQUIRE_EQ(dscp, 100);
-
- result = dns_peer_getnotifydscp(peer, &dscp);
- ATF_REQUIRE_EQ(result, ISC_R_NOTFOUND);
- ATF_REQUIRE_EQ(dscp, 100);
-
- result = dns_peer_gettransferdscp(peer, &dscp);
- ATF_REQUIRE_EQ(result, ISC_R_NOTFOUND);
- ATF_REQUIRE_EQ(dscp, 100);
-
- /*
- * Test that setting query dscp does not affect the other
- * dscp values. 'dscp' should remain unchanged until
- * dns_peer_getquerydscp is called.
- */
- dscp = 100;
- result = dns_peer_setquerydscp(peer, 1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_peer_getnotifydscp(peer, &dscp);
- ATF_REQUIRE_EQ(result, ISC_R_NOTFOUND);
- ATF_REQUIRE_EQ(dscp, 100);
-
- result = dns_peer_gettransferdscp(peer, &dscp);
- ATF_REQUIRE_EQ(result, ISC_R_NOTFOUND);
- ATF_REQUIRE_EQ(dscp, 100);
-
- result = dns_peer_getquerydscp(peer, &dscp);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(dscp, 1);
-
- /*
- * Test that setting notify dscp does not affect the other
- * dscp values. 'dscp' should remain unchanged until
- * dns_peer_getquerydscp is called then should change again
- * on dns_peer_getnotifydscp.
- */
- dscp = 100;
- result = dns_peer_setnotifydscp(peer, 2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_peer_gettransferdscp(peer, &dscp);
- ATF_REQUIRE_EQ(result, ISC_R_NOTFOUND);
- ATF_REQUIRE_EQ(dscp, 100);
-
- result = dns_peer_getquerydscp(peer, &dscp);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(dscp, 1);
-
- result = dns_peer_getnotifydscp(peer, &dscp);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(dscp, 2);
-
- /*
- * Test that setting notify dscp does not affect the other
- * dscp values. Check that appropriate values are returned.
- */
- dscp = 100;
- result = dns_peer_settransferdscp(peer, 3);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_peer_getquerydscp(peer, &dscp);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(dscp, 1);
-
- result = dns_peer_getnotifydscp(peer, &dscp);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(dscp, 2);
-
- result = dns_peer_gettransferdscp(peer, &dscp);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(dscp, 3);
-
- dns_peer_detach(&peer);
- dns_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, dscp);
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/dns/tests/private_test.c b/usr.sbin/bind/lib/dns/tests/private_test.c
deleted file mode 100644
index 54725cb5601..00000000000
--- a/usr.sbin/bind/lib/dns/tests/private_test.c
+++ /dev/null
@@ -1,225 +0,0 @@
-/*
- * Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: private_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <isc/buffer.h>
-
-#include <dns/nsec3.h>
-#include <dns/private.h>
-#include <dns/rdataclass.h>
-#include <dns/rdatatype.h>
-
-#include <dst/dst.h>
-
-#include "dnstest.h"
-
-static dns_rdatatype_t privatetype = 65534;
-
-typedef struct {
- unsigned char alg;
- dns_keytag_t keyid;
- isc_boolean_t remove;
- isc_boolean_t complete;
-} signing_testcase_t;
-
-typedef struct {
- unsigned char hash;
- unsigned char flags;
- unsigned int iterations;
- unsigned long salt;
- isc_boolean_t remove;
- isc_boolean_t pending;
- isc_boolean_t nonsec;
-} nsec3_testcase_t;
-
-/*
- * Helper functions
- */
-static void
-make_signing(signing_testcase_t *testcase, dns_rdata_t *private,
- unsigned char *buf, size_t len)
-{
- dns_rdata_init(private);
-
- buf[0] = testcase->alg;
- buf[1] = (testcase->keyid & 0xff00) >> 8;
- buf[2] = (testcase->keyid & 0xff);
- buf[3] = testcase->remove;
- buf[4] = testcase->complete;
- private->data = buf;
- private->length = len;
- private->type = privatetype;
- private->rdclass = dns_rdataclass_in;
-}
-
-static void
-make_nsec3(nsec3_testcase_t *testcase, dns_rdata_t *private,
- unsigned char *pbuf)
-{
- dns_rdata_nsec3param_t params;
- dns_rdata_t nsec3param = DNS_RDATA_INIT;
- unsigned char bufdata[BUFSIZ];
- isc_buffer_t buf;
- isc_uint32_t salt;
- unsigned char *sp;
- int slen = 4;
-
- /* for simplicity, we're using a maximum salt length of 4 */
- salt = htonl(testcase->salt);
- sp = (unsigned char *) &salt;
- while (*sp == '\0' && slen > 0) {
- slen--;
- sp++;
- }
-
- params.common.rdclass = dns_rdataclass_in;
- params.common.rdtype = dns_rdatatype_nsec3param;
- params.hash = testcase->hash;
- params.iterations = testcase->iterations;
- params.salt = sp;
- params.salt_length = slen;
-
- params.flags = testcase->flags;
- if (testcase->remove) {
- params.flags |= DNS_NSEC3FLAG_REMOVE;
- if (testcase->nonsec)
- params.flags |= DNS_NSEC3FLAG_NONSEC;
- } else {
- params.flags |= DNS_NSEC3FLAG_CREATE;
- if (testcase->pending)
- params.flags |= DNS_NSEC3FLAG_INITIAL;
- }
-
- isc_buffer_init(&buf, bufdata, sizeof(bufdata));
- dns_rdata_fromstruct(&nsec3param, dns_rdataclass_in,
- dns_rdatatype_nsec3param, &params, &buf);
-
- dns_rdata_init(private);
-
- dns_nsec3param_toprivate(&nsec3param, private, privatetype,
- pbuf, DNS_NSEC3PARAM_BUFFERSIZE + 1);
-}
-
-/*
- * Individual unit tests
- */
-ATF_TC(private_signing_totext);
-ATF_TC_HEAD(private_signing_totext, tc) {
- atf_tc_set_md_var(tc, "descr",
- "convert private signing records to text");
-}
-ATF_TC_BODY(private_signing_totext, tc) {
- isc_result_t result;
- dns_rdata_t private;
- int i;
-
- signing_testcase_t testcases[] = {
- { DST_ALG_RSASHA512, 12345, 0, 0 },
- { DST_ALG_RSASHA256, 54321, 1, 0 },
- { DST_ALG_NSEC3RSASHA1, 22222, 0, 1 },
- { DST_ALG_RSASHA1, 33333, 1, 1 }
- };
- const char *results[] = {
- "Signing with key 12345/RSASHA512",
- "Removing signatures for key 54321/RSASHA256",
- "Done signing with key 22222/NSEC3RSASHA1",
- "Done removing signatures for key 33333/RSASHA1"
- };
- int ncases = 4;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- for (i = 0; i < ncases; i++) {
- unsigned char data[5];
- char output[BUFSIZ];
- isc_buffer_t buf;
-
- isc_buffer_init(&buf, output, sizeof(output));
-
- make_signing(&testcases[i], &private, data, sizeof(data));
- dns_private_totext(&private, &buf);
- ATF_CHECK_STREQ(output, results[i]);
- }
-
- dns_test_end();
-}
-
-ATF_TC(private_nsec3_totext);
-ATF_TC_HEAD(private_nsec3_totext, tc) {
- atf_tc_set_md_var(tc, "descr", "convert private chain records to text");
-}
-ATF_TC_BODY(private_nsec3_totext, tc) {
- isc_result_t result;
- dns_rdata_t private;
- int i;
-
- nsec3_testcase_t testcases[] = {
- { 1, 0, 1, 0xbeef, 0, 0, 0 },
- { 1, 1, 10, 0xdadd, 0, 0, 0 },
- { 1, 0, 20, 0xbead, 0, 1, 0 },
- { 1, 0, 30, 0xdeaf, 1, 0, 0 },
- { 1, 0, 100, 0xfeedabee, 1, 0, 1 },
- };
- const char *results[] = {
- "Creating NSEC3 chain 1 0 1 BEEF",
- "Creating NSEC3 chain 1 1 10 DADD",
- "Pending NSEC3 chain 1 0 20 BEAD",
- "Removing NSEC3 chain 1 0 30 DEAF / creating NSEC chain",
- "Removing NSEC3 chain 1 0 100 FEEDABEE"
- };
- int ncases = 5;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- for (i = 0; i < ncases; i++) {
- unsigned char data[DNS_NSEC3PARAM_BUFFERSIZE + 1];
- char output[BUFSIZ];
- isc_buffer_t buf;
-
- isc_buffer_init(&buf, output, sizeof(output));
-
- make_nsec3(&testcases[i], &private, data);
- dns_private_totext(&private, &buf);
- ATF_CHECK_STREQ(output, results[i]);
- }
-
- dns_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, private_signing_totext);
- ATF_TP_ADD_TC(tp, private_nsec3_totext);
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/dns/tests/rbt_serialize_test.c b/usr.sbin/bind/lib/dns/tests/rbt_serialize_test.c
deleted file mode 100644
index a93d2b2422f..00000000000
--- a/usr.sbin/bind/lib/dns/tests/rbt_serialize_test.c
+++ /dev/null
@@ -1,465 +0,0 @@
-/*
- * Copyright (C) 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: rbt_serialize_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/* ! \file */
-
-#include <config.h>
-#include <atf-c.h>
-#include <isc/mem.h>
-#include <isc/print.h>
-#include <isc/random.h>
-#include <isc/string.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <sys/mman.h>
-
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h> /* uintptr_t */
-#endif
-
-#include <dns/rbt.h>
-#include <dns/fixedname.h>
-#include <dns/result.h>
-#include <dns/compress.h>
-#include "dnstest.h"
-
-#include <isc/app.h>
-#include <isc/buffer.h>
-#include <isc/entropy.h>
-#include <isc/file.h>
-#include <isc/hash.h>
-#include <isc/mem.h>
-#include <isc/os.h>
-#include <isc/string.h>
-#include <isc/socket.h>
-#include <isc/stdio.h>
-#include <isc/task.h>
-#include <isc/timer.h>
-#include <isc/util.h>
-
-#include <dns/log.h>
-#include <dns/name.h>
-#include <dns/result.h>
-
-#include <dst/dst.h>
-
-#ifndef MAP_FILE
-#define MAP_FILE 0
-#endif
-
-typedef struct data_holder {
- int len;
- const char *data;
-} data_holder_t;
-
-typedef struct rbt_testdata {
- const char *name;
- size_t name_len;
- data_holder_t data;
-} rbt_testdata_t;
-
-#define DATA_ITEM(name) { (name), sizeof(name) - 1, { sizeof(name), (name) } }
-
-rbt_testdata_t testdata[] = {
- DATA_ITEM("first.com."),
- DATA_ITEM("one.net."),
- DATA_ITEM("two.com."),
- DATA_ITEM("three.org."),
- DATA_ITEM("asdf.com."),
- DATA_ITEM("ghjkl.com."),
- DATA_ITEM("1.edu."),
- DATA_ITEM("2.edu."),
- DATA_ITEM("3.edu."),
- DATA_ITEM("123.edu."),
- DATA_ITEM("1236.com."),
- DATA_ITEM("and_so_forth.com."),
- DATA_ITEM("thisisalongname.com."),
- DATA_ITEM("a.b."),
- DATA_ITEM("test.net."),
- DATA_ITEM("whoknows.org."),
- DATA_ITEM("blargh.com."),
- DATA_ITEM("www.joe.com."),
- DATA_ITEM("test.com."),
- DATA_ITEM("isc.org."),
- DATA_ITEM("uiop.mil."),
- DATA_ITEM("last.fm."),
- { NULL, 0, { 0, NULL } }
-};
-
-static void
-delete_data(void *data, void *arg) {
- UNUSED(arg);
- UNUSED(data);
-}
-
-static isc_result_t
-write_data(FILE *file, unsigned char *datap, void *arg, isc_uint64_t *crc) {
- isc_result_t result;
- size_t ret = 0;
- data_holder_t *data = (data_holder_t *)datap;
- data_holder_t temp;
- off_t where;
-
- UNUSED(arg);
-
- REQUIRE(file != NULL);
- REQUIRE(crc != NULL);
- REQUIRE(data != NULL);
- REQUIRE((data->len == 0 && data->data == NULL) ||
- (data->len != 0 && data->data != NULL));
-
- result = isc_stdio_tell(file, &where);
- if (result != ISC_R_SUCCESS)
- return (result);
-
- temp = *data;
- temp.data = (data->len == 0
- ? NULL
- : (char *)((uintptr_t)where + sizeof(data_holder_t)));
-
- isc_crc64_update(crc, (void *)&temp, sizeof(temp));
- ret = fwrite(&temp, sizeof(data_holder_t), 1, file);
- if (ret != 1)
- return (ISC_R_FAILURE);
- if (data->len > 0) {
- isc_crc64_update(crc, (const void *)data->data, data->len);
- ret = fwrite(data->data, data->len, 1, file);
- if (ret != 1)
- return (ISC_R_FAILURE);
- }
-
- return (ISC_R_SUCCESS);
-}
-
-static isc_result_t
-fix_data(dns_rbtnode_t *p, void *base, size_t max, void *arg,
- isc_uint64_t *crc)
-{
- data_holder_t *data = p->data;
- size_t size;
-
- UNUSED(base);
- UNUSED(max);
- UNUSED(arg);
-
- REQUIRE(crc != NULL);
- REQUIRE(p != NULL);
-
-
- if (data == NULL)
- printf("fixing data: data NULL\n");
- else
- printf("fixing data: len %d, data %p\n", data->len, data->data);
-
- if (data == NULL ||
- (data->len == 0 && data->data != NULL) ||
- (data->len != 0 && data->data == NULL))
- return (ISC_R_INVALIDFILE);
-
- size = max - ((char *)p - (char *)base);
-
- if (data->len > (int) size || data->data > (const char *) max) {
- printf("data invalid\n");
- return (ISC_R_INVALIDFILE);
- }
-
- isc_crc64_update(crc, (void *)data, sizeof(*data));
-
- data->data = (data->len == 0)
- ? NULL
- : (char *)data + sizeof(data_holder_t);
-
- if (data->len > 0)
- isc_crc64_update(crc, (const void *)data->data, data->len);
-
- return (ISC_R_SUCCESS);
-}
-
-/*
- * Load test data into the RBT.
- */
-static void
-add_test_data(isc_mem_t *mymctx, dns_rbt_t *rbt) {
- char buffer[1024];
- isc_buffer_t b;
- isc_result_t result;
- dns_fixedname_t fname;
- dns_name_t *name;
- dns_compress_t cctx;
- rbt_testdata_t *testdatap = testdata;
-
- dns_compress_init(&cctx, -1, mymctx);
-
- while (testdatap->name != NULL && testdatap->data.data != NULL) {
- memmove(buffer, testdatap->name, testdatap->name_len);
-
- isc_buffer_init(&b, buffer, testdatap->name_len);
- isc_buffer_add(&b, testdatap->name_len);
- dns_fixedname_init(&fname);
- name = dns_fixedname_name(&fname);
- result = dns_name_fromtext(name, &b, dns_rootname, 0, NULL);
- if (result != ISC_R_SUCCESS) {
- testdatap++;
- continue;
- }
-
- if (name != NULL) {
- result = dns_rbt_addname(rbt, name, &testdatap->data);
- ATF_CHECK_STREQ(dns_result_totext(result), "success");
- }
- testdatap++;
- }
-
- dns_compress_invalidate(&cctx);
-}
-
-/*
- * Walk the tree and ensure that all the test nodes are present.
- */
-static void
-check_test_data(dns_rbt_t *rbt) {
- char buffer[1024];
- char *arg;
- dns_fixedname_t fname;
- dns_fixedname_t fixed;
- dns_name_t *name;
- isc_buffer_t b;
- data_holder_t *data;
- isc_result_t result;
- dns_name_t *foundname;
- rbt_testdata_t *testdatap = testdata;
-
- dns_fixedname_init(&fixed);
- foundname = dns_fixedname_name(&fixed);
-
- while (testdatap->name != NULL && testdatap->data.data != NULL) {
- memmove(buffer, testdatap->name, testdatap->name_len + 1);
- arg = buffer;
-
- isc_buffer_init(&b, arg, testdatap->name_len);
- isc_buffer_add(&b, testdatap->name_len);
- dns_fixedname_init(&fname);
- name = dns_fixedname_name(&fname);
- result = dns_name_fromtext(name, &b, dns_rootname, 0, NULL);
- if (result != ISC_R_SUCCESS) {
- testdatap++;
- continue;
- }
-
- data = NULL;
- result = dns_rbt_findname(rbt, name, 0, foundname,
- (void *) &data);
- ATF_CHECK_STREQ(dns_result_totext(result), "success");
-
- testdatap++;
- }
-}
-
-static void
-data_printer(FILE *out, void *datap)
-{
- data_holder_t *data = (data_holder_t *)datap;
-
- fprintf(out, "%d bytes, %s", data->len, data->data);
-}
-
-ATF_TC(serialize);
-ATF_TC_HEAD(serialize, tc) {
- atf_tc_set_md_var(tc, "descr", "Test writing an rbt to file");
-}
-ATF_TC_BODY(serialize, tc) {
- dns_rbt_t *rbt = NULL;
- isc_result_t result;
- FILE *rbtfile = NULL;
- dns_rbt_t *rbt_deserialized = NULL;
- off_t offset;
- int fd;
- off_t filesize = 0;
- char *base;
-
- UNUSED(tc);
-
- isc_mem_debugging = ISC_MEM_DEBUGRECORD;
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_CHECK_STREQ(dns_result_totext(result), "success");
- result = dns_rbt_create(mctx, delete_data, NULL, &rbt);
- ATF_CHECK_STREQ(dns_result_totext(result), "success");
-
- add_test_data(mctx, rbt);
-
- dns_rbt_printtext(rbt, data_printer, stdout);
-
- /*
- * Serialize the tree.
- */
- printf("serialization begins.\n");
- rbtfile = fopen("./zone.bin", "w+b");
- ATF_REQUIRE(rbtfile != NULL);
- result = dns_rbt_serialize_tree(rbtfile, rbt, write_data, NULL,
- &offset);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
- dns_rbt_destroy(&rbt);
-
- /*
- * Deserialize the tree
- */
- printf("deserialization begins.\n");
-
- /*
- * Map in the whole file in one go
- */
- fd = open("zone.bin", O_RDWR);
- isc_file_getsizefd(fd, &filesize);
- base = mmap(NULL, filesize,
- PROT_READ|PROT_WRITE,
- MAP_FILE|MAP_PRIVATE, fd, 0);
- ATF_REQUIRE(base != NULL && base != MAP_FAILED);
- close(fd);
-
- result = dns_rbt_deserialize_tree(base, filesize, 0, mctx,
- delete_data, NULL, fix_data, NULL,
- NULL, &rbt_deserialized);
-
- /* Test to make sure we have a valid tree */
- ATF_REQUIRE(result == ISC_R_SUCCESS);
- if (rbt_deserialized == NULL)
- atf_tc_fail("deserialized rbt is null!"); /* Abort execution. */
-
- check_test_data(rbt_deserialized);
-
- dns_rbt_printtext(rbt_deserialized, data_printer, stdout);
-
- dns_rbt_destroy(&rbt_deserialized);
- munmap(base, filesize);
- unlink("zone.bin");
- dns_test_end();
-}
-
-ATF_TC(deserialize_corrupt);
-ATF_TC_HEAD(deserialize_corrupt, tc) {
- atf_tc_set_md_var(tc, "descr", "Test reading a corrupt map file");
-}
-ATF_TC_BODY(deserialize_corrupt, tc) {
- dns_rbt_t *rbt = NULL;
- isc_result_t result;
- FILE *rbtfile = NULL;
- off_t offset;
- int fd;
- off_t filesize = 0;
- char *base, *p, *q;
- isc_uint32_t r;
- int i;
-
- UNUSED(tc);
-
- isc_mem_debugging = ISC_MEM_DEBUGRECORD;
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* Set up map file */
- result = dns_rbt_create(mctx, delete_data, NULL, &rbt);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- add_test_data(mctx, rbt);
- rbtfile = fopen("./zone.bin", "w+b");
- ATF_REQUIRE(rbtfile != NULL);
- result = dns_rbt_serialize_tree(rbtfile, rbt, write_data, NULL,
- &offset);
- ATF_REQUIRE(result == ISC_R_SUCCESS);
- dns_rbt_destroy(&rbt);
-
- /* Read back with random fuzzing */
- for (i = 0; i < 256; i++) {
- dns_rbt_t *rbt_deserialized = NULL;
-
- fd = open("zone.bin", O_RDWR);
- isc_file_getsizefd(fd, &filesize);
- base = mmap(NULL, filesize,
- PROT_READ|PROT_WRITE,
- MAP_FILE|MAP_PRIVATE, fd, 0);
- ATF_REQUIRE(base != NULL && base != MAP_FAILED);
- close(fd);
-
- /* Randomly fuzz a portion of the memory */
- isc_random_get(&r);
- p = base + (r % filesize);
- q = base + filesize;
- isc_random_get(&r);
- q -= (r % (q - p));
- while (p++ < q) {
- isc_random_get(&r);
- *p = r & 0xff;
- }
-
- result = dns_rbt_deserialize_tree(base, filesize, 0, mctx,
- delete_data, NULL,
- fix_data, NULL,
- NULL, &rbt_deserialized);
- printf("%d: %s\n", i, isc_result_totext(result));
-
- /* Test to make sure we have a valid tree */
- ATF_REQUIRE(result == ISC_R_SUCCESS ||
- result == ISC_R_INVALIDFILE);
- if (result != ISC_R_SUCCESS)
- ATF_REQUIRE(rbt_deserialized == NULL);
-
- if (rbt_deserialized != NULL)
- dns_rbt_destroy(&rbt_deserialized);
-
- munmap(base, filesize);
- }
-
- unlink("zone.bin");
- dns_test_end();
-}
-
-
-ATF_TC(serialize_align);
-ATF_TC_HEAD(serialize_align, tc) {
- atf_tc_set_md_var(tc, "descr",
- "Test the dns_rbt_serialize_align() function.");
-}
-ATF_TC_BODY(serialize_align, tc) {
- UNUSED(tc);
-
- ATF_CHECK(dns_rbt_serialize_align(0) == 0);
- ATF_CHECK(dns_rbt_serialize_align(1) == 8);
- ATF_CHECK(dns_rbt_serialize_align(2) == 8);
- ATF_CHECK(dns_rbt_serialize_align(3) == 8);
- ATF_CHECK(dns_rbt_serialize_align(4) == 8);
- ATF_CHECK(dns_rbt_serialize_align(5) == 8);
- ATF_CHECK(dns_rbt_serialize_align(6) == 8);
- ATF_CHECK(dns_rbt_serialize_align(7) == 8);
- ATF_CHECK(dns_rbt_serialize_align(8) == 8);
- ATF_CHECK(dns_rbt_serialize_align(9) == 16);
- ATF_CHECK(dns_rbt_serialize_align(0xff) == 0x100);
- ATF_CHECK(dns_rbt_serialize_align(0x301) == 0x308);
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, serialize);
- ATF_TP_ADD_TC(tp, deserialize_corrupt);
- ATF_TP_ADD_TC(tp, serialize_align);
-
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/dns/tests/rbt_test.c b/usr.sbin/bind/lib/dns/tests/rbt_test.c
deleted file mode 100644
index 161b9b69c68..00000000000
--- a/usr.sbin/bind/lib/dns/tests/rbt_test.c
+++ /dev/null
@@ -1,1230 +0,0 @@
-/*
- * Copyright (C) 2012-2016 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: rbt_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/* ! \file */
-
-#include <config.h>
-#include <atf-c.h>
-#include <isc/mem.h>
-#include <isc/random.h>
-#include <isc/string.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h> /* uintptr_t */
-#endif
-
-#include <dns/rbt.h>
-#include <dns/fixedname.h>
-#include <dns/result.h>
-#include <dns/compress.h>
-#include "dnstest.h"
-
-#include <isc/app.h>
-#include <isc/buffer.h>
-#include <isc/entropy.h>
-#include <isc/file.h>
-#include <isc/hash.h>
-#include <isc/mem.h>
-#include <isc/os.h>
-#include <isc/string.h>
-#include <isc/socket.h>
-#include <isc/stdio.h>
-#include <isc/task.h>
-#include <isc/thread.h>
-#include <isc/timer.h>
-#include <isc/util.h>
-#include <isc/print.h>
-#include <isc/time.h>
-
-#include <dns/log.h>
-#include <dns/name.h>
-#include <dns/result.h>
-
-#include <dst/dst.h>
-
-#include <ctype.h>
-#include <stdlib.h>
-#include <time.h>
-
-typedef struct {
- dns_rbt_t *rbt;
- dns_rbt_t *rbt_distances;
-} test_context_t;
-
-/* The initial structure of domain tree will be as follows:
- *
- * .
- * |
- * b
- * / \
- * a d.e.f
- * / | \
- * c | g.h
- * | |
- * w.y i
- * / | \ \
- * x | z k
- * | |
- * p j
- * / \
- * o q
- */
-
-/* The full absolute names of the nodes in the tree (the tree also
- * contains "." which is not included in this list).
- */
-static const char * const domain_names[] = {
- "c", "b", "a", "x.d.e.f", "z.d.e.f", "g.h", "i.g.h", "o.w.y.d.e.f",
- "j.z.d.e.f", "p.w.y.d.e.f", "q.w.y.d.e.f", "k.g.h"
-};
-
-static const size_t domain_names_count = (sizeof(domain_names) /
- sizeof(domain_names[0]));
-
-/* These are set as the node data for the tree used in distances check
- * (for the names in domain_names[] above).
- */
-static const int node_distances[] = {
- 3, 1, 2, 2, 2, 3, 1, 2, 1, 1, 2, 2
-};
-
-/*
- * The domain order should be:
- * ., a, b, c, d.e.f, x.d.e.f, w.y.d.e.f, o.w.y.d.e.f, p.w.y.d.e.f,
- * q.w.y.d.e.f, z.d.e.f, j.z.d.e.f, g.h, i.g.h, k.g.h
- * . (no data, can't be found)
- * |
- * b
- * / \
- * a d.e.f
- * / | \
- * c | g.h
- * | |
- * w.y i
- * / | \ \
- * x | z k
- * | |
- * p j
- * / \
- * o q
- */
-
-static const char * const ordered_names[] = {
- "a", "b", "c", "d.e.f", "x.d.e.f", "w.y.d.e.f", "o.w.y.d.e.f",
- "p.w.y.d.e.f", "q.w.y.d.e.f", "z.d.e.f", "j.z.d.e.f",
- "g.h", "i.g.h", "k.g.h"};
-
-static const size_t ordered_names_count = (sizeof(ordered_names) /
- sizeof(*ordered_names));
-
-static void
-delete_data(void *data, void *arg) {
- UNUSED(arg);
-
- isc_mem_put(mctx, data, sizeof(size_t));
-}
-
-static void
-build_name_from_str(const char *namestr, dns_fixedname_t *fname) {
- size_t length;
- isc_buffer_t *b = NULL;
- isc_result_t result;
- dns_name_t *name;
-
- length = strlen(namestr);
-
- result = isc_buffer_allocate(mctx, &b, length);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- isc_buffer_putmem(b, (const unsigned char *) namestr, length);
-
- dns_fixedname_init(fname);
- name = dns_fixedname_name(fname);
- ATF_REQUIRE(name != NULL);
- result = dns_name_fromtext(name, b, dns_rootname, 0, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- isc_buffer_free(&b);
-}
-
-static test_context_t *
-test_context_setup(void) {
- test_context_t *ctx;
- isc_result_t result;
- size_t i;
-
- ctx = isc_mem_get(mctx, sizeof(*ctx));
- ATF_REQUIRE(ctx != NULL);
-
- ctx->rbt = NULL;
- result = dns_rbt_create(mctx, delete_data, NULL, &ctx->rbt);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- ctx->rbt_distances = NULL;
- result = dns_rbt_create(mctx, delete_data, NULL, &ctx->rbt_distances);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- for (i = 0; i < domain_names_count; i++) {
- size_t *n;
- dns_fixedname_t fname;
- dns_name_t *name;
-
- build_name_from_str(domain_names[i], &fname);
-
- name = dns_fixedname_name(&fname);
-
- n = isc_mem_get(mctx, sizeof(size_t));
- *n = i + 1;
- result = dns_rbt_addname(ctx->rbt, name, n);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- n = isc_mem_get(mctx, sizeof(size_t));
- *n = node_distances[i];
- result = dns_rbt_addname(ctx->rbt_distances, name, n);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- }
-
- return (ctx);
-}
-
-static void
-test_context_teardown(test_context_t *ctx) {
- dns_rbt_destroy(&ctx->rbt);
- dns_rbt_destroy(&ctx->rbt_distances);
-
- isc_mem_put(mctx, ctx, sizeof(*ctx));
-}
-
-/*
- * Walk the tree and ensure that all the test nodes are present.
- */
-static void
-check_test_data(dns_rbt_t *rbt) {
- dns_fixedname_t fixed;
- isc_result_t result;
- dns_name_t *foundname;
- size_t i;
-
- dns_fixedname_init(&fixed);
- foundname = dns_fixedname_name(&fixed);
-
- for (i = 0; i < domain_names_count; i++) {
- dns_fixedname_t fname;
- dns_name_t *name;
- size_t *n;
-
- build_name_from_str(domain_names[i], &fname);
-
- name = dns_fixedname_name(&fname);
- n = NULL;
- result = dns_rbt_findname(rbt, name, 0, foundname,
- (void *) &n);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK_EQ(*n, i + 1);
- }
-}
-
-ATF_TC(rbt_create);
-ATF_TC_HEAD(rbt_create, tc) {
- atf_tc_set_md_var(tc, "descr", "Test the creation of an rbt");
-}
-ATF_TC_BODY(rbt_create, tc) {
- isc_result_t result;
- test_context_t *ctx;
- isc_boolean_t tree_ok;
-
- UNUSED(tc);
-
- isc_mem_debugging = ISC_MEM_DEBUGRECORD;
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- ctx = test_context_setup();
-
- check_test_data(ctx->rbt);
-
- tree_ok = dns__rbt_checkproperties(ctx->rbt);
- ATF_CHECK_EQ(tree_ok, ISC_TRUE);
-
- test_context_teardown(ctx);
-
- dns_test_end();
-}
-
-ATF_TC(rbt_nodecount);
-ATF_TC_HEAD(rbt_nodecount, tc) {
- atf_tc_set_md_var(tc, "descr", "Test dns_rbt_nodecount() on a tree");
-}
-ATF_TC_BODY(rbt_nodecount, tc) {
- isc_result_t result;
- test_context_t *ctx;
-
- UNUSED(tc);
-
- isc_mem_debugging = ISC_MEM_DEBUGRECORD;
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- ctx = test_context_setup();
-
- ATF_CHECK_EQ(15, dns_rbt_nodecount(ctx->rbt));
-
- test_context_teardown(ctx);
-
- dns_test_end();
-}
-
-ATF_TC(rbtnode_get_distance);
-ATF_TC_HEAD(rbtnode_get_distance, tc) {
- atf_tc_set_md_var(tc, "descr",
- "Test dns_rbtnode_get_distance() on a tree");
-}
-ATF_TC_BODY(rbtnode_get_distance, tc) {
- isc_result_t result;
- test_context_t *ctx;
- const char *name_str = "a";
- dns_fixedname_t fname;
- dns_name_t *name;
- dns_rbtnode_t *node = NULL;
- dns_rbtnodechain_t chain;
-
- UNUSED(tc);
-
- isc_mem_debugging = ISC_MEM_DEBUGRECORD;
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- ctx = test_context_setup();
-
- build_name_from_str(name_str, &fname);
- name = dns_fixedname_name(&fname);
-
- dns_rbtnodechain_init(&chain, mctx);
-
- result = dns_rbt_findnode(ctx->rbt_distances, name, NULL,
- &node, &chain, 0, NULL, NULL);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- while (node != NULL) {
- const size_t *distance = (const size_t *) node->data;
- if (distance != NULL)
- ATF_CHECK_EQ(*distance,
- dns__rbtnode_getdistance(node));
- result = dns_rbtnodechain_next(&chain, NULL, NULL);
- if (result == ISC_R_NOMORE)
- break;
- dns_rbtnodechain_current(&chain, NULL, NULL, &node);
- }
-
- ATF_CHECK_EQ(result, ISC_R_NOMORE);
-
- dns_rbtnodechain_invalidate(&chain);
-
- test_context_teardown(ctx);
-
- dns_test_end();
-}
-
-ATF_TC(rbt_check_distance_random);
-ATF_TC_HEAD(rbt_check_distance_random, tc) {
- atf_tc_set_md_var(tc, "descr",
- "Test tree balance, inserting names in random order");
-}
-ATF_TC_BODY(rbt_check_distance_random, tc) {
- /* This test checks an important performance-related property of
- * the red-black tree, which is important for us: the longest
- * path from a sub-tree's root to a node is no more than
- * 2log(n). This check verifies that the tree is balanced.
- */
- dns_rbt_t *mytree = NULL;
- const unsigned int log_num_nodes = 16;
-
- int i;
- isc_result_t result;
- isc_boolean_t tree_ok;
-
- UNUSED(tc);
-
- isc_mem_debugging = ISC_MEM_DEBUGRECORD;
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- result = dns_rbt_create(mctx, delete_data, NULL, &mytree);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* Names are inserted in random order. */
-
- /* Make a large 65536 node top-level domain tree, i.e., the
- * following code inserts names such as:
- *
- * savoucnsrkrqzpkqypbygwoiliawpbmz.
- * wkadamcbbpjtundbxcmuayuycposvngx.
- * wzbpznemtooxdpjecdxynsfztvnuyfao.
- * yueojmhyffslpvfmgyfwioxegfhepnqq.
- */
- for (i = 0; i < (1 << log_num_nodes); i++) {
- size_t *n;
- char namebuf[34];
-
- n = isc_mem_get(mctx, sizeof(size_t));
- *n = i + 1;
-
- while (1) {
- int j;
- dns_fixedname_t fname;
- dns_name_t *name;
-
- for (j = 0; j < 32; j++) {
- isc_uint32_t v;
- isc_random_get(&v);
- namebuf[j] = 'a' + (v % 26);
- }
- namebuf[32] = '.';
- namebuf[33] = 0;
-
- build_name_from_str(namebuf, &fname);
- name = dns_fixedname_name(&fname);
-
- result = dns_rbt_addname(mytree, name, n);
- if (result == ISC_R_SUCCESS)
- break;
- }
- }
-
- /* 1 (root . node) + (1 << log_num_nodes) */
- ATF_CHECK_EQ(1U + (1U << log_num_nodes), dns_rbt_nodecount(mytree));
-
- /* The distance from each node to its sub-tree root must be less
- * than 2 * log(n).
- */
- ATF_CHECK((2U * log_num_nodes) >= dns__rbt_getheight(mytree));
-
- /* Also check RB tree properties */
- tree_ok = dns__rbt_checkproperties(mytree);
- ATF_CHECK_EQ(tree_ok, ISC_TRUE);
-
- dns_rbt_destroy(&mytree);
-
- dns_test_end();
-}
-
-ATF_TC(rbt_check_distance_ordered);
-ATF_TC_HEAD(rbt_check_distance_ordered, tc) {
- atf_tc_set_md_var(tc, "descr",
- "Test tree balance, inserting names in sorted order");
-}
-ATF_TC_BODY(rbt_check_distance_ordered, tc) {
- /* This test checks an important performance-related property of
- * the red-black tree, which is important for us: the longest
- * path from a sub-tree's root to a node is no more than
- * 2log(n). This check verifies that the tree is balanced.
- */
- dns_rbt_t *mytree = NULL;
- const unsigned int log_num_nodes = 16;
-
- int i;
- isc_result_t result;
- isc_boolean_t tree_ok;
-
- UNUSED(tc);
-
- isc_mem_debugging = ISC_MEM_DEBUGRECORD;
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- result = dns_rbt_create(mctx, delete_data, NULL, &mytree);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* Names are inserted in sorted order. */
-
- /* Make a large 65536 node top-level domain tree, i.e., the
- * following code inserts names such as:
- *
- * name00000000.
- * name00000001.
- * name00000002.
- * name00000003.
- */
- for (i = 0; i < (1 << log_num_nodes); i++) {
- size_t *n;
- char namebuf[14];
- dns_fixedname_t fname;
- dns_name_t *name;
-
- n = isc_mem_get(mctx, sizeof(size_t));
- *n = i + 1;
-
- snprintf(namebuf, sizeof(namebuf), "name%08x.", i);
- build_name_from_str(namebuf, &fname);
- name = dns_fixedname_name(&fname);
-
- result = dns_rbt_addname(mytree, name, n);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- }
-
- /* 1 (root . node) + (1 << log_num_nodes) */
- ATF_CHECK_EQ(1U + (1U << log_num_nodes), dns_rbt_nodecount(mytree));
-
- /* The distance from each node to its sub-tree root must be less
- * than 2 * log(n).
- */
- ATF_CHECK((2U * log_num_nodes) >= dns__rbt_getheight(mytree));
-
- /* Also check RB tree properties */
- tree_ok = dns__rbt_checkproperties(mytree);
- ATF_CHECK_EQ(tree_ok, ISC_TRUE);
-
- dns_rbt_destroy(&mytree);
-
- dns_test_end();
-}
-
-static isc_result_t
-insert_helper(dns_rbt_t *rbt, const char *namestr, dns_rbtnode_t **node) {
- dns_fixedname_t fname;
- dns_name_t *name;
-
- build_name_from_str(namestr, &fname);
- name = dns_fixedname_name(&fname);
-
- return (dns_rbt_addnode(rbt, name, node));
-}
-
-static isc_boolean_t
-compare_labelsequences(dns_rbtnode_t *node, const char *labelstr) {
- dns_name_t name;
- isc_result_t result;
- char *nodestr = NULL;
- isc_boolean_t is_equal;
-
- dns_name_init(&name, NULL);
- dns_rbt_namefromnode(node, &name);
-
- result = dns_name_tostring(&name, &nodestr, mctx);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- is_equal = strcmp(labelstr, nodestr) == 0 ? ISC_TRUE : ISC_FALSE;
-
- isc_mem_free(mctx, nodestr);
-
- return (is_equal);
-}
-
-ATF_TC(rbt_insert);
-ATF_TC_HEAD(rbt_insert, tc) {
- atf_tc_set_md_var(tc, "descr", "Test insertion into a tree");
-}
-ATF_TC_BODY(rbt_insert, tc) {
- isc_result_t result;
- test_context_t *ctx;
- dns_rbtnode_t *node;
-
- UNUSED(tc);
-
- isc_mem_debugging = ISC_MEM_DEBUGRECORD;
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- ctx = test_context_setup();
-
- /* Check node count before beginning. */
- ATF_CHECK_EQ(15, dns_rbt_nodecount(ctx->rbt));
-
- /* Try to insert a node that already exists. */
- node = NULL;
- result = insert_helper(ctx->rbt, "d.e.f", &node);
- ATF_CHECK_EQ(result, ISC_R_EXISTS);
-
- /* Node count must not have changed. */
- ATF_CHECK_EQ(15, dns_rbt_nodecount(ctx->rbt));
-
- /* Try to insert a node that doesn't exist. */
- node = NULL;
- result = insert_helper(ctx->rbt, "0", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK_EQ(compare_labelsequences(node, "0"), ISC_TRUE);
-
- /* Node count must have increased. */
- ATF_CHECK_EQ(16, dns_rbt_nodecount(ctx->rbt));
-
- /* Another. */
- node = NULL;
- result = insert_helper(ctx->rbt, "example.com", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE(node != NULL);
- ATF_CHECK_EQ(node->data, NULL);
-
- /* Node count must have increased. */
- ATF_CHECK_EQ(17, dns_rbt_nodecount(ctx->rbt));
-
- /* Re-adding it should return EXISTS */
- node = NULL;
- result = insert_helper(ctx->rbt, "example.com", &node);
- ATF_CHECK_EQ(result, ISC_R_EXISTS);
-
- /* Node count must not have changed. */
- ATF_CHECK_EQ(17, dns_rbt_nodecount(ctx->rbt));
-
- /* Fission the node d.e.f */
- node = NULL;
- result = insert_helper(ctx->rbt, "k.e.f", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK_EQ(compare_labelsequences(node, "k"), ISC_TRUE);
-
- /* Node count must have incremented twice ("d.e.f" fissioned to
- * "d" and "e.f", and the newly added "k").
- */
- ATF_CHECK_EQ(19, dns_rbt_nodecount(ctx->rbt));
-
- /* Fission the node "g.h" */
- node = NULL;
- result = insert_helper(ctx->rbt, "h", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK_EQ(compare_labelsequences(node, "h"), ISC_TRUE);
-
- /* Node count must have incremented ("g.h" fissioned to "g" and
- * "h").
- */
- ATF_CHECK_EQ(20, dns_rbt_nodecount(ctx->rbt));
-
- /* Add child domains */
-
- node = NULL;
- result = insert_helper(ctx->rbt, "m.p.w.y.d.e.f", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK_EQ(compare_labelsequences(node, "m"), ISC_TRUE);
- ATF_CHECK_EQ(21, dns_rbt_nodecount(ctx->rbt));
-
- node = NULL;
- result = insert_helper(ctx->rbt, "n.p.w.y.d.e.f", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK_EQ(compare_labelsequences(node, "n"), ISC_TRUE);
- ATF_CHECK_EQ(22, dns_rbt_nodecount(ctx->rbt));
-
- node = NULL;
- result = insert_helper(ctx->rbt, "l.a", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK_EQ(compare_labelsequences(node, "l"), ISC_TRUE);
- ATF_CHECK_EQ(23, dns_rbt_nodecount(ctx->rbt));
-
- node = NULL;
- result = insert_helper(ctx->rbt, "r.d.e.f", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- node = NULL;
- result = insert_helper(ctx->rbt, "s.d.e.f", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK_EQ(25, dns_rbt_nodecount(ctx->rbt));
-
- node = NULL;
- result = insert_helper(ctx->rbt, "h.w.y.d.e.f", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- /* Add more nodes one by one to cover left and right rotation
- * functions.
- */
- node = NULL;
- result = insert_helper(ctx->rbt, "f", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- node = NULL;
- result = insert_helper(ctx->rbt, "m", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- node = NULL;
- result = insert_helper(ctx->rbt, "nm", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- node = NULL;
- result = insert_helper(ctx->rbt, "om", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- node = NULL;
- result = insert_helper(ctx->rbt, "k", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- node = NULL;
- result = insert_helper(ctx->rbt, "l", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- node = NULL;
- result = insert_helper(ctx->rbt, "fe", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- node = NULL;
- result = insert_helper(ctx->rbt, "ge", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- node = NULL;
- result = insert_helper(ctx->rbt, "i", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- node = NULL;
- result = insert_helper(ctx->rbt, "ae", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- node = NULL;
- result = insert_helper(ctx->rbt, "n", &node);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- test_context_teardown(ctx);
-
- dns_test_end();
-}
-
-ATF_TC(rbt_remove);
-ATF_TC_HEAD(rbt_remove, tc) {
- atf_tc_set_md_var(tc, "descr", "Test removal from a tree");
-}
-ATF_TC_BODY(rbt_remove, tc) {
- /*
- * This testcase checks that after node removal, the
- * binary-search tree is valid and all nodes that are supposed
- * to exist are present in the correct order. It mainly tests
- * DomainTree as a BST, and not particularly as a red-black
- * tree. This test checks node deletion when upper nodes have
- * data.
- */
- isc_result_t result;
- size_t j;
-
- UNUSED(tc);
-
- isc_mem_debugging = ISC_MEM_DEBUGRECORD;
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /*
- * Delete single nodes and check if the rest of the nodes exist.
- */
- for (j = 0; j < ordered_names_count; j++) {
- dns_rbt_t *mytree = NULL;
- dns_rbtnode_t *node;
- size_t i;
- size_t *n;
- isc_boolean_t tree_ok;
- dns_rbtnodechain_t chain;
- size_t start_node;
-
- /* Create a tree. */
- result = dns_rbt_create(mctx, delete_data, NULL, &mytree);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* Insert test data into the tree. */
- for (i = 0; i < domain_names_count; i++) {
- node = NULL;
- result = insert_helper(mytree, domain_names[i], &node);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- }
-
- /* Check that all names exist in order. */
- for (i = 0; i < ordered_names_count; i++) {
- dns_fixedname_t fname;
- dns_name_t *name;
-
- build_name_from_str(ordered_names[i], &fname);
-
- name = dns_fixedname_name(&fname);
- node = NULL;
- result = dns_rbt_findnode(mytree, name, NULL,
- &node, NULL,
- DNS_RBTFIND_EMPTYDATA,
- NULL, NULL);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- /* Add node data */
- ATF_REQUIRE(node != NULL);
- ATF_REQUIRE_EQ(node->data, NULL);
-
- n = isc_mem_get(mctx, sizeof(size_t));
- *n = i;
-
- node->data = n;
- }
-
- /* Now, delete the j'th node from the tree. */
- {
- dns_fixedname_t fname;
- dns_name_t *name;
-
- build_name_from_str(ordered_names[j], &fname);
-
- name = dns_fixedname_name(&fname);
-
- result = dns_rbt_deletename(mytree, name, ISC_FALSE);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- }
-
- /* Check RB tree properties. */
- tree_ok = dns__rbt_checkproperties(mytree);
- ATF_CHECK_EQ(tree_ok, ISC_TRUE);
-
- dns_rbtnodechain_init(&chain, mctx);
-
- /* Now, walk through nodes in order. */
- if (j == 0) {
- /*
- * Node for ordered_names[0] was already deleted
- * above. We start from node 1.
- */
- dns_fixedname_t fname;
- dns_name_t *name;
-
- build_name_from_str(ordered_names[0], &fname);
- name = dns_fixedname_name(&fname);
- node = NULL;
- result = dns_rbt_findnode(mytree, name, NULL,
- &node, NULL,
- 0,
- NULL, NULL);
- ATF_CHECK_EQ(result, ISC_R_NOTFOUND);
-
- build_name_from_str(ordered_names[1], &fname);
- name = dns_fixedname_name(&fname);
- node = NULL;
- result = dns_rbt_findnode(mytree, name, NULL,
- &node, &chain,
- 0,
- NULL, NULL);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- start_node = 1;
- } else {
- /* Start from node 0. */
- dns_fixedname_t fname;
- dns_name_t *name;
-
- build_name_from_str(ordered_names[0], &fname);
- name = dns_fixedname_name(&fname);
- node = NULL;
- result = dns_rbt_findnode(mytree, name, NULL,
- &node, &chain,
- 0,
- NULL, NULL);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- start_node = 0;
- }
-
- /*
- * node and chain have been set by the code above at
- * this point.
- */
- for (i = start_node; i < ordered_names_count; i++) {
- dns_fixedname_t fname_j, fname_i;
- dns_name_t *name_j, *name_i;
-
- build_name_from_str(ordered_names[j], &fname_j);
- name_j = dns_fixedname_name(&fname_j);
- build_name_from_str(ordered_names[i], &fname_i);
- name_i = dns_fixedname_name(&fname_i);
-
- if (dns_name_equal(name_i, name_j)) {
- /*
- * This may be true for the last node if
- * we seek ahead in the loop using
- * dns_rbtnodechain_next() below.
- */
- if (node == NULL) {
- break;
- }
-
- /* All ordered nodes have data
- * initially. If any node is empty, it
- * means it was removed, but an empty
- * node exists because it is a
- * super-domain. Just skip it.
- */
- if (node->data == NULL) {
- result = dns_rbtnodechain_next(&chain,
- NULL,
- NULL);
- if (result == ISC_R_NOMORE) {
- node = NULL;
- } else {
- dns_rbtnodechain_current(&chain,
- NULL,
- NULL,
- &node);
- }
- }
- continue;
- }
-
- ATF_REQUIRE(node != NULL);
-
- n = (size_t *) node->data;
- if (n != NULL) {
- /* printf("n=%zu, i=%zu\n", *n, i); */
- ATF_CHECK_EQ(*n, i);
- }
-
- result = dns_rbtnodechain_next(&chain, NULL, NULL);
- if (result == ISC_R_NOMORE) {
- node = NULL;
- } else {
- dns_rbtnodechain_current(&chain, NULL, NULL,
- &node);
- }
- }
-
- /* We should have reached the end of the tree. */
- ATF_REQUIRE_EQ(node, NULL);
-
- dns_rbt_destroy(&mytree);
- }
-
- dns_test_end();
-}
-
-static void
-insert_nodes(dns_rbt_t *mytree, char **names,
- size_t *names_count, isc_uint32_t num_names)
-{
- isc_uint32_t i;
-
- for (i = 0; i < num_names; i++) {
- size_t *n;
- char namebuf[34];
-
- n = isc_mem_get(mctx, sizeof(size_t));
- ATF_REQUIRE(n != NULL);
-
- *n = i; /* Unused value */
-
- while (1) {
- int j;
- dns_fixedname_t fname;
- dns_name_t *name;
- isc_result_t result;
-
- for (j = 0; j < 32; j++) {
- isc_uint32_t v;
- isc_random_get(&v);
- namebuf[j] = 'a' + (v % 26);
- }
- namebuf[32] = '.';
- namebuf[33] = 0;
-
- build_name_from_str(namebuf, &fname);
- name = dns_fixedname_name(&fname);
-
- result = dns_rbt_addname(mytree, name, n);
- if (result == ISC_R_SUCCESS) {
- names[*names_count] = isc_mem_strdup(mctx,
- namebuf);
- *names_count += 1;
- break;
- }
- }
- }
-}
-
-static void
-remove_nodes(dns_rbt_t *mytree, char **names,
- size_t *names_count, isc_uint32_t num_names)
-{
- isc_uint32_t i;
-
- UNUSED(mytree);
-
- for (i = 0; i < num_names; i++) {
- isc_uint32_t node;
- dns_fixedname_t fname;
- dns_name_t *name;
- isc_result_t result;
-
- isc_random_get(&node);
-
- node %= *names_count;
-
- build_name_from_str(names[node], &fname);
- name = dns_fixedname_name(&fname);
-
- result = dns_rbt_deletename(mytree, name, ISC_FALSE);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- isc_mem_free(mctx, names[node]);
- if (*names_count > 0) {
- names[node] = names[*names_count - 1];
- names[*names_count - 1] = NULL;
- *names_count -= 1;
- }
- }
-}
-
-static void
-check_tree(dns_rbt_t *mytree, char **names, size_t names_count) {
- isc_boolean_t tree_ok;
-
- UNUSED(names);
-
- ATF_CHECK_EQ(names_count + 1, dns_rbt_nodecount(mytree));
-
- /*
- * The distance from each node to its sub-tree root must be less
- * than 2 * log_2(1024).
- */
- ATF_CHECK((2 * 10) >= dns__rbt_getheight(mytree));
-
- /* Also check RB tree properties */
- tree_ok = dns__rbt_checkproperties(mytree);
- ATF_CHECK_EQ(tree_ok, ISC_TRUE);
-}
-
-ATF_TC(rbt_insert_and_remove);
-ATF_TC_HEAD(rbt_insert_and_remove, tc) {
- atf_tc_set_md_var(tc, "descr",
- "Test insert and remove in a loop");
-}
-ATF_TC_BODY(rbt_insert_and_remove, tc) {
- /*
- * What is the best way to test our red-black tree code? It is
- * not a good method to test every case handled in the actual
- * code itself. This is because our approach itself may be
- * incorrect.
- *
- * We test our code at the interface level here by exercising the
- * tree randomly multiple times, checking that red-black tree
- * properties are valid, and all the nodes that are supposed to be
- * in the tree exist and are in order.
- *
- * NOTE: These tests are run within a single tree level in the
- * forest. The number of nodes in the tree level doesn't grow
- * over 1024.
- */
- isc_result_t result;
- dns_rbt_t *mytree = NULL;
- /*
- * We use an array for storing names instead of a set
- * structure. It's slow, but works and is good enough for tests.
- */
- char *names[1024];
- size_t names_count;
- int i;
-
- UNUSED(tc);
-
- isc_mem_debugging = ISC_MEM_DEBUGRECORD;
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
-
- result = dns_rbt_create(mctx, delete_data, NULL, &mytree);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- memset(names, 0, sizeof(names));
- names_count = 0;
-
- /* Repeat the insert/remove test some 4096 times */
- for (i = 0; i < 4096; i++) {
- isc_uint32_t num_names;
- isc_random_get(&num_names);
-
- if (names_count < 1024) {
- num_names %= 1024 - names_count;
- num_names++;
- } else {
- num_names = 0;
- }
-
- insert_nodes(mytree, names, &names_count, num_names);
- check_tree(mytree, names, names_count);
-
- isc_random_get(&num_names);
- if (names_count > 0) {
- num_names %= names_count;
- num_names++;
- } else {
- num_names = 0;
- }
-
- remove_nodes(mytree, names, &names_count, num_names);
- check_tree(mytree, names, names_count);
- }
-
- /* Remove the rest of the nodes */
- remove_nodes(mytree, names, &names_count, names_count);
- check_tree(mytree, names, names_count);
-
- for (i = 0; i < 1024; i++) {
- if (names[i] != NULL) {
- isc_mem_free(mctx, names[i]);
- }
- }
-
- dns_rbt_destroy(&mytree);
-
- dns_test_end();
-}
-
-#ifdef ISC_PLATFORM_USETHREADS
-#ifdef DNS_BENCHMARK_TESTS
-
-/*
- * XXXMUKS: Don't delete this code. It is useful in benchmarking the
- * RBT, but we don't require it as part of the unit test runs.
- */
-
-ATF_TC(benchmark);
-ATF_TC_HEAD(benchmark, tc) {
- atf_tc_set_md_var(tc, "descr", "Benchmark RBT implementation");
-}
-
-static dns_fixedname_t *fnames;
-static dns_name_t **names;
-static int *values;
-
-static void *
-find_thread(void *arg) {
- dns_rbt_t *mytree;
- isc_result_t result;
- dns_rbtnode_t *node;
- unsigned int j, i;
- unsigned int start = 0;
-
- mytree = (dns_rbt_t *) arg;
- while (start == 0)
- start = random() % 4000000;
-
- /* Query 32 million random names from it in each thread */
- for (j = 0; j < 8; j++) {
- for (i = start; i != start - 1; i = (i + 1) % 4000000) {
- node = NULL;
- result = dns_rbt_findnode(mytree, names[i], NULL,
- &node, NULL,
- DNS_RBTFIND_EMPTYDATA,
- NULL, NULL);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE(node != NULL);
- ATF_CHECK_EQ(values[i], (intptr_t) node->data);
- }
- }
-
- return (NULL);
-}
-
-ATF_TC_BODY(benchmark, tc) {
- isc_result_t result;
- char namestr[sizeof("name18446744073709551616.example.org.")];
- unsigned int r;
- dns_rbt_t *mytree;
- dns_rbtnode_t *node;
- unsigned int i;
- unsigned int maxvalue = 1000000;
- isc_time_t ts1, ts2;
- double t;
- unsigned int nthreads;
- isc_thread_t threads[32];
-
- UNUSED(tc);
-
- srandom(time(NULL));
-
- debug_mem_record = ISC_FALSE;
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- fnames = (dns_fixedname_t *) malloc(4000000 * sizeof(dns_fixedname_t));
- names = (dns_name_t **) malloc(4000000 * sizeof(dns_name_t *));
- values = (int *) malloc(4000000 * sizeof(int));
-
- for (i = 0; i < 4000000; i++) {
- r = ((unsigned long) random()) % maxvalue;
- snprintf(namestr, sizeof(namestr), "name%u.example.org.", r);
- build_name_from_str(namestr, &fnames[i]);
- names[i] = dns_fixedname_name(&fnames[i]);
- values[i] = r;
- }
-
- /* Create a tree. */
- mytree = NULL;
- result = dns_rbt_create(mctx, NULL, NULL, &mytree);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* Insert test data into the tree. */
- for (i = 0; i < maxvalue; i++) {
- snprintf(namestr, sizeof(namestr), "name%u.example.org.", i);
- node = NULL;
- result = insert_helper(mytree, namestr, &node);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- node->data = (void *) (intptr_t) i;
- }
-
- result = isc_time_now(&ts1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- nthreads = ISC_MIN(isc_os_ncpus(), 32);
- nthreads = ISC_MAX(nthreads, 1);
- for (i = 0; i < nthreads; i++) {
- result = isc_thread_create(find_thread, mytree, &threads[i]);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- }
-
- for (i = 0; i < nthreads; i++) {
- result = isc_thread_join(threads[i], NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- }
-
- result = isc_time_now(&ts2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- t = isc_time_microdiff(&ts2, &ts1);
-
- printf("%u findnode calls, %f seconds, %f calls/second\n",
- nthreads * 8 * 4000000, t / 1000000.0,
- (nthreads * 8 * 4000000) / (t / 1000000.0));
-
- free(values);
- free(names);
- free(fnames);
-
- dns_rbt_destroy(&mytree);
-
- dns_test_end();
-}
-
-#endif /* DNS_BENCHMARK_TESTS */
-#endif /* ISC_PLATFORM_USETHREADS */
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, rbt_create);
- ATF_TP_ADD_TC(tp, rbt_nodecount);
- ATF_TP_ADD_TC(tp, rbtnode_get_distance);
- ATF_TP_ADD_TC(tp, rbt_check_distance_random);
- ATF_TP_ADD_TC(tp, rbt_check_distance_ordered);
- ATF_TP_ADD_TC(tp, rbt_insert);
- ATF_TP_ADD_TC(tp, rbt_remove);
- ATF_TP_ADD_TC(tp, rbt_insert_and_remove);
-#ifdef ISC_PLATFORM_USETHREADS
-#ifdef DNS_BENCHMARK_TESTS
- ATF_TP_ADD_TC(tp, benchmark);
-#endif /* DNS_BENCHMARK_TESTS */
-#endif /* ISC_PLATFORM_USETHREADS */
-
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/dns/tests/rdata_test.c b/usr.sbin/bind/lib/dns/tests/rdata_test.c
deleted file mode 100644
index 5a075a5d03b..00000000000
--- a/usr.sbin/bind/lib/dns/tests/rdata_test.c
+++ /dev/null
@@ -1,623 +0,0 @@
-/*
- * Copyright (C) 2012, 2013, 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: rdata_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <isc/lex.h>
-#include <isc/types.h>
-
-#include <dns/callbacks.h>
-#include <dns/rdata.h>
-
-#include "dnstest.h"
-
-/*
- * Individual unit tests
- */
-
-/* Successful load test */
-ATF_TC(hip);
-ATF_TC_HEAD(hip, tc) {
- atf_tc_set_md_var(tc, "descr", "that a oversized HIP record will "
- "be rejected");
-}
-ATF_TC_BODY(hip, tc) {
- unsigned char hipwire[DNS_RDATA_MAXLENGTH] = {
- 0x01, 0x00, 0x00, 0x01, 0x00, 0x00,
- 0x04, 0x41, 0x42, 0x43, 0x44, 0x00 };
- unsigned char buf[1024*1024];
- isc_buffer_t source, target;
- dns_rdata_t rdata;
- dns_decompress_t dctx;
- isc_result_t result;
- size_t i;
-
- UNUSED(tc);
-
- /*
- * Fill the rest of input buffer with compression pointers.
- */
- for (i = 12; i < sizeof(hipwire) - 2; i += 2) {
- hipwire[i] = 0xc0;
- hipwire[i+1] = 0x06;
- }
-
- isc_buffer_init(&source, hipwire, sizeof(hipwire));
- isc_buffer_add(&source, sizeof(hipwire));
- isc_buffer_setactive(&source, i);
- isc_buffer_init(&target, buf, sizeof(buf));
- dns_rdata_init(&rdata);
- dns_decompress_init(&dctx, -1, DNS_DECOMPRESS_ANY);
- result = dns_rdata_fromwire(&rdata, dns_rdataclass_in,
- dns_rdatatype_hip, &source, &dctx,
- 0, &target);
- dns_decompress_invalidate(&dctx);
- ATF_REQUIRE_EQ(result, DNS_R_FORMERR);
-}
-
-ATF_TC(edns_client_subnet);
-ATF_TC_HEAD(edns_client_subnet, tc) {
- atf_tc_set_md_var(tc, "descr",
- "check EDNS client subnet option parsing");
-}
-ATF_TC_BODY(edns_client_subnet, tc) {
- struct {
- unsigned char data[64];
- size_t len;
- isc_boolean_t ok;
- } test_data[] = {
- {
- /* option code with no content */
- { 0x00, 0x08, 0x0, 0x00 }, 4, ISC_FALSE
- },
- {
- /* Option code family 0, source 0, scope 0 */
- {
- 0x00, 0x08, 0x00, 0x04,
- 0x00, 0x00, 0x00, 0x00
- },
- 8, ISC_TRUE
- },
- {
- /* Option code family 1 (ipv4), source 0, scope 0 */
- {
- 0x00, 0x08, 0x00, 0x04,
- 0x00, 0x01, 0x00, 0x00
- },
- 8, ISC_TRUE
- },
- {
- /* Option code family 2 (ipv6) , source 0, scope 0 */
- {
- 0x00, 0x08, 0x00, 0x04,
- 0x00, 0x02, 0x00, 0x00
- },
- 8, ISC_TRUE
- },
- {
- /* extra octet */
- {
- 0x00, 0x08, 0x00, 0x05,
- 0x00, 0x00, 0x00, 0x00,
- 0x00
- },
- 9, ISC_FALSE
- },
- {
- /* source too long for IPv4 */
- {
- 0x00, 0x08, 0x00, 8,
- 0x00, 0x01, 33, 0x00,
- 0x00, 0x00, 0x00, 0x00
- },
- 12, ISC_FALSE
- },
- {
- /* source too long for IPv6 */
- {
- 0x00, 0x08, 0x00, 20,
- 0x00, 0x02, 129, 0x00,
- 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00,
- },
- 24, ISC_FALSE
- },
- {
- /* scope too long for IPv4 */
- {
- 0x00, 0x08, 0x00, 8,
- 0x00, 0x01, 0x00, 33,
- 0x00, 0x00, 0x00, 0x00
- },
- 12, ISC_FALSE
- },
- {
- /* scope too long for IPv6 */
- {
- 0x00, 0x08, 0x00, 20,
- 0x00, 0x02, 0x00, 129,
- 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00,
- },
- 24, ISC_FALSE
- },
- {
- /* length too short for source generic */
- {
- 0x00, 0x08, 0x00, 5,
- 0x00, 0x00, 17, 0x00,
- 0x00, 0x00,
- },
- 19, ISC_FALSE
- },
- {
- /* length too short for source ipv4 */
- {
- 0x00, 0x08, 0x00, 7,
- 0x00, 0x01, 32, 0x00,
- 0x00, 0x00, 0x00, 0x00
- },
- 11, ISC_FALSE
- },
- {
- /* length too short for source ipv6 */
- {
- 0x00, 0x08, 0x00, 19,
- 0x00, 0x02, 128, 0x00,
- 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00,
- },
- 23, ISC_FALSE
- },
- {
- /* sentinal */
- { 0x00 }, 0, ISC_FALSE
- }
- };
- unsigned char buf[1024*1024];
- isc_buffer_t source, target1;
- dns_rdata_t rdata;
- dns_decompress_t dctx;
- isc_result_t result;
- size_t i;
-
- UNUSED(tc);
-
- for (i = 0; test_data[i].len != 0; i++) {
- isc_buffer_init(&source, test_data[i].data, test_data[i].len);
- isc_buffer_add(&source, test_data[i].len);
- isc_buffer_setactive(&source, test_data[i].len);
- isc_buffer_init(&target1, buf, sizeof(buf));
- dns_rdata_init(&rdata);
- dns_decompress_init(&dctx, -1, DNS_DECOMPRESS_ANY);
- result = dns_rdata_fromwire(&rdata, dns_rdataclass_in,
- dns_rdatatype_opt, &source,
- &dctx, 0, &target1);
- dns_decompress_invalidate(&dctx);
- if (test_data[i].ok)
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- else
- ATF_CHECK(result != ISC_R_SUCCESS);
- }
-}
-
-ATF_TC(wks);
-ATF_TC_HEAD(wks, tc) {
- atf_tc_set_md_var(tc, "descr", "wks to/from struct");
-}
-ATF_TC_BODY(wks, tc) {
- struct {
- unsigned char data[64];
- size_t len;
- isc_boolean_t ok;
- } test_data[] = {
- {
- /* too short */
- { 0x00, 0x08, 0x0, 0x00 }, 4, ISC_FALSE
- },
- {
- /* minimal TCP */
- { 0x00, 0x08, 0x0, 0x00, 6 }, 5, ISC_TRUE
- },
- {
- /* minimal UDP */
- { 0x00, 0x08, 0x0, 0x00, 17 }, 5, ISC_TRUE
- },
- {
- /* minimal other */
- { 0x00, 0x08, 0x0, 0x00, 1 }, 5, ISC_TRUE
- },
- {
- /* sentinal */
- { 0x00 }, 0, ISC_FALSE
- }
- };
- unsigned char buf1[1024];
- unsigned char buf2[1024];
- isc_buffer_t source, target1, target2;
- dns_rdata_t rdata;
- dns_decompress_t dctx;
- isc_result_t result;
- size_t i;
- dns_rdata_in_wks_t wks;
-
- UNUSED(tc);
-
- for (i = 0; test_data[i].len != 0; i++) {
- isc_buffer_init(&source, test_data[i].data, test_data[i].len);
- isc_buffer_add(&source, test_data[i].len);
- isc_buffer_setactive(&source, test_data[i].len);
- isc_buffer_init(&target1, buf1, sizeof(buf1));
- dns_rdata_init(&rdata);
- dns_decompress_init(&dctx, -1, DNS_DECOMPRESS_ANY);
- result = dns_rdata_fromwire(&rdata, dns_rdataclass_in,
- dns_rdatatype_wks, &source,
- &dctx, 0, &target1);
- dns_decompress_invalidate(&dctx);
- if (test_data[i].ok)
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- else
- ATF_REQUIRE(result != ISC_R_SUCCESS);
- if (result != ISC_R_SUCCESS)
- continue;
- result = dns_rdata_tostruct(&rdata, &wks, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- isc_buffer_init(&target2, buf2, sizeof(buf2));
- dns_rdata_reset(&rdata);
- result = dns_rdata_fromstruct(&rdata, dns_rdataclass_in,
- dns_rdatatype_wks, &wks,
- &target2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_buffer_usedlength(&target2),
- test_data[i].len);
- ATF_REQUIRE_EQ(memcmp(buf2, test_data[i].data,
- test_data[i].len), 0);
- }
-}
-
-ATF_TC(isdn);
-ATF_TC_HEAD(isdn, tc) {
- atf_tc_set_md_var(tc, "descr", "isdn to/from struct");
-}
-ATF_TC_BODY(isdn, tc) {
- struct {
- unsigned char data[64];
- size_t len;
- isc_boolean_t ok;
- } test_data[] = {
- {
- /* "" */
- { 0x00 }, 1, ISC_TRUE
- },
- {
- /* "\001" */
- { 0x1, 0x01 }, 2, ISC_TRUE
- },
- {
- /* "\001" "" */
- { 0x1, 0x01, 0x00 }, 3, ISC_TRUE
- },
- {
- /* "\000" "\001" */
- { 0x1, 0x01, 0x01, 0x01 }, 4, ISC_TRUE
- },
- {
- /* sentinal */
- { 0x00 }, 0, ISC_FALSE
- }
- };
- unsigned char buf1[1024];
- unsigned char buf2[1024];
- isc_buffer_t source, target1, target2;
- dns_rdata_t rdata;
- dns_decompress_t dctx;
- isc_result_t result;
- size_t i;
- dns_rdata_isdn_t isdn;
-
- UNUSED(tc);
-
- for (i = 0; test_data[i].len != 0; i++) {
- isc_buffer_init(&source, test_data[i].data, test_data[i].len);
- isc_buffer_add(&source, test_data[i].len);
- isc_buffer_setactive(&source, test_data[i].len);
- isc_buffer_init(&target1, buf1, sizeof(buf1));
- dns_rdata_init(&rdata);
- dns_decompress_init(&dctx, -1, DNS_DECOMPRESS_ANY);
- result = dns_rdata_fromwire(&rdata, dns_rdataclass_in,
- dns_rdatatype_isdn, &source,
- &dctx, 0, &target1);
- dns_decompress_invalidate(&dctx);
- if (test_data[i].ok)
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- else
- ATF_REQUIRE(result != ISC_R_SUCCESS);
- if (result != ISC_R_SUCCESS)
- continue;
- result = dns_rdata_tostruct(&rdata, &isdn, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- isc_buffer_init(&target2, buf2, sizeof(buf2));
- dns_rdata_reset(&rdata);
- result = dns_rdata_fromstruct(&rdata, dns_rdataclass_in,
- dns_rdatatype_isdn, &isdn,
- &target2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_buffer_usedlength(&target2),
- test_data[i].len);
- ATF_REQUIRE_EQ(memcmp(buf2, test_data[i].data,
- test_data[i].len), 0);
- }
-}
-
-static void
-error_callback(dns_rdatacallbacks_t *callbacks, const char *fmt, ...) {
- UNUSED(callbacks);
- UNUSED(fmt);
-}
-
-static void
-warn_callback(dns_rdatacallbacks_t *callbacks, const char *fmt, ...) {
- UNUSED(callbacks);
- UNUSED(fmt);
-}
-
-ATF_TC(nsec);
-ATF_TC_HEAD(nsec, tc) {
- atf_tc_set_md_var(tc, "descr", "nsec to/from text/wire");
-}
-ATF_TC_BODY(nsec, tc) {
- struct {
- const char *data;
- isc_boolean_t ok;
- } text_data[] = {
- { "", ISC_FALSE },
- { ".", ISC_FALSE },
- { ". RRSIG", ISC_TRUE },
- { NULL, ISC_FALSE },
- };
- struct {
- unsigned char data[64];
- size_t len;
- isc_boolean_t ok;
- } wire_data[] = {
- { { 0x00 }, 0, ISC_FALSE },
- { { 0x00 }, 1, ISC_FALSE },
- { { 0x00, 0x00 }, 2, ISC_FALSE },
- { { 0x00, 0x00, 0x00 }, 3, ISC_FALSE },
- { { 0x00, 0x00, 0x01, 0x02 }, 4, ISC_TRUE }
- };
- unsigned char buf1[1024], buf2[1024];
- isc_buffer_t source, target1, target2;
- isc_result_t result;
- size_t i;
- dns_rdataclass_t rdclass = dns_rdataclass_in;
- dns_rdatatype_t type = dns_rdatatype_nsec;
- isc_lex_t *lex = NULL;
- dns_rdatacallbacks_t callbacks;
- dns_rdata_nsec_t nsec;
- dns_decompress_t dctx;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_lex_create(mctx, 64, &lex);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_rdatacallbacks_init(&callbacks);
- callbacks.error = error_callback;
- callbacks.warn = warn_callback;
-
- for (i = 0; text_data[i].data != NULL; i++) {
- size_t length = strlen(text_data[i].data);
- isc_buffer_constinit(&source, text_data[i].data, length);
- isc_buffer_add(&source, length);
- result = isc_lex_openbuffer(lex, &source);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- isc_buffer_init(&target1, buf1, sizeof(buf1));
-
- result = dns_rdata_fromtext(NULL, rdclass, type, lex,
- dns_rootname, 0, NULL, &target1,
- &callbacks);
- if (text_data[i].ok)
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- else
- ATF_CHECK(result != ISC_R_SUCCESS);
- }
- isc_lex_destroy(&lex);
-
- for (i = 0; i < sizeof(wire_data)/sizeof(wire_data[0]); i++) {
- dns_rdata_t rdata = DNS_RDATA_INIT;
-
- isc_buffer_init(&source, wire_data[i].data, wire_data[i].len);
- isc_buffer_add(&source, wire_data[i].len);
- isc_buffer_setactive(&source, wire_data[i].len);
- isc_buffer_init(&target1, buf1, sizeof(buf1));
- dns_decompress_init(&dctx, -1, DNS_DECOMPRESS_ANY);
- result = dns_rdata_fromwire(&rdata, rdclass, type, &source,
- &dctx, 0, &target1);
- dns_decompress_invalidate(&dctx);
- if (wire_data[i].ok)
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- else
- ATF_REQUIRE(result != ISC_R_SUCCESS);
- if (result != ISC_R_SUCCESS)
- continue;
- result = dns_rdata_tostruct(&rdata, &nsec, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- isc_buffer_init(&target2, buf2, sizeof(buf2));
- dns_rdata_reset(&rdata);
- result = dns_rdata_fromstruct(&rdata, rdclass, type,
- &nsec, &target2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_buffer_usedlength(&target2),
- wire_data[i].len);
- ATF_REQUIRE_EQ(memcmp(buf2, wire_data[i].data,
- wire_data[i].len), 0);
- }
-}
-
-ATF_TC(csync);
-ATF_TC_HEAD(csync, tc) {
- atf_tc_set_md_var(tc, "descr", "csync to/from struct");
-}
-ATF_TC_BODY(csync, tc) {
- struct {
- const char *data;
- isc_boolean_t ok;
- } text_data[] = {
- { "", ISC_FALSE },
- { "0", ISC_FALSE },
- { "0 0", ISC_TRUE },
- { "0 0 A", ISC_TRUE },
- { "0 0 NS", ISC_TRUE },
- { "0 0 AAAA", ISC_TRUE },
- { "0 0 A AAAA", ISC_TRUE },
- { "0 0 A NS AAAA", ISC_TRUE },
- { "0 0 A NS AAAA BOGUS", ISC_FALSE },
- { NULL, ISC_FALSE },
- };
- struct {
- unsigned char data[64];
- size_t len;
- isc_boolean_t ok;
- } wire_data[] = {
- /* short */
- { { 0x00 }, 0, ISC_FALSE },
- /* short */
- { { 0x00 }, 1, ISC_FALSE },
- /* short */
- { { 0x00, 0x00 }, 2, ISC_FALSE },
- /* short */
- { { 0x00, 0x00, 0x00 }, 3, ISC_FALSE },
- /* short */
- { { 0x00, 0x00, 0x00, 0x00 }, 4, ISC_FALSE },
- /* short */
- { { 0x00, 0x00, 0x00, 0x00, 0x00 }, 5, ISC_FALSE },
- /* serial + flags only */
- { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, 6, ISC_TRUE },
- /* bad type map */
- { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, 7, ISC_FALSE },
- /* bad type map */
- { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
- 8, ISC_FALSE },
- /* good type map */
- { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02 },
- 9, ISC_TRUE }
- };
- unsigned char buf1[1024];
- unsigned char buf2[1024];
- isc_buffer_t source, target1, target2;
- isc_result_t result;
- size_t i;
- dns_rdataclass_t rdclass = dns_rdataclass_in;
- dns_rdatatype_t type = dns_rdatatype_csync;
- isc_lex_t *lex = NULL;
- dns_rdatacallbacks_t callbacks;
- dns_rdata_csync_t csync;
- dns_decompress_t dctx;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_lex_create(mctx, 64, &lex);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_rdatacallbacks_init(&callbacks);
- callbacks.error = error_callback;
- callbacks.warn = warn_callback;
-
- for (i = 0; text_data[i].data != NULL; i++) {
- size_t length = strlen(text_data[i].data);
- isc_buffer_constinit(&source, text_data[i].data, length);
- isc_buffer_add(&source, length);
- result = isc_lex_openbuffer(lex, &source);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- isc_buffer_init(&target1, buf1, sizeof(buf1));
-
- result = dns_rdata_fromtext(NULL, rdclass, type, lex,
- dns_rootname, 0, NULL, &target1,
- &callbacks);
- if (text_data[i].ok)
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- else
- ATF_CHECK(result != ISC_R_SUCCESS);
- }
- isc_lex_destroy(&lex);
-
- for (i = 0; i < sizeof(wire_data)/sizeof(wire_data[0]); i++) {
- dns_rdata_t rdata = DNS_RDATA_INIT;
-
- isc_buffer_init(&source, wire_data[i].data, wire_data[i].len);
- isc_buffer_add(&source, wire_data[i].len);
- isc_buffer_setactive(&source, wire_data[i].len);
- isc_buffer_init(&target1, buf1, sizeof(buf1));
- dns_decompress_init(&dctx, -1, DNS_DECOMPRESS_ANY);
- result = dns_rdata_fromwire(&rdata, rdclass, type, &source,
- &dctx, 0, &target1);
- dns_decompress_invalidate(&dctx);
- if (wire_data[i].ok)
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- else
- ATF_REQUIRE(result != ISC_R_SUCCESS);
- if (result != ISC_R_SUCCESS)
- continue;
- result = dns_rdata_tostruct(&rdata, &csync, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- isc_buffer_init(&target2, buf2, sizeof(buf2));
- dns_rdata_reset(&rdata);
- result = dns_rdata_fromstruct(&rdata, rdclass, type,
- &csync, &target2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_buffer_usedlength(&target2),
- wire_data[i].len);
- ATF_REQUIRE_EQ(memcmp(buf2, wire_data[i].data,
- wire_data[i].len), 0);
- }
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, hip);
- ATF_TP_ADD_TC(tp, edns_client_subnet);
- ATF_TP_ADD_TC(tp, wks);
- ATF_TP_ADD_TC(tp, isdn);
- ATF_TP_ADD_TC(tp, nsec);
- ATF_TP_ADD_TC(tp, csync);
-
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/dns/tests/rdataset_test.c b/usr.sbin/bind/lib/dns/tests/rdataset_test.c
deleted file mode 100644
index 94dd495e760..00000000000
--- a/usr.sbin/bind/lib/dns/tests/rdataset_test.c
+++ /dev/null
@@ -1,131 +0,0 @@
-/*
- * Copyright (C) 2012 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: rdataset_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <dns/rdataset.h>
-#include <dns/rdatastruct.h>
-
-#include "dnstest.h"
-
-
-/*
- * Individual unit tests
- */
-
-/* Successful load test */
-ATF_TC(trimttl);
-ATF_TC_HEAD(trimttl, tc) {
- atf_tc_set_md_var(tc, "descr", "dns_master_loadfile() loads a "
- "valid master file and returns success");
-}
-ATF_TC_BODY(trimttl, tc) {
- isc_result_t result;
- dns_rdataset_t rdataset, sigrdataset;
- dns_rdata_rrsig_t rrsig;
- isc_stdtime_t ttltimenow, ttltimeexpire;
-
- ttltimenow = 10000000;
- ttltimeexpire = ttltimenow + 800;
-
- UNUSED(tc);
-
- dns_rdataset_init(&rdataset);
- dns_rdataset_init(&sigrdataset);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- rdataset.ttl = 900;
- sigrdataset.ttl = 1000;
- rrsig.timeexpire = ttltimeexpire;
- rrsig.originalttl = 1000;
-
- dns_rdataset_trimttl(&rdataset, &sigrdataset, &rrsig, ttltimenow,
- ISC_TRUE);
- ATF_REQUIRE_EQ(rdataset.ttl, 800);
- ATF_REQUIRE_EQ(sigrdataset.ttl, 800);
-
- rdataset.ttl = 900;
- sigrdataset.ttl = 1000;
- rrsig.timeexpire = ttltimenow - 200;
- rrsig.originalttl = 1000;
-
- dns_rdataset_trimttl(&rdataset, &sigrdataset, &rrsig, ttltimenow,
- ISC_TRUE);
- ATF_REQUIRE_EQ(rdataset.ttl, 120);
- ATF_REQUIRE_EQ(sigrdataset.ttl, 120);
-
- rdataset.ttl = 900;
- sigrdataset.ttl = 1000;
- rrsig.timeexpire = ttltimenow - 200;
- rrsig.originalttl = 1000;
-
- dns_rdataset_trimttl(&rdataset, &sigrdataset, &rrsig, ttltimenow,
- ISC_FALSE);
- ATF_REQUIRE_EQ(rdataset.ttl, 0);
- ATF_REQUIRE_EQ(sigrdataset.ttl, 0);
-
- sigrdataset.ttl = 900;
- rdataset.ttl = 1000;
- rrsig.timeexpire = ttltimeexpire;
- rrsig.originalttl = 1000;
-
- dns_rdataset_trimttl(&rdataset, &sigrdataset, &rrsig, ttltimenow,
- ISC_TRUE);
- ATF_REQUIRE_EQ(rdataset.ttl, 800);
- ATF_REQUIRE_EQ(sigrdataset.ttl, 800);
-
- sigrdataset.ttl = 900;
- rdataset.ttl = 1000;
- rrsig.timeexpire = ttltimenow - 200;
- rrsig.originalttl = 1000;
-
- dns_rdataset_trimttl(&rdataset, &sigrdataset, &rrsig, ttltimenow,
- ISC_TRUE);
- ATF_REQUIRE_EQ(rdataset.ttl, 120);
- ATF_REQUIRE_EQ(sigrdataset.ttl, 120);
-
- sigrdataset.ttl = 900;
- rdataset.ttl = 1000;
- rrsig.timeexpire = ttltimenow - 200;
- rrsig.originalttl = 1000;
-
- dns_rdataset_trimttl(&rdataset, &sigrdataset, &rrsig, ttltimenow,
- ISC_FALSE);
- ATF_REQUIRE_EQ(rdataset.ttl, 0);
- ATF_REQUIRE_EQ(sigrdataset.ttl, 0);
-
- dns_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, trimttl);
-
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/dns/tests/rdatasetstats_test.c b/usr.sbin/bind/lib/dns/tests/rdatasetstats_test.c
deleted file mode 100644
index 92a296300cf..00000000000
--- a/usr.sbin/bind/lib/dns/tests/rdatasetstats_test.c
+++ /dev/null
@@ -1,176 +0,0 @@
-/*
- * Copyright (C) 2012, 2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: rdatasetstats_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <isc/print.h>
-
-#include <dns/stats.h>
-
-#include "dnstest.h"
-
-/*
- * Helper functions
- */
-static void
-set_typestats(dns_stats_t *stats, dns_rdatatype_t type,
- isc_boolean_t stale)
-{
- dns_rdatastatstype_t which;
- unsigned int attributes;
-
- attributes = 0;
- if (stale) attributes |= DNS_RDATASTATSTYPE_ATTR_STALE;
- which = DNS_RDATASTATSTYPE_VALUE(type, attributes);
- dns_rdatasetstats_increment(stats, which);
-
- attributes = DNS_RDATASTATSTYPE_ATTR_NXRRSET;
- if (stale) attributes |= DNS_RDATASTATSTYPE_ATTR_STALE;
- which = DNS_RDATASTATSTYPE_VALUE(type, attributes);
- dns_rdatasetstats_increment(stats, which);
-}
-
-static void
-set_nxdomainstats(dns_stats_t *stats, isc_boolean_t stale) {
- dns_rdatastatstype_t which;
- unsigned int attributes;
-
- attributes = DNS_RDATASTATSTYPE_ATTR_NXDOMAIN;
- if (stale) attributes |= DNS_RDATASTATSTYPE_ATTR_STALE;
- which = DNS_RDATASTATSTYPE_VALUE(0, attributes);
- dns_rdatasetstats_increment(stats, which);
-}
-
-static void
-checkit1(dns_rdatastatstype_t which, isc_uint64_t value, void *arg) {
- unsigned int attributes;
-#if debug
- unsigned int type;
-#endif
-
- UNUSED(which);
- UNUSED(arg);
-
- attributes = DNS_RDATASTATSTYPE_ATTR(which);
-#if debug
- type = DNS_RDATASTATSTYPE_BASE(which);
-
- fprintf(stderr, "%s%s%s%s/%u, %u\n",
- attributes & DNS_RDATASTATSTYPE_ATTR_OTHERTYPE ? "O" : " ",
- attributes & DNS_RDATASTATSTYPE_ATTR_NXRRSET ? "!" : " ",
- attributes & DNS_RDATASTATSTYPE_ATTR_STALE ? "#" : " ",
- attributes & DNS_RDATASTATSTYPE_ATTR_NXDOMAIN ? "X" : " ",
- type, (unsigned)value);
-#endif
- if ((attributes & DNS_RDATASTATSTYPE_ATTR_STALE) == 0)
- ATF_REQUIRE_EQ(value, 1);
- else
- ATF_REQUIRE_EQ(value, 0);
-}
-
-static void
-checkit2(dns_rdatastatstype_t which, isc_uint64_t value, void *arg) {
- unsigned int attributes;
-#if debug
- unsigned int type;
-#endif
-
- UNUSED(which);
- UNUSED(arg);
-
- attributes = DNS_RDATASTATSTYPE_ATTR(which);
-#if debug
- type = DNS_RDATASTATSTYPE_BASE(which);
-
- fprintf(stderr, "%s%s%s%s/%u, %u\n",
- attributes & DNS_RDATASTATSTYPE_ATTR_OTHERTYPE ? "O" : " ",
- attributes & DNS_RDATASTATSTYPE_ATTR_NXRRSET ? "!" : " ",
- attributes & DNS_RDATASTATSTYPE_ATTR_STALE ? "#" : " ",
- attributes & DNS_RDATASTATSTYPE_ATTR_NXDOMAIN ? "X" : " ",
- type, (unsigned)value);
-#endif
- if ((attributes & DNS_RDATASTATSTYPE_ATTR_STALE) == 0)
- ATF_REQUIRE_EQ(value, 0);
- else
- ATF_REQUIRE_EQ(value, 1);
-}
-/*
- * Individual unit tests
- */
-
-ATF_TC(rdatasetstats);
-ATF_TC_HEAD(rdatasetstats, tc) {
- atf_tc_set_md_var(tc, "descr", "test that rdatasetstats counters are properly set");
-}
-ATF_TC_BODY(rdatasetstats, tc) {
- unsigned int i;
- dns_stats_t *stats = NULL;
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_rdatasetstats_create(mctx, &stats);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* First 256 types. */
- for (i = 0; i <= 255; i++)
- set_typestats(stats, (dns_rdatatype_t)i, ISC_FALSE);
- /* Specials */
- set_typestats(stats, dns_rdatatype_dlv, ISC_FALSE);
- set_typestats(stats, (dns_rdatatype_t)1000, ISC_FALSE);
- set_nxdomainstats(stats, ISC_FALSE);
-
- /*
- * Check that all counters are set to appropriately.
- */
- dns_rdatasetstats_dump(stats, checkit1, NULL, 1);
-
- /* First 256 types. */
- for (i = 0; i <= 255; i++)
- set_typestats(stats, (dns_rdatatype_t)i, ISC_TRUE);
- /* Specials */
- set_typestats(stats, dns_rdatatype_dlv, ISC_TRUE);
- set_typestats(stats, (dns_rdatatype_t)1000, ISC_TRUE);
- set_nxdomainstats(stats, ISC_TRUE);
-
- /*
- * Check that all counters are set to appropriately.
- */
- dns_rdatasetstats_dump(stats, checkit2, NULL, 1);
-
- dns_stats_detach(&stats);
- dns_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, rdatasetstats);
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/dns/tests/rsa_test.c b/usr.sbin/bind/lib/dns/tests/rsa_test.c
deleted file mode 100644
index 79b52920ea1..00000000000
--- a/usr.sbin/bind/lib/dns/tests/rsa_test.c
+++ /dev/null
@@ -1,319 +0,0 @@
-/*
- * Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: rsa_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/* ! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <stdio.h>
-#include <string.h>
-
-#include <isc/util.h>
-#include <isc/print.h>
-
-#include <pk11/site.h>
-
-#include "dnstest.h"
-
-#include "../dst_internal.h"
-
-#if defined(OPENSSL) || defined(PKCS11CRYPTO)
-
-static unsigned char d[10] = {
- 0xa, 0x10, 0xbb, 0, 0xfe, 0x15, 0x1, 0x88, 0xcc, 0x7d
-};
-
-static unsigned char sigsha1[256] = {
- 0x45, 0x55, 0xd6, 0xf8, 0x05, 0xd2, 0x2e, 0x79,
- 0x14, 0x2b, 0x1b, 0xd1, 0x4b, 0xb7, 0xcd, 0xc0,
- 0xa2, 0xf3, 0x85, 0x32, 0x1f, 0xa3, 0xfd, 0x1f,
- 0x30, 0xe0, 0xde, 0xb2, 0x6f, 0x3c, 0x8e, 0x2b,
- 0x82, 0x92, 0xcd, 0x1c, 0x1b, 0xdf, 0xe6, 0xd5,
- 0x4d, 0x93, 0xe6, 0xaa, 0x40, 0x28, 0x1b, 0x7b,
- 0x2e, 0x40, 0x4d, 0xb5, 0x4d, 0x43, 0xe8, 0xfc,
- 0x93, 0x86, 0x68, 0xe3, 0xbf, 0x73, 0x9a, 0x1e,
- 0x6b, 0x5d, 0x52, 0xb8, 0x98, 0x1c, 0x94, 0xe1,
- 0x85, 0x8b, 0xee, 0xb1, 0x4f, 0x22, 0x71, 0xcb,
- 0xfd, 0xb2, 0xa8, 0x88, 0x64, 0xb4, 0xb1, 0x4a,
- 0xa1, 0x7a, 0xce, 0x52, 0x83, 0xd8, 0xf2, 0x9e,
- 0x67, 0x4c, 0xc3, 0x37, 0x74, 0xfe, 0xe0, 0x25,
- 0x2a, 0xfd, 0xa3, 0x09, 0xff, 0x8a, 0x92, 0x0d,
- 0xa9, 0xb3, 0x90, 0x23, 0xbe, 0x6a, 0x2c, 0x9e,
- 0x5c, 0x6d, 0xb4, 0xa7, 0xd7, 0x97, 0xdd, 0xc6,
- 0xb8, 0xae, 0xd4, 0x88, 0x64, 0x63, 0x1e, 0x85,
- 0x20, 0x09, 0xea, 0xc4, 0x0b, 0xca, 0xbf, 0x83,
- 0x5c, 0x89, 0xae, 0x64, 0x15, 0x76, 0x06, 0x51,
- 0xb6, 0xa1, 0x99, 0xb2, 0x3c, 0x50, 0x99, 0x86,
- 0x7d, 0xc7, 0xca, 0x4e, 0x1d, 0x2c, 0x17, 0xbb,
- 0x6c, 0x7a, 0xc9, 0x3f, 0x5e, 0x28, 0x57, 0x2c,
- 0xda, 0x01, 0x1d, 0xe8, 0x01, 0xf8, 0xf6, 0x37,
- 0xe1, 0x34, 0x56, 0xae, 0x6e, 0xb1, 0xd4, 0xa2,
- 0xc4, 0x02, 0xc1, 0xca, 0x96, 0xb0, 0x06, 0x72,
- 0x2a, 0x27, 0xaa, 0xc8, 0xd5, 0x50, 0x81, 0x49,
- 0x46, 0x33, 0xf8, 0xf7, 0x6b, 0xf4, 0x9c, 0x30,
- 0x90, 0x50, 0xf6, 0x16, 0x76, 0x9d, 0xc6, 0x73,
- 0xb5, 0xbc, 0x8a, 0xb6, 0x1d, 0x98, 0xcb, 0xce,
- 0x36, 0x6f, 0x60, 0xec, 0x96, 0x49, 0x08, 0x85,
- 0x5b, 0xc1, 0x8e, 0xb0, 0xea, 0x9e, 0x1f, 0xd6,
- 0x27, 0x7f, 0xb6, 0xe0, 0x04, 0x12, 0xd2, 0x81
-};
-
-#ifndef PK11_MD5_DISABLE
-static unsigned char sigmd5[256] = {
- 0xc0, 0x99, 0x90, 0xd6, 0xea, 0xc1, 0x5f, 0xc7,
- 0x23, 0x60, 0xfc, 0x13, 0x3d, 0xcc, 0xda, 0x93,
- 0x19, 0xf7, 0x22, 0xa9, 0x55, 0xbe, 0x70, 0x3c,
- 0x87, 0x24, 0x8a, 0x7e, 0xa7, 0x59, 0x58, 0xd3,
- 0x0e, 0x7c, 0x50, 0x3c, 0x81, 0x0f, 0x7a, 0x2b,
- 0xb1, 0x94, 0x21, 0x87, 0xe4, 0x87, 0xcd, 0x2b,
- 0xb9, 0xf1, 0xb8, 0x26, 0xc1, 0x02, 0xf4, 0x30,
- 0x83, 0x41, 0x89, 0x61, 0xcc, 0x3d, 0xe3, 0x0f,
- 0xec, 0x4a, 0x74, 0x95, 0x10, 0x65, 0xac, 0xd1,
- 0xf5, 0x95, 0xe9, 0x99, 0xa8, 0x45, 0x98, 0x99,
- 0xb5, 0xfd, 0x7a, 0x78, 0x80, 0xe5, 0x00, 0x33,
- 0xa5, 0x54, 0xe5, 0xa3, 0xc0, 0x1b, 0x6c, 0xb9,
- 0x77, 0x52, 0x6f, 0xe5, 0x85, 0xa8, 0xfa, 0x45,
- 0x78, 0x49, 0x14, 0xa0, 0x10, 0x58, 0x40, 0x80,
- 0x90, 0xc6, 0x55, 0x52, 0x6d, 0x46, 0x58, 0x50,
- 0x3d, 0x5e, 0x40, 0x25, 0x51, 0x7c, 0xc4, 0x12,
- 0x87, 0x2d, 0x7b, 0x10, 0xcd, 0x80, 0xec, 0x5d,
- 0x27, 0x15, 0x09, 0x37, 0x1f, 0xa7, 0x86, 0x15,
- 0xd1, 0xdd, 0xf1, 0x86, 0x1e, 0x42, 0x3a, 0xf9,
- 0x5a, 0xed, 0x33, 0x07, 0xa9, 0x98, 0x08, 0x79,
- 0xc5, 0xa4, 0x09, 0x95, 0x6e, 0x12, 0xfe, 0xee,
- 0x49, 0x61, 0xe0, 0x99, 0xaa, 0x34, 0xa5, 0xca,
- 0x82, 0xd3, 0x9b, 0x1c, 0x5b, 0x79, 0xf5, 0x0e,
- 0x2c, 0x6c, 0x3b, 0x48, 0xd1, 0xbc, 0xd0, 0xda,
- 0x73, 0xba, 0xe1, 0x81, 0x48, 0x27, 0x39, 0x2f,
- 0x98, 0x77, 0x08, 0xb3, 0xf7, 0x38, 0x28, 0x6d,
- 0x02, 0x56, 0xfa, 0x31, 0xbb, 0x14, 0x81, 0x6b,
- 0x3c, 0x24, 0xa2, 0x68, 0x7a, 0x0a, 0x53, 0xbd,
- 0x9d, 0x57, 0xd0, 0x99, 0x10, 0x28, 0x78, 0x69,
- 0x31, 0x93, 0xa4, 0x73, 0x8d, 0x1a, 0xe4, 0xdc,
- 0x0c, 0x15, 0xb8, 0x51, 0xd8, 0x66, 0x6a, 0x95,
- 0x56, 0x17, 0x0a, 0x45, 0x72, 0xb5, 0xb8, 0xc4
-};
-#endif
-
-static unsigned char sigsha256[256] = {
- 0x83, 0x53, 0x15, 0xfc, 0xca, 0xdb, 0xf6, 0x0d,
- 0x53, 0x24, 0x5b, 0x5a, 0x8e, 0xd0, 0xbe, 0x5e,
- 0xbc, 0xe8, 0x9e, 0x92, 0x3c, 0xfa, 0x93, 0x03,
- 0xce, 0x2f, 0xc7, 0x6d, 0xd0, 0xbb, 0x9d, 0x06,
- 0x83, 0xc6, 0xd3, 0xc0, 0xc1, 0x57, 0x9c, 0x82,
- 0x17, 0x7f, 0xb5, 0xf8, 0x31, 0x18, 0xda, 0x46,
- 0x05, 0x2c, 0xf8, 0xea, 0xaa, 0xcd, 0x99, 0x18,
- 0xff, 0x23, 0x5e, 0xef, 0xf0, 0x87, 0x47, 0x6e,
- 0x91, 0xfd, 0x19, 0x0b, 0x39, 0x19, 0x6a, 0xc8,
- 0xdf, 0x71, 0x66, 0x8e, 0xa9, 0xa0, 0x79, 0x5c,
- 0x2c, 0x52, 0x00, 0x61, 0x17, 0x86, 0x66, 0x03,
- 0x52, 0xad, 0xec, 0x06, 0x53, 0xd9, 0x6d, 0xe3,
- 0xe3, 0xea, 0x28, 0x15, 0xb3, 0x75, 0xf4, 0x61,
- 0x7d, 0xed, 0x69, 0x2c, 0x24, 0xf3, 0x21, 0xb1,
- 0x8a, 0xea, 0x60, 0xa2, 0x9e, 0x6a, 0xa6, 0x53,
- 0x12, 0xf6, 0x5c, 0xef, 0xd7, 0x49, 0x4a, 0x02,
- 0xe7, 0xf8, 0x64, 0x89, 0x13, 0xac, 0xd5, 0x1e,
- 0x58, 0xff, 0xa1, 0x63, 0xdd, 0xa0, 0x1f, 0x44,
- 0x99, 0x6a, 0x59, 0x7f, 0x35, 0xbd, 0xf1, 0xf3,
- 0x7a, 0x28, 0x44, 0xe3, 0x4c, 0x68, 0xb1, 0xb3,
- 0x97, 0x3c, 0x46, 0xe3, 0xc2, 0x12, 0x9e, 0x68,
- 0x0b, 0xa6, 0x6c, 0x8f, 0x58, 0x48, 0x44, 0xa4,
- 0xf7, 0xa7, 0xc2, 0x91, 0x8f, 0xbf, 0x00, 0xd0,
- 0x01, 0x35, 0xd4, 0x86, 0x6e, 0x1f, 0xea, 0x42,
- 0x60, 0xb1, 0x84, 0x27, 0xf4, 0x99, 0x36, 0x06,
- 0x98, 0x12, 0x83, 0x32, 0x9f, 0xcd, 0x50, 0x5a,
- 0x5e, 0xb8, 0x8e, 0xfe, 0x8d, 0x8d, 0x33, 0x2d,
- 0x45, 0xe1, 0xc9, 0xdf, 0x2a, 0xd8, 0x38, 0x1d,
- 0x95, 0xd4, 0x42, 0xee, 0x93, 0x5b, 0x0f, 0x1e,
- 0x07, 0x06, 0x3a, 0x92, 0xf1, 0x59, 0x1d, 0x6e,
- 0x1c, 0x31, 0xf3, 0xce, 0xa9, 0x1f, 0xad, 0x4d,
- 0x76, 0x4d, 0x24, 0x98, 0xe2, 0x0e, 0x8c, 0x35
-};
-
-static unsigned char sigsha512[512] = {
- 0x4e, 0x2f, 0x63, 0x42, 0xc5, 0xf3, 0x05, 0x4a,
- 0xa6, 0x3a, 0x93, 0xa0, 0xd9, 0x33, 0xa0, 0xd1,
- 0x46, 0x33, 0x42, 0xe8, 0x74, 0xeb, 0x3b, 0x10,
- 0x82, 0xd7, 0xcf, 0x39, 0x23, 0xb3, 0xe9, 0x23,
- 0x53, 0x87, 0x8c, 0xee, 0x78, 0xcb, 0xb3, 0xd9,
- 0xd2, 0x6d, 0x1a, 0x7c, 0x01, 0x4f, 0xed, 0x8d,
- 0xf2, 0x72, 0xe4, 0x6a, 0x00, 0x8a, 0x60, 0xa6,
- 0xd5, 0x9c, 0x43, 0x6c, 0xef, 0x38, 0x0c, 0x74,
- 0x82, 0x5d, 0x22, 0xaa, 0x87, 0x81, 0x90, 0x9c,
- 0x64, 0x07, 0x9b, 0x13, 0x51, 0xe0, 0xa5, 0xc2,
- 0x83, 0x78, 0x2b, 0x9b, 0xb3, 0x8a, 0x9d, 0x36,
- 0x33, 0xbd, 0x0d, 0x53, 0x84, 0xae, 0xe8, 0x13,
- 0x36, 0xf6, 0xdf, 0x96, 0xe9, 0xda, 0xc3, 0xd7,
- 0xa9, 0x2f, 0xf3, 0x5e, 0x5f, 0x1f, 0x7f, 0x38,
- 0x7e, 0x8d, 0xbe, 0x90, 0x5e, 0x13, 0xb2, 0x20,
- 0xbb, 0x9d, 0xfe, 0xe1, 0x52, 0xce, 0xe6, 0x80,
- 0xa7, 0x95, 0x24, 0x59, 0xe3, 0xac, 0x24, 0xc4,
- 0xfa, 0x1c, 0x44, 0x34, 0x29, 0x8d, 0xb1, 0xd0,
- 0xd9, 0x4c, 0xff, 0xc4, 0xdb, 0xca, 0xc4, 0x3f,
- 0x38, 0xf9, 0xe4, 0xaf, 0x75, 0x0a, 0x67, 0x4d,
- 0xa0, 0x2b, 0xb0, 0x83, 0xce, 0x53, 0xc4, 0xb9,
- 0x2e, 0x61, 0xb6, 0x64, 0xe5, 0xb5, 0xe5, 0xac,
- 0x9d, 0x51, 0xec, 0x58, 0x42, 0x90, 0x78, 0xf6,
- 0x46, 0x96, 0xef, 0xb6, 0x97, 0xb7, 0x54, 0x28,
- 0x1a, 0x4c, 0x29, 0xf4, 0x7a, 0x33, 0xc6, 0x07,
- 0xfd, 0xec, 0x97, 0x36, 0x1d, 0x42, 0x88, 0x94,
- 0x27, 0xc2, 0xa3, 0xe1, 0xd4, 0x87, 0xa1, 0x8a,
- 0x2b, 0xff, 0x47, 0x60, 0xfe, 0x1f, 0xaf, 0xc2,
- 0xeb, 0x17, 0xdd, 0x56, 0xc5, 0x94, 0x5c, 0xcb,
- 0x23, 0xe5, 0x49, 0x4d, 0x99, 0x06, 0x02, 0x5a,
- 0xfc, 0xfc, 0xdc, 0xee, 0x49, 0xbc, 0x47, 0x60,
- 0xff, 0x6a, 0x63, 0x8b, 0xe1, 0x2e, 0xa3, 0xa7
-};
-
-ATF_TC(isc_rsa_verify);
-ATF_TC_HEAD(isc_rsa_verify, tc) {
- atf_tc_set_md_var(tc, "descr", "RSA verify");
-}
-ATF_TC_BODY(isc_rsa_verify, tc) {
- isc_result_t ret;
- dns_fixedname_t fname;
- isc_buffer_t buf;
- dns_name_t *name;
- dst_key_t *key = NULL;
- dst_context_t *ctx = NULL;
- isc_region_t r;
-
- UNUSED(tc);
-
- ret = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- dns_fixedname_init(&fname);
- name = dns_fixedname_name(&fname);
- isc_buffer_constinit(&buf, "rsa.", 4);
- isc_buffer_add(&buf, 4);
- ret = dns_name_fromtext(name, &buf, NULL, 0, NULL);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- ret = dst_key_fromfile(name, 29235, DST_ALG_RSASHA1,
- DST_TYPE_PUBLIC, "./", mctx, &key);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- /* RSASHA1 */
-
- ret = dst_context_create3(key, mctx, DNS_LOGCATEGORY_DNSSEC,
- ISC_FALSE, &ctx);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- r.base = d;
- r.length = 10;
- ret = dst_context_adddata(ctx, &r);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- r.base = sigsha1;
- r.length = 256;
- ret = dst_context_verify(ctx, &r);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- dst_context_destroy(&ctx);
-
- /* RSAMD5 */
-
-#ifndef PK11_MD5_DISABLE
- key->key_alg = DST_ALG_RSAMD5;
-
- ret = dst_context_create3(key, mctx, DNS_LOGCATEGORY_DNSSEC,
- ISC_FALSE, &ctx);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- r.base = d;
- r.length = 10;
- ret = dst_context_adddata(ctx, &r);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- r.base = sigmd5;
- r.length = 256;
- ret = dst_context_verify(ctx, &r);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- dst_context_destroy(&ctx);
-#endif
-
- /* RSASHA256 */
-
- key->key_alg = DST_ALG_RSASHA256;
-
- ret = dst_context_create3(key, mctx, DNS_LOGCATEGORY_DNSSEC,
- ISC_FALSE, &ctx);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- r.base = d;
- r.length = 10;
- ret = dst_context_adddata(ctx, &r);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- r.base = sigsha256;
- r.length = 256;
- ret = dst_context_verify(ctx, &r);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- dst_context_destroy(&ctx);
-
- /* RSASHA512 */
-
- key->key_alg = DST_ALG_RSASHA512;
-
- ret = dst_context_create3(key, mctx, DNS_LOGCATEGORY_DNSSEC,
- ISC_FALSE, &ctx);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- r.base = d;
- r.length = 10;
- ret = dst_context_adddata(ctx, &r);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- r.base = sigsha512;
- r.length = 256;
- ret = dst_context_verify(ctx, &r);
- ATF_REQUIRE_EQ(ret, ISC_R_SUCCESS);
-
- dst_context_destroy(&ctx);
-
-
- dst_key_free(&key);
- dns_test_end();
-}
-#else
-ATF_TC(untested);
-ATF_TC_HEAD(untested, tc) {
- atf_tc_set_md_var(tc, "descr", "skipping RSA test");
-}
-ATF_TC_BODY(untested, tc) {
- UNUSED(tc);
- atf_tc_skip("RSA not available");
-}
-#endif
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
-#if defined(OPENSSL) || defined(PKCS11CRYPTO)
- ATF_TP_ADD_TC(tp, isc_rsa_verify);
-#else
- ATF_TP_ADD_TC(tp, untested);
-#endif
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/dbiterator/zone1.data b/usr.sbin/bind/lib/dns/tests/testdata/dbiterator/zone1.data
deleted file mode 100644
index 08ba4abf040..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/dbiterator/zone1.data
+++ /dev/null
@@ -1,37 +0,0 @@
-; Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id: zone1.data,v 1.1 2019/12/16 16:31:34 deraadt Exp $
-
-$TTL 600
-@ in soa localhost. postmaster.localhost. (
- 2011080901 ;serial
- 3600 ;refresh
- 1800 ;retry
- 604800 ;expiration
- 600 ) ;minimum
- in ns ns
- in ns ns2
-ns in a 10.0.0.1
-ns2 in a 10.0.0.2
-
-a in txt "test"
-b in txt "test"
-c in txt "test"
-d.e.f in txt "test"
-e in txt "test"
-f.g.h in txt "test"
-f.g.i in txt "test"
-f.g.j in txt "test"
-k in txt "test"
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/dbiterator/zone2.data b/usr.sbin/bind/lib/dns/tests/testdata/dbiterator/zone2.data
deleted file mode 100644
index 7265c27478c..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/dbiterator/zone2.data
+++ /dev/null
@@ -1,319 +0,0 @@
-; File written on Mon Aug 15 16:51:56 2011
-; dnssec_signzone version 9.7.3rc1
-test. 600 IN SOA localhost. postmaster.localhost. (
- 2011080901 ; serial
- 3600 ; refresh (1 hour)
- 1800 ; retry (30 minutes)
- 604800 ; expire (1 week)
- 600 ; minimum (10 minutes)
- )
- 600 RRSIG SOA 7 1 600 20110914225156 (
- 20110815225156 39833 test.
- IoQPcpx+Y2btVBBdM2H/9ppRMjphB1thwrdh
- midhKH+MXDAauUIENucugi3zLsc1o2ke8LnQ
- v3lCLd/bb5MD1otuS8vOw1GWEFhXOUBZU6wS
- QwEIcG4BiSlz7/GvOlRa2znkOmZ3c8bD/J3Y
- XUWDI3BEDPgrZqfxEvoMyPEWjO8= )
- 600 NS ns.test.
- 600 NS ns2.test.
- 600 RRSIG NS 7 1 600 20110914225156 (
- 20110815225156 39833 test.
- OgEimhmFIAqlH0hyQy3pTsveBHKyqs9WfO1S
- uDPRj3DFgFEAjoY473T8GxG2C+jTVL/UMVcb
- BTZ8wIAiUHhqKLcmr0q/1X+kNUs7tNi+6oMn
- /jxaOuRL6c8Kf2gl2t4g6JTwQqLQhUHTfQP+
- bEfKUr75VsVfxCQZIHlZ3/AlxZM= )
- 600 DNSKEY 256 3 7 (
- AwEAAc0FzrE7jUiaKIGZpIaFE8E989topAJN
- dWIQUQ7BSKabmpBP2M+SXHwIiQ/yC25iqudO
- IxjRcK7nHB1VoP84xU2oMj6eeSqQHf/bYaji
- Y8IfR7lgrzoDWzq+0rtnKMJc/JM8SMkcoBAS
- llvxarDJTZheZjlrCvhpRJC+FAkBsx81
- ) ; key id = 39833
- 600 DNSKEY 257 3 7 (
- AwEAAc55LPDhBLqfDUpjYYbBt+N63CiZtKrD
- UDGeFAerbw0MWIUi3PgMr7yGVrj8e5Qjp9UN
- zBUax6NdhlYVtFA8CwMTXGBjxgyqUoWpce08
- lswxfE70BpgUA6w5efs0/mYtX9/A76etCaSI
- oNH2vfa47BCdCPDfC1uTgyeuNuDvhszHaSiD
- 8OY7tLa/voecUlq38sdqi2raf2DvgOm7rdFa
- reXOS/WIj7zd4XYrV1JGthxOMVlQ7zdv9rVd
- UNUIF2d4hwCZJQr0ejhmvB3m/DuNmNOPYmnv
- KTmLSE+IJ6baqYvKOVxwV+SaCnuJEjv+3Yrx
- 8WQYD/iS9WBhC9FUit0dy+0=
- ) ; key id = 57183
- 600 RRSIG DNSKEY 7 1 600 20110914225156 (
- 20110815225156 39833 test.
- xPV+bSGUlbxA5MKBeeRbwUDh3Qc+dm77+OHQ
- BHIr1L8/kRP5o5J7MqPA37kea6nhyltYf9xM
- RsxyiaBGUUeLyWg/q6hTtkNgAHifOPAhiDz8
- AJDSTdSsq9RVtjdobAD0jyzz9sWnB+TPSOmj
- Nlyd7VtPVEuSYljgawwfBBO3Kho= )
- 600 RRSIG DNSKEY 7 1 600 20110914225156 (
- 20110815225156 57183 test.
- S3jkC7AvyFc4ShfHt6AWgS4zpx9DzWHBK9gV
- 2H23OJzy8H1At/CjKxWVHLJ/io+ygryVnt/I
- 47Jyhh9i43TnXj8il475YsweGnXGZSorrcXA
- 3IsD2lOuRYnp3yetxe2ZrMGNDqqImE6X4x1a
- UJI0cbE2UMZfUt8Rm5USiGzwAEgFD1OXxvMD
- UT3flyp+Ote9FConK8gewV4wlJuBFemWT7BZ
- lUYnoqfuAeEn2+1pIBS0iA0LNFjNBaEgtcjo
- QeweN32yKoApau47Dl/Klw7KFT8+PLZ0QPbt
- XAkJU7q94Q5aucDuHCSCTCc+2vZxdEnXKvRY
- rfLuG8r/V5Kn+1iYrQ== )
- 0 NSEC3PARAM 1 0 10 -
- 0 RRSIG NSEC3PARAM 7 1 0 20110914225156 (
- 20110815225156 39833 test.
- kghSSeP8AZiQ/zmxgxAyG0itoUMo5adG5pxD
- p8T3ZmbxEUSyG5acxBFkmeY39wVU0Cda8tWc
- HHrMbB5e2GN8z6xJ0A4rVyXfKSYJSz+iKWfk
- 7sOFRjd8OLYE3di6PwIpk6ORUiRPMFLDQCH0
- Q27hLsSoKyd50orKKI+ncjz7WzU= )
-a.test. 600 IN TXT "test"
- 600 RRSIG TXT 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- UEVOlnL6CDRNCfk/Xge2oaGYCV1+ewwi5zJ0
- CX4DdwiNEkItL4HgBe8xXfxgFC3qySdsSYPE
- 1krdFyIkAclMCwHECd1UwZbGlMTEUGrE1KOB
- 8vQY+OhIV9TAhqNwnjbu7s2ZdNUv3wiUPcfk
- hCJ4rzP6yeV2inLwZulXnhxb6Pk= )
-b.test. 600 IN TXT "test"
- 600 RRSIG TXT 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- HcyQlO9io6Rc5e4vVqlRmK5PacOaFQJmdERG
- 5Aobpgm1FuCLC7F+IMZ0d1XvBWnsw9iDzV43
- UKzTGqUSmDiSBzs4QzHlacGickIW8EOV4xyJ
- +mcJ0FZh4YNbkt6CiX+8SF6IxfCMhRMjpSsK
- rWqJMG3LXkI6W9stShzsYAFBOzQ= )
-e.test. 600 IN TXT "test"
- 600 RRSIG TXT 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- jUn5FGRTL9OcFU7tvfkUnSwY8jA+8JynE0hi
- ZJbYXDU5CiWGmR2B3yPHxUCewRqouyVCV8bc
- xZsSuBxvcdYKryYDbjsmB83GlSEuxE9J7XZs
- 8SxUP8PobLVqzXgEZS/XRU2G+R915ZDP9/iL
- z9oYwc9TkeyXbp8J/ZsH88tG980= )
-c.test. 600 IN TXT "test"
- 600 RRSIG TXT 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- cRxAj45oFDDCd8xQXxD1F0Qq8XeBWAj8EYS3
- 7nFXAgAy8sTczFvYCNGj79o7BALJwM4vc/wx
- 6rjsiO/sHgfTMEBDq6lH9Wql72uhwavI2SrL
- /h/wBP5q4BXlQ4xp6cLhhdifOWhNTvLP+Fe5
- U6yjvqneiKspze9SiFbcmRDiJds= )
-d.e.f.test. 600 IN TXT "test"
- 600 RRSIG TXT 7 4 600 20110914225156 (
- 20110815225156 39833 test.
- ENjCzr/P9rJmj5OJLzYwWtHtBg2Uz+qJDucz
- I97Pq9F819/c5sxNfT4hgICCw6ZfT4ffbzye
- fFJ0JVrh2cYOzu68ozlgek/Uml1UW0pDQVdI
- s4zEgp4XK9wXUxtWChSqp5YXMdeHegZFu32i
- IMNTbJDudwYSwhr2FyG92ZRi8Y8= )
-f.g.h.test. 600 IN TXT "test"
- 600 RRSIG TXT 7 4 600 20110914225156 (
- 20110815225156 39833 test.
- HT7iocFsfDjeX6j9RJdE3xfVGkIxhajFHgM/
- T/mJj/al4HKV6Ajia8DhpdfDrgM2m7r+Pgcn
- FSIstfebQsuFCnHX/gIalDND/grHKsetQnMP
- Y7O4QLsRnTV53fdlqQ4eT+jBW6fzJdGySVN+
- bg6kNJZS8DebjmlKtZz7tXjkP+4= )
-f.g.i.test. 600 IN TXT "test"
- 600 RRSIG TXT 7 4 600 20110914225156 (
- 20110815225156 39833 test.
- kHJJeNSL1rz4QRYqOzhGMQl1yIdio7l8Lg8H
- f0TsvFLa6BudVtwKUm+Kz2QiDn7/Lew8w0KX
- vVHxX/Vwl3Ixk54YgMKLNogz2TEvnh/VGiS7
- 8r0oSUrg0CFd+xDfxnLeRqX5NNfMuSJap5WH
- Aw7IVeRjXDwJFYnytMEnTrhHHHg= )
-f.g.j.test. 600 IN TXT "test"
- 600 RRSIG TXT 7 4 600 20110914225156 (
- 20110815225156 39833 test.
- lIEHEhDFhOWK8W/F2xWELU2p/X77S2KTivm9
- sY4k3RPsLNHE7p+lF8p72Lcb79rtltnoVYtE
- pTIiaUcmgGwfaI4cwfXbeuEgnuTiLg7Xrefx
- 3GT86Q+8gfgbMXUmRA/eouWZhCOaYJN99gYz
- urzDMiRLYmILHmLlnvo82SgXeuk= )
-k.test. 600 IN TXT "test"
- 600 RRSIG TXT 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- wC3zgYWsuLga8Vu3QFu/Ci8SzRbA5bvjSmDj
- NzcpjU5cvJBxtgzatCr02AaUC94bI0JzNrEB
- nFyWCYw55lyy+bAHU1u05UcQmz0n5yxkvmHX
- i8ZjMyQkAvNKodJHaFQqUKKIDuSHD2EziKqg
- eNn55YRS11ihkODehUVNl7TnYeA= )
-ns.test. 600 IN A 10.0.0.1
- 600 RRSIG A 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- VyK/WlQ6ikXdjF/arGzyAyYhOc8IYNBp4QLW
- gtYjvbjIcV5+9JINWmUs61VjJ14nES1sI0xb
- 9vQJuiPXTM1awUAnvOKLhaX6fbJaEiR1w6Cf
- RT5QKBMxNBKVStqdabHcigY4DUuc1PQk1vCw
- yMUJt3nHNVMZk+XAycNHzBeYjik= )
-ns2.test. 600 IN A 10.0.0.2
- 600 RRSIG A 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- CX6UlZL+5NQJViKfbe/E3uIJk/wjUzoiHBhY
- B6gS8nxZzlRPdTTXyMZoRa4etTZEbrRjnyXk
- 1rP47faCUwbh//XqukN9f7FZ4Y39NpPS2XpX
- 0Lx6M93Jz46lbzmseMFs2YmNMzzhN4uhRvl/
- 8gPtYsn9KMXnAlFfa4XrE5LNVyY= )
-1F3JQ6EANHNHOCMUPQTVNM339VDTR51C.test. 600 IN NSEC3 1 0 10 - 7QKPELF33JOK9BVJ7CKE99AHG40B0SH7 A RRSIG
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- w7aS12lxLNh+G1B/2kEq1BO6IzYvyC8n/MGV
- 0jvFnapNXGZMPrPxGeO2wkw1JXepuXCv98be
- M4SjQywaH+VP6ZMTIfjxRxtcCM+aLAFhiz0l
- /MILEkjemmxjAfvV7emRVMwCGcoGI7qC3Xxq
- q5g8EzJiYyTCOnI5LKRggn97wGg= )
-7QKPELF33JOK9BVJ7CKE99AHG40B0SH7.test. 600 IN NSEC3 1 0 10 - 94Q15K1V1VE5F87EI37T2B9A39EEC368 TXT RRSIG
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- J4ObL3p4eN0jWh06M+rX2SSPANQoKfnosElB
- KcKE7fLqEjKK7N6Yh6KUlbEP25tfeZ7W6GBJ
- b7q6Nh0Ax8fYdc/6JVvmxcwWcx5Lw1TfITGB
- ttFntJlbp1A8lwP3pn8Ksql1X2ogh78AsgTb
- X5kmXVukC1oEzt98EAa/V/an8QA= )
-CS8M3UVG0UJDR6USBES4U9SNUGQI2RJE.test. 600 IN NSEC3 1 0 10 - ETEQB5V431INUIIE547FKSOF7O4DJ62J A RRSIG
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- Vyd/2b0S15fACJ8TiPXKtScV9A/ZztVumZAm
- o2S6jaVJKWik+8orDW+WiJ4/PEl26PK2m1uv
- HD2beuUCHj9EnYkN/dzL3Bsc302qr9xqsh0q
- VFS2moznoNG415ZV3vgYR7L9DAp43ZeFuw6I
- 7sr21hLYLUeo31xBsJg7RlOL+4s= )
-ETEQB5V431INUIIE547FKSOF7O4DJ62J.test. 600 IN NSEC3 1 0 10 - F8G1MB0JUEU3FBI11CAVFIPGEA3POOIM
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- oOHs1eb3JYeOMOnzE2PS6NIXBNzSoTYPIxo/
- P0d/ihsLKra3yNJNPTlu4kf+FZoNYAGtMK/D
- 6dZWFvtdswDdi2C5WSgsanuHqXq5Lr3A1nCe
- cQI5PO4RrLymB+MtYg15CNKcnc0WmJO8deSR
- WzNOarC+Iz1Xj3FkKDS4FFr+02Q= )
-94Q15K1V1VE5F87EI37T2B9A39EEC368.test. 600 IN NSEC3 1 0 10 - CS8M3UVG0UJDR6USBES4U9SNUGQI2RJE
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- K0PvN7YtHQ63x/x2yXXa2S9GBGuTNJywDZ8M
- wyMSwytCb9mn4hnKD5mJHaXGTw3YX7usbnEO
- ce6hiJdN/VhMfbRMOvUpgyblOj4kXiYVZY1a
- SyycfugK/Hu1j4az7lIhhnnx58GChA6mg8Vx
- 3Uz6cNDDCSTBTl09NyeUUrKWsHQ= )
-FBH6B0LHT9PPQB1P98D228HA1H52L8PO.test. 600 IN NSEC3 1 0 10 - JGU2L7C3LKLHAKC5RHUOORTI2DCKK3KL
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- giXRE+4ZeIzDrhx1XkFSpIKGFd3UGzlrLZnO
- Ur9nMUfwvU5A3fitEkdayo3ZDH7MQGpSotaH
- ReiFXx3Z6Hm2NIN/RHYZQr9e0vbMYSjkANdu
- HWBA1SrSq5SHyuy970mPd4jfTHiABCo6fJGB
- ykGClZGou0WSaB+Ak19fMbeQ2Wo= )
-JGU2L7C3LKLHAKC5RHUOORTI2DCKK3KL.test. 600 IN NSEC3 1 0 10 - KFMJ88CKMKUQQJE59IKFBOLLLD4DF55H TXT RRSIG
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- BHTDUgZdWNLgz3xHYMqvlWK/IJ0xrXESoREc
- 6D3sO9bcLTMYPO9t80itOlipwp4AmaVOBXPt
- cKSdgsUXDEtHqNSxtGbNr5xQ+Aqsep0GX71V
- HkcIuiNdTUw83dkajCHMkmQCbEjp9mbdiTmS
- haNW2EsscldfaS1aq5tYUhCT3l4= )
-L993U6VC0DUV5QJ8TRPD2IQLM8FJ7AT9.test. 600 IN NSEC3 1 0 10 - LSMRLLNBQGGK8J6V40KLM2LG5TE4FS0P
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- vE7K0Nrju4qLFDYkIyMY5bIMT0wu8MJdxL6u
- 7WVA4HepccKQcUnvVoBAcrA9+MUeteyrad8Y
- SJvQIt7sz5t7FViWSq5IMPVPujWtW5J30LhJ
- mOLd1KmnFWoVthJ1oFNzBM80A60seKNnEw1M
- lV6Y+v0gNYIQensUb9w6SVMTpxE= )
-F8G1MB0JUEU3FBI11CAVFIPGEA3POOIM.test. 600 IN NSEC3 1 0 10 - FA1T7MKUUV9SD4VDBJQ3GRFK1IDTCKL7
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- DkL9ONc0vpsKdG20ol8XPAaVfLb7kf1wnKbR
- rQUB1trGSHm/Igo06of43zm9J+56htFJg1xD
- I2de0sCUBQYyHVBBDiBAd1g+ZvcpUlLP0w8M
- NxMviMiG/WQAdGXHwYfUimwMWD7gNGl1m05H
- HwYmzGs+d1bClDNBrFhdfdL2+iA= )
-LSMRLLNBQGGK8J6V40KLM2LG5TE4FS0P.test. 600 IN NSEC3 1 0 10 - LUAN2Q3I2OCVSD41MP08HNA9JP22D38K
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- ZgiWuMqodQuhwuAF6CIiJTsdRahi+poOiZAM
- WXNP0wXfdptcG2uhbdDwy+0crhe3tuybhwcb
- CuiaQUh0XNPhgF+qmXpGobaqBhCEvCF4K9qY
- OCIoMfsI1pIBVbMw0+YXVarFZ8+mfNU/+6n6
- yy2+1nCg3k4XR2Dpv4CeDBfcAuM= )
-NAL1UIEBM38NKMN6RQOKE8T781IA7UKI.test. 600 IN NSEC3 1 0 10 - OUSGP0LO9FGAROHDULQVSTI3OLQIBB39 TXT RRSIG
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- x8JiXPI+EXHz8ZO/VW0/+9wWsBNqeSMxXZIV
- ibOnogSg7Wi7Yq1xftKC2+xEevNxSZnBibEy
- Sgro5xKTf0n7pD9hHVBLoYmOOnbXY3QNQ2EQ
- y3LdPT355WmwVddVOOxNpNRp2zQyqg7BhVA3
- wxY7tyVQd4x1+95ATUQBnFditdE= )
-KFMJ88CKMKUQQJE59IKFBOLLLD4DF55H.test. 600 IN NSEC3 1 0 10 - L993U6VC0DUV5QJ8TRPD2IQLM8FJ7AT9 TXT RRSIG
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- KQPaN2Ecebifbl4Bz5Yo0x2DgGmZiVhpSydm
- oy/5NtMjt7G472JrKlqByap+VxW0bpzo3IER
- 3P8Dsv7pfBD4/Cl5sFqwZL7wYy7RB4dQLVCi
- Pepc/Mr3gR2XmL91fpGttMj5jGscnVQJCyFa
- obzhsVaVImUQZFDPb0UQUHwIhOA= )
-LUAN2Q3I2OCVSD41MP08HNA9JP22D38K.test. 600 IN NSEC3 1 0 10 - NAL1UIEBM38NKMN6RQOKE8T781IA7UKI TXT RRSIG
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- NJ+X3d0qh2+fbSnG0iQPxAeDIOzX5NTmY9fS
- x7IO/DDcgUhPvl1YYdz5J999cec1zzOKp10J
- YbsIAzg0w/Y4D4CBUw3IkcOrUFOODb6eJQGb
- rVFRqmp3BUP4qOAWUZvx4oQ0KG4K/h/KJMbU
- Vcdl7PF7G5O5hMyR9UWg4zal7Sk= )
-OUSGP0LO9FGAROHDULQVSTI3OLQIBB39.test. 600 IN NSEC3 1 0 10 - PQQ28M3U2MM08GGFV3JKR76G2H9IUJPC TXT RRSIG
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- A/qxYrSE/smBGbST8j8eGPCrRnwvVa25kDha
- IuA3nv0vzXhFvlruc9f0HRGwsq6A2pw3I5W+
- xo2/JxsNyFOotdwaDDEBzqPkJmrzupxQS4Hm
- rHSLnRnNw4QzvzNjAGWMYAoe3OeHC47wmAtI
- qE91EHZTlPP28CUXOMo+7sCaOa8= )
-U0UVS2SUP89P2TM3PJO4TC1GPJ2O6519.test. 600 IN NSEC3 1 0 10 - VA2VG5BEMCKQP6MS5NHHGL18031BIA7M NS SOA RRSIG DNSKEY NSEC3PARAM
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- rahhkfiF+Rk6oqbWTdu9qcwhmj5hbDuIFdiJ
- GmaG+cFSv5Mjp+txNVCvBK9Hq/VpW0ypen/3
- JC0sVAugSX+HAKAgyaMKmgWCvoQZ6ZSJUh7o
- LRPcT+oxVXQAqjovxpaV8k6sYo44tpljPdOD
- UluWAP5SrmJKjzCxs27KGRx8MK4= )
-VA2VG5BEMCKQP6MS5NHHGL18031BIA7M.test. 600 IN NSEC3 1 0 10 - VAKOQ2TPD7S25NFBJT73J3C4OGU10RJ5 TXT RRSIG
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- XcBeZ8lo9Qo8z56+1FdGDjh6ZHCfO+MQ/wnY
- TEUo/aWLkPTyq39nLhe0qVBJxmDpM+KQFuG9
- cjQT5fvrlrY+lv6dedB64EBMYy4kKbIv7N5+
- r6+sfWlvtKsfXxysLSk2+jLEm5NuLFrOdNas
- WLVsq741D3YcWt4kM1HCyk3DNF8= )
-FA1T7MKUUV9SD4VDBJQ3GRFK1IDTCKL7.test. 600 IN NSEC3 1 0 10 - FBH6B0LHT9PPQB1P98D228HA1H52L8PO TXT RRSIG
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- jB/vLrvx4sQQD7J3ZacAAyhcFmIPh7LH3ljw
- IAIaeLb10oX5q1/nQKYdfq976TMy5sWpBcmd
- i91WLxd+T/gOSumyP8bC3g+SUoyZ9wxY6A6a
- MMx1rn0QA9IKrxMqojs9M3urJ8QAeIS+KyAn
- rbyyJuG+EVm0prqlPZtzUi28WCI= )
-PQQ28M3U2MM08GGFV3JKR76G2H9IUJPC.test. 600 IN NSEC3 1 0 10 - U0UVS2SUP89P2TM3PJO4TC1GPJ2O6519
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- asCOU9OkVWMvUU2IUpwMgdYf0faA04zPbaFf
- qywYsv3NH01Lky6G3a0WUPAbBm7TAYx/ln8a
- 559vlpp/gpXEl9CcLrjO6wy5i0ryp8gVHtKJ
- rQlEc/uw4SY+S5t7FuZc2rNRdAbxVMYuwrvm
- HBsKDPblre3e06ZZFEmnGFzCgmg= )
-VAKOQ2TPD7S25NFBJT73J3C4OGU10RJ5.test. 600 IN NSEC3 1 0 10 - VNCCJH8JPOLGLAGVMV3FKS09M7RRDU47 TXT RRSIG
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- Pt4tKB1p/jsyLYab9LSt5MF1KTRT18nRTOox
- q0IACkXkKx7W5xv6nSYXIB+nQzNp1Y1hhoXn
- 9IFi0liPnIAOp73w4vybhfIdTFiEmHPHT6O9
- VIx5cSriqBI6Qda8GtfeIb96P8SojbUk5BDI
- g18iYjviGhQYRgpU3tg1qd7pbcc= )
-VNCCJH8JPOLGLAGVMV3FKS09M7RRDU47.test. 600 IN NSEC3 1 0 10 - 1F3JQ6EANHNHOCMUPQTVNM339VDTR51C
- 600 RRSIG NSEC3 7 2 600 20110914225156 (
- 20110815225156 39833 test.
- ZMZPHawhkuzSV7C7zkgghH/jpw9CQVR1JUXq
- pAeY2iIIWwNhfuskJaLgtu/5SuKnJtrv6D4N
- g+lfEkBReia5xO/SCcHv8/hXEPH8vZ4xe1C9
- 6GVB6ip2hKw2g5HpyF7X18WgwZ0cqPWVg+Q+
- xRLpXH+53391Wt5rG7qJswn5RLE= )
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/diff/zone1.data b/usr.sbin/bind/lib/dns/tests/testdata/diff/zone1.data
deleted file mode 100644
index 18161203cf1..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/diff/zone1.data
+++ /dev/null
@@ -1,20 +0,0 @@
-; Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id: zone1.data,v 1.1 2019/12/16 16:31:34 deraadt Exp $
-
-@ 0 SOA . . 0 0 0 0 0
-@ 0 NS @
-@ 0 A 1.2.3.4
-remove 0 A 5.6.7.8
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/diff/zone2.data b/usr.sbin/bind/lib/dns/tests/testdata/diff/zone2.data
deleted file mode 100644
index 37e5a5f9430..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/diff/zone2.data
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id: zone2.data,v 1.1 2019/12/16 16:31:34 deraadt Exp $
-
-@ 0 SOA . . 0 0 0 0 0
-@ 0 NS @
-@ 0 A 1.2.3.4
-remove 0 A 5.6.7.8
-added 0 A 5.6.7.8
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/diff/zone3.data b/usr.sbin/bind/lib/dns/tests/testdata/diff/zone3.data
deleted file mode 100644
index b9890bcd91e..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/diff/zone3.data
+++ /dev/null
@@ -1,19 +0,0 @@
-; Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id: zone3.data,v 1.1 2019/12/16 16:31:34 deraadt Exp $
-
-@ 0 SOA . . 0 0 0 0 0
-@ 0 NS @
-@ 0 A 1.2.3.4
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master1.data b/usr.sbin/bind/lib/dns/tests/testdata/master/master1.data
deleted file mode 100644
index 030bc689355..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master1.data
+++ /dev/null
@@ -1,11 +0,0 @@
-$TTL 1000
-@ in soa localhost. postmaster.localhost. (
- 1993050801 ;serial
- 3600 ;refresh
- 1800 ;retry
- 604800 ;expiration
- 3600 ) ;minimum
- in ns ns.vix.com.
- in ns ns2.vix.com.
- in ns ns3.vix.com.
-b in a 1.2.3.4
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master10.data b/usr.sbin/bind/lib/dns/tests/testdata/master/master10.data
deleted file mode 100644
index 9ee052fca90..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master10.data
+++ /dev/null
@@ -1,7 +0,0 @@
-;
-; the following black line contains spaces
-
-;
-@ 300 IN A 10.0.0.1
- ;
-;
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master11.data b/usr.sbin/bind/lib/dns/tests/testdata/master/master11.data
deleted file mode 100644
index 0aaec25ecf3..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master11.data
+++ /dev/null
@@ -1,6 +0,0 @@
-;
-; The following serial number contains a leading 0 and a 9 so the
-; we can catch cases where it is incorrectly treated as a octal
-; number.
-;
-@ 300 IN SOA ns hostmaster 00090000 1200 3600 604800 300
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master12.data.in b/usr.sbin/bind/lib/dns/tests/testdata/master/master12.data.in
deleted file mode 100644
index 36343882eb6..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master12.data.in
+++ /dev/null
@@ -1 +0,0 @@
-00000002000000004ed7306600000051000100060000000003e80000000100060474657374000035096c6f63616c686f7374000a706f73746d6173746572096c6f63616c686f73740076cb8ab100000e100000070800093a8000000e1000000046000100020000000003e8000000030006047465737400000c026e730376697803636f6d00000d036e73320376697803636f6d00000d036e73330376697803636f6d0000000022000100010000000003e80000000100080162047465737400000401020304
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master13.data.in b/usr.sbin/bind/lib/dns/tests/testdata/master/master13.data.in
deleted file mode 100644
index d1c262f01dc..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master13.data.in
+++ /dev/null
@@ -1 +0,0 @@
-00000002000000014ed7337f00000000000000000000000000000051000100060000000003e80000000100060474657374000035096c6f63616c686f7374000a706f73746d6173746572096c6f63616c686f73740076cb8ab100000e100000070800093a8000000e1000000046000100020000000003e8000000030006047465737400000c026e730376697803636f6d00000d036e73320376697803636f6d00000d036e73330376697803636f6d0000000022000100010000000003e80000000100080162047465737400000401020304
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master14.data.in b/usr.sbin/bind/lib/dns/tests/testdata/master/master14.data.in
deleted file mode 100644
index 149a25f33ee..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master14.data.in
+++ /dev/null
@@ -1 +0,0 @@
-00000002000000014ed7337f0000000277df41e50000000000000051000100060000000003e80000000100060474657374000035096c6f63616c686f7374000a706f73746d6173746572096c6f63616c686f73740076cb8ab100000e100000070800093a8000000e1000000046000100020000000003e8000000030006047465737400000c026e730376697803636f6d00000d036e73320376697803636f6d00000d036e73330376697803636f6d0000000022000100010000000003e80000000100080162047465737400000401020304
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master15.data b/usr.sbin/bind/lib/dns/tests/testdata/master/master15.data
deleted file mode 100644
index cf413ce5ad3..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master15.data
+++ /dev/null
@@ -1,1609 +0,0 @@
-$TTL 1000
-@ in soa localhost. postmaster.localhost. (
- 1993050801 ;serial
- 3600 ;refresh
- 1800 ;retry
- 604800 ;expiration
- 3600 ) ;minimum
- in ns ns.vix.com.
- in ns ns2.vix.com.
- in ns ns3.vix.com.
-b in a 1.2.3.4
-c in txt ( TOOBIGTOOBIGTOOBIGTOOBIGTOOBIGTOOBI
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890 )
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master16.data b/usr.sbin/bind/lib/dns/tests/testdata/master/master16.data
deleted file mode 100644
index e969bd3a43f..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master16.data
+++ /dev/null
@@ -1,1609 +0,0 @@
-$TTL 1000
-@ in soa localhost. postmaster.localhost. (
- 1993050801 ;serial
- 3600 ;refresh
- 1800 ;retry
- 604800 ;expiration
- 3600 ) ;minimum
- in ns ns.vix.com.
- in ns ns2.vix.com.
- in ns ns3.vix.com.
-b in a 1.2.3.4
-c in txt ( MAXSIZSEMAXSIZSEMAXSIZSEMAXSIZSMAX
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890
- 1234567890123456789012345678901234567890 )
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master17.data b/usr.sbin/bind/lib/dns/tests/testdata/master/master17.data
deleted file mode 100644
index 4b2b63d253c..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master17.data
+++ /dev/null
@@ -1,14 +0,0 @@
-$ORIGIN test.
-$TTL 1000
-@ in soa localhost. postmaster.localhost. (
- 1993050801 ;serial
- 3600 ;refresh
- 1800 ;retry
- 604800 ;expiration
- 3600 ) ;minimum
- in ns ns.test.
- in ns ns2.test.
- in ns ns3.test.
-b in a 1.2.3.4
-$ORIGIN sub.test.
- in a 4.3.2.1
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master2.data b/usr.sbin/bind/lib/dns/tests/testdata/master/master2.data
deleted file mode 100644
index b8ca38dd0d9..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master2.data
+++ /dev/null
@@ -1,11 +0,0 @@
-$TTL 1000
-@ in soa localhost. postmaster.localhost. (
- 1993050801 ;serial
- 3600 ;refresh
- 1800 ;retry
- 604800 ;expiration
- 3600 ) ;minimum
-a in ns
-a in ns ns2vix.com.
-a in ns ns3vix.com.
-b in a 1.2.3.4
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master3.data b/usr.sbin/bind/lib/dns/tests/testdata/master/master3.data
deleted file mode 100644
index 7283af61b67..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master3.data
+++ /dev/null
@@ -1,11 +0,0 @@
-$TTL 1000
- in soa localhost. postmaster.localhost. (
- 1993050801 ;serial
- 3600 ;refresh
- 1800 ;retry
- 604800 ;expiration
- 3600 ) ;minimum
- in ns ns.vix.com
- in ns ns2vix.com.
-a in ns ns3vix.com.
-b in a 1.2.3.4
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master4.data b/usr.sbin/bind/lib/dns/tests/testdata/master/master4.data
deleted file mode 100644
index 3a694ea5e3b..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master4.data
+++ /dev/null
@@ -1,11 +0,0 @@
-
-@ in soa localhost. postmaster.localhost. (
- 1993050801 ;serial
- 3600 ;refresh
- 1800 ;retry
- 604800 ;expiration
- 3600 ) ;minimum
-a in ns ns.vix.com.
-a in ns ns2vix.com.
-a in ns ns3vix.com.
-b in a 1.2.3.4
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master5.data b/usr.sbin/bind/lib/dns/tests/testdata/master/master5.data
deleted file mode 100644
index 95234bdafd6..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master5.data
+++ /dev/null
@@ -1,11 +0,0 @@
-$TTL 1000
-@ in soa localhost. postmaster.localhost. (
- 1993050801 ;serial
- 3600 ;refresh
- 1800 ;retry
- 604800 ;expiration
- 3600 ) ;minimum
-a any ns ns.vix.com.
-a in ns ns2vix.com.
-a in ns ns3vix.com.
-b in a 1.2.3.4
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master6.data b/usr.sbin/bind/lib/dns/tests/testdata/master/master6.data
deleted file mode 100644
index a9a37bbf8e1..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master6.data
+++ /dev/null
@@ -1,33 +0,0 @@
-
-$TTL 1000
-@ in soa localhost. postmaster.localhost. (
- 1993050801 ;serial
- 3600 ;refresh
- 1800 ;retry
- 604800 ;expiration
- 3600 ) ;minimum
-
-secure1 3600 IN DNSKEY (
- FLAG2|FLAG4|FLAG5|NTYP3|FLAG8|FLAG9|FLAG10|FLAG11|SIG15
- 3 3
- ArT0a8FtOZWEONG2YQVl9+RA34op30JPz4NPEroCxm2yImT2
- 2OYggnPIzrgayyepgKU1PfTTypnJDTwrSrtISyEsj7tjM7/n
- 03DP8VWSn0aLwpUuc7Sx9vtM1Wi+YeiA4Bv2Oz1VB9de4qql
- sIq+KLn8J4wz95bGnJ0mHUB7oTDJ3Hl1zeaCMdX69Kr46yAY
- AvGJJdGGDYxYgxzx2zNdzypkYSkxpdsNqUt38tabSfdvCn12
- pnmSWjlVJsjHhsaYnrPhouN5acOXMNbxNVbGU5LZ8Es6EYbV
- /7YMt8VUkA8/8UCszBBT7XAJ3OFjiMO8mvxrZZFzvwJlPBQ1
- oFq/TNZlSe+N )
-
-secure2 3600 in DNSKEY (
- flag2|flag4|flag5|ntyp3|flag8|flag9|flag10|flag11|sig15
- 3 3
- ArT0a8FtOZWEONG2YQVl9+RA34op30JPz4NPEroCxm2yImT2
- 2OYggnPIzrgayyepgKU1PfTTypnJDTwrSrtISyEsj7tjM7/n
- 03DP8VWSn0aLwpUuc7Sx9vtM1Wi+YeiA4Bv2Oz1VB9de4qql
- sIq+KLn8J4wz95bGnJ0mHUB7oTDJ3Hl1zeaCMdX69Kr46yAY
- AvGJJdGGDYxYgxzx2zNdzypkYSkxpdsNqUt38tabSfdvCn12
- pnmSWjlVJsjHhsaYnrPhouN5acOXMNbxNVbGU5LZ8Es6EYbV
- /7YMt8VUkA8/8UCszBBT7XAJ3OFjiMO8mvxrZZFzvwJlPBQ1
- oFq/TNZlSe+N )
-
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master7.data b/usr.sbin/bind/lib/dns/tests/testdata/master/master7.data
deleted file mode 100644
index 2638b5d77b3..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master7.data
+++ /dev/null
@@ -1,17 +0,0 @@
-
-$TTL 1000
-@ in soa localhost. postmaster.localhost. (
- 1993050801 ;serial
- 3600 ;refresh
- 1800 ;retry
- 604800 ;expiration
- 3600 ) ;minimum
-
-secure1 3600 IN DNSKEY (
- NOKEY|FLAG2|FLAG4|FLAG5|NTYP3|FLAG8|FLAG9|FLAG10|FLAG11|SIG15
- 3 3 )
-
-secure2 3600 in DNSKEY (
- nokey|flag2|flag4|flag5|ntyp3|flag8|flag9|flag10|flag11|sig15
- 3 3 )
-
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master8.data b/usr.sbin/bind/lib/dns/tests/testdata/master/master8.data
deleted file mode 100644
index 2210f423543..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master8.data
+++ /dev/null
@@ -1,4 +0,0 @@
-;
-; master7.data contains a good zone file
-;
-$include testdata/master/master7.data
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/master/master9.data b/usr.sbin/bind/lib/dns/tests/testdata/master/master9.data
deleted file mode 100644
index b22688bd722..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/master/master9.data
+++ /dev/null
@@ -1,4 +0,0 @@
-;
-; master5.data is bad
-;
-$include testdata/master/master5.data
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/nsec3/1024.db b/usr.sbin/bind/lib/dns/tests/testdata/nsec3/1024.db
deleted file mode 100644
index a80dfcfdff0..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/nsec3/1024.db
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2012 Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id: 1024.db,v 1.1 2019/12/16 16:31:34 deraadt Exp $
-
-$TTL 0
-test. SOA . . 0 0 0 0 0
-test. NS .
-; 1024 bit key.
-test. IN DNSKEY 256 3 5 AwEAAd5oKx06HRE6NRrTDz49lljdRmxgp/4YB/cyMkpwUMkaLhDNCfTq hql84ab2LRbtUWLHFXGWENvxPGQzVHeleXu+3ThNfFOwIaySedxHmLGT lTtBRDhPc8iSb+2IYDemmA+ut8kwHhCVz/tDMbD/dgAswdOtmXCpQyJk Q1HqY3Xj
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/nsec3/2048.db b/usr.sbin/bind/lib/dns/tests/testdata/nsec3/2048.db
deleted file mode 100644
index 65c675492ba..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/nsec3/2048.db
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2012 Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id: 2048.db,v 1.1 2019/12/16 16:31:34 deraadt Exp $
-
-$TTL 0
-test. SOA . . 0 0 0 0 0
-test. NS .
-; 2048 bits
-test. IN DNSKEY 256 3 5 AwEAAcfQX59iZr9gK+XzhTZQ5KWrfCLA0iYHTqheEIhC2dXS8gUSppQS g9SmzH2129u/LSSb7gqJSoLLAsn36iinqCqUXl2BT6xzwznbSP3mn0hn N6DegsykcYhHycKH6ifjZiMN+SGGeNsi5rhoW5Cj9ptw3C3yQnrFNDbS GZCT97z5lpQU3ZcvP4RDNk7dhri7Bh3SJeaCFoqx00NgFvlBR48hosSG bGUbUKzNf58GBTkW4Us2jIWsreZx8LLLev232Hy7NU9L19k+hVq7pJOf Uvtrn5fmGSutWOzsR+8EacOnh0lwssCKjutk5MSmfdFC5P7CTZkdq58L 8he13HGmr00=
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/nsec3/4096.db b/usr.sbin/bind/lib/dns/tests/testdata/nsec3/4096.db
deleted file mode 100644
index e7e8214c4c4..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/nsec3/4096.db
+++ /dev/null
@@ -1,21 +0,0 @@
-; Copyright (C) 2012 Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id: 4096.db,v 1.1 2019/12/16 16:31:34 deraadt Exp $
-
-$TTL 0
-test. SOA . . 0 0 0 0 0
-test. NS .
-; 4096 bits
-test. IN DNSKEY 256 3 5 AwEAAbYlqbKxXoq9mzkqdsAaSZ3XywBVAb2sCTgrQBCExyGEYNpWw3LN +imCrLQi7jHKQW6GZIqKNgQaiFEwr3zK8nPWbwNwyKU9a2hhINv/gim1 5iA87Vu7DiiJrQ0O79ospvsGsKknBQ41zaaQMp3Q/W1S6WNe4uyh4C/f R0qmxT+8MyXEqCpTGb+e+YT6BuqpNQPuYYYvUJ1/HJltzY/lY2b9RZ+Q ZJ23Zje79YIRM0kJapqj11fDUDeynhDL1DUikYCwRfQiO/blChhOHjIa uTK1qqRY3fqanLGOufpLTr7GRpL7RxeRIMJfDzmcjFLmCsMA1AJ56Bxq jiXr3ODgn9D30vAB74Lr7lqLQSWyrSlJjoZLLhmPrEP/nnuCxEhOhDRA XJpJWpcQ4Hdu+yb5K/qldnsGLLI1Hr0GmhLTDHsxDb6BxM7/8rv8QeQY GKSGshBqD2lO1xUVT8inbi8uXI1iyN68vHX6xoFT5wsjls70PxSZPO5i F40vn6BWNsHtKWOCDqMKYx8hYwiv0zETVwxBaj58vylFwYGU+g1wIQmF Pgi2HKv4KaxgikUvdFISre5rxVoG5VrmmXWiNJcLTbwZ+tE1xujCNU1c V31CaIB5hdSnkEvQADr5V64RTxWAKuSLNMU+XUqTkaJHasSm3OPJOteo SPj2uoesuxNFYps3
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/nsec3/min-1024.db b/usr.sbin/bind/lib/dns/tests/testdata/nsec3/min-1024.db
deleted file mode 100644
index 0bae6915af7..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/nsec3/min-1024.db
+++ /dev/null
@@ -1,25 +0,0 @@
-; Copyright (C) 2012 Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id: min-1024.db,v 1.1 2019/12/16 16:31:34 deraadt Exp $
-
-$TTL 0
-test. SOA . . 0 0 0 0 0
-test. NS .
-; 1024 bit key.
-test. IN DNSKEY 256 3 5 AwEAAd5oKx06HRE6NRrTDz49lljdRmxgp/4YB/cyMkpwUMkaLhDNCfTq hql84ab2LRbtUWLHFXGWENvxPGQzVHeleXu+3ThNfFOwIaySedxHmLGT lTtBRDhPc8iSb+2IYDemmA+ut8kwHhCVz/tDMbD/dgAswdOtmXCpQyJk Q1HqY3Xj
-; 2048 bits
-test. IN DNSKEY 256 3 5 AwEAAcfQX59iZr9gK+XzhTZQ5KWrfCLA0iYHTqheEIhC2dXS8gUSppQS g9SmzH2129u/LSSb7gqJSoLLAsn36iinqCqUXl2BT6xzwznbSP3mn0hn N6DegsykcYhHycKH6ifjZiMN+SGGeNsi5rhoW5Cj9ptw3C3yQnrFNDbS GZCT97z5lpQU3ZcvP4RDNk7dhri7Bh3SJeaCFoqx00NgFvlBR48hosSG bGUbUKzNf58GBTkW4Us2jIWsreZx8LLLev232Hy7NU9L19k+hVq7pJOf Uvtrn5fmGSutWOzsR+8EacOnh0lwssCKjutk5MSmfdFC5P7CTZkdq58L 8he13HGmr00=
-; 4096 bits
-test. IN DNSKEY 256 3 5 AwEAAbYlqbKxXoq9mzkqdsAaSZ3XywBVAb2sCTgrQBCExyGEYNpWw3LN +imCrLQi7jHKQW6GZIqKNgQaiFEwr3zK8nPWbwNwyKU9a2hhINv/gim1 5iA87Vu7DiiJrQ0O79ospvsGsKknBQ41zaaQMp3Q/W1S6WNe4uyh4C/f R0qmxT+8MyXEqCpTGb+e+YT6BuqpNQPuYYYvUJ1/HJltzY/lY2b9RZ+Q ZJ23Zje79YIRM0kJapqj11fDUDeynhDL1DUikYCwRfQiO/blChhOHjIa uTK1qqRY3fqanLGOufpLTr7GRpL7RxeRIMJfDzmcjFLmCsMA1AJ56Bxq jiXr3ODgn9D30vAB74Lr7lqLQSWyrSlJjoZLLhmPrEP/nnuCxEhOhDRA XJpJWpcQ4Hdu+yb5K/qldnsGLLI1Hr0GmhLTDHsxDb6BxM7/8rv8QeQY GKSGshBqD2lO1xUVT8inbi8uXI1iyN68vHX6xoFT5wsjls70PxSZPO5i F40vn6BWNsHtKWOCDqMKYx8hYwiv0zETVwxBaj58vylFwYGU+g1wIQmF Pgi2HKv4KaxgikUvdFISre5rxVoG5VrmmXWiNJcLTbwZ+tE1xujCNU1c V31CaIB5hdSnkEvQADr5V64RTxWAKuSLNMU+XUqTkaJHasSm3OPJOteo SPj2uoesuxNFYps3
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/nsec3/min-2048.db b/usr.sbin/bind/lib/dns/tests/testdata/nsec3/min-2048.db
deleted file mode 100644
index f4af8cac3f3..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/nsec3/min-2048.db
+++ /dev/null
@@ -1,23 +0,0 @@
-; Copyright (C) 2012 Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id: min-2048.db,v 1.1 2019/12/16 16:31:34 deraadt Exp $
-
-$TTL 0
-test. SOA . . 0 0 0 0 0
-test. NS .
-; 2048 bits
-test. IN DNSKEY 256 3 5 AwEAAcfQX59iZr9gK+XzhTZQ5KWrfCLA0iYHTqheEIhC2dXS8gUSppQS g9SmzH2129u/LSSb7gqJSoLLAsn36iinqCqUXl2BT6xzwznbSP3mn0hn N6DegsykcYhHycKH6ifjZiMN+SGGeNsi5rhoW5Cj9ptw3C3yQnrFNDbS GZCT97z5lpQU3ZcvP4RDNk7dhri7Bh3SJeaCFoqx00NgFvlBR48hosSG bGUbUKzNf58GBTkW4Us2jIWsreZx8LLLev232Hy7NU9L19k+hVq7pJOf Uvtrn5fmGSutWOzsR+8EacOnh0lwssCKjutk5MSmfdFC5P7CTZkdq58L 8he13HGmr00=
-; 4096 bits
-test. IN DNSKEY 256 3 5 AwEAAbYlqbKxXoq9mzkqdsAaSZ3XywBVAb2sCTgrQBCExyGEYNpWw3LN +imCrLQi7jHKQW6GZIqKNgQaiFEwr3zK8nPWbwNwyKU9a2hhINv/gim1 5iA87Vu7DiiJrQ0O79ospvsGsKknBQ41zaaQMp3Q/W1S6WNe4uyh4C/f R0qmxT+8MyXEqCpTGb+e+YT6BuqpNQPuYYYvUJ1/HJltzY/lY2b9RZ+Q ZJ23Zje79YIRM0kJapqj11fDUDeynhDL1DUikYCwRfQiO/blChhOHjIa uTK1qqRY3fqanLGOufpLTr7GRpL7RxeRIMJfDzmcjFLmCsMA1AJ56Bxq jiXr3ODgn9D30vAB74Lr7lqLQSWyrSlJjoZLLhmPrEP/nnuCxEhOhDRA XJpJWpcQ4Hdu+yb5K/qldnsGLLI1Hr0GmhLTDHsxDb6BxM7/8rv8QeQY GKSGshBqD2lO1xUVT8inbi8uXI1iyN68vHX6xoFT5wsjls70PxSZPO5i F40vn6BWNsHtKWOCDqMKYx8hYwiv0zETVwxBaj58vylFwYGU+g1wIQmF Pgi2HKv4KaxgikUvdFISre5rxVoG5VrmmXWiNJcLTbwZ+tE1xujCNU1c V31CaIB5hdSnkEvQADr5V64RTxWAKuSLNMU+XUqTkaJHasSm3OPJOteo SPj2uoesuxNFYps3
diff --git a/usr.sbin/bind/lib/dns/tests/testdata/zt/zone1.db b/usr.sbin/bind/lib/dns/tests/testdata/zt/zone1.db
deleted file mode 100644
index 2cdb46d73c9..00000000000
--- a/usr.sbin/bind/lib/dns/tests/testdata/zt/zone1.db
+++ /dev/null
@@ -1,27 +0,0 @@
-; Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id: zone1.db,v 1.1 2019/12/16 16:31:34 deraadt Exp $
-
-$TTL 1000
-@ in soa localhost. postmaster.localhost. (
- 1993050801 ;serial
- 3600 ;refresh
- 1800 ;retry
- 604800 ;expiration
- 3600 ) ;minimum
- in ns ns.vix.com.
- in ns ns2.vix.com.
- in ns ns3.vix.com.
-a in a 1.2.3.4
diff --git a/usr.sbin/bind/lib/dns/tests/time_test.c b/usr.sbin/bind/lib/dns/tests/time_test.c
deleted file mode 100644
index 3650839e4e9..00000000000
--- a/usr.sbin/bind/lib/dns/tests/time_test.c
+++ /dev/null
@@ -1,218 +0,0 @@
-/*
- * Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: time_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <dns/time.h>
-
-#include "dnstest.h"
-
-#define TEST_ORIGIN "test"
-
-/*
- * Individual unit tests
- */
-
-/* value = 0xfffffffff <-> 19691231235959 */
-ATF_TC(epoch_minus_one);
-ATF_TC_HEAD(epoch_minus_one, tc) {
- atf_tc_set_md_var(tc, "descr", "0xffffffff <-> 19691231235959");
-}
-ATF_TC_BODY(epoch_minus_one, tc) {
- const char *test_text = "19691231235959";
- const isc_uint32_t test_time = 0xffffffff;
- isc_result_t result;
- isc_buffer_t target;
- isc_uint32_t when;
- char buf[128];
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- memset(buf, 0, sizeof(buf));
- isc_buffer_init(&target, buf, sizeof(buf));
- result = dns_time32_totext(test_time, &target);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_STREQ(buf, test_text);
- result = dns_time32_fromtext(test_text, &when);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(when, test_time);
- dns_test_end();
-}
-
-/* value = 0x000000000 <-> 19700101000000*/
-ATF_TC(epoch);
-ATF_TC_HEAD(epoch, tc) {
- atf_tc_set_md_var(tc, "descr", "0x00000000 <-> 19700101000000");
-}
-ATF_TC_BODY(epoch, tc) {
- const char *test_text = "19700101000000";
- const isc_uint32_t test_time = 0x00000000;
- isc_result_t result;
- isc_buffer_t target;
- isc_uint32_t when;
- char buf[128];
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- memset(buf, 0, sizeof(buf));
- isc_buffer_init(&target, buf, sizeof(buf));
- result = dns_time32_totext(test_time, &target);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_STREQ(buf, test_text);
- result = dns_time32_fromtext(test_text, &when);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(when, test_time);
- dns_test_end();
-}
-
-/* value = 0x7fffffff <-> 20380119031407 */
-ATF_TC(half_maxint);
-ATF_TC_HEAD(half_maxint, tc) {
- atf_tc_set_md_var(tc, "descr", "0x7fffffff <-> 20380119031407");
-}
-ATF_TC_BODY(half_maxint, tc) {
- const char *test_text = "20380119031407";
- const isc_uint32_t test_time = 0x7fffffff;
- isc_result_t result;
- isc_buffer_t target;
- isc_uint32_t when;
- char buf[128];
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- memset(buf, 0, sizeof(buf));
- isc_buffer_init(&target, buf, sizeof(buf));
- result = dns_time32_totext(test_time, &target);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_STREQ(buf, test_text);
- result = dns_time32_fromtext(test_text, &when);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(when, test_time);
- dns_test_end();
-}
-
-/* value = 0x80000000 <-> 20380119031408 */
-ATF_TC(half_plus_one);
-ATF_TC_HEAD(half_plus_one, tc) {
- atf_tc_set_md_var(tc, "descr", "0x80000000 <-> 20380119031408");
-}
-ATF_TC_BODY(half_plus_one, tc) {
- const char *test_text = "20380119031408";
- const isc_uint32_t test_time = 0x80000000;
- isc_result_t result;
- isc_buffer_t target;
- isc_uint32_t when;
- char buf[128];
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- memset(buf, 0, sizeof(buf));
- isc_buffer_init(&target, buf, sizeof(buf));
- result = dns_time32_totext(test_time, &target);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_STREQ(buf, test_text);
- result = dns_time32_fromtext(test_text, &when);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(when, test_time);
- dns_test_end();
-}
-
-/* value = 0xef68f5d0 <-> 19610307130000 */
-ATF_TC(fifty_before);
-ATF_TC_HEAD(fifty_before, tc) {
- atf_tc_set_md_var(tc, "descr", "0xef68f5d0 <-> 19610307130000");
-}
-ATF_TC_BODY(fifty_before, tc) {
- isc_result_t result;
- const char *test_text = "19610307130000";
- const isc_uint32_t test_time = 0xef68f5d0;
- isc_buffer_t target;
- isc_uint32_t when;
- char buf[128];
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- memset(buf, 0, sizeof(buf));
- isc_buffer_init(&target, buf, sizeof(buf));
- result = dns_time32_totext(test_time, &target);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_STREQ(buf, test_text);
- result = dns_time32_fromtext(test_text, &when);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(when, test_time);
- dns_test_end();
-}
-
-/* value = 0x4d74d6d0 <-> 20110307130000 */
-ATF_TC(some_ago);
-ATF_TC_HEAD(some_ago, tc) {
- atf_tc_set_md_var(tc, "descr", "0x4d74d6d0 <-> 20110307130000");
-}
-ATF_TC_BODY(some_ago, tc) {
- const char *test_text = "20110307130000";
- const isc_uint32_t test_time = 0x4d74d6d0;
- isc_result_t result;
- isc_buffer_t target;
- isc_uint32_t when;
- char buf[128];
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- memset(buf, 0, sizeof(buf));
- isc_buffer_init(&target, buf, sizeof(buf));
- result = dns_time32_totext(test_time, &target);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_STREQ(buf, test_text);
- result = dns_time32_fromtext(test_text, &when);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(when, test_time);
- dns_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, epoch_minus_one);
- ATF_TP_ADD_TC(tp, epoch);
- ATF_TP_ADD_TC(tp, half_maxint);
- ATF_TP_ADD_TC(tp, half_plus_one);
- ATF_TP_ADD_TC(tp, fifty_before);
- ATF_TP_ADD_TC(tp, some_ago);
-
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/dns/tests/tsig_test.c b/usr.sbin/bind/lib/dns/tests/tsig_test.c
deleted file mode 100644
index 62fbedb9b1e..00000000000
--- a/usr.sbin/bind/lib/dns/tests/tsig_test.c
+++ /dev/null
@@ -1,499 +0,0 @@
-/*
- * Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* ! \file */
-
-#include <config.h>
-#include <atf-c.h>
-
-#include <isc/mem.h>
-#include <isc/print.h>
-
-#include <dns/rdatalist.h>
-#include <dns/rdataset.h>
-#include <dns/tsig.h>
-
-#include "dnstest.h"
-
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h> /* uintptr_t */
-#endif
-
-static int debug = 0;
-
-static isc_result_t
-add_mac(dst_context_t *tsigctx, isc_buffer_t *buf) {
- dns_rdata_any_tsig_t tsig;
- dns_rdata_t rdata = DNS_RDATA_INIT;
- isc_buffer_t databuf;
- isc_region_t r;
- isc_result_t result;
- unsigned char tsigbuf[1024];
-
- isc_buffer_usedregion(buf, &r);
- dns_rdata_fromregion(&rdata, dns_rdataclass_any,
- dns_rdatatype_tsig, &r);
- isc_buffer_init(&databuf, tsigbuf, sizeof(tsigbuf));
- CHECK(dns_rdata_tostruct(&rdata, &tsig, NULL));
- isc_buffer_putuint16(&databuf, tsig.siglen);
- isc_buffer_putmem(&databuf, tsig.signature, tsig.siglen);
- isc_buffer_usedregion(&databuf, &r);
- result = dst_context_adddata(tsigctx, &r);
- dns_rdata_freestruct(&tsig);
- cleanup:
- return (result);
-}
-
-static isc_result_t
-add_tsig(dst_context_t *tsigctx, dns_tsigkey_t *key, isc_buffer_t *target) {
- dns_compress_t cctx;
- dns_rdata_any_tsig_t tsig;
- dns_rdata_t rdata = DNS_RDATA_INIT;
- dns_rdatalist_t rdatalist;
- dns_rdataset_t rdataset;
- isc_buffer_t *dynbuf = NULL;
- isc_buffer_t databuf;
- isc_buffer_t sigbuf;
- isc_region_t r;
- isc_result_t result = ISC_R_SUCCESS;
- isc_stdtime_t now;
- unsigned char tsigbuf[1024];
- unsigned int count;
- unsigned int sigsize;
- isc_boolean_t invalidate_ctx = ISC_FALSE;
-
- CHECK(dns_compress_init(&cctx, -1, mctx));
- invalidate_ctx = ISC_TRUE;
-
- memset(&tsig, 0, sizeof(tsig));
- tsig.common.rdclass = dns_rdataclass_any;
- tsig.common.rdtype = dns_rdatatype_tsig;
- ISC_LINK_INIT(&tsig.common, link);
- dns_name_init(&tsig.algorithm, NULL);
- dns_name_clone(key->algorithm, &tsig.algorithm);
-
- isc_stdtime_get(&now);
- tsig.timesigned = now;
- tsig.fudge = DNS_TSIG_FUDGE;
- tsig.originalid = 50;
- tsig.error = dns_rcode_noerror;
- tsig.otherlen = 0;
- tsig.other = NULL;
-
- isc_buffer_init(&databuf, tsigbuf, sizeof(tsigbuf));
- isc_buffer_putuint48(&databuf, tsig.timesigned);
- isc_buffer_putuint16(&databuf, tsig.fudge);
- isc_buffer_usedregion(&databuf, &r);
- CHECK(dst_context_adddata(tsigctx, &r));
-
- CHECK(dst_key_sigsize(key->key, &sigsize));
- tsig.signature = (unsigned char *) isc_mem_get(mctx, sigsize);
- if (tsig.signature == NULL)
- CHECK(ISC_R_NOMEMORY);
- isc_buffer_init(&sigbuf, tsig.signature, sigsize);
- CHECK(dst_context_sign(tsigctx, &sigbuf));
- tsig.siglen = isc_buffer_usedlength(&sigbuf);
-
- CHECK(isc_buffer_allocate(mctx, &dynbuf, 512));
- CHECK(dns_rdata_fromstruct(&rdata, dns_rdataclass_any,
- dns_rdatatype_tsig, &tsig, dynbuf));
- dns_rdatalist_init(&rdatalist);
- rdatalist.rdclass = dns_rdataclass_any;
- rdatalist.type = dns_rdatatype_tsig;
- ISC_LIST_APPEND(rdatalist.rdata, &rdata, link);
- dns_rdataset_init(&rdataset);
- CHECK(dns_rdatalist_tordataset(&rdatalist, &rdataset));
- CHECK(dns_rdataset_towire(&rdataset, &key->name, &cctx,
- target, 0, &count));
-
- /*
- * Fixup additional record count.
- */
- ((unsigned char*)target->base)[11]++;
- if (((unsigned char*)target->base)[11] == 0)
- ((unsigned char*)target->base)[10]++;
- cleanup:
- if (tsig.signature != NULL)
- isc_mem_put(mctx, tsig.signature, sigsize);
- if (dynbuf != NULL)
- isc_buffer_free(&dynbuf);
- if (invalidate_ctx)
- dns_compress_invalidate(&cctx);
-
- return (result);
-}
-
-static void
-printmessage(dns_message_t *msg) {
- isc_buffer_t b;
- char *buf = NULL;
- int len = 1024;
- isc_result_t result = ISC_R_SUCCESS;
-
- if (!debug)
- return;
-
- do {
- buf = isc_mem_get(mctx, len);
- if (buf == NULL) {
- result = ISC_R_NOMEMORY;
- break;
- }
-
- isc_buffer_init(&b, buf, len);
- result = dns_message_totext(msg, &dns_master_style_debug,
- 0, &b);
- if (result == ISC_R_NOSPACE) {
- isc_mem_put(mctx, buf, len);
- len *= 2;
- } else if (result == ISC_R_SUCCESS)
- printf("%.*s\n", (int) isc_buffer_usedlength(&b), buf);
- } while (result == ISC_R_NOSPACE);
-
- if (buf != NULL)
- isc_mem_put(mctx, buf, len);
-}
-
-static void
-render(isc_buffer_t *buf, unsigned flags, dns_tsigkey_t *key,
- isc_buffer_t **tsigin, isc_buffer_t **tsigout,
- dst_context_t *tsigctx)
-{
- dns_message_t *msg = NULL;
- dns_compress_t cctx;
- isc_result_t result;
-
- result = dns_message_create(mctx, DNS_MESSAGE_INTENTRENDER, &msg);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_create: %s",
- dns_result_totext(result));
-
- msg->id = 50;
- msg->rcode = dns_rcode_noerror;
- msg->flags = flags;
-
- if (tsigin == tsigout)
- msg->tcp_continuation = 1;
-
- if (tsigctx == NULL) {
- result = dns_message_settsigkey(msg, key);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_settsigkey: %s",
- dns_result_totext(result));
-
- result = dns_message_setquerytsig(msg, *tsigin);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_setquerytsig: %s",
- dns_result_totext(result));
- }
-
- result = dns_compress_init(&cctx, -1, mctx);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_compress_init: %s",
- dns_result_totext(result));
-
- result = dns_message_renderbegin(msg, &cctx, buf);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_renderbegin: %s",
- dns_result_totext(result));
-
- result = dns_message_renderend(msg);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_renderend: %s",
- dns_result_totext(result));
-
- if (tsigctx != NULL) {
- isc_region_t r;
-
- isc_buffer_usedregion(buf, &r);
- result = dst_context_adddata(tsigctx, &r);
- } else {
- if (tsigin == tsigout && *tsigin != NULL)
- isc_buffer_free(tsigin);
-
- result = dns_message_getquerytsig(msg, mctx, tsigout);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_getquerytsig: %s",
- dns_result_totext(result));
- }
-
- dns_compress_invalidate(&cctx);
- dns_message_destroy(&msg);
-}
-
-/*
- * Check that a simulated three message TCP sequence where the first
- * and last messages contain TSIGs but the intermediate message doesn't
- * correctly verifies.
- */
-ATF_TC(tsig_tcp);
-ATF_TC_HEAD(tsig_tcp, tc) {
- atf_tc_set_md_var(tc, "descr", "test tsig tcp-continuation validation");
-}
-ATF_TC_BODY(tsig_tcp, tc) {
- dns_name_t *tsigowner = NULL;
- dns_fixedname_t fkeyname;
- dns_message_t *msg = NULL;
- dns_name_t *keyname;
- dns_tsig_keyring_t *ring = NULL;
- dns_tsigkey_t *key = NULL;
- isc_buffer_t *buf = NULL;
- isc_buffer_t *querytsig = NULL;
- isc_buffer_t *tsigin = NULL;
- isc_buffer_t *tsigout = NULL;
- isc_result_t result;
- unsigned char secret[16] = { 0 };
- dst_context_t *tsigctx = NULL;
- dst_context_t *outctx = NULL;
-
- UNUSED(tc);
-
- result = dns_test_begin(stderr, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* isc_log_setdebuglevel(lctx, 99); */
-
- dns_fixedname_init(&fkeyname);
- keyname = dns_fixedname_name(&fkeyname);
- result = dns_name_fromstring(keyname, "test", 0, NULL);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_tsigkeyring_create(mctx, &ring);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_tsigkey_create(keyname, dns_tsig_hmacsha256_name,
- secret, sizeof(secret), ISC_FALSE,
- NULL, 0, 0, mctx, ring, &key);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /*
- * Create request.
- */
- result = isc_buffer_allocate(mctx, &buf, 65535);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- render(buf, 0, key, &tsigout, &querytsig, NULL);
- isc_buffer_free(&buf);
-
- /*
- * Create response message 1.
- */
- result = isc_buffer_allocate(mctx, &buf, 65535);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- render(buf, DNS_MESSAGEFLAG_QR, key, &querytsig, &tsigout, NULL);
-
- /*
- * Process response message 1.
- */
- result = dns_message_create(mctx, DNS_MESSAGE_INTENTPARSE, &msg);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_create: %s",
- dns_result_totext(result));
-
- result = dns_message_settsigkey(msg, key);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_settsigkey: %s",
- dns_result_totext(result));
-
- result = dns_message_parse(msg, buf, 0);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_parse: %s",
- dns_result_totext(result));
-
- printmessage(msg);
-
- result = dns_message_setquerytsig(msg, querytsig);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_setquerytsig: %s",
- dns_result_totext(result));
-
- result = dns_tsig_verify(buf, msg, NULL, NULL);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_tsig_verify: %s",
- dns_result_totext(result));
- ATF_CHECK_EQ(msg->verified_sig, 1);
- ATF_CHECK_EQ(msg->tsigstatus, dns_rcode_noerror);
-
- /*
- * Check that we have a TSIG in the first message.
- */
- ATF_REQUIRE(dns_message_gettsig(msg, &tsigowner) != NULL);
-
- result = dns_message_getquerytsig(msg, mctx, &tsigin);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_getquerytsig: %s",
- dns_result_totext(result));
-
- tsigctx = msg->tsigctx;
- msg->tsigctx = NULL;
- isc_buffer_free(&buf);
- dns_message_destroy(&msg);
-
- result = dst_context_create3(key->key, mctx, DNS_LOGCATEGORY_DNSSEC,
- ISC_FALSE, &outctx);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /*
- * Start digesting.
- */
- result = add_mac(outctx, tsigout);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /*
- * Create response message 2.
- */
- result = isc_buffer_allocate(mctx, &buf, 65535);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- render(buf, DNS_MESSAGEFLAG_QR, key, &tsigout, &tsigout, outctx);
-
- /*
- * Process response message 2.
- */
- result = dns_message_create(mctx, DNS_MESSAGE_INTENTPARSE, &msg);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_create: %s",
- dns_result_totext(result));
-
- msg->tcp_continuation = 1;
- msg->tsigctx = tsigctx;
- tsigctx = NULL;
-
- result = dns_message_settsigkey(msg, key);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_settsigkey: %s",
- dns_result_totext(result));
-
- result = dns_message_parse(msg, buf, 0);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_parse: %s",
- dns_result_totext(result));
-
- printmessage(msg);
-
- result = dns_message_setquerytsig(msg, tsigin);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_setquerytsig: %s",
- dns_result_totext(result));
-
- result = dns_tsig_verify(buf, msg, NULL, NULL);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_tsig_verify: %s",
- dns_result_totext(result));
- ATF_CHECK_EQ(msg->verified_sig, 1);
- ATF_CHECK_EQ(msg->tsigstatus, dns_rcode_noerror);
-
- /*
- * Check that we don't have a TSIG in the second message.
- */
- tsigowner = NULL;
- ATF_REQUIRE(dns_message_gettsig(msg, &tsigowner) == NULL);
-
- tsigctx = msg->tsigctx;
- msg->tsigctx = NULL;
- isc_buffer_free(&buf);
- dns_message_destroy(&msg);
-
- /*
- * Create response message 3.
- */
- result = isc_buffer_allocate(mctx, &buf, 65535);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- render(buf, DNS_MESSAGEFLAG_QR, key, &tsigout, &tsigout, outctx);
-
- result = add_tsig(outctx, key, buf);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "add_tsig: %s",
- dns_result_totext(result));
-
- /*
- * Process response message 3.
- */
- result = dns_message_create(mctx, DNS_MESSAGE_INTENTPARSE, &msg);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_create: %s",
- dns_result_totext(result));
-
- msg->tcp_continuation = 1;
- msg->tsigctx = tsigctx;
- tsigctx = NULL;
-
- result = dns_message_settsigkey(msg, key);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_settsigkey: %s",
- dns_result_totext(result));
-
- result = dns_message_parse(msg, buf, 0);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_parse: %s",
- dns_result_totext(result));
-
- printmessage(msg);
-
- /*
- * Check that we had a TSIG in the third message.
- */
- ATF_REQUIRE(dns_message_gettsig(msg, &tsigowner) != NULL);
-
- result = dns_message_setquerytsig(msg, tsigin);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_setquerytsig: %s",
- dns_result_totext(result));
-
- result = dns_tsig_verify(buf, msg, NULL, NULL);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_tsig_verify: %s",
- dns_result_totext(result));
- ATF_CHECK_EQ(msg->verified_sig, 1);
- ATF_CHECK_EQ(msg->tsigstatus, dns_rcode_noerror);
-
- if (tsigin != NULL)
- isc_buffer_free(&tsigin);
-
- result = dns_message_getquerytsig(msg, mctx, &tsigin);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
- "dns_message_getquerytsig: %s",
- dns_result_totext(result));
-
- isc_buffer_free(&buf);
- dns_message_destroy(&msg);
-
- if (outctx != NULL)
- dst_context_destroy(&outctx);
- if (querytsig != NULL)
- isc_buffer_free(&querytsig);
- if (tsigin != NULL)
- isc_buffer_free(&tsigin);
- if (tsigout != NULL)
- isc_buffer_free(&tsigout);
- if (buf != NULL)
- isc_buffer_free(&buf);
- if (msg != NULL)
- dns_message_destroy(&msg);
- if (key != NULL)
- dns_tsigkey_detach(&key);
- if (ring != NULL)
- dns_tsigkeyring_detach(&ring);
- dns_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, tsig_tcp);
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/dns/tests/update_test.c b/usr.sbin/bind/lib/dns/tests/update_test.c
deleted file mode 100644
index 3c79e72a26a..00000000000
--- a/usr.sbin/bind/lib/dns/tests/update_test.c
+++ /dev/null
@@ -1,275 +0,0 @@
-/*
- * Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: update_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-#include <time.h>
-
-#include <isc/serial.h>
-#include <isc/stdtime.h>
-
-#include <dns/update.h>
-
-#include "dnstest.h"
-
-static isc_uint32_t mystdtime;
-
-static void set_mystdtime(int year, int month, int day) {
- struct tm tm;
-
- memset(&tm, 0, sizeof(tm));
- tm.tm_year = year - 1900;
- tm.tm_mon = month;
- tm.tm_mday = day;
- mystdtime = timegm(&tm) ;
-}
-
-void isc_stdtime_get(isc_stdtime_t *now) {
- *now = mystdtime;
-}
-
-/*
- * Individual unit tests
- */
-
-ATF_TC(increment);
-ATF_TC_HEAD(increment, tc) {
- atf_tc_set_md_var(tc, "descr", "simple increment by 1");
-}
-ATF_TC_BODY(increment, tc) {
- isc_uint32_t old = 50;
- isc_uint32_t new;
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- new = dns_update_soaserial(old, dns_updatemethod_increment);
- ATF_REQUIRE_EQ(isc_serial_lt(old, new), ISC_TRUE);
- ATF_CHECK_MSG(new != 0, "new (%d) should not equal 0", new);
- ATF_REQUIRE_EQ(new, 51);
- dns_test_end();
-}
-
-/* 0xfffffffff -> 1 */
-ATF_TC(increment_past_zero);
-ATF_TC_HEAD(increment_past_zero, tc) {
- atf_tc_set_md_var(tc, "descr", "increment past zero, ffffffff -> 1");
-}
-ATF_TC_BODY(increment_past_zero, tc) {
- isc_uint32_t old = 0xffffffffu;
- isc_uint32_t new;
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- new = dns_update_soaserial(old, dns_updatemethod_increment);
- ATF_REQUIRE_EQ(isc_serial_lt(old, new), ISC_TRUE);
- ATF_CHECK(new != 0);
- ATF_REQUIRE_EQ(new, 1u);
- dns_test_end();
-}
-
-ATF_TC(past_to_unix);
-ATF_TC_HEAD(past_to_unix, tc) {
- atf_tc_set_md_var(tc, "descr", "past to unixtime");
-}
-ATF_TC_BODY(past_to_unix, tc) {
- isc_uint32_t old;
- isc_uint32_t new;
- isc_result_t result;
-
- UNUSED(tc);
-
- set_mystdtime(2011, 6, 22);
- old = mystdtime - 1;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- new = dns_update_soaserial(old, dns_updatemethod_unixtime);
- ATF_REQUIRE_EQ(isc_serial_lt(old, new), ISC_TRUE);
- ATF_CHECK(new != 0);
- ATF_REQUIRE_EQ(new, mystdtime);
- dns_test_end();
-}
-
-ATF_TC(now_to_unix);
-ATF_TC_HEAD(now_to_unix, tc) {
- atf_tc_set_md_var(tc, "descr", "now to unixtime");
-}
-ATF_TC_BODY(now_to_unix, tc) {
- isc_uint32_t old;
- isc_uint32_t new;
- isc_result_t result;
-
- UNUSED(tc);
-
- set_mystdtime(2011, 6, 22);
- old = mystdtime;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- new = dns_update_soaserial(old, dns_updatemethod_unixtime);
- ATF_REQUIRE_EQ(isc_serial_lt(old, new), ISC_TRUE);
- ATF_CHECK(new != 0);
- ATF_REQUIRE_EQ(new, old+1);
- dns_test_end();
-}
-
-ATF_TC(future_to_unix);
-ATF_TC_HEAD(future_to_unix, tc) {
- atf_tc_set_md_var(tc, "descr", "future to unixtime");
-}
-ATF_TC_BODY(future_to_unix, tc) {
- isc_uint32_t old;
- isc_uint32_t new;
- isc_result_t result;
-
- UNUSED(tc);
-
- set_mystdtime(2011, 6, 22);
- old = mystdtime + 1;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- new = dns_update_soaserial(old, dns_updatemethod_unixtime);
- ATF_REQUIRE_EQ(isc_serial_lt(old, new), ISC_TRUE);
- ATF_CHECK(new != 0);
- ATF_REQUIRE_EQ(new, old+1);
- dns_test_end();
-}
-
-ATF_TC(undefined_plus1_to_unix);
-ATF_TC_HEAD(undefined_plus1_to_unix, tc) {
- atf_tc_set_md_var(tc, "descr", "undefined plus 1 to unixtime");
-}
-ATF_TC_BODY(undefined_plus1_to_unix, tc) {
- isc_uint32_t old;
- isc_uint32_t new;
- isc_result_t result;
-
- UNUSED(tc);
-
- set_mystdtime(2011, 6, 22);
- old = mystdtime ^ 0x80000000u;
- old += 1;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- new = dns_update_soaserial(old, dns_updatemethod_unixtime);
- ATF_REQUIRE_EQ(isc_serial_lt(old, new), ISC_TRUE);
- ATF_CHECK(new != 0);
- ATF_REQUIRE_EQ(new, mystdtime);
- dns_test_end();
-}
-
-ATF_TC(undefined_minus1_to_unix);
-ATF_TC_HEAD(undefined_minus1_to_unix, tc) {
- atf_tc_set_md_var(tc, "descr", "undefined minus 1 to unixtime");
-}
-ATF_TC_BODY(undefined_minus1_to_unix, tc) {
- isc_uint32_t old;
- isc_uint32_t new;
- isc_result_t result;
-
- UNUSED(tc);
-
- set_mystdtime(2011, 6, 22);
- old = mystdtime ^ 0x80000000u;
- old -= 1;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- new = dns_update_soaserial(old, dns_updatemethod_unixtime);
- ATF_REQUIRE_EQ(isc_serial_lt(old, new), ISC_TRUE);
- ATF_CHECK(new != 0);
- ATF_REQUIRE_EQ(new, old+1);
- dns_test_end();
-}
-
-ATF_TC(undefined_to_unix);
-ATF_TC_HEAD(undefined_to_unix, tc) {
- atf_tc_set_md_var(tc, "descr", "undefined to unixtime");
-}
-ATF_TC_BODY(undefined_to_unix, tc) {
- isc_uint32_t old;
- isc_uint32_t new;
- isc_result_t result;
-
- UNUSED(tc);
-
- set_mystdtime(2011, 6, 22);
- old = mystdtime ^ 0x80000000u;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- new = dns_update_soaserial(old, dns_updatemethod_unixtime);
- ATF_REQUIRE_EQ(isc_serial_lt(old, new), ISC_TRUE);
- ATF_CHECK(new != 0);
- ATF_REQUIRE_EQ(new, old+1);
- dns_test_end();
-}
-
-ATF_TC(unixtime_zero);
-ATF_TC_HEAD(unixtime_zero, tc) {
- atf_tc_set_md_var(tc, "descr", "handle unixtime being zero");
-}
-ATF_TC_BODY(unixtime_zero, tc) {
- isc_uint32_t old;
- isc_uint32_t new;
- isc_result_t result;
-
- UNUSED(tc);
-
- mystdtime = 0;
- old = 0xfffffff0;
-
- result = dns_test_begin(NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- new = dns_update_soaserial(old, dns_updatemethod_unixtime);
- ATF_REQUIRE_EQ(isc_serial_lt(old, new), ISC_TRUE);
- ATF_CHECK(new != 0);
- ATF_REQUIRE_EQ(new, old+1);
- dns_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, increment);
- ATF_TP_ADD_TC(tp, increment_past_zero);
- ATF_TP_ADD_TC(tp, past_to_unix);
- ATF_TP_ADD_TC(tp, now_to_unix);
- ATF_TP_ADD_TC(tp, future_to_unix);
- ATF_TP_ADD_TC(tp, undefined_to_unix);
- ATF_TP_ADD_TC(tp, undefined_plus1_to_unix);
- ATF_TP_ADD_TC(tp, undefined_minus1_to_unix);
- ATF_TP_ADD_TC(tp, unixtime_zero);
-
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/dns/tests/zonemgr_test.c b/usr.sbin/bind/lib/dns/tests/zonemgr_test.c
deleted file mode 100644
index 17379876892..00000000000
--- a/usr.sbin/bind/lib/dns/tests/zonemgr_test.c
+++ /dev/null
@@ -1,259 +0,0 @@
-/*
- * Copyright (C) 2011-2013, 2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: zonemgr_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <isc/buffer.h>
-#include <isc/task.h>
-#include <isc/timer.h>
-
-#include <dns/name.h>
-#include <dns/view.h>
-#include <dns/zone.h>
-
-#include "dnstest.h"
-
-/*
- * Individual unit tests
- */
-ATF_TC(zonemgr_create);
-ATF_TC_HEAD(zonemgr_create, tc) {
- atf_tc_set_md_var(tc, "descr", "create zone manager");
-}
-ATF_TC_BODY(zonemgr_create, tc) {
- dns_zonemgr_t *myzonemgr = NULL;
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_zonemgr_create(mctx, taskmgr, timermgr, socketmgr,
- &myzonemgr);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- dns_zonemgr_shutdown(myzonemgr);
- dns_zonemgr_detach(&myzonemgr);
- ATF_REQUIRE_EQ(myzonemgr, NULL);
-
- dns_test_end();
-}
-
-
-ATF_TC(zonemgr_managezone);
-ATF_TC_HEAD(zonemgr_managezone, tc) {
- atf_tc_set_md_var(tc, "descr", "manage and release a zone");
-}
-ATF_TC_BODY(zonemgr_managezone, tc) {
- dns_zonemgr_t *myzonemgr = NULL;
- dns_zone_t *zone = NULL;
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_zonemgr_create(mctx, taskmgr, timermgr, socketmgr,
- &myzonemgr);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_test_makezone("foo", &zone, NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* This should not succeed until the dns_zonemgr_setsize() is run */
- result = dns_zonemgr_managezone(myzonemgr, zone);
- ATF_REQUIRE_EQ(result, ISC_R_FAILURE);
-
- ATF_REQUIRE_EQ(dns_zonemgr_getcount(myzonemgr, DNS_ZONESTATE_ANY), 0);
-
- result = dns_zonemgr_setsize(myzonemgr, 1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* Now it should succeed */
- result = dns_zonemgr_managezone(myzonemgr, zone);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- ATF_REQUIRE_EQ(dns_zonemgr_getcount(myzonemgr, DNS_ZONESTATE_ANY), 1);
-
- dns_zonemgr_releasezone(myzonemgr, zone);
- dns_zone_detach(&zone);
-
- ATF_REQUIRE_EQ(dns_zonemgr_getcount(myzonemgr, DNS_ZONESTATE_ANY), 0);
-
- dns_zonemgr_shutdown(myzonemgr);
- dns_zonemgr_detach(&myzonemgr);
- ATF_REQUIRE_EQ(myzonemgr, NULL);
-
- dns_test_end();
-}
-
-ATF_TC(zonemgr_createzone);
-ATF_TC_HEAD(zonemgr_createzone, tc) {
- atf_tc_set_md_var(tc, "descr", "create and release a zone");
-}
-ATF_TC_BODY(zonemgr_createzone, tc) {
- dns_zonemgr_t *myzonemgr = NULL;
- dns_zone_t *zone = NULL;
- isc_result_t result;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_zonemgr_create(mctx, taskmgr, timermgr, socketmgr,
- &myzonemgr);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* This should not succeed until the dns_zonemgr_setsize() is run */
- result = dns_zonemgr_createzone(myzonemgr, &zone);
- ATF_REQUIRE_EQ(result, ISC_R_FAILURE);
-
- result = dns_zonemgr_setsize(myzonemgr, 1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* Now it should succeed */
- result = dns_zonemgr_createzone(myzonemgr, &zone);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK(zone != NULL);
-
- if (zone != NULL)
- dns_zone_detach(&zone);
-
- dns_zonemgr_shutdown(myzonemgr);
- dns_zonemgr_detach(&myzonemgr);
- ATF_REQUIRE_EQ(myzonemgr, NULL);
-
- dns_test_end();
-}
-
-ATF_TC(zonemgr_unreachable);
-ATF_TC_HEAD(zonemgr_unreachable, tc) {
- atf_tc_set_md_var(tc, "descr", "manage and release a zone");
-}
-ATF_TC_BODY(zonemgr_unreachable, tc) {
- dns_zonemgr_t *myzonemgr = NULL;
- dns_zone_t *zone = NULL;
- isc_sockaddr_t addr1, addr2;
- struct in_addr in;
- isc_result_t result;
- isc_time_t now;
-
- UNUSED(tc);
-
- TIME_NOW(&now);
-
- result = dns_test_begin(NULL, ISC_TRUE);
-
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_zonemgr_create(mctx, taskmgr, timermgr, socketmgr,
- &myzonemgr);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_test_makezone("foo", &zone, NULL, ISC_FALSE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_zonemgr_setsize(myzonemgr, 1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_zonemgr_managezone(myzonemgr, zone);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- in.s_addr = inet_addr("10.53.0.1");
- isc_sockaddr_fromin(&addr1, &in, 2112);
- in.s_addr = inet_addr("10.53.0.2");
- isc_sockaddr_fromin(&addr2, &in, 5150);
- ATF_CHECK(! dns_zonemgr_unreachable(myzonemgr, &addr1, &addr2, &now));
- /*
- * We require multiple unreachableadd calls to mark a server as
- * unreachable.
- */
- dns_zonemgr_unreachableadd(myzonemgr, &addr1, &addr2, &now);
- ATF_CHECK(! dns_zonemgr_unreachable(myzonemgr, &addr1, &addr2, &now));
- dns_zonemgr_unreachableadd(myzonemgr, &addr1, &addr2, &now);
- ATF_CHECK(dns_zonemgr_unreachable(myzonemgr, &addr1, &addr2, &now));
-
- in.s_addr = inet_addr("10.53.0.3");
- isc_sockaddr_fromin(&addr2, &in, 5150);
- ATF_CHECK(! dns_zonemgr_unreachable(myzonemgr, &addr1, &addr2, &now));
- /*
- * We require multiple unreachableadd calls to mark a server as
- * unreachable.
- */
- dns_zonemgr_unreachableadd(myzonemgr, &addr1, &addr2, &now);
- dns_zonemgr_unreachableadd(myzonemgr, &addr1, &addr2, &now);
- ATF_CHECK(dns_zonemgr_unreachable(myzonemgr, &addr1, &addr2, &now));
-
- dns_zonemgr_unreachabledel(myzonemgr, &addr1, &addr2);
- ATF_CHECK(! dns_zonemgr_unreachable(myzonemgr, &addr1, &addr2, &now));
-
- in.s_addr = inet_addr("10.53.0.2");
- isc_sockaddr_fromin(&addr2, &in, 5150);
- ATF_CHECK(dns_zonemgr_unreachable(myzonemgr, &addr1, &addr2, &now));
- dns_zonemgr_unreachabledel(myzonemgr, &addr1, &addr2);
- ATF_CHECK(! dns_zonemgr_unreachable(myzonemgr, &addr1, &addr2, &now));
-
- dns_zonemgr_releasezone(myzonemgr, zone);
- dns_zone_detach(&zone);
- dns_zonemgr_shutdown(myzonemgr);
- dns_zonemgr_detach(&myzonemgr);
- ATF_REQUIRE_EQ(myzonemgr, NULL);
-
- dns_test_end();
-}
-
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, zonemgr_create);
- ATF_TP_ADD_TC(tp, zonemgr_managezone);
- ATF_TP_ADD_TC(tp, zonemgr_createzone);
- ATF_TP_ADD_TC(tp, zonemgr_unreachable);
- return (atf_no_error());
-}
-
-/*
- * XXX:
- * dns_zonemgr API calls that are not yet part of this unit test:
- *
- * - dns_zonemgr_attach
- * - dns_zonemgr_forcemaint
- * - dns_zonemgr_resumexfrs
- * - dns_zonemgr_shutdown
- * - dns_zonemgr_setsize
- * - dns_zonemgr_settransfersin
- * - dns_zonemgr_getttransfersin
- * - dns_zonemgr_settransfersperns
- * - dns_zonemgr_getttransfersperns
- * - dns_zonemgr_setiolimit
- * - dns_zonemgr_getiolimit
- * - dns_zonemgr_dbdestroyed
- * - dns_zonemgr_setserialqueryrate
- * - dns_zonemgr_getserialqueryrate
- */
diff --git a/usr.sbin/bind/lib/dns/tests/zt_test.c b/usr.sbin/bind/lib/dns/tests/zt_test.c
deleted file mode 100644
index 22e5ebfe382..00000000000
--- a/usr.sbin/bind/lib/dns/tests/zt_test.c
+++ /dev/null
@@ -1,295 +0,0 @@
-/*
- * Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: zt_test.c,v 1.1 2019/12/16 16:31:34 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <isc/app.h>
-#include <isc/buffer.h>
-#include <isc/task.h>
-#include <isc/timer.h>
-
-#include <dns/db.h>
-#include <dns/name.h>
-#include <dns/view.h>
-#include <dns/zone.h>
-#include <dns/zt.h>
-
-#include "dnstest.h"
-
-struct args {
- void *arg1;
- void *arg2;
-};
-
-/*
- * Helper functions
- */
-static isc_result_t
-count_zone(dns_zone_t *zone, void *uap) {
- int *nzones = (int *)uap;
-
- UNUSED(zone);
-
- *nzones += 1;
- return (ISC_R_SUCCESS);
-}
-
-static isc_result_t
-load_done(dns_zt_t *zt, dns_zone_t *zone, isc_task_t *task) {
- /* We treat zt as a pointer to a boolean for testing purposes */
- isc_boolean_t *done = (isc_boolean_t *) zt;
-
- UNUSED(zone);
- UNUSED(task);
-
- *done = ISC_TRUE;
- isc_app_shutdown();
- return (ISC_R_SUCCESS);
-}
-
-static isc_result_t
-all_done(void *arg) {
- isc_boolean_t *done = (isc_boolean_t *) arg;
-
- *done = ISC_TRUE;
- isc_app_shutdown();
- return (ISC_R_SUCCESS);
-}
-
-static void
-start_zt_asyncload(isc_task_t *task, isc_event_t *event) {
- struct args *args = (struct args *)(event->ev_arg);
-
- UNUSED(task);
-
- dns_zt_asyncload(args->arg1, all_done, args->arg2);
-
- isc_event_free(&event);
-}
-
-static void
-start_zone_asyncload(isc_task_t *task, isc_event_t *event) {
- struct args *args = (struct args *)(event->ev_arg);
-
- UNUSED(task);
-
- dns_zone_asyncload(args->arg1, load_done, args->arg2);
- isc_event_free(&event);
-}
-
-/*
- * Individual unit tests
- */
-ATF_TC(apply);
-ATF_TC_HEAD(apply, tc) {
- atf_tc_set_md_var(tc, "descr", "apply a function to a zone table");
-}
-ATF_TC_BODY(apply, tc) {
- isc_result_t result;
- dns_zone_t *zone = NULL;
- dns_view_t *view = NULL;
- int nzones = 0;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_test_makezone("foo", &zone, NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- view = dns_zone_getview(zone);
- ATF_REQUIRE(view->zonetable != NULL);
-
- ATF_CHECK_EQ(0, nzones);
- result = dns_zt_apply(view->zonetable, ISC_FALSE, count_zone, &nzones);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK_EQ(1, nzones);
-
- /* These steps are necessary so the zone can be detached properly */
- result = dns_test_setupzonemgr();
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = dns_test_managezone(zone);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- dns_test_releasezone(zone);
- dns_test_closezonemgr();
-
- /* The view was left attached in dns_test_makezone() */
- dns_view_detach(&view);
- dns_zone_detach(&zone);
-
- dns_test_end();
-}
-
-ATF_TC(asyncload_zone);
-ATF_TC_HEAD(asyncload_zone, tc) {
- atf_tc_set_md_var(tc, "descr", "asynchronous zone load");
-}
-ATF_TC_BODY(asyncload_zone, tc) {
- isc_result_t result;
- dns_zone_t *zone = NULL;
- dns_view_t *view = NULL;
- dns_db_t *db = NULL;
- isc_boolean_t done = ISC_FALSE;
- int i = 0;
- struct args args;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_test_makezone("foo", &zone, NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_test_setupzonemgr();
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = dns_test_managezone(zone);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- view = dns_zone_getview(zone);
- ATF_REQUIRE(view->zonetable != NULL);
-
- ATF_CHECK(!dns__zone_loadpending(zone));
- ATF_CHECK(!done);
- dns_zone_setfile(zone, "testdata/zt/zone1.db");
-
- args.arg1 = zone;
- args.arg2 = &done;
- isc_app_onrun(mctx, maintask, start_zone_asyncload, &args);
-
- isc_app_run();
- while (dns__zone_loadpending(zone) && i++ < 5000)
- dns_test_nap(1000);
- ATF_CHECK(done);
-
- /* The zone should now be loaded; test it */
- result = dns_zone_getdb(zone, &db);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK(db != NULL);
- if (db != NULL)
- dns_db_detach(&db);
-
- dns_test_releasezone(zone);
- dns_test_closezonemgr();
-
- dns_zone_detach(&zone);
- dns_view_detach(&view);
-
- dns_test_end();
-}
-
-ATF_TC(asyncload_zt);
-ATF_TC_HEAD(asyncload_zt, tc) {
- atf_tc_set_md_var(tc, "descr", "asynchronous zone table load");
-}
-ATF_TC_BODY(asyncload_zt, tc) {
- isc_result_t result;
- dns_zone_t *zone1 = NULL, *zone2 = NULL, *zone3 = NULL;
- dns_view_t *view;
- dns_zt_t *zt;
- dns_db_t *db = NULL;
- isc_boolean_t done = ISC_FALSE;
- int i = 0;
- struct args args;
-
- UNUSED(tc);
-
- result = dns_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = dns_test_makezone("foo", &zone1, NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- dns_zone_setfile(zone1, "testdata/zt/zone1.db");
- view = dns_zone_getview(zone1);
-
- result = dns_test_makezone("bar", &zone2, view, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- dns_zone_setfile(zone2, "testdata/zt/zone1.db");
-
- /* This one will fail to load */
- result = dns_test_makezone("fake", &zone3, view, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- dns_zone_setfile(zone3, "testdata/zt/nonexistent.db");
-
- zt = view->zonetable;
- ATF_REQUIRE(zt != NULL);
-
- result = dns_test_setupzonemgr();
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = dns_test_managezone(zone1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = dns_test_managezone(zone2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = dns_test_managezone(zone3);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- ATF_CHECK(!dns__zone_loadpending(zone1));
- ATF_CHECK(!dns__zone_loadpending(zone2));
- ATF_CHECK(!done);
-
- args.arg1 = zt;
- args.arg2 = &done;
- isc_app_onrun(mctx, maintask, start_zt_asyncload, &args);
-
- isc_app_run();
- while (!done && i++ < 5000)
- dns_test_nap(1000);
- ATF_CHECK(done);
-
- /* Both zones should now be loaded; test them */
- result = dns_zone_getdb(zone1, &db);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK(db != NULL);
- if (db != NULL)
- dns_db_detach(&db);
-
- result = dns_zone_getdb(zone2, &db);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK(db != NULL);
- if (db != NULL)
- dns_db_detach(&db);
-
- dns_test_releasezone(zone3);
- dns_test_releasezone(zone2);
- dns_test_releasezone(zone1);
- dns_test_closezonemgr();
-
- dns_zone_detach(&zone1);
- dns_zone_detach(&zone2);
- dns_zone_detach(&zone3);
- dns_view_detach(&view);
-
- dns_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, apply);
- ATF_TP_ADD_TC(tp, asyncload_zone);
- ATF_TP_ADD_TC(tp, asyncload_zt);
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/irs/tests/Atffile b/usr.sbin/bind/lib/irs/tests/Atffile
deleted file mode 100644
index c3e044f41a8..00000000000
--- a/usr.sbin/bind/lib/irs/tests/Atffile
+++ /dev/null
@@ -1,5 +0,0 @@
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = bind9
-
-tp-glob: *_test
diff --git a/usr.sbin/bind/lib/irs/tests/Makefile.in b/usr.sbin/bind/lib/irs/tests/Makefile.in
deleted file mode 100644
index e05b506bbb6..00000000000
--- a/usr.sbin/bind/lib/irs/tests/Makefile.in
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-# $Id: Makefile.in,v 1.1 2019/12/16 16:31:35 deraadt Exp $
-
-srcdir = @srcdir@
-VPATH = @srcdir@
-top_srcdir = @top_srcdir@
-
-# Attempt to disable parallel processing.
-.NOTPARALLEL:
-.NO_PARALLEL:
-
-VERSION=@BIND9_VERSION@
-
-@BIND9_MAKE_INCLUDES@
-
-CINCLUDES = -I. -Iinclude -I../include ${ISC_INCLUDES}
-CDEFINES = -DTESTS="\"${top_builddir}/lib/irs/tests/\""
-
-CFGLIBS = ../../isccfg/libisccfg.@A@
-CFGDEPLIBS = ../../isccfg/libisccfg.@A@
-DNSLIBS = ../../dns/libdns.@A@ @DNS_CRYPTO_LIBS@
-DNSDEPLIBS = ../../dns/libdns.@A@
-ISCLIBS = ../../isc/libisc.@A@
-ISCDEPLIBS = ../../isc/libisc.@A@
-IRSLIBS = ../libirs.@A@
-IRSDEPLIBS = ../libirs.@A@
-
-LIBS = ${IRSLIBS} ${CFGLIBS} ${DNSLIBS} ${ISCLIBS} @LIBS@ @ATFLIBS@
-
-OBJS =
-SRCS = resconf_test.c
-
-SUBDIRS =
-TARGETS = resconf_test@EXEEXT@
-
-@BIND9_MAKE_RULES@
-
-resconf_test@EXEEXT@: resconf_test.@O@ ${CFGDEPLIBS} ${DNSDEPLIBS} ${IRSDEPLIBS} ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- resconf_test.@O@ ${LIBS}
-
-unit::
- sh ${top_srcdir}/unit/unittest.sh
-
-clean distclean::
- rm -f ${TARGETS}
- rm -f atf.out
diff --git a/usr.sbin/bind/lib/irs/tests/resconf_test.c b/usr.sbin/bind/lib/irs/tests/resconf_test.c
deleted file mode 100644
index f2378f557d7..00000000000
--- a/usr.sbin/bind/lib/irs/tests/resconf_test.c
+++ /dev/null
@@ -1,141 +0,0 @@
-/*
- * Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#include <isc/mem.h>
-#include <isc/util.h>
-
-#include <irs/types.h>
-#include <irs/resconf.h>
-
-static isc_mem_t *mctx = NULL;
-
-static void
-setup_test() {
- isc_result_t result;
-
- result = isc_mem_create(0, 0, &mctx);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /*
- * atf-run changes us to a /tmp directory, so tests
- * that access test data files must first chdir to the proper
- * location.
- */
- ATF_REQUIRE(chdir(TESTS) != -1);
-}
-
-ATF_TC(irs_resconf_load);
-ATF_TC_HEAD(irs_resconf_load, tc) {
- atf_tc_set_md_var(tc, "descr", "irs_resconf_load");
-}
-ATF_TC_BODY(irs_resconf_load, tc) {
- isc_result_t result;
- irs_resconf_t *resconf = NULL;
- unsigned int i;
- struct {
- const char *file;
- isc_result_t loadres;
- isc_result_t (*check)(irs_resconf_t *resconf);
- isc_result_t checkres;
- } tests[] = {
- {
- "testdata/sortlist-v4.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }, {
- "testdata/domain.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }, {
- "testdata/nameserver-v4.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }, {
- "testdata/nameserver-v6.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }, {
- "testdata/options-debug.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }, {
- "testdata/options-ndots.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }, {
- "testdata/options-timeout.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }, {
- "testdata/options-unknown.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }, {
- "testdata/options.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }, {
- "testdata/port.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }, {
- "testdata/resolv.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }, {
- "testdata/search.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }, {
- "testdata/sortlist-v4.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }, {
- "testdata/timeout.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }, {
- "testdata/unknown.conf", ISC_R_SUCCESS,
- NULL, ISC_R_SUCCESS
- }
-
- };
-
- UNUSED(tc);
-
- setup_test();
-
- for (i = 0; i < sizeof(tests)/sizeof(tests[1]); i++) {
- result = irs_resconf_load(mctx, tests[i].file, &resconf);
- ATF_CHECK_EQ_MSG(result, tests[i].loadres, "%s", tests[i].file);
- if (result == ISC_R_SUCCESS)
- ATF_CHECK_MSG(resconf != NULL, "%s", tests[i].file);
- else
- ATF_CHECK_MSG(resconf == NULL, "%s", tests[i].file);
- if (resconf != NULL && tests[i].check != NULL) {
- result = (tests[i].check)(resconf);
- ATF_CHECK_EQ_MSG(result, tests[i].checkres, "%s",
- tests[i].file);
- }
- if (resconf != NULL)
- irs_resconf_destroy(&resconf);
- }
-
- isc_mem_detach(&mctx);
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, irs_resconf_load);
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/irs/tests/testdata/domain.conf b/usr.sbin/bind/lib/irs/tests/testdata/domain.conf
deleted file mode 100644
index 70caf37775d..00000000000
--- a/usr.sbin/bind/lib/irs/tests/testdata/domain.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-domain example.com
diff --git a/usr.sbin/bind/lib/irs/tests/testdata/nameserver-v4.conf b/usr.sbin/bind/lib/irs/tests/testdata/nameserver-v4.conf
deleted file mode 100644
index 4505cc8cda2..00000000000
--- a/usr.sbin/bind/lib/irs/tests/testdata/nameserver-v4.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-nameserver 10.0.0.1
diff --git a/usr.sbin/bind/lib/irs/tests/testdata/nameserver-v6.conf b/usr.sbin/bind/lib/irs/tests/testdata/nameserver-v6.conf
deleted file mode 100644
index 7b0a13e14a6..00000000000
--- a/usr.sbin/bind/lib/irs/tests/testdata/nameserver-v6.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-nameserver 2001:DB8::1
diff --git a/usr.sbin/bind/lib/irs/tests/testdata/options-debug.conf b/usr.sbin/bind/lib/irs/tests/testdata/options-debug.conf
deleted file mode 100644
index a8cb5b16d9d..00000000000
--- a/usr.sbin/bind/lib/irs/tests/testdata/options-debug.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-options debug
diff --git a/usr.sbin/bind/lib/irs/tests/testdata/options-ndots.conf b/usr.sbin/bind/lib/irs/tests/testdata/options-ndots.conf
deleted file mode 100644
index 4a584176f31..00000000000
--- a/usr.sbin/bind/lib/irs/tests/testdata/options-ndots.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-option ndots:2
diff --git a/usr.sbin/bind/lib/irs/tests/testdata/options-timeout.conf b/usr.sbin/bind/lib/irs/tests/testdata/options-timeout.conf
deleted file mode 100644
index f70e5509508..00000000000
--- a/usr.sbin/bind/lib/irs/tests/testdata/options-timeout.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-options timeout:1
diff --git a/usr.sbin/bind/lib/irs/tests/testdata/options-unknown.conf b/usr.sbin/bind/lib/irs/tests/testdata/options-unknown.conf
deleted file mode 100644
index 6d6b01f915f..00000000000
--- a/usr.sbin/bind/lib/irs/tests/testdata/options-unknown.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-options unknown
diff --git a/usr.sbin/bind/lib/irs/tests/testdata/options.conf b/usr.sbin/bind/lib/irs/tests/testdata/options.conf
deleted file mode 100644
index acb028e761c..00000000000
--- a/usr.sbin/bind/lib/irs/tests/testdata/options.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-options unknown debug timeout:1 ndots:2
diff --git a/usr.sbin/bind/lib/irs/tests/testdata/port.conf b/usr.sbin/bind/lib/irs/tests/testdata/port.conf
deleted file mode 100644
index 7fcf025137a..00000000000
--- a/usr.sbin/bind/lib/irs/tests/testdata/port.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-port 5300
diff --git a/usr.sbin/bind/lib/irs/tests/testdata/resolv.conf b/usr.sbin/bind/lib/irs/tests/testdata/resolv.conf
deleted file mode 100644
index dfbba233314..00000000000
--- a/usr.sbin/bind/lib/irs/tests/testdata/resolv.conf
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-port 5300
-nameserver 10.0.0.1
-nameserver 2001:DB8::1
-search example.com example.net
-sortlist 130.155.160.0/255.255.240.0 130.155.0.0
-timeout 10
-unknown directive
-options unknown debug timeout:1 ndots:2
diff --git a/usr.sbin/bind/lib/irs/tests/testdata/search.conf b/usr.sbin/bind/lib/irs/tests/testdata/search.conf
deleted file mode 100644
index 80345ba94f1..00000000000
--- a/usr.sbin/bind/lib/irs/tests/testdata/search.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-search example.com example.net
diff --git a/usr.sbin/bind/lib/irs/tests/testdata/sortlist-v4.conf b/usr.sbin/bind/lib/irs/tests/testdata/sortlist-v4.conf
deleted file mode 100644
index 64305b4cc96..00000000000
--- a/usr.sbin/bind/lib/irs/tests/testdata/sortlist-v4.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-sortlist 130.155.160.0/255.255.240.0 130.155.0.0
diff --git a/usr.sbin/bind/lib/irs/tests/testdata/timeout.conf b/usr.sbin/bind/lib/irs/tests/testdata/timeout.conf
deleted file mode 100644
index 0637787cded..00000000000
--- a/usr.sbin/bind/lib/irs/tests/testdata/timeout.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-timeout 10
diff --git a/usr.sbin/bind/lib/irs/tests/testdata/unknown.conf b/usr.sbin/bind/lib/irs/tests/testdata/unknown.conf
deleted file mode 100644
index ac7d3aca59c..00000000000
--- a/usr.sbin/bind/lib/irs/tests/testdata/unknown.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-unknown directive
diff --git a/usr.sbin/bind/lib/irs/win32/DLLMain.c b/usr.sbin/bind/lib/irs/win32/DLLMain.c
deleted file mode 100644
index 536c36fcf1c..00000000000
--- a/usr.sbin/bind/lib/irs/win32/DLLMain.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: DLLMain.c,v 1.1 2019/12/16 16:31:35 deraadt Exp $ */
-
-#include <windows.h>
-#include <signal.h>
-
-/*
- * Called when we enter the DLL
- */
-__declspec(dllexport) BOOL WINAPI DllMain(HINSTANCE hinstDLL,
- DWORD fdwReason, LPVOID lpvReserved)
-{
- switch (fdwReason) {
- /*
- * The DLL is loading due to process
- * initialization or a call to LoadLibrary.
- */
- case DLL_PROCESS_ATTACH:
- break;
-
- /* The attached process creates a new thread. */
- case DLL_THREAD_ATTACH:
- break;
-
- /* The thread of the attached process terminates. */
- case DLL_THREAD_DETACH:
- break;
-
- /*
- * The DLL is unloading from a process due to
- * process termination or a call to FreeLibrary.
- */
- case DLL_PROCESS_DETACH:
- break;
-
- default:
- break;
- }
- return (TRUE);
-}
-
diff --git a/usr.sbin/bind/lib/irs/win32/Makefile.in b/usr.sbin/bind/lib/irs/win32/Makefile.in
deleted file mode 100644
index 1a2a4118c8f..00000000000
--- a/usr.sbin/bind/lib/irs/win32/Makefile.in
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-# $Id: Makefile.in,v 1.1 2019/12/16 16:31:35 deraadt Exp $
-
-srcdir = @srcdir@
-VPATH = @srcdir@
-top_srcdir = @top_srcdir@
-
-SUBDIRS = include
-TARGETS =
-
-@BIND9_MAKE_RULES@
diff --git a/usr.sbin/bind/lib/irs/win32/include/Makefile.in b/usr.sbin/bind/lib/irs/win32/include/Makefile.in
deleted file mode 100644
index b138e1ccef3..00000000000
--- a/usr.sbin/bind/lib/irs/win32/include/Makefile.in
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-# $Id: Makefile.in,v 1.1 2019/12/16 16:31:35 deraadt Exp $
-
-srcdir = @srcdir@
-VPATH = @srcdir@
-top_srcdir = @top_srcdir@
-
-SUBDIRS = irs
-TARGETS =
-
-@BIND9_MAKE_RULES@
diff --git a/usr.sbin/bind/lib/irs/win32/include/irs/Makefile.in b/usr.sbin/bind/lib/irs/win32/include/irs/Makefile.in
deleted file mode 100644
index 6a2756852af..00000000000
--- a/usr.sbin/bind/lib/irs/win32/include/irs/Makefile.in
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-# $Id: Makefile.in,v 1.1 2019/12/16 16:31:35 deraadt Exp $
-
-srcdir = @srcdir@
-VPATH = @srcdir@
-top_srcdir = @top_srcdir@
-
-HEADERS =
-SUBDIRS =
-TARGETS =
-
-@BIND9_MAKE_RULES@
-
-installdirs:
- $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir}/irs
-
-install:: installdirs
- for i in ${HEADERS}; do \
- ${INSTALL_DATA} ${srcdir}/$$i ${DESTDIR}${includedir}/irs ; \
- done
diff --git a/usr.sbin/bind/lib/irs/win32/include/irs/netdb.h b/usr.sbin/bind/lib/irs/win32/include/irs/netdb.h
deleted file mode 100644
index 15196112b66..00000000000
--- a/usr.sbin/bind/lib/irs/win32/include/irs/netdb.h
+++ /dev/null
@@ -1,207 +0,0 @@
-/*
- * Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: netdb.h,v 1.1 2019/12/16 16:31:35 deraadt Exp $ */
-
-/*! \file */
-
-#ifndef IRS_NETDB_H
-#define IRS_NETDB_H 1
-
-#include <stddef.h> /* Required on FreeBSD (and others?) for size_t. */
-
-/*
- * Define if <netdb.h> does not declare struct addrinfo.
- */
-#undef ISC_IRS_NEEDADDRINFO
-
-#ifdef ISC_IRS_NEEDADDRINFO
-struct addrinfo {
- int ai_flags; /* AI_PASSIVE, AI_CANONNAME */
- int ai_family; /* PF_xxx */
- int ai_socktype; /* SOCK_xxx */
- int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
- size_t ai_addrlen; /* Length of ai_addr */
- char *ai_canonname; /* Canonical name for hostname */
- struct sockaddr *ai_addr; /* Binary address */
- struct addrinfo *ai_next; /* Next structure in linked list */
-};
-#endif
-
-/*
- * Undefine all #defines we are interested in as <netdb.h> may or may not have
- * defined them.
- */
-
-/*
- * Error return codes from gethostbyname() and gethostbyaddr()
- * (left in extern int h_errno).
- */
-
-#undef NETDB_INTERNAL
-#undef NETDB_SUCCESS
-#undef HOST_NOT_FOUND
-#undef TRY_AGAIN
-#undef NO_RECOVERY
-#undef NO_DATA
-#undef NO_ADDRESS
-
-#define NETDB_INTERNAL -1 /* see errno */
-#define NETDB_SUCCESS 0 /* no problem */
-#define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found */
-#define TRY_AGAIN 2 /* Non-Authoritive Host not found, or SERVERFAIL */
-#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
-#define NO_DATA 4 /* Valid name, no data record of requested type */
-#define NO_ADDRESS NO_DATA /* no address, look for MX record */
-
-/*
- * Error return codes from getaddrinfo(). EAI_INSECUREDATA is our own extension
- * and it's very unlikely to be already defined, but undef it just in case; it
- * at least doesn't do any harm.
- */
-
-#undef EAI_ADDRFAMILY
-#undef EAI_AGAIN
-#undef EAI_BADFLAGS
-#undef EAI_FAIL
-#undef EAI_FAMILY
-#undef EAI_MEMORY
-#undef EAI_NODATA
-#undef EAI_NONAME
-#undef EAI_SERVICE
-#undef EAI_SOCKTYPE
-#undef EAI_SYSTEM
-#undef EAI_BADHINTS
-#undef EAI_PROTOCOL
-#undef EAI_OVERFLOW
-#undef EAI_INSECUREDATA
-#undef EAI_MAX
-
-#define EAI_ADDRFAMILY 1 /* address family for hostname not supported */
-#define EAI_AGAIN 2 /* temporary failure in name resolution */
-#define EAI_BADFLAGS 3 /* invalid value for ai_flags */
-#define EAI_FAIL 4 /* non-recoverable failure in name resolution */
-#define EAI_FAMILY 5 /* ai_family not supported */
-#define EAI_MEMORY 6 /* memory allocation failure */
-#define EAI_NODATA 7 /* no address associated with hostname */
-#define EAI_NONAME 8 /* hostname nor servname provided, or not known */
-#define EAI_SERVICE 9 /* servname not supported for ai_socktype */
-#define EAI_SOCKTYPE 10 /* ai_socktype not supported */
-#define EAI_SYSTEM 11 /* system error returned in errno */
-#define EAI_BADHINTS 12
-#define EAI_PROTOCOL 13
-#define EAI_OVERFLOW 14
-#define EAI_INSECUREDATA 15
-#define EAI_MAX 16
-
-/*
- * Flag values for getaddrinfo()
- */
-#undef AI_PASSIVE
-#undef AI_CANONNAME
-#undef AI_NUMERICHOST
-
-#define AI_PASSIVE 0x00000001
-#define AI_CANONNAME 0x00000002
-#define AI_NUMERICHOST 0x00000004
-
-/*
- * Flag values for getipnodebyname()
- */
-#undef AI_V4MAPPED
-#undef AI_ALL
-#undef AI_ADDRCONFIG
-#undef AI_DEFAULT
-
-#define AI_V4MAPPED 0x00000008
-#define AI_ALL 0x00000010
-#define AI_ADDRCONFIG 0x00000020
-#define AI_DEFAULT (AI_V4MAPPED|AI_ADDRCONFIG)
-
-/*
- * Constants for lwres_getnameinfo()
- */
-#undef NI_MAXHOST
-#undef NI_MAXSERV
-
-#define NI_MAXHOST 1025
-#define NI_MAXSERV 32
-
-/*
- * Flag values for lwres_getnameinfo()
- */
-#undef NI_NOFQDN
-#undef NI_NUMERICHOST
-#undef NI_NAMEREQD
-#undef NI_NUMERICSERV
-#undef NI_DGRAM
-#undef NI_NUMERICSCOPE
-
-#define NI_NOFQDN 0x00000001
-#define NI_NUMERICHOST 0x00000002
-#define NI_NAMEREQD 0x00000004
-#define NI_NUMERICSERV 0x00000008
-#define NI_DGRAM 0x00000010
-
-/*
- * Define to map into irs_ namespace.
- */
-
-#define IRS_NAMESPACE
-
-#ifdef IRS_NAMESPACE
-
-/*
- * Use our versions not the ones from the C library.
- */
-
-#ifdef getnameinfo
-#undef getnameinfo
-#endif
-#define getnameinfo irs_getnameinfo
-
-#ifdef getaddrinfo
-#undef getaddrinfo
-#endif
-#define getaddrinfo irs_getaddrinfo
-
-#ifdef freeaddrinfo
-#undef freeaddrinfo
-#endif
-#define freeaddrinfo irs_freeaddrinfo
-
-#ifdef gai_strerror
-#undef gai_strerror
-#endif
-#define gai_strerror irs_gai_strerror
-
-#endif
-
-int getaddrinfo(const char *, const char *,
- const struct addrinfo *, struct addrinfo **);
-int getnameinfo(const struct sockaddr *, socklen_t, char *,
- DWORD, char *, DWORD, int);
-void freeaddrinfo(struct addrinfo *);
-char *gai_strerror(int);
-
-/*
- * Tell Emacs to use C mode on this file.
- * Local variables:
- * mode: c
- * End:
- */
-
-#endif /* IRS_NETDB_H */
diff --git a/usr.sbin/bind/lib/irs/win32/include/irs/platform.h b/usr.sbin/bind/lib/irs/win32/include/irs/platform.h
deleted file mode 100644
index a45290b6768..00000000000
--- a/usr.sbin/bind/lib/irs/win32/include/irs/platform.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/*! \file */
-
-#ifndef IRS_PLATFORM_H
-#define IRS_PLATFORM_H 1
-
-/*****
- ***** Platform-dependent defines.
- *****/
-
-#ifndef IRS_PLATFORM_USEDECLSPEC
-#define LIBIRS_EXTERNAL_DATA
-#else
-#ifdef LIBIRS_EXPORTS
-#define LIBIRS_EXTERNAL_DATA __declspec(dllexport)
-#else
-#define LIBIRS_EXTERNAL_DATA __declspec(dllimport)
-#endif
-#endif
-
-/*
- * Tell Emacs to use C mode on this file.
- * Local Variables:
- * mode: c
- * End:
- */
-
-#endif /* IRS_PLATFORM_H */
diff --git a/usr.sbin/bind/lib/irs/win32/libirs.def b/usr.sbin/bind/lib/irs/win32/libirs.def
deleted file mode 100644
index d4e9f6f4dc8..00000000000
--- a/usr.sbin/bind/lib/irs/win32/libirs.def
+++ /dev/null
@@ -1,27 +0,0 @@
-LIBRARY libirs
-
-; Exported Functions
-EXPORTS
-irs_context_create
-irs_context_destroy
-irs_context_get
-irs_context_getappctx
-irs_context_getdnsclient
-irs_context_getdnsconf
-irs_context_getmctx
-irs_context_getresconf
-irs_context_gettask
-irs_context_gettaskmgr
-irs_context_gettimermgr
-irs_dnsconf_destroy
-irs_dnsconf_gettrustedkeys
-irs_dnsconf_load
-irs_freeaddrinfo
-irs_gai_strerror
-irs_getaddrinfo
-irs_getnameinfo
-irs_resconf_destroy
-irs_resconf_getnameservers
-irs_resconf_getndots
-irs_resconf_getsearchlist
-irs_resconf_load
diff --git a/usr.sbin/bind/lib/irs/win32/libirs.dsp.in b/usr.sbin/bind/lib/irs/win32/libirs.dsp.in
deleted file mode 100644
index 3f6d1a73446..00000000000
--- a/usr.sbin/bind/lib/irs/win32/libirs.dsp.in
+++ /dev/null
@@ -1,169 +0,0 @@
-# Microsoft Developer Studio Project File - Name="libirs" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "@PLATFORM@ (x86) Dynamic-Link Library" 0x0102
-
-CFG=libirs - @PLATFORM@ Release
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "libirs.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "libirs.mak" CFG="libirs - @PLATFORM@ Release"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "libirs - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE "libirs - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 @COPTX@ @COPTI@ /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "libirs_EXPORTS" @COPTY@ /FD /c
-# ADD CPP /nologo /MD /W3 @COPTX@ @COPTI@ /O2 @LIBXML2_INC@ @OPENSSL_INC@ @GEOIP_INC@ /I "./" /I "../../../" /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isccfg/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "NDEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "USE_MD5" @CRYPTO@ /D "LIBIRS_EXPORTS" @COPTY@ /FD /c
-# SUBTRACT CPP /X
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll @MACHINE@
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib /nologo /dll @MACHINE@ /out:"../../../Build/Release/libirs.dll"
-
-!ELSEIF "$(CFG)" == "libirs - @PLATFORM@ Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "libirs_EXPORTS" @COPTY@ /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od @LIBXML2_INC@ @OPENSSL_INC@ @GEOIP_INC@ /I "./" /I "../../../" /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isccfg/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "USE_MD5" @CRYPTO@ /D "LIBIRS_EXPORTS" /FR @COPTY@ /FD /GZ /c
-# SUBTRACT CPP /X
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug @MACHINE@ /pdbtype:sept
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/debug/libisc.lib ../../dns/win32/debug/libdns.lib ../../isccfg/win32/debug/libisccfg.lib /nologo /dll /debug @MACHINE@ /out:"../../../Build/Debug/libirs.dll" /pdbtype:sept
-
-!ENDIF
-
-# Begin Target
-
-# Name "libirs - @PLATFORM@ Release"
-# Name "libirs - @PLATFORM@ Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=..\context.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\DLLMain.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\dnsconf.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\gai_strerror.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\getaddrinfo.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\getnameinfo.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\resconf.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\version.c
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=..\include\irs\context.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\irs\dnsconf.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\irs\netdb.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\irs\platform.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\irs\resconf.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\irs\types.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\irs\version.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# Begin Source File
-
-SOURCE=.\libirs.def
-# End Source File
-# End Target
-# End Project
diff --git a/usr.sbin/bind/lib/irs/win32/libirs.dsw b/usr.sbin/bind/lib/irs/win32/libirs.dsw
deleted file mode 100644
index 2034776dcca..00000000000
--- a/usr.sbin/bind/lib/irs/win32/libirs.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "libirs"=.\libirs.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/usr.sbin/bind/lib/irs/win32/libirs.mak.in b/usr.sbin/bind/lib/irs/win32/libirs.mak.in
deleted file mode 100644
index 4894057cb7e..00000000000
--- a/usr.sbin/bind/lib/irs/win32/libirs.mak.in
+++ /dev/null
@@ -1,548 +0,0 @@
-# Microsoft Developer Studio Generated NMAKE File, Based on libirs.dsp
-!IF "$(CFG)" == ""
-CFG=libirs - @PLATFORM@ Release
-!MESSAGE No configuration specified. Defaulting to libirs - @PLATFORM@ Release.
-!ENDIF
-
-!IF "$(CFG)" != "libirs - @PLATFORM@ Release" && "$(CFG)" != "libirs - @PLATFORM@ Debug"
-!MESSAGE Invalid configuration "$(CFG)" specified.
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "libirs.mak" CFG="libirs - @PLATFORM@ Release"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "libirs - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE "libirs - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE
-!ERROR An invalid configuration is specified.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release"
-_VC_MANIFEST_INC=0
-_VC_MANIFEST_BASENAME=__VC80
-!ELSE
-_VC_MANIFEST_INC=1
-_VC_MANIFEST_BASENAME=__VC80.Debug
-!ENDIF
-
-####################################################
-# Specifying name of temporary resource file used only in incremental builds:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-_VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
-!else
-_VC_MANIFEST_AUTO_RES=
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
-
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
-
-!endif
-####################################################
-# _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-_VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
- $(_VC_MANIFEST_BASENAME).auto.rc \
- $(_VC_MANIFEST_BASENAME).auto.manifest
-
-!else
-
-_VC_MANIFEST_CLEAN=
-
-!endif
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release"
-
-OUTDIR=.\Release
-INTDIR=.\Release
-
-!IF "$(RECURSE)" == "0"
-
-ALL : "..\..\..\Build\Release\libirs.dll"
-
-!ELSE
-
-ALL : "libisccfg - @PLATFORM@ Release" "libisc - @PLATFORM@ Release" "libdns - @PLATFORM@ Release" "..\..\..\Build\Release\libirs.dll"
-
-!ENDIF
-
-!IF "$(RECURSE)" == "1"
-CLEAN :"libdns - @PLATFORM@ ReleaseCLEAN" "libisc - @PLATFORM@ ReleaseCLEAN" "libisccfg - @PLATFORM@ ReleaseCLEAN"
-!ELSE
-CLEAN :
-!ENDIF
- -@erase "$(INTDIR)\context.obj"
- -@erase "$(INTDIR)\DLLMain.obj"
- -@erase "$(INTDIR)\dnsconf.obj"
- -@erase "$(INTDIR)\gai_strerror.obj"
- -@erase "$(INTDIR)\getaddrinfo.obj"
- -@erase "$(INTDIR)\getnameinfo.obj"
- -@erase "$(INTDIR)\resconf.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\version.obj"
- -@erase "$(OUTDIR)\libirs.exp"
- -@erase "$(OUTDIR)\libirs.lib"
- -@erase "..\..\..\Build\Release\libirs.dll"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP_PROJ=/nologo /MD /W3 @COPTX@ @COPTI@ /O2 @LIBXML2_INC@ @OPENSSL_INC@ @GEOIP_INC@ /I "./" /I "../../../" /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isccfg/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "NDEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "USE_MD5" @CRYPTO@ /D "LIBIRS_EXPORTS" /Fp"$(INTDIR)\libirs.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
-MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\libirs.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib /nologo /dll /incremental:no /pdb:"$(OUTDIR)\libirs.pdb" @MACHINE@ /def:".\libirs.def" /out:"../../../Build/Release/libirs.dll" /implib:"$(OUTDIR)\libirs.lib"
-DEF_FILE= \
- ".\libirs.def"
-LINK32_OBJS= \
- "$(INTDIR)\context.obj" \
- "$(INTDIR)\DLLMain.obj" \
- "$(INTDIR)\dnsconf.obj" \
- "$(INTDIR)\gai_strerror.obj" \
- "$(INTDIR)\getaddrinfo.obj" \
- "$(INTDIR)\getnameinfo.obj" \
- "$(INTDIR)\resconf.obj" \
- "$(INTDIR)\version.obj" \
- "..\..\dns\win32\Release\libdns.lib" \
- "..\..\isc\win32\Release\libisc.lib" \
- "..\..\isccfg\win32\Release\libisccfg.lib"
-
-"..\..\..\Build\Release\libirs.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_DLL)
-
-!ELSEIF "$(CFG)" == "libirs - @PLATFORM@ Debug"
-
-OUTDIR=.\Debug
-INTDIR=.\Debug
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-!IF "$(RECURSE)" == "0"
-
-ALL : "..\..\..\Build\Debug\libirs.dll" "$(OUTDIR)\libirs.bsc"
-
-!ELSE
-
-ALL : "libisccfg - @PLATFORM@ Debug" "libisc - @PLATFORM@ Debug" "libdns - @PLATFORM@ Debug" "..\..\..\Build\Debug\libirs.dll" "$(OUTDIR)\libirs.bsc"
-
-!ENDIF
-
-!IF "$(RECURSE)" == "1"
-CLEAN :"libdns - @PLATFORM@ DebugCLEAN" "libisc - @PLATFORM@ DebugCLEAN" "libisccfg - @PLATFORM@ DebugCLEAN"
-!ELSE
-CLEAN :
-!ENDIF
- -@erase "$(INTDIR)\context.obj"
- -@erase "$(INTDIR)\context.sbr"
- -@erase "$(INTDIR)\DLLMain.obj"
- -@erase "$(INTDIR)\DLLMain.sbr"
- -@erase "$(INTDIR)\dnsconf.obj"
- -@erase "$(INTDIR)\dnsconf.sbr"
- -@erase "$(INTDIR)\gai_strerror.obj"
- -@erase "$(INTDIR)\gai_strerror.sbr"
- -@erase "$(INTDIR)\getaddrinfo.obj"
- -@erase "$(INTDIR)\getaddrinfo.sbr"
- -@erase "$(INTDIR)\getnameinfo.obj"
- -@erase "$(INTDIR)\getnameinfo.sbr"
- -@erase "$(INTDIR)\resconf.obj"
- -@erase "$(INTDIR)\resconf.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(INTDIR)\version.obj"
- -@erase "$(INTDIR)\version.sbr"
- -@erase "$(OUTDIR)\libirs.bsc"
- -@erase "$(OUTDIR)\libirs.exp"
- -@erase "$(OUTDIR)\libirs.lib"
- -@erase "$(OUTDIR)\libirs.pdb"
- -@erase "..\..\..\Build\Debug\libirs.dll"
- -@erase "..\..\..\Build\Debug\libirs.ilk"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP_PROJ=/nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od @LIBXML2_INC@ @OPENSSL_INC@ @GEOIP_INC@ /I "./" /I "../../../" /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/isccfg/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "USE_MD5" @CRYPTO@ /D "LIBIRS_EXPORTS" /FR"$(INTDIR)\\" /Fp"$(INTDIR)\libirs.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\libirs.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\context.sbr" \
- "$(INTDIR)\DLLMain.sbr" \
- "$(INTDIR)\dnsconf.sbr" \
- "$(INTDIR)\gai_strerror.sbr" \
- "$(INTDIR)\getaddrinfo.sbr" \
- "$(INTDIR)\getnameinfo.sbr" \
- "$(INTDIR)\resconf.sbr" \
- "$(INTDIR)\version.sbr"
-
-"$(OUTDIR)\libirs.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/debug/libisc.lib ../../dns/win32/debug/libdns.lib ../../isccfg/win32/debug/libisccfg.lib /nologo /dll /incremental:yes /pdb:"$(OUTDIR)\libirs.pdb" /debug @MACHINE@ /def:".\libirs.def" /out:"../../../Build/Debug/libirs.dll" /implib:"$(OUTDIR)\libirs.lib" /pdbtype:sept
-DEF_FILE= \
- ".\libirs.def"
-LINK32_OBJS= \
- "$(INTDIR)\context.obj" \
- "$(INTDIR)\DLLMain.obj" \
- "$(INTDIR)\dnsconf.obj" \
- "$(INTDIR)\gai_strerror.obj" \
- "$(INTDIR)\getaddrinfo.obj" \
- "$(INTDIR)\getnameinfo.obj" \
- "$(INTDIR)\resconf.obj" \
- "$(INTDIR)\version.obj" \
- "..\..\dns\win32\Debug\libdns.lib" \
- "..\..\isc\win32\Debug\libisc.lib" \
- "..\..\isccfg\win32\Debug\libisccfg.lib"
-
-"..\..\..\Build\Debug\libirs.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_DLL)
-
-!ENDIF
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("libirs.dep")
-!INCLUDE "libirs.dep"
-!ELSE
-!MESSAGE Warning: cannot find "libirs.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release" || "$(CFG)" == "libirs - @PLATFORM@ Debug"
-SOURCE=..\context.c
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release"
-
-
-"$(INTDIR)\context.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libirs - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\context.obj" "$(INTDIR)\context.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=.\DLLMain.c
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release"
-
-
-"$(INTDIR)\DLLMain.obj" : $(SOURCE) "$(INTDIR)"
-
-
-!ELSEIF "$(CFG)" == "libirs - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\DLLMain.obj" "$(INTDIR)\DLLMain.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-!ENDIF
-
-SOURCE=..\dnsconf.c
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release"
-
-
-"$(INTDIR)\dnsconf.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libirs - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\dnsconf.obj" "$(INTDIR)\dnsconf.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=..\gai_strerror.c
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release"
-
-
-"$(INTDIR)\gai_strerror.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libirs - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\gai_strerror.obj" "$(INTDIR)\gai_strerror.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=..\getaddrinfo.c
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release"
-
-
-"$(INTDIR)\getaddrinfo.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libirs - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\getaddrinfo.obj" "$(INTDIR)\getaddrinfo.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=..\getnameinfo.c
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release"
-
-
-"$(INTDIR)\getnameinfo.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libirs - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\getnameinfo.obj" "$(INTDIR)\getnameinfo.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=..\resconf.c
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release"
-
-
-"$(INTDIR)\resconf.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libirs - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\resconf.obj" "$(INTDIR)\resconf.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=.\version.c
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release"
-
-
-"$(INTDIR)\version.obj" : $(SOURCE) "$(INTDIR)"
-
-
-!ELSEIF "$(CFG)" == "libirs - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\version.obj" "$(INTDIR)\version.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-!ENDIF
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release"
-
-"libdns - @PLATFORM@ Release" :
- cd "..\..\dns\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Release"
- cd "..\..\irs\win32"
-
-"libdns - @PLATFORM@ ReleaseCLEAN" :
- cd "..\..\dns\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Release" RECURSE=1 CLEAN
- cd "..\..\irs\win32"
-
-!ELSEIF "$(CFG)" == "libirs - @PLATFORM@ Debug"
-
-"libdns - @PLATFORM@ Debug" :
- cd "..\..\dns\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Debug"
- cd "..\..\irs\win32"
-
-"libdns - @PLATFORM@ DebugCLEAN" :
- cd "..\..\dns\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Debug" RECURSE=1 CLEAN
- cd "..\..\irs\win32"
-
-!ENDIF
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release"
-
-"libisc - @PLATFORM@ Release" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release"
- cd "..\..\irs\win32"
-
-"libisc - @PLATFORM@ ReleaseCLEAN" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release" RECURSE=1 CLEAN
- cd "..\..\irs\win32"
-
-!ELSEIF "$(CFG)" == "libirs - @PLATFORM@ Debug"
-
-"libisc - @PLATFORM@ Debug" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug"
- cd "..\..\irs\win32"
-
-"libisc - @PLATFORM@ DebugCLEAN" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug" RECURSE=1 CLEAN
- cd "..\..\irs\win32"
-
-!ENDIF
-
-!IF "$(CFG)" == "libirs - @PLATFORM@ Release"
-
-"libisccfg - @PLATFORM@ Release" :
- cd "..\..\isccfg\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Release"
- cd "..\..\irs\win32"
-
-"libisccfg - @PLATFORM@ ReleaseCLEAN" :
- cd "..\..\isccfg\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Release" RECURSE=1 CLEAN
- cd "..\..\irs\win32"
-
-!ELSEIF "$(CFG)" == "libirs - @PLATFORM@ Debug"
-
-"libisccfg - @PLATFORM@ Debug" :
- cd "..\..\isccfg\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Debug"
- cd "..\..\irs\win32"
-
-"libisccfg - @PLATFORM@ DebugCLEAN" :
- cd "..\..\isccfg\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisccfg.mak" CFG="libisccfg - @PLATFORM@ Debug" RECURSE=1 CLEAN
- cd "..\..\irs\win32"
-
-!ENDIF
-
-
-!ENDIF
-
-####################################################
-# Commands to generate initial empty manifest file and the RC file
-# that references it, and for generating the .res file:
-
-$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
-
-$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
- type <<$@
-#include <winuser.h>
-1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
-<< KEEP
-
-$(_VC_MANIFEST_BASENAME).auto.manifest :
- type <<$@
-<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
-<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
-</assembly>
-<< KEEP
diff --git a/usr.sbin/bind/lib/irs/win32/libirs.vcxproj.filters.in b/usr.sbin/bind/lib/irs/win32/libirs.vcxproj.filters.in
deleted file mode 100644
index 8f772339d84..00000000000
--- a/usr.sbin/bind/lib/irs/win32/libirs.vcxproj.filters.in
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
- <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
- <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
- </Filter>
- <Filter Include="Resource Files">
- <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
- <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <None Include="libirs.def" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="DLLMain.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="version.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\context.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\dnsconf.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\gai_strerror.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\getaddrinfo.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\getnameinfo.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\resconf.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\include\irs\context.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\irs\dnsconf.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\irs\netdb.h.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\irs\platform.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\irs\resconf.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\irs\types.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\irs\version.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- </ItemGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/irs/win32/libirs.vcxproj.in b/usr.sbin/bind/lib/irs/win32/libirs.vcxproj.in
deleted file mode 100644
index 3500ce6a7ff..00000000000
--- a/usr.sbin/bind/lib/irs/win32/libirs.vcxproj.in
+++ /dev/null
@@ -1,131 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|@PLATFORM@">
- <Configuration>Debug</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|@PLATFORM@">
- <Configuration>Release</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{A4F29CEB-7644-4A7F-BE9E-02B6A90E4919}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>libirs</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;USE_MD5;@CRYPTO@_DEBUG;_WINDOWS;_USRDLL;LIBIRS_EXPORTS;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>.\;..\..\..\;include;..\include;..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\isccfg\include;..\..\dns\include;@LIBXML2_INC@@OPENSSL_INC@@GEOIP_INC@%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <BrowseInformation>true</BrowseInformation>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);..\..\dns\win32\$(Configuration);..\..\isccfg\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <ModuleDefinitionFile>.\libirs.def</ModuleDefinitionFile>
- <ImportLibrary>.\$(Configuration)\$(ProjectName).lib</ImportLibrary>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;USE_MD5;@CRYPTO@NDEBUG;_WINDOWS;_USRDLL;LIBIRS_EXPORTS;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>.\;..\..\..\;include;..\include;..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\isccfg\include;..\..\dns\include;@LIBXML2_INC@@OPENSSL_INC@@GEOIP_INC@%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
- <WholeProgramOptimization>false</WholeProgramOptimization>
- <StringPooling>true</StringPooling>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);..\..\dns\win32\$(Configuration);..\..\isccfg\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <ModuleDefinitionFile>.\libirs.def</ModuleDefinitionFile>
- <ImportLibrary>.\$(Configuration)\$(ProjectName).lib</ImportLibrary>
- <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <None Include="libirs.def" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\context.c" />
- <ClCompile Include="..\dnsconf.c" />
- <ClCompile Include="..\gai_strerror.c" />
- <ClCompile Include="..\getaddrinfo.c" />
- <ClCompile Include="..\getnameinfo.c" />
- <ClCompile Include="..\resconf.c" />
- <ClCompile Include="DLLMain.c" />
- <ClCompile Include="version.c" />
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\include\irs\context.h" />
- <ClInclude Include="..\include\irs\dnsconf.h" />
- <ClInclude Include="..\include\irs\netdb.h" />
- <ClInclude Include="..\include\irs\platform.h" />
- <ClInclude Include="..\include\irs\resconf.h" />
- <ClInclude Include="..\include\irs\types.h" />
- <ClInclude Include="..\include\irs\version.h" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/irs/win32/libirs.vcxproj.user b/usr.sbin/bind/lib/irs/win32/libirs.vcxproj.user
deleted file mode 100644
index 695b5c78b91..00000000000
--- a/usr.sbin/bind/lib/irs/win32/libirs.vcxproj.user
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/irs/win32/version.c b/usr.sbin/bind/lib/irs/win32/version.c
deleted file mode 100644
index 54e0cac9ff7..00000000000
--- a/usr.sbin/bind/lib/irs/win32/version.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: version.c,v 1.1 2019/12/16 16:31:35 deraadt Exp $ */
-
-#include <versions.h>
-
-#include <irs/version.h>
-
-LIBIRS_EXTERNAL_DATA const char irs_version[] = VERSION;
-
-LIBIRS_EXTERNAL_DATA const unsigned int irs_libinterface = LIBINTERFACE;
-LIBIRS_EXTERNAL_DATA const unsigned int irs_librevision = LIBREVISION;
-LIBIRS_EXTERNAL_DATA const unsigned int irs_libage = LIBAGE;
diff --git a/usr.sbin/bind/lib/isc/tests/Atffile b/usr.sbin/bind/lib/isc/tests/Atffile
deleted file mode 100644
index c3e044f41a8..00000000000
--- a/usr.sbin/bind/lib/isc/tests/Atffile
+++ /dev/null
@@ -1,5 +0,0 @@
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = bind9
-
-tp-glob: *_test
diff --git a/usr.sbin/bind/lib/isc/tests/Makefile.in b/usr.sbin/bind/lib/isc/tests/Makefile.in
deleted file mode 100644
index 09428827ba9..00000000000
--- a/usr.sbin/bind/lib/isc/tests/Makefile.in
+++ /dev/null
@@ -1,141 +0,0 @@
-# Copyright (C) 2011-2016 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-srcdir = @srcdir@
-VPATH = @srcdir@
-top_srcdir = @top_srcdir@
-
-# Attempt to disable parallel processing.
-.NOTPARALLEL:
-.NO_PARALLEL:
-
-VERSION=@BIND9_VERSION@
-
-@BIND9_MAKE_INCLUDES@
-
-CINCLUDES = -I. -Iinclude ${ISC_INCLUDES} @ISC_OPENSSL_INC@
-CDEFINES = @CRYPTO@ -DTESTS="\"${top_builddir}/lib/isc/tests/\""
-
-ISCLIBS = ../libisc.@A@ @ISC_OPENSSL_LIBS@
-ISCDEPLIBS = ../libisc.@A@
-
-LIBS = @LIBS@ @ATFLIBS@
-
-OBJS = isctest.@O@
-SRCS = isctest.c taskpool_test.c socket_test.c hash_test.c \
- lex_test.c radix_test.c \
- sockaddr_test.c symtab_test.c task_test.c queue_test.c \
- parse_test.c pool_test.c print_test.c regex_test.c \
- socket_test.c safe_test.c time_test.c aes_test.c \
- counter_test.c mem_test.c errno_test.c netaddr_test.c
-
-SUBDIRS =
-TARGETS = taskpool_test@EXEEXT@ socket_test@EXEEXT@ hash_test@EXEEXT@ \
- lex_test@EXEEXT@ radix_test@EXEEXT@ \
- sockaddr_test@EXEEXT@ symtab_test@EXEEXT@ task_test@EXEEXT@ \
- queue_test@EXEEXT@ parse_test@EXEEXT@ pool_test@EXEEXT@ \
- print_test@EXEEXT@ regex_test@EXEEXT@ socket_test@EXEEXT@ \
- safe_test@EXEEXT@ time_test@EXEEXT@ aes_test@EXEEXT@ \
- counter_test@EXEEXT@ mem_test@EXEEXT@ errno_test@EXEEXT@ \
- netaddr_test@EXEEXT@
-
-@BIND9_MAKE_RULES@
-
-taskpool_test@EXEEXT@: taskpool_test.@O@ isctest.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- taskpool_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
-
-task_test@EXEEXT@: task_test.@O@ isctest.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- task_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
-
-socket_test@EXEEXT@: socket_test.@O@ isctest.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- socket_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
-
-hash_test@EXEEXT@: hash_test.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- hash_test.@O@ ${ISCLIBS} ${LIBS}
-
-lex_test@EXEEXT@: lex_test.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- lex_test.@O@ ${ISCLIBS} ${LIBS}
-
-queue_test@EXEEXT@: queue_test.@O@ isctest.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- queue_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
-
-radix_test@EXEEXT@: radix_test.@O@ isctest.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- radix_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
-
-symtab_test@EXEEXT@: symtab_test.@O@ isctest.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- symtab_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
-
-parse_test@EXEEXT@: parse_test.@O@ isctest.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- parse_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
-
-sockaddr_test@EXEEXT@: sockaddr_test.@O@ isctest.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- sockaddr_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
-
-print_test.@O@: ${top_srcdir}/lib/isc/print.c
-print_test@EXEEXT@: print_test.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- print_test.@O@ ${ISCLIBS} ${LIBS}
-
-pool_test@EXEEXT@: pool_test.@O@ isctest.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- pool_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
-
-regex_test@EXEEXT@: regex_test.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- regex_test.@O@ ${ISCLIBS} ${LIBS}
-
-safe_test@EXEEXT@: safe_test.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- safe_test.@O@ ${ISCLIBS} ${LIBS}
-
-time_test@EXEEXT@: time_test.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- time_test.@O@ ${ISCLIBS} ${LIBS}
-
-aes_test@EXEEXT@: aes_test.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- aes_test.@O@ ${ISCLIBS} ${LIBS}
-
-counter_test@EXEEXT@: counter_test.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- counter_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
-
-mem_test@EXEEXT@: mem_test.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- mem_test.@O@ isctest.@O@ ${ISCLIBS} ${LIBS}
-
-errno_test@EXEEXT@: errno_test.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- errno_test.@O@ ${ISCLIBS} ${LIBS}
-
-netaddr_test@EXEEXT@: netaddr_test.@O@ ${ISCDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- netaddr_test.@O@ ${ISCLIBS} ${LIBS}
-
-unit::
- sh ${top_srcdir}/unit/unittest.sh
-
-clean distclean::
- rm -f ${TARGETS}
- rm -f atf.out
diff --git a/usr.sbin/bind/lib/isc/tests/aes_test.c b/usr.sbin/bind/lib/isc/tests/aes_test.c
deleted file mode 100644
index ad28bf84895..00000000000
--- a/usr.sbin/bind/lib/isc/tests/aes_test.c
+++ /dev/null
@@ -1,300 +0,0 @@
-/*
- * Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: aes_test.c,v 1.1 2019/12/16 16:31:36 deraadt Exp $ */
-
-/* ! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <stdio.h>
-#include <string.h>
-
-#include <isc/aes.h>
-#include <isc/buffer.h>
-#include <isc/hex.h>
-#include <isc/platform.h>
-#include <isc/region.h>
-#include <isc/string.h>
-#include <isc/util.h>
-
-#ifdef ISC_PLATFORM_WANTAES
-
-/*
- * Test data from NIST KAT
- */
-
-isc_result_t
-tohexstr(unsigned char *d, char *out);
-
-size_t
-fromhexstr(const char *in, unsigned char *d);
-
-unsigned char plaintext[3 * ISC_AES_BLOCK_LENGTH];
-unsigned char ciphertext[ISC_AES_BLOCK_LENGTH];
-char str[2 * ISC_AES_BLOCK_LENGTH + 1];
-unsigned char key[ISC_AES256_KEYLENGTH + 1];
-size_t len;
-
-isc_result_t
-tohexstr(unsigned char *d, char *out) {
- isc_buffer_t b;
- isc_region_t r;
-
- isc_buffer_init(&b, out, 2 * ISC_AES_BLOCK_LENGTH + 1);
- r.base = d;
- r.length = ISC_AES_BLOCK_LENGTH;
- return (isc_hex_totext(&r, 0, "", &b));
-}
-
-size_t
-fromhexstr(const char *in, unsigned char *d)
-{
- isc_buffer_t b;
- isc_result_t ret;
-
- isc_buffer_init(&b, d, ISC_AES256_KEYLENGTH + 1);
- ret = isc_hex_decodestring(in, &b);
- if (ret != ISC_R_SUCCESS)
- return 0;
- return isc_buffer_usedlength(&b);
-}
-
-typedef struct aes_testcase {
- const char *key;
- const char *input;
- const char *result;
-} aes_testcase_t;
-
-
-ATF_TC(isc_aes128);
-ATF_TC_HEAD(isc_aes128, tc) {
- atf_tc_set_md_var(tc, "descr", "AES 128 test vectors");
-}
-ATF_TC_BODY(isc_aes128, tc) {
- UNUSED(tc);
-
- aes_testcase_t testcases[] = {
- /* Test 1 (KAT ECBVarTxt128 #3) */
- {
- "00000000000000000000000000000000",
- "F0000000000000000000000000000000",
- "96D9FD5CC4F07441727DF0F33E401A36"
- },
- /* Test 2 (KAT ECBVarTxt128 #123) */
- {
- "00000000000000000000000000000000",
- "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0",
- "F9B0FDA0C4A898F5B9E6F661C4CE4D07"
- },
- /* Test 3 (KAT ECBVarKey128 #3) */
- {
- "F0000000000000000000000000000000",
- "00000000000000000000000000000000",
- "970014D634E2B7650777E8E84D03CCD8"
- },
- /* Test 4 (KAT ECBVarKey128 #123) */
- {
- "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0",
- "00000000000000000000000000000000",
- "41C78C135ED9E98C096640647265DA1E"
- },
- /* Test 5 (KAT ECBGFSbox128 #3) */
- {
- "00000000000000000000000000000000",
- "6A118A874519E64E9963798A503F1D35",
- "DC43BE40BE0E53712F7E2BF5CA707209"
- },
- /* Test 6 (KAT ECBKeySbox128 #3) */
- {
- "B6364AC4E1DE1E285EAF144A2415F7A0",
- "00000000000000000000000000000000",
- "5D9B05578FC944B3CF1CCF0E746CD581"
- },
- { NULL, NULL, NULL }
- };
-
- aes_testcase_t *testcase = testcases;
-
- while (testcase->key != NULL) {
- len = fromhexstr(testcase->key, key);
- ATF_CHECK_EQ(len, ISC_AES128_KEYLENGTH);
- len = fromhexstr(testcase->input, plaintext);
- ATF_CHECK_EQ(len, ISC_AES_BLOCK_LENGTH);
- isc_aes128_crypt(key, plaintext, ciphertext);
- ATF_CHECK(tohexstr(ciphertext, str) == ISC_R_SUCCESS);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- }
-}
-
-ATF_TC(isc_aes192);
-ATF_TC_HEAD(isc_aes192, tc) {
- atf_tc_set_md_var(tc, "descr", "AES 192 test vectors");
-}
-ATF_TC_BODY(isc_aes192, tc) {
- UNUSED(tc);
-
- aes_testcase_t testcases[] = {
- /* Test 1 (KAT ECBVarTxt192 #3) */
- {
- "000000000000000000000000000000000000000000000000",
- "F0000000000000000000000000000000",
- "2A560364CE529EFC21788779568D5555"
- },
- /* Test 2 (KAT ECBVarTxt192 #123) */
- {
- "000000000000000000000000000000000000000000000000",
- "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0",
- "2AABB999F43693175AF65C6C612C46FB"
- },
- /* Test 3 (KAT ECBVarKey192 #3) */
- {
- "F00000000000000000000000000000000000000000000000",
- "00000000000000000000000000000000",
- "180B09F267C45145DB2F826C2582D35C"
- },
- /* Test 4 (KAT ECBVarKey192 #187) */
- {
- "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0",
- "00000000000000000000000000000000",
- "EACF1E6C4224EFB38900B185AB1DFD42"
- },
- /* Test 5 (KAT ECBGFSbox192 #3) */
- {
- "000000000000000000000000000000000000000000000000",
- "51719783D3185A535BD75ADC65071CE1",
- "4F354592FF7C8847D2D0870CA9481B7C"
- },
- /* Test 6 (KAT ECBKeySbox192 #3) */
- {
- "CD62376D5EBB414917F0C78F05266433DC9192A1EC943300",
- "00000000000000000000000000000000",
- "7F6C25FF41858561BB62F36492E93C29"
- },
- { NULL, NULL, NULL }
- };
-
- aes_testcase_t *testcase = testcases;
-
- while (testcase->key != NULL) {
- len = fromhexstr(testcase->key, key);
- ATF_CHECK_EQ(len, ISC_AES192_KEYLENGTH);
- len = fromhexstr(testcase->input, plaintext);
- ATF_CHECK_EQ(len, ISC_AES_BLOCK_LENGTH);
- isc_aes192_crypt(key, plaintext, ciphertext);
- ATF_CHECK(tohexstr(ciphertext, str) == ISC_R_SUCCESS);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- }
-}
-
-ATF_TC(isc_aes256);
-ATF_TC_HEAD(isc_aes256, tc) {
- atf_tc_set_md_var(tc, "descr", "AES 256 test vectors");
-}
-ATF_TC_BODY(isc_aes256, tc) {
- UNUSED(tc);
-
- aes_testcase_t testcases[] = {
- /* Test 1 (KAT ECBVarTxt256 #3) */
- {
- "00000000000000000000000000000000"
- "00000000000000000000000000000000",
- "F0000000000000000000000000000000",
- "7F2C5ECE07A98D8BEE13C51177395FF7"
- },
- /* Test 2 (KAT ECBVarTxt256 #123) */
- {
- "00000000000000000000000000000000"
- "00000000000000000000000000000000",
- "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0",
- "7240E524BC51D8C4D440B1BE55D1062C"
- },
- /* Test 3 (KAT ECBVarKey256 #3) */
- {
- "F0000000000000000000000000000000"
- "00000000000000000000000000000000",
- "00000000000000000000000000000000",
- "1C777679D50037C79491A94DA76A9A35"
- },
- /* Test 4 (KAT ECBVarKey256 #251) */
- {
- "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
- "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0",
- "00000000000000000000000000000000",
- "03720371A04962EAEA0A852E69972858"
- },
- /* Test 5 (KAT ECBGFSbox256 #3) */
- {
- "00000000000000000000000000000000"
- "00000000000000000000000000000000",
- "8A560769D605868AD80D819BDBA03771",
- "38F2C7AE10612415D27CA190D27DA8B4"
- },
- /* Test 6 (KAT ECBKeySbox256 #3) */
- {
- "984CA75F4EE8D706F46C2D98C0BF4A45"
- "F5B00D791C2DFEB191B5ED8E420FD627",
- "00000000000000000000000000000000",
- "4307456A9E67813B452E15FA8FFFE398"
- },
- { NULL, NULL, NULL }
- };
-
- aes_testcase_t *testcase = testcases;
-
- while (testcase->key != NULL) {
- len = fromhexstr(testcase->key, key);
- ATF_CHECK_EQ(len, ISC_AES256_KEYLENGTH);
- len = fromhexstr(testcase->input, plaintext);
- ATF_CHECK_EQ(len, ISC_AES_BLOCK_LENGTH);
- isc_aes256_crypt(key, plaintext, ciphertext);
- ATF_CHECK(tohexstr(ciphertext, str) == ISC_R_SUCCESS);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- }
-}
-#else
-ATF_TC(untested);
-ATF_TC_HEAD(untested, tc) {
- atf_tc_set_md_var(tc, "descr", "skipping aes test");
-}
-ATF_TC_BODY(untested, tc) {
- UNUSED(tc);
- atf_tc_skip("AES not available");
-}
-#endif
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
-#ifdef ISC_PLATFORM_WANTAES
- ATF_TP_ADD_TC(tp, isc_aes128);
- ATF_TP_ADD_TC(tp, isc_aes192);
- ATF_TP_ADD_TC(tp, isc_aes256);
-#else
- ATF_TP_ADD_TC(tp, untested);
-#endif
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/isc/tests/counter_test.c b/usr.sbin/bind/lib/isc/tests/counter_test.c
deleted file mode 100644
index a7a19972aab..00000000000
--- a/usr.sbin/bind/lib/isc/tests/counter_test.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <config.h>
-#include <stdlib.h>
-
-#include <atf-c.h>
-
-#include <isc/counter.h>
-#include <isc/result.h>
-
-#include "isctest.h"
-
-ATF_TC(isc_counter);
-ATF_TC_HEAD(isc_counter, tc) {
- atf_tc_set_md_var(tc, "descr", "isc counter object");
-}
-ATF_TC_BODY(isc_counter, tc) {
- isc_result_t result;
- isc_counter_t *counter = NULL;
- int i;
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_counter_create(mctx, 0, &counter);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- for (i = 0; i < 10; i++) {
- result = isc_counter_increment(counter);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- }
-
- ATF_CHECK_EQ(isc_counter_used(counter), 10);
-
- isc_counter_setlimit(counter, 15);
- for (i = 0; i < 10; i++) {
- result = isc_counter_increment(counter);
- if (result != ISC_R_SUCCESS)
- break;
- }
-
- ATF_CHECK_EQ(isc_counter_used(counter), 15);
-
- isc_counter_detach(&counter);
- isc_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, isc_counter);
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/isc/tests/errno_test.c b/usr.sbin/bind/lib/isc/tests/errno_test.c
deleted file mode 100644
index bdb1fef9536..00000000000
--- a/usr.sbin/bind/lib/isc/tests/errno_test.c
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <config.h>
-
-#include <stdio.h>
-#include <sys/errno.h>
-
-#include <atf-c.h>
-
-#include <isc/errno.h>
-#include <isc/result.h>
-
-typedef struct {
- int err;
- isc_result_t result;
-} testpair_t;
-
-testpair_t testpair[] = {
- { EPERM, ISC_R_NOPERM },
- { ENOENT, ISC_R_FILENOTFOUND },
- { EIO, ISC_R_IOERROR },
- { EBADF, ISC_R_INVALIDFILE },
- { ENOMEM, ISC_R_NOMEMORY },
- { EACCES, ISC_R_NOPERM },
- { EEXIST, ISC_R_FILEEXISTS },
- { ENOTDIR, ISC_R_INVALIDFILE },
- { EINVAL, ISC_R_INVALIDFILE },
- { ENFILE, ISC_R_TOOMANYOPENFILES },
- { EMFILE, ISC_R_TOOMANYOPENFILES },
- { EPIPE, ISC_R_CONNECTIONRESET },
- { ENAMETOOLONG, ISC_R_INVALIDFILE },
- { ELOOP, ISC_R_INVALIDFILE },
-#ifdef EOVERFLOW
- { EOVERFLOW, ISC_R_RANGE },
-#endif
-#ifdef EAFNOSUPPORT
- { EAFNOSUPPORT, ISC_R_FAMILYNOSUPPORT },
-#endif
-#ifdef EADDRINUSE
- { EADDRINUSE, ISC_R_ADDRINUSE },
-#endif
- { EADDRNOTAVAIL, ISC_R_ADDRNOTAVAIL },
-#ifdef ENETDOWN
- { ENETDOWN, ISC_R_NETDOWN },
-#endif
-#ifdef ENETUNREACH
- { ENETUNREACH, ISC_R_NETUNREACH },
-#endif
-#ifdef ECONNABORTED
- { ECONNABORTED, ISC_R_CONNECTIONRESET },
-#endif
-#ifdef ECONNRESET
- { ECONNRESET, ISC_R_CONNECTIONRESET },
-#endif
-#ifdef ENOBUFS
- { ENOBUFS, ISC_R_NORESOURCES },
-#endif
-#ifdef ENOTCONN
- { ENOTCONN, ISC_R_NOTCONNECTED },
-#endif
-#ifdef ETIMEDOUT
- { ETIMEDOUT, ISC_R_TIMEDOUT },
-#endif
- { ECONNREFUSED, ISC_R_CONNREFUSED },
-#ifdef EHOSTDOWN
- { EHOSTDOWN, ISC_R_HOSTDOWN },
-#endif
-#ifdef EHOSTUNREACH
- { EHOSTUNREACH, ISC_R_HOSTUNREACH },
-#endif
- { 0, ISC_R_UNEXPECTED }
-};
-
-ATF_TC(isc_errno_toresult);
-ATF_TC_HEAD(isc_errno_toresult, tc) {
- atf_tc_set_md_var(tc, "descr", "convert errno to ISC result");
-}
-ATF_TC_BODY(isc_errno_toresult, tc) {
- isc_result_t result, expect;
- size_t i;
-
- for (i = 0; i < sizeof(testpair)/sizeof(testpair[0]); i++) {
- result = isc_errno_toresult(testpair[i].err);
- expect = testpair[i].result;
- ATF_CHECK(result == expect);
- }
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, isc_errno_toresult);
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/isc/tests/hash_test.c b/usr.sbin/bind/lib/isc/tests/hash_test.c
deleted file mode 100644
index 03e551b580e..00000000000
--- a/usr.sbin/bind/lib/isc/tests/hash_test.c
+++ /dev/null
@@ -1,1981 +0,0 @@
-/*
- * Copyright (C) 2011-2016 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* ! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <stdio.h>
-#include <string.h>
-
-#include <isc/hash.h>
-
-#include <isc/crc64.h>
-#include <isc/hmacmd5.h>
-#include <isc/hmacsha.h>
-#include <isc/md5.h>
-#include <isc/sha1.h>
-#include <isc/util.h>
-#include <isc/print.h>
-#include <isc/string.h>
-
-#include <pk11/site.h>
-
-/*
- * Test data from RFC6234
- */
-
-unsigned char digest[ISC_SHA512_DIGESTLENGTH];
-unsigned char buffer[1024];
-const char *s;
-char str[2 * ISC_SHA512_DIGESTLENGTH + 3];
-unsigned char key[20];
-
-isc_result_t
-tohexstr(unsigned char *d, unsigned int len, char *out);
-/*
- * Precondition: a hexadecimal number in *d, the length of that number in len,
- * and a pointer to a character array to put the output (*out).
- * Postcondition: A String representation of the given hexadecimal number is
- * placed into the array *out
- *
- * 'out' MUST point to an array of at least len * 2 + 1
- *
- * Return values: ISC_R_SUCCESS if the operation is sucessful
- */
-
-isc_result_t
-tohexstr(unsigned char *d, unsigned int len, char *out) {
-
- out[0]='\0';
- char c_ret[] = "AA";
- unsigned int i;
- strcat(out, "0x");
- for (i = 0; i < len; i++) {
- sprintf(c_ret, "%02X", d[i]);
- strcat(out, c_ret);
- }
- strcat(out, "\0");
- return (ISC_R_SUCCESS);
-}
-
-
-#define TEST_INPUT(x) (x), sizeof(x)-1
-
-typedef struct hash_testcase {
- const char *input;
- size_t input_len;
- const char *result;
- int repeats;
-} hash_testcase_t;
-
-typedef struct hash_test_key {
- const char *key;
- const int len;
-} hash_test_key_t;
-
-/* non-hmac tests */
-
-ATF_TC(isc_sha1);
-ATF_TC_HEAD(isc_sha1, tc) {
- atf_tc_set_md_var(tc, "descr", "sha1 examples from RFC4634");
-}
-ATF_TC_BODY(isc_sha1, tc) {
- isc_sha1_t sha1;
- int i;
-
- UNUSED(tc);
-
- /*
- * These are the various test vectors. All of these are passed
- * through the hash function and the results are compared to the
- * result specified here.
- */
- hash_testcase_t testcases[] = {
- /* Test 1 */
- {
- TEST_INPUT("abc"),
- "0xA9993E364706816ABA3E25717850C26C9CD0D89D",
- 1
- },
- /* Test 2 */
- {
- TEST_INPUT("abcdbcdecdefdefgefghfghighijhijkijk"
- "ljklmklmnlmnomnopnopq"),
- "0x84983E441C3BD26EBAAE4AA1F95129E5E54670F1",
- 1
- },
- /* Test 3 */
- {
- TEST_INPUT("a") /* times 1000000 */,
- "0x34AA973CD4C4DAA4F61EEB2BDBAD27316534016F",
- 1000000
- },
- /* Test 4 -- exact multiple of 512 bits */
- {
- TEST_INPUT("01234567012345670123456701234567"),
- "0xDEA356A2CDDD90C7A7ECEDC5EBB563934F460452",
- 20 /* 20 times */
- },
-#if 0
- /* Test 5 -- optional feature, not implemented */
- {
- TEST_INPUT(""),
- /* "extrabits": 0x98 , "numberextrabits": 5 */
- "0x29826B003B906E660EFF4027CE98AF3531AC75BA",
- 1
- },
-#endif
- /* Test 6 */
- {
- TEST_INPUT("\x5e"),
- "0x5E6F80A34A9798CAFC6A5DB96CC57BA4C4DB59C2",
- 1
- },
-#if 0
- /* Test 7 -- optional feature, not implemented */
- {
- TEST_INPUT("\x49\xb2\xae\xc2\x59\x4b\xbe\x3a"
- "\x3b\x11\x75\x42\xd9\x4a\xc8"),
- /* "extrabits": 0x80, "numberextrabits": 3 */
- "0x6239781E03729919C01955B3FFA8ACB60B988340", 1 },
-#endif
- /* Test 8 */
- {
- TEST_INPUT("\x9a\x7d\xfd\xf1\xec\xea\xd0\x6e\xd6\x46"
- "\xaa\x55\xfe\x75\x71\x46"),
- "0x82ABFF6605DBE1C17DEF12A394FA22A82B544A35",
- 1
- },
-#if 0
- /* Test 9 -- optional feature, not implemented */
- {
- TEST_INPUT("\x65\xf9\x32\x99\x5b\xa4\xce\x2c\xb1\xb4"
- "\xa2\xe7\x1a\xe7\x02\x20\xaa\xce\xc8\x96"
- "\x2d\xd4\x49\x9c\xbd\x7c\x88\x7a\x94\xea"
- "\xaa\x10\x1e\xa5\xaa\xbc\x52\x9b\x4e\x7e"
- "\x43\x66\x5a\x5a\xf2\xcd\x03\xfe\x67\x8e"
- "\xa6\xa5\x00\x5b\xba\x3b\x08\x22\x04\xc2"
- "\x8b\x91\x09\xf4\x69\xda\xc9\x2a\xaa\xb3"
- "\xaa\x7c\x11\xa1\xb3\x2a"),
- /* "extrabits": 0xE0 , "numberextrabits": 3 */
- "0x8C5B2A5DDAE5A97FC7F9D85661C672ADBF7933D4",
- 1
- },
-#endif
- /* Test 10 */
- {
- TEST_INPUT("\xf7\x8f\x92\x14\x1b\xcd\x17\x0a\xe8\x9b"
- "\x4f\xba\x15\xa1\xd5\x9f\x3f\xd8\x4d\x22"
- "\x3c\x92\x51\xbd\xac\xbb\xae\x61\xd0\x5e"
- "\xd1\x15\xa0\x6a\x7c\xe1\x17\xb7\xbe\xea"
- "\xd2\x44\x21\xde\xd9\xc3\x25\x92\xbd\x57"
- "\xed\xea\xe3\x9c\x39\xfa\x1f\xe8\x94\x6a"
- "\x84\xd0\xcf\x1f\x7b\xee\xad\x17\x13\xe2"
- "\xe0\x95\x98\x97\x34\x7f\x67\xc8\x0b\x04"
- "\x00\xc2\x09\x81\x5d\x6b\x10\xa6\x83\x83"
- "\x6f\xd5\x56\x2a\x56\xca\xb1\xa2\x8e\x81"
- "\xb6\x57\x66\x54\x63\x1c\xf1\x65\x66\xb8"
- "\x6e\x3b\x33\xa1\x08\xb0\x53\x07\xc0\x0a"
- "\xff\x14\xa7\x68\xed\x73\x50\x60\x6a\x0f"
- "\x85\xe6\xa9\x1d\x39\x6f\x5b\x5c\xbe\x57"
- "\x7f\x9b\x38\x80\x7c\x7d\x52\x3d\x6d\x79"
- "\x2f\x6e\xbc\x24\xa4\xec\xf2\xb3\xa4\x27"
- "\xcd\xbb\xfb"),
- "0xCB0082C8F197D260991BA6A460E76E202BAD27B3",
- 1
- },
- { NULL, 0, NULL, 1 }
- };
-
- hash_testcase_t *testcase = testcases;
-
- while (testcase->input != NULL && testcase->result != NULL) {
- isc_sha1_init(&sha1);
- for(i = 0; i < testcase->repeats; i++) {
- isc_sha1_update(&sha1,
- (const isc_uint8_t *) testcase->input,
- testcase->input_len);
- }
- isc_sha1_final(&sha1, digest);
- tohexstr(digest, ISC_SHA1_DIGESTLENGTH, str);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- }
-}
-
-ATF_TC(isc_sha224);
-ATF_TC_HEAD(isc_sha224, tc) {
- atf_tc_set_md_var(tc, "descr", "sha224 examples from RFC4634");
-}
-ATF_TC_BODY(isc_sha224, tc) {
- isc_sha224_t sha224;
- int i;
-
- UNUSED(tc);
-
- /*
- * These are the various test vectors. All of these are passed
- * through the hash function and the results are compared to the
- * result specified here.
- */
- hash_testcase_t testcases[] = {
- /* Test 1 */
- {
- TEST_INPUT("abc"),
- "0x23097D223405D8228642A477BDA255B32AADBCE4BDA0B3F7"
- "E36C9DA7",
- 1
- },
- /* Test 2 */
- {
- TEST_INPUT("abcdbcdecdefdefgefghfghighijhijkijklj"
- "klmklmnlmnomnopnopq"),
- "0x75388B16512776CC5DBA5DA1FD890150B0C6455CB4F58B"
- "1952522525",
- 1
- },
- /* Test 3 */
- {
- TEST_INPUT("a"),
- "0x20794655980C91D8BBB4C1EA97618A4BF03F42581948B2"
- "EE4EE7AD67",
- 1000000
- },
- /* Test 4 */
- {
- TEST_INPUT("01234567012345670123456701234567"),
- "0x567F69F168CD7844E65259CE658FE7AADFA25216E68ECA"
- "0EB7AB8262",
- 20
- },
-#if 0
- /* Test 5 -- unimplemented optional functionality */
- {
- TEST_INPUT(""),
- "0xXXX",
- 1
- },
-#endif
- /* Test 6 */
- {
- TEST_INPUT("\x07"),
- "0x00ECD5F138422B8AD74C9799FD826C531BAD2FCABC7450"
- "BEE2AA8C2A",
- 1
- },
-#if 0
- /* Test 7 -- unimplemented optional functionality */
- {
- TEST_INPUT(""),
- "0xXXX",
- 1
- },
-#endif
- /* Test 8 */
- {
- TEST_INPUT("\x18\x80\x40\x05\xdd\x4f\xbd\x15\x56\x29"
- "\x9d\x6f\x9d\x93\xdf\x62"),
- "0xDF90D78AA78821C99B40BA4C966921ACCD8FFB1E98AC38"
- "8E56191DB1",
- 1
- },
-#if 0
- /* Test 9 */
- {
- TEST_INPUT(""),
- "0xXXX",
- 1
- },
-#endif
- /* Test 10 */
- {
- TEST_INPUT("\x55\xb2\x10\x07\x9c\x61\xb5\x3a\xdd\x52"
- "\x06\x22\xd1\xac\x97\xd5\xcd\xbe\x8c\xb3"
- "\x3a\xa0\xae\x34\x45\x17\xbe\xe4\xd7\xba"
- "\x09\xab\xc8\x53\x3c\x52\x50\x88\x7a\x43"
- "\xbe\xbb\xac\x90\x6c\x2e\x18\x37\xf2\x6b"
- "\x36\xa5\x9a\xe3\xbe\x78\x14\xd5\x06\x89"
- "\x6b\x71\x8b\x2a\x38\x3e\xcd\xac\x16\xb9"
- "\x61\x25\x55\x3f\x41\x6f\xf3\x2c\x66\x74"
- "\xc7\x45\x99\xa9\x00\x53\x86\xd9\xce\x11"
- "\x12\x24\x5f\x48\xee\x47\x0d\x39\x6c\x1e"
- "\xd6\x3b\x92\x67\x0c\xa5\x6e\xc8\x4d\xee"
- "\xa8\x14\xb6\x13\x5e\xca\x54\x39\x2b\xde"
- "\xdb\x94\x89\xbc\x9b\x87\x5a\x8b\xaf\x0d"
- "\xc1\xae\x78\x57\x36\x91\x4a\xb7\xda\xa2"
- "\x64\xbc\x07\x9d\x26\x9f\x2c\x0d\x7e\xdd"
- "\xd8\x10\xa4\x26\x14\x5a\x07\x76\xf6\x7c"
- "\x87\x82\x73"),
- "0x0B31894EC8937AD9B91BDFBCBA294D9ADEFAA18E09305E"
- "9F20D5C3A4",
- 1
- },
- { NULL, 0, NULL, 1 }
- };
-
- hash_testcase_t *testcase = testcases;
-
- while (testcase->input != NULL && testcase->result != NULL) {
- isc_sha224_init(&sha224);
- for(i = 0; i < testcase->repeats; i++) {
- isc_sha224_update(&sha224,
- (const isc_uint8_t *) testcase->input,
- testcase->input_len);
- }
- isc_sha224_final(digest, &sha224);
- /*
- *API inconsistency BUG HERE
- * in order to be consistant with the other isc_hash_final
- * functions the call should be
- * isc_sha224_final(&sha224, digest);
- */
- tohexstr(digest, ISC_SHA224_DIGESTLENGTH, str);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- }
-}
-
-ATF_TC(isc_sha256);
-ATF_TC_HEAD(isc_sha256, tc) {
- atf_tc_set_md_var(tc, "descr", "sha224 examples from RFC4634");
-}
-ATF_TC_BODY(isc_sha256, tc) {
- isc_sha256_t sha256;
- int i;
-
- UNUSED(tc);
-
- /*
- * These are the various test vectors. All of these are passed
- * through the hash function and the results are compared to the
- * result specified here.
- */
- hash_testcase_t testcases[] = {
- /* Test 1 */
- {
- TEST_INPUT("abc"),
- "0xBA7816BF8F01CFEA414140DE5DAE2223B00361A396177A"
- "9CB410FF61F20015AD",
- 1
- },
- /* Test 2 */
- {
- TEST_INPUT("abcdbcdecdefdefgefghfghighijhijkijkljk"
- "lmklmnlmnomnopnopq"),
- "0x248D6A61D20638B8E5C026930C3E6039A33CE45964FF21"
- "67F6ECEDD419DB06C1",
- 1
- },
- /* Test 3 */
- {
- TEST_INPUT("a"),
- "0xCDC76E5C9914FB9281A1C7E284D73E67F1809A48A49720"
- "0E046D39CCC7112CD0",
- 1000000 },
- /* Test 4 */
- {
- TEST_INPUT("01234567012345670123456701234567"),
- "0x594847328451BDFA85056225462CC1D867D877FB388DF0"
- "CE35F25AB5562BFBB5",
- 20
- },
-#if 0
- /* Test 5 -- unimplemented optional functionality */
- {
- TEST_INPUT(""),
- "0xXXX",
- 1
- },
-#endif
- /* Test 6 */
- {
- TEST_INPUT("\x19"),
- "0x68AA2E2EE5DFF96E3355E6C7EE373E3D6A4E17F75F9518"
- "D843709C0C9BC3E3D4",
- 1
- },
-#if 0
- /* Test 7 -- unimplemented optional functionality */
- {
- TEST_INPUT(""),
- "0xXXX",
- 1
- },
-#endif
- /* Test 8 */
- {
- TEST_INPUT("\xe3\xd7\x25\x70\xdc\xdd\x78\x7c\xe3"
- "\x88\x7a\xb2\xcd\x68\x46\x52"),
- "0x175EE69B02BA9B58E2B0A5FD13819CEA573F3940A94F82"
- "5128CF4209BEABB4E8",
- 1
- },
-#if 0
- /* Test 9 -- unimplemented optional functionality */
- {
- TEST_INPUT(""),
- "0xXXX",
- 1
- },
-#endif
- /* Test 10 */
- {
- TEST_INPUT("\x83\x26\x75\x4e\x22\x77\x37\x2f\x4f\xc1"
- "\x2b\x20\x52\x7a\xfe\xf0\x4d\x8a\x05\x69"
- "\x71\xb1\x1a\xd5\x71\x23\xa7\xc1\x37\x76"
- "\x00\x00\xd7\xbe\xf6\xf3\xc1\xf7\xa9\x08"
- "\x3a\xa3\x9d\x81\x0d\xb3\x10\x77\x7d\xab"
- "\x8b\x1e\x7f\x02\xb8\x4a\x26\xc7\x73\x32"
- "\x5f\x8b\x23\x74\xde\x7a\x4b\x5a\x58\xcb"
- "\x5c\x5c\xf3\x5b\xce\xe6\xfb\x94\x6e\x5b"
- "\xd6\x94\xfa\x59\x3a\x8b\xeb\x3f\x9d\x65"
- "\x92\xec\xed\xaa\x66\xca\x82\xa2\x9d\x0c"
- "\x51\xbc\xf9\x33\x62\x30\xe5\xd7\x84\xe4"
- "\xc0\xa4\x3f\x8d\x79\xa3\x0a\x16\x5c\xba"
- "\xbe\x45\x2b\x77\x4b\x9c\x71\x09\xa9\x7d"
- "\x13\x8f\x12\x92\x28\x96\x6f\x6c\x0a\xdc"
- "\x10\x6a\xad\x5a\x9f\xdd\x30\x82\x57\x69"
- "\xb2\xc6\x71\xaf\x67\x59\xdf\x28\xeb\x39"
- "\x3d\x54\xd6"),
- "0x97DBCA7DF46D62C8A422C941DD7E835B8AD3361763F7E9"
- "B2D95F4F0DA6E1CCBC",
- 1
- },
- { NULL, 0, NULL, 1 }
- };
-
- hash_testcase_t *testcase = testcases;
-
- while (testcase->input != NULL && testcase->result != NULL) {
- isc_sha256_init(&sha256);
- for(i = 0; i < testcase->repeats; i++) {
- isc_sha256_update(&sha256,
- (const isc_uint8_t *) testcase->input,
- testcase->input_len);
- }
- isc_sha256_final(digest, &sha256);
- /*
- *API inconsistency BUG HERE
- * in order to be consistant with the other isc_hash_final
- * functions the call should be
- * isc_sha224_final(&sha224, digest);
- */
- tohexstr(digest, ISC_SHA256_DIGESTLENGTH, str);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- }
-}
-
-ATF_TC(isc_sha384);
-ATF_TC_HEAD(isc_sha384, tc) {
- atf_tc_set_md_var(tc, "descr", "sha224 examples from RFC4634");
-}
-ATF_TC_BODY(isc_sha384, tc) {
- isc_sha384_t sha384;
- int i;
-
- UNUSED(tc);
-
- /*
- * These are the various test vectors. All of these are passed
- * through the hash function and the results are compared to the
- * result specified here.
- */
- hash_testcase_t testcases[] = {
- /* Test 1 */
- {
- TEST_INPUT("abc"),
- "0xCB00753F45A35E8BB5A03D699AC65007272C32AB0EDED1"
- "631A8B605A43FF5BED8086072BA1E7CC2358BAEC"
- "A134C825A7",
- 1
- },
- /* Test 2 */
- {
- TEST_INPUT("abcdefghbcdefghicdefghijdefghijkefghijkl"
- "fghijklmghijklmnhijklmnoijklmnopjklmnopq"
- "klmnopqrlmnopqrsmnopqrstnopqrstu"),
- "0x09330C33F71147E83D192FC782CD1B4753111B173B3B05"
- "D22FA08086E3B0F712FCC7C71A557E2DB966C3E9"
- "FA91746039",
- 1
- },
- /* Test 3 */
- {
- TEST_INPUT("a"),
- "0x9D0E1809716474CB086E834E310A4A1CED149E9C00F248"
- "527972CEC5704C2A5B07B8B3DC38ECC4EBAE97DD"
- "D87F3D8985",
- 1000000
- },
- /* Test 4 */
- {
- TEST_INPUT("01234567012345670123456701234567"),
- "0x2FC64A4F500DDB6828F6A3430B8DD72A368EB7F3A8322A"
- "70BC84275B9C0B3AB00D27A5CC3C2D224AA6B61A"
- "0D79FB4596",
- 20
- },
-#if 0
- /* Test 5 -- unimplemented optional functionality */
- {
- TEST_INPUT(""),
- "0xXXX",
- 1
- },
-#endif
- /* Test 6 */
- { TEST_INPUT("\xb9"),
- "0xBC8089A19007C0B14195F4ECC74094FEC64F01F9092928"
- "2C2FB392881578208AD466828B1C6C283D2722CF"
- "0AD1AB6938",
- 1
- },
-#if 0
- /* Test 7 -- unimplemented optional functionality */
- {
- TEST_INPUT(""),
- "0xXXX",
- 1
- },
-#endif
- /* Test 8 */
- {
- TEST_INPUT("\xa4\x1c\x49\x77\x79\xc0\x37\x5f\xf1"
- "\x0a\x7f\x4e\x08\x59\x17\x39"),
- "0xC9A68443A005812256B8EC76B00516F0DBB74FAB26D665"
- "913F194B6FFB0E91EA9967566B58109CBC675CC2"
- "08E4C823F7",
- 1
- },
-#if 0
- /* Test 9 -- unimplemented optional functionality */
- {
- TEST_INPUT(""),
- "0xXXX",
- 1
- },
-#endif
- /* Test 10 */
- {
- TEST_INPUT("\x39\x96\x69\xe2\x8f\x6b\x9c\x6d\xbc\xbb"
- "\x69\x12\xec\x10\xff\xcf\x74\x79\x03\x49"
- "\xb7\xdc\x8f\xbe\x4a\x8e\x7b\x3b\x56\x21"
- "\xdb\x0f\x3e\x7d\xc8\x7f\x82\x32\x64\xbb"
- "\xe4\x0d\x18\x11\xc9\xea\x20\x61\xe1\xc8"
- "\x4a\xd1\x0a\x23\xfa\xc1\x72\x7e\x72\x02"
- "\xfc\x3f\x50\x42\xe6\xbf\x58\xcb\xa8\xa2"
- "\x74\x6e\x1f\x64\xf9\xb9\xea\x35\x2c\x71"
- "\x15\x07\x05\x3c\xf4\xe5\x33\x9d\x52\x86"
- "\x5f\x25\xcc\x22\xb5\xe8\x77\x84\xa1\x2f"
- "\xc9\x61\xd6\x6c\xb6\xe8\x95\x73\x19\x9a"
- "\x2c\xe6\x56\x5c\xbd\xf1\x3d\xca\x40\x38"
- "\x32\xcf\xcb\x0e\x8b\x72\x11\xe8\x3a\xf3"
- "\x2a\x11\xac\x17\x92\x9f\xf1\xc0\x73\xa5"
- "\x1c\xc0\x27\xaa\xed\xef\xf8\x5a\xad\x7c"
- "\x2b\x7c\x5a\x80\x3e\x24\x04\xd9\x6d\x2a"
- "\x77\x35\x7b\xda\x1a\x6d\xae\xed\x17\x15"
- "\x1c\xb9\xbc\x51\x25\xa4\x22\xe9\x41\xde"
- "\x0c\xa0\xfc\x50\x11\xc2\x3e\xcf\xfe\xfd"
- "\xd0\x96\x76\x71\x1c\xf3\xdb\x0a\x34\x40"
- "\x72\x0e\x16\x15\xc1\xf2\x2f\xbc\x3c\x72"
- "\x1d\xe5\x21\xe1\xb9\x9b\xa1\xbd\x55\x77"
- "\x40\x86\x42\x14\x7e\xd0\x96"),
- "0x4F440DB1E6EDD2899FA335F09515AA025EE177A79F4B4A"
- "AF38E42B5C4DE660F5DE8FB2A5B2FBD2A3CBFFD2"
- "0CFF1288C0",
- 1
- },
- { NULL, 0, NULL, 1 }
- };
-
- hash_testcase_t *testcase = testcases;
-
- while (testcase->input != NULL && testcase->result != NULL) {
- isc_sha384_init(&sha384);
- for(i = 0; i < testcase->repeats; i++) {
- isc_sha384_update(&sha384,
- (const isc_uint8_t *) testcase->input,
- testcase->input_len);
- }
- isc_sha384_final(digest, &sha384);
- /*
- *API inconsistency BUG HERE
- * in order to be consistant with the other isc_hash_final
- * functions the call should be
- * isc_sha224_final(&sha224, digest);
- */
- tohexstr(digest, ISC_SHA384_DIGESTLENGTH, str);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- }
-}
-
-ATF_TC(isc_sha512);
-ATF_TC_HEAD(isc_sha512, tc) {
- atf_tc_set_md_var(tc, "descr", "sha224 examples from RFC4634");
-}
-ATF_TC_BODY(isc_sha512, tc) {
- isc_sha512_t sha512;
- int i;
-
- UNUSED(tc);
-
- /*
- * These are the various test vectors. All of these are passed
- * through the hash function and the results are compared to the
- * result specified here.
- */
- hash_testcase_t testcases[] = {
- /* Test 1 */
- {
- TEST_INPUT("abc"),
- "0xDDAF35A193617ABACC417349AE20413112E6FA4E89A97E"
- "A20A9EEEE64B55D39A2192992A274FC1A836BA3C"
- "23A3FEEBBD454D4423643CE80E2A9AC94FA54CA49F",
- 1
- },
- /* Test 2 */
- {
- TEST_INPUT("abcdefghbcdefghicdefghijdefghijkefghijkl"
- "fghijklmghijklmnhijklmnoijklmnopjklmnopq"
- "klmnopqrlmnopqrsmnopqrstnopqrstu"),
- "0x8E959B75DAE313DA8CF4F72814FC143F8F7779C6EB9F7F"
- "A17299AEADB6889018501D289E4900F7E4331B99"
- "DEC4B5433AC7D329EEB6DD26545E96E55B874BE909",
- 1
- },
- /* Test 3 */
- {
- TEST_INPUT("a"),
- "0xE718483D0CE769644E2E42C7BC15B4638E1F98B13B2044"
- "285632A803AFA973EBDE0FF244877EA60A4CB043"
- "2CE577C31BEB009C5C2C49AA2E4EADB217AD8CC09B",
- 1000000
- },
- /* Test 4 */
- {
- TEST_INPUT("01234567012345670123456701234567"),
- "0x89D05BA632C699C31231DED4FFC127D5A894DAD412C0E0"
- "24DB872D1ABD2BA8141A0F85072A9BE1E2AA04CF"
- "33C765CB510813A39CD5A84C4ACAA64D3F3FB7BAE9",
- 20
- },
-#if 0
- /* Test 5 -- unimplemented optional functionality */
- {
- TEST_INPUT(""),
- "0xXXX",
- 1
- },
-#endif
- /* Test 6 */
- {
- TEST_INPUT("\xD0"),
- "0x9992202938E882E73E20F6B69E68A0A7149090423D93C8"
- "1BAB3F21678D4ACEEEE50E4E8CAFADA4C85A54EA"
- "8306826C4AD6E74CECE9631BFA8A549B4AB3FBBA15",
- 1
- },
-#if 0
- /* Test 7 -- unimplemented optional functionality */
- {
- TEST_INPUT(""),
- "0xXXX",
- 1
- },
-#endif
- /* Test 8 */
- {
- TEST_INPUT("\x8d\x4e\x3c\x0e\x38\x89\x19\x14\x91\x81"
- "\x6e\x9d\x98\xbf\xf0\xa0"),
- "0xCB0B67A4B8712CD73C9AABC0B199E9269B20844AFB75AC"
- "BDD1C153C9828924C3DDEDAAFE669C5FDD0BC66F"
- "630F6773988213EB1B16F517AD0DE4B2F0C95C90F8",
- 1
- },
-#if 0
- /* Test 9 -- unimplemented optional functionality */
- {
- TEST_INPUT(""),
- "0xXXX",
- 1
- },
-#endif
- /* Test 10 */
- {
- TEST_INPUT("\xa5\x5f\x20\xc4\x11\xaa\xd1\x32\x80\x7a"
- "\x50\x2d\x65\x82\x4e\x31\xa2\x30\x54\x32"
- "\xaa\x3d\x06\xd3\xe2\x82\xa8\xd8\x4e\x0d"
- "\xe1\xde\x69\x74\xbf\x49\x54\x69\xfc\x7f"
- "\x33\x8f\x80\x54\xd5\x8c\x26\xc4\x93\x60"
- "\xc3\xe8\x7a\xf5\x65\x23\xac\xf6\xd8\x9d"
- "\x03\xe5\x6f\xf2\xf8\x68\x00\x2b\xc3\xe4"
- "\x31\xed\xc4\x4d\xf2\xf0\x22\x3d\x4b\xb3"
- "\xb2\x43\x58\x6e\x1a\x7d\x92\x49\x36\x69"
- "\x4f\xcb\xba\xf8\x8d\x95\x19\xe4\xeb\x50"
- "\xa6\x44\xf8\xe4\xf9\x5e\xb0\xea\x95\xbc"
- "\x44\x65\xc8\x82\x1a\xac\xd2\xfe\x15\xab"
- "\x49\x81\x16\x4b\xbb\x6d\xc3\x2f\x96\x90"
- "\x87\xa1\x45\xb0\xd9\xcc\x9c\x67\xc2\x2b"
- "\x76\x32\x99\x41\x9c\xc4\x12\x8b\xe9\xa0"
- "\x77\xb3\xac\xe6\x34\x06\x4e\x6d\x99\x28"
- "\x35\x13\xdc\x06\xe7\x51\x5d\x0d\x73\x13"
- "\x2e\x9a\x0d\xc6\xd3\xb1\xf8\xb2\x46\xf1"
- "\xa9\x8a\x3f\xc7\x29\x41\xb1\xe3\xbb\x20"
- "\x98\xe8\xbf\x16\xf2\x68\xd6\x4f\x0b\x0f"
- "\x47\x07\xfe\x1e\xa1\xa1\x79\x1b\xa2\xf3"
- "\xc0\xc7\x58\xe5\xf5\x51\x86\x3a\x96\xc9"
- "\x49\xad\x47\xd7\xfb\x40\xd2"),
- "0xC665BEFB36DA189D78822D10528CBF3B12B3EEF7260399"
- "09C1A16A270D48719377966B957A878E72058477"
- "9A62825C18DA26415E49A7176A894E7510FD1451F5",
- 1
- },
- { NULL, 0, NULL, 1 }
- };
-
- hash_testcase_t *testcase = testcases;
-
- while (testcase->input != NULL && testcase->result != NULL) {
- isc_sha512_init(&sha512);
- for(i = 0; i < testcase->repeats; i++) {
- isc_sha512_update(&sha512,
- (const isc_uint8_t *) testcase->input,
- testcase->input_len);
- }
- isc_sha512_final(digest, &sha512);
- /*
- *API inconsistency BUG HERE
- * in order to be consistant with the other isc_hash_final
- * functions the call should be
- * isc_sha224_final(&sha224, digest);
- */
- tohexstr(digest, ISC_SHA512_DIGESTLENGTH, str);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- }
-}
-
-#ifndef PK11_MD5_DISABLE
-ATF_TC(isc_md5);
-ATF_TC_HEAD(isc_md5, tc) {
- atf_tc_set_md_var(tc, "descr", "md5 example from RFC1321");
-}
-ATF_TC_BODY(isc_md5, tc) {
- isc_md5_t md5;
- int i;
-
- UNUSED(tc);
-
- /*
- * These are the various test vectors. All of these are passed
- * through the hash function and the results are compared to the
- * result specified here.
- */
- hash_testcase_t testcases[] = {
- {
- TEST_INPUT(""),
- "0xD41D8CD98F00B204E9800998ECF8427E",
- 1
- },
- {
- TEST_INPUT("a"),
- "0x0CC175B9C0F1B6A831C399E269772661",
- 1
- },
- {
- TEST_INPUT("abc"),
- "0x900150983CD24FB0D6963F7D28E17F72",
- 1
- },
- {
- TEST_INPUT("message digest"),
- "0xF96B697D7CB7938D525A2F31AAF161D0",
- 1
- },
- {
- TEST_INPUT("abcdefghijklmnopqrstuvwxyz"),
- "0xC3FCD3D76192E4007DFB496CCA67E13B",
- 1
- },
- {
- TEST_INPUT("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklm"
- "nopqrstuvwxyz0123456789"),
- "0xD174AB98D277D9F5A5611C2C9F419D9F",
- 1
- },
- {
- TEST_INPUT("123456789012345678901234567890123456789"
- "01234567890123456789012345678901234567890"),
- "0x57EDF4A22BE3C955AC49DA2E2107B67A",
- 1
- },
- { NULL, 0, NULL, 1 }
- };
-
- hash_testcase_t *testcase = testcases;
-
- while (testcase->input != NULL && testcase->result != NULL) {
- isc_md5_init(&md5);
- for(i = 0; i < testcase->repeats; i++) {
- isc_md5_update(&md5,
- (const isc_uint8_t *) testcase->input,
- testcase->input_len);
- }
- isc_md5_final(&md5, digest);
- tohexstr(digest, ISC_MD5_DIGESTLENGTH, str);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- }
-}
-#endif
-
-/* HMAC-SHA1 test */
-ATF_TC(isc_hmacsha1);
-ATF_TC_HEAD(isc_hmacsha1, tc) {
- atf_tc_set_md_var(tc, "descr", "HMAC-SHA1 examples from RFC2104");
-}
-ATF_TC_BODY(isc_hmacsha1, tc) {
- isc_hmacsha1_t hmacsha1;
-
- UNUSED(tc);
- /*
- * These are the various test vectors. All of these are passed
- * through the hash function and the results are compared to the
- * result specified here.
- */
- hash_testcase_t testcases[] = {
- /* Test 1 */
- {
- TEST_INPUT("\x48\x69\x20\x54\x68\x65\x72\x65"),
- "0xB617318655057264E28BC0B6FB378C8EF146BE00",
- 1
- },
- /* Test 2 */
- {
- TEST_INPUT("\x77\x68\x61\x74\x20\x64\x6f\x20\x79\x61"
- "\x20\x77\x61\x6e\x74\x20\x66\x6f\x72\x20"
- "\x6e\x6f\x74\x68\x69\x6e\x67\x3f"),
- "0xEFFCDF6AE5EB2FA2D27416D5F184DF9C259A7C79",
- 1
- },
- /* Test 3 */
- {
- TEST_INPUT("\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"),
- "0x125D7342B9AC11CD91A39AF48AA17B4F63F175D3",
- 1
- },
- /* Test 4 */
- {
- TEST_INPUT("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"),
- "0x4C9007F4026250C6BC8414F9BF50C86C2D7235DA",
- 1
- },
-#if 0
- /* Test 5 -- unimplemented optional functionality */
- {
- TEST_INPUT("Test With Truncation"),
- "0x4C1A03424B55E07FE7F27BE1",
- 1
- },
-#endif
- /* Test 6 */
- {
- TEST_INPUT("Test Using Larger Than Block-Size Key - "
- "Hash Key First"),
- "0xAA4AE5E15272D00E95705637CE8A3B55ED402112", 1 },
- /* Test 7 */
- {
- TEST_INPUT("Test Using Larger Than Block-Size Key and "
- "Larger Than One Block-Size Data"),
- "0xE8E99D0F45237D786D6BBAA7965C7808BBFF1A91",
- 1
- },
- { NULL, 0, NULL, 1 }
- };
-
- hash_testcase_t *testcase = testcases;
-
- hash_test_key_t test_keys[] = {
- /* Key 1 */
- { "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
- "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", 20 },
- /* Key 2 */
- { "Jefe", 4 },
- /* Key 3 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 20 },
- /* Key 4 */
- { "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a"
- "\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14"
- "\x15\x16\x17\x18\x19", 25 },
-#if 0
- /* Key 5 */
- { "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
- "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", 20 },
-#endif
- /* Key 6 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 80 },
- /* Key 7 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 80 },
- { "", 0 }
- };
-
- hash_test_key_t *test_key = test_keys;
-
- while (testcase->input != NULL && testcase->result != NULL) {
- memmove(buffer, test_key->key, test_key->len);
- isc_hmacsha1_init(&hmacsha1, buffer, test_key->len);
- isc_hmacsha1_update(&hmacsha1,
- (const isc_uint8_t *) testcase->input,
- testcase->input_len);
- isc_hmacsha1_sign(&hmacsha1, digest, ISC_SHA1_DIGESTLENGTH);
- tohexstr(digest, ISC_SHA1_DIGESTLENGTH, str);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- test_key++;
- }
-}
-
-/* HMAC-SHA224 test */
-ATF_TC(isc_hmacsha224);
-ATF_TC_HEAD(isc_hmacsha224, tc) {
- atf_tc_set_md_var(tc, "descr", "HMAC-SHA224 examples from RFC4634");
-}
-ATF_TC_BODY(isc_hmacsha224, tc) {
- isc_hmacsha224_t hmacsha224;
-
- UNUSED(tc);
-
- /*
- * These are the various test vectors. All of these are passed
- * through the hash function and the results are compared to the
- * result specified here.
- */
- hash_testcase_t testcases[] = {
- /* Test 1 */
- {
- TEST_INPUT("\x48\x69\x20\x54\x68\x65\x72\x65"),
- "0x896FB1128ABBDF196832107CD49DF33F47B4B1169912BA"
- "4F53684B22",
- 1
- },
- /* Test 2 */
- {
- TEST_INPUT("\x77\x68\x61\x74\x20\x64\x6f\x20\x79\x61"
- "\x20\x77\x61\x6e\x74\x20\x66\x6f\x72\x20"
- "\x6e\x6f\x74\x68\x69\x6e\x67\x3f"),
- "0xA30E01098BC6DBBF45690F3A7E9E6D0F8BBEA2A39E61480"
- "08FD05E44",
- 1
- },
- /* Test 3 */
- {
- TEST_INPUT("\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"),
- "0x7FB3CB3588C6C1F6FFA9694D7D6AD2649365B0C1F65D69"
- "D1EC8333EA",
- 1
- },
- /* Test 4 */
- {
- TEST_INPUT("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"),
- "0x6C11506874013CAC6A2ABC1BB382627CEC6A90D86EFC01"
- "2DE7AFEC5A",
- 1
- },
-#if 0
- /* Test 5 -- unimplemented optional functionality */
- {
- TEST_INPUT("Test With Truncation"),
- "0x4C1A03424B55E07FE7F27BE1",
- 1
- },
-#endif
- /* Test 6 */
- {
- TEST_INPUT("Test Using Larger Than Block-Size Key - "
- "Hash Key First"),
- "0x95E9A0DB962095ADAEBE9B2D6F0DBCE2D499F112F2D2B7"
- "273FA6870E",
- 1
- },
- /* Test 7 */
- {
- TEST_INPUT("\x54\x68\x69\x73\x20\x69\x73\x20\x61\x20"
- "\x74\x65\x73\x74\x20\x75\x73\x69\x6e\x67"
- "\x20\x61\x20\x6c\x61\x72\x67\x65\x72\x20"
- "\x74\x68\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
- "\x2d\x73\x69\x7a\x65\x20\x6b\x65\x79\x20"
- "\x61\x6e\x64\x20\x61\x20\x6c\x61\x72\x67"
- "\x65\x72\x20\x74\x68\x61\x6e\x20\x62\x6c"
- "\x6f\x63\x6b\x2d\x73\x69\x7a\x65\x20\x64"
- "\x61\x74\x61\x2e\x20\x54\x68\x65\x20\x6b"
- "\x65\x79\x20\x6e\x65\x65\x64\x73\x20\x74"
- "\x6f\x20\x62\x65\x20\x68\x61\x73\x68\x65"
- "\x64\x20\x62\x65\x66\x6f\x72\x65\x20\x62"
- "\x65\x69\x6e\x67\x20\x75\x73\x65\x64\x20"
- "\x62\x79\x20\x74\x68\x65\x20\x48\x4d\x41"
- "\x43\x20\x61\x6c\x67\x6f\x72\x69\x74\x68"
- "\x6d\x2e"),
- "0x3A854166AC5D9F023F54D517D0B39DBD946770DB9C2B95"
- "C9F6F565D1",
- 1
- },
- { NULL, 0, NULL, 1 }
- };
-
- hash_testcase_t *testcase = testcases;
-
- hash_test_key_t test_keys[] = {
- /* Key 1 */
- { "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
- "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", 20 },
- /* Key 2 */
- { "Jefe", 4 },
- /* Key 3 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 20 },
- /* Key 4 */
- { "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a"
- "\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14"
- "\x15\x16\x17\x18\x19", 25 },
-#if 0
- /* Key 5 */
- { "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
- "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", 20 },
-#endif
- /* Key 6 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 131 },
- /* Key 7 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 131 },
- { "", 0 }
- };
-
- hash_test_key_t *test_key = test_keys;
-
- while (testcase->input != NULL && testcase->result != NULL) {
- memmove(buffer, test_key->key, test_key->len);
- isc_hmacsha224_init(&hmacsha224, buffer, test_key->len);
- isc_hmacsha224_update(&hmacsha224,
- (const isc_uint8_t *) testcase->input,
- testcase->input_len);
- isc_hmacsha224_sign(&hmacsha224, digest, ISC_SHA224_DIGESTLENGTH);
- tohexstr(digest, ISC_SHA224_DIGESTLENGTH, str);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- test_key++;
- }
-}
-
-/* HMAC-SHA256 test */
-ATF_TC(isc_hmacsha256);
-ATF_TC_HEAD(isc_hmacsha256, tc) {
- atf_tc_set_md_var(tc, "descr", "HMAC-SHA256 examples from RFC4634");
-}
-ATF_TC_BODY(isc_hmacsha256, tc) {
- isc_hmacsha256_t hmacsha256;
-
- UNUSED(tc);
-
- /*
- * These are the various test vectors. All of these are passed
- * through the hash function and the results are compared to the
- * result specified here.
- */
- hash_testcase_t testcases[] = {
- /* Test 1 */
- {
- TEST_INPUT("\x48\x69\x20\x54\x68\x65\x72\x65"),
- "0xB0344C61D8DB38535CA8AFCEAF0BF12B881DC200C9833D"
- "A726E9376C2E32CFF7",
- 1
- },
- /* Test 2 */
- {
- TEST_INPUT("\x77\x68\x61\x74\x20\x64\x6f\x20\x79\x61"
- "\x20\x77\x61\x6e\x74\x20\x66\x6f\x72\x20"
- "\x6e\x6f\x74\x68\x69\x6e\x67\x3f"),
- "0x5BDCC146BF60754E6A042426089575C75A003F089D2739"
- "839DEC58B964EC3843",
- 1
- },
- /* Test 3 */
- {
- TEST_INPUT("\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"),
- "0x773EA91E36800E46854DB8EBD09181A72959098B3EF8C1"
- "22D9635514CED565FE",
- 1
- },
- /* Test 4 */
- {
- TEST_INPUT("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"),
- "0x82558A389A443C0EA4CC819899F2083A85F0FAA3E578F8"
- "077A2E3FF46729665B",
- 1
- },
-#if 0
- /* Test 5 -- unimplemented optional functionality */
- {
- TEST_INPUT("Test With Truncation"),
- "0x4C1A03424B55E07FE7F27BE1",
- 1
- },
-#endif
- /* Test 6 */
- {
- TEST_INPUT("Test Using Larger Than Block-Size Key - "
- "Hash Key First"),
- "0x60E431591EE0B67F0D8A26AACBF5B77F8E0BC6213728C5"
- "140546040F0EE37F54",
- 1
- },
- /* Test 7 */
- {
- TEST_INPUT("\x54\x68\x69\x73\x20\x69\x73\x20\x61\x20"
- "\x74\x65\x73\x74\x20\x75\x73\x69\x6e\x67"
- "\x20\x61\x20\x6c\x61\x72\x67\x65\x72\x20"
- "\x74\x68\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
- "\x2d\x73\x69\x7a\x65\x20\x6b\x65\x79\x20"
- "\x61\x6e\x64\x20\x61\x20\x6c\x61\x72\x67"
- "\x65\x72\x20\x74\x68\x61\x6e\x20\x62\x6c"
- "\x6f\x63\x6b\x2d\x73\x69\x7a\x65\x20\x64"
- "\x61\x74\x61\x2e\x20\x54\x68\x65\x20\x6b"
- "\x65\x79\x20\x6e\x65\x65\x64\x73\x20\x74"
- "\x6f\x20\x62\x65\x20\x68\x61\x73\x68\x65"
- "\x64\x20\x62\x65\x66\x6f\x72\x65\x20\x62"
- "\x65\x69\x6e\x67\x20\x75\x73\x65\x64\x20"
- "\x62\x79\x20\x74\x68\x65\x20\x48\x4d\x41"
- "\x43\x20\x61\x6c\x67\x6f\x72\x69\x74\x68"
- "\x6d\x2e"),
- "0x9B09FFA71B942FCB27635FBCD5B0E944BFDC63644F0713"
- "938A7F51535C3A35E2",
- 1
- },
- { NULL, 0, NULL, 1 }
- };
-
- hash_testcase_t *testcase = testcases;
-
- hash_test_key_t test_keys[] = {
- /* Key 1 */
- { "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
- "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", 20 },
- /* Key 2 */
- { "Jefe", 4 },
- /* Key 3 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 20 },
- /* Key 4 */
- { "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a"
- "\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14"
- "\x15\x16\x17\x18\x19", 25 },
-#if 0
- /* Key 5 */
- { "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
- "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", 20 },
-#endif
- /* Key 6 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 131 },
- /* Key 7 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 131 },
- { "", 0 }
- };
-
- hash_test_key_t *test_key = test_keys;
-
- while (testcase->input != NULL && testcase->result != NULL) {
- memmove(buffer, test_key->key, test_key->len);
- isc_hmacsha256_init(&hmacsha256, buffer, test_key->len);
- isc_hmacsha256_update(&hmacsha256,
- (const isc_uint8_t *) testcase->input,
- testcase->input_len);
- isc_hmacsha256_sign(&hmacsha256, digest, ISC_SHA256_DIGESTLENGTH);
- tohexstr(digest, ISC_SHA256_DIGESTLENGTH, str);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- test_key++;
- }
-}
-
-/* HMAC-SHA384 test */
-ATF_TC(isc_hmacsha384);
-ATF_TC_HEAD(isc_hmacsha384, tc) {
- atf_tc_set_md_var(tc, "descr", "HMAC-SHA384 examples from RFC4634");
-}
-ATF_TC_BODY(isc_hmacsha384, tc) {
- isc_hmacsha384_t hmacsha384;
-
- UNUSED(tc);
-
- /*
- * These are the various test vectors. All of these are passed
- * through the hash function and the results are compared to the
- * result specified here.
- */
- hash_testcase_t testcases[] = {
- /* Test 1 */
- {
- TEST_INPUT("\x48\x69\x20\x54\x68\x65\x72\x65"),
- "0xAFD03944D84895626B0825F4AB46907F15F9DADBE4101E"
- "C682AA034C7CEBC59CFAEA9EA9076EDE7F4AF152"
- "E8B2FA9CB6",
- 1
- },
- /* Test 2 */
- {
- TEST_INPUT("\x77\x68\x61\x74\x20\x64\x6f\x20\x79\x61"
- "\x20\x77\x61\x6e\x74\x20\x66\x6f\x72\x20"
- "\x6e\x6f\x74\x68\x69\x6e\x67\x3f"),
- "0xAF45D2E376484031617F78D2B58A6B1B9C7EF464F5A01B"
- "47E42EC3736322445E8E2240CA5E69E2C78B3239"
- "ECFAB21649",
- 1
- },
- /* Test 3 */
- {
- TEST_INPUT("\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"),
- "0x88062608D3E6AD8A0AA2ACE014C8A86F0AA635D947AC9F"
- "EBE83EF4E55966144B2A5AB39DC13814B94E3AB6"
- "E101A34F27",
- 1
- },
- /* Test 4 */
- {
- TEST_INPUT("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"),
- "0x3E8A69B7783C25851933AB6290AF6CA77A998148085000"
- "9CC5577C6E1F573B4E6801DD23C4A7D679CCF8A3"
- "86C674CFFB",
- 1
- },
-#if 0
- /* Test 5 -- unimplemented optional functionality */
- {
- TEST_INPUT("Test With Truncation"),
- "0x4C1A03424B55E07FE7F27BE1",
- 1
- },
-#endif
- /* Test 6 */
- {
- TEST_INPUT("Test Using Larger Than Block-Size Key - "
- "Hash Key First"),
- "0x4ECE084485813E9088D2C63A041BC5B44F9EF1012A2B58"
- "8F3CD11F05033AC4C60C2EF6AB4030FE8296248D"
- "F163F44952",
- 1
- },
- /* Test 7 */
- {
- TEST_INPUT("\x54\x68\x69\x73\x20\x69\x73\x20\x61\x20"
- "\x74\x65\x73\x74\x20\x75\x73\x69\x6e\x67"
- "\x20\x61\x20\x6c\x61\x72\x67\x65\x72\x20"
- "\x74\x68\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
- "\x2d\x73\x69\x7a\x65\x20\x6b\x65\x79\x20"
- "\x61\x6e\x64\x20\x61\x20\x6c\x61\x72\x67"
- "\x65\x72\x20\x74\x68\x61\x6e\x20\x62\x6c"
- "\x6f\x63\x6b\x2d\x73\x69\x7a\x65\x20\x64"
- "\x61\x74\x61\x2e\x20\x54\x68\x65\x20\x6b"
- "\x65\x79\x20\x6e\x65\x65\x64\x73\x20\x74"
- "\x6f\x20\x62\x65\x20\x68\x61\x73\x68\x65"
- "\x64\x20\x62\x65\x66\x6f\x72\x65\x20\x62"
- "\x65\x69\x6e\x67\x20\x75\x73\x65\x64\x20"
- "\x62\x79\x20\x74\x68\x65\x20\x48\x4d\x41"
- "\x43\x20\x61\x6c\x67\x6f\x72\x69\x74\x68"
- "\x6d\x2e"),
- "0x6617178E941F020D351E2F254E8FD32C602420FEB0B8FB"
- "9ADCCEBB82461E99C5A678CC31E799176D3860E6"
- "110C46523E",
- 1
- },
- { NULL, 0, NULL, 1 }
- };
-
- hash_testcase_t *testcase = testcases;
-
- hash_test_key_t test_keys[] = {
- /* Key 1 */
- { "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
- "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", 20 },
- /* Key 2 */
- { "Jefe", 4 },
- /* Key 3 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 20 },
- /* Key 4 */
- { "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a"
- "\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14"
- "\x15\x16\x17\x18\x19", 25 },
-#if 0
- /* Key 5 */
- { "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
- "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", 20 },
-#endif
- /* Key 6 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 131 },
- /* Key 7 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 131 },
- { "", 0 }
- };
-
- hash_test_key_t *test_key = test_keys;
-
- while (testcase->input != NULL && testcase->result != NULL) {
- memmove(buffer, test_key->key, test_key->len);
- isc_hmacsha384_init(&hmacsha384, buffer, test_key->len);
- isc_hmacsha384_update(&hmacsha384,
- (const isc_uint8_t *) testcase->input,
- testcase->input_len);
- isc_hmacsha384_sign(&hmacsha384, digest, ISC_SHA384_DIGESTLENGTH);
- tohexstr(digest, ISC_SHA384_DIGESTLENGTH, str);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- test_key++;
- }
-}
-
-/* HMAC-SHA512 test */
-ATF_TC(isc_hmacsha512);
-ATF_TC_HEAD(isc_hmacsha512, tc) {
- atf_tc_set_md_var(tc, "descr", "HMAC-SHA512 examples from RFC4634");
-}
-ATF_TC_BODY(isc_hmacsha512, tc) {
- isc_hmacsha512_t hmacsha512;
-
- UNUSED(tc);
-
- /*
- * These are the various test vectors. All of these are passed
- * through the hash function and the results are compared to the
- * result specified here.
- */
- hash_testcase_t testcases[] = {
- /* Test 1 */
- {
- TEST_INPUT("\x48\x69\x20\x54\x68\x65\x72\x65"),
- "0x87AA7CDEA5EF619D4FF0B4241A1D6CB02379F4E2CE4EC2"
- "787AD0B30545E17CDEDAA833B7D6B8A702038B27"
- "4EAEA3F4E4BE9D914EEB61F1702E696C203A126854",
- 1
- },
- /* Test 2 */
- {
- TEST_INPUT("\x77\x68\x61\x74\x20\x64\x6f\x20\x79\x61"
- "\x20\x77\x61\x6e\x74\x20\x66\x6f\x72\x20"
- "\x6e\x6f\x74\x68\x69\x6e\x67\x3f"),
- "0x164B7A7BFCF819E2E395FBE73B56E0A387BD64222E831F"
- "D610270CD7EA2505549758BF75C05A994A6D034F"
- "65F8F0E6FDCAEAB1A34D4A6B4B636E070A38BCE737",
- 1
- },
- /* Test 3 */
- {
- TEST_INPUT("\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"),
- "0xFA73B0089D56A284EFB0F0756C890BE9B1B5DBDD8EE81A"
- "3655F83E33B2279D39BF3E848279A722C806B485"
- "A47E67C807B946A337BEE8942674278859E13292FB",
- 1
- },
- /* Test 4 */
- {
- TEST_INPUT("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"),
- "0xB0BA465637458C6990E5A8C5F61D4AF7E576D97FF94B87"
- "2DE76F8050361EE3DBA91CA5C11AA25EB4D67927"
- "5CC5788063A5F19741120C4F2DE2ADEBEB10A298DD",
- 1
- },
-#if 0
- /* Test 5 -- unimplemented optional functionality */
- {
- TEST_INPUT("Test With Truncation"),
- "0x4C1A03424B55E07FE7F27BE1",
- 1
- },
-#endif
- /* Test 6 */
- {
- TEST_INPUT("Test Using Larger Than Block-Size Key - "
- "Hash Key First"),
- "0x80B24263C7C1A3EBB71493C1DD7BE8B49B46D1F41B4AEE"
- "C1121B013783F8F3526B56D037E05F2598BD0FD2"
- "215D6A1E5295E64F73F63F0AEC8B915A985D786598",
- 1
- },
- /* Test 7 */
- {
- TEST_INPUT("\x54\x68\x69\x73\x20\x69\x73\x20\x61\x20"
- "\x74\x65\x73\x74\x20\x75\x73\x69\x6e\x67"
- "\x20\x61\x20\x6c\x61\x72\x67\x65\x72\x20"
- "\x74\x68\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
- "\x2d\x73\x69\x7a\x65\x20\x6b\x65\x79\x20"
- "\x61\x6e\x64\x20\x61\x20\x6c\x61\x72\x67"
- "\x65\x72\x20\x74\x68\x61\x6e\x20\x62\x6c"
- "\x6f\x63\x6b\x2d\x73\x69\x7a\x65\x20\x64"
- "\x61\x74\x61\x2e\x20\x54\x68\x65\x20\x6b"
- "\x65\x79\x20\x6e\x65\x65\x64\x73\x20\x74"
- "\x6f\x20\x62\x65\x20\x68\x61\x73\x68\x65"
- "\x64\x20\x62\x65\x66\x6f\x72\x65\x20\x62"
- "\x65\x69\x6e\x67\x20\x75\x73\x65\x64\x20"
- "\x62\x79\x20\x74\x68\x65\x20\x48\x4d\x41"
- "\x43\x20\x61\x6c\x67\x6f\x72\x69\x74\x68"
- "\x6d\x2e"),
- "0xE37B6A775DC87DBAA4DFA9F96E5E3FFDDEBD71F8867289"
- "865DF5A32D20CDC944B6022CAC3C4982B10D5EEB"
- "55C3E4DE15134676FB6DE0446065C97440FA8C6A58",
- 1
- },
- { NULL, 0, NULL, 1 }
- };
-
- hash_testcase_t *testcase = testcases;
-
- hash_test_key_t test_keys[] = {
- /* Key 1 */
- { "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
- "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", 20 },
- /* Key 2 */
- { "Jefe", 4 },
- /* Key 3 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 20 },
- /* Key 4 */
- { "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a"
- "\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14"
- "\x15\x16\x17\x18\x19", 25 },
-#if 0
- /* Key 5 */
- { "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
- "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", 20 },
-#endif
- /* Key 6 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 131 },
- /* Key 7 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 131 },
- { "", 0 }
- };
-
- hash_test_key_t *test_key = test_keys;
-
- while (testcase->input != NULL && testcase->result != NULL) {
- memmove(buffer, test_key->key, test_key->len);
- isc_hmacsha512_init(&hmacsha512, buffer, test_key->len);
- isc_hmacsha512_update(&hmacsha512,
- (const isc_uint8_t *) testcase->input,
- testcase->input_len);
- isc_hmacsha512_sign(&hmacsha512, digest, ISC_SHA512_DIGESTLENGTH);
- tohexstr(digest, ISC_SHA512_DIGESTLENGTH, str);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- test_key++;
- }
-}
-
-
-#ifndef PK11_MD5_DISABLE
-/* HMAC-MD5 Test */
-ATF_TC(isc_hmacmd5);
-ATF_TC_HEAD(isc_hmacmd5, tc) {
- atf_tc_set_md_var(tc, "descr", "HMAC-MD5 examples from RFC2104");
-}
-ATF_TC_BODY(isc_hmacmd5, tc) {
- isc_hmacmd5_t hmacmd5;
-
- UNUSED(tc);
-
- /*
- * These are the various test vectors. All of these are passed
- * through the hash function and the results are compared to the
- * result specified here.
- */
- hash_testcase_t testcases[] = {
- /* Test 1 */
- {
- TEST_INPUT("\x48\x69\x20\x54\x68\x65\x72\x65"),
- "0x9294727A3638BB1C13F48EF8158BFC9D",
- 1
- },
- /* Test 2 */
- {
- TEST_INPUT("\x77\x68\x61\x74\x20\x64\x6f\x20\x79"
- "\x61\x20\x77\x61\x6e\x74\x20\x66\x6f"
- "\x72\x20\x6e\x6f\x74\x68\x69\x6e\x67\x3f"),
- "0x750C783E6AB0B503EAA86E310A5DB738", 1
- },
- /* Test 3 */
- {
- TEST_INPUT("\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"
- "\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD\xDD"),
- "0x56BE34521D144C88DBB8C733F0E8B3F6",
- 1
- },
- /* Test 4 */
- {
- TEST_INPUT("\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
- "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"),
- "0x697EAF0ACA3A3AEA3A75164746FFAA79",
- 1
- },
-#if 0
- /* Test 5 -- unimplemented optional functionality */
- {
- TEST_INPUT("Test With Truncation"),
- "0x4C1A03424B55E07FE7F27BE1",
- 1
- },
- /* Test 6 -- unimplemented optional functionality */
- {
- TEST_INPUT("Test Using Larger Than Block-Size Key - "
- "Hash Key First"),
- "0xAA4AE5E15272D00E95705637CE8A3B55ED402112",
- 1
- },
- /* Test 7 -- unimplemented optional functionality */
- {
- TEST_INPUT("Test Using Larger Than Block-Size Key and "
- "Larger Than One Block-Size Data"),
- "0xE8E99D0F45237D786D6BBAA7965C7808BBFF1A91",
- 1
- },
-#endif
- { NULL, 0, NULL, 1 }
- };
-
- hash_testcase_t *testcase = testcases;
-
- hash_test_key_t test_keys[] = {
- /* Key 1 */
- { "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
- "\x0b\x0b\x0b\x0b\x0b\x0b", 16 },
- /* Key 2 */
- { "Jefe", 4 },
- /* Key 3 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa", 16 },
- /* Key 4 */
- { "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a"
- "\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14"
- "\x15\x16\x17\x18\x19", 25 },
-#if 0
- /* Key 5 */
- { "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
- "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", 20 },
- /* Key 6 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 131 },
- /* Key 7 */
- { "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
- "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", 131 },
-#endif
- { "", 0 }
- };
-
- hash_test_key_t *test_key = test_keys;
-
- while (testcase->input != NULL && testcase->result != NULL) {
- memmove(buffer, test_key->key, test_key->len);
- isc_hmacmd5_init(&hmacmd5, buffer, test_key->len);
- isc_hmacmd5_update(&hmacmd5,
- (const isc_uint8_t *) testcase->input,
- testcase->input_len);
- isc_hmacmd5_sign(&hmacmd5, digest);
- tohexstr(digest, ISC_MD5_DIGESTLENGTH, str);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- test_key++;
- }
-}
-#endif
-
-/* CRC64 Test */
-ATF_TC(isc_crc64);
-ATF_TC_HEAD(isc_crc64, tc) {
- atf_tc_set_md_var(tc, "descr", "64-bit cyclic redundancy check");
-}
-ATF_TC_BODY(isc_crc64, tc) {
- isc_uint64_t crc;
- int i;
-
- UNUSED(tc);
-
- hash_testcase_t testcases[] = {
- {
- TEST_INPUT(""),
- "0x0000000000000000", 1
- },
- {
- TEST_INPUT("a"),
- "0x9AA9C0AC27F473CE", 1
- },
- {
- TEST_INPUT("abc"),
- "0x0297F4F93A818B04", 1
- },
- {
- TEST_INPUT("message digest"),
- "0xF47B357AEAF97352", 1
- },
- {
- TEST_INPUT("abcdefghijklmnopqrstuvwxyz"),
- "0xA1AA8B21F979F059", 1
- },
- {
- TEST_INPUT("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklm"
- "nopqrstuvwxyz0123456789"),
- "0xFBB6781EF7A86DA3", 1
- },
- {
- TEST_INPUT("123456789012345678901234567890123456789"
- "01234567890123456789012345678901234567890"),
- "0x4A87E7C873EBE581", 1
- },
- { NULL, 0, NULL, 1 }
- };
-
- hash_testcase_t *testcase = testcases;
-
- while (testcase->input != NULL && testcase->result != NULL) {
- isc_crc64_init(&crc);
- for(i = 0; i < testcase->repeats; i++) {
- isc_crc64_update(&crc,
- (const isc_uint8_t *) testcase->input,
- testcase->input_len);
- }
- isc_crc64_final(&crc);
- tohexstr((unsigned char *) &crc, sizeof(crc), str);
- ATF_CHECK_STREQ(str, testcase->result);
-
- testcase++;
- }
-}
-
-ATF_TC(isc_hash_function);
-ATF_TC_HEAD(isc_hash_function, tc) {
- atf_tc_set_md_var(tc, "descr", "Hash function test");
-}
-ATF_TC_BODY(isc_hash_function, tc) {
- unsigned int h1;
- unsigned int h2;
-
- UNUSED(tc);
-
- /* Incremental hashing */
-
- h1 = isc_hash_function(NULL, 0, ISC_TRUE, NULL);
- h1 = isc_hash_function("This ", 5, ISC_TRUE, &h1);
- h1 = isc_hash_function("is ", 3, ISC_TRUE, &h1);
- h1 = isc_hash_function("a long test", 12, ISC_TRUE, &h1);
-
- h2 = isc_hash_function("This is a long test", 20,
- ISC_TRUE, NULL);
-
- ATF_CHECK_EQ(h1, h2);
-
- /* Immutability of hash function */
- h1 = isc_hash_function(NULL, 0, ISC_TRUE, NULL);
- h2 = isc_hash_function(NULL, 0, ISC_TRUE, NULL);
-
- ATF_CHECK_EQ(h1, h2);
-
- /* Hash function characteristics */
- h1 = isc_hash_function("Hello world", 12, ISC_TRUE, NULL);
- h2 = isc_hash_function("Hello world", 12, ISC_TRUE, NULL);
-
- ATF_CHECK_EQ(h1, h2);
-
- /* Case */
- h1 = isc_hash_function("Hello world", 12, ISC_FALSE, NULL);
- h2 = isc_hash_function("heLLo WorLd", 12, ISC_FALSE, NULL);
-
- ATF_CHECK_EQ(h1, h2);
-
- /* Unequal */
- h1 = isc_hash_function("Hello world", 12, ISC_TRUE, NULL);
- h2 = isc_hash_function("heLLo WorLd", 12, ISC_TRUE, NULL);
-
- ATF_CHECK(h1 != h2);
-}
-
-
-ATF_TC(isc_hash_function_reverse);
-ATF_TC_HEAD(isc_hash_function_reverse, tc) {
- atf_tc_set_md_var(tc, "descr", "Reverse hash function test");
-}
-ATF_TC_BODY(isc_hash_function_reverse, tc) {
- unsigned int h1;
- unsigned int h2;
-
- UNUSED(tc);
-
- /* Incremental hashing */
-
- h1 = isc_hash_function_reverse(NULL, 0, ISC_TRUE, NULL);
- h1 = isc_hash_function_reverse("\000", 1, ISC_TRUE, &h1);
- h1 = isc_hash_function_reverse("\003org", 4, ISC_TRUE, &h1);
- h1 = isc_hash_function_reverse("\007example", 8, ISC_TRUE, &h1);
-
- h2 = isc_hash_function_reverse("\007example\003org\000", 13,
- ISC_TRUE, NULL);
-
- ATF_CHECK_EQ(h1, h2);
-
- /* Immutability of hash function */
- h1 = isc_hash_function_reverse(NULL, 0, ISC_TRUE, NULL);
- h2 = isc_hash_function_reverse(NULL, 0, ISC_TRUE, NULL);
-
- ATF_CHECK_EQ(h1, h2);
-
- /* Hash function characteristics */
- h1 = isc_hash_function_reverse("Hello world", 12, ISC_TRUE, NULL);
- h2 = isc_hash_function_reverse("Hello world", 12, ISC_TRUE, NULL);
-
- ATF_CHECK_EQ(h1, h2);
-
- /* Case */
- h1 = isc_hash_function_reverse("Hello world", 12, ISC_FALSE, NULL);
- h2 = isc_hash_function_reverse("heLLo WorLd", 12, ISC_FALSE, NULL);
-
- ATF_CHECK_EQ(h1, h2);
-
- /* Unequal */
- h1 = isc_hash_function_reverse("Hello world", 12, ISC_TRUE, NULL);
- h2 = isc_hash_function_reverse("heLLo WorLd", 12, ISC_TRUE, NULL);
-
- ATF_CHECK(h1 != h2);
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- /*
- * Tests of hash functions, including isc_hash and the
- * various cryptographic hashes.
- */
- ATF_TP_ADD_TC(tp, isc_hash_function);
- ATF_TP_ADD_TC(tp, isc_hash_function_reverse);
-#ifndef PK11_MD5_DISABLE
- ATF_TP_ADD_TC(tp, isc_hmacmd5);
-#endif
- ATF_TP_ADD_TC(tp, isc_hmacsha1);
- ATF_TP_ADD_TC(tp, isc_hmacsha224);
- ATF_TP_ADD_TC(tp, isc_hmacsha256);
- ATF_TP_ADD_TC(tp, isc_hmacsha384);
- ATF_TP_ADD_TC(tp, isc_hmacsha512);
-#ifndef PK11_MD5_DISABLE
- ATF_TP_ADD_TC(tp, isc_md5);
-#endif
- ATF_TP_ADD_TC(tp, isc_sha1);
- ATF_TP_ADD_TC(tp, isc_sha224);
- ATF_TP_ADD_TC(tp, isc_sha256);
- ATF_TP_ADD_TC(tp, isc_sha384);
- ATF_TP_ADD_TC(tp, isc_sha512);
- ATF_TP_ADD_TC(tp, isc_crc64);
-
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/isc/tests/isctest.c b/usr.sbin/bind/lib/isc/tests/isctest.c
deleted file mode 100644
index c6628f523b7..00000000000
--- a/usr.sbin/bind/lib/isc/tests/isctest.c
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
- * Copyright (C) 2011-2014 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: isctest.c,v 1.1 2019/12/16 16:31:36 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <time.h>
-
-#include <isc/app.h>
-#include <isc/buffer.h>
-#include <isc/entropy.h>
-#include <isc/hash.h>
-#include <isc/mem.h>
-#include <isc/os.h>
-#include <isc/socket.h>
-#include <isc/string.h>
-#include <isc/task.h>
-#include <isc/timer.h>
-#include <isc/util.h>
-
-#include "isctest.h"
-
-isc_mem_t *mctx = NULL;
-isc_entropy_t *ectx = NULL;
-isc_log_t *lctx = NULL;
-isc_taskmgr_t *taskmgr = NULL;
-isc_timermgr_t *timermgr = NULL;
-isc_socketmgr_t *socketmgr = NULL;
-isc_task_t *maintask = NULL;
-int ncpus;
-
-static isc_boolean_t hash_active = ISC_FALSE;
-
-/*
- * Logging categories: this needs to match the list in bin/named/log.c.
- */
-static isc_logcategory_t categories[] = {
- { "", 0 },
- { "client", 0 },
- { "network", 0 },
- { "update", 0 },
- { "queries", 0 },
- { "unmatched", 0 },
- { "update-security", 0 },
- { "query-errors", 0 },
- { NULL, 0 }
-};
-
-static void
-cleanup_managers(void) {
- if (maintask != NULL)
- isc_task_destroy(&maintask);
- if (socketmgr != NULL)
- isc_socketmgr_destroy(&socketmgr);
- if (taskmgr != NULL)
- isc_taskmgr_destroy(&taskmgr);
- if (timermgr != NULL)
- isc_timermgr_destroy(&timermgr);
-}
-
-static isc_result_t
-create_managers(void) {
- isc_result_t result;
-#ifdef ISC_PLATFORM_USETHREADS
- ncpus = isc_os_ncpus();
-#else
- ncpus = 1;
-#endif
-
- CHECK(isc_taskmgr_create(mctx, ncpus, 0, &taskmgr));
- CHECK(isc_task_create(taskmgr, 0, &maintask));
- isc_taskmgr_setexcltask(taskmgr, maintask);
-
- CHECK(isc_timermgr_create(mctx, &timermgr));
- CHECK(isc_socketmgr_create(mctx, &socketmgr));
- return (ISC_R_SUCCESS);
-
- cleanup:
- cleanup_managers();
- return (result);
-}
-
-isc_result_t
-isc_test_begin(FILE *logfile, isc_boolean_t start_managers) {
- isc_result_t result;
-
- isc_mem_debugging |= ISC_MEM_DEBUGRECORD;
- CHECK(isc_mem_create(0, 0, &mctx));
- CHECK(isc_entropy_create(mctx, &ectx));
-
- CHECK(isc_hash_create(mctx, ectx, 255));
- hash_active = ISC_TRUE;
-
- if (logfile != NULL) {
- isc_logdestination_t destination;
- isc_logconfig_t *logconfig = NULL;
-
- CHECK(isc_log_create(mctx, &lctx, &logconfig));
- isc_log_registercategories(lctx, categories);
- isc_log_setcontext(lctx);
-
- destination.file.stream = logfile;
- destination.file.name = NULL;
- destination.file.versions = ISC_LOG_ROLLNEVER;
- destination.file.maximum_size = 0;
- CHECK(isc_log_createchannel(logconfig, "stderr",
- ISC_LOG_TOFILEDESC,
- ISC_LOG_DYNAMIC,
- &destination, 0));
- CHECK(isc_log_usechannel(logconfig, "stderr", NULL, NULL));
- }
-
-#ifdef ISC_PLATFORM_USETHREADS
- ncpus = isc_os_ncpus();
-#else
- ncpus = 1;
-#endif
-
- if (start_managers)
- CHECK(create_managers());
-
- return (ISC_R_SUCCESS);
-
- cleanup:
- isc_test_end();
- return (result);
-}
-
-void
-isc_test_end(void) {
- if (maintask != NULL)
- isc_task_detach(&maintask);
- if (taskmgr != NULL)
- isc_taskmgr_destroy(&taskmgr);
- if (lctx != NULL)
- isc_log_destroy(&lctx);
- if (hash_active) {
- isc_hash_destroy();
- hash_active = ISC_FALSE;
- }
- if (ectx != NULL)
- isc_entropy_detach(&ectx);
-
- cleanup_managers();
-
- if (mctx != NULL)
- isc_mem_destroy(&mctx);
-}
-
-/*
- * Sleep for 'usec' microseconds.
- */
-void
-isc_test_nap(isc_uint32_t usec) {
-#ifdef HAVE_NANOSLEEP
- struct timespec ts;
-
- ts.tv_sec = usec / 1000000;
- ts.tv_nsec = (usec % 1000000) * 1000;
- nanosleep(&ts, NULL);
-#elif HAVE_USLEEP
- usleep(usec);
-#else
- /*
- * No fractional-second sleep function is available, so we
- * round up to the nearest second and sleep instead
- */
- sleep((usec / 1000000) + 1);
-#endif
-}
diff --git a/usr.sbin/bind/lib/isc/tests/isctest.h b/usr.sbin/bind/lib/isc/tests/isctest.h
deleted file mode 100644
index 307bcd94732..00000000000
--- a/usr.sbin/bind/lib/isc/tests/isctest.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: isctest.h,v 1.1 2019/12/16 16:31:36 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <isc/buffer.h>
-#include <isc/entropy.h>
-#include <isc/hash.h>
-#include <isc/log.h>
-#include <isc/mem.h>
-#include <isc/print.h>
-#include <isc/result.h>
-#include <isc/string.h>
-#include <isc/task.h>
-#include <isc/timer.h>
-#include <isc/util.h>
-
-#define CHECK(r) \
- do { \
- result = (r); \
- if (result != ISC_R_SUCCESS) \
- goto cleanup; \
- } while (0)
-
-extern isc_mem_t *mctx;
-extern isc_entropy_t *ectx;
-extern isc_log_t *lctx;
-extern isc_taskmgr_t *taskmgr;
-extern isc_timermgr_t *timermgr;
-extern isc_socketmgr_t *socketmgr;
-extern int ncpus;
-
-isc_result_t
-isc_test_begin(FILE *logfile, isc_boolean_t start_managers);
-
-void
-isc_test_end(void);
-
-void
-isc_test_nap(isc_uint32_t usec);
diff --git a/usr.sbin/bind/lib/isc/tests/lex_test.c b/usr.sbin/bind/lib/isc/tests/lex_test.c
deleted file mode 100644
index 7e96bb22835..00000000000
--- a/usr.sbin/bind/lib/isc/tests/lex_test.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#include <isc/buffer.h>
-#include <isc/lex.h>
-#include <isc/mem.h>
-#include <isc/util.h>
-
-ATF_TC(lex);
-ATF_TC_HEAD(lex, tc) {
- atf_tc_set_md_var(tc, "descr", "check handling of 0xff");
-}
-ATF_TC_BODY(lex, tc) {
- isc_mem_t *mctx = NULL;
- isc_result_t result;
- isc_lex_t *lex = NULL;
- isc_buffer_t death_buf;
- isc_token_t token;
-
- unsigned char death[] = { EOF, 'A' };
-
- UNUSED(tc);
-
- result = isc_mem_create(0, 0, &mctx);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_lex_create(mctx, 1024, &lex);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- isc_buffer_init(&death_buf, &death[0], sizeof(death));
- isc_buffer_add(&death_buf, sizeof(death));
-
- result = isc_lex_openbuffer(lex, &death_buf);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_lex_gettoken(lex, 0, &token);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, lex);
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/isc/tests/mem_test.c b/usr.sbin/bind/lib/isc/tests/mem_test.c
deleted file mode 100644
index 9fbdd4f8f64..00000000000
--- a/usr.sbin/bind/lib/isc/tests/mem_test.c
+++ /dev/null
@@ -1,160 +0,0 @@
-/*
- * Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <config.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <fcntl.h>
-
-#include <atf-c.h>
-
-#include "isctest.h"
-
-#include <isc/mem.h>
-#include <isc/print.h>
-#include <isc/result.h>
-
-static void *
-default_memalloc(void *arg, size_t size) {
- UNUSED(arg);
- if (size == 0U)
- size = 1;
- return (malloc(size));
-}
-
-static void
-default_memfree(void *arg, void *ptr) {
- UNUSED(arg);
- free(ptr);
-}
-
-ATF_TC(isc_mem_total);
-ATF_TC_HEAD(isc_mem_total, tc) {
- atf_tc_set_md_var(tc, "descr", "test TotalUse calculation");
-}
-
-ATF_TC_BODY(isc_mem_total, tc) {
- isc_result_t result;
- isc_mem_t *mctx2 = NULL;
- size_t before, after;
- ssize_t diff;
- int i;
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* Local alloc, free */
- mctx2 = NULL;
- result = isc_mem_createx2(0, 0, default_memalloc, default_memfree,
- NULL, &mctx2, 0);
- if (result != ISC_R_SUCCESS)
- goto out;
-
- before = isc_mem_total(mctx2);
-
- for (i = 0; i < 100000; i++) {
- void *ptr;
-
- ptr = isc_mem_allocate(mctx2, 2048);
- isc_mem_free(mctx2, ptr);
- }
-
- after = isc_mem_total(mctx2);
- diff = after - before;
-
- printf("total_before=%lu, total_after=%lu, total_diff=%lu\n",
- (unsigned long)before, (unsigned long)after,
- (unsigned long)diff);
- /* 2048 +8 bytes extra for size_info */
- ATF_CHECK_EQ(diff, (2048 + 8) * 100000);
-
- /* ISC_MEMFLAG_INTERNAL */
-
- before = isc_mem_total(mctx);
-
- for (i = 0; i < 100000; i++) {
- void *ptr;
-
- ptr = isc_mem_allocate(mctx, 2048);
- isc_mem_free(mctx, ptr);
- }
-
- after = isc_mem_total(mctx);
- diff = after - before;
-
- printf("total_before=%lu, total_after=%lu, total_diff=%lu\n",
- (unsigned long)before, (unsigned long)after,
- (unsigned long)diff);
- /* 2048 +8 bytes extra for size_info */
- ATF_CHECK_EQ(diff, (2048 + 8) * 100000);
-
- out:
- if (mctx2 != NULL)
- isc_mem_destroy(&mctx2);
-
- isc_test_end();
-}
-
-ATF_TC(isc_mem_inuse);
-ATF_TC_HEAD(isc_mem_inuse, tc) {
- atf_tc_set_md_var(tc, "descr", "test InUse calculation");
-}
-
-ATF_TC_BODY(isc_mem_inuse, tc) {
- isc_result_t result;
- isc_mem_t *mctx2 = NULL;
- size_t before, during, after;
- ssize_t diff;
- void *ptr;
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- mctx2 = NULL;
- result = isc_mem_createx2(0, 0, default_memalloc, default_memfree,
- NULL, &mctx2, 0);
- if (result != ISC_R_SUCCESS)
- goto out;
-
- before = isc_mem_inuse(mctx2);
- ptr = isc_mem_allocate(mctx2, 1024000);
- during = isc_mem_inuse(mctx2);
- isc_mem_free(mctx2, ptr);
- after = isc_mem_inuse(mctx2);
-
- diff = after - before;
-
- printf("inuse_before=%lu, inuse_during=%lu, inuse_after=%lu\n",
- (unsigned long)before, (unsigned long)during,
- (unsigned long)after);
- ATF_REQUIRE_EQ(diff, 0);
-
- out:
- if (mctx2 != NULL)
- isc_mem_destroy(&mctx2);
-
- isc_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, isc_mem_total);
- ATF_TP_ADD_TC(tp, isc_mem_inuse);
-
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/isc/tests/netaddr_test.c b/usr.sbin/bind/lib/isc/tests/netaddr_test.c
deleted file mode 100644
index 89bbd4e3b34..00000000000
--- a/usr.sbin/bind/lib/isc/tests/netaddr_test.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* ! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <stdio.h>
-#include <string.h>
-
-#include <isc/netaddr.h>
-
-ATF_TC(isc_netaddr_isnetzero);
-ATF_TC_HEAD(isc_netaddr_isnetzero, tc) {
- atf_tc_set_md_var(tc, "descr", "test isc_netaddr_isnetzero");
-}
-ATF_TC_BODY(isc_netaddr_isnetzero, tc) {
- unsigned int i;
- struct in_addr ina;
- struct {
- const char *address;
- isc_boolean_t expect;
- } tests[] = {
- { "0.0.0.0", ISC_TRUE },
- { "0.0.0.1", ISC_TRUE },
- { "0.0.1.2", ISC_TRUE },
- { "0.1.2.3", ISC_TRUE },
- { "10.0.0.0", ISC_FALSE },
- { "10.9.0.0", ISC_FALSE },
- { "10.9.8.0", ISC_FALSE },
- { "10.9.8.7", ISC_FALSE },
- { "127.0.0.0", ISC_FALSE },
- { "127.0.0.1", ISC_FALSE }
- };
- isc_boolean_t result;
- isc_netaddr_t netaddr;
-
- for (i = 0; i < sizeof(tests)/sizeof(tests[0]); i++) {
- ina.s_addr = inet_addr(tests[i].address);
- isc_netaddr_fromin(&netaddr, &ina);
- result = isc_netaddr_isnetzero(&netaddr);
- ATF_CHECK_EQ_MSG(result, tests[i].expect,
- "%s", tests[i].address);
- }
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
-
- ATF_TP_ADD_TC(tp, isc_netaddr_isnetzero);
-
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/isc/tests/parse_test.c b/usr.sbin/bind/lib/isc/tests/parse_test.c
deleted file mode 100644
index 2ffe3c56a2b..00000000000
--- a/usr.sbin/bind/lib/isc/tests/parse_test.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Copyright (C) 2012, 2013 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: parse_test.c,v 1.1 2019/12/16 16:31:36 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-#include <time.h>
-
-#include <isc/parseint.h>
-
-#include "isctest.h"
-
-/*
- * Individual unit tests
- */
-
-/* Test for 32 bit overflow on 64 bit machines in isc_parse_uint32 */
-ATF_TC(parse_overflow);
-ATF_TC_HEAD(parse_overflow, tc) {
- atf_tc_set_md_var(tc, "descr", "Check for 32 bit overflow");
-}
-ATF_TC_BODY(parse_overflow, tc) {
- isc_result_t result;
- isc_uint32_t output;
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_parse_uint32(&output, "1234567890", 10);
- ATF_CHECK_EQ(ISC_R_SUCCESS, result);
- ATF_CHECK_EQ(1234567890, output);
-
- result = isc_parse_uint32(&output, "123456789012345", 10);
- ATF_CHECK_EQ(ISC_R_RANGE, result);
-
- result = isc_parse_uint32(&output, "12345678901234567890", 10);
- ATF_CHECK_EQ(ISC_R_RANGE, result);
-
- isc_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, parse_overflow);
-
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/isc/tests/pool_test.c b/usr.sbin/bind/lib/isc/tests/pool_test.c
deleted file mode 100644
index e9a74104a04..00000000000
--- a/usr.sbin/bind/lib/isc/tests/pool_test.c
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
- * Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: pool_test.c,v 1.1 2019/12/16 16:31:36 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <isc/mem.h>
-#include <isc/pool.h>
-
-#include "isctest.h"
-
-static isc_result_t
-poolinit(void **target, void *arg) {
- isc_result_t result;
-
- isc_taskmgr_t *mgr = (isc_taskmgr_t *) arg;
- isc_task_t *task = NULL;
- result = isc_task_create(mgr, 0, &task);
- if (result != ISC_R_SUCCESS)
- return (result);
-
- *target = (void *) task;
- return (ISC_R_SUCCESS);
-}
-
-static void
-poolfree(void **target) {
- isc_task_t *task = *(isc_task_t **) target;
- isc_task_destroy(&task);
- *target = NULL;
-}
-
-/*
- * Individual unit tests
- */
-
-/* Create a pool */
-ATF_TC(create_pool);
-ATF_TC_HEAD(create_pool, tc) {
- atf_tc_set_md_var(tc, "descr", "create a pool");
-}
-ATF_TC_BODY(create_pool, tc) {
- isc_result_t result;
- isc_pool_t *pool = NULL;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_pool_create(mctx, 8, poolfree, poolinit, taskmgr, &pool);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_pool_count(pool), 8);
-
- isc_pool_destroy(&pool);
- ATF_REQUIRE_EQ(pool, NULL);
-
- isc_test_end();
-}
-
-/* Resize a pool */
-ATF_TC(expand_pool);
-ATF_TC_HEAD(expand_pool, tc) {
- atf_tc_set_md_var(tc, "descr", "expand a pool");
-}
-ATF_TC_BODY(expand_pool, tc) {
- isc_result_t result;
- isc_pool_t *pool1 = NULL, *pool2 = NULL, *hold = NULL;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_pool_create(mctx, 10, poolfree, poolinit, taskmgr, &pool1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_pool_count(pool1), 10);
-
- /* resizing to a smaller size should have no effect */
- hold = pool1;
- result = isc_pool_expand(&pool1, 5, &pool2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_pool_count(pool2), 10);
- ATF_REQUIRE_EQ(pool2, hold);
- ATF_REQUIRE_EQ(pool1, NULL);
- pool1 = pool2;
- pool2 = NULL;
-
- /* resizing to the same size should have no effect */
- hold = pool1;
- result = isc_pool_expand(&pool1, 10, &pool2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_pool_count(pool2), 10);
- ATF_REQUIRE_EQ(pool2, hold);
- ATF_REQUIRE_EQ(pool1, NULL);
- pool1 = pool2;
- pool2 = NULL;
-
- /* resizing to larger size should make a new pool */
- hold = pool1;
- result = isc_pool_expand(&pool1, 20, &pool2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_pool_count(pool2), 20);
- ATF_REQUIRE(pool2 != hold);
- ATF_REQUIRE_EQ(pool1, NULL);
-
- isc_pool_destroy(&pool2);
- ATF_REQUIRE_EQ(pool2, NULL);
-
- isc_test_end();
-}
-
-/* Get objects */
-ATF_TC(get_objects);
-ATF_TC_HEAD(get_objects, tc) {
- atf_tc_set_md_var(tc, "descr", "get objects");
-}
-ATF_TC_BODY(get_objects, tc) {
- isc_result_t result;
- isc_pool_t *pool = NULL;
- void *item;
- isc_task_t *task1 = NULL, *task2 = NULL, *task3 = NULL;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_pool_create(mctx, 2, poolfree, poolinit, taskmgr, &pool);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_pool_count(pool), 2);
-
- item = isc_pool_get(pool);
- ATF_REQUIRE(item != NULL);
- isc_task_attach((isc_task_t *) item, &task1);
-
- item = isc_pool_get(pool);
- ATF_REQUIRE(item != NULL);
- isc_task_attach((isc_task_t *) item, &task2);
-
- item = isc_pool_get(pool);
- ATF_REQUIRE(item != NULL);
- isc_task_attach((isc_task_t *) item, &task3);
-
- isc_task_detach(&task1);
- isc_task_detach(&task2);
- isc_task_detach(&task3);
-
- isc_pool_destroy(&pool);
- ATF_REQUIRE_EQ(pool, NULL);
-
- isc_test_end();
-}
-
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, create_pool);
- ATF_TP_ADD_TC(tp, expand_pool);
- ATF_TP_ADD_TC(tp, get_objects);
-
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/isc/tests/print_test.c b/usr.sbin/bind/lib/isc/tests/print_test.c
deleted file mode 100644
index d52f7fecd58..00000000000
--- a/usr.sbin/bind/lib/isc/tests/print_test.c
+++ /dev/null
@@ -1,168 +0,0 @@
-/*
- * Copyright (C) 2014-2016 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-/*
- * Workout if we need to force the inclusion of print.c so we can test
- * it on all platforms even if we don't include it in libisc.
- */
-#include <isc/platform.h>
-#if !defined(ISC_PLATFORM_NEEDPRINTF) && \
- !defined(ISC_PLATFORM_NEEDFPRINTF) && \
- !defined(ISC_PLATFORM_NEEDSPRINTF) && \
- !defined(ISC_PLATFORM_NEEDVSNPRINTF)
-#define ISC__PRINT_SOURCE
-#include "../print.c"
-#else
-#if !defined(ISC_PLATFORM_NEEDPRINTF) || \
- !defined(ISC_PLATFORM_NEEDFPRINTF) || \
- !defined(ISC_PLATFORM_NEEDSPRINTF) || \
- !defined(ISC_PLATFORM_NEEDVSNPRINTF)
-#define ISC__PRINT_SOURCE
-#endif
-#include <isc/print.h>
-#include <isc/types.h>
-#include <isc/util.h>
-#endif
-
-ATF_TC(snprintf);
-ATF_TC_HEAD(snprintf, tc) {
- atf_tc_set_md_var(tc, "descr", "snprintf implementation");
-}
-ATF_TC_BODY(snprintf, tc) {
- char buf[10000];
- isc_uint64_t ll = 8589934592ULL;
- isc_uint64_t nn = 20000000000000ULL;
- isc_uint64_t zz = 10000000000000000000ULL;
- int n;
- size_t size;
-
- UNUSED(tc);
-
- /*
- * 4294967296 <= 8589934592 < 1000000000^2 to verify fix for
- * RT#36505.
- */
-
- memset(buf, 0xff, sizeof(buf));
- n = isc_print_snprintf(buf, sizeof(buf), "%qu", ll);
- ATF_CHECK_EQ(n, 10);
- ATF_CHECK_STREQ(buf, "8589934592");
-
- memset(buf, 0xff, sizeof(buf));
- n = isc_print_snprintf(buf, sizeof(buf), "%llu", ll);
- ATF_CHECK_EQ(n, 10);
- ATF_CHECK_STREQ(buf, "8589934592");
-
- memset(buf, 0xff, sizeof(buf));
- n = isc_print_snprintf(buf, sizeof(buf), "%qu", nn);
- ATF_CHECK_EQ(n, 14);
- ATF_CHECK_STREQ(buf, "20000000000000");
-
- memset(buf, 0xff, sizeof(buf));
- n = isc_print_snprintf(buf, sizeof(buf), "%llu", nn);
- ATF_CHECK_EQ(n, 14);
- ATF_CHECK_STREQ(buf, "20000000000000");
-
- memset(buf, 0xff, sizeof(buf));
- n = isc_print_snprintf(buf, sizeof(buf), "%qu", zz);
- ATF_CHECK_EQ(n, 20);
- ATF_CHECK_STREQ(buf, "10000000000000000000");
-
- memset(buf, 0xff, sizeof(buf));
- n = isc_print_snprintf(buf, sizeof(buf), "%llu", zz);
- ATF_CHECK_EQ(n, 20);
- ATF_CHECK_STREQ(buf, "10000000000000000000");
-
- memset(buf, 0xff, sizeof(buf));
- n = isc_print_snprintf(buf, sizeof(buf), "%lld", nn);
- ATF_CHECK_EQ(n, 14);
- ATF_CHECK_STREQ(buf, "20000000000000");
-
- size = 1000;
- memset(buf, 0xff, sizeof(buf));
- n = isc_print_snprintf(buf, sizeof(buf), "%zu", size);
- ATF_CHECK_EQ(n, 4);
- ATF_CHECK_STREQ(buf, "1000");
-
- size = 1000;
- memset(buf, 0xff, sizeof(buf));
- n = isc_print_snprintf(buf, sizeof(buf), "%zx", size);
- ATF_CHECK_EQ(n, 3);
- ATF_CHECK_STREQ(buf, "3e8");
-
- size = 1000;
- memset(buf, 0xff, sizeof(buf));
- n = isc_print_snprintf(buf, sizeof(buf), "%zo", size);
- ATF_CHECK_EQ(n, 4);
- ATF_CHECK_STREQ(buf, "1750");
-
- zz = 0xf5f5f5f5f5f5f5f5ULL;
- memset(buf, 0xff, sizeof(buf));
- n = isc_print_snprintf(buf, sizeof(buf), "0x%"ISC_PRINT_QUADFORMAT"x", zz);
- ATF_CHECK_EQ(n, 18);
- ATF_CHECK_STREQ(buf, "0xf5f5f5f5f5f5f5f5");
-}
-
-ATF_TC(fprintf);
-ATF_TC_HEAD(fprintf, tc) {
- atf_tc_set_md_var(tc, "descr", "fprintf implementation");
-}
-ATF_TC_BODY(fprintf, tc) {
- FILE *f;
- int n;
- size_t size;
- char buf[10000];
-
- UNUSED(tc);
-
- f = fopen("fprintf.test", "w+");
- ATF_REQUIRE(f != NULL);
-
- size = 1000;
- n = isc_print_fprintf(f, "%zu", size);
- ATF_CHECK_EQ(n, 4);
-
- rewind(f);
-
- memset(buf, 0, sizeof(buf));
- n = fread(buf, 1, sizeof(buf), f);
- ATF_CHECK_EQ(n, 4);
-
- fclose(f);
-
- ATF_CHECK_STREQ(buf, "1000");
-
- if ((n > 0) && (!strcmp(buf, "1000")))
- unlink("fprintf.test");
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, snprintf);
- ATF_TP_ADD_TC(tp, fprintf);
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/isc/tests/queue_test.c b/usr.sbin/bind/lib/isc/tests/queue_test.c
deleted file mode 100644
index cad8d61ad3d..00000000000
--- a/usr.sbin/bind/lib/isc/tests/queue_test.c
+++ /dev/null
@@ -1,144 +0,0 @@
-/*
- * Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: queue_test.c,v 1.1 2019/12/16 16:31:36 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-#include <time.h>
-
-#include <isc/queue.h>
-
-#include "isctest.h"
-
-typedef struct item item_t;
-struct item {
- int value;
- ISC_QLINK(item_t) qlink;
-};
-
-typedef ISC_QUEUE(item_t) item_queue_t;
-
-static void
-item_init(item_t *item, int value) {
- item->value = value;
- ISC_QLINK_INIT(item, qlink);
-}
-
-/*
- * Individual unit tests
- */
-
-/* Test UDP sendto/recv (IPv4) */
-ATF_TC(queue_valid);
-ATF_TC_HEAD(queue_valid, tc) {
- atf_tc_set_md_var(tc, "descr", "Check queue validity");
-}
-ATF_TC_BODY(queue_valid, tc) {
- isc_result_t result;
- item_queue_t queue;
- item_t one, two, three, four, five;
- item_t *p;
-
- UNUSED(tc);
-
- ISC_QUEUE_INIT(queue, qlink);
-
- item_init(&one, 1);
- item_init(&two, 2);
- item_init(&three, 3);
- item_init(&four, 4);
- item_init(&five, 5);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- ATF_CHECK(ISC_QUEUE_EMPTY(queue));
-
- ISC_QUEUE_POP(queue, qlink, p);
- ATF_CHECK(p == NULL);
-
- ATF_CHECK(! ISC_QLINK_LINKED(&one, qlink));
- ISC_QUEUE_PUSH(queue, &one, qlink);
- ATF_CHECK(ISC_QLINK_LINKED(&one, qlink));
-
- ATF_CHECK(! ISC_QUEUE_EMPTY(queue));
-
- ISC_QUEUE_POP(queue, qlink, p);
- ATF_REQUIRE(p != NULL);
- ATF_CHECK_EQ(p->value, 1);
- ATF_CHECK(ISC_QUEUE_EMPTY(queue));
- ATF_CHECK(! ISC_QLINK_LINKED(p, qlink));
-
- ISC_QUEUE_PUSH(queue, p, qlink);
- ATF_CHECK(! ISC_QUEUE_EMPTY(queue));
- ATF_CHECK(ISC_QLINK_LINKED(p, qlink));
-
- ATF_CHECK(! ISC_QLINK_LINKED(&two, qlink));
- ISC_QUEUE_PUSH(queue, &two, qlink);
- ATF_CHECK(ISC_QLINK_LINKED(&two, qlink));
-
- ATF_CHECK(! ISC_QLINK_LINKED(&three, qlink));
- ISC_QUEUE_PUSH(queue, &three, qlink);
- ATF_CHECK(ISC_QLINK_LINKED(&three, qlink));
-
- ATF_CHECK(! ISC_QLINK_LINKED(&four, qlink));
- ISC_QUEUE_PUSH(queue, &four, qlink);
- ATF_CHECK(ISC_QLINK_LINKED(&four, qlink));
-
- ATF_CHECK(! ISC_QLINK_LINKED(&five, qlink));
- ISC_QUEUE_PUSH(queue, &five, qlink);
- ATF_CHECK(ISC_QLINK_LINKED(&five, qlink));
-
- /* Test unlink by removing one item from the middle */
- ISC_QUEUE_UNLINK(queue, &three, qlink);
-
- ISC_QUEUE_POP(queue, qlink, p);
- ATF_REQUIRE(p != NULL);
- ATF_CHECK_EQ(p->value, 1);
-
- ISC_QUEUE_POP(queue, qlink, p);
- ATF_REQUIRE(p != NULL);
- ATF_CHECK_EQ(p->value, 2);
-
- ISC_QUEUE_POP(queue, qlink, p);
- ATF_REQUIRE(p != NULL);
- ATF_CHECK_EQ(p->value, 4);
-
- ISC_QUEUE_POP(queue, qlink, p);
- ATF_REQUIRE(p != NULL);
- ATF_CHECK_EQ(p->value, 5);
-
- ATF_CHECK(ISC_QUEUE_EMPTY(queue));
-
- ISC_QUEUE_DESTROY(queue);
- isc_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, queue_valid);
-
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/isc/tests/radix_test.c b/usr.sbin/bind/lib/isc/tests/radix_test.c
deleted file mode 100644
index c0fc7035f13..00000000000
--- a/usr.sbin/bind/lib/isc/tests/radix_test.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- * Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <config.h>
-
-#include <isc/mem.h>
-#include <isc/netaddr.h>
-#include <isc/radix.h>
-#include <isc/result.h>
-#include <isc/util.h>
-
-#include <atf-c.h>
-
-#include <stdlib.h>
-#include <stdint.h>
-
-#include "isctest.h"
-
-ATF_TC(isc_radix_search);
-ATF_TC_HEAD(isc_radix_search, tc) {
- atf_tc_set_md_var(tc, "descr", "test radix seaching");
-}
-ATF_TC_BODY(isc_radix_search, tc) {
- isc_radix_tree_t *radix = NULL;
- isc_radix_node_t *node;
- isc_prefix_t prefix;
- isc_result_t result;
- struct in_addr in_addr;
- isc_netaddr_t netaddr;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_radix_create(mctx, &radix, 32);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- in_addr.s_addr = inet_addr("3.3.3.0");
- isc_netaddr_fromin(&netaddr, &in_addr);
- NETADDR_TO_PREFIX_T(&netaddr, prefix, 24);
-
- node = NULL;
- result = isc_radix_insert(radix, &node, NULL, &prefix);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- node->data[0] = (void *)1;
- isc_refcount_destroy(&prefix.refcount);
-
- in_addr.s_addr = inet_addr("3.3.0.0");
- isc_netaddr_fromin(&netaddr, &in_addr);
- NETADDR_TO_PREFIX_T(&netaddr, prefix, 16);
-
- node = NULL;
- result = isc_radix_insert(radix, &node, NULL, &prefix);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- node->data[0] = (void *)2;
- isc_refcount_destroy(&prefix.refcount);
-
- in_addr.s_addr = inet_addr("3.3.3.3");
- isc_netaddr_fromin(&netaddr, &in_addr);
- NETADDR_TO_PREFIX_T(&netaddr, prefix, 22);
-
- node = NULL;
- result = isc_radix_search(radix, &node, &prefix);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(node->data[0], (void *)2);
-
- isc_refcount_destroy(&prefix.refcount);
-
- isc_radix_destroy(radix, NULL);
-
- isc_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, isc_radix_search);
-
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/isc/tests/regex_test.c b/usr.sbin/bind/lib/isc/tests/regex_test.c
deleted file mode 100644
index edc96f2bcc6..00000000000
--- a/usr.sbin/bind/lib/isc/tests/regex_test.c
+++ /dev/null
@@ -1,1126 +0,0 @@
-/*
- * Copyright (C) 2013, 2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#ifdef HAVE_REGEX_H
-#include <regex.h>
-#endif
-
-#include <isc/regex.h>
-#include <isc/print.h>
-#include <isc/util.h>
-
-ATF_TC(regex_validate);
-ATF_TC_HEAD(regex_validate, tc) {
- atf_tc_set_md_var(tc, "descr", "check isc_regex_validate()");
-}
-ATF_TC_BODY(regex_validate, tc) {
- /*
- * test regex were generated using http://code.google.com/p/regfuzz/
- * modified to use only printable characters
- */
- struct {
- const char * expression;
- int expect;
- int exception; /* regcomp accepts but is disallowed. */
- } tests[] = {
- { "", -1, 0 },
- { "*", -1, 0 },
- { ".*", 0, 0 },
- { ".**", -1, 0 },
- { ".*\?", -1, 0 },
- { ".*+", -1, 0 },
- { "+", -1, 0 },
- { ".+", 0, 0 },
- { ".++", -1, 0 },
- { ".+\?", -1, 0 },
- { ".+*", -1, 0 },
- { "\?", -1, 0 },
- { ".\?", 0, 0 },
- { ".\?\?", -1, 0 },
- { ".\?*", -1, 0 },
- { ".\?+", -1, 0 },
- { "(", -1, 0 },
- { "()", 1, 0 },
- { "(|)", -1, 0 },
- { "(a|)", -1, 0 },
- { "(|b)", -1, 0 },
- { ".{", 0, 0 },
- { ".{1", -1, 0 },
- { ".\\{1", 0, 0 },
- { ".{1}", 0, 0 },
- { ".\\{1}", 0, 0 },
- { ".{,", 0, 0 },
- { ".{,}", 0, 0 },
- { ".{1,}", 0, 0 },
- { ".\\{1,}", 0, 0 },
- { ".{1,\\}", -1, 0 },
- { ".{1,", -1, 0 },
- { ".\\{1,", 0, 0 },
- { ".{1,2}", 0, 0 },
- { ".{1,2}*", -1, 0 },
- { ".{1,2}+", -1, 0 },
- { ".{1,2}\?", -1, 0 },
- { ".{1,2", -1, 0 },
- { ".{2,1}", -1, 0 },
- { "[", -1, 0 },
- { "[]", -1, 0 },
- { "[]]", 0, 0 },
- { "[[]", 0, 0 },
- { "[^]", -1, 0 },
- { "[1-2-3]", -1, 0 },
- { "[1-22-3]", 0, 0 },
- { "[+--23]", 0, 0 },
- { "[+--]", 0, 0 },
- { "[-1]", 0, 0 },
- { "[1-]", 0, 0 },
- { "[[.^.]]", 0, 0 },
- { "[^]]", 0, 0 },
- { "[^^]", 0, 0 },
- { "[]]\?", 0, 0 },
- { "[[]\?", 0, 0 },
- { "[[..]]", -1, 0 },
- { "[[...]]", 0, 0 },
- { "[[..5.]--]", -1, 0 },
- { "[[.+.]--]", 0, 0 },
- { "[[..+.]--]", -1, 0 },
- { "[[.5.]--]", -1, 0 },
- { "[1-[=x=]]", -1, 0 },
- { "[[:alpha:]]", 0, 0 },
- { "[[:alpha:]", -1, 0 },
- { "[[:alnum:]]", 0, 0 },
- { "[[:alnum:]", -1, 0 },
- { "[[:digit:]]", 0, 0 },
- { "[[:digit:]", -1, 0 },
- { "[[:punct:]]", 0, 0 },
- { "[[:punct:]", -1, 0 },
- { "[[:graph:]]", 0, 0 },
- { "[[:graph:]", -1, 0 },
- { "[[:space:]]", 0, 0 },
- { "[[:space:]", -1, 0 },
- { "[[:blank:]]", 0, 0 },
- { "[[:blank:]", -1, 0 },
- { "[[:upper:]]", 0, 0 },
- { "[[:upper:]", -1, 0 },
- { "[[:cntrl:]]", 0, 0 },
- { "[[:cntrl:]", -1, 0 },
- { "[[:print:]]", 0, 0 },
- { "[[:print:]", -1, 0 },
- { "[[:xdigit:]]", 0, 0 },
- { "[[:xdigit:]", -1, 0 },
- { "[[:unknown:]]", -1, 0 },
- { "\\[", 0, 0 },
- { "(a)\\1", 1, 0 },
- { "(a)\\2", -1, 1 },
- { "\\0", 0, 0 },
- { "[[][:g(\?(raph:][:alnu)(\?{m:][:space:]h]<Z3})AAA)S[:space:]{176,}", 0, 0 },
- { "(()IIIIIIII(III[[[[[[[[[[[[[[[[[[^[[[[[[[[ [^ fX][:ascii:].)N[:a(\?<!lpha:])][:punct:]e*y+)a{-124,223}", 3, 0 },
- { "(pP\\\\\\(\?<!\\\\\\\\\\\\\\\\\\\\\\lRRRRRRRRRRRRRRRRBBBBBBBBBBBBBBBB))kkkkkkkkkkkkkkkkkkkkk|^", 1, 0 },
- { "[^[^[{111}(\?=(\?:(\?>/r(\?<(\?=!(\?(\?!<!Q(\?:=0_{Meqipm`(\?((\?{x|N)))))|))+]+]Z)O{,-215}])}))___________________{}", 0, 0 },
- { "[C{,-218(\?=}E^< ]PP-Ga)t``````````````````````````{138}", 0, 0 },
- { "[^h(\?<!(\?>Nn(\?#])))", 0, 0 },
- { "[(\?!(\?<=[^{,37}AAAA(AAAAAAAAAAAAA])", 0, 0 },
- { "[^((\?(\?:ms(\?<!xims:A{}(\?{*</H(\?=xL $(\?<!,[})))*)qqqqqqqqqqqqqqqqqq)]33333333333333333333333333333{[:graph:]p)-+( oqD]){-10,}-{247}_______________________X-e[:alpha:][:upperword:]_(______wwwwwwwww /c[:upperword:][:alnum:][:alnum:][:pun(\?{ct:])[:blankcntrl:]})*_*", 2, 0 },
- { "[(\?<!:lowerprin(\?{t:]{}}){113,})[:punct:]IIIIIIIIIIIIIIIIIIIIIIII", 0, 0 },
- { "PP)", 0, 0 },
- { "(([^(\?<!((\?>\?=[])p.]}8X[:blankcntrl:],{-119,94})XmF1.{)-)[:upperword:])[:digit:]{zg-q", 2, 0 },
- { "[^[({(\?#254}))Z[l][x50]=444444444444(4444444444u[:punct:]\?[:punct:(\?!])])", 1, 0 },
- { "[^[^[^([^((*4[(^((\?<=])Ec)", 0, 0 },
- { "(0)Y:8biiiiiiiiiiiiiiiiiii", 1, 0 },
- { "[^w(\?!)P::::::::::::::(\?#::(\?<=:::::::::]\"\"{}[3333333333333333(\?<=33333(\?!)9Xja][:alph(\?<=a:])xB1)(PX8Cf\?4444)qq[:digit:])", 1, 0 },
- { "([U[^[^].]^m]/306KS7JJJJJJJJ{})", 1, 0 },
- { "[^[^([^[(\?!(\?>8j`Wg2(\?{,(\?>!#N++++(\?<![++++++)+44444444bA:K(\?<!O3([:digit:]3]}}}}}}}}}}}}}}}}}}}}}}}}LP})S", 0, 0 },
- { "[({(\?{,(\?(=213}*))})]WWWWWWWWWWWWWWW[:alnum:])", 0, 0 },
- { "[:(\?<=ascii:])", 0, 0 },
- { "[U(\?#)(\?<=+HzE])[:punct:]{-207,170}\?s.!", 0, 0 },
- { "{}z=jU75~n#soD\"&\?UL`X{xxxxxxxxxxxxxxxxxxxx(xxxxxx${-246,27}[:graph:]g\"{_bX)[:alnum:][:punct:]{-79,}-", 1, 0 },
- { "[^{,-186}@@@@[^(\?{@@(\?>@+(\?>l.]}))*\\BCYX]^W{52,123}(lXislccccccccccccccccc)-*)", 1, 0 },
- { "(x42+,)7=]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]", 1, 0 },
- { "[^(*[:graph:]q/TH\?B(\?{P)]})uZn[:digit:]+2", 0, 0 },
- { "([XXXXXXXXXXXXXXXXXXXXX[(:alnum:][:space:]i%[:upperw(\?=o(\?#rd:])) ", 1, 0 },
- { "(@@@@)", 1, 0 },
- { "{-18,}[:as[(\?>^[cii:]]{}>+{-46,}{,95}[:punct:]{}99999999999999])-{-134}'sK$wCKjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj", 0, 0 },
- { "(l[:alpha:(\?!]))", 1, 0 },
- { "[[^(\?{]|JJ[:alph(a:]X{})B^][:lowerprint:]n-219{-32}{19,105}k4P}){,-144}", 0, 0 },
- { "[[^]P[:punct:][:alpha:][:xdigit:]syh]|W#JS*(m<2,P-RK)cA@", 1, 0 },
- { "([^((\?({\?<=)}){[^}^]{}])^P4[:punct:[]$)]", 1, 0 },
- { "([(\?#:(\?{space:]}):{}{-242,}n)F[:alpha:]3$)d4H3up6qS[:blankcntrl:]B:C{}[:upperword:]r", 1, 0 },
- { "([(\?:]))[:digit:]mLV.{}", 1, 0 },
- { "[^PPP-[]{[,50}{128,}]111111111111111]p", 0, 0 },
- { "[^([^([^([[^[([^[^[[2[[[[[[[[[[[[[^[[[[(\?(\?{:[[[[[[(\?([-[:ascii:]--*)", -1, 0 },
- { ")!F^DA/ZZZZZZZZZZZZZZZZZZ", 0, 0 },
- { "[[[[[[[((\?=\?(\?>([[[[[[[^[[[[(\?()[[[K(\?#))])))]7Y[:space:]{,-96}pP)[:ascii:]u{-88}:N{-251}uo", 0, 0 },
- { "t[:x(\?<=digit:])eYYYYYYYYYYYYYYYYYY{,-220}A", 0, 0 },
- { "[[({10,}[:graph:]Pdddddd(\?#X)])[:alnum:(]]L-C){,50}[:blankcntrl:]p[:gra(ph:]){66,}", 0, 0 },
- { "[^[^]*4br]w[:digit(\?::]n99999999999999999)P[:punct:]pP", 0, 0 },
- { "[:digit:]{67,247}!N{122})VrXe", 0, 0 },
- { "[:xdigit:]^[:xdigit:]Z[:alnum:]^^^^1[:upperword:(\?=])[:lowerprint:]*JJ-", 0, 0 },
- { "[[(\?imsximsx:^*e(){,3[6}](V~\?^[:asc(\?!ii:]I.dZ))]$^AAAAAAAAAAAAAAAAAAAAAAAA[:space:]k)]", 1, 0 },
- { "W{,112}[:lowerp(\?<!rint:]$#GT>R7~t'\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"9,O).", 0, 0 },
- { "[^{6((\?>\?:4}(\?<=G))f)KKKKKKKKKKKKKKKKKKKKKKKKKKKKKpppppppp(\?=ppppp]{,-101}|[:blankcntrl:]Z{-182})", 0, 0 },
- { "([:punct:]@^,,,,,,,,,,,,,,,,,,,,,,,,,,0\?:-o8NPIIIIIIIII)pPKKKKKKKKKKKKKKKKKKKK", 1, 0 },
- { "([^[[^[^]]]])", 1, 0 },
- { "[([^[(333\"(\?#\\\\[)(\?isx-x:\"Tx]')", 0, 0 },
- { "[[n>^>T%.zzzzzzzzzzzzzzzzz$&|Fk.1o7^o, ^8{202,-12}$[:alnum:]]G[:upperword:]V[:xdigit:]L|[:upperword:]KKKKKKKKKKKKYX\"\")xJ ~B@[{,-68}/][:upperword:]QI.", 0, 0 },
- { "[^[]tN^hy3\"d@v T[GE\?^~{124,10(\?{2}]})\?[:upperword:]O", 0, 0 },
- { "d.``````````````````````````[:up(\?=perword:]RRRRRRRRRRRRRRR)", 0, 0 },
- { "[Z{{{{{{{{{{{{{(\?={(\?<!{{{{{{{{{(\?>{{J6N:H[tA+mN3Zmf:p\?]\?){-181,82}S4n.b[:lowerpri(\?{nt:]|ggggggggggggggggggggggggggggggg}))4)", 0, 0 },
- { "[^((/////[^////[^/////////[(^/////]fI{240}{-120}+]R]GA)", 0, 0 },
- { "[-(\?#.)(\?())[:alpha:](\?={(\?#}r)[:space:]PPW]o)", 0, 0 },
- { "[:lowerp(\?{rint:]})201{46,}[:a[^scii:]0Q{37,}][:blankcntrl:]1331", 0, 0 },
- { "[^(\?!(\?#)\\GIwxKKKKKKKKKK'$KKKKKKKK]l)bbb^&\?", 0, 0 },
- { "[:ascii:]*[:sp(\?<=ace:])", 0, 0 },
- { "({-66,}Z{})0I{-111,}[:punct(\?():])", 1, 0 },
- { "[[^(\?!()%%%%%%%%%%%%%(\?:%%%%%%%%%%%%%%%%)t(\?{VX>B#6sUU(\?<!UUUUUU(\?=UUU[^UUUUUUUUUUUU(\?((\?:UPPPPPPPPPPP)PPPPPPPPPPPPPPP]ffffffffffffffffffffffff)^[:space:]wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww{243}9[:lowerprint:]Dv[:graph:])][:blankcntrl:]V%E[:graph:]})[:space:]{-83,}cQZ{}4{-23,135}", 0, 0 },
- { "({,-76[}]O[:xdi(\?<!git:])\?5))))))))\?d[:lowerprint:]b666666[:graph:]c", 1, 0 },
- { "{}{-145,}[:(\?(spa)ce:])f", 0, 0 },
- { "[([^].{116,243}]T*[[^:punct(\?[{[^:(\?<!]]8()])[:alnum:])})]N{}{,243}*[n]][:graph:]", 1, 0 },
- { "[^w]8888888888888888_________(__________[:ascii:]BdqTE$^0|MNto*i#############[^#################])", 1, 0 },
- { "[^[[[<[()\?]GGG{,26[}[:alnum:]SSSSS.gggggggg[:graph:]CCCCCCCCCCC{79,}{138,191}][:di(git:]u]@]JJJJJJJJJJJJJJJJJJJJJJJ[:graph:(\?:][:alnum:]])[:alnum:])]", 0, 0 },
- { "[^(((BBBBBBBBBB(\?>BBBZvvvvvvvvvv(\?m(sximsx:vvv)iiiiiiii)))j>Rs:Sm]0MMMMMMMMMMM|@F)Y]*^#EEEEEEE)*", 0, 0 },
- { "([^([(U(\?!)<<<<<<<<<<(\?#<<<<(\?<!<<<)(\?=L.{73,})+]n9U}fk%Jn}'b Na<%yyyyyyyyyyyy)){-198,}]))[:space:].pP361U]3s@u_9AU Te/{s`6=IMZdL1|.ySRo", 1, 0 },
- { "[[((\?<=\?>(\?#){}]{}`){1,82}){-143[,}]^G", 0, 0 },
- { "[:digit:]W|[:up(\?<!perword:]{,-101}llllllllllllllllll[:upperword:])mmYYYYYYYYYYYYYYYYYYYYYYY*", 0, 0 },
- { "@NHy)", 0, 0 },
- { "([^[^]][:alnum:]222[^22222222(\?{2222222222222222][:lo(\?:werprint:][:xdigit:]^[:blankcntrl:]s+N)[:alpha:]-NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNWxxxxxxxxxxxxxxxxxxxxxxxxxxD[:space:]U)TTTTTTTTTTfffffffffffzzzzzzzzzzzzzzzzzzzzzzzzz})", 1, 0 },
- { "[^[^[[^[][^[]pP([^\?[^<=(\?=]){158,})]]]][:digit:]]K22222222222p^dUKJ`\">@]", 1, 0 },
- { "[^[^[(\?imsximsx::p(\?{unct:][(\?>:ascii:]5w)]{159}\\Q\?@C]4(44444444}[^)|)[:graph:]]C:b)", 1, 0 },
- { "[^[[(tYri[W<8%1(\?='yt][:lowerprint:[]))1r]][:alnum:][:digit:]{48}{-52,-183}+][:alpha:]r][:upperword:]\?{-105,155}{-55,-87}pPN#############################{63,232}]", 0, 0 },
- { "[*(\?>L(\?<(\?>=))]&&&&&&&(&&&&&&&&&&&&&&&&&&))[|WIX]{-62,-114}S K=HW60XE<2+W", 1, 0 },
- { "(00000000000)z\\\\*t{}R{88}[:alnum:]*", 1, 0 },
- { "(([^(\?=\?gggggg[gLw)]{-250,}[:xdigit:]yZ[:g(raph:]8QNr[:space:][:blankcntrl:]A)][:digit:]D)[:xdigit:])", 2, 0 },
- { "[^([^,(\?<!]*))]", 0, 0 },
- { "[^(\?{[:alnum:]]}}}}}}}}}}}}}}}}}}}}}}}){-83}", 0, 0 },
- { "WWWWWWWW[:alnum(\?<=(\?#:]{,-1})@OSSS)[:digit:]", 0, 0 },
- { "[^(\?!*]+G)", 0, 0 },
- { "[LLLLLLLLLLLLLLLLLLLLLLLLLLLLLL>s8.>[^{}$(\?(]]XXXXXXX)XXXXXXXXXXXXXX[:alpha:]Whii\?p[:xdigit:])+", 0, 0 },
- { "(7777[:blankcntrl:])", 1, 0 },
- { "[^C[:digit:]]{}YYYY(YYYYYYYYYYYYYYYY)", 1, 0 },
- { "on|,#tve%F(w-::::::::::::::::::::::::::::*=->)", 1, 0 },
- { "([((\?=(\?!((\?=')))27(<{})S-vvvvvvvvvv(\?=vvvvvvvvvvvvvvvvv[:punct:][:alnum:]}}}}}}}}}}}}}}}}}}}}}}}PPPPPPPPPPPPPPPPPPPPPPPPPPPPPgggggggggggggggggggggggggg(\?#(\?#gggggg<X){}]{-164,61})>+))uQ)W>[:punct:][:xdigit:][:digit:][:punct:]{}[:digit:][:space:]){,-105}=xiAyf}o[:alpha:]akZSYK+sl{", 1, 0 },
- { "[^[^]/S:Hq<[:upperword:(\?<=]W[:alnum:]X])1973", 0, 0 },
- { "[[^[[^([^VVVV(\?!(VVVVVVVVVVVVVVVVVVVVV[VVVVX][^]2))98ppppppppppppppppppppppppppppppp/////////////////////b.]G{-101,}[:[ascii:]P].=~])AAAAAAAAAAAAA2{-153,}]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]][:alnum:][:lowerprint:]WN/D!rD]|4444{180}]V_@3lW#lat]", 0, 0 },
- { "[^[^([^TTTTT(\?:T(\?:T7777{,59}])[:graph:][:ascii(\?<=:]))f]AD{,-43}%%%%%%%%%%%%%%%%)S|[:digit:]FZm<[:blankcntrl:]QT&xj*{-114,}$[:xdigit:]042][:xdig[it:]{-180}027[:alpha:][:ascii:][:lowerprint:][:xdigit:]^|[:alnum:][^Mi]z!suQ{-44,-32}[:digit:]]", 0, 0 },
- { ")", 0, 0 },
- { "''''''''''[:a(\?imsxisx:lnum:])P", 0, 0 },
- { "(([{20(\?<=8}[:alnum:]pP$`(\?#N)wRH[:graph:]aaaaaaaaaaaaaa(\?=aaaaaaaaaaaaaaaaP]a)))[:punct:]-\?)A^", 2, 0 },
- { "[^(.//[:punct:]&-333333333333333333333333333(\?<!33)LLLLLLLLLLLLLLLLL[:alnum:]$1]~8]|^\"A[:xdigit:]\?[:ascii:]{128,}{,-74}[:graph:]{157}3N){-196,184}D", 0, 0 },
- { "[^($(\?{(\?<=)[#)]})[:space:]]nWML0D{}", 0, 0 },
- { ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,[^]x{213,-93}(\?{A7]V{}})", 0, 0 },
- { "[k(\?=*)+^[f(])r_H6", 0, 0 },
- { "[(\?#(\?{)]q})", 0, 0 },
- { "([GLLLLLLLLLL(\?!((\?:LLLLLLLL]))C#T$Y))^|>W90DDDDDDDDDDD[^DDDDDDDDDDDDDDDDDDDD]B[:punct:]c/", 1, 0 },
- { "[^(\?<!)(\?{b}){,199}A[:space:]+++++++(\?!++++++++{36}Tn])", 0, 0 },
- { "()[:alpha:]a", 1, 0 },
- { "[(\?(:blan)kcntrl:])lUUUUUUUUUUUUUUUUUUUUUUU", 0, 0 },
- { "[^[^(s[[[[[[[[[[[[[[(\?#[[[[[[[)\?`````][:blankcntrl:(\?>]|)p1EmmmmmmmmmmmmmmmmmmmmmmmmmmmmL{-241}666666666666666666666)]^bLDDDDDDDDDDDDD]", 0, 0 },
- { "[nn(\?<!nnnnn(\?#n8)=````````````````````{41,}]U,cb*%Y[:graph:]).[:alnum:]\\\\\\\\\\gt", 0, 0 },
- { "()\?5{,-195}lm*Ga[:space:]Y", 1, 0 },
- { "[(\?:].di)c", 0, 0 },
- { "([([^([\?{})Za,$S(\?!p(\?{++(\?##V(\?<!Evuil.2(\?<![^[h|[^']C)*\"]5]", 1, 0 },
- { "[((^24(\?#4[^Kkj{}))]]{232}47)077[:alpha:]zzzzzzzz{}", 0, 0 },
- { "[^(\?:[^F]o$h)-iV%]", 0, 0 },
- { "[[^[([((([^(\?{[^((\?=)kaSx(\?imsximsx:w3A[`%+A$I{,62}ns&Y!#ay o9YAo{Y>1((\?>\?#45)Z{,108}{}11111111111111111111111111qqqq)\?][:lowerprint:]mbo#)@", 0, 0 },
- { "[^iii8(888888(\?<!8^]))s", 0, 0 },
- { "([[(\?(\?:({^]}[)[(r)])G]{,-87}", 1, 0 },
- { "([[^{249,}(\?>(\?=)]]T()[:bl(\?!ankcntrl:]=jjjjjjjjjjjjjjjj-)))t{}[:alpha:]-\":i! Gn[A4Ym7<<<<<<<<<<<<<<<<]", 2, 0 },
- { "^{}{[^,241(\?#}(\?m(\?ixim:sximsx:]t))+oD)", 0, 0 },
- { "5[(\?#:xdigit:])", 0, 0 },
- { "[^f{(\?>,22(9}[^[^])6KKKKKKKKKKKKK)]RRRRRRRRfuK99999999C}osnNR]BgCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC[:blankcntrl:]", 0, 0 },
- { "[^(\?=U){24,}W-{,17(\?:3[^}]q.nQ#PU_|i$$$$$$$$$$$$$$+)[:dig(\?<!it:]){-98}\?[:upperword:]]", -1, 0 },
- { "[(\?<=[0(\?!72])euE.]{,-159}[:alnum:]t-:l\?)$yyyyyyyyyyyyyyyyyyyyyyyyyyfffffffffffffffffffffffffff", 0, 0 },
- { "[^[^]q[:asc(\?imsxmsx:ii:]JJJJJJJJJJJJJJJJJJJJ[:graph:]]$)`#DdY^qqqqqqqqqqqqqqqqqqqqqqqqqqqu>4^4ta[:alpha:]", 0, 0 },
- { "(((b0HN)q))p5<T())`7JJv{'cv'#L8BNz", 4, 0 },
- { "[pFp2VttBg(\?<=7777777777777|TTTTTTTTTTTTTTT[:space:]Z]^p\"[:blankcntrl:])", 0, 0 },
- { ")aM@@@@@@@@@@@@@", 0, 0 },
- { "([^[(\?<![^])", 1, 0 },
- { "()Z[:ascii:]", 1, 0 },
- { "(fuPPo)..........................[:xdigit:]{}{,4}*kkkkkkkCx#,_=&~)|.2x", 1, 0 },
- { "[+(\?<=){}++++++[:alnum:](\?=+]s)[:alnum:]~~~~~~XXXXXXXXXXXXXXX.[:digit:]", 0, 0 },
- { "[{}[^^(\?(]))CCCCCCCCCCCCCCCCCCCCEg2cF]{}3", 0, 0 },
- { "([[[^[^[^([[^[^([(\?<=G[[)=(\?!===(\?isximsx:==(\?#==[^=====(\?{==================$T[[^^u_TiC.Fo.02>X)uH]$})354b[:alnum:]]]EVVVVVVVVVVVVVVVVVVVVVVVVVVVVVz[:digi(\?(t:][:upperword:])", 1, 0 },
- { "([:blankcntrl:]t-){121,}[:ascii:]444444{}[:graph:]E040", 1, 0 },
- { "[^{134,}]DzQ\?{-30,191})z,\?1Vfq!z}cgv)ERK)1T/=f\?>'", 0, 0 },
- { "@v)<yN]'l-/KKKKKKKBBBBBBBBBBBBBMa2eLA[:digit(\?<!:])\"\"e|l$&m`_yn[:blankcntrl:]uuuuuuuuuuuuuuuuuuu[:punct:]", 0, 0 },
- { "[[999999999999999(\?<=(\?:(\?ixmx:(\?>))])Y]|){,10}\?{}", 0, 0 },
- { "([[[(\?!^]P-AA[AAAAAA[A[^A)r]+B]])", 1, 0 },
- { "3}|[:ascii:][:punct:]()", 1, 0 },
- { "()dw", 1, 0 },
- { "[N]{})))))))))))))))))))))))", 0, 0 },
- { "[[[^([[(\?()(\?#)++([^\?{+++[^+++++++++++(\?!+(\?=+++++++r9/n]N7{-219}{-91}pP[:punct:]T]mROm+~[:digit:][:digit:])Y:", 0, 0 },
- { "[^'Pu[(\?<!D&]_a[:alnum:]E<,F%4&[:xdigit:])][:lowerprint:]", 0, 0 },
- { "tttt(tttttttttt*uKKUUUUU)", 1, 0 },
- { "([:ascii:]GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG)+kX______________{}GGGGG\?TUH3,{67,77}|[:graph:]C{,-136}{}[:upperword:[]{,-6}&]T84]n={C", 1, 0 },
- { "[:upperword:]DC[:u(\?<=pperword:]*d`H0\?m>~\?N|z#Ar--SO{,-141}076)G\?{,-110}M+-[:alpha:]", 0, 0 },
- { "{,-214}{,10(9})", 1, 0 },
- { "([^xxxxxxxxxxxxxxxxxMMMMMMMMMMMMMMXW])].[:punct:]Q`{-63,63}Uua[:alnum:]\?OQssb#L@@@@@@@@(@@@)[:graph:]", 2, 0 },
- { "[[^(\?!```[^``````````````(\?<=``(\?>````````M/////(\?!////////////////////[^GD!|#li]~)*.$]))Tq!]C[:lowerprint:]Qk[{}]]JJJJJJJJJJJJJJJJJJJJJJJ{e])c", 0, 0 },
- { "$[5(7ES])[:xdigit:]%{MRMtYD&aS&g6jp&ghJ@:!I~4%{P\?0vvvvvvvvvvvvvvvvvvvv\\\\\\\\\\\\\\\\\\\\\\\\x54[:lowerprint:][:upperword:]", 0, 0 },
- { "[((([(\?((\?>[:alnum:][):as(\?<!cii:(\?:]Re))K|)|^){-28,89}l<H.<H:N)QKuuuuuuuuw8E136P)^)[:ascii:]][:xdigit:]-", 0, 0 },
- { "(pjvA'x]=D\"qUby\\+'R)r\?C22[:ascii:]", 1, 0 },
- { "[]*b~y C=#P\"6(gD%#-[^FBt{}]${-244}", 0, 0 },
- { "[:up(\?!pe(\?=rword:])lA-'yb\"Xk|K_V\"/@}:&zUA-)W#{-178,-142}(){-202,}", 1, 0 },
- { "()1.WldRA-!!!!!!!!!!!!!!!!!", 1, 0 },
- { "lZZZZZZZZZZZZZZZ(Z[:al(\?:num:])ttttttttttttttttttttttttttttttg.)6$yyy", 1, 0 },
- { "[([^([^[^(([([^[^(([[$(\?{P(\?=(\?<(\?!=(\?#P[^Y])<GA[:ascii:][(\?#(\?<!:alpha:](B{100,})]}))\?)XU=", 1, 0 },
- { "[[dVw{6(\?{9,}2222kkkkkkkkkkkkkkkkkkkkkkkkkk|{}*E]]{}SB{35}-w%{eh})<{-178,}", 0, 0 },
- { "(D(~))", 2, 0 },
- { "[(:alpha:]{,90}Z|)[:ascii:]Du\?[:grap[^h:]^w+|{}][:ascii:]", 0, 0 },
- { "[:p(\?<=unct:]kkkkkkkkkkkkkkkkkkkk)", 0, 0 },
- { "{}[:((\?<!dig((\?#it(\?#:]())p))ZZZZZZZZZZ[:blankcntrl:]){}{-124,})[:ascii:]", 1, 0 },
- { "[[:graph:]{168}lRRRRRRRRRRRRR(\?#RRRRRRRRRRRRRRRRR)rrrr(\?(rrrrrr)rrrrrrrS[(\?<!@f)6>{,-49})q${98,}J\?]){", 0, 0 },
- { "([:pu(\?(nc)t:]F{-32,-102}+)\?cpP[:lowerprint:].^)", 1, 0 },
- { "([{}{210,-238}]1:h)", 1, 0 },
- { "([]QQQQ[QQQQQQQQQQQQQQQQQQ][:digit:]Z{-20,}Slllllll[:space:]C^(@{-174,-156}fx{cf2c}{-242,}rBBBBBBBBBBBBBBBBBBc[:alpha:]N\?))$[:graph:][:ascii:]P+nnnnnnnnnnnnnnnnnnnnnnn1N$r>>>>>>>>>>>>>>>>>>>>>>>>(>>{,88}{,-234}__________)[:upperword:]R.[:alnum:][:lowerprint:]^}\"", 3, 0 },
- { "([^(\?=]-))$", 1, 0 },
- { "([:ascii:]\?,D[:upperword:][:xdigit:]tttttttttttt[^tt(\?<!ttttttttt21f|.(pP[:punct:])])rrrrrrrr)", 1, 0 },
- { "([{1(\?=16}iiiiiiiiii((\?<=iiiiiiiiiiiiiiiiii|ZZZZZZZZZZZ(\?(\?#{ZZZZZZZ))c}))<<<<<(\?#<<<<<<<<<<<d7CVq8]w{-148,-168}\\Gp){-230,}D3", 1, 0 },
- { "[^8888(88888888888EX].[:alnum:]){}", 0, 0 },
- { "([^][^)2]-[:lower(\?=print:]{,79}[:graph:]n)", 1, 0 },
- { "[bSi\?x_mp(C)0{64}[:space:]hhh(\?(hhh)hhL){5,130}'w\"$l&[:xdigit:][:alpha:]IIIIIIIIIIIIIIIIIIIIIII+-SOOOOOOOOOOOO (\?( ) ]f)ed", 0, 0 },
- { "[[^[(^(C.Jl[^X&Rb64a+Sd])'m[:alpha:])]]]{134,}", 0, 0 },
- { "()L", 1, 0 },
- { "[[(({224,(\?#88})@======(\?!=========(\?{=)PPP)i^@p(\?([:punct:]})^^[^^^^^^^^^^^^^^^^^^^^^@)m]|{CS{,-3}168)-[:xdigit:][:upperword:]hnD=Bns)z)AAAAAAAAAAAAAAAAAAAAAAA[^A{}ccccccccccc)SZ]Q-p.sD]]+P", 0, 0 },
- { "[[^[^]{135,}66666666666666666666[6(666i2M9.!uhmT\?JMm.*(\?!+)[:alpha:]eeeeeeeeeeeeeeeeeeeeeeeeeee]]])ZZ[:blankcntrl:][:ascii:]", 0, 0 },
- { "(13[3Ux>{,10}[(\?<=:xdigit:]))PL9{-89,-181}F'''''''''", 1, 0 },
- { "[^.|(\?{af]})^$XE!$", 0, 0 },
- { "(WWWWWWWWWWWWWWWWWWWWWWWWWWWW#J)", 1, 0 },
- { "({}}M7we-216)L[:digit:][:upperword:]", 1, 0 },
- { "([:aln[^u(\?=m:]))].z", 1, 0 },
- { "([:alpha:]{(92})%6{41,136})Vij@[:alnum:][:lowerprint:]", 2, 0 },
- { "[[[++(\?{+++{}})n{{137,}{51,-177}Z[]M*[:ascii:]{(-29,-47}2)$e^{,-195}{-156,}^]{}{-225,69}A]{-222,}{,20}m[:blankcntrl:]", 1, 0 },
- { ")l)[:alnum:][:graph:]g8TTTTTTTTTTTTTTTTLLLLLLLLLLLLLLLLL", 0, 0 },
- { "[([(\?<=.(\?{)/})mmmmmmmm(\?(mmmmm]{-154,-176}*S)I]", 0, 0 },
- { "[(([{(\?(\?<!im(\?imsix:sim(sx:,141}])D)l{,42}ttttt[(\?::punct:])){-162,-141}{-26,})dU@@@@@@@@@@@@@@@ S)\\A\?w|VVVVVVVVV)X.kN{,21}{-208,-52}>[:lowerprint:][:ascii:]e-]]]]]]]]]]]]]]]]]]]]]", 0, 0 },
- { "[^({}(){(66(\?=,}[^]'''''QQQQQQQQQ).P#>^){86,168}Z[(\?<!:lowerprint:]{-166,-70}<k", 0, 0 },
- { "APP[:alpha:][:alnum:]nd[:upperword:(\?(]^xxxxxxxxxxxxxxxxxxx)xxxxxxxxx{-70}[:punct:]l)U-", 0, 0 },
- { "[^(.\"od~(6({[^(\?<!228}\?)\?)######(\?:#########z )c(\?<!aQ`(\?{UKSwu[})][^-17]{11,}}][:ascii:]))^RiH+WyspP[qi&)=p6])[:space:]{-221,}]6p", 0, 0 },
- { "{-78}()[:xdigit:]{155}{,-92}", 1, 0 },
- { "[(\?>Q{,147}_____________(\?!______uuuuuuuuuuuuuTr]){74,179}{}){,103}{-209,16}*RRRRRRRRRRRRRRRRw{,87}9{144}[:ascii:]'<Ab", 0, 0 },
- { "([666c] {-171}yc,8-k_)EEEEEEEEEEEEEEEEEEEEE<", 1, 0 },
- { "[^(\?>(\?<!)2(\?imim:)6HwN)^|fc!(\?(d]75))065)G", 0, 0 },
- { "[[^xDB[:alnum:][:xdigit:]][:digit:]jW]([:alpha:])", 1, 0 },
- { "[ds~T+[x55[:digit:]X[JJJJJJJ.[(\?::upperword:]){,-14}][:xdigit:]bbbbbbbbbbb", 0, 0 },
- { "[qqqqq(\?<=qqqq(\?(qqq)^G[):ascii:]])W", 0, 0 },
- { "[:space:]JJJJJJ[:alph(\?<!a:]|[:ascii:(\?(])[:x)digit:]- XSstG[:g(\?>raph:])^)Ny6RF_ndoU9@*rxW{4,41}4{}", 0, 0 },
- { "[:punct:]{162,}j[:aln(um:].....................[^...]\?>z[:l[owerprint:]){55,222}]", 0, 0 },
- { "(>vWa)OXcccccccccccccccccccccccc[:alpha:]C{,-10}81|m1D^T)[:lowerprint:]''''[:alpha:]l", 1, 0 },
- { "(XZcgM/UI-/mZq-222){-85,-196}[:alpha:]{114}rrrrrrrrrrrrrrrrrrrrrrrr{,157}ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZLkD-&&&&&&&&&&&&&&&-][:alnum:]{}{,111}[:digit:]", 1, 0 },
- { "[^(\?:]MMMMMMMMMMMMMMMMMMMMMMMMMMM)cK[KKKKKKKKKKKKKKKKKKKKKKKK]P{146}", 0, 0 },
- { "([^[^wqesa)n\?L(\?<=FH+G[^rCGmfD]w)m1D\"%}]])", 1, 0 },
- { "[((\?:[^.HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH|S)xd)*[:space:](])[:xdigit:]ngr'G#/B]-----------------------------", 0, 0 },
- { ")[:lowerprint(\?<=(:]l))G p", 0, 0 },
- { "[^[^(\?<(\?<(=(\?imsximx:![(((\?<!\?(^))\?]^)[:xdigit:][:graph:]{-104,})Gf+GD*qc)c]f))])", 0, 0 },
- { "[^([\?())P[:alnum:]w]{-186,-139}-[:space:]RN3w[Fmvpl[:space:][:digit:]&&&&&&&&&&&&}(\?#}}}}}}}}}}}}}}}}}}}])z", 0, 0 },
- { "([[^^*C[()f][(\?=:punct([\?#:]o)]V)]%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%[^x{1f948})]]", 1, 0 },
- { "[(:xdigit:])zE", 0, 0 },
- { "[:pu(\?(nc)t:])(a*){-51}", 1, 0 },
- { "[^(.NKKKKKKKKKKKKKKKKKKKKKKKK-[:upperword:][:space:]`MPi>", -1, 0 },
- { "Nvvv[vv.][:alnu[^m:]+|Crrrrrrrrrrrrrrrrrrrrr[:xdigit:]j1n)v#]", 0, 0 },
- { "[^#}[(\?>:alnum:]).QQQQ[^QQQQQQ!!![!!!!!!!-s.n]se]{-238,}Tf]p4721", 0, 0 },
- { "([((\?#\?<=)+)Hr:-H]z[:graph:].{}oooooo(ooooooooo][:punct:]k<gXG@@@@@@@@@@@@@@@@@@@{,-176}){}L`)$", 2, 0 },
- { "({,249}{-73,}Z&&&&&&&&Ds35MB<v)qqqqqqqqqqqqqqqqqqqqqqqqq", 1, 0 },
- { "[^.N][:blankcntrl:]))))))))))))))))))))))))))))))", 0, 0 },
- { "(()*){198,}", 2, 0 },
- { "{-237,}220{}[:ascii:]```````(`````````````\?{-115,185}){,-18}[:punct:]'|Kk", 1, 0 },
- { "[(\?()])", 0, 0 },
- { "([(\?#[:alnum:]CQ)}}}}}}}}(\?>}}}}}}}(}}}}}\?310[|))xA5r][[^:ascii:]^{,-156}{])CCCCCCCCCCC-145]FzwOD_u\?", 1, 0 },
- { "[^[^[]{-163}{(-203}[(\?!:upperword:]PPGjZ[:xdi(\?=git(\?#:]{-73}s)qqqq(qqqqqqqqqqqqqqqqqq{173,210}[:xdigit:(\?<(\?>=]WW[^WWWWWWW\?*O)))Q){}08)[(\?(\?<=#:blankcntrl:]{90,}]U)])L)ooooooooooooooooooooooooooox--^c[:ascii:]])s)", 2, 0 },
- { "[(\?!:punc(\?imximx:t[^:]4F<}!)]'M-)tKKKa4904", 0, 0 },
- { "[^^{}\\(\?<!\\\\\\\\\\\\\\\\\\(\?#\\\\\\\\[:punct:](\?>)T000000000(\?(000)00000))+])", 0, 0 },
- { "L[:p(\?#unct:])", 0, 0 },
- { "[:upperw(\?<!ord:])", 0, 0 },
- { "@$\"\"\"\"\"\"\"[\"\"\"\"\"\"\"\"\"\"[^(\"\"\"\"\"(\"\"][]))*U{223,138}*o```````````````(\?=[```````````````]{238}mmmPPPPPPPPPPPPPPP&&&&&&&&&&&&&&&&&&)sF$[:digit:[]]", 0, 0 },
- { "[^#Txx[xxxlPB(\?><[^U/)]]{}X3333333333(3333333f*])", 1, 0 },
- { "<<<<<<<<<<<<<<<[^<<<<<<<<<.][(\?#:ascii:])[:xdigit:]|^", 0, 0 },
- { "([:punct:]{}){-167,}{-59,}Pd\"", 1, 0 },
- { "[((\?#{,214})t$)VVV[:xdigit:]{104(\?<=}D][:graph:])|H){1,}{-176,}", 0, 0 },
- { "[[([[^N,,,,,(\?=,,(\?#(\?:,,,,,,,,,,,[^,,,,,,,,,,]<,~4::_.A]){-52,}-[:alnum:]Pnnnnnnnnnnnnnnnnnn)d", 0, 0 },
- { "{-18(3,})uT{4,}", 1, 0 },
- { "[^[^[(p+c(\?<!b$))(\?:EU(\?(.][^{}]3[:xdigi[^t):][:punct(\?>:])[])][:s[^pace:]][:alnum:][:alpha:]]kw06E", 0, 0 },
- { "[^^^^^^JJJJJJJJ(JJ(\?=JJ(.6[:space:]H]{231,}A^eqqq)[:ascii:(\?>(])[(\?>:spa(\?:ce:]xxxxxxxxx)@_t-))138GNNNNNNNNNNNNNNNNNNNNNNNNNN[:digit:]no!`#E\?&[:lowerprint:].)[:graph:]{86,}[:digit:][:alnum:]", 0, 0 },
- { "[:g(\?<=raph:]a{114,146}(){}0Y[:bl(ankcntrl:])D)\?", 1, 0 },
- { "[^[^]*H{-192,96}S|]G)6B-kLB", 0, 0 },
- { "[[^[^][/NS8`um(\?{82&{((\?{\?<!-[110,-88}]m)})kkkkkkkk$$$$$$$$$$$$[^$$$$$@n%BuK@X!P)y0v!^]YY[YYY[YYYYYYYYYYYYYYYYYY///////{}{{{{{{{{{{{{{oiiii})]8{-2[53}w{82,}]{,245}]{-134}]fffffffffffffffffff]\"I>DW>9tN%{113}{unE", 0, 0 },
- { "[:(\?(alpha:]`))Y2sCqWQ104", 0, 0 },
- { "(([^()Wcccccccc(\?{cccccccccccccccccc(\?<!c(ccccc[:space:]$)(\?>)FZ{}{}`|||||||||||||*````````````````````````````'=dLQmx/Y.A7j'o}jn{}:})][:punct:]$|,-)!&Y:Ys#ykL7JJJJJJJJJJJJJJJJJJJJJJJJJ8yex>#mv[:punct:](x@)$[:uppe(\?<!rword:])_)", 3, 0 },
- { "[[(^HHHHHHHHHHHH(\?imsximx:HH(HHHHHH(\?{HH[HH])qjR>9))i})]a!lBW3p{A=or)ShE%[:punct:]{}]5r", 0, 0 },
- { "[:pu[nc[^t:]]]}}}}}}}[}}}}}}}(\?#}])@@@@@@@@@@@@@@@@@@DDDDDDDDDDDDDDDDDDD\?]xA2\?", 0, 0 },
- { "(.[:alpha:]xB7[:alnu(\?{m:]})RRRRRRRRRRRRRRRRRRRRRRRRRRRL)[:space:]G\?", 1, 0 },
- { "[:blan(\?<!(\?=kcntrl:]){71,})!ooooooooooooN", 0, 0 },
- { "()e$$$$$$$$$$$$$$$$$$$$iiiiiiii", 1, 0 },
- { "(b[:ascii:]67777777777777777777777777)({-106}kkk^F-------------------------------{13}A)f00000000sBAddddd{-66}kd!D'", 2, 0 },
- { "(Q ^])[^lf][:space:][:lowerprint:]\?", 1, 0 },
- { "[[^]\\S{152}W![:digit:][[^:space:(\?(]=pEhwY][:alnum:][:digit):][:graph:]])QQIC9h-oowf[:xdigit:]{-52}{,190}1111111111111111111fX{-189,226}W", 0, 0 },
- { "[^(\?!(\?<=)]).h[:as(\?>cii:])[:alnum:]$$$$$[:space:]3$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$1", 0, 0 },
- { "[[$zQ================(\?<!=(\?>=========(\?====D[^))|i{}\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?)][:s(pace:]]))]", 0, 0 },
- { "[^{,-[15(\?#6}]Vwjjjjjjjj[jjjjjjjjjjjjjjjjjjS9999)]q]rWWWWWWWWWWWWWWWW[:punct:]@@@@@@@@@@@@@@@@@@@@@@@@gO[:blankcntrl:]>L[:ascii:]:::::::::::::::::::x11uuuuuuuuuuuuuuuuuuuuuuuuuuuuu{-124,114}[:graph:]C#{tcg[:xdigit:]gZZZZ[:lowerprint:]nA(_{{{{{{{{{{{{{{{{{{{{SS)\\D[:alpha:]", 1, 0 },
- { "[^(\?())]!T\?[:asc[^ii:]E:4},,]I[^b(\?:n4(njj~+{\?'k{7}{189,-194}{ig.[[[[[[(\?#[[[_bs6,JD`1(\?<!WBo]F+{d*VO22z2K1][:xdigit:]))Suuuuuuuuuuu[^u{,117}\?YYYYYYYYYYYYYYYYYYYYYYYYB^]|q]:eY1GGGGGGGGGGGGGGGGGGGGGGGGGGGGe\?)bU[:punct:]", 0, 0 },
- { "[\?UA(\?:]\?)[:xdigit:]A^mmmmmmmmmmmmmm>>>>>>>>>>>>>>>>>>>>>>>>>>>>[^>>>(\?(>)){,-165}]", 0, 0 },
- { "([^[][^n(\?{[[p]#})|][^]L|66666666666[:graph:]][:graph:]2[:xdigit:][:space:]9b})[:digit(\?imsximsx::]+PZ):{}|E)[:xdigit[^:]|>]^[:alpha:]::::::::[:ascii:]````[:ascii:]:", 1, 0 },
- { "[:lowerprint(\?<!:])", 0, 0 },
- { "[[^[]{-47}[:lowerprint:][:punct:]L[(\?::g(raph:]lY[:alnum:])qWYU)}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}[c%$dp5[:alnum:]DDDDDDDD^^%&{,-94}E]{-8,175}[:alpha:]-.^[:digi(t:]CCCC(CCCCCCCCC]).ax72)", 1, 0 },
- { "[[^($$$$$$$$$$$$$$$$$$[^$I((\?{\?(u)\"YuK ZpOHq[!(\?>t|LQT(|)L[(:ascii:])", 0, 0 },
- { "[^[^([:graph:](QpPdyDQ`[:alpha:](.X[:digit:]wwwwwwwwwwwwww(\?imxims:wwwwwwwe(\?<!z)ONNN(\?#)[^])[:space:](KKKKKKKKK{113,}327[:xdigit:]k)]CeeeeeeeeeeeeeeeeeMMMMMMMMMMMMMMMMM)[:lowerprint:]]HHHHHHHHHHHHHHHHHHH]]]]]]]]]]]]]", 1, 0 },
- { "[Q(r(\?=)v]dm[:alnum:][:b(\?{lankcntrl:][:xdigit(\?=:])})P[:graph:]bd/Rx){50}{-150,-172}", 0, 0 },
- { "[(\?(im(\?:sxims:))9]))L", 0, 0 },
- { "[[^[(\?{^Z][^0[:alpha:]]\\XB*{-151}t})][:alnum:]]", 0, 0 },
- { "[([(D\?/////////////////////.'yvYysU&5AU-]kV)*){,123}z]", 0, 0 },
- { "[:alnu(\?{m:][:a(\?=lpha:][:alpha:])n}))7[:ascii:][:xdigit:][:punct:]-", 0, 0 },
- { "[^[:graph:]IIIIIIIIIIIIIIIIIIIIIII][:sp(\?<!ace:])", 0, 0 },
- { "[[[(\?=[[[cDD(\?<!D(\?:DDDDDDDDDDDD(\?<=DDD(DDDDDD(\?:DDDDDDD(\?<=D(\?()])rvp{243,}D$<[:space:]([:lowerpr)int:])])Ea{}U[:upperword:][:xdigit(\?#:]or}Z+34gD{/P NJ", 1, 0 },
- { "[^(,H>)*d2K0DNX5)T(].)[:digit:].", 0, 0 },
- { "([:punct:(\?#])})JJJJJJJJ[:xdigit:]PPUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU.......................0hSk{,89}[:xdigit:].[:xdigit:]Z", 1, 0 },
- { "(LGTTTTTTTTTTTTTTTTTTTTTTTTTT[:alpha:]){-106,113}[:punct:]d|[:digit:]kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk\?wP", 1, 0 },
- { "([^[^<N_-k\?{(\?#18}]i]::::::::::::::::::::::::::)1+LLLLn{}/){-198}", 1, 0 },
- { "([[^(AAAAAAAAAA(\?(AAAAA)AAAAf).LzHHHHHHHHHHHHHHHHHHHHH(\?#HHHHH|)[ZEEEEE(\?#EEEEEEEEE(\?<!EEEEEEEEsG)q[:punct:]{}][:upperword:]D)[:space:][:digit:]+e[:ascii:]].i|JJJJJJJJ+n][:xdigit:]Se)P[:lowerprint:]_______________________________.[:punct:]pP{-172,86}iiiiiiiiiiiiiiiiiiiiiiiii){,-178}", 1, 0 },
- { "([\?=[[^,BDRRPZ{129}*D-[:punct:]]])([:upperword:]ud)\?][:punct:]A", -1, 0 },
- { "(([(\?#((\?{\?=^])c-)C[:lowerprint:]xvkR}k\")ccccccccccccccccccccNNNNNNN[:alp[ha:]{,93}vhlX:|A]2})nSw)]N.", 2, 0 },
- { "()g/qzyiV(x3d|A0wllllll){162}[:space:]", 2, 0 },
- { "qqqqqqqqqqqqqqqqqqqqvvvvvvvvvvvv8[:x(\?imsxmsx:digit:][:alpha:]''''''''''''''''''''''''''')", 0, 0 },
- { "({,226}nf^W=vs$xK^=A=M#b,)V", 1, 0 },
- { "(_T 2BC9N'cccccccccc-87EF#&^eQfDDDn._,m&c`tjAwR #~A)[:(\?imsimx:alpha:])/yHYL6|{-40,47}", 1, 0 },
- { "[[^]{-8(4,138})z[:xdigit:]{180,}]", 1, 0 },
- { "[([^T____________________(\?:__C(\?<=]-)])+[:ascii:])r[:graph:].----------", 0, 0 },
- { "[f{}LLLL(LLp((((\?<!((((((((((((((({,56}]BR`{,52}){-22,}\?[:space:]h>Sow", 0, 0 },
- { "{-179}^[:alpha:(\?!].a'5wacA3\\\\\\\\AAAAAAAA)~^]wC", 0, 0 },
- { ">[:digit:]{,-212}+(`)LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL[:ascii:][:digit:][:space:]", 1, 0 },
- { "[[^[[^RBW{,255(}(\?(\?>=(W)_]uu][:blankcntrl:])O)]]", 0, 0 },
- { "(C_______________________________)2", 1, 0 },
- { "([/ntf_a3].)", 1, 0 },
- { "[:space:]+[(:upperword:],c7[:asci(\?<=i:]ggggggggggg)[:ascii:]/1$$$$$$$$$$$$$$$$$$$$$$$$$$)", 0, 0 },
- { "Xq{109}~EEEEEEEE[:upper[^word:]lgB:X(h[:alpha:]B[:space:]].)IkaH@3}}H'yK~\?[:upperw(\?#ord:(\?:]){=================[:blankcntrl:])", 1, 0 },
- { "(([[^]]$3Xr^$%%%%%%%%%%%%%%%%%%%%%================U[:ascii:])X).FFFFFFFFFFgO[:punct:]oooooooooooooooooooBC[:blankcntrl:]mmmmmmmmmmmmmmmmmmmm[:lowerprint:]rBM~<HAc#Sb&&&&&&&&&&&&&&&&&&&&&&&&&&&&&Cy", 2, 0 },
- { "([([([^(\?:)D]-{M#H >rERRRRRRR[^RRRRR(\?>RRRRR])[(\?=^)X]{207,}U])))Z[:blankcntrl:]]yyyyyyyyyyyyyyyy\?", 1, 0 },
- { "[Q(\?{*[^(\?(\?!!])[:graph:]]})[:alnum:]iE)dGGGGGGG[^GGGGGGGGGG[:xdigit:]w]", 0, 0 },
- { "[^Z(\?!6(\?(\?><=)[:graph:])]BBBBBBBBBBBBBBBB^)", 0, 0 },
- { "[[^([^[^][[[[[[[(\?({[[(\?(\?imsxmsx(\?imsi[ms:::[[[[[[[[[}))]$)){12,})|:::::::::::::::::::[:lowerprint:]{}{-96,-147}){13,}`[:digit:]]\"^Ca%%%%%%%%%%%%%%%%%%%%%%%%%%UUUUUUUUUUUUUUUUUU]]9", 0, 0 },
- { "[^(\?(\?(\?#!<=))JLBS\"zi)'''''''''''['''''''''''''piiiiiiiiiiiii(\?<=iiii]])ZZZZZZZZZZZZZZZZZZ[:space:]", 0, 0 },
- { "({})[:punct:]", 1, 0 },
- { "E9[:blankc(\?{ntrl:]})N", 0, 0 },
- { "[:alph(\?#a:]){198,}sq\?X0B7", 0, 0 },
- { "[^\\\\\\\\(\\\\\\[\\\\\\\\\\\\[(\?<(\?isximsx:={11(\?(9,}\?0])]]))\?FN3M\?{-128,}Z444444)444fbLiVN8)", 0, 0 },
- { "[[^[^([[[[[[[[[(\?>[[[[[[[[[[[[[[[[[[[[[{53(\?<=,-175(\?>}ggggggggggggggggg%))[:alnum:])[:punct:]kkkkkkkkkkkkkkkkkkkkkkkkk)+Soooooooooooooooooooooooooooooooo](WR+--)x36+llllllllllll{,35}]Fqb^=F]KKKKKKaaaaa{,131}", 1, 0 },
- { "(g\"Ssqw<&{Cl{82,}Mdf|9cIlmCW{}[:digit:]4C{}[:alnum:]PP)", 1, 0 },
- { "OOOOOOOU[*evVIIIIIIIIIIIIIIIII(\?#(\?#IIII)]PP[:xdigit:]2222222222222222[:xdigit:]Kx)p[:digit:]", 0, 0 },
- { "([[{248,16(\?=5(\?#}][:alpha:])|[:p(\?!unct:(\?(]", 1, 0 },
- { "[pP((\?=S)(\?#)]$[:aln(\?(um:)]2\?)$GGGGGGGGGGGGGGGGG({-U:c){-61,}[:ascii:]{-202}G", 1, 0 },
- { "()$D[:alnum:]", 1, 0 },
- { "[(\?#^]){}[:ascii:]", 0, 0 },
- { "[uuuuuuuuuuuuuuuuuuuuuuuuuuuuuu]FFFFFFFFFFFFFFFFFFFFFF&2e\?)%oP'mc@z2b}n{<b4_Laz^0LLLLLLLLLLLLLLLLLLLLLLL,,,d", 0, 0 },
- { "{}(^________________''|$)RRRRRRRRRRRRRRRRRRR", 1, 0 },
- { "(H)####################bbbbbbbbbbbbbbbbVSSSSSSSSSSS|tdU\"goeAbPP{-248,81}", 1, 0 },
- { "[^[(\?ims(\?>xisx:)UHpP*n{}]{}fx14<7OEpE>n2150)8888888888888888]^GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGS", 0, 0 },
- { "(d)+", 1, 0 },
- { "[^.(\?(>)(\?=e)])al[:space:]x", 0, 0 },
- { "[^256c(\?!]){-19,}", 0, 0 },
- { "Q)", 0, 0 },
- { "[^s\?\?(\?{\?\?\?(\?#\?(\?<!\?\?\?\?\?\?\?\?\?\?\?(\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?{}]F\?j(jjjjjjjjjjjjjjjjjjn)kTI1f[{1|(\?<=^[^+[:digit:]{}^s^))})))T]{-17}{CCCCCCCCCCa{-21,}{,-146}^uZQB]YuLu-|tUGRMz^^", 1, 0 },
- { "([^.{}.EE[EEEEEEEE(\?<=EEEEEEEEEEEEEEEU]]-@s))$", 1, 0 },
- { "[^([((\?#[#])|a)])[cccccccccccccccc][:digit:]LLLLLLL[:alnum:]}[P%vzl{}^]&", 0, 0 },
- { "({}[:space:]E)101+A{-35,11}", 1, 0 },
- { "(va:7)u[:alpha:]", 1, 0 },
- { "([^[[rrrrrrrrrr(\?:rrrrrrrrrr(\?<!rrrrrrrrry|D'*AH@a{}\?[:space:][:alpha:]^]$ {-225}[(\?(:as)(\?(>cii:])){-107,-139}6/{^[:upperw(\?imsxmsx:ord:]{,-47} ]wuH#nAn)GGGGGGGGGGGGGGGGGr[)]T{91}lJ))[:lowerprint:][:xdigit:][:lowerprint:])]*", 1, 0 },
- { "()[:space:]~!$[:alnum:]JJJJ[:ascii:]", 1, 0 },
- { "[^(\?<=)-]()k", 1, 0 },
- { "(()W){,8}ea", 2, 0 },
- { "({,-56}5G&&&&rrrrrrrrrrrrrrrrrrrrrrrrrrk.8) hWJ,TM)0Yd-", 1, 0 },
- { "(Z-fddddddddddddddddddddddd)-{9}", 1, 0 },
- { "[^<[(\?!:asc(\?:i(\?<!i:])F])[:alp(ha:]b))-}Wwx8B", 0, 0 },
- { "[^[^[^([(\?{}(\?=)(\?())-CCCCCCCCCCC(\?=CCCCCCCC(CCCCC(\?:CCCCCCCC(\?{l[(\?!:space:]})[:upperwor(\?:d:]{-27}[:al[^pha:][:xdigit:]^f", 0, 0 },
- { "[[^]G@>2!+[:punct:(\?<!]{,189}6ZF[:blankcntrl:][:digit:]{,214}){-115,-14}l[:upperword:]{101,}Z[:ascii:]Ld&02|c]<0~<bc", 0, 0 },
- { "(Q)[:digit:]x", 1, 0 },
- { "hT[[:alnum:]\?]O[OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOxFF%^(\?(_LN 8uXQT\"*/L)+l)>qQ[^]e[:ascii:]PP()[:digit:]NQ8%6d=&2I{-62,-142}w]].e{}*", 1, 0 },
- { "{,-219}xxxtEEEEEEEEEEEEEEEE[:pun(\?(ct:])qqq)nnnnnnnnnnnnnnnnnnnnnnnnnnn", 0, 0 },
- { "[:di(\?>git:])W4", 0, 0 },
- { "([^y])Fkvto$", 1, 0 },
- { "[^($$$$$$(\?!$$$$$(\?{$$$$$$(\?<=$$$$$$$$$$$+===)[:alnum:]MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM)Z]{}^[:blankcntrl:]--xxxxxxxxxxxxxxx[^xxxxxxx)\?tVG\?{232,81}{121,}xn{,-226}})tttttttttttttttttttttttmu(\?<!&&&&&&&&&&&&&&&&&&&&&&0b]z)$87{,-192}{}{-242,}", 0, 0 },
- { "l[:dig(\?(it:]|s*)aA[:digit(\?<=:].^.))x[:digit:]", 0, 0 },
- { "[:grap[^(\?#h:]').]Z", 0, 0 },
- { "[:gra[^ph:]t[:digit:]222222222222(22222222222222222H qM]pWZr[:ascii:]-hRb_.)Q{-228,-204}{}", 1, 0 },
- { "AAAAAAAAAAAAAAA(AA)YeX", 1, 0 },
- { "(!dqqqF*^){(,-79}s!!!!!!!!!!!!)", 2, 0 },
- { "[^(\?msxm(\?#sx:]|)ZHYup)j{95}0L:vXB#')d'DX\?m.T034\\\\\\\\\\\\\\\\\\\\\\y5rV{}S", 0, 0 },
- { "(W*O+yl([\?!P(\?:)I]${}{-195,-14}[:upperword:]{}[:xdi[^git:][:space:]X[:grap[^h:]~]zzzzzzzzzzzzzzzzzzzzzzzL)+)Y b.-=jf{-216,}${/!}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}|]", 2, 0 },
- { "[^\\\\\\\\\\(\?<=\\\\\\\\\\\\\\\\m]{-48,234}[:alpha:]s)", 0, 0 },
- { "[(\?{U}(\?<!)])LLLLLLLLLLLLLLsssssssssssssssssssssssssss[:ascii:][:blankcntrl:]---------b", 0, 0 },
- { "[^[^[(\?#)(\?imsxims[x:)<<<<[<<<<<<<<<<(\?<!<<<<<<<([^\?(<<<<<<<<<<z(\?(zu(\?<=~83}aZpIE)[:alnum:](\?imsximsx:(\?!jrE6(\?<!\?V(SzDU)000[000000000((\?=\?)=0])L|lOYuWXk", 0, 0 },
- { "$o[:dig(it:]nnnnnnnnnnnnnnn{-94}|G)[:alpha(\?!:] {,-108}D=\?>[:digit:]S[:space:]t", 0, 0 },
- { "()n", 1, 0 },
- { "[:upp(erword:]$)<}.vZM<lEY5Y*", 0, 0 },
- { "[^([^\?>)rCD&{5(\?msxisx:7,}qqqqqqqqqqqqqqqqqq{31,}@w#W:(@(\?:zp$YYYYA[:alpha:]{1}A)*dZJ\"5OG|\?(\?#a])]|){-150}[:xdigit:]", 0, 0 },
- { "[($)gwo{`\"]{-160,}\\\\\\\\\\\\\\\\\\\\\\\\\\66666666666666888888888888", -1, 1 },
- { "((}DA+Rc000000000000000000)%vvvvvvvvvvvvvvvvvvvvv%C&emZ*[:alnum:]#m/D[:graph:][:blank[^cntrl:]E{,168})kkkkkkkkkk000000000000000]", 2, 0 },
- { "[^[u*(\?#x01234)oxGGGGG(\?([GGGG)GGGGGGGGG]^U)!!CCCCBM`4QB^XEN]{,-60}[:upperword:]G]", 0, 0 },
- { "(%)~t{S,K^MI3PMo)=b", 1, 0 },
- { "[[[^]{}eU([:xdigit:]&&&&&&&&&&&&&&&&&)\"W|43[:alpha:][:graph:]J8b[:blankcntrl:]gggggQ{,183}{,-254}\?[:ascii(:]{,134}", 1, 0 },
- { "[[([^[^([^(\?=)1RRRRRRRRRRRRRRRRRRRRRR(\?:(\?(\?(\?!=#RRRRR(\?=RRRR(\?<[^!Ru)])]o[:[graph:[^]{,7})[:digit(\?::]{-215,}e[:space:]]", 0, 0 },
- { "({{{{{{{{{{{{{{{{{{KKKKKKKKKKKKKKKKKKKKKKKKKKKKBBBBBBBBBBBB)[:space:]0[:alnum:]HcctQA", 1, 0 },
- { "[^(pP7(HsN[^g{186,-87}\?\?]EQ%u:-Y)+>>>>>>>>>>>>>>>>>>>>>pP][:alpha:]", 0, 0 },
- { "[(.{141}h|)((\?:\?=@Q} ghcC{+*(R)D+][:lo(\?#werprint:]zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz))", 0, 0 },
- { "[^({}S)PPFl(])-216", 0, 0 },
- { "[([[^(((([(\?#^[^[^\?4[(:[dig[^it(\?(:]{122,})y\?", 0, 0 },
- { "[[2${188}u{1(4(\?(1,1(\?{98}e{&tbaoI]q)[:punct:])d}))Nqffffffffffffffffffffffffffff[:ascii:]+]", 0, 0 },
- { "()K-", 1, 0 },
- { "[[{2(2((\?(\?!()2})])[:alpha:]fVVVVVVVVV{-47}):::::::::::)\?vwyyyyyyyyyyyyyyyyyyyyyyyyy-]{}", 0, 0 },
- { "ivcs)g", 0, 0 },
- { "(hhhh[^hhhh(\?{h\?]})%%%%%%%%%%%%%%%)\"+38mbY:s9{/d# zaNnbQb)b:*zpKI{-26,-189}", 1, 0 },
- { "S*(#)[:graph:]lllllllll&G)t", 1, 0 },
- { "([^[(([\?=\?<!)]]___{-63,})]nt", 1, 0 },
- { "[:b(lankcntrl:][:alpha:]*[:pu[^[nct:][:alpha:]A]$aaaaaaaaaaaa*)A[:digit:]U][:alnum:]", 0, 0 },
- { "[^f[^p000{68(\?isxmx:,}(\?!vvvvvv)$)]PP#*{(})[:punct:]&&&&&&&&&&&&&[:punct:]\?][:blankcntrl:]", 1, 0 },
- { "[^(((\?(\?(()))GGGGGGGGG{(\?!($)))((\?!)V^{228,145}))]{-229}Qjjjjj[:punct:]R)", 0, 0 },
- { "[(Q[^((\?{(\?:]~z)})gE(.<){}|)Kuuuuu$*222222222222222222222D]", -1, 0 },
- { "([^`(\?<=`````[^`````````M]\?)=L74A[:upperword:]]P", 1, 0 },
- { "(({}[:space:]qv-T){,-192}{-45}{65}9\?X).d", 2, 0 },
- { "_[(:upperword:]mU(P}qX>\?%)$Lwq[:alpha:]{-115,}================================{127,}", 1, 0 },
- { "e)", 0, 0 },
- { "[{,2[5}Klen+D0'YX(\?<=|_H]I,Y\"*/<3sM[:digit:]])#.", 0, 0 },
- { "[:(xdigit:]){[:digit(\?mxmsx::][:as(\?<=cii:]d!{135})#)pP[:space:]Syyyyyyyyyyyyyyyyyyyy\"Gg8", 0, 0 },
- { "[(\?()])", 0, 0 },
- { "[^([^[^[[^[:alpha:]SIus[^f<f]}}}}}}}}}}][:xdigit(\?=:]Z{-13}*]_[]LLLL)]E[:alnum:]b$)]]]]]]]]]]]]]]]]]]]]]]]]][:lowerprint:][:ascii:]{,40}{86,}333333333999999999999999999999999999*fffffffffffffffffffffffff99999999U9|[:digit:][:upperword:]oowwwwwwww[wwwwwwwwww{195}[:xdigit:]]H{-73,153}R+zAz{}r/////////////{232,}kAoffffffffff[:blankcntrl:]xxxxxxxxxxxxxxx]KKKKKl0,[:alpha:]|{,-165}Qc{96}CCCCCCCCCCCCCCCCCCCC/", 0, 0 },
- { "{}:V(7O-)[:ascii:][:graph:]PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP#", 1, 0 },
- { "[^(\?<[^=CC(CC$)]* c)BBBBBBBBBBBBBBBBBBBBBBB]z{-18,}", 0, 0 },
- { "[[qqqqqqqqqqq(\?(qq235|ttttttttttttttttttttttttttttt[[ttt<<<<(\?{<<<<<<<<<<<<)<<<<<<<<p)/S9(\?{OOOOOOO(\?<!OOOk)})]nIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIb]Z})", 0, 0 },
- { "[^[^(\?>][^((\?<!C(\?!+(\?=)]^8)6nx).)){,-13}[:blankcntrl:]\"(L{}){,29}nnnnn{-83}]l[:upperword:])", 1, 0 },
- { "[(ZZ\"#(\?#Nb(\?<!:U)oRRRR])Zei${Ec/)s", 0, 0 },
- { "[^[^[(\?(t(\?:3```````)`````)|#CB)/////////////////////////////*!liB#|CCCCCCCCCCCCCC(\?=CCCCCCa7N]weTTTTTTTTTTTTTTTT1{}o\?{}BBBBBBBBBBBBBBBBBBBBBBBB.])u{-218,126}.,[:space:]]", 0, 0 },
- { "[[([:alnum:])yyy(\?!yyyyyyyyyy(\?!yyyyyyyyyyyyyyyyyyy[:graph:]I])Uw*X.^[:ascii:]{,-63}[:digit:]{-88})&&&&&&&&&&&&&&]*", 0, 0 },
- { "[[[^K(\?=KKKKKKKKKKKK(\?:KKKKKKKKK[KKKKKK]]U[:digit:])]dd)({,16})xy+Pu)JJJJJJJJJJJJJJJ[:space:][:ascii:][:upperword:]ql_jywmt4B+]{-30,}^555555555Xza[:punct:]", 1, 0 },
- { "[[^^XXX(\?:XXX((XXXXXXXXXXXXXXXXXXXX)v)$N9$r\"\"\"\"\"\"\"\"\"\"\"\"\"].{,239}$[:punct:]\"9999][:alpha:]{}c){,55}s[:upperword:][:xdigit:]310", 0, 0 },
- { "[@([^I8oNl)]-{-203,-224}{-78,}KKKKKKKKc{-66}[:xdi(\?=git:]==========){}f{-124,}[:upperword:][:lowerprint:]]{}--------l+", 0, 0 },
- { "[^]ozp+0(\?#\"[(\?()X]))[:blankcntrl:][^e{99,222}JJJJJJJJJJJJJJJ3F]\?[:blankcntrl:]l$ot", 0, 0 },
- { "[[^[[((\?isximx:)2222222222(\?=22222[:graph:])+U)((\?{\?<=(\?()iYv8qc@#y)G])+}))FvnP\"7OZ-b273[:ascii:]Ak6*`S[:digit:][:graph:]]{2}^G{79,}DDDDDbbbbbbbbbbbbbbbbbbbbbbbb(bbbbbbb)|tP48y{wNJ_S hJbY]]dc", 1, 0 },
- { "[:alph(\?{a:]p1[:lowerprint:]}){163,}", 0, 0 },
- { "W()", 1, 0 },
- { "()``````````````````````````[:ascii:][:alnum:]{,26}[:graph:]", 1, 0 },
- { "[:al(\?<!num:]|byyy,*)U5%u${190}-{-221,-33}k7777777777777777777777777777777+eXXXXXXXXXXXXXXXXX[X(\?(XX)XX)S'vEAa]*e", -1, 0 },
- { "[^(([R_AC[lE'{2(\?{28(]8LTt[]b[:punct:]]O)|2[:graph:][:space:]}) x3C[:alpha:])uI+dddddddddddddddddddddddd{-165,}FFFFFFFFFFFFFFFFFFFFFFF)cccc*[:upperword:]]G{,-38}{24,}555555555555555555555555555VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVZ[:blankcntrl:][:ascii:]", 0, 0 },
- { "[^QQQQQQQ(\?#QQ(QQQQQQ[:punct:][:space:]){(\?(\?:!}[:graph:]t}}[^}}(}}}}}444444[^444444444444444444444]\?]G)E)L{,-103}{84,}r$ii]-[:alp(\?<=ha:]S5G~9>n*)P<3tttttttttttttttttttttttttt)n{}[:graph:]eeeeeeeeeeeeeeeeeeeeeeeeeeeeeee{,83}[:digit:])0BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB[:alpha:]{-155,}{151,}", 0, 0 },
- { "Ue{,254}+f[:lowerp(\?<=rint:]U.fff)", 0, 0 },
- { "QQQQQQQQQQQQQQQQQQQQQQQQAY<J)'MPi_u%#2doopqU7/{103}[:graph:]e!7{GOr", 0, 0 },
- { "[^({,[^233}[^d)BBBBBBBBBBBBBBB=======(\?>===========[^=S|[^[:alpha:]G/]qqqqqqqqq{}[:xdigit:])..k", 0, 0 },
- { "[([^[[:space:]ffffff(\?=ff]M]))[:xdigit:]UbCI,CzalLU*y5I[:digit:]r{-30,180}{-209,-45}Paf]", 0, 0 },
- { "[^[h(\?{hhhhhhhhhhhhhhhhhhhhh})]{,143}[:lowerprint:][:ascii:((\?(\?=])[:asc)ii:])zp]", 0, 0 },
- { "[[(\?{]})]", 0, 0 },
- { "[[1\"3m^,(\?<!2((\?!\?#t```````````````````````````)\?)|c^)A^~]{61}W\\\\\\vvvvrrrrrrrrrrr[:digit(\?#:])]F[:upperword:]dX\\\\", 0, 0 },
- { "([${144,}(\?<!)-RAk_F(\?imsxisx:=9]z/))", 1, 0 },
- { "[[^[[[^([[^[^[^([[^([[Uiiiii#####(\?(\?{(\?<!#########(\?=#####).^)(.|>2m[M/2222222222222222222222222222(\?:22222222222(\?#22(\?:(\?=22222{,243}]x68+I/K)11111111111]\\pP[:graph:]$[:space:]^{}A)[:xdigit:]-={>", 0, 0 },
- { "[(\?>[(^()Vty2vvvvvvvvvvvvvvvvz^])ZZZZZZZZZZZZZZZZZZZ----------------5\\dVLSp8UE2m+z3X/Sd", 0, 0 },
- { "[}}}}}}}}}}}}}}}}}}}(\?#}}(\?<=)|*C ]*29JW7O9mEB]pE_OoxN)[:alpha:]", 0, 0 },
- { "([^((\?<=\?)D{,200}.[(\?#:ascii:])[:space:].)[:alpha:]D|[:graph:]{,-41}*LLUUUUUUUUUUUUU{-189,-131}]qHR<k2@P{27}<^e,ub%\?/4){-243}+[:digit:]%*x9lA^", 1, 0 },
- { "([:alpha:]bT&+_)$Z{,212}x26`", 1, 0 },
- { "[^([^(A{[^}g(\?()A9p#54b]-------------------------------).wzD#=f\\)A)8a]]DNNNNNNNNNNNNNNNNNNNNNNNNNN", 0, 0 },
- { "(W000000000000000000000000000000)", 1, 0 },
- { "www(wwwwwwwwwwwww)", 1, 0 },
- { "()555555555555{18}i+[:alnum:]E {}U", 1, 0 },
- { "SqbHoooooooooooo[^oooooo([^ooooooo])\\N[:xdigit:]]oooo`", 0, 0 },
- { "[999999999999999999uE{193,0}lx{7917}[:punct:]4&d]{221,}[:digit:]{49,156}[:lowe(\?<=rprint:])[:space:]{-33}w+", 0, 0 },
- { "[^(\?{})<{220,-193}[(\?=:xdigit:]UUUUUUUUUUUUUUUUUUU'{-18}])", 0, 0 },
- { "b[(\?<=:upperw(\?{ord:][:digit:]})EEEEEEEEEEEEEEEEEEEEE//////////////////){177}C", 0, 0 },
- { "(^).[:alnum:][^[(\?=[(\?{[})DA5{)[[I~y&O\?9>])]][:blankcntrl:]M[:alpha:]x9[:upperword:]|[:xdigit:]b", 1, 0 },
- { "()[:digit:][^[U}-]]{,206}V*WJ@R]\?", 1, 0 },
- { "[^](\?#{}(\?[<=)yv)]r", 0, 0 },
- { "({,-192}//////////////////////7!eW_0eoL){}", 1, 0 },
- { "^[:punct:(]+)IIIIIIIII[:punct:]P$pP", 0, 0 },
- { "[(\?=|U)^-]{-52,-72}[:digit:]*6666666666\?{{{", 0, 0 },
- { "([^f(\?:+{1((\?=34,}]))^)s0bux7\?5`Bwr[:upperword:])Dy+", 1, 0 },
- { "AL{}:::::::::::::::::::::::::::::::{,(104}~@,Ysey@h).", 1, 0 },
- { "[^((.)))(\?()))))))))))))))))))))(\?msxims:))))))))))[)][:upperword:][:alpha:])", 0, 0 },
- { "[^(()f])G^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^T{}N*nK[G]{,61}^^^^^^^^]", 0, 0 },
- { "[(N::(\?<=[:digit:][:graph:][:space:]xB5[(:xdigit:]|Yv{}HHHHHHHHHHHHHHHHHHHHHHHHd).[:g(\?<=raph:])[:digit:]<<)[:digit:])[:space:]Q[:punct:]x7C]", 0, 0 },
- { "[^((\?(\?(())a)(\?!){})W)pP3333333333(33333333333333333333hhh]{})", 0, 0 },
- { "[^ [ a*FFFFF[^FFFFFFFFFFF(\?<[^!FFFF(\?=FF])])L1]{,-52}{B-bxsPKg{,8}[:digit:][:punct:][:upperword:]DD${,-131}", 0, 0 },
- { "($$$$$$$$$$$$$$$$$$$$$$$$$$$$$^pP),,,,,,,,,,,,,(,,,,,,,,,,,,)QQQQQQQQQQQQQQQQQQQQQQQQ", 2, 0 },
- { "[:lowerprint:]|l{(,-54}C{}*-)IIIIIIIIIIIIIIIII", 1, 0 },
- { "()+", 1, 0 },
- { "[(([(\?{[:punct:]]|))[[[[[[[[[[})]WWWWWWWW&$$$$$$$[:graph:]", 0, 0 },
- { "[^(\?{}){(107[(^,}][:space:[]))^w,&aPPPPPP[^PPPPP{117,-213}s\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?]]]222222[:d(\?(igit:]NNNNNN)NNNNNNNNNNNNN8)I", 0, 0 },
- { "[^(\?<!$)|TTTTTTTTTTTTTTTTTTTTTT(TTTT]a8)2<", 0, 0 },
- { "([^[]%[^[^]-][:alpha:]37*:[:space:]]lQvu)[:xdigit:][:blankcntrl:]", 1, 0 },
- { "[[Bl_>9C^:\?X_KK]2sw@hHZT!],uuuuuuut|lFW()'''''''''''''''''''''[:graph:]<~v{-251}0[:digit:]C[{222,}]{,41}{}*g^UuS/{-114}", 1, 0 },
- { "(D{,-79}[:gra(ph:(\?(]C[:ascii:]))I[tC.%tkllll[^llllllllllllllll]&&&&&&)&&&&&&&&&&&&&&&&&&&&&&)]10435", 1, 0 },
- { "[:al(\?{[^num:]]})}x'[:(\?#xdigit:])xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxKKKKKKKKKKKKKKKKKKKKKKKKKKKKTTTr*%{~f", 0, 0 },
- { "[ZQKEEEEEEEEEEEEEEEEE(\?<!]3|.~~~~~~~~~~~~~~303)33333333333333333", 0, 0 },
- { "(-62([:ascii:]5555){-230,}<<<<<<SM[:punct:]{72}|E{160,})Pfqba!{,-188}DS{ +2tRu\"0JG$", 2, 0 },
- { "([^(\?:(Ea00000000000000[:punct:][:graph:]{}]))[:xdigit:]{-65}t){164,}", 1, 0 },
- { "[\?$$$$$$$$$$$$$$$$$$$$$$$$$F......(\?(.).q#R:j6%TTLCdtuM|8*54<GHoqEh9FBW0:W]L0)o][:upperword:]", 0, 0 },
- { "[(\?>[:alnum:]W[:space:]]D)|L", 0, 0 },
- { "(M(MM)[:alnum:]|[:lowerprint:]4)", 2, 0 },
- { "[[^(\?:{}{2[2(\?>0,})]]]Etu)-)", 0, 0 },
- { "([^[^^z[:graph:]]#{-144,96}[:punct:]!4LY//////////////////SSSSSSSSSSSSSSSSSSSSSSSSS[[^:xdigit:]\?`-!L#p0{52}]%{-121,}[:graph:]]WqJ>$6UBg{,7}[:blankcntrl:])[:upperword:]y2wW!A[:blankcntrl:]0CN\?", 1, 0 },
- { "[[^(\?:|+bII(IIIIIII(\?(\?>!)275SIIIIIIIIII(IIIIIII(\?=IIIIII[:graph:]|)`]S\?.}A)[:alnum:]Jgggggggggg{-150,}{-89,})[:alpha:]Q)|07be5:j)]", 0, 0 },
- { "([(\?i(ms(\?=x-x(\?>:))C)]){})>eIqm~lFb[:upperword:][:blankcntrl:]w=[:digit:][:graph:]", 1, 0 },
- { "([HHHHHHHHHHHHHHHHHHHHHHHHHH[^HHH(\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?!!!!!!!!!!!!!!!!!!!!{23}]~J=[:ascii:]tttttttttttttttt])-216", 1, 0 },
- { "B{[^-32,246}{13(\?!0}q>GVQw*[:digit:][:punct:].77777777777777777777`T(-t01odD]\?${}{-247}+gV{131})+[:lowerprint:]m/z~d", 0, 0 },
- { "[t[$FV+(\?=E=[^])]-$U{-22[5,}{253,}08g]$[{}][:xdigit:][:punct:]{-18}{-173,}]{,-191}V_|90", 0, 0 },
- { "()$", 1, 0 },
- { "[^[^((((((((((((((W[(\?::blankcntrl:]&-JH]J){93}LLLLLLL|r{,221}tY/172]-AS", 0, 0 },
- { "[^()(\?{qqqq(\?msimsx:qqqqqqqqqq3999999999999GGGGG|S*W%{,128}][:xdigit:]AJt]}\"Zf!lRpr{>){,36}})", 0, 0 },
- { "[([]^]^)", 0, 0 },
- { "([.(\?#){}[:alpha:]\?S{2}P%Gw]nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnYiq5)>i*r<", 1, 0 },
- { "[ggggggggggg$PPP:S (:]N{239,}|A[:lowerprint:]vvvvvvvvvv[:lower(print:]{-184}({-133,}+)[:punct:]P/Q.OOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", 1, 0 },
- { "(RRRRRRR[^RRRRR[RRRRRRRRR])]", 1, 0 },
- { "[(\?:^])D%", 0, 0 },
- { "()[]#C[+[j]{,29}-]", 1, 0 },
- { "(([(\?(((\?{\?!(\?=\?=#[Es*){02$r'}(\?:3pz)uPPPPPPPPPPPPPPPP(\?(\?>:PPPP][:graph:][:ascii:]`.)[:punct:][:a(\?mxi:lnum:])r)$)[:xdigit:]$[:(\?=digit:])aa[^]a)\?])sQQQQQQQQQQQQQQQQQQQQQQQQQQ^|$)-}))", 2, 0 },
- { "z@@@@@@@y${}[:(\?:upperword:]l\?{,144}-)", 0, 0 },
- { "[:aln(\?:(\?>um:(\?imximsx:]){})FGGGGGGGGGG|-p){,105}", 0, 0 },
- { "[[{17}llllllllllllllll(\?:lllllllll{,(\?#-94}OUUUUUUU(\?#UUUUUUUUUUUUUAA]p[:digit:]{-1(57,}5yyyyyyyyyyyyyyyyyyyyy[:alnum:]v{-185}^^^^^^^^^^^^^)d[[[p)]))", 1, 0 },
- { "()|[:digit:].E2o", 1, 0 },
- { "()3[:lowerprint:]", 1, 0 },
- { "[(\?{(\?#(\?>SN}[^)z+r^t[:digit:]seP[:alnum:]$b1ZY[U(\?<!U4IIIIIIIIIIIII(\?<=IIIIIIIIII]m)]))]4)", 0, 0 },
- { "{,74} qkk[^p]kbi6>{}000000000000000000000000000000$|)", 0, 0 },
- { "[:(\?=digit:])v{164}", 0, 0 },
- { "[:graph:]h[:upper(\?(wo(\?{rd:)])00000[^000000000000}).4OEVf{,-46}]A", 0, 0 },
- { "[](((((((((((((((N{{{{{{{{{{{{{{{{,-1}e]a{-166,-44}", 0, 0 },
- { "([[^[^[(^[]]YYYYYYYYYYY]D.cQ{}[:alpha:]ttttttt000000[^0000(\?<!0000000000000000N::::::::].][:alpha:]#5\?{}{-253,-193}]\\[:ascii:]tS{,35}B)ffffffffffffffffffffffff))/", 1, 0 },
- { "(G)[:alpha:(\?#])W{-197,-220}w8", 1, 0 },
- { "{-2[^00,(\?#-([84}ig+)]]l[:graph:][:graph:][:space:])aaaaaaaaaaaaaaaaaaa{-208,}ea{,224}", 0, 0 },
- { "[^[W(\?<=[B[:xdigit:]{255,}FAAAAAAAAAAAAAAAAAAAPP])[:xdigit:]+][:lowerprint:]${-195}", 0, 0 },
- { "[v{104,}BB].HHHHHHHHHHHH[:ascii:]bbbbbbbbbbbbbbbbbbbbbbbbbbbb(btttttttttttttttttttttttttt){180}", 1, 0 },
- { "[^(i[^iiiiiiiiiiiiiiiiii(ii)n])#######################]", 0, 0 },
- { "(([:space:])[:g(\?>raph:])[:punct:][:upperword:]LV\"t+t!)[:ascii:][:lowerprint:]q", 2, 0 },
- { "[[[^([7(\?[<!)\\PP~D7L (\?imsimsx:(\?= $GS26L3-J(\?()!)]]{-178}%$[:p(\?!unct:]))yyyyyyyyyyyyyy@w,[11!R86:)G*[(\?(:blankcntrl:]267$~L\?{-108}k[:alnum:]So\?Y/eq]-|[:xdigit:]555555555555555555555555555)55555........W*O))][:alnum:]]I{,-126}[:lowerprint:]8\?[:xdigit:]u%wHc6\?:Pc...........................,,,,,,,,,,,,,,,,,,,,,,,,,,,]", 0, 0 },
- { "((3pPp))QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ", 2, 0 },
- { "[[^]{-244[}(\?([^|W0E4]UUUUUUUUUUUUUU[:upper)word:][:space:]{-57,})+L>R]]$PeFuufcBA`qr!!!!!!!!!!!!!!!!!!!!!!!!!", 0, 0 },
- { "[[(\?#F^(\?<!)|)fff(\?!fffffffffffffffff(\?{ffffff(\?:ffffff[:alnum:])]]c.\?-}))", 0, 0 },
- { "[^[^((\?:)ww[wwww(\?>wwwww)3z/57z){34}]/(/////////////[^//////////////////)]E%)L{-133}]*$]", 1, 0 },
- { "(!)GS[:ascii:][:punct:]{235}T'&-_h\"", 1, 0 },
- { "(){}", 1, 0 },
- { "[[^((\?!(\?<=)*QF[:alpha:])([^[^\?<!x60t(\?<!UUUUUUUUUUUUUUUUUUUU)K&d{118}z7nM.G)```````````````````````````E:(\?(){31,}){}]k]){,109}[:space:]]ZZ[:xdigit:]]{-68,}`{}{}e\?[:alnum:]", 0, 0 },
- { "[^{223}.^,-qqqqqqqqq((\?!\?>qqqqqqqqqqqqqqqqqqqqqqqP6W0_'O)Bur*'6&*t)]{65})+", 0, 0 },
- { "([(\?=)]wr$7f5ru){100,}[:xdigit:]y{}[:digit:]{}2n@P|9#mru~97{-189,73}$a", 1, 0 },
- { "({-113,213}){-172,221}B[:ascii:]{,-48}", 1, 0 },
- { "[^[[Xf`````((\?{(\?<=\?imsmsx:`````````(\?!`````````[```(\?mximsx:``(\?(&|o{xIaO][:)space:]3))\?])+)*<|@@@@@@@@@@@@@@@@@@@@@@){-251,}{}]*[:graph:]1!azE\?|-120u*][:lowerprint:]})", 0, 0 },
- { "[[[^##(\?################(\?>(\?(##t)][:punct:])b))<<<<<<<<<<<<<<<<<<<<<<<<<<[:alnum:]y >u=l:rp8i3Ci#]46%NIO-W[:space:]IIIIIIIIIIIIIIIIII]W[:space:]f]l{-253}", 0, 0 },
- { "[:graph:]L{-136,175}{[^}h(\?=t)Q]ooooooooo(ooooooooooooooooo_)[:space:]q\?", 1, 0 },
- { "()$.", 1, 0 },
- { "[(\?<!^$.\?{197}B]$)", 0, 0 },
- { "[:di(git:])[:low(erprint:])qqqqqqqqqqqqqqqq[:digit:]", 0, 0 },
- { "((zzzzzzzzzzzzAUUUU)l$]VD z~)n", 2, 0 },
- { "([^[(\?<=^[]{}][.WWWW)044444444444(\?=44(\?{444(\?{(444444444444e{(\?=}}))..t]+[:(\?<!xdigit:]P]-N}))))|)", 1, 0 },
- { "\\ce[:(\?#asc(\?{ii:])})[:upperword:]`^", 0, 0 },
- { "[:graph:(\?<=])[:alpha:]", 0, 0 },
- { "([:upp(\?=erword:])pC)lp\?", 1, 0 },
- { "(oooooooooooooo\?fN)-[:alpha:]{-213}[:alnum:]qHEu", 1, 0 },
- { "[:punct:]TTTTTTTTTTTTTTTTTTT[:d(\?#igit:])[:alpha:]", 0, 0 },
- { "([^[^[^J4(+++++++++++++++++++++SgDE(\?>\"y8].]:::::::::::::::)pP5-]p)O{,199}xxxxxxxxxxxxxxxxxxxxxx[:ascii:]%", 1, 0 },
- { "([:alpha:]Fs)Z", 1, 0 },
- { "[()]{209}[:alpha:]hhhhhhhhh(hhhhhhhhhhhhhhhhhhhhh)pP<<<<<<<<<<<<<<<<<<<<<<<<<<<<<", 1, 0 },
- { "-{-8,}.[:(\?imsxx:ascii(\?<!:]{-231}aa*{}K^UQL\?)d\?[:lowerprint:]W)q>D9'", 0, 0 },
- { "[#(\?msximsx:#########################-IIIIIIIIIIIIII(IIII(\?#IIIII((\?#[^III{})N.[(\?=:lowerprint:]))CwT,,,,,,,,,,,,,,,,,,,,Sq]$CCCCCCCCCCCCCCCCCCCCCCCuuuuuuuu])))", 0, 0 },
- { "[:xdigit:][(\?#]){13}{,75}lllllllll", 0, 0 },
- { "[c]QQQQQQQQ1+{-252[(\?#}33333])[:upperword:]", 0, 0 },
- { "P@i #>>PF!@8G<[(\?:^P]-)D", 0, 0 },
- { "uZZZZZZZZZZZZZZ[^ZZZZZl*-211{199}(\?!p])EEEEEEEEEEEEEEEEEEEEEEEEEEED[:lowerp(\?msximsx:rint:])", 0, 0 },
- { "[(\?!^])021[:graph:]'", 0, 0 },
- { "\\(\?>[(\?<=:ascii:]{}[:alpha:]d8}G))", 0, 0 },
- { "[^[((\?!1)[^,a|]\?{,242}[:alnum:])X\"a", 0, 0 },
- { "pP[((\?simx::a(\?!lnum:]vvvvvvvvvvvvvvvvvvvvvvvvv)|O0)[:digit:]ooooooooooooooooooooo)\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"", 0, 0 },
- { "_ L:8J-~ Y$[:uppe(rword:]{,-184}]{}6.A)", 0, 0 },
- { "{,105}.(9]]{-12})N@0nOOE", 1, 0 },
- { "HHHHHHHHHH[:xdigit:]uuuuuuuuuuuu{}E^X\\\\\\12601", -1, 1 },
- { "( o)=\"OU7h{V>", 1, 0 },
- { "[[:xdigit:])))))$[:xdigit:]+{152}{,-50}(c),,,,,,!!!!!!!!!!!!!!(\?>!!!!!!!!!!!!!.[:digit:]i>\"O'i9])-175d_", 0, 0 },
- { "[([^[^[^([[Eeee[^eeeeeee(\?(\?<!(eeeeeeeeeeeeeeeeeef|]][:alph()\?>(\?!(\?>a:]a{,166})/////////////////////[:gr[^aph:])Gpu", 0, 0 },
- { "(7)NNNNNNNNNNN132", 1, 0 },
- { "[([\?#^[]{QKm$v])][:alp[^ha:]]", 0, 0 },
- { "(:{86})7{K|[:alpha:]{O", 1, 0 },
- { "([Y(\?{[[^:alnum:][:alnum:][:digit:][:a(\?(lpha(\?(:].})", 1, 0 },
- { "[[({29,-30}([[^:digit:])Y]]J=~{,220}[:blankcntrl:])0ooooooooooooooooooooooooooooooo[:punct:]&]", 0, 0 },
- { "[^1Dx32[:alnum:]]{[(\?::punct:]MMMMMMMMMM)12759", 0, 0 },
- { "([[[]]*|(_])[:u(\?{pperword:]})", 2, 0 },
- { "[:upper(\?(wo)rd:]){-16,250}", 0, 0 },
- { "([^{194}i(\?({161)}PP\\S{}{,-14}]))z{208,225}BpPEt", 1, 0 },
- { "[(\?m-ms:)}&!@29k0sUqzt9}<-x|A$!+G>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>CCCCCCCCCC-][[:space:]][:space:]El", 0, 0 },
- { "()[:digit:(\?isx(\?>ix:]K^WQQQQQQQQQQQQQQs)[:lowerprint:])", 1, 0 },
- { "[a|(\?imix:S(\?(SSSS)SS(\?>S)]W)8t[:ascii:]f$)[:alnum:]111111111111111111111[^[:space:]x{12729}+'''''''''''''''']", 0, 0 },
- { "[^(\?!(\?(\?#=)a)[:punct:]=2)(){}$$$$$$$$$(\?ims(\?#-isx:$$$$$$$$$$$$$$$$(\?#$$s)x{294b}##############################slllll)]){,209}333333333333333333G:v2/K", 0, 0 },
- { "[^]ub(\?<=)vQ6(\?#Z\"3.)[:space:]u[[:digit:]]7777777777777777U'{}sssssssssss", 0, 0 },
- { "(([(])`[:ascii:]b)", 2, 0 },
- { "[[[^[^([^[^(\?=(\?imxisx:[[^w])", 0, 0 },
- { "pppp(pppppppppp-{-175}Nb>k&)sssss{-190,-54}", 1, 0 },
- { "()OJ@`'%[:(as(\?!cii(\?#:]))+pffffffffffffffffffffffffffff{,162}[:ascii:]5)s-[:graph:]", 1, 0 },
- { "[(M{}Ux5{jaW/{}[^u[:alpha:]s^{84,}PPb@Wt$(\?>nha<Yf41a)]{}[:lowerprint:])*[:lowerprint:]][:upperword:]^1gS.^=pp{}FFFFFFFFFFFFFFFFFFFFFFFFFFF33333333333{}", 0, 0 },
- { ")\?L9~h4BQnNp F\\Q{}", 0, 0 },
- { "($)[:upperwor(\?:d:])N[:alnum:]bcccccccc5555555555555555555555555.N[:blankcntrl:]", 1, 0 },
- { "2222222222222222222ppppppppppppppppp[:lowerprint:]))[^B\\e{{{{{f]6#+{,-104}{{{{{{{{{{{{{", 0, 0 },
- { "<[(\?>:al[^pha:]])\"O\"vN", 0, 0 },
- { "[(\?>d8E@b.{(\?<=,-250}(\?=mx48[:punct:]^&)]nAeYY)W)-13272", 0, 0 },
- { "22222222222222222222222222///////////////////[:digi(\?#t:]eM)[:lowerprint:][:alpha:][:alpha:]EEEEEEEEEEE", 0, 0 },
- { "[(\?={38,223})^\\\\\\\\\\\\\\\\L(\?:{,-50}3|)}r]aW\\x70U{-110,}8LUf)w]4+oav", 0, 0 },
- { "G[:upperword:]v[:lowerprint:]-tu)j8CK", 0, 0 },
- { "[([([^().(\?(\?><=c)'(\?<(='(\?<!''''''''(\?(\?<!!'''''''''''(\?=''''''/(|dHj(P>L\?q!G))|)(\?=n(\?(^tk)T-z$q!D|2<rc[^{,53})]jZy))))6)[:bla)nkcntrl:])010])7pE`l[:space:]([:lowerprint:]eXXXXXXXXXXXXXXXXXXXTTTrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr]+[:alph(\?!a:]7)444444444444444444444444l{34,}]J{}yyyyyyyyyyyyyyyyyyyyyyyyyyy)\?'z9~9s.mA", 1, 0 },
- { "().", 1, 0 },
- { "{-205(,}[:al(ph(\?>[^a:]W,[4DLR[^^8THMtVv~KKw(\?>)pPF)].{-245,}]))fffffffffd[:alpha:]zzzzzzzzzzzzzzzzzzzzzzzzzzzzz", 1, 0 },
- { "[^[[^]{-[1(\?imximx:83,}{,182}][:graph:]]^])-bTO X0P", 0, 0 },
- { "[11111111111(\?#11111111]U[:asc([\?!ii:]{,37}+{-89}){-170,218}{-21,})f[:xdigit:]]P.[:xdig(\?:it:]145)YYYYYY$S@:@@@@@@@@@{-150,-109}", 0, 0 },
- { "{-40}<o][^D[(:graph:]]d).Q", 0, 0 },
- { "()APPLn[:xdigit:]", 1, 0 },
- { "[([^\?+++++++++++ [ (\?> (\?( (\?{ (\?!]E{-29})pP)})ZpP", 0, 0 },
- { "(t|{}c[^z^\?(@YLD]bSSSSSSSSSSSSSSS)+{{{{{{{{{{{{{{{[:xdigit:]n>1)WkF}7", 1, 0 },
- { "W22[0Q[^d-d{}PPPPPPPPPPPPPPP<^FZ(\?<=\"[U]Yo}9H'cYy]S[:alnum:]^8wTDH)^u", 0, 0 },
- { "([^[(\?:(\?>((\?#$)(\?{^(\?>))///////////(\?>/ggggggggggggggggg{1(\?!90,-13}\\D)Dyyyyyyyyyyyy(\?!y(\?<!yyyyyyy)})]]$)[:xdigit:]|{}-)#a))nPpP[:lowerprint:]AA)V+q^[:blankcntrl:]", 1, 0 },
- { "([^(\?!]))D{,97}", 1, 0 },
- { "(c){,141}", 1, 0 },
- { "nn[:s(\?<=pace:])[:upperword:]ooooooooooooooooooo*^[:space:]`{-188,129}mmmmmmmmmmmmm^.", 0, 0 },
- { "[[G{(\?imsximsx:2(49}{,-46}r(\?(\?=#Gw]u))[:bl(\?>ankcntrl:]))(^m+)zSiZ F4[!]VV$E{-9,-100}''''('''''''''\?DEOOOOOOOOOOOO###############[:space:])HHHH)[:digit:]'////////////", 2, 0 },
- { "[^*}(\?>)(\?:7Q=#+]KKKKKKKKKKKKKKKKKKKKKKKKKKKG)]]]]]]]]]]]]]]]]]]]]]]]]]][:alpha:]-{}", 0, 0 },
- { "[n(\?<(\?#!nnnnnn55555{205,}!)[:alnum:]^]!!!!!!!!!!!!!!!!!!!!!!![:punct:])[:x(\?(digit:]vr)|'n6W5 D&jk[:punct:]5)", 0, 0 },
- { "[^P(P{(\?i(msxisx:235,}))***])[:alpha:]^", 0, 0 },
- { "[([t(\?<!(\?<!4])[:u(\?=pperword:]))-])}}}}}}}}}}}}}}}}}c{-39,}[:digit:]$-", 0, 0 },
- { "([^)]{241}[:xdigit:][:upp(\?=erwo(\?(rd:]-xF5b{})q[:ascii:])T4U{185}9999999999)()X&Ny[:alpha:]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@{69,}[:alnum:]x{d7f8}p-[:digit:]", 2, 0 },
- { "(f)(${,111}{25,}!\\d{,94}[:blankcntrl:]@[:space:][:ascii:])-237{,232}DQVVVVVVVVVVVVVV)-", 2, 0 },
- { "PP[:g(\?!raph:]){}", 0, 0 },
- { "([[^-][^4[:digit:]NNNNNNNNNNN]TVU:])[:ascii:]", 1, 0 },
- { "(([^(\?[[^<=)][:graph:]+iiiiiiiiiiiiiiiiiiiiiiiiii0INFX[:xdigi(\?(t:][:blankcntrl:]][:graph:]qM6A[:alpha:][:graph:])1*]eFvvvvvvvvvv)v-)U))t{89}", 2, 0 },
- { "[^ZZZZZZZZZZZZZZZiiiiiiiiiiiii(iiiiiiiiiiiiiii{}))))))))))))))))))]))))))))))))))))))))))))[:digit:]-", 0, 0 },
- { "ddddddddd+zzzzzzzzzzzz[:graph(:])ssssssM{-223}[:graph:]", 0, 0 },
- { "[:alph(\?>a:])x11{-144,45}.", 0, 0 },
- { "[]{#y.^(\?{{}&&&&(\?:[^&&&&&&&&)[:punct:]n{190}OylBQ{(\?!-73})2u',x(\?#Ds(\?#{})j(\?{-})})u0(((((((\?{(((([:alnum:])MC})b=71TncyE>[:xdigit:]*\\f]{}]\"p#!8twZT\")[:punct:][:space:]", 0, 0 },
- { "[^(Z6]8)|'@p8{}[:upperword:]MMMMMMMMMMMMMMMMMMMMMMMMMMMM{}7c", 0, 0 },
- { "$0)@#vp,VcJ.Bdh", 0, 0 },
- { "[[^(-])nnnn+s`[:alpha:][:blankcnt[^rl:][:upperword:]{-15,}][:g(raph:]c]){,-177}6[:upperword:]##################{,-14}", 0, 0 },
- { "[[(5C{86(,}PPrrrrrrrrrrrrrrrrrrrrr{150,182})N{}LSC|)-[:alnum:]{}KKKKKKKKKKKKKKKK<4=~7K3PPPPPPPPPPPPPPPPPPPPPPP[:lowerprint:]]]", -1, 0 },
- { "([^(x{145b[5}^hfc.0)+]z@_&lA{-34,}])X\?", 1, 0 },
- { "([(\?<=)(\?!])l)L", 1, 0 },
- { "({-104,}DrPPDF4444444444444[:space:])[:space:]", 1, 0 },
- { "())))", 1, 0 },
- { "[[^((\?>\?(\?[{})q5v}r7t(P)xtffffffffffff))]{,-66}kdExX&-SCeCzzzzzzzzzEc)E,\"^I]x{e629}|{}]", 0, 0 },
- { "[h[:punct:]p\\[\\\\(\?:\\\\[^\\\\)Eo#:C$u[^T/ysA[*%nM:f]{,221}[:lowerprin[^t:]{]bx{f285}E]E[:alnum:]+]1oe3B][:alp(ha:]]fh7}M$l)D{17}", 0, 0 },
- { "IIIIIIII[^IIIIIIX]-_S[:digit(\?#:])33333333333333333333333333[:punct:]iiiiiiiiiiiiiiiiii", 0, 0 },
- { "[^[[:punct:](\?((\?:^ #Q_po(\?=[:alpha:]{}z()(\?!======'wq$Q2)LLLLLLLLLLLLLLLe(C9gggggggggggggggggg[(\?<=:alnum:]()\?<!{-85,}W[[[[[[[[[[[[[[[[(\?{[[[[[[^)(]\?])|uuu[uuuuuuuuuuuuuuuuuu{,-20}p${}]MHI&7s:\?$[:digit:]-:)_V`*{-52,}{250}$:ME9izF/uP[:blankcntrl:]})''''''''''''''''''''''''''''')CCCCCCCCCCCCCCCCCCCCCCCCdd[:ascii:][:lowerprint:].Mcccccccccc2B{-230,}$[:digit:]", 1, 0 },
- { "()|mOAuK~P144[:space:]^9dddddddddddddddddddddddddddddd[:blankcntrl:]", 1, 0 },
- { "[^[^[^.L[^-vEUl(\?>(\?=a!Ib1P]])])~~~~~~~]xE9", 0, 0 },
- { "X()", 1, 0 },
- { "[^()(\?#G(\?<!)(\?=^r])*,XXXXXXXXXXXXXXXXX@)444444444", 0, 0 },
- { "([[((\?<=({,-70})-[:xd(\?=igit:]{,138})", -1, 0 },
- { "[(^]{62,67})", 0, 0 },
- { "([((])[:space:]))", 1, 0 },
- { "(a{(109,})[:alpha:]{,-121}{})]RRRRRRRRRRRRRRRRRRRRRRRR{}{125,}ttttttttt{46,}`[:space:]", 2, 0 },
- { "[^[^([q[8]~.IPmiBSspP)]QpX[pT==8@lulANS]]{,-98}]", 0, 0 },
- { "[^77777777777777777777777(\?>777777])", 0, 0 },
- { "(),e<^X~{[:alpha:]{}G{70}", 1, 0 },
- { "({-211,}'){}", 1, 0 },
- { "[^(\?imsxsx:{}[*])cccccccccccccccccccccccccccccccc<z0W8]$", 0, 0 },
- { "(){2,89}$z", 1, 0 },
- { "((050[^\"\"\"\"\"\"\"\"z]8|j{}{,-112}$).pP)qq1~hW}L", 2, 0 },
- { "[[^[(+xx(\?<!xxxxxxxx(\?!xxxxxxxxxx(\?#(\?>[x))(\?:]r.]]]))[:graph(\?<=:])))", 0, 0 },
- { "[^([(\?#)(\?(\?(<=)l|\?(\?!])kkkkkkkkkkkkkkkkkkkkkkkkkk", 0, 0 },
- { "[:xdigit:]K(KKKKKKK)^3c.OOO{-240,-10}2{-97,-139}*{-34,}[:xdigit:]", 1, 0 },
- { "[([^66666666F(\?>FFFFFFFFFFwpP)LLLLLDeDA&Am$l[:xdigit:]!T5#]n[:alpha:]U*)))))))))))))PP]", 0, 0 },
- { "[[[:punct:]u^[:xdigit:]L(\?:[:xdigit:][[:graph:]PP{21}A[:alpha:]8%I(M%b<eE~#C@r=uG~~~~~~~~~~~~~~~~~~~~~~~~~~~~+w]pP)T]]$$$$$$$$$$$$$$${-121,}|l", 0, 0 },
- { "([(107{,-4(\?=}~[^D)])f]{,46}+ri<)", 1, 0 },
- { "[(\?<=]{,208}+~)", 0, 0 },
- { "[^444(\?<=4444444[:alnum:]&[,i]0)[:alpha:][:upperword:]", 0, 0 },
- { "[^([^(\?()*+)SS(\?>SSSSSSSSSSSSSSSSSSSSSS]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]{,-1}])[:blankcntrl:]===============================[:punct:][:blankcntrl:]Z[:space:][:ascii:]$|$[:blankcntrl:] JR.{,133}[:alpha:]$\?)<]", -1, 0 },
- { "(OL[:u[pperword(:][:s[^pace:].[:spac(e:],,,,]*])$)\?)", 1, 0 },
- { "(VI[:digit:][:alpha:]6)EG", 1, 0 },
- { "({}){-2,-40}rrrrrrrrrrrrrrrrrrrrrrr[:punct:]", 1, 0 },
- { "()q", 1, 0 },
- { "[^([^[([^C|])]{,-56}[:xdigit:]{-144,}V])fYv{-[40,-58}$@@@@@@@@@@@@@]|Y(-]-.]h-[:dig(it:])>>>dddddddddddddddddddddddddd{101,}", 1, 0 },
- { "([P,{1(\?(\?(<=28,-218[^)}LoZX)])!!!!!!!!!!!!!!*[:blank(\?!cntrl:]ed)\\\\\\\\\\\\\\\\\\\\[\\L\?][:graph:]:*Y{-108,120}xCC)]", 1, 0 },
- { "(A[:space:]PP{185}a^!!!!!!lllllll)*db\?$Pfr", 1, 0 },
- { "{-21,-118}kG[(\?{:xdigit:]})[:punct:]{69}Qyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy5{}TTTTTTTTTTTTTTTTTTTTT", 0, 0 },
- { "[[^[P(\?<=P$X>0^d.[:punct:](\?#ccccccccccccccccccccccccc{}3N000(\?>00000000000000000000000000000]f[:punct:]5)).R================{,222}^wwwwwwww$)]-{} ]{,-22}CjP{242,}", 0, 0 },
- { "[(\?#^]{})", 0, 0 },
- { "[^([[([([[([^[^(\?:(\?(\?(!)]\"))h>\"RRRRRRRRRRRRRRRR[^RRRRR{68,-65}7Q(\?{]", 0, 0 },
- { "(P{}){175,}PP{}rttttttttttt", 1, 0 },
- { "[:bla(\?{nkcntrl(\?#:]})))))))))))))))))))))))!!!!sR{})", 0, 0 },
- { " [:digit:]dAAAAAAAAAAAAA^[:ascii(:]55)^", 0, 0 },
- { "($*)dZY", -1, 0 },
- { "[:graph:][:lowerprint:]S[:gr(\?=aph:]{-128,}666666666666666666666{}[:upperword:]|nnnnnnnnnnnnnnnnnnnnnnnnnnB)c[:xdigit:]{-225,}{-4,}{-192,}QQQQQQQQQQQQQQQ@@@@@@@@@@@@@@@@@@@@@@.", 0, 0 },
- { "([:digit:]s{44,}{}{-31,}c{,-130}pP){-241,}UeN", 1, 0 },
- { "([^)((\?>\?#{}hK\"V2\?d][KKK(\?imsxim:KKKKKKKKKKKKKKKKKKKK[^KKKKKKKKKWWWW[WWWWWWWWWWWWWWWWW)B])_l_3", 1, 0 },
- { "[(^[(\?!*){[^,91}].j]*]L)*c|[:alpha:]&", 0, 0 },
- { "[^[[[^[777GGG(\?:W_U(\?imsxms:[:punct:]A]-)[:digit:][:blankcntrl(\?(:]][:alnum:)])]WRRRRRRRRRRRRRRRRRRRRRRRRRRR]{31,}[:xdigit:]][:xdigit:]))))))))))))))))))))))$[:xdigit:]", 0, 0 },
- { "[:ascii:]m*[:punct:]#[(\?<!:punct:][:alpha:]-,7vyXeeeeeeeeeeeeeeeeeeeeeeeee^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^%%%%%%%%%%%%%%%%%%%%%%%%%%%%[:digit:]''''''''''''''''')", 0, 0 },
- { "([^*[(:punct:]9999999999999999999{147,}]j{,193}{171}Z-)){208}0[:graph:]yDt", 1, 0 },
- { "(dw[[:alpha:]U]ttt[tttttttttttttttttttt]Q^171e)[:xdigit:]/", 1, 0 },
- { "[[^((\?#)Tqqqqqqqqqqqqqqqqqqqqqqqqq105++++++++++++++++++++++++++b7V+7dit]])|D", 0, 0 },
- { "{}P7.Ajh[:xdigit:]^[:blankc((\?(\?<=nt[rl:]FFF)-]){}o|a[:grap(\?!h:]))PsssssssssssssssssssssssssssssssN^{-60,}Kb", 0, 0 },
- { "[:alpha(\?(:]$!_+777777777777777777777777O)666)lll[^llllll[^l{{{{{{{{{{{{{{{{{{{{{{|]{-217,}MoEl`7)^)LlU[:alph[a:]({-241,27})]]{-212}{,249}n)X", 1, 0 },
- { "[U|ajP[:alnum:]n[(:digit:]]W)[:graph:]b[:xdigit:].P", 0, 0 },
- { "(([:low(\?-imsx:erprint:]|{}[:ascii:][:gr(\?:aph:])>>>>>>>>>>>>>{,-129}))\?{-226,}^P)R", 2, 0 },
- { "[^[[nnnnnnnnnn(\?=nnnn(\?!nnnnnnnnnnnn(\?#nnnnnn{,-38}N){202,}]$[:alnum:])]t][:alnum:[]^=w){237}][:alpha:]-[:alpha:]+e", 0, 0 },
- { "()[(\?(:digit):]+qc)O88888888{,151}aJ", 1, 0 },
- { "([^([(\?!sv(\?=)d]{-200,})N))]Z{-73,15}", 1, 0 },
- { "([\?\?\?\?|||||||||||(\?{||(\?=||||||||-}[))Ehhhhhhhhhhhhh{,202}&TcfL((\?:>)((\?!\?>$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$8[:alpha:]\\d])]C[:graph:]h*,\"\?u{|mU,a)[:blankcntrl:][:lowerp(\?>rint:])PPnP+9.[:xdigit:]*PPjjjjjjjjjj~y<#*scf_\"^e[:xdig(\?(i)t(:])~$y)^){-131,77}^L%", 1, 0 },
- { "[^[(((\?>)$}h9$B5+yhU/Nqh$YYYYYYYYYYYYYYYYYYYYYShK)3WHw1vMMMMMMMMMMMMM(\?=MMMMMMMMMMMM[:alnum:]/)dddddddddddd(dddddd\"e5zLW)+![:space:]+BHGHfAS]\?IIIIIIIIIIIIIIII*&&&&&&&&&&&&&&&&&&)NNvwDteepjdm<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<${61,219}D][:digit:]0", -1, 0 },
- { "[:punct:][{177,(\?=234}]ix9*)", 0, 0 },
- { "([^K{,3(\?<=4}]I)\?U)", 1, 0 },
- { "[([^[[[^([([^[^(\?=])X", 0, 0 },
- { "[:blankcntrl:(])qd_R\?{\?r[=\"[^[^6]vX8)a+{C%H84CK6Uy#E]sE{208}", 0, 0 },
- { "PPPPPPPPPPPPPPPPPPPPPPPPPPnnnnnnnnnn()[:upperword:]us", 1, 0 },
- { "x{,46}[:graph:]LU{}CU)", 0, 0 },
- { "()-t|[^W{}][:lo[^werprint:]{}]\?b5", 1, 0 },
- { "()x5A", 1, 0 },
- { "[([^]-217)]s{-47,135}0000000000000000000000000000000{,-108}", 0, 0 },
- { "[^((\?{[^L\?u]})f", 0, 0 },
- { "()[[^^(\?{y(\?=VF_(\?<=]D}))]-= {46,})^5bIEQ{,-96}Z", 1, 0 },
- { "([^{}f[:punct:]\"X%%%%%%%%%%%%%%%%%%%%]5{-194}A[:punct:]mnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn+AAAAAAAAAA-)", 1, 0 },
- { "(CCCCCCCCCCCCCCCCCCCC{-230}352{-182,-68}O4{})", 1, 0 },
- { "([^[^\?[:space:]$TTTTTTTTTTTTLLLLL[^LLLLLLLLLL[^({}{4,-179}]]J] C]){}C{}{-224,})QQQQQQQQQQQQQQQQQ^", 1, 0 },
- { "([[:alnum:]].){-155,-82}dzI{55,}^", 1, 0 },
- { "([[:alnum:](\?#{88,-178})[:graph:]NC\"pI[:punct:]rmWd5y^p+gUP]YYYYYYYYYYYYYYYYYYYY~{,-62}{,200}{-109}{}+333333333333333333333333333333{}p)^.hhhhhhhhhhhhhhh", 1, 0 },
- { "[000000(\?mmsx:00000000000000000000000)M]]]]2*`[^]QQQQQQQQ(\?<=QQQQQQQQQQQQQQQQQQQQQQQ])\"<h\?", 0, 0 },
- { "[^((<g(\?>5j[bbbbbbb(\?{bb)o{}3(\?imxisx:E]g})YYYYY[:blankcntr(\?#l:].(()w264[:ascii:]^)[:ascii:]G)&(n {^PGn[:xdigit:])nv_e|]{-103,30}", 3, 0 },
- { "[^(([(\?!{}@[^HCO[[^^D[|]{,-49}][:xdigit:]]c`4[:ascii(\?<!:])$66666666666)*)]PP$Z[:alpha:]{,-235}UK],(aT/+6rbMqs60EloA)[:g(\?isx:raph:]!)]z$o{-24,}x1E[:blankcntrl:]ZDFvk", 1, 0 },
- { "[:blank(\?=cntrl:]US@.!\"[:digit:]*E)$16182", 0, 0 },
- { "[-{}x{3772[}][:(\?<=xdigit:][:u(\?#pperword:].W)aD)<pfN<b=C|-{-38}EZdOP|!>ggggggggggggggg\\\\\\\\\\\\\\\\\\\\\\\\\\Ef[:space:]\?][:ascii:]{21,}", 0, 0 },
- { "([:xdigit:]W[:u(pperword(\?::]jS [:upperword:]*)[:alpha:]nnnnnnnnnnn))-148}SSu", 1, 0 },
- { "([^(\?!\?)[(:upperword:])Bx^x$~lCr6*)6", 1, 0 },
- { "[{,-78}Y[:xdigit:][^s(\?>]P[:space:])]YYYYYYYYY[:punct:][:alnum:][:blankcntrl:]", 0, 0 },
- { "([MMMMMM(\?(MMM)M(\?<=MMMMMMMMMMMMMMM[^M)]en][:punct:]-[:alpha:]))Nr[:space:]", 1, 0 },
- { "~=1([^(\?=(\?:l){}])j{-44}{-18}[^u[:graph:]]{-187,}[:xdigit:]w[:alpha:])", 1, 0 },
- { "[ccccc(\?>c(\?{cccc[ccccwetoCei+)w&-+{,-142}[:alpha:]PP66io4(|zkA=],,,,,,,,,,,,,,,,,,,,,Lx5Cx{d2bb}]{188}U~~~~~~~~~~~~~~~~~~~~~~~})", 0, 0 },
- { "Q|0\"[:d(\?:igit:]^{,-174})", 0, 0 },
- { "[^[(\?>rh])]", 0, 0 },
- { "[ees{{{{{{{{{{{{{{{{{bbbbbbb4`ml******(\?=****+])", 0, 0 },
- { "((hdG[((\?<=:dig(it:])[^[:alpha:]$(\?sxi:)x{11390}[(\?{:upperword:]~)i 8[:blankcn[trl:(])]+{,-183}Zqp", 2, 0 },
- { "Dd{D8`+DW={-[53,1(\?<=71}])", 0, 0 },
- { "[:(\?(alpha:][:punct:])", 0, 0 },
- { ".LLLLLLLLLLLLLLLLLLLLLLLLLLLL{}pP[:punct:]x0CZ{30,}!!!(!!!!!!!!!!!!!!!!!!!!!!!!!==@77.%[:graph:]D)", 1, 0 },
- { "[^[^[[r(\?#]){-237,}RRRRRRRRRRRRRRRRRRRRRRRR[^Rll(\?!(\?{lllll]", 0, 0 },
- { "()*ooooooooooooooooooooyyyyyyyyyyyyyyy", 1, 0 },
- { "{,4(}D)JJJJJJJJJJJJJJJJJJJJJJJJJ", 1, 0 },
- { "((b.D{}[:al[pha:]{64}]{})==========================[:alnum:]h>77b)!Ab", 2, 0 },
- { "([^[^[^oooooooooooooooooooooo][:space:][:punct:]PeniKe*~$g\?${>[:lowerprint:]w))))))))))))))){}yyyyyyyyyyyyyyyyyy]pP.|QhZ]{,190})sssssssssssssr+=[:blankcntrl:]WWWWWWWWWWWWWWWWWWWWW", 1, 0 },
- { "([*(\?{})hhhhhhhhhhhhhhhh]G{,-170}QdErrrrrrrc-jjjjjjjjjjjjjjjjjjjjn+{-130,-10})PpDS@Bee", 1, 0 },
- { "([:b(\?=lankcntrl:]))T[:alnum:]{-224}ywt", 1, 0 },
- { "([633(\?<=333(\?<=3333333333(333333)^\?]aGA)[:digi(\?>(\?{t:])$[[:space:][:xdigit:])|8T\?',_{171}{}{113}b\?5kAv0/7{})`huh>xM]C8pYRz]s$Eu08)", 1, 0 },
- { "-(pP)[:alnum:]$^", 1, 0 },
- { "[^x(\?{{17681}]P*)U(_t/8E_\"iN})3333333", 1, 0 },
- { "(([^([[r(\?=[[^^*kx$][:alpha:]:::[:::::[^[^::::::::((\?{\?{::]).^p[:space:]}){52}{}]W{}fn", 2, 0 },
- { "[:(\?>punct:]Ef[:xdigit:]x{c07b}{-50}Z{129,}YL1T`\\A)x[:punc(\?=t:]e[:xdigit:]2c6E46Y)+n ", 0, 0 },
- { "[^(\?!{,-79}[:punct:]'|}>,)][:blankcntrl:]{-118,-231}{-119,-50}:XXXXXXXXXXXXXXXXX-~{}$txlB)3KFL", 0, 0 },
- { "[^(([^fccccccccccccccccccc(\?<!ccccgQeKMfKzz]X$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$[:l(\?<=(\?<=owerprint:]))s{-97}{}))EUi${,-132}'{79}---------{,-93}77777777777777777[:lowerprint:].:H)[:punct:]nnnnnncP\?s1:dGed{186}N@pppppppppppppppppppppP{-212,-110}[:space:][:lowerprint:]$S}7{-112,164}-*.{-184,}OOOOOOOOOO]f\?", 0, 0 },
- { "(([\?#(\?>)])qcU$Q7|82\?{})", 2, 0 },
- { "[^yyyyyyyyyyyyyyyyyyyy(\?#yyyyyyyyyyya][:ascii:]\?)", 0, 0 },
- { "(([((\?{)EEEE(\?<!EEEEE(\?:EEEEEE~)}){244,}QQQQQQQQQQQQQQQQQQQ(\?>QQQQQQ(\?!QQQQQ][:digit:]\?))99999999999999)[:digit:][:upperword:]b))PP{}{}", 2, 0 },
- { "(K(c=B))", 2, 0 },
- { "(G`*s\?b[:g(raph:]))", 1, 0 },
- { "[^[([[[*QQQQQQQQQQQQQQQQ(\?=(\?=QQQQQQ(\?<!QQQQQQQQZddddddddd((\?{\?>ddddddddddc{22,}iiiiiiiii(iiiiiiiiiiiiiii(\?#iiiiiii[^i))\?\?\?\?\?\?]WWW)[:lowerprint:])]{-60,202}+[:upperword:]f[:xdigit:][:alnum:]{,-214})1~~~~~~~MMMMMMMMMMMMMMMMMM.", 0, 0 },
- { "({-102,})A.", 1, 0 },
- { "[((((\?<!(\?[^>(\?#\?()))p\"JD.{}(\?>)))((\?{l(\?<=).'053][:xdigit:]N+)})]WWWW%[:asc(\?{ii:]}))B[:alnum:]X){}s[:digit:]", 0, 0 },
- { "x7&{139}WWWWWWWWWWWWWW[:blankcntr[^(\?<!l:]-71]\"{-167}cqkI)[:dig[^it:]{}{}[:digit:]*[:punct:]-[l11111111111111111(\?(111111111{175,-216}~[:alnum:]`+X1F)vCpWSp(\?>~[^n@f`````````````)````````P])Y,N{}{}]{}pXF@)", 0, 0 },
- { "G[([(\?(^)$])P]^[:alnum:]){,-48}[:blankcntrl:]{}", 0, 0 },
- { "[[^[^f(\?=f(\?<=fffffff[^fffffffff[^fffffffff(\?<=fff]){-194,150}fx{e5a4}V", 0, 0 },
- { "9[:xdigit(\?{:]})", 0, 0 },
- { "[^([[(\?>()$xxxxxxxxxxxxxx[xxxxxxxxxxxxxxxx((\?=aA)s13]])pp[(\?>pppppppppppppppp|{}){20,}]b)]{-179,183}{-204,}[:ascii:])]-11111111{}{,132}qooooooooooooooooooo{}${}|9t", 0, 0 },
- { "([^[{}]\"[^6]*-{,-106}{}u]BR~8WG,U-)[:blankcntrl:]", 1, 0 },
- { "[''''''''(''''''''''z])c", 0, 0 },
- { "[^[(\?>])[:alnum:]r[:alnum:]+{,215}D]", 0, 0 },
- { "([({,127}7Qr(\?:z)pPNev%}(\?msximsx:4(\?<!){}&.D5555(\?<=55555555555555555555i$[:xdigit:]){,-157}[:graph:]U[:punct:]nn(\?=nnnnnnnnnnnn(\?>nn(\?:nnnnnnnn_U{}]E)):^oooooooooooooooooooooooooooo)", 1, 0 },
- { "[^(\?#)(\?<!k2z]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]BW[:alnum:][:graph:]{157}Y]s$C)[:graph:]{,-189}", 0, 0 },
- { "$+CCCCCCCCC[^CCCCCC(\?<=Ca=]r{-81}[:alpha:][:alpha:])E=", -1, 0 },
- { "[(((\?=\?{([^(\?<=)])>!(([:alnum:]{252}{}})ffffffffffffl){}A2r\?~ImE\"[:punct:]){}[:digit:]", 2, 0 },
- { "([:blank[cntrl:]].t^P)", 1, 0 },
- { "[^[(\?:X])|rrrrrrrrrrrrrrrrrrrrrrrrrr*P]Q", 0, 0 },
- { "[[[^(\?{((\?<!))s})(\?<!A){14}(\?:L*+TTTTTTT]U{[^-12([\?!,}\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?)Y`Y)L]|]]|]", 0, 0 },
- { "hkXzf',]yP$+[:u(pperword:])", -1, 0 },
- { "(#[:blankcnt(\?iximsx:rl:])$QQQQQQ{}[:digit:])\?A", 1, 0 },
- { "(B{-34,})*{,106}", 1, 0 },
- { "[(\?{:graph:]})", 0, 0 },
- { "((){}{,63}[:punct:]^t[:space:])^17737", 2, 0 },
- { "([^[SSSSSSSSS[SSSSSSSSSSSSSSS[([[[{38,}]Jn][:alpha:]])])$'", 1, 0 },
- { "[^({}{95})B{1(\?>15}]x{f779}ZZ,Wo)O[:alpha:][:lowerprint:]{81,228}Q[:upperword:]", 0, 0 },
- { "[[^[^()n[[[[[[[[[[[[^[[[[[[[[[[(\?: G)(\?{K![^m) j(\?:C|((\?:n*Xlaa908:n$m,))[:xdigit:]x(\?{{1a5cd}pppppppppppppp(\?(pppp)p(pQ)))ddddddddddddddddddddddddddddddd]q[:alnum:(\?{]Ga})\?})@[:lowerprint:]{,169}[:blankcntrl:][:graph:]]n{-76,}|U\"{,-54}t]I{}{-64,-232}]\?].\?{-111,227}) @hFp\?j=H$Wbu<{,209}De{,145}{206}-})[:blankcntrl:]", 0, 0 },
- { "[^[^(LLLLLLLLLLLLLL[^L[L[:alpha:]3{,189}(\?#(\?>n){}^EXXXXXXXXXXXXXXXXXXXXXXXXX]c*)^r=$WWWWWWWWWWWWW", 0, 0 },
- { ")w###################", 0, 0 },
- { "{,121}[:d(\?(i)git:])E\?[:punct:]LLLLLLLLL[:ascii:]+", 0, 0 },
- { "([]]]]]]]]]]]]][:space:]Jrt3o.]b)pwwwwwwwwwwwQfm~", 1, 0 },
- { "[+-{,-120}*(\?!()t*(\?(\?{>G)F)yd]V{}f<\?}){245}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[:upperword:]", 0, 0 },
- { "(DDDDDDDDDDDDDDDDDDDDDDDDDDDDDc[:space:][:pu[^nct:]{-11,12}[:ascii:][:alpha:]{,155}P])", 1, 0 },
- { "()ggggggg{-136,-21}", 1, 0 },
- { "([^((\?<=U\?)(\?=^^^^^^^^^^^[^^^^^^^^^^^^^///(\?#//[////////////////////(\?()#######b+]$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$^[:digit:])\\U]Q8@}4d)\\U", 1, 0 },
- { "A[:graph(\?::])-mo=U[:upperword:]ttttttttttttttttttttttttttt", 0, 0 },
- { "[^(((\?=\?im-m(sx:)c~~[^~~~~~~~~~~~~~(\?>~~~~~~~~~~~~~SSSSSSSSSSSSSSSSSSSS]{51,}[:digit:]{,-179}N))kk[kkkkkkkkkkkkkkg$)[(\?::punct:]zWl)]|)*", 0, 0 },
- { "[((\?=()+A)][:graph:]x0B)[:graph:]", 0, 0 },
- { "(nR%B[:blankcntrl:]C=|en-[:digit:]n[:graph:]HHHH[HH]D\?%[:digit:]MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.z(oF9zW8A7cfff(f))-[:blankcntrl:][:blankcntrl:]A[:digit:])D{,-243}", 3, 0 },
- { "([[()]]{,-251(})\?L)uw@", 2, 0 },
- { "\"|{(,-144})A.ooooooooo(ooooooFFFFFFFFFFFFF\?)n{,-18}", 2, 0 },
- { "([^([(([[^([000000[0(0(\?!0(\?=0000000])45|E]", 1, 0 },
- { "[B[[[[[[[[[[[|{}*oKqv%(\?<=wsQ{1pMeK1^6%nLNqi<@ge][:punct:]= M@* D|NwL\\-117\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"~Qnd]h.O\"01x:[:alpha:]^){}D}\"", 0, 0 },
- { "([[RRRRRRRRRRRRRRRRRRRRRRRRRRRRxpSrx{7d79}*oJ2`Ft{n1,3g:1H@bT$D &[n/Cg)=ld@Ir{Fk>*4*`(\?>````````````````````(\?:`````.....................]]{,246})7 \"F4[^F|/g)]+e`rw@{,-69}H)", 1, 0 },
- { "([(\?<=)X[:digit:]PP.[(\?#:((\?#\?#graph:])[:digit:][Q+)(N][:alpha:]]f)[:graph:])+Elllllllllllllllll[:digit:]=)pP{uU-20bzY|ZKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKt<c", 1, 0 },
- { "[^(([^$(\?:(\?#w)[(\?::punct:]]d{-149,}[:ascii:])[:blankcntrl:]@@@@@[@@@@@@@@@@@@@@[:graph:][:xdigit:]O[:alpha:]2$-[:graph:])[:lowerprint:]-\?#S[:blankcntrl:][:alnum:]){-77,}]d[:digit:]N5v+Sqqqqqqq^% -I4]*.)^[:alnum:]JDfjMRU7ttttttttttttjjjjjjjjjjjjjjjjjjjjjjCCCCCCCCCCCCCCCCCCCD{,21}{0,67}[:graph:]{,208}B", -1, 0 },
- { "(%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%[:ascii:])i{}[:lowerprint:]epxxxxxxxxxxxxxx[:lowerprint:]r-", 1, 0 },
- { "([(^w(\?!)()])-s", 1, 0 },
- { "[aIIIIIIIIIIIII(\?imsxims(\?=x:IIIIIIIm^NXXXXX(\?!(\?isximsx:XXXXXXXXXXXXXS0]F)z))+rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr{,-237})ZZZZZZZZZZZZZZZZZZZZZZ", 0, 0 },
- { "(Z)[:alpha:]", 1, 0 },
- { "U#Z(=)", 1, 0 },
- { "([:lowerprint:][:punct:])1cVb*[:xdigit:]&&&&&&&&&&&&&&&&&&&&&&&&O", 1, 0 },
- { "()~K`3/[^*h[]G6[:upperw(\?()ord:]w)[:punct:]]{}", 1, 0 },
- { "[[[]V[:digit(\?>:])|l*KKKKKKKKKKKKKKKKK,,,,,,,[,,,s.{148,}P33333][:lo(\?<!werprin(\?!t:]ZZZZZZZZZZZZZZZZZZZZZZZ]{,-229}{-160,}){,-211}XPPP].{}z[:alnum:][:alpha:(\?=]t{166,}uuuuu6]i*p(m))[:space:]E|S", 1, 0 },
- { "[^(h(\?(\?({#2})(\?(\?#>Q){,57}%[:digit:]\?\?\?\?\?\?\?\?\?\?.[)]]d{)-49,}f)^O{,68})\?C", 0, 0 },
- { "(}u])18621", 1, 0 },
- { "[:as(\?=cii:][^(\?=)(S-{.F-[:punct:]3-105^[:lowerprint:]111111111111111111111111---)][:alnum:][:ascii:]JJJJJwHSk", -1, 0 },
- { "[^3>>>>>>-sZ^^^^(\?>]Y[:di(\?(\?imxim:#git:]{-158,-102}[:punct:]{}{87,})))[:upperword:]", 0, 0 },
- { "[(\?<!^r]$W){}*[:alpha:].[:digit:]", 0, 0 },
- { "[:ascii(\?::[^])X]-", 0, 0 },
- { "[([^]Z)[:upperword:]N{}*[:graph:]*^", 0, 0 },
- { "([[(\?#^[(:graph:]]){205,}[:gr(aph:]T%]^MMMMMMMMMMMMMMMMMMMM){) <v\\[:digit:])", 1, 0 },
- { "[^Y.h~b(\?<=~P{(\?=169,65}\?[^\?\?\?\?\?\?\?\?\?[\?\?\?\?\?\?\?\?\?K\"s`[yT7oP[:alpha:]{})]zrrrrrrrrrrrrrr)]KKKKKKKKKKKKKKK[:digit:]S][:lowerprint:][:digit:]", 0, 0 },
- { "(s)", 1, 0 },
- { "[u(\?!uuuuuuuuuuuuuuuuuuuu[:digit:]{,48}[:graph:]WL[:alnum:]]v=_)VN>{AjBBBBBBBBBBBBBBBBBBBBBBB[:upperword:]`'W)", 0, 0 },
- { "[^([[()DN1[^][|]\?]{-104,}])[:space:]][:lowerprint:]r[:alpha:].DU", 0, 0 },
- { "[^((33333333333333333333333(\?<=3333333D))kkkkkkkkkkkkkkkkkkkkkkk[k[:alpha:]])]X+", 0, 0 },
- { "[({,-17})[@e{220,(\?#41}])]]{-213,-225}", 0, 0 },
- { "[[^(\?#[(\?:^[[(\?(^]))]])]vvvvvvvvvvvvvvvvvvvvv{,96}|m]{-79,248}[:alpha:])", 0, 0 },
- { "([[(\?imsisx:^}$,-[:al(\?>num:]Xqqqqqqqqqqqq{-185,154}]b#+T){-241,})A{-27}[(\?<!:lowerprint:]X)[:punct:]ME-]+BBBBBBBBBBBBBBBBa|{-40}M8mhgD 0HU]{16})", -1, 0 },
- { "[^(\?>([\?()(\?#))]--R1rk^UnP.[(\?!:digit:]])^)[:upperword:]{}0000000000000000000000000000000~U{-139,-19}z<L-228", 0, 0 },
- { "()-:=3uE$[:alnum:]bP%{-210,}", 1, 0 },
- { "(U)7777]]]]]]]]]]]]]]]]]]]]]]]]]]]]]c::AA[:alpha:]{,3}f1{NzH@3lTf{}{", 1, 0 },
- { "[C{(\?>})RR(\?=R<]p'N~&.-})6]", 0, 0 },
- { "[^\?[^(\?(lFt]).[^7Q-])kkkkkkkkkkkk]XTFy\"1Deiv!,'xVK", 0, 0 },
- { "[^$[^[:xdigit:](\?{*{245,99}h8v(\?!)]]u)Z[:punct:]})[:alnum:]+|[:blankcntrl:]u{}[:lowerprint:]+bBJ4+k-v{-116}", 0, 0 },
- { "S)f{,180}[:graph:]&{12,244}", 0, 0 },
- { "(([[(.()[^^{80(\?>(\?<=,235})ddddddddd[^ddddddddd(\?<=d.__B{36}````````````````(\?:```(\?>```````,,,,,,,(\?:,,)P$U,[:xdigit:])zzzzzzzzzzzzz]UUUU[uB]n<&[(:ascii:].][:alnum:])\?S]{})d{138,}s9========[:lowerprint:]]OOOOOOOOOOOOOOO|yyyyyyyyyyyyyyy$LZ[:lowerprint:]EEEEEEE[:ascii:][:punct:]VpP^{-48}D){,46}x))2P))a[:lowerprint:]r", 2, 0 },
- { "[^(((\?<!):())PPPPPPPPPPPPPPP(\?=[PPPPPPP(\?{PPPPPPPP$)})77777777777777777]{,-57}::::::::::::(::::::::::::::::)]g{89}__________________[:xdigit:]l[:punct:])N", 1, 0 },
- { ":02-k\?p3I7aEhJ\\265-[:space:]pP[:space:]x0F[:alnum:]aM4[:lowerprint:]sA@@@@@@@@@@@@@@@@@@@@@@@@@@@@", -1, 1 },
- { "a[:upper(\?{word:]})X{-173,}-2F[:lowerprint:]", 0, 0 },
- { "u,w<g*Q002S{,130}{239}[:lower(print:]cr{-165,}#$k<L/&)[:blankcntrl:]aaaaaaaaaaaaaaaaaaaaaa[:ascii:]", 0, 0 },
- { "(xFA^{-161,93})U[:xdigit:]", 1, 0 },
- { "[^(\?=]{})mE`", 0, 0 },
- { "[[((\?(\?#:alnum:]])x6CS[:digit:]{-197,}.)N", 0, 0 },
- { "[^(\?![])C*[:upp(erword:])-176]", 0, 0 },
- { "[[^[[^[55555555555555555555555555(\?>555(\?<!555)S][]]A[:l(\?>owerp(rint:]])]*", 0, 0 },
- { "Au)khgzAfXIZoZ=g[:digit:]){,186}Upvf=x<]Tbd5Rq\?.", 0, 0 },
- { "b{-176,}B^[:bla(\?(<!nkcntrl:]{-6,133}#B :)<<<<<<<<<<<<<<<<<<<)[:alnum:]$}}}}}}}}}}}}}}}}}}}}}}}[:xdigit:]tw", 0, 0 },
- { "(4IIIII(IIIIIIIIIIIIIIIII{})W{-152,-238}){,-56}^{-142,}", 2, 0 },
- { "[^([[(\?(\?(!)>>>>>>>>>>>>>(>>>>>>>>D)Ix{(1(\?imxmsx:762)c}))A)[[[[[[[[[[[[[[5Rp]DDDDDDDDDDDDDDDDDDDD]Us+\\w[:digit:]{-47}[:xdigit:][:blankcntrl:])ddddddddddddddd[^ddddddddddddd[:digit:]|]]*{-165,-230}{-212}{53,}]\?", 0, 0 },
- { "[^[^]]|[:(\?:alnum:])}}}}}}}}}}}}}}}}}}}}", 0, 0 },
- { "VVVVVVVVVVVVVVVVVVVVVVVVVVVV[:d(i(\?#git:])){{{{{{[:digit:]ZfQ55555555{}Z", 0, 0 },
- { "[L][:blankcnt(\?((\?=rl:(\?=]){-35,[^}){)eJb>>>>>>>>>>>>>>>>>>>>>>$ [:xdigit:]l0Tv2Tw2@C[:space:]Zc/{*)>]N3j~.dMBBBB", 0, 0 },
- { "[[^(\?>(([]))])[:graph:]]{65,}as#Q:lQ", 0, 0 },
- { "[^[fPPUUUUUUUUUUU(\?#UUU[^UUUUUU(\?<=UUUUUUUUUGGGGGGGGGGGGGGGGGGG((\?{\?=GGGGGG.MK))+]+)&UxFW)rwv\?@D.", 0, 0 },
- { "{-(60,})m", 1, 0 },
- { "b[(])^w", 0, 0 },
- { "[][^qVs(\?:(p])X)\?'", 0, 0 },
- { "()8", 1, 0 },
- { "(t[:punc[^t:(\?{][:blankcntrl:])})[^8\?]z*]", 1, 0 },
- { "[:lowerprint:])[:graph:]lppppppppppppppppppppppppppppf", 0, 0 },
- { "[:alph(a:])[:ascii:]g +z-Bc-U{,%Gk", 0, 0 },
- { "u[:graph:(\?=]*)W:::", 0, 0 },
- { "([:alnum(:])l)", 1, 0 },
- { "[[[}}}}}}}}(\?<!}}}}}}}+(\?{),,,,,,,,,,,,,,(\?!,,,,,,,,]99999999999&R[:ascii:]ZZZZ-{-10,}{96}Ed*][:graph:])]}){}{}G{-9,}", 0, 0 },
- { "([^[{}]]Z[[^:graph:]{-47}55555555555555555555555555555[:ascii:]s]6,$:3qAew1Y)+)[:punct:]", 1, 0 },
- { "[[[[[([[[[[[[[[[[[[[[[[[[[[[[[8!1i]')", 0, 0 },
- { "([((\?(\?#>)(\?{,)At]%M9FSq5)EB", 1, 0 },
- { "(}````````````````(``{210,})[:(\?#space:]P[:digit:])PP.{-227,}$pK~mm ImR|{,51}[:alnum:]<)[:alpha:]", 2, 0 },
- { "[^(\?<=])[:digit:]", 0, 0 },
- { "[^'''''''{(\?:178,}e{,16}$QQQQQQQQQQQQQQQQQQQQQQQ$])", 0, 0 },
- { "[^(\?>@K*)(\?#d18]{78,}B)[:digit:]{-193,}=wg{,59}", 0, 0 },
- { "[^.{156,}!(\?<=!!!!!!!!!!!!!!(\?{!(\?(!!!!!!!!!!!!!)})TTTTTTTTTTTTTTTTTTTTTTTTTTTTT[^}}}}}}}}}}}})}}}}}}}}}}}}}]]){}^L#%-{}FC", 0, 0 },
- { "(eeeee{-169,-100}-fa[:upperword:]N)$Nellllllllllllll", 1, 0 },
- { "[[(\?!())\?[(\?!:alnum:]e{,28}M])[:punct:]CCCCCCCCCCCCCCCCCCCC]{-150,}{-167}", 0, 0 },
- { "[[@[@(\?#@[@]P]Z{')]{-186,117}]+)7f-", 0, 0 },
- { "\\Q+kD}]AEM)u ", 0, 0 },
- { "([(\?{(\?=:::::::::::::&){,210}]^})P{-31,}8[:space:]C[:alnum:][:a(scii:]z|[:upperword:])[:alnum:][:graph:])zr~Zk", 1, 0 },
- { ".[:space:]e[:g(\?{(\?{raph:]})})@@@@@@@@@@@@@wb|~k", 0, 0 },
- { "()ooooooooo\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"[:graph:]", 1, 0 },
- { "[^64h(\?(@Eyw][:xdi[git:]pP%%%%%u(uuu[:up[perword:]`8Utdh{)}]]))lW[:punct:]W.hhhhhhhhhhhhhhhhhhhhhhhh'm<<}O8`ZXtG.$", 1, 0 },
- { "BPP[:digit:]bbbbbbbbbbb(bb)S+[:alnum:]", 1, 0 },
- { "um.[:ascii((\?#\?!:])*)+KKKKKKKKKKKKKKKKKKKKKKKKKS.=<Bf", 0, 0 },
- { "", -1, 0 },
- { "(()$[:lowerprint:][:s[pace:]2]bbbbbbbbbyoooooooooooooooooo*{39,}$')qV`AcH>,eDl", -1, 0 },
- { "(()[^])e{-241,}", -1, 0 },
- { "()[:alpha:]rliiiiiiii[:alnum:]Mb*QW9N.>\?{115,}&u*j", -1, 0 },
- { "()[]p", -1, 0 },
- { "(I[^]pfL)$[:punct:]", -1, 0 },
- { "([])>>>>>>>>>>[:alnum:]", -1, 0 },
- { "([])O\\\\\\\\\\\\\\fffffffffffffffffffffff=s6jCZy/b+ir2'*{151,}", -1, 0 },
- { "([])nnnnnnnnnnnnnnnnnnnnnnnnnn[:xdigit:]^N$f", -1, 0 },
- { "([]M)[:lowerprint:]a(pg$Z[:punct:])77777777777.", -1, 0 },
- { "([]XXXXXXXXXXXXXXXXXXXXXX-===========)", -1, 0 },
- { "([]lkX{-224}[:blankcntrl:]$gPKIZlSC#F@XX I'^}{234}yZm)uuuuuuuuuuuuuuuuuuuuuurS", -1, 0 },
- { "([^0kYkg9])IIIIIIIIIIIIIIIIIIIIII/{(192,-118}l+FoSD6\?A)c[:xdigit:]`````````````````e-{-4,-170}x{4620}Z[:upperword:]", -1, 0 },
- { "([^[^[^()(\?>){}B]XYF+#[:alpha:]{-85((,-55[^}t]n).{,-33}]](bQJ!|O+{175,})RFh)Z+^.{137,}:VpP[:alpha:]-MceqVVkkkk(kkkkkkkkkkkkkkkkkk)\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?{-115,-67})``````````````````````````````", -1, 0 },
- { "([^]EzU[:alnum:]+^^^^^^^^^^^^^^^^^^^)[:xdigit:]HHHHHHHH$66666666666666666666666666666666UUUUUUUUUUUUUUUUUUUUL{}iiii{-76}X", -1, 0 },
- { "([^]~~~~~~~~~~{240,})]NOp", -1, 0 },
- { "(sb)[:digit:]VVVVVVVVx{9569}52,|]", -1, 0 },
- { "(x{19762}){}", -1, 0 },
- { "-[:xdigit:][]", -1, 0 },
- { "121|", -1, 0 },
- { "141[:xdigit:][:lowerprint:]{24}{59,191}[:digit:]/", -1, 0 },
- { "G[^],,,,,,,,,,,,,+\"DiX", -1, 0 },
- { "Gm(ho9:\"8{-188,-200}Z[:blankcntrl:]{,171}\?\?\?\?\?\?\?\?\?\?\?[:blankcntrl:]LLLLLLLLLLLLLLLLLLLLLLL{}^[:graph:][:blankc(\?#ntrl:])w", -1, 0 },
- { "N\"\"\"\"\"\"\"-------------------------|[:alnum:]AAAAAAAAAAAAAAAAAAAAf\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?", -1, 0 },
- { "U{-30,}^\?\?\?", -1, 0 },
- { "W^*04rAY(Ee*>[^o3[]]_)", -1, 0 },
- { "X[^]}*C[:alnum:]", -1, 0 },
- { "[${,-3}]+^\?[|x8A|][:space:]'''''['''''JJJJJJJJJJJJJJJJJJJJJJJJJJJJJyl}.Y7G]", -1, 0 },
- { "[()&[&&&]\?\?[\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?pg%k8ug`Wqk4|NR{h[CK5Ez=]jHpQw&`{:]{,91}D", -1, 0 },
- { "[(\?#(\?:)[)([\?>)(\?>(\?:[:alnum:])]G]{85}[^)w]N]gYrUs|", -1, 0 },
- { "[(\?<=)[:digit:]\?]{152,}VR|", -1, 0 },
- { "[****(\?>**********(\?<!*******Q)Vr){[^25,}*:FFFFFFFFFFFFFFFFFFFFFFFF(\?{FFFF(({}D]|", -1, 0 },
- { "[:ascii:]+{124,}:*]\?$-{92}D[:lowerprint:]`````````````````````", -1, 0 },
- { "[:ascii:]\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?A<", -1, 0 },
- { "[:blankcntrl:]p\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?$\?TTTTTTTTTTTTTTTTT[:ascii:][:upperword:]", -1, 0 },
- { "[:punct:]{254}DDDDDDDDDDDDDDD@[:alpha:]Z\?\?-----R", -1, 0 },
- { "[:upperword:]J\?\?nqCAdfyW5", -1, 0 },
- { "[:upperword:]{-39}|", -1, 0 },
- { "[:xdigit:]^\?", -1, 0 },
- { "[Z*e ]NdmP\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?\?", -1, 0 },
- { "[[:punct:]q]ex{15625}-", -1, 0 },
- { "[[[^([^L((\?{b(\?=C\?]-134{,-207}[:ascii:]Hz}XIz}|", -1, 0 },
- { "[[^V(\?:(\?<!(\?>))TTTTTTTTTTTTTTTTTTTTTTT)[:punct:][:digit:]]GGGGGGGGGGGGGGGGGGGGG,]|.{-224}{96}{239,}1", -1, 0 },
- { "[[^^PP]{,-222}{182}{141}]zFD}-.", -1, 0 },
- { "[] Hn&[:xdigit:][:upperword:]f", -1, 0 },
- { "[]$.B", -1, 0 },
- { "[]&&&&&&&&&&&&&&&&&&&&&&&", -1, 0 },
- { "[]()[:xdigit:]er063{132,140}$", -1, 0 },
- { "[]+1434", -1, 0 },
- { "[]-", -1, 0 },
- { "[]-#yyK", -1, 0 },
- { "[]-(S$5)AxbdTKO[:alnum:]", -1, 0 },
- { "[]2883", -1, 0 },
- { "[]2dhd-[:alpha:]sssssssssssssssss55555555555555555555555555555555Z[:punct:]", -1, 0 },
- { "[]4", -1, 0 },
- { "[]44444444444444444G", -1, 0 },
- { "[]\?", -1, 0 },
- { "[]A", -1, 0 },
- { "[]Gap8bc", -1, 0 },
- { "[]OOOO", -1, 0 },
- { "[]PP", -1, 0 },
- { "[]QQ", -1, 0 },
- { "[]WaFaGO,o", -1, 0 },
- { "[]Z", -1, 0 },
- { "[][:alpha:]|[:digit:]Ls$I-Ff~+xA3e", -1, 0 },
- { "[][:ascii:]-218", -1, 0 },
- { "[][:ascii:]N}}}}}}}}}}}}}}}-{137,}8682", -1, 0 },
- { "[][:lowerprint:]Ur", -1, 0 },
- { "[][:space:]15097", -1, 0 },
- { "[][:xdigit:]", -1, 0 },
- { "[]dpSSSSSSSS", -1, 0 },
- { "[]e13768", -1, 0 },
- { "[]gT", -1, 0 },
- { "[]h", -1, 0 },
- { "[]n", -1, 0 },
- { "[]vvvvvvvvvvvvvvvvvvvvvvvvvv*[:xdigit:]", -1, 0 },
- { "[]{,-212}1111111111111111111C3821", -1, 0 },
- { "[]{-128,}hc", -1, 0 },
- { "[]{-181,}&[:xdigit:].\?}}}}}}}}}}}}}}}}}}}}}}", -1, 0 },
- { "[]{}F&}i`7|ZAH", -1, 0 },
- { "[^(\?())u{196,}pP][r^ndddddddddddddddddddddd]{31,246}\?J", -1, 0 },
- { "[^.ii.1-S]lwwwwwwwwwwwwwwwwww[^wwwwwwwwwwwwww[:alnum:]DOpP+<N][^]44{179}{-194,56}", -1, 0 },
- { "[^2[:alnum:]]\?t\?\?", -1, 0 },
- { "[^[((\?{[^^<<<<(\?(\?<!{)})(\?<!]{,184}{-213}|", -1, 0 },
- { "[^[^[]\?{89,}PPsvf{[:space:]]]vd{161,}", -1, 0 },
- { "[^[^].]+{0}s", -1, 0 },
- { "[^]${}", -1, 0 },
- { "[^]([:punct:]),%[:xdigit:]w^0\?{-233}", -1, 0 },
- { "[^]-", -1, 0 },
- { "[^].^", -1, 0 },
- { "[^]6743", -1, 0 },
- { "[^]JD", -1, 0 },
- { "[^]N=[:upperword:]zzzzzzzzzzzzzzzzz.", -1, 0 },
- { "[^]OLz_6", -1, 0 },
- { "[^]PP[:digit:]0eBEx=", -1, 0 },
- { "[^]SHzuKp", -1, 0 },
- { "[^][:upperword:]{111}-TpmXw", -1, 0 },
- { "[^]^''''''''z{-73,}", -1, 0 },
- { "[^]^{,141}e", -1, 0 },
- { "[^]aaaaaaaaaaaaaaaaaaa{-98,43}", -1, 0 },
- { "[^]f", -1, 0 },
- { "[^]l", -1, 0 },
- { "[^]n\"Wt", -1, 0 },
- { "[^]pPZ\?q+m0LJ+", -1, 0 },
- { "[^]p[:upperword:]L:", -1, 0 },
- { "[^]q\?{,-18}-", -1, 0 },
- { "[^]s[:space:(\?<=]$", -1, 0 },
- { "[^]{,58}t", -1, 0 },
- { "[^]{255,}JJJJJJJJJJJJJJJJJJJJJJJJJJ", -1, 0 },
- { "[^]{45}", -1, 0 },
- { "[^]{W", -1, 0 },
- { "[^]{}{-22}", -1, 0 },
- { "[^]{}{}{}[:xdigit:]+", -1, 0 },
- { "[^]|9{,-108}{}.LVIJJJJJJJJJJJJJJJPP", -1, 0 },
- { "[^{,-254}]|", -1, 0 },
- { "[o(\?{(\?<=}[))f++++++++++++++++777777777777777777777777yzPPs]\?\?dRRRRRRRRRRRRRRRRRRRRRRRRRRRR&]>%fffffffffff", -1, 0 },
- { "aW|", -1, 0 },
- { "cT{}[]C^r2``tm", -1, 0 },
- { "kkkkkkkkkkkkkkkkkkkkkkk[:blankcntrl:]|{}3{26,}{151,}[:punct:]JJJlH$gP%(2WUE%%%%%%%%%%%%%%%%%%%%a){ibf{}\?", -1, 0 },
- { "lZ\?\?\?\?\?\?\?\?\?\?\?-P2eZt[:punct:]", -1, 0 },
- { "vF3qn[^]N.", -1, 0 },
- { "wwwwwwwwwwwwww{-176,}275[^]>.UUUUUUUUUUUUUUUUUUUUeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee2$Yd", -1, 0 },
- { "{-197,223}bf]]]]]]]]]]\?&}/s\?\?~c", -1, 0 },
- { "{-37,}EpP|", -1, 0 },
- { "{}@]a[][:xdigit:]z{a", -1, 0 },
- { "}02|", -1, 0 },
- { "}}}}}}}}}(}}){}[llll]^N|", -1, 0 },
- };
- unsigned int i;
- int r;
-
- UNUSED(tc);
-
-#ifdef HAVE_REGEX_H
- /*
- * Check if we get the expected response.
- */
- for (i = 0; i < sizeof(tests)/sizeof(*tests); i++) {
- regex_t preg;
-
- memset(&preg, 0, sizeof(preg));
- r = regcomp(&preg, tests[i].expression, REG_EXTENDED);
- if (((r != 0 && tests[i].expect != -1) ||
- (r == 0 && tests[i].expect == -1)) && !tests[i].exception)
- fprintf(stderr, "regcomp(%s) -> %s expected %s\n",
- tests[i].expression, r != 0 ? "bad" : "good",
- tests[i].expect == -1 ? "bad" : "good");
- else if (r == 0 &&
- preg.re_nsub != (unsigned int)tests[i].expect &&
- !tests[i].exception) {
- fprintf(stderr, "%s preg.re_nsub %lu expected %d\n",
- tests[i].expression,
- (unsigned long)preg.re_nsub, tests[i].expect);
- tests[i].expect = preg.re_nsub;
- }
- if (r == 0)
- regfree(&preg);
- }
-#endif
-
- /*
- * Check if we get the expected response.
- */
- for (i = 0; i < sizeof(tests)/sizeof(*tests); i++) {
- r = isc_regex_validate(tests[i].expression);
- if (r != tests[i].expect)
- fprintf(stderr, "%s -> %d expected %d\n",
- tests[i].expression, r, tests[i].expect);
- ATF_CHECK_EQ(r, tests[i].expect);
- }
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, regex_validate);
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/isc/tests/safe_test.c b/usr.sbin/bind/lib/isc/tests/safe_test.c
deleted file mode 100644
index d2a9c02285c..00000000000
--- a/usr.sbin/bind/lib/isc/tests/safe_test.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright (C) 2013, 2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: safe_test.c,v 1.1 2019/12/16 16:31:36 deraadt Exp $ */
-
-/* ! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <stdio.h>
-#include <string.h>
-
-#include <isc/safe.h>
-#include <isc/util.h>
-
-ATF_TC(isc_safe_memequal);
-ATF_TC_HEAD(isc_safe_memequal, tc) {
- atf_tc_set_md_var(tc, "descr", "safe memequal()");
-}
-ATF_TC_BODY(isc_safe_memequal, tc) {
- UNUSED(tc);
-
- ATF_CHECK(isc_safe_memequal("test", "test", 4));
- ATF_CHECK(!isc_safe_memequal("test", "tesc", 4));
- ATF_CHECK(isc_safe_memequal("\x00\x00\x00\x00",
- "\x00\x00\x00\x00", 4));
- ATF_CHECK(!isc_safe_memequal("\x00\x00\x00\x00",
- "\x00\x00\x00\x01", 4));
- ATF_CHECK(!isc_safe_memequal("\x00\x00\x00\x02",
- "\x00\x00\x00\x00", 4));
-}
-
-ATF_TC(isc_safe_memcompare);
-ATF_TC_HEAD(isc_safe_memcompare, tc) {
- atf_tc_set_md_var(tc, "descr", "safe memcompare()");
-}
-ATF_TC_BODY(isc_safe_memcompare, tc) {
- UNUSED(tc);
-
- ATF_CHECK(isc_safe_memcompare("test", "test", 4) == 0);
- ATF_CHECK(isc_safe_memcompare("test", "tesc", 4) > 0);
- ATF_CHECK(isc_safe_memcompare("test", "tesy", 4) < 0);
- ATF_CHECK(isc_safe_memcompare("\x00\x00\x00\x00",
- "\x00\x00\x00\x00", 4) == 0);
- ATF_CHECK(isc_safe_memcompare("\x00\x00\x00\x00",
- "\x00\x00\x00\x01", 4) < 0);
- ATF_CHECK(isc_safe_memcompare("\x00\x00\x00\x02",
- "\x00\x00\x00\x00", 4) > 0);
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, isc_safe_memequal);
- ATF_TP_ADD_TC(tp, isc_safe_memcompare);
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/isc/tests/sockaddr_test.c b/usr.sbin/bind/lib/isc/tests/sockaddr_test.c
deleted file mode 100644
index f9494a684c1..00000000000
--- a/usr.sbin/bind/lib/isc/tests/sockaddr_test.c
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
- * Copyright (C) 2012, 2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: sockaddr_test.c,v 1.1 2019/12/16 16:31:36 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <isc/sockaddr.h>
-#include <isc/print.h>
-
-#include "isctest.h"
-
-/*
- * Individual unit tests
- */
-
-ATF_TC(sockaddr_hash);
-ATF_TC_HEAD(sockaddr_hash, tc) {
- atf_tc_set_md_var(tc, "descr", "sockaddr hash");
-}
-ATF_TC_BODY(sockaddr_hash, tc) {
- isc_result_t result;
- isc_sockaddr_t addr;
- struct in_addr in;
- struct in6_addr in6;
- unsigned int h1, h2, h3, h4;
- int ret;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- in.s_addr = inet_addr("127.0.0.1");
- isc_sockaddr_fromin(&addr, &in, 1);
- h1 = isc_sockaddr_hash(&addr, ISC_TRUE);
- h2 = isc_sockaddr_hash(&addr, ISC_FALSE);
- ATF_CHECK(h1 != h2);
-
- ret = inet_pton(AF_INET6, "::ffff:127.0.0.1", &in6);
- ATF_CHECK(ret == 1);
- isc_sockaddr_fromin6(&addr, &in6, 1);
- h3 = isc_sockaddr_hash(&addr, ISC_TRUE);
- h4 = isc_sockaddr_hash(&addr, ISC_FALSE);
- ATF_CHECK(h1 == h3);
- ATF_CHECK(h2 == h4);
-
- isc_test_end();
-}
-
-ATF_TC(sockaddr_isnetzero);
-ATF_TC_HEAD(sockaddr_isnetzero, tc) {
- atf_tc_set_md_var(tc, "descr", "sockaddr is net zero");
-}
-ATF_TC_BODY(sockaddr_isnetzero, tc) {
- isc_sockaddr_t addr;
- struct in_addr in;
- struct in6_addr in6;
- isc_boolean_t r;
- int ret;
- size_t i;
- struct {
- const char *string;
- isc_boolean_t expect;
- } data4[] = {
- { "0.0.0.0", ISC_TRUE },
- { "0.0.0.1", ISC_TRUE },
- { "0.0.1.0", ISC_TRUE },
- { "0.1.0.0", ISC_TRUE },
- { "1.0.0.0", ISC_FALSE },
- { "0.0.0.127", ISC_TRUE },
- { "0.0.0.255", ISC_TRUE },
- { "127.0.0.1", ISC_FALSE },
- { "255.255.255.255", ISC_FALSE },
- };
- /*
- * Mapped addresses are currently not netzero.
- */
- struct {
- const char *string;
- isc_boolean_t expect;
- } data6[] = {
- { "::ffff:0.0.0.0", ISC_FALSE },
- { "::ffff:0.0.0.1", ISC_FALSE },
- { "::ffff:0.0.0.127", ISC_FALSE },
- { "::ffff:0.0.0.255", ISC_FALSE },
- { "::ffff:127.0.0.1", ISC_FALSE },
- { "::ffff:255.255.255.255", ISC_FALSE },
- };
-
- UNUSED(tc);
-
- for (i = 0; i < sizeof(data4)/sizeof(data4[0]); i++) {
- in.s_addr = inet_addr(data4[0].string);
- isc_sockaddr_fromin(&addr, &in, 1);
- r = isc_sockaddr_isnetzero(&addr);
- ATF_CHECK_EQ(r, data4[0].expect);
- }
-
- for (i = 0; i < sizeof(data6)/sizeof(data6[0]); i++) {
- ret = inet_pton(AF_INET6, "::ffff:127.0.0.1", &in6);
- ATF_CHECK_EQ(ret, 1);
- isc_sockaddr_fromin6(&addr, &in6, 1);
- r = isc_sockaddr_isnetzero(&addr);
- ATF_CHECK_EQ(r, data6[0].expect);
- }
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, sockaddr_hash);
- ATF_TP_ADD_TC(tp, sockaddr_isnetzero);
-
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/isc/tests/socket_test.c b/usr.sbin/bind/lib/isc/tests/socket_test.c
deleted file mode 100644
index a86e384366e..00000000000
--- a/usr.sbin/bind/lib/isc/tests/socket_test.c
+++ /dev/null
@@ -1,798 +0,0 @@
-/*
- * Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-#include <time.h>
-
-#include <isc/platform.h>
-#include <isc/socket.h>
-#include <isc/print.h>
-
-#include "../task_p.h"
-#include "../unix/socket_p.h"
-#include "isctest.h"
-
-static isc_boolean_t recv_dscp;
-static unsigned int recv_dscp_value;
-
-/*
- * Helper functions
- */
-
-typedef struct {
- isc_boolean_t done;
- isc_result_t result;
- isc_socket_t *socket;
-} completion_t;
-
-static void
-completion_init(completion_t *completion) {
- completion->done = ISC_FALSE;
- completion->socket = NULL;
-}
-
-static void
-accept_done(isc_task_t *task, isc_event_t *event) {
- isc_socket_newconnev_t *nevent = (isc_socket_newconnev_t *)event;
- completion_t *completion = event->ev_arg;
-
- UNUSED(task);
-
- completion->result = nevent->result;
- completion->done = ISC_TRUE;
- if (completion->result == ISC_R_SUCCESS)
- completion->socket = nevent->newsocket;
-
- isc_event_free(&event);
-}
-
-static void
-event_done(isc_task_t *task, isc_event_t *event) {
- isc_socketevent_t *dev;
- completion_t *completion = event->ev_arg;
-
- UNUSED(task);
-
- dev = (isc_socketevent_t *) event;
- completion->result = dev->result;
- completion->done = ISC_TRUE;
- if ((dev->attributes & ISC_SOCKEVENTATTR_DSCP) != 0) {
- recv_dscp = ISC_TRUE;
- recv_dscp_value = dev->dscp;;
- } else
- recv_dscp = ISC_FALSE;
- isc_event_free(&event);
-}
-
-static isc_result_t
-waitfor(completion_t *completion) {
- int i = 0;
- while (!completion->done && i++ < 5000) {
-#ifndef ISC_PLATFORM_USETHREADS
- while (isc__taskmgr_ready(taskmgr))
- isc__taskmgr_dispatch(taskmgr);
-#endif
- isc_test_nap(1000);
- }
- if (completion->done)
- return (ISC_R_SUCCESS);
- return (ISC_R_FAILURE);
-}
-
-#if 0
-static isc_result_t
-waitfor(completion_t *completion) {
- int i = 0;
- while (!completion->done && i++ < 5000) {
- waitbody();
- }
- if (completion->done)
- return (ISC_R_SUCCESS);
- return (ISC_R_FAILURE);
-}
-#endif
-
-static void
-waitbody(void) {
-#ifndef ISC_PLATFORM_USETHREADS
- struct timeval tv;
- isc_socketwait_t *swait = NULL;
-
- while (isc__taskmgr_ready(taskmgr))
- isc__taskmgr_dispatch(taskmgr);
- if (socketmgr != NULL) {
- tv.tv_sec = 0;
- tv.tv_usec = 1000 ;
- if (isc__socketmgr_waitevents(socketmgr, &tv, &swait) > 0)
- isc__socketmgr_dispatch(socketmgr, swait);
- } else
-#endif
- isc_test_nap(1000);
-}
-
-static isc_result_t
-waitfor2(completion_t *c1, completion_t *c2) {
- int i = 0;
-
- while (!(c1->done && c2->done) && i++ < 5000) {
- waitbody();
- }
- if (c1->done && c2->done)
- return (ISC_R_SUCCESS);
- return (ISC_R_FAILURE);
-}
-
-/*
- * Individual unit tests
- */
-
-/* Test UDP sendto/recv (IPv4) */
-ATF_TC(udp_sendto);
-ATF_TC_HEAD(udp_sendto, tc) {
- atf_tc_set_md_var(tc, "descr", "UDP sendto/recv");
-}
-ATF_TC_BODY(udp_sendto, tc) {
- isc_result_t result;
- isc_sockaddr_t addr1, addr2;
- struct in_addr in;
- isc_socket_t *s1 = NULL, *s2 = NULL;
- isc_task_t *task = NULL;
- char sendbuf[BUFSIZ], recvbuf[BUFSIZ];
- completion_t completion;
- isc_region_t r;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- in.s_addr = inet_addr("127.0.0.1");
- isc_sockaddr_fromin(&addr1, &in, 0);
- isc_sockaddr_fromin(&addr2, &in, 0);
-
- result = isc_socket_create(socketmgr, PF_INET, isc_sockettype_udp, &s1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = isc_socket_bind(s1, &addr1, 0);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = isc_socket_getsockname(s1, &addr1);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- ATF_REQUIRE(isc_sockaddr_getport(&addr1) != 0);
-
- result = isc_socket_create(socketmgr, PF_INET, isc_sockettype_udp, &s2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = isc_socket_bind(s2, &addr2, 0);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = isc_socket_getsockname(s2, &addr2);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- ATF_REQUIRE(isc_sockaddr_getport(&addr2) != 0);
-
- result = isc_task_create(taskmgr, 0, &task);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- strcpy(sendbuf, "Hello");
- r.base = (void *) sendbuf;
- r.length = strlen(sendbuf) + 1;
-
- completion_init(&completion);
- result = isc_socket_sendto(s1, &r, task, event_done, &completion,
- &addr2, NULL);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- waitfor(&completion);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
-
- r.base = (void *) recvbuf;
- r.length = BUFSIZ;
- completion_init(&completion);
- result = isc_socket_recv(s2, &r, 1, task, event_done, &completion);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- waitfor(&completion);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
- ATF_CHECK_STREQ(recvbuf, "Hello");
-
- isc_task_detach(&task);
-
- isc_socket_detach(&s1);
- isc_socket_detach(&s2);
-
- isc_test_end();
-}
-
-/* Test UDP sendto/recv with duplicated socket */
-ATF_TC(udp_dup);
-ATF_TC_HEAD(udp_dup, tc) {
- atf_tc_set_md_var(tc, "descr", "duplicated socket sendto/recv");
-}
-ATF_TC_BODY(udp_dup, tc) {
- isc_result_t result;
- isc_sockaddr_t addr1, addr2;
- struct in_addr in;
- isc_socket_t *s1 = NULL, *s2 = NULL, *s3 = NULL;
- isc_task_t *task = NULL;
- char sendbuf[BUFSIZ], recvbuf[BUFSIZ];
- completion_t completion;
- isc_region_t r;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- in.s_addr = inet_addr("127.0.0.1");
- isc_sockaddr_fromin(&addr1, &in, 0);
- isc_sockaddr_fromin(&addr2, &in, 0);
-
- result = isc_socket_create(socketmgr, PF_INET, isc_sockettype_udp, &s1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = isc_socket_bind(s1, &addr1, 0);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = isc_socket_getsockname(s1, &addr1);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- ATF_REQUIRE(isc_sockaddr_getport(&addr1) != 0);
-
- result = isc_socket_create(socketmgr, PF_INET, isc_sockettype_udp, &s2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = isc_socket_bind(s2, &addr2, 0);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = isc_socket_getsockname(s2, &addr2);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- ATF_REQUIRE(isc_sockaddr_getport(&addr2) != 0);
-
- result = isc_socket_dup(s2, &s3);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_task_create(taskmgr, 0, &task);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- strcpy(sendbuf, "Hello");
- r.base = (void *) sendbuf;
- r.length = strlen(sendbuf) + 1;
-
- completion_init(&completion);
- result = isc_socket_sendto(s1, &r, task, event_done, &completion,
- &addr2, NULL);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- waitfor(&completion);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
-
- strcpy(sendbuf, "World");
- r.base = (void *) sendbuf;
- r.length = strlen(sendbuf) + 1;
-
- completion_init(&completion);
- result = isc_socket_sendto(s1, &r, task, event_done, &completion,
- &addr2, NULL);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- waitfor(&completion);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
-
- r.base = (void *) recvbuf;
- r.length = BUFSIZ;
- completion_init(&completion);
- result = isc_socket_recv(s2, &r, 1, task, event_done, &completion);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- waitfor(&completion);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
- ATF_CHECK_STREQ(recvbuf, "Hello");
-
- r.base = (void *) recvbuf;
- r.length = BUFSIZ;
- completion_init(&completion);
- result = isc_socket_recv(s3, &r, 1, task, event_done, &completion);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- waitfor(&completion);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
- ATF_CHECK_STREQ(recvbuf, "World");
-
- isc_task_detach(&task);
-
- isc_socket_detach(&s1);
- isc_socket_detach(&s2);
- isc_socket_detach(&s3);
-
- isc_test_end();
-}
-
-/* Test TCP sendto/recv (IPv4) */
-ATF_TC(udp_dscp_v4);
-ATF_TC_HEAD(udp_dscp_v4, tc) {
- atf_tc_set_md_var(tc, "descr", "UDP DSCP IPV4");
-}
-ATF_TC_BODY(udp_dscp_v4, tc) {
- isc_result_t result;
- isc_sockaddr_t addr1, addr2;
- struct in_addr in;
- isc_socket_t *s1 = NULL, *s2 = NULL;
- isc_task_t *task = NULL;
- char sendbuf[BUFSIZ], recvbuf[BUFSIZ];
- completion_t completion;
- isc_region_t r;
- isc_socketevent_t *socketevent;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- in.s_addr = inet_addr("127.0.0.1");
- isc_sockaddr_fromin(&addr1, &in, 0);
- isc_sockaddr_fromin(&addr2, &in, 0);
-
- result = isc_socket_create(socketmgr, PF_INET, isc_sockettype_udp, &s1);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- result = isc_socket_bind(s1, &addr1, ISC_SOCKET_REUSEADDRESS);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- result = isc_socket_getsockname(s1, &addr1);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- ATF_REQUIRE(isc_sockaddr_getport(&addr1) != 0);
-
- result = isc_socket_create(socketmgr, PF_INET, isc_sockettype_udp, &s2);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- result = isc_socket_bind(s2, &addr2, ISC_SOCKET_REUSEADDRESS);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- result = isc_socket_getsockname(s2, &addr2);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- ATF_REQUIRE(isc_sockaddr_getport(&addr2) != 0);
-
- result = isc_task_create(taskmgr, 0, &task);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
-
- strcpy(sendbuf, "Hello");
- r.base = (void *) sendbuf;
- r.length = strlen(sendbuf) + 1;
-
- completion_init(&completion);
-
- socketevent = isc_socket_socketevent(mctx, s1, ISC_SOCKEVENT_SENDDONE,
- event_done, &completion);
- ATF_REQUIRE(socketevent != NULL);
-
- if ((isc_net_probedscp() & ISC_NET_DSCPPKTV4) != 0) {
- socketevent->dscp = 056; /* EF */
- socketevent->attributes |= ISC_SOCKEVENTATTR_DSCP;
- } else if ((isc_net_probedscp() & ISC_NET_DSCPSETV4) != 0) {
- isc_socket_dscp(s1, 056); /* EF */
- socketevent->dscp = 0;
- socketevent->attributes &= ~ISC_SOCKEVENTATTR_DSCP;
- }
-
- recv_dscp = ISC_FALSE;
- recv_dscp_value = 0;
-
- result = isc_socket_sendto2(s1, &r, task, &addr2, NULL, socketevent, 0);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- waitfor(&completion);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
-
- r.base = (void *) recvbuf;
- r.length = BUFSIZ;
- completion_init(&completion);
- result = isc_socket_recv(s2, &r, 1, task, event_done, &completion);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- waitfor(&completion);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
- ATF_CHECK_STREQ(recvbuf, "Hello");
-
- if ((isc_net_probedscp() & ISC_NET_DSCPRECVV4) != 0) {
- ATF_CHECK(recv_dscp);
- ATF_CHECK_EQ(recv_dscp_value, 056);
- } else
- ATF_CHECK(!recv_dscp);
- isc_task_detach(&task);
-
- isc_socket_detach(&s1);
- isc_socket_detach(&s2);
-
- isc_test_end();
-}
-
-/* Test TCP sendto/recv (IPv4) */
-ATF_TC(udp_dscp_v6);
-ATF_TC_HEAD(udp_dscp_v6, tc) {
- atf_tc_set_md_var(tc, "descr", "udp dscp ipv6");
-}
-ATF_TC_BODY(udp_dscp_v6, tc) {
-#if defined(ISC_PLATFORM_HAVEIPV6) && defined(WANT_IPV6)
- isc_result_t result;
- isc_sockaddr_t addr1, addr2;
- struct in6_addr in6;
- isc_socket_t *s1 = NULL, *s2 = NULL;
- isc_task_t *task = NULL;
- char sendbuf[BUFSIZ], recvbuf[BUFSIZ];
- completion_t completion;
- isc_region_t r;
- isc_socketevent_t *socketevent;
- int n;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- n = inet_pton(AF_INET6, "::1", &in6.s6_addr);
- ATF_REQUIRE(n == 1);
- isc_sockaddr_fromin6(&addr1, &in6, 0);
- isc_sockaddr_fromin6(&addr2, &in6, 0);
-
- result = isc_socket_create(socketmgr, PF_INET6, isc_sockettype_udp,
- &s1);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- result = isc_socket_bind(s1, &addr1, 0);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- result = isc_socket_getsockname(s1, &addr1);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- ATF_REQUIRE(isc_sockaddr_getport(&addr1) != 0);
-
- result = isc_socket_create(socketmgr, PF_INET6, isc_sockettype_udp,
- &s2);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- result = isc_socket_bind(s2, &addr2, 0);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- result = isc_socket_getsockname(s2, &addr2);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- ATF_REQUIRE(isc_sockaddr_getport(&addr2) != 0);
-
- result = isc_task_create(taskmgr, 0, &task);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
-
- strcpy(sendbuf, "Hello");
- r.base = (void *) sendbuf;
- r.length = strlen(sendbuf) + 1;
-
- completion_init(&completion);
-
- socketevent = isc_socket_socketevent(mctx, s1, ISC_SOCKEVENT_SENDDONE,
- event_done, &completion);
- ATF_REQUIRE(socketevent != NULL);
-
- if ((isc_net_probedscp() & ISC_NET_DSCPPKTV6) != 0) {
- socketevent->dscp = 056; /* EF */
- socketevent->attributes = ISC_SOCKEVENTATTR_DSCP;
- } else if ((isc_net_probedscp() & ISC_NET_DSCPSETV6) != 0)
- isc_socket_dscp(s1, 056); /* EF */
-
- recv_dscp = ISC_FALSE;
- recv_dscp_value = 0;
-
- result = isc_socket_sendto2(s1, &r, task, &addr2, NULL, socketevent, 0);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- waitfor(&completion);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
-
- r.base = (void *) recvbuf;
- r.length = BUFSIZ;
- completion_init(&completion);
- result = isc_socket_recv(s2, &r, 1, task, event_done, &completion);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- waitfor(&completion);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
- ATF_CHECK_STREQ(recvbuf, "Hello");
- if ((isc_net_probedscp() & ISC_NET_DSCPRECVV6) != 0) {
- ATF_CHECK(recv_dscp);
- ATF_CHECK_EQ(recv_dscp_value, 056);
- } else
- ATF_CHECK(!recv_dscp);
-
- isc_task_detach(&task);
-
- isc_socket_detach(&s1);
- isc_socket_detach(&s2);
-
- isc_test_end();
-#else
- UNUSED(tc);
- atf_tc_skip("IPv6 not available");
-#endif
-}
-
-/* Test TCP sendto/recv (IPv4) */
-ATF_TC(tcp_dscp_v4);
-ATF_TC_HEAD(tcp_dscp_v4, tc) {
- atf_tc_set_md_var(tc, "descr", "tcp dscp ipv4");
-}
-ATF_TC_BODY(tcp_dscp_v4, tc) {
- isc_result_t result;
- isc_sockaddr_t addr1;
- struct in_addr in;
- isc_socket_t *s1 = NULL, *s2 = NULL, *s3 = NULL;
- isc_task_t *task = NULL;
- char sendbuf[BUFSIZ], recvbuf[BUFSIZ];
- completion_t completion, completion2;
- isc_region_t r;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- in.s_addr = inet_addr("127.0.0.1");
- isc_sockaddr_fromin(&addr1, &in, 0);
-
- result = isc_socket_create(socketmgr, PF_INET, isc_sockettype_tcp, &s1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_socket_bind(s1, &addr1, 0);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = isc_socket_getsockname(s1, &addr1);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- ATF_REQUIRE(isc_sockaddr_getport(&addr1) != 0);
-
- result = isc_socket_listen(s1, 3);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_socket_create(socketmgr, PF_INET, isc_sockettype_tcp, &s2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_task_create(taskmgr, 0, &task);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- completion_init(&completion2);
- result = isc_socket_accept(s1, task, accept_done, &completion2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- completion_init(&completion);
- result = isc_socket_connect(s2, &addr1, task, event_done, &completion);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- waitfor2(&completion, &completion2);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
- ATF_CHECK(completion2.done);
- ATF_CHECK_EQ(completion2.result, ISC_R_SUCCESS);
- s3 = completion2.socket;
-
- isc_socket_dscp(s2, 056); /* EF */
-
- strcpy(sendbuf, "Hello");
- r.base = (void *) sendbuf;
- r.length = strlen(sendbuf) + 1;
-
- recv_dscp = ISC_FALSE;
- recv_dscp_value = 0;
-
- completion_init(&completion);
- result = isc_socket_sendto(s2, &r, task, event_done, &completion,
- NULL, NULL);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- waitfor(&completion);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
-
- r.base = (void *) recvbuf;
- r.length = BUFSIZ;
- completion_init(&completion);
- result = isc_socket_recv(s3, &r, 1, task, event_done, &completion);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- waitfor(&completion);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
- ATF_CHECK_STREQ(recvbuf, "Hello");
-
- if ((isc_net_probedscp() & ISC_NET_DSCPRECVV4) != 0) {
- if (recv_dscp)
- ATF_CHECK_EQ(recv_dscp_value, 056);
- } else
- ATF_CHECK(!recv_dscp);
-
- isc_task_detach(&task);
-
- isc_socket_detach(&s1);
- isc_socket_detach(&s2);
- isc_socket_detach(&s3);
-
- isc_test_end();
-}
-
-/* Test TCP sendto/recv (IPv6) */
-ATF_TC(tcp_dscp_v6);
-ATF_TC_HEAD(tcp_dscp_v6, tc) {
- atf_tc_set_md_var(tc, "descr", "tcp dscp ipv6");
-}
-ATF_TC_BODY(tcp_dscp_v6, tc) {
-#ifdef ISC_PLATFORM_HAVEIPV6
- isc_result_t result;
- isc_sockaddr_t addr1;
- struct in6_addr in6;
- isc_socket_t *s1 = NULL, *s2 = NULL, *s3 = NULL;
- isc_task_t *task = NULL;
- char sendbuf[BUFSIZ], recvbuf[BUFSIZ];
- completion_t completion, completion2;
- isc_region_t r;
- int n;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- n = inet_pton(AF_INET6, "::1", &in6.s6_addr);
- ATF_REQUIRE(n == 1);
- isc_sockaddr_fromin6(&addr1, &in6, 0);
-
- result = isc_socket_create(socketmgr, PF_INET6, isc_sockettype_tcp,
- &s1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_socket_bind(s1, &addr1, 0);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- result = isc_socket_getsockname(s1, &addr1);
- ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS, "%s",
- isc_result_totext(result));
- ATF_REQUIRE(isc_sockaddr_getport(&addr1) != 0);
-
- result = isc_socket_listen(s1, 3);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_socket_create(socketmgr, PF_INET6, isc_sockettype_tcp,
- &s2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_task_create(taskmgr, 0, &task);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- completion_init(&completion2);
- result = isc_socket_accept(s1, task, accept_done, &completion2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- completion_init(&completion);
- result = isc_socket_connect(s2, &addr1, task, event_done, &completion);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- waitfor2(&completion, &completion2);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
- ATF_CHECK(completion2.done);
- ATF_CHECK_EQ(completion2.result, ISC_R_SUCCESS);
- s3 = completion2.socket;
-
- isc_socket_dscp(s2, 056); /* EF */
-
- strcpy(sendbuf, "Hello");
- r.base = (void *) sendbuf;
- r.length = strlen(sendbuf) + 1;
-
- recv_dscp = ISC_FALSE;
- recv_dscp_value = 0;
-
- completion_init(&completion);
- result = isc_socket_sendto(s2, &r, task, event_done, &completion,
- NULL, NULL);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- waitfor(&completion);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
-
- r.base = (void *) recvbuf;
- r.length = BUFSIZ;
- completion_init(&completion);
- result = isc_socket_recv(s3, &r, 1, task, event_done, &completion);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- waitfor(&completion);
- ATF_CHECK(completion.done);
- ATF_CHECK_EQ(completion.result, ISC_R_SUCCESS);
- ATF_CHECK_STREQ(recvbuf, "Hello");
-
- if ((isc_net_probedscp() & ISC_NET_DSCPRECVV6) != 0) {
- /*
- * IPV6_RECVTCLASS is undefined for TCP however
- * if we do get it it should be the value we set.
- */
- if (recv_dscp)
- ATF_CHECK_EQ(recv_dscp_value, 056);
- } else
- ATF_CHECK(!recv_dscp);
-
- isc_task_detach(&task);
-
- isc_socket_detach(&s1);
- isc_socket_detach(&s2);
- isc_socket_detach(&s3);
-
- isc_test_end();
-#else
- UNUSED(tc);
- atf_tc_skip("IPv6 not available");
-#endif
-}
-
-ATF_TC(net_probedscp);
-ATF_TC_HEAD(net_probedscp, tc) {
- atf_tc_set_md_var(tc, "descr", "probe dscp capabilities");
-}
-ATF_TC_BODY(net_probedscp, tc) {
- unsigned int n;
-
- UNUSED(tc);
-
- n = isc_net_probedscp();
- ATF_CHECK((n & ~ISC_NET_DSCPALL) == 0);
-
- /* ISC_NET_DSCPSETV4 MUST be set if any is set. */
- if (n & (ISC_NET_DSCPSETV4|ISC_NET_DSCPPKTV4|ISC_NET_DSCPRECVV4))
- ATF_CHECK_MSG((n & ISC_NET_DSCPSETV4) != 0,
- "IPv4:%s%s%s\n",
- (n & ISC_NET_DSCPSETV4) ? " set" : " none",
- (n & ISC_NET_DSCPPKTV4) ? " packet" : "",
- (n & ISC_NET_DSCPRECVV4) ? " receive" : "");
-
- /* ISC_NET_DSCPSETV6 MUST be set if any is set. */
- if (n & (ISC_NET_DSCPSETV6|ISC_NET_DSCPPKTV6|ISC_NET_DSCPRECVV6))
- ATF_CHECK_MSG((n & ISC_NET_DSCPSETV6) != 0,
- "IPv6:%s%s%s\n",
- (n & ISC_NET_DSCPSETV6) ? " set" : " none",
- (n & ISC_NET_DSCPPKTV6) ? " packet" : "",
- (n & ISC_NET_DSCPRECVV6) ? " receive" : "");
-
-#if 0
- fprintf(stdout, "IPv4:%s%s%s\n",
- (n & ISC_NET_DSCPSETV4) ? " set" : "none",
- (n & ISC_NET_DSCPPKTV4) ? " packet" : "",
- (n & ISC_NET_DSCPRECVV4) ? " receive" : "");
-
- fprintf(stdout, "IPv6:%s%s%s\n",
- (n & ISC_NET_DSCPSETV6) ? " set" : "none",
- (n & ISC_NET_DSCPPKTV6) ? " packet" : "",
- (n & ISC_NET_DSCPRECVV6) ? " receive" : "");
-#endif
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, udp_sendto);
- ATF_TP_ADD_TC(tp, udp_dup);
- ATF_TP_ADD_TC(tp, tcp_dscp_v4);
- ATF_TP_ADD_TC(tp, tcp_dscp_v6);
- ATF_TP_ADD_TC(tp, udp_dscp_v4);
- ATF_TP_ADD_TC(tp, udp_dscp_v6);
- ATF_TP_ADD_TC(tp, net_probedscp);
-
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/isc/tests/symtab_test.c b/usr.sbin/bind/lib/isc/tests/symtab_test.c
deleted file mode 100644
index adeab52cd51..00000000000
--- a/usr.sbin/bind/lib/isc/tests/symtab_test.c
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- * Copyright (C) 2011-2013 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: symtab_test.c,v 1.1 2019/12/16 16:31:36 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <isc/symtab.h>
-#include <isc/print.h>
-
-#include "isctest.h"
-
-static void
-undefine(char *key, unsigned int type, isc_symvalue_t value, void *arg) {
- UNUSED(arg);
-
- ATF_REQUIRE_EQ(type, 1);
- isc_mem_free(mctx, key);
- isc_mem_free(mctx, value.as_pointer);
-}
-
-/*
- * Individual unit tests
- */
-
-ATF_TC(symtab_grow);
-ATF_TC_HEAD(symtab_grow, tc) {
- atf_tc_set_md_var(tc, "descr", "symbol table growth");
-}
-ATF_TC_BODY(symtab_grow, tc) {
- isc_result_t result;
- isc_symtab_t *st = NULL;
- isc_symvalue_t value;
- isc_symexists_t policy = isc_symexists_reject;
- int i;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_symtab_create(mctx, 3, undefine, NULL, ISC_FALSE, &st);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE(st != NULL);
-
- /* Nothing should be in the table yet */
-
- /*
- * Put 1024 entries in the table (this should necessate
- * regrowing the hash table several times
- */
- for (i = 0; i < 1024; i++) {
- char str[16], *key;
-
- snprintf(str, sizeof(str), "%04x", i);
- key = isc_mem_strdup(mctx, str);
- ATF_REQUIRE(key != NULL);
- value.as_pointer = isc_mem_strdup(mctx, str);
- ATF_REQUIRE(value.as_pointer != NULL);
- result = isc_symtab_define(st, key, 1, value, policy);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- if (result != ISC_R_SUCCESS)
- undefine(key, 1, value, NULL);
- }
-
- /*
- * Try to put them in again; this should fail
- */
- for (i = 0; i < 1024; i++) {
- char str[16], *key;
-
- snprintf(str, sizeof(str), "%04x", i);
- key = isc_mem_strdup(mctx, str);
- ATF_REQUIRE(key != NULL);
- value.as_pointer = isc_mem_strdup(mctx, str);
- ATF_REQUIRE(value.as_pointer != NULL);
- result = isc_symtab_define(st, key, 1, value, policy);
- ATF_CHECK_EQ(result, ISC_R_EXISTS);
- undefine(key, 1, value, NULL);
- }
-
- /*
- * Retrieve them; this should succeed
- */
- for (i = 0; i < 1024; i++) {
- char str[16];
-
- snprintf(str, sizeof(str), "%04x", i);
- result = isc_symtab_lookup(st, str, 0, &value);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- ATF_CHECK_STREQ(str, (char *)value.as_pointer);
- }
-
- /*
- * Undefine them
- */
- for (i = 0; i < 1024; i++) {
- char str[16];
-
- snprintf(str, sizeof(str), "%04x", i);
- result = isc_symtab_undefine(st, str, 1);
- ATF_CHECK_EQ(result, ISC_R_SUCCESS);
- }
-
- /*
- * Retrieve them again; this should fail
- */
- for (i = 0; i < 1024; i++) {
- char str[16];
-
- snprintf(str, sizeof(str), "%04x", i);
- result = isc_symtab_lookup(st, str, 0, &value);
- ATF_CHECK_EQ(result, ISC_R_NOTFOUND);
- }
-
- isc_symtab_destroy(&st);
- isc_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, symtab_grow);
-
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/isc/tests/task_test.c b/usr.sbin/bind/lib/isc/tests/task_test.c
deleted file mode 100644
index 36870efeedc..00000000000
--- a/usr.sbin/bind/lib/isc/tests/task_test.c
+++ /dev/null
@@ -1,416 +0,0 @@
-/*
- * Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: task_test.c,v 1.1 2019/12/16 16:31:36 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <isc/task.h>
-#include <isc/util.h>
-
-#include "../task_p.h"
-#include "isctest.h"
-
-/*
- * Helper functions
- */
-
-/* task event handler, sets a boolean to true */
-int counter = 0;
-isc_mutex_t set_lock;
-
-static void
-set(isc_task_t *task, isc_event_t *event) {
- int *value = (int *) event->ev_arg;
-
- UNUSED(task);
-
- isc_event_free(&event);
- LOCK(&set_lock);
- *value = counter++;
- UNLOCK(&set_lock);
-}
-
-static void
-set_and_drop(isc_task_t *task, isc_event_t *event) {
- int *value = (int *) event->ev_arg;
-
- UNUSED(task);
-
- isc_event_free(&event);
- LOCK(&set_lock);
- *value = (int) isc_taskmgr_mode(taskmgr);
- counter++;
- UNLOCK(&set_lock);
- isc_taskmgr_setmode(taskmgr, isc_taskmgrmode_normal);
-}
-
-/*
- * Individual unit tests
- */
-
-/* Create a task */
-ATF_TC(create_task);
-ATF_TC_HEAD(create_task, tc) {
- atf_tc_set_md_var(tc, "descr", "create and destroy a task");
-}
-ATF_TC_BODY(create_task, tc) {
- isc_result_t result;
- isc_task_t *task = NULL;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_task_create(taskmgr, 0, &task);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- isc_task_destroy(&task);
- ATF_REQUIRE_EQ(task, NULL);
-
- isc_test_end();
-}
-
-/* Process events */
-ATF_TC(all_events);
-ATF_TC_HEAD(all_events, tc) {
- atf_tc_set_md_var(tc, "descr", "process task events");
-}
-ATF_TC_BODY(all_events, tc) {
- isc_result_t result;
- isc_task_t *task = NULL;
- isc_event_t *event;
- int a = 0, b = 0;
- int i = 0;
-
- UNUSED(tc);
-
- counter = 1;
-
- result = isc_mutex_init(&set_lock);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_task_create(taskmgr, 0, &task);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- /* First event */
- event = isc_event_allocate(mctx, task, ISC_TASKEVENT_TEST,
- set, &a, sizeof (isc_event_t));
- ATF_REQUIRE(event != NULL);
-
- ATF_CHECK_EQ(a, 0);
- isc_task_send(task, &event);
-
- event = isc_event_allocate(mctx, task, ISC_TASKEVENT_TEST,
- set, &b, sizeof (isc_event_t));
- ATF_REQUIRE(event != NULL);
-
- ATF_CHECK_EQ(b, 0);
- isc_task_send(task, &event);
-
- while ((a == 0 || b == 0) && i++ < 5000) {
-#ifndef ISC_PLATFORM_USETHREADS
- while (isc__taskmgr_ready(taskmgr))
- isc__taskmgr_dispatch(taskmgr);
-#endif
- isc_test_nap(1000);
- }
-
- ATF_CHECK(a != 0);
- ATF_CHECK(b != 0);
-
- isc_task_destroy(&task);
- ATF_REQUIRE_EQ(task, NULL);
-
- isc_test_end();
-}
-
-/* Privileged events */
-ATF_TC(privileged_events);
-ATF_TC_HEAD(privileged_events, tc) {
- atf_tc_set_md_var(tc, "descr", "process privileged events");
-}
-ATF_TC_BODY(privileged_events, tc) {
- isc_result_t result;
- isc_task_t *task1 = NULL, *task2 = NULL;
- isc_event_t *event;
- int a = 0, b = 0, c = 0, d = 0, e = 0;
- int i = 0;
-
- UNUSED(tc);
-
- counter = 1;
- result = isc_mutex_init(&set_lock);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
-#ifdef ISC_PLATFORM_USETHREADS
- /*
- * Pause the task manager so we can fill up the work queue
- * without things happening while we do it.
- */
- isc__taskmgr_pause(taskmgr);
-#endif
-
- result = isc_task_create(taskmgr, 0, &task1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- isc_task_setname(task1, "privileged", NULL);
- ATF_CHECK(!isc_task_privilege(task1));
- isc_task_setprivilege(task1, ISC_TRUE);
- ATF_CHECK(isc_task_privilege(task1));
-
- result = isc_task_create(taskmgr, 0, &task2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- isc_task_setname(task2, "normal", NULL);
- ATF_CHECK(!isc_task_privilege(task2));
-
- /* First event: privileged */
- event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
- set, &a, sizeof (isc_event_t));
- ATF_REQUIRE(event != NULL);
-
- ATF_CHECK_EQ(a, 0);
- isc_task_send(task1, &event);
-
- /* Second event: not privileged */
- event = isc_event_allocate(mctx, task2, ISC_TASKEVENT_TEST,
- set, &b, sizeof (isc_event_t));
- ATF_REQUIRE(event != NULL);
-
- ATF_CHECK_EQ(b, 0);
- isc_task_send(task2, &event);
-
- /* Third event: privileged */
- event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
- set, &c, sizeof (isc_event_t));
- ATF_REQUIRE(event != NULL);
-
- ATF_CHECK_EQ(c, 0);
- isc_task_send(task1, &event);
-
- /* Fourth event: privileged */
- event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
- set, &d, sizeof (isc_event_t));
- ATF_REQUIRE(event != NULL);
-
- ATF_CHECK_EQ(d, 0);
- isc_task_send(task1, &event);
-
- /* Fifth event: not privileged */
- event = isc_event_allocate(mctx, task2, ISC_TASKEVENT_TEST,
- set, &e, sizeof (isc_event_t));
- ATF_REQUIRE(event != NULL);
-
- ATF_CHECK_EQ(e, 0);
- isc_task_send(task2, &event);
-
- ATF_CHECK_EQ(isc_taskmgr_mode(taskmgr), isc_taskmgrmode_normal);
- isc_taskmgr_setmode(taskmgr, isc_taskmgrmode_privileged);
- ATF_CHECK_EQ(isc_taskmgr_mode(taskmgr), isc_taskmgrmode_privileged);
-
-#ifdef ISC_PLATFORM_USETHREADS
- isc__taskmgr_resume(taskmgr);
-#endif
-
- /* We're waiting for *all* variables to be set */
- while ((a == 0 || b == 0 || c == 0 || d == 0 || e == 0) && i++ < 5000) {
-#ifndef ISC_PLATFORM_USETHREADS
- while (isc__taskmgr_ready(taskmgr))
- isc__taskmgr_dispatch(taskmgr);
-#endif
- isc_test_nap(1000);
- }
-
- /*
- * We can't guarantee what order the events fire, but
- * we do know the privileged tasks that set a, c, and d
- * would have fired first.
- */
- ATF_CHECK(a <= 3);
- ATF_CHECK(c <= 3);
- ATF_CHECK(d <= 3);
-
- /* ...and the non-privileged tasks that set b and e, last */
- ATF_CHECK(b >= 4);
- ATF_CHECK(e >= 4);
-
- ATF_CHECK_EQ(counter, 6);
-
- isc_task_setprivilege(task1, ISC_FALSE);
- ATF_CHECK(!isc_task_privilege(task1));
-
- ATF_CHECK_EQ(isc_taskmgr_mode(taskmgr), isc_taskmgrmode_normal);
-
- isc_task_destroy(&task1);
- ATF_REQUIRE_EQ(task1, NULL);
- isc_task_destroy(&task2);
- ATF_REQUIRE_EQ(task2, NULL);
-
- isc_test_end();
-}
-
-/*
- * Edge case: this tests that the task manager behaves as expected when
- * we explicitly set it into normal mode *while* running privileged.
- */
-ATF_TC(privilege_drop);
-ATF_TC_HEAD(privilege_drop, tc) {
- atf_tc_set_md_var(tc, "descr", "process privileged events");
-}
-ATF_TC_BODY(privilege_drop, tc) {
- isc_result_t result;
- isc_task_t *task1 = NULL, *task2 = NULL;
- isc_event_t *event;
- int a = -1, b = -1, c = -1, d = -1, e = -1; /* non valid states */
- int i = 0;
-
- UNUSED(tc);
-
- counter = 1;
- result = isc_mutex_init(&set_lock);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
-#ifdef ISC_PLATFORM_USETHREADS
- /*
- * Pause the task manager so we can fill up the work queue
- * without things happening while we do it.
- */
- isc__taskmgr_pause(taskmgr);
-#endif
-
- result = isc_task_create(taskmgr, 0, &task1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- isc_task_setname(task1, "privileged", NULL);
- ATF_CHECK(!isc_task_privilege(task1));
- isc_task_setprivilege(task1, ISC_TRUE);
- ATF_CHECK(isc_task_privilege(task1));
-
- result = isc_task_create(taskmgr, 0, &task2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- isc_task_setname(task2, "normal", NULL);
- ATF_CHECK(!isc_task_privilege(task2));
-
- /* First event: privileged */
- event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
- set_and_drop, &a, sizeof (isc_event_t));
- ATF_REQUIRE(event != NULL);
-
- ATF_CHECK_EQ(a, -1);
- isc_task_send(task1, &event);
-
- /* Second event: not privileged */
- event = isc_event_allocate(mctx, task2, ISC_TASKEVENT_TEST,
- set_and_drop, &b, sizeof (isc_event_t));
- ATF_REQUIRE(event != NULL);
-
- ATF_CHECK_EQ(b, -1);
- isc_task_send(task2, &event);
-
- /* Third event: privileged */
- event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
- set_and_drop, &c, sizeof (isc_event_t));
- ATF_REQUIRE(event != NULL);
-
- ATF_CHECK_EQ(c, -1);
- isc_task_send(task1, &event);
-
- /* Fourth event: privileged */
- event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
- set_and_drop, &d, sizeof (isc_event_t));
- ATF_REQUIRE(event != NULL);
-
- ATF_CHECK_EQ(d, -1);
- isc_task_send(task1, &event);
-
- /* Fifth event: not privileged */
- event = isc_event_allocate(mctx, task2, ISC_TASKEVENT_TEST,
- set_and_drop, &e, sizeof (isc_event_t));
- ATF_REQUIRE(event != NULL);
-
- ATF_CHECK_EQ(e, -1);
- isc_task_send(task2, &event);
-
- ATF_CHECK_EQ(isc_taskmgr_mode(taskmgr), isc_taskmgrmode_normal);
- isc_taskmgr_setmode(taskmgr, isc_taskmgrmode_privileged);
- ATF_CHECK_EQ(isc_taskmgr_mode(taskmgr), isc_taskmgrmode_privileged);
-
-#ifdef ISC_PLATFORM_USETHREADS
- isc__taskmgr_resume(taskmgr);
-#endif
-
- /* We're waiting for all variables to be set. */
- while ((a == -1 || b == -1 || c == -1 || d == -1 || e == -1) &&
- i++ < 5000) {
-#ifndef ISC_PLATFORM_USETHREADS
- while (isc__taskmgr_ready(taskmgr))
- isc__taskmgr_dispatch(taskmgr);
-#endif
- isc_test_nap(1000);
- }
-
- /*
- * We can't guarantee what order the events fire, but
- * we do know *exactly one* of the privileged tasks will
- * have run in privileged mode...
- */
- ATF_CHECK(a == isc_taskmgrmode_privileged ||
- c == isc_taskmgrmode_privileged ||
- d == isc_taskmgrmode_privileged);
- ATF_CHECK(a + c + d == isc_taskmgrmode_privileged);
-
- /* ...and neither of the non-privileged tasks did... */
- ATF_CHECK(b == isc_taskmgrmode_normal || e == isc_taskmgrmode_normal);
-
- /* ...but all five of them did run. */
- ATF_CHECK_EQ(counter, 6);
-
- ATF_CHECK_EQ(isc_taskmgr_mode(taskmgr), isc_taskmgrmode_normal);
-
- isc_task_destroy(&task1);
- ATF_REQUIRE_EQ(task1, NULL);
- isc_task_destroy(&task2);
- ATF_REQUIRE_EQ(task2, NULL);
-
- isc_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, create_task);
- ATF_TP_ADD_TC(tp, all_events);
- ATF_TP_ADD_TC(tp, privileged_events);
- ATF_TP_ADD_TC(tp, privilege_drop);
-
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/isc/tests/taskpool_test.c b/usr.sbin/bind/lib/isc/tests/taskpool_test.c
deleted file mode 100644
index 7d0d532e8e7..00000000000
--- a/usr.sbin/bind/lib/isc/tests/taskpool_test.c
+++ /dev/null
@@ -1,211 +0,0 @@
-/*
- * Copyright (C) 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: taskpool_test.c,v 1.1 2019/12/16 16:31:36 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <unistd.h>
-
-#include <isc/task.h>
-#include <isc/taskpool.h>
-
-#include "isctest.h"
-
-/*
- * Individual unit tests
- */
-
-/* Create a taskpool */
-ATF_TC(create_pool);
-ATF_TC_HEAD(create_pool, tc) {
- atf_tc_set_md_var(tc, "descr", "create a taskpool");
-}
-ATF_TC_BODY(create_pool, tc) {
- isc_result_t result;
- isc_taskpool_t *pool = NULL;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_taskpool_create(taskmgr, mctx, 8, 2, &pool);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_taskpool_size(pool), 8);
-
- isc_taskpool_destroy(&pool);
- ATF_REQUIRE_EQ(pool, NULL);
-
- isc_test_end();
-}
-
-/* Resize a taskpool */
-ATF_TC(expand_pool);
-ATF_TC_HEAD(expand_pool, tc) {
- atf_tc_set_md_var(tc, "descr", "expand a taskpool");
-}
-ATF_TC_BODY(expand_pool, tc) {
- isc_result_t result;
- isc_taskpool_t *pool1 = NULL, *pool2 = NULL, *hold = NULL;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_taskpool_create(taskmgr, mctx, 10, 2, &pool1);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_taskpool_size(pool1), 10);
-
- /* resizing to a smaller size should have no effect */
- hold = pool1;
- result = isc_taskpool_expand(&pool1, 5, &pool2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_taskpool_size(pool2), 10);
- ATF_REQUIRE_EQ(pool2, hold);
- ATF_REQUIRE_EQ(pool1, NULL);
- pool1 = pool2;
- pool2 = NULL;
-
- /* resizing to the same size should have no effect */
- hold = pool1;
- result = isc_taskpool_expand(&pool1, 10, &pool2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_taskpool_size(pool2), 10);
- ATF_REQUIRE_EQ(pool2, hold);
- ATF_REQUIRE_EQ(pool1, NULL);
- pool1 = pool2;
- pool2 = NULL;
-
- /* resizing to larger size should make a new pool */
- hold = pool1;
- result = isc_taskpool_expand(&pool1, 20, &pool2);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_taskpool_size(pool2), 20);
- ATF_REQUIRE(pool2 != hold);
- ATF_REQUIRE_EQ(pool1, NULL);
-
- isc_taskpool_destroy(&pool2);
- ATF_REQUIRE_EQ(pool2, NULL);
-
- isc_test_end();
-}
-
-/* Get tasks */
-ATF_TC(get_tasks);
-ATF_TC_HEAD(get_tasks, tc) {
- atf_tc_set_md_var(tc, "descr", "create a taskpool");
-}
-ATF_TC_BODY(get_tasks, tc) {
- isc_result_t result;
- isc_taskpool_t *pool = NULL;
- isc_task_t *task1 = NULL, *task2 = NULL, *task3 = NULL;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_taskpool_create(taskmgr, mctx, 2, 2, &pool);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_taskpool_size(pool), 2);
-
- /* two tasks in pool; make sure we can access them more than twice */
- isc_taskpool_gettask(pool, &task1);
- ATF_REQUIRE(ISCAPI_TASK_VALID(task1));
-
- isc_taskpool_gettask(pool, &task2);
- ATF_REQUIRE(ISCAPI_TASK_VALID(task2));
-
- isc_taskpool_gettask(pool, &task3);
- ATF_REQUIRE(ISCAPI_TASK_VALID(task3));
-
- isc_task_destroy(&task1);
- isc_task_destroy(&task2);
- isc_task_destroy(&task3);
-
- isc_taskpool_destroy(&pool);
- ATF_REQUIRE_EQ(pool, NULL);
-
- isc_test_end();
-}
-
-/* Get tasks */
-ATF_TC(set_privilege);
-ATF_TC_HEAD(set_privilege, tc) {
- atf_tc_set_md_var(tc, "descr", "create a taskpool");
-}
-ATF_TC_BODY(set_privilege, tc) {
- isc_result_t result;
- isc_taskpool_t *pool = NULL;
- isc_task_t *task1 = NULL, *task2 = NULL, *task3 = NULL;
-
- UNUSED(tc);
-
- result = isc_test_begin(NULL, ISC_TRUE);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- result = isc_taskpool_create(taskmgr, mctx, 2, 2, &pool);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_taskpool_size(pool), 2);
-
- isc_taskpool_setprivilege(pool, ISC_TRUE);
-
- isc_taskpool_gettask(pool, &task1);
- isc_taskpool_gettask(pool, &task2);
- isc_taskpool_gettask(pool, &task3);
-
- ATF_CHECK(ISCAPI_TASK_VALID(task1));
- ATF_CHECK(ISCAPI_TASK_VALID(task2));
- ATF_CHECK(ISCAPI_TASK_VALID(task3));
-
- ATF_CHECK(isc_task_privilege(task1));
- ATF_CHECK(isc_task_privilege(task2));
- ATF_CHECK(isc_task_privilege(task3));
-
- isc_taskpool_setprivilege(pool, ISC_FALSE);
-
- ATF_CHECK(!isc_task_privilege(task1));
- ATF_CHECK(!isc_task_privilege(task2));
- ATF_CHECK(!isc_task_privilege(task3));
-
- isc_task_destroy(&task1);
- isc_task_destroy(&task2);
- isc_task_destroy(&task3);
-
- isc_taskpool_destroy(&pool);
- ATF_REQUIRE_EQ(pool, NULL);
-
- isc_test_end();
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, create_pool);
- ATF_TP_ADD_TC(tp, expand_pool);
- ATF_TP_ADD_TC(tp, get_tasks);
- ATF_TP_ADD_TC(tp, set_privilege);
-
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/isc/tests/time_test.c b/usr.sbin/bind/lib/isc/tests/time_test.c
deleted file mode 100644
index 66836f7feb9..00000000000
--- a/usr.sbin/bind/lib/isc/tests/time_test.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright (C) 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <config.h>
-#include <stdlib.h>
-
-#include <atf-c.h>
-
-#include <isc/time.h>
-#include <isc/result.h>
-
-ATF_TC(isc_time_parsehttptimestamp);
-ATF_TC_HEAD(isc_time_parsehttptimestamp, tc) {
- atf_tc_set_md_var(tc, "descr", "parse http time stamp");
-}
-ATF_TC_BODY(isc_time_parsehttptimestamp, tc) {
- isc_result_t result;
- isc_time_t t, x;
- char buf[ISC_FORMATHTTPTIMESTAMP_SIZE];
-
- setenv("TZ", "PST8PDT", 1);
- result = isc_time_now(&t);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
- isc_time_formathttptimestamp(&t, buf, sizeof(buf));
- result = isc_time_parsehttptimestamp(buf, &x);
- ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
- ATF_REQUIRE_EQ(isc_time_seconds(&t), isc_time_seconds(&x));
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, isc_time_parsehttptimestamp);
- return (atf_no_error());
-}
-
diff --git a/usr.sbin/bind/lib/isccc/win32/DLLMain.c b/usr.sbin/bind/lib/isccc/win32/DLLMain.c
deleted file mode 100644
index 7a8f1fa32d6..00000000000
--- a/usr.sbin/bind/lib/isccc/win32/DLLMain.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
- * Copyright (C) 2001 Internet Software Consortium.
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: DLLMain.c,v 1.3 2019/12/16 16:31:36 deraadt Exp $ */
-
-#include <windows.h>
-#include <signal.h>
-
-/*
- * Called when we enter the DLL
- */
-__declspec(dllexport) BOOL WINAPI DllMain(HINSTANCE hinstDLL,
- DWORD fdwReason, LPVOID lpvReserved)
-{
- switch (fdwReason) {
- /*
- * The DLL is loading due to process
- * initialization or a call to LoadLibrary.
- */
- case DLL_PROCESS_ATTACH:
- break;
-
- /* The attached process creates a new thread. */
- case DLL_THREAD_ATTACH:
- break;
-
- /* The thread of the attached process terminates. */
- case DLL_THREAD_DETACH:
- break;
-
- /*
- * The DLL is unloading from a process due to
- * process termination or a call to FreeLibrary.
- */
- case DLL_PROCESS_DETACH:
- break;
-
- default:
- break;
- }
- return (TRUE);
-}
-
diff --git a/usr.sbin/bind/lib/isccc/win32/libisccc.def b/usr.sbin/bind/lib/isccc/win32/libisccc.def
deleted file mode 100644
index 7a06b9a4470..00000000000
--- a/usr.sbin/bind/lib/isccc/win32/libisccc.def
+++ /dev/null
@@ -1,70 +0,0 @@
-LIBRARY libisccc
-
-; Exported Functions
-EXPORTS
-
-isccc_alist_create
-isccc_alist_alistp
-isccc_alist_emptyp
-isccc_alist_first
-isccc_alist_assq
-isccc_alist_delete
-isccc_alist_define
-isccc_alist_definestring
-isccc_alist_definebinary
-isccc_alist_lookup
-isccc_alist_lookupstring
-isccc_alist_lookupbinary
-isccc_alist_prettyprint
-isccc_base64_encode
-isccc_base64_decode
-isccc_cc_towire
-isccc_cc_fromwire
-isccc_cc_createmessage
-isccc_cc_createack
-isccc_cc_isack
-isccc_cc_isreply
-isccc_cc_createresponse
-isccc_cc_definestring
-isccc_cc_defineuint32
-isccc_cc_lookupstring
-isccc_cc_lookupuint32
-isccc_cc_createsymtab
-isccc_cc_cleansymtab
-isccc_cc_checkdup
-isccc_ccmsg_init
-isccc_ccmsg_setmaxsize
-isccc_ccmsg_readmessage
-isccc_ccmsg_cancelread
-isccc_ccmsg_invalidate
-isccc_lib_initmsgcat
-isccc_result_totext
-isccc_result_register
-isccc_sexpr_cons
-isccc_sexpr_tconst
-isccc_sexpr_fromstring
-isccc_sexpr_frombinary
-isccc_sexpr_free
-isccc_sexpr_print
-isccc_sexpr_car
-isccc_sexpr_cdr
-isccc_sexpr_setcar
-isccc_sexpr_setcdr
-isccc_sexpr_addtolist
-isccc_sexpr_listp
-isccc_sexpr_emptyp
-isccc_sexpr_stringp
-isccc_sexpr_binaryp
-isccc_sexpr_tostring
-isccc_sexpr_tobinary
-isccc_symtab_destroy
-isccc_symtab_create
-isccc_symtab_destroy
-isccc_symtab_lookup
-isccc_symtab_define
-isccc_symtab_undefine
-isccc_symtab_foreach
-
-; Exported Data
-
-;isccc_msgcat
diff --git a/usr.sbin/bind/lib/isccc/win32/libisccc.dsp.in b/usr.sbin/bind/lib/isccc/win32/libisccc.dsp.in
deleted file mode 100644
index 82c731efc86..00000000000
--- a/usr.sbin/bind/lib/isccc/win32/libisccc.dsp.in
+++ /dev/null
@@ -1,201 +0,0 @@
-# Microsoft Developer Studio Project File - Name="libisccc" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "@PLATFORM@ (x86) Dynamic-Link Library" 0x0102
-
-CFG=libisccc - @PLATFORM@ Release
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "libisccc.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "libisccc.mak" CFG="libisccc - @PLATFORM@ Release"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "libisccc - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE "libisccc - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 @COPTX@ @COPTI@ /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "libisccc_EXPORTS" @COPTY@ /FD /c
-# ADD CPP /nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "./" /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/dns/win32/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__STDC__" /D "_MBCS" /D "_USRDLL" /D "USE_MD5" @CRYPTO@ /D "LIBISCCC_EXPORTS" @COPTY@ /FD /c
-# SUBTRACT CPP /X
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll @MACHINE@
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib /nologo /dll @MACHINE@ /out:"../../../Build/Release/libisccc.dll"
-
-!ELSEIF "$(CFG)" == "libisccc - @PLATFORM@ Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "libisccc_EXPORTS" @COPTY@ /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "./" /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/dns/win32/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "USE_MD5" @CRYPTO@ /D "LIBISCCC_EXPORTS" /FR @COPTY@ /FD /GZ /c
-# SUBTRACT CPP /X
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug @MACHINE@ /pdbtype:sept
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/debug/libisc.lib /nologo /dll /debug @MACHINE@ /out:"../../../Build/Debug/libisccc.dll" /pdbtype:sept
-
-!ENDIF
-
-# Begin Target
-
-# Name "libisccc - @PLATFORM@ Release"
-# Name "libisccc - @PLATFORM@ Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=..\alist.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\base64.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\cc.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\ccmsg.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\DLLMain.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\lib.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\result.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\sexpr.c
-# End Source File
-# Begin Source File
-
-SOURCE=..\symtab.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\version.c
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=..\include\isccc\alist.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\isccc\base64.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\isccc\cc.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\isccc\ccmsg.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\isccc\events.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\isccc\lib.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\isccc\result.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\isccc\sexpr.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\isccc\symtab.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\isccc\symtype.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\isccc\types.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\isccc\util.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\include\isccc\version.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# Begin Source File
-
-SOURCE=.\libisccc.def
-# End Source File
-# End Target
-# End Project
diff --git a/usr.sbin/bind/lib/isccc/win32/libisccc.dsw b/usr.sbin/bind/lib/isccc/win32/libisccc.dsw
deleted file mode 100644
index 28eaa74f357..00000000000
--- a/usr.sbin/bind/lib/isccc/win32/libisccc.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "libisccc"=.\libisccc.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/usr.sbin/bind/lib/isccc/win32/libisccc.mak.in b/usr.sbin/bind/lib/isccc/win32/libisccc.mak.in
deleted file mode 100644
index d6512d383c3..00000000000
--- a/usr.sbin/bind/lib/isccc/win32/libisccc.mak.in
+++ /dev/null
@@ -1,540 +0,0 @@
-# Microsoft Developer Studio Generated NMAKE File, Based on libisccc.dsp
-!IF "$(CFG)" == ""
-CFG=libisccc - @PLATFORM@ Release
-!MESSAGE No configuration specified. Defaulting to libisccc - @PLATFORM@ Release.
-!ENDIF
-
-!IF "$(CFG)" != "libisccc - @PLATFORM@ Release" && "$(CFG)" != "libisccc - @PLATFORM@ Debug"
-!MESSAGE Invalid configuration "$(CFG)" specified.
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "libisccc.mak" CFG="libisccc - @PLATFORM@ Release"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "libisccc - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE "libisccc - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE
-!ERROR An invalid configuration is specified.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release"
-_VC_MANIFEST_INC=0
-_VC_MANIFEST_BASENAME=__VC80
-!ELSE
-_VC_MANIFEST_INC=1
-_VC_MANIFEST_BASENAME=__VC80.Debug
-!ENDIF
-
-####################################################
-# Specifying name of temporary resource file used only in incremental builds:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-_VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
-!else
-_VC_MANIFEST_AUTO_RES=
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
-
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
-
-!endif
-####################################################
-# _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-_VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
- $(_VC_MANIFEST_BASENAME).auto.rc \
- $(_VC_MANIFEST_BASENAME).auto.manifest
-
-!else
-
-_VC_MANIFEST_CLEAN=
-
-!endif
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release"
-
-OUTDIR=.\Release
-INTDIR=.\Release
-
-!IF "$(RECURSE)" == "0"
-
-ALL : "..\..\..\Build\Release\libisccc.dll"
-
-!ELSE
-
-ALL : "libisc - @PLATFORM@ Release" "..\..\..\Build\Release\libisccc.dll"
-
-!ENDIF
-
-!IF "$(RECURSE)" == "1"
-CLEAN :"libisc - @PLATFORM@ ReleaseCLEAN"
-!ELSE
-CLEAN :
-!ENDIF
- -@erase "$(INTDIR)\alist.obj"
- -@erase "$(INTDIR)\base64.obj"
- -@erase "$(INTDIR)\cc.obj"
- -@erase "$(INTDIR)\ccmsg.obj"
- -@erase "$(INTDIR)\DLLMain.obj"
- -@erase "$(INTDIR)\lib.obj"
- -@erase "$(INTDIR)\result.obj"
- -@erase "$(INTDIR)\sexpr.obj"
- -@erase "$(INTDIR)\symtab.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\version.obj"
- -@erase "$(OUTDIR)\libisccc.exp"
- -@erase "$(OUTDIR)\libisccc.lib"
- -@erase "..\..\..\Build\Release\libisccc.dll"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP_PROJ=/nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "./" /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/dns/win32/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__STDC__" /D "_MBCS" /D "_USRDLL" /D "USE_MD5" @CRYPTO@ /D "LIBISCCC_EXPORTS" /Fp"$(INTDIR)\libisccc.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
-MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\libisccc.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib /nologo /dll /incremental:no /pdb:"$(OUTDIR)\libisccc.pdb" @MACHINE@ /def:".\libisccc.def" /out:"../../../Build/Release/libisccc.dll" /implib:"$(OUTDIR)\libisccc.lib"
-DEF_FILE= \
- ".\libisccc.def"
-LINK32_OBJS= \
- "$(INTDIR)\alist.obj" \
- "$(INTDIR)\base64.obj" \
- "$(INTDIR)\cc.obj" \
- "$(INTDIR)\ccmsg.obj" \
- "$(INTDIR)\DLLMain.obj" \
- "$(INTDIR)\lib.obj" \
- "$(INTDIR)\result.obj" \
- "$(INTDIR)\sexpr.obj" \
- "$(INTDIR)\symtab.obj" \
- "$(INTDIR)\version.obj" \
- "..\..\isc\win32\Release\libisc.lib"
-
-"..\..\..\Build\Release\libisccc.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_DLL)
-
-!ELSEIF "$(CFG)" == "libisccc - @PLATFORM@ Debug"
-
-OUTDIR=.\Debug
-INTDIR=.\Debug
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-!IF "$(RECURSE)" == "0"
-
-ALL : "..\..\..\Build\Debug\libisccc.dll" "$(OUTDIR)\libisccc.bsc"
-
-!ELSE
-
-ALL : "libisc - @PLATFORM@ Debug" "..\..\..\Build\Debug\libisccc.dll" "$(OUTDIR)\libisccc.bsc"
-
-!ENDIF
-
-!IF "$(RECURSE)" == "1"
-CLEAN :"libisc - @PLATFORM@ DebugCLEAN"
-!ELSE
-CLEAN :
-!ENDIF
- -@erase "$(INTDIR)\alist.obj"
- -@erase "$(INTDIR)\alist.sbr"
- -@erase "$(INTDIR)\base64.obj"
- -@erase "$(INTDIR)\base64.sbr"
- -@erase "$(INTDIR)\cc.obj"
- -@erase "$(INTDIR)\cc.sbr"
- -@erase "$(INTDIR)\ccmsg.obj"
- -@erase "$(INTDIR)\ccmsg.sbr"
- -@erase "$(INTDIR)\DLLMain.obj"
- -@erase "$(INTDIR)\DLLMain.sbr"
- -@erase "$(INTDIR)\lib.obj"
- -@erase "$(INTDIR)\lib.sbr"
- -@erase "$(INTDIR)\result.obj"
- -@erase "$(INTDIR)\result.sbr"
- -@erase "$(INTDIR)\sexpr.obj"
- -@erase "$(INTDIR)\sexpr.sbr"
- -@erase "$(INTDIR)\symtab.obj"
- -@erase "$(INTDIR)\symtab.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(INTDIR)\version.obj"
- -@erase "$(INTDIR)\version.sbr"
- -@erase "$(OUTDIR)\libisccc.bsc"
- -@erase "$(OUTDIR)\libisccc.exp"
- -@erase "$(OUTDIR)\libisccc.lib"
- -@erase "$(OUTDIR)\libisccc.pdb"
- -@erase "..\..\..\Build\Debug\libisccc.dll"
- -@erase "..\..\..\Build\Debug\libisccc.ilk"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP_PROJ=/nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "./" /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/dns/win32/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "USE_MD5" @CRYPTO@ /D "LIBISCCC_EXPORTS" /FR"$(INTDIR)\\" /Fp"$(INTDIR)\libisccc.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\libisccc.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\alist.sbr" \
- "$(INTDIR)\base64.sbr" \
- "$(INTDIR)\cc.sbr" \
- "$(INTDIR)\ccmsg.sbr" \
- "$(INTDIR)\DLLMain.sbr" \
- "$(INTDIR)\lib.sbr" \
- "$(INTDIR)\result.sbr" \
- "$(INTDIR)\sexpr.sbr" \
- "$(INTDIR)\symtab.sbr" \
- "$(INTDIR)\version.sbr"
-
-"$(OUTDIR)\libisccc.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/debug/libisc.lib /nologo /dll /incremental:yes /pdb:"$(OUTDIR)\libisccc.pdb" /debug @MACHINE@ /def:".\libisccc.def" /out:"../../../Build/Debug/libisccc.dll" /implib:"$(OUTDIR)\libisccc.lib" /pdbtype:sept
-DEF_FILE= \
- ".\libisccc.def"
-LINK32_OBJS= \
- "$(INTDIR)\alist.obj" \
- "$(INTDIR)\base64.obj" \
- "$(INTDIR)\cc.obj" \
- "$(INTDIR)\ccmsg.obj" \
- "$(INTDIR)\DLLMain.obj" \
- "$(INTDIR)\lib.obj" \
- "$(INTDIR)\result.obj" \
- "$(INTDIR)\sexpr.obj" \
- "$(INTDIR)\symtab.obj" \
- "$(INTDIR)\version.obj" \
- "..\..\isc\win32\Debug\libisc.lib"
-
-"..\..\..\Build\Debug\libisccc.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_DLL)
-
-!ENDIF
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("libisccc.dep")
-!INCLUDE "libisccc.dep"
-!ELSE
-!MESSAGE Warning: cannot find "libisccc.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release" || "$(CFG)" == "libisccc - @PLATFORM@ Debug"
-SOURCE=..\alist.c
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release"
-
-
-"$(INTDIR)\alist.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libisccc - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\alist.obj" "$(INTDIR)\alist.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=..\base64.c
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release"
-
-
-"$(INTDIR)\base64.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libisccc - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\base64.obj" "$(INTDIR)\base64.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=..\cc.c
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release"
-
-
-"$(INTDIR)\cc.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libisccc - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\cc.obj" "$(INTDIR)\cc.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=..\ccmsg.c
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release"
-
-
-"$(INTDIR)\ccmsg.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libisccc - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\ccmsg.obj" "$(INTDIR)\ccmsg.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=.\DLLMain.c
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release"
-
-
-"$(INTDIR)\DLLMain.obj" : $(SOURCE) "$(INTDIR)"
-
-
-!ELSEIF "$(CFG)" == "libisccc - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\DLLMain.obj" "$(INTDIR)\DLLMain.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-!ENDIF
-
-SOURCE=..\lib.c
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release"
-
-
-"$(INTDIR)\lib.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libisccc - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\lib.obj" "$(INTDIR)\lib.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=..\result.c
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release"
-
-
-"$(INTDIR)\result.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libisccc - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\result.obj" "$(INTDIR)\result.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=..\sexpr.c
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release"
-
-
-"$(INTDIR)\sexpr.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libisccc - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\sexpr.obj" "$(INTDIR)\sexpr.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=..\symtab.c
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release"
-
-
-"$(INTDIR)\symtab.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libisccc - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\symtab.obj" "$(INTDIR)\symtab.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=.\version.c
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release"
-
-
-"$(INTDIR)\version.obj" : $(SOURCE) "$(INTDIR)"
-
-
-!ELSEIF "$(CFG)" == "libisccc - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\version.obj" "$(INTDIR)\version.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-!ENDIF
-
-!IF "$(CFG)" == "libisccc - @PLATFORM@ Release"
-
-"libisc - @PLATFORM@ Release" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release"
- cd "..\..\isccc\win32"
-
-"libisc - @PLATFORM@ ReleaseCLEAN" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release" RECURSE=1 CLEAN
- cd "..\..\isccc\win32"
-
-!ELSEIF "$(CFG)" == "libisccc - @PLATFORM@ Debug"
-
-"libisc - @PLATFORM@ Debug" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug"
- cd "..\..\isccc\win32"
-
-"libisc - @PLATFORM@ DebugCLEAN" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug" RECURSE=1 CLEAN
- cd "..\..\isccc\win32"
-
-!ENDIF
-
-
-!ENDIF
-
-####################################################
-# Commands to generate initial empty manifest file and the RC file
-# that references it, and for generating the .res file:
-
-$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
-
-$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
- type <<$@
-#include <winuser.h>
-1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
-<< KEEP
-
-$(_VC_MANIFEST_BASENAME).auto.manifest :
- type <<$@
-<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
-<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
-</assembly>
-<< KEEP
diff --git a/usr.sbin/bind/lib/isccc/win32/libisccc.vcxproj.filters.in b/usr.sbin/bind/lib/isccc/win32/libisccc.vcxproj.filters.in
deleted file mode 100644
index aa6f5636360..00000000000
--- a/usr.sbin/bind/lib/isccc/win32/libisccc.vcxproj.filters.in
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
- <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
- <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
- </Filter>
- <Filter Include="Resource Files">
- <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
- <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <None Include="libisccc.def" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="DLLMain.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="version.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\alist.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\base64.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\cc.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\ccmsg.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\lib.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\result.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\sexpr.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\symtab.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\include\isccc\alist.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\isccc\base64.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\isccc\cc.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\isccc\ccmsg.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\isccc\events.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\isccc\lib.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\isccc\result.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\isccc\sexpr.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\isccc\symtab.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\isccc\symtype.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\isccc\types.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\isccc\util.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\isccc\version.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- </ItemGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/isccc/win32/libisccc.vcxproj.in b/usr.sbin/bind/lib/isccc/win32/libisccc.vcxproj.in
deleted file mode 100644
index 1d199e921ed..00000000000
--- a/usr.sbin/bind/lib/isccc/win32/libisccc.vcxproj.in
+++ /dev/null
@@ -1,139 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|@PLATFORM@">
- <Configuration>Debug</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|@PLATFORM@">
- <Configuration>Release</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{B556705F-1920-4400-878A-B259D3556047}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>libisccc</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;USE_MD5;@CRYPTO@_DEBUG;_WINDOWS;_USRDLL;LIBISCCC_EXPORTS;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>.\;..\..\..\;@LIBXML2_INC@@OPENSSL_INC@include;..\include;..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <BrowseInformation>true</BrowseInformation>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <ModuleDefinitionFile>$(ProjectName).def</ModuleDefinitionFile>
- <ImportLibrary>.\$(Configuration)\$(ProjectName).lib</ImportLibrary>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;USE_MD5;@CRYPTO@NDEBUG;_WINDOWS;_USRDLL;LIBISCCC_EXPORTS;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>.\;..\..\..\;@LIBXML2_INC@@OPENSSL_INC@include;..\include;..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
- <StringPooling>true</StringPooling>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <WholeProgramOptimization>false</WholeProgramOptimization>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <ModuleDefinitionFile>$(ProjectName).def</ModuleDefinitionFile>
- <ImportLibrary>.\$(Configuration)\$(ProjectName).lib</ImportLibrary>
- <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <None Include="libisccc.def" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\alist.c" />
- <ClCompile Include="..\base64.c" />
- <ClCompile Include="..\cc.c" />
- <ClCompile Include="..\ccmsg.c" />
- <ClCompile Include="..\lib.c" />
- <ClCompile Include="..\result.c" />
- <ClCompile Include="..\sexpr.c" />
- <ClCompile Include="..\symtab.c" />
- <ClCompile Include="DLLMain.c" />
- <ClCompile Include="version.c" />
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\include\isccc\alist.h" />
- <ClInclude Include="..\include\isccc\base64.h" />
- <ClInclude Include="..\include\isccc\cc.h" />
- <ClInclude Include="..\include\isccc\ccmsg.h" />
- <ClInclude Include="..\include\isccc\events.h" />
- <ClInclude Include="..\include\isccc\lib.h" />
- <ClInclude Include="..\include\isccc\result.h" />
- <ClInclude Include="..\include\isccc\sexpr.h" />
- <ClInclude Include="..\include\isccc\symtab.h" />
- <ClInclude Include="..\include\isccc\symtype.h" />
- <ClInclude Include="..\include\isccc\types.h" />
- <ClInclude Include="..\include\isccc\util.h" />
- <ClInclude Include="..\include\isccc\version.h" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/isccc/win32/libisccc.vcxproj.user b/usr.sbin/bind/lib/isccc/win32/libisccc.vcxproj.user
deleted file mode 100644
index 695b5c78b91..00000000000
--- a/usr.sbin/bind/lib/isccc/win32/libisccc.vcxproj.user
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/isccc/win32/version.c b/usr.sbin/bind/lib/isccc/win32/version.c
deleted file mode 100644
index b353b2985a4..00000000000
--- a/usr.sbin/bind/lib/isccc/win32/version.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
- * Copyright (C) 2001 Internet Software Consortium.
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: version.c,v 1.3 2019/12/16 16:31:36 deraadt Exp $ */
-
-#include <versions.h>
-
-#include <isccc/version.h>
-
-LIBISCCC_EXTERNAL_DATA const char isccc_version[] = VERSION;
-
-LIBISCCC_EXTERNAL_DATA const unsigned int isccc_libinterface = LIBINTERFACE;
-LIBISCCC_EXTERNAL_DATA const unsigned int isccc_librevision = LIBREVISION;
-LIBISCCC_EXTERNAL_DATA const unsigned int isccc_libage = LIBAGE;
diff --git a/usr.sbin/bind/lib/lwres/tests/Atffile b/usr.sbin/bind/lib/lwres/tests/Atffile
deleted file mode 100644
index c3e044f41a8..00000000000
--- a/usr.sbin/bind/lib/lwres/tests/Atffile
+++ /dev/null
@@ -1,5 +0,0 @@
-Content-Type: application/X-atf-atffile; version="1"
-
-prop: test-suite = bind9
-
-tp-glob: *_test
diff --git a/usr.sbin/bind/lib/lwres/tests/Makefile.in b/usr.sbin/bind/lib/lwres/tests/Makefile.in
deleted file mode 100644
index 021365ce448..00000000000
--- a/usr.sbin/bind/lib/lwres/tests/Makefile.in
+++ /dev/null
@@ -1,54 +0,0 @@
-# Copyright (C) 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-# $Id: Makefile.in,v 1.1 2019/12/16 16:31:36 deraadt Exp $
-
-srcdir = @srcdir@
-VPATH = @srcdir@
-top_srcdir = @top_srcdir@
-
-# Attempt to disable parallel processing.
-.NOTPARALLEL:
-.NO_PARALLEL:
-
-VERSION=@BIND9_VERSION@
-
-@BIND9_MAKE_INCLUDES@
-
-CINCLUDES = -I. -Iinclude -I../include ${LWRES_INCLUDES}
-CDEFINES = -DTESTS="\"${top_builddir}/lib/lwres/tests/\""
-
-LWRESLIBS = ../liblwres.@A@
-LWRESDEPLIBS = ../liblwres.@A@
-
-LIBS = @LIBS@ @ATFLIBS@
-
-OBJS =
-SRCS = config_test.c
-
-SUBDIRS =
-TARGETS = config_test@EXEEXT@
-
-@BIND9_MAKE_RULES@
-
-config_test@EXEEXT@: config_test.@O@ ${LWRESDEPLIBS}
- ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
- config_test.@O@ ${LWRESLIBS} ${LIBS}
-
-unit::
- sh ${top_srcdir}/unit/unittest.sh
-
-clean distclean::
- rm -f ${TARGETS}
- rm -f atf.out
diff --git a/usr.sbin/bind/lib/lwres/tests/config_test.c b/usr.sbin/bind/lib/lwres/tests/config_test.c
deleted file mode 100644
index d3ea5566903..00000000000
--- a/usr.sbin/bind/lib/lwres/tests/config_test.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <config.h>
-
-#include <atf-c.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#include "../lwconfig.c"
-
-static void
-setup_test() {
- /*
- * atf-run changes us to a /tmp directory, so tests
- * that access test data files must first chdir to the proper
- * location.
- */
- ATF_CHECK(chdir(TESTS) != -1);
-}
-
-ATF_TC(parse_linklocal);
-ATF_TC_HEAD(parse_linklocal, tc) {
- atf_tc_set_md_var(tc, "descr", "lwres_conf_parse link-local nameserver");
-}
-ATF_TC_BODY(parse_linklocal, tc) {
- lwres_result_t result;
- lwres_context_t *ctx = NULL;
- unsigned char addr[16] = { 0xfe, 0x80, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x01 };
-
- UNUSED(tc);
-
- setup_test();
-
- lwres_context_create(&ctx, NULL, NULL, NULL,
- LWRES_CONTEXT_USEIPV4 | LWRES_CONTEXT_USEIPV6);
- ATF_CHECK_EQ(ctx->confdata.nsnext, 0);
- ATF_CHECK_EQ(ctx->confdata.nameservers[0].zone, 0);
-
- result = lwres_conf_parse(ctx, "testdata/link-local.conf");
- ATF_CHECK_EQ(result, LWRES_R_SUCCESS);
- ATF_CHECK_EQ(ctx->confdata.nsnext, 1);
- ATF_CHECK_EQ(ctx->confdata.nameservers[0].zone, 1);
- ATF_CHECK_EQ(memcmp(ctx->confdata.nameservers[0].address, addr, 16), 0);
- lwres_context_destroy(&ctx);
-}
-
-/*
- * Main
- */
-ATF_TP_ADD_TCS(tp) {
- ATF_TP_ADD_TC(tp, parse_linklocal);
- return (atf_no_error());
-}
diff --git a/usr.sbin/bind/lib/lwres/tests/testdata/link-local.conf b/usr.sbin/bind/lib/lwres/tests/testdata/link-local.conf
deleted file mode 100644
index 8a37963b58c..00000000000
--- a/usr.sbin/bind/lib/lwres/tests/testdata/link-local.conf
+++ /dev/null
@@ -1 +0,0 @@
-nameserver fe80::1%1
diff --git a/usr.sbin/bind/lib/samples/win32/async.dsp.in b/usr.sbin/bind/lib/samples/win32/async.dsp.in
deleted file mode 100644
index 35dfb6b42d0..00000000000
--- a/usr.sbin/bind/lib/samples/win32/async.dsp.in
+++ /dev/null
@@ -1,103 +0,0 @@
-# Microsoft Developer Studio Project File - Name="async" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "@PLATFORM@ (x86) Console Application" 0x0103
-
-CFG=async - @PLATFORM@ Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "async.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "async.mak" CFG="async - @PLATFORM@ Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "async - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE "async - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "async - @PLATFORM@ Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 @COPTX@ @COPTI@ /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /c
-# ADD CPP /nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "NDEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console @MACHINE@
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib /nologo /subsystem:console @MACHINE@ /out:"../../../Build/Release/sample-async.exe"
-
-!ELSEIF "$(CFG)" == "async - @PLATFORM@ Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c
-# SUBTRACT CPP /X @COPTY@
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug @MACHINE@ /pdbtype:sept
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Debug/libisc.lib ../../dns/win32/Debug/libdns.lib ../../isccfg/win32/Debug/libisccfg.lib /nologo /subsystem:console /debug @MACHINE@ /out:"../../../Build/Debug/sample-async.exe" /pdbtype:sept
-
-!ENDIF
-
-# Begin Target
-
-# Name "async - @PLATFORM@ Release"
-# Name "async - @PLATFORM@ Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE="..\sample-async.c"
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/usr.sbin/bind/lib/samples/win32/async.dsw b/usr.sbin/bind/lib/samples/win32/async.dsw
deleted file mode 100644
index f5be775725c..00000000000
--- a/usr.sbin/bind/lib/samples/win32/async.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "async"=".\async.dsp" - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/usr.sbin/bind/lib/samples/win32/async.mak.in b/usr.sbin/bind/lib/samples/win32/async.mak.in
deleted file mode 100644
index 13e59c18e4a..00000000000
--- a/usr.sbin/bind/lib/samples/win32/async.mak.in
+++ /dev/null
@@ -1,299 +0,0 @@
-# Microsoft Developer Studio Generated NMAKE File, Based on async.dsp
-!IF "$(CFG)" == ""
-CFG=async - @PLATFORM@ Debug
-!MESSAGE No configuration specified. Defaulting to async - @PLATFORM@ Debug.
-!ENDIF
-
-!IF "$(CFG)" != "async - @PLATFORM@ Release" && "$(CFG)" != "async - @PLATFORM@ Debug"
-!MESSAGE Invalid configuration "$(CFG)" specified.
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "async.mak" CFG="async - @PLATFORM@ Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "async - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE "async - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE
-!ERROR An invalid configuration is specified.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-!IF "$(CFG)" == "async - @PLATFORM@ Release"
-_VC_MANIFEST_INC=0
-_VC_MANIFEST_BASENAME=__VC80
-!ELSE
-_VC_MANIFEST_INC=1
-_VC_MANIFEST_BASENAME=__VC80.Debug
-!ENDIF
-
-####################################################
-# Specifying name of temporary resource file used only in incremental builds:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-_VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
-!else
-_VC_MANIFEST_AUTO_RES=
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
-
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
-
-!endif
-####################################################
-# _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-_VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
- $(_VC_MANIFEST_BASENAME).auto.rc \
- $(_VC_MANIFEST_BASENAME).auto.manifest
-
-!else
-
-_VC_MANIFEST_CLEAN=
-
-!endif
-
-!IF "$(CFG)" == "async - @PLATFORM@ Release"
-
-OUTDIR=.\Release
-INTDIR=.\Release
-
-ALL : "..\..\..\Build\Release\sample-async.exe"
-
-
-CLEAN :
- -@erase "$(INTDIR)\sample-async.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "..\..\..\Build\Release\sample-async.exe"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "NDEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /Fp"$(INTDIR)\sample-async.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\sample-async.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib /nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\sample-async.pdb" @MACHINE@ /out:"../../../Build/Release/sample-async.exe"
-LINK32_OBJS= \
- "$(INTDIR)\sample-async.obj"
-
-"..\..\..\Build\Release\sample-async.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_EXE)
-
-!ELSEIF "$(CFG)" == "async - @PLATFORM@ Debug"
-
-OUTDIR=.\Debug
-INTDIR=.\Debug
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-ALL : "..\..\..\Build\Debug\sample-async.exe" "$(OUTDIR)\sample-async.bsc"
-
-
-CLEAN :
- -@erase "$(INTDIR)\sample-async.obj"
- -@erase "$(INTDIR)\sample-async.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(OUTDIR)\sample-async.pdb"
- -@erase "$(OUTDIR)\sample-async.bsc"
- -@erase "..\..\..\Build\Debug\sample-async.exe"
- -@erase "..\..\..\Build\Debug\sample-async.ilk"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_CONSOLE" /D "_MBCS" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\sample-async.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\sample-async.sbr"
-
-"$(OUTDIR)\sample-async.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Debug/libisc.lib ../../dns/win32/Debug/libdns.lib ../../isccfg/win32/Debug/libisccfg.lib /nologo /subsystem:console /incremental:yes /pdb:"$(OUTDIR)\sample-async.pdb" /debug @MACHINE@ /out:"../../../Build/Debug/sample-async.exe" /pdbtype:sept
-LINK32_OBJS= \
- "$(INTDIR)\sample-async.obj"
-
-"..\..\..\Build\Debug\sample-async.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_EXE)
-
-!ENDIF
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("sample-async.dep")
-!INCLUDE "sample-async.dep"
-!ELSE
-!MESSAGE Warning: cannot find "sample-async.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "async - @PLATFORM@ Release" || "$(CFG)" == "async - @PLATFORM@ Debug"
-SOURCE="..\sample-async.c"
-
-!IF "$(CFG)" == "async - @PLATFORM@ Release"
-
-
-"$(INTDIR)\sample-async.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "async - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\sample-async.obj" "$(INTDIR)\sample-async.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-!ENDIF
-
-####################################################
-# Commands to generate initial empty manifest file and the RC file
-# that references it, and for generating the .res file:
-
-$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
-
-$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
- type <<$@
-#include <winuser.h>
-1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
-<< KEEP
-
-$(_VC_MANIFEST_BASENAME).auto.manifest :
- type <<$@
-<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
-<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
-</assembly>
-<< KEEP
diff --git a/usr.sbin/bind/lib/samples/win32/async.vcxproj.filters.in b/usr.sbin/bind/lib/samples/win32/async.vcxproj.filters.in
deleted file mode 100644
index f425f856c3d..00000000000
--- a/usr.sbin/bind/lib/samples/win32/async.vcxproj.filters.in
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
- <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
- <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
- </Filter>
- <Filter Include="Resource Files">
- <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
- <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\sample-async.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/async.vcxproj.in b/usr.sbin/bind/lib/samples/win32/async.vcxproj.in
deleted file mode 100644
index 403078a39ad..00000000000
--- a/usr.sbin/bind/lib/samples/win32/async.vcxproj.in
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|@PLATFORM@">
- <Configuration>Debug</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|@PLATFORM@">
- <Configuration>Release</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{9FC33CA3-CE4A-4EDF-BA99-EECA4B81AD06}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>async</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <BrowseInformation>true</BrowseInformation>
- <AdditionalIncludeDirectories>..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\dns\win32\include;..\..\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);..\..\dns\win32\$(Configuration);..\..\isccfg\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
- <WholeProgramOptimization>false</WholeProgramOptimization>
- <StringPooling>true</StringPooling>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <AdditionalIncludeDirectories>..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\dns\win32\include;..\..\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);..\..\dns\win32\$(Configuration);..\..\isccfg\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\sample-async.c" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/async.vcxproj.user b/usr.sbin/bind/lib/samples/win32/async.vcxproj.user
deleted file mode 100644
index 695b5c78b91..00000000000
--- a/usr.sbin/bind/lib/samples/win32/async.vcxproj.user
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/gai.dsp.in b/usr.sbin/bind/lib/samples/win32/gai.dsp.in
deleted file mode 100644
index 9282955cb2e..00000000000
--- a/usr.sbin/bind/lib/samples/win32/gai.dsp.in
+++ /dev/null
@@ -1,103 +0,0 @@
-# Microsoft Developer Studio Project File - Name="gai" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "@PLATFORM@ (x86) Console Application" 0x0103
-
-CFG=gai - @PLATFORM@ Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "gai.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "gai.mak" CFG="gai - @PLATFORM@ Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "gai - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE "gai - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "gai - @PLATFORM@ Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 @COPTX@ @COPTI@ /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /c
-# ADD CPP /nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "../../../" @LIBXML2_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /I "../../irs/win32/include" /I "../../irs/include" /D "NDEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console @MACHINE@
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib ../../irs/win32/Release/libirs.lib /nologo /subsystem:console @MACHINE@ /out:"../../../Build/Release/sample-gai.exe"
-
-!ELSEIF "$(CFG)" == "gai - @PLATFORM@ Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "../../../" @LIBXML2_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /I "../../irs/win32/include" /I "../../irs/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c
-# SUBTRACT CPP /X @COPTY@
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug @MACHINE@ /pdbtype:sept
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Debug/libisc.lib ../../dns/win32/Debug/libdns.lib ../../isccfg/win32/Debug/libisccfg.lib ../../irs/win32/Debug/libirs.lib /nologo /subsystem:console /debug @MACHINE@ /out:"../../../Build/Debug/sample-gai.exe" /pdbtype:sept
-
-!ENDIF
-
-# Begin Target
-
-# Name "gai - @PLATFORM@ Release"
-# Name "gai - @PLATFORM@ Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE="..\sample-gai.c"
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/usr.sbin/bind/lib/samples/win32/gai.dsw b/usr.sbin/bind/lib/samples/win32/gai.dsw
deleted file mode 100644
index d29405683d9..00000000000
--- a/usr.sbin/bind/lib/samples/win32/gai.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "gai"=".\gai.dsp" - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/usr.sbin/bind/lib/samples/win32/gai.mak.in b/usr.sbin/bind/lib/samples/win32/gai.mak.in
deleted file mode 100644
index 39cd2fbeef5..00000000000
--- a/usr.sbin/bind/lib/samples/win32/gai.mak.in
+++ /dev/null
@@ -1,299 +0,0 @@
-# Microsoft Developer Studio Generated NMAKE File, Based on gai.dsp
-!IF "$(CFG)" == ""
-CFG=gai - @PLATFORM@ Debug
-!MESSAGE No configuration specified. Defaulting to gai - @PLATFORM@ Debug.
-!ENDIF
-
-!IF "$(CFG)" != "gai - @PLATFORM@ Release" && "$(CFG)" != "gai - @PLATFORM@ Debug"
-!MESSAGE Invalid configuration "$(CFG)" specified.
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "gai.mak" CFG="gai - @PLATFORM@ Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "gai - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE "gai - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE
-!ERROR An invalid configuration is specified.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-!IF "$(CFG)" == "gai - @PLATFORM@ Release"
-_VC_MANIFEST_INC=0
-_VC_MANIFEST_BASENAME=__VC80
-!ELSE
-_VC_MANIFEST_INC=1
-_VC_MANIFEST_BASENAME=__VC80.Debug
-!ENDIF
-
-####################################################
-# Specifying name of temporary resource file used only in incremental builds:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-_VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
-!else
-_VC_MANIFEST_AUTO_RES=
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
-
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
-
-!endif
-####################################################
-# _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-_VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
- $(_VC_MANIFEST_BASENAME).auto.rc \
- $(_VC_MANIFEST_BASENAME).auto.manifest
-
-!else
-
-_VC_MANIFEST_CLEAN=
-
-!endif
-
-!IF "$(CFG)" == "gai - @PLATFORM@ Release"
-
-OUTDIR=.\Release
-INTDIR=.\Release
-
-ALL : "..\..\..\Build\Release\sample-gai.exe"
-
-
-CLEAN :
- -@erase "$(INTDIR)\sample-gai.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "..\..\..\Build\Release\sample-gai.exe"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "../../../" @LIBXML2_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /I "../../irs/win32/include" /I "../../irs/include" /D "NDEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /Fp"$(INTDIR)\sample-gai.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\sample-gai.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib ../../irs/win32/Release/libirs.lib /nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\sample-gai.pdb" @MACHINE@ /out:"../../../Build/Release/sample-gai.exe"
-LINK32_OBJS= \
- "$(INTDIR)\sample-gai.obj"
-
-"..\..\..\Build\Release\sample-gai.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_EXE)
-
-!ELSEIF "$(CFG)" == "gai - @PLATFORM@ Debug"
-
-OUTDIR=.\Debug
-INTDIR=.\Debug
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-ALL : "..\..\..\Build\Debug\sample-gai.exe" "$(OUTDIR)\sample-gai.bsc"
-
-
-CLEAN :
- -@erase "$(INTDIR)\sample-gai.obj"
- -@erase "$(INTDIR)\sample-gai.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(OUTDIR)\sample-gai.pdb"
- -@erase "$(OUTDIR)\sample-gai.bsc"
- -@erase "..\..\..\Build\Debug\sample-gai.exe"
- -@erase "..\..\..\Build\Debug\sample-gai.ilk"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "../../../" @LIBXML2_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /I "../../irs/win32/include" /I "../../irs/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_CONSOLE" /D "_MBCS" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\sample-gai.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\sample-gai.sbr"
-
-"$(OUTDIR)\sample-gai.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Debug/libisc.lib ../../dns/win32/Debug/libdns.lib ../../isccfg/win32/Debug/libisccfg.lib ../../irs/win32/Debug/libirs.lib /nologo /subsystem:console /incremental:yes /pdb:"$(OUTDIR)\sample-gai.pdb" /debug @MACHINE@ /out:"../../../Build/Debug/sample-gai.exe" /pdbtype:sept
-LINK32_OBJS= \
- "$(INTDIR)\sample-gai.obj"
-
-"..\..\..\Build\Debug\sample-gai.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_EXE)
-
-!ENDIF
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("sample-gai.dep")
-!INCLUDE "sample-gai.dep"
-!ELSE
-!MESSAGE Warning: cannot find "sample-gai.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "gai - @PLATFORM@ Release" || "$(CFG)" == "gai - @PLATFORM@ Debug"
-SOURCE="..\sample-gai.c"
-
-!IF "$(CFG)" == "gai - @PLATFORM@ Release"
-
-
-"$(INTDIR)\sample-gai.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "gai - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\sample-gai.obj" "$(INTDIR)\sample-gai.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-!ENDIF
-
-####################################################
-# Commands to generate initial empty manifest file and the RC file
-# that references it, and for generating the .res file:
-
-$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
-
-$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
- type <<$@
-#include <winuser.h>
-1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
-<< KEEP
-
-$(_VC_MANIFEST_BASENAME).auto.manifest :
- type <<$@
-<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
-<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
-</assembly>
-<< KEEP
diff --git a/usr.sbin/bind/lib/samples/win32/gai.vcxproj.filters.in b/usr.sbin/bind/lib/samples/win32/gai.vcxproj.filters.in
deleted file mode 100644
index 30b1864f8ac..00000000000
--- a/usr.sbin/bind/lib/samples/win32/gai.vcxproj.filters.in
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
- <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
- <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
- </Filter>
- <Filter Include="Resource Files">
- <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
- <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\sample-gai.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/gai.vcxproj.in b/usr.sbin/bind/lib/samples/win32/gai.vcxproj.in
deleted file mode 100644
index 824a3141fbc..00000000000
--- a/usr.sbin/bind/lib/samples/win32/gai.vcxproj.in
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|@PLATFORM@">
- <Configuration>Debug</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|@PLATFORM@">
- <Configuration>Release</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{D42B8670-8DF6-4D90-90F7-DB5FB845AFAE}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>gai</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <BrowseInformation>true</BrowseInformation>
- <AdditionalIncludeDirectories>..\..\..\;@LIBXML2_INC@..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\dns\win32\include;..\..\dns\include;..\..\irs\win32\include;..\..\irs\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);..\..\dns\win32\$(Configuration);..\..\isccfg\win32\$(Configuration);..\..\irs\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;libirs.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
- <WholeProgramOptimization>false</WholeProgramOptimization>
- <StringPooling>true</StringPooling>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <AdditionalIncludeDirectories>..\..\..\;@LIBXML2_INC@..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\dns\win32\include;..\..\dns\include;..\..\irs\win32\include;..\..\irs\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);..\..\dns\win32\$(Configuration);..\..\isccfg\win32\$(Configuration);..\..\irs\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;libirs.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\sample-gai.c" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/gai.vcxproj.user b/usr.sbin/bind/lib/samples/win32/gai.vcxproj.user
deleted file mode 100644
index 695b5c78b91..00000000000
--- a/usr.sbin/bind/lib/samples/win32/gai.vcxproj.user
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/nsprobe.dsp.in b/usr.sbin/bind/lib/samples/win32/nsprobe.dsp.in
deleted file mode 100644
index 5161a242a5f..00000000000
--- a/usr.sbin/bind/lib/samples/win32/nsprobe.dsp.in
+++ /dev/null
@@ -1,103 +0,0 @@
-# Microsoft Developer Studio Project File - Name="nsprobe" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "@PLATFORM@ (x86) Console Application" 0x0103
-
-CFG=nsprobe - @PLATFORM@ Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "nsprobe.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "nsprobe.mak" CFG="nsprobe - @PLATFORM@ Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "nsprobe - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE "nsprobe - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "nsprobe - @PLATFORM@ Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 @COPTX@ @COPTI@ /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /c
-# ADD CPP /nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "NDEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console @MACHINE@
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib /nologo /subsystem:console @MACHINE@ /out:"../../../Build/Release/nsprobe.exe"
-
-!ELSEIF "$(CFG)" == "nsprobe - @PLATFORM@ Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c
-# SUBTRACT CPP /X @COPTY@
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug @MACHINE@ /pdbtype:sept
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Debug/libisc.lib ../../dns/win32/Debug/libdns.lib ../../isccfg/win32/Debug/libisccfg.lib /nologo /subsystem:console /debug @MACHINE@ /out:"../../../Build/Debug/nsprobe.exe" /pdbtype:sept
-
-!ENDIF
-
-# Begin Target
-
-# Name "nsprobe - @PLATFORM@ Release"
-# Name "nsprobe - @PLATFORM@ Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE="..\nsprobe.c"
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/usr.sbin/bind/lib/samples/win32/nsprobe.dsw b/usr.sbin/bind/lib/samples/win32/nsprobe.dsw
deleted file mode 100644
index 76ac5fb90de..00000000000
--- a/usr.sbin/bind/lib/samples/win32/nsprobe.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "nsprobe"=".\nsprobe.dsp" - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/usr.sbin/bind/lib/samples/win32/nsprobe.mak.in b/usr.sbin/bind/lib/samples/win32/nsprobe.mak.in
deleted file mode 100644
index 5efcdb0d69d..00000000000
--- a/usr.sbin/bind/lib/samples/win32/nsprobe.mak.in
+++ /dev/null
@@ -1,299 +0,0 @@
-# Microsoft Developer Studio Generated NMAKE File, Based on nsprobe.dsp
-!IF "$(CFG)" == ""
-CFG=nsprobe - @PLATFORM@ Debug
-!MESSAGE No configuration specified. Defaulting to nsprobe - @PLATFORM@ Debug.
-!ENDIF
-
-!IF "$(CFG)" != "nsprobe - @PLATFORM@ Release" && "$(CFG)" != "nsprobe - @PLATFORM@ Debug"
-!MESSAGE Invalid configuration "$(CFG)" specified.
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "nsprobe.mak" CFG="nsprobe - @PLATFORM@ Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "nsprobe - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE "nsprobe - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE
-!ERROR An invalid configuration is specified.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-!IF "$(CFG)" == "nsprobe - @PLATFORM@ Release"
-_VC_MANIFEST_INC=0
-_VC_MANIFEST_BASENAME=__VC80
-!ELSE
-_VC_MANIFEST_INC=1
-_VC_MANIFEST_BASENAME=__VC80.Debug
-!ENDIF
-
-####################################################
-# Specifying name of temporary resource file used only in incremental builds:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-_VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
-!else
-_VC_MANIFEST_AUTO_RES=
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
-
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
-
-!endif
-####################################################
-# _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-_VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
- $(_VC_MANIFEST_BASENAME).auto.rc \
- $(_VC_MANIFEST_BASENAME).auto.manifest
-
-!else
-
-_VC_MANIFEST_CLEAN=
-
-!endif
-
-!IF "$(CFG)" == "nsprobe - @PLATFORM@ Release"
-
-OUTDIR=.\Release
-INTDIR=.\Release
-
-ALL : "..\..\..\Build\Release\nsprobe.exe"
-
-
-CLEAN :
- -@erase "$(INTDIR)\nsprobe.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "..\..\..\Build\Release\nsprobe.exe"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "NDEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /Fp"$(INTDIR)\nsprobe.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\nsprobe.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib /nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\nsprobe.pdb" @MACHINE@ /out:"../../../Build/Release/nsprobe.exe"
-LINK32_OBJS= \
- "$(INTDIR)\nsprobe.obj"
-
-"..\..\..\Build\Release\nsprobe.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_EXE)
-
-!ELSEIF "$(CFG)" == "nsprobe - @PLATFORM@ Debug"
-
-OUTDIR=.\Debug
-INTDIR=.\Debug
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-ALL : "..\..\..\Build\Debug\nsprobe.exe" "$(OUTDIR)\nsprobe.bsc"
-
-
-CLEAN :
- -@erase "$(INTDIR)\nsprobe.obj"
- -@erase "$(INTDIR)\nsprobe.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(OUTDIR)\nsprobe.pdb"
- -@erase "$(OUTDIR)\nsprobe.bsc"
- -@erase "..\..\..\Build\Debug\nsprobe.exe"
- -@erase "..\..\..\Build\Debug\nsprobe.ilk"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_CONSOLE" /D "_MBCS" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\nsprobe.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\nsprobe.sbr"
-
-"$(OUTDIR)\nsprobe.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Debug/libisc.lib ../../dns/win32/Debug/libdns.lib ../../isccfg/win32/Debug/libisccfg.lib /nologo /subsystem:console /incremental:yes /pdb:"$(OUTDIR)\nsprobe.pdb" /debug @MACHINE@ /out:"../../../Build/Debug/nsprobe.exe" /pdbtype:sept
-LINK32_OBJS= \
- "$(INTDIR)\nsprobe.obj"
-
-"..\..\..\Build\Debug\nsprobe.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_EXE)
-
-!ENDIF
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("nsprobe.dep")
-!INCLUDE "nsprobe.dep"
-!ELSE
-!MESSAGE Warning: cannot find "nsprobe.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "nsprobe - @PLATFORM@ Release" || "$(CFG)" == "nsprobe - @PLATFORM@ Debug"
-SOURCE="..\nsprobe.c"
-
-!IF "$(CFG)" == "nsprobe - @PLATFORM@ Release"
-
-
-"$(INTDIR)\nsprobe.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "nsprobe - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\nsprobe.obj" "$(INTDIR)\nsprobe.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-!ENDIF
-
-####################################################
-# Commands to generate initial empty manifest file and the RC file
-# that references it, and for generating the .res file:
-
-$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
-
-$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
- type <<$@
-#include <winuser.h>
-1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
-<< KEEP
-
-$(_VC_MANIFEST_BASENAME).auto.manifest :
- type <<$@
-<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
-<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
-</assembly>
-<< KEEP
diff --git a/usr.sbin/bind/lib/samples/win32/nsprobe.vcxproj.filters.in b/usr.sbin/bind/lib/samples/win32/nsprobe.vcxproj.filters.in
deleted file mode 100644
index 0c43dfd5992..00000000000
--- a/usr.sbin/bind/lib/samples/win32/nsprobe.vcxproj.filters.in
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
- <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
- <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
- </Filter>
- <Filter Include="Resource Files">
- <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
- <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\nsprobe.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/nsprobe.vcxproj.in b/usr.sbin/bind/lib/samples/win32/nsprobe.vcxproj.in
deleted file mode 100644
index 158deff0ef2..00000000000
--- a/usr.sbin/bind/lib/samples/win32/nsprobe.vcxproj.in
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|@PLATFORM@">
- <Configuration>Debug</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|@PLATFORM@">
- <Configuration>Release</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{CB2A29F6-E73B-40AB-8AC4-2C1AAE7280BD}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>nsprobe</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <BrowseInformation>true</BrowseInformation>
- <AdditionalIncludeDirectories>..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\dns\win32\include;..\..\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);..\..\dns\win32\$(Configuration);..\..\isccfg\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
- <WholeProgramOptimization>false</WholeProgramOptimization>
- <StringPooling>true</StringPooling>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <AdditionalIncludeDirectories>..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\dns\win32\include;..\..\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);..\..\dns\win32\$(Configuration);..\..\isccfg\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\nsprobe.c" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/nsprobe.vcxproj.user b/usr.sbin/bind/lib/samples/win32/nsprobe.vcxproj.user
deleted file mode 100644
index 695b5c78b91..00000000000
--- a/usr.sbin/bind/lib/samples/win32/nsprobe.vcxproj.user
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/request.dsp.in b/usr.sbin/bind/lib/samples/win32/request.dsp.in
deleted file mode 100644
index dbdfe836ee5..00000000000
--- a/usr.sbin/bind/lib/samples/win32/request.dsp.in
+++ /dev/null
@@ -1,103 +0,0 @@
-# Microsoft Developer Studio Project File - Name="request" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "@PLATFORM@ (x86) Console Application" 0x0103
-
-CFG=request - @PLATFORM@ Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "request.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "request.mak" CFG="request - @PLATFORM@ Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "request - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE "request - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "request - @PLATFORM@ Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 @COPTX@ @COPTI@ /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /c
-# ADD CPP /nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "NDEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console @MACHINE@
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib /nologo /subsystem:console @MACHINE@ /out:"../../../Build/Release/sample-request.exe"
-
-!ELSEIF "$(CFG)" == "request - @PLATFORM@ Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c
-# SUBTRACT CPP /X @COPTY@
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug @MACHINE@ /pdbtype:sept
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Debug/libisc.lib ../../dns/win32/Debug/libdns.lib ../../isccfg/win32/Debug/libisccfg.lib /nologo /subsystem:console /debug @MACHINE@ /out:"../../../Build/Debug/sample-request.exe" /pdbtype:sept
-
-!ENDIF
-
-# Begin Target
-
-# Name "request - @PLATFORM@ Release"
-# Name "request - @PLATFORM@ Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE="..\sample-request.c"
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/usr.sbin/bind/lib/samples/win32/request.dsw b/usr.sbin/bind/lib/samples/win32/request.dsw
deleted file mode 100644
index 322cc90a880..00000000000
--- a/usr.sbin/bind/lib/samples/win32/request.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "request"=".\request.dsp" - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/usr.sbin/bind/lib/samples/win32/request.mak.in b/usr.sbin/bind/lib/samples/win32/request.mak.in
deleted file mode 100644
index b9681c64847..00000000000
--- a/usr.sbin/bind/lib/samples/win32/request.mak.in
+++ /dev/null
@@ -1,299 +0,0 @@
-# Microsoft Developer Studio Generated NMAKE File, Based on request.dsp
-!IF "$(CFG)" == ""
-CFG=request - @PLATFORM@ Debug
-!MESSAGE No configuration specified. Defaulting to request - @PLATFORM@ Debug.
-!ENDIF
-
-!IF "$(CFG)" != "request - @PLATFORM@ Release" && "$(CFG)" != "request - @PLATFORM@ Debug"
-!MESSAGE Invalid configuration "$(CFG)" specified.
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "request.mak" CFG="request - @PLATFORM@ Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "request - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE "request - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE
-!ERROR An invalid configuration is specified.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-!IF "$(CFG)" == "request - @PLATFORM@ Release"
-_VC_MANIFEST_INC=0
-_VC_MANIFEST_BASENAME=__VC80
-!ELSE
-_VC_MANIFEST_INC=1
-_VC_MANIFEST_BASENAME=__VC80.Debug
-!ENDIF
-
-####################################################
-# Specifying name of temporary resource file used only in incremental builds:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-_VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
-!else
-_VC_MANIFEST_AUTO_RES=
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
-
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
-
-!endif
-####################################################
-# _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-_VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
- $(_VC_MANIFEST_BASENAME).auto.rc \
- $(_VC_MANIFEST_BASENAME).auto.manifest
-
-!else
-
-_VC_MANIFEST_CLEAN=
-
-!endif
-
-!IF "$(CFG)" == "request - @PLATFORM@ Release"
-
-OUTDIR=.\Release
-INTDIR=.\Release
-
-ALL : "..\..\..\Build\Release\sample-request.exe"
-
-
-CLEAN :
- -@erase "$(INTDIR)\sample-request.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "..\..\..\Build\Release\sample-request.exe"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "NDEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /Fp"$(INTDIR)\sample-request.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\sample-request.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib /nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\sample-request.pdb" @MACHINE@ /out:"../../../Build/Release/sample-request.exe"
-LINK32_OBJS= \
- "$(INTDIR)\sample-request.obj"
-
-"..\..\..\Build\Release\sample-request.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_EXE)
-
-!ELSEIF "$(CFG)" == "request - @PLATFORM@ Debug"
-
-OUTDIR=.\Debug
-INTDIR=.\Debug
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-ALL : "..\..\..\Build\Debug\sample-request.exe" "$(OUTDIR)\sample-request.bsc"
-
-
-CLEAN :
- -@erase "$(INTDIR)\sample-request.obj"
- -@erase "$(INTDIR)\sample-request.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(OUTDIR)\sample-request.pdb"
- -@erase "$(OUTDIR)\sample-request.bsc"
- -@erase "..\..\..\Build\Debug\sample-request.exe"
- -@erase "..\..\..\Build\Debug\sample-request.ilk"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_CONSOLE" /D "_MBCS" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\sample-request.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\sample-request.sbr"
-
-"$(OUTDIR)\sample-request.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Debug/libisc.lib ../../dns/win32/Debug/libdns.lib ../../isccfg/win32/Debug/libisccfg.lib /nologo /subsystem:console /incremental:yes /pdb:"$(OUTDIR)\sample-request.pdb" /debug @MACHINE@ /out:"../../../Build/Debug/sample-request.exe" /pdbtype:sept
-LINK32_OBJS= \
- "$(INTDIR)\sample-request.obj"
-
-"..\..\..\Build\Debug\sample-request.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_EXE)
-
-!ENDIF
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("sample-request.dep")
-!INCLUDE "sample-request.dep"
-!ELSE
-!MESSAGE Warning: cannot find "sample-request.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "request - @PLATFORM@ Release" || "$(CFG)" == "request - @PLATFORM@ Debug"
-SOURCE="..\sample-request.c"
-
-!IF "$(CFG)" == "request - @PLATFORM@ Release"
-
-
-"$(INTDIR)\sample-request.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "request - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\sample-request.obj" "$(INTDIR)\sample-request.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-!ENDIF
-
-####################################################
-# Commands to generate initial empty manifest file and the RC file
-# that references it, and for generating the .res file:
-
-$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
-
-$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
- type <<$@
-#include <winuser.h>
-1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
-<< KEEP
-
-$(_VC_MANIFEST_BASENAME).auto.manifest :
- type <<$@
-<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
-<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
-</assembly>
-<< KEEP
diff --git a/usr.sbin/bind/lib/samples/win32/request.vcxproj.filters.in b/usr.sbin/bind/lib/samples/win32/request.vcxproj.filters.in
deleted file mode 100644
index 0ddc9df5598..00000000000
--- a/usr.sbin/bind/lib/samples/win32/request.vcxproj.filters.in
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
- <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
- <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
- </Filter>
- <Filter Include="Resource Files">
- <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
- <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\sample-request.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/request.vcxproj.in b/usr.sbin/bind/lib/samples/win32/request.vcxproj.in
deleted file mode 100644
index 855f179649d..00000000000
--- a/usr.sbin/bind/lib/samples/win32/request.vcxproj.in
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|@PLATFORM@">
- <Configuration>Debug</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|@PLATFORM@">
- <Configuration>Release</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{FF440E85-7450-439C-82EE-04C464512D0E}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>request</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <BrowseInformation>true</BrowseInformation>
- <AdditionalIncludeDirectories>..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\dns\win32\include;..\..\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);..\..\dns\win32\$(Configuration);..\..\isccfg\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
- <WholeProgramOptimization>false</WholeProgramOptimization>
- <StringPooling>true</StringPooling>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <AdditionalIncludeDirectories>..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\dns\win32\include;..\..\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);..\..\dns\win32\$(Configuration);..\..\isccfg\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\sample-request.c" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/request.vcxproj.user b/usr.sbin/bind/lib/samples/win32/request.vcxproj.user
deleted file mode 100644
index 695b5c78b91..00000000000
--- a/usr.sbin/bind/lib/samples/win32/request.vcxproj.user
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/resolve.dsp.in b/usr.sbin/bind/lib/samples/win32/resolve.dsp.in
deleted file mode 100644
index e73835d7d44..00000000000
--- a/usr.sbin/bind/lib/samples/win32/resolve.dsp.in
+++ /dev/null
@@ -1,103 +0,0 @@
-# Microsoft Developer Studio Project File - Name="resolve" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "@PLATFORM@ (x86) Console Application" 0x0103
-
-CFG=resolve - @PLATFORM@ Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "resolve.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "resolve.mak" CFG="resolve - @PLATFORM@ Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "resolve - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE "resolve - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "resolve - @PLATFORM@ Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 @COPTX@ @COPTI@ /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /c
-# ADD CPP /nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /I "../../irs/win32/include" /I "../../irs/include" /D "NDEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console @MACHINE@
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib ../../irs/win32/Release/libirs.lib /nologo /subsystem:console @MACHINE@ /out:"../../../Build/Release/resolve.exe"
-
-!ELSEIF "$(CFG)" == "resolve - @PLATFORM@ Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /I "../../irs/win32/include" /I "../../irs/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c
-# SUBTRACT CPP /X @COPTY@
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug @MACHINE@ /pdbtype:sept
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Debug/libisc.lib ../../dns/win32/Debug/libdns.lib ../../isccfg/win32/Debug/libisccfg.lib ../../irs/win32/Debug/libirs.lib /nologo /subsystem:console /debug @MACHINE@ /out:"../../../Build/Debug/resolve.exe" /pdbtype:sept
-
-!ENDIF
-
-# Begin Target
-
-# Name "resolve - @PLATFORM@ Release"
-# Name "resolve - @PLATFORM@ Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE="..\resolve.c"
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/usr.sbin/bind/lib/samples/win32/resolve.dsw b/usr.sbin/bind/lib/samples/win32/resolve.dsw
deleted file mode 100644
index 32fb5395fd4..00000000000
--- a/usr.sbin/bind/lib/samples/win32/resolve.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "resolve"=".\resolve.dsp" - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/usr.sbin/bind/lib/samples/win32/resolve.mak.in b/usr.sbin/bind/lib/samples/win32/resolve.mak.in
deleted file mode 100644
index ae461d1d5f7..00000000000
--- a/usr.sbin/bind/lib/samples/win32/resolve.mak.in
+++ /dev/null
@@ -1,299 +0,0 @@
-# Microsoft Developer Studio Generated NMAKE File, Based on resolve.dsp
-!IF "$(CFG)" == ""
-CFG=resolve - @PLATFORM@ Debug
-!MESSAGE No configuration specified. Defaulting to resolve - @PLATFORM@ Debug.
-!ENDIF
-
-!IF "$(CFG)" != "resolve - @PLATFORM@ Release" && "$(CFG)" != "resolve - @PLATFORM@ Debug"
-!MESSAGE Invalid configuration "$(CFG)" specified.
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "resolve.mak" CFG="resolve - @PLATFORM@ Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "resolve - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE "resolve - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE
-!ERROR An invalid configuration is specified.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-!IF "$(CFG)" == "resolve - @PLATFORM@ Release"
-_VC_MANIFEST_INC=0
-_VC_MANIFEST_BASENAME=__VC80
-!ELSE
-_VC_MANIFEST_INC=1
-_VC_MANIFEST_BASENAME=__VC80.Debug
-!ENDIF
-
-####################################################
-# Specifying name of temporary resource file used only in incremental builds:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-_VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
-!else
-_VC_MANIFEST_AUTO_RES=
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
-
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
-
-!endif
-####################################################
-# _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-_VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
- $(_VC_MANIFEST_BASENAME).auto.rc \
- $(_VC_MANIFEST_BASENAME).auto.manifest
-
-!else
-
-_VC_MANIFEST_CLEAN=
-
-!endif
-
-!IF "$(CFG)" == "resolve - @PLATFORM@ Release"
-
-OUTDIR=.\Release
-INTDIR=.\Release
-
-ALL : "..\..\..\Build\Release\resolve.exe"
-
-
-CLEAN :
- -@erase "$(INTDIR)\resolve.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "..\..\..\Build\Release\resolve.exe"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /I "../../irs/win32/include" /I "../../irs/include" /D "NDEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /Fp"$(INTDIR)\resolve.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\resolve.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib ../../irs/win32/Release/libirs.lib /nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\resolve.pdb" @MACHINE@ /out:"../../../Build/Release/resolve.exe"
-LINK32_OBJS= \
- "$(INTDIR)\resolve.obj"
-
-"..\..\..\Build\Release\resolve.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_EXE)
-
-!ELSEIF "$(CFG)" == "resolve - @PLATFORM@ Debug"
-
-OUTDIR=.\Debug
-INTDIR=.\Debug
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-ALL : "..\..\..\Build\Debug\resolve.exe" "$(OUTDIR)\resolve.bsc"
-
-
-CLEAN :
- -@erase "$(INTDIR)\resolve.obj"
- -@erase "$(INTDIR)\resolve.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(OUTDIR)\resolve.pdb"
- -@erase "$(OUTDIR)\resolve.bsc"
- -@erase "..\..\..\Build\Debug\resolve.exe"
- -@erase "..\..\..\Build\Debug\resolve.ilk"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /I "../../irs/win32/include" /I "../../irs/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_CONSOLE" /D "_MBCS" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\resolve.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\resolve.sbr"
-
-"$(OUTDIR)\resolve.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Debug/libisc.lib ../../dns/win32/Debug/libdns.lib ../../isccfg/win32/Debug/libisccfg.lib ../../irs/win32/Debug/libirs.lib /nologo /subsystem:console /incremental:yes /pdb:"$(OUTDIR)\resolve.pdb" /debug @MACHINE@ /out:"../../../Build/Debug/resolve.exe" /pdbtype:sept
-LINK32_OBJS= \
- "$(INTDIR)\resolve.obj"
-
-"..\..\..\Build\Debug\resolve.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_EXE)
-
-!ENDIF
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("resolve.dep")
-!INCLUDE "resolve.dep"
-!ELSE
-!MESSAGE Warning: cannot find "resolve.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "resolve - @PLATFORM@ Release" || "$(CFG)" == "resolve - @PLATFORM@ Debug"
-SOURCE="..\resolve.c"
-
-!IF "$(CFG)" == "resolve - @PLATFORM@ Release"
-
-
-"$(INTDIR)\resolve.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "resolve - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\resolve.obj" "$(INTDIR)\resolve.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-!ENDIF
-
-####################################################
-# Commands to generate initial empty manifest file and the RC file
-# that references it, and for generating the .res file:
-
-$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
-
-$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
- type <<$@
-#include <winuser.h>
-1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
-<< KEEP
-
-$(_VC_MANIFEST_BASENAME).auto.manifest :
- type <<$@
-<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
-<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
-</assembly>
-<< KEEP
diff --git a/usr.sbin/bind/lib/samples/win32/resolve.vcxproj.filters.in b/usr.sbin/bind/lib/samples/win32/resolve.vcxproj.filters.in
deleted file mode 100644
index e866b849756..00000000000
--- a/usr.sbin/bind/lib/samples/win32/resolve.vcxproj.filters.in
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
- <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
- <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
- </Filter>
- <Filter Include="Resource Files">
- <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
- <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\resolve.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/resolve.vcxproj.in b/usr.sbin/bind/lib/samples/win32/resolve.vcxproj.in
deleted file mode 100644
index e87747b953b..00000000000
--- a/usr.sbin/bind/lib/samples/win32/resolve.vcxproj.in
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|@PLATFORM@">
- <Configuration>Debug</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|@PLATFORM@">
- <Configuration>Release</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{F66D8B7E-721D-4602-99AD-820D19AD1313}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>resolve</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <BrowseInformation>true</BrowseInformation>
- <AdditionalIncludeDirectories>..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\dns\win32\include;..\..\dns\include;..\..\irs\win32\include;..\..\irs\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);..\..\dns\win32\$(Configuration);..\..\isccfg\win32\$(Configuration);..\..\irs\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;libirs.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
- <WholeProgramOptimization>false</WholeProgramOptimization>
- <StringPooling>true</StringPooling>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <AdditionalIncludeDirectories>..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\dns\win32\include;..\..\dns\include;..\..\irs\win32\include;..\..\irs\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);..\..\dns\win32\$(Configuration);..\..\isccfg\win32\$(Configuration);..\..\irs\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;libirs.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\resolve.c" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/resolve.vcxproj.user b/usr.sbin/bind/lib/samples/win32/resolve.vcxproj.user
deleted file mode 100644
index 695b5c78b91..00000000000
--- a/usr.sbin/bind/lib/samples/win32/resolve.vcxproj.user
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/update.dsp.in b/usr.sbin/bind/lib/samples/win32/update.dsp.in
deleted file mode 100644
index 37be0a9a051..00000000000
--- a/usr.sbin/bind/lib/samples/win32/update.dsp.in
+++ /dev/null
@@ -1,103 +0,0 @@
-# Microsoft Developer Studio Project File - Name="update" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "@PLATFORM@ (x86) Console Application" 0x0103
-
-CFG=update - @PLATFORM@ Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "update.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "update.mak" CFG="update - @PLATFORM@ Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "update - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE "update - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "update - @PLATFORM@ Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 @COPTX@ @COPTI@ /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /c
-# ADD CPP /nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "NDEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console @MACHINE@
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib /nologo /subsystem:console @MACHINE@ /out:"../../../Build/Release/sample-update.exe"
-
-!ELSEIF "$(CFG)" == "update - @PLATFORM@ Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" @COPTY@ /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c
-# SUBTRACT CPP /X @COPTY@
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug @MACHINE@ /pdbtype:sept
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Debug/libisc.lib ../../dns/win32/Debug/libdns.lib ../../isccfg/win32/Debug/libisccfg.lib /nologo /subsystem:console /debug @MACHINE@ /out:"../../../Build/Debug/sample-update.exe" /pdbtype:sept
-
-!ENDIF
-
-# Begin Target
-
-# Name "update - @PLATFORM@ Release"
-# Name "update - @PLATFORM@ Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE="..\sample-update.c"
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/usr.sbin/bind/lib/samples/win32/update.dsw b/usr.sbin/bind/lib/samples/win32/update.dsw
deleted file mode 100644
index a119c8966bb..00000000000
--- a/usr.sbin/bind/lib/samples/win32/update.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "update"=".\update.dsp" - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/usr.sbin/bind/lib/samples/win32/update.mak.in b/usr.sbin/bind/lib/samples/win32/update.mak.in
deleted file mode 100644
index 38bfecb9948..00000000000
--- a/usr.sbin/bind/lib/samples/win32/update.mak.in
+++ /dev/null
@@ -1,299 +0,0 @@
-# Microsoft Developer Studio Generated NMAKE File, Based on update.dsp
-!IF "$(CFG)" == ""
-CFG=update - @PLATFORM@ Debug
-!MESSAGE No configuration specified. Defaulting to update - @PLATFORM@ Debug.
-!ENDIF
-
-!IF "$(CFG)" != "update - @PLATFORM@ Release" && "$(CFG)" != "update - @PLATFORM@ Debug"
-!MESSAGE Invalid configuration "$(CFG)" specified.
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "update.mak" CFG="update - @PLATFORM@ Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "update - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE "update - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Console Application")
-!MESSAGE
-!ERROR An invalid configuration is specified.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-!IF "$(CFG)" == "update - @PLATFORM@ Release"
-_VC_MANIFEST_INC=0
-_VC_MANIFEST_BASENAME=__VC80
-!ELSE
-_VC_MANIFEST_INC=1
-_VC_MANIFEST_BASENAME=__VC80.Debug
-!ENDIF
-
-####################################################
-# Specifying name of temporary resource file used only in incremental builds:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-_VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
-!else
-_VC_MANIFEST_AUTO_RES=
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
-
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
-
-!endif
-####################################################
-# _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-_VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
- $(_VC_MANIFEST_BASENAME).auto.rc \
- $(_VC_MANIFEST_BASENAME).auto.manifest
-
-!else
-
-_VC_MANIFEST_CLEAN=
-
-!endif
-
-!IF "$(CFG)" == "update - @PLATFORM@ Release"
-
-OUTDIR=.\Release
-INTDIR=.\Release
-
-ALL : "..\..\..\Build\Release\sample-update.exe"
-
-
-CLEAN :
- -@erase "$(INTDIR)\sample-update.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "..\..\..\Build\Release\sample-update.exe"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MD /W3 @COPTX@ @COPTI@ /O2 /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "NDEBUG" /D "__STDC__" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /Fp"$(INTDIR)\sample-update.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\sample-update.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib ../../isccfg/win32/Release/libisccfg.lib /nologo /subsystem:console /incremental:no /pdb:"$(OUTDIR)\sample-update.pdb" @MACHINE@ /out:"../../../Build/Release/sample-update.exe"
-LINK32_OBJS= \
- "$(INTDIR)\sample-update.obj"
-
-"..\..\..\Build\Release\sample-update.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_EXE)
-
-!ELSEIF "$(CFG)" == "update - @PLATFORM@ Debug"
-
-OUTDIR=.\Debug
-INTDIR=.\Debug
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-ALL : "..\..\..\Build\Debug\sample-update.exe" "$(OUTDIR)\sample-update.bsc"
-
-
-CLEAN :
- -@erase "$(INTDIR)\sample-update.obj"
- -@erase "$(INTDIR)\sample-update.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(OUTDIR)\sample-update.pdb"
- -@erase "$(OUTDIR)\sample-update.bsc"
- -@erase "..\..\..\Build\Debug\sample-update.exe"
- -@erase "..\..\..\Build\Debug\sample-update.ilk"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP=cl.exe
-CPP_PROJ=/nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /I "../../../" @LIBXML2_INC@ @OPENSSL_INC@ /I "../../isc/win32" /I "../../isc/win32/include" /I "../../isc/include" /I "../../dns/win32/include" /I "../../dns/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_CONSOLE" /D "_MBCS" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-RSC=rc.exe
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\sample-update.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\sample-update.sbr"
-
-"$(OUTDIR)\sample-update.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Debug/libisc.lib ../../dns/win32/Debug/libdns.lib ../../isccfg/win32/Debug/libisccfg.lib /nologo /subsystem:console /incremental:yes /pdb:"$(OUTDIR)\sample-update.pdb" /debug @MACHINE@ /out:"../../../Build/Debug/sample-update.exe" /pdbtype:sept
-LINK32_OBJS= \
- "$(INTDIR)\sample-update.obj"
-
-"..\..\..\Build\Debug\sample-update.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_EXE)
-
-!ENDIF
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("sample-update.dep")
-!INCLUDE "sample-update.dep"
-!ELSE
-!MESSAGE Warning: cannot find "sample-update.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "update - @PLATFORM@ Release" || "$(CFG)" == "update - @PLATFORM@ Debug"
-SOURCE="..\sample-update.c"
-
-!IF "$(CFG)" == "update - @PLATFORM@ Release"
-
-
-"$(INTDIR)\sample-update.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "update - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\sample-update.obj" "$(INTDIR)\sample-update.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-!ENDIF
-
-####################################################
-# Commands to generate initial empty manifest file and the RC file
-# that references it, and for generating the .res file:
-
-$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
-
-$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
- type <<$@
-#include <winuser.h>
-1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
-<< KEEP
-
-$(_VC_MANIFEST_BASENAME).auto.manifest :
- type <<$@
-<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
-<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
-</assembly>
-<< KEEP
diff --git a/usr.sbin/bind/lib/samples/win32/update.vcxproj.filters.in b/usr.sbin/bind/lib/samples/win32/update.vcxproj.filters.in
deleted file mode 100644
index 02884086527..00000000000
--- a/usr.sbin/bind/lib/samples/win32/update.vcxproj.filters.in
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
- <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
- <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
- </Filter>
- <Filter Include="Resource Files">
- <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
- <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\sample-update.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/update.vcxproj.in b/usr.sbin/bind/lib/samples/win32/update.vcxproj.in
deleted file mode 100644
index 33639ba1a84..00000000000
--- a/usr.sbin/bind/lib/samples/win32/update.vcxproj.in
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|@PLATFORM@">
- <Configuration>Debug</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|@PLATFORM@">
- <Configuration>Release</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{05682E12-523F-4DAE-8E6D-ADFDBC308AFD}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>update</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>Application</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <BrowseInformation>true</BrowseInformation>
- <AdditionalIncludeDirectories>..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\dns\win32\include;..\..\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);..\..\dns\win32\$(Configuration);..\..\isccfg\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
- <WholeProgramOptimization>false</WholeProgramOptimization>
- <StringPooling>true</StringPooling>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <AdditionalIncludeDirectories>..\..\..\;@LIBXML2_INC@@OPENSSL_INC@..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\dns\win32\include;..\..\dns\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
- <AdditionalLibraryDirectories>..\..\isc\win32\$(Configuration);..\..\dns\win32\$(Configuration);..\..\isccfg\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;libisccfg.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="..\sample-update.c" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/samples/win32/update.vcxproj.user b/usr.sbin/bind/lib/samples/win32/update.vcxproj.user
deleted file mode 100644
index 695b5c78b91..00000000000
--- a/usr.sbin/bind/lib/samples/win32/update.vcxproj.user
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/tests/Makefile.in b/usr.sbin/bind/lib/tests/Makefile.in
deleted file mode 100644
index 9320d6426b7..00000000000
--- a/usr.sbin/bind/lib/tests/Makefile.in
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright (C) 2004, 2007, 2009, 2012 Internet Systems Consortium, Inc. ("ISC")
-# Copyright (C) 1998-2001, 2003 Internet Software Consortium.
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-# $Id: Makefile.in,v 1.3 2019/12/16 16:31:37 deraadt Exp $
-
-srcdir = @srcdir@
-VPATH = @srcdir@
-top_srcdir = @top_srcdir@
-
-@BIND9_MAKE_INCLUDES@
-
-CINCLUDES = ${DNS_INCLUDES} ${ISC_INCLUDES} ${TEST_INCLUDES}
-CDEFINES =
-CWARNINGS =
-
-ISCLIBS = ../../lib/isc/libisc.@A@
-ISCCCLIBS = ../../lib/isccc/libisccc.@A@
-
-ISCDEPLIBS = ../../lib/isc/libisc.@A@
-ISCCCDEPLIBS = libisccc.@A@
-
-OBJS = t_api.@O@
-
-SRCS = t_api.c
-
-SUBDIRS = include
-TARGETS = timestamp
-
-@BIND9_MAKE_RULES@
-
-libt_api.@SA@: ${OBJS}
- ${AR} ${ARFLAGS} $@ ${OBJS}
- ${RANLIB} $@
-
-libt_api.la: ${OBJS}
- ${LIBTOOL_MODE_LINK} \
- ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libt_api.la -rpath ${libdir} \
- ${OBJS} ${ISCLIBS} ${LIBS} @LIBTOOL_ALLOW_UNDEFINED@ @LIBTOOL_IN_MAIN@
-
-timestamp: libt_api.@A@
- touch timestamp
-
-clean distclean::
- rm -f t_api.@O@ libt_api.@A@ timestamp
diff --git a/usr.sbin/bind/lib/tests/T_testlist.imp b/usr.sbin/bind/lib/tests/T_testlist.imp
deleted file mode 100644
index 722caff25ef..00000000000
--- a/usr.sbin/bind/lib/tests/T_testlist.imp
+++ /dev/null
@@ -1,3 +0,0 @@
-#! .
-
-T_testlist
diff --git a/usr.sbin/bind/lib/tests/include/Makefile.in b/usr.sbin/bind/lib/tests/include/Makefile.in
deleted file mode 100644
index 625094253e6..00000000000
--- a/usr.sbin/bind/lib/tests/include/Makefile.in
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright (C) 2004, 2007, 2012 Internet Systems Consortium, Inc. ("ISC")
-# Copyright (C) 1998-2001 Internet Software Consortium.
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-# $Id: Makefile.in,v 1.3 2019/12/16 16:31:37 deraadt Exp $
-
-srcdir = @srcdir@
-VPATH = @srcdir@
-top_srcdir = @top_srcdir@
-
-SUBDIRS = tests
-TARGETS =
-
-@BIND9_MAKE_RULES@
diff --git a/usr.sbin/bind/lib/tests/include/tests/Makefile.in b/usr.sbin/bind/lib/tests/include/tests/Makefile.in
deleted file mode 100644
index adf7263724d..00000000000
--- a/usr.sbin/bind/lib/tests/include/tests/Makefile.in
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright (C) 2004, 2007, 2012, 2015 Internet Systems Consortium, Inc. ("ISC")
-# Copyright (C) 1999-2001 Internet Software Consortium.
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-
-# $Id: Makefile.in,v 1.3 2019/12/16 16:31:37 deraadt Exp $
-
-srcdir = @srcdir@
-VPATH = @srcdir@
-top_srcdir = @top_srcdir@
-
-VERSION=@BIND9_VERSION@
-
-SUBDIRS =
-TARGETS =
-
-@BIND9_MAKE_RULES@
diff --git a/usr.sbin/bind/lib/tests/include/tests/t_api.h b/usr.sbin/bind/lib/tests/include/tests/t_api.h
deleted file mode 100644
index ce27d561af5..00000000000
--- a/usr.sbin/bind/lib/tests/include/tests/t_api.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * Copyright (C) 2004-2007, 2010, 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
- * Copyright (C) 1999-2001 Internet Software Consortium.
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: t_api.h,v 1.3 2019/12/16 16:31:37 deraadt Exp $ */
-
-#ifndef TESTS_T_API_H
-#define TESTS_T_API_H 1
-
-/*! \file tests/t_api.h */
-
-#include <stdio.h>
-
-#include <isc/lang.h>
-#include <isc/platform.h>
-#include <isc/result.h>
-#include <isc/formatcheck.h>
-
-/*
- *
- * Result codes.
- *
- */
-
-#define T_PASS 0x1
-#define T_FAIL 0x2
-#define T_UNRESOLVED 0x3
-#define T_SKIPPED 0x4
-#define T_UNTESTED 0x5
-#define T_THREADONLY 0x6
-#define T_PKCS11ONLY 0x7
-
-/*
- *
- * Assertion class codes.
- *
- */
-
-#define T_OPTIONAL 0x0
-#define T_REQUIRED 0x1
-
-/*
- * Misc
- */
-
-#define T_MAXTOKS 16
-#define T_ARG(n) (*(av + (n)))
-
-typedef void (*PFV)(void);
-
-typedef struct {
- PFV pfv;
- const char *func_name;
-} testspec_t;
-
-LIBTESTS_EXTERNAL_DATA extern int T_debug;
-#ifndef WIN32
-extern testspec_t T_testlist[];
-#endif
-
-ISC_LANG_BEGINDECLS
-
-#ifdef WIN32
-void
-t_settests(const testspec_t list[]);
-
-int
-t_main(int argc, char **argv);
-#endif
-
-void
-t_assert(const char *component, int anum, int class, const char *what, ...)
- ISC_FORMAT_PRINTF(4, 5);
-
-void
-t_info(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);
-
-void
-t_result(int result);
-
-char *
-t_getenv(const char *name);
-
-char *
-t_fgetbs(FILE *fp);
-
-isc_result_t
-t_dns_result_fromtext(char *result);
-
-unsigned int
-t_dc_method_fromtext(char *dc_method);
-
-int
-t_bustline(char *line, char **toks);
-
-int
-t_eval(const char *filename, int (*func)(char **), int nargs);
-
-ISC_LANG_ENDDECLS
-
-#endif /* TESTS_T_API_H */
-
diff --git a/usr.sbin/bind/lib/tests/t_api.c b/usr.sbin/bind/lib/tests/t_api.c
deleted file mode 100644
index b6a3b9d4837..00000000000
--- a/usr.sbin/bind/lib/tests/t_api.c
+++ /dev/null
@@ -1,849 +0,0 @@
-/*
- * Copyright (C) 2004, 2005, 2007-2010, 2013, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
- * Copyright (C) 1999-2003 Internet Software Consortium.
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: t_api.c,v 1.6 2019/12/16 16:31:37 deraadt Exp $ */
-
-/*! \file */
-
-#include <config.h>
-
-#include <ctype.h>
-#include <errno.h>
-#include <limits.h>
-#include <signal.h>
-#include <stdarg.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <time.h>
-#include <unistd.h>
-
-#ifndef WIN32
-#include <sys/wait.h>
-#else
-#include <direct.h>
-#endif
-
-#include <isc/boolean.h>
-#include <isc/commandline.h>
-#include <isc/print.h>
-#include <isc/string.h>
-#include <isc/mem.h>
-
-#include <dns/compress.h>
-#include <dns/result.h>
-
-#include "include/tests/t_api.h"
-
-static const char *Usage =
- "\t-a : run all tests\n"
- "\t-b <dir> : chdir to dir before running tests"
- "\t-c <config_file> : use specified config file\n"
- "\t-d <debug_level> : set debug level to debug_level\n"
- "\t-h : print test info\n"
- "\t-u : print usage info\n"
- "\t-n <test_name> : run specified test name\n"
- "\t-t <test_number> : run specified test number\n"
- "\t-x : don't execute tests in a subproc\n"
- "\t-q <timeout> : use 'timeout' as the timeout value\n";
-/*!<
- * -a --> run all tests
- * -b dir --> chdir to dir before running tests
- * -c config --> use config file 'config'
- * -d --> turn on api debugging
- * -h --> print out available test names
- * -u --> print usage info
- * -n name --> run test named name
- * -tn --> run test n
- * -x --> don't execute testcases in a subproc
- * -q timeout --> use 'timeout' as the timeout value
- */
-
-#define T_MAXTESTS 256 /*% must be 0 mod 8 */
-#define T_MAXENV 256
-#define T_DEFAULT_CONFIG "t_config"
-#define T_BUFSIZ 256
-#define T_BIGBUF 4096
-
-#define T_TCTOUT 60
-
-int T_debug;
-int T_timeout;
-pid_t T_pid;
-static const char * T_config;
-static char T_tvec[T_MAXTESTS / 8];
-static char * T_env[T_MAXENV + 1];
-static char T_buf[T_BIGBUF];
-static char * T_dir;
-#ifdef WIN32
-static testspec_t T_testlist[T_MAXTESTS];
-#endif
-
-static int
-t_initconf(const char *path);
-
-static int
-t_dumpconf(const char *path);
-
-static int
-t_putinfo(const char *key, const char *info);
-
-static char *
-t_getdate(char *buf, size_t buflen);
-
-static void
-printhelp(void);
-
-static void
-printusage(void);
-
-static int T_int;
-
-static void
-t_sighandler(int sig) {
- T_int = sig;
-}
-
-int
-#ifndef WIN32
-main(int argc, char **argv)
-#else
-t_main(int argc, char **argv)
-#endif
-{
- int c;
- int tnum;
-#ifndef WIN32
- int subprocs;
- pid_t deadpid;
- int status;
-#endif
- int len;
- isc_boolean_t first;
- testspec_t *pts;
-#ifndef WIN32
- struct sigaction sa;
-#endif
-
- isc_mem_debugging = ISC_MEM_DEBUGRECORD;
- first = ISC_TRUE;
-#ifndef WIN32
- subprocs = 1;
-#endif
- T_timeout = T_TCTOUT;
-
- /*
- * -a option is now default.
- */
- memset(T_tvec, 0xff, sizeof(T_tvec));
-
- /*
- * Parse args.
- */
- while ((c = isc_commandline_parse(argc, argv, ":at:c:d:n:huxq:b:"))
- != -1) {
- if (c == 'a') {
- /*
- * Flag all tests to be run.
- */
- memset(T_tvec, 0xff, sizeof(T_tvec));
- }
- else if (c == 'b') {
- T_dir = isc_commandline_argument;
- }
- else if (c == 't') {
- tnum = atoi(isc_commandline_argument);
- if ((tnum > 0) && (tnum < T_MAXTESTS)) {
- if (first) {
- /*
- * Turn off effect of -a default
- * and allow multiple -t and -n
- * options.
- */
- memset(T_tvec, 0, sizeof(T_tvec));
- first = ISC_FALSE;
- }
- /*
- * Flag test tnum to be run.
- */
- tnum -= 1;
- T_tvec[tnum / 8] |= (0x01 << (tnum % 8));
- }
- }
- else if (c == 'c') {
- T_config = isc_commandline_argument;
- }
- else if (c == 'd') {
- T_debug = atoi(isc_commandline_argument);
- }
- else if (c == 'n') {
- pts = &T_testlist[0];
- tnum = 0;
- while (pts->pfv != NULL) {
- if (! strcmp(pts->func_name,
- isc_commandline_argument)) {
- if (first) {
- memset(T_tvec, 0,
- sizeof(T_tvec));
- first = ISC_FALSE;
- }
- T_tvec[tnum/8] |= (0x01 << (tnum%8));
- break;
- }
- ++pts;
- ++tnum;
- }
- if (pts->pfv == NULL) {
- fprintf(stderr, "no such test %s\n",
- isc_commandline_argument);
- exit(1);
- }
- }
- else if (c == 'h') {
- printhelp();
- exit(0);
- }
- else if (c == 'u') {
- printusage();
- exit(0);
- }
- else if (c == 'x') {
-#ifndef WIN32
- subprocs = 0;
-#endif
- }
- else if (c == 'q') {
- T_timeout = atoi(isc_commandline_argument);
- }
- else if (c == ':') {
- fprintf(stderr, "Option -%c requires an argument\n",
- isc_commandline_option);
- exit(1);
- }
- else if (c == '?') {
- fprintf(stderr, "Unrecognized option -%c\n",
- isc_commandline_option);
- exit(1);
- }
- }
-
- /*
- * Set cwd.
- */
-
- if (T_dir != NULL && chdir(T_dir) != 0) {
- fprintf(stderr, "chdir %s failed\n", T_dir);
- exit(1);
- }
-
- /*
- * We don't want buffered output.
- */
-
- (void)setbuf(stdout, NULL);
- (void)setbuf(stderr, NULL);
-
- /*
- * Setup signals.
- */
-
-#ifndef WIN32
- sa.sa_flags = 0;
- sigfillset(&sa.sa_mask);
-
- sa.sa_handler = t_sighandler;
- (void)sigaction(SIGINT, &sa, NULL);
- (void)sigaction(SIGALRM, &sa, NULL);
-#endif
-
- /*
- * Output start stanza to journal.
- */
-
- snprintf(T_buf, sizeof(T_buf), "%s:", argv[0]);
- len = strlen(T_buf);
- (void) t_getdate(T_buf + len, T_BIGBUF - len);
- t_putinfo("S", T_buf);
-
- /*
- * Setup the test environment using the config file.
- */
-
- if (T_config == NULL)
- T_config = T_DEFAULT_CONFIG;
-
- t_initconf(T_config);
- if (T_debug)
- t_dumpconf(T_config);
-
- /*
- * Now invoke all the test cases.
- */
-
- tnum = 0;
- pts = &T_testlist[0];
- while (pts->pfv != NULL) {
- if (T_tvec[tnum / 8] & (0x01 << (tnum % 8))) {
-#ifndef WIN32
- if (subprocs) {
- T_pid = fork();
- if (T_pid == 0) {
- (*pts->pfv)();
- exit(0);
- } else if (T_pid > 0) {
-
- T_int = 0;
- sa.sa_handler = t_sighandler;
- (void)sigaction(SIGALRM, &sa, NULL);
- alarm(T_timeout);
-
- deadpid = (pid_t) -1;
- while (deadpid != T_pid) {
- deadpid =
- waitpid(T_pid, &status, 0);
- if (deadpid == T_pid) {
- if (WIFSIGNALED(status)) {
- if (WTERMSIG(status) ==
- SIGTERM)
- t_info(
- "the test case timed out\n");
- else
- t_info(
- "the test case caused exception %d\n",
- WTERMSIG(status));
- t_result(T_UNRESOLVED);
- }
- } else if ((deadpid == -1) &&
- (errno == EINTR) &&
- T_int) {
- kill(T_pid, SIGTERM);
- T_int = 0;
- }
- else if ((deadpid == -1) &&
- ((errno == ECHILD) ||
- (errno == ESRCH)))
- break;
- }
-
- alarm(0);
- sa.sa_handler = SIG_IGN;
- (void)sigaction(SIGALRM, &sa, NULL);
- } else {
- t_info("fork failed, errno == %d\n",
- errno);
- t_result(T_UNRESOLVED);
- }
- }
- else {
- (*pts->pfv)();
- }
-#else
- (*pts->pfv)();
-#endif
- }
- ++pts;
- ++tnum;
- }
-
- snprintf(T_buf, sizeof(T_buf), "%s:", argv[0]);
- len = strlen(T_buf);
- (void) t_getdate(T_buf + len, T_BIGBUF - len);
- t_putinfo("E", T_buf);
-
- return(0);
-}
-
-void
-t_assert(const char *component, int anum, int class, const char *what, ...) {
- va_list args;
- char buf[T_BIGBUF];
-
- (void)printf("T:%s:%d:%s\n", component, anum, class == T_REQUIRED ?
- "A" : "C");
-
- /*
- * Format text to a buffer.
- */
- va_start(args, what);
- (void)vsnprintf(buf, sizeof(buf), what, args);
- va_end(args);
-
- (void)t_putinfo("A", buf);
- (void)printf("\n");
-}
-
-void
-t_info(const char *format, ...) {
- va_list args;
- char buf[T_BIGBUF];
-
- va_start(args, format);
- (void) vsnprintf(buf, sizeof(buf), format, args);
- va_end(args);
- (void) t_putinfo("I", buf);
-}
-
-void
-t_result(int result) {
- const char *p;
-
- switch (result) {
- case T_PASS:
- p = "PASS";
- break;
- case T_FAIL:
- p = "FAIL";
- break;
- case T_UNRESOLVED:
- p = "UNRESOLVED";
- break;
- case T_SKIPPED:
- p = "SKIPPED";
- break;
- case T_UNTESTED:
- p = "UNTESTED";
- break;
- case T_THREADONLY:
- p = "THREADONLY";
- break;
- case T_PKCS11ONLY:
- p = "PKCS11ONLY";
- break;
- default:
- p = "UNKNOWN";
- break;
- }
- printf("R:%s\n", p);
-}
-
-char *
-t_getenv(const char *name) {
- char *n;
- char **p;
- size_t len;
-
- n = NULL;
- if (name && *name) {
-
- p = &T_env[0];
- len = strlen(name);
-
- while (*p != NULL) {
- if (strncmp(*p, name, len) == 0) {
- if ( *(*p + len) == '=') {
- n = *p + len + 1;
- break;
- }
- }
- ++p;
- }
- }
- return(n);
-}
-
-/*
- *
- * Read in the config file at path, initializing T_env.
- *
- * note: no format checking for now ...
- *
- */
-
-static int
-t_initconf(const char *path) {
-
- int n;
- int rval;
- char **p;
- FILE *fp;
-
- rval = -1;
-
- fp = fopen(path, "r");
- if (fp != NULL) {
- n = 0;
- p = &T_env[0];
- while (n < T_MAXENV) {
- *p = t_fgetbs(fp);
- if (*p == NULL)
- break;
- if ((**p == '#') || (strchr(*p, '=') == NULL)) {
- /*
- * Skip comments and other junk.
- */
- (void)free(*p);
- continue;
- }
- ++p; ++n;
- }
- (void)fclose(fp);
- rval = 0;
- }
-
- return (rval);
-}
-
-/*
- *
- * Dump T_env to stdout.
- *
- */
-
-static int
-t_dumpconf(const char *path) {
- int rval;
- char **p;
- FILE *fp;
-
- rval = -1;
- fp = fopen(path, "r");
- if (fp != NULL) {
- p = &T_env[0];
- while (*p != NULL) {
- printf("C:%s\n", *p);
- ++p;
- }
- (void) fclose(fp);
- rval = 0;
- }
- return(rval);
-}
-
-/*
- *
- * Read a newline or EOF terminated string from fp.
- * On success:
- * return a malloc'd buf containing the string with
- * the newline converted to a '\0'.
- * On error:
- * return NULL.
- *
- * Caller is responsible for freeing buf.
- *
- */
-
-char *
-t_fgetbs(FILE *fp) {
- int c;
- size_t n;
- size_t size;
- char *buf, *old;
- char *p;
-
- n = 0;
- size = T_BUFSIZ;
- old = buf = (char *) malloc(T_BUFSIZ * sizeof(char));
-
- if (buf != NULL) {
- p = buf;
- while ((c = fgetc(fp)) != EOF) {
-
- if ((c == '\r') || (c == '\n'))
- break;
-
- *p++ = c;
- ++n;
- if ( n >= size ) {
- size += T_BUFSIZ;
- buf = (char *)realloc(buf,
- size * sizeof(char));
- if (buf == NULL)
- goto err;
- old = buf;
- p = buf + n;
- }
- }
- *p = '\0';
- if (c == EOF && n == 0U) {
- free(buf);
- return (NULL);
- }
- return (buf);
- } else {
- err:
- if (old != NULL)
- free(old);
- fprintf(stderr, "malloc/realloc failed %d", errno);
- return(NULL);
- }
-}
-
-/*
- *
- * Put info to log, using key.
- * For now, just dump it out.
- * Later format into pretty lines.
- *
- */
-
-static int
-t_putinfo(const char *key, const char *info) {
- int rval;
-
- /*
- * For now.
- */
- rval = printf("%s:%s", key, info);
- return(rval);
-}
-
-static char *
-t_getdate(char *buf, size_t buflen) {
- size_t n;
- time_t t;
- struct tm *p;
-
- t = time(NULL);
- p = localtime(&t);
- n = strftime(buf, buflen - 1, "%A %d %B %H:%M:%S %Y\n", p);
- return(n != 0U ? buf : NULL);
-}
-
-/*
- * Some generally used utilities.
- */
-static const struct dns_errormap {
- isc_result_t result;
- const char *text;
-} dns_errormap[] = {
- { ISC_R_SUCCESS, "ISC_R_SUCCESS" },
- { ISC_R_EXISTS, "ISC_R_EXISTS" },
- { ISC_R_NOTFOUND, "ISC_R_NOTFOUND" },
- { ISC_R_NOSPACE, "ISC_R_NOSPACE" },
- { ISC_R_UNEXPECTED, "ISC_R_UNEXPECTED" },
- { ISC_R_UNEXPECTEDEND, "ISC_R_UNEXPECTEDEND" },
- { ISC_R_RANGE, "ISC_R_RANGE" },
- { DNS_R_LABELTOOLONG, "DNS_R_LABELTOOLONG" },
- { DNS_R_BADESCAPE, "DNS_R_BADESCAPE" },
- /* { DNS_R_BADBITSTRING, "DNS_R_BADBITSTRING" }, */
- /* { DNS_R_BITSTRINGTOOLONG, "DNS_R_BITSTRINGTOOLONG"}, */
- { DNS_R_EMPTYLABEL, "DNS_R_EMPTYLABEL" },
- { DNS_R_BADDOTTEDQUAD, "DNS_R_BADDOTTEDQUAD" },
- { DNS_R_UNKNOWN, "DNS_R_UNKNOWN" },
- { DNS_R_BADLABELTYPE, "DNS_R_BADLABELTYPE" },
- { DNS_R_BADPOINTER, "DNS_R_BADPOINTER" },
- { DNS_R_TOOMANYHOPS, "DNS_R_TOOMANYHOPS" },
- { DNS_R_DISALLOWED, "DNS_R_DISALLOWED" },
- { DNS_R_EXTRATOKEN, "DNS_R_EXTRATOKEN" },
- { DNS_R_EXTRADATA, "DNS_R_EXTRADATA" },
- { DNS_R_TEXTTOOLONG, "DNS_R_TEXTTOOLONG" },
- { DNS_R_SYNTAX, "DNS_R_SYNTAX" },
- { DNS_R_BADCKSUM, "DNS_R_BADCKSUM" },
- { DNS_R_BADAAAA, "DNS_R_BADAAAA" },
- { DNS_R_NOOWNER, "DNS_R_NOOWNER" },
- { DNS_R_NOTTL, "DNS_R_NOTTL" },
- { DNS_R_BADCLASS, "DNS_R_BADCLASS" },
- { DNS_R_PARTIALMATCH, "DNS_R_PARTIALMATCH" },
- { DNS_R_NEWORIGIN, "DNS_R_NEWORIGIN" },
- { DNS_R_UNCHANGED, "DNS_R_UNCHANGED" },
- { DNS_R_BADTTL, "DNS_R_BADTTL" },
- { DNS_R_NOREDATA, "DNS_R_NOREDATA" },
- { DNS_R_CONTINUE, "DNS_R_CONTINUE" },
- { DNS_R_DELEGATION, "DNS_R_DELEGATION" },
- { DNS_R_GLUE, "DNS_R_GLUE" },
- { DNS_R_DNAME, "DNS_R_DNAME" },
- { DNS_R_CNAME, "DNS_R_CNAME" },
- { DNS_R_NXDOMAIN, "DNS_R_NXDOMAIN" },
- { DNS_R_NXRRSET, "DNS_R_NXRRSET" },
- { DNS_R_BADDB, "DNS_R_BADDB" },
- { DNS_R_ZONECUT, "DNS_R_ZONECUT" },
- { DNS_R_NOTZONETOP, "DNS_R_NOTZONETOP" },
- { DNS_R_SEENINCLUDE, "DNS_R_SEENINCLUDE" },
- { DNS_R_SINGLETON, "DNS_R_SINGLETON" },
- { (isc_result_t)0, NULL }
-};
-
-isc_result_t
-t_dns_result_fromtext(char *name) {
-
- isc_result_t result;
- const struct dns_errormap *pmap;
-
- result = ISC_R_UNEXPECTED;
-
- pmap = dns_errormap;
- while (pmap->text != NULL) {
- if (strcmp(name, pmap->text) == 0)
- break;
- ++pmap;
- }
-
- if (pmap->text != NULL)
- result = pmap->result;
-
- return (result);
-}
-
-static const struct dc_method_map {
- unsigned int dc_method;
- const char *text;
-} dc_method_map[] = {
-
- { DNS_COMPRESS_NONE, "DNS_COMPRESS_NONE" },
- { DNS_COMPRESS_GLOBAL14, "DNS_COMPRESS_GLOBAL14" },
- { DNS_COMPRESS_ALL, "DNS_COMPRESS_ALL" },
- { 0, NULL }
-};
-
-unsigned int
-t_dc_method_fromtext(char *name) {
- unsigned int dc_method;
- const struct dc_method_map *pmap;
-
- dc_method = DNS_COMPRESS_NONE;
-
- pmap = dc_method_map;
- while (pmap->text != NULL) {
- if (strcmp(name, pmap->text) == 0)
- break;
- ++pmap;
- }
-
- if (pmap->text != NULL)
- dc_method = pmap->dc_method;
-
- return(dc_method);
-}
-
-int
-t_bustline(char *line, char **toks) {
- int cnt;
- char *p;
-
- cnt = 0;
- if (line && *line) {
- while ((p = strtok(line, "\t")) && (cnt < T_MAXTOKS)) {
- *toks++ = p;
- line = NULL;
- ++cnt;
- }
- }
- return(cnt);
-}
-
-static void
-printhelp(void) {
- int cnt;
- testspec_t *pts;
-
- cnt = 1;
- pts = &T_testlist[0];
-
- printf("Available tests:\n");
- while (pts->func_name) {
- printf("\t%d\t%s\n", cnt, pts->func_name);
- ++pts;
- ++cnt;
- }
-}
-
-static void
-printusage(void) {
- printf("Usage:\n%s\n", Usage);
-}
-
-int
-t_eval(const char *filename, int (*func)(char **), int nargs) {
- FILE *fp;
- char *p;
- int line;
- int cnt;
- int result;
- int tresult;
- int nfails;
- int nprobs;
- int npass;
- char *tokens[T_MAXTOKS + 1];
-
- tresult = T_UNTESTED;
- npass = 0;
- nfails = 0;
- nprobs = 0;
-
- fp = fopen(filename, "r");
- if (fp != NULL) {
- line = 0;
- while ((p = t_fgetbs(fp)) != NULL) {
-
- ++line;
-
- /*
- * Skip comment lines.
- */
- if ((isspace((unsigned char)*p)) || (*p == '#')) {
- (void)free(p);
- continue;
- }
-
- cnt = t_bustline(p, tokens);
- if (cnt == nargs) {
- tresult = func(tokens);
- switch (tresult) {
- case T_PASS:
- ++npass;
- break;
- case T_FAIL:
- ++nfails;
- break;
- case T_SKIPPED:
- case T_UNTESTED:
- break;
- default:
- ++nprobs;
- break;
- }
- } else {
- t_info("bad format in %s at line %d\n",
- filename, line);
- ++nprobs;
- }
-
- (void)free(p);
- }
- (void)fclose(fp);
- } else {
- t_info("Missing datafile %s\n", filename);
- ++nprobs;
- }
-
- result = T_UNRESOLVED;
-
- if (nfails == 0 && nprobs == 0 && npass > 0)
- result = T_PASS;
- else if (nfails > 0)
- result = T_FAIL;
- else if (npass == 0)
- result = tresult;
-
- return (result);
-}
-
-#ifdef WIN32
-void
-t_settests(const testspec_t list[]) {
- int tnum;
- const testspec_t *pts;
-
- memset(T_testlist, 0, sizeof(T_testlist));
-
- pts = &list[0];
- for (tnum = 0; tnum < T_MAXTESTS - 1; pts++, tnum++) {
- if (pts->pfv == NULL)
- break;
- T_testlist[tnum] = *pts;
- }
-}
-#endif
diff --git a/usr.sbin/bind/lib/tests/win32/DLLMain.c b/usr.sbin/bind/lib/tests/win32/DLLMain.c
deleted file mode 100644
index 102777af058..00000000000
--- a/usr.sbin/bind/lib/tests/win32/DLLMain.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC")
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: DLLMain.c,v 1.1 2019/12/16 16:31:37 deraadt Exp $ */
-
-#include <windows.h>
-#include <signal.h>
-
-/*
- * Called when we enter the DLL
- */
-__declspec(dllexport) BOOL WINAPI DllMain(HINSTANCE hinstDLL,
- DWORD fdwReason, LPVOID lpvReserved)
-{
- switch (fdwReason) {
- /*
- * The DLL is loading due to process
- * initialization or a call to LoadLibrary.
- */
- case DLL_PROCESS_ATTACH:
- break;
-
- /* The attached process creates a new thread. */
- case DLL_THREAD_ATTACH:
- break;
-
- /* The thread of the attached process terminates. */
- case DLL_THREAD_DETACH:
- break;
-
- /*
- * The DLL is unloading from a process due to
- * process termination or a call to FreeLibrary.
- */
- case DLL_PROCESS_DETACH:
- break;
-
- default:
- break;
- }
- return (TRUE);
-}
-
diff --git a/usr.sbin/bind/lib/tests/win32/libtests.def b/usr.sbin/bind/lib/tests/win32/libtests.def
deleted file mode 100644
index ed11153cec4..00000000000
--- a/usr.sbin/bind/lib/tests/win32/libtests.def
+++ /dev/null
@@ -1,15 +0,0 @@
-LIBRARY libtests
-
-; Exported Functions
-EXPORTS
-t_assert
-t_bustline
-t_dc_method_fromtext
-t_dns_result_fromtext
-t_eval
-t_fgetbs
-t_getenv
-t_info
-t_main
-t_result
-t_settests
diff --git a/usr.sbin/bind/lib/tests/win32/libtests.dsp.in b/usr.sbin/bind/lib/tests/win32/libtests.dsp.in
deleted file mode 100644
index c638991d146..00000000000
--- a/usr.sbin/bind/lib/tests/win32/libtests.dsp.in
+++ /dev/null
@@ -1,121 +0,0 @@
-# Microsoft Developer Studio Project File - Name="libtests" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "@PLATFORM@ (x86) Dynamic-Link Library" 0x0102
-
-CFG=libtests - @PLATFORM@ Release
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "libtests.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "libtests.mak" CFG="libtests - @PLATFORM@ Release"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "libtests - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE "libtests - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "libtests - @PLATFORM@ Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 @COPTX@ @COPTI@ /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBTESTS_EXPORTS" @COPTY@ /FD /c
-# ADD CPP /nologo /MD /W3 @COPTX@ @COPTI@ /O2 @LIBXML2_INC@ /I "../../../lib/dns/win32/include" /I "./" /I "../../../" /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "NDEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBTESTS_EXPORTS" @COPTY@ /FD /c
-# SUBTRACT CPP /X
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll @MACHINE@
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib /nologo /dll @MACHINE@ /out:"../../../Build/Release/libtests.dll"
-
-!ELSEIF "$(CFG)" == "libtests - @PLATFORM@ Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBTESTS_EXPORTS" @COPTY@ /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od @LIBXML2_INC@ /I "./" /I "../../../" /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBTESTS_EXPORTS" /FR @COPTY@ /FD /GZ /c
-# SUBTRACT CPP /X
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug @MACHINE@ /pdbtype:sept
-# ADD LINK32 user32.lib advapi32.lib ws2_32.lib ../../isc/win32/debug/libisc.lib ../../dns/win32/debug/libdns.lib /nologo /dll /debug @MACHINE@ /out:"../../../Build/Debug/libtests.dll" /pdbtype:sept
-
-!ENDIF
-
-# Begin Target
-
-# Name "libtests - @PLATFORM@ Release"
-# Name "libtests - @PLATFORM@ Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=..\t_api.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\DLLMain.c
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=..\include\tests\t_api.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# Begin Source File
-
-SOURCE=.\libtests.def
-# End Source File
-# End Target
-# End Project
diff --git a/usr.sbin/bind/lib/tests/win32/libtests.dsw b/usr.sbin/bind/lib/tests/win32/libtests.dsw
deleted file mode 100644
index 5ef44be26bf..00000000000
--- a/usr.sbin/bind/lib/tests/win32/libtests.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "libtests"=.\libtests.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/usr.sbin/bind/lib/tests/win32/libtests.mak.in b/usr.sbin/bind/lib/tests/win32/libtests.mak.in
deleted file mode 100644
index 18b17342a8d..00000000000
--- a/usr.sbin/bind/lib/tests/win32/libtests.mak.in
+++ /dev/null
@@ -1,378 +0,0 @@
-# Microsoft Developer Studio Generated NMAKE File, Based on libtests.dsp
-!IF "$(CFG)" == ""
-CFG=libtests - @PLATFORM@ Release
-!MESSAGE No configuration specified. Defaulting to libtests - @PLATFORM@ Release.
-!ENDIF
-
-!IF "$(CFG)" != "libtests - @PLATFORM@ Release" && "$(CFG)" != "libtests - @PLATFORM@ Debug"
-!MESSAGE Invalid configuration "$(CFG)" specified.
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "libtests.mak" CFG="libtests - @PLATFORM@ Release"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "libtests - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE "libtests - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE
-!ERROR An invalid configuration is specified.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "libtests - @PLATFORM@ Release"
-_VC_MANIFEST_INC=0
-_VC_MANIFEST_BASENAME=__VC80
-!ELSE
-_VC_MANIFEST_INC=1
-_VC_MANIFEST_BASENAME=__VC80.Debug
-!ENDIF
-
-####################################################
-# Specifying name of temporary resource file used only in incremental builds:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-_VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
-!else
-_VC_MANIFEST_AUTO_RES=
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
-
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
-
-!endif
-####################################################
-# _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-_VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
- $(_VC_MANIFEST_BASENAME).auto.rc \
- $(_VC_MANIFEST_BASENAME).auto.manifest
-
-!else
-
-_VC_MANIFEST_CLEAN=
-
-!endif
-
-!IF "$(CFG)" == "libtests - @PLATFORM@ Release"
-
-OUTDIR=.\Release
-INTDIR=.\Release
-
-!IF "$(RECURSE)" == "0"
-
-ALL : "..\..\..\Build\Release\libtests.dll"
-
-!ELSE
-
-ALL : "libisc - @PLATFORM@ Release" "libdns - @PLATFORM@ Release" "..\..\..\Build\Release\libtests.dll"
-
-!ENDIF
-
-!IF "$(RECURSE)" == "1"
-CLEAN :"libdns - @PLATFORM@ ReleaseCLEAN" "libisc - @PLATFORM@ ReleaseCLEAN"
-!ELSE
-CLEAN :
-!ENDIF
- -@erase "$(INTDIR)\t_api.obj"
- -@erase "$(INTDIR)\DLLMain.obj"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(OUTDIR)\libtests.exp"
- -@erase "$(OUTDIR)\libtests.lib"
- -@erase "..\..\..\Build\Release\libtests.dll"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP_PROJ=/nologo /MD /W3 @COPTX@ @COPTI@ /O2 @LIBXML2_INC@ /I "../../../lib/dns/win32/include" /I "./" /I "../../../" /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "NDEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBTESTS_EXPORTS" /Fp"$(INTDIR)\libtests.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
-MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\libtests.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/Release/libisc.lib ../../dns/win32/Release/libdns.lib /nologo /dll /incremental:no /pdb:"$(OUTDIR)\libtests.pdb" @MACHINE@ /def:".\libtests.def" /out:"../../../Build/Release/libtests.dll" /implib:"$(OUTDIR)\libtests.lib"
-DEF_FILE= \
- ".\libtests.def"
-LINK32_OBJS= \
- "$(INTDIR)\t_api.obj" \
- "$(INTDIR)\DLLMain.obj" \
- "..\..\dns\win32\Release\libdns.lib" \
- "..\..\isc\win32\Release\libisc.lib"
-
-"..\..\..\Build\Release\libtests.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_DLL)
-
-!ELSEIF "$(CFG)" == "libtests - @PLATFORM@ Debug"
-
-OUTDIR=.\Debug
-INTDIR=.\Debug
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-!IF "$(RECURSE)" == "0"
-
-ALL : "..\..\..\Build\Debug\libtests.dll" "$(OUTDIR)\libtests.bsc"
-
-!ELSE
-
-ALL : "libisc - @PLATFORM@ Debug" "libdns - @PLATFORM@ Debug" "..\..\..\Build\Debug\libtests.dll" "$(OUTDIR)\libtests.bsc"
-
-!ENDIF
-
-!IF "$(RECURSE)" == "1"
-CLEAN :"libdns - @PLATFORM@ DebugCLEAN" "libisc - @PLATFORM@ DebugCLEAN"
-!ELSE
-CLEAN :
-!ENDIF
- -@erase "$(INTDIR)\t_api.obj"
- -@erase "$(INTDIR)\t_api.sbr"
- -@erase "$(INTDIR)\DLLMain.obj"
- -@erase "$(INTDIR)\DLLMain.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(OUTDIR)\libtests.bsc"
- -@erase "$(OUTDIR)\libtests.exp"
- -@erase "$(OUTDIR)\libtests.lib"
- -@erase "$(OUTDIR)\libtests.pdb"
- -@erase "..\..\..\Build\Debug\libtests.dll"
- -@erase "..\..\..\Build\Debug\libtests.ilk"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP_PROJ=/nologo /MDd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od @LIBXML2_INC@ /I "./" /I "../../../" /I "include" /I "../include" /I "../../../lib/isc/win32" /I "../../../lib/isc/win32/include" /I "../../../lib/dns/include" /I "../../../lib/isc/include" /D "_DEBUG" /D "WIN32" /D "__STDC__" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBTESTS_EXPORTS" /FR"$(INTDIR)\\" /Fp"$(INTDIR)\libtests.pch" @COPTY@ /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\libtests.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\t_api.sbr" \
- "$(INTDIR)\DLLMain.sbr"
-
-"$(OUTDIR)\libtests.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=user32.lib advapi32.lib ws2_32.lib ../../isc/win32/debug/libisc.lib ../../dns/win32/debug/libdns.lib /nologo /dll /incremental:yes /pdb:"$(OUTDIR)\libtests.pdb" /debug @MACHINE@ /def:".\libtests.def" /out:"../../../Build/Debug/libtests.dll" /implib:"$(OUTDIR)\libtests.lib" /pdbtype:sept
-DEF_FILE= \
- ".\libtests.def"
-LINK32_OBJS= \
- "$(INTDIR)\t_api.obj" \
- "$(INTDIR)\DLLMain.obj" \
- "..\..\dns\win32\Debug\libdns.lib" \
- "..\..\isc\win32\Debug\libisc.lib"
-
-"..\..\..\Build\Debug\libtests.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_DLL)
-
-!ENDIF
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("libtests.dep")
-!INCLUDE "libtests.dep"
-!ELSE
-!MESSAGE Warning: cannot find "libtests.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "libtests - @PLATFORM@ Release" || "$(CFG)" == "libtests - @PLATFORM@ Debug"
-SOURCE=..\t_api.c
-
-!IF "$(CFG)" == "libtests - @PLATFORM@ Release"
-
-
-"$(INTDIR)\t_api.obj" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ELSEIF "$(CFG)" == "libtests - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\t_api.obj" "$(INTDIR)\t_api.sbr" : $(SOURCE) "$(INTDIR)"
- $(CPP) $(CPP_PROJ) $(SOURCE)
-
-
-!ENDIF
-
-SOURCE=.\DLLMain.c
-
-!IF "$(CFG)" == "libtests - @PLATFORM@ Release"
-
-
-"$(INTDIR)\DLLMain.obj" : $(SOURCE) "$(INTDIR)"
-
-
-!ELSEIF "$(CFG)" == "libtests - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\DLLMain.obj" "$(INTDIR)\DLLMain.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-!ENDIF
-
-!IF "$(CFG)" == "libtests - @PLATFORM@ Release"
-
-"libdns - @PLATFORM@ Release" :
- cd "..\..\dns\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Release"
- cd "..\..\tests\win32"
-
-"libdns - @PLATFORM@ ReleaseCLEAN" :
- cd "..\..\dns\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Release" RECURSE=1 CLEAN
- cd "..\..\tests\win32"
-
-!ELSEIF "$(CFG)" == "libtests - @PLATFORM@ Debug"
-
-"libdns - @PLATFORM@ Debug" :
- cd "..\..\dns\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Debug"
- cd "..\..\tests\win32"
-
-"libdns - @PLATFORM@ DebugCLEAN" :
- cd "..\..\dns\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libdns.mak" CFG="libdns - @PLATFORM@ Debug" RECURSE=1 CLEAN
- cd "..\..\tests\win32"
-
-!ENDIF
-
-!IF "$(CFG)" == "libtests - @PLATFORM@ Release"
-
-"libisc - @PLATFORM@ Release" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release"
- cd "..\..\tests\win32"
-
-"libisc - @PLATFORM@ ReleaseCLEAN" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Release" RECURSE=1 CLEAN
- cd "..\..\tests\win32"
-
-!ELSEIF "$(CFG)" == "libtests - @PLATFORM@ Debug"
-
-"libisc - @PLATFORM@ Debug" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug"
- cd "..\..\tests\win32"
-
-"libisc - @PLATFORM@ DebugCLEAN" :
- cd "..\..\isc\win32"
- $(MAKE) /$(MAKEFLAGS) /F ".\libisc.mak" CFG="libisc - @PLATFORM@ Debug" RECURSE=1 CLEAN
- cd "..\..\tests\win32"
-
-!ENDIF
-
-
-!ENDIF
-
-####################################################
-# Commands to generate initial empty manifest file and the RC file
-# that references it, and for generating the .res file:
-
-$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
-
-$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
- type <<$@
-#include <winuser.h>
-1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
-<< KEEP
-
-$(_VC_MANIFEST_BASENAME).auto.manifest :
- type <<$@
-<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
-<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
-</assembly>
-<< KEEP
diff --git a/usr.sbin/bind/lib/tests/win32/libtests.vcxproj.filters.in b/usr.sbin/bind/lib/tests/win32/libtests.vcxproj.filters.in
deleted file mode 100644
index ed5279663e8..00000000000
--- a/usr.sbin/bind/lib/tests/win32/libtests.vcxproj.filters.in
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Source Files">
- <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
- <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
- </Filter>
- <Filter Include="Header Files">
- <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
- <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
- </Filter>
- <Filter Include="Resource Files">
- <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
- <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup>
- <None Include="libtests.def" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="DLLMain.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="..\t_api.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\include\tests\t_api.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- </ItemGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/tests/win32/libtests.vcxproj.in b/usr.sbin/bind/lib/tests/win32/libtests.vcxproj.in
deleted file mode 100644
index f41dfe9a11d..00000000000
--- a/usr.sbin/bind/lib/tests/win32/libtests.vcxproj.in
+++ /dev/null
@@ -1,119 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|@PLATFORM@">
- <Configuration>Debug</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|@PLATFORM@">
- <Configuration>Release</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{F6F08940-7597-4FEE-9CE0-E09A009C45A3}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>libtests</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBTESTS_EXPORTS;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>./;../../../;include;../include;../../isc/win32;../../isc/win32/include;../../isc/include;../../dns/include;@LIBXML2_INC@%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <BrowseInformation>true</BrowseInformation>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <AdditionalLibraryDirectories>../../isc/win32/$(Configuration);../../dns/win32/$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <ModuleDefinitionFile>.\libtests.def</ModuleDefinitionFile>
- <ImportLibrary>.\$(Configuration)\$(ProjectName).lib</ImportLibrary>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBTESTS_EXPORTS;%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>./;../../../;include;../include;../../isc/win32;../../isc/win32/include;../../isc/include;../../dns/include;@LIBXML2_INC@%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
- <WholeProgramOptimization>false</WholeProgramOptimization>
- <StringPooling>true</StringPooling>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <AdditionalLibraryDirectories>../../isc/win32/$(Configuration);../../dns/win32/$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
- <AdditionalDependencies>libisc.lib;libdns.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
- <ModuleDefinitionFile>.\libtests.def</ModuleDefinitionFile>
- <ImportLibrary>.\$(Configuration)\$(ProjectName).lib</ImportLibrary>
- <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- </Link>
- </ItemDefinitionGroup>
- <ItemGroup>
- <None Include="libtests.def" />
- </ItemGroup>
- <ItemGroup>
- <ClCompile Include="..\t_api.c" />
- <ClCompile Include="DLLMain.c" />
- </ItemGroup>
- <ItemGroup>
- <ClInclude Include="..\include\tests\t_api.h" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/tests/win32/libtests.vcxproj.user b/usr.sbin/bind/lib/tests/win32/libtests.vcxproj.user
deleted file mode 100644
index 695b5c78b91..00000000000
--- a/usr.sbin/bind/lib/tests/win32/libtests.vcxproj.user
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/win32/bindevt/bindevt.c b/usr.sbin/bind/lib/win32/bindevt/bindevt.c
deleted file mode 100644
index b1da08fb64d..00000000000
--- a/usr.sbin/bind/lib/win32/bindevt/bindevt.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
- * Copyright (C) 2000, 2001 Internet Software Consortium.
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
- * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
- * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
- * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
-
-/* $Id: bindevt.c,v 1.3 2019/12/16 16:31:37 deraadt Exp $ */
-
-/*
- * bindevt.c : Defines the entry point for event log viewer DLL.
- */
-
-#include <windows.h>
-
-BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call,
- LPVOID lpReserved)
-{
- return (TRUE);
-}
-
diff --git a/usr.sbin/bind/lib/win32/bindevt/bindevt.dsp.in b/usr.sbin/bind/lib/win32/bindevt/bindevt.dsp.in
deleted file mode 100644
index 34cbbd10f29..00000000000
--- a/usr.sbin/bind/lib/win32/bindevt/bindevt.dsp.in
+++ /dev/null
@@ -1,132 +0,0 @@
-# Microsoft Developer Studio Project File - Name="bindevt" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "@PLATFORM@ (x86) Dynamic-Link Library" 0x0102
-
-CFG=bindevt - @PLATFORM@ Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "bindevt.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "bindevt.mak" CFG="bindevt - @PLATFORM@ Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "bindevt - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE "bindevt - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "bindevt - @PLATFORM@ Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 1
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 @COPTX@ @COPTI@ /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "BINDEVT_EXPORTS" /Yu"stdafx.h" /FD /c
-# ADD CPP /nologo /MT /W3 @COPTX@ @COPTI@ /O2 /I "..\include" /I "..\..\..\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "BINDEVT_EXPORTS" /FD /c
-# SUBTRACT CPP @COPTY@ /Yc /Yu
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll @MACHINE@
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /pdb:none @MACHINE@ /out:"..\..\..\Build\Release\bindevt.dll"
-
-!ELSEIF "$(CFG)" == "bindevt - @PLATFORM@ Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 1
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm @COPTX@ @COPTI@ /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "BINDEVT_EXPORTS" /Yu"stdafx.h" /FD /GZ /c
-# ADD CPP /nologo /MTd /W3 /Gm @COPTX@ @COPTI@ /Zi /Od /I "..\include" /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "BINDEVT_EXPORTS" /FR /FD /GZ /c
-# SUBTRACT CPP @COPTY@ /Yc /Yu
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug @MACHINE@ /pdbtype:sept
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /pdb:none /debug @MACHINE@ /out:"..\..\..\Build\Debug\bindevt.dll"
-
-!ENDIF
-
-# Begin Target
-
-# Name "bindevt - @PLATFORM@ Release"
-# Name "bindevt - @PLATFORM@ Debug"
-# Begin Source File
-
-SOURCE=.\bindevt.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\bindevt.mc
-
-!IF "$(CFG)" == "bindevt - @PLATFORM@ Release"
-
-# Begin Custom Build
-TargetName=bindevt
-InputPath=.\bindevt.mc
-InputName=bindevt
-
-"$(TargetName).rc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- mc $(InputName).mc
-
-# End Custom Build
-
-!ELSEIF "$(CFG)" == "bindevt - @PLATFORM@ Debug"
-
-# Begin Custom Build
-TargetName=bindevt
-InputPath=.\bindevt.mc
-InputName=bindevt
-
-"$(TargetName).rc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- mc $(InputName).mc
-
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# Begin Source File
-
-SOURCE=.\bindevt.rc
-# End Source File
-# End Target
-# End Project
diff --git a/usr.sbin/bind/lib/win32/bindevt/bindevt.dsw b/usr.sbin/bind/lib/win32/bindevt/bindevt.dsw
deleted file mode 100644
index 7421804fe46..00000000000
--- a/usr.sbin/bind/lib/win32/bindevt/bindevt.dsw
+++ /dev/null
@@ -1,29 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "bindevt"=.\bindevt.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/usr.sbin/bind/lib/win32/bindevt/bindevt.mak.in b/usr.sbin/bind/lib/win32/bindevt/bindevt.mak.in
deleted file mode 100644
index b8b503e8a0c..00000000000
--- a/usr.sbin/bind/lib/win32/bindevt/bindevt.mak.in
+++ /dev/null
@@ -1,310 +0,0 @@
-# Microsoft Developer Studio Generated NMAKE File, Based on bindevt.dsp
-!IF "$(CFG)" == ""
-CFG=bindevt - @PLATFORM@ Debug
-!MESSAGE No configuration specified. Defaulting to bindevt - @PLATFORM@ Debug.
-!ENDIF
-
-!IF "$(CFG)" != "bindevt - @PLATFORM@ Release" && "$(CFG)" != "bindevt - @PLATFORM@ Debug"
-!MESSAGE Invalid configuration "$(CFG)" specified.
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "bindevt.mak" CFG="bindevt - @PLATFORM@ Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "bindevt - @PLATFORM@ Release" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE "bindevt - @PLATFORM@ Debug" (based on "@PLATFORM@ (x86) Dynamic-Link Library")
-!MESSAGE
-!ERROR An invalid configuration is specified.
-!ENDIF
-
-!IF "$(OS)" == "Windows_NT"
-NULL=
-!ELSE
-NULL=nul
-!ENDIF
-
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "bindevt - @PLATFORM@ Release"
-_VC_MANIFEST_INC=0
-_VC_MANIFEST_BASENAME=__VC80
-!ELSE
-_VC_MANIFEST_INC=1
-_VC_MANIFEST_BASENAME=__VC80.Debug
-!ENDIF
-
-####################################################
-# Specifying name of temporary resource file used only in incremental builds:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-_VC_MANIFEST_AUTO_RES=$(_VC_MANIFEST_BASENAME).auto.res
-!else
-_VC_MANIFEST_AUTO_RES=
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_EXE - command to embed manifest in EXE:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;1
-
-!endif
-
-####################################################
-# _VC_MANIFEST_EMBED_DLL - command to embed manifest in DLL:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-#MT_SPECIAL_RETURN=1090650113
-#MT_SPECIAL_SWITCH=-notify_resource_update
-MT_SPECIAL_RETURN=0
-MT_SPECIAL_SWITCH=
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -out:$(_VC_MANIFEST_BASENAME).auto.manifest $(MT_SPECIAL_SWITCH) & \
-if "%ERRORLEVEL%" == "$(MT_SPECIAL_RETURN)" \
-rc /r $(_VC_MANIFEST_BASENAME).auto.rc & \
-link $** /out:$@ $(LFLAGS)
-
-!else
-
-_VC_MANIFEST_EMBED_EXE= \
-if exist $@.manifest mt.exe -manifest $@.manifest -outputresource:$@;2
-
-!endif
-####################################################
-# _VC_MANIFEST_CLEAN - command to clean resources files generated temporarily:
-
-!if "$(_VC_MANIFEST_INC)" == "1"
-
-_VC_MANIFEST_CLEAN=-del $(_VC_MANIFEST_BASENAME).auto.res \
- $(_VC_MANIFEST_BASENAME).auto.rc \
- $(_VC_MANIFEST_BASENAME).auto.manifest
-
-!else
-
-_VC_MANIFEST_CLEAN=
-
-!endif
-
-!IF "$(CFG)" == "bindevt - @PLATFORM@ Release"
-
-OUTDIR=.\Release
-INTDIR=.\Release
-
-ALL : "..\..\..\Build\Release\bindevt.dll"
-
-
-CLEAN :
- -@erase "$(INTDIR)\bindevt.obj"
- -@erase "$(INTDIR)\bindevt.res"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(OUTDIR)\bindevt.exp"
- -@erase "..\..\..\Build\Release\bindevt.dll"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP_PROJ=/nologo /MT /W3 @COPTX@ @COPTI@ /O2 /I "..\include" /I "..\..\..\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "BINDEVT_EXPORTS" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
-MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
-RSC_PROJ=/l 0x409 /fo"$(INTDIR)\bindevt.res" /d "NDEBUG"
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\bindevt.bsc"
-BSC32_SBRS= \
-
-LINK32=link.exe
-LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /pdb:none @MACHINE@ /out:"..\..\..\Build\Release\bindevt.dll" /implib:"$(OUTDIR)\bindevt.lib"
-LINK32_OBJS= \
- "$(INTDIR)\bindevt.obj" \
- "$(INTDIR)\bindevt.res"
-
-"..\..\..\Build\Release\bindevt.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_DLL)
-
-!ELSEIF "$(CFG)" == "bindevt - @PLATFORM@ Debug"
-
-OUTDIR=.\Debug
-INTDIR=.\Debug
-# Begin Custom Macros
-OutDir=.\Debug
-# End Custom Macros
-
-ALL : "..\..\..\Build\Debug\bindevt.dll" "$(OUTDIR)\bindevt.bsc"
-
-
-CLEAN :
- -@erase "$(INTDIR)\bindevt.obj"
- -@erase "$(INTDIR)\bindevt.res"
- -@erase "$(INTDIR)\bindevt.sbr"
- -@erase "$(INTDIR)\vc60.idb"
- -@erase "$(INTDIR)\vc60.pdb"
- -@erase "$(OUTDIR)\bindevt.bsc"
- -@erase "$(OUTDIR)\bindevt.exp"
- -@erase "..\..\..\Build\Debug\bindevt.dll"
- -@$(_VC_MANIFEST_CLEAN)
-
-"$(OUTDIR)" :
- if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
-
-CPP_PROJ=/nologo /MTd /W3 /Gm @COPTX@ @COPTI@ /Zi /Od /I "..\include" /I "..\..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "BINDEVT_EXPORTS" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c
-MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
-RSC_PROJ=/l 0x409 /fo"$(INTDIR)\bindevt.res" /d "_DEBUG"
-BSC32=bscmake.exe
-BSC32_FLAGS=/nologo /o"$(OUTDIR)\bindevt.bsc"
-BSC32_SBRS= \
- "$(INTDIR)\bindevt.sbr"
-
-"$(OUTDIR)\bindevt.bsc" : "$(OUTDIR)" $(BSC32_SBRS)
- $(BSC32) @<<
- $(BSC32_FLAGS) $(BSC32_SBRS)
-<<
-
-LINK32=link.exe
-LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /pdb:none /debug @MACHINE@ /out:"..\..\..\Build\Debug\bindevt.dll" /implib:"$(OUTDIR)\bindevt.lib"
-LINK32_OBJS= \
- "$(INTDIR)\bindevt.obj" \
- "$(INTDIR)\bindevt.res"
-
-"..\..\..\Build\Debug\bindevt.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
- $(LINK32) @<<
- $(LINK32_FLAGS) $(LINK32_OBJS)
-<<
- $(_VC_MANIFEST_EMBED_DLL)
-
-!ENDIF
-
-.c{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.obj::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.c{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cpp{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-.cxx{$(INTDIR)}.sbr::
- $(CPP) @<<
- $(CPP_PROJ) $<
-<<
-
-
-!IF "$(NO_EXTERNAL_DEPS)" != "1"
-!IF EXISTS("bindevt.dep")
-!INCLUDE "bindevt.dep"
-!ELSE
-!MESSAGE Warning: cannot find "bindevt.dep"
-!ENDIF
-!ENDIF
-
-
-!IF "$(CFG)" == "bindevt - @PLATFORM@ Release" || "$(CFG)" == "bindevt - @PLATFORM@ Debug"
-SOURCE=.\bindevt.c
-
-!IF "$(CFG)" == "bindevt - @PLATFORM@ Release"
-
-
-"$(INTDIR)\bindevt.obj" : $(SOURCE) "$(INTDIR)"
-
-
-!ELSEIF "$(CFG)" == "bindevt - @PLATFORM@ Debug"
-
-
-"$(INTDIR)\bindevt.obj" "$(INTDIR)\bindevt.sbr" : $(SOURCE) "$(INTDIR)"
-
-
-!ENDIF
-
-SOURCE=.\bindevt.mc
-
-!IF "$(CFG)" == "bindevt - @PLATFORM@ Release"
-
-TargetName=bindevt
-InputPath=.\bindevt.mc
-InputName=bindevt
-
-".\bindevt.rc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- <<tempfile.bat
- @echo off
- mc $(InputName).mc
-<<
-
-
-!ELSEIF "$(CFG)" == "bindevt - @PLATFORM@ Debug"
-
-TargetName=bindevt
-InputPath=.\bindevt.mc
-InputName=bindevt
-
-".\bindevt.rc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- <<tempfile.bat
- @echo off
- mc $(InputName).mc
-<<
-
-
-!ENDIF
-
-SOURCE=.\bindevt.rc
-
-"$(INTDIR)\bindevt.res" : $(SOURCE) "$(INTDIR)"
- $(RSC) $(RSC_PROJ) $(SOURCE)
-
-
-
-!ENDIF
-
-####################################################
-# Commands to generate initial empty manifest file and the RC file
-# that references it, and for generating the .res file:
-
-$(_VC_MANIFEST_BASENAME).auto.res : $(_VC_MANIFEST_BASENAME).auto.rc
-
-$(_VC_MANIFEST_BASENAME).auto.rc : $(_VC_MANIFEST_BASENAME).auto.manifest
- type <<$@
-#include <winuser.h>
-1RT_MANIFEST"$(_VC_MANIFEST_BASENAME).auto.manifest"
-<< KEEP
-
-$(_VC_MANIFEST_BASENAME).auto.manifest :
- type <<$@
-<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
-<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
-</assembly>
-<< KEEP
diff --git a/usr.sbin/bind/lib/win32/bindevt/bindevt.mc b/usr.sbin/bind/lib/win32/bindevt/bindevt.mc
deleted file mode 100644
index e408a65ff9f..00000000000
--- a/usr.sbin/bind/lib/win32/bindevt/bindevt.mc
+++ /dev/null
@@ -1,47 +0,0 @@
-; Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
-; Copyright (C) 2001 Internet Software Consortium.
-;
-; Permission to use, copy, modify, and/or distribute this software for any
-; purpose with or without fee is hereby granted, provided that the above
-; copyright notice and this permission notice appear in all copies.
-;
-; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
-; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
-; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-; PERFORMANCE OF THIS SOFTWARE.
-
-; $Id: bindevt.mc,v 1.3 2019/12/16 16:31:37 deraadt Exp $
-
-MessageIdTypedef=DWORD
-
-LanguageNames = (English=0x409:MSG00409)
-
-OutputBase = 16
-
-
-MessageId=0x1
-Severity=Error
-Facility=Application
-SymbolicName=BIND_ERR_MSG
-Language=English
-%1
-.
-
-MessageId=0x2
-Severity=Warning
-Facility=Application
-SymbolicName=BIND_WARN_MSG
-Language=English
-%1
-.
-
-MessageId=0x3
-Severity=Informational
-Facility=Application
-SymbolicName=BIND_INFO_MSG
-Language=English
-%1
-.
diff --git a/usr.sbin/bind/lib/win32/bindevt/bindevt.vcxproj.filters.in b/usr.sbin/bind/lib/win32/bindevt/bindevt.vcxproj.filters.in
deleted file mode 100644
index 2790c2f1b3e..00000000000
--- a/usr.sbin/bind/lib/win32/bindevt/bindevt.vcxproj.filters.in
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <ClCompile Include="bindevt.c" />
- </ItemGroup>
- <ItemGroup>
- <None Include="bindevt.mc" />
- </ItemGroup>
- <ItemGroup>
- <ResourceCompile Include="bindevt.rc" />
- </ItemGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/win32/bindevt/bindevt.vcxproj.in b/usr.sbin/bind/lib/win32/bindevt/bindevt.vcxproj.in
deleted file mode 100644
index c074165906b..00000000000
--- a/usr.sbin/bind/lib/win32/bindevt/bindevt.vcxproj.in
+++ /dev/null
@@ -1,130 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|@PLATFORM@">
- <Configuration>Debug</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|@PLATFORM@">
- <Configuration>Release</Configuration>
- <Platform>@PLATFORM@</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <PropertyGroup Label="Globals">
- <ProjectGuid>{0D745CD9-FC3B-49DC-99BE-1E6DF85593F0}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>bindevt</RootNamespace>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>true</UseDebugLibraries>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- <CharacterSet>MultiByte</CharacterSet>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- <CustomBuildBeforeTargets>ResourceCompile</CustomBuildBeforeTargets>
- <IgnoreImportLibrary>true</IgnoreImportLibrary>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>..\..\..\Build\$(Configuration)\</OutDir>
- <IntDir>.\$(Configuration)\</IntDir>
- <CustomBuildBeforeTargets>ResourceCompile</CustomBuildBeforeTargets>
- <IgnoreImportLibrary>true</IgnoreImportLibrary>
- </PropertyGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;BINDEVT_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\include;..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <BrowseInformation>true</BrowseInformation>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <ImportLibrary>.\$(Configuration)\$(ProjectName).lib</ImportLibrary>
- </Link>
- <CustomBuildStep>
- <Command>mc bindevt.mc</Command>
- </CustomBuildStep>
- <CustomBuildStep>
- <Outputs>$(TargetName).rc</Outputs>
- </CustomBuildStep>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>false</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;BINDEVT_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\include;..\..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
- <StringPooling>true</StringPooling>
- <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
- <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
- <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
- <ObjectFileName>.\$(Configuration)\</ObjectFileName>
- <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
- <WholeProgramOptimization>false</WholeProgramOptimization>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>false</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- <OutputFile>..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
- <LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
- <ImportLibrary>.\$(Configuration)\$(ProjectName).lib</ImportLibrary>
- </Link>
- <CustomBuildStep>
- <Command>mc bindevt.mc</Command>
- </CustomBuildStep>
- <CustomBuildStep>
- <Outputs>$(TargetName).rc</Outputs>
- </CustomBuildStep>
- </ItemDefinitionGroup>
- <ItemGroup>
- <ClCompile Include="bindevt.c" />
- </ItemGroup>
- <ItemGroup>
- <None Include="bindevt.mc" />
- </ItemGroup>
- <ItemGroup>
- <ResourceCompile Include="bindevt.rc" />
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/lib/win32/bindevt/bindevt.vcxproj.user b/usr.sbin/bind/lib/win32/bindevt/bindevt.vcxproj.user
deleted file mode 100644
index 695b5c78b91..00000000000
--- a/usr.sbin/bind/lib/win32/bindevt/bindevt.vcxproj.user
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-</Project> \ No newline at end of file
diff --git a/usr.sbin/bind/libtool.m4 b/usr.sbin/bind/libtool.m4
deleted file mode 100644
index 551ffd0d83e..00000000000
--- a/usr.sbin/bind/libtool.m4
+++ /dev/null
@@ -1,6000 +0,0 @@
-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
-## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
-## Free Software Foundation, Inc.
-## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2 of the License, or
-## (at your option) any later version.
-##
-## This program is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## As a special exception to the GNU General Public License, if you
-## distribute this file as part of a program that contains a
-## configuration script generated by Autoconf, you may include it under
-## the same distribution terms that you use for the rest of that program.
-
-# serial 47 AC_PROG_LIBTOOL
-
-
-# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
-# -----------------------------------------------------------
-# If this macro is not defined by Autoconf, define it here.
-m4_ifdef([AC_PROVIDE_IFELSE],
- [],
- [m4_define([AC_PROVIDE_IFELSE],
- [m4_ifdef([AC_PROVIDE_$1],
- [$2], [$3])])])
-
-
-# AC_PROG_LIBTOOL
-# ---------------
-AC_DEFUN([AC_PROG_LIBTOOL],
-[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
-dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
-dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
- AC_PROVIDE_IFELSE([AC_PROG_CXX],
- [AC_LIBTOOL_CXX],
- [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
- ])])
-dnl And a similar setup for Fortran 77 support
- AC_PROVIDE_IFELSE([AC_PROG_F77],
- [AC_LIBTOOL_F77],
- [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
-])])
-
-dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
-dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
-dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
- AC_PROVIDE_IFELSE([AC_PROG_GCJ],
- [AC_LIBTOOL_GCJ],
- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
- [AC_LIBTOOL_GCJ],
- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
- [AC_LIBTOOL_GCJ],
- [ifdef([AC_PROG_GCJ],
- [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
- ifdef([A][M_PROG_GCJ],
- [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
- ifdef([LT_AC_PROG_GCJ],
- [define([LT_AC_PROG_GCJ],
- defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
-])])# AC_PROG_LIBTOOL
-
-
-# _AC_PROG_LIBTOOL
-# ----------------
-AC_DEFUN([_AC_PROG_LIBTOOL],
-[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
-AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
-AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
-AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
-
-# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-
-# Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-AC_SUBST(LIBTOOL)dnl
-
-# Prevent multiple expansion
-define([AC_PROG_LIBTOOL], [])
-])# _AC_PROG_LIBTOOL
-
-
-# AC_LIBTOOL_SETUP
-# ----------------
-AC_DEFUN([AC_LIBTOOL_SETUP],
-[AC_PREREQ(2.50)dnl
-AC_REQUIRE([AC_ENABLE_SHARED])dnl
-AC_REQUIRE([AC_ENABLE_STATIC])dnl
-AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
-AC_REQUIRE([AC_PROG_CC])dnl
-AC_REQUIRE([AC_PROG_LD])dnl
-AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
-AC_REQUIRE([AC_PROG_NM])dnl
-
-AC_REQUIRE([AC_PROG_LN_S])dnl
-AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
-# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
-AC_REQUIRE([AC_OBJEXT])dnl
-AC_REQUIRE([AC_EXEEXT])dnl
-dnl
-
-AC_LIBTOOL_SYS_MAX_CMD_LEN
-AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
-AC_LIBTOOL_OBJDIR
-
-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
-_LT_AC_PROG_ECHO_BACKSLASH
-
-case $host_os in
-aix3*)
- # AIX sometimes has problems with the GCC collect2 program. For some
- # reason, if we set the COLLECT_NAMES environment variable, the problems
- # vanish in a puff of smoke.
- if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
- fi
- ;;
-esac
-
-# Sed substitution that helps us do robust quoting. It backslashifies
-# metacharacters that are still active within double-quoted strings.
-Xsed='sed -e s/^X//'
-[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
-
-# Same as above, but do not quote variable references.
-[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
-
-# Sed substitution to delay expansion of an escaped shell variable in a
-# double_quote_subst'ed string.
-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
-
-# Sed substitution to avoid accidental globbing in evaled expressions
-no_glob_subst='s/\*/\\\*/g'
-
-# Constants:
-rm="rm -f"
-
-# Global variables:
-default_ofile=libtool
-can_build_shared=yes
-
-# All known linkers require a `.a' archive for static linking (except M$VC,
-# which needs '.lib').
-libext=a
-ltmain="$ac_aux_dir/ltmain.sh"
-ofile="$default_ofile"
-with_gnu_ld="$lt_cv_prog_gnu_ld"
-
-AC_CHECK_TOOL(AR, ar, false)
-AC_CHECK_TOOL(RANLIB, ranlib, :)
-AC_CHECK_TOOL(STRIP, strip, :)
-
-old_CC="$CC"
-old_CFLAGS="$CFLAGS"
-
-# Set sane defaults for various variables
-test -z "$AR" && AR=ar
-test -z "$AR_FLAGS" && AR_FLAGS=cru
-test -z "$AS" && AS=as
-test -z "$CC" && CC=cc
-test -z "$LTCC" && LTCC=$CC
-test -z "$DLLTOOL" && DLLTOOL=dlltool
-test -z "$LD" && LD=ld
-test -z "$LN_S" && LN_S="ln -s"
-test -z "$MAGIC_CMD" && MAGIC_CMD=file
-test -z "$NM" && NM=nm
-test -z "$SED" && SED=sed
-test -z "$OBJDUMP" && OBJDUMP=objdump
-test -z "$RANLIB" && RANLIB=:
-test -z "$STRIP" && STRIP=:
-test -z "$ac_objext" && ac_objext=o
-
-# Determine commands to create old-style static archives.
-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
-old_postinstall_cmds='chmod 644 $oldlib'
-old_postuninstall_cmds=
-
-if test -n "$RANLIB"; then
- case $host_os in
- openbsd*)
- old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
- ;;
- *)
- old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
- ;;
- esac
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
-fi
-
-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
-
-# Only perform the check for file, if the check method requires it
-case $deplibs_check_method in
-file_magic*)
- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
- AC_PATH_MAGIC
- fi
- ;;
-esac
-
-AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
-enable_win32_dll=yes, enable_win32_dll=no)
-
-AC_ARG_ENABLE([libtool-lock],
- [AC_HELP_STRING([--disable-libtool-lock],
- [avoid locking (might break parallel builds)])])
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
-
-AC_ARG_WITH([pic],
- [AC_HELP_STRING([--with-pic],
- [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
- [pic_mode="$withval"],
- [pic_mode=default])
-test -z "$pic_mode" && pic_mode=default
-
-# Use C for the default configuration in the libtool script
-tagname=
-AC_LIBTOOL_LANG_C_CONFIG
-_LT_AC_TAGCONFIG
-])# AC_LIBTOOL_SETUP
-
-
-# _LT_AC_SYS_COMPILER
-# -------------------
-AC_DEFUN([_LT_AC_SYS_COMPILER],
-[AC_REQUIRE([AC_PROG_CC])dnl
-
-# If no C compiler was specified, use CC.
-LTCC=${LTCC-"$CC"}
-
-# Allow CC to be a program name with arguments.
-compiler=$CC
-])# _LT_AC_SYS_COMPILER
-
-
-# _LT_AC_SYS_LIBPATH_AIX
-# ----------------------
-# Links a minimal program and checks the executable
-# for the system default hardcoded library path. In most cases,
-# this is /usr/lib:/lib, but when the MPI compilers are used
-# the location of the communication and MPI libs are included too.
-# If we don't find anything, use the default library path according
-# to the aix ld manual.
-AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
-[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`
-# Check for a 64-bit object if we didn't find anything.
-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`; fi],[])
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
-])# _LT_AC_SYS_LIBPATH_AIX
-
-
-# _LT_AC_SHELL_INIT(ARG)
-# ----------------------
-AC_DEFUN([_LT_AC_SHELL_INIT],
-[ifdef([AC_DIVERSION_NOTICE],
- [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
- [AC_DIVERT_PUSH(NOTICE)])
-$1
-AC_DIVERT_POP
-])# _LT_AC_SHELL_INIT
-
-
-# _LT_AC_PROG_ECHO_BACKSLASH
-# --------------------------
-# Add some code to the start of the generated configure script which
-# will find an echo command which doesn't interpret backslashes.
-AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
-[_LT_AC_SHELL_INIT([
-# Check that we are running under the correct shell.
-SHELL=${CONFIG_SHELL-/bin/sh}
-
-case X$ECHO in
-X*--fallback-echo)
- # Remove one level of quotation (which was required for Make).
- ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
- ;;
-esac
-
-echo=${ECHO-echo}
-if test "X[$]1" = X--no-reexec; then
- # Discard the --no-reexec flag, and continue.
- shift
-elif test "X[$]1" = X--fallback-echo; then
- # Avoid inline document here, it may be left over
- :
-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
- # Yippee, $echo works!
- :
-else
- # Restart under the correct shell.
- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
-fi
-
-if test "X[$]1" = X--fallback-echo; then
- # used as fallback echo
- shift
- cat <<EOF
-[$]*
-EOF
- exit 0
-fi
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-if test -z "$ECHO"; then
-if test "X${echo_test_string+set}" != Xset; then
-# find a string as large as possible, as long as the shell can cope with it
- for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
- if (echo_test_string="`eval $cmd`") 2>/dev/null &&
- echo_test_string="`eval $cmd`" &&
- (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
- then
- break
- fi
- done
-fi
-
-if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- :
-else
- # The Solaris, AIX, and Digital Unix default echo programs unquote
- # backslashes. This makes it impossible to quote backslashes using
- # echo "$something" | sed 's/\\/\\\\/g'
- #
- # So, first we look for a working echo in the user's PATH.
-
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for dir in $PATH /usr/ucb; do
- IFS="$lt_save_ifs"
- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- echo="$dir/echo"
- break
- fi
- done
- IFS="$lt_save_ifs"
-
- if test "X$echo" = Xecho; then
- # We didn't find a better echo, so look for alternatives.
- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- # This shell has a builtin print -r that does the trick.
- echo='print -r'
- elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
- test "X$CONFIG_SHELL" != X/bin/ksh; then
- # If we have ksh, try running configure again with it.
- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
- export ORIGINAL_CONFIG_SHELL
- CONFIG_SHELL=/bin/ksh
- export CONFIG_SHELL
- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
- else
- # Try using printf.
- echo='printf %s\n'
- if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- # Cool, printf works
- :
- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
- test "X$echo_testing_string" = 'X\t' &&
- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
- export CONFIG_SHELL
- SHELL="$CONFIG_SHELL"
- export SHELL
- echo="$CONFIG_SHELL [$]0 --fallback-echo"
- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
- test "X$echo_testing_string" = 'X\t' &&
- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- echo="$CONFIG_SHELL [$]0 --fallback-echo"
- else
- # maybe with a smaller string...
- prev=:
-
- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
- if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
- then
- break
- fi
- prev="$cmd"
- done
-
- if test "$prev" != 'sed 50q "[$]0"'; then
- echo_test_string=`eval $prev`
- export echo_test_string
- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
- else
- # Oops. We lost completely, so just stick with echo.
- echo=echo
- fi
- fi
- fi
- fi
-fi
-fi
-
-# Copy echo and quote the copy suitably for passing to libtool from
-# the Makefile, instead of quoting the original, which is used later.
-ECHO=$echo
-if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
- ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
-fi
-
-AC_SUBST(ECHO)
-])])# _LT_AC_PROG_ECHO_BACKSLASH
-
-
-# _LT_AC_LOCK
-# -----------
-AC_DEFUN([_LT_AC_LOCK],
-[AC_ARG_ENABLE([libtool-lock],
- [AC_HELP_STRING([--disable-libtool-lock],
- [avoid locking (might break parallel builds)])])
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
-
-# Some flags need to be propagated to the compiler or linker for good
-# libtool support.
-case $host in
-ia64-*-hpux*)
- # Find out which ABI we are using.
- echo 'int i;' > conftest.$ac_ext
- if AC_TRY_EVAL(ac_compile); then
- case `/usr/bin/file conftest.$ac_objext` in
- *ELF-32*)
- HPUX_IA64_MODE="32"
- ;;
- *ELF-64*)
- HPUX_IA64_MODE="64"
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
-*-*-irix6*)
- # Find out which ABI we are using.
- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
- if AC_TRY_EVAL(ac_compile); then
- if test "$lt_cv_prog_gnu_ld" = yes; then
- case `/usr/bin/file conftest.$ac_objext` in
- *32-bit*)
- LD="${LD-ld} -melf32bsmip"
- ;;
- *N32*)
- LD="${LD-ld} -melf32bmipn32"
- ;;
- *64-bit*)
- LD="${LD-ld} -melf64bmip"
- ;;
- esac
- else
- case `/usr/bin/file conftest.$ac_objext` in
- *32-bit*)
- LD="${LD-ld} -32"
- ;;
- *N32*)
- LD="${LD-ld} -n32"
- ;;
- *64-bit*)
- LD="${LD-ld} -64"
- ;;
- esac
- fi
- fi
- rm -rf conftest*
- ;;
-
-x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
- # Find out which ABI we are using.
- echo 'int i;' > conftest.$ac_ext
- if AC_TRY_EVAL(ac_compile); then
- case "`/usr/bin/file conftest.o`" in
- *32-bit*)
- case $host in
- x86_64-*linux*)
- LD="${LD-ld} -m elf_i386"
- ;;
- ppc64-*linux*|powerpc64-*linux*)
- LD="${LD-ld} -m elf32ppclinux"
- ;;
- s390x-*linux*)
- LD="${LD-ld} -m elf_s390"
- ;;
- sparc64-*linux*)
- LD="${LD-ld} -m elf32_sparc"
- ;;
- esac
- ;;
- *64-bit*)
- case $host in
- x86_64-*linux*)
- LD="${LD-ld} -m elf_x86_64"
- ;;
- ppc*-*linux*|powerpc*-*linux*)
- LD="${LD-ld} -m elf64ppc"
- ;;
- s390*-*linux*)
- LD="${LD-ld} -m elf64_s390"
- ;;
- sparc*-*linux*)
- LD="${LD-ld} -m elf64_sparc"
- ;;
- esac
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
-
-*-*-sco3.2v5*)
- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
- SAVE_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -belf"
- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
- [AC_LANG_PUSH(C)
- AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
- AC_LANG_POP])
- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
- CFLAGS="$SAVE_CFLAGS"
- fi
- ;;
-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
-[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
- AC_CHECK_TOOL(DLLTOOL, dlltool, false)
- AC_CHECK_TOOL(AS, as, false)
- AC_CHECK_TOOL(OBJDUMP, objdump, false)
- ;;
- ])
-esac
-
-need_locks="$enable_libtool_lock"
-
-])# _LT_AC_LOCK
-
-
-# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
-# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
-# ----------------------------------------------------------------
-# Check whether the given compiler option works
-AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
-[AC_REQUIRE([LT_AC_PROG_SED])
-AC_CACHE_CHECK([$1], [$2],
- [$2=no
- ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
- lt_compiler_flag="$3"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- # The option is referenced via a variable to avoid confusing sed.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
- (eval "$lt_compile" 2>conftest.err)
- ac_status=$?
- cat conftest.err >&AS_MESSAGE_LOG_FD
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
- if (exit $ac_status) && test -s "$ac_outfile"; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test ! -s conftest.err; then
- $2=yes
- fi
- fi
- $rm conftest*
-])
-
-if test x"[$]$2" = xyes; then
- ifelse([$5], , :, [$5])
-else
- ifelse([$6], , :, [$6])
-fi
-])# AC_LIBTOOL_COMPILER_OPTION
-
-
-# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
-# [ACTION-SUCCESS], [ACTION-FAILURE])
-# ------------------------------------------------------------
-# Check whether the given compiler option works
-AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
-[AC_CACHE_CHECK([$1], [$2],
- [$2=no
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS $3"
- printf "$lt_simple_link_test_code" > conftest.$ac_ext
- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s conftest.err; then
- # Append any errors to the config.log.
- cat conftest.err 1>&AS_MESSAGE_LOG_FD
- else
- $2=yes
- fi
- fi
- $rm conftest*
- LDFLAGS="$save_LDFLAGS"
-])
-
-if test x"[$]$2" = xyes; then
- ifelse([$4], , :, [$4])
-else
- ifelse([$5], , :, [$5])
-fi
-])# AC_LIBTOOL_LINKER_OPTION
-
-
-# AC_LIBTOOL_SYS_MAX_CMD_LEN
-# --------------------------
-AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
-[# find the maximum length of command line arguments
-AC_MSG_CHECKING([the maximum length of command line arguments])
-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
- i=0
- teststring="ABCD"
-
- case $build_os in
- msdosdjgpp*)
- # On DJGPP, this test can blow up pretty badly due to problems in libc
- # (any single argument exceeding 2000 bytes causes a buffer overrun
- # during glob expansion). Even if it were fixed, the result of this
- # check would be larger than it should be.
- lt_cv_sys_max_cmd_len=12288; # 12K is about right
- ;;
-
- gnu*)
- # Under GNU Hurd, this test is not required because there is
- # no limit to the length of command line arguments.
- # Libtool will interpret -1 as no limit whatsoever
- lt_cv_sys_max_cmd_len=-1;
- ;;
-
- cygwin* | mingw*)
- # On Win9x/ME, this test blows up -- it succeeds, but takes
- # about 5 minutes as the teststring grows exponentially.
- # Worse, since 9x/ME are not pre-emptively multitasking,
- # you end up with a "frozen" computer, even though with patience
- # the test eventually succeeds (with a max line length of 256k).
- # Instead, let's just punt: use the minimum linelength reported by
- # all of the supported platforms: 8192 (on NT/2K/XP).
- lt_cv_sys_max_cmd_len=8192;
- ;;
-
- amigaos*)
- # On AmigaOS with pdksh, this test takes hours, literally.
- # So we just punt and use a minimum line length of 8192.
- lt_cv_sys_max_cmd_len=8192;
- ;;
-
- netbsd* | freebsd* | openbsd* | darwin* )
- # This has been around since 386BSD, at least. Likely further.
- if test -x /sbin/sysctl; then
- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
- elif test -x /usr/sbin/sysctl; then
- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
- else
- lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
- fi
- # And add a safety zone
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
- ;;
-
- *)
- # If test is not a shell built-in, we'll probably end up computing a
- # maximum length that is only half of the actual maximum length, but
- # we can't tell.
- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
- while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
- = "XX$teststring") >/dev/null 2>&1 &&
- new_result=`expr "X$teststring" : ".*" 2>&1` &&
- lt_cv_sys_max_cmd_len=$new_result &&
- test $i != 17 # 1/2 MB should be enough
- do
- i=`expr $i + 1`
- teststring=$teststring$teststring
- done
- teststring=
- # Add a significant safety factor because C++ compilers can tack on massive
- # amounts of additional arguments before passing them to the linker.
- # It appears as though 1/2 is a usable value.
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
- ;;
- esac
-])
-if test -n $lt_cv_sys_max_cmd_len ; then
- AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
-else
- AC_MSG_RESULT(none)
-fi
-])# AC_LIBTOOL_SYS_MAX_CMD_LEN
-
-
-# _LT_AC_CHECK_DLFCN
-# --------------------
-AC_DEFUN([_LT_AC_CHECK_DLFCN],
-[AC_CHECK_HEADERS(dlfcn.h)dnl
-])# _LT_AC_CHECK_DLFCN
-
-
-# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
-# ------------------------------------------------------------------
-AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
-if test "$cross_compiling" = yes; then :
- [$4]
-else
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
- lt_status=$lt_dlunknown
- cat > conftest.$ac_ext <<EOF
-[#line __oline__ "configure"
-#include "confdefs.h"
-
-#if HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
-
-#include <stdio.h>
-
-#ifdef RTLD_GLOBAL
-# define LT_DLGLOBAL RTLD_GLOBAL
-#else
-# ifdef DL_GLOBAL
-# define LT_DLGLOBAL DL_GLOBAL
-# else
-# define LT_DLGLOBAL 0
-# endif
-#endif
-
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- find out it does not work in some platform. */
-#ifndef LT_DLLAZY_OR_NOW
-# ifdef RTLD_LAZY
-# define LT_DLLAZY_OR_NOW RTLD_LAZY
-# else
-# ifdef DL_LAZY
-# define LT_DLLAZY_OR_NOW DL_LAZY
-# else
-# ifdef RTLD_NOW
-# define LT_DLLAZY_OR_NOW RTLD_NOW
-# else
-# ifdef DL_NOW
-# define LT_DLLAZY_OR_NOW DL_NOW
-# else
-# define LT_DLLAZY_OR_NOW 0
-# endif
-# endif
-# endif
-# endif
-#endif
-
-#ifdef __cplusplus
-extern "C" void exit (int);
-#endif
-
-void fnord() { int i=42;}
-int main ()
-{
- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
- int status = $lt_dlunknown;
-
- if (self)
- {
- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
- /* dlclose (self); */
- }
-
- exit (status);
-}]
-EOF
- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
- (./conftest; exit; ) 2>/dev/null
- lt_status=$?
- case x$lt_status in
- x$lt_dlno_uscore) $1 ;;
- x$lt_dlneed_uscore) $2 ;;
- x$lt_unknown|x*) $3 ;;
- esac
- else :
- # compilation failed
- $3
- fi
-fi
-rm -fr conftest*
-])# _LT_AC_TRY_DLOPEN_SELF
-
-
-# AC_LIBTOOL_DLOPEN_SELF
-# -------------------
-AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
-if test "x$enable_dlopen" != xyes; then
- enable_dlopen=unknown
- enable_dlopen_self=unknown
- enable_dlopen_self_static=unknown
-else
- lt_cv_dlopen=no
- lt_cv_dlopen_libs=
-
- case $host_os in
- beos*)
- lt_cv_dlopen="load_add_on"
- lt_cv_dlopen_libs=
- lt_cv_dlopen_self=yes
- ;;
-
- mingw* | pw32*)
- lt_cv_dlopen="LoadLibrary"
- lt_cv_dlopen_libs=
- ;;
-
- cygwin*)
- lt_cv_dlopen="dlopen"
- lt_cv_dlopen_libs=
- ;;
-
- darwin*)
- # if libdl is installed we need to link against it
- AC_CHECK_LIB([dl], [dlopen],
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
- lt_cv_dlopen="dyld"
- lt_cv_dlopen_libs=
- lt_cv_dlopen_self=yes
- ])
- ;;
-
- *)
- AC_CHECK_FUNC([shl_load],
- [lt_cv_dlopen="shl_load"],
- [AC_CHECK_LIB([dld], [shl_load],
- [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
- [AC_CHECK_FUNC([dlopen],
- [lt_cv_dlopen="dlopen"],
- [AC_CHECK_LIB([dl], [dlopen],
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
- [AC_CHECK_LIB([svld], [dlopen],
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
- [AC_CHECK_LIB([dld], [dld_link],
- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
- ])
- ])
- ])
- ])
- ])
- ;;
- esac
-
- if test "x$lt_cv_dlopen" != xno; then
- enable_dlopen=yes
- else
- enable_dlopen=no
- fi
-
- case $lt_cv_dlopen in
- dlopen)
- save_CPPFLAGS="$CPPFLAGS"
- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
-
- save_LDFLAGS="$LDFLAGS"
- eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
-
- save_LIBS="$LIBS"
- LIBS="$lt_cv_dlopen_libs $LIBS"
-
- AC_CACHE_CHECK([whether a program can dlopen itself],
- lt_cv_dlopen_self, [dnl
- _LT_AC_TRY_DLOPEN_SELF(
- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
- ])
-
- if test "x$lt_cv_dlopen_self" = xyes; then
- LDFLAGS="$LDFLAGS $link_static_flag"
- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
- lt_cv_dlopen_self_static, [dnl
- _LT_AC_TRY_DLOPEN_SELF(
- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
- ])
- fi
-
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- LIBS="$save_LIBS"
- ;;
- esac
-
- case $lt_cv_dlopen_self in
- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
- *) enable_dlopen_self=unknown ;;
- esac
-
- case $lt_cv_dlopen_self_static in
- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
- *) enable_dlopen_self_static=unknown ;;
- esac
-fi
-])# AC_LIBTOOL_DLOPEN_SELF
-
-
-# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
-# ---------------------------------
-# Check to see if options -c and -o are simultaneously supported by compiler
-AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
-[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
- $rm -r conftest 2>/dev/null
- mkdir conftest
- cd conftest
- mkdir out
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
-
- lt_compiler_flag="-o out/conftest2.$ac_objext"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
- (eval "$lt_compile" 2>out/conftest.err)
- ac_status=$?
- cat out/conftest.err >&AS_MESSAGE_LOG_FD
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
- if (exit $ac_status) && test -s out/conftest2.$ac_objext
- then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test ! -s out/conftest.err; then
- _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
- fi
- fi
- chmod u+w .
- $rm conftest*
- # SGI C++ compiler will create directory out/ii_files/ for
- # template instantiation
- test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
- $rm out/* && rmdir out
- cd ..
- rmdir conftest
- $rm conftest*
-])
-])# AC_LIBTOOL_PROG_CC_C_O
-
-
-# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
-# -----------------------------------------
-# Check to see if we can do hard links to lock some files if needed
-AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
-[AC_REQUIRE([_LT_AC_LOCK])dnl
-
-hard_links="nottested"
-if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
- # do not overwrite the value of need_locks provided by the user
- AC_MSG_CHECKING([if we can lock with hard links])
- hard_links=yes
- $rm conftest*
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- touch conftest.a
- ln conftest.a conftest.b 2>&5 || hard_links=no
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- AC_MSG_RESULT([$hard_links])
- if test "$hard_links" = no; then
- AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
- need_locks=warn
- fi
-else
- need_locks=no
-fi
-])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
-
-
-# AC_LIBTOOL_OBJDIR
-# -----------------
-AC_DEFUN([AC_LIBTOOL_OBJDIR],
-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
-[rm -f .libs 2>/dev/null
-mkdir .libs 2>/dev/null
-if test -d .libs; then
- lt_cv_objdir=.libs
-else
- # MS-DOS does not allow filenames that begin with a dot.
- lt_cv_objdir=_libs
-fi
-rmdir .libs 2>/dev/null])
-objdir=$lt_cv_objdir
-])# AC_LIBTOOL_OBJDIR
-
-
-# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
-# ----------------------------------------------
-# Check hardcoding attributes.
-AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
-[AC_MSG_CHECKING([how to hardcode library paths into programs])
-_LT_AC_TAGVAR(hardcode_action, $1)=
-if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
- test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
- test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
-
- # We can hardcode non-existant directories.
- if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
- # If the only mechanism to avoid hardcoding is shlibpath_var, we
- # have to relink, otherwise we might link with an installed library
- # when we should be linking with a yet-to-be-installed one
- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
- test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
- # Linking always hardcodes the temporary library directory.
- _LT_AC_TAGVAR(hardcode_action, $1)=relink
- else
- # We can link without hardcoding, and we can hardcode nonexisting dirs.
- _LT_AC_TAGVAR(hardcode_action, $1)=immediate
- fi
-else
- # We cannot hardcode anything, or else we can only hardcode existing
- # directories.
- _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
-fi
-AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
-
-if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
- # Fast installation is not supported
- enable_fast_install=no
-elif test "$shlibpath_overrides_runpath" = yes ||
- test "$enable_shared" = no; then
- # Fast installation is not necessary
- enable_fast_install=needless
-fi
-])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
-
-
-# AC_LIBTOOL_SYS_LIB_STRIP
-# ------------------------
-AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
-[striplib=
-old_striplib=
-AC_MSG_CHECKING([whether stripping libraries is possible])
-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
- AC_MSG_RESULT([yes])
-else
-# FIXME - insert some real tests, host_os isn't really good enough
- case $host_os in
- darwin*)
- if test -n "$STRIP" ; then
- striplib="$STRIP -x"
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
-fi
- ;;
- *)
- AC_MSG_RESULT([no])
- ;;
- esac
-fi
-])# AC_LIBTOOL_SYS_LIB_STRIP
-
-
-# AC_LIBTOOL_SYS_DYNAMIC_LINKER
-# -----------------------------
-# PORTME Fill in your ld.so characteristics
-AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
-[AC_MSG_CHECKING([dynamic linker characteristics])
-library_names_spec=
-libname_spec='lib$name'
-soname_spec=
-shrext_cmds=".so"
-postinstall_cmds=
-postuninstall_cmds=
-finish_cmds=
-finish_eval=
-shlibpath_var=
-shlibpath_overrides_runpath=unknown
-version_type=none
-dynamic_linker="$host_os ld.so"
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
-if test "$GCC" = yes; then
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
- # if the path contains ";" then we assume it to be the separator
- # otherwise default to the standard path separator (i.e. ":") - it is
- # assumed that no part of a normal pathname contains ";" but that should
- # okay in the real world where ";" in dirpaths is itself problematic.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
-else
- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
-fi
-need_lib_prefix=unknown
-hardcode_into_libs=no
-
-# when you set need_version to no, make sure it does not cause -set_version
-# flags to be left without arguments
-need_version=unknown
-
-case $host_os in
-aix3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
- shlibpath_var=LIBPATH
-
- # AIX 3 has no versioning support, so we append a major version to the name.
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
-
-aix4* | aix5*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- hardcode_into_libs=yes
- if test "$host_cpu" = ia64; then
- # AIX 5 supports IA64
- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- else
- # With GCC up to 2.95.x, collect2 would create an import file
- # for dependence libraries. The import file would start with
- # the line `#! .'. This would cause the generated library to
- # depend on `.', always an invalid library. This was fixed in
- # development snapshots of GCC prior to 3.0.
- case $host_os in
- aix4 | aix4.[[01]] | aix4.[[01]].*)
- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
- echo ' yes '
- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
- :
- else
- can_build_shared=no
- fi
- ;;
- esac
- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
- # soname into executable. Probably we can add versioning support to
- # collect2, so additional links can be useful in future.
- if test "$aix_use_runtimelinking" = yes; then
- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
- # instead of lib<name>.a to let people know that these are not
- # typical AIX shared libraries.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- else
- # We preserve .a as extension for shared libraries through AIX4.2
- # and later when we are not doing run time linking.
- library_names_spec='${libname}${release}.a $libname.a'
- soname_spec='${libname}${release}${shared_ext}$major'
- fi
- shlibpath_var=LIBPATH
- fi
- ;;
-
-amigaos*)
- library_names_spec='$libname.ixlibrary $libname.a'
- # Create ${libname}_ixlibrary.a entries in /sys/libs.
- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
- ;;
-
-beos*)
- library_names_spec='${libname}${shared_ext}'
- dynamic_linker="$host_os ld.so"
- shlibpath_var=LIBRARY_PATH
- ;;
-
-bsdi[[45]]*)
- version_type=linux
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
- # the default ld.so.conf also contains /usr/contrib/lib and
- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
- # libtool to hard-code these into programs
- ;;
-
-cygwin* | mingw* | pw32*)
- version_type=windows
- shrext_cmds=".dll"
- need_version=no
- need_lib_prefix=no
-
- case $GCC,$host_os in
- yes,cygwin* | yes,mingw* | yes,pw32*)
- library_names_spec='$libname.dll.a'
- # DLL is installed to $(libdir)/../bin by postinstall_cmds
- postinstall_cmds='base_file=`basename \${file}`~
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
- dldir=$destdir/`dirname \$dlpath`~
- test -d \$dldir || mkdir -p \$dldir~
- $install_prog $dir/$dlname \$dldir/$dlname'
- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
- dlpath=$dir/\$dldll~
- $rm \$dlpath'
- shlibpath_overrides_runpath=yes
-
- case $host_os in
- cygwin*)
- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
- ;;
- mingw*)
- # MinGW DLLs use traditional 'lib' prefix
- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
- # It is most probably a Windows format PATH printed by
- # mingw gcc, but we are running on Cygwin. Gcc prints its search
- # path with ; separators, and with drive letters. We can handle the
- # drive letters (cygwin fileutils understands them), so leave them,
- # especially as we might pass files found there to a mingw objdump,
- # which wouldn't understand a cygwinified path. Ahh.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
- ;;
- pw32*)
- # pw32 DLLs use 'pw' prefix rather than 'lib'
- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- ;;
- esac
- ;;
-
- *)
- library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
- ;;
- esac
- dynamic_linker='Win32 ld.exe'
- # FIXME: first we should search . and the directory the executable is in
- shlibpath_var=PATH
- ;;
-
-darwin* | rhapsody*)
- dynamic_linker="$host_os dyld"
- version_type=darwin
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
- soname_spec='${libname}${release}${major}$shared_ext'
- shlibpath_overrides_runpath=yes
- shlibpath_var=DYLD_LIBRARY_PATH
- shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
- # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
- if test "$GCC" = yes; then
- sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
- else
- sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
- fi
- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
- ;;
-
-dgux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-freebsd1*)
- dynamic_linker=no
- ;;
-
-kfreebsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='GNU ld.so'
- ;;
-
-freebsd*)
- objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- need_version=no
- need_lib_prefix=no
- ;;
- freebsd-*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
- need_version=yes
- ;;
- esac
- shlibpath_var=LD_LIBRARY_PATH
- case $host_os in
- freebsd2*)
- shlibpath_overrides_runpath=yes
- ;;
- freebsd3.[01]* | freebsdelf3.[01]*)
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- *) # from 3.2 on
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
- esac
- ;;
-
-gnu*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- ;;
-
-hpux9* | hpux10* | hpux11*)
- # Give a soname corresponding to the major version so that dld.sl refuses to
- # link against other versions.
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- case "$host_cpu" in
- ia64*)
- shrext_cmds='.so'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.so"
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- if test "X$HPUX_IA64_MODE" = X32; then
- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
- else
- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
- fi
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- hppa*64*)
- shrext_cmds='.sl'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- *)
- shrext_cmds='.sl'
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=SHLIB_PATH
- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
- esac
- # HP-UX runs *really* slowly unless shared libraries are mode 555.
- postinstall_cmds='chmod 555 $lib'
- ;;
-
-irix5* | irix6* | nonstopux*)
- case $host_os in
- nonstopux*) version_type=nonstopux ;;
- *)
- if test "$lt_cv_prog_gnu_ld" = yes; then
- version_type=linux
- else
- version_type=irix
- fi ;;
- esac
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
- case $host_os in
- irix5* | nonstopux*)
- libsuff= shlibsuff=
- ;;
- *)
- case $LD in # libtool.m4 will add one of these switches to LD
- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
- libsuff= shlibsuff= libmagic=32-bit;;
- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
- libsuff=32 shlibsuff=N32 libmagic=N32;;
- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
- libsuff=64 shlibsuff=64 libmagic=64-bit;;
- *) libsuff= shlibsuff= libmagic=never-match;;
- esac
- ;;
- esac
- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
- hardcode_into_libs=yes
- ;;
-
-# No shared lib support for Linux oldld, aout, or coff.
-linux*oldld* | linux*aout* | linux*coff*)
- dynamic_linker=no
- ;;
-
-# This must be Linux ELF.
-linux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- # This implies no fast_install, which is unacceptable.
- # Some rework will be needed to allow for fast_install
- # before this can be enabled.
- hardcode_into_libs=yes
-
- # Append ld.so.conf contents to the search path
- if test -f /etc/ld.so.conf; then
- lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
- fi
-
- # We used to test for /lib/ld.so.1 and disable shared libraries on
- # powerpc, because MkLinux only supported shared libraries with the
- # GNU dynamic linker. Since this was broken with cross compilers,
- # most powerpc-linux boxes support dynamic linking these days and
- # people can always --disable-shared, the test was removed, and we
- # assume the GNU/Linux dynamic linker is in use.
- dynamic_linker='GNU/Linux ld.so'
- ;;
-
-knetbsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='GNU ld.so'
- ;;
-
-netbsd*)
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- dynamic_linker='NetBSD (a.out) ld.so'
- else
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='NetBSD ld.elf_so'
- fi
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
-
-newsos6)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
-
-nto-qnx*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
-
-openbsd*)
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- case $host_os in
- openbsd2.[[89]] | openbsd2.[[89]].*)
- shlibpath_overrides_runpath=no
- ;;
- *)
- shlibpath_overrides_runpath=yes
- ;;
- esac
- else
- shlibpath_overrides_runpath=yes
- fi
- ;;
-
-os2*)
- libname_spec='$name'
- shrext_cmds=".dll"
- need_lib_prefix=no
- library_names_spec='$libname${shared_ext} $libname.a'
- dynamic_linker='OS/2 ld.exe'
- shlibpath_var=LIBPATH
- ;;
-
-osf3* | osf4* | osf5*)
- version_type=osf
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
- ;;
-
-sco3.2v5*)
- version_type=osf
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-solaris*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- # ldd complains unless libraries are executable
- postinstall_cmds='chmod +x $lib'
- ;;
-
-sunos4*)
- version_type=sunos
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- fi
- need_version=yes
- ;;
-
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- case $host_vendor in
- sni)
- shlibpath_overrides_runpath=no
- need_lib_prefix=no
- export_dynamic_flag_spec='${wl}-Blargedynsym'
- runpath_var=LD_RUN_PATH
- ;;
- siemens)
- need_lib_prefix=no
- ;;
- motorola)
- need_lib_prefix=no
- need_version=no
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
- ;;
- esac
- ;;
-
-sysv4*MP*)
- if test -d /usr/nec ;then
- version_type=linux
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
- soname_spec='$libname${shared_ext}.$major'
- shlibpath_var=LD_LIBRARY_PATH
- fi
- ;;
-
-uts4*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-*)
- dynamic_linker=no
- ;;
-esac
-AC_MSG_RESULT([$dynamic_linker])
-test "$dynamic_linker" = no && can_build_shared=no
-])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
-
-
-# _LT_AC_TAGCONFIG
-# ----------------
-AC_DEFUN([_LT_AC_TAGCONFIG],
-[AC_ARG_WITH([tags],
- [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
- [include additional configurations @<:@automatic@:>@])],
- [tagnames="$withval"])
-
-if test -f "$ltmain" && test -n "$tagnames"; then
- if test ! -f "${ofile}"; then
- AC_MSG_WARN([output file `$ofile' does not exist])
- fi
-
- if test -z "$LTCC"; then
- eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
- if test -z "$LTCC"; then
- AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
- else
- AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
- fi
- fi
-
- # Extract list of available tagged configurations in $ofile.
- # Note that this assumes the entire list is on one line.
- available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
-
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for tagname in $tagnames; do
- IFS="$lt_save_ifs"
- # Check whether tagname contains only valid characters
- case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
- "") ;;
- *) AC_MSG_ERROR([invalid tag name: $tagname])
- ;;
- esac
-
- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
- then
- AC_MSG_ERROR([tag name \"$tagname\" already exists])
- fi
-
- # Update the list of available tags.
- if test -n "$tagname"; then
- echo appending configuration tag \"$tagname\" to $ofile
-
- case $tagname in
- CXX)
- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
- (test "X$CXX" != "Xg++"))) ; then
- AC_LIBTOOL_LANG_CXX_CONFIG
- else
- tagname=""
- fi
- ;;
-
- F77)
- if test -n "$F77" && test "X$F77" != "Xno"; then
- AC_LIBTOOL_LANG_F77_CONFIG
- else
- tagname=""
- fi
- ;;
-
- GCJ)
- if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
- AC_LIBTOOL_LANG_GCJ_CONFIG
- else
- tagname=""
- fi
- ;;
-
- RC)
- AC_LIBTOOL_LANG_RC_CONFIG
- ;;
-
- *)
- AC_MSG_ERROR([Unsupported tag name: $tagname])
- ;;
- esac
-
- # Append the new tag name to the list of available tags.
- if test -n "$tagname" ; then
- available_tags="$available_tags $tagname"
- fi
- fi
- done
- IFS="$lt_save_ifs"
-
- # Now substitute the updated list of available tags.
- if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
- mv "${ofile}T" "$ofile"
- chmod +x "$ofile"
- else
- rm -f "${ofile}T"
- AC_MSG_ERROR([unable to update list of available tagged configurations.])
- fi
-fi
-])# _LT_AC_TAGCONFIG
-
-
-# AC_LIBTOOL_DLOPEN
-# -----------------
-# enable checks for dlopen support
-AC_DEFUN([AC_LIBTOOL_DLOPEN],
- [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
-])# AC_LIBTOOL_DLOPEN
-
-
-# AC_LIBTOOL_WIN32_DLL
-# --------------------
-# declare package support for building win32 dll's
-AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
-[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
-])# AC_LIBTOOL_WIN32_DLL
-
-
-# AC_ENABLE_SHARED([DEFAULT])
-# ---------------------------
-# implement the --enable-shared flag
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
-AC_DEFUN([AC_ENABLE_SHARED],
-[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
-AC_ARG_ENABLE([shared],
- [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
- [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
- [p=${PACKAGE-default}
- case $enableval in
- yes) enable_shared=yes ;;
- no) enable_shared=no ;;
- *)
- enable_shared=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_shared=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac],
- [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
-])# AC_ENABLE_SHARED
-
-
-# AC_DISABLE_SHARED
-# -----------------
-#- set the default shared flag to --disable-shared
-AC_DEFUN([AC_DISABLE_SHARED],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-AC_ENABLE_SHARED(no)
-])# AC_DISABLE_SHARED
-
-
-# AC_ENABLE_STATIC([DEFAULT])
-# ---------------------------
-# implement the --enable-static flag
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
-AC_DEFUN([AC_ENABLE_STATIC],
-[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
-AC_ARG_ENABLE([static],
- [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
- [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
- [p=${PACKAGE-default}
- case $enableval in
- yes) enable_static=yes ;;
- no) enable_static=no ;;
- *)
- enable_static=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_static=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac],
- [enable_static=]AC_ENABLE_STATIC_DEFAULT)
-])# AC_ENABLE_STATIC
-
-
-# AC_DISABLE_STATIC
-# -----------------
-# set the default static flag to --disable-static
-AC_DEFUN([AC_DISABLE_STATIC],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-AC_ENABLE_STATIC(no)
-])# AC_DISABLE_STATIC
-
-
-# AC_ENABLE_FAST_INSTALL([DEFAULT])
-# ---------------------------------
-# implement the --enable-fast-install flag
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
-AC_DEFUN([AC_ENABLE_FAST_INSTALL],
-[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
-AC_ARG_ENABLE([fast-install],
- [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
- [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
- [p=${PACKAGE-default}
- case $enableval in
- yes) enable_fast_install=yes ;;
- no) enable_fast_install=no ;;
- *)
- enable_fast_install=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_fast_install=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac],
- [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
-])# AC_ENABLE_FAST_INSTALL
-
-
-# AC_DISABLE_FAST_INSTALL
-# -----------------------
-# set the default to --disable-fast-install
-AC_DEFUN([AC_DISABLE_FAST_INSTALL],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-AC_ENABLE_FAST_INSTALL(no)
-])# AC_DISABLE_FAST_INSTALL
-
-
-# AC_LIBTOOL_PICMODE([MODE])
-# --------------------------
-# implement the --with-pic flag
-# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
-AC_DEFUN([AC_LIBTOOL_PICMODE],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-pic_mode=ifelse($#,1,$1,default)
-])# AC_LIBTOOL_PICMODE
-
-
-# AC_PROG_EGREP
-# -------------
-# This is predefined starting with Autoconf 2.54, so this conditional
-# definition can be removed once we require Autoconf 2.54 or later.
-m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
-[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
- [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
- then ac_cv_prog_egrep='grep -E'
- else ac_cv_prog_egrep='egrep'
- fi])
- EGREP=$ac_cv_prog_egrep
- AC_SUBST([EGREP])
-])])
-
-
-# AC_PATH_TOOL_PREFIX
-# -------------------
-# find a file program which can recognise shared library
-AC_DEFUN([AC_PATH_TOOL_PREFIX],
-[AC_REQUIRE([AC_PROG_EGREP])dnl
-AC_MSG_CHECKING([for $1])
-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
-[case $MAGIC_CMD in
-[[\\/*] | ?:[\\/]*])
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
- ;;
-*)
- lt_save_MAGIC_CMD="$MAGIC_CMD"
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
-dnl $ac_dummy forces splitting on constant user-supplied paths.
-dnl POSIX.2 word splitting is done only on the output of word expansions,
-dnl not every word. This closes a longstanding sh security hole.
- ac_dummy="ifelse([$2], , $PATH, [$2])"
- for ac_dir in $ac_dummy; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$1; then
- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
- if test -n "$file_magic_test_file"; then
- case $deplibs_check_method in
- "file_magic "*)
- file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- $EGREP "$file_magic_regex" > /dev/null; then
- :
- else
- cat <<EOF 1>&2
-
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such. This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem. Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool@gnu.org
-
-EOF
- fi ;;
- esac
- fi
- break
- fi
- done
- IFS="$lt_save_ifs"
- MAGIC_CMD="$lt_save_MAGIC_CMD"
- ;;
-esac])
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-if test -n "$MAGIC_CMD"; then
- AC_MSG_RESULT($MAGIC_CMD)
-else
- AC_MSG_RESULT(no)
-fi
-])# AC_PATH_TOOL_PREFIX
-
-
-# AC_PATH_MAGIC
-# -------------
-# find a file program which can recognise a shared library
-AC_DEFUN([AC_PATH_MAGIC],
-[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
-if test -z "$lt_cv_path_MAGIC_CMD"; then
- if test -n "$ac_tool_prefix"; then
- AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
- else
- MAGIC_CMD=:
- fi
-fi
-])# AC_PATH_MAGIC
-
-
-# AC_PROG_LD
-# ----------
-# find the pathname to the GNU or non-GNU linker
-AC_DEFUN([AC_PROG_LD],
-[AC_ARG_WITH([gnu-ld],
- [AC_HELP_STRING([--with-gnu-ld],
- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
- [test "$withval" = no || with_gnu_ld=yes],
- [with_gnu_ld=no])
-AC_REQUIRE([LT_AC_PROG_SED])dnl
-AC_REQUIRE([AC_PROG_CC])dnl
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
-ac_prog=ld
-if test "$GCC" = yes; then
- # Check if gcc -print-prog-name=ld gives a path.
- AC_MSG_CHECKING([for ld used by $CC])
- case $host in
- *-*-mingw*)
- # gcc leaves a trailing carriage return which upsets mingw
- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
- *)
- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
- esac
- case $ac_prog in
- # Accept absolute paths.
- [[\\/]]* | ?:[[\\/]]*)
- re_direlt='/[[^/]][[^/]]*/\.\./'
- # Canonicalize the pathname of ld
- ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
- ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
- done
- test -z "$LD" && LD="$ac_prog"
- ;;
- "")
- # If it fails, then pretend we aren't using GCC.
- ac_prog=ld
- ;;
- *)
- # If it is relative, then search for the first ld in PATH.
- with_gnu_ld=unknown
- ;;
- esac
-elif test "$with_gnu_ld" = yes; then
- AC_MSG_CHECKING([for GNU ld])
-else
- AC_MSG_CHECKING([for non-GNU ld])
-fi
-AC_CACHE_VAL(lt_cv_path_LD,
-[if test -z "$LD"; then
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
- lt_cv_path_LD="$ac_dir/$ac_prog"
- # Check to see if the program is GNU ld. I'd rather use --version,
- # but apparently some GNU ld's only accept -v.
- # Break only if it was the GNU/non-GNU ld that we prefer.
- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
- *GNU* | *'with BFD'*)
- test "$with_gnu_ld" != no && break
- ;;
- *)
- test "$with_gnu_ld" != yes && break
- ;;
- esac
- fi
- done
- IFS="$lt_save_ifs"
-else
- lt_cv_path_LD="$LD" # Let the user override the test with a path.
-fi])
-LD="$lt_cv_path_LD"
-if test -n "$LD"; then
- AC_MSG_RESULT($LD)
-else
- AC_MSG_RESULT(no)
-fi
-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
-AC_PROG_LD_GNU
-])# AC_PROG_LD
-
-
-# AC_PROG_LD_GNU
-# --------------
-AC_DEFUN([AC_PROG_LD_GNU],
-[AC_REQUIRE([AC_PROG_EGREP])dnl
-AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
-[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
-case `$LD -v 2>&1 </dev/null` in
-*GNU* | *'with BFD'*)
- lt_cv_prog_gnu_ld=yes
- ;;
-*)
- lt_cv_prog_gnu_ld=no
- ;;
-esac])
-with_gnu_ld=$lt_cv_prog_gnu_ld
-])# AC_PROG_LD_GNU
-
-
-# AC_PROG_LD_RELOAD_FLAG
-# ----------------------
-# find reload flag for linker
-# -- PORTME Some linkers may need a different reload flag.
-AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
-[AC_CACHE_CHECK([for $LD option to reload object files],
- lt_cv_ld_reload_flag,
- [lt_cv_ld_reload_flag='-r'])
-reload_flag=$lt_cv_ld_reload_flag
-case $reload_flag in
-"" | " "*) ;;
-*) reload_flag=" $reload_flag" ;;
-esac
-reload_cmds='$LD$reload_flag -o $output$reload_objs'
-case $host_os in
- darwin*)
- if test "$GCC" = yes; then
- reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
- else
- reload_cmds='$LD$reload_flag -o $output$reload_objs'
- fi
- ;;
-esac
-])# AC_PROG_LD_RELOAD_FLAG
-
-
-# AC_DEPLIBS_CHECK_METHOD
-# -----------------------
-# how to check for library dependencies
-# -- PORTME fill in with the dynamic library characteristics
-AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
-[AC_CACHE_CHECK([how to recognise dependent libraries],
-lt_cv_deplibs_check_method,
-[lt_cv_file_magic_cmd='$MAGIC_CMD'
-lt_cv_file_magic_test_file=
-lt_cv_deplibs_check_method='unknown'
-# Need to set the preceding variable on all platforms that support
-# interlibrary dependencies.
-# 'none' -- dependencies not supported.
-# `unknown' -- same as none, but documents that we really don't know.
-# 'pass_all' -- all dependencies passed with no checks.
-# 'test_compile' -- check by making test program.
-# 'file_magic [[regex]]' -- check by looking for files in library path
-# which responds to the $file_magic_cmd with a given extended regex.
-# If you have `file' or equivalent on your system and you're not sure
-# whether `pass_all' will *always* work, you probably want this one.
-
-case $host_os in
-aix4* | aix5*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-beos*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-bsdi[[45]]*)
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
- lt_cv_file_magic_cmd='/usr/bin/file -L'
- lt_cv_file_magic_test_file=/shlib/libc.so
- ;;
-
-cygwin*)
- # func_win32_libid is a shell function defined in ltmain.sh
- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
- lt_cv_file_magic_cmd='func_win32_libid'
- ;;
-
-mingw* | pw32*)
- # Base MSYS/MinGW do not provide the 'file' command needed by
- # func_win32_libid shell function, so use a weaker test based on 'objdump'.
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
- lt_cv_file_magic_cmd='$OBJDUMP -f'
- ;;
-
-darwin* | rhapsody*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-freebsd* | kfreebsd*-gnu)
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- case $host_cpu in
- i*86 )
- # Not sure whether the presence of OpenBSD here was a mistake.
- # Let's accept both of them until this is cleared up.
- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
- ;;
- esac
- else
- lt_cv_deplibs_check_method=pass_all
- fi
- ;;
-
-gnu*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-hpux10.20* | hpux11*)
- lt_cv_file_magic_cmd=/usr/bin/file
- case "$host_cpu" in
- ia64*)
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
- ;;
- hppa*64*)
- [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
- ;;
- *)
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
- lt_cv_file_magic_test_file=/usr/lib/libc.sl
- ;;
- esac
- ;;
-
-irix5* | irix6* | nonstopux*)
- case $LD in
- *-32|*"-32 ") libmagic=32-bit;;
- *-n32|*"-n32 ") libmagic=N32;;
- *-64|*"-64 ") libmagic=64-bit;;
- *) libmagic=never-match;;
- esac
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-# This must be Linux ELF.
-linux*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
- else
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
- fi
- ;;
-
-newos6*)
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=/usr/lib/libnls.so
- ;;
-
-nto-qnx*)
- lt_cv_deplibs_check_method=unknown
- ;;
-
-openbsd*)
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
- else
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
- fi
- ;;
-
-osf3* | osf4* | osf5*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-sco3.2v5*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-solaris*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- case $host_vendor in
- motorola)
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
- ;;
- ncr)
- lt_cv_deplibs_check_method=pass_all
- ;;
- sequent)
- lt_cv_file_magic_cmd='/bin/file'
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
- ;;
- sni)
- lt_cv_file_magic_cmd='/bin/file'
- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
- lt_cv_file_magic_test_file=/lib/libc.so
- ;;
- siemens)
- lt_cv_deplibs_check_method=pass_all
- ;;
- esac
- ;;
-
-sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-esac
-])
-file_magic_cmd=$lt_cv_file_magic_cmd
-deplibs_check_method=$lt_cv_deplibs_check_method
-test -z "$deplibs_check_method" && deplibs_check_method=unknown
-])# AC_DEPLIBS_CHECK_METHOD
-
-
-# AC_PROG_NM
-# ----------
-# find the pathname to a BSD-compatible name lister
-AC_DEFUN([AC_PROG_NM],
-[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
-[if test -n "$NM"; then
- # Let the user override the test.
- lt_cv_path_NM="$NM"
-else
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- tmp_nm="$ac_dir/${ac_tool_prefix}nm"
- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
- # Check to see if the nm accepts a BSD-compat flag.
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
- # nm: unknown option "B" ignored
- # Tru64's nm complains that /dev/null is an invalid object file
- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
- */dev/null* | *'Invalid file or object type'*)
- lt_cv_path_NM="$tmp_nm -B"
- break
- ;;
- *)
- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
- */dev/null*)
- lt_cv_path_NM="$tmp_nm -p"
- break
- ;;
- *)
- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
- continue # so that we can try to find one that supports BSD flags
- ;;
- esac
- esac
- fi
- done
- IFS="$lt_save_ifs"
- test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
-fi])
-NM="$lt_cv_path_NM"
-])# AC_PROG_NM
-
-
-# AC_CHECK_LIBM
-# -------------
-# check for math library
-AC_DEFUN([AC_CHECK_LIBM],
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
-LIBM=
-case $host in
-*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
- # These system don't have libm, or don't need it
- ;;
-*-ncr-sysv4.3*)
- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
- ;;
-*)
- AC_CHECK_LIB(m, cos, LIBM="-lm")
- ;;
-esac
-])# AC_CHECK_LIBM
-
-
-# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
-# -----------------------------------
-# sets LIBLTDL to the link flags for the libltdl convenience library and
-# LTDLINCL to the include flags for the libltdl header and adds
-# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
-# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
-# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
-# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
-# '${top_srcdir}/' (note the single quotes!). If your package is not
-# flat and you're not using automake, define top_builddir and
-# top_srcdir appropriately in the Makefiles.
-AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- case $enable_ltdl_convenience in
- no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
- "") enable_ltdl_convenience=yes
- ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
- esac
- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
- # For backwards non-gettext consistent compatibility...
- INCLTDL="$LTDLINCL"
-])# AC_LIBLTDL_CONVENIENCE
-
-
-# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
-# -----------------------------------
-# sets LIBLTDL to the link flags for the libltdl installable library and
-# LTDLINCL to the include flags for the libltdl header and adds
-# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
-# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
-# DIRECTORY is not provided and an installed libltdl is not found, it is
-# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
-# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
-# quotes!). If your package is not flat and you're not using automake,
-# define top_builddir and top_srcdir appropriately in the Makefiles.
-# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
-AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- AC_CHECK_LIB(ltdl, lt_dlinit,
- [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
- [if test x"$enable_ltdl_install" = xno; then
- AC_MSG_WARN([libltdl not installed, but installation disabled])
- else
- enable_ltdl_install=yes
- fi
- ])
- if test x"$enable_ltdl_install" = x"yes"; then
- ac_configure_args="$ac_configure_args --enable-ltdl-install"
- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
- else
- ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
- LIBLTDL="-lltdl"
- LTDLINCL=
- fi
- # For backwards non-gettext consistent compatibility...
- INCLTDL="$LTDLINCL"
-])# AC_LIBLTDL_INSTALLABLE
-
-
-# AC_LIBTOOL_CXX
-# --------------
-# enable support for C++ libraries
-AC_DEFUN([AC_LIBTOOL_CXX],
-[AC_REQUIRE([_LT_AC_LANG_CXX])
-])# AC_LIBTOOL_CXX
-
-
-# _LT_AC_LANG_CXX
-# ---------------
-AC_DEFUN([_LT_AC_LANG_CXX],
-[AC_REQUIRE([AC_PROG_CXX])
-AC_REQUIRE([_LT_AC_PROG_CXXCPP])
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
-])# _LT_AC_LANG_CXX
-
-# _LT_AC_PROG_CXXCPP
-# ---------------
-AC_DEFUN([_LT_AC_PROG_CXXCPP],
-[
-AC_REQUIRE([AC_PROG_CXX])
-if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
- (test "X$CXX" != "Xg++"))) ; then
- AC_PROG_CXXCPP
-fi
-])# _LT_AC_PROG_CXXCPP
-
-# AC_LIBTOOL_F77
-# --------------
-# enable support for Fortran 77 libraries
-AC_DEFUN([AC_LIBTOOL_F77],
-[AC_REQUIRE([_LT_AC_LANG_F77])
-])# AC_LIBTOOL_F77
-
-
-# _LT_AC_LANG_F77
-# ---------------
-AC_DEFUN([_LT_AC_LANG_F77],
-[AC_REQUIRE([AC_PROG_F77])
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
-])# _LT_AC_LANG_F77
-
-
-# AC_LIBTOOL_GCJ
-# --------------
-# enable support for GCJ libraries
-AC_DEFUN([AC_LIBTOOL_GCJ],
-[AC_REQUIRE([_LT_AC_LANG_GCJ])
-])# AC_LIBTOOL_GCJ
-
-
-# _LT_AC_LANG_GCJ
-# ---------------
-AC_DEFUN([_LT_AC_LANG_GCJ],
-[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
- [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
- [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
- [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
-])# _LT_AC_LANG_GCJ
-
-
-# AC_LIBTOOL_RC
-# --------------
-# enable support for Windows resource files
-AC_DEFUN([AC_LIBTOOL_RC],
-[AC_REQUIRE([LT_AC_PROG_RC])
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
-])# AC_LIBTOOL_RC
-
-
-# AC_LIBTOOL_LANG_C_CONFIG
-# ------------------------
-# Ensure that the configuration vars for the C compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
-AC_DEFUN([_LT_AC_LANG_C_CONFIG],
-[lt_save_CC="$CC"
-AC_LANG_PUSH(C)
-
-# Source file extension for C test sources.
-ac_ext=c
-
-# Object file extension for compiled C test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="int some_variable = 0;\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='int main(){return(0);}\n'
-
-_LT_AC_SYS_COMPILER
-
-#
-# Check for any special shared library compilation flags.
-#
-_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
-if test "$GCC" = no; then
- case $host_os in
- sco3.2v5*)
- _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
- ;;
- esac
-fi
-if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
- AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
- if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
- else
- AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
- _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
- fi
-fi
-
-
-#
-# Check to make sure the static flag actually works.
-#
-AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
- _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
- $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
- [],
- [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
-
-
-## CAVEAT EMPTOR:
-## There is no encapsulation within the following macros, do not change
-## the running order or otherwise move them around unless you know exactly
-## what you are doing...
-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
-AC_LIBTOOL_PROG_CC_C_O($1)
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
-AC_LIBTOOL_SYS_LIB_STRIP
-AC_LIBTOOL_DLOPEN_SELF($1)
-
-# Report which libraries types will actually be built
-AC_MSG_CHECKING([if libtool supports shared libraries])
-AC_MSG_RESULT([$can_build_shared])
-
-AC_MSG_CHECKING([whether to build shared libraries])
-test "$can_build_shared" = "no" && enable_shared=no
-
-# On AIX, shared libraries and static libraries use the same namespace, and
-# are all built from PIC.
-case "$host_os" in
-aix3*)
- test "$enable_shared" = yes && enable_static=no
- if test -n "$RANLIB"; then
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
- postinstall_cmds='$RANLIB $lib'
- fi
- ;;
-
-aix4* | aix5*)
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
- test "$enable_shared" = yes && enable_static=no
- fi
- ;;
-esac
-AC_MSG_RESULT([$enable_shared])
-
-AC_MSG_CHECKING([whether to build static libraries])
-# Make sure either enable_shared or enable_static is yes.
-test "$enable_shared" = yes || enable_static=yes
-AC_MSG_RESULT([$enable_static])
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_POP
-CC="$lt_save_CC"
-])# AC_LIBTOOL_LANG_C_CONFIG
-
-
-# AC_LIBTOOL_LANG_CXX_CONFIG
-# --------------------------
-# Ensure that the configuration vars for the C compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
-AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
-[AC_LANG_PUSH(C++)
-AC_REQUIRE([AC_PROG_CXX])
-AC_REQUIRE([_LT_AC_PROG_CXXCPP])
-
-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
-_LT_AC_TAGVAR(allow_undefined_flag, $1)=
-_LT_AC_TAGVAR(always_export_symbols, $1)=no
-_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
-_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
-_LT_AC_TAGVAR(hardcode_direct, $1)=no
-_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
-_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
-_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
-_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
-_LT_AC_TAGVAR(hardcode_automatic, $1)=no
-_LT_AC_TAGVAR(module_cmds, $1)=
-_LT_AC_TAGVAR(module_expsym_cmds, $1)=
-_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
-_LT_AC_TAGVAR(no_undefined_flag, $1)=
-_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
-_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
-
-# Dependencies to place before and after the object being linked:
-_LT_AC_TAGVAR(predep_objects, $1)=
-_LT_AC_TAGVAR(postdep_objects, $1)=
-_LT_AC_TAGVAR(predeps, $1)=
-_LT_AC_TAGVAR(postdeps, $1)=
-_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
-
-# Source file extension for C++ test sources.
-ac_ext=cc
-
-# Object file extension for compiled C++ test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="int some_variable = 0;\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_AC_SYS_COMPILER
-
-# Allow CC to be a program name with arguments.
-lt_save_CC=$CC
-lt_save_LD=$LD
-lt_save_GCC=$GCC
-GCC=$GXX
-lt_save_with_gnu_ld=$with_gnu_ld
-lt_save_path_LD=$lt_cv_path_LD
-if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
- lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
-else
- unset lt_cv_prog_gnu_ld
-fi
-if test -n "${lt_cv_path_LDCXX+set}"; then
- lt_cv_path_LD=$lt_cv_path_LDCXX
-else
- unset lt_cv_path_LD
-fi
-test -z "${LDCXX+set}" || LD=$LDCXX
-CC=${CXX-"c++"}
-compiler=$CC
-_LT_AC_TAGVAR(compiler, $1)=$CC
-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
-
-# We don't want -fno-exception wen compiling C++ code, so set the
-# no_builtin_flag separately
-if test "$GXX" = yes; then
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
-else
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
-fi
-
-if test "$GXX" = yes; then
- # Set up default GNU C++ configuration
-
- AC_PROG_LD
-
- # Check if GNU C++ uses GNU ld as the underlying linker, since the
- # archiving commands below assume that GNU ld is being used.
- if test "$with_gnu_ld" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
-
- # If archive_cmds runs LD, not CC, wlarc should be empty
- # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
- # investigate it a little bit more. (MM)
- wlarc='${wl}'
-
- # ancient GNU ld didn't support --whole-archive et. al.
- if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
- grep 'no-whole-archive' > /dev/null; then
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- else
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
- fi
- else
- with_gnu_ld=no
- wlarc=
-
- # A generic and very simple default shared library creation
- # command for GNU C++ for the case where it uses the native
- # linker, instead of GNU ld. If possible, this setting should
- # overridden to take advantage of the native linker features on
- # the platform it is being used on.
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
- fi
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
-
-else
- GXX=no
- with_gnu_ld=no
- wlarc=
-fi
-
-# PORTME: fill in a description of your system's C++ link characteristics
-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
-_LT_AC_TAGVAR(ld_shlibs, $1)=yes
-case $host_os in
- aix3*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- aix4* | aix5*)
- if test "$host_cpu" = ia64; then
- # On IA64, the linker does run time linking by default, so we don't
- # have to do anything special.
- aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
- no_entry_flag=""
- else
- aix_use_runtimelinking=no
-
- # Test if we are trying to use run time linking or normal
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- # need to do runtime linking.
- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
- for ld_flag in $LDFLAGS; do
- case $ld_flag in
- *-brtl*)
- aix_use_runtimelinking=yes
- break
- ;;
- esac
- done
- esac
-
- exp_sym_flag='-bexport'
- no_entry_flag='-bnoentry'
- fi
-
- # When large executables or shared objects are built, AIX ld can
- # have problems creating the table of contents. If linking a library
- # or program results in "error TOC overflow" add -mminimal-toc to
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
-
- _LT_AC_TAGVAR(archive_cmds, $1)=''
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
-
- if test "$GXX" = yes; then
- case $host_os in aix4.[012]|aix4.[012].*)
- # We only want to do this on AIX 4.2 and lower, the check
- # below for broken collect2 doesn't work under 4.3+
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- else
- # We have old collect2
- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
- # It fails to find uninstalled libraries when the uninstalled
- # path is not listed in the libpath. Setting hardcode_minus_L
- # to unsupported forces relinking
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
- fi
- esac
- shared_flag='-shared'
- else
- # not using gcc
- if test "$host_cpu" = ia64; then
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
- fi
- fi
- fi
-
- # It seems that -bexpall does not export symbols beginning with
- # underscore (_), so it is better to generate a list of symbols to export.
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
- if test "$aix_use_runtimelinking" = yes; then
- # Warning - without using the other runtime loading flags (-brtl),
- # -berok will link without error, but may produce a broken library.
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
- # Determine the default libpath from the value encoded in an empty executable.
- _LT_AC_SYS_LIBPATH_AIX
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
-
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
- else
- if test "$host_cpu" = ia64; then
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
- else
- # Determine the default libpath from the value encoded in an empty executable.
- _LT_AC_SYS_LIBPATH_AIX
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
- # Warning - without using the other run time loading flags,
- # -berok will link without error, but may produce a broken library.
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
- # -bexpall does not export symbols beginning with underscore (_)
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
- # Exported symbols can be pulled into shared objects from archives
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
- # This is similar to how AIX traditionally builds it's shared libraries.
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
- fi
- fi
- ;;
- chorus*)
- case $cc_basename in
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
-
-
- cygwin* | mingw* | pw32*)
- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
- # as there is no search path for DLLs.
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- _LT_AC_TAGVAR(always_export_symbols, $1)=no
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
-
- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
- # If the export-symbols file already is a .def file (1st line
- # is EXPORTS), use it as is; otherwise, prepend...
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
- cp $export_symbols $output_objdir/$soname.def;
- else
- echo EXPORTS > $output_objdir/$soname.def;
- cat $export_symbols >> $output_objdir/$soname.def;
- fi~
- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- darwin* | rhapsody*)
- case "$host_os" in
- rhapsody* | darwin1.[[012]])
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
- ;;
- *) # Darwin 1.3 on
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- else
- case ${MACOSX_DEPLOYMENT_TARGET} in
- 10.[[012]])
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- ;;
- 10.*)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
- ;;
- esac
- fi
- ;;
- esac
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
-
- if test "$GXX" = yes ; then
- lt_int_apple_cc_single_mod=no
- output_verbose_link_cmd='echo'
- if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
- lt_int_apple_cc_single_mod=yes
- fi
- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- fi
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- else
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- fi
- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- else
- case "$cc_basename" in
- xlc*)
- output_verbose_link_cmd='echo'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- ;;
- *)
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- fi
- ;;
-
- dgux*)
- case $cc_basename in
- ec++)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- ghcx)
- # Green Hills C++ Compiler
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
- freebsd[12]*)
- # C++ shared libraries reported to be fairly broken before switch to ELF
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- freebsd-elf*)
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- ;;
- freebsd* | kfreebsd*-gnu)
- # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
- # conventions
- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
- ;;
- gnu*)
- ;;
- hpux9*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
- # but as the default
- # location of the library.
-
- case $cc_basename in
- CC)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- aCC)
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- else
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
- ;;
- hpux10*|hpux11*)
- if test $with_gnu_ld = no; then
- case "$host_cpu" in
- hppa*64*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- ;;
- ia64*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- ;;
- *)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- ;;
- esac
- fi
- case "$host_cpu" in
- hppa*64*)
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
- ia64*)
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
- # but as the default
- # location of the library.
- ;;
- *)
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
- # but as the default
- # location of the library.
- ;;
- esac
-
- case $cc_basename in
- CC)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- aCC)
- case "$host_cpu" in
- hppa*64*|ia64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- esac
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes; then
- if test $with_gnu_ld = no; then
- case "$host_cpu" in
- ia64*|hppa*64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- esac
- fi
- else
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
- ;;
- irix5* | irix6*)
- case $cc_basename in
- CC)
- # SGI C++
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
-
- # Archives containing C++ object files must be created using
- # "CC -ar", where "CC" is the IRIX C++ compiler. This is
- # necessary to make sure instantiated templates are included
- # in the archive.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
- ;;
- *)
- if test "$GXX" = yes; then
- if test "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
- fi
- fi
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
- ;;
- esac
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- ;;
- linux*)
- case $cc_basename in
- KCC)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
-
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
-
- # Archives containing C++ object files must be created using
- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
- ;;
- icpc)
- # Intel C++
- with_gnu_ld=yes
- # version 8.0 and above of icpc choke on multiply defined symbols
- # if we add $predep_objects and $postdep_objects, however 7.1 and
- # earlier do not add the objects themselves.
- case `$CC -V 2>&1` in
- *"Version 7."*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- ;;
- *) # Version 8.0 or newer
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- ;;
- esac
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
- ;;
- cxx)
- # Compaq C++
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
-
- runpath_var=LD_RUN_PATH
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- esac
- ;;
- lynxos*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- m88k*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- mvs*)
- case $cc_basename in
- cxx)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
- wlarc=
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- fi
- # Workaround some broken pre-1.5 toolchains
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
- ;;
- openbsd2*)
- # C++ shared libraries are fairly broken
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- openbsd*)
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- fi
- output_verbose_link_cmd='echo'
- ;;
- osf3*)
- case $cc_basename in
- KCC)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
-
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Archives containing C++ object files must be created using
- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
-
- ;;
- RCC)
- # Rational C++ 2.4.1
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- cxx)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
-
- else
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
- ;;
- osf4* | osf5*)
- case $cc_basename in
- KCC)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
-
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Archives containing C++ object files must be created using
- # the KAI C++ compiler.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
- ;;
- RCC)
- # Rational C++ 2.4.1
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- cxx)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
- echo "-hidden">> $lib.exp~
- $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
- $rm $lib.exp'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
-
- else
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
- ;;
- psos*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- sco*)
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- case $cc_basename in
- CC)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
- sunos4*)
- case $cc_basename in
- CC)
- # Sun C++ 4.x
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- lcc)
- # Lucid
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
- solaris*)
- case $cc_basename in
- CC)
- # Sun C++ 4.2, 5.x and Centerline C++
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- case $host_os in
- solaris2.[0-5] | solaris2.[0-5].*) ;;
- *)
- # The C++ compiler is used as linker so we must use $wl
- # flag to pass the commands to the underlying system
- # linker.
- # Supported since Solaris 2.6 (maybe 2.5.1?)
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
- ;;
- esac
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
-
- # Archives containing C++ object files must be created using
- # "CC -xar", where "CC" is the Sun C++ compiler. This is
- # necessary to make sure instantiated templates are included
- # in the archive.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
- ;;
- gcx)
- # Green Hills C++ Compiler
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
-
- # The C++ compiler must be used to create the archive.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
- ;;
- *)
- # GNU C++ compiler with Solaris linker
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
- if $CC --version | grep -v '^2\.7' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
- else
- # g++ 2.7 appears to require `-G' NOT `-shared' on this
- # platform.
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
- fi
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
- fi
- ;;
- esac
- ;;
- sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- ;;
- tandem*)
- case $cc_basename in
- NCC)
- # NonStop-UX NCC 3.20
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
- vxworks*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
-esac
-AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
-
-_LT_AC_TAGVAR(GCC, $1)="$GXX"
-_LT_AC_TAGVAR(LD, $1)="$LD"
-
-## CAVEAT EMPTOR:
-## There is no encapsulation within the following macros, do not change
-## the running order or otherwise move them around unless you know exactly
-## what you are doing...
-AC_LIBTOOL_POSTDEP_PREDEP($1)
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
-AC_LIBTOOL_PROG_CC_C_O($1)
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
-AC_LIBTOOL_SYS_LIB_STRIP
-AC_LIBTOOL_DLOPEN_SELF($1)
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_POP
-CC=$lt_save_CC
-LDCXX=$LD
-LD=$lt_save_LD
-GCC=$lt_save_GCC
-with_gnu_ldcxx=$with_gnu_ld
-with_gnu_ld=$lt_save_with_gnu_ld
-lt_cv_path_LDCXX=$lt_cv_path_LD
-lt_cv_path_LD=$lt_save_path_LD
-lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
-lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
-])# AC_LIBTOOL_LANG_CXX_CONFIG
-
-# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
-# ------------------------
-# Figure out "hidden" library dependencies from verbose
-# compiler output when linking a shared library.
-# Parse the compiler output and extract the necessary
-# objects, libraries and library flags.
-AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
-dnl we can't use the lt_simple_compile_test_code here,
-dnl because it contains code intended for an executable,
-dnl not a library. It's possible we should let each
-dnl tag define a new lt_????_link_test_code variable,
-dnl but it's only used here...
-ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
-int a;
-void foo (void) { a = 0; }
-EOF
-],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
-class Foo
-{
-public:
- Foo (void) { a = 0; }
-private:
- int a;
-};
-EOF
-],[$1],[F77],[cat > conftest.$ac_ext <<EOF
- subroutine foo
- implicit none
- integer*4 a
- a=0
- return
- end
-EOF
-],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
-public class foo {
- private int a;
- public void bar (void) {
- a = 0;
- }
-};
-EOF
-])
-dnl Parse the compiler output and extract the necessary
-dnl objects, libraries and library flags.
-if AC_TRY_EVAL(ac_compile); then
- # Parse the compiler output and extract the necessary
- # objects, libraries and library flags.
-
- # Sentinel used to keep track of whether or not we are before
- # the conftest object file.
- pre_test_object_deps_done=no
-
- # The `*' in the case matches for architectures that use `case' in
- # $output_verbose_cmd can trigger glob expansion during the loop
- # eval without this substitution.
- output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
-
- for p in `eval $output_verbose_link_cmd`; do
- case $p in
-
- -L* | -R* | -l*)
- # Some compilers place space between "-{L,R}" and the path.
- # Remove the space.
- if test $p = "-L" \
- || test $p = "-R"; then
- prev=$p
- continue
- else
- prev=
- fi
-
- if test "$pre_test_object_deps_done" = no; then
- case $p in
- -L* | -R*)
- # Internal compiler library paths should come after those
- # provided the user. The postdeps already come after the
- # user supplied libs so there is no need to process them.
- if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
- _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
- else
- _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
- fi
- ;;
- # The "-l" case would never come before the object being
- # linked, so don't bother handling this case.
- esac
- else
- if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
- _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
- else
- _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
- fi
- fi
- ;;
-
- *.$objext)
- # This assumes that the test object file only shows up
- # once in the compiler output.
- if test "$p" = "conftest.$objext"; then
- pre_test_object_deps_done=yes
- continue
- fi
-
- if test "$pre_test_object_deps_done" = no; then
- if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
- _LT_AC_TAGVAR(predep_objects, $1)="$p"
- else
- _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
- fi
- else
- if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
- _LT_AC_TAGVAR(postdep_objects, $1)="$p"
- else
- _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
- fi
- fi
- ;;
-
- *) ;; # Ignore the rest.
-
- esac
- done
-
- # Clean up.
- rm -f a.out a.exe
-else
- echo "libtool.m4: error: problem compiling $1 test program"
-fi
-
-$rm -f confest.$objext
-
-case " $_LT_AC_TAGVAR(postdeps, $1) " in
-*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
-esac
-])# AC_LIBTOOL_POSTDEP_PREDEP
-
-# AC_LIBTOOL_LANG_F77_CONFIG
-# ------------------------
-# Ensure that the configuration vars for the C compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
-AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
-[AC_REQUIRE([AC_PROG_F77])
-AC_LANG_PUSH(Fortran 77)
-
-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
-_LT_AC_TAGVAR(allow_undefined_flag, $1)=
-_LT_AC_TAGVAR(always_export_symbols, $1)=no
-_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
-_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
-_LT_AC_TAGVAR(hardcode_direct, $1)=no
-_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
-_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
-_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
-_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
-_LT_AC_TAGVAR(hardcode_automatic, $1)=no
-_LT_AC_TAGVAR(module_cmds, $1)=
-_LT_AC_TAGVAR(module_expsym_cmds, $1)=
-_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
-_LT_AC_TAGVAR(no_undefined_flag, $1)=
-_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
-_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
-
-# Source file extension for f77 test sources.
-ac_ext=f
-
-# Object file extension for compiled f77 test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code=" subroutine t\n return\n end\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code=" program t\n end\n"
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_AC_SYS_COMPILER
-
-# Allow CC to be a program name with arguments.
-lt_save_CC="$CC"
-CC=${F77-"f77"}
-compiler=$CC
-_LT_AC_TAGVAR(compiler, $1)=$CC
-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
-
-AC_MSG_CHECKING([if libtool supports shared libraries])
-AC_MSG_RESULT([$can_build_shared])
-
-AC_MSG_CHECKING([whether to build shared libraries])
-test "$can_build_shared" = "no" && enable_shared=no
-
-# On AIX, shared libraries and static libraries use the same namespace, and
-# are all built from PIC.
-case "$host_os" in
-aix3*)
- test "$enable_shared" = yes && enable_static=no
- if test -n "$RANLIB"; then
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
- postinstall_cmds='$RANLIB $lib'
- fi
- ;;
-aix4* | aix5*)
- test "$enable_shared" = yes && enable_static=no
- ;;
-esac
-AC_MSG_RESULT([$enable_shared])
-
-AC_MSG_CHECKING([whether to build static libraries])
-# Make sure either enable_shared or enable_static is yes.
-test "$enable_shared" = yes || enable_static=yes
-AC_MSG_RESULT([$enable_static])
-
-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
-
-_LT_AC_TAGVAR(GCC, $1)="$G77"
-_LT_AC_TAGVAR(LD, $1)="$LD"
-
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
-AC_LIBTOOL_PROG_CC_C_O($1)
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
-AC_LIBTOOL_SYS_LIB_STRIP
-
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_POP
-CC="$lt_save_CC"
-])# AC_LIBTOOL_LANG_F77_CONFIG
-
-
-# AC_LIBTOOL_LANG_GCJ_CONFIG
-# --------------------------
-# Ensure that the configuration vars for the C compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
-AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
-[AC_LANG_SAVE
-
-# Source file extension for Java test sources.
-ac_ext=java
-
-# Object file extension for compiled Java test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="class foo {}\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_AC_SYS_COMPILER
-
-# Allow CC to be a program name with arguments.
-lt_save_CC="$CC"
-CC=${GCJ-"gcj"}
-compiler=$CC
-_LT_AC_TAGVAR(compiler, $1)=$CC
-
-# GCJ did not exist at the time GCC didn't implicitly link libc in.
-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
-
-## CAVEAT EMPTOR:
-## There is no encapsulation within the following macros, do not change
-## the running order or otherwise move them around unless you know exactly
-## what you are doing...
-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
-AC_LIBTOOL_PROG_CC_C_O($1)
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
-AC_LIBTOOL_SYS_LIB_STRIP
-AC_LIBTOOL_DLOPEN_SELF($1)
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_RESTORE
-CC="$lt_save_CC"
-])# AC_LIBTOOL_LANG_GCJ_CONFIG
-
-
-# AC_LIBTOOL_LANG_RC_CONFIG
-# --------------------------
-# Ensure that the configuration vars for the Windows resource compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
-AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
-[AC_LANG_SAVE
-
-# Source file extension for RC test sources.
-ac_ext=rc
-
-# Object file extension for compiled RC test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
-
-# Code to be used in simple link tests
-lt_simple_link_test_code="$lt_simple_compile_test_code"
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_AC_SYS_COMPILER
-
-# Allow CC to be a program name with arguments.
-lt_save_CC="$CC"
-CC=${RC-"windres"}
-compiler=$CC
-_LT_AC_TAGVAR(compiler, $1)=$CC
-_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_RESTORE
-CC="$lt_save_CC"
-])# AC_LIBTOOL_LANG_RC_CONFIG
-
-
-# AC_LIBTOOL_CONFIG([TAGNAME])
-# ----------------------------
-# If TAGNAME is not passed, then create an initial libtool script
-# with a default configuration from the untagged config vars. Otherwise
-# add code to config.status for appending the configuration named by
-# TAGNAME from the matching tagged config vars.
-AC_DEFUN([AC_LIBTOOL_CONFIG],
-[# The else clause should only fire when bootstrapping the
-# libtool distribution, otherwise you forgot to ship ltmain.sh
-# with your package, and you will get complaints that there are
-# no rules to generate ltmain.sh.
-if test -f "$ltmain"; then
- # See if we are running on zsh, and set the options which allow our commands through
- # without removal of \ escapes.
- if test -n "${ZSH_VERSION+set}" ; then
- setopt NO_GLOB_SUBST
- fi
- # Now quote all the things that may contain metacharacters while being
- # careful not to overquote the AC_SUBSTed values. We take copies of the
- # variables and quote the copies for generation of the libtool script.
- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
- SED SHELL STRIP \
- libname_spec library_names_spec soname_spec extract_expsyms_cmds \
- old_striplib striplib file_magic_cmd finish_cmds finish_eval \
- deplibs_check_method reload_flag reload_cmds need_locks \
- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
- lt_cv_sys_global_symbol_to_c_name_address \
- sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
- old_postinstall_cmds old_postuninstall_cmds \
- _LT_AC_TAGVAR(compiler, $1) \
- _LT_AC_TAGVAR(CC, $1) \
- _LT_AC_TAGVAR(LD, $1) \
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
- _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
- _LT_AC_TAGVAR(old_archive_cmds, $1) \
- _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
- _LT_AC_TAGVAR(predep_objects, $1) \
- _LT_AC_TAGVAR(postdep_objects, $1) \
- _LT_AC_TAGVAR(predeps, $1) \
- _LT_AC_TAGVAR(postdeps, $1) \
- _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
- _LT_AC_TAGVAR(archive_cmds, $1) \
- _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
- _LT_AC_TAGVAR(postinstall_cmds, $1) \
- _LT_AC_TAGVAR(postuninstall_cmds, $1) \
- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
- _LT_AC_TAGVAR(allow_undefined_flag, $1) \
- _LT_AC_TAGVAR(no_undefined_flag, $1) \
- _LT_AC_TAGVAR(export_symbols_cmds, $1) \
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
- _LT_AC_TAGVAR(hardcode_automatic, $1) \
- _LT_AC_TAGVAR(module_cmds, $1) \
- _LT_AC_TAGVAR(module_expsym_cmds, $1) \
- _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
- _LT_AC_TAGVAR(exclude_expsyms, $1) \
- _LT_AC_TAGVAR(include_expsyms, $1); do
-
- case $var in
- _LT_AC_TAGVAR(old_archive_cmds, $1) | \
- _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
- _LT_AC_TAGVAR(archive_cmds, $1) | \
- _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
- _LT_AC_TAGVAR(module_cmds, $1) | \
- _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
- _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
- extract_expsyms_cmds | reload_cmds | finish_cmds | \
- postinstall_cmds | postuninstall_cmds | \
- old_postinstall_cmds | old_postuninstall_cmds | \
- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- # Double-quote double-evaled strings.
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
- ;;
- *)
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
- ;;
- esac
- done
-
- case $lt_echo in
- *'\[$]0 --fallback-echo"')
- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
- ;;
- esac
-
-ifelse([$1], [],
- [cfgfile="${ofile}T"
- trap "$rm \"$cfgfile\"; exit 1" 1 2 15
- $rm -f "$cfgfile"
- AC_MSG_NOTICE([creating $ofile])],
- [cfgfile="$ofile"])
-
- cat <<__EOF__ >> "$cfgfile"
-ifelse([$1], [],
-[#! $SHELL
-
-# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
-#
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
-# Free Software Foundation, Inc.
-#
-# This file is part of GNU Libtool:
-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# A sed program that does not truncate output.
-SED=$lt_SED
-
-# Sed that helps us avoid accidentally triggering echo(1) options like -n.
-Xsed="$SED -e s/^X//"
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-# The names of the tagged configurations supported by this script.
-available_tags=
-
-# ### BEGIN LIBTOOL CONFIG],
-[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
-
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-
-# Shell to use when invoking shell scripts.
-SHELL=$lt_SHELL
-
-# Whether or not to build shared libraries.
-build_libtool_libs=$enable_shared
-
-# Whether or not to build static libraries.
-build_old_libs=$enable_static
-
-# Whether or not to add -lc for building shared libraries.
-build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
-
-# Whether or not to disallow shared libs when runtime libs are static
-allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
-
-# Whether or not to optimize for fast installation.
-fast_install=$enable_fast_install
-
-# The host system.
-host_alias=$host_alias
-host=$host
-
-# An echo program that does not interpret backslashes.
-echo=$lt_echo
-
-# The archiver.
-AR=$lt_AR
-AR_FLAGS=$lt_AR_FLAGS
-
-# A C compiler.
-LTCC=$lt_LTCC
-
-# A language-specific compiler.
-CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
-
-# Is the compiler the GNU C compiler?
-with_gcc=$_LT_AC_TAGVAR(GCC, $1)
-
-# An ERE matcher.
-EGREP=$lt_EGREP
-
-# The linker used to build libraries.
-LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
-
-# Whether we need hard or soft links.
-LN_S=$lt_LN_S
-
-# A BSD-compatible nm program.
-NM=$lt_NM
-
-# A symbol stripping program
-STRIP=$lt_STRIP
-
-# Used to examine libraries when file_magic_cmd begins "file"
-MAGIC_CMD=$MAGIC_CMD
-
-# Used on cygwin: DLL creation program.
-DLLTOOL="$DLLTOOL"
-
-# Used on cygwin: object dumper.
-OBJDUMP="$OBJDUMP"
-
-# Used on cygwin: assembler.
-AS="$AS"
-
-# The name of the directory that contains temporary libtool files.
-objdir=$objdir
-
-# How to create reloadable object files.
-reload_flag=$lt_reload_flag
-reload_cmds=$lt_reload_cmds
-
-# How to pass a linker flag through the compiler.
-wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
-
-# Object file suffix (normally "o").
-objext="$ac_objext"
-
-# Old archive suffix (normally "a").
-libext="$libext"
-
-# Shared library suffix (normally ".so").
-shrext_cmds='$shrext_cmds'
-
-# Executable file suffix (normally "").
-exeext="$exeext"
-
-# Additional compiler flags for building library objects.
-pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
-pic_mode=$pic_mode
-
-# What is the maximum length of a command?
-max_cmd_len=$lt_cv_sys_max_cmd_len
-
-# Does compiler simultaneously support -c and -o options?
-compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
-
-# Must we lock files when doing compilation ?
-need_locks=$lt_need_locks
-
-# Do we need the lib prefix for modules?
-need_lib_prefix=$need_lib_prefix
-
-# Do we need a version for libraries?
-need_version=$need_version
-
-# Whether dlopen is supported.
-dlopen_support=$enable_dlopen
-
-# Whether dlopen of programs is supported.
-dlopen_self=$enable_dlopen_self
-
-# Whether dlopen of statically linked programs is supported.
-dlopen_self_static=$enable_dlopen_self_static
-
-# Compiler flag to prevent dynamic linking.
-link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
-
-# Compiler flag to turn off builtin functions.
-no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
-
-# Compiler flag to allow reflexive dlopens.
-export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
-
-# Compiler flag to generate shared objects directly from archives.
-whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
-
-# Compiler flag to generate thread-safe objects.
-thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
-
-# Library versioning type.
-version_type=$version_type
-
-# Format of library name prefix.
-libname_spec=$lt_libname_spec
-
-# List of archive names. First name is the real one, the rest are links.
-# The last name is the one that the linker finds with -lNAME.
-library_names_spec=$lt_library_names_spec
-
-# The coded name of the library, if different from the real name.
-soname_spec=$lt_soname_spec
-
-# Commands used to build and install an old-style archive.
-RANLIB=$lt_RANLIB
-old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
-old_postinstall_cmds=$lt_old_postinstall_cmds
-old_postuninstall_cmds=$lt_old_postuninstall_cmds
-
-# Create an old-style archive from a shared archive.
-old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
-
-# Create a temporary old-style archive to link instead of a shared archive.
-old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
-
-# Commands used to build and install a shared archive.
-archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
-archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
-postinstall_cmds=$lt_postinstall_cmds
-postuninstall_cmds=$lt_postuninstall_cmds
-
-# Commands used to build a loadable module (assumed same as above if empty)
-module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
-module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
-
-# Commands to strip libraries.
-old_striplib=$lt_old_striplib
-striplib=$lt_striplib
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
-
-# The library search path used internally by the compiler when linking
-# a shared library.
-compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
-
-# Method to check whether dependent libraries are shared objects.
-deplibs_check_method=$lt_deplibs_check_method
-
-# Command to use when deplibs_check_method == file_magic.
-file_magic_cmd=$lt_file_magic_cmd
-
-# Flag that allows shared libraries with undefined symbols to be built.
-allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
-
-# Flag that forces no undefined symbols.
-no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
-
-# Commands used to finish a libtool library installation in a directory.
-finish_cmds=$lt_finish_cmds
-
-# Same as above, but a single script fragment to be evaled but not shown.
-finish_eval=$lt_finish_eval
-
-# Take the output of nm and produce a listing of raw symbols and C names.
-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
-
-# Transform the output of nm in a proper C declaration
-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
-
-# Transform the output of nm in a C name address pair
-global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
-
-# This is the shared library runtime path variable.
-runpath_var=$runpath_var
-
-# This is the shared library path variable.
-shlibpath_var=$shlibpath_var
-
-# Is shlibpath searched before the hard-coded library search path?
-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
-
-# How to hardcode a shared library path into an executable.
-hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
-
-# Whether we should hardcode library paths into libraries.
-hardcode_into_libs=$hardcode_into_libs
-
-# Flag to hardcode \$libdir into a binary during linking.
-# This must work even if \$libdir does not exist.
-hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
-
-# If ld is used when linking, flag to hardcode \$libdir into
-# a binary during linking. This must work even if \$libdir does
-# not exist.
-hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
-
-# Whether we need a single -rpath flag with a separated argument.
-hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
-
-# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
-# resulting binary.
-hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
-
-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
-# resulting binary.
-hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
-
-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
-# the resulting binary.
-hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
-
-# Set to yes if building a shared library automatically hardcodes DIR into the library
-# and all subsequent libraries and executables linked against it.
-hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
-
-# Variables whose values should be saved in libtool wrapper scripts and
-# restored at relink time.
-variables_saved_for_relink="$variables_saved_for_relink"
-
-# Whether libtool must link a program against all its dependency libraries.
-link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
-
-# Compile-time system search path for libraries
-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
-
-# Run-time system search path for libraries
-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
-
-# Fix the shell variable \$srcfile for the compiler.
-fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
-
-# Set to yes if exported symbols are required.
-always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
-
-# The commands to list exported symbols.
-export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
-
-# The commands to extract the exported symbol list from a shared archive.
-extract_expsyms_cmds=$lt_extract_expsyms_cmds
-
-# Symbols that should not be listed in the preloaded symbols.
-exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
-
-# Symbols that must always be exported.
-include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
-
-ifelse([$1],[],
-[# ### END LIBTOOL CONFIG],
-[# ### END LIBTOOL TAG CONFIG: $tagname])
-
-__EOF__
-
-ifelse([$1],[], [
- case $host_os in
- aix3*)
- cat <<\EOF >> "$cfgfile"
-
-# AIX sometimes has problems with the GCC collect2 program. For some
-# reason, if we set the COLLECT_NAMES environment variable, the problems
-# vanish in a puff of smoke.
-if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
-fi
-EOF
- ;;
- esac
-
- # We use sed instead of cat because bash on DJGPP gets confused if
- # if finds mixed CR/LF and LF-only lines. Since sed operates in
- # text mode, it properly converts lines to CR/LF. This bash problem
- # is reportedly fixed, but why not run on old versions too?
- sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
-
- mv -f "$cfgfile" "$ofile" || \
- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
- chmod +x "$ofile"
-])
-else
- # If there is no Makefile yet, we rely on a make rule to execute
- # `config.status --recheck' to rerun these tests and create the
- # libtool script then.
- ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
- if test -f "$ltmain_in"; then
- test -f Makefile && make "$ltmain"
- fi
-fi
-])# AC_LIBTOOL_CONFIG
-
-
-# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
-# -------------------------------------------
-AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
-[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
-
-_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
-
-if test "$GCC" = yes; then
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
-
- AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
- lt_cv_prog_compiler_rtti_exceptions,
- [-fno-rtti -fno-exceptions], [],
- [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
-fi
-])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
-
-
-# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
-# ---------------------------------
-AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
-[AC_REQUIRE([AC_CANONICAL_HOST])
-AC_REQUIRE([AC_PROG_NM])
-AC_REQUIRE([AC_OBJEXT])
-# Check for command to grab the raw symbol name followed by C symbol from nm.
-AC_MSG_CHECKING([command to parse $NM output from $compiler object])
-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
-[
-# These are sane defaults that work on at least a few old systems.
-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
-
-# Character class describing NM global symbol codes.
-symcode='[[BCDEGRST]]'
-
-# Regexp to match symbols that can be accessed directly from C.
-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
-
-# Transform the above into a raw symbol and a C symbol.
-symxfrm='\1 \2\3 \3'
-
-# Transform an extracted symbol line into a proper C declaration
-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
-
-# Transform an extracted symbol line into symbol name and symbol address
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
-
-# Define system-specific variables.
-case $host_os in
-aix*)
- symcode='[[BCDT]]'
- ;;
-cygwin* | mingw* | pw32*)
- symcode='[[ABCDGISTW]]'
- ;;
-hpux*) # Its linker distinguishes data from code symbols
- if test "$host_cpu" = ia64; then
- symcode='[[ABCDEGRST]]'
- fi
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- ;;
-linux*)
- if test "$host_cpu" = ia64; then
- symcode='[[ABCDGIRSTW]]'
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- fi
- ;;
-irix* | nonstopux*)
- symcode='[[BCDEGRST]]'
- ;;
-osf*)
- symcode='[[BCDEGQRST]]'
- ;;
-solaris* | sysv5*)
- symcode='[[BDRT]]'
- ;;
-sysv4)
- symcode='[[DFNSTU]]'
- ;;
-esac
-
-# Handle CRLF in mingw tool chain
-opt_cr=
-case $build_os in
-mingw*)
- opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
- ;;
-esac
-
-# If we're using GNU nm, then use its standard symbol codes.
-case `$NM -V 2>&1` in
-*GNU* | *'with BFD'*)
- symcode='[[ABCDGIRSTW]]' ;;
-esac
-
-# Try without a prefix undercore, then with it.
-for ac_symprfx in "" "_"; do
-
- # Write the raw and C identifiers.
- lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
-
- # Check to see that the pipe works correctly.
- pipe_works=no
-
- rm -f conftest*
- cat > conftest.$ac_ext <<EOF
-#ifdef __cplusplus
-extern "C" {
-#endif
-char nm_test_var;
-void nm_test_func(){}
-#ifdef __cplusplus
-}
-#endif
-int main(){nm_test_var='a';nm_test_func();return(0);}
-EOF
-
- if AC_TRY_EVAL(ac_compile); then
- # Now try to grab the symbols.
- nlist=conftest.nm
- if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
- # Try sorting and uniquifying the output.
- if sort "$nlist" | uniq > "$nlist"T; then
- mv -f "$nlist"T "$nlist"
- else
- rm -f "$nlist"T
- fi
-
- # Make sure that we snagged all the symbols we need.
- if grep ' nm_test_var$' "$nlist" >/dev/null; then
- if grep ' nm_test_func$' "$nlist" >/dev/null; then
- cat <<EOF > conftest.$ac_ext
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-EOF
- # Now generate the symbol file.
- eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
-
- cat <<EOF >> conftest.$ac_ext
-#if defined (__STDC__) && __STDC__
-# define lt_ptr_t void *
-#else
-# define lt_ptr_t char *
-# define const
-#endif
-
-/* The mapping between symbol names and symbols. */
-const struct {
- const char *name;
- lt_ptr_t address;
-}
-lt_preloaded_symbols[[]] =
-{
-EOF
- $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
- cat <<\EOF >> conftest.$ac_ext
- {0, (lt_ptr_t) 0}
-};
-
-#ifdef __cplusplus
-}
-#endif
-EOF
- # Now try linking the two files.
- mv conftest.$ac_objext conftstm.$ac_objext
- lt_save_LIBS="$LIBS"
- lt_save_CFLAGS="$CFLAGS"
- LIBS="conftstm.$ac_objext"
- CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
- pipe_works=yes
- fi
- LIBS="$lt_save_LIBS"
- CFLAGS="$lt_save_CFLAGS"
- else
- echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
- fi
- else
- echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
- fi
- else
- echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
- fi
- else
- echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest* conftst*
-
- # Do not use the global_symbol_pipe unless it works.
- if test "$pipe_works" = yes; then
- break
- else
- lt_cv_sys_global_symbol_pipe=
- fi
-done
-])
-if test -z "$lt_cv_sys_global_symbol_pipe"; then
- lt_cv_sys_global_symbol_to_cdecl=
-fi
-if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
- AC_MSG_RESULT(failed)
-else
- AC_MSG_RESULT(ok)
-fi
-]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
-
-
-# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
-# ---------------------------------------
-AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
-[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
-_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
-_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
-
-AC_MSG_CHECKING([for $compiler option to produce PIC])
- ifelse([$1],[CXX],[
- # C++ specific cases for pic, static, wl, etc.
- if test "$GXX" = yes; then
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
-
- case $host_os in
- aix*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- fi
- ;;
- amigaos*)
- # FIXME: we need at least 68020 code to build shared libraries, but
- # adding the `-m68020' flag to GCC prevents building anything better,
- # like `-m68040'.
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
- ;;
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
- # PIC is the default for these OSes.
- ;;
- mingw* | os2* | pw32*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
- ;;
- darwin* | rhapsody*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
- ;;
- *djgpp*)
- # DJGPP does not support shared libraries at all
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- ;;
- sysv4*MP*)
- if test -d /usr/nec; then
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
- fi
- ;;
- hpux*)
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case "$host_cpu" in
- hppa*64*|ia64*)
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- esac
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- esac
- else
- case $host_os in
- aix4* | aix5*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- else
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
- fi
- ;;
- chorus*)
- case $cc_basename in
- cxch68)
- # Green Hills C++ Compiler
- # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
- ;;
- esac
- ;;
- darwin*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- case "$cc_basename" in
- xlc*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- ;;
- esac
- ;;
- dgux*)
- case $cc_basename in
- ec++)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- ;;
- ghcx)
- # Green Hills C++ Compiler
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- ;;
- *)
- ;;
- esac
- ;;
- freebsd* | kfreebsd*-gnu)
- # FreeBSD uses GNU C++
- ;;
- hpux9* | hpux10* | hpux11*)
- case $cc_basename in
- CC)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
- if test "$host_cpu" != ia64; then
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
- fi
- ;;
- aCC)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
- case "$host_cpu" in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
- ;;
- esac
- ;;
- *)
- ;;
- esac
- ;;
- irix5* | irix6* | nonstopux*)
- case $cc_basename in
- CC)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- # CC pic flag -KPIC is the default.
- ;;
- *)
- ;;
- esac
- ;;
- linux*)
- case $cc_basename in
- KCC)
- # KAI C++ Compiler
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- icpc)
- # Intel C++
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
- ;;
- cxx)
- # Compaq C++
- # Make sure the PIC flag is empty. It appears that all Alpha
- # Linux and Compaq Tru64 Unix objects are PIC.
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
- *)
- ;;
- esac
- ;;
- lynxos*)
- ;;
- m88k*)
- ;;
- mvs*)
- case $cc_basename in
- cxx)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
- ;;
- *)
- ;;
- esac
- ;;
- netbsd*)
- ;;
- osf3* | osf4* | osf5*)
- case $cc_basename in
- KCC)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
- ;;
- RCC)
- # Rational C++ 2.4.1
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- ;;
- cxx)
- # Digital/Compaq C++
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # Make sure the PIC flag is empty. It appears that all Alpha
- # Linux and Compaq Tru64 Unix objects are PIC.
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
- *)
- ;;
- esac
- ;;
- psos*)
- ;;
- sco*)
- case $cc_basename in
- CC)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- *)
- ;;
- esac
- ;;
- solaris*)
- case $cc_basename in
- CC)
- # Sun C++ 4.2, 5.x and Centerline C++
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
- ;;
- gcx)
- # Green Hills C++ Compiler
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
- ;;
- *)
- ;;
- esac
- ;;
- sunos4*)
- case $cc_basename in
- CC)
- # Sun C++ 4.x
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
- lcc)
- # Lucid
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- ;;
- *)
- ;;
- esac
- ;;
- tandem*)
- case $cc_basename in
- NCC)
- # NonStop-UX NCC 3.20
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- ;;
- *)
- ;;
- esac
- ;;
- unixware*)
- ;;
- vxworks*)
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
- ;;
- esac
- fi
-],
-[
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
-
- case $host_os in
- aix*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- fi
- ;;
-
- amigaos*)
- # FIXME: we need at least 68020 code to build shared libraries, but
- # adding the `-m68020' flag to GCC prevents building anything better,
- # like `-m68040'.
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
- ;;
-
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
- # PIC is the default for these OSes.
- ;;
-
- mingw* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
- ;;
-
- darwin* | rhapsody*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
- ;;
-
- msdosdjgpp*)
- # Just because we use GCC doesn't mean we suddenly get shared libraries
- # on systems that don't support them.
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
- enable_shared=no
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec; then
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
- fi
- ;;
-
- hpux*)
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case "$host_cpu" in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- esac
- ;;
-
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- esac
- else
- # PORTME Check for flag to pass linker flags through the system compiler.
- case $host_os in
- aix*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- else
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
- fi
- ;;
- darwin*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- case "$cc_basename" in
- xlc*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- ;;
- esac
- ;;
-
- mingw* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
- ;;
-
- hpux9* | hpux10* | hpux11*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case "$host_cpu" in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
- ;;
- esac
- # Is there a better lt_prog_compiler_static that works with the bundled CC?
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
- ;;
-
- irix5* | irix6* | nonstopux*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # PIC (with -KPIC) is the default.
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
-
- newsos6)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- linux*)
- case $CC in
- icc* | ecc*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
- ;;
- ccc*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # All Alpha code is PIC.
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
- esac
- ;;
-
- osf3* | osf4* | osf5*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # All OSF/1 code is PIC.
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
-
- sco3.2v5*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
- ;;
-
- solaris*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- sunos4*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec ;then
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- fi
- ;;
-
- uts4*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
- ;;
- esac
- fi
-])
-AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
-
-#
-# Check to make sure the PIC flag actually works.
-#
-if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
- AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
- _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
- [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
- [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
- "" | " "*) ;;
- *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
- esac],
- [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
-fi
-case "$host_os" in
- # For platforms which do not support PIC, -DPIC is meaningless:
- *djgpp*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
- ;;
-esac
-])
-
-
-# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
-# ------------------------------------
-# See if the linker supports building shared libraries.
-AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
-[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
-ifelse([$1],[CXX],[
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- case $host_os in
- aix4* | aix5*)
- # If we're using GNU nm, then we don't want the "-C" option.
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
- else
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
- fi
- ;;
- pw32*)
- _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
- ;;
- cygwin* | mingw*)
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
- ;;
- *)
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- ;;
- esac
-],[
- runpath_var=
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
- _LT_AC_TAGVAR(archive_cmds, $1)=
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
- _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
- _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
- _LT_AC_TAGVAR(hardcode_automatic, $1)=no
- _LT_AC_TAGVAR(module_cmds, $1)=
- _LT_AC_TAGVAR(module_expsym_cmds, $1)=
- _LT_AC_TAGVAR(always_export_symbols, $1)=no
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- # include_expsyms should be a list of space-separated symbols to be *always*
- # included in the symbol list
- _LT_AC_TAGVAR(include_expsyms, $1)=
- # exclude_expsyms can be an extended regexp of symbols to exclude
- # it will be wrapped by ` (' and `)$', so one must not match beginning or
- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
- # as well as any symbol that contains `d'.
- _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
- # platforms (ab)use it in PIC code, but their linkers get confused if
- # the symbol is explicitly referenced. Since portable code cannot
- # rely on this symbol name, it's probably fine to never include it in
- # preloaded symbol tables.
- extract_expsyms_cmds=
-
- case $host_os in
- cygwin* | mingw* | pw32*)
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- if test "$GCC" != yes; then
- with_gnu_ld=no
- fi
- ;;
- openbsd*)
- with_gnu_ld=no
- ;;
- esac
-
- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
- if test "$with_gnu_ld" = yes; then
- # If archive_cmds runs LD, not CC, wlarc should be empty
- wlarc='${wl}'
-
- # See if GNU ld supports shared libraries.
- case $host_os in
- aix3* | aix4* | aix5*)
- # On AIX/PPC, the GNU linker is very broken
- if test "$host_cpu" != ia64; then
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- cat <<EOF 1>&2
-
-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
-*** to be unable to reliably create shared libraries on AIX.
-*** Therefore, libtool is disabling shared libraries support. If you
-*** really care for shared libraries, you may want to modify your PATH
-*** so that a non-GNU linker is found, and then restart.
-
-EOF
- fi
- ;;
-
- amigaos*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
-
- # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
- # that the semantics of dynamic libraries on AmigaOS, at least up
- # to version 4, is to share data among multiple programs linked
- # with the same dynamic library. Since this doesn't match the
- # behavior of shared libraries on other platforms, we can't use
- # them.
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
-
- beos*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
- # support --undefined. This deserves some investigation. FIXME
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
-
- cygwin* | mingw* | pw32*)
- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
- # as there is no search path for DLLs.
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- _LT_AC_TAGVAR(always_export_symbols, $1)=no
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
-
- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
- # If the export-symbols file already is a .def file (1st line
- # is EXPORTS), use it as is; otherwise, prepend...
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
- cp $export_symbols $output_objdir/$soname.def;
- else
- echo EXPORTS > $output_objdir/$soname.def;
- cat $export_symbols >> $output_objdir/$soname.def;
- fi~
- $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
- else
- ld_shlibs=no
- fi
- ;;
-
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
- wlarc=
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- fi
- ;;
-
- solaris* | sysv5*)
- if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- cat <<EOF 1>&2
-
-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
-*** create shared libraries on Solaris systems. Therefore, libtool
-*** is disabling shared libraries support. We urge you to upgrade GNU
-*** binutils to release 2.9.1 or newer. Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-EOF
- elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
-
- sunos4*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- wlarc=
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- linux*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
- supports_anon_versioning=no
- case `$LD -v 2>/dev/null` in
- *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
- *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
- *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
- *\ 2.11.*) ;; # other 2.11 versions
- *) supports_anon_versioning=yes ;;
- esac
- if test $supports_anon_versioning = yes; then
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
-cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
-$echo "local: *; };" >> $output_objdir/$libname.ver~
- $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
- else
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
- fi
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
-
- *)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
-
- if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
- runpath_var=LD_RUN_PATH
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
- # ancient GNU ld didn't support --whole-archive et. al.
- if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- else
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
- fi
- fi
- else
- # PORTME fill in a description of your system's linker (not GNU ld)
- case $host_os in
- aix3*)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
- # Note: this linker hardcodes the directories in LIBPATH if there
- # are no directories specified by -L.
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- if test "$GCC" = yes && test -z "$link_static_flag"; then
- # Neither direct hardcoding nor static linking is supported with a
- # broken collect2.
- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
- fi
- ;;
-
- aix4* | aix5*)
- if test "$host_cpu" = ia64; then
- # On IA64, the linker does run time linking by default, so we don't
- # have to do anything special.
- aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
- no_entry_flag=""
- else
- # If we're using GNU nm, then we don't want the "-C" option.
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
- else
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
- fi
- aix_use_runtimelinking=no
-
- # Test if we are trying to use run time linking or normal
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- # need to do runtime linking.
- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
- for ld_flag in $LDFLAGS; do
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
- aix_use_runtimelinking=yes
- break
- fi
- done
- esac
-
- exp_sym_flag='-bexport'
- no_entry_flag='-bnoentry'
- fi
-
- # When large executables or shared objects are built, AIX ld can
- # have problems creating the table of contents. If linking a library
- # or program results in "error TOC overflow" add -mminimal-toc to
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
-
- _LT_AC_TAGVAR(archive_cmds, $1)=''
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
-
- if test "$GCC" = yes; then
- case $host_os in aix4.[012]|aix4.[012].*)
- # We only want to do this on AIX 4.2 and lower, the check
- # below for broken collect2 doesn't work under 4.3+
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- else
- # We have old collect2
- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
- # It fails to find uninstalled libraries when the uninstalled
- # path is not listed in the libpath. Setting hardcode_minus_L
- # to unsupported forces relinking
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
- fi
- esac
- shared_flag='-shared'
- else
- # not using gcc
- if test "$host_cpu" = ia64; then
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
- fi
- fi
- fi
-
- # It seems that -bexpall does not export symbols beginning with
- # underscore (_), so it is better to generate a list of symbols to export.
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
- if test "$aix_use_runtimelinking" = yes; then
- # Warning - without using the other runtime loading flags (-brtl),
- # -berok will link without error, but may produce a broken library.
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
- # Determine the default libpath from the value encoded in an empty executable.
- _LT_AC_SYS_LIBPATH_AIX
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
- else
- if test "$host_cpu" = ia64; then
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
- else
- # Determine the default libpath from the value encoded in an empty executable.
- _LT_AC_SYS_LIBPATH_AIX
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
- # Warning - without using the other run time loading flags,
- # -berok will link without error, but may produce a broken library.
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
- # -bexpall does not export symbols beginning with underscore (_)
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
- # Exported symbols can be pulled into shared objects from archives
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
- # This is similar to how AIX traditionally builds it's shared libraries.
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
- fi
- fi
- ;;
-
- amigaos*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- # see comment about different semantics on the GNU ld section
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
-
- bsdi[[45]]*)
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
- ;;
-
- cygwin* | mingw* | pw32*)
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- # hardcode_libdir_flag_spec is actually meaningless, as there is
- # no search path for DLLs.
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- # Tell ltmain to make .lib files, not .a files.
- libext=lib
- # Tell ltmain to make .dll files, not .so files.
- shrext_cmds=".dll"
- # FIXME: Setting linknames here is a bad hack.
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
- # The linker will automatically build a .lib file if we build a DLL.
- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
- # FIXME: Should let the user specify the lib program.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
- fix_srcfile_path='`cygpath -w "$srcfile"`'
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
- ;;
-
- darwin* | rhapsody*)
- case "$host_os" in
- rhapsody* | darwin1.[[012]])
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
- ;;
- *) # Darwin 1.3 on
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- else
- case ${MACOSX_DEPLOYMENT_TARGET} in
- 10.[[012]])
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- ;;
- 10.*)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
- ;;
- esac
- fi
- ;;
- esac
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
- if test "$GCC" = yes ; then
- output_verbose_link_cmd='echo'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- else
- case "$cc_basename" in
- xlc*)
- output_verbose_link_cmd='echo'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- ;;
- *)
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- fi
- ;;
-
- dgux*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- freebsd1*)
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
-
- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
- # support. Future versions do this automatically, but an explicit c++rt0.o
- # does not break anything, and helps significantly (at the cost of a little
- # extra space).
- freebsd2.2*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- # Unfortunately, older versions of FreeBSD 2 do not have this feature.
- freebsd2*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
- freebsd* | kfreebsd*-gnu)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- hpux9*)
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- ;;
-
- hpux10* | hpux11*)
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
- case "$host_cpu" in
- hppa*64*|ia64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- else
- case "$host_cpu" in
- hppa*64*|ia64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
- ;;
- esac
- fi
- if test "$with_gnu_ld" = no; then
- case "$host_cpu" in
- hppa*64*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
- ia64*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- ;;
- *)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- ;;
- esac
- fi
- ;;
-
- irix5* | irix6* | nonstopux*)
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
- ;;
-
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- newsos6)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- openbsd*)
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- else
- case $host_os in
- openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- ;;
- esac
- fi
- ;;
-
- os2*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
- ;;
-
- osf3*)
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- ;;
-
- osf4* | osf5*) # as osf3* with the addition of -msym flag
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- else
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
- $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
-
- # Both c and cxx compiler support -rpath directly
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- ;;
-
- sco3.2v5*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
- runpath_var=LD_RUN_PATH
- hardcode_runpath_var=yes
- ;;
-
- solaris*)
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- case $host_os in
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
- *) # Supported since Solaris 2.6 (maybe 2.5.1?)
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
- esac
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
- ;;
-
- sunos4*)
- if test "x$host_vendor" = xsequent; then
- # Use $CC to link under sequent, because it throws in some extra .o
- # files that make .init and .fini sections work.
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- sysv4)
- case $host_vendor in
- sni)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
- ;;
- siemens)
- ## LD is ld it makes a PLAMLIB
- ## CC just makes a GrossModule.
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- ;;
- motorola)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
- ;;
- esac
- runpath_var='LD_RUN_PATH'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- sysv4.3*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- runpath_var=LD_RUN_PATH
- hardcode_runpath_var=yes
- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
- fi
- ;;
-
- sysv4.2uw2*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- hardcode_runpath_var=yes
- runpath_var=LD_RUN_PATH
- ;;
-
- sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- fi
- runpath_var='LD_RUN_PATH'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- sysv5*)
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
- # $CC -shared without GNU ld will not create a library from C++
- # object files and a static libstdc++, better avoid it by now
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- runpath_var='LD_RUN_PATH'
- ;;
-
- uts4*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- *)
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- fi
-])
-AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
-
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
-if test "$GCC" = yes; then
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
-fi
-
-#
-# Do we need to explicitly link libc?
-#
-case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
-x|xyes)
- # Assume -lc should be added
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
-
- if test "$enable_shared" = yes && test "$GCC" = yes; then
- case $_LT_AC_TAGVAR(archive_cmds, $1) in
- *'~'*)
- # FIXME: we may have to deal with multi-command sequences.
- ;;
- '$CC '*)
- # Test whether the compiler implicitly links with -lc since on some
- # systems, -lgcc has to come before -lc. If gcc already passes -lc
- # to ld, don't add -lc before -lgcc.
- AC_MSG_CHECKING([whether -lc should be explicitly linked in])
- $rm conftest*
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
-
- if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
- soname=conftest
- lib=conftest
- libobjs=conftest.$ac_objext
- deplibs=
- wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
- compiler_flags=-v
- linker_flags=-v
- verstring=
- output_objdir=.
- libname=conftest
- lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=
- if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
- then
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- else
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
- fi
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
- else
- cat conftest.err 1>&5
- fi
- $rm conftest*
- AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
- ;;
- esac
- fi
- ;;
-esac
-])# AC_LIBTOOL_PROG_LD_SHLIBS
-
-
-# _LT_AC_FILE_LTDLL_C
-# -------------------
-# Be careful that the start marker always follows a newline.
-AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
-# /* ltdll.c starts here */
-# #define WIN32_LEAN_AND_MEAN
-# #include <windows.h>
-# #undef WIN32_LEAN_AND_MEAN
-# #include <stdio.h>
-#
-# #ifndef __CYGWIN__
-# # ifdef __CYGWIN32__
-# # define __CYGWIN__ __CYGWIN32__
-# # endif
-# #endif
-#
-# #ifdef __cplusplus
-# extern "C" {
-# #endif
-# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
-# #ifdef __cplusplus
-# }
-# #endif
-#
-# #ifdef __CYGWIN__
-# #include <cygwin/cygwin_dll.h>
-# DECLARE_CYGWIN_DLL( DllMain );
-# #endif
-# HINSTANCE __hDllInstance_base;
-#
-# BOOL APIENTRY
-# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
-# {
-# __hDllInstance_base = hInst;
-# return TRUE;
-# }
-# /* ltdll.c ends here */
-])# _LT_AC_FILE_LTDLL_C
-
-
-# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
-# ---------------------------------
-AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
-
-
-# old names
-AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
-AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
-AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
-AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
-AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
-AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
-AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
-
-# This is just to silence aclocal about the macro not being used
-ifelse([AC_DISABLE_FAST_INSTALL])
-
-AC_DEFUN([LT_AC_PROG_GCJ],
-[AC_CHECK_TOOL(GCJ, gcj, no)
- test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
- AC_SUBST(GCJFLAGS)
-])
-
-AC_DEFUN([LT_AC_PROG_RC],
-[AC_CHECK_TOOL(RC, windres, no)
-])
-
-############################################################
-# NOTE: This macro has been submitted for inclusion into #
-# GNU Autoconf as AC_PROG_SED. When it is available in #
-# a released version of Autoconf we should remove this #
-# macro and use it instead. #
-############################################################
-# LT_AC_PROG_SED
-# --------------
-# Check for a fully-functional sed program, that truncates
-# as few characters as possible. Prefer GNU sed if found.
-AC_DEFUN([LT_AC_PROG_SED],
-[AC_MSG_CHECKING([for a sed that does not truncate output])
-AC_CACHE_VAL(lt_cv_path_SED,
-[# Loop through the user's path and test for sed and gsed.
-# Then use that list of sed's as ones to test for truncation.
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for lt_ac_prog in sed gsed; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
- lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
- fi
- done
- done
-done
-lt_ac_max=0
-lt_ac_count=0
-# Add /usr/xpg4/bin/sed as it is typically found on Solaris
-# along with /bin/sed that truncates output.
-for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
- test ! -f $lt_ac_sed && break
- cat /dev/null > conftest.in
- lt_ac_count=0
- echo $ECHO_N "0123456789$ECHO_C" >conftest.in
- # Check for GNU sed and select it if it is found.
- if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
- lt_cv_path_SED=$lt_ac_sed
- break
- fi
- while true; do
- cat conftest.in conftest.in >conftest.tmp
- mv conftest.tmp conftest.in
- cp conftest.in conftest.nl
- echo >>conftest.nl
- $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
- cmp -s conftest.out conftest.nl || break
- # 10000 chars as input seems more than enough
- test $lt_ac_count -gt 10 && break
- lt_ac_count=`expr $lt_ac_count + 1`
- if test $lt_ac_count -gt $lt_ac_max; then
- lt_ac_max=$lt_ac_count
- lt_cv_path_SED=$lt_ac_sed
- fi
- done
-done
-])
-SED=$lt_cv_path_SED
-AC_MSG_RESULT([$SED])
-])
diff --git a/usr.sbin/bind/libtool.m4.file b/usr.sbin/bind/libtool.m4.file
deleted file mode 100644
index 551ffd0d83e..00000000000
--- a/usr.sbin/bind/libtool.m4.file
+++ /dev/null
@@ -1,6000 +0,0 @@
-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
-## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
-## Free Software Foundation, Inc.
-## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-##
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2 of the License, or
-## (at your option) any later version.
-##
-## This program is distributed in the hope that it will be useful, but
-## WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-## General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-## As a special exception to the GNU General Public License, if you
-## distribute this file as part of a program that contains a
-## configuration script generated by Autoconf, you may include it under
-## the same distribution terms that you use for the rest of that program.
-
-# serial 47 AC_PROG_LIBTOOL
-
-
-# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
-# -----------------------------------------------------------
-# If this macro is not defined by Autoconf, define it here.
-m4_ifdef([AC_PROVIDE_IFELSE],
- [],
- [m4_define([AC_PROVIDE_IFELSE],
- [m4_ifdef([AC_PROVIDE_$1],
- [$2], [$3])])])
-
-
-# AC_PROG_LIBTOOL
-# ---------------
-AC_DEFUN([AC_PROG_LIBTOOL],
-[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
-dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
-dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
- AC_PROVIDE_IFELSE([AC_PROG_CXX],
- [AC_LIBTOOL_CXX],
- [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
- ])])
-dnl And a similar setup for Fortran 77 support
- AC_PROVIDE_IFELSE([AC_PROG_F77],
- [AC_LIBTOOL_F77],
- [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
-])])
-
-dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
-dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
-dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
- AC_PROVIDE_IFELSE([AC_PROG_GCJ],
- [AC_LIBTOOL_GCJ],
- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
- [AC_LIBTOOL_GCJ],
- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
- [AC_LIBTOOL_GCJ],
- [ifdef([AC_PROG_GCJ],
- [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
- ifdef([A][M_PROG_GCJ],
- [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
- ifdef([LT_AC_PROG_GCJ],
- [define([LT_AC_PROG_GCJ],
- defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
-])])# AC_PROG_LIBTOOL
-
-
-# _AC_PROG_LIBTOOL
-# ----------------
-AC_DEFUN([_AC_PROG_LIBTOOL],
-[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
-AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
-AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
-AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
-
-# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-
-# Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-AC_SUBST(LIBTOOL)dnl
-
-# Prevent multiple expansion
-define([AC_PROG_LIBTOOL], [])
-])# _AC_PROG_LIBTOOL
-
-
-# AC_LIBTOOL_SETUP
-# ----------------
-AC_DEFUN([AC_LIBTOOL_SETUP],
-[AC_PREREQ(2.50)dnl
-AC_REQUIRE([AC_ENABLE_SHARED])dnl
-AC_REQUIRE([AC_ENABLE_STATIC])dnl
-AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
-AC_REQUIRE([AC_PROG_CC])dnl
-AC_REQUIRE([AC_PROG_LD])dnl
-AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
-AC_REQUIRE([AC_PROG_NM])dnl
-
-AC_REQUIRE([AC_PROG_LN_S])dnl
-AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
-# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
-AC_REQUIRE([AC_OBJEXT])dnl
-AC_REQUIRE([AC_EXEEXT])dnl
-dnl
-
-AC_LIBTOOL_SYS_MAX_CMD_LEN
-AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
-AC_LIBTOOL_OBJDIR
-
-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
-_LT_AC_PROG_ECHO_BACKSLASH
-
-case $host_os in
-aix3*)
- # AIX sometimes has problems with the GCC collect2 program. For some
- # reason, if we set the COLLECT_NAMES environment variable, the problems
- # vanish in a puff of smoke.
- if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
- fi
- ;;
-esac
-
-# Sed substitution that helps us do robust quoting. It backslashifies
-# metacharacters that are still active within double-quoted strings.
-Xsed='sed -e s/^X//'
-[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
-
-# Same as above, but do not quote variable references.
-[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
-
-# Sed substitution to delay expansion of an escaped shell variable in a
-# double_quote_subst'ed string.
-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
-
-# Sed substitution to avoid accidental globbing in evaled expressions
-no_glob_subst='s/\*/\\\*/g'
-
-# Constants:
-rm="rm -f"
-
-# Global variables:
-default_ofile=libtool
-can_build_shared=yes
-
-# All known linkers require a `.a' archive for static linking (except M$VC,
-# which needs '.lib').
-libext=a
-ltmain="$ac_aux_dir/ltmain.sh"
-ofile="$default_ofile"
-with_gnu_ld="$lt_cv_prog_gnu_ld"
-
-AC_CHECK_TOOL(AR, ar, false)
-AC_CHECK_TOOL(RANLIB, ranlib, :)
-AC_CHECK_TOOL(STRIP, strip, :)
-
-old_CC="$CC"
-old_CFLAGS="$CFLAGS"
-
-# Set sane defaults for various variables
-test -z "$AR" && AR=ar
-test -z "$AR_FLAGS" && AR_FLAGS=cru
-test -z "$AS" && AS=as
-test -z "$CC" && CC=cc
-test -z "$LTCC" && LTCC=$CC
-test -z "$DLLTOOL" && DLLTOOL=dlltool
-test -z "$LD" && LD=ld
-test -z "$LN_S" && LN_S="ln -s"
-test -z "$MAGIC_CMD" && MAGIC_CMD=file
-test -z "$NM" && NM=nm
-test -z "$SED" && SED=sed
-test -z "$OBJDUMP" && OBJDUMP=objdump
-test -z "$RANLIB" && RANLIB=:
-test -z "$STRIP" && STRIP=:
-test -z "$ac_objext" && ac_objext=o
-
-# Determine commands to create old-style static archives.
-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
-old_postinstall_cmds='chmod 644 $oldlib'
-old_postuninstall_cmds=
-
-if test -n "$RANLIB"; then
- case $host_os in
- openbsd*)
- old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
- ;;
- *)
- old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
- ;;
- esac
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
-fi
-
-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
-
-# Only perform the check for file, if the check method requires it
-case $deplibs_check_method in
-file_magic*)
- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
- AC_PATH_MAGIC
- fi
- ;;
-esac
-
-AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
-enable_win32_dll=yes, enable_win32_dll=no)
-
-AC_ARG_ENABLE([libtool-lock],
- [AC_HELP_STRING([--disable-libtool-lock],
- [avoid locking (might break parallel builds)])])
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
-
-AC_ARG_WITH([pic],
- [AC_HELP_STRING([--with-pic],
- [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
- [pic_mode="$withval"],
- [pic_mode=default])
-test -z "$pic_mode" && pic_mode=default
-
-# Use C for the default configuration in the libtool script
-tagname=
-AC_LIBTOOL_LANG_C_CONFIG
-_LT_AC_TAGCONFIG
-])# AC_LIBTOOL_SETUP
-
-
-# _LT_AC_SYS_COMPILER
-# -------------------
-AC_DEFUN([_LT_AC_SYS_COMPILER],
-[AC_REQUIRE([AC_PROG_CC])dnl
-
-# If no C compiler was specified, use CC.
-LTCC=${LTCC-"$CC"}
-
-# Allow CC to be a program name with arguments.
-compiler=$CC
-])# _LT_AC_SYS_COMPILER
-
-
-# _LT_AC_SYS_LIBPATH_AIX
-# ----------------------
-# Links a minimal program and checks the executable
-# for the system default hardcoded library path. In most cases,
-# this is /usr/lib:/lib, but when the MPI compilers are used
-# the location of the communication and MPI libs are included too.
-# If we don't find anything, use the default library path according
-# to the aix ld manual.
-AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
-[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`
-# Check for a 64-bit object if we didn't find anything.
-if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
-}'`; fi],[])
-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
-])# _LT_AC_SYS_LIBPATH_AIX
-
-
-# _LT_AC_SHELL_INIT(ARG)
-# ----------------------
-AC_DEFUN([_LT_AC_SHELL_INIT],
-[ifdef([AC_DIVERSION_NOTICE],
- [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
- [AC_DIVERT_PUSH(NOTICE)])
-$1
-AC_DIVERT_POP
-])# _LT_AC_SHELL_INIT
-
-
-# _LT_AC_PROG_ECHO_BACKSLASH
-# --------------------------
-# Add some code to the start of the generated configure script which
-# will find an echo command which doesn't interpret backslashes.
-AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
-[_LT_AC_SHELL_INIT([
-# Check that we are running under the correct shell.
-SHELL=${CONFIG_SHELL-/bin/sh}
-
-case X$ECHO in
-X*--fallback-echo)
- # Remove one level of quotation (which was required for Make).
- ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
- ;;
-esac
-
-echo=${ECHO-echo}
-if test "X[$]1" = X--no-reexec; then
- # Discard the --no-reexec flag, and continue.
- shift
-elif test "X[$]1" = X--fallback-echo; then
- # Avoid inline document here, it may be left over
- :
-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
- # Yippee, $echo works!
- :
-else
- # Restart under the correct shell.
- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
-fi
-
-if test "X[$]1" = X--fallback-echo; then
- # used as fallback echo
- shift
- cat <<EOF
-[$]*
-EOF
- exit 0
-fi
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-if test -z "$ECHO"; then
-if test "X${echo_test_string+set}" != Xset; then
-# find a string as large as possible, as long as the shell can cope with it
- for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
- if (echo_test_string="`eval $cmd`") 2>/dev/null &&
- echo_test_string="`eval $cmd`" &&
- (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
- then
- break
- fi
- done
-fi
-
-if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- :
-else
- # The Solaris, AIX, and Digital Unix default echo programs unquote
- # backslashes. This makes it impossible to quote backslashes using
- # echo "$something" | sed 's/\\/\\\\/g'
- #
- # So, first we look for a working echo in the user's PATH.
-
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for dir in $PATH /usr/ucb; do
- IFS="$lt_save_ifs"
- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- echo="$dir/echo"
- break
- fi
- done
- IFS="$lt_save_ifs"
-
- if test "X$echo" = Xecho; then
- # We didn't find a better echo, so look for alternatives.
- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- # This shell has a builtin print -r that does the trick.
- echo='print -r'
- elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
- test "X$CONFIG_SHELL" != X/bin/ksh; then
- # If we have ksh, try running configure again with it.
- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
- export ORIGINAL_CONFIG_SHELL
- CONFIG_SHELL=/bin/ksh
- export CONFIG_SHELL
- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
- else
- # Try using printf.
- echo='printf %s\n'
- if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- # Cool, printf works
- :
- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
- test "X$echo_testing_string" = 'X\t' &&
- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
- export CONFIG_SHELL
- SHELL="$CONFIG_SHELL"
- export SHELL
- echo="$CONFIG_SHELL [$]0 --fallback-echo"
- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
- test "X$echo_testing_string" = 'X\t' &&
- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- echo="$CONFIG_SHELL [$]0 --fallback-echo"
- else
- # maybe with a smaller string...
- prev=:
-
- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
- if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
- then
- break
- fi
- prev="$cmd"
- done
-
- if test "$prev" != 'sed 50q "[$]0"'; then
- echo_test_string=`eval $prev`
- export echo_test_string
- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
- else
- # Oops. We lost completely, so just stick with echo.
- echo=echo
- fi
- fi
- fi
- fi
-fi
-fi
-
-# Copy echo and quote the copy suitably for passing to libtool from
-# the Makefile, instead of quoting the original, which is used later.
-ECHO=$echo
-if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
- ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
-fi
-
-AC_SUBST(ECHO)
-])])# _LT_AC_PROG_ECHO_BACKSLASH
-
-
-# _LT_AC_LOCK
-# -----------
-AC_DEFUN([_LT_AC_LOCK],
-[AC_ARG_ENABLE([libtool-lock],
- [AC_HELP_STRING([--disable-libtool-lock],
- [avoid locking (might break parallel builds)])])
-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
-
-# Some flags need to be propagated to the compiler or linker for good
-# libtool support.
-case $host in
-ia64-*-hpux*)
- # Find out which ABI we are using.
- echo 'int i;' > conftest.$ac_ext
- if AC_TRY_EVAL(ac_compile); then
- case `/usr/bin/file conftest.$ac_objext` in
- *ELF-32*)
- HPUX_IA64_MODE="32"
- ;;
- *ELF-64*)
- HPUX_IA64_MODE="64"
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
-*-*-irix6*)
- # Find out which ABI we are using.
- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
- if AC_TRY_EVAL(ac_compile); then
- if test "$lt_cv_prog_gnu_ld" = yes; then
- case `/usr/bin/file conftest.$ac_objext` in
- *32-bit*)
- LD="${LD-ld} -melf32bsmip"
- ;;
- *N32*)
- LD="${LD-ld} -melf32bmipn32"
- ;;
- *64-bit*)
- LD="${LD-ld} -melf64bmip"
- ;;
- esac
- else
- case `/usr/bin/file conftest.$ac_objext` in
- *32-bit*)
- LD="${LD-ld} -32"
- ;;
- *N32*)
- LD="${LD-ld} -n32"
- ;;
- *64-bit*)
- LD="${LD-ld} -64"
- ;;
- esac
- fi
- fi
- rm -rf conftest*
- ;;
-
-x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
- # Find out which ABI we are using.
- echo 'int i;' > conftest.$ac_ext
- if AC_TRY_EVAL(ac_compile); then
- case "`/usr/bin/file conftest.o`" in
- *32-bit*)
- case $host in
- x86_64-*linux*)
- LD="${LD-ld} -m elf_i386"
- ;;
- ppc64-*linux*|powerpc64-*linux*)
- LD="${LD-ld} -m elf32ppclinux"
- ;;
- s390x-*linux*)
- LD="${LD-ld} -m elf_s390"
- ;;
- sparc64-*linux*)
- LD="${LD-ld} -m elf32_sparc"
- ;;
- esac
- ;;
- *64-bit*)
- case $host in
- x86_64-*linux*)
- LD="${LD-ld} -m elf_x86_64"
- ;;
- ppc*-*linux*|powerpc*-*linux*)
- LD="${LD-ld} -m elf64ppc"
- ;;
- s390*-*linux*)
- LD="${LD-ld} -m elf64_s390"
- ;;
- sparc*-*linux*)
- LD="${LD-ld} -m elf64_sparc"
- ;;
- esac
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
-
-*-*-sco3.2v5*)
- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
- SAVE_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -belf"
- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
- [AC_LANG_PUSH(C)
- AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
- AC_LANG_POP])
- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
- CFLAGS="$SAVE_CFLAGS"
- fi
- ;;
-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
-[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
- AC_CHECK_TOOL(DLLTOOL, dlltool, false)
- AC_CHECK_TOOL(AS, as, false)
- AC_CHECK_TOOL(OBJDUMP, objdump, false)
- ;;
- ])
-esac
-
-need_locks="$enable_libtool_lock"
-
-])# _LT_AC_LOCK
-
-
-# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
-# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
-# ----------------------------------------------------------------
-# Check whether the given compiler option works
-AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
-[AC_REQUIRE([LT_AC_PROG_SED])
-AC_CACHE_CHECK([$1], [$2],
- [$2=no
- ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
- lt_compiler_flag="$3"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- # The option is referenced via a variable to avoid confusing sed.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
- (eval "$lt_compile" 2>conftest.err)
- ac_status=$?
- cat conftest.err >&AS_MESSAGE_LOG_FD
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
- if (exit $ac_status) && test -s "$ac_outfile"; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test ! -s conftest.err; then
- $2=yes
- fi
- fi
- $rm conftest*
-])
-
-if test x"[$]$2" = xyes; then
- ifelse([$5], , :, [$5])
-else
- ifelse([$6], , :, [$6])
-fi
-])# AC_LIBTOOL_COMPILER_OPTION
-
-
-# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
-# [ACTION-SUCCESS], [ACTION-FAILURE])
-# ------------------------------------------------------------
-# Check whether the given compiler option works
-AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
-[AC_CACHE_CHECK([$1], [$2],
- [$2=no
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS $3"
- printf "$lt_simple_link_test_code" > conftest.$ac_ext
- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s conftest.err; then
- # Append any errors to the config.log.
- cat conftest.err 1>&AS_MESSAGE_LOG_FD
- else
- $2=yes
- fi
- fi
- $rm conftest*
- LDFLAGS="$save_LDFLAGS"
-])
-
-if test x"[$]$2" = xyes; then
- ifelse([$4], , :, [$4])
-else
- ifelse([$5], , :, [$5])
-fi
-])# AC_LIBTOOL_LINKER_OPTION
-
-
-# AC_LIBTOOL_SYS_MAX_CMD_LEN
-# --------------------------
-AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
-[# find the maximum length of command line arguments
-AC_MSG_CHECKING([the maximum length of command line arguments])
-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
- i=0
- teststring="ABCD"
-
- case $build_os in
- msdosdjgpp*)
- # On DJGPP, this test can blow up pretty badly due to problems in libc
- # (any single argument exceeding 2000 bytes causes a buffer overrun
- # during glob expansion). Even if it were fixed, the result of this
- # check would be larger than it should be.
- lt_cv_sys_max_cmd_len=12288; # 12K is about right
- ;;
-
- gnu*)
- # Under GNU Hurd, this test is not required because there is
- # no limit to the length of command line arguments.
- # Libtool will interpret -1 as no limit whatsoever
- lt_cv_sys_max_cmd_len=-1;
- ;;
-
- cygwin* | mingw*)
- # On Win9x/ME, this test blows up -- it succeeds, but takes
- # about 5 minutes as the teststring grows exponentially.
- # Worse, since 9x/ME are not pre-emptively multitasking,
- # you end up with a "frozen" computer, even though with patience
- # the test eventually succeeds (with a max line length of 256k).
- # Instead, let's just punt: use the minimum linelength reported by
- # all of the supported platforms: 8192 (on NT/2K/XP).
- lt_cv_sys_max_cmd_len=8192;
- ;;
-
- amigaos*)
- # On AmigaOS with pdksh, this test takes hours, literally.
- # So we just punt and use a minimum line length of 8192.
- lt_cv_sys_max_cmd_len=8192;
- ;;
-
- netbsd* | freebsd* | openbsd* | darwin* )
- # This has been around since 386BSD, at least. Likely further.
- if test -x /sbin/sysctl; then
- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
- elif test -x /usr/sbin/sysctl; then
- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
- else
- lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
- fi
- # And add a safety zone
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
- ;;
-
- *)
- # If test is not a shell built-in, we'll probably end up computing a
- # maximum length that is only half of the actual maximum length, but
- # we can't tell.
- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
- while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
- = "XX$teststring") >/dev/null 2>&1 &&
- new_result=`expr "X$teststring" : ".*" 2>&1` &&
- lt_cv_sys_max_cmd_len=$new_result &&
- test $i != 17 # 1/2 MB should be enough
- do
- i=`expr $i + 1`
- teststring=$teststring$teststring
- done
- teststring=
- # Add a significant safety factor because C++ compilers can tack on massive
- # amounts of additional arguments before passing them to the linker.
- # It appears as though 1/2 is a usable value.
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
- ;;
- esac
-])
-if test -n $lt_cv_sys_max_cmd_len ; then
- AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
-else
- AC_MSG_RESULT(none)
-fi
-])# AC_LIBTOOL_SYS_MAX_CMD_LEN
-
-
-# _LT_AC_CHECK_DLFCN
-# --------------------
-AC_DEFUN([_LT_AC_CHECK_DLFCN],
-[AC_CHECK_HEADERS(dlfcn.h)dnl
-])# _LT_AC_CHECK_DLFCN
-
-
-# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
-# ------------------------------------------------------------------
-AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
-if test "$cross_compiling" = yes; then :
- [$4]
-else
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
- lt_status=$lt_dlunknown
- cat > conftest.$ac_ext <<EOF
-[#line __oline__ "configure"
-#include "confdefs.h"
-
-#if HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
-
-#include <stdio.h>
-
-#ifdef RTLD_GLOBAL
-# define LT_DLGLOBAL RTLD_GLOBAL
-#else
-# ifdef DL_GLOBAL
-# define LT_DLGLOBAL DL_GLOBAL
-# else
-# define LT_DLGLOBAL 0
-# endif
-#endif
-
-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- find out it does not work in some platform. */
-#ifndef LT_DLLAZY_OR_NOW
-# ifdef RTLD_LAZY
-# define LT_DLLAZY_OR_NOW RTLD_LAZY
-# else
-# ifdef DL_LAZY
-# define LT_DLLAZY_OR_NOW DL_LAZY
-# else
-# ifdef RTLD_NOW
-# define LT_DLLAZY_OR_NOW RTLD_NOW
-# else
-# ifdef DL_NOW
-# define LT_DLLAZY_OR_NOW DL_NOW
-# else
-# define LT_DLLAZY_OR_NOW 0
-# endif
-# endif
-# endif
-# endif
-#endif
-
-#ifdef __cplusplus
-extern "C" void exit (int);
-#endif
-
-void fnord() { int i=42;}
-int main ()
-{
- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
- int status = $lt_dlunknown;
-
- if (self)
- {
- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
- /* dlclose (self); */
- }
-
- exit (status);
-}]
-EOF
- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
- (./conftest; exit; ) 2>/dev/null
- lt_status=$?
- case x$lt_status in
- x$lt_dlno_uscore) $1 ;;
- x$lt_dlneed_uscore) $2 ;;
- x$lt_unknown|x*) $3 ;;
- esac
- else :
- # compilation failed
- $3
- fi
-fi
-rm -fr conftest*
-])# _LT_AC_TRY_DLOPEN_SELF
-
-
-# AC_LIBTOOL_DLOPEN_SELF
-# -------------------
-AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
-if test "x$enable_dlopen" != xyes; then
- enable_dlopen=unknown
- enable_dlopen_self=unknown
- enable_dlopen_self_static=unknown
-else
- lt_cv_dlopen=no
- lt_cv_dlopen_libs=
-
- case $host_os in
- beos*)
- lt_cv_dlopen="load_add_on"
- lt_cv_dlopen_libs=
- lt_cv_dlopen_self=yes
- ;;
-
- mingw* | pw32*)
- lt_cv_dlopen="LoadLibrary"
- lt_cv_dlopen_libs=
- ;;
-
- cygwin*)
- lt_cv_dlopen="dlopen"
- lt_cv_dlopen_libs=
- ;;
-
- darwin*)
- # if libdl is installed we need to link against it
- AC_CHECK_LIB([dl], [dlopen],
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
- lt_cv_dlopen="dyld"
- lt_cv_dlopen_libs=
- lt_cv_dlopen_self=yes
- ])
- ;;
-
- *)
- AC_CHECK_FUNC([shl_load],
- [lt_cv_dlopen="shl_load"],
- [AC_CHECK_LIB([dld], [shl_load],
- [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
- [AC_CHECK_FUNC([dlopen],
- [lt_cv_dlopen="dlopen"],
- [AC_CHECK_LIB([dl], [dlopen],
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
- [AC_CHECK_LIB([svld], [dlopen],
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
- [AC_CHECK_LIB([dld], [dld_link],
- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
- ])
- ])
- ])
- ])
- ])
- ;;
- esac
-
- if test "x$lt_cv_dlopen" != xno; then
- enable_dlopen=yes
- else
- enable_dlopen=no
- fi
-
- case $lt_cv_dlopen in
- dlopen)
- save_CPPFLAGS="$CPPFLAGS"
- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
-
- save_LDFLAGS="$LDFLAGS"
- eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
-
- save_LIBS="$LIBS"
- LIBS="$lt_cv_dlopen_libs $LIBS"
-
- AC_CACHE_CHECK([whether a program can dlopen itself],
- lt_cv_dlopen_self, [dnl
- _LT_AC_TRY_DLOPEN_SELF(
- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
- ])
-
- if test "x$lt_cv_dlopen_self" = xyes; then
- LDFLAGS="$LDFLAGS $link_static_flag"
- AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
- lt_cv_dlopen_self_static, [dnl
- _LT_AC_TRY_DLOPEN_SELF(
- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
- ])
- fi
-
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- LIBS="$save_LIBS"
- ;;
- esac
-
- case $lt_cv_dlopen_self in
- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
- *) enable_dlopen_self=unknown ;;
- esac
-
- case $lt_cv_dlopen_self_static in
- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
- *) enable_dlopen_self_static=unknown ;;
- esac
-fi
-])# AC_LIBTOOL_DLOPEN_SELF
-
-
-# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
-# ---------------------------------
-# Check to see if options -c and -o are simultaneously supported by compiler
-AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
-[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
- $rm -r conftest 2>/dev/null
- mkdir conftest
- cd conftest
- mkdir out
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
-
- lt_compiler_flag="-o out/conftest2.$ac_objext"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
- (eval "$lt_compile" 2>out/conftest.err)
- ac_status=$?
- cat out/conftest.err >&AS_MESSAGE_LOG_FD
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
- if (exit $ac_status) && test -s out/conftest2.$ac_objext
- then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test ! -s out/conftest.err; then
- _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
- fi
- fi
- chmod u+w .
- $rm conftest*
- # SGI C++ compiler will create directory out/ii_files/ for
- # template instantiation
- test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
- $rm out/* && rmdir out
- cd ..
- rmdir conftest
- $rm conftest*
-])
-])# AC_LIBTOOL_PROG_CC_C_O
-
-
-# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
-# -----------------------------------------
-# Check to see if we can do hard links to lock some files if needed
-AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
-[AC_REQUIRE([_LT_AC_LOCK])dnl
-
-hard_links="nottested"
-if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
- # do not overwrite the value of need_locks provided by the user
- AC_MSG_CHECKING([if we can lock with hard links])
- hard_links=yes
- $rm conftest*
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- touch conftest.a
- ln conftest.a conftest.b 2>&5 || hard_links=no
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- AC_MSG_RESULT([$hard_links])
- if test "$hard_links" = no; then
- AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
- need_locks=warn
- fi
-else
- need_locks=no
-fi
-])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
-
-
-# AC_LIBTOOL_OBJDIR
-# -----------------
-AC_DEFUN([AC_LIBTOOL_OBJDIR],
-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
-[rm -f .libs 2>/dev/null
-mkdir .libs 2>/dev/null
-if test -d .libs; then
- lt_cv_objdir=.libs
-else
- # MS-DOS does not allow filenames that begin with a dot.
- lt_cv_objdir=_libs
-fi
-rmdir .libs 2>/dev/null])
-objdir=$lt_cv_objdir
-])# AC_LIBTOOL_OBJDIR
-
-
-# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
-# ----------------------------------------------
-# Check hardcoding attributes.
-AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
-[AC_MSG_CHECKING([how to hardcode library paths into programs])
-_LT_AC_TAGVAR(hardcode_action, $1)=
-if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
- test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
- test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
-
- # We can hardcode non-existant directories.
- if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
- # If the only mechanism to avoid hardcoding is shlibpath_var, we
- # have to relink, otherwise we might link with an installed library
- # when we should be linking with a yet-to-be-installed one
- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
- test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
- # Linking always hardcodes the temporary library directory.
- _LT_AC_TAGVAR(hardcode_action, $1)=relink
- else
- # We can link without hardcoding, and we can hardcode nonexisting dirs.
- _LT_AC_TAGVAR(hardcode_action, $1)=immediate
- fi
-else
- # We cannot hardcode anything, or else we can only hardcode existing
- # directories.
- _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
-fi
-AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
-
-if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
- # Fast installation is not supported
- enable_fast_install=no
-elif test "$shlibpath_overrides_runpath" = yes ||
- test "$enable_shared" = no; then
- # Fast installation is not necessary
- enable_fast_install=needless
-fi
-])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
-
-
-# AC_LIBTOOL_SYS_LIB_STRIP
-# ------------------------
-AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
-[striplib=
-old_striplib=
-AC_MSG_CHECKING([whether stripping libraries is possible])
-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
- AC_MSG_RESULT([yes])
-else
-# FIXME - insert some real tests, host_os isn't really good enough
- case $host_os in
- darwin*)
- if test -n "$STRIP" ; then
- striplib="$STRIP -x"
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
-fi
- ;;
- *)
- AC_MSG_RESULT([no])
- ;;
- esac
-fi
-])# AC_LIBTOOL_SYS_LIB_STRIP
-
-
-# AC_LIBTOOL_SYS_DYNAMIC_LINKER
-# -----------------------------
-# PORTME Fill in your ld.so characteristics
-AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
-[AC_MSG_CHECKING([dynamic linker characteristics])
-library_names_spec=
-libname_spec='lib$name'
-soname_spec=
-shrext_cmds=".so"
-postinstall_cmds=
-postuninstall_cmds=
-finish_cmds=
-finish_eval=
-shlibpath_var=
-shlibpath_overrides_runpath=unknown
-version_type=none
-dynamic_linker="$host_os ld.so"
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
-if test "$GCC" = yes; then
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
- # if the path contains ";" then we assume it to be the separator
- # otherwise default to the standard path separator (i.e. ":") - it is
- # assumed that no part of a normal pathname contains ";" but that should
- # okay in the real world where ";" in dirpaths is itself problematic.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
-else
- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
-fi
-need_lib_prefix=unknown
-hardcode_into_libs=no
-
-# when you set need_version to no, make sure it does not cause -set_version
-# flags to be left without arguments
-need_version=unknown
-
-case $host_os in
-aix3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
- shlibpath_var=LIBPATH
-
- # AIX 3 has no versioning support, so we append a major version to the name.
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
-
-aix4* | aix5*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- hardcode_into_libs=yes
- if test "$host_cpu" = ia64; then
- # AIX 5 supports IA64
- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- else
- # With GCC up to 2.95.x, collect2 would create an import file
- # for dependence libraries. The import file would start with
- # the line `#! .'. This would cause the generated library to
- # depend on `.', always an invalid library. This was fixed in
- # development snapshots of GCC prior to 3.0.
- case $host_os in
- aix4 | aix4.[[01]] | aix4.[[01]].*)
- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
- echo ' yes '
- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
- :
- else
- can_build_shared=no
- fi
- ;;
- esac
- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
- # soname into executable. Probably we can add versioning support to
- # collect2, so additional links can be useful in future.
- if test "$aix_use_runtimelinking" = yes; then
- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
- # instead of lib<name>.a to let people know that these are not
- # typical AIX shared libraries.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- else
- # We preserve .a as extension for shared libraries through AIX4.2
- # and later when we are not doing run time linking.
- library_names_spec='${libname}${release}.a $libname.a'
- soname_spec='${libname}${release}${shared_ext}$major'
- fi
- shlibpath_var=LIBPATH
- fi
- ;;
-
-amigaos*)
- library_names_spec='$libname.ixlibrary $libname.a'
- # Create ${libname}_ixlibrary.a entries in /sys/libs.
- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
- ;;
-
-beos*)
- library_names_spec='${libname}${shared_ext}'
- dynamic_linker="$host_os ld.so"
- shlibpath_var=LIBRARY_PATH
- ;;
-
-bsdi[[45]]*)
- version_type=linux
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
- # the default ld.so.conf also contains /usr/contrib/lib and
- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
- # libtool to hard-code these into programs
- ;;
-
-cygwin* | mingw* | pw32*)
- version_type=windows
- shrext_cmds=".dll"
- need_version=no
- need_lib_prefix=no
-
- case $GCC,$host_os in
- yes,cygwin* | yes,mingw* | yes,pw32*)
- library_names_spec='$libname.dll.a'
- # DLL is installed to $(libdir)/../bin by postinstall_cmds
- postinstall_cmds='base_file=`basename \${file}`~
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
- dldir=$destdir/`dirname \$dlpath`~
- test -d \$dldir || mkdir -p \$dldir~
- $install_prog $dir/$dlname \$dldir/$dlname'
- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
- dlpath=$dir/\$dldll~
- $rm \$dlpath'
- shlibpath_overrides_runpath=yes
-
- case $host_os in
- cygwin*)
- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
- ;;
- mingw*)
- # MinGW DLLs use traditional 'lib' prefix
- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
- # It is most probably a Windows format PATH printed by
- # mingw gcc, but we are running on Cygwin. Gcc prints its search
- # path with ; separators, and with drive letters. We can handle the
- # drive letters (cygwin fileutils understands them), so leave them,
- # especially as we might pass files found there to a mingw objdump,
- # which wouldn't understand a cygwinified path. Ahh.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
- ;;
- pw32*)
- # pw32 DLLs use 'pw' prefix rather than 'lib'
- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- ;;
- esac
- ;;
-
- *)
- library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
- ;;
- esac
- dynamic_linker='Win32 ld.exe'
- # FIXME: first we should search . and the directory the executable is in
- shlibpath_var=PATH
- ;;
-
-darwin* | rhapsody*)
- dynamic_linker="$host_os dyld"
- version_type=darwin
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
- soname_spec='${libname}${release}${major}$shared_ext'
- shlibpath_overrides_runpath=yes
- shlibpath_var=DYLD_LIBRARY_PATH
- shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
- # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
- if test "$GCC" = yes; then
- sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
- else
- sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
- fi
- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
- ;;
-
-dgux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-freebsd1*)
- dynamic_linker=no
- ;;
-
-kfreebsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='GNU ld.so'
- ;;
-
-freebsd*)
- objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- need_version=no
- need_lib_prefix=no
- ;;
- freebsd-*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
- need_version=yes
- ;;
- esac
- shlibpath_var=LD_LIBRARY_PATH
- case $host_os in
- freebsd2*)
- shlibpath_overrides_runpath=yes
- ;;
- freebsd3.[01]* | freebsdelf3.[01]*)
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- *) # from 3.2 on
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
- esac
- ;;
-
-gnu*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- ;;
-
-hpux9* | hpux10* | hpux11*)
- # Give a soname corresponding to the major version so that dld.sl refuses to
- # link against other versions.
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- case "$host_cpu" in
- ia64*)
- shrext_cmds='.so'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.so"
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- if test "X$HPUX_IA64_MODE" = X32; then
- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
- else
- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
- fi
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- hppa*64*)
- shrext_cmds='.sl'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- *)
- shrext_cmds='.sl'
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=SHLIB_PATH
- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
- esac
- # HP-UX runs *really* slowly unless shared libraries are mode 555.
- postinstall_cmds='chmod 555 $lib'
- ;;
-
-irix5* | irix6* | nonstopux*)
- case $host_os in
- nonstopux*) version_type=nonstopux ;;
- *)
- if test "$lt_cv_prog_gnu_ld" = yes; then
- version_type=linux
- else
- version_type=irix
- fi ;;
- esac
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
- case $host_os in
- irix5* | nonstopux*)
- libsuff= shlibsuff=
- ;;
- *)
- case $LD in # libtool.m4 will add one of these switches to LD
- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
- libsuff= shlibsuff= libmagic=32-bit;;
- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
- libsuff=32 shlibsuff=N32 libmagic=N32;;
- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
- libsuff=64 shlibsuff=64 libmagic=64-bit;;
- *) libsuff= shlibsuff= libmagic=never-match;;
- esac
- ;;
- esac
- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
- hardcode_into_libs=yes
- ;;
-
-# No shared lib support for Linux oldld, aout, or coff.
-linux*oldld* | linux*aout* | linux*coff*)
- dynamic_linker=no
- ;;
-
-# This must be Linux ELF.
-linux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- # This implies no fast_install, which is unacceptable.
- # Some rework will be needed to allow for fast_install
- # before this can be enabled.
- hardcode_into_libs=yes
-
- # Append ld.so.conf contents to the search path
- if test -f /etc/ld.so.conf; then
- lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
- fi
-
- # We used to test for /lib/ld.so.1 and disable shared libraries on
- # powerpc, because MkLinux only supported shared libraries with the
- # GNU dynamic linker. Since this was broken with cross compilers,
- # most powerpc-linux boxes support dynamic linking these days and
- # people can always --disable-shared, the test was removed, and we
- # assume the GNU/Linux dynamic linker is in use.
- dynamic_linker='GNU/Linux ld.so'
- ;;
-
-knetbsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='GNU ld.so'
- ;;
-
-netbsd*)
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- dynamic_linker='NetBSD (a.out) ld.so'
- else
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='NetBSD ld.elf_so'
- fi
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
-
-newsos6)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
-
-nto-qnx*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
-
-openbsd*)
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- case $host_os in
- openbsd2.[[89]] | openbsd2.[[89]].*)
- shlibpath_overrides_runpath=no
- ;;
- *)
- shlibpath_overrides_runpath=yes
- ;;
- esac
- else
- shlibpath_overrides_runpath=yes
- fi
- ;;
-
-os2*)
- libname_spec='$name'
- shrext_cmds=".dll"
- need_lib_prefix=no
- library_names_spec='$libname${shared_ext} $libname.a'
- dynamic_linker='OS/2 ld.exe'
- shlibpath_var=LIBPATH
- ;;
-
-osf3* | osf4* | osf5*)
- version_type=osf
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
- ;;
-
-sco3.2v5*)
- version_type=osf
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-solaris*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- # ldd complains unless libraries are executable
- postinstall_cmds='chmod +x $lib'
- ;;
-
-sunos4*)
- version_type=sunos
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- fi
- need_version=yes
- ;;
-
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- case $host_vendor in
- sni)
- shlibpath_overrides_runpath=no
- need_lib_prefix=no
- export_dynamic_flag_spec='${wl}-Blargedynsym'
- runpath_var=LD_RUN_PATH
- ;;
- siemens)
- need_lib_prefix=no
- ;;
- motorola)
- need_lib_prefix=no
- need_version=no
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
- ;;
- esac
- ;;
-
-sysv4*MP*)
- if test -d /usr/nec ;then
- version_type=linux
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
- soname_spec='$libname${shared_ext}.$major'
- shlibpath_var=LD_LIBRARY_PATH
- fi
- ;;
-
-uts4*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
-
-*)
- dynamic_linker=no
- ;;
-esac
-AC_MSG_RESULT([$dynamic_linker])
-test "$dynamic_linker" = no && can_build_shared=no
-])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
-
-
-# _LT_AC_TAGCONFIG
-# ----------------
-AC_DEFUN([_LT_AC_TAGCONFIG],
-[AC_ARG_WITH([tags],
- [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
- [include additional configurations @<:@automatic@:>@])],
- [tagnames="$withval"])
-
-if test -f "$ltmain" && test -n "$tagnames"; then
- if test ! -f "${ofile}"; then
- AC_MSG_WARN([output file `$ofile' does not exist])
- fi
-
- if test -z "$LTCC"; then
- eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
- if test -z "$LTCC"; then
- AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
- else
- AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
- fi
- fi
-
- # Extract list of available tagged configurations in $ofile.
- # Note that this assumes the entire list is on one line.
- available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
-
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for tagname in $tagnames; do
- IFS="$lt_save_ifs"
- # Check whether tagname contains only valid characters
- case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
- "") ;;
- *) AC_MSG_ERROR([invalid tag name: $tagname])
- ;;
- esac
-
- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
- then
- AC_MSG_ERROR([tag name \"$tagname\" already exists])
- fi
-
- # Update the list of available tags.
- if test -n "$tagname"; then
- echo appending configuration tag \"$tagname\" to $ofile
-
- case $tagname in
- CXX)
- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
- (test "X$CXX" != "Xg++"))) ; then
- AC_LIBTOOL_LANG_CXX_CONFIG
- else
- tagname=""
- fi
- ;;
-
- F77)
- if test -n "$F77" && test "X$F77" != "Xno"; then
- AC_LIBTOOL_LANG_F77_CONFIG
- else
- tagname=""
- fi
- ;;
-
- GCJ)
- if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
- AC_LIBTOOL_LANG_GCJ_CONFIG
- else
- tagname=""
- fi
- ;;
-
- RC)
- AC_LIBTOOL_LANG_RC_CONFIG
- ;;
-
- *)
- AC_MSG_ERROR([Unsupported tag name: $tagname])
- ;;
- esac
-
- # Append the new tag name to the list of available tags.
- if test -n "$tagname" ; then
- available_tags="$available_tags $tagname"
- fi
- fi
- done
- IFS="$lt_save_ifs"
-
- # Now substitute the updated list of available tags.
- if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
- mv "${ofile}T" "$ofile"
- chmod +x "$ofile"
- else
- rm -f "${ofile}T"
- AC_MSG_ERROR([unable to update list of available tagged configurations.])
- fi
-fi
-])# _LT_AC_TAGCONFIG
-
-
-# AC_LIBTOOL_DLOPEN
-# -----------------
-# enable checks for dlopen support
-AC_DEFUN([AC_LIBTOOL_DLOPEN],
- [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
-])# AC_LIBTOOL_DLOPEN
-
-
-# AC_LIBTOOL_WIN32_DLL
-# --------------------
-# declare package support for building win32 dll's
-AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
-[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
-])# AC_LIBTOOL_WIN32_DLL
-
-
-# AC_ENABLE_SHARED([DEFAULT])
-# ---------------------------
-# implement the --enable-shared flag
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
-AC_DEFUN([AC_ENABLE_SHARED],
-[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
-AC_ARG_ENABLE([shared],
- [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
- [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
- [p=${PACKAGE-default}
- case $enableval in
- yes) enable_shared=yes ;;
- no) enable_shared=no ;;
- *)
- enable_shared=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_shared=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac],
- [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
-])# AC_ENABLE_SHARED
-
-
-# AC_DISABLE_SHARED
-# -----------------
-#- set the default shared flag to --disable-shared
-AC_DEFUN([AC_DISABLE_SHARED],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-AC_ENABLE_SHARED(no)
-])# AC_DISABLE_SHARED
-
-
-# AC_ENABLE_STATIC([DEFAULT])
-# ---------------------------
-# implement the --enable-static flag
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
-AC_DEFUN([AC_ENABLE_STATIC],
-[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
-AC_ARG_ENABLE([static],
- [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
- [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
- [p=${PACKAGE-default}
- case $enableval in
- yes) enable_static=yes ;;
- no) enable_static=no ;;
- *)
- enable_static=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_static=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac],
- [enable_static=]AC_ENABLE_STATIC_DEFAULT)
-])# AC_ENABLE_STATIC
-
-
-# AC_DISABLE_STATIC
-# -----------------
-# set the default static flag to --disable-static
-AC_DEFUN([AC_DISABLE_STATIC],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-AC_ENABLE_STATIC(no)
-])# AC_DISABLE_STATIC
-
-
-# AC_ENABLE_FAST_INSTALL([DEFAULT])
-# ---------------------------------
-# implement the --enable-fast-install flag
-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
-AC_DEFUN([AC_ENABLE_FAST_INSTALL],
-[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
-AC_ARG_ENABLE([fast-install],
- [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
- [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
- [p=${PACKAGE-default}
- case $enableval in
- yes) enable_fast_install=yes ;;
- no) enable_fast_install=no ;;
- *)
- enable_fast_install=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_fast_install=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac],
- [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
-])# AC_ENABLE_FAST_INSTALL
-
-
-# AC_DISABLE_FAST_INSTALL
-# -----------------------
-# set the default to --disable-fast-install
-AC_DEFUN([AC_DISABLE_FAST_INSTALL],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-AC_ENABLE_FAST_INSTALL(no)
-])# AC_DISABLE_FAST_INSTALL
-
-
-# AC_LIBTOOL_PICMODE([MODE])
-# --------------------------
-# implement the --with-pic flag
-# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
-AC_DEFUN([AC_LIBTOOL_PICMODE],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-pic_mode=ifelse($#,1,$1,default)
-])# AC_LIBTOOL_PICMODE
-
-
-# AC_PROG_EGREP
-# -------------
-# This is predefined starting with Autoconf 2.54, so this conditional
-# definition can be removed once we require Autoconf 2.54 or later.
-m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
-[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
- [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
- then ac_cv_prog_egrep='grep -E'
- else ac_cv_prog_egrep='egrep'
- fi])
- EGREP=$ac_cv_prog_egrep
- AC_SUBST([EGREP])
-])])
-
-
-# AC_PATH_TOOL_PREFIX
-# -------------------
-# find a file program which can recognise shared library
-AC_DEFUN([AC_PATH_TOOL_PREFIX],
-[AC_REQUIRE([AC_PROG_EGREP])dnl
-AC_MSG_CHECKING([for $1])
-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
-[case $MAGIC_CMD in
-[[\\/*] | ?:[\\/]*])
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
- ;;
-*)
- lt_save_MAGIC_CMD="$MAGIC_CMD"
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
-dnl $ac_dummy forces splitting on constant user-supplied paths.
-dnl POSIX.2 word splitting is done only on the output of word expansions,
-dnl not every word. This closes a longstanding sh security hole.
- ac_dummy="ifelse([$2], , $PATH, [$2])"
- for ac_dir in $ac_dummy; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$1; then
- lt_cv_path_MAGIC_CMD="$ac_dir/$1"
- if test -n "$file_magic_test_file"; then
- case $deplibs_check_method in
- "file_magic "*)
- file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- $EGREP "$file_magic_regex" > /dev/null; then
- :
- else
- cat <<EOF 1>&2
-
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such. This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem. Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool@gnu.org
-
-EOF
- fi ;;
- esac
- fi
- break
- fi
- done
- IFS="$lt_save_ifs"
- MAGIC_CMD="$lt_save_MAGIC_CMD"
- ;;
-esac])
-MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
-if test -n "$MAGIC_CMD"; then
- AC_MSG_RESULT($MAGIC_CMD)
-else
- AC_MSG_RESULT(no)
-fi
-])# AC_PATH_TOOL_PREFIX
-
-
-# AC_PATH_MAGIC
-# -------------
-# find a file program which can recognise a shared library
-AC_DEFUN([AC_PATH_MAGIC],
-[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
-if test -z "$lt_cv_path_MAGIC_CMD"; then
- if test -n "$ac_tool_prefix"; then
- AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
- else
- MAGIC_CMD=:
- fi
-fi
-])# AC_PATH_MAGIC
-
-
-# AC_PROG_LD
-# ----------
-# find the pathname to the GNU or non-GNU linker
-AC_DEFUN([AC_PROG_LD],
-[AC_ARG_WITH([gnu-ld],
- [AC_HELP_STRING([--with-gnu-ld],
- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
- [test "$withval" = no || with_gnu_ld=yes],
- [with_gnu_ld=no])
-AC_REQUIRE([LT_AC_PROG_SED])dnl
-AC_REQUIRE([AC_PROG_CC])dnl
-AC_REQUIRE([AC_CANONICAL_HOST])dnl
-AC_REQUIRE([AC_CANONICAL_BUILD])dnl
-ac_prog=ld
-if test "$GCC" = yes; then
- # Check if gcc -print-prog-name=ld gives a path.
- AC_MSG_CHECKING([for ld used by $CC])
- case $host in
- *-*-mingw*)
- # gcc leaves a trailing carriage return which upsets mingw
- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
- *)
- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
- esac
- case $ac_prog in
- # Accept absolute paths.
- [[\\/]]* | ?:[[\\/]]*)
- re_direlt='/[[^/]][[^/]]*/\.\./'
- # Canonicalize the pathname of ld
- ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
- ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
- done
- test -z "$LD" && LD="$ac_prog"
- ;;
- "")
- # If it fails, then pretend we aren't using GCC.
- ac_prog=ld
- ;;
- *)
- # If it is relative, then search for the first ld in PATH.
- with_gnu_ld=unknown
- ;;
- esac
-elif test "$with_gnu_ld" = yes; then
- AC_MSG_CHECKING([for GNU ld])
-else
- AC_MSG_CHECKING([for non-GNU ld])
-fi
-AC_CACHE_VAL(lt_cv_path_LD,
-[if test -z "$LD"; then
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
- lt_cv_path_LD="$ac_dir/$ac_prog"
- # Check to see if the program is GNU ld. I'd rather use --version,
- # but apparently some GNU ld's only accept -v.
- # Break only if it was the GNU/non-GNU ld that we prefer.
- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
- *GNU* | *'with BFD'*)
- test "$with_gnu_ld" != no && break
- ;;
- *)
- test "$with_gnu_ld" != yes && break
- ;;
- esac
- fi
- done
- IFS="$lt_save_ifs"
-else
- lt_cv_path_LD="$LD" # Let the user override the test with a path.
-fi])
-LD="$lt_cv_path_LD"
-if test -n "$LD"; then
- AC_MSG_RESULT($LD)
-else
- AC_MSG_RESULT(no)
-fi
-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
-AC_PROG_LD_GNU
-])# AC_PROG_LD
-
-
-# AC_PROG_LD_GNU
-# --------------
-AC_DEFUN([AC_PROG_LD_GNU],
-[AC_REQUIRE([AC_PROG_EGREP])dnl
-AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
-[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
-case `$LD -v 2>&1 </dev/null` in
-*GNU* | *'with BFD'*)
- lt_cv_prog_gnu_ld=yes
- ;;
-*)
- lt_cv_prog_gnu_ld=no
- ;;
-esac])
-with_gnu_ld=$lt_cv_prog_gnu_ld
-])# AC_PROG_LD_GNU
-
-
-# AC_PROG_LD_RELOAD_FLAG
-# ----------------------
-# find reload flag for linker
-# -- PORTME Some linkers may need a different reload flag.
-AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
-[AC_CACHE_CHECK([for $LD option to reload object files],
- lt_cv_ld_reload_flag,
- [lt_cv_ld_reload_flag='-r'])
-reload_flag=$lt_cv_ld_reload_flag
-case $reload_flag in
-"" | " "*) ;;
-*) reload_flag=" $reload_flag" ;;
-esac
-reload_cmds='$LD$reload_flag -o $output$reload_objs'
-case $host_os in
- darwin*)
- if test "$GCC" = yes; then
- reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
- else
- reload_cmds='$LD$reload_flag -o $output$reload_objs'
- fi
- ;;
-esac
-])# AC_PROG_LD_RELOAD_FLAG
-
-
-# AC_DEPLIBS_CHECK_METHOD
-# -----------------------
-# how to check for library dependencies
-# -- PORTME fill in with the dynamic library characteristics
-AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
-[AC_CACHE_CHECK([how to recognise dependent libraries],
-lt_cv_deplibs_check_method,
-[lt_cv_file_magic_cmd='$MAGIC_CMD'
-lt_cv_file_magic_test_file=
-lt_cv_deplibs_check_method='unknown'
-# Need to set the preceding variable on all platforms that support
-# interlibrary dependencies.
-# 'none' -- dependencies not supported.
-# `unknown' -- same as none, but documents that we really don't know.
-# 'pass_all' -- all dependencies passed with no checks.
-# 'test_compile' -- check by making test program.
-# 'file_magic [[regex]]' -- check by looking for files in library path
-# which responds to the $file_magic_cmd with a given extended regex.
-# If you have `file' or equivalent on your system and you're not sure
-# whether `pass_all' will *always* work, you probably want this one.
-
-case $host_os in
-aix4* | aix5*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-beos*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-bsdi[[45]]*)
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
- lt_cv_file_magic_cmd='/usr/bin/file -L'
- lt_cv_file_magic_test_file=/shlib/libc.so
- ;;
-
-cygwin*)
- # func_win32_libid is a shell function defined in ltmain.sh
- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
- lt_cv_file_magic_cmd='func_win32_libid'
- ;;
-
-mingw* | pw32*)
- # Base MSYS/MinGW do not provide the 'file' command needed by
- # func_win32_libid shell function, so use a weaker test based on 'objdump'.
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
- lt_cv_file_magic_cmd='$OBJDUMP -f'
- ;;
-
-darwin* | rhapsody*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-freebsd* | kfreebsd*-gnu)
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- case $host_cpu in
- i*86 )
- # Not sure whether the presence of OpenBSD here was a mistake.
- # Let's accept both of them until this is cleared up.
- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
- ;;
- esac
- else
- lt_cv_deplibs_check_method=pass_all
- fi
- ;;
-
-gnu*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-hpux10.20* | hpux11*)
- lt_cv_file_magic_cmd=/usr/bin/file
- case "$host_cpu" in
- ia64*)
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
- ;;
- hppa*64*)
- [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
- ;;
- *)
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
- lt_cv_file_magic_test_file=/usr/lib/libc.sl
- ;;
- esac
- ;;
-
-irix5* | irix6* | nonstopux*)
- case $LD in
- *-32|*"-32 ") libmagic=32-bit;;
- *-n32|*"-n32 ") libmagic=N32;;
- *-64|*"-64 ") libmagic=64-bit;;
- *) libmagic=never-match;;
- esac
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-# This must be Linux ELF.
-linux*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
- else
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
- fi
- ;;
-
-newos6*)
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=/usr/lib/libnls.so
- ;;
-
-nto-qnx*)
- lt_cv_deplibs_check_method=unknown
- ;;
-
-openbsd*)
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
- else
- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
- fi
- ;;
-
-osf3* | osf4* | osf5*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-sco3.2v5*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-solaris*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- case $host_vendor in
- motorola)
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
- ;;
- ncr)
- lt_cv_deplibs_check_method=pass_all
- ;;
- sequent)
- lt_cv_file_magic_cmd='/bin/file'
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
- ;;
- sni)
- lt_cv_file_magic_cmd='/bin/file'
- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
- lt_cv_file_magic_test_file=/lib/libc.so
- ;;
- siemens)
- lt_cv_deplibs_check_method=pass_all
- ;;
- esac
- ;;
-
-sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
- lt_cv_deplibs_check_method=pass_all
- ;;
-esac
-])
-file_magic_cmd=$lt_cv_file_magic_cmd
-deplibs_check_method=$lt_cv_deplibs_check_method
-test -z "$deplibs_check_method" && deplibs_check_method=unknown
-])# AC_DEPLIBS_CHECK_METHOD
-
-
-# AC_PROG_NM
-# ----------
-# find the pathname to a BSD-compatible name lister
-AC_DEFUN([AC_PROG_NM],
-[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
-[if test -n "$NM"; then
- # Let the user override the test.
- lt_cv_path_NM="$NM"
-else
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- tmp_nm="$ac_dir/${ac_tool_prefix}nm"
- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
- # Check to see if the nm accepts a BSD-compat flag.
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
- # nm: unknown option "B" ignored
- # Tru64's nm complains that /dev/null is an invalid object file
- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
- */dev/null* | *'Invalid file or object type'*)
- lt_cv_path_NM="$tmp_nm -B"
- break
- ;;
- *)
- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
- */dev/null*)
- lt_cv_path_NM="$tmp_nm -p"
- break
- ;;
- *)
- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
- continue # so that we can try to find one that supports BSD flags
- ;;
- esac
- esac
- fi
- done
- IFS="$lt_save_ifs"
- test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
-fi])
-NM="$lt_cv_path_NM"
-])# AC_PROG_NM
-
-
-# AC_CHECK_LIBM
-# -------------
-# check for math library
-AC_DEFUN([AC_CHECK_LIBM],
-[AC_REQUIRE([AC_CANONICAL_HOST])dnl
-LIBM=
-case $host in
-*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
- # These system don't have libm, or don't need it
- ;;
-*-ncr-sysv4.3*)
- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
- ;;
-*)
- AC_CHECK_LIB(m, cos, LIBM="-lm")
- ;;
-esac
-])# AC_CHECK_LIBM
-
-
-# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
-# -----------------------------------
-# sets LIBLTDL to the link flags for the libltdl convenience library and
-# LTDLINCL to the include flags for the libltdl header and adds
-# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
-# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
-# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
-# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
-# '${top_srcdir}/' (note the single quotes!). If your package is not
-# flat and you're not using automake, define top_builddir and
-# top_srcdir appropriately in the Makefiles.
-AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- case $enable_ltdl_convenience in
- no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
- "") enable_ltdl_convenience=yes
- ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
- esac
- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
- # For backwards non-gettext consistent compatibility...
- INCLTDL="$LTDLINCL"
-])# AC_LIBLTDL_CONVENIENCE
-
-
-# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
-# -----------------------------------
-# sets LIBLTDL to the link flags for the libltdl installable library and
-# LTDLINCL to the include flags for the libltdl header and adds
-# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
-# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
-# DIRECTORY is not provided and an installed libltdl is not found, it is
-# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
-# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
-# quotes!). If your package is not flat and you're not using automake,
-# define top_builddir and top_srcdir appropriately in the Makefiles.
-# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
-AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
- AC_CHECK_LIB(ltdl, lt_dlinit,
- [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
- [if test x"$enable_ltdl_install" = xno; then
- AC_MSG_WARN([libltdl not installed, but installation disabled])
- else
- enable_ltdl_install=yes
- fi
- ])
- if test x"$enable_ltdl_install" = x"yes"; then
- ac_configure_args="$ac_configure_args --enable-ltdl-install"
- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
- else
- ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
- LIBLTDL="-lltdl"
- LTDLINCL=
- fi
- # For backwards non-gettext consistent compatibility...
- INCLTDL="$LTDLINCL"
-])# AC_LIBLTDL_INSTALLABLE
-
-
-# AC_LIBTOOL_CXX
-# --------------
-# enable support for C++ libraries
-AC_DEFUN([AC_LIBTOOL_CXX],
-[AC_REQUIRE([_LT_AC_LANG_CXX])
-])# AC_LIBTOOL_CXX
-
-
-# _LT_AC_LANG_CXX
-# ---------------
-AC_DEFUN([_LT_AC_LANG_CXX],
-[AC_REQUIRE([AC_PROG_CXX])
-AC_REQUIRE([_LT_AC_PROG_CXXCPP])
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
-])# _LT_AC_LANG_CXX
-
-# _LT_AC_PROG_CXXCPP
-# ---------------
-AC_DEFUN([_LT_AC_PROG_CXXCPP],
-[
-AC_REQUIRE([AC_PROG_CXX])
-if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
- (test "X$CXX" != "Xg++"))) ; then
- AC_PROG_CXXCPP
-fi
-])# _LT_AC_PROG_CXXCPP
-
-# AC_LIBTOOL_F77
-# --------------
-# enable support for Fortran 77 libraries
-AC_DEFUN([AC_LIBTOOL_F77],
-[AC_REQUIRE([_LT_AC_LANG_F77])
-])# AC_LIBTOOL_F77
-
-
-# _LT_AC_LANG_F77
-# ---------------
-AC_DEFUN([_LT_AC_LANG_F77],
-[AC_REQUIRE([AC_PROG_F77])
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
-])# _LT_AC_LANG_F77
-
-
-# AC_LIBTOOL_GCJ
-# --------------
-# enable support for GCJ libraries
-AC_DEFUN([AC_LIBTOOL_GCJ],
-[AC_REQUIRE([_LT_AC_LANG_GCJ])
-])# AC_LIBTOOL_GCJ
-
-
-# _LT_AC_LANG_GCJ
-# ---------------
-AC_DEFUN([_LT_AC_LANG_GCJ],
-[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
- [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
- [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
- [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
-])# _LT_AC_LANG_GCJ
-
-
-# AC_LIBTOOL_RC
-# --------------
-# enable support for Windows resource files
-AC_DEFUN([AC_LIBTOOL_RC],
-[AC_REQUIRE([LT_AC_PROG_RC])
-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
-])# AC_LIBTOOL_RC
-
-
-# AC_LIBTOOL_LANG_C_CONFIG
-# ------------------------
-# Ensure that the configuration vars for the C compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
-AC_DEFUN([_LT_AC_LANG_C_CONFIG],
-[lt_save_CC="$CC"
-AC_LANG_PUSH(C)
-
-# Source file extension for C test sources.
-ac_ext=c
-
-# Object file extension for compiled C test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="int some_variable = 0;\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='int main(){return(0);}\n'
-
-_LT_AC_SYS_COMPILER
-
-#
-# Check for any special shared library compilation flags.
-#
-_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
-if test "$GCC" = no; then
- case $host_os in
- sco3.2v5*)
- _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
- ;;
- esac
-fi
-if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
- AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
- if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
- else
- AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
- _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
- fi
-fi
-
-
-#
-# Check to make sure the static flag actually works.
-#
-AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
- _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
- $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
- [],
- [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
-
-
-## CAVEAT EMPTOR:
-## There is no encapsulation within the following macros, do not change
-## the running order or otherwise move them around unless you know exactly
-## what you are doing...
-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
-AC_LIBTOOL_PROG_CC_C_O($1)
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
-AC_LIBTOOL_SYS_LIB_STRIP
-AC_LIBTOOL_DLOPEN_SELF($1)
-
-# Report which libraries types will actually be built
-AC_MSG_CHECKING([if libtool supports shared libraries])
-AC_MSG_RESULT([$can_build_shared])
-
-AC_MSG_CHECKING([whether to build shared libraries])
-test "$can_build_shared" = "no" && enable_shared=no
-
-# On AIX, shared libraries and static libraries use the same namespace, and
-# are all built from PIC.
-case "$host_os" in
-aix3*)
- test "$enable_shared" = yes && enable_static=no
- if test -n "$RANLIB"; then
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
- postinstall_cmds='$RANLIB $lib'
- fi
- ;;
-
-aix4* | aix5*)
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
- test "$enable_shared" = yes && enable_static=no
- fi
- ;;
-esac
-AC_MSG_RESULT([$enable_shared])
-
-AC_MSG_CHECKING([whether to build static libraries])
-# Make sure either enable_shared or enable_static is yes.
-test "$enable_shared" = yes || enable_static=yes
-AC_MSG_RESULT([$enable_static])
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_POP
-CC="$lt_save_CC"
-])# AC_LIBTOOL_LANG_C_CONFIG
-
-
-# AC_LIBTOOL_LANG_CXX_CONFIG
-# --------------------------
-# Ensure that the configuration vars for the C compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
-AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
-[AC_LANG_PUSH(C++)
-AC_REQUIRE([AC_PROG_CXX])
-AC_REQUIRE([_LT_AC_PROG_CXXCPP])
-
-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
-_LT_AC_TAGVAR(allow_undefined_flag, $1)=
-_LT_AC_TAGVAR(always_export_symbols, $1)=no
-_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
-_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
-_LT_AC_TAGVAR(hardcode_direct, $1)=no
-_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
-_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
-_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
-_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
-_LT_AC_TAGVAR(hardcode_automatic, $1)=no
-_LT_AC_TAGVAR(module_cmds, $1)=
-_LT_AC_TAGVAR(module_expsym_cmds, $1)=
-_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
-_LT_AC_TAGVAR(no_undefined_flag, $1)=
-_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
-_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
-
-# Dependencies to place before and after the object being linked:
-_LT_AC_TAGVAR(predep_objects, $1)=
-_LT_AC_TAGVAR(postdep_objects, $1)=
-_LT_AC_TAGVAR(predeps, $1)=
-_LT_AC_TAGVAR(postdeps, $1)=
-_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
-
-# Source file extension for C++ test sources.
-ac_ext=cc
-
-# Object file extension for compiled C++ test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="int some_variable = 0;\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_AC_SYS_COMPILER
-
-# Allow CC to be a program name with arguments.
-lt_save_CC=$CC
-lt_save_LD=$LD
-lt_save_GCC=$GCC
-GCC=$GXX
-lt_save_with_gnu_ld=$with_gnu_ld
-lt_save_path_LD=$lt_cv_path_LD
-if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
- lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
-else
- unset lt_cv_prog_gnu_ld
-fi
-if test -n "${lt_cv_path_LDCXX+set}"; then
- lt_cv_path_LD=$lt_cv_path_LDCXX
-else
- unset lt_cv_path_LD
-fi
-test -z "${LDCXX+set}" || LD=$LDCXX
-CC=${CXX-"c++"}
-compiler=$CC
-_LT_AC_TAGVAR(compiler, $1)=$CC
-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
-
-# We don't want -fno-exception wen compiling C++ code, so set the
-# no_builtin_flag separately
-if test "$GXX" = yes; then
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
-else
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
-fi
-
-if test "$GXX" = yes; then
- # Set up default GNU C++ configuration
-
- AC_PROG_LD
-
- # Check if GNU C++ uses GNU ld as the underlying linker, since the
- # archiving commands below assume that GNU ld is being used.
- if test "$with_gnu_ld" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
-
- # If archive_cmds runs LD, not CC, wlarc should be empty
- # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
- # investigate it a little bit more. (MM)
- wlarc='${wl}'
-
- # ancient GNU ld didn't support --whole-archive et. al.
- if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
- grep 'no-whole-archive' > /dev/null; then
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- else
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
- fi
- else
- with_gnu_ld=no
- wlarc=
-
- # A generic and very simple default shared library creation
- # command for GNU C++ for the case where it uses the native
- # linker, instead of GNU ld. If possible, this setting should
- # overridden to take advantage of the native linker features on
- # the platform it is being used on.
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
- fi
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
-
-else
- GXX=no
- with_gnu_ld=no
- wlarc=
-fi
-
-# PORTME: fill in a description of your system's C++ link characteristics
-AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
-_LT_AC_TAGVAR(ld_shlibs, $1)=yes
-case $host_os in
- aix3*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- aix4* | aix5*)
- if test "$host_cpu" = ia64; then
- # On IA64, the linker does run time linking by default, so we don't
- # have to do anything special.
- aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
- no_entry_flag=""
- else
- aix_use_runtimelinking=no
-
- # Test if we are trying to use run time linking or normal
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- # need to do runtime linking.
- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
- for ld_flag in $LDFLAGS; do
- case $ld_flag in
- *-brtl*)
- aix_use_runtimelinking=yes
- break
- ;;
- esac
- done
- esac
-
- exp_sym_flag='-bexport'
- no_entry_flag='-bnoentry'
- fi
-
- # When large executables or shared objects are built, AIX ld can
- # have problems creating the table of contents. If linking a library
- # or program results in "error TOC overflow" add -mminimal-toc to
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
-
- _LT_AC_TAGVAR(archive_cmds, $1)=''
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
-
- if test "$GXX" = yes; then
- case $host_os in aix4.[012]|aix4.[012].*)
- # We only want to do this on AIX 4.2 and lower, the check
- # below for broken collect2 doesn't work under 4.3+
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- else
- # We have old collect2
- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
- # It fails to find uninstalled libraries when the uninstalled
- # path is not listed in the libpath. Setting hardcode_minus_L
- # to unsupported forces relinking
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
- fi
- esac
- shared_flag='-shared'
- else
- # not using gcc
- if test "$host_cpu" = ia64; then
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
- fi
- fi
- fi
-
- # It seems that -bexpall does not export symbols beginning with
- # underscore (_), so it is better to generate a list of symbols to export.
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
- if test "$aix_use_runtimelinking" = yes; then
- # Warning - without using the other runtime loading flags (-brtl),
- # -berok will link without error, but may produce a broken library.
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
- # Determine the default libpath from the value encoded in an empty executable.
- _LT_AC_SYS_LIBPATH_AIX
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
-
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
- else
- if test "$host_cpu" = ia64; then
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
- else
- # Determine the default libpath from the value encoded in an empty executable.
- _LT_AC_SYS_LIBPATH_AIX
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
- # Warning - without using the other run time loading flags,
- # -berok will link without error, but may produce a broken library.
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
- # -bexpall does not export symbols beginning with underscore (_)
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
- # Exported symbols can be pulled into shared objects from archives
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
- # This is similar to how AIX traditionally builds it's shared libraries.
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
- fi
- fi
- ;;
- chorus*)
- case $cc_basename in
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
-
-
- cygwin* | mingw* | pw32*)
- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
- # as there is no search path for DLLs.
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- _LT_AC_TAGVAR(always_export_symbols, $1)=no
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
-
- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
- # If the export-symbols file already is a .def file (1st line
- # is EXPORTS), use it as is; otherwise, prepend...
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
- cp $export_symbols $output_objdir/$soname.def;
- else
- echo EXPORTS > $output_objdir/$soname.def;
- cat $export_symbols >> $output_objdir/$soname.def;
- fi~
- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- darwin* | rhapsody*)
- case "$host_os" in
- rhapsody* | darwin1.[[012]])
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
- ;;
- *) # Darwin 1.3 on
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- else
- case ${MACOSX_DEPLOYMENT_TARGET} in
- 10.[[012]])
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- ;;
- 10.*)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
- ;;
- esac
- fi
- ;;
- esac
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
-
- if test "$GXX" = yes ; then
- lt_int_apple_cc_single_mod=no
- output_verbose_link_cmd='echo'
- if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
- lt_int_apple_cc_single_mod=yes
- fi
- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- fi
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
- if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- else
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- fi
- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- else
- case "$cc_basename" in
- xlc*)
- output_verbose_link_cmd='echo'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- ;;
- *)
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- fi
- ;;
-
- dgux*)
- case $cc_basename in
- ec++)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- ghcx)
- # Green Hills C++ Compiler
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
- freebsd[12]*)
- # C++ shared libraries reported to be fairly broken before switch to ELF
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- freebsd-elf*)
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- ;;
- freebsd* | kfreebsd*-gnu)
- # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
- # conventions
- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
- ;;
- gnu*)
- ;;
- hpux9*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
- # but as the default
- # location of the library.
-
- case $cc_basename in
- CC)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- aCC)
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- else
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
- ;;
- hpux10*|hpux11*)
- if test $with_gnu_ld = no; then
- case "$host_cpu" in
- hppa*64*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- ;;
- ia64*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- ;;
- *)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- ;;
- esac
- fi
- case "$host_cpu" in
- hppa*64*)
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
- ia64*)
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
- # but as the default
- # location of the library.
- ;;
- *)
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
- # but as the default
- # location of the library.
- ;;
- esac
-
- case $cc_basename in
- CC)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- aCC)
- case "$host_cpu" in
- hppa*64*|ia64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- esac
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes; then
- if test $with_gnu_ld = no; then
- case "$host_cpu" in
- ia64*|hppa*64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- esac
- fi
- else
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
- ;;
- irix5* | irix6*)
- case $cc_basename in
- CC)
- # SGI C++
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
-
- # Archives containing C++ object files must be created using
- # "CC -ar", where "CC" is the IRIX C++ compiler. This is
- # necessary to make sure instantiated templates are included
- # in the archive.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
- ;;
- *)
- if test "$GXX" = yes; then
- if test "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
- fi
- fi
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
- ;;
- esac
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- ;;
- linux*)
- case $cc_basename in
- KCC)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
-
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
-
- # Archives containing C++ object files must be created using
- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
- ;;
- icpc)
- # Intel C++
- with_gnu_ld=yes
- # version 8.0 and above of icpc choke on multiply defined symbols
- # if we add $predep_objects and $postdep_objects, however 7.1 and
- # earlier do not add the objects themselves.
- case `$CC -V 2>&1` in
- *"Version 7."*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- ;;
- *) # Version 8.0 or newer
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- ;;
- esac
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
- ;;
- cxx)
- # Compaq C++
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
-
- runpath_var=LD_RUN_PATH
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- esac
- ;;
- lynxos*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- m88k*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- mvs*)
- case $cc_basename in
- cxx)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
- wlarc=
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- fi
- # Workaround some broken pre-1.5 toolchains
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
- ;;
- openbsd2*)
- # C++ shared libraries are fairly broken
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- openbsd*)
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- fi
- output_verbose_link_cmd='echo'
- ;;
- osf3*)
- case $cc_basename in
- KCC)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
-
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Archives containing C++ object files must be created using
- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
-
- ;;
- RCC)
- # Rational C++ 2.4.1
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- cxx)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
-
- else
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
- ;;
- osf4* | osf5*)
- case $cc_basename in
- KCC)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
-
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Archives containing C++ object files must be created using
- # the KAI C++ compiler.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
- ;;
- RCC)
- # Rational C++ 2.4.1
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- cxx)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
- echo "-hidden">> $lib.exp~
- $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
- $rm $lib.exp'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
-
- else
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
- ;;
- psos*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- sco*)
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- case $cc_basename in
- CC)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
- sunos4*)
- case $cc_basename in
- CC)
- # Sun C++ 4.x
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- lcc)
- # Lucid
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
- solaris*)
- case $cc_basename in
- CC)
- # Sun C++ 4.2, 5.x and Centerline C++
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- case $host_os in
- solaris2.[0-5] | solaris2.[0-5].*) ;;
- *)
- # The C++ compiler is used as linker so we must use $wl
- # flag to pass the commands to the underlying system
- # linker.
- # Supported since Solaris 2.6 (maybe 2.5.1?)
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
- ;;
- esac
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
-
- # Archives containing C++ object files must be created using
- # "CC -xar", where "CC" is the Sun C++ compiler. This is
- # necessary to make sure instantiated templates are included
- # in the archive.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
- ;;
- gcx)
- # Green Hills C++ Compiler
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
-
- # The C++ compiler must be used to create the archive.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
- ;;
- *)
- # GNU C++ compiler with Solaris linker
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
- if $CC --version | grep -v '^2\.7' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
- else
- # g++ 2.7 appears to require `-G' NOT `-shared' on this
- # platform.
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
-
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
- fi
-
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
- fi
- ;;
- esac
- ;;
- sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- ;;
- tandem*)
- case $cc_basename in
- NCC)
- # NonStop-UX NCC 3.20
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- ;;
- vxworks*)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
-esac
-AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
-
-_LT_AC_TAGVAR(GCC, $1)="$GXX"
-_LT_AC_TAGVAR(LD, $1)="$LD"
-
-## CAVEAT EMPTOR:
-## There is no encapsulation within the following macros, do not change
-## the running order or otherwise move them around unless you know exactly
-## what you are doing...
-AC_LIBTOOL_POSTDEP_PREDEP($1)
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
-AC_LIBTOOL_PROG_CC_C_O($1)
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
-AC_LIBTOOL_SYS_LIB_STRIP
-AC_LIBTOOL_DLOPEN_SELF($1)
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_POP
-CC=$lt_save_CC
-LDCXX=$LD
-LD=$lt_save_LD
-GCC=$lt_save_GCC
-with_gnu_ldcxx=$with_gnu_ld
-with_gnu_ld=$lt_save_with_gnu_ld
-lt_cv_path_LDCXX=$lt_cv_path_LD
-lt_cv_path_LD=$lt_save_path_LD
-lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
-lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
-])# AC_LIBTOOL_LANG_CXX_CONFIG
-
-# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
-# ------------------------
-# Figure out "hidden" library dependencies from verbose
-# compiler output when linking a shared library.
-# Parse the compiler output and extract the necessary
-# objects, libraries and library flags.
-AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
-dnl we can't use the lt_simple_compile_test_code here,
-dnl because it contains code intended for an executable,
-dnl not a library. It's possible we should let each
-dnl tag define a new lt_????_link_test_code variable,
-dnl but it's only used here...
-ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
-int a;
-void foo (void) { a = 0; }
-EOF
-],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
-class Foo
-{
-public:
- Foo (void) { a = 0; }
-private:
- int a;
-};
-EOF
-],[$1],[F77],[cat > conftest.$ac_ext <<EOF
- subroutine foo
- implicit none
- integer*4 a
- a=0
- return
- end
-EOF
-],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
-public class foo {
- private int a;
- public void bar (void) {
- a = 0;
- }
-};
-EOF
-])
-dnl Parse the compiler output and extract the necessary
-dnl objects, libraries and library flags.
-if AC_TRY_EVAL(ac_compile); then
- # Parse the compiler output and extract the necessary
- # objects, libraries and library flags.
-
- # Sentinel used to keep track of whether or not we are before
- # the conftest object file.
- pre_test_object_deps_done=no
-
- # The `*' in the case matches for architectures that use `case' in
- # $output_verbose_cmd can trigger glob expansion during the loop
- # eval without this substitution.
- output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
-
- for p in `eval $output_verbose_link_cmd`; do
- case $p in
-
- -L* | -R* | -l*)
- # Some compilers place space between "-{L,R}" and the path.
- # Remove the space.
- if test $p = "-L" \
- || test $p = "-R"; then
- prev=$p
- continue
- else
- prev=
- fi
-
- if test "$pre_test_object_deps_done" = no; then
- case $p in
- -L* | -R*)
- # Internal compiler library paths should come after those
- # provided the user. The postdeps already come after the
- # user supplied libs so there is no need to process them.
- if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
- _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
- else
- _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
- fi
- ;;
- # The "-l" case would never come before the object being
- # linked, so don't bother handling this case.
- esac
- else
- if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
- _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
- else
- _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
- fi
- fi
- ;;
-
- *.$objext)
- # This assumes that the test object file only shows up
- # once in the compiler output.
- if test "$p" = "conftest.$objext"; then
- pre_test_object_deps_done=yes
- continue
- fi
-
- if test "$pre_test_object_deps_done" = no; then
- if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
- _LT_AC_TAGVAR(predep_objects, $1)="$p"
- else
- _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
- fi
- else
- if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
- _LT_AC_TAGVAR(postdep_objects, $1)="$p"
- else
- _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
- fi
- fi
- ;;
-
- *) ;; # Ignore the rest.
-
- esac
- done
-
- # Clean up.
- rm -f a.out a.exe
-else
- echo "libtool.m4: error: problem compiling $1 test program"
-fi
-
-$rm -f confest.$objext
-
-case " $_LT_AC_TAGVAR(postdeps, $1) " in
-*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
-esac
-])# AC_LIBTOOL_POSTDEP_PREDEP
-
-# AC_LIBTOOL_LANG_F77_CONFIG
-# ------------------------
-# Ensure that the configuration vars for the C compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
-AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
-[AC_REQUIRE([AC_PROG_F77])
-AC_LANG_PUSH(Fortran 77)
-
-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
-_LT_AC_TAGVAR(allow_undefined_flag, $1)=
-_LT_AC_TAGVAR(always_export_symbols, $1)=no
-_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
-_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
-_LT_AC_TAGVAR(hardcode_direct, $1)=no
-_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
-_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
-_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
-_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
-_LT_AC_TAGVAR(hardcode_automatic, $1)=no
-_LT_AC_TAGVAR(module_cmds, $1)=
-_LT_AC_TAGVAR(module_expsym_cmds, $1)=
-_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
-_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
-_LT_AC_TAGVAR(no_undefined_flag, $1)=
-_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
-_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
-
-# Source file extension for f77 test sources.
-ac_ext=f
-
-# Object file extension for compiled f77 test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code=" subroutine t\n return\n end\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code=" program t\n end\n"
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_AC_SYS_COMPILER
-
-# Allow CC to be a program name with arguments.
-lt_save_CC="$CC"
-CC=${F77-"f77"}
-compiler=$CC
-_LT_AC_TAGVAR(compiler, $1)=$CC
-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
-
-AC_MSG_CHECKING([if libtool supports shared libraries])
-AC_MSG_RESULT([$can_build_shared])
-
-AC_MSG_CHECKING([whether to build shared libraries])
-test "$can_build_shared" = "no" && enable_shared=no
-
-# On AIX, shared libraries and static libraries use the same namespace, and
-# are all built from PIC.
-case "$host_os" in
-aix3*)
- test "$enable_shared" = yes && enable_static=no
- if test -n "$RANLIB"; then
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
- postinstall_cmds='$RANLIB $lib'
- fi
- ;;
-aix4* | aix5*)
- test "$enable_shared" = yes && enable_static=no
- ;;
-esac
-AC_MSG_RESULT([$enable_shared])
-
-AC_MSG_CHECKING([whether to build static libraries])
-# Make sure either enable_shared or enable_static is yes.
-test "$enable_shared" = yes || enable_static=yes
-AC_MSG_RESULT([$enable_static])
-
-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
-
-_LT_AC_TAGVAR(GCC, $1)="$G77"
-_LT_AC_TAGVAR(LD, $1)="$LD"
-
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
-AC_LIBTOOL_PROG_CC_C_O($1)
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
-AC_LIBTOOL_SYS_LIB_STRIP
-
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_POP
-CC="$lt_save_CC"
-])# AC_LIBTOOL_LANG_F77_CONFIG
-
-
-# AC_LIBTOOL_LANG_GCJ_CONFIG
-# --------------------------
-# Ensure that the configuration vars for the C compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
-AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
-[AC_LANG_SAVE
-
-# Source file extension for Java test sources.
-ac_ext=java
-
-# Object file extension for compiled Java test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code="class foo {}\n"
-
-# Code to be used in simple link tests
-lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_AC_SYS_COMPILER
-
-# Allow CC to be a program name with arguments.
-lt_save_CC="$CC"
-CC=${GCJ-"gcj"}
-compiler=$CC
-_LT_AC_TAGVAR(compiler, $1)=$CC
-
-# GCJ did not exist at the time GCC didn't implicitly link libc in.
-_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
-
-## CAVEAT EMPTOR:
-## There is no encapsulation within the following macros, do not change
-## the running order or otherwise move them around unless you know exactly
-## what you are doing...
-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
-AC_LIBTOOL_PROG_COMPILER_PIC($1)
-AC_LIBTOOL_PROG_CC_C_O($1)
-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
-AC_LIBTOOL_PROG_LD_SHLIBS($1)
-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
-AC_LIBTOOL_SYS_LIB_STRIP
-AC_LIBTOOL_DLOPEN_SELF($1)
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_RESTORE
-CC="$lt_save_CC"
-])# AC_LIBTOOL_LANG_GCJ_CONFIG
-
-
-# AC_LIBTOOL_LANG_RC_CONFIG
-# --------------------------
-# Ensure that the configuration vars for the Windows resource compiler are
-# suitably defined. Those variables are subsequently used by
-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
-AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
-AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
-[AC_LANG_SAVE
-
-# Source file extension for RC test sources.
-ac_ext=rc
-
-# Object file extension for compiled RC test sources.
-objext=o
-_LT_AC_TAGVAR(objext, $1)=$objext
-
-# Code to be used in simple compile tests
-lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
-
-# Code to be used in simple link tests
-lt_simple_link_test_code="$lt_simple_compile_test_code"
-
-# ltmain only uses $CC for tagged configurations so make sure $CC is set.
-_LT_AC_SYS_COMPILER
-
-# Allow CC to be a program name with arguments.
-lt_save_CC="$CC"
-CC=${RC-"windres"}
-compiler=$CC
-_LT_AC_TAGVAR(compiler, $1)=$CC
-_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
-
-AC_LIBTOOL_CONFIG($1)
-
-AC_LANG_RESTORE
-CC="$lt_save_CC"
-])# AC_LIBTOOL_LANG_RC_CONFIG
-
-
-# AC_LIBTOOL_CONFIG([TAGNAME])
-# ----------------------------
-# If TAGNAME is not passed, then create an initial libtool script
-# with a default configuration from the untagged config vars. Otherwise
-# add code to config.status for appending the configuration named by
-# TAGNAME from the matching tagged config vars.
-AC_DEFUN([AC_LIBTOOL_CONFIG],
-[# The else clause should only fire when bootstrapping the
-# libtool distribution, otherwise you forgot to ship ltmain.sh
-# with your package, and you will get complaints that there are
-# no rules to generate ltmain.sh.
-if test -f "$ltmain"; then
- # See if we are running on zsh, and set the options which allow our commands through
- # without removal of \ escapes.
- if test -n "${ZSH_VERSION+set}" ; then
- setopt NO_GLOB_SUBST
- fi
- # Now quote all the things that may contain metacharacters while being
- # careful not to overquote the AC_SUBSTed values. We take copies of the
- # variables and quote the copies for generation of the libtool script.
- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
- SED SHELL STRIP \
- libname_spec library_names_spec soname_spec extract_expsyms_cmds \
- old_striplib striplib file_magic_cmd finish_cmds finish_eval \
- deplibs_check_method reload_flag reload_cmds need_locks \
- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
- lt_cv_sys_global_symbol_to_c_name_address \
- sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
- old_postinstall_cmds old_postuninstall_cmds \
- _LT_AC_TAGVAR(compiler, $1) \
- _LT_AC_TAGVAR(CC, $1) \
- _LT_AC_TAGVAR(LD, $1) \
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
- _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
- _LT_AC_TAGVAR(old_archive_cmds, $1) \
- _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
- _LT_AC_TAGVAR(predep_objects, $1) \
- _LT_AC_TAGVAR(postdep_objects, $1) \
- _LT_AC_TAGVAR(predeps, $1) \
- _LT_AC_TAGVAR(postdeps, $1) \
- _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
- _LT_AC_TAGVAR(archive_cmds, $1) \
- _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
- _LT_AC_TAGVAR(postinstall_cmds, $1) \
- _LT_AC_TAGVAR(postuninstall_cmds, $1) \
- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
- _LT_AC_TAGVAR(allow_undefined_flag, $1) \
- _LT_AC_TAGVAR(no_undefined_flag, $1) \
- _LT_AC_TAGVAR(export_symbols_cmds, $1) \
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
- _LT_AC_TAGVAR(hardcode_automatic, $1) \
- _LT_AC_TAGVAR(module_cmds, $1) \
- _LT_AC_TAGVAR(module_expsym_cmds, $1) \
- _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
- _LT_AC_TAGVAR(exclude_expsyms, $1) \
- _LT_AC_TAGVAR(include_expsyms, $1); do
-
- case $var in
- _LT_AC_TAGVAR(old_archive_cmds, $1) | \
- _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
- _LT_AC_TAGVAR(archive_cmds, $1) | \
- _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
- _LT_AC_TAGVAR(module_cmds, $1) | \
- _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
- _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
- extract_expsyms_cmds | reload_cmds | finish_cmds | \
- postinstall_cmds | postuninstall_cmds | \
- old_postinstall_cmds | old_postuninstall_cmds | \
- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- # Double-quote double-evaled strings.
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
- ;;
- *)
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
- ;;
- esac
- done
-
- case $lt_echo in
- *'\[$]0 --fallback-echo"')
- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
- ;;
- esac
-
-ifelse([$1], [],
- [cfgfile="${ofile}T"
- trap "$rm \"$cfgfile\"; exit 1" 1 2 15
- $rm -f "$cfgfile"
- AC_MSG_NOTICE([creating $ofile])],
- [cfgfile="$ofile"])
-
- cat <<__EOF__ >> "$cfgfile"
-ifelse([$1], [],
-[#! $SHELL
-
-# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
-# NOTE: Changes made to this file will be lost: look at ltmain.sh.
-#
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
-# Free Software Foundation, Inc.
-#
-# This file is part of GNU Libtool:
-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# A sed program that does not truncate output.
-SED=$lt_SED
-
-# Sed that helps us avoid accidentally triggering echo(1) options like -n.
-Xsed="$SED -e s/^X//"
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-# The names of the tagged configurations supported by this script.
-available_tags=
-
-# ### BEGIN LIBTOOL CONFIG],
-[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
-
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-
-# Shell to use when invoking shell scripts.
-SHELL=$lt_SHELL
-
-# Whether or not to build shared libraries.
-build_libtool_libs=$enable_shared
-
-# Whether or not to build static libraries.
-build_old_libs=$enable_static
-
-# Whether or not to add -lc for building shared libraries.
-build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
-
-# Whether or not to disallow shared libs when runtime libs are static
-allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
-
-# Whether or not to optimize for fast installation.
-fast_install=$enable_fast_install
-
-# The host system.
-host_alias=$host_alias
-host=$host
-
-# An echo program that does not interpret backslashes.
-echo=$lt_echo
-
-# The archiver.
-AR=$lt_AR
-AR_FLAGS=$lt_AR_FLAGS
-
-# A C compiler.
-LTCC=$lt_LTCC
-
-# A language-specific compiler.
-CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
-
-# Is the compiler the GNU C compiler?
-with_gcc=$_LT_AC_TAGVAR(GCC, $1)
-
-# An ERE matcher.
-EGREP=$lt_EGREP
-
-# The linker used to build libraries.
-LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
-
-# Whether we need hard or soft links.
-LN_S=$lt_LN_S
-
-# A BSD-compatible nm program.
-NM=$lt_NM
-
-# A symbol stripping program
-STRIP=$lt_STRIP
-
-# Used to examine libraries when file_magic_cmd begins "file"
-MAGIC_CMD=$MAGIC_CMD
-
-# Used on cygwin: DLL creation program.
-DLLTOOL="$DLLTOOL"
-
-# Used on cygwin: object dumper.
-OBJDUMP="$OBJDUMP"
-
-# Used on cygwin: assembler.
-AS="$AS"
-
-# The name of the directory that contains temporary libtool files.
-objdir=$objdir
-
-# How to create reloadable object files.
-reload_flag=$lt_reload_flag
-reload_cmds=$lt_reload_cmds
-
-# How to pass a linker flag through the compiler.
-wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
-
-# Object file suffix (normally "o").
-objext="$ac_objext"
-
-# Old archive suffix (normally "a").
-libext="$libext"
-
-# Shared library suffix (normally ".so").
-shrext_cmds='$shrext_cmds'
-
-# Executable file suffix (normally "").
-exeext="$exeext"
-
-# Additional compiler flags for building library objects.
-pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
-pic_mode=$pic_mode
-
-# What is the maximum length of a command?
-max_cmd_len=$lt_cv_sys_max_cmd_len
-
-# Does compiler simultaneously support -c and -o options?
-compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
-
-# Must we lock files when doing compilation ?
-need_locks=$lt_need_locks
-
-# Do we need the lib prefix for modules?
-need_lib_prefix=$need_lib_prefix
-
-# Do we need a version for libraries?
-need_version=$need_version
-
-# Whether dlopen is supported.
-dlopen_support=$enable_dlopen
-
-# Whether dlopen of programs is supported.
-dlopen_self=$enable_dlopen_self
-
-# Whether dlopen of statically linked programs is supported.
-dlopen_self_static=$enable_dlopen_self_static
-
-# Compiler flag to prevent dynamic linking.
-link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
-
-# Compiler flag to turn off builtin functions.
-no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
-
-# Compiler flag to allow reflexive dlopens.
-export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
-
-# Compiler flag to generate shared objects directly from archives.
-whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
-
-# Compiler flag to generate thread-safe objects.
-thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
-
-# Library versioning type.
-version_type=$version_type
-
-# Format of library name prefix.
-libname_spec=$lt_libname_spec
-
-# List of archive names. First name is the real one, the rest are links.
-# The last name is the one that the linker finds with -lNAME.
-library_names_spec=$lt_library_names_spec
-
-# The coded name of the library, if different from the real name.
-soname_spec=$lt_soname_spec
-
-# Commands used to build and install an old-style archive.
-RANLIB=$lt_RANLIB
-old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
-old_postinstall_cmds=$lt_old_postinstall_cmds
-old_postuninstall_cmds=$lt_old_postuninstall_cmds
-
-# Create an old-style archive from a shared archive.
-old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
-
-# Create a temporary old-style archive to link instead of a shared archive.
-old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
-
-# Commands used to build and install a shared archive.
-archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
-archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
-postinstall_cmds=$lt_postinstall_cmds
-postuninstall_cmds=$lt_postuninstall_cmds
-
-# Commands used to build a loadable module (assumed same as above if empty)
-module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
-module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
-
-# Commands to strip libraries.
-old_striplib=$lt_old_striplib
-striplib=$lt_striplib
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
-
-# Dependencies to place before the objects being linked to create a
-# shared library.
-predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
-
-# Dependencies to place after the objects being linked to create a
-# shared library.
-postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
-
-# The library search path used internally by the compiler when linking
-# a shared library.
-compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
-
-# Method to check whether dependent libraries are shared objects.
-deplibs_check_method=$lt_deplibs_check_method
-
-# Command to use when deplibs_check_method == file_magic.
-file_magic_cmd=$lt_file_magic_cmd
-
-# Flag that allows shared libraries with undefined symbols to be built.
-allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
-
-# Flag that forces no undefined symbols.
-no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
-
-# Commands used to finish a libtool library installation in a directory.
-finish_cmds=$lt_finish_cmds
-
-# Same as above, but a single script fragment to be evaled but not shown.
-finish_eval=$lt_finish_eval
-
-# Take the output of nm and produce a listing of raw symbols and C names.
-global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
-
-# Transform the output of nm in a proper C declaration
-global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
-
-# Transform the output of nm in a C name address pair
-global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
-
-# This is the shared library runtime path variable.
-runpath_var=$runpath_var
-
-# This is the shared library path variable.
-shlibpath_var=$shlibpath_var
-
-# Is shlibpath searched before the hard-coded library search path?
-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
-
-# How to hardcode a shared library path into an executable.
-hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
-
-# Whether we should hardcode library paths into libraries.
-hardcode_into_libs=$hardcode_into_libs
-
-# Flag to hardcode \$libdir into a binary during linking.
-# This must work even if \$libdir does not exist.
-hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
-
-# If ld is used when linking, flag to hardcode \$libdir into
-# a binary during linking. This must work even if \$libdir does
-# not exist.
-hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
-
-# Whether we need a single -rpath flag with a separated argument.
-hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
-
-# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
-# resulting binary.
-hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
-
-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
-# resulting binary.
-hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
-
-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
-# the resulting binary.
-hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
-
-# Set to yes if building a shared library automatically hardcodes DIR into the library
-# and all subsequent libraries and executables linked against it.
-hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
-
-# Variables whose values should be saved in libtool wrapper scripts and
-# restored at relink time.
-variables_saved_for_relink="$variables_saved_for_relink"
-
-# Whether libtool must link a program against all its dependency libraries.
-link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
-
-# Compile-time system search path for libraries
-sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
-
-# Run-time system search path for libraries
-sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
-
-# Fix the shell variable \$srcfile for the compiler.
-fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
-
-# Set to yes if exported symbols are required.
-always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
-
-# The commands to list exported symbols.
-export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
-
-# The commands to extract the exported symbol list from a shared archive.
-extract_expsyms_cmds=$lt_extract_expsyms_cmds
-
-# Symbols that should not be listed in the preloaded symbols.
-exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
-
-# Symbols that must always be exported.
-include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
-
-ifelse([$1],[],
-[# ### END LIBTOOL CONFIG],
-[# ### END LIBTOOL TAG CONFIG: $tagname])
-
-__EOF__
-
-ifelse([$1],[], [
- case $host_os in
- aix3*)
- cat <<\EOF >> "$cfgfile"
-
-# AIX sometimes has problems with the GCC collect2 program. For some
-# reason, if we set the COLLECT_NAMES environment variable, the problems
-# vanish in a puff of smoke.
-if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
-fi
-EOF
- ;;
- esac
-
- # We use sed instead of cat because bash on DJGPP gets confused if
- # if finds mixed CR/LF and LF-only lines. Since sed operates in
- # text mode, it properly converts lines to CR/LF. This bash problem
- # is reportedly fixed, but why not run on old versions too?
- sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
-
- mv -f "$cfgfile" "$ofile" || \
- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
- chmod +x "$ofile"
-])
-else
- # If there is no Makefile yet, we rely on a make rule to execute
- # `config.status --recheck' to rerun these tests and create the
- # libtool script then.
- ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
- if test -f "$ltmain_in"; then
- test -f Makefile && make "$ltmain"
- fi
-fi
-])# AC_LIBTOOL_CONFIG
-
-
-# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
-# -------------------------------------------
-AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
-[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
-
-_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
-
-if test "$GCC" = yes; then
- _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
-
- AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
- lt_cv_prog_compiler_rtti_exceptions,
- [-fno-rtti -fno-exceptions], [],
- [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
-fi
-])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
-
-
-# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
-# ---------------------------------
-AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
-[AC_REQUIRE([AC_CANONICAL_HOST])
-AC_REQUIRE([AC_PROG_NM])
-AC_REQUIRE([AC_OBJEXT])
-# Check for command to grab the raw symbol name followed by C symbol from nm.
-AC_MSG_CHECKING([command to parse $NM output from $compiler object])
-AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
-[
-# These are sane defaults that work on at least a few old systems.
-# [They come from Ultrix. What could be older than Ultrix?!! ;)]
-
-# Character class describing NM global symbol codes.
-symcode='[[BCDEGRST]]'
-
-# Regexp to match symbols that can be accessed directly from C.
-sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
-
-# Transform the above into a raw symbol and a C symbol.
-symxfrm='\1 \2\3 \3'
-
-# Transform an extracted symbol line into a proper C declaration
-lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
-
-# Transform an extracted symbol line into symbol name and symbol address
-lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
-
-# Define system-specific variables.
-case $host_os in
-aix*)
- symcode='[[BCDT]]'
- ;;
-cygwin* | mingw* | pw32*)
- symcode='[[ABCDGISTW]]'
- ;;
-hpux*) # Its linker distinguishes data from code symbols
- if test "$host_cpu" = ia64; then
- symcode='[[ABCDEGRST]]'
- fi
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- ;;
-linux*)
- if test "$host_cpu" = ia64; then
- symcode='[[ABCDGIRSTW]]'
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- fi
- ;;
-irix* | nonstopux*)
- symcode='[[BCDEGRST]]'
- ;;
-osf*)
- symcode='[[BCDEGQRST]]'
- ;;
-solaris* | sysv5*)
- symcode='[[BDRT]]'
- ;;
-sysv4)
- symcode='[[DFNSTU]]'
- ;;
-esac
-
-# Handle CRLF in mingw tool chain
-opt_cr=
-case $build_os in
-mingw*)
- opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
- ;;
-esac
-
-# If we're using GNU nm, then use its standard symbol codes.
-case `$NM -V 2>&1` in
-*GNU* | *'with BFD'*)
- symcode='[[ABCDGIRSTW]]' ;;
-esac
-
-# Try without a prefix undercore, then with it.
-for ac_symprfx in "" "_"; do
-
- # Write the raw and C identifiers.
- lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
-
- # Check to see that the pipe works correctly.
- pipe_works=no
-
- rm -f conftest*
- cat > conftest.$ac_ext <<EOF
-#ifdef __cplusplus
-extern "C" {
-#endif
-char nm_test_var;
-void nm_test_func(){}
-#ifdef __cplusplus
-}
-#endif
-int main(){nm_test_var='a';nm_test_func();return(0);}
-EOF
-
- if AC_TRY_EVAL(ac_compile); then
- # Now try to grab the symbols.
- nlist=conftest.nm
- if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
- # Try sorting and uniquifying the output.
- if sort "$nlist" | uniq > "$nlist"T; then
- mv -f "$nlist"T "$nlist"
- else
- rm -f "$nlist"T
- fi
-
- # Make sure that we snagged all the symbols we need.
- if grep ' nm_test_var$' "$nlist" >/dev/null; then
- if grep ' nm_test_func$' "$nlist" >/dev/null; then
- cat <<EOF > conftest.$ac_ext
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-EOF
- # Now generate the symbol file.
- eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
-
- cat <<EOF >> conftest.$ac_ext
-#if defined (__STDC__) && __STDC__
-# define lt_ptr_t void *
-#else
-# define lt_ptr_t char *
-# define const
-#endif
-
-/* The mapping between symbol names and symbols. */
-const struct {
- const char *name;
- lt_ptr_t address;
-}
-lt_preloaded_symbols[[]] =
-{
-EOF
- $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
- cat <<\EOF >> conftest.$ac_ext
- {0, (lt_ptr_t) 0}
-};
-
-#ifdef __cplusplus
-}
-#endif
-EOF
- # Now try linking the two files.
- mv conftest.$ac_objext conftstm.$ac_objext
- lt_save_LIBS="$LIBS"
- lt_save_CFLAGS="$CFLAGS"
- LIBS="conftstm.$ac_objext"
- CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
- pipe_works=yes
- fi
- LIBS="$lt_save_LIBS"
- CFLAGS="$lt_save_CFLAGS"
- else
- echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
- fi
- else
- echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
- fi
- else
- echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
- fi
- else
- echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest* conftst*
-
- # Do not use the global_symbol_pipe unless it works.
- if test "$pipe_works" = yes; then
- break
- else
- lt_cv_sys_global_symbol_pipe=
- fi
-done
-])
-if test -z "$lt_cv_sys_global_symbol_pipe"; then
- lt_cv_sys_global_symbol_to_cdecl=
-fi
-if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
- AC_MSG_RESULT(failed)
-else
- AC_MSG_RESULT(ok)
-fi
-]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
-
-
-# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
-# ---------------------------------------
-AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
-[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
-_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
-_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
-
-AC_MSG_CHECKING([for $compiler option to produce PIC])
- ifelse([$1],[CXX],[
- # C++ specific cases for pic, static, wl, etc.
- if test "$GXX" = yes; then
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
-
- case $host_os in
- aix*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- fi
- ;;
- amigaos*)
- # FIXME: we need at least 68020 code to build shared libraries, but
- # adding the `-m68020' flag to GCC prevents building anything better,
- # like `-m68040'.
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
- ;;
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
- # PIC is the default for these OSes.
- ;;
- mingw* | os2* | pw32*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
- ;;
- darwin* | rhapsody*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
- ;;
- *djgpp*)
- # DJGPP does not support shared libraries at all
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- ;;
- sysv4*MP*)
- if test -d /usr/nec; then
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
- fi
- ;;
- hpux*)
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case "$host_cpu" in
- hppa*64*|ia64*)
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- esac
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- esac
- else
- case $host_os in
- aix4* | aix5*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- else
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
- fi
- ;;
- chorus*)
- case $cc_basename in
- cxch68)
- # Green Hills C++ Compiler
- # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
- ;;
- esac
- ;;
- darwin*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- case "$cc_basename" in
- xlc*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- ;;
- esac
- ;;
- dgux*)
- case $cc_basename in
- ec++)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- ;;
- ghcx)
- # Green Hills C++ Compiler
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- ;;
- *)
- ;;
- esac
- ;;
- freebsd* | kfreebsd*-gnu)
- # FreeBSD uses GNU C++
- ;;
- hpux9* | hpux10* | hpux11*)
- case $cc_basename in
- CC)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
- if test "$host_cpu" != ia64; then
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
- fi
- ;;
- aCC)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
- case "$host_cpu" in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
- ;;
- esac
- ;;
- *)
- ;;
- esac
- ;;
- irix5* | irix6* | nonstopux*)
- case $cc_basename in
- CC)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- # CC pic flag -KPIC is the default.
- ;;
- *)
- ;;
- esac
- ;;
- linux*)
- case $cc_basename in
- KCC)
- # KAI C++ Compiler
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- icpc)
- # Intel C++
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
- ;;
- cxx)
- # Compaq C++
- # Make sure the PIC flag is empty. It appears that all Alpha
- # Linux and Compaq Tru64 Unix objects are PIC.
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
- *)
- ;;
- esac
- ;;
- lynxos*)
- ;;
- m88k*)
- ;;
- mvs*)
- case $cc_basename in
- cxx)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
- ;;
- *)
- ;;
- esac
- ;;
- netbsd*)
- ;;
- osf3* | osf4* | osf5*)
- case $cc_basename in
- KCC)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
- ;;
- RCC)
- # Rational C++ 2.4.1
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- ;;
- cxx)
- # Digital/Compaq C++
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # Make sure the PIC flag is empty. It appears that all Alpha
- # Linux and Compaq Tru64 Unix objects are PIC.
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
- *)
- ;;
- esac
- ;;
- psos*)
- ;;
- sco*)
- case $cc_basename in
- CC)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- *)
- ;;
- esac
- ;;
- solaris*)
- case $cc_basename in
- CC)
- # Sun C++ 4.2, 5.x and Centerline C++
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
- ;;
- gcx)
- # Green Hills C++ Compiler
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
- ;;
- *)
- ;;
- esac
- ;;
- sunos4*)
- case $cc_basename in
- CC)
- # Sun C++ 4.x
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
- lcc)
- # Lucid
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- ;;
- *)
- ;;
- esac
- ;;
- tandem*)
- case $cc_basename in
- NCC)
- # NonStop-UX NCC 3.20
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- ;;
- *)
- ;;
- esac
- ;;
- unixware*)
- ;;
- vxworks*)
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
- ;;
- esac
- fi
-],
-[
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
-
- case $host_os in
- aix*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- fi
- ;;
-
- amigaos*)
- # FIXME: we need at least 68020 code to build shared libraries, but
- # adding the `-m68020' flag to GCC prevents building anything better,
- # like `-m68040'.
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
- ;;
-
- beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
- # PIC is the default for these OSes.
- ;;
-
- mingw* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
- ;;
-
- darwin* | rhapsody*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
- ;;
-
- msdosdjgpp*)
- # Just because we use GCC doesn't mean we suddenly get shared libraries
- # on systems that don't support them.
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
- enable_shared=no
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec; then
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
- fi
- ;;
-
- hpux*)
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case "$host_cpu" in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- esac
- ;;
-
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
- ;;
- esac
- else
- # PORTME Check for flag to pass linker flags through the system compiler.
- case $host_os in
- aix*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- else
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
- fi
- ;;
- darwin*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- case "$cc_basename" in
- xlc*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- ;;
- esac
- ;;
-
- mingw* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
- ;;
-
- hpux9* | hpux10* | hpux11*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case "$host_cpu" in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
- ;;
- esac
- # Is there a better lt_prog_compiler_static that works with the bundled CC?
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
- ;;
-
- irix5* | irix6* | nonstopux*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # PIC (with -KPIC) is the default.
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
-
- newsos6)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- linux*)
- case $CC in
- icc* | ecc*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
- ;;
- ccc*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # All Alpha code is PIC.
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
- esac
- ;;
-
- osf3* | osf4* | osf5*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- # All OSF/1 code is PIC.
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
- ;;
-
- sco3.2v5*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
- ;;
-
- solaris*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- sunos4*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
- _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec ;then
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- fi
- ;;
-
- uts4*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
- _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
- ;;
-
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
- ;;
- esac
- fi
-])
-AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
-
-#
-# Check to make sure the PIC flag actually works.
-#
-if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
- AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
- _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
- [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
- [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
- "" | " "*) ;;
- *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
- esac],
- [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
-fi
-case "$host_os" in
- # For platforms which do not support PIC, -DPIC is meaningless:
- *djgpp*)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
- ;;
- *)
- _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
- ;;
-esac
-])
-
-
-# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
-# ------------------------------------
-# See if the linker supports building shared libraries.
-AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
-[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
-ifelse([$1],[CXX],[
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- case $host_os in
- aix4* | aix5*)
- # If we're using GNU nm, then we don't want the "-C" option.
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
- else
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
- fi
- ;;
- pw32*)
- _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
- ;;
- cygwin* | mingw*)
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
- ;;
- *)
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- ;;
- esac
-],[
- runpath_var=
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
- _LT_AC_TAGVAR(archive_cmds, $1)=
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
- _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
- _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
- _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
- _LT_AC_TAGVAR(hardcode_automatic, $1)=no
- _LT_AC_TAGVAR(module_cmds, $1)=
- _LT_AC_TAGVAR(module_expsym_cmds, $1)=
- _LT_AC_TAGVAR(always_export_symbols, $1)=no
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- # include_expsyms should be a list of space-separated symbols to be *always*
- # included in the symbol list
- _LT_AC_TAGVAR(include_expsyms, $1)=
- # exclude_expsyms can be an extended regexp of symbols to exclude
- # it will be wrapped by ` (' and `)$', so one must not match beginning or
- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
- # as well as any symbol that contains `d'.
- _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
- # platforms (ab)use it in PIC code, but their linkers get confused if
- # the symbol is explicitly referenced. Since portable code cannot
- # rely on this symbol name, it's probably fine to never include it in
- # preloaded symbol tables.
- extract_expsyms_cmds=
-
- case $host_os in
- cygwin* | mingw* | pw32*)
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- if test "$GCC" != yes; then
- with_gnu_ld=no
- fi
- ;;
- openbsd*)
- with_gnu_ld=no
- ;;
- esac
-
- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
- if test "$with_gnu_ld" = yes; then
- # If archive_cmds runs LD, not CC, wlarc should be empty
- wlarc='${wl}'
-
- # See if GNU ld supports shared libraries.
- case $host_os in
- aix3* | aix4* | aix5*)
- # On AIX/PPC, the GNU linker is very broken
- if test "$host_cpu" != ia64; then
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- cat <<EOF 1>&2
-
-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
-*** to be unable to reliably create shared libraries on AIX.
-*** Therefore, libtool is disabling shared libraries support. If you
-*** really care for shared libraries, you may want to modify your PATH
-*** so that a non-GNU linker is found, and then restart.
-
-EOF
- fi
- ;;
-
- amigaos*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
-
- # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
- # that the semantics of dynamic libraries on AmigaOS, at least up
- # to version 4, is to share data among multiple programs linked
- # with the same dynamic library. Since this doesn't match the
- # behavior of shared libraries on other platforms, we can't use
- # them.
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
-
- beos*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
- # support --undefined. This deserves some investigation. FIXME
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
-
- cygwin* | mingw* | pw32*)
- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
- # as there is no search path for DLLs.
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- _LT_AC_TAGVAR(always_export_symbols, $1)=no
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
-
- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
- # If the export-symbols file already is a .def file (1st line
- # is EXPORTS), use it as is; otherwise, prepend...
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
- cp $export_symbols $output_objdir/$soname.def;
- else
- echo EXPORTS > $output_objdir/$soname.def;
- cat $export_symbols >> $output_objdir/$soname.def;
- fi~
- $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
- else
- ld_shlibs=no
- fi
- ;;
-
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
- wlarc=
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- fi
- ;;
-
- solaris* | sysv5*)
- if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- cat <<EOF 1>&2
-
-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
-*** create shared libraries on Solaris systems. Therefore, libtool
-*** is disabling shared libraries support. We urge you to upgrade GNU
-*** binutils to release 2.9.1 or newer. Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-EOF
- elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
-
- sunos4*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- wlarc=
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- linux*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
- supports_anon_versioning=no
- case `$LD -v 2>/dev/null` in
- *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
- *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
- *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
- *\ 2.11.*) ;; # other 2.11 versions
- *) supports_anon_versioning=yes ;;
- esac
- if test $supports_anon_versioning = yes; then
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
-cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
-$echo "local: *; };" >> $output_objdir/$libname.ver~
- $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
- else
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
- fi
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
-
- *)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- fi
- ;;
- esac
-
- if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
- runpath_var=LD_RUN_PATH
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
- # ancient GNU ld didn't support --whole-archive et. al.
- if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- else
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
- fi
- fi
- else
- # PORTME fill in a description of your system's linker (not GNU ld)
- case $host_os in
- aix3*)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
- # Note: this linker hardcodes the directories in LIBPATH if there
- # are no directories specified by -L.
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- if test "$GCC" = yes && test -z "$link_static_flag"; then
- # Neither direct hardcoding nor static linking is supported with a
- # broken collect2.
- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
- fi
- ;;
-
- aix4* | aix5*)
- if test "$host_cpu" = ia64; then
- # On IA64, the linker does run time linking by default, so we don't
- # have to do anything special.
- aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
- no_entry_flag=""
- else
- # If we're using GNU nm, then we don't want the "-C" option.
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
- else
- _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
- fi
- aix_use_runtimelinking=no
-
- # Test if we are trying to use run time linking or normal
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- # need to do runtime linking.
- case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
- for ld_flag in $LDFLAGS; do
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
- aix_use_runtimelinking=yes
- break
- fi
- done
- esac
-
- exp_sym_flag='-bexport'
- no_entry_flag='-bnoentry'
- fi
-
- # When large executables or shared objects are built, AIX ld can
- # have problems creating the table of contents. If linking a library
- # or program results in "error TOC overflow" add -mminimal-toc to
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
-
- _LT_AC_TAGVAR(archive_cmds, $1)=''
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
-
- if test "$GCC" = yes; then
- case $host_os in aix4.[012]|aix4.[012].*)
- # We only want to do this on AIX 4.2 and lower, the check
- # below for broken collect2 doesn't work under 4.3+
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- else
- # We have old collect2
- _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
- # It fails to find uninstalled libraries when the uninstalled
- # path is not listed in the libpath. Setting hardcode_minus_L
- # to unsupported forces relinking
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
- fi
- esac
- shared_flag='-shared'
- else
- # not using gcc
- if test "$host_cpu" = ia64; then
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
- fi
- fi
- fi
-
- # It seems that -bexpall does not export symbols beginning with
- # underscore (_), so it is better to generate a list of symbols to export.
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
- if test "$aix_use_runtimelinking" = yes; then
- # Warning - without using the other runtime loading flags (-brtl),
- # -berok will link without error, but may produce a broken library.
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
- # Determine the default libpath from the value encoded in an empty executable.
- _LT_AC_SYS_LIBPATH_AIX
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
- else
- if test "$host_cpu" = ia64; then
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
- else
- # Determine the default libpath from the value encoded in an empty executable.
- _LT_AC_SYS_LIBPATH_AIX
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
- # Warning - without using the other run time loading flags,
- # -berok will link without error, but may produce a broken library.
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
- # -bexpall does not export symbols beginning with underscore (_)
- _LT_AC_TAGVAR(always_export_symbols, $1)=yes
- # Exported symbols can be pulled into shared objects from archives
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
- # This is similar to how AIX traditionally builds it's shared libraries.
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
- fi
- fi
- ;;
-
- amigaos*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- # see comment about different semantics on the GNU ld section
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
-
- bsdi[[45]]*)
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
- ;;
-
- cygwin* | mingw* | pw32*)
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- # hardcode_libdir_flag_spec is actually meaningless, as there is
- # no search path for DLLs.
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- # Tell ltmain to make .lib files, not .a files.
- libext=lib
- # Tell ltmain to make .dll files, not .so files.
- shrext_cmds=".dll"
- # FIXME: Setting linknames here is a bad hack.
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
- # The linker will automatically build a .lib file if we build a DLL.
- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
- # FIXME: Should let the user specify the lib program.
- _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
- fix_srcfile_path='`cygpath -w "$srcfile"`'
- _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
- ;;
-
- darwin* | rhapsody*)
- case "$host_os" in
- rhapsody* | darwin1.[[012]])
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
- ;;
- *) # Darwin 1.3 on
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- else
- case ${MACOSX_DEPLOYMENT_TARGET} in
- 10.[[012]])
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- ;;
- 10.*)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
- ;;
- esac
- fi
- ;;
- esac
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
- if test "$GCC" = yes ; then
- output_verbose_link_cmd='echo'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- else
- case "$cc_basename" in
- xlc*)
- output_verbose_link_cmd='echo'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
- _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- ;;
- *)
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- fi
- ;;
-
- dgux*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- freebsd1*)
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
-
- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
- # support. Future versions do this automatically, but an explicit c++rt0.o
- # does not break anything, and helps significantly (at the cost of a little
- # extra space).
- freebsd2.2*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- # Unfortunately, older versions of FreeBSD 2 do not have this feature.
- freebsd2*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
- freebsd* | kfreebsd*-gnu)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- hpux9*)
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- ;;
-
- hpux10* | hpux11*)
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
- case "$host_cpu" in
- hppa*64*|ia64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- else
- case "$host_cpu" in
- hppa*64*|ia64*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
- ;;
- esac
- fi
- if test "$with_gnu_ld" = no; then
- case "$host_cpu" in
- hppa*64*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
- ia64*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- ;;
- *)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
-
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- ;;
- esac
- fi
- ;;
-
- irix5* | irix6* | nonstopux*)
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
- ;;
-
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- newsos6)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- openbsd*)
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
- else
- case $host_os in
- openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- ;;
- *)
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
- ;;
- esac
- fi
- ;;
-
- os2*)
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
- _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
- _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
- ;;
-
- osf3*)
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- ;;
-
- osf4* | osf5*) # as osf3* with the addition of -msym flag
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
- else
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
- $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
-
- # Both c and cxx compiler support -rpath directly
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
- ;;
-
- sco3.2v5*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
- runpath_var=LD_RUN_PATH
- hardcode_runpath_var=yes
- ;;
-
- solaris*)
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- case $host_os in
- solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
- *) # Supported since Solaris 2.6 (maybe 2.5.1?)
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
- esac
- _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
- ;;
-
- sunos4*)
- if test "x$host_vendor" = xsequent; then
- # Use $CC to link under sequent, because it throws in some extra .o
- # files that make .init and .fini sections work.
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
- fi
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- sysv4)
- case $host_vendor in
- sni)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
- ;;
- siemens)
- ## LD is ld it makes a PLAMLIB
- ## CC just makes a GrossModule.
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
- _LT_AC_TAGVAR(hardcode_direct, $1)=no
- ;;
- motorola)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
- ;;
- esac
- runpath_var='LD_RUN_PATH'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- sysv4.3*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
- ;;
-
- sysv4*MP*)
- if test -d /usr/nec; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- runpath_var=LD_RUN_PATH
- hardcode_runpath_var=yes
- _LT_AC_TAGVAR(ld_shlibs, $1)=yes
- fi
- ;;
-
- sysv4.2uw2*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_direct, $1)=yes
- _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- hardcode_runpath_var=yes
- runpath_var=LD_RUN_PATH
- ;;
-
- sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
- _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
- if test "$GCC" = yes; then
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- fi
- runpath_var='LD_RUN_PATH'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- sysv5*)
- _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
- # $CC -shared without GNU ld will not create a library from C++
- # object files and a static libstdc++, better avoid it by now
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- runpath_var='LD_RUN_PATH'
- ;;
-
- uts4*)
- _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
- _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
- ;;
-
- *)
- _LT_AC_TAGVAR(ld_shlibs, $1)=no
- ;;
- esac
- fi
-])
-AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
-test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
-
-variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
-if test "$GCC" = yes; then
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
-fi
-
-#
-# Do we need to explicitly link libc?
-#
-case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
-x|xyes)
- # Assume -lc should be added
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
-
- if test "$enable_shared" = yes && test "$GCC" = yes; then
- case $_LT_AC_TAGVAR(archive_cmds, $1) in
- *'~'*)
- # FIXME: we may have to deal with multi-command sequences.
- ;;
- '$CC '*)
- # Test whether the compiler implicitly links with -lc since on some
- # systems, -lgcc has to come before -lc. If gcc already passes -lc
- # to ld, don't add -lc before -lgcc.
- AC_MSG_CHECKING([whether -lc should be explicitly linked in])
- $rm conftest*
- printf "$lt_simple_compile_test_code" > conftest.$ac_ext
-
- if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
- soname=conftest
- lib=conftest
- libobjs=conftest.$ac_objext
- deplibs=
- wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
- compiler_flags=-v
- linker_flags=-v
- verstring=
- output_objdir=.
- libname=conftest
- lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=
- if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
- then
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- else
- _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
- fi
- _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
- else
- cat conftest.err 1>&5
- fi
- $rm conftest*
- AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
- ;;
- esac
- fi
- ;;
-esac
-])# AC_LIBTOOL_PROG_LD_SHLIBS
-
-
-# _LT_AC_FILE_LTDLL_C
-# -------------------
-# Be careful that the start marker always follows a newline.
-AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
-# /* ltdll.c starts here */
-# #define WIN32_LEAN_AND_MEAN
-# #include <windows.h>
-# #undef WIN32_LEAN_AND_MEAN
-# #include <stdio.h>
-#
-# #ifndef __CYGWIN__
-# # ifdef __CYGWIN32__
-# # define __CYGWIN__ __CYGWIN32__
-# # endif
-# #endif
-#
-# #ifdef __cplusplus
-# extern "C" {
-# #endif
-# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
-# #ifdef __cplusplus
-# }
-# #endif
-#
-# #ifdef __CYGWIN__
-# #include <cygwin/cygwin_dll.h>
-# DECLARE_CYGWIN_DLL( DllMain );
-# #endif
-# HINSTANCE __hDllInstance_base;
-#
-# BOOL APIENTRY
-# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
-# {
-# __hDllInstance_base = hInst;
-# return TRUE;
-# }
-# /* ltdll.c ends here */
-])# _LT_AC_FILE_LTDLL_C
-
-
-# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
-# ---------------------------------
-AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
-
-
-# old names
-AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
-AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
-AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
-AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
-AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
-AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
-AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
-
-# This is just to silence aclocal about the macro not being used
-ifelse([AC_DISABLE_FAST_INSTALL])
-
-AC_DEFUN([LT_AC_PROG_GCJ],
-[AC_CHECK_TOOL(GCJ, gcj, no)
- test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
- AC_SUBST(GCJFLAGS)
-])
-
-AC_DEFUN([LT_AC_PROG_RC],
-[AC_CHECK_TOOL(RC, windres, no)
-])
-
-############################################################
-# NOTE: This macro has been submitted for inclusion into #
-# GNU Autoconf as AC_PROG_SED. When it is available in #
-# a released version of Autoconf we should remove this #
-# macro and use it instead. #
-############################################################
-# LT_AC_PROG_SED
-# --------------
-# Check for a fully-functional sed program, that truncates
-# as few characters as possible. Prefer GNU sed if found.
-AC_DEFUN([LT_AC_PROG_SED],
-[AC_MSG_CHECKING([for a sed that does not truncate output])
-AC_CACHE_VAL(lt_cv_path_SED,
-[# Loop through the user's path and test for sed and gsed.
-# Then use that list of sed's as ones to test for truncation.
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for lt_ac_prog in sed gsed; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
- lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
- fi
- done
- done
-done
-lt_ac_max=0
-lt_ac_count=0
-# Add /usr/xpg4/bin/sed as it is typically found on Solaris
-# along with /bin/sed that truncates output.
-for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
- test ! -f $lt_ac_sed && break
- cat /dev/null > conftest.in
- lt_ac_count=0
- echo $ECHO_N "0123456789$ECHO_C" >conftest.in
- # Check for GNU sed and select it if it is found.
- if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
- lt_cv_path_SED=$lt_ac_sed
- break
- fi
- while true; do
- cat conftest.in conftest.in >conftest.tmp
- mv conftest.tmp conftest.in
- cp conftest.in conftest.nl
- echo >>conftest.nl
- $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
- cmp -s conftest.out conftest.nl || break
- # 10000 chars as input seems more than enough
- test $lt_ac_count -gt 10 && break
- lt_ac_count=`expr $lt_ac_count + 1`
- if test $lt_ac_count -gt $lt_ac_max; then
- lt_ac_max=$lt_ac_count
- lt_cv_path_SED=$lt_ac_sed
- fi
- done
-done
-])
-SED=$lt_cv_path_SED
-AC_MSG_RESULT([$SED])
-])