From e5f749ce80ce10b9c265daff2c7f3595bd767e64 Mon Sep 17 00:00:00 2001 From: Eirikr Hinngart <151315375+Oichkatzelesfrettschen@users.noreply.github.com> Date: Fri, 30 May 2025 23:01:10 -0700 Subject: [PATCH] Delete tools directory --- tools/Makefile | 281 - tools/Makefile.gmakehost | 21 - tools/Makefile.gnuhost | 146 - tools/Makefile.gnuwrap | 33 - tools/Makefile.host | 84 - tools/Makefile.nbincludes | 58 - tools/awk/Makefile | 7 - tools/binstall/Makefile | 29 - tools/binstall/mkmanifest | 33 - tools/binutils/Makefile | 108 - tools/binutils/mknative-binutils | 146 - tools/cat/Makefile | 6 - tools/cksum/Makefile | 7 - tools/compat/Makefile | 161 - tools/compat/cdbr.h | 5 - tools/compat/cdbw.h | 5 - tools/compat/compat_defs.h | 1285 --- tools/compat/compat_getopt.h | 17 - tools/compat/compat_pwd.h | 63 - tools/compat/configure | 8848 ----------------- tools/compat/configure.ac | 252 - tools/compat/crypto/rmd160.h | 5 - tools/compat/crypto/sha2.h | 5 - tools/compat/db.h | 7 - tools/compat/defs.mk.in | 87 - tools/compat/dev/clock_subr.h | 55 - tools/compat/dprintf.c | 77 - tools/compat/fgetln.c | 91 - tools/compat/flock.c | 76 - tools/compat/fpurge.c | 49 - tools/compat/fs/msdosfs/bootsect.h | 1 - tools/compat/fs/msdosfs/bpb.h | 1 - tools/compat/fs/msdosfs/denode.h | 1 - tools/compat/fs/msdosfs/direntry.h | 1 - tools/compat/fs/msdosfs/fat.h | 1 - tools/compat/fs/msdosfs/msdosfsmount.h | 1 - tools/compat/fts.h | 5 - tools/compat/getline.c | 111 - tools/compat/getmode.c | 57 - tools/compat/glob.h | 5 - tools/compat/issetugid.c | 21 - tools/compat/lchflags.c | 62 - tools/compat/lchmod.c | 56 - tools/compat/lchown.c | 60 - tools/compat/md2.h | 5 - tools/compat/md4.h | 5 - tools/compat/md5.h | 5 - tools/compat/mpool.h | 3 - tools/compat/namespace.h | 14 - tools/compat/nbtool_config.h.in | 687 -- tools/compat/ndbm.h | 7 - tools/compat/nl_types.h | 17 - tools/compat/pread.c | 55 - tools/compat/putc_unlocked.c | 47 - tools/compat/pwrite.c | 55 - tools/compat/rmd160.h | 5 - tools/compat/setenv.c | 50 - tools/compat/setgroupent.c | 12 - tools/compat/setpassent.c | 12 - tools/compat/setprogname.c | 54 - tools/compat/sha1.h | 5 - tools/compat/sha2.h | 5 - tools/compat/snprintf.c | 663 -- tools/compat/sys/null.h | 3 - tools/compat/sys/queue.h | 3 - tools/compat/sys/rmd160.h | 3 - tools/compat/sys/sha1.h | 4 - tools/compat/sys/sha2.h | 3 - tools/compat/sys/verified_exec.h | 3 - tools/compat/tzfile.h | 3 - tools/compat/ufs/ffs/ffs_extern.h | 3 - tools/compat/ufs/ffs/fs.h | 3 - tools/compat/ufs/ufs/dinode.h | 3 - tools/compat/ufs/ufs/dir.h | 3 - tools/compat/ufs/ufs/quota.h | 3 - tools/compat/ufs/ufs/ufs_bswap.h | 3 - tools/compat/vis.h | 5 - tools/cpp23_enumerate.py | 113 - tools/file/Makefile | 21 - tools/file_tree_report.py | 43 - tools/gcc/Makefile | 269 - tools/gcc/gcc-version.mk | 5 - tools/gcc/mknative-gcc | 435 - tools/gcc/mknative-gcc.old | 746 -- tools/gcc/mknative.common | 101 - tools/genassym/Makefile | 24 - tools/gencat/Makefile | 6 - tools/gmake/Makefile | 18 - tools/gmp/Makefile | 19 - tools/headerlist | 11 - tools/host-mkdep/Makefile | 49 - tools/host-mkdep/configure | 2518 ----- tools/host-mkdep/configure.ac | 18 - tools/host-mkdep/host-mkdep.in | 267 - tools/installboot/Makefile | 11 - tools/join/Makefile | 6 - tools/lex/Makefile | 25 - tools/llvm-clang-tblgen/Makefile | 7 - tools/llvm-clang/Makefile | 20 - tools/llvm-include/Makefile | 8 - tools/llvm-lib/Makefile | 9 - tools/llvm-lib/Makefile.inc | 10 - .../llvm-lib/libLLVMAArch64AsmParser/Makefile | 3 - .../libLLVMAArch64AsmPrinter/Makefile | 3 - tools/llvm-lib/libLLVMAArch64CodeGen/Makefile | 3 - .../libLLVMAArch64Disassembler/Makefile | 3 - .../libLLVMAArch64MCTargetDesc/Makefile | 3 - .../libLLVMAArch64TargetInfo/Makefile | 3 - tools/llvm-lib/libLLVMAArch64Utils/Makefile | 3 - tools/llvm-lib/libLLVMARMAsmParser/Makefile | 3 - tools/llvm-lib/libLLVMARMAsmPrinter/Makefile | 3 - tools/llvm-lib/libLLVMARMCodeGen/Makefile | 3 - .../llvm-lib/libLLVMARMDisassembler/Makefile | 3 - .../llvm-lib/libLLVMARMMCTargetDesc/Makefile | 3 - tools/llvm-lib/libLLVMARMTargetInfo/Makefile | 3 - tools/llvm-lib/libLLVMAnalysis/Makefile | 3 - tools/llvm-lib/libLLVMAsmParser/Makefile | 3 - tools/llvm-lib/libLLVMAsmPrinter/Makefile | 3 - tools/llvm-lib/libLLVMBitReader/Makefile | 3 - tools/llvm-lib/libLLVMBitWriter/Makefile | 3 - tools/llvm-lib/libLLVMCodeGen/Makefile | 3 - tools/llvm-lib/libLLVMDebugInfo/Makefile | 3 - tools/llvm-lib/libLLVMIR/Makefile | 3 - tools/llvm-lib/libLLVMIRReader/Makefile | 3 - tools/llvm-lib/libLLVMInstCombine/Makefile | 3 - .../llvm-lib/libLLVMInstrumentation/Makefile | 3 - tools/llvm-lib/libLLVMLTO/Makefile | 3 - tools/llvm-lib/libLLVMLinker/Makefile | 3 - tools/llvm-lib/libLLVMMC/Makefile | 3 - tools/llvm-lib/libLLVMMCDisassembler/Makefile | 3 - tools/llvm-lib/libLLVMMCParser/Makefile | 3 - tools/llvm-lib/libLLVMMipsAsmParser/Makefile | 3 - tools/llvm-lib/libLLVMMipsAsmPrinter/Makefile | 3 - tools/llvm-lib/libLLVMMipsCodeGen/Makefile | 3 - .../llvm-lib/libLLVMMipsDisassembler/Makefile | 3 - .../llvm-lib/libLLVMMipsMCTargetDesc/Makefile | 3 - tools/llvm-lib/libLLVMMipsTargetInfo/Makefile | 3 - tools/llvm-lib/libLLVMObjCARC/Makefile | 3 - tools/llvm-lib/libLLVMObject/Makefile | 3 - tools/llvm-lib/libLLVMOption/Makefile | 3 - .../llvm-lib/libLLVMPowerPCAsmParser/Makefile | 3 - .../libLLVMPowerPCAsmPrinter/Makefile | 3 - tools/llvm-lib/libLLVMPowerPCCodeGen/Makefile | 3 - .../libLLVMPowerPCDisassembler/Makefile | 3 - .../libLLVMPowerPCMCTargetDesc/Makefile | 3 - .../libLLVMPowerPCTargetInfo/Makefile | 3 - tools/llvm-lib/libLLVMProfileData/Makefile | 3 - tools/llvm-lib/libLLVMRuntimeDyld/Makefile | 3 - tools/llvm-lib/libLLVMScalarOpts/Makefile | 3 - tools/llvm-lib/libLLVMSelectionDAG/Makefile | 3 - tools/llvm-lib/libLLVMSparcAsmParser/Makefile | 3 - .../llvm-lib/libLLVMSparcAsmPrinter/Makefile | 3 - tools/llvm-lib/libLLVMSparcCodeGen/Makefile | 3 - .../libLLVMSparcDisassembler/Makefile | 3 - .../libLLVMSparcMCTargetDesc/Makefile | 3 - .../llvm-lib/libLLVMSparcTargetInfo/Makefile | 3 - tools/llvm-lib/libLLVMSupport/Makefile | 3 - tools/llvm-lib/libLLVMTableGen/Makefile | 3 - tools/llvm-lib/libLLVMTarget/Makefile | 3 - .../llvm-lib/libLLVMTransformsUtils/Makefile | 3 - tools/llvm-lib/libLLVMVectorize/Makefile | 3 - tools/llvm-lib/libLLVMX86AsmParser/Makefile | 3 - tools/llvm-lib/libLLVMX86AsmPrinter/Makefile | 3 - tools/llvm-lib/libLLVMX86CodeGen/Makefile | 3 - .../llvm-lib/libLLVMX86Disassembler/Makefile | 3 - .../llvm-lib/libLLVMX86MCTargetDesc/Makefile | 3 - tools/llvm-lib/libLLVMX86TargetInfo/Makefile | 3 - tools/llvm-lib/libLLVMX86Utils/Makefile | 3 - tools/llvm-lib/libLLVMgold/Makefile | 3 - tools/llvm-lib/libLLVMipa/Makefile | 3 - tools/llvm-lib/libLLVMipo/Makefile | 3 - tools/llvm-lib/libMCLinkerADT/Makefile | 3 - tools/llvm-lib/libMCLinkerARMCodeGen/Makefile | 3 - .../libMCLinkerARMTargetInfo/Makefile | 3 - tools/llvm-lib/libMCLinkerCodeGen/Makefile | 3 - tools/llvm-lib/libMCLinkerCore/Makefile | 3 - tools/llvm-lib/libMCLinkerFragment/Makefile | 3 - tools/llvm-lib/libMCLinkerLD/Makefile | 3 - tools/llvm-lib/libMCLinkerMC/Makefile | 3 - .../llvm-lib/libMCLinkerMipsCodeGen/Makefile | 3 - .../libMCLinkerMipsTargetInfo/Makefile | 3 - tools/llvm-lib/libMCLinkerObject/Makefile | 3 - tools/llvm-lib/libMCLinkerSupport/Makefile | 3 - tools/llvm-lib/libMCLinkerTarget/Makefile | 3 - tools/llvm-lib/libMCLinkerX86CodeGen/Makefile | 3 - .../libMCLinkerX86TargetInfo/Makefile | 3 - tools/llvm-lib/libclangARCMigrate/Makefile | 3 - tools/llvm-lib/libclangAST/Makefile | 3 - tools/llvm-lib/libclangAnalysis/Makefile | 3 - tools/llvm-lib/libclangBasic/Makefile | 3 - tools/llvm-lib/libclangCodeGen/Makefile | 3 - tools/llvm-lib/libclangDriver/Makefile | 3 - tools/llvm-lib/libclangEdit/Makefile | 3 - tools/llvm-lib/libclangFrontend/Makefile | 3 - .../llvm-lib/libclangFrontendRewrite/Makefile | 3 - tools/llvm-lib/libclangFrontendTool/Makefile | 3 - tools/llvm-lib/libclangIndex/Makefile | 3 - tools/llvm-lib/libclangLex/Makefile | 3 - tools/llvm-lib/libclangParse/Makefile | 3 - tools/llvm-lib/libclangRewrite/Makefile | 3 - tools/llvm-lib/libclangSema/Makefile | 3 - tools/llvm-lib/libclangSerialization/Makefile | 3 - .../libclangStaticAnalyzerCheckers/Makefile | 3 - .../libclangStaticAnalyzerCore/Makefile | 3 - .../libclangStaticAnalyzerFrontend/Makefile | 3 - tools/llvm-lib/liblldConfig/Makefile | 3 - tools/llvm-lib/liblldCore/Makefile | 3 - tools/llvm-lib/liblldDriver/Makefile | 3 - tools/llvm-lib/liblldPasses/Makefile | 3 - tools/llvm-lib/liblldReaderWriter/Makefile | 3 - tools/llvm-lib/liblldReaderWriterELF/Makefile | 3 - .../liblldReaderWriterELFAArch64/Makefile | 3 - .../liblldReaderWriterELFHexagon/Makefile | 3 - .../liblldReaderWriterELFMips/Makefile | 3 - .../liblldReaderWriterELFPPC/Makefile | 3 - .../liblldReaderWriterELFX86/Makefile | 3 - .../liblldReaderWriterELFX86_64/Makefile | 3 - .../llvm-lib/liblldReaderWriterMachO/Makefile | 3 - .../liblldReaderWriterNative/Makefile | 3 - .../liblldReaderWriterPECOFF/Makefile | 3 - .../llvm-lib/liblldReaderWriterYAML/Makefile | 3 - tools/llvm-lld/Makefile | 7 - tools/llvm-mcld/Makefile | 7 - tools/llvm-tblgen/Makefile | 9 - tools/llvm/Makefile | 50 - tools/llvm/Makefile.inc | 3 - tools/lorder/Makefile | 27 - tools/m4/Makefile | 18 - tools/m4/bootstrap/Makefile | 24 - tools/m4/bootstrap/parser.c | 649 -- tools/m4/bootstrap/parser.h | 12 - tools/m4/bootstrap/tokenizer.c | 1899 ---- tools/make/Makefile.regen | 8 - tools/make/buildmake.sh.in | 23 - tools/make/configure | 2802 ------ tools/make/configure.ac | 50 - tools/makefs/Makefile | 9 - tools/makekeys/Makefile | 17 - tools/makestrs/Makefile | 6 - tools/makewhatis/Makefile | 8 - tools/mandoc/Makefile | 22 - tools/mkcsmapper/Makefile | 6 - tools/mkdep/Makefile | 8 - tools/mkesdb/Makefile | 6 - tools/mkfs.mfs/Makefile | 4 - tools/mkheaderlist.sh | 21 - tools/mklocale/Makefile | 6 - tools/mknod/Makefile | 6 - tools/mkproto/Makefile | 7 - tools/mktemp/Makefile | 6 - tools/mpc/Makefile | 16 - tools/mpfr/Makefile | 15 - tools/mtree/Makefile | 7 - tools/nbperf/Makefile | 6 - tools/partition/Makefile | 4 - tools/pax/Makefile | 6 - tools/pkg_install/Makefile | 6 - tools/pkg_install/Makefile.inc | 3 - tools/pkg_install/pkg_add/Makefile | 8 - tools/pkg_install/pkg_admin/Makefile | 8 - tools/pkg_install/pkg_create/Makefile | 8 - tools/pkg_install/pkg_delete/Makefile | 8 - tools/pkg_install/pkg_info/Makefile | 8 - tools/pwd_mkdb/Makefile | 6 - tools/sed/Makefile | 10 - tools/stat/Makefile | 6 - tools/strfile/Makefile | 6 - tools/texinfo/Makefile | 13 - tools/tic/Makefile | 12 - tools/toproto/Makefile | 4 - tools/tsort/Makefile | 6 - tools/uudecode/Makefile | 8 - tools/yacc/Makefile | 6 - tools/zic/Makefile | 10 - 274 files changed, 25207 deletions(-) delete mode 100644 tools/Makefile delete mode 100644 tools/Makefile.gmakehost delete mode 100644 tools/Makefile.gnuhost delete mode 100644 tools/Makefile.gnuwrap delete mode 100644 tools/Makefile.host delete mode 100644 tools/Makefile.nbincludes delete mode 100644 tools/awk/Makefile delete mode 100644 tools/binstall/Makefile delete mode 100755 tools/binstall/mkmanifest delete mode 100644 tools/binutils/Makefile delete mode 100755 tools/binutils/mknative-binutils delete mode 100644 tools/cat/Makefile delete mode 100644 tools/cksum/Makefile delete mode 100644 tools/compat/Makefile delete mode 100644 tools/compat/cdbr.h delete mode 100644 tools/compat/cdbw.h delete mode 100644 tools/compat/compat_defs.h delete mode 100644 tools/compat/compat_getopt.h delete mode 100644 tools/compat/compat_pwd.h delete mode 100755 tools/compat/configure delete mode 100644 tools/compat/configure.ac delete mode 100644 tools/compat/crypto/rmd160.h delete mode 100644 tools/compat/crypto/sha2.h delete mode 100644 tools/compat/db.h delete mode 100644 tools/compat/defs.mk.in delete mode 100644 tools/compat/dev/clock_subr.h delete mode 100644 tools/compat/dprintf.c delete mode 100644 tools/compat/fgetln.c delete mode 100644 tools/compat/flock.c delete mode 100644 tools/compat/fpurge.c delete mode 100644 tools/compat/fs/msdosfs/bootsect.h delete mode 100644 tools/compat/fs/msdosfs/bpb.h delete mode 100644 tools/compat/fs/msdosfs/denode.h delete mode 100644 tools/compat/fs/msdosfs/direntry.h delete mode 100644 tools/compat/fs/msdosfs/fat.h delete mode 100644 tools/compat/fs/msdosfs/msdosfsmount.h delete mode 100644 tools/compat/fts.h delete mode 100644 tools/compat/getline.c delete mode 100644 tools/compat/getmode.c delete mode 100644 tools/compat/glob.h delete mode 100644 tools/compat/issetugid.c delete mode 100644 tools/compat/lchflags.c delete mode 100644 tools/compat/lchmod.c delete mode 100644 tools/compat/lchown.c delete mode 100644 tools/compat/md2.h delete mode 100644 tools/compat/md4.h delete mode 100644 tools/compat/md5.h delete mode 100644 tools/compat/mpool.h delete mode 100644 tools/compat/namespace.h delete mode 100644 tools/compat/nbtool_config.h.in delete mode 100644 tools/compat/ndbm.h delete mode 100644 tools/compat/nl_types.h delete mode 100644 tools/compat/pread.c delete mode 100644 tools/compat/putc_unlocked.c delete mode 100644 tools/compat/pwrite.c delete mode 100644 tools/compat/rmd160.h delete mode 100644 tools/compat/setenv.c delete mode 100644 tools/compat/setgroupent.c delete mode 100644 tools/compat/setpassent.c delete mode 100644 tools/compat/setprogname.c delete mode 100644 tools/compat/sha1.h delete mode 100644 tools/compat/sha2.h delete mode 100644 tools/compat/snprintf.c delete mode 100644 tools/compat/sys/null.h delete mode 100644 tools/compat/sys/queue.h delete mode 100644 tools/compat/sys/rmd160.h delete mode 100644 tools/compat/sys/sha1.h delete mode 100644 tools/compat/sys/sha2.h delete mode 100644 tools/compat/sys/verified_exec.h delete mode 100644 tools/compat/tzfile.h delete mode 100644 tools/compat/ufs/ffs/ffs_extern.h delete mode 100644 tools/compat/ufs/ffs/fs.h delete mode 100644 tools/compat/ufs/ufs/dinode.h delete mode 100644 tools/compat/ufs/ufs/dir.h delete mode 100644 tools/compat/ufs/ufs/quota.h delete mode 100644 tools/compat/ufs/ufs/ufs_bswap.h delete mode 100644 tools/compat/vis.h delete mode 100644 tools/cpp23_enumerate.py delete mode 100644 tools/file/Makefile delete mode 100755 tools/file_tree_report.py delete mode 100644 tools/gcc/Makefile delete mode 100644 tools/gcc/gcc-version.mk delete mode 100755 tools/gcc/mknative-gcc delete mode 100755 tools/gcc/mknative-gcc.old delete mode 100644 tools/gcc/mknative.common delete mode 100644 tools/genassym/Makefile delete mode 100644 tools/gencat/Makefile delete mode 100644 tools/gmake/Makefile delete mode 100644 tools/gmp/Makefile delete mode 100644 tools/headerlist delete mode 100644 tools/host-mkdep/Makefile delete mode 100755 tools/host-mkdep/configure delete mode 100644 tools/host-mkdep/configure.ac delete mode 100644 tools/host-mkdep/host-mkdep.in delete mode 100644 tools/installboot/Makefile delete mode 100644 tools/join/Makefile delete mode 100644 tools/lex/Makefile delete mode 100644 tools/llvm-clang-tblgen/Makefile delete mode 100644 tools/llvm-clang/Makefile delete mode 100644 tools/llvm-include/Makefile delete mode 100644 tools/llvm-lib/Makefile delete mode 100644 tools/llvm-lib/Makefile.inc delete mode 100644 tools/llvm-lib/libLLVMAArch64AsmParser/Makefile delete mode 100644 tools/llvm-lib/libLLVMAArch64AsmPrinter/Makefile delete mode 100644 tools/llvm-lib/libLLVMAArch64CodeGen/Makefile delete mode 100644 tools/llvm-lib/libLLVMAArch64Disassembler/Makefile delete mode 100644 tools/llvm-lib/libLLVMAArch64MCTargetDesc/Makefile delete mode 100644 tools/llvm-lib/libLLVMAArch64TargetInfo/Makefile delete mode 100644 tools/llvm-lib/libLLVMAArch64Utils/Makefile delete mode 100644 tools/llvm-lib/libLLVMARMAsmParser/Makefile delete mode 100644 tools/llvm-lib/libLLVMARMAsmPrinter/Makefile delete mode 100644 tools/llvm-lib/libLLVMARMCodeGen/Makefile delete mode 100644 tools/llvm-lib/libLLVMARMDisassembler/Makefile delete mode 100644 tools/llvm-lib/libLLVMARMMCTargetDesc/Makefile delete mode 100644 tools/llvm-lib/libLLVMARMTargetInfo/Makefile delete mode 100644 tools/llvm-lib/libLLVMAnalysis/Makefile delete mode 100644 tools/llvm-lib/libLLVMAsmParser/Makefile delete mode 100644 tools/llvm-lib/libLLVMAsmPrinter/Makefile delete mode 100644 tools/llvm-lib/libLLVMBitReader/Makefile delete mode 100644 tools/llvm-lib/libLLVMBitWriter/Makefile delete mode 100644 tools/llvm-lib/libLLVMCodeGen/Makefile delete mode 100644 tools/llvm-lib/libLLVMDebugInfo/Makefile delete mode 100644 tools/llvm-lib/libLLVMIR/Makefile delete mode 100644 tools/llvm-lib/libLLVMIRReader/Makefile delete mode 100644 tools/llvm-lib/libLLVMInstCombine/Makefile delete mode 100644 tools/llvm-lib/libLLVMInstrumentation/Makefile delete mode 100644 tools/llvm-lib/libLLVMLTO/Makefile delete mode 100644 tools/llvm-lib/libLLVMLinker/Makefile delete mode 100644 tools/llvm-lib/libLLVMMC/Makefile delete mode 100644 tools/llvm-lib/libLLVMMCDisassembler/Makefile delete mode 100644 tools/llvm-lib/libLLVMMCParser/Makefile delete mode 100644 tools/llvm-lib/libLLVMMipsAsmParser/Makefile delete mode 100644 tools/llvm-lib/libLLVMMipsAsmPrinter/Makefile delete mode 100644 tools/llvm-lib/libLLVMMipsCodeGen/Makefile delete mode 100644 tools/llvm-lib/libLLVMMipsDisassembler/Makefile delete mode 100644 tools/llvm-lib/libLLVMMipsMCTargetDesc/Makefile delete mode 100644 tools/llvm-lib/libLLVMMipsTargetInfo/Makefile delete mode 100644 tools/llvm-lib/libLLVMObjCARC/Makefile delete mode 100644 tools/llvm-lib/libLLVMObject/Makefile delete mode 100644 tools/llvm-lib/libLLVMOption/Makefile delete mode 100644 tools/llvm-lib/libLLVMPowerPCAsmParser/Makefile delete mode 100644 tools/llvm-lib/libLLVMPowerPCAsmPrinter/Makefile delete mode 100644 tools/llvm-lib/libLLVMPowerPCCodeGen/Makefile delete mode 100644 tools/llvm-lib/libLLVMPowerPCDisassembler/Makefile delete mode 100644 tools/llvm-lib/libLLVMPowerPCMCTargetDesc/Makefile delete mode 100644 tools/llvm-lib/libLLVMPowerPCTargetInfo/Makefile delete mode 100644 tools/llvm-lib/libLLVMProfileData/Makefile delete mode 100644 tools/llvm-lib/libLLVMRuntimeDyld/Makefile delete mode 100644 tools/llvm-lib/libLLVMScalarOpts/Makefile delete mode 100644 tools/llvm-lib/libLLVMSelectionDAG/Makefile delete mode 100644 tools/llvm-lib/libLLVMSparcAsmParser/Makefile delete mode 100644 tools/llvm-lib/libLLVMSparcAsmPrinter/Makefile delete mode 100644 tools/llvm-lib/libLLVMSparcCodeGen/Makefile delete mode 100644 tools/llvm-lib/libLLVMSparcDisassembler/Makefile delete mode 100644 tools/llvm-lib/libLLVMSparcMCTargetDesc/Makefile delete mode 100644 tools/llvm-lib/libLLVMSparcTargetInfo/Makefile delete mode 100644 tools/llvm-lib/libLLVMSupport/Makefile delete mode 100644 tools/llvm-lib/libLLVMTableGen/Makefile delete mode 100644 tools/llvm-lib/libLLVMTarget/Makefile delete mode 100644 tools/llvm-lib/libLLVMTransformsUtils/Makefile delete mode 100644 tools/llvm-lib/libLLVMVectorize/Makefile delete mode 100644 tools/llvm-lib/libLLVMX86AsmParser/Makefile delete mode 100644 tools/llvm-lib/libLLVMX86AsmPrinter/Makefile delete mode 100644 tools/llvm-lib/libLLVMX86CodeGen/Makefile delete mode 100644 tools/llvm-lib/libLLVMX86Disassembler/Makefile delete mode 100644 tools/llvm-lib/libLLVMX86MCTargetDesc/Makefile delete mode 100644 tools/llvm-lib/libLLVMX86TargetInfo/Makefile delete mode 100644 tools/llvm-lib/libLLVMX86Utils/Makefile delete mode 100644 tools/llvm-lib/libLLVMgold/Makefile delete mode 100644 tools/llvm-lib/libLLVMipa/Makefile delete mode 100644 tools/llvm-lib/libLLVMipo/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerADT/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerARMCodeGen/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerARMTargetInfo/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerCodeGen/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerCore/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerFragment/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerLD/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerMC/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerMipsCodeGen/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerMipsTargetInfo/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerObject/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerSupport/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerTarget/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerX86CodeGen/Makefile delete mode 100644 tools/llvm-lib/libMCLinkerX86TargetInfo/Makefile delete mode 100644 tools/llvm-lib/libclangARCMigrate/Makefile delete mode 100644 tools/llvm-lib/libclangAST/Makefile delete mode 100644 tools/llvm-lib/libclangAnalysis/Makefile delete mode 100644 tools/llvm-lib/libclangBasic/Makefile delete mode 100644 tools/llvm-lib/libclangCodeGen/Makefile delete mode 100644 tools/llvm-lib/libclangDriver/Makefile delete mode 100644 tools/llvm-lib/libclangEdit/Makefile delete mode 100644 tools/llvm-lib/libclangFrontend/Makefile delete mode 100644 tools/llvm-lib/libclangFrontendRewrite/Makefile delete mode 100644 tools/llvm-lib/libclangFrontendTool/Makefile delete mode 100644 tools/llvm-lib/libclangIndex/Makefile delete mode 100644 tools/llvm-lib/libclangLex/Makefile delete mode 100644 tools/llvm-lib/libclangParse/Makefile delete mode 100644 tools/llvm-lib/libclangRewrite/Makefile delete mode 100644 tools/llvm-lib/libclangSema/Makefile delete mode 100644 tools/llvm-lib/libclangSerialization/Makefile delete mode 100644 tools/llvm-lib/libclangStaticAnalyzerCheckers/Makefile delete mode 100644 tools/llvm-lib/libclangStaticAnalyzerCore/Makefile delete mode 100644 tools/llvm-lib/libclangStaticAnalyzerFrontend/Makefile delete mode 100644 tools/llvm-lib/liblldConfig/Makefile delete mode 100644 tools/llvm-lib/liblldCore/Makefile delete mode 100644 tools/llvm-lib/liblldDriver/Makefile delete mode 100644 tools/llvm-lib/liblldPasses/Makefile delete mode 100644 tools/llvm-lib/liblldReaderWriter/Makefile delete mode 100644 tools/llvm-lib/liblldReaderWriterELF/Makefile delete mode 100644 tools/llvm-lib/liblldReaderWriterELFAArch64/Makefile delete mode 100644 tools/llvm-lib/liblldReaderWriterELFHexagon/Makefile delete mode 100644 tools/llvm-lib/liblldReaderWriterELFMips/Makefile delete mode 100644 tools/llvm-lib/liblldReaderWriterELFPPC/Makefile delete mode 100644 tools/llvm-lib/liblldReaderWriterELFX86/Makefile delete mode 100644 tools/llvm-lib/liblldReaderWriterELFX86_64/Makefile delete mode 100644 tools/llvm-lib/liblldReaderWriterMachO/Makefile delete mode 100644 tools/llvm-lib/liblldReaderWriterNative/Makefile delete mode 100644 tools/llvm-lib/liblldReaderWriterPECOFF/Makefile delete mode 100644 tools/llvm-lib/liblldReaderWriterYAML/Makefile delete mode 100644 tools/llvm-lld/Makefile delete mode 100644 tools/llvm-mcld/Makefile delete mode 100644 tools/llvm-tblgen/Makefile delete mode 100644 tools/llvm/Makefile delete mode 100644 tools/llvm/Makefile.inc delete mode 100644 tools/lorder/Makefile delete mode 100644 tools/m4/Makefile delete mode 100644 tools/m4/bootstrap/Makefile delete mode 100644 tools/m4/bootstrap/parser.c delete mode 100644 tools/m4/bootstrap/parser.h delete mode 100644 tools/m4/bootstrap/tokenizer.c delete mode 100644 tools/make/Makefile.regen delete mode 100755 tools/make/buildmake.sh.in delete mode 100755 tools/make/configure delete mode 100644 tools/make/configure.ac delete mode 100644 tools/makefs/Makefile delete mode 100644 tools/makekeys/Makefile delete mode 100644 tools/makestrs/Makefile delete mode 100644 tools/makewhatis/Makefile delete mode 100644 tools/mandoc/Makefile delete mode 100644 tools/mkcsmapper/Makefile delete mode 100644 tools/mkdep/Makefile delete mode 100644 tools/mkesdb/Makefile delete mode 100644 tools/mkfs.mfs/Makefile delete mode 100644 tools/mkheaderlist.sh delete mode 100644 tools/mklocale/Makefile delete mode 100644 tools/mknod/Makefile delete mode 100644 tools/mkproto/Makefile delete mode 100644 tools/mktemp/Makefile delete mode 100644 tools/mpc/Makefile delete mode 100644 tools/mpfr/Makefile delete mode 100644 tools/mtree/Makefile delete mode 100644 tools/nbperf/Makefile delete mode 100644 tools/partition/Makefile delete mode 100644 tools/pax/Makefile delete mode 100644 tools/pkg_install/Makefile delete mode 100644 tools/pkg_install/Makefile.inc delete mode 100644 tools/pkg_install/pkg_add/Makefile delete mode 100644 tools/pkg_install/pkg_admin/Makefile delete mode 100644 tools/pkg_install/pkg_create/Makefile delete mode 100644 tools/pkg_install/pkg_delete/Makefile delete mode 100644 tools/pkg_install/pkg_info/Makefile delete mode 100644 tools/pwd_mkdb/Makefile delete mode 100644 tools/sed/Makefile delete mode 100644 tools/stat/Makefile delete mode 100644 tools/strfile/Makefile delete mode 100644 tools/texinfo/Makefile delete mode 100644 tools/tic/Makefile delete mode 100644 tools/toproto/Makefile delete mode 100644 tools/tsort/Makefile delete mode 100644 tools/uudecode/Makefile delete mode 100644 tools/yacc/Makefile delete mode 100644 tools/zic/Makefile diff --git a/tools/Makefile b/tools/Makefile deleted file mode 100644 index c697f9c49..000000000 --- a/tools/Makefile +++ /dev/null @@ -1,281 +0,0 @@ -# $NetBSD: Makefile,v 1.182 2015/07/23 08:03:26 mrg Exp $ - -.include -.include - -.if defined(__MINIX) -# Some tools do not compile warning free with newer toolchains. -NOGCCERROR= yes -NOCLANGERROR= yes -.endif # defined(__MINIX) -# Make sure that the ordered build/install processing applies when using -# plain make. -.MAIN: build_install - -# TOOLDIR must be valid, unless MKTOOLS=no -.if ${MKTOOLS:Uyes} != "no" -.if "${TOOLDIR}" == "" -.error "TOOLDIR is undefined or empty" -.elif "${TOOLDIR:tW:M/*}" == "" -.error "TOOLDIR is not an absolute path: ${TOOLDIR}" -#.elif !exists(TOOLDIR) # XXX .exists fails for directories -#.error "TOOLDIR does not exist: ${TOOLDIR}" -.endif -.endif # MKTOOLS != no - -# TOOLS_BUILDRUMP == yes builds only the subset of the tools required -# for building rump kernels and the hypervisor. It is typically used -# when building rump kernels targeted for non-NetBSD systems (via -# buildrump.sh), and should not be set for a regular "make build". -TOOLS_BUILDRUMP?=no - -.if ${TOOLCHAIN_MISSING} == "no" -. if defined(HAVE_GCC) && ${HAVE_GCC} > 0 -TOOLCHAIN_BITS= gmake .WAIT -TOOLCHAIN_BITS+= gmp .WAIT -TOOLCHAIN_BITS+= mpfr .WAIT -TOOLCHAIN_BITS+= mpc .WAIT -. endif -.endif - -.if ${TOOLCHAIN_MISSING} == "no" -TOOLCHAIN_BITS+= binutils .WAIT -.endif - -.if defined(HAVE_GCC) && ${HAVE_GCC} > 0 -. if ${TOOLCHAIN_MISSING} == "no" -TOOLCHAIN_BITS+= gcc -.if !defined(__MINIX) -# The following test is broken as it still tries to create the directory -. if ${MKCROSSGDB:Uno} != "no" || make(obj) -TOOLCHAIN_BITS+= gdb -. endif -.endif # !defined(__MINIX) -TOOLCHAIN_BITS+= .WAIT -. endif -.endif - -.if defined(HAVE_PCC) -. if ${TOOLCHAIN_MISSING} == "no" -TOOLCHAIN_BITS+= pcc -. endif -.endif - -.if !defined(__MINIX) -.if ${TOOLCHAIN_MISSING} == "no" -# XXX Eventually, we want to be able to build dbsym and mdsetimage -# XXX if EXTERNAL_TOOLCHAIN is set. -TOOLCHAIN_BITS+= dbsym mdsetimage -.endif -.endif # !defined(__MINIX) - -DTRACE_BITS= -.if ${MKDTRACE} != "no" || ${MKCTF} != "no" -DTRACE_BITS+= .WAIT libelf -DTRACE_BITS+= .WAIT libdwarf -DTRACE_BITS+= .WAIT libctf -.endif -.if ${MKCTF} != "no" -DTRACE_BITS+= .WAIT ctfconvert ctfmerge -.endif - -LINT_BITS= -.if ${MKLINT} != "no" -LINT_BITS= lint lint2 -.endif - -# All of host-mkdep, compat, and binstall are needed before anything -# else. Within this group, they must be built in a specific order, and -# all of them must be built before any of them is installed. They may -# be installed in any order. This can't be expressed using the .WAIT -# notation inside the SUBDIR list. -# -# XXX .ORDER does not work when multiple targets are passed on the -# make command line without "-j", so use dependencies in addition to .ORDER. -# -.ORDER: dependall-host-mkdep dependall-compat dependall-binstall -.if make(dependall-host-mkdep) && make(dependall-compat) -dependall-compat: dependall-host-mkdep -.endif -.if make(dependall-compat) && make(dependall-binstall) -dependall-binstall: dependall-compat -.endif - -# Dependencies in SUBDIR below ordered to maximize parallel ability. -# See above for special treatment for host-mkdep, compat, and binstall. -# -SUBDIR= host-mkdep compat binstall \ - .WAIT mktemp .WAIT sed .WAIT genassym -.if ${TOOLS_BUILDRUMP} == "no" -SUBDIR+= gencat \ - ${LINT_BITS} \ - makewhatis mtree nbperf .WAIT uudecode -.endif - -SUBDIR+= cat join lorder m4 mkdep tsort .WAIT yacc .WAIT awk .WAIT lex - -.if ${TOOLS_BUILDRUMP} == "no" -SUBDIR += .WAIT texinfo \ - .WAIT tic \ - .WAIT pax \ - .WAIT ${TOOLCHAIN_BITS} \ - ${DTRACE_BITS} \ - cksum \ - file \ - makefs .WAIT mkcsmapper mkesdb mklocale \ - .WAIT \ - .WAIT \ - .WAIT \ - .WAIT installboot \ - pwd_mkdb strfile zic -.endif -SUBDIR+= stat .WAIT - -.if defined(__MINIX) -SUBDIR += \ - mkfs.mfs \ - partition \ - toproto -.else -SUBDIR+= .WAIT config -.endif # defined(__MINIX) - -.if ${MKLLVM} != "no" -SUBDIR+= \ - llvm .WAIT \ - llvm-lib/libLLVMSupport llvm-lib/libLLVMTableGen .WAIT \ - llvm-tblgen llvm-clang-tblgen .WAIT \ - llvm-include .WAIT \ - llvm-lib .WAIT \ - llvm-clang -. if ${MKLLD} != "no" -SUBDIR+= llvm-lld -. endif -. if ${MKMCLINKER} != "no" -SUBDIR+= llvm-mcld -. endif -.endif - -.if ${MKMAN} != "no" || ${MKDOC} != "no" || ${MKHTML} != "no" -. if ${MKGROFF} != "no" -SUBDIR+= groff -. endif -SUBDIR+= mandoc -.endif - -.if ${TOOLS_BUILDRUMP} == "no" - -.if ${MKMAINTAINERTOOLS:Uno} != "no" -SUBDIR+= autoconf .WAIT gettext -.endif - -.if ${USE_PIGZGZIP} != "no" -SUBDIR+= pigz -.endif - -.if ${MACHINE} == "hppa" -SUBDIR+= hppa-mkboot -.endif - -.if ${MACHINE} == "ibmnws" -SUBDIR+= ibmnws-ncdcs -.endif - -.if ${MACHINE} == "macppc" -SUBDIR+= macppc-fixcoff -.endif - -.if (${MACHINE} == "prep" || ${MACHINE} == "rs6000" || ${MACHINE} == "bebox") -SUBDIR+= powerpc-mkbootimage -.endif - -.if ${MACHINE_ARCH} == "m68k" -SUBDIR+= m68k-elf2aout -.endif - -.if (${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" || \ - ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb") -SUBDIR+= mips-elf2ecoff -.endif - -.if (${MACHINE} == "sgimips") -SUBDIR+= sgivol -.endif - -.if ${MACHINE} == "acorn32" -SUBDIR+= sparkcrc -.endif - -.if (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64") -SUBDIR+= fgen -.endif - -.if ${MACHINE} == "amiga" -SUBDIR+= amiga-elf2bb -SUBDIR+= amiga-txlt -.endif - -.if ${MACHINE} == "hp300" -SUBDIR+= hp300-mkboot -.endif - -.if !defined(__MINIX) -.if ${MACHINE} == "evbarm" \ - && ${MACHINE_CPU} == "arm" \ - && ${TARGET_ENDIANNESS} == "1234" -SUBDIR+= elftosb -.endif - -.if ${MACHINE} == "evbarm" || ${MACHINE} == "evbmips" || \ - ${MACHINE} == "evbppc" || ${MACHINE} == "sandpoint" -SUBDIR+= mkubootimage -.endif -.endif # !defined(__MINIX) - -.if ${MKX11} != "no" -SUBDIR+= makestrs -SUBDIR+= makekeys -.endif - -.endif # TOOLCHAIN_BUILDRUMP - -check_MKTOOLS: .PHONY .NOTMAIN -.if ${MKTOOLS:Uyes} == "no" - @echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and' - @echo '*** updating your host toolchain. This should be used only as a' - @echo '*** temporary workaround for toolchain problems, as it will result' - @echo '*** in version skew and build errors over time!' -.endif - -.if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes" # { -SUBDIR= # empty -realall realdepend install: check_MKTOOLS -.endif # } - -.include -.include -.include - -.if !defined(PREVIOUSTOOLDIR) -. if exists(PREVIOUSTOOLDIR) -PREVIOUSTOOLDIR!= cat PREVIOUSTOOLDIR -. else -PREVIOUSTOOLDIR= -. endif -.endif - -CLEANFILES+= PREVIOUSTOOLDIR - -realall realdepend: .MAKE -.if !empty(PREVIOUSTOOLDIR) && "${PREVIOUSTOOLDIR}" != "${TOOLDIR}" - @echo "*** WARNING: TOOLDIR has moved?" - @echo "*** PREVIOUSTOOLDIR '${PREVIOUSTOOLDIR}'" - @echo "*** != TOOLDIR '${TOOLDIR}'" - @echo "*** Cleaning mis-matched tools" - rm -f PREVIOUSTOOLDIR - (cd ${.CURDIR} && ${MAKE} PREVIOUSTOOLDIR=${TOOLDIR} cleandir) -.endif - echo ${TOOLDIR} >PREVIOUSTOOLDIR - -cleandir: - rm -f ${CLEANFILES} diff --git a/tools/Makefile.gmakehost b/tools/Makefile.gmakehost deleted file mode 100644 index ba979d8c8..000000000 --- a/tools/Makefile.gmakehost +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: Makefile.gmakehost,v 1.7 2012/01/20 23:01:05 christos Exp $ -# -# Rules used when building a GNU host package. Expects MODULE to be set. -# This version runs ${TOOL_GMAKE} instead of ${MAKE} -# -# There's not a lot we can do to build reliably in the face of many -# available configuration options. To be as low-overhead as possible, -# we follow the following scheme: -# -# * Configuration is only re-run when an autoconf source file (such as -# "configure" or "config.sub") is changed. -# -# * "config.status" is run to rebuild Makefiles and .h files if an -# autoconf-parsed file (such as Makefile.in) is changed. -# -# * If MKUPDATE != "no", "make install" is only run if a build has happened -# since the last install in the current directory. - -.include -MAKE_PROGRAM=${TOOL_GMAKE} -.include "Makefile.gnuhost" diff --git a/tools/Makefile.gnuhost b/tools/Makefile.gnuhost deleted file mode 100644 index f1342fe48..000000000 --- a/tools/Makefile.gnuhost +++ /dev/null @@ -1,146 +0,0 @@ -# $NetBSD: Makefile.gnuhost,v 1.42 2013/08/13 20:41:25 drochner Exp $ -# -# Rules used when building a GNU host package. Expects MODULE to be set. -# -# There's not a lot we can do to build reliably in the face of many -# available configuration options. To be as low-overhead as possible, -# we follow the following scheme: -# -# * Configuration is only re-run when an autoconf source file (such as -# "configure" or "config.sub") is changed. -# -# * "config.status" is run to rebuild Makefiles and .h files if an -# autoconf-parsed file (such as Makefile.in) is changed. -# -# * If MKUPDATE != "no", "make install" is only run if a build has happened -# since the last install in the current directory. - -.include - -# Disable use of pre-compiled headers on Darwin. -BUILD_OSTYPE!= uname -s -.if ${BUILD_OSTYPE} == "Darwin" -HOST_CFLAGS+=-O2 -no-cpp-precomp -.endif -MAKE_PROGRAM?= ${MAKE} - -GNUHOSTDIST?= ${.CURDIR}/../../gnu/dist/${MODULE} - -.if defined(__MINIX) -.include "../minix/Makefile.fetchgnu" -.endif # defined(__MINIX) - -FIND_ARGS+= \! \( -type d \( \ - -name 'CVS' -o \ - -name 'config' -o \ - -name 'doc' -o \ - -name 'po' -o \ - -name 'nbsd.mt' -o \ - -name 'tests*' \ - \) -prune \) - -# Do this "find" only if actually building something. -# AL - ... and on MINIX, if the source has already being fetched -.if (${USETOOLS} == "yes") && empty(.MAKEFLAGS:M-V*) && \ - (make(all) || make(realall) || (!make(clean) && !make(cleandir) && !make(obj))) && \ - !defined(_GNU_CFGSRC) && exists(${GNUHOSTDIST}/configure) - -_GNU_CFGSRC!= find ${GNUHOSTDIST} ${FIND_ARGS} \ - -type f \( -name 'config*' -o -name '*.in' \) -print -.MAKEOVERRIDES+= _GNU_CFGSRC -.endif - -CONFIGURE_ENV+= \ - AR=${HOST_AR:Q} \ - AWK=${TOOL_AWK:Q} \ - CC=${HOST_CC:Q} \ - CFLAGS=${HOST_CFLAGS:Q} \ - CONFIG_SHELL=${HOST_SH:Q} \ - CPPFLAGS=${HOST_CPPFLAGS:Q} \ - CXX=${HOST_CXX:Q} \ - CXXFLAGS=${HOST_CXXFLAGS:Q} \ - INSTALL=${HOST_INSTALL_FILE:Q} \ - LDFLAGS=${HOST_LDFLAGS:Q} \ - LEX=${LEX:Q} \ - M4=${TOOL_M4:Q} \ - MAKE=${MAKE_PROGRAM:Q} \ - PATH="${TOOLDIR}/bin:$$PATH" \ - RANLIB=${HOST_RANLIB:Q} \ - YACC=${YACC:Q} - -BUILD_ENV+= ${CONFIGURE_ENV} - -CONFIGURE_ARGS+=--prefix=${TOOLDIR} -.if ${MKPIC} == "no" -CONFIGURE_ARGS+=--disable-shared -.endif - -.if ${MAKE_PROGRAM} == ${MAKE} -.ifndef _NOWRAPPER -# Some systems have a small ARG_MAX. On such systems, prevent Make -# variables set on the command line from being exported in the -# environment (they will still be set in MAKEOVERRIDES). -.if ${BUILD_OSTYPE} == "Darwin" || ${BUILD_OSTYPE} == "FreeBSD" -__noenvexport= -X -.endif -MAKE_ARGS:= ${__noenvexport} -f ${.PARSEDIR}/Makefile.gnuwrap ${MAKE_ARGS} -.else -MAKE_ARGS+= _NOWRAPPER=1 -.endif -BUILD_COMMAND= ${BUILD_ENV} ${MAKE} ${MAKE_ARGS} -.else - -# gmake version of this puts MAKE_ARGS in the environment to be sure that -# sub-gmake's get them, otherwise tools/gcc tries to build libgcc and -# fails. it also uses "env -i" to entirely clear out MAKEFLAGS. -GMAKE_J_ARGS?= ${MAKEFLAGS:[*]:M*-j*:C/.*(-j ?[0-9]*).*/\1/W} -BUILD_COMMAND= /usr/bin/env -i ${BUILD_ENV} ${MAKE_ARGS} ${TOOL_GMAKE} ${GMAKE_J_ARGS} -e ${MAKE_ARGS} - -.endif - -MAKE_ARGS+= BISON=true DESTDIR= INSTALL=${HOST_INSTALL_FILE:Q} - -ALL_TARGET?= all -INSTALL_TARGET?=install - -BUILD_PLATFORM!= uname -srm | tr ' ()' '-' -CONFIGURE_PLATFORM!= if [ -s .configure_done ]; then cat .configure_done; else echo none; fi -.if "${BUILD_PLATFORM}" != "${CONFIGURE_PLATFORM}" -configure_cleanup: - @mkdir build 2>/dev/null || true - @(echo "Cleaning stale cache files ${BUILD_PLATFORM} != ${CONFIGURE_PLATFORM}") - @(cd build && find . -name config.cache | xargs rm -f) -configure_cleanup=configure_cleanup -.endif - -# AL For MINIX, fetch the source if not there -.configure_done: ${fetch_done} ${_GNU_CFGSRC} ${.CURDIR}/Makefile ${configure_cleanup} - @mkdir build 2>/dev/null || true - @(cd build && ${CONFIGURE_ENV} ${HOST_SH} ${GNUHOSTDIST}/configure ${CONFIGURE_ARGS}) - @echo ${BUILD_PLATFORM} > $@ - -# The .build_done timestamp is only updated if a file actually changes -# in the build tree during "make all". This way, if nothing has changed, -# a "make install MKUPDATE=yes" will do nothing. - -.build_done: .configure_done - @(cd build && ${BUILD_COMMAND} ${ALL_TARGET}) - @if [ ! -f $@ ] || [ -n "$$(find build -type f -newer .build_done -print)" ]; \ - then touch $@; fi - -.install_done! ${BUILD:D.build_done} - @(cd ${.OBJDIR}/build && ${BUILD_COMMAND} ${INSTALL_TARGET}) - @touch $@ - -# Mapping to standard targets. - -.if ${USETOOLS} == "yes" -realall: .build_done -realinstall: .install_done -.endif - -clean: clean.gnu -clean.gnu: - -rm -r -f .*_done build - -.include diff --git a/tools/Makefile.gnuwrap b/tools/Makefile.gnuwrap deleted file mode 100644 index 565a75abb..000000000 --- a/tools/Makefile.gnuwrap +++ /dev/null @@ -1,33 +0,0 @@ -# $NetBSD: Makefile.gnuwrap,v 1.9 2003/03/14 05:22:51 thorpej Exp $ -# -# Wrapper for GNU Makefiles. - -.ifndef _WRAPPER_INCLUDED -_WRAPPER_INCLUDED=1 - -.ifndef _NOWRAPPER -.include "${.CURDIR}/Makefile" -.endif - -# Prevent targets in source directories from being rebuilt. - -_srcdir:= ${srcdir} -.MADE: ${.ALLTARGETS:M${_srcdir}/*} Makefile - -# Don't rebuild .gmo files, or lex/yacc (which GNU puts in the source tree). -.po.gmo .l.c .y.c .y.h .x.1: - @true - -# Make sure this file gets re-loaded recursively. -.ifndef _NOWRAPPER -# Some systems have a small ARG_MAX. On such systems, prevent Make -# variables set on the command line from being exported in the -# environment (they will still be set in MAKEOVERRIDES). -BUILD_OSTYPE!= uname -s -.if ${BUILD_OSTYPE} == "Darwin" || ${BUILD_OSTYPE} == "FreeBSD" -__noenvexport= -X -.endif -_GNUWRAPPER:= ${.PARSEDIR}/${.PARSEFILE} -MAKE:= ${MAKE} ${__noenvexport} -f ${_GNUWRAPPER} -.endif -.endif diff --git a/tools/Makefile.host b/tools/Makefile.host deleted file mode 100644 index 219b5e538..000000000 --- a/tools/Makefile.host +++ /dev/null @@ -1,84 +0,0 @@ -# $NetBSD: Makefile.host,v 1.31 2013/06/14 16:10:02 tsutsui Exp $ - -NOINFO= # defined -NOLINT= # defined -NOMAN= # defined - -.include - -.ifndef NOCOMPATLIB -# Use TOOLDIR copy of libnbcompat and associated *.h files -.-include "${TOOLDIR}/share/compat/defs.mk" -.elif !empty(.MAKE.OS:M*CYGWIN*) -HOSTEXEEXT=.exe -.endif - -# Resolve pathnames in variables. -_RESOLVE_VARS= CFLAGS CPPFLAGS DPADD HOST_CPPFLAGS LDADD -.for var in ${_RESOLVE_VARS} -${var}:= ${${var}} -.endfor - -# Switch over to the "real" Makefile. -.PROGDIR:= ${.CURDIR}/../../${HOST_SRCDIR} -_CURDIR:= ${.CURDIR} -HOSTPROG?= ${PROG} - -.CURDIR:= ${.PROGDIR} -.PATH: ${.CURDIR} -.include "${.CURDIR}/Makefile" -.-include "${.CURDIR}/../Makefile.inc" - -# Resolve pathnames from "real" Makefile, and switch .CURDIR back. -.for var in ${_RESOLVE_VARS} -${var}:= ${${var}} -.endfor -.CURDIR:= ${_CURDIR} -.undef _CURDIR - -# Set up the environment for . -.if ${USETOOLS} != "yes" -.undef HOSTPROG -.endif - -HOSTPROGNAME?= ${HOSTPROG} -HOST_BINDIR?= ${TOOLDIR}/bin -HOST_CPPFLAGS:= ${HOST_CPPFLAGS} ${CPPFLAGS} -HOST_CPPFLAGS:= ${HOST_CPPFLAGS:N-Wp,-iremap,*:N--sysroot=*} -HOST_INSTALLPROG?=${HOST_BINDIR}/${HOSTPROGNAME}${HOSTEXEEXT} -.undef LINKS - -SRCS?= ${HOSTPROG}.c -SRCS+= ${HOST_SRCS} - -.PATH: ${.PROGDIR} - -# Install rule. -realinstall: install.host install.files -install.host: ${HOST_INSTALLPROG} -${HOST_INSTALLPROG}:: ${HOSTPROG} - ${_MKTARGET_INSTALL} - mkdir -p ${HOST_BINDIR} - ${HOST_INSTALL_FILE} -m ${BINMODE} ${HOSTPROG}${HOSTEXEEXT} ${.TARGET} -.if !empty(.MAKE.OS:M*CYGWIN*) - ${HOST_SH} ${NETBSDSRCDIR}/tools/binstall/mkmanifest ${.TARGET} -.endif - -.if ${MKUPDATE} == "no" -.PHONY: ${HOST_INSTALLPROG} -.endif - -install.files: -.for F in ${HOSTFILES} -install.files: ${HOST_FILESDIR}/${F} -${HOST_FILESDIR}/${F}: ${F} - ${_MKTARGET_INSTALL} - mkdir -p ${HOST_FILESDIR} - ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET} - -.if ${MKUPDATE} == "no" -.PHONY: ${HOST_FILESDIR}/${F} -.endif -.endfor - -.include diff --git a/tools/Makefile.nbincludes b/tools/Makefile.nbincludes deleted file mode 100644 index 5d7c53b04..000000000 --- a/tools/Makefile.nbincludes +++ /dev/null @@ -1,58 +0,0 @@ -# $NetBSD: Makefile.nbincludes,v 1.4 2015/01/24 16:21:33 uwe Exp $ - -# NOxxx definitions are copied from Makefile.host, and are -# required before .include . The include of bsd.own.mk -# itself is required to get definitions of TOOL_* variables used in -# "!=" variable assignments (which are performed early). -# -NOINFO= # defined -NOLINT= # defined -NOMAN= # defined - -.include - -_ARCHDIR= ${.CURDIR}/../../sys/arch -_INCDIR= ${.CURDIR}/../../include -_SYSDIR= ${.CURDIR}/../../sys/sys -_UFSDIR= ${.CURDIR}/../../sys/ufs -_SUBDIR!= cd ${_ARCHDIR} && ${MAKE} -V SUBDIR - -.if make(depend) || make(all) || make(dependall) || make(install) -# There's no need to run these commands for "make cleandir" or "make obj", -# and TOOL_SED will not yet have been built. -_UFS_INCS!= cd ${_UFSDIR} && find ffs ufs -name '*.h' -_ARCH_INCS!= ${TOOL_SED} -e 's/^\#.*//' ${.CURDIR}/../headerlist -.endif - -.if !defined(__MINIX) -_ARCH_INCS+= ews4800mips/include/pdinfo.h ews4800mips/include/vtoc.h - -# for sh3/include/elf_machdep.h -.for sh3mach in dreamcast evbsh3 hpcsh landisk mmeye sh3 -_ARCH_INCS+= ${sh3mach}/include/endian_machdep.h -.endfor -.endif # !defined(__MINIX) - -_INCS= disktab.h -_SYSINCS= bootblock.h \ - disklabel.h disklabel_acorn.h disklabel_gpt.h disklabel_rdb.h \ - dkbad.h \ - exec_elf.h - -HOST_CPPFLAGS+= -I${TOOLDIR}/include -I${TOOLDIR}/include/nbinclude - -beforedepend: - ${HOST_INSTALL_DIR} ${TOOLDIR}/include/nbinclude - ${HOST_INSTALL_DIR} ${TOOLDIR}/include/nbinclude/sys - ${HOST_INSTALL_DIR} ${TOOLDIR}/include/nbinclude/ufs - cd ${_ARCHDIR} && \ - ${TOOL_PAX} -s /include\\/// -rw ${_ARCH_INCS} \ - ${TOOLDIR}/include/nbinclude - cd ${_INCDIR} && \ - ${TOOL_PAX} -rw ${_INCS} ${TOOLDIR}/include/nbinclude - cd ${_SYSDIR} && \ - ${TOOL_PAX} -rw ${_SYSINCS} ${TOOLDIR}/include/nbinclude/sys - cd ${_UFSDIR} && \ - ${TOOL_PAX} -rw ${_UFS_INCS} ${TOOLDIR}/include/nbinclude/ufs - cd ${TOOLDIR}/include/nbinclude && rm -f machine && \ - ${HOST_INSTALL_SYMLINK} ${MACHINE} machine diff --git a/tools/awk/Makefile b/tools/awk/Makefile deleted file mode 100644 index 75e2d92a1..000000000 --- a/tools/awk/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2010/12/12 04:06:19 christos Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}awk -HOST_SRCDIR= external/historical/nawk/bin -HOST_CPPFLAGS+= -D__EXTENSIONS__ # for isblank - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/binstall/Makefile b/tools/binstall/Makefile deleted file mode 100644 index 4b6082822..000000000 --- a/tools/binstall/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# $NetBSD: Makefile,v 1.11 2013/03/16 22:32:50 christos Exp $ - -NOMAN= -.include - -HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-install -HOST_SRCDIR= usr.bin/xinstall -CPPFLAGS+= -I${.CURDIR}/../compat/sys -CPPFLAGS+= -DTARGET_STRIP=\"${STRIP}\" - -# Prevent Makefile.host from trying to use the version of libnbcompat -# from ${TOOLDIR}. -NOCOMPATLIB= - -# Use uninstalled copy of host-mkdep -HOST_MKDEP_OBJ!= cd ${.CURDIR}/../host-mkdep && ${PRINTOBJDIR} -HOST_MKDEP= ${HOST_MKDEP_OBJ}/host-mkdep -MKDEP= ${HOST_MKDEP} - -# Use uninstalled copy of libnbcompat and associated *.h files -COMPATLIB_UNINSTALLED= yes -COMPATOBJ!= cd ${NETBSDSRCDIR}/tools/compat && ${PRINTOBJDIR} -.-include "${COMPATOBJ}/defs.mk" - -.include "${.CURDIR}/../Makefile.host" - -# Use uninstalled copy of the install program -INSTALL= ./xinstall - diff --git a/tools/binstall/mkmanifest b/tools/binstall/mkmanifest deleted file mode 100755 index 4833efcae..000000000 --- a/tools/binstall/mkmanifest +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -makeone() { - local name="$(basename "$1" .exe)" - case $name in - *instal*|*patch*|*update*|*setup*) - ;; - *) - return;; - esac -cat << _EOF > ${1%.exe}.exe.manifest - - - - - - - - - - - - -_EOF -} - -for i -do - makeone "$i" -done diff --git a/tools/binutils/Makefile b/tools/binutils/Makefile deleted file mode 100644 index c0b4fa77a..000000000 --- a/tools/binutils/Makefile +++ /dev/null @@ -1,108 +0,0 @@ -# $NetBSD: Makefile,v 1.24 2014/02/15 13:34:28 tsutsui Exp $ - -.include - -MODULE= binutils - -GNUHOSTDIST= ${.CURDIR}/../../external/gpl3/binutils/dist - -BRANDING?= \ - --with-pkgversion="NetBSD Binutils nb1" \ - --with-bugurl="http://www.NetBSD.org/support/send-pr.html" \ - --with-lib-path="=/usr/lib" --with-sysroot - -CONFIGURE_ARGS= --target=${MACHINE_GNU_PLATFORM} --disable-nls \ - --program-transform-name="s,^,${MACHINE_GNU_PLATFORM}-," \ - --disable-werror \ - ${BRANDING} - -.if defined(__MINIX) && ! exists(${GNUHOSTDIST}/gas/m68k-parse.c) -# MINIX: LSC: Make sure we trigger the fetch rule -.include "${.CURDIR}/../../minix/Makefile.fetchgnu" - -${GNUHOSTDIST}/gas/m68k-parse.c: ${fetch_done} - @true -.endif # defined(__MINIX) - -build/gas/m68k-parse.c: ${GNUHOSTDIST}/gas/m68k-parse.c - @mkdir build 2>/dev/null || true - @mkdir build/gas 2>/dev/null || true - cat ${GNUHOSTDIST}/gas/m68k-parse.c > ${.TARGET} - -.configure_done: build/gas/m68k-parse.c - -MAKE_ARGS= MACHINE= MAKEINFO=${TOOL_MAKEINFO:Q} - -ALL_TARGET= all-binutils all-gas all-ld -INSTALL_TARGET= install-binutils install-gas install-ld -.if ${MKCROSSGPROF:Uno} != "no" -ALL_TARGET+= all-gprof -INSTALL_TARGET+=install-gprof -.endif - -.if defined(__MINIX) && ${HAVE_GOLD:Uyes} != "no" -ALL_TARGET+= all-gold -INSTALL_TARGET+=install-gold - -CONFIGURE_ARGS+= \ - --enable-lto \ - --enable-plugins -# LSC: Here we use the MK variable, as we have to select the right default -# linker. Problem is, when Gold is not seen, USE_BITCODE is forced to -# "no". -.if ${MKBITCODE:Uno} == "yes" -CONFIGURE_ARGS+= \ - --enable-ld=yes \ - --enable-gold=default -.else -CONFIGURE_ARGS+= \ - --enable-ld=default \ - --enable-gold=yes -.endif # ${MKBITCODE:Uno} == "yes" -.endif # defined(__MINIX) -.include "${.CURDIR}/../Makefile.gnuhost" - -CCADDFLAGS= -I${DESTDIR}/usr/include -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/ - -# Force avoiding possibly non-executable install-sh. -CONFIGURE_ENV+= ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d" - -NEWCONFIGDIR?= ${.CURDIR}/../.. -MKNATIVE?= ${.CURDIR}/mknative-binutils - -native-binutils: .native/.configure_done - @echo 'Extracting GNU binutils configury for a native toolchain.' - MAKE=${MAKE:Q} ${HOST_SH} ${MKNATIVE} binutils \ - ${.OBJDIR}/.native ${NEWCONFIGDIR} ${MACHINE_GNU_PLATFORM} - -.native/.configure_done: ${_GNU_CFGSRC} ${.CURDIR}/Makefile - mkdir .native 2>/dev/null || true - PATH=${TOOLDIR}/bin:$$PATH; export PATH; \ - (cd .native && ${CONFIGURE_ENV:NC*:NLD*} \ - CC_FOR_BUILD=${HOST_CC:Q} \ - CC=${CC:Q}' '${CCADDFLAGS:Q} \ - CXX=${CXX:Q}' '${CCADDFLAGS:Q} \ - CPP=${CPP:Q}' '-I${DESTDIR}/usr/include \ - CFLAGS= CPPFLAGS= CXXFLAGS= LDFLAGS= \ - MSGFMT=${TOOLDIR}/bin/${_TOOL_PREFIX}msgfmt \ - XGETTEXT=${TOOLDIR}/bin/${_TOOL_PREFIX}xgettext \ - LIBS=-lintl \ - ac_cv_prog_cc_cross=yes \ - ac_cv_func_strcoll_works=yes \ - ${HOST_SH} ${GNUHOSTDIST}/configure \ - --build=`${GNUHOSTDIST}/config.guess` \ - --host=${MACHINE_GNU_PLATFORM} \ - --target=${MACHINE_GNU_PLATFORM} \ - ${BRANDING} \ - ) - PATH=${TOOLDIR}/bin:$$PATH; export PATH; \ - (cd .native && ${MAKE} configure-host) - PATH=${TOOLDIR}/bin:$$PATH; export PATH; \ - (cd .native/bfd && ${MAKE} bfd.h bfdver.h) - PATH=${TOOLDIR}/bin:$$PATH; export PATH; \ - (cd .native/ld && ${MAKE} ldemul-list.h) - @touch $@ - -clean: clean.native -clean.native: - -rm -r -f .native diff --git a/tools/binutils/mknative-binutils b/tools/binutils/mknative-binutils deleted file mode 100755 index 82b12307e..000000000 --- a/tools/binutils/mknative-binutils +++ /dev/null @@ -1,146 +0,0 @@ -#!/bin/sh -# $NetBSD: mknative-binutils,v 1.9 2013/10/01 15:41:17 skrll Exp $ -# -# Shell script for generating all the constants needed for a native -# platform build of src/external/gpl3/binutils -# - -# initialise - -_TMPDIR=$2 -_TOP=$3 -_PLATFORM=$4 -_VPATH=`grep VPATH ${_TMPDIR}/Makefile | sed 's,^.*=[ ]*,,'` - -. $_TOP/tools/gcc/mknative.common - -##### external/gpl3/binutils/lib/libbfd ##### - -get_libbfd () { - mkdir -p $_TOP/external/gpl3/binutils/lib/libbfd/arch/$MACHINE_ARCH - - { - getvars bfd/Makefile \ - libbfd_la_DEPENDENCIES libbfd_la_OBJECTS DEFS \ - INCLUDES TDEFAULTS - } | write_mk external/gpl3/binutils/lib/libbfd/arch/$MACHINE_ARCH/defs.mk - - write_c external/gpl3/binutils/lib/libbfd/arch/$MACHINE_ARCH/bfd.h <$_TMPDIR/bfd/bfd.h - write_c external/gpl3/binutils/lib/libbfd/arch/$MACHINE_ARCH/bfdver.h <$_TMPDIR/bfd/bfdver.h - write_c external/gpl3/binutils/lib/libbfd/arch/$MACHINE_ARCH/bfd_stdint.h <$_TMPDIR/bfd/bfd_stdint.h - - { - cat $_TMPDIR/bfd/config.h - } | write_c external/gpl3/binutils/lib/libbfd/arch/$MACHINE_ARCH/config.h -} - -##### external/gpl3/binutils/lib/libopcodes ##### - -get_libopcodes () { - mkdir -p $_TOP/external/gpl3/binutils/lib/libopcodes/arch/$MACHINE_ARCH - - { - getvars opcodes/Makefile \ - archdefs BFD_MACHINES libopcodes_la_SOURCES - } | write_mk external/gpl3/binutils/lib/libopcodes/arch/$MACHINE_ARCH/defs.mk - - { - cat $_TMPDIR/opcodes/config.h - } | write_c external/gpl3/binutils/lib/libopcodes/arch/$MACHINE_ARCH/config.h -} - -##### external/gpl3/binutils/lib/libiberty ##### - -get_libiberty () { - mkdir -p $_TOP/external/gpl3/binutils/lib/libiberty/arch/$MACHINE_ARCH - - getvars libiberty/Makefile \ - ALLOCA EXTRA_OFILES LIBOBJS REQUIRED_OFILES \ - | write_mk external/gpl3/binutils/lib/libiberty/arch/$MACHINE_ARCH/defs.mk - - write_c external/gpl3/binutils/lib/libiberty/arch/$MACHINE_ARCH/config.h \ - <$_TMPDIR/libiberty/config.h -} - -##### external/gpl3/binutils/usr.bin ##### - -get_binutils () { - ### common - - mkdir -p $_TOP/external/gpl3/binutils/usr.bin/common/arch/$MACHINE_ARCH - - { - getvars binutils/Makefile \ - VERSION DEFS INCLUDES PROGRAMS - getvars binutils/doc/Makefile \ - man_MANS TEXINFOS - getvars bfd/doc/Makefile \ - PKGVERSION | sed 's,\\\(.\),\1,' - getvars bfd/doc/Makefile \ - REPORT_BUGS_TEXI - - for f in `getvars binutils/Makefile PROGRAMS | sed 'y,-,_,;s,^[^=]*=,,'`; do - getvars binutils/Makefile ${f}_OBJECTS ${f}_DEPENDENCIES - done - } | write_mk external/gpl3/binutils/usr.bin/common/arch/$MACHINE_ARCH/defs.mk - - write_c external/gpl3/binutils/usr.bin/common/arch/$MACHINE_ARCH/config.h \ - <$_TMPDIR/binutils/config.h - - ### gas - - mkdir -p $_TOP/external/gpl3/binutils/usr.bin/gas/arch/$MACHINE_ARCH - - grep -v DEPDIR "$_TMPDIR/gas/Makefile" > "$_TMPDIR/gas/Makefile.nodeps" - getvars gas/Makefile.nodeps \ - DEFS INCLUDES as_new_OBJECTS as_new_LDADD | - sed -e s/G_as_new_OBJECTS/G_OBJS/ \ - -e s/G_as_new_LDADD=/G_OBJS+=/ \ - -e 's/\.\..*a//' | - write_mk external/gpl3/binutils/usr.bin/gas/arch/$MACHINE_ARCH/defs.mk - - for f in config itbl-cpu obj-format targ-cpu targ-env; do - write_c external/gpl3/binutils/usr.bin/gas/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/gas/$f.h - done - - ### gprof - - mkdir -p $_TOP/external/gpl3/binutils/usr.bin/gprof/arch/$MACHINE_ARCH - - getvars gprof/Makefile \ - DEFS gprof_OBJECTS INCLUDES TEXINFOS \ - | write_mk external/gpl3/binutils/usr.bin/gprof/arch/$MACHINE_ARCH/defs.mk - - write_c external/gpl3/binutils/usr.bin/gprof/arch/$MACHINE_ARCH/gconfig.h <$_TMPDIR/gprof/gconfig.h - - ### ld - - mkdir -p $_TOP/external/gpl3/binutils/usr.bin/ld/arch/$MACHINE_ARCH - - { - getvars ld/Makefile \ - DEFS EMUL EMULATION_OFILES INCLUDES OFILES STRINGIFY TEXINFOS - getvars ld/Makefile \ - target_alias | sed 's,[\._0-9A-Z]*$,,' - getvars ld/Makefile \ - enable_initfini_array - } | write_mk external/gpl3/binutils/usr.bin/ld/arch/$MACHINE_ARCH/defs.mk - - for f in config ldemul-list; do - write_c external/gpl3/binutils/usr.bin/ld/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/ld/$f.h - done -} - -##### main ##### - -case $1 in -all|binutils) # everything (uses "canadian cross" temp environment) - get_binutils - get_libbfd - get_libopcodes - get_libiberty - exit 0 - ;; - -*) echo invalid arguments; exit 1;; -esac diff --git a/tools/cat/Makefile b/tools/cat/Makefile deleted file mode 100644 index b2e7de5ed..000000000 --- a/tools/cat/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2002/12/08 20:19:58 thorpej Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}cat -HOST_SRCDIR= bin/cat - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/cksum/Makefile b/tools/cksum/Makefile deleted file mode 100644 index 58c20baf8..000000000 --- a/tools/cksum/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2006/10/29 06:17:08 dogcow Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}cksum -HOST_SRCDIR= usr.bin/cksum -CPPFLAGS+= -I${.CURDIR}/../compat/sys - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/compat/Makefile b/tools/compat/Makefile deleted file mode 100644 index 39201b468..000000000 --- a/tools/compat/Makefile +++ /dev/null @@ -1,161 +0,0 @@ -# $NetBSD: Makefile,v 1.76 2015/09/17 14:25:43 christos Exp $ - -HOSTLIB= nbcompat - -.include - -SRCS= atoll.c basename.c cdbr.c cdbw.c dirname.c \ - dprintf.c fgetln.c flock.c fparseln.c fpurge.c \ - getcap.c getline.c getmode.c getopt_long.c gettemp.c \ - heapsort.c \ - issetugid.c lchflags.c lchmod.c lchown.c libyywrap.c \ - md2.c md2hl.c md4c.c md4hl.c md5c.c md5hl.c \ - mi_vector_hash.c mkdtemp.c \ - mkstemp.c pread.c putc_unlocked.c pwcache.c pwrite.c \ - pw_scan.c \ - raise_default_signal.c reallocarr.c rmd160.c rmd160hl.c \ - setenv.c setgroupent.c \ - setpassent.c setprogname.c sha1.c sha1hl.c sha2.c \ - sha256hl.c sha384hl.c sha512hl.c snprintb.c snprintf.c \ - stat_flags.c strlcat.c strlcpy.c strmode.c \ - strndup.c strnlen.c \ - strsep.c strsuftoll.c strtoll.c \ - strtoi.c strtou.c \ - unvis.c vis.c err.c errx.c errc.c verr.c verrx.c verrc.c \ - vwarn.c vwarnx.c vwarnc.c warn.c warnx.c warnc.c \ - fts.c glob.c efun.c - -BUILD_OSTYPE!= uname -s - -# Disable use of pre-compiled headers on Darwin. -.if ${BUILD_OSTYPE} == "Darwin" -CPPFLAGS+= -no-cpp-precomp -.endif - -# -D_FILE_OFFSET_BITS=64 produces a much more amenable `struct stat', and -# other file ops, on many systems, without changing function names. - -CPPFLAGS+= -I. -I./include -I${.CURDIR} -I${.CURDIR}/sys \ - -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 - -.PATH: ${.CURDIR}/../../lib/libc/cdb \ - ${.CURDIR}/../../lib/libc/gen \ - ${.CURDIR}/../../lib/libc/hash \ - ${.CURDIR}/../../lib/libc/hash/md2 \ - ${.CURDIR}/../../lib/libc/hash/md5 \ - ${.CURDIR}/../../lib/libc/hash/rmd160 \ - ${.CURDIR}/../../lib/libc/hash/sha1 \ - ${.CURDIR}/../../lib/libc/hash/sha2 \ - ${.CURDIR}/../../lib/libc/md \ - ${.CURDIR}/../../lib/libc/stdio \ - ${.CURDIR}/../../lib/libc/stdlib \ - ${.CURDIR}/../../lib/libc/string \ - ${.CURDIR}/../../lib/libutil \ - ${.CURDIR}/../../common/lib/libc/cdb \ - ${.CURDIR}/../../common/lib/libc/string \ - ${.CURDIR}/../../common/lib/libc/hash/rmd160 \ - ${.CURDIR}/../../common/lib/libc/hash/sha1 \ - ${.CURDIR}/../../common/lib/libc/hash/sha2 \ - ${.CURDIR}/../../common/lib/libc/md \ - ${.CURDIR}/../../common/lib/libc/stdlib \ - ${.CURDIR}/../../common/lib/libutil \ - ${.CURDIR}/../../external/bsd/flex/dist - -DPSRCS+= defs.mk -CLEANFILES+= config.log config.status configure.lineno *.stamp -CLEANDIRFILES+= defs.mk config.cache confdefs.h - -# Get components of Berkeley DB. -_CURDIR:= ${.CURDIR} -.CURDIR:= ${_CURDIR}/../../lib/libc -.include "${.CURDIR}/db/Makefile.inc" -.CURDIR:= ${_CURDIR} - -SRCS:= ${SRCS:M*.c} - -config.cache: include/.stamp configure nbtool_config.h.in defs.mk.in - rm -f ${.TARGET} - CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \ - ${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache - -defs.mk: config.cache - @touch ${.TARGET} - -INCFILES= nbtool_config.h -INCSUBDIRS= sys machine rpc arpa -CLEANDIRFILES+= ${INCFILES} - -# CLEANDIRFILES may not contain directory names -cleandir: cleandir.include -cleandir.include: .PHONY - rm -rf include - -include/.stamp: - mkdir -p ${INCSUBDIRS:@d@ include/$d @} - @touch ${.TARGET} - -# Install rules - -HOST_LIBDIR= ${TOOLDIR}/lib -HOST_INCSDIR= ${TOOLDIR}/include -HOST_SHAREDIR= ${TOOLDIR}/share - -install: .PHONY install.lib includes install.defs.mk - -# Install lib${HOSTLIB}.a in ${TOOLDIR}/lib -install.lib: .PHONY ${HOST_LIBDIR}/lib${HOSTLIB}.a -${HOST_LIBDIR}/lib${HOSTLIB}.a: lib${HOSTLIB}.a - ${_MKTARGET_INSTALL} - ${HOST_INSTALL_DIR} ${HOST_LIBDIR} - ${HOST_INSTALL_FILE} -m ${LIBMODE} ${.ALLSRC} ${.TARGET} - -.for _f in ${INCFILES} -HOST_INCINSTFILES+= ${HOST_INCSDIR}/compat/${_f} -${HOST_INCSDIR}/compat/${_f}: ${_f} - ${_MKTARGET_INSTALL} - ${HOST_INSTALL_FILE} ${.ALLSRC} ${.TARGET} -.endfor - -.for _d in ${INCSUBDIRS} -HOST_INCINSTDIRS+= ${HOST_INCSDIR}/compat/${_d} -${HOST_INCSDIR}/compat/${_d}: - ${_MKTARGET_INSTALL} - ${HOST_INSTALL_DIR} ${.TARGET} -.endfor - -# Install include files in ${TOOLDIR}/include/compat -includes: .PHONY ${HOST_INCINSTDIRS} .WAIT ${HOST_INCINSTFILES} - @(cd include && find . -name '*.h' -print | while read f ; do \ - ${HOST_INSTALL_FILE} $$f ${HOST_INCSDIR}/compat/$$f ; \ - done) - - -# Install defs.mk in ${TOOLDIR}/share/compat -install.defs.mk: .PHONY ${HOST_SHAREDIR}/compat/defs.mk -${HOST_SHAREDIR}/compat/defs.mk: defs.mk - ${_MKTARGET_INSTALL} - ${HOST_INSTALL_DIR} ${HOST_SHAREDIR} - ${HOST_INSTALL_DIR} ${HOST_SHAREDIR}/compat - ${HOST_INSTALL_FILE} ${.ALLSRC} ${.TARGET} - -# bsd.hostlib.mk wants HOST_CPPFLAGS, not CPPFLAGS - -HOST_CPPFLAGS:= ${CPPFLAGS} -CPPFLAGS:= # empty - -.include - -# Use uninstalled copy of host-mkdep -HOST_MKDEP_OBJ!= cd ${.CURDIR}/../host-mkdep && ${PRINTOBJDIR} -HOST_MKDEP= ${HOST_MKDEP_OBJ}/host-mkdep -MKDEP= ${HOST_MKDEP} - -# Use uninstalled copy of the install program -INSTALL_OBJ!= cd ${NETBSDSRCDIR}/tools/binstall && ${PRINTOBJDIR} -INSTALL= ${INSTALL_OBJ}/xinstall - -# Run "${TOOLDIR}/bin/nbmake-${MACHINE} regen" by hand after editing -# configure.ac. See more detailed instructions in configure.ac. -regen: - cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoconf - cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoheader diff --git a/tools/compat/cdbr.h b/tools/compat/cdbr.h deleted file mode 100644 index 4f09c9e86..000000000 --- a/tools/compat/cdbr.h +++ /dev/null @@ -1,5 +0,0 @@ -/* $NetBSD: cdbr.h,v 1.2 2013/12/11 01:24:08 joerg Exp $ */ - -/* We unconditionally use the NetBSD cdbr(3) in libnbcompat. */ -#include "nbtool_config.h" -#include "../../sys/sys/cdbr.h" diff --git a/tools/compat/cdbw.h b/tools/compat/cdbw.h deleted file mode 100644 index bc5b9cc7f..000000000 --- a/tools/compat/cdbw.h +++ /dev/null @@ -1,5 +0,0 @@ -/* $NetBSD: cdbw.h,v 1.1 2012/06/03 21:02:50 joerg Exp $ */ - -/* We unconditionally use the NetBSD cdbw(3) in libnbcompat. */ -#include "nbtool_config.h" -#include "../../include/cdbw.h" diff --git a/tools/compat/compat_defs.h b/tools/compat/compat_defs.h deleted file mode 100644 index e6ea51ebc..000000000 --- a/tools/compat/compat_defs.h +++ /dev/null @@ -1,1285 +0,0 @@ -/* $NetBSD: compat_defs.h,v 1.103 2015/09/21 21:50:16 pooka Exp $ */ - -#ifndef __NETBSD_COMPAT_DEFS_H__ -#define __NETBSD_COMPAT_DEFS_H__ - -/* - * On NetBSD, ensure that _NETBSD_SOURCE does not get defined, so that - * accidental attempts to use NetBSD-specific features instead of more - * portable features is likely to be noticed when the tools are built - * on NetBSD. Define enough other feature test macros to expose the - * features we need. - */ -#ifdef __NetBSD__ -#define _ISOC99_SOURCE -#define _POSIX_SOURCE 1 -#define _POSIX_C_SOURCE 200112L -#define _XOPEN_SOURCE 600 -#endif /* __NetBSD__ */ - -/* - * Linux: turns on _POSIX_SOURCE by default, even though the - * program (not the OS) should do that. Preload and - * then override some of the feature test macros. - */ - -#if defined(__linux__) && HAVE_FEATURES_H -#include -#undef _POSIX_SOURCE -#undef _POSIX_C_SOURCE -#define __USE_ISOC99 1 -#endif /* __linux__ && HAVE_FEATURES_H */ - -/* System headers needed for (re)definitions below. */ - -#include -#include -#include -/* time.h needs to be pulled in first at least on netbsd w/o _NETBSD_SOURCE */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#if HAVE_SYS_CDEFS_H -#include -#endif -#if HAVE_SYS_SYSLIMITS_H -#include -#endif -#if HAVE_SYS_SYSMACROS_H -/* major(), minor() on SVR4 */ -#include -#endif -#if HAVE_INTTYPES_H -#include -#endif -#if HAVE_STDDEF_H -#include -#endif - -#if HAVE_RPC_TYPES_H -#include -#endif - -#ifdef _NETBSD_SOURCE -#error _NETBSD_SOURCE is *not* to be defined. -#endif - -/* Need this since we can't depend on NetBSD's version to be around */ -#ifdef __UNCONST -#undef __UNCONST -#endif -#define __UNCONST(a) ((void *)(unsigned long)(const void *)(a)) -#ifdef __UNVOLATILE -#undef __UNVOLATILE -#endif -#define __UNVOLATILE(a) ((void *)(unsigned long)(volatile void *)(a)) - - -#undef __predict_false -#define __predict_false(x) (x) -#undef __predict_true -#define __predict_true(x) (x) - -/* We don't include here, so that "compat_pwd.h" works. */ -struct passwd; - -/* We don't include either */ -struct group; - -/* Assume an ANSI compiler for the host. */ - -#undef __P -#define __P(x) x - -#ifndef __BEGIN_DECLS -#define __BEGIN_DECLS -#endif -#ifndef __END_DECLS -#define __END_DECLS -#endif - -/* Some things in NetBSD . */ - -#ifndef __CONCAT -#define __CONCAT(x,y) x ## y -#endif -#if !defined(__attribute__) && !defined(__GNUC__) -#define __attribute__(x) -#endif -#if !defined(__packed) -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) -#define __packed __attribute__((__packed__)) -#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) -#define __packed __attribute__((__packed__)) -#else -#define __packed error: no __packed for this compiler -#endif -#endif /* !__packed */ -#ifndef __RENAME -#define __RENAME(x) -#endif -#undef __aconst -#define __aconst -#undef __dead -#define __dead -#undef __printflike -#define __printflike(x,y) -#undef __format_arg -#define __format_arg(x) -#undef __restrict -#define __restrict -#undef __unused -#define __unused -#undef __arraycount -#define __arraycount(__x) (sizeof(__x) / sizeof(__x[0])) -#undef __USE -#define __USE(a) ((void)(a)) -#undef __type_min_s -#define __type_min_s(t) ((t)((1ULL << (sizeof(t) * NBBY - 1)))) -#undef __type_max_s -#define __type_max_s(t) ((t)~((1ULL << (sizeof(t) * NBBY - 1)))) -#undef __type_min_u -#define __type_min_u(t) ((t)0ULL) -#undef __type_max_u -#define __type_max_u(t) ((t)~0ULL) -#undef __type_is_signed -#define __type_is_signed(t) (/*LINTED*/__type_min_s(t) + (t)1 < (t)1) -#undef __type_min -#define __type_min(t) (__type_is_signed(t) ? __type_min_s(t) : __type_min_u(t)) -#undef __type_max -#define __type_max(t) (__type_is_signed(t) ? __type_max_s(t) : __type_max_u(t)) - -/* Dirent support. */ - -#if HAVE_DIRENT_H -# if defined(__linux__) && defined(__USE_BSD) -# undef __USE_BSD -# include -# define __USE_BSD 1 -# undef d_fileno -# else -# include -# if defined(__DARWIN_UNIX03) -# undef d_fileno -# endif -# endif -# define NAMLEN(dirent) (strlen((dirent)->d_name)) -#else -# define dirent direct -# define NAMLEN(dirent) ((dirent)->d_namlen) -# if HAVE_SYS_NDIR_H -# include -# endif -# if HAVE_SYS_DIR_H -# include -# endif -# if HAVE_NDIR_H -# include -# endif -#endif - -/* Type substitutes. */ - -#if !HAVE_ID_T -typedef unsigned int id_t; -#endif - -#if !HAVE_SOCKLEN_T -/* - * This is defined as int for compatibility with legacy systems (and not - * unsigned int), since universally it was int in most systems that did not - * define it. - */ -typedef int socklen_t; -#endif - -#if !HAVE_U_LONG -typedef unsigned long u_long; -#endif - -#if !HAVE_U_CHAR -typedef unsigned char u_char; -#endif - -#if !HAVE_U_INT -typedef unsigned int u_int; -#endif - -#if !HAVE_U_SHORT -typedef unsigned short u_short; -#endif - -/* Prototypes for replacement functions. */ - -#if !HAVE_ATOLL -long long int atoll(const char *); -#endif - -#if !HAVE_ASPRINTF -int asprintf(char **, const char *, ...); -#endif - -#if !HAVE_ASNPRINTF -int asnprintf(char **, size_t, const char *, ...); -#endif - -#if !HAVE_BASENAME -char *basename(char *); -#endif - -#if !HAVE_DECL_OPTIND -int getopt(int, char *const *, const char *); -extern char *optarg; -extern int optind, opterr, optopt; -#endif - -#if !HAVE_DIRNAME -char *dirname(char *); -#endif - -#if !HAVE_DIRFD -#if HAVE_DIR_DD_FD -#define dirfd(dirp) ((dirp)->dd_fd) -#elif HAVE_DIR___DD_FD -#define dirfd(dirp) ((dirp)->__dd_fd) -#else -/*XXX: Very hacky but no other way to bring this into scope w/o defining - _NETBSD_SOURCE which we're avoiding. */ -#if defined(__NetBSD__) || defined(__minix) -struct _dirdesc { - int dd_fd; /* file descriptor associated with directory */ - long dd_loc; /* offset in current buffer */ - long dd_size; /* amount of data returned by getdents */ - char *dd_buf; /* data buffer */ - int dd_len; /* size of data buffer */ - off_t dd_seek; /* magic cookie returned by getdents */ - long dd_rewind; /* magic cookie for rewinding */ - int dd_flags; /* flags for readdir */ - void *dd_lock; /* lock for concurrent access */ -}; -#define dirfd(dirp) (((struct _dirdesc *)dirp)->dd_fd) -#else -#error cannot figure out how to turn a DIR * into a fd -#endif -#endif -#endif - -#if !HAVE_ERR_H -void err(int, const char *, ...); -void errx(int, const char *, ...); -void warn(const char *, ...); -void warnx(const char *, ...); -void vwarnx(const char *, va_list); -#endif -#if !HAVE_DECL_WARNC -void warnc(int, const char *, ...); -#endif -#if !HAVE_DECL_VWARNC -void vwarnc(int, const char *, va_list); -#endif -#if !HAVE_DECL_ERRC -void errc(int, int, const char *, ...); -#endif -#if !HAVE_DECL_VERRC -void verrc(int, int, const char *, va_list); -#endif - -#if !HAVE_ESETFUNC -void (*esetfunc(void (*)(int, const char *, ...)))(int, const char *, ...); -size_t estrlcpy(char *, const char *, size_t); -size_t estrlcat(char *, const char *, size_t); -char *estrdup(const char *); -char *estrndup(const char *, size_t); -void *ecalloc(size_t, size_t); -void *emalloc(size_t); -void *erealloc(void *, size_t); -FILE *efopen(const char *, const char *); -int easprintf(char **, const char *, ...); -int evasprintf(char **, const char *, va_list); -#endif - -#if !HAVE_FGETLN || defined(__NetBSD__) || defined(__minix) -char *fgetln(FILE *, size_t *); -#endif -#if !HAVE_DPRINTF -int dprintf(int, const char *, ...); -#endif - -#if !HAVE_FLOCK -# define LOCK_SH 0x01 -# define LOCK_EX 0x02 -# define LOCK_NB 0x04 -# define LOCK_UN 0x08 -int flock(int, int); -#endif - -#if !HAVE_FPARSELN || BROKEN_FPARSELN || defined(__NetBSD__) || defined(__minix) -# define FPARSELN_UNESCESC 0x01 -# define FPARSELN_UNESCCONT 0x02 -# define FPARSELN_UNESCCOMM 0x04 -# define FPARSELN_UNESCREST 0x08 -# define FPARSELN_UNESCALL 0x0f -char *fparseln(FILE *, size_t *, size_t *, const char [3], int); -#endif - -#if !HAVE_GETLINE -ssize_t getdelim(char **, size_t *, int, FILE *); -ssize_t getline(char **, size_t *, FILE *); -#endif - -#if !HAVE_ISSETUGID -int issetugid(void); -#endif - -#if !HAVE_ISBLANK && !defined(isblank) -#define isblank(x) ((x) == ' ' || (x) == '\t') -#endif - -#define __nbcompat_bswap16(x) ((((x) << 8) & 0xff00) | (((x) >> 8) & 0x00ff)) - -#define __nbcompat_bswap32(x) ((((x) << 24) & 0xff000000) | \ - (((x) << 8) & 0x00ff0000) | \ - (((x) >> 8) & 0x0000ff00) | \ - (((x) >> 24) & 0x000000ff)) - -#define __nbcompat_bswap64(x) (((u_int64_t)bswap32((x)) << 32) | \ - ((u_int64_t)bswap32((x) >> 32))) - -#if ! HAVE_DECL_BSWAP16 -#ifdef bswap16 -#undef bswap16 -#endif -#define bswap16(x) __nbcompat_bswap16(x) -#endif -#if ! HAVE_DECL_BSWAP32 -#ifdef bswap32 -#undef bswap32 -#endif -#define bswap32(x) __nbcompat_bswap32(x) -#endif -#if ! HAVE_DECL_BSWAP64 -#ifdef bswap64 -#undef bswap64 -#endif -#define bswap64(x) __nbcompat_bswap64(x) -#endif - -#if !HAVE_MKSTEMP -int mkstemp(char *); -#endif - -#if !HAVE_MKDTEMP -char *mkdtemp(char *); -#endif - -#if !HAVE_MKSTEMP || !HAVE_MKDTEMP -/* This is a prototype for the internal function defined in - * src/lib/lib/stdio/gettemp.c */ -int __nbcompat_gettemp(char *, int *, int); -#endif - -#if !HAVE_PREAD -ssize_t pread(int, void *, size_t, off_t); -#endif - -#if !HAVE_HEAPSORT -int heapsort (void *, size_t, size_t, int (*)(const void *, const void *)); -#endif -/* Make them use our version */ -# define heapsort __nbcompat_heapsort - -char *flags_to_string(unsigned long, const char *); -int string_to_flags(char **, unsigned long *, unsigned long *); - -/* - * HAVE_X_FROM_Y and HAVE_PWCACHE_FOODB go together, because we cannot - * supply an implementation of one without the others -- some parts are - * libc internal and this varies from system to system. - * - * XXX this is dubious anyway: we assume (see HAVE_DECLs below) that if the - * XXX host system has all of these functions, all of their interfaces - * XXX and interactions are exactly the same as in our libc/libutil -- ugh. - */ -#if !HAVE_USER_FROM_UID || !HAVE_UID_FROM_USER || !HAVE_GROUP_FROM_GID || \ - !HAVE_GID_FROM_GROUP || !HAVE_PWCACHE_USERDB || !HAVE_PWCACHE_GROUDB -/* Make them use our version */ -# define user_from_uid __nbcompat_user_from_uid -# define uid_from_user __nbcompat_uid_from_user -# define pwcache_userdb __nbcompat_pwcache_userdb -# define group_from_gid __nbcompat_group_from_gid -# define gid_from_group __nbcompat_gid_from_group -# define pwcache_groupdb __nbcompat_pwcache_groupdb -#endif - -#if !HAVE_DECL_UID_FROM_USER -int uid_from_user(const char *, uid_t *); -#endif - -#if !HAVE_DECL_USER_FROM_UID -const char *user_from_uid(uid_t, int); -#endif - -#if !HAVE_DECL_PWCACHE_USERDB -int pwcache_userdb(int (*)(int), void (*)(void), - struct passwd * (*)(const char *), struct passwd * (*)(uid_t)); -#endif - -#if !HAVE_DECL_GID_FROM_GROUP -int gid_from_group(const char *, gid_t *); -#endif - -#if !HAVE_DECL_GROUP_FROM_GID -const char *group_from_gid(gid_t, int); -#endif - -#if !HAVE_DECL_PWCACHE_GROUPDB -int pwcache_groupdb(int (*)(int), void (*)(void), - struct group * (*)(const char *), struct group * (*)(gid_t)); -#endif - -#if !HAVE_DECL_STRNDUP -char *strndup(const char *, size_t); -#endif -#if !HAVE_DECL_STRNLEN -size_t strnlen(const char *, size_t); -#endif -#if !HAVE_DECL_LCHFLAGS -int lchflags(const char *, unsigned long); -#endif -#if !HAVE_DECL_LCHMOD -int lchmod(const char *, mode_t); -#endif -#if !HAVE_DECL_LCHOWN -int lchown(const char *, uid_t, gid_t); -#endif - -#if !HAVE_PWRITE -ssize_t pwrite(int, const void *, size_t, off_t); -#endif - -#if !HAVE_RAISE_DEFAULT_SIGNAL -int raise_default_signal(int); -#endif - -#if !HAVE_REALLOCARR -int reallocarr(void *, size_t, size_t); -#endif - -#if !HAVE_SETENV -int setenv(const char *, const char *, int); -#endif - -#if !HAVE_DECL_SETGROUPENT -int setgroupent(int); -#endif - -#if !HAVE_DECL_SETPASSENT -int setpassent(int); -#endif - -#if !HAVE_SETPROGNAME || defined(__NetBSD__) || defined(__minix) -const char *getprogname(void); -void setprogname(const char *); -#endif - -#if !HAVE_SNPRINTB_M -int snprintb(char *, size_t, const char *, uint64_t); -int snprintb_m(char *, size_t, const char *, uint64_t, size_t); -#endif - -#if !HAVE_SNPRINTF -int snprintf(char *, size_t, const char *, ...); -#endif - -#if !HAVE_STRLCAT -size_t strlcat(char *, const char *, size_t); -#endif - -#if !HAVE_STRLCPY -size_t strlcpy(char *, const char *, size_t); -#endif - -#if !HAVE_STRMODE -void strmode(mode_t, char *); -#endif - -#if !HAVE_STRNDUP -char *strndup(const char *, size_t); -#endif - -#if !HAVE_STRSEP || defined(__NetBSD__) || defined(__minix) -char *strsep(char **, const char *); -#endif - -#if !HAVE_DECL_STRSUFTOLL -long long strsuftoll(const char *, const char *, long long, long long); -long long strsuftollx(const char *, const char *, - long long, long long, char *, size_t); -#endif - -#if !HAVE_STRTOLL -long long strtoll(const char *, char **, int); -#endif - -#if !HAVE_STRTOI -intmax_t strtoi(const char * __restrict, char ** __restrict, int, - intmax_t, intmax_t, int *); -#endif - -#if !HAVE_STRTOU -uintmax_t strtou(const char * __restrict, char ** __restrict, int, - uintmax_t, uintmax_t, int *); -#endif - -#if !HAVE_USER_FROM_UID -const char *user_from_uid(uid_t, int); -#endif - -#if !HAVE_GROUP_FROM_GID -const char *group_from_gid(gid_t, int); -#endif - -#if !HAVE_VASPRINTF -int vasprintf(char **, const char *, va_list); -#endif - -#if !HAVE_VASNPRINTF -int vasnprintf(char **, size_t, const char *, va_list); -#endif - -#if !HAVE_VSNPRINTF -int vsnprintf(char *, size_t, const char *, va_list); -#endif - -/* - * getmode() and setmode() are always defined, as these function names - * exist but with very different meanings on other OS's. The compat - * versions here simply accept an octal mode number; the "u+x,g-w" type - * of syntax is not accepted. - */ - -#define getmode __nbcompat_getmode -#define setmode __nbcompat_setmode - -mode_t getmode(const void *, mode_t); -void *setmode(const char *); - -/* Eliminate assertions embedded in binaries. */ - -#undef _DIAGASSERT -#define _DIAGASSERT(x) - -/* Various sources use this */ -#undef __RCSID -#define __RCSID(x) struct XXXNETBSD_RCSID -#undef __SCCSID -#define __SCCSID(x) -#undef __COPYRIGHT -#define __COPYRIGHT(x) struct XXXNETBSD_COPYRIGHT -#undef __KERNEL_RCSID -#define __KERNEL_RCSID(x,y) - -/* Heimdal expects this one. */ - -#undef RCSID -#define RCSID(x) - -/* Some definitions not available on all systems. */ - -#ifndef __inline -#define __inline inline -#endif - -/* */ - -#ifndef EFTYPE -#define EFTYPE EIO -#endif - -/* */ - -#ifndef O_EXLOCK -#define O_EXLOCK 0 -#endif -#ifndef O_SHLOCK -#define O_SHLOCK 0 -#endif -#ifndef O_CLOEXEC -#define O_CLOEXEC 0 -#endif - -/* */ - -#if UCHAR_MAX == 0xffU /* char is an 8-bit type */ -#ifndef PRId8 -#define PRId8 "hhd" -#endif -#ifndef PRIi8 -#define PRIi8 "hhi" -#endif -#ifndef PRIo8 -#define PRIo8 "hho" -#endif -#ifndef PRIu8 -#define PRIu8 "hhu" -#endif -#ifndef PRIx8 -#define PRIx8 "hhx" -#endif -#ifndef PRIX8 -#define PRIX8 "hhX" -#endif -#ifndef SCNd8 -#define SCNd8 "hhd" -#endif -#ifndef SCNi8 -#define SCNi8 "hhi" -#endif -#ifndef SCNo8 -#define SCNo8 "hho" -#endif -#ifndef SCNu8 -#define SCNu8 "hhu" -#endif -#ifndef SCNx8 -#define SCNx8 "hhx" -#endif -#ifndef SCNX8 -#define SCNX8 "hhX" -#endif -#endif /* char is an 8-bit type */ -#if ! (defined(PRId8) && defined(PRIi8) && defined(PRIo8) && \ - defined(PRIu8) && defined(PRIx8) && defined(PRIX8)) -#error "Don't know how to define PRI[diouxX]8" -#endif -#if ! (defined(SCNd8) && defined(SCNi8) && defined(SCNo8) && \ - defined(SCNu8) && defined(SCNx8) && defined(SCNX8)) -#error "Don't know how to define SCN[diouxX]8" -#endif - -#if USHRT_MAX == 0xffffU /* short is a 16-bit type */ -#ifndef PRId16 -#define PRId16 "hd" -#endif -#ifndef PRIi16 -#define PRIi16 "hi" -#endif -#ifndef PRIo16 -#define PRIo16 "ho" -#endif -#ifndef PRIu16 -#define PRIu16 "hu" -#endif -#ifndef PRIx16 -#define PRIx16 "hx" -#endif -#ifndef PRIX16 -#define PRIX16 "hX" -#endif -#ifndef SCNd16 -#define SCNd16 "hd" -#endif -#ifndef SCNi16 -#define SCNi16 "hi" -#endif -#ifndef SCNo16 -#define SCNo16 "ho" -#endif -#ifndef SCNu16 -#define SCNu16 "hu" -#endif -#ifndef SCNx16 -#define SCNx16 "hx" -#endif -#ifndef SCNX16 -#define SCNX16 "hX" -#endif -#endif /* short is a 16-bit type */ -#if ! (defined(PRId16) && defined(PRIi16) && defined(PRIo16) && \ - defined(PRIu16) && defined(PRIx16) && defined(PRIX16)) -#error "Don't know how to define PRI[diouxX]16" -#endif -#if ! (defined(SCNd16) && defined(SCNi16) && defined(SCNo16) && \ - defined(SCNu16) && defined(SCNx16) && defined(SCNX16)) -#error "Don't know how to define SCN[diouxX]16" -#endif - -#if UINT_MAX == 0xffffffffU /* int is a 32-bit type */ -#ifndef PRId32 -#define PRId32 "d" -#endif -#ifndef PRIi32 -#define PRIi32 "i" -#endif -#ifndef PRIo32 -#define PRIo32 "o" -#endif -#ifndef PRIu32 -#define PRIu32 "u" -#endif -#ifndef PRIx32 -#define PRIx32 "x" -#endif -#ifndef PRIX32 -#define PRIX32 "X" -#endif -#ifndef SCNd32 -#define SCNd32 "d" -#endif -#ifndef SCNi32 -#define SCNi32 "i" -#endif -#ifndef SCNo32 -#define SCNo32 "o" -#endif -#ifndef SCNu32 -#define SCNu32 "u" -#endif -#ifndef SCNx32 -#define SCNx32 "x" -#endif -#ifndef SCNX32 -#define SCNX32 "X" -#endif -#endif /* int is a 32-bit type */ -#if ULONG_MAX == 0xffffffffU /* long is a 32-bit type */ -#ifndef PRId32 -#define PRId32 "ld" -#endif -#ifndef PRIi32 -#define PRIi32 "li" -#endif -#ifndef PRIo32 -#define PRIo32 "lo" -#endif -#ifndef PRIu32 -#define PRIu32 "lu" -#endif -#ifndef PRIx32 -#define PRIx32 "lx" -#endif -#ifndef PRIX32 -#define PRIX32 "lX" -#endif -#ifndef SCNd32 -#define SCNd32 "ld" -#endif -#ifndef SCNi32 -#define SCNi32 "li" -#endif -#ifndef SCNo32 -#define SCNo32 "lo" -#endif -#ifndef SCNu32 -#define SCNu32 "lu" -#endif -#ifndef SCNx32 -#define SCNx32 "lx" -#endif -#ifndef SCNX32 -#define SCNX32 "lX" -#endif -#endif /* long is a 32-bit type */ -#if ! (defined(PRId32) && defined(PRIi32) && defined(PRIo32) && \ - defined(PRIu32) && defined(PRIx32) && defined(PRIX32)) -#error "Don't know how to define PRI[diouxX]32" -#endif -#if ! (defined(SCNd32) && defined(SCNi32) && defined(SCNo32) && \ - defined(SCNu32) && defined(SCNx32) && defined(SCNX32)) -#error "Don't know how to define SCN[diouxX]32" -#endif - -#if ULONG_MAX == 0xffffffffffffffffU /* long is a 64-bit type */ -#ifndef PRId64 -#define PRId64 "ld" -#endif -#ifndef PRIi64 -#define PRIi64 "li" -#endif -#ifndef PRIo64 -#define PRIo64 "lo" -#endif -#ifndef PRIu64 -#define PRIu64 "lu" -#endif -#ifndef PRIx64 -#define PRIx64 "lx" -#endif -#ifndef PRIX64 -#define PRIX64 "lX" -#endif -#ifndef SCNd64 -#define SCNd64 "ld" -#endif -#ifndef SCNi64 -#define SCNi64 "li" -#endif -#ifndef SCNo64 -#define SCNo64 "lo" -#endif -#ifndef SCNu64 -#define SCNu64 "lu" -#endif -#ifndef SCNx64 -#define SCNx64 "lx" -#endif -#ifndef SCNX64 -#define SCNX64 "lX" -#endif -#endif /* long is a 64-bit type */ -#if ULLONG_MAX == 0xffffffffffffffffU /* long long is a 64-bit type */ -#ifndef PRId64 -#define PRId64 "lld" -#endif -#ifndef PRIi64 -#define PRIi64 "lli" -#endif -#ifndef PRIo64 -#define PRIo64 "llo" -#endif -#ifndef PRIu64 -#define PRIu64 "llu" -#endif -#ifndef PRIx64 -#define PRIx64 "llx" -#endif -#ifndef PRIX64 -#define PRIX64 "llX" -#endif -#ifndef SCNd64 -#define SCNd64 "lld" -#endif -#ifndef SCNi64 -#define SCNi64 "lli" -#endif -#ifndef SCNo64 -#define SCNo64 "llo" -#endif -#ifndef SCNu64 -#define SCNu64 "llu" -#endif -#ifndef SCNx64 -#define SCNx64 "llx" -#endif -#ifndef SCNX64 -#define SCNX64 "llX" -#endif -#endif /* long long is a 64-bit type */ -#if ! (defined(PRId64) && defined(PRIi64) && defined(PRIo64) && \ - defined(PRIu64) && defined(PRIx64) && defined(PRIX64)) -#error "Don't know how to define PRI[diouxX]64" -#endif -#if ! (defined(SCNd64) && defined(SCNi64) && defined(SCNo64) && \ - defined(SCNu64) && defined(SCNx64) && defined(SCNX64)) -#error "Don't know how to define SCN[diouxX]64" -#endif - -/* */ - -#ifndef UID_MAX -#define UID_MAX 32767 -#endif -#ifndef GID_MAX -#define GID_MAX UID_MAX -#endif - -#ifndef UQUAD_MAX -#define UQUAD_MAX ((u_quad_t)-1) -#endif -#ifndef QUAD_MAX -#define QUAD_MAX ((quad_t)(UQUAD_MAX >> 1)) -#endif -#ifndef QUAD_MIN -#define QUAD_MIN ((quad_t)(~QUAD_MAX)) -#endif -#ifndef ULLONG_MAX -#define ULLONG_MAX ((unsigned long long)-1) -#endif -#ifndef LLONG_MAX -#define LLONG_MAX ((long long)(ULLONG_MAX >> 1)) -#endif -#ifndef LLONG_MIN -#define LLONG_MIN ((long long)(~LLONG_MAX)) -#endif - -#ifndef MAXPATHLEN -#define MAXPATHLEN 4096 -#endif -#ifndef PATH_MAX -#define PATH_MAX MAXPATHLEN -#endif - -/* */ - -/* The host's _PATH_BSHELL might be broken, so override it. */ -#undef _PATH_BSHELL -#define _PATH_BSHELL PATH_BSHELL -#ifndef _PATH_DEFPATH -#define _PATH_DEFPATH "/usr/bin:/bin:/usr/local/bin" -#endif -#ifndef _PATH_DEV -#define _PATH_DEV "/dev/" -#endif -#ifndef _PATH_DEVNULL -#define _PATH_DEVNULL _PATH_DEV "null" -#endif -#ifndef _PATH_TMP -#define _PATH_TMP "/tmp/" -#endif -#ifndef _PATH_DEFTAPE -#define _PATH_DEFTAPE "/dev/nrst0" -#endif -#ifndef _PATH_VI -#define _PATH_VI "/usr/bin/vi" -#endif - -/* */ - -#if !defined(SIZE_MAX) && defined(SIZE_T_MAX) -#define SIZE_MAX SIZE_T_MAX -#endif - -#ifndef UINT8_MAX -#define UINT8_MAX 0xffU -#endif - -#ifndef UINT16_MAX -#define UINT16_MAX 0xffffU -#endif - -#ifndef UINT32_MAX -#define UINT32_MAX 0xffffffffU -#endif - -/* */ - -#ifndef __GNUC__ -# if HAVE_ALLOCA_H -# include -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -# endif -# endif -#endif - -/* avoid prototype conflicts with host */ -#define cgetcap __nbcompat_cgetcap -#define cgetclose __nbcompat_cgetclose -#define cgetent __nbcompat_cgetent -#define cgetfirst __nbcompat_cgetfirst -#define cgetmatch __nbcompat_cgetmatch -#define cgetnext __nbcompat_cgetnext -#define cgetnum __nbcompat_cgetnum -#define cgetset __nbcompat_cgetset -#define cgetstr __nbcompat_cgetstr -#define cgetustr __nbcompat_cgetustr - -char *cgetcap(char *, const char *, int); -int cgetclose(void); -int cgetent(char **, const char * const *, const char *); -int cgetfirst(char **, const char * const *); -int cgetmatch(const char *, const char *); -int cgetnext(char **, const char * const *); -int cgetnum(char *, const char *, long *); -int cgetset(const char *); -int cgetstr(char *, const char *, char **); -int cgetustr(char *, const char *, char **); - -/* */ - -#if WORDS_BIGENDIAN -#if !HAVE_DECL_HTOBE16 -#define htobe16(x) (x) -#endif -#if !HAVE_DECL_HTOBE32 -#define htobe32(x) (x) -#endif -#if !HAVE_DECL_HTOBE64 -#define htobe64(x) (x) -#endif -#if !HAVE_DECL_HTOLE16 -#define htole16(x) bswap16((u_int16_t)(x)) -#endif -#if !HAVE_DECL_HTOLE32 -#define htole32(x) bswap32((u_int32_t)(x)) -#endif -#if !HAVE_DECL_HTOLE64 -#define htole64(x) bswap64((u_int64_t)(x)) -#endif -#else -#if !HAVE_DECL_HTOBE16 -#define htobe16(x) bswap16((u_int16_t)(x)) -#endif -#if !HAVE_DECL_HTOBE32 -#define htobe32(x) bswap32((u_int32_t)(x)) -#endif -#if !HAVE_DECL_HTOBE64 -#define htobe64(x) bswap64((u_int64_t)(x)) -#endif -#if !HAVE_DECL_HTOLE16 -#define htole16(x) (x) -#endif -#if !HAVE_DECL_HTOLE32 -#define htole32(x) (x) -#endif -#if !HAVE_DECL_HTOLE64 -#define htole64(x) (x) -#endif -#endif -#if !HAVE_DECL_BE16TOH -#define be16toh(x) htobe16(x) -#endif -#if !HAVE_DECL_BE32TOH -#define be32toh(x) htobe32(x) -#endif -#if !HAVE_DECL_BE64TOH -#define be64toh(x) htobe64(x) -#endif -#if !HAVE_DECL_LE16TOH -#define le16toh(x) htole16(x) -#endif -#if !HAVE_DECL_LE32TOH -#define le32toh(x) htole32(x) -#endif -#if !HAVE_DECL_LE64TOH -#define le64toh(x) htole64(x) -#endif - -#define __GEN_ENDIAN_ENC(bits, endian) \ -static void \ -endian ## bits ## enc(void *dst, uint ## bits ## _t u) \ -{ \ - u = hto ## endian ## bits (u); \ - memcpy(dst, &u, sizeof(u)); \ -} -#if !HAVE_DECL_BE16ENC -__GEN_ENDIAN_ENC(16, be) -#endif -#if !HAVE_DECL_BE32ENC -__GEN_ENDIAN_ENC(32, be) -#endif -#if !HAVE_DECL_BE64ENC -__GEN_ENDIAN_ENC(64, be) -#endif -#if !HAVE_DECL_LE16ENC -__GEN_ENDIAN_ENC(16, le) -#endif -#if !HAVE_DECL_LE32ENC -__GEN_ENDIAN_ENC(32, le) -#endif -#if !HAVE_DECL_LE64ENC -__GEN_ENDIAN_ENC(64, le) -#endif -#undef __GEN_ENDIAN_ENC - -#define __GEN_ENDIAN_DEC(bits, endian) \ -static uint ## bits ## _t \ -endian ## bits ## dec(const void *buf) \ -{ \ - uint ## bits ## _t u; \ - memcpy(&u, buf, sizeof(u)); \ - return endian ## bits ## toh (u); \ -} -#if !HAVE_DECL_BE16DEC -__GEN_ENDIAN_DEC(16, be) -#endif -#if !HAVE_DECL_BE32DEC -__GEN_ENDIAN_DEC(32, be) -#endif -#if !HAVE_DECL_BE64DEC -__GEN_ENDIAN_DEC(64, be) -#endif -#if !HAVE_DECL_LE16DEC -__GEN_ENDIAN_DEC(16, le) -#endif -#if !HAVE_DECL_LE32DEC -__GEN_ENDIAN_DEC(32, le) -#endif -#if !HAVE_DECL_LE64DEC -__GEN_ENDIAN_DEC(64, le) -#endif -#undef __GEN_ENDIAN_DEC - -/* */ - -#ifndef MAP_FILE -#define MAP_FILE 0 -#endif - -/* HP-UX has MAP_ANONYMOUS but not MAP_ANON */ -#ifndef MAP_ANON -#ifdef MAP_ANONYMOUS -#define MAP_ANON MAP_ANONYMOUS -#endif -#endif - -/* */ - -#undef BIG_ENDIAN -#undef LITTLE_ENDIAN -#undef PDP_ENDIAN -#define BIG_ENDIAN 4321 -#define LITTLE_ENDIAN 1234 -#define PDP_ENDIAN 3412 - -#undef BYTE_ORDER -#if WORDS_BIGENDIAN -#define BYTE_ORDER BIG_ENDIAN -#else -#define BYTE_ORDER LITTLE_ENDIAN -#endif - -/* all references of DEV_BSIZE in tools are for NetBSD's file images */ -#undef DEV_BSIZE -#define DEV_BSIZE (1 << 9) - -#undef MIN -#undef MAX -#define MIN(a,b) ((a) < (b) ? (a) : (b)) -#define MAX(a,b) ((a) > (b) ? (a) : (b)) - -#ifndef MAXBSIZE -#define MAXBSIZE (64 * 1024) -#endif -#ifndef MAXFRAG -#define MAXFRAG 8 -#endif -#ifndef MAXPHYS -#define MAXPHYS (64 * 1024) -#endif -#ifndef MAXHOSTNAMELEN -#define MAXHOSTNAMELEN 256 -#endif - -/* XXX needed by makefs; this should be done in a better way */ -#undef btodb -#define btodb(x) ((x) << 9) - -#undef setbit -#undef clrbit -#undef isset -#undef isclr -#define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) -#define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) -#define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) -#define isclr(a,i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0) - -#ifndef powerof2 -#define powerof2(x) ((((x)-1)&(x))==0) -#endif - -#undef roundup -#define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) - -/* */ - -#ifndef ALLPERMS -#define ALLPERMS (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO) -#endif -#ifndef DEFFILEMODE -#define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) -#endif -#ifndef S_ISTXT -#ifdef S_ISVTX -#define S_ISTXT S_ISVTX -#else -#define S_ISTXT 0 -#endif -#endif - -/* Protected by _NETBSD_SOURCE otherwise. */ -#if HAVE_STRUCT_STAT_ST_FLAGS && (defined(__NetBSD__) || defined(__minix)) -#define UF_SETTABLE 0x0000ffff -#define UF_NODUMP 0x00000001 -#define UF_IMMUTABLE 0x00000002 -#define UF_APPEND 0x00000004 -#define UF_OPAQUE 0x00000008 -#define SF_SETTABLE 0xffff0000 -#define SF_ARCHIVED 0x00010000 -#define SF_IMMUTABLE 0x00020000 -#define SF_APPEND 0x00040000 -#endif - -/* */ - -#ifndef LINE_MAX -#define LINE_MAX 2048 -#endif - -/* */ - -#ifndef timercmp -#define timercmp(tvp, uvp, cmp) \ - (((tvp)->tv_sec == (uvp)->tv_sec) ? \ - ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ - ((tvp)->tv_sec cmp (uvp)->tv_sec)) -#endif -#ifndef timeradd -#define timeradd(tvp, uvp, vvp) \ - do { \ - (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ - (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ - if ((vvp)->tv_usec >= 1000000) { \ - (vvp)->tv_sec++; \ - (vvp)->tv_usec -= 1000000; \ - } \ - } while (/* CONSTCOND */ 0) -#endif -#ifndef timersub -#define timersub(tvp, uvp, vvp) \ - do { \ - (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \ - (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \ - if ((vvp)->tv_usec < 0) { \ - (vvp)->tv_sec--; \ - (vvp)->tv_usec += 1000000; \ - } \ - } while (/* CONSTCOND */ 0) -#endif - -/* */ - -#ifdef major -#undef major -#endif -#define major(x) ((int32_t)((((x) & 0x000fff00) >> 8))) - -#ifdef minor -#undef minor -#endif -#define minor(x) ((int32_t)((((x) & 0xfff00000) >> 12) | \ - (((x) & 0x000000ff) >> 0))) -#ifdef makedev -#undef makedev -#endif -#define makedev(x,y) ((dev_t)((((x) << 8) & 0x000fff00) | \ - (((y) << 12) & 0xfff00000) | \ - (((y) << 0) & 0x000000ff))) -#ifndef NBBY -#define NBBY 8 -#endif - -#if !HAVE_U_QUAD_T -/* #define, not typedef, as quad_t exists as a struct on some systems */ -#define quad_t long long -#define u_quad_t unsigned long long -#define strtoq strtoll -#define strtouq strtoull -#endif - -/* Has quad_t but these prototypes don't get pulled into scope. w/o we lose */ -#if defined(__NetBSD__) || defined(__minix) -quad_t strtoq(const char *, char **, int); -u_quad_t strtouq(const char *, char **, int); -#endif - -#endif /* !__NETBSD_COMPAT_DEFS_H__ */ diff --git a/tools/compat/compat_getopt.h b/tools/compat/compat_getopt.h deleted file mode 100644 index 86599bf3f..000000000 --- a/tools/compat/compat_getopt.h +++ /dev/null @@ -1,17 +0,0 @@ -/* $NetBSD: compat_getopt.h,v 1.2 2007/11/08 20:30:59 christos Exp $ */ - -/* We unconditionally use the NetBSD getopt.h in libnbcompat. */ - -#if HAVE_GETOPT_H -#include -#endif - -#define option __nbcompat_option -#define getopt_long __nbcompat_getopt_long - -#undef no_argument -#undef required_argument -#undef optional_argument -#undef _GETOPT_H_ - -#include "../../include/getopt.h" diff --git a/tools/compat/compat_pwd.h b/tools/compat/compat_pwd.h deleted file mode 100644 index 00dd2e274..000000000 --- a/tools/compat/compat_pwd.h +++ /dev/null @@ -1,63 +0,0 @@ -/* $NetBSD: compat_pwd.h,v 1.6 2009/01/18 01:44:09 christos Exp $ */ - -/*- - * Copyright (c) 2001 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Todd Vierling. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef _COMPAT_PWD_H_ -#define _COMPAT_PWD_H_ - -/* A very special version of for pwd_mkdb(8) and __nbcompat_pwscan(3). */ - -#include "../../include/pwd.h" - -#define passwd __nbcompat_passwd -#define pw_scan __nbcompat_pw_scan -#ifdef LOGIN_NAME_MAX -#undef LOGIN_NAME_MAX -#endif -/* Taken from syslimits.h. Need the NetBSD def, not the local system def */ -#define LOGIN_NAME_MAX 17 - -/* All elements exactly sized: */ -struct passwd { - char *pw_name; - char *pw_passwd; - int32_t pw_uid; - int32_t pw_gid; - int64_t pw_change; - char *pw_class; - char *pw_gecos; - char *pw_dir; - char *pw_shell; - int64_t pw_expire; -}; - -int pw_scan(char *, struct passwd *, int *); - -#endif /* !_PWD_H_ */ diff --git a/tools/compat/configure b/tools/compat/configure deleted file mode 100755 index 7a2b30254..000000000 --- a/tools/compat/configure +++ /dev/null @@ -1,8848 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by Autoconf 2.52 for libnbcompat noversion. -# -# Report bugs to . -# -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 -# Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi - -# Name of the executable. -as_me=`echo "$0" |sed 's,.*[\\/],,'` - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -as_executable_p="test -f" - -# Support unset when possible. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - -# NLS nuisances. -$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } -$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } -$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } -$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } -$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } -$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } -$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } -$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -exec 6>&1 - -# -# Initializations. -# -ac_default_prefix=/usr/local -cross_compiling=no -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Maximum number of lines to put in a shell here document. -# This variable seems obsolete. It should probably be removed, and -# only ac_max_sed_lines should be used. -: ${ac_max_here_lines=38} - -# Factoring default headers for most tests. -ac_includes_default="\ -#include -#if HAVE_SYS_TYPES_H -# include -#endif -#if HAVE_SYS_STAT_H -# include -#endif -#if STDC_HEADERS -# include -# include -#else -# if HAVE_STDLIB_H -# include -# endif -#endif -#if HAVE_STRING_H -# if !STDC_HEADERS && HAVE_MEMORY_H -# include -# endif -# include -#endif -#if HAVE_STRINGS_H -# include -#endif -#if HAVE_INTTYPES_H -# include -#else -# if HAVE_STDINT_H -# include -# endif -#endif -#if HAVE_UNISTD_H -# include -#endif" - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Identity of this package. -PACKAGE_NAME='libnbcompat' -PACKAGE_TARNAME='libnbcompat' -PACKAGE_VERSION='noversion' -PACKAGE_STRING='libnbcompat noversion' -PACKAGE_BUGREPORT='lib-bug-people@NetBSD.org' - -ac_prev= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_option in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - eval "enable_$ac_feature=no" ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "enable_$ac_feature='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package| sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "with_$ac_package='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/-/_/g'` - eval "with_$ac_package=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` - eval "$ac_envvar='$ac_optarg'" - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute paths. -for ac_var in exec_prefix prefix -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; - *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -# Be sure to have absolute paths. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ - localstatedir libdir includedir oldincludedir infodir mandir -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* ) ;; - *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: should be removed in autoconf 3.0. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 - { (exit 1); exit 1; }; } - else - { echo "$as_me: error: cannot find sources in $srcdir" >&2 - { (exit 1); exit 1; }; } - fi -fi -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` -ac_env_build_alias_set=${build_alias+set} -ac_env_build_alias_value=$build_alias -ac_cv_env_build_alias_set=${build_alias+set} -ac_cv_env_build_alias_value=$build_alias -ac_env_host_alias_set=${host_alias+set} -ac_env_host_alias_value=$host_alias -ac_cv_env_host_alias_set=${host_alias+set} -ac_cv_env_host_alias_value=$host_alias -ac_env_target_alias_set=${target_alias+set} -ac_env_target_alias_value=$target_alias -ac_cv_env_target_alias_set=${target_alias+set} -ac_cv_env_target_alias_value=$target_alias -ac_env_CC_set=${CC+set} -ac_env_CC_value=$CC -ac_cv_env_CC_set=${CC+set} -ac_cv_env_CC_value=$CC -ac_env_CFLAGS_set=${CFLAGS+set} -ac_env_CFLAGS_value=$CFLAGS -ac_cv_env_CFLAGS_set=${CFLAGS+set} -ac_cv_env_CFLAGS_value=$CFLAGS -ac_env_LDFLAGS_set=${LDFLAGS+set} -ac_env_LDFLAGS_value=$LDFLAGS -ac_cv_env_LDFLAGS_set=${LDFLAGS+set} -ac_cv_env_LDFLAGS_value=$LDFLAGS -ac_env_CPPFLAGS_set=${CPPFLAGS+set} -ac_env_CPPFLAGS_value=$CPPFLAGS -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} -ac_cv_env_CPPFLAGS_value=$CPPFLAGS -ac_env_CPP_set=${CPP+set} -ac_env_CPP_value=$CPP -ac_cv_env_CPP_set=${CPP+set} -ac_cv_env_CPP_value=$CPP - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat < if you have libraries in a - nonstandard directory - CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have - headers in a nonstandard directory - CPP C preprocessor - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -Report bugs to . -EOF -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - ac_popdir=`pwd` - for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue - cd $ac_subdir - # A "../" for each directory in /$ac_subdir. - ac_dots=`echo $ac_subdir | - sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` - - case $srcdir in - .) # No --srcdir option. We are building in place. - ac_sub_srcdir=$srcdir ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_sub_srcdir=$srcdir/$ac_subdir ;; - *) # Relative path. - ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; - esac - - # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_sub_srcdir/configure.gnu; then - echo - $SHELL $ac_sub_srcdir/configure.gnu --help=recursive - elif test -f $ac_sub_srcdir/configure; then - echo - $SHELL $ac_sub_srcdir/configure --help=recursive - elif test -f $ac_sub_srcdir/configure.ac || - test -f $ac_sub_srcdir/configure.in; then - echo - $ac_configure --help - else - echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 - fi - cd $ac_popdir - done -fi - -test -n "$ac_init_help" && exit 0 -if $ac_init_version; then - cat <<\EOF -libnbcompat configure noversion -generated by GNU Autoconf 2.52 - -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -EOF - exit 0 -fi -exec 5>config.log -cat >&5 </dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -hostinfo = `(hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -PATH = $PATH - -_ASUNAME -} >&5 - -cat >&5 <\?\"\']*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" - ac_sep=" " ;; - *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" - ac_sep=" " ;; - esac - # Get rid of the leading space. -done - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - echo >&5 - echo "## ----------------- ##" >&5 - echo "## Cache variables. ##" >&5 - echo "## ----------------- ##" >&5 - echo >&5 - # The following way of writing the cache mishandles newlines in values, -{ - (set) 2>&1 | - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in - *ac_space=\ *) - sed -n \ - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" - ;; - *) - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} >&5 - sed "/^$/d" confdefs.h >conftest.log - if test -s conftest.log; then - echo >&5 - echo "## ------------ ##" >&5 - echo "## confdefs.h. ##" >&5 - echo "## ------------ ##" >&5 - echo >&5 - cat conftest.log >&5 - fi - (echo; echo) >&5 - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" >&5 - echo "$as_me: exit $exit_status" >&5 - rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && - exit $exit_status - ' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo >confdefs.h - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - { echo "$as_me:861: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - cat "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:872: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . $cache_file;; - *) . ./$cache_file;; - esac - fi -else - { echo "$as_me:880: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in `(set) 2>&1 | - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val="\$ac_cv_env_${ac_var}_value" - eval ac_new_val="\$ac_env_${ac_var}_value" - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:896: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:900: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:906: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:908: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:910: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. It doesn't matter if - # we pass some twice (in addition to the command line arguments). - if test "$ac_new_set" = set; then - case $ac_new_val in - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" - ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:929: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:931: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -esac -echo "#! $SHELL" >conftest.sh -echo "exit 0" >>conftest.sh -chmod +x conftest.sh -if { (echo "$as_me:951: PATH=\".;.\"; conftest.sh") >&5 - (PATH=".;."; conftest.sh) 2>&5 - ac_status=$? - echo "$as_me:954: \$? = $ac_status" >&5 - (exit $ac_status); }; then - ac_path_separator=';' -else - ac_path_separator=: -fi -PATH_SEPARATOR="$ac_path_separator" -rm -f conftest.sh - -ac_config_headers="$ac_config_headers nbtool_config.h" - -ac_config_files="$ac_config_files defs.mk" - -# Autoheader header and footer - -# AC_NETBSD - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -echo "$as_me:979: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_CC="${ac_tool_prefix}gcc" -echo "$as_me:994: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:1002: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:1005: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo "$as_me:1014: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_ac_ct_CC="gcc" -echo "$as_me:1029: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:1037: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:1040: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - CC=$ac_ct_CC -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -echo "$as_me:1053: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_CC="${ac_tool_prefix}cc" -echo "$as_me:1068: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:1076: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:1079: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo "$as_me:1088: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_ac_ct_CC="cc" -echo "$as_me:1103: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:1111: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:1114: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - CC=$ac_ct_CC -else - CC="$ac_cv_prog_CC" -fi - -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo "$as_me:1127: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue -fi -ac_cv_prog_CC="cc" -echo "$as_me:1147: found $ac_dir/$ac_word" >&5 -break -done - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" ${1+"$@"} - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:1169: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:1172: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -echo "$as_me:1183: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_CC="$ac_tool_prefix$ac_prog" -echo "$as_me:1198: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:1206: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:1209: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:1222: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_ac_ct_CC="$ac_prog" -echo "$as_me:1237: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:1245: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:1248: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$ac_ct_CC" && break -done - - CC=$ac_ct_CC -fi - -fi - -test -z "$CC" && { { echo "$as_me:1260: error: no acceptable cc found in \$PATH" >&5 -echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:1265:" \ - "checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (eval echo "$as_me:1268: \"$ac_compiler --version &5\"") >&5 - (eval $ac_compiler --version &5) 2>&5 - ac_status=$? - echo "$as_me:1271: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:1273: \"$ac_compiler -v &5\"") >&5 - (eval $ac_compiler -v &5) 2>&5 - ac_status=$? - echo "$as_me:1276: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:1278: \"$ac_compiler -V &5\"") >&5 - (eval $ac_compiler -V &5) 2>&5 - ac_status=$? - echo "$as_me:1281: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -#line 1285 "configure" -#include "confdefs.h" - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -echo "$as_me:1301: checking for C compiler default output" >&5 -echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -if { (eval echo "$as_me:1304: \"$ac_link_default\"") >&5 - (eval $ac_link_default) 2>&5 - ac_status=$? - echo "$as_me:1307: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Find the output, starting from the most likely. This scheme is -# not robust to junk in `.', hence go to wildcards (a.*) only as a last -# resort. -for ac_file in `ls a.exe conftest.exe 2>/dev/null; - ls a.out conftest 2>/dev/null; - ls a.* conftest.* 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; - a.out ) # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - # FIXME: I believe we export ac_cv_exeext for Libtool --akim. - export ac_cv_exeext - break;; - * ) break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -{ { echo "$as_me:1330: error: C compiler cannot create executables" >&5 -echo "$as_me: error: C compiler cannot create executables" >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext -echo "$as_me:1336: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6 - -# Check the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -echo "$as_me:1341: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (eval echo "$as_me:1347: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1350: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:1357: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -echo "$as_me:1365: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - -rm -f a.out a.exe conftest$ac_cv_exeext -ac_clean_files=$ac_clean_files_save -# Check the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -echo "$as_me:1372: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 -echo "$as_me:1374: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6 - -echo "$as_me:1377: checking for executable suffix" >&5 -echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 -if { (eval echo "$as_me:1379: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:1382: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - export ac_cv_exeext - break;; - * ) break;; - esac -done -else - { { echo "$as_me:1398: error: cannot compute EXEEXT: cannot compile and link" >&5 -echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -echo "$as_me:1404: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6 - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -echo "$as_me:1410: checking for object suffix" >&5 -echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 1416 "configure" -#include "confdefs.h" - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (eval echo "$as_me:1428: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1431: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -{ { echo "$as_me:1443: error: cannot compute OBJEXT: cannot compile" >&5 -echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -echo "$as_me:1450: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6 -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -echo "$as_me:1454: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 1460 "configure" -#include "confdefs.h" - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1475: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1478: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1481: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1484: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_compiler_gnu=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -echo "$as_me:1496: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -CFLAGS="-g" -echo "$as_me:1502: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 1508 "configure" -#include "confdefs.h" - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1520: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1523: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1526: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1529: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_prog_cc_g=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:1539: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -# Some people use a C++ compiler to compile C. Since we use `exit', -# in C++ we need to declare it. In case someone uses the same compiler -# for both compiling C and C++ we need to have the C++ compiler decide -# the declaration of exit, since it's the most demanding environment. -cat >conftest.$ac_ext <<_ACEOF -#ifndef __cplusplus - choke me -#endif -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1566: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1569: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1572: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1575: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - for ac_declaration in \ - ''\ - '#include ' \ - 'extern "C" void std::exit (int) throw (); using std::exit;' \ - 'extern "C" void std::exit (int); using std::exit;' \ - 'extern "C" void exit (int) throw ();' \ - 'extern "C" void exit (int);' \ - 'void exit (int);' -do - cat >conftest.$ac_ext <<_ACEOF -#line 1587 "configure" -#include "confdefs.h" -#include -$ac_declaration -int -main () -{ -exit (42); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1600: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1603: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1606: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1609: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -continue -fi -rm -f conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -#line 1619 "configure" -#include "confdefs.h" -$ac_declaration -int -main () -{ -exit (42); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1631: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1634: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1637: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1640: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - break -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -fi -rm -f conftest.$ac_objext conftest.$ac_ext -done -rm -f conftest* -if test -n "$ac_declaration"; then - echo '#ifdef __cplusplus' >>confdefs.h - echo $ac_declaration >>confdefs.h - echo '#endif' >>confdefs.h -fi - -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -fi -rm -f conftest.$ac_objext conftest.$ac_ext -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -echo "$as_me:1672: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -#line 1693 "configure" -#include "confdefs.h" -#include - Syntax error -_ACEOF -if { (eval echo "$as_me:1698: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:1704: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - : -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -#line 1727 "configure" -#include "confdefs.h" -#include -_ACEOF -if { (eval echo "$as_me:1731: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:1737: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -echo "$as_me:1774: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6 -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -#line 1784 "configure" -#include "confdefs.h" -#include - Syntax error -_ACEOF -if { (eval echo "$as_me:1789: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:1795: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - : -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -#line 1818 "configure" -#include "confdefs.h" -#include -_ACEOF -if { (eval echo "$as_me:1822: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:1828: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:1856: error: C preprocessor \"$CPP\" fails sanity check" >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - echo "$as_me:1867: checking for NetBSD or MINIX3" >&5 -echo $ECHO_N "checking for NetBSD or MINIX3... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF -#line 1870 "configure" -#include "confdefs.h" -#if defined(__NetBSD__) || defined(__minix) - yes - #endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "yes" >/dev/null 2>&1; then - echo "$as_me:1879: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - -cat >>confdefs.h <<\EOF -#define _POSIX_SOURCE 1 -EOF - -cat >>confdefs.h <<\EOF -#define _POSIX_C_SOURCE 200112L -EOF - -cat >>confdefs.h <<\EOF -#define _XOPEN_SOURCE 600 -EOF - -else - echo "$as_me:1895: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi -rm -f conftest* - -# Extract the first word of "sh", so it can be a program name with args. -set dummy sh; ac_word=$2 -echo "$as_me:1902: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_BSHELL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $BSHELL in - [\\/]* | ?:[\\/]*) - ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path. - ;; - *) - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - if $as_executable_p "$ac_dir/$ac_word"; then - ac_cv_path_BSHELL="$ac_dir/$ac_word" - echo "$as_me:1919: found $ac_dir/$ac_word" >&5 - break -fi -done - - ;; -esac -fi -BSHELL=$ac_cv_path_BSHELL - -if test -n "$BSHELL"; then - echo "$as_me:1930: result: $BSHELL" >&5 -echo "${ECHO_T}$BSHELL" >&6 -else - echo "$as_me:1933: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -if test x"$BSHELL" = x; then - { { echo "$as_me:1938: error: sh must be somewhere on \$PATH" >&5 -echo "$as_me: error: sh must be somewhere on \$PATH" >&2;} - { (exit 1); exit 1; }; } -fi - -cat >>confdefs.h <&5 -echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 -if test "${ac_cv_c_bigendian+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_c_bigendian=unknown -# See if sys/param.h defines the BYTE_ORDER macro. -cat >conftest.$ac_ext <<_ACEOF -#line 1955 "configure" -#include "confdefs.h" -#include -#include - -int -main () -{ -#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN - bogus endian macros -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1972: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1975: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1978: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1981: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - # It does; now see whether it defined to BIG_ENDIAN or not. -cat >conftest.$ac_ext <<_ACEOF -#line 1985 "configure" -#include "confdefs.h" -#include -#include - -int -main () -{ -#if BYTE_ORDER != BIG_ENDIAN - not big endian -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:2002: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:2005: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2008: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2011: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_c_bigendian=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_c_bigendian=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -fi -rm -f conftest.$ac_objext conftest.$ac_ext -if test $ac_cv_c_bigendian = unknown; then -if test "$cross_compiling" = yes; then - { { echo "$as_me:2027: error: cannot run test program while cross compiling" >&5 -echo "$as_me: error: cannot run test program while cross compiling" >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -#line 2032 "configure" -#include "confdefs.h" -int -main () -{ - /* Are we little or big endian? From Harbison&Steele. */ - union - { - long l; - char c[sizeof (long)]; - } u; - u.l = 1; - exit (u.c[sizeof (long) - 1] == 1); -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:2048: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:2051: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:2053: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2056: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_c_bigendian=no -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_c_bigendian=yes -fi -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -fi -echo "$as_me:2069: result: $ac_cv_c_bigendian" >&5 -echo "${ECHO_T}$ac_cv_c_bigendian" >&6 -if test $ac_cv_c_bigendian = yes; then - -cat >>confdefs.h <<\EOF -#define WORDS_BIGENDIAN 1 -EOF - -fi - -echo "$as_me:2079: checking for ANSI C header files" >&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 2085 "configure" -#include "confdefs.h" -#include -#include -#include -#include - -_ACEOF -if { (eval echo "$as_me:2093: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:2099: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_cv_header_stdc=yes -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_header_stdc=no -fi -rm -f conftest.err conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -#line 2121 "configure" -#include "confdefs.h" -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -#line 2139 "configure" -#include "confdefs.h" -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -#line 2160 "configure" -#include "confdefs.h" -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - exit(2); - exit (0); -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:2186: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:2189: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:2191: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2194: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_header_stdc=no -fi -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -fi -echo "$as_me:2207: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6 -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\EOF -#define STDC_HEADERS 1 -EOF - -fi - -# Confirm existence of zlib. (This is available as a default install -# option on many OS's; this could be added as a reachover build in the -# future.) -echo "$as_me:2220: checking for zlib.h" >&5 -echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 -if test "${ac_cv_header_zlib_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 2226 "configure" -#include "confdefs.h" -#include -_ACEOF -if { (eval echo "$as_me:2230: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:2236: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_cv_header_zlib_h=yes -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_header_zlib_h=no -fi -rm -f conftest.err conftest.$ac_ext -fi -echo "$as_me:2255: result: $ac_cv_header_zlib_h" >&5 -echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 -if test $ac_cv_header_zlib_h = yes; then - : -else - { { echo "$as_me:2260: error: zlib must be installed in a compiler-visible path" >&5 -echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;} - { (exit 1); exit 1; }; } -fi - -echo "$as_me:2265: checking for gzdopen in -lz" >&5 -echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6 -if test "${ac_cv_lib_z_gzdopen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lz $LIBS" -cat >conftest.$ac_ext <<_ACEOF -#line 2273 "configure" -#include "confdefs.h" - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char gzdopen (); -int -main () -{ -gzdopen (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:2292: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:2295: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:2298: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2301: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_lib_z_gzdopen=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_lib_z_gzdopen=no -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -echo "$as_me:2312: result: $ac_cv_lib_z_gzdopen" >&5 -echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6 -if test $ac_cv_lib_z_gzdopen = yes; then - cat >>confdefs.h <&5 -echo "$as_me: error: zlib must be installed in a compiler-visible path" >&2;} - { (exit 1); exit 1; }; } -fi - -# Make sure certain required headers are available. -# These are not necessarily required by the code, but they are not -# currently conditionalized. - -for ac_header in sys/ioctl.h sys/mman.h sys/param.h \ - sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \ - sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \ - netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \ - termios.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -echo "$as_me:2338: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 2344 "configure" -#include "confdefs.h" -#include <$ac_header> -_ACEOF -if { (eval echo "$as_me:2348: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:2354: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - eval "$as_ac_Header=no" -fi -rm -f conftest.err conftest.$ac_ext -fi -echo "$as_me:2373: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <&5 -echo "$as_me: error: standard system header file not found" >&2;} - { (exit 1); exit 1; }; } -fi -done - -# Find headers that may not be available. - -ac_header_dirent=no -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do - as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` -echo "$as_me:2392: checking for $ac_hdr that defines DIR" >&5 -echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 2398 "configure" -#include "confdefs.h" -#include -#include <$ac_hdr> - -int -main () -{ -if ((DIR *) 0) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:2413: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:2416: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2419: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2422: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -eval "$as_ac_Header=no" -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:2432: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <&5 -echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6 -if test "${ac_cv_lib_dir_opendir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldir $LIBS" -cat >conftest.$ac_ext <<_ACEOF -#line 2453 "configure" -#include "confdefs.h" - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char opendir (); -int -main () -{ -opendir (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:2472: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:2475: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:2478: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2481: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_lib_dir_opendir=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_lib_dir_opendir=no -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -echo "$as_me:2492: result: $ac_cv_lib_dir_opendir" >&5 -echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 -if test $ac_cv_lib_dir_opendir = yes; then - LIBS="$LIBS -ldir" -fi - -else - echo "$as_me:2499: checking for opendir in -lx" >&5 -echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 -if test "${ac_cv_lib_x_opendir+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lx $LIBS" -cat >conftest.$ac_ext <<_ACEOF -#line 2507 "configure" -#include "confdefs.h" - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char opendir (); -int -main () -{ -opendir (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:2526: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:2529: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:2532: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2535: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_lib_x_opendir=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_lib_x_opendir=no -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -echo "$as_me:2546: result: $ac_cv_lib_x_opendir" >&5 -echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 -if test $ac_cv_lib_x_opendir = yes; then - LIBS="$LIBS -lx" -fi - -fi - -for ac_header in sys/mtio.h sys/sysmacros.h sys/syslimits.h \ - getopt.h features.h malloc.h sys/poll.h pthread.h stddef.h rpc/types.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -echo "$as_me:2558: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 2564 "configure" -#include "confdefs.h" -#include <$ac_header> -_ACEOF -if { (eval echo "$as_me:2568: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:2574: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - eval "$as_ac_Header=no" -fi -rm -f conftest.err conftest.$ac_ext -fi -echo "$as_me:2593: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 2614 "configure" -#include "confdefs.h" -#include <$ac_header> -_ACEOF -if { (eval echo "$as_me:2618: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:2624: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - eval "$as_ac_Header=no" -fi -rm -f conftest.err conftest.$ac_ext -fi -echo "$as_me:2643: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 2664 "configure" -#include "confdefs.h" -#include <$ac_header> -_ACEOF -if { (eval echo "$as_me:2668: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:2674: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - eval "$as_ac_Header=no" -fi -rm -f conftest.err conftest.$ac_ext -fi -echo "$as_me:2693: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <include/$ac_header.new - echo '#include "'$srcdir/../../include/$ac_header'"' \ - >>include/$ac_header.new - if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then - rm -f include/$ac_header.new - else - mv -f include/$ac_header.new include/$ac_header - fi -fi -done - -# Typedefs. -# On IRIX 5.3, sys/types and inttypes.h are conflicting. - -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -echo "$as_me:2719: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 2725 "configure" -#include "confdefs.h" -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:2731: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:2734: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2737: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2740: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -eval "$as_ac_Header=no" -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:2750: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <&5 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6 -if test "${ac_cv_type_size_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 2766 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((size_t *) 0) - return 0; -if (sizeof (size_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:2781: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:2784: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2787: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2790: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_size_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_size_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:2800: result: $ac_cv_type_size_t" >&5 -echo "${ECHO_T}$ac_cv_type_size_t" >&6 -if test $ac_cv_type_size_t = yes; then - : -else - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for id_t... $ECHO_C" >&6 -if test "${ac_cv_type_id_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 2818 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((id_t *) 0) - return 0; -if (sizeof (id_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:2833: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:2836: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2839: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2842: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_id_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_id_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:2852: result: $ac_cv_type_id_t" >&5 -echo "${ECHO_T}$ac_cv_type_id_t" >&6 -if test $ac_cv_type_id_t = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for long long... $ECHO_C" >&6 -if test "${ac_cv_type_long_long+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 2867 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((long long *) 0) - return 0; -if (sizeof (long long)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:2882: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:2885: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2888: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2891: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_long_long=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_long_long=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:2901: result: $ac_cv_type_long_long" >&5 -echo "${ECHO_T}$ac_cv_type_long_long" >&6 -if test $ac_cv_type_long_long = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for u_long... $ECHO_C" >&6 -if test "${ac_cv_type_u_long+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 2916 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((u_long *) 0) - return 0; -if (sizeof (u_long)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:2931: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:2934: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2937: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2940: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_long=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_u_long=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:2950: result: $ac_cv_type_u_long" >&5 -echo "${ECHO_T}$ac_cv_type_u_long" >&6 -if test $ac_cv_type_u_long = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for u_char... $ECHO_C" >&6 -if test "${ac_cv_type_u_char+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 2965 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((u_char *) 0) - return 0; -if (sizeof (u_char)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:2980: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:2983: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:2986: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2989: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_char=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_u_char=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:2999: result: $ac_cv_type_u_char" >&5 -echo "${ECHO_T}$ac_cv_type_u_char" >&6 -if test $ac_cv_type_u_char = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for u_short... $ECHO_C" >&6 -if test "${ac_cv_type_u_short+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3014 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((u_short *) 0) - return 0; -if (sizeof (u_short)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3029: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3032: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3035: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3038: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_short=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_u_short=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3048: result: $ac_cv_type_u_short" >&5 -echo "${ECHO_T}$ac_cv_type_u_short" >&6 -if test $ac_cv_type_u_short = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for u_int... $ECHO_C" >&6 -if test "${ac_cv_type_u_int+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3063 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((u_int *) 0) - return 0; -if (sizeof (u_int)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3078: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3081: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3084: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3087: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_int=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_u_int=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3097: result: $ac_cv_type_u_int" >&5 -echo "${ECHO_T}$ac_cv_type_u_int" >&6 -if test $ac_cv_type_u_int = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6 -if test "${ac_cv_type_u_quad_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3112 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((u_quad_t *) 0) - return 0; -if (sizeof (u_quad_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3127: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3130: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3133: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3136: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_quad_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_u_quad_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3146: result: $ac_cv_type_u_quad_t" >&5 -echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6 -if test $ac_cv_type_u_quad_t = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 -if test "${ac_cv_type_socklen_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3162 "configure" -#include "confdefs.h" -#include -#ifdef HAVE_RPC_TYPES_H -#include -#endif -#include - -int -main () -{ -if ((socklen_t *) 0) - return 0; -if (sizeof (socklen_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3182: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3185: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3188: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3191: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_socklen_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_socklen_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3201: result: $ac_cv_type_socklen_t" >&5 -echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 -if test $ac_cv_type_socklen_t = yes; then - -cat >>confdefs.h <<\EOF -#define HAVE_SOCKLEN_T 1 -EOF - -fi - - echo "$as_me:3211: checking for uint8_t" >&5 -echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 -if test "${ac_cv_type_uint8_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3217 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((uint8_t *) 0) - return 0; -if (sizeof (uint8_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3232: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3235: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3238: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3241: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_uint8_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_uint8_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3251: result: $ac_cv_type_uint8_t" >&5 -echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 -if test $ac_cv_type_uint8_t = yes; then - : -else - - echo "$as_me:3257: checking for u_int8_t" >&5 -echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6 -if test "${ac_cv_type_u_int8_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3263 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((u_int8_t *) 0) - return 0; -if (sizeof (u_int8_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3278: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3281: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3284: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3287: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_int8_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_u_int8_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3297: result: $ac_cv_type_u_int8_t" >&5 -echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6 -if test $ac_cv_type_u_int8_t = yes; then - -cat >>confdefs.h <<\EOF -#define uint8_t u_int8_t -EOF - -else - { { echo "$as_me:3306: error: cannot find a suitable type for uint8_t" >&5 -echo "$as_me: error: cannot find a suitable type for uint8_t" >&2;} - { (exit 1); exit 1; }; } -fi - -fi - - echo "$as_me:3313: checking for u_int8_t" >&5 -echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6 -if test "${ac_cv_type_u_int8_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3319 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((u_int8_t *) 0) - return 0; -if (sizeof (u_int8_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3334: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3337: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3340: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3343: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_int8_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_u_int8_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3353: result: $ac_cv_type_u_int8_t" >&5 -echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6 -if test $ac_cv_type_u_int8_t = yes; then - : -else - - echo "$as_me:3359: checking for uint8_t" >&5 -echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 -if test "${ac_cv_type_uint8_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3365 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((uint8_t *) 0) - return 0; -if (sizeof (uint8_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3380: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3383: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3386: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3389: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_uint8_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_uint8_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3399: result: $ac_cv_type_uint8_t" >&5 -echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 -if test $ac_cv_type_uint8_t = yes; then - -cat >>confdefs.h <<\EOF -#define u_int8_t uint8_t -EOF - -else - { { echo "$as_me:3408: error: cannot find a suitable type for u_int8_t" >&5 -echo "$as_me: error: cannot find a suitable type for u_int8_t" >&2;} - { (exit 1); exit 1; }; } -fi - -fi - - echo "$as_me:3415: checking for uint16_t" >&5 -echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 -if test "${ac_cv_type_uint16_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3421 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((uint16_t *) 0) - return 0; -if (sizeof (uint16_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3436: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3439: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3442: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3445: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_uint16_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_uint16_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3455: result: $ac_cv_type_uint16_t" >&5 -echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 -if test $ac_cv_type_uint16_t = yes; then - : -else - - echo "$as_me:3461: checking for u_int16_t" >&5 -echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 -if test "${ac_cv_type_u_int16_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3467 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((u_int16_t *) 0) - return 0; -if (sizeof (u_int16_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3482: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3485: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3488: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3491: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_int16_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_u_int16_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3501: result: $ac_cv_type_u_int16_t" >&5 -echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 -if test $ac_cv_type_u_int16_t = yes; then - -cat >>confdefs.h <<\EOF -#define uint16_t u_int16_t -EOF - -else - { { echo "$as_me:3510: error: cannot find a suitable type for uint16_t" >&5 -echo "$as_me: error: cannot find a suitable type for uint16_t" >&2;} - { (exit 1); exit 1; }; } -fi - -fi - - echo "$as_me:3517: checking for u_int16_t" >&5 -echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 -if test "${ac_cv_type_u_int16_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3523 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((u_int16_t *) 0) - return 0; -if (sizeof (u_int16_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3538: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3541: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3544: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3547: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_int16_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_u_int16_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3557: result: $ac_cv_type_u_int16_t" >&5 -echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 -if test $ac_cv_type_u_int16_t = yes; then - : -else - - echo "$as_me:3563: checking for uint16_t" >&5 -echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 -if test "${ac_cv_type_uint16_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3569 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((uint16_t *) 0) - return 0; -if (sizeof (uint16_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3584: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3587: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3590: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3593: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_uint16_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_uint16_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3603: result: $ac_cv_type_uint16_t" >&5 -echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 -if test $ac_cv_type_uint16_t = yes; then - -cat >>confdefs.h <<\EOF -#define u_int16_t uint16_t -EOF - -else - { { echo "$as_me:3612: error: cannot find a suitable type for u_int16_t" >&5 -echo "$as_me: error: cannot find a suitable type for u_int16_t" >&2;} - { (exit 1); exit 1; }; } -fi - -fi - - echo "$as_me:3619: checking for uint32_t" >&5 -echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 -if test "${ac_cv_type_uint32_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3625 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((uint32_t *) 0) - return 0; -if (sizeof (uint32_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3640: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3643: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3646: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3649: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_uint32_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_uint32_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3659: result: $ac_cv_type_uint32_t" >&5 -echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 -if test $ac_cv_type_uint32_t = yes; then - : -else - - echo "$as_me:3665: checking for u_int32_t" >&5 -echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 -if test "${ac_cv_type_u_int32_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3671 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((u_int32_t *) 0) - return 0; -if (sizeof (u_int32_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3686: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3689: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3692: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3695: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_int32_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_u_int32_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3705: result: $ac_cv_type_u_int32_t" >&5 -echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 -if test $ac_cv_type_u_int32_t = yes; then - -cat >>confdefs.h <<\EOF -#define uint32_t u_int32_t -EOF - -else - { { echo "$as_me:3714: error: cannot find a suitable type for uint32_t" >&5 -echo "$as_me: error: cannot find a suitable type for uint32_t" >&2;} - { (exit 1); exit 1; }; } -fi - -fi - - echo "$as_me:3721: checking for u_int32_t" >&5 -echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 -if test "${ac_cv_type_u_int32_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3727 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((u_int32_t *) 0) - return 0; -if (sizeof (u_int32_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3742: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3745: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3748: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3751: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_int32_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_u_int32_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3761: result: $ac_cv_type_u_int32_t" >&5 -echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 -if test $ac_cv_type_u_int32_t = yes; then - : -else - - echo "$as_me:3767: checking for uint32_t" >&5 -echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 -if test "${ac_cv_type_uint32_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3773 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((uint32_t *) 0) - return 0; -if (sizeof (uint32_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3788: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3791: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3794: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3797: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_uint32_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_uint32_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3807: result: $ac_cv_type_uint32_t" >&5 -echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 -if test $ac_cv_type_uint32_t = yes; then - -cat >>confdefs.h <<\EOF -#define u_int32_t uint32_t -EOF - -else - { { echo "$as_me:3816: error: cannot find a suitable type for u_int32_t" >&5 -echo "$as_me: error: cannot find a suitable type for u_int32_t" >&2;} - { (exit 1); exit 1; }; } -fi - -fi - - echo "$as_me:3823: checking for uint64_t" >&5 -echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 -if test "${ac_cv_type_uint64_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3829 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((uint64_t *) 0) - return 0; -if (sizeof (uint64_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3844: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3847: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3850: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3853: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_uint64_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_uint64_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3863: result: $ac_cv_type_uint64_t" >&5 -echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 -if test $ac_cv_type_uint64_t = yes; then - : -else - - echo "$as_me:3869: checking for u_int64_t" >&5 -echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 -if test "${ac_cv_type_u_int64_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3875 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((u_int64_t *) 0) - return 0; -if (sizeof (u_int64_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3890: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3893: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3896: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3899: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_int64_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_u_int64_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3909: result: $ac_cv_type_u_int64_t" >&5 -echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 -if test $ac_cv_type_u_int64_t = yes; then - -cat >>confdefs.h <<\EOF -#define uint64_t u_int64_t -EOF - -else - { { echo "$as_me:3918: error: cannot find a suitable type for uint64_t" >&5 -echo "$as_me: error: cannot find a suitable type for uint64_t" >&2;} - { (exit 1); exit 1; }; } -fi - -fi - - echo "$as_me:3925: checking for u_int64_t" >&5 -echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 -if test "${ac_cv_type_u_int64_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3931 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((u_int64_t *) 0) - return 0; -if (sizeof (u_int64_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3946: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3949: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3952: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:3955: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_int64_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_u_int64_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:3965: result: $ac_cv_type_u_int64_t" >&5 -echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 -if test $ac_cv_type_u_int64_t = yes; then - : -else - - echo "$as_me:3971: checking for uint64_t" >&5 -echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 -if test "${ac_cv_type_uint64_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 3977 "configure" -#include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((uint64_t *) 0) - return 0; -if (sizeof (uint64_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:3992: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:3995: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:3998: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4001: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_uint64_t=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_uint64_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4011: result: $ac_cv_type_uint64_t" >&5 -echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 -if test $ac_cv_type_uint64_t = yes; then - -cat >>confdefs.h <<\EOF -#define u_int64_t uint64_t -EOF - -else - { { echo "$as_me:4020: error: cannot find a suitable type for u_int64_t" >&5 -echo "$as_me: error: cannot find a suitable type for u_int64_t" >&2;} - { (exit 1); exit 1; }; } -fi - -fi - -# Struct members. -echo "$as_me:4028: checking for DIR.dd_fd" >&5 -echo $ECHO_N "checking for DIR.dd_fd... $ECHO_C" >&6 -if test "${ac_cv_member_DIR_dd_fd+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4034 "configure" -#include "confdefs.h" -#include -#include - -int -main () -{ -static DIR ac_aggr; -if (ac_aggr.dd_fd) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:4050: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:4053: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4056: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4059: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_member_DIR_dd_fd=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_member_DIR_dd_fd=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4069: result: $ac_cv_member_DIR_dd_fd" >&5 -echo "${ECHO_T}$ac_cv_member_DIR_dd_fd" >&6 -if test $ac_cv_member_DIR_dd_fd = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for DIR.__dd_fd... $ECHO_C" >&6 -if test "${ac_cv_member_DIR___dd_fd+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4084 "configure" -#include "confdefs.h" -#include -#include - -int -main () -{ -static DIR ac_aggr; -if (ac_aggr.__dd_fd) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:4100: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:4103: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4106: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4109: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_member_DIR___dd_fd=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_member_DIR___dd_fd=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4119: result: $ac_cv_member_DIR___dd_fd" >&5 -echo "${ECHO_T}$ac_cv_member_DIR___dd_fd" >&6 -if test $ac_cv_member_DIR___dd_fd = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6 -if test "${ac_cv_member_struct_dirent_d_namlen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4134 "configure" -#include "confdefs.h" -#include -#include - -int -main () -{ -static struct dirent ac_aggr; -if (ac_aggr.d_namlen) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:4150: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:4153: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4156: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4159: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_member_struct_dirent_d_namlen=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_member_struct_dirent_d_namlen=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4169: result: $ac_cv_member_struct_dirent_d_namlen" >&5 -echo "${ECHO_T}$ac_cv_member_struct_dirent_d_namlen" >&6 -if test $ac_cv_member_struct_dirent_d_namlen = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6 -if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4185 "configure" -#include "confdefs.h" -#include - -int -main () -{ -static struct stat ac_aggr; -if (ac_aggr.st_flags) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:4200: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:4203: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4206: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4209: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_member_struct_stat_st_flags=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_member_struct_stat_st_flags=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4219: result: $ac_cv_member_struct_stat_st_flags" >&5 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6 -if test $ac_cv_member_struct_stat_st_flags = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6 -if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4234 "configure" -#include "confdefs.h" -#include - -int -main () -{ -static struct stat ac_aggr; -if (ac_aggr.st_gen) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:4249: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:4252: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4255: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4258: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_member_struct_stat_st_gen=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_member_struct_stat_st_gen=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4268: result: $ac_cv_member_struct_stat_st_gen" >&5 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6 -if test $ac_cv_member_struct_stat_st_gen = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6 -if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4283 "configure" -#include "confdefs.h" -#include - -int -main () -{ -static struct stat ac_aggr; -if (ac_aggr.st_birthtime) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:4298: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:4301: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4304: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4307: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_member_struct_stat_st_birthtime=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_member_struct_stat_st_birthtime=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4317: result: $ac_cv_member_struct_stat_st_birthtime" >&5 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6 -if test $ac_cv_member_struct_stat_st_birthtime = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for struct stat.st_birthtimensec... $ECHO_C" >&6 -if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4332 "configure" -#include "confdefs.h" -#include - -int -main () -{ -static struct stat ac_aggr; -if (ac_aggr.st_birthtimensec) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:4347: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:4350: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4353: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4356: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_member_struct_stat_st_birthtimensec=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_member_struct_stat_st_birthtimensec=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4366: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtimensec" >&6 -if test $ac_cv_member_struct_stat_st_birthtimensec = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6 -if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4381 "configure" -#include "confdefs.h" -#include - -int -main () -{ -static struct stat ac_aggr; -if (ac_aggr.st_atim) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:4396: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:4399: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4402: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4405: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_member_struct_stat_st_atim=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_member_struct_stat_st_atim=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4415: result: $ac_cv_member_struct_stat_st_atim" >&5 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6 -if test $ac_cv_member_struct_stat_st_atim = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for struct stat.st_mtimensec... $ECHO_C" >&6 -if test "${ac_cv_member_struct_stat_st_mtimensec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4430 "configure" -#include "confdefs.h" -#include - -int -main () -{ -static struct stat ac_aggr; -if (ac_aggr.st_mtimensec) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:4445: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:4448: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4451: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4454: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_member_struct_stat_st_mtimensec=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_member_struct_stat_st_mtimensec=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4464: result: $ac_cv_member_struct_stat_st_mtimensec" >&5 -echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimensec" >&6 -if test $ac_cv_member_struct_stat_st_mtimensec = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for struct statvfs.f_iosize... $ECHO_C" >&6 -if test "${ac_cv_member_struct_statvfs_f_iosize+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4480 "configure" -#include "confdefs.h" -#include - -int -main () -{ -static struct statvfs ac_aggr; -if (ac_aggr.f_iosize) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:4495: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:4498: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4501: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4504: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_member_struct_statvfs_f_iosize=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_member_struct_statvfs_f_iosize=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4514: result: $ac_cv_member_struct_statvfs_f_iosize" >&5 -echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_iosize" >&6 -if test $ac_cv_member_struct_statvfs_f_iosize = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 -if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4530 "configure" -#include "confdefs.h" -#include - -int -main () -{ -static struct tm ac_aggr; -if (ac_aggr.tm_gmtoff) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:4545: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:4548: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4551: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4554: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_member_struct_tm_tm_gmtoff=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_member_struct_tm_tm_gmtoff=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4564: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 -echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 -if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking whether optind is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_optind+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4581 "configure" -#include "confdefs.h" - -#include -#include -#include -#ifdef HAVE_GETOPT_H -#include -#endif - -int -main () -{ -#ifndef optind - char *p = (char *) optind; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:4603: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:4606: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4609: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4612: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_optind=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_optind=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4622: result: $ac_cv_have_decl_optind" >&5 -echo "${ECHO_T}$ac_cv_have_decl_optind" >&6 -if test $ac_cv_have_decl_optind = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_optreset+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4642 "configure" -#include "confdefs.h" - -#include -#include -#include -#ifdef HAVE_GETOPT_H -#include -#endif - -int -main () -{ -#ifndef optreset - char *p = (char *) optreset; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:4664: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:4667: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4670: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4673: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_optreset=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_optreset=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4683: result: $ac_cv_have_decl_optreset" >&5 -echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6 -if test $ac_cv_have_decl_optreset = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether sys_signame is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_sys_signame+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4704 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef sys_signame - char *p = (char *) sys_signame; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:4720: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:4723: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:4726: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4729: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_sys_signame=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_sys_signame=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:4739: result: $ac_cv_have_decl_sys_signame" >&5 -echo "${ECHO_T}$ac_cv_have_decl_sys_signame" >&6 -if test $ac_cv_have_decl_sys_signame = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 -if test "${ac_cv_working_alloca_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4763 "configure" -#include "confdefs.h" -#include -int -main () -{ -char *p = (char *) alloca (2 * sizeof (int)); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:4775: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:4778: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:4781: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4784: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_working_alloca_h=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_working_alloca_h=no -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:4794: result: $ac_cv_working_alloca_h" >&5 -echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 -if test $ac_cv_working_alloca_h = yes; then - -cat >>confdefs.h <<\EOF -#define HAVE_ALLOCA_H 1 -EOF - -fi - -echo "$as_me:4804: checking for alloca" >&5 -echo $ECHO_N "checking for alloca... $ECHO_C" >&6 -if test "${ac_cv_func_alloca_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4810 "configure" -#include "confdefs.h" -#ifdef __GNUC__ -# define alloca __builtin_alloca -#else -# ifdef _MSC_VER -# include -# define alloca _alloca -# else -# if HAVE_ALLOCA_H -# include -# else -# ifdef _AIX - #pragma alloca -# else -# ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -# endif -# endif -# endif -# endif -#endif - -int -main () -{ -char *p = (char *) alloca (1); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:4842: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:4845: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:4848: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4851: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_func_alloca_works=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_func_alloca_works=no -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:4861: result: $ac_cv_func_alloca_works" >&5 -echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 - -if test $ac_cv_func_alloca_works = yes; then - -cat >>confdefs.h <<\EOF -#define HAVE_ALLOCA 1 -EOF - -else - # The SVR3 libPW and SVR4 libucb both contain incompatible functions -# that cause trouble. Some versions do not even contain alloca or -# contain a buggy version. If you still want to use their alloca, -# use ar to extract alloca.o from them instead of compiling alloca.c. - -ALLOCA=alloca.$ac_objext - -cat >>confdefs.h <<\EOF -#define C_ALLOCA 1 -EOF - -echo "$as_me:4882: checking whether \`alloca.c' needs Cray hooks" >&5 -echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 -if test "${ac_cv_os_cray+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4888 "configure" -#include "confdefs.h" -#if defined(CRAY) && ! defined(CRAY2) -webecray -#else -wenotbecray -#endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "webecray" >/dev/null 2>&1; then - ac_cv_os_cray=yes -else - ac_cv_os_cray=no -fi -rm -f conftest* - -fi -echo "$as_me:4906: result: $ac_cv_os_cray" >&5 -echo "${ECHO_T}$ac_cv_os_cray" >&6 -if test $ac_cv_os_cray = yes; then - for ac_func in _getb67 GETB67 getb67; do - as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:4911: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4917 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. */ -#include -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -char (*f) (); - -int -main () -{ -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -f = $ac_func; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:4948: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:4951: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:4954: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:4957: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -eval "$as_ac_var=no" -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:4967: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - -cat >>confdefs.h <&5 -echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 -if test "${ac_cv_c_stack_direction+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$cross_compiling" = yes; then - ac_cv_c_stack_direction=0 -else - cat >conftest.$ac_ext <<_ACEOF -#line 4990 "configure" -#include "confdefs.h" -int -find_stack_direction () -{ - static char *addr = 0; - auto char dummy; - if (addr == 0) - { - addr = &dummy; - return find_stack_direction (); - } - else - return (&dummy > addr) ? 1 : -1; -} - -int -main () -{ - exit (find_stack_direction () < 0); -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:5013: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:5016: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:5018: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5021: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_c_stack_direction=1 -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_c_stack_direction=-1 -fi -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -echo "$as_me:5033: result: $ac_cv_c_stack_direction" >&5 -echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 - -cat >>confdefs.h <&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5060 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. */ -#include -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -char (*f) (); - -int -main () -{ -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -f = $ac_func; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:5091: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:5094: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:5097: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5100: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -eval "$as_ac_var=no" -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:5110: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <&5 -echo $ECHO_N "checking whether user_from_uid is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_user_from_uid+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5126 "configure" -#include "confdefs.h" - -#include - -int -main () -{ -#ifndef user_from_uid - char *p = (char *) user_from_uid; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5143: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5146: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5149: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5152: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_user_from_uid=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_user_from_uid=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5162: result: $ac_cv_have_decl_user_from_uid" >&5 -echo "${ECHO_T}$ac_cv_have_decl_user_from_uid" >&6 -if test $ac_cv_have_decl_user_from_uid = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether uid_from_user is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_uid_from_user+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5182 "configure" -#include "confdefs.h" - -#include - -int -main () -{ -#ifndef uid_from_user - char *p = (char *) uid_from_user; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5199: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5202: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5205: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5208: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_uid_from_user=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_uid_from_user=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5218: result: $ac_cv_have_decl_uid_from_user" >&5 -echo "${ECHO_T}$ac_cv_have_decl_uid_from_user" >&6 -if test $ac_cv_have_decl_uid_from_user = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether pwcache_userdb is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_pwcache_userdb+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5238 "configure" -#include "confdefs.h" - -#include - -int -main () -{ -#ifndef pwcache_userdb - char *p = (char *) pwcache_userdb; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5255: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5258: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5261: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5264: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_pwcache_userdb=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_pwcache_userdb=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5274: result: $ac_cv_have_decl_pwcache_userdb" >&5 -echo "${ECHO_T}$ac_cv_have_decl_pwcache_userdb" >&6 -if test $ac_cv_have_decl_pwcache_userdb = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether group_from_gid is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_group_from_gid+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5295 "configure" -#include "confdefs.h" - -#include - -int -main () -{ -#ifndef group_from_gid - char *p = (char *) group_from_gid; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5312: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5315: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5318: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5321: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_group_from_gid=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_group_from_gid=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5331: result: $ac_cv_have_decl_group_from_gid" >&5 -echo "${ECHO_T}$ac_cv_have_decl_group_from_gid" >&6 -if test $ac_cv_have_decl_group_from_gid = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether gid_from_group is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_gid_from_group+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5351 "configure" -#include "confdefs.h" - -#include - -int -main () -{ -#ifndef gid_from_group - char *p = (char *) gid_from_group; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5368: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5371: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5374: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5377: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_gid_from_group=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_gid_from_group=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5387: result: $ac_cv_have_decl_gid_from_group" >&5 -echo "${ECHO_T}$ac_cv_have_decl_gid_from_group" >&6 -if test $ac_cv_have_decl_gid_from_group = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether pwcache_groupdb is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_pwcache_groupdb+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5407 "configure" -#include "confdefs.h" - -#include - -int -main () -{ -#ifndef pwcache_groupdb - char *p = (char *) pwcache_groupdb; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5424: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5427: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5430: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5433: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_pwcache_groupdb=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_pwcache_groupdb=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5443: result: $ac_cv_have_decl_pwcache_groupdb" >&5 -echo "${ECHO_T}$ac_cv_have_decl_pwcache_groupdb" >&6 -if test $ac_cv_have_decl_pwcache_groupdb = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_strndup+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5464 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef strndup - char *p = (char *) strndup; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5480: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5483: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5486: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5489: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_strndup=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_strndup=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5499: result: $ac_cv_have_decl_strndup" >&5 -echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6 -if test $ac_cv_have_decl_strndup = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_strnlen+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5519 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef strnlen - char *p = (char *) strnlen; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5535: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5538: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5541: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5544: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_strnlen=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_strnlen=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5554: result: $ac_cv_have_decl_strnlen" >&5 -echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6 -if test $ac_cv_have_decl_strnlen = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether strsuftoll is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_strsuftoll+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5575 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef strsuftoll - char *p = (char *) strsuftoll; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5591: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5594: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5597: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5600: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_strsuftoll=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_strsuftoll=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5610: result: $ac_cv_have_decl_strsuftoll" >&5 -echo "${ECHO_T}$ac_cv_have_decl_strsuftoll" >&6 -if test $ac_cv_have_decl_strsuftoll = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether lchflags is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_lchflags+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5631 "configure" -#include "confdefs.h" - -#include -#include - -int -main () -{ -#ifndef lchflags - char *p = (char *) lchflags; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5649: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5652: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5655: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5658: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_lchflags=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_lchflags=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5668: result: $ac_cv_have_decl_lchflags" >&5 -echo "${ECHO_T}$ac_cv_have_decl_lchflags" >&6 -if test $ac_cv_have_decl_lchflags = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether lchmod is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_lchmod+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5688 "configure" -#include "confdefs.h" - -#include -#include - -int -main () -{ -#ifndef lchmod - char *p = (char *) lchmod; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5706: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5709: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5712: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5715: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_lchmod=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_lchmod=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5725: result: $ac_cv_have_decl_lchmod" >&5 -echo "${ECHO_T}$ac_cv_have_decl_lchmod" >&6 -if test $ac_cv_have_decl_lchmod = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether lchown is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_lchown+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5745 "configure" -#include "confdefs.h" - -#include -#include - -int -main () -{ -#ifndef lchown - char *p = (char *) lchown; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5763: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5766: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5769: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5772: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_lchown=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_lchown=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5782: result: $ac_cv_have_decl_lchown" >&5 -echo "${ECHO_T}$ac_cv_have_decl_lchown" >&6 -if test $ac_cv_have_decl_lchown = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether errc is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_errc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5803 "configure" -#include "confdefs.h" - -#ifdef HAVE_ERR_H -#include -#endif - -int -main () -{ -#ifndef errc - char *p = (char *) errc; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5822: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5825: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5828: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5831: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_errc=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_errc=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5841: result: $ac_cv_have_decl_errc" >&5 -echo "${ECHO_T}$ac_cv_have_decl_errc" >&6 -if test $ac_cv_have_decl_errc = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether verrc is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_verrc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5861 "configure" -#include "confdefs.h" - -#ifdef HAVE_ERR_H -#include -#endif - -int -main () -{ -#ifndef verrc - char *p = (char *) verrc; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5880: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5883: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5886: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5889: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_verrc=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_verrc=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5899: result: $ac_cv_have_decl_verrc" >&5 -echo "${ECHO_T}$ac_cv_have_decl_verrc" >&6 -if test $ac_cv_have_decl_verrc = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether warnc is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_warnc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5919 "configure" -#include "confdefs.h" - -#ifdef HAVE_ERR_H -#include -#endif - -int -main () -{ -#ifndef warnc - char *p = (char *) warnc; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5938: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5941: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:5944: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:5947: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_warnc=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_warnc=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:5957: result: $ac_cv_have_decl_warnc" >&5 -echo "${ECHO_T}$ac_cv_have_decl_warnc" >&6 -if test $ac_cv_have_decl_warnc = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether vwarnc is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_vwarnc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 5977 "configure" -#include "confdefs.h" - -#ifdef HAVE_ERR_H -#include -#endif - -int -main () -{ -#ifndef vwarnc - char *p = (char *) vwarnc; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5996: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5999: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6002: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6005: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_vwarnc=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_vwarnc=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6015: result: $ac_cv_have_decl_vwarnc" >&5 -echo "${ECHO_T}$ac_cv_have_decl_vwarnc" >&6 -if test $ac_cv_have_decl_vwarnc = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether htobe16 is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_htobe16+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6036 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef htobe16 - char *p = (char *) htobe16; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6052: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6055: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6058: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6061: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_htobe16=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_htobe16=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6071: result: $ac_cv_have_decl_htobe16" >&5 -echo "${ECHO_T}$ac_cv_have_decl_htobe16" >&6 -if test $ac_cv_have_decl_htobe16 = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether htobe32 is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_htobe32+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6091 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef htobe32 - char *p = (char *) htobe32; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6107: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6110: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6113: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6116: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_htobe32=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_htobe32=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6126: result: $ac_cv_have_decl_htobe32" >&5 -echo "${ECHO_T}$ac_cv_have_decl_htobe32" >&6 -if test $ac_cv_have_decl_htobe32 = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether htobe64 is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_htobe64+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6146 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef htobe64 - char *p = (char *) htobe64; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6162: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6165: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6168: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6171: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_htobe64=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_htobe64=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6181: result: $ac_cv_have_decl_htobe64" >&5 -echo "${ECHO_T}$ac_cv_have_decl_htobe64" >&6 -if test $ac_cv_have_decl_htobe64 = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether htole16 is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_htole16+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6201 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef htole16 - char *p = (char *) htole16; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6217: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6220: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6223: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6226: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_htole16=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_htole16=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6236: result: $ac_cv_have_decl_htole16" >&5 -echo "${ECHO_T}$ac_cv_have_decl_htole16" >&6 -if test $ac_cv_have_decl_htole16 = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether htole32 is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_htole32+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6256 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef htole32 - char *p = (char *) htole32; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6272: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6275: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6278: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6281: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_htole32=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_htole32=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6291: result: $ac_cv_have_decl_htole32" >&5 -echo "${ECHO_T}$ac_cv_have_decl_htole32" >&6 -if test $ac_cv_have_decl_htole32 = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether htole64 is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_htole64+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6311 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef htole64 - char *p = (char *) htole64; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6327: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6330: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6333: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6336: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_htole64=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_htole64=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6346: result: $ac_cv_have_decl_htole64" >&5 -echo "${ECHO_T}$ac_cv_have_decl_htole64" >&6 -if test $ac_cv_have_decl_htole64 = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether be16toh is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_be16toh+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6366 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef be16toh - char *p = (char *) be16toh; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6382: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6385: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6388: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6391: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_be16toh=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_be16toh=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6401: result: $ac_cv_have_decl_be16toh" >&5 -echo "${ECHO_T}$ac_cv_have_decl_be16toh" >&6 -if test $ac_cv_have_decl_be16toh = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether be32toh is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_be32toh+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6421 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef be32toh - char *p = (char *) be32toh; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6437: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6440: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6443: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6446: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_be32toh=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_be32toh=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6456: result: $ac_cv_have_decl_be32toh" >&5 -echo "${ECHO_T}$ac_cv_have_decl_be32toh" >&6 -if test $ac_cv_have_decl_be32toh = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether be64toh is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_be64toh+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6476 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef be64toh - char *p = (char *) be64toh; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6492: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6495: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6498: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6501: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_be64toh=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_be64toh=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6511: result: $ac_cv_have_decl_be64toh" >&5 -echo "${ECHO_T}$ac_cv_have_decl_be64toh" >&6 -if test $ac_cv_have_decl_be64toh = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether le16toh is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_le16toh+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6531 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef le16toh - char *p = (char *) le16toh; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6547: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6550: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6553: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6556: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_le16toh=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_le16toh=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6566: result: $ac_cv_have_decl_le16toh" >&5 -echo "${ECHO_T}$ac_cv_have_decl_le16toh" >&6 -if test $ac_cv_have_decl_le16toh = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether le32toh is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_le32toh+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6586 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef le32toh - char *p = (char *) le32toh; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6602: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6605: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6608: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6611: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_le32toh=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_le32toh=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6621: result: $ac_cv_have_decl_le32toh" >&5 -echo "${ECHO_T}$ac_cv_have_decl_le32toh" >&6 -if test $ac_cv_have_decl_le32toh = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether le64toh is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_le64toh+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6641 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef le64toh - char *p = (char *) le64toh; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6657: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6660: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6663: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6666: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_le64toh=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_le64toh=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6676: result: $ac_cv_have_decl_le64toh" >&5 -echo "${ECHO_T}$ac_cv_have_decl_le64toh" >&6 -if test $ac_cv_have_decl_le64toh = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether bswap16 is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_bswap16+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6697 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef bswap16 - char *p = (char *) bswap16; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6713: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6716: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6719: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6722: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_bswap16=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_bswap16=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6732: result: $ac_cv_have_decl_bswap16" >&5 -echo "${ECHO_T}$ac_cv_have_decl_bswap16" >&6 -if test $ac_cv_have_decl_bswap16 = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether bswap32 is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_bswap32+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6752 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef bswap32 - char *p = (char *) bswap32; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6768: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6771: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6774: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6777: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_bswap32=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_bswap32=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6787: result: $ac_cv_have_decl_bswap32" >&5 -echo "${ECHO_T}$ac_cv_have_decl_bswap32" >&6 -if test $ac_cv_have_decl_bswap32 = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether bswap64 is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_bswap64+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6807 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef bswap64 - char *p = (char *) bswap64; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6823: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6826: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6829: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6832: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_bswap64=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_bswap64=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6842: result: $ac_cv_have_decl_bswap64" >&5 -echo "${ECHO_T}$ac_cv_have_decl_bswap64" >&6 -if test $ac_cv_have_decl_bswap64 = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether be16enc is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_be16enc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6863 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef be16enc - char *p = (char *) be16enc; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6879: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6882: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6885: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6888: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_be16enc=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_be16enc=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6898: result: $ac_cv_have_decl_be16enc" >&5 -echo "${ECHO_T}$ac_cv_have_decl_be16enc" >&6 -if test $ac_cv_have_decl_be16enc = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether le16enc is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_le16enc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6918 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef le16enc - char *p = (char *) le16enc; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6934: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6937: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6940: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6943: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_le16enc=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_le16enc=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:6953: result: $ac_cv_have_decl_le16enc" >&5 -echo "${ECHO_T}$ac_cv_have_decl_le16enc" >&6 -if test $ac_cv_have_decl_le16enc = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether be16dec is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_be16dec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6973 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef be16dec - char *p = (char *) be16dec; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:6989: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:6992: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:6995: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6998: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_be16dec=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_be16dec=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:7008: result: $ac_cv_have_decl_be16dec" >&5 -echo "${ECHO_T}$ac_cv_have_decl_be16dec" >&6 -if test $ac_cv_have_decl_be16dec = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether le16dec is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_le16dec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 7028 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef le16dec - char *p = (char *) le16dec; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:7044: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:7047: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:7050: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7053: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_le16dec=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_le16dec=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:7063: result: $ac_cv_have_decl_le16dec" >&5 -echo "${ECHO_T}$ac_cv_have_decl_le16dec" >&6 -if test $ac_cv_have_decl_le16dec = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether be32enc is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_be32enc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 7083 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef be32enc - char *p = (char *) be32enc; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:7099: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:7102: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:7105: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7108: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_be32enc=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_be32enc=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:7118: result: $ac_cv_have_decl_be32enc" >&5 -echo "${ECHO_T}$ac_cv_have_decl_be32enc" >&6 -if test $ac_cv_have_decl_be32enc = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether le32enc is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_le32enc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 7138 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef le32enc - char *p = (char *) le32enc; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:7154: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:7157: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:7160: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7163: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_le32enc=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_le32enc=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:7173: result: $ac_cv_have_decl_le32enc" >&5 -echo "${ECHO_T}$ac_cv_have_decl_le32enc" >&6 -if test $ac_cv_have_decl_le32enc = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether be32dec is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_be32dec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 7193 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef be32dec - char *p = (char *) be32dec; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:7209: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:7212: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:7215: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7218: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_be32dec=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_be32dec=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:7228: result: $ac_cv_have_decl_be32dec" >&5 -echo "${ECHO_T}$ac_cv_have_decl_be32dec" >&6 -if test $ac_cv_have_decl_be32dec = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether le32dec is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_le32dec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 7248 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef le32dec - char *p = (char *) le32dec; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:7264: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:7267: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:7270: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7273: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_le32dec=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_le32dec=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:7283: result: $ac_cv_have_decl_le32dec" >&5 -echo "${ECHO_T}$ac_cv_have_decl_le32dec" >&6 -if test $ac_cv_have_decl_le32dec = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether be64enc is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_be64enc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 7303 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef be64enc - char *p = (char *) be64enc; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:7319: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:7322: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:7325: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7328: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_be64enc=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_be64enc=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:7338: result: $ac_cv_have_decl_be64enc" >&5 -echo "${ECHO_T}$ac_cv_have_decl_be64enc" >&6 -if test $ac_cv_have_decl_be64enc = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether le64enc is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_le64enc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 7358 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef le64enc - char *p = (char *) le64enc; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:7374: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:7377: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:7380: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7383: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_le64enc=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_le64enc=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:7393: result: $ac_cv_have_decl_le64enc" >&5 -echo "${ECHO_T}$ac_cv_have_decl_le64enc" >&6 -if test $ac_cv_have_decl_le64enc = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether be64dec is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_be64dec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 7413 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef be64dec - char *p = (char *) be64dec; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:7429: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:7432: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:7435: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7438: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_be64dec=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_be64dec=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:7448: result: $ac_cv_have_decl_be64dec" >&5 -echo "${ECHO_T}$ac_cv_have_decl_be64dec" >&6 -if test $ac_cv_have_decl_be64dec = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether le64dec is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_le64dec+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 7468 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef le64dec - char *p = (char *) le64dec; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:7484: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:7487: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:7490: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7493: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_le64dec=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_le64dec=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:7503: result: $ac_cv_have_decl_le64dec" >&5 -echo "${ECHO_T}$ac_cv_have_decl_le64dec" >&6 -if test $ac_cv_have_decl_le64dec = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether fstatvfs is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_fstatvfs+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 7524 "configure" -#include "confdefs.h" -#include - -int -main () -{ -#ifndef fstatvfs - char *p = (char *) fstatvfs; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:7540: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:7543: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:7546: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7549: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_fstatvfs=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_fstatvfs=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:7559: result: $ac_cv_have_decl_fstatvfs" >&5 -echo "${ECHO_T}$ac_cv_have_decl_fstatvfs" >&6 -if test $ac_cv_have_decl_fstatvfs = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether setgroupent is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_setgroupent+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 7580 "configure" -#include "confdefs.h" - -#include -#include -#include - -int -main () -{ -#ifndef setgroupent - char *p = (char *) setgroupent; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:7599: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:7602: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:7605: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7608: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_setgroupent=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_setgroupent=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:7618: result: $ac_cv_have_decl_setgroupent" >&5 -echo "${ECHO_T}$ac_cv_have_decl_setgroupent" >&6 -if test $ac_cv_have_decl_setgroupent = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking whether setpassent is declared... $ECHO_C" >&6 -if test "${ac_cv_have_decl_setpassent+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 7638 "configure" -#include "confdefs.h" - -#include -#include -#include - -int -main () -{ -#ifndef setpassent - char *p = (char *) setpassent; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:7657: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:7660: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:7663: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7666: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_have_decl_setpassent=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_have_decl_setpassent=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:7676: result: $ac_cv_have_decl_setpassent" >&5 -echo "${ECHO_T}$ac_cv_have_decl_setpassent" >&6 -if test $ac_cv_have_decl_setpassent = yes; then - -cat >>confdefs.h <>confdefs.h <&5 -echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6 -if test "${ac_cv_lib_regex_regfree+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lregex $LIBS" -cat >conftest.$ac_ext <<_ACEOF -#line 7702 "configure" -#include "confdefs.h" - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char regfree (); -int -main () -{ -regfree (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:7721: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:7724: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:7727: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7730: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_lib_regex_regfree=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_lib_regex_regfree=no -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -echo "$as_me:7741: result: $ac_cv_lib_regex_regfree" >&5 -echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6 -if test $ac_cv_lib_regex_regfree = yes; then - cat >>confdefs.h <&5 -echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6 -if test "${ac_cv_search_regfree+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$LIBS -ac_cv_search_regfree=no -cat >conftest.$ac_ext <<_ACEOF -#line 7760 "configure" -#include "confdefs.h" - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char regfree (); -int -main () -{ -regfree (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:7779: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:7782: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:7785: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7788: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_search_regfree="none required" -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -if test "$ac_cv_search_regfree" = no; then - for ac_lib in rx posix; do - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - cat >conftest.$ac_ext <<_ACEOF -#line 7800 "configure" -#include "confdefs.h" - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char regfree (); -int -main () -{ -regfree (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:7819: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:7822: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:7825: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7828: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_search_regfree="-l$ac_lib" -break -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext - done -fi -LIBS=$ac_func_search_save_LIBS -fi -echo "$as_me:7841: result: $ac_cv_search_regfree" >&5 -echo "${ECHO_T}$ac_cv_search_regfree" >&6 -if test "$ac_cv_search_regfree" != no; then - test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS" - -fi - -echo "$as_me:7848: checking for clock_gettime in -lrt" >&5 -echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6 -if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lrt $LIBS" -cat >conftest.$ac_ext <<_ACEOF -#line 7856 "configure" -#include "confdefs.h" - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char clock_gettime (); -int -main () -{ -clock_gettime (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:7875: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:7878: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:7881: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7884: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_lib_rt_clock_gettime=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_lib_rt_clock_gettime=no -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -echo "$as_me:7895: result: $ac_cv_lib_rt_clock_gettime" >&5 -echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6 -if test $ac_cv_lib_rt_clock_gettime = yes; then - cat >>confdefs.h <&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 7915 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. */ -#include -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -char (*f) (); - -int -main () -{ -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -f = $ac_func; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:7946: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:7949: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:7952: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:7955: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -eval "$as_ac_var=no" -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:7965: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <&5 -echo $ECHO_N "checking if fparseln seems to work... $ECHO_C" >&6 - if test "$cross_compiling" = yes; then - { echo "$as_me:7975: WARNING: cross compiling: not checking farseln" >&5 -echo "$as_me: WARNING: cross compiling: not checking farseln" >&2;} - -else - cat >conftest.$ac_ext <<_ACEOF -#line 7980 "configure" -#include "confdefs.h" - -#define _NETBSD_SOURCE -#include -#include -#define CONFTEST "conftest.fparseln" -#define COMMENT '#' -int -main(void) -{ - static const char delim[3] = { '\0', '\0', COMMENT }; - FILE *fp; - char *ptr; - fp = fopen(CONFTEST, "w+"); - if (fp != NULL) { - unlink(CONFTEST); - ungetc(COMMENT, fp); - ptr = fparseln(fp, NULL, NULL, delim, - FPARSELN_UNESCALL); - fclose(fp); - if (ptr == NULL) - exit(0); - } - exit(1); -} - -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:8009: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:8012: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:8014: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:8017: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - echo "$as_me:8019: result: yes" >&5 -echo "${ECHO_T}yes" >&6 -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -echo "$as_me:8025: result: no" >&5 -echo "${ECHO_T}no" >&6 - -cat >>confdefs.h <<\EOF -#define BROKEN_FPARSELN 1 -EOF - -fi -rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - -fi -done - -# Variables substituted via @VARNAME@ in defs.mk.in -HAVE_PTHREAD_H=$ac_cv_header_pthread_h - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overriden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -{ - (set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} | - sed ' - t clear - : clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - : end' >>confcache -if cmp -s $cache_file confcache; then :; else - if test -w $cache_file; then - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" - cat confcache >$cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/; -s/:*\${srcdir}:*/:/; -s/:*@srcdir@:*/:/; -s/^\([^=]*=[ ]*\):*/\1/; -s/:*$//; -s/^[^=]*=[ ]*$//; -}' -fi - -DEFS=-DHAVE_CONFIG_H - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:8121: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -SHELL=\${CONFIG_SHELL-$SHELL} -ac_cs_invocation="\$0 \$@" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi - -# Name of the executable. -as_me=`echo "$0" |sed 's,.*[\\/],,'` - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -as_executable_p="test -f" - -# Support unset when possible. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - -# NLS nuisances. -$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } -$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } -$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } -$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } -$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } -$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } -$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } -$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } - -exec 6>&1 - -_ACEOF - -# Files that config.status was made for. -if test -n "$ac_config_files"; then - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_headers"; then - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_links"; then - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_commands"; then - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS -fi - -cat >>$CONFIG_STATUS <<\EOF - -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number, then exit - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - --header=FILE[:TEMPLATE] - instantiate the configuration header FILE - -Configuration files: -$config_files - -Configuration headers: -$config_headers - -Report bugs to ." -EOF - -cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "x$1" : 'x\([^=]*\)='` - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` - shift - set dummy "$ac_option" "$ac_optarg" ${1+"$@"} - shift - ;; - -*);; - *) # This is not an option, so the user has probably given explicit - # arguments. - ac_need_defaults=false;; - esac - - case $1 in - # Handling of the options. -EOF -cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF - --version | --vers* | -V ) - echo "$ac_cs_version"; exit 0 ;; - --he | --h) - # Conflict between --help and --header - { { echo "$as_me:8293: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - shift - CONFIG_FILES="$CONFIG_FILES $1" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - shift - CONFIG_HEADERS="$CONFIG_HEADERS $1" - ac_need_defaults=false;; - - # This is an error. - -*) { { echo "$as_me:8312: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" ;; - - esac - shift -done - -exec 5>>config.log -cat >&5 << _ACEOF - -## ----------------------- ## -## Running config.status. ## -## ----------------------- ## - -This file was extended by $as_me (libnbcompat noversion) 2.52, executed with - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - > $ac_cs_invocation -on `(hostname || uname -n) 2>/dev/null | sed 1q` - -_ACEOF -EOF - -cat >>$CONFIG_STATUS <<\EOF -for ac_config_target in $ac_config_targets -do - case "$ac_config_target" in - # Handling of arguments. - "defs.mk" ) CONFIG_FILES="$CONFIG_FILES defs.mk" ;; - "nbtool_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS nbtool_config.h" ;; - *) { { echo "$as_me:8349: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers -fi - -# Create a temporary directory, and hook for its removal unless debugging. -$debug || -{ - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} - -# Create a (secure) tmp directory for tmp files. -: ${TMPDIR=/tmp} -{ - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=$TMPDIR/cs$$-$RANDOM - (umask 077 && mkdir $tmp) -} || -{ - echo "$me: cannot create a temporary directory in $TMPDIR" >&2 - { (exit 1); exit 1; } -} - -EOF - -cat >>$CONFIG_STATUS <\$tmp/subs.sed <<\\CEOF -s,@SHELL@,$SHELL,;t t -s,@exec_prefix@,$exec_prefix,;t t -s,@prefix@,$prefix,;t t -s,@program_transform_name@,$program_transform_name,;t t -s,@bindir@,$bindir,;t t -s,@sbindir@,$sbindir,;t t -s,@libexecdir@,$libexecdir,;t t -s,@datadir@,$datadir,;t t -s,@sysconfdir@,$sysconfdir,;t t -s,@sharedstatedir@,$sharedstatedir,;t t -s,@localstatedir@,$localstatedir,;t t -s,@libdir@,$libdir,;t t -s,@includedir@,$includedir,;t t -s,@oldincludedir@,$oldincludedir,;t t -s,@infodir@,$infodir,;t t -s,@mandir@,$mandir,;t t -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t -s,@build_alias@,$build_alias,;t t -s,@host_alias@,$host_alias,;t t -s,@target_alias@,$target_alias,;t t -s,@ECHO_C@,$ECHO_C,;t t -s,@ECHO_N@,$ECHO_N,;t t -s,@ECHO_T@,$ECHO_T,;t t -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t -s,@DEFS@,$DEFS,;t t -s,@LIBS@,$LIBS,;t t -s,@CC@,$CC,;t t -s,@CFLAGS@,$CFLAGS,;t t -s,@LDFLAGS@,$LDFLAGS,;t t -s,@CPPFLAGS@,$CPPFLAGS,;t t -s,@ac_ct_CC@,$ac_ct_CC,;t t -s,@EXEEXT@,$EXEEXT,;t t -s,@OBJEXT@,$OBJEXT,;t t -s,@CPP@,$CPP,;t t -s,@BSHELL@,$BSHELL,;t t -s,@ALLOCA@,$ALLOCA,;t t -s,@HAVE_PTHREAD_H@,$HAVE_PTHREAD_H,;t t -CEOF - -EOF - - cat >>$CONFIG_STATUS <<\EOF - # Split the substitutions into bite-sized pieces for seds with - # small command number limits, like on Digital OSF/1 and HP-UX. - ac_max_sed_lines=48 - ac_sed_frag=1 # Number of current file. - ac_beg=1 # First line for current file. - ac_end=$ac_max_sed_lines # Line after last line for current file. - ac_more_lines=: - ac_sed_cmds= - while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - else - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - fi - if test ! -s $tmp/subs.frag; then - ac_more_lines=false - else - # The purpose of the label and of the branching condition is to - # speed up the sed processing (if there are no `@' at all, there - # is no need to browse any of the substitutions). - # These are the two extra sed commands mentioned above. - (echo ':t - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" - else - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" - fi - ac_sed_frag=`expr $ac_sed_frag + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_lines` - fi - done - if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat - fi -fi # test -n "$CONFIG_FILES" - -EOF -cat >>$CONFIG_STATUS <<\EOF -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; - esac - - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. - ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - { case "$ac_dir" in - [\\/]* | ?:[\\/]* ) as_incr_dir=;; - *) as_incr_dir=.;; -esac -as_dummy="$ac_dir" -for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do - case $as_mkdir_dir in - # Skip DOS drivespec - ?:) as_incr_dir=$as_mkdir_dir ;; - *) - as_incr_dir=$as_incr_dir/$as_mkdir_dir - test -d "$as_incr_dir" || mkdir "$as_incr_dir" - ;; - esac -done; } - - ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` - else - ac_dir_suffix= ac_dots= - fi - - case $srcdir in - .) ac_srcdir=. - if test -z "$ac_dots"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_dots$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_dots$srcdir ;; - esac - - if test x"$ac_file" != x-; then - { echo "$as_me:8550: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - rm -f "$ac_file" - fi - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated automatically by config.status. */ - configure_input="Generated automatically from `echo $ac_file_in | - sed 's,.*/,,'` by configure." - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:8568: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - echo $f;; - *) # Relative - if test -f "$f"; then - # Build tree - echo $f - elif test -f "$srcdir/$f"; then - # Source tree - echo $srcdir/$f - else - # /dev/null tree - { { echo "$as_me:8581: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - fi;; - esac - done` || { (exit 1); exit 1; } -EOF -cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s,@configure_input@,$configure_input,;t t -s,@srcdir@,$ac_srcdir,;t t -s,@top_srcdir@,$ac_top_srcdir,;t t -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out - rm -f $tmp/stdin - if test x"$ac_file" != x-; then - mv $tmp/out $ac_file - else - cat $tmp/out - rm -f $tmp/out - fi - -done -EOF -cat >>$CONFIG_STATUS <<\EOF - -# -# CONFIG_HEADER section. -# - -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where -# NAME is the cpp macro being defined and VALUE is the value it is being given. -# -# ac_d sets the value in "#define NAME VALUE" lines. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' -ac_dB='[ ].*$,\1#\2' -ac_dC=' ' -ac_dD=',;t' -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_uB='$,\1#\2define\3' -ac_uC=' ' -ac_uD=',;t' - -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; - esac - - test x"$ac_file" != x- && { echo "$as_me:8641: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:8652: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - echo $f;; - *) # Relative - if test -f "$f"; then - # Build tree - echo $f - elif test -f "$srcdir/$f"; then - # Source tree - echo $srcdir/$f - else - # /dev/null tree - { { echo "$as_me:8665: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - fi;; - esac - done` || { (exit 1); exit 1; } - # Remove the trailing spaces. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in - -EOF - -# Transform confdefs.h into two sed scripts, `conftest.defines' and -# `conftest.undefs', that substitutes the proper values into -# config.h.in to produce config.h. The first handles `#define' -# templates, and the second `#undef' templates. -# And first: Protect against being on the right side of a sed subst in -# config.status. Protect against being in an unquoted here document -# in config.status. -rm -f conftest.defines conftest.undefs -# Using a here document instead of a string reduces the quoting nightmare. -# Putting comments in sed scripts is not portable. -# -# `end' is used to avoid that the second main sed command (meant for -# 0-ary CPP macros) applies to n-ary macro definitions. -# See the Autoconf documentation for `clear'. -cat >confdef2sed.sed <<\EOF -s/[\\&,]/\\&/g -s,[\\$`],\\&,g -t clear -: clear -s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp -t end -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp -: end -EOF -# If some macros were called several times there might be several times -# the same #defines, which is useless. Nevertheless, we may not want to -# sort them, since we want the *last* AC-DEFINE to be honored. -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs -rm -f confdef2sed.sed - -# This sed command replaces #undef with comments. This is necessary, for -# example, in the case of _POSIX_SOURCE, which is predefined and required -# on some systems where configure will not decide to define it. -cat >>conftest.undefs <<\EOF -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, -EOF - -# Break up conftest.defines because some shells have a limit on the size -# of here documents, and old seds have small limits too (100 cmds). -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS -echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS -echo ' :' >>$CONFIG_STATUS -rm -f conftest.tail -while grep . conftest.defines >/dev/null -do - # Write a limited-size here document to $tmp/defines.sed. - echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS - # Speed up: don't consider the non `#define' lines. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS - # Work around the forget-to-reset-the-flag bug. - echo 't clr' >>$CONFIG_STATUS - echo ': clr' >>$CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS - echo 'CEOF - sed -f $tmp/defines.sed $tmp/in >$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in -' >>$CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail - rm -f conftest.defines - mv conftest.tail conftest.defines -done -rm -f conftest.defines -echo ' fi # egrep' >>$CONFIG_STATUS -echo >>$CONFIG_STATUS - -# Break up conftest.undefs because some shells have a limit on the size -# of here documents, and old seds have small limits too (100 cmds). -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS -rm -f conftest.tail -while grep . conftest.undefs >/dev/null -do - # Write a limited-size here document to $tmp/undefs.sed. - echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS - # Speed up: don't consider the non `#undef' - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS - # Work around the forget-to-reset-the-flag bug. - echo 't clr' >>$CONFIG_STATUS - echo ': clr' >>$CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS - echo 'CEOF - sed -f $tmp/undefs.sed $tmp/in >$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in -' >>$CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail - rm -f conftest.undefs - mv conftest.tail conftest.undefs -done -rm -f conftest.undefs - -cat >>$CONFIG_STATUS <<\EOF - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated automatically by config.status. */ - if test x"$ac_file" = x-; then - echo "/* Generated automatically by configure. */" >$tmp/config.h - else - echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h - fi - cat $tmp/in >>$tmp/config.h - rm -f $tmp/in - if test x"$ac_file" != x-; then - if cmp -s $ac_file $tmp/config.h 2>/dev/null; then - { echo "$as_me:8782: $ac_file is unchanged" >&5 -echo "$as_me: $ac_file is unchanged" >&6;} - else - ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - { case "$ac_dir" in - [\\/]* | ?:[\\/]* ) as_incr_dir=;; - *) as_incr_dir=.;; -esac -as_dummy="$ac_dir" -for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do - case $as_mkdir_dir in - # Skip DOS drivespec - ?:) as_incr_dir=$as_mkdir_dir ;; - *) - as_incr_dir=$as_incr_dir/$as_mkdir_dir - test -d "$as_incr_dir" || mkdir "$as_incr_dir" - ;; - esac -done; } - - fi - rm -f $ac_file - mv $tmp/config.h $ac_file - fi - else - cat $tmp/config.h - rm -f $tmp/config.h - fi -done -EOF - -cat >>$CONFIG_STATUS <<\EOF - -{ (exit 0); exit 0; } -EOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - exec 5>/dev/null - $SHELL $CONFIG_STATUS || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - diff --git a/tools/compat/configure.ac b/tools/compat/configure.ac deleted file mode 100644 index 95e66c197..000000000 --- a/tools/compat/configure.ac +++ /dev/null @@ -1,252 +0,0 @@ -# $NetBSD: configure.ac,v 1.84 2015/07/26 14:01:53 kamil Exp $ -# -# Autoconf definition file for libnbcompat. -# -# When you edit configure.ac: -# 0. Create the tools versions of autoconf and autoheader: -# cd ${SRCDIR} && build.sh -V MKMAINTAINERTOOLS=yes tools -# (This might not work if you try it after editing configure.ac.) -# 1. edit configure.ac -# 2. Regenerate "configure" and "nbtool_config.h.in" from "configure.ac": -# cd ${SRCDIR}/tools/compat && ${TOOLDIR}/bin/nbmake-${MACHINE} regen -# (Please don't use a non-tools version of autoconf or autoheader.) -# 3. Test that the tools still build: -# mv ${TOOLDIR} ${TOOLDIR}.bak -# cd ${SRCDIR} && build.sh -V MKMAINTAINERTOOLS=yes tools -# 4. cvs commit files that you edited. -# 5. Regen again, to pick up changed RCS IDs from the above commit: -# cd ${SRCDIR}/tools/compat && ${TOOLDIR}/bin/nbmake-${MACHINE} regen -# 6. cvs commit files that were generated. -# - -AC_INIT([libnbcompat], [noversion], [lib-bug-people@NetBSD.org]) -AC_CONFIG_HEADERS(nbtool_config.h) -AC_CONFIG_FILES(defs.mk) - -# Autoheader header and footer -AH_TOP([/* $][NetBSD$ */ - -#ifndef __NETBSD_NBTOOL_CONFIG_H__ -#define __NETBSD_NBTOOL_CONFIG_H__]) - -AH_BOTTOM([#include "compat_defs.h" -#endif /* !__NETBSD_NBTOOL_CONFIG_H__ */]) - -AC_DEFUN([AC_NETBSD], -[AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl - AC_BEFORE([$0], [AC_RUN_IFELSE])dnl - AC_MSG_CHECKING([for NetBSD or MINIX3]) - AC_EGREP_CPP(yes, - [#if defined(__NetBSD__) || defined(__minix) - yes - #endif - ], - [AC_MSG_RESULT([yes]) - AC_DEFINE([_POSIX_SOURCE], 1, [Define for NetBSD headers.]) - AC_DEFINE([_POSIX_C_SOURCE], 200112L, [Define for NetBSD headers.]) - AC_DEFINE([_XOPEN_SOURCE], 600, [Define for NetBSD headers.])], - [AC_MSG_RESULT([no])]) -])# AC_NETBSD - -AC_NETBSD -AC_PATH_PROG(BSHELL, sh, ) -if test x"$BSHELL" = x; then - AC_MSG_ERROR([sh must be somewhere on \$PATH]) -fi -AC_DEFINE_UNQUOTED([PATH_BSHELL], "$BSHELL", [Path to sh(1).]) - -AC_C_BIGENDIAN -AC_HEADER_STDC - -# Confirm existence of zlib. (This is available as a default install -# option on many OS's; this could be added as a reachover build in the -# future.) -AC_CHECK_HEADER(zlib.h,, - AC_MSG_ERROR([zlib must be installed in a compiler-visible path])) -AC_CHECK_LIB(z, gzdopen,, - AC_MSG_ERROR([zlib must be installed in a compiler-visible path])) - -# Make sure certain required headers are available. -# These are not necessarily required by the code, but they are not -# currently conditionalized. -AC_CHECK_HEADERS(sys/ioctl.h sys/mman.h sys/param.h \ - sys/socket.h sys/stat.h sys/time.h sys/types.h sys/utsname.h \ - sys/wait.h assert.h ctype.h errno.h fcntl.h grp.h limits.h locale.h \ - netdb.h pwd.h signal.h stdarg.h stdio.h stdlib.h string.h \ - termios.h unistd.h,, - AC_MSG_ERROR([standard system header file not found])) - -# Find headers that may not be available. -AC_HEADER_DIRENT -AC_CHECK_HEADERS(sys/mtio.h sys/sysmacros.h sys/syslimits.h \ - getopt.h features.h malloc.h sys/poll.h pthread.h stddef.h rpc/types.h) -AC_CHECK_HEADERS(sys/bswap.h machine/bswap.h sys/cdefs.h machine/endian.h \ - sys/endian.h sys/featuretest.h err.h inttypes.h libgen.h paths.h \ - stdint.h util.h resolv.h arpa/nameser.h,, - [test -f include/$ac_header || touch include/$ac_header]) -AC_CHECK_HEADERS(rpc/types.h netconfig.h,, - [echo '#include "nbtool_config.h"' >include/$ac_header.new - echo '#include "'$srcdir/../../include/$ac_header'"' \ - >>include/$ac_header.new - if cmp include/$ac_header.new include/$ac_header >/dev/null 2>&1; then - rm -f include/$ac_header.new - else - mv -f include/$ac_header.new include/$ac_header - fi]) - -# Typedefs. -AC_TYPE_SIZE_T -AC_CHECK_TYPES([id_t, long long, u_long, u_char, u_short, u_int, u_quad_t]) -AC_CHECK_TYPE(socklen_t, [AC_DEFINE([HAVE_SOCKLEN_T], 1, - [Define if you have the socklen_t type.])],, -[#include -#ifdef HAVE_RPC_TYPES_H -#include -#endif -#include ]) - -dnl XXX - This is UGLY. Need a better way to homogenize the bitsized types, -dnl including use of compiler primitive types via AC_CHECK_SIZEOF. -dnl -define([NB_CHECK_INTTYPE], [ - AC_CHECK_TYPE(uint][$1][_t,, [ - AC_CHECK_TYPE(u_int][$1][_t, - AC_DEFINE(uint][$1][_t, u_int][$1][_t, \ - [Define if you have u_int][$1][_t, but not uint][$1][_t.]), - AC_MSG_ERROR([cannot find a suitable type for uint][$1][_t])) - ]) - AC_CHECK_TYPE(u_int][$1][_t,, [ - AC_CHECK_TYPE(uint][$1][_t, - AC_DEFINE(u_int][$1][_t, uint][$1][_t, \ - [Define if you have uint][$1][_t, but not u_int][$1][_t.]), - AC_MSG_ERROR([cannot find a suitable type for u_int][$1][_t])) - ]) -]) - -NB_CHECK_INTTYPE(8) -NB_CHECK_INTTYPE(16) -NB_CHECK_INTTYPE(32) -NB_CHECK_INTTYPE(64) - -# Struct members. -AC_CHECK_MEMBERS([DIR.dd_fd, DIR.__dd_fd, struct dirent.d_namlen],,, -[#include -#include ]) -AC_CHECK_MEMBERS([struct stat.st_flags, struct stat.st_gen, - struct stat.st_birthtime, struct stat.st_birthtimensec, - struct stat.st_atim, struct stat.st_mtimensec],,, - [#include ]) -AC_CHECK_MEMBERS(struct statvfs.f_iosize,,, [#include ]) -AC_CHECK_MEMBERS(struct tm.tm_gmtoff,,, [#include ]) - -# Global variable decls. -AC_CHECK_DECLS([optind, optreset],,, [ -#include -#include -#include -#ifdef HAVE_GETOPT_H -#include -#endif -]) -AC_CHECK_DECLS(sys_signame,,, [#include ]) - -# Library functions (where a .h check isn't enough). -AC_FUNC_ALLOCA -AC_CHECK_FUNCS(atoll asprintf asnprintf basename devname dirfd dirname \ - dprintf esetfunc fgetln flock fpurge __fpurge futimes getline \ - getopt getopt_long group_from_gid gid_from_group \ - heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \ - mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb \ - pwrite raise_default_signal random reallocarr setenv \ - setgroupent setprogname setpassent \ - snprintb_m snprintf strlcat strlcpy strmode \ - strndup strnlen strsep strsuftoll strtoi strtoll strtou \ - user_from_uid uid_from_user vasprintf vasnprintf vsnprintf) - -AC_CHECK_DECLS([user_from_uid, uid_from_user, pwcache_userdb],,,[ -#include -]) -AC_CHECK_DECLS([group_from_gid, gid_from_group, pwcache_groupdb],,,[ -#include -]) -AC_CHECK_DECLS([strndup, strnlen],,,[#include ]) -AC_CHECK_DECLS([strsuftoll],,,[#include ]) -AC_CHECK_DECLS([lchflags, lchmod, lchown],,,[ -#include -#include -]) - -AC_CHECK_DECLS([errc, verrc, warnc, vwarnc],,, [ -#ifdef HAVE_ERR_H -#include -#endif -]) - -AC_CHECK_DECLS([htobe16, htobe32, htobe64, htole16, htole32, htole64, - be16toh, be32toh, be64toh, le16toh, le32toh, le64toh],,, - [#include ]) - -AC_CHECK_DECLS([bswap16, bswap32, bswap64],,, [#include ]) - -AC_CHECK_DECLS([be16enc, le16enc, be16dec, le16dec, be32enc, le32enc, - be32dec, le32dec, be64enc, le64enc, be64dec, le64dec],,, - [#include ]) - -AC_CHECK_DECLS([fstatvfs],,, [#include ]) - -AC_CHECK_DECLS([setgroupent, setpassent],,, [ -#include -#include -#include -]) - -# regcomp() and regexec() are also names of functions in the old V8 -# regexp package. To avoid them, we need to find out who has regfree(). - -dnl # Cygwin: We *MUST* look at -lregex *before* the "no libs" condition. -dnl # Thus AC_CHECK_LIB(regex...) comes first, and AC_SEARCHLIBS next. -AC_CHECK_LIB(regex, regfree) -AC_SEARCH_LIBS(regfree, rx posix) - -AC_CHECK_LIB(rt, clock_gettime) - -AC_CHECK_FUNCS(fparseln, [ - AC_MSG_CHECKING(if fparseln seems to work) - AC_RUN_IFELSE( - [AC_LANG_SOURCE([[ -#define _NETBSD_SOURCE -#include -#include -#define CONFTEST "conftest.fparseln" -#define COMMENT '#' -int -main(void) -{ - static const char delim[3] = { '\0', '\0', COMMENT }; - FILE *fp; - char *ptr; - fp = fopen(CONFTEST, "w+"); - if (fp != NULL) { - unlink(CONFTEST); - ungetc(COMMENT, fp); - ptr = fparseln(fp, NULL, NULL, delim, - FPARSELN_UNESCALL); - fclose(fp); - if (ptr == NULL) - exit(0); - } - exit(1); -} - ]])], - [AC_MSG_RESULT(yes)], - [AC_MSG_RESULT(no) - AC_DEFINE(BROKEN_FPARSELN, 1, - [Define to 1 if your `fparseln' function is broken.])], - [AC_MSG_WARN([cross compiling: not checking farseln])] - ) -]) - -# Variables substituted via @VARNAME@ in defs.mk.in -AC_SUBST(HAVE_PTHREAD_H, $ac_cv_header_pthread_h) - -AC_OUTPUT diff --git a/tools/compat/crypto/rmd160.h b/tools/compat/crypto/rmd160.h deleted file mode 100644 index 72a3d2101..000000000 --- a/tools/compat/crypto/rmd160.h +++ /dev/null @@ -1,5 +0,0 @@ -/* $NetBSD: rmd160.h,v 1.2 2006/10/27 22:32:45 mrg Exp $ */ - -/* We unconditionally use the NetBSD RMD160 in libnbcompat. */ -#include "nbtool_config.h" -#include "../../sys/sys/rmd160.h" diff --git a/tools/compat/crypto/sha2.h b/tools/compat/crypto/sha2.h deleted file mode 100644 index e1bc07c8e..000000000 --- a/tools/compat/crypto/sha2.h +++ /dev/null @@ -1,5 +0,0 @@ -/* $NetBSD: sha2.h,v 1.2 2006/10/27 22:32:45 mrg Exp $ */ - -/* We unconditionally use the NetBSD SHA2 in libnbcompat. */ -#include "nbtool_config.h" -#include "../../../sys/sys/sha2.h" diff --git a/tools/compat/db.h b/tools/compat/db.h deleted file mode 100644 index fdd5d2851..000000000 --- a/tools/compat/db.h +++ /dev/null @@ -1,7 +0,0 @@ -/* $NetBSD: db.h,v 1.4 2006/10/16 19:44:23 apb Exp $ */ - -#include "nbtool_config.h" -#ifndef __BIT_TYPES_DEFINED__ -#define __BIT_TYPES_DEFINED__ -#endif -#include "../../include/db.h" diff --git a/tools/compat/defs.mk.in b/tools/compat/defs.mk.in deleted file mode 100644 index eb5a48a67..000000000 --- a/tools/compat/defs.mk.in +++ /dev/null @@ -1,87 +0,0 @@ -# $NetBSD: defs.mk.in,v 1.12 2012/12/02 13:05:14 apb Exp $ -# -# Makefile fragment for building with libnbcompat and associated -# include files. It can also be used for building just with -# the include files, without the library. -# -# This can be used when the library and include files have been installed -# into TOOLDIR (by "make install" in the src/tools/compat directory), -# or when they have not been installed into TOOLDIR but reside -# in the .OBJDIR associated with src/tools/compat. -# -# Variables: -# -# COMPATLIB_UNINSTALLED: -# If "yes", then use the files from the .OBJDIR of -# NETBSDSRCDIR/tools/compat. Otherwise, use the files -# from TOOLDIR. -# -# COMPATLIB_NO_LIB: -# If "yes" then do not use the library (but still use -# the include files). -# -# Examples: -# -# * Use uninstalled copy of libnbcompat and associated *.h files: -# -# COMPATLIB_UNINSTALLED= yes -# COMPATOBJ!= cd ${NETBSDSRCDIR}/tools/compat && ${PRINTOBJDIR} -# .-include "${COMPATOBJ}/defs.mk" -# -# * Use TOOLDIR copy of libnbcompat and associated *.h files: -# -# .-include "${TOOLDIR}/share/compat/defs.mk" -# -# * Use TOOLDIR copy of compat *.h files, but do not use libnbcompat.a: -# -# COMPATLIB_NO_LIB= yes -# .-include "${TOOLDIR}/share/compat/defs.mk" -# -# The use of ".-include" instead of ".include" above is because it's -# expected that the file might not exist during "make obj" or "make clean". -# - -.include - -# Use the installed (TOOLDIR) version of the library and headers by default -COMPATLIB_UNINSTALLED ?= no -# Use library and includes by default. -COMPATLIB_NO_LIB ?= no - -.if "${COMPATLIB_UNINSTALLED}" == "yes" -# The library lives in the .OBJDIR. -# -# Some include files live directly in the .OBJDIR, while others -# live in subdirectories of .OBJDIR/include. -# -COMPATOBJ:= ${.PARSEDIR} -COMPATLIBDIR= ${COMPATOBJ} -COMPATINCFLAGS= -I${COMPATOBJ} -I${COMPATOBJ}/include -.else -# The library lives in TOOLDIR/lib. -# -# All include files live in TOOLDIR/include/comnpat, and its subdirectories. -# -COMPATLIBDIR= ${TOOLDIR}/lib -COMPATINCFLAGS= -I${TOOLDIR}/include/compat -.endif - -HOSTEXEEXT= @EXEEXT@ -HOST_BSHELL= @BSHELL@ - -BUILD_OSTYPE!= uname -s - -# Disable use of pre-compiled headers on Darwin. -.if ${BUILD_OSTYPE} == "Darwin" -HOST_CPPFLAGS+= -no-cpp-precomp -.endif - -HOST_CPPFLAGS+= ${COMPATINCFLAGS} -I${NETBSDSRCDIR}/tools/compat \ - -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 - -.if "${COMPATLIB_NO_LIB}" != "yes" -DPADD+= ${COMPATLIBDIR}/libnbcompat.a -LDADD+= -L${COMPATLIBDIR} -lnbcompat @LIBS@ -.endif # ! COMPATLIB_NO_LIB - -HAVE_PTHREAD_H= @HAVE_PTHREAD_H@ diff --git a/tools/compat/dev/clock_subr.h b/tools/compat/dev/clock_subr.h deleted file mode 100644 index 7c56c9699..000000000 --- a/tools/compat/dev/clock_subr.h +++ /dev/null @@ -1,55 +0,0 @@ -/* $NetBSD: clock_subr.h,v 1.3 2014/12/22 18:08:39 christos Exp $ */ - -/*- - * Copyright (c) 1996 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Gordon W. Ross - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifndef _DEV_CLOCK_SUBR_H_ -#define _DEV_CLOCK_SUBR_H_ - -/* - * This is a slightly stripped down version of src/sys/dev/clock_subr.h - */ - -/* - * "POSIX time" to/from "YY/MM/DD/hh/mm/ss" - */ -struct clock_ymdhms { - uint64_t dt_year; - u_char dt_mon; - u_char dt_day; - u_char dt_wday; /* Day of week */ - u_char dt_hour; - u_char dt_min; - u_char dt_sec; -}; - -time_t clock_ymdhms_to_secs(struct clock_ymdhms *); -int clock_secs_to_ymdhms(time_t, struct clock_ymdhms *); - -#endif /* _DEV_CLOCK_SUBR_H_ */ diff --git a/tools/compat/dprintf.c b/tools/compat/dprintf.c deleted file mode 100644 index 90d736361..000000000 --- a/tools/compat/dprintf.c +++ /dev/null @@ -1,77 +0,0 @@ -/* $NetBSD: dprintf.c,v 1.2 2013/03/05 16:29:09 christos Exp $ */ - -/*- - * Copyright (c) 2013 NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Christos Zoulas. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifdef HAVE_NBTOOL_CONFIG_H -#include "nbtool_config.h" -#endif - -#if !HAVE_DPRINTF -#include -#ifndef HAVE_NBTOOL_CONFIG_H -/* These headers are required, but included from nbtool_config.h */ -#include -#include -#include -#endif - -int -dprintf(int fd, const char *fmt, ...) -{ - FILE *fp; - int e; - va_list ap; - - if ((e = dup(fd)) == -1) - return -1; - - if ((fp = fdopen(e, "r+")) == NULL) { - (void)close(e); - return -1; - } - - va_start(ap, fmt); - e = vfprintf(fp, fmt, ap); - va_end(ap); - - (void)fclose(fp); - return e; -} - -#endif /* HAVE_DPRINTF */ - -#ifdef TEST -int -main(int argc, char *argv[]) -{ - dprintf(1, "Hello %s\n", "world"); - return 0; -} -#endif diff --git a/tools/compat/fgetln.c b/tools/compat/fgetln.c deleted file mode 100644 index a135be683..000000000 --- a/tools/compat/fgetln.c +++ /dev/null @@ -1,91 +0,0 @@ -/* $NetBSD: fgetln.c,v 1.12 2015/10/09 14:42:40 christos Exp $ */ - -/* - * Copyright (c) 2015 Joerg Jung - * - * 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 THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR 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. - */ - -/* - * portable fgetln() version - */ - -#ifdef HAVE_NBTOOL_CONFIG_H -#include "nbtool_config.h" -#endif - -#if !HAVE_FGETLN -#include -#ifndef HAVE_NBTOOL_CONFIG_H -/* These headers are required, but included from nbtool_config.h */ -#include -#include -#include -#endif - -char * -fgetln(FILE *fp, size_t *len) -{ - static char *buf = NULL; - static size_t bufsz = 0; - size_t r = 0; - char *p; - int c, e; - - if (!fp || !len) { - errno = EINVAL; - return NULL; - } - if (!buf) { - if (!(buf = calloc(1, BUFSIZ))) - return NULL; - bufsz = BUFSIZ; - } - while ((c = getc(fp)) != EOF) { - buf[r++] = c; - if (r == bufsz) { - /* - * Original uses reallocarray() but we don't have it - * in tools. - */ - if (!(p = realloc(buf, 2 * bufsz))) { - e = errno; - free(buf); - errno = e; - buf = NULL, bufsz = 0; - return NULL; - } - buf = p, bufsz = 2 * bufsz; - } - if (c == '\n') - break; - } - return (*len = r) ? buf : NULL; -} -#endif - - -#ifdef TEST -int -main(int argc, char *argv[]) -{ - char *p; - size_t len; - - while ((p = fgetln(stdin, &len)) != NULL) { - (void)printf("%zu %s", len, p); - free(p); - } - return 0; -} -#endif diff --git a/tools/compat/flock.c b/tools/compat/flock.c deleted file mode 100644 index 4a51ebe13..000000000 --- a/tools/compat/flock.c +++ /dev/null @@ -1,76 +0,0 @@ -/* $NetBSD: flock.c,v 1.6 2008/04/28 20:24:12 martin Exp $ */ - -/*- - * Copyright (c) 2001 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Todd Vierling. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -/* - * Emulate flock() with fcntl(), where available. - * Otherwise, don't do locking; just pretend success. - */ - -#include "nbtool_config.h" - -#if !HAVE_FLOCK -#include -#include - -int flock(int fd, int op) { - int rc = 0; - -#if defined(F_SETLK) && defined(F_SETLKW) - struct flock fl = {0}; - - switch (op & (LOCK_EX|LOCK_SH|LOCK_UN)) { - case LOCK_EX: - fl.l_type = F_WRLCK; - break; - - case LOCK_SH: - fl.l_type = F_RDLCK; - break; - - case LOCK_UN: - fl.l_type = F_UNLCK; - break; - - default: - errno = EINVAL; - return -1; - } - - fl.l_whence = SEEK_SET; - rc = fcntl(fd, op & LOCK_NB ? F_SETLK : F_SETLKW, &fl); - - if (rc && (errno == EAGAIN)) - errno = EWOULDBLOCK; -#endif - - return rc; -} -#endif diff --git a/tools/compat/fpurge.c b/tools/compat/fpurge.c deleted file mode 100644 index 0c859ce73..000000000 --- a/tools/compat/fpurge.c +++ /dev/null @@ -1,49 +0,0 @@ -/* $NetBSD: fpurge.c,v 1.1 2009/06/16 22:35:34 christos Exp $ */ - -/*- - * Copyright (c) 2009 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Christos Zoulas. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -/* - * Pretend... - */ - -#include "nbtool_config.h" - -#if !HAVE_FPURGE -#include -#include - -void -fpurge(FILE *fp) -{ -#if HAVE___FPURGE - __fpurge(fp); -#endif -} -#endif diff --git a/tools/compat/fs/msdosfs/bootsect.h b/tools/compat/fs/msdosfs/bootsect.h deleted file mode 100644 index 9abf7dc29..000000000 --- a/tools/compat/fs/msdosfs/bootsect.h +++ /dev/null @@ -1 +0,0 @@ -#include "../../../../sys/fs/msdosfs/bootsect.h" diff --git a/tools/compat/fs/msdosfs/bpb.h b/tools/compat/fs/msdosfs/bpb.h deleted file mode 100644 index 45eca10db..000000000 --- a/tools/compat/fs/msdosfs/bpb.h +++ /dev/null @@ -1 +0,0 @@ -#include "../../../../sys/fs/msdosfs/bpb.h" diff --git a/tools/compat/fs/msdosfs/denode.h b/tools/compat/fs/msdosfs/denode.h deleted file mode 100644 index fd4bb928c..000000000 --- a/tools/compat/fs/msdosfs/denode.h +++ /dev/null @@ -1 +0,0 @@ -#include "../../../../sys/fs/msdosfs/denode.h" diff --git a/tools/compat/fs/msdosfs/direntry.h b/tools/compat/fs/msdosfs/direntry.h deleted file mode 100644 index 96536de3b..000000000 --- a/tools/compat/fs/msdosfs/direntry.h +++ /dev/null @@ -1 +0,0 @@ -#include "../../../../sys/fs/msdosfs/direntry.h" diff --git a/tools/compat/fs/msdosfs/fat.h b/tools/compat/fs/msdosfs/fat.h deleted file mode 100644 index 62343bdce..000000000 --- a/tools/compat/fs/msdosfs/fat.h +++ /dev/null @@ -1 +0,0 @@ -#include "../../../../sys/fs/msdosfs/fat.h" diff --git a/tools/compat/fs/msdosfs/msdosfsmount.h b/tools/compat/fs/msdosfs/msdosfsmount.h deleted file mode 100644 index 41d890d7a..000000000 --- a/tools/compat/fs/msdosfs/msdosfsmount.h +++ /dev/null @@ -1 +0,0 @@ -#include "../../../../sys/fs/msdosfs/msdosfsmount.h" diff --git a/tools/compat/fts.h b/tools/compat/fts.h deleted file mode 100644 index b5f582637..000000000 --- a/tools/compat/fts.h +++ /dev/null @@ -1,5 +0,0 @@ -/* $NetBSD: fts.h,v 1.2 2003/10/27 00:12:43 lukem Exp $ */ - -/* We unconditionally use the NetBSD fts(3) in libnbcompat. */ -#include "nbtool_config.h" -#include "../../include/fts.h" diff --git a/tools/compat/getline.c b/tools/compat/getline.c deleted file mode 100644 index 1861533df..000000000 --- a/tools/compat/getline.c +++ /dev/null @@ -1,111 +0,0 @@ -/* $NetBSD: getline.c,v 1.2 2014/09/16 17:23:50 christos Exp $ */ - -/*- - * Copyright (c) 2011 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Christos Zoulas. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#ifdef HAVE_NBTOOL_CONFIG_H -#include "nbtool_config.h" -#endif - -#if !HAVE_GETLINE -#include - -#ifndef HAVE_NBTOOL_CONFIG_H -/* These headers are required, but included from nbtool_config.h */ -#include -#include -#include -#include -#endif - -ssize_t -getdelim(char **buf, size_t *bufsiz, int delimiter, FILE *fp) -{ - char *ptr, *eptr; - - - if (*buf == NULL || *bufsiz == 0) { - *bufsiz = BUFSIZ; - if ((*buf = malloc(*bufsiz)) == NULL) - return -1; - } - - for (ptr = *buf, eptr = *buf + *bufsiz;;) { - int c = fgetc(fp); - if (c == -1) { - if (feof(fp)) { - ssize_t diff = (ssize_t)(ptr - *buf); - if (diff != 0) { - *ptr = '\0'; - return diff; - } - } - return -1; - } - *ptr++ = c; - if (c == delimiter) { - *ptr = '\0'; - return ptr - *buf; - } - if (ptr + 2 >= eptr) { - char *nbuf; - size_t nbufsiz = *bufsiz * 2; - ssize_t d = ptr - *buf; - if ((nbuf = realloc(*buf, nbufsiz)) == NULL) - return -1; - *buf = nbuf; - *bufsiz = nbufsiz; - eptr = nbuf + nbufsiz; - ptr = nbuf + d; - } - } -} - -ssize_t -getline(char **buf, size_t *bufsiz, FILE *fp) -{ - return getdelim(buf, bufsiz, '\n', fp); -} - -#endif - -#ifdef TEST -int -main(int argc, char *argv[]) -{ - char *p = NULL; - ssize_t len; - size_t n = 0; - - while ((len = getline(&p, &n, stdin)) != -1) - (void)printf("%zd %s", len, p); - free(p); - return 0; -} -#endif diff --git a/tools/compat/getmode.c b/tools/compat/getmode.c deleted file mode 100644 index fdafbbe2c..000000000 --- a/tools/compat/getmode.c +++ /dev/null @@ -1,57 +0,0 @@ -/* $NetBSD: getmode.c,v 1.8 2008/11/04 23:31:32 dbj Exp $ */ - -/*- - * Copyright (c) 2001 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Todd Vierling. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include "nbtool_config.h" -#include -#include - -void * -setmode(const char *str) -{ - mode_t *mp = malloc(sizeof(mode_t)); - - *mp = strtoul(str, NULL, 8); - - return mp; -} - -mode_t -getmode(const void *mp, mode_t mode) -{ - mode_t m; - - m = *((const mode_t *)mp); - - mode &= ~ALLPERMS; /* input mode less RWX permissions */ - m &= ALLPERMS; /* new RWX permissions */ - - return m | mode; -} diff --git a/tools/compat/glob.h b/tools/compat/glob.h deleted file mode 100644 index 0d4ad95df..000000000 --- a/tools/compat/glob.h +++ /dev/null @@ -1,5 +0,0 @@ -/* $NetBSD: glob.h,v 1.2 2003/10/27 00:12:43 lukem Exp $ */ - -/* We unconditionally use the NetBSD glob(3) in libnbcompat. */ -#include "nbtool_config.h" -#include "../../include/glob.h" diff --git a/tools/compat/issetugid.c b/tools/compat/issetugid.c deleted file mode 100644 index 8e65f2a41..000000000 --- a/tools/compat/issetugid.c +++ /dev/null @@ -1,21 +0,0 @@ -/* $NetBSD: issetugid.c,v 1.2 2003/10/27 00:12:43 lukem Exp $ */ - -/* - * Written by Ben Harris, 2002 - * This file is in the Public Domain - */ - -#include "nbtool_config.h" - -#if !HAVE_ISSETUGID -int -issetugid(void) -{ - - /* - * Assume that anything linked against libnbcompat will be installed - * without special privileges. - */ - return 0; -} -#endif diff --git a/tools/compat/lchflags.c b/tools/compat/lchflags.c deleted file mode 100644 index 6628d4a5b..000000000 --- a/tools/compat/lchflags.c +++ /dev/null @@ -1,62 +0,0 @@ -/* $NetBSD: lchflags.c,v 1.4 2008/04/28 20:24:12 martin Exp $ */ - -/*- - * Copyright (c) 2002 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Luke Mewburn. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -/* Emulate lchflags(2), checking path with lstat(2) first to ensure that - * it's not a symlink, and then call chflags(2) */ - -#if !defined(__minix) && !defined(_LIBC) -#include "nbtool_config.h" -#else -#define HAVE_STRUCT_STAT_ST_FLAGS 1 -#endif /* !defined(__minix) && !defined(_LIBC) */ - -#if !HAVE_LCHFLAGS && HAVE_STRUCT_STAT_ST_FLAGS -#include -#include -#include - -int -lchflags(const char *path, u_long flags) -{ - struct stat psb; - - if (lstat(path, &psb) == -1) - return -1; - if (S_ISLNK(psb.st_mode)) { - return 0; - } -#if defined(__minix) - return 0; -#else - return (chflags(path, flags)); -#endif /* defined(__minix) */ -} -#endif diff --git a/tools/compat/lchmod.c b/tools/compat/lchmod.c deleted file mode 100644 index 3d11ed284..000000000 --- a/tools/compat/lchmod.c +++ /dev/null @@ -1,56 +0,0 @@ -/* $NetBSD: lchmod.c,v 1.4 2008/04/28 20:24:12 martin Exp $ */ - -/*- - * Copyright (c) 2002 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Luke Mewburn. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -/* Emulate lchmod(2), checking path with lstat(2) first to ensure that - * it's not a symlink, and then call chmod(2) */ - -#if !defined(__minix) && !defined(_LIBC) -#include "nbtool_config.h" -#endif /* !defined(__minix) && !defined(_LIBC) */ - -#if !HAVE_LCHMOD -#include -#include -#include - -int -lchmod(const char *path, mode_t mode) -{ - struct stat psb; - - if (lstat(path, &psb) == -1) - return -1; - if (S_ISLNK(psb.st_mode)) { - return 0; - } - return (chmod(path, mode)); -} -#endif diff --git a/tools/compat/lchown.c b/tools/compat/lchown.c deleted file mode 100644 index ddd17e8f9..000000000 --- a/tools/compat/lchown.c +++ /dev/null @@ -1,60 +0,0 @@ -/* $NetBSD: lchown.c,v 1.4 2008/04/28 20:24:12 martin Exp $ */ - -/*- - * Copyright (c) 2002 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Luke Mewburn. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -/* Emulate lchown(2), checking path with lstat(2) first to ensure that - * it's not a symlink, and then call chown(2) */ - -#if !defined(__minix) && !defined(_LIBC) -#include "nbtool_config.h" -#endif /* !defined(__minix) && !defined(_LIBC) */ - -#if !HAVE_LCHOWN -#include -#include -#include - -#if defined(__minix) && defined(__weak_alias) && defined(_LIBC) -__weak_alias(__posix_lchown, lchown) -#endif /* defined(__minix) && defined(__weak_alias) && defined(_LIBC) */ - -int -lchown(const char *path, uid_t owner, gid_t group) -{ - struct stat psb; - - if (lstat(path, &psb) == -1) - return -1; - if (S_ISLNK(psb.st_mode)) { - return 0; - } - return (chown(path, owner, group)); -} -#endif diff --git a/tools/compat/md2.h b/tools/compat/md2.h deleted file mode 100644 index 10b7c1aa6..000000000 --- a/tools/compat/md2.h +++ /dev/null @@ -1,5 +0,0 @@ -/* $NetBSD: md2.h,v 1.2 2003/10/27 00:12:43 lukem Exp $ */ - -/* We unconditionally use the NetBSD MD2 in libnbcompat. */ -#include "nbtool_config.h" -#include "../../include/md2.h" diff --git a/tools/compat/md4.h b/tools/compat/md4.h deleted file mode 100644 index 42ff5731a..000000000 --- a/tools/compat/md4.h +++ /dev/null @@ -1,5 +0,0 @@ -/* $NetBSD: md4.h,v 1.3 2003/10/27 00:12:43 lukem Exp $ */ - -/* We unconditionally use the NetBSD MD4 in libnbcompat. */ -#include "nbtool_config.h" -#include "../../sys/sys/md4.h" diff --git a/tools/compat/md5.h b/tools/compat/md5.h deleted file mode 100644 index fcc1b607e..000000000 --- a/tools/compat/md5.h +++ /dev/null @@ -1,5 +0,0 @@ -/* $NetBSD: md5.h,v 1.3 2003/10/27 00:12:43 lukem Exp $ */ - -/* We unconditionally use the NetBSD MD5 in libnbcompat. */ -#include "nbtool_config.h" -#include "../../sys/sys/md5.h" diff --git a/tools/compat/mpool.h b/tools/compat/mpool.h deleted file mode 100644 index e594c8546..000000000 --- a/tools/compat/mpool.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: mpool.h,v 1.1 2002/01/21 20:04:37 tv Exp $ */ - -#include "../../include/mpool.h" diff --git a/tools/compat/namespace.h b/tools/compat/namespace.h deleted file mode 100644 index 0e6a6f257..000000000 --- a/tools/compat/namespace.h +++ /dev/null @@ -1,14 +0,0 @@ -/* $NetBSD: namespace.h,v 1.3 2003/10/27 00:12:43 lukem Exp $ */ - -/* - * Mainly empty header to make reachover bits of libc happy. - * - * Since all reachover bits will include this, it's a good place to pull - * in nbtool_config.h. - */ -#include "nbtool_config.h" - -/* No aliases in reachover-based libc sources. */ -#undef __indr_reference -#undef __weak_alias -#undef __warn_references diff --git a/tools/compat/nbtool_config.h.in b/tools/compat/nbtool_config.h.in deleted file mode 100644 index 3ec362321..000000000 --- a/tools/compat/nbtool_config.h.in +++ /dev/null @@ -1,687 +0,0 @@ -/* nbtool_config.h.in. Generated automatically from configure.ac by autoheader. */ - -/* $NetBSD: nbtool_config.h.in,v 1.37 2015/07/26 14:01:53 kamil Exp $ */ - -#ifndef __NETBSD_NBTOOL_CONFIG_H__ -#define __NETBSD_NBTOOL_CONFIG_H__ - -/* Define to 1 if your `fparseln' function is broken. */ -#undef BROKEN_FPARSELN - -/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP - systems. This function is required for `alloca.c' support on those systems. - */ -#undef CRAY_STACKSEG_END - -/* Define if using `alloca.c'. */ -#undef C_ALLOCA - -/* Define if you have `alloca', as a function or macro. */ -#undef HAVE_ALLOCA - -/* Define if you have and it should be used (not on Ultrix). */ -#undef HAVE_ALLOCA_H - -/* Define if you have the header file. */ -#undef HAVE_ARPA_NAMESER_H - -/* Define if you have the `asnprintf' function. */ -#undef HAVE_ASNPRINTF - -/* Define if you have the `asprintf' function. */ -#undef HAVE_ASPRINTF - -/* Define if you have the header file. */ -#undef HAVE_ASSERT_H - -/* Define if you have the `atoll' function. */ -#undef HAVE_ATOLL - -/* Define if you have the `basename' function. */ -#undef HAVE_BASENAME - -/* Define if you have the header file. */ -#undef HAVE_CTYPE_H - -/* Define to 1 if you have the declaration of `be16dec', and to 0 if you - don't. */ -#undef HAVE_DECL_BE16DEC - -/* Define to 1 if you have the declaration of `be16enc', and to 0 if you - don't. */ -#undef HAVE_DECL_BE16ENC - -/* Define to 1 if you have the declaration of `be16toh', and to 0 if you - don't. */ -#undef HAVE_DECL_BE16TOH - -/* Define to 1 if you have the declaration of `be32dec', and to 0 if you - don't. */ -#undef HAVE_DECL_BE32DEC - -/* Define to 1 if you have the declaration of `be32enc', and to 0 if you - don't. */ -#undef HAVE_DECL_BE32ENC - -/* Define to 1 if you have the declaration of `be32toh', and to 0 if you - don't. */ -#undef HAVE_DECL_BE32TOH - -/* Define to 1 if you have the declaration of `be64dec', and to 0 if you - don't. */ -#undef HAVE_DECL_BE64DEC - -/* Define to 1 if you have the declaration of `be64enc', and to 0 if you - don't. */ -#undef HAVE_DECL_BE64ENC - -/* Define to 1 if you have the declaration of `be64toh', and to 0 if you - don't. */ -#undef HAVE_DECL_BE64TOH - -/* Define to 1 if you have the declaration of `bswap16', and to 0 if you - don't. */ -#undef HAVE_DECL_BSWAP16 - -/* Define to 1 if you have the declaration of `bswap32', and to 0 if you - don't. */ -#undef HAVE_DECL_BSWAP32 - -/* Define to 1 if you have the declaration of `bswap64', and to 0 if you - don't. */ -#undef HAVE_DECL_BSWAP64 - -/* Define to 1 if you have the declaration of `errc', and to 0 if you don't. - */ -#undef HAVE_DECL_ERRC - -/* Define to 1 if you have the declaration of `fstatvfs', and to 0 if you - don't. */ -#undef HAVE_DECL_FSTATVFS - -/* Define to 1 if you have the declaration of `gid_from_group', and to 0 if - you don't. */ -#undef HAVE_DECL_GID_FROM_GROUP - -/* Define to 1 if you have the declaration of `group_from_gid', and to 0 if - you don't. */ -#undef HAVE_DECL_GROUP_FROM_GID - -/* Define to 1 if you have the declaration of `htobe16', and to 0 if you - don't. */ -#undef HAVE_DECL_HTOBE16 - -/* Define to 1 if you have the declaration of `htobe32', and to 0 if you - don't. */ -#undef HAVE_DECL_HTOBE32 - -/* Define to 1 if you have the declaration of `htobe64', and to 0 if you - don't. */ -#undef HAVE_DECL_HTOBE64 - -/* Define to 1 if you have the declaration of `htole16', and to 0 if you - don't. */ -#undef HAVE_DECL_HTOLE16 - -/* Define to 1 if you have the declaration of `htole32', and to 0 if you - don't. */ -#undef HAVE_DECL_HTOLE32 - -/* Define to 1 if you have the declaration of `htole64', and to 0 if you - don't. */ -#undef HAVE_DECL_HTOLE64 - -/* Define to 1 if you have the declaration of `lchflags', and to 0 if you - don't. */ -#undef HAVE_DECL_LCHFLAGS - -/* Define to 1 if you have the declaration of `lchmod', and to 0 if you don't. - */ -#undef HAVE_DECL_LCHMOD - -/* Define to 1 if you have the declaration of `lchown', and to 0 if you don't. - */ -#undef HAVE_DECL_LCHOWN - -/* Define to 1 if you have the declaration of `le16dec', and to 0 if you - don't. */ -#undef HAVE_DECL_LE16DEC - -/* Define to 1 if you have the declaration of `le16enc', and to 0 if you - don't. */ -#undef HAVE_DECL_LE16ENC - -/* Define to 1 if you have the declaration of `le16toh', and to 0 if you - don't. */ -#undef HAVE_DECL_LE16TOH - -/* Define to 1 if you have the declaration of `le32dec', and to 0 if you - don't. */ -#undef HAVE_DECL_LE32DEC - -/* Define to 1 if you have the declaration of `le32enc', and to 0 if you - don't. */ -#undef HAVE_DECL_LE32ENC - -/* Define to 1 if you have the declaration of `le32toh', and to 0 if you - don't. */ -#undef HAVE_DECL_LE32TOH - -/* Define to 1 if you have the declaration of `le64dec', and to 0 if you - don't. */ -#undef HAVE_DECL_LE64DEC - -/* Define to 1 if you have the declaration of `le64enc', and to 0 if you - don't. */ -#undef HAVE_DECL_LE64ENC - -/* Define to 1 if you have the declaration of `le64toh', and to 0 if you - don't. */ -#undef HAVE_DECL_LE64TOH - -/* Define to 1 if you have the declaration of `optind', and to 0 if you don't. - */ -#undef HAVE_DECL_OPTIND - -/* Define to 1 if you have the declaration of `optreset', and to 0 if you - don't. */ -#undef HAVE_DECL_OPTRESET - -/* Define to 1 if you have the declaration of `pwcache_groupdb', and to 0 if - you don't. */ -#undef HAVE_DECL_PWCACHE_GROUPDB - -/* Define to 1 if you have the declaration of `pwcache_userdb', and to 0 if - you don't. */ -#undef HAVE_DECL_PWCACHE_USERDB - -/* Define to 1 if you have the declaration of `setgroupent', and to 0 if you - don't. */ -#undef HAVE_DECL_SETGROUPENT - -/* Define to 1 if you have the declaration of `setpassent', and to 0 if you - don't. */ -#undef HAVE_DECL_SETPASSENT - -/* Define to 1 if you have the declaration of `strndup', and to 0 if you - don't. */ -#undef HAVE_DECL_STRNDUP - -/* Define to 1 if you have the declaration of `strnlen', and to 0 if you - don't. */ -#undef HAVE_DECL_STRNLEN - -/* Define to 1 if you have the declaration of `strsuftoll', and to 0 if you - don't. */ -#undef HAVE_DECL_STRSUFTOLL - -/* Define to 1 if you have the declaration of `sys_signame', and to 0 if you - don't. */ -#undef HAVE_DECL_SYS_SIGNAME - -/* Define to 1 if you have the declaration of `uid_from_user', and to 0 if you - don't. */ -#undef HAVE_DECL_UID_FROM_USER - -/* Define to 1 if you have the declaration of `user_from_uid', and to 0 if you - don't. */ -#undef HAVE_DECL_USER_FROM_UID - -/* Define to 1 if you have the declaration of `verrc', and to 0 if you don't. - */ -#undef HAVE_DECL_VERRC - -/* Define to 1 if you have the declaration of `vwarnc', and to 0 if you don't. - */ -#undef HAVE_DECL_VWARNC - -/* Define to 1 if you have the declaration of `warnc', and to 0 if you don't. - */ -#undef HAVE_DECL_WARNC - -/* Define if you have the `devname' function. */ -#undef HAVE_DEVNAME - -/* Define if you have the header file, and it defines `DIR'. */ -#undef HAVE_DIRENT_H - -/* Define if you have the `dirfd' function. */ -#undef HAVE_DIRFD - -/* Define if you have the `dirname' function. */ -#undef HAVE_DIRNAME - -/* Define if `dd_fd' is member of `DIR'. */ -#undef HAVE_DIR_DD_FD - -/* Define if `__dd_fd' is member of `DIR'. */ -#undef HAVE_DIR___DD_FD - -/* Define if you have the `dprintf' function. */ -#undef HAVE_DPRINTF - -/* Define if you have the header file. */ -#undef HAVE_ERRNO_H - -/* Define if you have the header file. */ -#undef HAVE_ERR_H - -/* Define if you have the `esetfunc' function. */ -#undef HAVE_ESETFUNC - -/* Define if you have the header file. */ -#undef HAVE_FCNTL_H - -/* Define if you have the header file. */ -#undef HAVE_FEATURES_H - -/* Define if you have the `fgetln' function. */ -#undef HAVE_FGETLN - -/* Define if you have the `flock' function. */ -#undef HAVE_FLOCK - -/* Define if you have the `fparseln' function. */ -#undef HAVE_FPARSELN - -/* Define if you have the `fpurge' function. */ -#undef HAVE_FPURGE - -/* Define if you have the `futimes' function. */ -#undef HAVE_FUTIMES - -/* Define if you have the `getline' function. */ -#undef HAVE_GETLINE - -/* Define if you have the `getopt' function. */ -#undef HAVE_GETOPT - -/* Define if you have the header file. */ -#undef HAVE_GETOPT_H - -/* Define if you have the `getopt_long' function. */ -#undef HAVE_GETOPT_LONG - -/* Define if you have the `gid_from_group' function. */ -#undef HAVE_GID_FROM_GROUP - -/* Define if you have the `group_from_gid' function. */ -#undef HAVE_GROUP_FROM_GID - -/* Define if you have the header file. */ -#undef HAVE_GRP_H - -/* Define if you have the `heapsort' function. */ -#undef HAVE_HEAPSORT - -/* Define if the system has the type `id_t'. */ -#undef HAVE_ID_T - -/* Define if you have the header file. */ -#undef HAVE_INTTYPES_H - -/* Define if you have the `isblank' function. */ -#undef HAVE_ISBLANK - -/* Define if you have the `issetugid' function. */ -#undef HAVE_ISSETUGID - -/* Define if you have the `lchflags' function. */ -#undef HAVE_LCHFLAGS - -/* Define if you have the `lchmod' function. */ -#undef HAVE_LCHMOD - -/* Define if you have the `lchown' function. */ -#undef HAVE_LCHOWN - -/* Define if you have the header file. */ -#undef HAVE_LIBGEN_H - -/* Define if you have the `regex' library (-lregex). */ -#undef HAVE_LIBREGEX - -/* Define if you have the `rt' library (-lrt). */ -#undef HAVE_LIBRT - -/* Define if you have the `z' library (-lz). */ -#undef HAVE_LIBZ - -/* Define if you have the header file. */ -#undef HAVE_LIMITS_H - -/* Define if you have the header file. */ -#undef HAVE_LOCALE_H - -/* Define if the system has the type `long long'. */ -#undef HAVE_LONG_LONG - -/* Define if you have the `lutimes' function. */ -#undef HAVE_LUTIMES - -/* Define if you have the header file. */ -#undef HAVE_MACHINE_BSWAP_H - -/* Define if you have the header file. */ -#undef HAVE_MACHINE_ENDIAN_H - -/* Define if you have the header file. */ -#undef HAVE_MALLOC_H - -/* Define if you have the header file. */ -#undef HAVE_MEMORY_H - -/* Define if you have the `mkdtemp' function. */ -#undef HAVE_MKDTEMP - -/* Define if you have the `mkstemp' function. */ -#undef HAVE_MKSTEMP - -/* Define if you have the header file, and it defines `DIR'. */ -#undef HAVE_NDIR_H - -/* Define if you have the header file. */ -#undef HAVE_NETCONFIG_H - -/* Define if you have the header file. */ -#undef HAVE_NETDB_H - -/* Define if you have the header file. */ -#undef HAVE_PATHS_H - -/* Define if you have the `poll' function. */ -#undef HAVE_POLL - -/* Define if you have the `pread' function. */ -#undef HAVE_PREAD - -/* Define if you have the header file. */ -#undef HAVE_PTHREAD_H - -/* Define if you have the `putc_unlocked' function. */ -#undef HAVE_PUTC_UNLOCKED - -/* Define if you have the `pwcache_groupdb' function. */ -#undef HAVE_PWCACHE_GROUPDB - -/* Define if you have the `pwcache_userdb' function. */ -#undef HAVE_PWCACHE_USERDB - -/* Define if you have the header file. */ -#undef HAVE_PWD_H - -/* Define if you have the `pwrite' function. */ -#undef HAVE_PWRITE - -/* Define if you have the `raise_default_signal' function. */ -#undef HAVE_RAISE_DEFAULT_SIGNAL - -/* Define if you have the `random' function. */ -#undef HAVE_RANDOM - -/* Define if you have the `reallocarr' function. */ -#undef HAVE_REALLOCARR - -/* Define if you have the header file. */ -#undef HAVE_RESOLV_H - -/* Define if you have the header file. */ -#undef HAVE_RPC_TYPES_H - -/* Define if you have the `setenv' function. */ -#undef HAVE_SETENV - -/* Define if you have the `setgroupent' function. */ -#undef HAVE_SETGROUPENT - -/* Define if you have the `setpassent' function. */ -#undef HAVE_SETPASSENT - -/* Define if you have the `setprogname' function. */ -#undef HAVE_SETPROGNAME - -/* Define if you have the header file. */ -#undef HAVE_SIGNAL_H - -/* Define if you have the `snprintb_m' function. */ -#undef HAVE_SNPRINTB_M - -/* Define if you have the `snprintf' function. */ -#undef HAVE_SNPRINTF - -/* Define if you have the socklen_t type. */ -#undef HAVE_SOCKLEN_T - -/* Define if you have the header file. */ -#undef HAVE_STDARG_H - -/* Define if you have the header file. */ -#undef HAVE_STDDEF_H - -/* Define if you have the header file. */ -#undef HAVE_STDINT_H - -/* Define if you have the header file. */ -#undef HAVE_STDIO_H - -/* Define if you have the header file. */ -#undef HAVE_STDLIB_H - -/* Define if you have the header file. */ -#undef HAVE_STRINGS_H - -/* Define if you have the header file. */ -#undef HAVE_STRING_H - -/* Define if you have the `strlcat' function. */ -#undef HAVE_STRLCAT - -/* Define if you have the `strlcpy' function. */ -#undef HAVE_STRLCPY - -/* Define if you have the `strmode' function. */ -#undef HAVE_STRMODE - -/* Define if you have the `strndup' function. */ -#undef HAVE_STRNDUP - -/* Define if you have the `strnlen' function. */ -#undef HAVE_STRNLEN - -/* Define if you have the `strsep' function. */ -#undef HAVE_STRSEP - -/* Define if you have the `strsuftoll' function. */ -#undef HAVE_STRSUFTOLL - -/* Define if you have the `strtoi' function. */ -#undef HAVE_STRTOI - -/* Define if you have the `strtoll' function. */ -#undef HAVE_STRTOLL - -/* Define if you have the `strtou' function. */ -#undef HAVE_STRTOU - -/* Define if `d_namlen' is member of `struct dirent'. */ -#undef HAVE_STRUCT_DIRENT_D_NAMLEN - -/* Define if `f_iosize' is member of `struct statvfs'. */ -#undef HAVE_STRUCT_STATVFS_F_IOSIZE - -/* Define if `st_atim' is member of `struct stat'. */ -#undef HAVE_STRUCT_STAT_ST_ATIM - -/* Define if `st_birthtime' is member of `struct stat'. */ -#undef HAVE_STRUCT_STAT_ST_BIRTHTIME - -/* Define if `st_birthtimensec' is member of `struct stat'. */ -#undef HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC - -/* Define if `st_flags' is member of `struct stat'. */ -#undef HAVE_STRUCT_STAT_ST_FLAGS - -/* Define if `st_gen' is member of `struct stat'. */ -#undef HAVE_STRUCT_STAT_ST_GEN - -/* Define if `st_mtimensec' is member of `struct stat'. */ -#undef HAVE_STRUCT_STAT_ST_MTIMENSEC - -/* Define if `tm_gmtoff' is member of `struct tm'. */ -#undef HAVE_STRUCT_TM_TM_GMTOFF - -/* Define if you have the header file. */ -#undef HAVE_SYS_BSWAP_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_CDEFS_H - -/* Define if you have the header file, and it defines `DIR'. */ -#undef HAVE_SYS_DIR_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_ENDIAN_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_FEATURETEST_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_IOCTL_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_MMAN_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_MTIO_H - -/* Define if you have the header file, and it defines `DIR'. */ -#undef HAVE_SYS_NDIR_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_PARAM_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_POLL_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_SOCKET_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_STAT_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_SYSLIMITS_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_SYSMACROS_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_TIME_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_UTSNAME_H - -/* Define if you have the header file. */ -#undef HAVE_SYS_WAIT_H - -/* Define if you have the header file. */ -#undef HAVE_TERMIOS_H - -/* Define if you have the `uid_from_user' function. */ -#undef HAVE_UID_FROM_USER - -/* Define if you have the header file. */ -#undef HAVE_UNISTD_H - -/* Define if you have the `user_from_uid' function. */ -#undef HAVE_USER_FROM_UID - -/* Define if you have the header file. */ -#undef HAVE_UTIL_H - -/* Define if the system has the type `u_char'. */ -#undef HAVE_U_CHAR - -/* Define if the system has the type `u_int'. */ -#undef HAVE_U_INT - -/* Define if the system has the type `u_long'. */ -#undef HAVE_U_LONG - -/* Define if the system has the type `u_quad_t'. */ -#undef HAVE_U_QUAD_T - -/* Define if the system has the type `u_short'. */ -#undef HAVE_U_SHORT - -/* Define if you have the `vasnprintf' function. */ -#undef HAVE_VASNPRINTF - -/* Define if you have the `vasprintf' function. */ -#undef HAVE_VASPRINTF - -/* Define if you have the `vsnprintf' function. */ -#undef HAVE_VSNPRINTF - -/* Define if you have the `__fpurge' function. */ -#undef HAVE___FPURGE - -/* Path to sh(1). */ -#undef PATH_BSHELL - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown */ -#undef STACK_DIRECTION - -/* Define if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define if your processor stores words with the most significant byte first - (like Motorola and SPARC, unlike Intel and VAX). */ -#undef WORDS_BIGENDIAN - -/* Define for NetBSD headers. */ -#undef _POSIX_C_SOURCE - -/* Define for NetBSD headers. */ -#undef _POSIX_SOURCE - -/* Define for NetBSD headers. */ -#undef _XOPEN_SOURCE - -/* Define to `unsigned' if does not define. */ -#undef size_t - -/* Define if you have uint16_t, but not u_int16_t. */ -#undef u_int16_t - -/* Define if you have uint32_t, but not u_int32_t. */ -#undef u_int32_t - -/* Define if you have uint64_t, but not u_int64_t. */ -#undef u_int64_t - -/* Define if you have uint8_t, but not u_int8_t. */ -#undef u_int8_t - -/* Define if you have u_int16_t, but not uint16_t. */ -#undef uint16_t - -/* Define if you have u_int32_t, but not uint32_t. */ -#undef uint32_t - -/* Define if you have u_int64_t, but not uint64_t. */ -#undef uint64_t - -/* Define if you have u_int8_t, but not uint8_t. */ -#undef uint8_t - -#include "compat_defs.h" -#endif /* !__NETBSD_NBTOOL_CONFIG_H__ */ diff --git a/tools/compat/ndbm.h b/tools/compat/ndbm.h deleted file mode 100644 index d2922bdc7..000000000 --- a/tools/compat/ndbm.h +++ /dev/null @@ -1,7 +0,0 @@ -/* $NetBSD: ndbm.h,v 1.1 2010/02/03 15:34:44 roy Exp $ */ - -#include "nbtool_config.h" -#ifndef DBM_SUFFIX -#define DBM_SUFFIX ".db" -#endif -#include "../../include/ndbm.h" diff --git a/tools/compat/nl_types.h b/tools/compat/nl_types.h deleted file mode 100644 index 0da4e5184..000000000 --- a/tools/compat/nl_types.h +++ /dev/null @@ -1,17 +0,0 @@ -/* $NetBSD: nl_types.h,v 1.3 2014/11/12 15:08:52 joerg Exp $ */ - -#if defined(_NLS_PRIVATE) - -/* #if defined(__minix) */ -/* defines __format_arg, but on some other platforms it doesn't. - * includes because it needs __format_arg. As it might - * not be defined, we do it here as a work around. */ -#ifndef __format_arg -#define __format_arg(fmtarg) __attribute__((__format_arg__ (fmtarg))) -#endif -/* #endif defined(__minix) */ - -#include "../../include/nl_types.h" -#elif defined(__GNUC__) -#include_next -#endif diff --git a/tools/compat/pread.c b/tools/compat/pread.c deleted file mode 100644 index 9266cf1fc..000000000 --- a/tools/compat/pread.c +++ /dev/null @@ -1,55 +0,0 @@ -/* $NetBSD: pread.c,v 1.4 2008/04/28 20:24:12 martin Exp $ */ - -/*- - * Copyright (c) 2001 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Todd Vierling. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -/* Emulate pread() with lseek()/read()/lseek(). Not thread-safe, of course. */ - -#include "nbtool_config.h" - -#if !HAVE_PREAD -#include - -ssize_t pread(int d, void *buf, size_t nbytes, off_t offset) { - off_t oldoff = lseek(d, offset, SEEK_SET); - int olderrno; - ssize_t nr; - - if (oldoff < 0) - return -1; - - nr = read(d, buf, nbytes); - - olderrno = errno; - lseek(d, oldoff, SEEK_SET); - errno = olderrno; - - return nr; -} -#endif diff --git a/tools/compat/putc_unlocked.c b/tools/compat/putc_unlocked.c deleted file mode 100644 index b158025b8..000000000 --- a/tools/compat/putc_unlocked.c +++ /dev/null @@ -1,47 +0,0 @@ -/* $NetBSD: putc_unlocked.c,v 1.4 2008/04/28 20:24:12 martin Exp $ */ - -/*- - * Copyright (c) 2003 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Jason R. Thorpe. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -/* Emulate putc_unlocked(). */ - -#include "nbtool_config.h" - -#if !HAVE_PUTC_UNLOCKED -#include - -#ifndef putc_unlocked -int -putc_unlocked(int c, FILE *stream) -{ - - putc(c, stream); -} -#endif /* putc_unlocked */ -#endif diff --git a/tools/compat/pwrite.c b/tools/compat/pwrite.c deleted file mode 100644 index 0aa2cb0a9..000000000 --- a/tools/compat/pwrite.c +++ /dev/null @@ -1,55 +0,0 @@ -/* $NetBSD: pwrite.c,v 1.4 2008/04/28 20:24:12 martin Exp $ */ - -/*- - * Copyright (c) 2001 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Todd Vierling. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -/* Emulate pwrite() with lseek()/write()/lseek(). Not thread-safe, of course. */ - -#include "nbtool_config.h" - -#if !HAVE_PWRITE -#include - -ssize_t pwrite(int d, const void *buf, size_t nbytes, off_t offset) { - off_t oldoff = lseek(d, offset, SEEK_SET); - int olderrno; - ssize_t nw; - - if (oldoff < 0) - return -1; - - nw = write(d, buf, nbytes); - - olderrno = errno; - lseek(d, oldoff, SEEK_SET); - errno = olderrno; - - return nw; -} -#endif diff --git a/tools/compat/rmd160.h b/tools/compat/rmd160.h deleted file mode 100644 index b33b69b99..000000000 --- a/tools/compat/rmd160.h +++ /dev/null @@ -1,5 +0,0 @@ -/* $NetBSD: rmd160.h,v 1.4 2013/02/07 20:30:29 christos Exp $ */ - -/* We unconditionally use the NetBSD rmd160 in libnbcompat. */ -#include "nbtool_config.h" -#include "../../sys/sys/rmd160.h" diff --git a/tools/compat/setenv.c b/tools/compat/setenv.c deleted file mode 100644 index 2b3acdc93..000000000 --- a/tools/compat/setenv.c +++ /dev/null @@ -1,50 +0,0 @@ -/* $NetBSD: setenv.c,v 1.4 2008/04/28 20:24:12 martin Exp $ */ - -/*- - * Copyright (c) 2001 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Todd Vierling. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -/* Emulate setenv() with getenv()/malloc()/putenv(). */ - -#include "nbtool_config.h" - -#if !HAVE_SETENV -int setenv(const char *name, const char *value, int overwrite) { - char *buf; - - if (!overwrite && getenv(name)) - return 0; - - /* Include sizes plus '=' and trailing null. */ - if (!(buf = malloc(strlen(name) + strlen(value) + 2))) - return -1; - - sprintf(buf, "%s=%s", name, value); - putenv(buf); -} -#endif diff --git a/tools/compat/setgroupent.c b/tools/compat/setgroupent.c deleted file mode 100644 index dbbb2eff6..000000000 --- a/tools/compat/setgroupent.c +++ /dev/null @@ -1,12 +0,0 @@ -/* $NetBSD: setgroupent.c,v 1.4 2003/10/27 00:12:43 lukem Exp $ */ - -#include "nbtool_config.h" - -#if !HAVE_SETGROUPENT || !HAVE_DECL_SETGROUPENT -#include - -int setgroupent(int stayopen) { - setgrent(); - return 1; -} -#endif diff --git a/tools/compat/setpassent.c b/tools/compat/setpassent.c deleted file mode 100644 index d7c548354..000000000 --- a/tools/compat/setpassent.c +++ /dev/null @@ -1,12 +0,0 @@ -/* $NetBSD: setpassent.c,v 1.4 2003/10/27 00:12:43 lukem Exp $ */ - -#include "nbtool_config.h" - -#if !HAVE_SETPASSENT || !HAVE_DECL_SETPASSENT -#include - -int setpassent(int stayopen) { - setpwent(); - return 1; -} -#endif diff --git a/tools/compat/setprogname.c b/tools/compat/setprogname.c deleted file mode 100644 index 1fc29eb42..000000000 --- a/tools/compat/setprogname.c +++ /dev/null @@ -1,54 +0,0 @@ -/* $NetBSD: setprogname.c,v 1.5 2008/04/28 20:24:12 martin Exp $ */ - -/*- - * Copyright (c) 2001 The NetBSD Foundation, Inc. - * All rights reserved. - * - * This code is derived from software contributed to The NetBSD Foundation - * by Todd Vierling. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS - * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include "nbtool_config.h" - -#if !HAVE_SETPROGNAME -#include - -static const char *__progname = "command line"; - -void -setprogname(const char *progname) -{ - __progname = strrchr(progname, '/'); - if (__progname == NULL) - __progname = progname; - else - __progname++; -} - -const char * -getprogname(void) -{ - return __progname; -} -#endif diff --git a/tools/compat/sha1.h b/tools/compat/sha1.h deleted file mode 100644 index 00fad5176..000000000 --- a/tools/compat/sha1.h +++ /dev/null @@ -1,5 +0,0 @@ -/* $NetBSD: sha1.h,v 1.5 2013/02/07 20:30:29 christos Exp $ */ - -/* We unconditionally use the NetBSD sha1 in libnbcompat. */ -#include "nbtool_config.h" -#include "../../sys/sys/sha1.h" diff --git a/tools/compat/sha2.h b/tools/compat/sha2.h deleted file mode 100644 index ee6a828d1..000000000 --- a/tools/compat/sha2.h +++ /dev/null @@ -1,5 +0,0 @@ -/* $NetBSD: sha2.h,v 1.2 2013/02/07 20:31:52 christos Exp $ */ - -/* We unconditionally use the NetBSD sha2 in libnbcompat. */ -#include "nbtool_config.h" -#include "../../sys/sys/sha2.h" diff --git a/tools/compat/snprintf.c b/tools/compat/snprintf.c deleted file mode 100644 index f9c9e4307..000000000 --- a/tools/compat/snprintf.c +++ /dev/null @@ -1,663 +0,0 @@ -/* - * Copyright (c) 1995-2001 Kungliga Tekniska Högskolan - * (Royal Institute of Technology, Stockholm, Sweden). - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * 3. Neither the name of the Institute nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ - -/* From heimdal lib/roken/snprintf.c. */ - -#if HAVE_NBTOOL_CONFIG_H -#include "nbtool_config.h" -#endif - -#if 0 -RCSID("$Id: snprintf.c,v 1.3 2003/10/27 00:12:43 lukem Exp $"); -#endif -#include -#include -#include -#include -#include -#if 0 -#include -#endif - -#undef min -#define min(a,b) ((a) < (b) ? (a) : (b)) -#undef max -#define max(a,b) ((a) > (b) ? (a) : (b)) - -enum format_flags { - minus_flag = 1, - plus_flag = 2, - space_flag = 4, - alternate_flag = 8, - zero_flag = 16 -}; - -/* - * Common state - */ - -struct state { - unsigned char *str; - unsigned char *s; - unsigned char *theend; - size_t sz; - size_t max_sz; - void (*append_char)(struct state *, unsigned char); - /* XXX - methods */ -}; - -#if TEST_SNPRINTF -#include "snprintf-test.h" -#endif /* TEST_SNPRINTF */ - -#if !defined(HAVE_VSNPRINTF) || defined(TEST_SNPRINTF) -static int -sn_reserve (struct state *state, size_t n) -{ - return state->s + n > state->theend; -} - -static void -sn_append_char (struct state *state, unsigned char c) -{ - if (!sn_reserve (state, 1)) - *state->s++ = c; -} -#endif - -static int -as_reserve (struct state *state, size_t n) -{ - if (state->s + n > state->theend) { - int off = state->s - state->str; - unsigned char *tmp; - - if (state->max_sz && state->sz >= state->max_sz) - return 1; - - state->sz = max(state->sz * 2, state->sz + n); - if (state->max_sz) - state->sz = min(state->sz, state->max_sz); - tmp = realloc (state->str, state->sz); - if (tmp == NULL) - return 1; - state->str = tmp; - state->s = state->str + off; - state->theend = state->str + state->sz - 1; - } - return 0; -} - -static void -as_append_char (struct state *state, unsigned char c) -{ - if(!as_reserve (state, 1)) - *state->s++ = c; -} - -/* longest integer types */ - -#ifdef HAVE_LONG_LONG -typedef unsigned long long u_longest; -typedef long long longest; -#else -typedef unsigned long u_longest; -typedef long longest; -#endif - -/* - * is # supposed to do anything? - */ - -static int -use_alternative (int flags, u_longest num, unsigned base) -{ - return flags & alternate_flag && (base == 16 || base == 8) && num != 0; -} - -static int -append_number(struct state *state, - u_longest num, unsigned base, char *rep, - int width, int prec, int flags, int minusp) -{ - int len = 0; - int i; - u_longest n = num; - - /* given precision, ignore zero flag */ - if(prec != -1) - flags &= ~zero_flag; - else - prec = 1; - /* zero value with zero precision -> "" */ - if(prec == 0 && n == 0) - return 0; - do{ - (*state->append_char)(state, rep[n % base]); - ++len; - n /= base; - } while(n); - prec -= len; - /* pad with prec zeros */ - while(prec-- > 0){ - (*state->append_char)(state, '0'); - ++len; - } - /* add length of alternate prefix (added later) to len */ - if(use_alternative(flags, num, base)) - len += base / 8; - /* pad with zeros */ - if(flags & zero_flag){ - width -= len; - if(minusp || (flags & space_flag) || (flags & plus_flag)) - width--; - while(width-- > 0){ - (*state->append_char)(state, '0'); - len++; - } - } - /* add alternate prefix */ - if(use_alternative(flags, num, base)){ - if(base == 16) - (*state->append_char)(state, rep[10] + 23); /* XXX */ - (*state->append_char)(state, '0'); - } - /* add sign */ - if(minusp){ - (*state->append_char)(state, '-'); - ++len; - } else if(flags & plus_flag) { - (*state->append_char)(state, '+'); - ++len; - } else if(flags & space_flag) { - (*state->append_char)(state, ' '); - ++len; - } - if(flags & minus_flag) - /* swap before padding with spaces */ - for(i = 0; i < len / 2; i++){ - char c = state->s[-i-1]; - state->s[-i-1] = state->s[-len+i]; - state->s[-len+i] = c; - } - width -= len; - while(width-- > 0){ - (*state->append_char)(state, ' '); - ++len; - } - if(!(flags & minus_flag)) - /* swap after padding with spaces */ - for(i = 0; i < len / 2; i++){ - char c = state->s[-i-1]; - state->s[-i-1] = state->s[-len+i]; - state->s[-len+i] = c; - } - return len; -} - -/* - * return length - */ - -static int -append_string (struct state *state, - const unsigned char *arg, - int width, - int prec, - int flags) -{ - int len = 0; - - if(arg == NULL) - arg = (const unsigned char*)"(null)"; - - if(prec != -1) - width -= prec; - else - width -= strlen((const char *)arg); - if(!(flags & minus_flag)) - while(width-- > 0) { - (*state->append_char) (state, ' '); - ++len; - } - if (prec != -1) { - while (*arg && prec--) { - (*state->append_char) (state, *arg++); - ++len; - } - } else { - while (*arg) { - (*state->append_char) (state, *arg++); - ++len; - } - } - if(flags & minus_flag) - while(width-- > 0) { - (*state->append_char) (state, ' '); - ++len; - } - return len; -} - -static int -append_char(struct state *state, - unsigned char arg, - int width, - int flags) -{ - int len = 0; - - while(!(flags & minus_flag) && --width > 0) { - (*state->append_char) (state, ' ') ; - ++len; - } - (*state->append_char) (state, arg); - ++len; - while((flags & minus_flag) && --width > 0) { - (*state->append_char) (state, ' '); - ++len; - } - return 0; -} - -/* - * This can't be made into a function... - */ - -#ifdef HAVE_LONG_LONG - -#define PARSE_INT_FORMAT(res, arg, unsig) \ -if (long_long_flag) \ - res = (unsig long long)va_arg(arg, unsig long long); \ -else if (long_flag) \ - res = (unsig long)va_arg(arg, unsig long); \ -else if (short_flag) \ - res = (unsig short)va_arg(arg, unsig int); \ -else \ - res = (unsig int)va_arg(arg, unsig int) - -#else - -#define PARSE_INT_FORMAT(res, arg, unsig) \ -if (long_flag) \ - res = (unsig long)va_arg(arg, unsig long); \ -else if (short_flag) \ - res = (unsig short)va_arg(arg, unsig int); \ -else \ - res = (unsig int)va_arg(arg, unsig int) - -#endif - -/* - * zyxprintf - return length, as snprintf - */ - -static int -xyzprintf (struct state *state, const char *char_format, va_list ap) -{ - const unsigned char *format = (const unsigned char *)char_format; - unsigned char c; - int len = 0; - - while((c = *format++)) { - if (c == '%') { - int flags = 0; - int width = 0; - int prec = -1; - int long_long_flag = 0; - int long_flag = 0; - int short_flag = 0; - - /* flags */ - while((c = *format++)){ - if(c == '-') - flags |= minus_flag; - else if(c == '+') - flags |= plus_flag; - else if(c == ' ') - flags |= space_flag; - else if(c == '#') - flags |= alternate_flag; - else if(c == '0') - flags |= zero_flag; - else - break; - } - - if((flags & space_flag) && (flags & plus_flag)) - flags ^= space_flag; - - if((flags & minus_flag) && (flags & zero_flag)) - flags ^= zero_flag; - - /* width */ - if (isdigit(c)) - do { - width = width * 10 + c - '0'; - c = *format++; - } while(isdigit(c)); - else if(c == '*') { - width = va_arg(ap, int); - c = *format++; - } - - /* precision */ - if (c == '.') { - prec = 0; - c = *format++; - if (isdigit(c)) - do { - prec = prec * 10 + c - '0'; - c = *format++; - } while(isdigit(c)); - else if (c == '*') { - prec = va_arg(ap, int); - c = *format++; - } - } - - /* size */ - - if (c == 'h') { - short_flag = 1; - c = *format++; - } else if (c == 'l') { - long_flag = 1; - c = *format++; - if (c == 'l') { - long_long_flag = 1; - c = *format++; - } - } - - switch (c) { - case 'c' : - append_char(state, va_arg(ap, int), width, flags); - ++len; - break; - case 's' : - len += append_string(state, - va_arg(ap, unsigned char*), - width, - prec, - flags); - break; - case 'd' : - case 'i' : { - longest arg; - u_longest num; - int minusp = 0; - - PARSE_INT_FORMAT(arg, ap, signed); - - if (arg < 0) { - minusp = 1; - num = -arg; - } else - num = arg; - - len += append_number (state, num, 10, "0123456789", - width, prec, flags, minusp); - break; - } - case 'u' : { - u_longest arg; - - PARSE_INT_FORMAT(arg, ap, unsigned); - - len += append_number (state, arg, 10, "0123456789", - width, prec, flags, 0); - break; - } - case 'o' : { - u_longest arg; - - PARSE_INT_FORMAT(arg, ap, unsigned); - - len += append_number (state, arg, 010, "01234567", - width, prec, flags, 0); - break; - } - case 'x' : { - u_longest arg; - - PARSE_INT_FORMAT(arg, ap, unsigned); - - len += append_number (state, arg, 0x10, "0123456789abcdef", - width, prec, flags, 0); - break; - } - case 'X' :{ - u_longest arg; - - PARSE_INT_FORMAT(arg, ap, unsigned); - - len += append_number (state, arg, 0x10, "0123456789ABCDEF", - width, prec, flags, 0); - break; - } - case 'p' : { - unsigned long arg = (unsigned long)va_arg(ap, void*); - - len += append_number (state, arg, 0x10, "0123456789ABCDEF", - width, prec, flags, 0); - break; - } - case 'n' : { - int *arg = va_arg(ap, int*); - *arg = state->s - state->str; - break; - } - case '\0' : - --format; - /* FALLTHROUGH */ - case '%' : - (*state->append_char)(state, c); - ++len; - break; - default : - (*state->append_char)(state, '%'); - (*state->append_char)(state, c); - len += 2; - break; - } - } else { - (*state->append_char) (state, c); - ++len; - } - } - return len; -} - -#if !defined(HAVE_SNPRINTF) || defined(TEST_SNPRINTF) -int -snprintf (char *str, size_t sz, const char *format, ...) -{ - va_list args; - int ret; - - va_start(args, format); - ret = vsnprintf (str, sz, format, args); - va_end(args); - -#ifdef PARANOIA - { - int ret2; - char *tmp; - - tmp = malloc (sz); - if (tmp == NULL) - abort (); - - va_start(args, format); - ret2 = vsprintf (tmp, format, args); - va_end(args); - if (ret != ret2 || strcmp(str, tmp)) - abort (); - free (tmp); - } -#endif - - return ret; -} -#endif - -#if !defined(HAVE_ASPRINTF) || defined(TEST_SNPRINTF) -int -asprintf (char **ret, const char *format, ...) -{ - va_list args; - int val; - - va_start(args, format); - val = vasprintf (ret, format, args); - -#ifdef PARANOIA - { - int ret2; - char *tmp; - tmp = malloc (val + 1); - if (tmp == NULL) - abort (); - - ret2 = vsprintf (tmp, format, args); - if (val != ret2 || strcmp(*ret, tmp)) - abort (); - free (tmp); - } -#endif - - va_end(args); - return val; -} -#endif - -#if !defined(HAVE_ASNPRINTF) || defined(TEST_SNPRINTF) -int -asnprintf (char **ret, size_t max_sz, const char *format, ...) -{ - va_list args; - int val; - - va_start(args, format); - val = vasnprintf (ret, max_sz, format, args); - -#ifdef PARANOIA - { - int ret2; - char *tmp; - tmp = malloc (val + 1); - if (tmp == NULL) - abort (); - - ret2 = vsprintf (tmp, format, args); - if (val != ret2 || strcmp(*ret, tmp)) - abort (); - free (tmp); - } -#endif - - va_end(args); - return val; -} -#endif - -#if !defined(HAVE_VASPRINTF) || defined(TEST_SNPRINTF) -int -vasprintf (char **ret, const char *format, va_list args) -{ - return vasnprintf (ret, 0, format, args); -} -#endif - - -#if !defined(HAVE_VASNPRINTF) || defined(TEST_SNPRINTF) -int -vasnprintf (char **ret, size_t max_sz, const char *format, va_list args) -{ - int st; - struct state state; - - state.max_sz = max_sz; - state.sz = 1; - state.str = malloc(state.sz); - if (state.str == NULL) { - *ret = NULL; - return -1; - } - state.s = state.str; - state.theend = state.s + state.sz - 1; - state.append_char = as_append_char; - - st = xyzprintf (&state, format, args); - if (st > state.sz) { - free (state.str); - *ret = NULL; - return -1; - } else { - char *tmp; - - *state.s = '\0'; - tmp = realloc (state.str, st+1); - if (tmp == NULL) { - free (state.str); - *ret = NULL; - return -1; - } - *ret = tmp; - return st; - } -} -#endif - -#if !defined(HAVE_VSNPRINTF) || defined(TEST_SNPRINTF) -int -vsnprintf (char *str, size_t sz, const char *format, va_list args) -{ - struct state state; - int ret; - unsigned char *ustr = (unsigned char *)str; - - state.max_sz = 0; - state.sz = sz; - state.str = ustr; - state.s = ustr; - state.theend = ustr + sz - (sz > 0); - state.append_char = sn_append_char; - - ret = xyzprintf (&state, format, args); - if (state.s != NULL) - *state.s = '\0'; - return ret; -} -#endif diff --git a/tools/compat/sys/null.h b/tools/compat/sys/null.h deleted file mode 100644 index b73ea73c5..000000000 --- a/tools/compat/sys/null.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: null.h,v 1.1 2007/07/19 13:49:12 jmmv Exp $ */ - -#include "../../../sys/sys/null.h" diff --git a/tools/compat/sys/queue.h b/tools/compat/sys/queue.h deleted file mode 100644 index e605deb6f..000000000 --- a/tools/compat/sys/queue.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: queue.h,v 1.1 2002/01/21 20:04:37 tv Exp $ */ - -#include "../../../sys/sys/queue.h" diff --git a/tools/compat/sys/rmd160.h b/tools/compat/sys/rmd160.h deleted file mode 100644 index 1e2f17329..000000000 --- a/tools/compat/sys/rmd160.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: rmd160.h,v 1.1 2006/10/27 22:32:45 mrg Exp $ */ - -#include "../../../sys/sys/rmd160.h" diff --git a/tools/compat/sys/sha1.h b/tools/compat/sys/sha1.h deleted file mode 100644 index db1cf391a..000000000 --- a/tools/compat/sys/sha1.h +++ /dev/null @@ -1,4 +0,0 @@ -/* $NetBSD: sha1.h,v 1.2 2013/03/12 01:52:55 christos Exp $ */ - -/* We unconditionally use the NetBSD SHA1 in libnbcompat. */ -#include "../../sys/sys/sha1.h" diff --git a/tools/compat/sys/sha2.h b/tools/compat/sys/sha2.h deleted file mode 100644 index 3162eca67..000000000 --- a/tools/compat/sys/sha2.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: sha2.h,v 1.1 2006/10/27 22:32:45 mrg Exp $ */ - -#include "../../../sys/sys/sha2.h" diff --git a/tools/compat/sys/verified_exec.h b/tools/compat/sys/verified_exec.h deleted file mode 100644 index b8045a7f6..000000000 --- a/tools/compat/sys/verified_exec.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: verified_exec.h,v 1.1 2006/12/20 22:03:20 agc Exp $ */ - -#include "../../sys/sys/verified_exec.h" diff --git a/tools/compat/tzfile.h b/tools/compat/tzfile.h deleted file mode 100644 index 1db872e1a..000000000 --- a/tools/compat/tzfile.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: tzfile.h,v 1.1 2002/01/31 22:43:49 tv Exp $ */ - -#include "../../include/tzfile.h" diff --git a/tools/compat/ufs/ffs/ffs_extern.h b/tools/compat/ufs/ffs/ffs_extern.h deleted file mode 100644 index c2ef087f6..000000000 --- a/tools/compat/ufs/ffs/ffs_extern.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: ffs_extern.h,v 1.1 2003/05/14 00:30:26 dbj Exp $ */ - -#include "../../../../sys/ufs/ffs/ffs_extern.h" diff --git a/tools/compat/ufs/ffs/fs.h b/tools/compat/ufs/ffs/fs.h deleted file mode 100644 index 03b5a333d..000000000 --- a/tools/compat/ufs/ffs/fs.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: fs.h,v 1.1 2003/05/14 00:30:26 dbj Exp $ */ - -#include "../../../../sys/ufs/ffs/fs.h" diff --git a/tools/compat/ufs/ufs/dinode.h b/tools/compat/ufs/ufs/dinode.h deleted file mode 100644 index a42290459..000000000 --- a/tools/compat/ufs/ufs/dinode.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: dinode.h,v 1.1 2003/05/14 00:30:26 dbj Exp $ */ - -#include "../../../../sys/ufs/ufs/dinode.h" diff --git a/tools/compat/ufs/ufs/dir.h b/tools/compat/ufs/ufs/dir.h deleted file mode 100644 index 07228c295..000000000 --- a/tools/compat/ufs/ufs/dir.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: dir.h,v 1.1 2003/05/14 00:30:27 dbj Exp $ */ - -#include "../../../../sys/ufs/ufs/dir.h" diff --git a/tools/compat/ufs/ufs/quota.h b/tools/compat/ufs/ufs/quota.h deleted file mode 100644 index cc1d1ea15..000000000 --- a/tools/compat/ufs/ufs/quota.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: quota.h,v 1.1 2011/03/07 02:02:36 joerg Exp $ */ - -#include "../../../../sys/ufs/ufs/quota.h" diff --git a/tools/compat/ufs/ufs/ufs_bswap.h b/tools/compat/ufs/ufs/ufs_bswap.h deleted file mode 100644 index c1546e9a6..000000000 --- a/tools/compat/ufs/ufs/ufs_bswap.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $NetBSD: ufs_bswap.h,v 1.1 2003/05/14 00:30:27 dbj Exp $ */ - -#include "../../../../sys/ufs/ufs/ufs_bswap.h" diff --git a/tools/compat/vis.h b/tools/compat/vis.h deleted file mode 100644 index 4b6a0187f..000000000 --- a/tools/compat/vis.h +++ /dev/null @@ -1,5 +0,0 @@ -/* $NetBSD: vis.h,v 1.2 2003/10/27 00:12:43 lukem Exp $ */ - -/* We unconditionally use the NetBSD vis(3) in libnbcompat. */ -#include "nbtool_config.h" -#include "../../include/vis.h" diff --git a/tools/cpp23_enumerate.py b/tools/cpp23_enumerate.py deleted file mode 100644 index 45193c7fd..000000000 --- a/tools/cpp23_enumerate.py +++ /dev/null @@ -1,113 +0,0 @@ -#!/usr/bin/env python3 -"""Enumerate repository files and guess which are C++23 upgraded. - -The script walks the directory tree rooted at the repository and prints a -summary of file types. It also inspects C++ source files and uses simple -heuristics to determine whether they likely use C++23 features. -""" - -from __future__ import annotations - -import argparse -import os -import mimetypes -from dataclasses import dataclass -from typing import Iterator, List - - -CXX_EXTENSIONS = {".cpp", ".cc", ".cxx", ".C", ".hpp", ".hh", ".hxx"} - -CXX23_MARKERS = [ - "consteval", # keyword introduced in C++20, relevant for 23 - "std::expected", # library feature from C++23 - "std::print", # print facility in C++23 - "std::format", # improved in C++23 - "std::ranges", # ranges library - "co_await", # coroutine keyword - "#if __cplusplus >= 202302L", # direct version check -] - - -@dataclass -class FileInfo: - """Simple container for file information.""" - - path: str - file_type: str - upgraded_cpp23: bool = False - - -def guess_file_type(path: str) -> str: - """Return a best-effort string describing the file type.""" - mime, _ = mimetypes.guess_type(path) - return mime or "unknown" - - -def walk_files(root: str) -> Iterator[str]: - """Yield all file paths under *root*.""" - for current, _, files in os.walk(root): - for name in files: - yield os.path.join(current, name) - - -def inspect_file(path: str) -> FileInfo: - """Inspect *path* and return collected information.""" - ext = os.path.splitext(path)[1] - file_type = guess_file_type(path) - upgraded = False - if ext in CXX_EXTENSIONS: - try: - with open(path, "r", encoding="utf-8", errors="ignore") as source: - data = source.read() - except OSError: - data = "" - upgraded = any(marker in data for marker in CXX23_MARKERS) - return FileInfo(path, file_type, upgraded) - - -def analyze(root: str) -> tuple[list[FileInfo], list[str], list[str]]: - """Analyze the directory tree starting at *root*.""" - tree: List[FileInfo] = [] - upgraded: List[str] = [] - not_upgraded: List[str] = [] - for path in walk_files(root): - info = inspect_file(path) - tree.append(info) - if os.path.splitext(path)[1] in CXX_EXTENSIONS: - (upgraded if info.upgraded_cpp23 else not_upgraded).append(path) - return tree, upgraded, not_upgraded - - -def print_summary( - tree: list[FileInfo], upgraded: list[str], not_upgraded: list[str] -) -> None: - """Print the collected summary to stdout.""" - print("File tree and types:\n") - for info in tree: - print(f"{info.path}: {info.file_type}") - print("\nC++23 upgraded files:") - for path in upgraded: - print(path) - print("\nFiles not upgraded to C++23:") - for path in not_upgraded: - print(path) - - -def parse_args() -> argparse.Namespace: - """Parse command line arguments.""" - parser = argparse.ArgumentParser(description=__doc__) - parser.add_argument( - "root", nargs="?", default=".", help="Root directory to scan" - ) - return parser.parse_args() - - -def main() -> None: - """Entry point for command line execution.""" - args = parse_args() - tree, upgraded, not_upgraded = analyze(args.root) - print_summary(tree, upgraded, not_upgraded) - - -if __name__ == "__main__": - main() diff --git a/tools/file/Makefile b/tools/file/Makefile deleted file mode 100644 index 40da916e9..000000000 --- a/tools/file/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# $NetBSD: Makefile,v 1.7 2012/04/15 08:37:33 mrg Exp $ -# - -GNUHOSTDIST= ${.CURDIR}/../../external/bsd/file/dist - -CONFIGURE_ENV+= CC=${HOST_CC:Q} \ - CFLAGS=${HOST_CFLAGS:Q} \ - CPPFLAGS=${HOST_CPPFLAGS:Q} \ - CXX=${HOST_CXX:Q} - -CONFIGURE_ARGS= --program-prefix=${_TOOL_PREFIX} --disable-shared \ - --disable-warnings - -.NOTPARALLEL: - -.include "${.CURDIR}/../Makefile.gnuhost" - -.if ${HOST_OSTYPE:C/\-.*//} != "Minix" -# Force avoiding possibly non-executable install-sh. -CONFIGURE_ENV+= ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d" -.endif diff --git a/tools/file_tree_report.py b/tools/file_tree_report.py deleted file mode 100755 index ff9e92954..000000000 --- a/tools/file_tree_report.py +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env python3 -"""Generate a report of the repository file tree with file types.""" - -from __future__ import annotations - -import argparse -import os -from typing import Iterable, Tuple - - -def scan_tree(start: str) -> Iterable[Tuple[str, str]]: - """Yield each filesystem entry path and a human-readable type.""" - for root, dirs, files in os.walk(start): - for name in dirs: - path = os.path.join(root, name) - yield path, "directory" - for name in files: - path = os.path.join(root, name) - if os.path.islink(path): - yield path, "symlink" - else: - yield path, "file" - - -def main() -> None: - """Parse command line arguments and print the file tree report.""" - parser = argparse.ArgumentParser( - description="Generate a file tree report with file types" - ) - parser.add_argument( - "start", - nargs="?", - default=".", - help="directory to start scanning (default: current directory)", - ) - args = parser.parse_args() - - for path, ftype in scan_tree(args.start): - print(f"{path}\t{ftype}") - - -if __name__ == "__main__": - main() diff --git a/tools/gcc/Makefile b/tools/gcc/Makefile deleted file mode 100644 index cdc74e2f6..000000000 --- a/tools/gcc/Makefile +++ /dev/null @@ -1,269 +0,0 @@ -# $NetBSD: Makefile,v 1.74 2015/01/16 20:10:26 christos Exp $ - -.include - -GCC_LANGUAGES=c c++ objc -MODULE= gcc4 - -GCCDIST= ${.CURDIR}/../../external/gpl3/${EXTERNAL_GCC_SUBDIR}/dist -GNUHOSTDIST= ${GCCDIST} - -.if ${HAVE_GCC} == 48 -CC_FOR_BUILD= ${HOST_CXX:Q} -LIB_INTL= -.elif ${HAVE_GCC} == 45 -UNWIND_H=unwind.h -MKNATIVE= ${.CURDIR}/mknative-gcc.old -.endif - -# Defaults -CC_FOR_BUILD?= ${HOST_CC:Q} -LIB_INTL?= "LIBS=-lintl" -MKNATIVE?= ${.CURDIR}/mknative-gcc - -.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" -MULTILIB_ARGS= --enable-multilib -.else -MULTILIB_ARGS= --disable-multilib -.endif - -.if ${MKSOFTFLOAT} != "no" && ${MACHINE_CPU} != "m68k" \ - && ${MACHINE_CPU} != "or1k" -SOFTFLOAT_ARGS= -with-float=soft -.endif - -.include "gcc-version.mk" - -COMMON_CONFIGURE_ARGS= --target=${MACHINE_GNU_PLATFORM} \ - --enable-long-long \ - --enable-threads \ - --with-bugurl=http://www.NetBSD.org/Misc/send-pr.html \ - --with-pkgversion="NetBSD ${NETBSD_GCC_VERSION}" \ - --with-system-zlib \ - --enable-__cxa_atexit \ - # MINIX: --enable-libstdcxx-threads - -.if defined(__MINIX) -COMMON_CONFIGURE_ARGS+= \ - --disable-libssp \ - --enable-visibility \ - --disable-threads \ - --disable-tls - -CONFIGURE_ENV+= gcc_cv_ld_hidden=yes - -.if ${HOST_OSTYPE:C/\-.*//} == "Minix" -CONFIGURE_ENV+= LDFLAGS=-lm -.endif # ${HOST_OSTYPE:C/\-.*//} == "Minix" - -.endif # defined(__MINIX) - -.if defined(GCC_CONFIG_ARCH.${MACHINE_ARCH}) -COMMON_CONFIGURE_ARGS+= --with-arch=${GCC_CONFIG_ARCH.${MACHINE_ARCH}} -.endif -.if defined(GCC_CONFIG_TUNE.${MACHINE_ARCH}) -COMMON_CONFIGURE_ARGS+= --with-tune=${GCC_CONFIG_TUNE.${MACHINE_ARCH}} -.endif - -.if ${HAVE_GCC} == 48 -COMMON_CONFIGURE_ARGS+= --enable-libstdcxx-time=rt --enable-lto -.endif - -CONFIGURE_ARGS= ${COMMON_CONFIGURE_ARGS} -CONFIGURE_ARGS+= \ - --with-sysroot=${DESTDIR} \ - --with-mpc=${TOOLDIR} \ - --with-mpfr=${TOOLDIR} \ - --with-gmp=${TOOLDIR} \ - --disable-nls \ - ${MULTILIB_ARGS} \ - ${SOFTFLOAT_ARGS} \ - --program-transform-name="s,^,${MACHINE_GNU_PLATFORM}-," \ - --enable-languages="${GCC_LANGUAGES}" - -GCC_CPPFLAGS= -DNETBSD_TOOLS -DTARGET_SYSTEM_ROOT=0 \ - -DTARGET_SYSTEM_ROOT_RELOCATABLE - -MAKE_ARGS= MACHINE= MAKEINFO=${TOOL_MAKEINFO:Q} \ - LIBGCC= LIBGCC1= LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= \ - EXTRA_PARTS= CPPFLAGS=${GCC_CPPFLAGS:Q} \ - AR=${HOST_AR:Q} RANLIB=${HOST_RANLIB:Q} - -CONFIGURE_ENV+= gcc_cv_libc_provides_ssp=yes \ - gcc_cv_as_sparc_gotdata_op=no - -ALL_TARGET= all-gcc -INSTALL_TARGET= install-gcc - -.include "${.CURDIR}/../Makefile.gmakehost" -BUILD_MAKE=${TOOL_GMAKE} - -# -# mknative-gcc specific stuff -# - -MKNATIVE_CONFIG_TARGET_LIBS= - -.if ${HAVE_GCC} == 48 -MKNATIVE_CONFIG_TARGET_LIBS+= configure-target-libgcc -MKNATIVE_CONFIG_TARGET_LIBS+= configure-target-libgomp -MKNATIVE_TARGET= gcc48 -.elif ${HAVE_GCC} == 45 -MKNATIVE_CONFIG_TARGET_LIBS+= configure-target-libgomp -MKNATIVE_TARGET= gcc45 -.endif - -MKNATIVE_CONFIG_TARGET_LIBS+= \ - configure-target-libstdc++-v3 \ - configure-target-libobjc - -BINENV= /usr/bin/env -i - - -MKNATIVE_ENV= ${BINENV} ${CONFIGURE_ENV:NC*:NLD*} \ - CC_FOR_BUILD=${CC_FOR_BUILD:Q} \ - CXX_FOR_BUILD=${HOST_CXX:Q} \ - CFLAGS_FOR_BUILD="-I${TOOLDIR}/include" \ - CC=${CC:Q}' '${CCADDFLAGS:Q} \ - CXX=${CXX:Q}' '${CCADDFLAGS:Q}' '${CXXADDFLAGS:Q} \ - CPP=${CPP:Q}' '-I${DESTDIR}/usr/include \ - CFLAGS= CPPFLAGS= CXXFLAGS= LDFLAGS= \ - AS=${AS:Q} AWK=${TOOL_AWK:Q} LD=${LD:Q} \ - MSGFMT=${TOOLDIR}/bin/${_TOOL_PREFIX}msgfmt \ - NM=${NM:Q} OBJDUMP=${OBJDUMP:Q} \ - XGETTEXT=${TOOLDIR}/bin/${_TOOL_PREFIX}xgettext \ - ${LIB_INTL} \ - ac_cv_prog_cc_cross=yes \ - ac_cv_func_strcoll_works=yes \ - ac_cv_func_elf_getshstrndx=no \ - gcc_cv_func_printf_ptr=yes \ - gcc_cv_libc_provides_ssp=yes \ - gdb_cv_printf_has_long_double=yes \ - gdb_cv_printf_has_long_long=yes \ - gdb_cv_scanf_has_long_double=yes \ - gcc_cv_as_sparc_gotdata_op=no - -CXXADDFLAGS= --sysroot=${DESTDIR} -CCADDFLAGS= --sysroot=${DESTDIR} -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/ -I${.OBJDIR}/.native/gcc/include - -# NEWCONFIGDIR can be set to a read-write location of the source tree -# in case the version being used is not. -NEWCONFIGDIR?= ${.CURDIR}/../.. - -bootstrap-libgcc: .configure_done - @echo 'Creating files needed for libgcc by a native bootstrap build.' - (cd ${.OBJDIR}/build && ${BUILD_COMMAND} configure-target-libgcc) - @MAKE=${BUILD_MAKE:Q} ${HOST_SH} ${MKNATIVE} lib${MKNATIVE_TARGET}-bootstrap \ - ${.OBJDIR}/build ${NEWCONFIGDIR} ${NETBSDSRCDIR} \ - ${MACHINE_GNU_PLATFORM} ${DESTDIR} ${TOOLDIR} - -.if ${HAVE_GCC} == "48" -bootstrap-libstdc++: .configure_done - @echo 'Creating files needed for libstdc++ by a native bootstrap build.' - (cd ${.OBJDIR}/build && ${BUILD_COMMAND} configure-target-libstdc++-v3) - @MAKE=${BUILD_MAKE:Q} ${HOST_SH} ${MKNATIVE} libstdc++-bootstrap \ - ${.OBJDIR}/build ${NEWCONFIGDIR} ${NETBSDSRCDIR} \ - ${MACHINE_GNU_PLATFORM} ${DESTDIR} ${TOOLDIR} -.endif - -native-gcc: .native/.configure_done - @echo 'Extracting GNU GCC configury for a native toolchain.' - @MAKE=${BUILD_MAKE:Q} ${HOST_SH} ${MKNATIVE} ${MKNATIVE_TARGET} \ - ${.OBJDIR}/.native ${NEWCONFIGDIR} ${NETBSDSRCDIR} \ - ${MACHINE_GNU_PLATFORM} ${DESTDIR} ${TOOLDIR} - -NATIVE_CONFIGURE_ARGS= ${COMMON_CONFIGURE_ARGS} -MPC= ${NETBSDSRCDIR}/external/lgpl3/mpc -MPFR= ${NETBSDSRCDIR}/external/lgpl3/mpfr -GMP= ${NETBSDSRCDIR}/external/lgpl3/gmp -MPCOBJ!= cd ${MPC}/lib/libmpc && ${PRINTOBJDIR} -MPFROBJ!= cd ${MPFR}/lib/libmpfr && ${PRINTOBJDIR} -GMPOBJ!= cd ${GMP}/lib/libgmp && ${PRINTOBJDIR} - -GMP_MACHINE_ARCH?= ${MACHINE_ARCH:S/earmv4/arm/:C/armv[5-7]/arm/} - -NATIVE_CONFIGURE_ARGS+= \ - --with-mpc-lib=${MPCOBJ} \ - --with-mpfr-lib=${MPFROBJ} \ - --with-gmp-lib=${GMPOBJ} \ - --with-mpc-include=${MPC}/dist/src \ - --with-mpfr-include=${MPFR}/dist/src \ - --with-gmp-include=${GMP}/lib/libgmp/arch/${GMP_MACHINE_ARCH} - -.if !defined(__MINIX) -.if ${MACHINE_ARCH} != "vax" -NATIVE_CONFIGURE_ARGS+= --enable-tls -.endif -.endif # !defined(__MINIX) -.if !empty(MACHINE_ARCH:Mearm*) -NATIVE_CONFIGURE_ARGS+= --enable-initfini-array -.endif - -.if ${MACHINE_ARCH} == "m68000" -NATIVE_CONFIGURE_ARGS+= --disable-shared -.endif - -NATIVE_CONFIGURE_ARGS+= \ - --disable-multilib \ - --disable-symvers \ - --disable-libstdcxx-pch \ - --build=`${GCCDIST}/config.guess` \ - --host=${MACHINE_GNU_PLATFORM} \ - --with-sysroot=${DESTDIR} -MKENV_BUILD_MAKE=cd .native && ${MKNATIVE_ENV} ${BUILD_MAKE} - -.native/.configure_done: ${_GNU_CFGSRC} ${.CURDIR}/Makefile - mkdir .native 2>/dev/null || true - PATH=${TOOLDIR}/bin:$$PATH; export PATH; \ - (cd .native && ${MKNATIVE_ENV} \ - ${HOST_SH} ${GNUHOSTDIST}/configure \ - ${NATIVE_CONFIGURE_ARGS}) && \ - (${MKENV_BUILD_MAKE} all-build-libiberty) && \ - ([ "${HAVE_GCC}" = "48" ] && \ - (${MKENV_BUILD_MAKE} all-libcpp) && \ - (${MKENV_BUILD_MAKE} all-libbacktrace) && \ - (${MKENV_BUILD_MAKE} all-libdecnumber) || true) - PATH=${TOOLDIR}/bin:$$PATH; export PATH; \ - (${MKENV_BUILD_MAKE} configure-gcc configure-libcpp) && \ - (${MKENV_BUILD_MAKE} configure-libiberty) && \ - (${MKENV_BUILD_MAKE} configure-libdecnumber) - # edit Makefile so that maybe-all-gcc does not depend on all-gcc any more. - (cd .native && mv Makefile Makefile.config && \ - ${TOOL_SED} -e 's/\(maybe-all-gcc:\) all-gcc/\1/' \ - -e 's/\(maybe-all-target-libgcc:\) all-target-libgcc/\1/' \ - < Makefile.config > Makefile) - PATH=${TOOLDIR}/bin:$$PATH; export PATH; \ - (cd .native/gcc && ${MKNATIVE_ENV} ${BUILD_MAKE} -e tree-check.h config.h multilib.h gcov-iov.h) - PATH=${TOOLDIR}/bin:$$PATH; export PATH; \ - (cd .native/gcc && ${MKNATIVE_ENV} ${BUILD_MAKE} -e libgcc.mvars tconfig.h ${UNWIND_H}) - (cd .native && touch gcc/cc1obj gcc/cc1plus gcc/f771 gcc/libgcc.a gcc/libgcc_s.so) -.for _lib in ${MKNATIVE_CONFIG_TARGET_LIBS} - PATH=${TOOLDIR}/bin:$$PATH; export PATH; \ - (cd .native && ${MKNATIVE_ENV} ${BUILD_MAKE} \ - ${_lib} \ - ALL_GCC_C= ALL_GCC_CXX= \ - CC_FOR_TARGET=${CC:Q}' '${CCADDFLAGS:Q} \ - CXX_FOR_TARGET=${CXX:Q}' '${CCADDFLAGS:Q}' '${CXXADDFLAGS:Q} \ - RAW_CXX_FOR_TARGET=${CXX:Q}' '${CCADDFLAGS:Q}' '${CXXADDFLAGS:Q} \ - CPP=${CPP:Q}' '-I${DESTDIR}/usr/include \ - ac_cv_prog_cc_cross=yes) && \ - true -.endfor - PATH=${TOOLDIR}/bin:$$PATH; export PATH; \ - (cd .native/${MACHINE_GNU_PLATFORM}/libstdc++-v3/include && \ - ${MKNATIVE_ENV} ${BUILD_MAKE} \ - CC_FOR_TARGET=${CC:Q}' '${CCADDFLAGS:Q} \ - CXX_FOR_TARGET=${CXX:Q}' '${CCADDFLAGS:Q}' '${CXXADDFLAGS:Q} \ - CPP=${CPP:Q}' '-I${DESTDIR}/usr/include \ - all-local) && \ - true -.if 0 - PATH=${TOOLDIR}/bin:$$PATH; export PATH; \ - (cd .native/${MACHINE_GNU_PLATFORM}/libiberty && \ - ${MKNATIVE_ENV} ${BUILD_MAKE} needed-list) -.endif - @touch $@ - -clean: clean.native -clean.native: - -rm -r -f .native diff --git a/tools/gcc/gcc-version.mk b/tools/gcc/gcc-version.mk deleted file mode 100644 index 9097c6bc7..000000000 --- a/tools/gcc/gcc-version.mk +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: gcc-version.mk,v 1.3 2015/01/15 08:42:14 skrll Exp $ - -# common location for tools and native build - -NETBSD_GCC_VERSION=nb2 20150115 diff --git a/tools/gcc/mknative-gcc b/tools/gcc/mknative-gcc deleted file mode 100755 index 35f6d123c..000000000 --- a/tools/gcc/mknative-gcc +++ /dev/null @@ -1,435 +0,0 @@ -#!/bin/sh -# $NetBSD: mknative-gcc,v 1.81 2015/01/31 08:50:01 mrg Exp $ -# -# Shell script for generating all the constants needed for a native -# platform build of gcc. -# - -# initialise - -_TMPDIR=$2 -_TOP=$3 -_SRC=$4 -_PLATFORM=$5 -_DESTDIR=$6 -_TOOLDIR=$7 -_VPATH=`grep VPATH ${_TMPDIR}/Makefile | sed 's,^.*=[ ]*,,'` -_GNU_DIST=`cd ${_VPATH}; pwd` - -if [ -z "$_DESTDIR" ]; then - echo "\$_DESTDIR is empty" 2>&1 - exit 1 -fi - -. $_TOP/tools/gcc/mknative.common - -# default to GCC 4.1 for now -_OUTDIR="$_TOP/gnu" -_OUTDIRBASE="gnu" - -sanitise_includes () { - sed \ - -e "s,-I$_DESTDIR/usr/include,,g" \ - -e "s,-I$_SRC/external/lgpl3/mpfr/dist/src,,g" \ - -e "s,-I$_SRC/external/lgpl3/mpc/dist/src,,g" \ - -e "s,-I$_SRC/external/lgpl3/gmp/lib/libgmp/arch/[a-z_0-9-]*,,g" \ - -e "s,-I$_TOOLDIR/include,,g" \ - -e "s,-I/usr/include/[^ ]*,," -} - -##### lib/crtstuff ##### - -get_crtstuff () { - _subdir="$1" - mkdir -p $_OUTDIR/lib/$_subdir/arch - - getvars gcc/Makefile \ - INCLUDES CRTSTUFF_CFLAGS CRTSTUFF_T_CFLAGS CRTSTUFF_T_CFLAGS_S \ - tm_defines xm_file xm_defines \ - | sanitise_includes \ - | write_mk $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH.mk -} - -##### lib/libg2c ##### - -get_libg2c () { - mkdir -p $_OUTDIR/lib/libg2c3/arch/$MACHINE_ARCH - - write_c $_OUTDIRBASE/lib/libg2c3/arch/$MACHINE_ARCH/config.h <$_TMPDIR/$_PLATFORM/libf2c/libU77/config.h - write_c $_OUTDIRBASE/lib/libg2c3/arch/$MACHINE_ARCH/g2c.h <$_TMPDIR/$_PLATFORM/libf2c/g2c.h - - { - getvars $_PLATFORM/libf2c/Makefile \ - F2CEXT - getvars $_PLATFORM/libf2c/libF77/Makefile \ - ALL_CFLAGS OBJS - getvars $_PLATFORM/libf2c/libI77/Makefile \ - ALL_CFLAGS OBJS | sed 's,=,+=,' - getvars $_PLATFORM/libf2c/libU77/Makefile \ - ALL_CFLAGS OBJS | sed 's,=,+=,' - } | write_mk $_OUTDIRBASE/lib/libg2c3/arch/$MACHINE_ARCH/defs.mk -} - -##### lib/libgcc ##### - -get_libgcc () { - _subdir="$1" - mkdir -p $_OUTDIR/lib/lib$_subdir/arch - - # DPBIT, FPBIT only used on mn10[23]00, we don't need them. - # XXX we should probably grab everything Just In Case for - # the future. - - mkdir -p $_OUTDIR/lib/lib$_subdir/arch/$MACHINE_ARCH - cd $_TMPDIR/$_PLATFORM/libgcc - { - getvars $_PLATFORM/libgcc/Makefile \ - INCLUDES LIB2ADD LIB2ADDEH LIB2ADD_ST \ - LIB1ASMFUNCS LIB1ASMSRC \ - LIB2_DIVMOD_FUNCS LIB2FUNCS_ST \ - LIB2FUNCS_EXTRA \ - LIBGCC2_CFLAGS \ - SHLIB_MKMAP SHLIB_MKMAP_OPTS \ - SHLIB_MAPFILES SHLIB_NM_FLAGS - getvars gcc/Makefile \ - NOEXCEPTION_FLAGS EXTRA_HEADERS - getlinks config.status libgcc - } | sanitise_includes \ - | write_mk $_OUTDIRBASE/lib/lib$_subdir/arch/$MACHINE_ARCH/defs.mk - - if [ "${MACHINE_ARCH}" = "m68000" ] - then - ex <<__EOF__ $_OUTDIR/lib/lib$_subdir/arch/$MACHINE_ARCH/defs.mk -/G_LIBGCC2_CFLAGS/ s/-fPIC// -wq -__EOF__ - fi - - for f in auto-target.h; do - write_c $_OUTDIRBASE/lib/lib$_subdir/arch/$MACHINE_ARCH/$f \ - <$_TMPDIR/$_PLATFORM/libgcc/$f - done -} - -##### lib/libgcov ##### - -get_libgcov () { - _subdir="$1" - _mf="$2" - - mkdir -p $_OUTDIR/lib/lib$_subdir/libgcov/arch/$MACHINE_ARCH - - { - getvars $_mf \ - LIBGCOV - } | write_mk $_OUTDIRBASE/lib/lib$_subdir/libgcov/arch/$MACHINE_ARCH/defs.mk - - write_c $_OUTDIRBASE/lib/lib$_subdir/libgcov/arch/$MACHINE_ARCH/gcov-iov.h \ - <$_TMPDIR/gcc/gcov-iov.h - -} - -##### lib/libiberty ##### - -get_gcc_libiberty () { - _subdir="$1" - _libibertydir="lib/libiberty" - mkdir -p $_OUTDIR/$_libibertydir/arch/$MACHINE_ARCH - - getvars libiberty/Makefile \ - ALLOCA EXTRA_OFILES LIBOBJS REQUIRED_OFILES \ - | write_mk $_OUTDIRBASE/$_libibertydir/defs.mk - - write_c $_OUTDIRBASE/$_libibertydir/arch/$MACHINE_ARCH/config.h \ - <$_TMPDIR/libiberty/config.h -} - -##### lib/libdecnumber ##### - -get_libdecnumber () { - _subdir="$1" - - mkdir -p $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH - write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/config.h \ - <$_TMPDIR/libdecnumber/config.h -} - -##### lib/libgomp ##### - -get_libgomp () { - _subdir="$1" - - mkdir -p $_OUTDIR/lib/$_subdir/arch/$MACHINE_ARCH - write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/config.h \ - <$_TMPDIR/$_PLATFORM/libgomp/config.h - write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/libgomp_f.h \ - <$_TMPDIR/$_PLATFORM/libgomp/libgomp_f.h - write_mk $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/libgomp.spec \ - <$_TMPDIR/$_PLATFORM/libgomp/libgomp.spec - write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/omp.h \ - <$_TMPDIR/$_PLATFORM/libgomp/omp.h -} - -##### lib/libbacktrace ##### - -get_libbacktrace () { - _subdir="$1" - - mkdir -p $_OUTDIR/lib/$_subdir/arch/$MACHINE_ARCH - write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/config.h \ - <$_TMPDIR/$_subdir/config.h - write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/backtrace-supported.h \ - <$_TMPDIR/$_subdir/backtrace-supported.h -} - -##### lib/libobjc ##### - -get_libobjc () { - _subdir="$1/arch/$MACHINE_ARCH" - _options="ALL_OPT_FILES" - - mkdir -p $_OUTDIR/lib/$_subdir - - { - if [ -n "$_options" ]; then - getvars gcc/Makefile $_options - fi - getvars $_PLATFORM/libobjc/Makefile \ - ALL_CFLAGS INCLUDES OBJC_SOURCE_FILES C_SOURCE_FILES OBJC_H \ - | sed "s,$_GNU_DIST,\${GNUHOSTDIST},g" - getlinks $_TMPDIR/$_PLATFORM/libgcc/config.status libgcc - } | sanitise_includes \ - | write_mk $_OUTDIRBASE/lib/$_subdir/defs.mk - - write_c $_OUTDIRBASE/lib/$_subdir/config.h \ - <$_TMPDIR/$_PLATFORM/libobjc/config.h -} - -##### lib/libstdc++-v3 ##### - -get_libstdcxx_v3 () { - _subdir="$1" - _ver="$2" - - mkdir -p $_OUTDIR/lib/$_subdir/arch/$MACHINE_ARCH - - _build_headers="c++config.h cxxabi_tweaks.h gthr-posix.h gthr-single.h gthr.h" - _headers1="c_base_headers_extra_install" - _headers1="$_headers1 tr1_headers tr2_headers decimal_headers c_compatibility_headers_install" - _headers1="$_headers1 debug_headers parallel_headers" - _headers2="host_headers thread_host_headers" - _pf_headers="profile_headers profile_impl_headers" - _pb_headers="pb_headers1 pb_headers2 pb_headers3 pb_headers4 pb_headers5 pb_headers6 pb_headers7" - - # build files - for h in $_build_headers; do - write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/$h \ - <$_TMPDIR/$_PLATFORM/libstdc++-v3/include/$_PLATFORM/bits/$h - done - - write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/gstdint.h \ - <$_TMPDIR/$_PLATFORM/libstdc++-v3/include/gstdint.h - - { - # libsupc++ - getvars $_PLATFORM/libstdc++-v3/libsupc++/Makefile \ - sources | sed 's/^G_sources=/G_LIBSUPCXX_SOURCES=/' - getvars $_PLATFORM/libstdc++-v3/libsupc++/Makefile \ - c_sources | sed 's/^G_c_sources=/G_LIBSUPCXX_C_SOURCES=/' - - # includes - getvars $_PLATFORM/libstdc++-v3/include/Makefile \ - c_base_headers std_headers | sed -e 's#/[^ ][^ ]*/##g' -e 's/\${GNUHOSTDIST}//g' - - # src - getvars $_PLATFORM/libstdc++-v3/src/Makefile \ - libstdc___la_SOURCES | sed 's/^G_libstdc___la_SOURCES=/G_SRC_SOURCES=/' - getvars $_PLATFORM/libstdc++-v3/src/c++11/Makefile \ - libc__11convenience_la_SOURCES | sed 's/^G_libc__11convenience_la_SOURCES=/G_CPP11_SOURCES=/' - getvars $_PLATFORM/libstdc++-v3/src/c++98/Makefile \ - libc__98convenience_la_SOURCES | sed 's/^G_libc__98convenience_la_SOURCES=/G_CPP98_SOURCES=/' - getvars $_PLATFORM/libstdc++-v3/Makefile ATOMICITY_SRCDIR \ - BASIC_FILE_CC CLOCALE_CC CCODECVT_CC CCOLLATE_CC \ - CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_CC \ - CPU_OPT_BITS_RANDOM - - # includes - getvars $_PLATFORM/libstdc++-v3/include/Makefile \ - backward_headers c_base_headers_extra $_headers1 $_pb_headers | \ - sed -e 's#\${GNUHOSTDIST}/libstdc++-v3/include/##g' - getvars $_PLATFORM/libstdc++-v3/include/Makefile \ - bits_headers ext_headers $_headers2 | \ - sed -e 's#\${GNUHOSTDIST}/libstdc++-v3/include/##g' -e 's#\${GNUHOSTDIST}/libstdc++-v3/config/##g' - getvars $_PLATFORM/libstdc++-v3/include/Makefile \ - $_pf_headers | sed -e 's#\${GNUHOSTDIST}/libstdc++-v3/include/profile/##g' - getvars $_PLATFORM/libstdc++-v3/include/Makefile \ - BASIC_FILE_H ALLOCATOR_H CSTDIO_H CLOCALE_H CMESSAGES_H CTIME_H - getlinks $_TMPDIR/$_PLATFORM/libgcc/config.status libgcc - } | sanitise_includes \ - | write_mk $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/defs.mk -} - -##### usr.bin/gcc* ##### - -get_gcc_bootstrap () { - _subdir="$1" - mkdir -p $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH - for f in auto-host tm config; do - write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/gcc/$f.h - done -} - -get_gcc () { - _subdir="$1" - mkdir -p $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH - mkdir -p $_OUTDIR/usr.bin/libcpp/arch/$MACHINE_ARCH - mkdir -p $_OUTDIR/usr.bin/include/arch - _buildname="BUILD_" - _libcppsubdir="" - _extravars="TM_H ALL_OPT_FILES" - _hconfig_h="" - _extravars2="tm_file_list build_xm_include_list" - _extravars3="tm_p_include_list" - - { - getvars gcc/Makefile \ - ${_buildname}EARLY_SUPPORT ${_buildname}ERRORS ${_buildname}PRINT \ - ${_buildname}RTL ${_buildname}SUPPORT ${_buildname}VARRAY \ - ${_buildname}MD | \ - sed -e 's#build/errors.o#build-errors.o#g' \ - -e 's#build/print-rtl.o#build-print-rtl.o#g' \ - -e 's#build/rtl.o#build-rtl.o#g' \ - -e 's#build/varray.o#build-varray.o#g' \ - -e 's#build/ggc-none.o#build-ggc-none.o#g' \ - -e 's#build/##g' - getvars gcc/Makefile \ - ALL_CFLAGS ALL_CPPFLAGS C_AND_OBJC_OBJS C_OBJS CCCP_OBJS \ - GCC_OBJS GCOV_OBJS GXX_OBJS GTM_H PROTO_OBJS ${_extravars1} \ - INCLUDES md_file OBJC_OBJS OBJS out_file version \ - BUILD_PREFIX RTL_H RTL_BASE_H TREE_H ${_hconfig_h} BASIC_BLOCK_H GCC_H \ - GTFILES_SRCDIR GTFILES_FILES_FILES GTFILES_FILES_LANGS \ - GTFILES GTFILES_LANG_DIR_NAMES NOEXCEPTION_FLAGS \ - NATIVE_SYSTEM_HEADER_DIR \ - tm_defines host_xm_file host_xm_defines tm_p_file \ - target_cpu_default ${_extravars} ${_extravars2} \ - lang_specs_files ${_extravars3} \ - common_out_file \ - | sanitise_includes - getvars gcc/Makefile \ - LIB2ADDEHDEP | sed 's/unwind.inc//' - getvars gcc/Makefile \ - CXX_OBJS CXX_C_OBJS | sed 's/cp\///g' - getvars gcc/Makefile \ - F77_OBJS | sed 's/f\///g' - getvars libcpp/Makefile \ - libcpp_a_OBJS - getvars gcc/Makefile \ - ENABLE_SHARED - echo G_SHLIB_LINK="$CC -shared" - echo G_SHLIB_MULTILIB=. - } | write_mk $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/defs.mk - - getvars gcc/Makefile \ - EXTRA_HEADERS \ - | write_mk $_OUTDIRBASE/usr.bin/include/arch/$MACHINE_ARCH.mk - - write_c $_OUTDIRBASE/usr.bin/libcpp/arch/$MACHINE_ARCH/config.h <$_TMPDIR/libcpp/config.h - hfiles='auto-host configargs config bconfig bversion plugin-version multilib tm' - for f in $hfiles; do - write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/gcc/$f.h - if [ "${MACHINE_ARCH}" = "powerpc" -a "${f}" = "configargs" ] - then - ex <<__EOF__ $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f.h -/configuration_arguments/ s/$// -ya -i -#ifdef _SOFT_FLOAT -. -pu -s/";$/ -with-float=soft";/ -a -#else -#endif -. -. m +1 -/configure_default_options/ s/{ NULL.*$// -a -#ifdef _SOFT_FLOAT - { "float", "soft" }, -#endif - { NULL, NULL } -}; -. -wq -__EOF__ - fi - if [ "${f}" = "configargs" ] - then - _srcquoted=$(echo "$_SRC" | sed 's/\//\\\//g') - ex <<__EOF__ $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f.h -/static const char configuration_arguments/ s/$_srcquoted/\/usr\/src/g -wq -__EOF__ - fi - done - - # keep identical - for f in all-tree.def; do - cp $_TMPDIR/gcc/$f $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f - done - - # special transforms - for f in gtyp-input.list; do - sed -e 's/^.*external\/gpl3\/gcc\/dist/SRCDIR/' < $_TMPDIR/gcc/$f > $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f - done - - # special platforms - if [ "${MACHINE_ARCH}" = "sh3el" -o "${MACHINE_ARCH}" = "sh3eb" ]; then - write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/sysroot-suffix.h <$_TMPDIR/gcc/sysroot-suffix.h - fi -} - -##### main ##### - -case "$1" in -# .mk and .h files for libgcc bootstrap (from host build) - -libgcc*-bootstrap) - _OUTDIR="$_TOP/external/gpl3/gcc" - _OUTDIRBASE="external/gpl3/gcc" - get_libgcc gcc - get_libgcov gcc $_PLATFORM/libgcc/Makefile - get_crtstuff crtstuff - get_gcc_bootstrap gcc - exit 0 - ;; - -libstdc++-bootstrap) - _OUTDIR="$_TOP/external/gpl3/gcc" - _OUTDIRBASE="external/gpl3/gcc" - get_libstdcxx_v3 libstdc++-v3 gcc - exit 0 - ;; - -gcc*) - _OUTDIR="$_TOP/external/gpl3/gcc" - _OUTDIRBASE="external/gpl3/gcc" - get_gcc gcc - get_libgcc gcc - get_libgcov gcc $_PLATFORM/libgcc/Makefile - get_crtstuff crtstuff - get_gcc_libiberty gcc - get_libobjc libobjc - get_libstdcxx_v3 libstdc++-v3 gcc - get_libdecnumber libdecnumber - get_libgomp libgomp - get_libbacktrace libbacktrace - exit 0 - ;; - - -*) - echo invalid arguments; - exit 1 - ;; -esac diff --git a/tools/gcc/mknative-gcc.old b/tools/gcc/mknative-gcc.old deleted file mode 100755 index e1a50544a..000000000 --- a/tools/gcc/mknative-gcc.old +++ /dev/null @@ -1,746 +0,0 @@ -#!/bin/sh -# $NetBSD: mknative-gcc.old,v 1.1 2014/02/26 09:54:34 mrg Exp $ -# -# was: NetBSD: mknative-gcc,v 1.75 2014/02/16 11:26:31 skrll Exp -# -# Shell script for generating all the constants needed for a native -# platform build of gcc. -# - -# XXX split out GCC 4.1 support - -# initialise - -_TMPDIR=$2 -_TOP=$3 -_SRC=$4 -_PLATFORM=$5 -_DESTDIR=$6 -_ABI=$7 -_VPATH=`grep VPATH ${_TMPDIR}/Makefile | sed 's,^.*=[ ]*,,'` -_GNU_DIST=`cd ${_VPATH}; pwd` - -if [ -z "$_DESTDIR" ]; then - echo "\$_DESTDIR is empty" 2>&1 - exit 1 -fi - -. $_TOP/tools/gcc/mknative.common - -# default to GCC 4.1 for now -_OUTDIR="$_TOP/gnu" -_OUTDIRBASE="gnu" - -sanitise_includes () { - sed \ - -e "s,-I$_DESTDIR/usr/include,,g" \ - -e "s,-I$_SRC/external/lgpl3/mpfr/dist/src,,g" \ - -e "s,-I$_SRC/external/lgpl3/mpc/dist/src,,g" \ - -e "s,-I$_SRC/external/lgpl3/gmp/lib/libgmp/arch/$MACHINE_ARCH,,g" \ - -e "s,-I/usr/include/[^ ]*,," -} - -##### gnu/lib/crtstuff ##### - -get_crtstuff () { - _subdir="$1" - mkdir -p $_OUTDIR/lib/$_subdir/arch - - getvars gcc/Makefile \ - INCLUDES CRTSTUFF_CFLAGS CRTSTUFF_T_CFLAGS CRTSTUFF_T_CFLAGS_S \ - tm_defines xm_file xm_defines \ - | sanitise_includes \ - | write_mk $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH.mk -} - -##### gnu/lib/libg2c ##### - -get_libg2c () { - mkdir -p $_OUTDIR/lib/libg2c3/arch/$MACHINE_ARCH - - write_c $_OUTDIRBASE/lib/libg2c3/arch/$MACHINE_ARCH/config.h <$_TMPDIR/$_PLATFORM/libf2c/libU77/config.h - write_c $_OUTDIRBASE/lib/libg2c3/arch/$MACHINE_ARCH/g2c.h <$_TMPDIR/$_PLATFORM/libf2c/g2c.h - - { - getvars $_PLATFORM/libf2c/Makefile \ - F2CEXT - getvars $_PLATFORM/libf2c/libF77/Makefile \ - ALL_CFLAGS OBJS - getvars $_PLATFORM/libf2c/libI77/Makefile \ - ALL_CFLAGS OBJS | sed 's,=,+=,' - getvars $_PLATFORM/libf2c/libU77/Makefile \ - ALL_CFLAGS OBJS | sed 's,=,+=,' - } | write_mk $_OUTDIRBASE/lib/libg2c3/arch/$MACHINE_ARCH/defs.mk -} - -##### gnu/lib/libgcc ##### - -get_libgcc_list_funcs_asm () { - { - getvars gcc/Makefile LIB1ASMFUNCS | { - # print newline separated list - sed -e ' - s,^.*=,, - s, *$,, - s, *, ,g - s, ,\ -,g' - } - getvars gcc/Makefile LIB2FUNCS_EXTRA | { - # print newline separated list - sed -e ' - s,^.*=,, - s, *$,, - s, *, ,g - s, ,\ -,g' | \ - sed -ne ' - /\.S$/ { s,^.*/,,; s,\.S$,,; p; } - /\.asm$/ { s,^.*/,,; s,\.asm$,,; p; } - ' - } - } | { - # print foo and foo_s - sed -ne ' - /./ { - p - s,$,_s, - p - } - ' - } | sort -} - -get_libgcc_list_funcs_lib () { - local _lib=$1 - local _lib_prefix=${_lib%.*} - local _lib_suffix=${_lib#*.} - local _abi=${2:-'\.'} - - cat build/gcc/libgcc.mk | \ - grep '/'${_abi}'/' | \ - sed -ne ' - /^'${_abi}'\/'${_lib_prefix}'\.'${_lib_suffix}': .*\.o$/ { - s,^.*/,, - s,\.o$,, - p - } - ' | sort -} - -get_libgcc_list_objs_libs () { - local _abi=${1:-'\.'} - - cat build/gcc/libgcc.mk | \ - grep '/'${_abi}'/' | \ - egrep '^'${_abi}'\/(libgcc_s\.so|libgcc\.a|libgcc_eh\.a|libgcov\.a): (libgcc_s|libgcc|libgcc_eh|libgcov)\/.*\.o$' | \ - sed -e ' - s,^'${_abi}'\/,, - s,: .*/, , - s,^\(.*\) \(.*\)$,\2 \1, - ' | sort -} - -get_libgcc_list_objs_srcs () { - local _abi=${1:-'\.'} # XXX not used - - if [ -e $_TOP/${libgcc_db_funcs}.S ]; then - cut -f1 $_TOP/${libgcc_db_objs_libs} | sed -e 's,\.o$,,' | \ - comm -23 /dev/stdin $_TOP/${libgcc_db_funcs}.S | \ - sed -e 's,\(.*\),\1.o \1.c,' - - cut -f1 $_TOP/${libgcc_db_objs_libs} | sed -e 's,\.o$,,' | \ - comm -12 /dev/stdin $_TOP/${libgcc_db_funcs}.S | \ - sed -e 's,\(.*\),\1.o \1.S,' - else - cut -f1 $_TOP/${libgcc_db_objs_libs} | sed -e 's,\.o$,,' | \ - sed -e 's,\(.*\),\1.o \1.c,' - fi | sort -} - -get_libgcc_list_objs_tmplsrcs () { - local _abi=${1:-'\.'} - - grep 'GCC_FOR_TARGET.*\.o$' build/gcc/libgcc.mk | \ - grep '/'${_abi}'/' | \ - sed -ne ' - s,^.* -c \([^ ]*\).* -o .*/\([^ ]*\.o\)$,\2 \1, - # basename - /\$/ { s,\$.*/,,; } - /\// { s,\/.*/,,; } - p - ' | sort -u -} - -get_libgcc_list_objs_xflags () { - local _flags=$1 - local _abi=${2:-'\.'} - - grep 'GCC_FOR_TARGET.*\.o$' build/gcc/libgcc.mk | \ - grep '/'${_abi}'/' | \ - sed -n ' - x - :loop - g - s/^\(.*\) \(-['${_flags}'][^ ][^ ]*\) \(.*\) \(-o .*\)\/\(.*\.o\)$/\5 \2/p - g - s/^\(.*\) \(-['${_flags}'][^ ][^ ]*\) \(.*\) \(-o .*\)\/\(.*\.o\)$/\1 \3 \4\/\5/ - h - t loop - ' | sort -} - -get_libgcc_list_objs_cppflags () { - get_libgcc_list_objs_xflags D $1 -} - -get_libgcc_list_objs_copts () { - get_libgcc_list_objs_xflags fmx $1 -} - -get_libgcc_list_tmplsrcs () { - local _lib=$1 - local _abi=$2 # XXX not used - local _tmplallsrcs=$( mktemp /tmp/mknative-gcc._tmplallsrcs.XXXXXX ) - - touch $_TOP/${libgcc_db_tmplsrcs}.tmplsrcs.${_lib%.*} - touch $_TOP/${libgcc_db_tmplsrcs}.tmplfpsrcs.${_lib%.*} - touch $_TOP/${libgcc_db_tmplsrcs}.tmplasmsrcs.${_lib%.*} - - # all files - local _lib_prefix=${_lib%.*} - local _lib_suffix=${_lib#*.} - join $_TOP/$libgcc_db_objs_libs $_TOP/$libgcc_db_objs_tmplsrcs | \ - grep ${_lib_prefix}'\.'${_lib_suffix} | cut -d' ' -f 3 | sort -u > \ - $_tmplallsrcs - - # TMPLFPSRCS = [fdp]p-bit.c - grep '[fdt]p-bit\.c' <$_tmplallsrcs | sort -u | \ - writefile ${libgcc_db_tmplsrcs}.tmplfpsrcs.${_lib%.*} - - # TMPLASMSRCS = $(LIB1ASMSRC) - grep '\$(LIB1ASMSRC)' <$_tmplallsrcs | sort -u | \ - writefile ${libgcc_db_tmplsrcs}.tmplasmsrcs.${_lib%.*} - - # TMPLSRCS is anything else; exclude TMPLFPSRCS and TMPLASMSRCS - cat $_tmplallsrcs | \ - comm -23 /dev/stdin $_TOP/${libgcc_db_tmplsrcs}.tmplfpsrcs.${_lib%.*} | \ - comm -23 /dev/stdin $_TOP/${libgcc_db_tmplsrcs}.tmplasmsrcs.${_lib%.*} | \ - writefile ${libgcc_db_tmplsrcs}.tmplsrcs.${_lib%.*} - - rm -f $_tmplallsrcs -} - -get_libgcc_new_analyze () { - local _abi=$1 - - mkdir -p $_TOP/${_machine_arch_subdir} - - touch $_TOP/${libgcc_db_funcs}.S - get_libgcc_list_funcs_asm | \ - writefile ${libgcc_db_funcs}.S - - for _lib in libgcc_s.so libgcc.a libgcc_eh.a libgcov.a; do - touch $_TOP/${libgcc_db_funcs}.${_lib%.*} - get_libgcc_list_funcs_lib $_lib $_abi | \ - writefile ${libgcc_db_funcs}.${_lib%.*} - done - - get_libgcc_list_objs_libs $_abi | writefile ${libgcc_db_objs_libs} - get_libgcc_list_objs_srcs $_abi | writefile ${libgcc_db_objs_srcs} - get_libgcc_list_objs_tmplsrcs $_abi | writefile ${libgcc_db_objs_tmplsrcs} - get_libgcc_list_objs_cppflags $_abi | writefile ${libgcc_db_objs_cppflags} - get_libgcc_list_objs_copts $_abi | writefile ${libgcc_db_objs_copts} - - for _lib in libgcc_s.so libgcc.a libgcc_eh.a libgcov.a; do - get_libgcc_list_tmplsrcs $_lib $_abi - done -} - -##### - -get_libgcc_gen_tmplsrcs_tmplsrcs () { - local _lib=$1 - - printf '\n' - printf 'TMPLSRCS.%s = \\\n' $_lib - sed -e 's,^, ,; s,$, \\,' $_TOP/${libgcc_db_tmplsrcs}.tmplsrcs.${_lib%.*} -} - -get_libgcc_gen_tmplsrcs_tmplfpsrcs () { - local _lib=$1 - - printf '\n' - printf 'TMPLFPSRCS.%s = \\\n' $_lib - sed -e 's,^, ,; s,$, \\,' $_TOP/${libgcc_db_tmplsrcs}.tmplfpsrcs.${_lib%.*} -} - -get_libgcc_gen_tmplsrcs_tmplasmsrcs () { - local _lib=$1 - - printf '\n' - printf 'TMPLASMSRCS.%s = \\\n' $_lib - sed -e 's,^, ,; s,$, \\,' $_TOP/${libgcc_db_tmplsrcs}.tmplasmsrcs.${_lib%.*} | \ - sed -e 's,LIB1ASMSRC,G_&,' -} - -get_libgcc_gen_srcs () { - local _lib=$1 - - printf '\n' - printf 'SRCS.%s = \\\n' $_lib - if [ -e $_TOP/${libgcc_db_funcs}.S ]; then - comm -23 $_TOP/${libgcc_db_funcs}.${_lib%.*} $_TOP/${libgcc_db_funcs}.S | \ - sed -e 's,$,.c,; s,^,tmp_,' - comm -12 $_TOP/${libgcc_db_funcs}.${_lib%.*} $_TOP/${libgcc_db_funcs}.S | \ - sed -e 's,$,.S,; s,^,tmp_,' - else - cat $_TOP/${libgcc_db_funcs}.${_lib%.*} | \ - sed -e 's,$,.c,; s,^,tmp_,' - fi | sort | \ - sed -e 's,^, ,; s,$, \\,' -} - -_lookup_objs () { - local _obj=$1; local _key=$2 - - eval grep \^$_obj\\\ \$_TOP/\${libgcc_db_objs_${_key}} | cut -f2 -} - -get_libgcc_gen_srcs_tmplsrcs () { - cut -f1 $_TOP/${libgcc_db_objs_libs} | \ - while read _obj; do - printf 'SRCS.tmp_%s=%s\n' \ - "$( _lookup_objs $_obj srcs )" \ - "$( _lookup_objs $_obj tmplsrcs )" - done | \ - sed -e 's,\$(\(.*\)),${G_\1},' -} - -get_libgcc_gen_srcs_cppflags () { - cut -f1 $_TOP/${libgcc_db_objs_libs} | \ - while read _obj; do - printf '_CPPFLAGS.tmp_%s=%s\n' \ - "$( _lookup_objs $_obj srcs )" \ - "$( _lookup_objs $_obj cppflags | xargs )" - done -} - -get_libgcc_gen_srcs_copts () { - cut -f1 $_TOP/${libgcc_db_objs_libs} | \ - while read _obj; do - printf 'COPTS.tmp_%s=%s\n' \ - "$( _lookup_objs $_obj srcs )" \ - "$( _lookup_objs $_obj copts | xargs )" - done -} - -get_libgcc_new_generate () { - local _abi=$1 - - for _lib in libgcc_s.so libgcc.a libgcc_eh.a libgcov.a; do - for _tmpl in tmplsrcs tmplfpsrcs tmplasmsrcs; do - eval get_libgcc_gen_tmplsrcs_${_tmpl} $_lib | \ - write_mk ${libgcc_libs_mk}.${_lib%.*}.tmplsrcs.${_tmpl}.mk - done - - get_libgcc_gen_srcs $_lib | \ - write_mk ${libgcc_libs_mk}.${_lib%.*}.srcs.mk - done - - for _arg in tmplsrcs cppflags copts; do - eval get_libgcc_gen_srcs_${_arg} | \ - eval writefile \$libgcc_srcs_mk_${_arg} - done -} - -##### - -get_libgcc_new () { - _subdir="$1" - _abi="$2" - - # List of generated files. - - _machine_arch_subdir=$_OUTDIRBASE/lib/lib$_subdir/arch${_archsubdir}/$MACHINE_ARCH/$_abi - - libgcc_db_funcs=${_machine_arch_subdir}/funcs - libgcc_db_tmplsrcs=${_machine_arch_subdir}/tmplsrcs - libgcc_db_objs_libs=${_machine_arch_subdir}/objs.libs - libgcc_db_objs_srcs=${_machine_arch_subdir}/objs.srcs - libgcc_db_objs_tmplsrcs=${_machine_arch_subdir}/objs.tmplsrcs - libgcc_db_objs_cppflags=${_machine_arch_subdir}/objs.cppflags - libgcc_db_objs_copts=${_machine_arch_subdir}/objs.copts - - get_libgcc_new_analyze $_abi - - libgcc_libs_mk=${_machine_arch_subdir}/libs - libgcc_srcs_mk=${_machine_arch_subdir}/srcs.mk - libgcc_srcs_mk_tmplsrcs=${_machine_arch_subdir}/srcs.tmplsrcs.mk - libgcc_srcs_mk_cppflags=${_machine_arch_subdir}/srcs.cppflags.mk - libgcc_srcs_mk_copts=${_machine_arch_subdir}/srcs.copts.mk - - get_libgcc_new_generate $_abi -} - -get_libgcc () { - _subdir="$1" - mkdir -p $_OUTDIR/lib/lib$_subdir/arch - - case "$_subdir" in - gcc4|gcc) - _extravars="COLLECT2 UNWIND_H xm_include_list" - _archsubdir="" - ;; - esac - - # DPBIT, FPBIT only used on mn10[23]00, we don't need them. - # XXX we should probably grab everything Just In Case for - # the future. - { - getvars gcc/Makefile \ - INCLUDES LIB2ADD LIB2ADDEH LIB2ADD_ST \ - LIB1ASMFUNCS LIB1ASMSRC \ - LIB2_DIVMOD_FUNCS LIB2FUNCS_ST \ - LIB2FUNCS_EXTRA \ - LIBGCC2_CFLAGS \ - SHLIB_MKMAP SHLIB_MKMAP_OPTS \ - SHLIB_MAPFILES SHLIB_NM_FLAGS \ - EXTRA_HEADERS xm_defines \ - tm_defines ${_extravars} - } | sanitise_includes \ - | write_mk $_OUTDIRBASE/lib/lib$_subdir/arch${_archsubdir}/$MACHINE_ARCH.mk - - # Generate new style files. - if [ -n "${MKNATIVE_LIBGCC_NEW}" ]; then - get_libgcc_new $_subdir $_ABI - fi -} - -##### gnu/lib/libgcov ##### - -get_libgcov () { - _subdir="$1" - - mkdir -p $_OUTDIR/lib/lib$_subdir/libgcov/arch/$MACHINE_ARCH - - { - getvars gcc/Makefile \ - LIBGCOV - } | write_mk $_OUTDIRBASE/lib/lib$_subdir/libgcov/arch/$MACHINE_ARCH/defs.mk - - write_c $_OUTDIRBASE/lib/lib$_subdir/libgcov/arch/$MACHINE_ARCH/gcov-iov.h \ - <$_TMPDIR/gcc/gcov-iov.h - -} - -##### gnu/usr.bin/gcc[34]/libiberty ##### - -get_gcc_libiberty () { - _subdir="$1" - case "$_subdir" in - gcc4) - _libibertydir="usr.bin/$_subdir/libiberty" - ;; - gcc) - _libibertydir="lib/libiberty" - ;; - esac - mkdir -p $_OUTDIR/$_libibertydir/arch/$MACHINE_ARCH - - getvars libiberty/Makefile \ - ALLOCA EXTRA_OFILES LIBOBJS REQUIRED_OFILES \ - | write_mk $_OUTDIRBASE/$_libibertydir/defs.mk - - write_c $_OUTDIRBASE/$_libibertydir/arch/$MACHINE_ARCH/config.h \ - <$_TMPDIR/libiberty/config.h -} - -##### lib/libdecnumber ##### - -get_libdecnumber () { - _subdir="$1" - - mkdir -p $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH - write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/config.h \ - <$_TMPDIR/libdecnumber/config.h -} - -##### lib/libgomp ##### - -get_libgomp () { - _subdir="$1" - - mkdir -p $_OUTDIR/lib/$_subdir/arch/$MACHINE_ARCH - write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/config.h \ - <$_TMPDIR/$_PLATFORM/libgomp/config.h - write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/libgomp_f.h \ - <$_TMPDIR/$_PLATFORM/libgomp/libgomp_f.h - write_mk $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/libgomp.spec \ - <$_TMPDIR/$_PLATFORM/libgomp/libgomp.spec - write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/omp.h \ - <$_TMPDIR/$_PLATFORM/libgomp/omp.h -} - -##### gnu/lib/libobjc ##### - -get_libobjc () { - _subdir="$1/arch/$MACHINE_ARCH" - _options="ALL_OPT_FILES" - _unwind="UNWIND_H" - - mkdir -p $_OUTDIR/lib/$_subdir - - { - if [ -n "$_options" ]; then - getvars gcc/Makefile $_options - fi - getvars $_PLATFORM/libobjc/Makefile \ - ALL_CFLAGS INCLUDES OBJS OBJC_H \ - | sed "s,$_GNU_DIST,\${GNUHOSTDIST},g" - if [ -n "$_unwind" ]; then - getvars gcc/Makefile $_unwind - fi - } | write_mk $_OUTDIRBASE/lib/$_subdir/defs.mk - - write_c $_OUTDIRBASE/lib/$_subdir/config.h \ - <$_TMPDIR/$_PLATFORM/libobjc/config.h -} - -##### gnu/lib/libstdc++-v3 ##### - -get_libstdcxx_v3 () { - _subdir="$1" - mkdir -p $_OUTDIR/lib/$_subdir/arch/$MACHINE_ARCH - - case ${_subdir} in - *) - _src_CC_files="atomicity_file CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_CC CLOCALE_CC BASIC_FILE_CC" - _headers1="host_headers debug_headers tr1_headers c_compatibility_headers_extra tr1_impl_headers parallel_headers decimal_headers" - _headers2="thread_host_headers host_headers_extra" - _build_headers="c++allocator.h c++config.h cxxabi_tweaks.h gthr-default.h gthr-posix.h gthr-single.h gthr-tpf.h gthr.h" - _unwind="UNWIND_H" - ;; - esac - - # build files - for h in $_build_headers; do - write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/$h \ - <$_TMPDIR/$_PLATFORM/libstdc++-v3/include/$_PLATFORM/bits/$h - done - - write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/config.h \ - <$_TMPDIR/$_PLATFORM/libstdc++-v3/config.h - write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/gstdint.h \ - <$_TMPDIR/$_PLATFORM/libstdc++-v3/include/gstdint.h - - { - # libsupc++ - getvars $_PLATFORM/libstdc++-v3/libsupc++/Makefile \ - sources | sed 's/^G_sources=/G_LIBSUPCXX_SOURCES=/' - getvars $_PLATFORM/libstdc++-v3/libsupc++/Makefile \ - c_sources | sed 's/^G_c_sources=/G_LIBSUPCXX_C_SOURCES=/' - - # src - getvars $_PLATFORM/libstdc++-v3/src/Makefile \ - sources $_src_CC_files SECTION_FLAGS | sed 's/^G_sources=/G_SRC_SOURCES=/' - - # include - getvars $_PLATFORM/libstdc++-v3/include/Makefile \ - c_base_headers std_headers | sed -e 's#/[^ ][^ ]*/##g' -e 's/\${GNUHOSTDIST}//g' - getvars $_PLATFORM/libstdc++-v3/include/Makefile \ - bits_headers backward_headers ext_headers c_base_headers_extra \ - $_headers1 | sed -e 's#/[^ ][^ ]*/##g' -e 's/\${GNUHOSTDIST}//g' - getvars $_PLATFORM/libstdc++-v3/include/Makefile \ - $_headers2 | sed -e 's#\./[^ ][^ ]*/##g' -e 's/\${GNUHOSTDIST}//g' - - if [ -n "$_unwind" ]; then - getvars gcc/Makefile $_unwind - fi - } | write_mk $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/defs.mk -} - -##### gnu/usr.bin/gcc* ##### - -get_gcc_bootstrap () { - _subdir="$1" - mkdir -p $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH - for f in auto-host tm config gthr-default; do - write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/gcc/$f.h - done -} - -get_gcc () { - _subdir="$1" - mkdir -p $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH - mkdir -p $_OUTDIR/usr.bin/libcpp/arch/$MACHINE_ARCH - case ${_subdir} in - gcc4) - _buildname="BUILD_" - _libcppsubdir="" - _extravars="TM_H ALL_OPT_FILES" - _hconfig_h="" - _extravars2="tm_file_list build_xm_include_list" - _extravars3="tm_p_include_list" - ;; - - gcc) - _buildname="BUILD_" - _libcppsubdir="" - _extravars="TM_H ALL_OPT_FILES" - _hconfig_h="" - _extravars2="tm_file_list build_xm_include_list" - _extravars3="tm_p_include_list" - ;; - esac - - { - getvars gcc/Makefile \ - ${_buildname}EARLY_SUPPORT ${_buildname}ERRORS ${_buildname}PRINT \ - ${_buildname}RTL ${_buildname}SUPPORT ${_buildname}VARRAY | \ - sed -e 's#build/errors.o#build-errors.o#g' \ - -e 's#build/print-rtl.o#build-print-rtl.o#g' \ - -e 's#build/rtl.o#build-rtl.o#g' \ - -e 's#build/varray.o#build-varray.o#g' \ - -e 's#build/ggc-none.o#build-ggc-none.o#g' \ - -e 's#build/##g' - getvars gcc/Makefile \ - ALL_CFLAGS ALL_CPPFLAGS C_AND_OBJC_OBJS C_OBJS CCCP_OBJS \ - GCOV_OBJS PROTO_OBJS ${_extravars1} \ - INCLUDES md_file OBJC_OBJS OBJS out_file version \ - BUILD_PREFIX RTL_H TREE_H ${_hconfig_h} BASIC_BLOCK_H GCC_H \ - GTFILES_SRCDIR GTFILES_FILES_FILES GTFILES_FILES_LANGS \ - GTFILES GTFILES_LANG_DIR_NAMES \ - tm_defines host_xm_file host_xm_defines tm_p_file \ - target_cpu_default ${_extravars} ${_extravars2} \ - lang_specs_files ${_extravars3} \ - | sanitise_includes - getvars gcc/Makefile \ - LIB2ADDEHDEP | sed 's/unwind.inc//' - getvars gcc/Makefile \ - CXX_OBJS CXX_C_OBJS | sed 's/cp\///g' - getvars gcc/Makefile \ - F77_OBJS | sed 's/f\///g' - case ${_subdir} in - gcc4 | gcc) - getvars libcpp/Makefile \ - libcpp_a_OBJS - ;; - esac - getvars gcc/Makefile \ - ENABLE_SHARED - case ${_subdir} in - gcc4 | gcc) - echo G_SHLIB_LINK="$CC -shared" - echo G_SHLIB_MULTILIB=. - ;; - esac - } | write_mk $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/defs.mk - - case "$_subdir" in - gcc4) - write_c $_OUTDIRBASE/usr.bin/$_subdir/libcpp/arch/$MACHINE_ARCH/config.h <$_TMPDIR/libcpp/config.h - hfiles='auto-host gencheck configargs gthr-default tm bconfig config multilib' - ;; - gcc) - write_c $_OUTDIRBASE/usr.bin/libcpp/arch/$MACHINE_ARCH/config.h <$_TMPDIR/libcpp/config.h - hfiles='auto-host configargs gthr-default tm bconfig config multilib bversion plugin-version' - ;; - esac - for f in $hfiles; do - write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/gcc/$f.h - if [ "${MACHINE_ARCH}" = "powerpc" -a "${f}" = "configargs" ] - then - ex <<__EOF__ $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f.h -/configuration_arguments/ s/$// -ya -i -#ifdef _SOFT_FLOAT -. -pu -s/";$/ -with-float=soft";/ -a -#else -#endif -. -. m +1 -/configure_default_options/ s/{ NULL.*$// -a -#ifdef _SOFT_FLOAT - { "float", "soft" }, -#endif - { NULL, NULL } -}; -. -wq -__EOF__ - fi - done - - # keep identical - for f in all-tree.def; do - cp $_TMPDIR/gcc/$f $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f - done - - # special transforms - for f in gtyp-input.list; do - sed -e 's/^.*external\/gpl3\/gcc\.old\/dist/SRCDIR/' < $_TMPDIR/gcc/$f > $_OUTDIR/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f - done - - # special platforms - if [ "${MACHINE_ARCH}" = "sh3el" -o "${MACHINE_ARCH}" = "sh3eb" ]; then - write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/sysroot-suffix.h <$_TMPDIR/gcc/sysroot-suffix.h - fi -} - -##### main ##### - -case "$1" in -# .mk and .h files for libgcc bootstrap (from host build) - -libgcc4) - get_libgcc gcc4 - get_crtstuff crtstuff4 - exit 0 - ;; - -libgcc45) - _OUTDIR="$_TOP/external/gpl3/gcc.old" - _OUTDIRBASE="external/gpl3/gcc.old" - get_libgcc gcc - get_crtstuff crtstuff - get_libgcov gcc - get_gcc_bootstrap gcc - exit 0 - ;; - -# gcc files -gcc4) - get_gcc gcc4 - get_libgcc gcc4 - get_libgcov gcc4 - get_crtstuff crtstuff4 - get_gcc_libiberty gcc4 - get_libobjc libobjc4 - get_libstdcxx_v3 libstdc++-v3_4 - exit 0 - ;; - -gcc45) - _OUTDIR="$_TOP/external/gpl3/gcc.old" - _OUTDIRBASE="external/gpl3/gcc.old" - get_gcc gcc - get_libgcc gcc - get_libgcov gcc - get_crtstuff crtstuff - get_gcc_libiberty gcc - get_libobjc libobjc - get_libstdcxx_v3 libstdc++-v3 - get_libdecnumber libdecnumber - get_libgomp libgomp - exit 0 - ;; - - -*) echo invalid arguments; exit 1;; -esac diff --git a/tools/gcc/mknative.common b/tools/gcc/mknative.common deleted file mode 100644 index 20f08be15..000000000 --- a/tools/gcc/mknative.common +++ /dev/null @@ -1,101 +0,0 @@ -# $NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp $ -# -# from: NetBSD: mknative,v 1.12 2003/03/05 06:17:17 mrg Exp -# -# shell-fragment common to all "mknative" scripts - -bomb() -{ - echo >&2 "ABORT: $*" - exit 1 -} - -# Make sure we can run OK. -if [ -x "$MAKE" ]; then - : -else - bomb "MAKE not set" -fi - -# usage: getvars MAKEFILE VARNAME [VARNAME...] -# -getvars() -{ - _mf="$1"; shift - case "$MAKE" in - *gmake) - env MAKEFLAGS= $MAKE --quiet -f - -f "$_TMPDIR/$_mf" _x_ < -# -getlinks() -{ - _cs="$1"; shift - _dir="$1"; shift - echo -n G_CONFIGLINKS= - grep "^config_links=" $_cs | sed -e 's@config_links="\([^"]*\)"@\1@g' -e "s@\([^:]*\):\([^ ]*\)@\${GNUHOSTDIST}/${_dir}/\2 \1 @g" -} - -# usage: write_c FILENAME -# -write_c() -{ - echo '/* This file is automatically generated. DO NOT EDIT! */' >$_TOP/$1.tmp || \ - bomb "cannot create $1" - grep '$''NetBSD' $0 | sed 's,[ #$],,g;s,.*,/* Generated from: & */,' >>$_TOP/$1.tmp - echo '$NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp $' | sed 's,[#$],,g;s,.*,/* Generated from: & */,' >>$_TOP/$1.tmp - echo '' >>$_TOP/$1.tmp - writefile $1 -} - -# usage: write_mk FILENAME -# -write_mk() -{ - echo '# This file is automatically generated. DO NOT EDIT!' >$_TOP/$1.tmp || \ - bomb "cannot create $1" - grep '$''NetBSD' $0 | sed 's,[ #$],,g;s,.*,# Generated from: &,' >>$_TOP/$1.tmp - echo '$NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp $' | sed 's,[#$],,g;s,.*,# Generated from: &,' >>$_TOP/$1.tmp - echo '#' >>$_TOP/$1.tmp - writefile $1 -} - -writefile() -{ - sed -e 's,netbsd\(elf\)*1[0-9\.]*\(_\)*[A-Z]*,netbsd\1,' \ - -e 's,^/\* #undef HAVE_MMAP \*/$,#define HAVE_MMAP 1,' \ - >>$_TOP/$1.tmp - - # Compare new file, sans "generated from" comments and RCS Id, - # to old file. If they match, don't change anything. - rm -f $_TMPDIR/.1 $_TMPDIR/.2 - grep -v 'Generated from:' $_TOP/$1 >$_TMPDIR/.1 2>/dev/null - grep -v 'Generated from:' $_TOP/$1.tmp >$_TMPDIR/.2 - - # will not overwrite a file that has the same content - if cmp $_TMPDIR/.1 $_TMPDIR/.2 >/dev/null 2>&1; then - rm -f $_TOP/$1.tmp - else - echo >&2 "$1 changed" - mv -f $_TOP/$1.tmp $_TOP/$1 - fi -} diff --git a/tools/genassym/Makefile b/tools/genassym/Makefile deleted file mode 100644 index c11d136bb..000000000 --- a/tools/genassym/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2012/12/02 12:48:32 apb Exp $ - -.include - -.PATH.sh: ${.CURDIR}/../../usr.bin/genassym - -.-include "${TOOLDIR}/share/compat/defs.mk" - -TIMESTAMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}genassym - -CLEANFILES+= genassym - -.include - -install: ${TIMESTAMP} -${TIMESTAMP}: genassym - ${HOST_INSTALL_FILE} -m ${BINMODE} ${.ALLSRC} ${.TARGET} - -genassym: genassym.sh - ${TOOL_SED} -e "s,/bin/sh,${HOST_BSHELL},g" \ - -e "s,{AWK:=.*},{AWK:="${TOOL_AWK:Q}"}," \ - < ${.ALLSRC} > ${.TARGET} - -realall: genassym diff --git a/tools/gencat/Makefile b/tools/gencat/Makefile deleted file mode 100644 index 07e64344d..000000000 --- a/tools/gencat/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2002/12/08 20:20:00 thorpej Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}gencat -HOST_SRCDIR= usr.bin/gencat - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/gmake/Makefile b/tools/gmake/Makefile deleted file mode 100644 index 544847343..000000000 --- a/tools/gmake/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2014/08/18 06:58:51 christos Exp $ -# - -GNUHOSTDIST= ${.CURDIR}/../../external/gpl2/gmake/dist - -CONFIGURE_ENV+= CC=${HOST_CC:Q} \ - CFLAGS=${HOST_CFLAGS:Q} \ - CPPFLAGS=${HOST_CPPFLAGS:Q} \ - CXX=${HOST_CXX:Q} - -CONFIGURE_ARGS= --program-prefix=${_TOOL_PREFIX}g -CONFIGURE_ARGS+=--disable-nls - -MAKE_ARGS= MAKEINFO=${TOOL_MAKEINFO:Q} - -.NOTPARALLEL: - -.include "${.CURDIR}/../Makefile.gnuhost" diff --git a/tools/gmp/Makefile b/tools/gmp/Makefile deleted file mode 100644 index b8c9b5d86..000000000 --- a/tools/gmp/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2012/04/12 01:05:31 mrg Exp $ -# - -GNUHOSTDIST= ${.CURDIR}/../../external/lgpl3/gmp/dist - -CONFIGURE_ARGS+=--disable-shared - -.include "${.CURDIR}/../Makefile.gnuhost" - -# Don't override CFLAGS and CXXFLAGS, it breaks ABI detection. -# PATH needs special treating since "make" tries to expand $PATH -# when variable is used. -CONFIGURE_ENV:= ${CONFIGURE_ENV:NPATH=*:NCFLAGS=*:NCXXFLAGS=*} \ - PATH="${TOOLDIR:Q}/bin:$$$$PATH" - -.if ${HOST_OSTYPE:C/\-.*//} != "Minix" -# Force avoiding possibly non-executable install-sh. -CONFIGURE_ENV+= ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d" -.endif diff --git a/tools/headerlist b/tools/headerlist deleted file mode 100644 index 0de6ed56f..000000000 --- a/tools/headerlist +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: headerlist,v 1.13 2014/09/19 17:30:13 matt Exp $ -# -# do not edit; this file was automatically generated by: -# NetBSD: mkheaderlist.sh,v 1.1 2007/08/07 12:38:23 yamt Exp - -./arm/include/disklabel.h -./arm/include/elf_machdep.h -./evbarm/include/disklabel.h -./evbarm/include/elf_machdep.h -./i386/include/disklabel.h -./i386/include/elf_machdep.h diff --git a/tools/host-mkdep/Makefile b/tools/host-mkdep/Makefile deleted file mode 100644 index 867bee93f..000000000 --- a/tools/host-mkdep/Makefile +++ /dev/null @@ -1,49 +0,0 @@ -# $NetBSD: Makefile,v 1.12 2012/12/02 12:44:06 apb Exp $ - -HOSTPROG= host-mkdep -HOSTPROGNAME= ${_TOOL_PREFIX}host-mkdep -HOST_BINDIR= ${TOOLDIR}/bin - -NOMAN= # defined -SRCS= # empty - -CLEANFILES+= config.cache config.log config.status host-mkdep - -.include - -# XXX: The configure script needs to use awk, but we can't pass -# AWK=${TOOL_AWK:Q} in CONFIGURE_ENV, because TOOL_AWK is not yet -# available at the time that host-mkdep is built. The configure script -# will try to find some other version of awk. -# -CONFIGURE_ENV= CC=${HOST_CC:Q} - -realall: host-mkdep -host-mkdep: configure host-mkdep.in - -rm -f $@ - ${CONFIGURE_ENV} \ - ${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache - chmod +x $@ - -# Use uninstalled copy of the install program -INSTALL_OBJ!= cd ${NETBSDSRCDIR}/tools/binstall && ${PRINTOBJDIR} -INSTALL= ${INSTALL_OBJ}/xinstall - -# Install rule, copied from src/tools/Makefile.host. -# We can't include Makefile.host because there is no HOST_SRCDIR -# corresponding to host-mkdep. -# -realinstall: install.host -install.host: ${HOST_BINDIR}/${HOSTPROGNAME} -${HOST_BINDIR}/${HOSTPROGNAME}:: ${HOSTPROG} - ${_MKTARGET_INSTALL} - mkdir -p ${HOST_BINDIR} - ${HOST_INSTALL_FILE} -m ${BINMODE} ${HOSTPROG}${HOSTEXEEXT} ${.TARGET} - -.if ${MKUPDATE} == "no" -.PHONY: ${HOST_BINDIR}/${HOSTPROGNAME} -.endif - -# Run by hand, then "configure" script committed: -regen: - cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoconf diff --git a/tools/host-mkdep/configure b/tools/host-mkdep/configure deleted file mode 100755 index 4306f9b33..000000000 --- a/tools/host-mkdep/configure +++ /dev/null @@ -1,2518 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by Autoconf 2.52 for mkdep noversion. -# -# Report bugs to . -# -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 -# Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi - -# Name of the executable. -as_me=`echo "$0" |sed 's,.*[\\/],,'` - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -as_executable_p="test -f" - -# Support unset when possible. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - -# NLS nuisances. -$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } -$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } -$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } -$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } -$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } -$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } -$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } -$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -exec 6>&1 - -# -# Initializations. -# -ac_default_prefix=/usr/local -cross_compiling=no -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Maximum number of lines to put in a shell here document. -# This variable seems obsolete. It should probably be removed, and -# only ac_max_sed_lines should be used. -: ${ac_max_here_lines=38} - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Identity of this package. -PACKAGE_NAME='mkdep' -PACKAGE_TARNAME='mkdep' -PACKAGE_VERSION='noversion' -PACKAGE_STRING='mkdep noversion' -PACKAGE_BUGREPORT='tech-toolchain@NetBSD.org' - -ac_prev= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_option in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - eval "enable_$ac_feature=no" ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "enable_$ac_feature='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package| sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "with_$ac_package='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/-/_/g'` - eval "with_$ac_package=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` - eval "$ac_envvar='$ac_optarg'" - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute paths. -for ac_var in exec_prefix prefix -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; - *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -# Be sure to have absolute paths. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ - localstatedir libdir includedir oldincludedir infodir mandir -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* ) ;; - *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: should be removed in autoconf 3.0. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 - { (exit 1); exit 1; }; } - else - { echo "$as_me: error: cannot find sources in $srcdir" >&2 - { (exit 1); exit 1; }; } - fi -fi -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` -ac_env_build_alias_set=${build_alias+set} -ac_env_build_alias_value=$build_alias -ac_cv_env_build_alias_set=${build_alias+set} -ac_cv_env_build_alias_value=$build_alias -ac_env_host_alias_set=${host_alias+set} -ac_env_host_alias_value=$host_alias -ac_cv_env_host_alias_set=${host_alias+set} -ac_cv_env_host_alias_value=$host_alias -ac_env_target_alias_set=${target_alias+set} -ac_env_target_alias_value=$target_alias -ac_cv_env_target_alias_set=${target_alias+set} -ac_cv_env_target_alias_value=$target_alias -ac_env_CC_set=${CC+set} -ac_env_CC_value=$CC -ac_cv_env_CC_set=${CC+set} -ac_cv_env_CC_value=$CC -ac_env_CFLAGS_set=${CFLAGS+set} -ac_env_CFLAGS_value=$CFLAGS -ac_cv_env_CFLAGS_set=${CFLAGS+set} -ac_cv_env_CFLAGS_value=$CFLAGS -ac_env_LDFLAGS_set=${LDFLAGS+set} -ac_env_LDFLAGS_value=$LDFLAGS -ac_cv_env_LDFLAGS_set=${LDFLAGS+set} -ac_cv_env_LDFLAGS_value=$LDFLAGS -ac_env_CPPFLAGS_set=${CPPFLAGS+set} -ac_env_CPPFLAGS_value=$CPPFLAGS -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} -ac_cv_env_CPPFLAGS_value=$CPPFLAGS -ac_env_CPP_set=${CPP+set} -ac_env_CPP_value=$CPP -ac_cv_env_CPP_set=${CPP+set} -ac_cv_env_CPP_value=$CPP - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat < if you have libraries in a - nonstandard directory - CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have - headers in a nonstandard directory - CPP C preprocessor - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -Report bugs to . -EOF -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - ac_popdir=`pwd` - for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue - cd $ac_subdir - # A "../" for each directory in /$ac_subdir. - ac_dots=`echo $ac_subdir | - sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` - - case $srcdir in - .) # No --srcdir option. We are building in place. - ac_sub_srcdir=$srcdir ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_sub_srcdir=$srcdir/$ac_subdir ;; - *) # Relative path. - ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; - esac - - # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_sub_srcdir/configure.gnu; then - echo - $SHELL $ac_sub_srcdir/configure.gnu --help=recursive - elif test -f $ac_sub_srcdir/configure; then - echo - $SHELL $ac_sub_srcdir/configure --help=recursive - elif test -f $ac_sub_srcdir/configure.ac || - test -f $ac_sub_srcdir/configure.in; then - echo - $ac_configure --help - else - echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 - fi - cd $ac_popdir - done -fi - -test -n "$ac_init_help" && exit 0 -if $ac_init_version; then - cat <<\EOF -mkdep configure noversion -generated by GNU Autoconf 2.52 - -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -EOF - exit 0 -fi -exec 5>config.log -cat >&5 </dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -hostinfo = `(hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -PATH = $PATH - -_ASUNAME -} >&5 - -cat >&5 <\?\"\']*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" - ac_sep=" " ;; - *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" - ac_sep=" " ;; - esac - # Get rid of the leading space. -done - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - echo >&5 - echo "## ----------------- ##" >&5 - echo "## Cache variables. ##" >&5 - echo "## ----------------- ##" >&5 - echo >&5 - # The following way of writing the cache mishandles newlines in values, -{ - (set) 2>&1 | - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in - *ac_space=\ *) - sed -n \ - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" - ;; - *) - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} >&5 - sed "/^$/d" confdefs.h >conftest.log - if test -s conftest.log; then - echo >&5 - echo "## ------------ ##" >&5 - echo "## confdefs.h. ##" >&5 - echo "## ------------ ##" >&5 - echo >&5 - cat conftest.log >&5 - fi - (echo; echo) >&5 - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" >&5 - echo "$as_me: exit $exit_status" >&5 - rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && - exit $exit_status - ' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo >confdefs.h - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - { echo "$as_me:824: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - cat "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:835: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . $cache_file;; - *) . ./$cache_file;; - esac - fi -else - { echo "$as_me:843: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in `(set) 2>&1 | - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val="\$ac_cv_env_${ac_var}_value" - eval ac_new_val="\$ac_env_${ac_var}_value" - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:859: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:863: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:869: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:871: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:873: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. It doesn't matter if - # we pass some twice (in addition to the command line arguments). - if test "$ac_new_set" = set; then - case $ac_new_val in - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" - ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:892: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:894: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -esac -echo "#! $SHELL" >conftest.sh -echo "exit 0" >>conftest.sh -chmod +x conftest.sh -if { (echo "$as_me:914: PATH=\".;.\"; conftest.sh") >&5 - (PATH=".;."; conftest.sh) 2>&5 - ac_status=$? - echo "$as_me:917: \$? = $ac_status" >&5 - (exit $ac_status); }; then - ac_path_separator=';' -else - ac_path_separator=: -fi -PATH_SEPARATOR="$ac_path_separator" -rm -f conftest.sh - -# Extract the first word of "sh", so it can be a program name with args. -set dummy sh; ac_word=$2 -echo "$as_me:928: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_BSHELL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $BSHELL in - [\\/]* | ?:[\\/]*) - ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path. - ;; - *) - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - if $as_executable_p "$ac_dir/$ac_word"; then - ac_cv_path_BSHELL="$ac_dir/$ac_word" - echo "$as_me:945: found $ac_dir/$ac_word" >&5 - break -fi -done - - ;; -esac -fi -BSHELL=$ac_cv_path_BSHELL - -if test -n "$BSHELL"; then - echo "$as_me:956: result: $BSHELL" >&5 -echo "${ECHO_T}$BSHELL" >&6 -else - echo "$as_me:959: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -if test x"$BSHELL" = x; then - { { echo "$as_me:964: error: sh must be somewhere on \$PATH" >&5 -echo "$as_me: error: sh must be somewhere on \$PATH" >&2;} - { (exit 1); exit 1; }; } -fi - -ac_config_files="$ac_config_files host-mkdep" - -for ac_prog in mawk gawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:975: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_AWK="$ac_prog" -echo "$as_me:990: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - echo "$as_me:998: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6 -else - echo "$as_me:1001: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$AWK" && break -done - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -echo "$as_me:1016: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_CC="${ac_tool_prefix}gcc" -echo "$as_me:1031: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:1039: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:1042: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo "$as_me:1051: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_ac_ct_CC="gcc" -echo "$as_me:1066: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:1074: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:1077: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - CC=$ac_ct_CC -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -echo "$as_me:1090: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_CC="${ac_tool_prefix}cc" -echo "$as_me:1105: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:1113: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:1116: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo "$as_me:1125: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_ac_ct_CC="cc" -echo "$as_me:1140: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:1148: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:1151: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - CC=$ac_ct_CC -else - CC="$ac_cv_prog_CC" -fi - -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo "$as_me:1164: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue -fi -ac_cv_prog_CC="cc" -echo "$as_me:1184: found $ac_dir/$ac_word" >&5 -break -done - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" ${1+"$@"} - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:1206: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:1209: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -echo "$as_me:1220: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_CC="$ac_tool_prefix$ac_prog" -echo "$as_me:1235: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:1243: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:1246: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:1259: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_ac_ct_CC="$ac_prog" -echo "$as_me:1274: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:1282: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:1285: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$ac_ct_CC" && break -done - - CC=$ac_ct_CC -fi - -fi - -test -z "$CC" && { { echo "$as_me:1297: error: no acceptable cc found in \$PATH" >&5 -echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:1302:" \ - "checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (eval echo "$as_me:1305: \"$ac_compiler --version &5\"") >&5 - (eval $ac_compiler --version &5) 2>&5 - ac_status=$? - echo "$as_me:1308: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:1310: \"$ac_compiler -v &5\"") >&5 - (eval $ac_compiler -v &5) 2>&5 - ac_status=$? - echo "$as_me:1313: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:1315: \"$ac_compiler -V &5\"") >&5 - (eval $ac_compiler -V &5) 2>&5 - ac_status=$? - echo "$as_me:1318: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -#line 1322 "configure" -#include "confdefs.h" - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -echo "$as_me:1338: checking for C compiler default output" >&5 -echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -if { (eval echo "$as_me:1341: \"$ac_link_default\"") >&5 - (eval $ac_link_default) 2>&5 - ac_status=$? - echo "$as_me:1344: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Find the output, starting from the most likely. This scheme is -# not robust to junk in `.', hence go to wildcards (a.*) only as a last -# resort. -for ac_file in `ls a.exe conftest.exe 2>/dev/null; - ls a.out conftest 2>/dev/null; - ls a.* conftest.* 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; - a.out ) # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - # FIXME: I believe we export ac_cv_exeext for Libtool --akim. - export ac_cv_exeext - break;; - * ) break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -{ { echo "$as_me:1367: error: C compiler cannot create executables" >&5 -echo "$as_me: error: C compiler cannot create executables" >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext -echo "$as_me:1373: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6 - -# Check the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -echo "$as_me:1378: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (eval echo "$as_me:1384: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1387: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:1394: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -echo "$as_me:1402: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - -rm -f a.out a.exe conftest$ac_cv_exeext -ac_clean_files=$ac_clean_files_save -# Check the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -echo "$as_me:1409: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 -echo "$as_me:1411: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6 - -echo "$as_me:1414: checking for executable suffix" >&5 -echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 -if { (eval echo "$as_me:1416: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:1419: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - export ac_cv_exeext - break;; - * ) break;; - esac -done -else - { { echo "$as_me:1435: error: cannot compute EXEEXT: cannot compile and link" >&5 -echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -echo "$as_me:1441: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6 - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -echo "$as_me:1447: checking for object suffix" >&5 -echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 1453 "configure" -#include "confdefs.h" - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (eval echo "$as_me:1465: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1468: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -{ { echo "$as_me:1480: error: cannot compute OBJEXT: cannot compile" >&5 -echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -echo "$as_me:1487: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6 -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -echo "$as_me:1491: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 1497 "configure" -#include "confdefs.h" - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1512: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1515: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1518: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1521: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_compiler_gnu=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -echo "$as_me:1533: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -CFLAGS="-g" -echo "$as_me:1539: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 1545 "configure" -#include "confdefs.h" - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1557: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1560: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1563: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1566: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_prog_cc_g=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:1576: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -# Some people use a C++ compiler to compile C. Since we use `exit', -# in C++ we need to declare it. In case someone uses the same compiler -# for both compiling C and C++ we need to have the C++ compiler decide -# the declaration of exit, since it's the most demanding environment. -cat >conftest.$ac_ext <<_ACEOF -#ifndef __cplusplus - choke me -#endif -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1603: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1606: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1609: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1612: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - for ac_declaration in \ - ''\ - '#include ' \ - 'extern "C" void std::exit (int) throw (); using std::exit;' \ - 'extern "C" void std::exit (int); using std::exit;' \ - 'extern "C" void exit (int) throw ();' \ - 'extern "C" void exit (int);' \ - 'void exit (int);' -do - cat >conftest.$ac_ext <<_ACEOF -#line 1624 "configure" -#include "confdefs.h" -#include -$ac_declaration -int -main () -{ -exit (42); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1637: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1640: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1643: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1646: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -continue -fi -rm -f conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -#line 1656 "configure" -#include "confdefs.h" -$ac_declaration -int -main () -{ -exit (42); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1668: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1671: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1674: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1677: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - break -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -fi -rm -f conftest.$ac_objext conftest.$ac_ext -done -rm -f conftest* -if test -n "$ac_declaration"; then - echo '#ifdef __cplusplus' >>confdefs.h - echo $ac_declaration >>confdefs.h - echo '#endif' >>confdefs.h -fi - -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -fi -rm -f conftest.$ac_objext conftest.$ac_ext -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -echo "$as_me:1709: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -#line 1730 "configure" -#include "confdefs.h" -#include - Syntax error -_ACEOF -if { (eval echo "$as_me:1735: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:1741: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - : -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -#line 1764 "configure" -#include "confdefs.h" -#include -_ACEOF -if { (eval echo "$as_me:1768: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:1774: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -echo "$as_me:1811: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6 -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -#line 1821 "configure" -#include "confdefs.h" -#include - Syntax error -_ACEOF -if { (eval echo "$as_me:1826: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:1832: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - : -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -#line 1855 "configure" -#include "confdefs.h" -#include -_ACEOF -if { (eval echo "$as_me:1859: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:1865: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:1893: error: C preprocessor \"$CPP\" fails sanity check" >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overriden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -{ - (set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} | - sed ' - t clear - : clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - : end' >>confcache -if cmp -s $cache_file confcache; then :; else - if test -w $cache_file; then - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" - cat confcache >$cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/; -s/:*\${srcdir}:*/:/; -s/:*@srcdir@:*/:/; -s/^\([^=]*=[ ]*\):*/\1/; -s/:*$//; -s/^[^=]*=[ ]*$//; -}' -fi - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then we branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -cat >confdef2opt.sed <<\EOF -t clear -: clear -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g -t quote -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g -t quote -d -: quote -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g -s,\[,\\&,g -s,\],\\&,g -s,\$,$$,g -p -EOF -# We use echo to avoid assuming a particular line-breaking character. -# The extra dot is to prevent the shell from consuming trailing -# line-breaks from the sub-command output. A line-break within -# single-quotes doesn't work because, if this script is created in a -# platform that uses two characters for line-breaks (e.g., DOS), tr -# would break. -ac_LF_and_DOT=`echo; echo .` -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` -rm -f confdef2opt.sed - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:2013: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -SHELL=\${CONFIG_SHELL-$SHELL} -ac_cs_invocation="\$0 \$@" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi - -# Name of the executable. -as_me=`echo "$0" |sed 's,.*[\\/],,'` - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -as_executable_p="test -f" - -# Support unset when possible. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - -# NLS nuisances. -$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } -$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } -$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } -$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } -$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } -$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } -$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } -$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } - -exec 6>&1 - -_ACEOF - -# Files that config.status was made for. -if test -n "$ac_config_files"; then - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_headers"; then - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_links"; then - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_commands"; then - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS -fi - -cat >>$CONFIG_STATUS <<\EOF - -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number, then exit - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Report bugs to ." -EOF - -cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "x$1" : 'x\([^=]*\)='` - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` - shift - set dummy "$ac_option" "$ac_optarg" ${1+"$@"} - shift - ;; - -*);; - *) # This is not an option, so the user has probably given explicit - # arguments. - ac_need_defaults=false;; - esac - - case $1 in - # Handling of the options. -EOF -cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF - --version | --vers* | -V ) - echo "$ac_cs_version"; exit 0 ;; - --he | --h) - # Conflict between --help and --header - { { echo "$as_me:2180: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - shift - CONFIG_FILES="$CONFIG_FILES $1" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - shift - CONFIG_HEADERS="$CONFIG_HEADERS $1" - ac_need_defaults=false;; - - # This is an error. - -*) { { echo "$as_me:2199: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" ;; - - esac - shift -done - -exec 5>>config.log -cat >&5 << _ACEOF - -## ----------------------- ## -## Running config.status. ## -## ----------------------- ## - -This file was extended by $as_me (mkdep noversion) 2.52, executed with - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - > $ac_cs_invocation -on `(hostname || uname -n) 2>/dev/null | sed 1q` - -_ACEOF -EOF - -cat >>$CONFIG_STATUS <<\EOF -for ac_config_target in $ac_config_targets -do - case "$ac_config_target" in - # Handling of arguments. - "host-mkdep" ) CONFIG_FILES="$CONFIG_FILES host-mkdep" ;; - *) { { echo "$as_me:2235: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files -fi - -# Create a temporary directory, and hook for its removal unless debugging. -$debug || -{ - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} - -# Create a (secure) tmp directory for tmp files. -: ${TMPDIR=/tmp} -{ - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=$TMPDIR/cs$$-$RANDOM - (umask 077 && mkdir $tmp) -} || -{ - echo "$me: cannot create a temporary directory in $TMPDIR" >&2 - { (exit 1); exit 1; } -} - -EOF - -cat >>$CONFIG_STATUS <\$tmp/subs.sed <<\\CEOF -s,@SHELL@,$SHELL,;t t -s,@exec_prefix@,$exec_prefix,;t t -s,@prefix@,$prefix,;t t -s,@program_transform_name@,$program_transform_name,;t t -s,@bindir@,$bindir,;t t -s,@sbindir@,$sbindir,;t t -s,@libexecdir@,$libexecdir,;t t -s,@datadir@,$datadir,;t t -s,@sysconfdir@,$sysconfdir,;t t -s,@sharedstatedir@,$sharedstatedir,;t t -s,@localstatedir@,$localstatedir,;t t -s,@libdir@,$libdir,;t t -s,@includedir@,$includedir,;t t -s,@oldincludedir@,$oldincludedir,;t t -s,@infodir@,$infodir,;t t -s,@mandir@,$mandir,;t t -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t -s,@build_alias@,$build_alias,;t t -s,@host_alias@,$host_alias,;t t -s,@target_alias@,$target_alias,;t t -s,@ECHO_C@,$ECHO_C,;t t -s,@ECHO_N@,$ECHO_N,;t t -s,@ECHO_T@,$ECHO_T,;t t -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t -s,@DEFS@,$DEFS,;t t -s,@LIBS@,$LIBS,;t t -s,@BSHELL@,$BSHELL,;t t -s,@AWK@,$AWK,;t t -s,@CC@,$CC,;t t -s,@CFLAGS@,$CFLAGS,;t t -s,@LDFLAGS@,$LDFLAGS,;t t -s,@CPPFLAGS@,$CPPFLAGS,;t t -s,@ac_ct_CC@,$ac_ct_CC,;t t -s,@EXEEXT@,$EXEEXT,;t t -s,@OBJEXT@,$OBJEXT,;t t -s,@CPP@,$CPP,;t t -CEOF - -EOF - - cat >>$CONFIG_STATUS <<\EOF - # Split the substitutions into bite-sized pieces for seds with - # small command number limits, like on Digital OSF/1 and HP-UX. - ac_max_sed_lines=48 - ac_sed_frag=1 # Number of current file. - ac_beg=1 # First line for current file. - ac_end=$ac_max_sed_lines # Line after last line for current file. - ac_more_lines=: - ac_sed_cmds= - while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - else - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - fi - if test ! -s $tmp/subs.frag; then - ac_more_lines=false - else - # The purpose of the label and of the branching condition is to - # speed up the sed processing (if there are no `@' at all, there - # is no need to browse any of the substitutions). - # These are the two extra sed commands mentioned above. - (echo ':t - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" - else - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" - fi - ac_sed_frag=`expr $ac_sed_frag + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_lines` - fi - done - if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat - fi -fi # test -n "$CONFIG_FILES" - -EOF -cat >>$CONFIG_STATUS <<\EOF -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; - esac - - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. - ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - { case "$ac_dir" in - [\\/]* | ?:[\\/]* ) as_incr_dir=;; - *) as_incr_dir=.;; -esac -as_dummy="$ac_dir" -for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do - case $as_mkdir_dir in - # Skip DOS drivespec - ?:) as_incr_dir=$as_mkdir_dir ;; - *) - as_incr_dir=$as_incr_dir/$as_mkdir_dir - test -d "$as_incr_dir" || mkdir "$as_incr_dir" - ;; - esac -done; } - - ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` - else - ac_dir_suffix= ac_dots= - fi - - case $srcdir in - .) ac_srcdir=. - if test -z "$ac_dots"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_dots$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_dots$srcdir ;; - esac - - if test x"$ac_file" != x-; then - { echo "$as_me:2434: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - rm -f "$ac_file" - fi - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated automatically by config.status. */ - configure_input="Generated automatically from `echo $ac_file_in | - sed 's,.*/,,'` by configure." - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:2452: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - echo $f;; - *) # Relative - if test -f "$f"; then - # Build tree - echo $f - elif test -f "$srcdir/$f"; then - # Source tree - echo $srcdir/$f - else - # /dev/null tree - { { echo "$as_me:2465: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - fi;; - esac - done` || { (exit 1); exit 1; } -EOF -cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s,@configure_input@,$configure_input,;t t -s,@srcdir@,$ac_srcdir,;t t -s,@top_srcdir@,$ac_top_srcdir,;t t -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out - rm -f $tmp/stdin - if test x"$ac_file" != x-; then - mv $tmp/out $ac_file - else - cat $tmp/out - rm -f $tmp/out - fi - -done -EOF - -cat >>$CONFIG_STATUS <<\EOF - -{ (exit 0); exit 0; } -EOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - exec 5>/dev/null - $SHELL $CONFIG_STATUS || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - diff --git a/tools/host-mkdep/configure.ac b/tools/host-mkdep/configure.ac deleted file mode 100644 index 418862bfd..000000000 --- a/tools/host-mkdep/configure.ac +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: configure.ac,v 1.3 2003/07/26 20:24:00 salo Exp $ -# -# Autoconf definition file for mkdep. -# - -AC_INIT([mkdep], [noversion], [tech-toolchain@NetBSD.org]) - -AC_PATH_PROG(BSHELL, sh, ) -if test x"$BSHELL" = x; then - AC_MSG_ERROR([sh must be somewhere on \$PATH]) -fi - -AC_CONFIG_FILES(host-mkdep) - -AC_PROG_AWK -AC_PROG_CPP - -AC_OUTPUT diff --git a/tools/host-mkdep/host-mkdep.in b/tools/host-mkdep/host-mkdep.in deleted file mode 100644 index 0764cc001..000000000 --- a/tools/host-mkdep/host-mkdep.in +++ /dev/null @@ -1,267 +0,0 @@ -#!@BSHELL@ - -# -# $NetBSD: host-mkdep.in,v 1.31 2015/05/12 00:04:34 christos Exp $ -# -# Copyright (c) 1991, 1993 -# The Regents of the University of California. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# 3. All advertising materials mentioning features or use of this software -# must display the following acknowledgement: -# This product includes software developed by the University of -# California, Berkeley and its contributors. -# 4. Neither the name of the University nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -# SUCH DAMAGE. -# -# @(#)mkdep.old.compiler 8.1 (Berkeley) 6/6/93 -# - -APPEND=false -MERGE=false -OPTIONAL=false -AWK_OPTIONAL= -QUIET=false -CPPFLAGS= -NEWEXT=.o -PREFIX= -OUTFILE=.depend -SRCS= - -usage() -{ - echo "Usage: $0 [-adopq] [-s .suffixes] [-f .depend] -- [flags] file ..." >&2 - exit 1 -} - -set_objlist() -{ - if [ -n "$NEWEXT" ]; then - oifs="$IFS" - IFS=" ," - set -- $NEWEXT - IFS="$oifs" - objlist= - for suf in "$@"; do - objlist="$objlist${objlist:+ }$PREFIX$file$suf" - done - else - objlist="$PREFIX$file" - fi -} - -# A getopt compatible command line parser in shell comands. -# (don't trust the shell builtin getopts to be in a known state on error) -while [ $# -gt 0 ]; do - option="${1#-}" - [ "$option" = "$1" -o -z "$option" ] && break - while - optarg="${option#?}" - option="${option%$optarg}" - - case "-$option" in - -a) APPEND=true;; - -d) MERGE=true;; - -o) OPTIONAL=true; AWK_OPTIONAL='print ".OPTIONAL:" $0';; - -p) NEWEXT=;; - -q) QUIET=true;; - -[iv]) ;; - - -[fPs]) # Options with arguments - [ -z "$optarg" ] && { - [ $# = 1 ] && usage - shift - optarg="$1" - } - case "-$option" in - -f) OUTFILE="$optarg";; - -P) PREFIX="$optarg";; - -s) NEWEXT="$optarg";; - esac - optarg= - ;; - - --) [ -z "$optarg" ] && shift - break 2 - ;; - - *) $MERGE && usage - break 2; - ;; - esac - [ -n "$optarg" ] - do - option="$optarg" - done - shift -done - -[ $# = 0 ] && usage - -if $MERGE; then - SRCS="$*" -else - # - # Process argument list. - # This is tricky, because arguments may contain spaces and other - # escapes characters. The argument list is used like a tail queue. - # $cppargs has one x for each unprocessed argument, so when an - # argument is processed, it is shifted and the corresponding number - # of x's is removed. The advantage to counting is that suffix removal - # works without fork. - # - cppargs= - for arg; do - cppargs="x$cppargs" - done - while [ -n "$cppargs" ]; do - case "$1" in - -L) # takes an arg, but ignored - shift 2 - cppargs=${cppargs%xx} - ;; - - -c|-[lLMOW]*) # takes no extra args - shift - cppargs=${cppargs%x} - ;; - - -[IDU]*) - set -- "$@" "$1" - shift - cppargs=${cppargs%x} - ;; - - -[IDU]|-include|-isystem|-isysroot) - set -- "$@" "$1" "$2" - shift 2 - cppargs=${cppargs%xx} - ;; - - -isystem-cxx|-cxx-isystem) - set -- "$@" "-isystem" "$2" - shift 2 - cppargs=${cppargs%xx} - ;; - -std=*) - set -- "$@" "$1" - shift - cppargs=${cppargs%x} - ;; - - -no-cpp-precomp) # This is a Darwin-specific option. - set -- "$@" "$1" - shift - cppargs=${cppargs%x} - ;; - - -nostdinc*) # This is a gcc/g++ ism; ignore if not gcc/g++ - case "@CFLAGS@" in - *-O2*) # Autoconf puts -O2 when gcc only - set -- "$@" "$1" - ;; - esac - shift - cppargs=${cppargs%x} - ;; - --sysroot*) - shift - ;; - -[iv]) - shift - ;; - -*) - echo "$0: Unknown option: $1" 1>&2 # all other -options - exit 1 - ;; - - *) - SRCS="$SRCS $1" # source file - shift - cppargs=${cppargs%x} - ;; - esac - done -fi - -[ -z "$SRCS" ] && usage - -TMP=/tmp/mkdep$$ -rm -f $TMP - -trap 'rm -f $TMP; exit 1' 1 2 3 13 15 - -if $MERGE; then - for f in $SRCS; do - if [ ! -f "$f" ]; then - if ! $QUIET; then echo "$0: Ignoring $f" >&2; fi - continue - fi - while IFS=':'; read target dependents; do - IFS= - t1="${target#* }" - file="${target%.o}" - if [ "$t1" = "$target" -a "$file" != "$target" ]; then - set_objlist $file - target="$objlist" - fi - echo "$target:$dependents" - if "$OPTIONAL"; then - echo ".OPTIONAL:$dependents" - fi - done <$f - done >$TMP -else - for f in $SRCS; do - file=${f##*/} - file=${file%.*} - set_objlist $file - - ( (@CPP@ "$@" $f; echo $? >&3) | @AWK@ ' - /^#/ { - # Be as tolerant as possible. - sub(/^#(line)? [ 0-9]*\"?/, "") - sub(/^#(pragma).*/, "") - sub(/^<.*/, "") - sub(/\".*$/, "") - sub(/^\.\//, "") - sub(/ [ 0-9]*$/, "") - - if ($0 in seenfiles) next - if ($0 ~ /y.tab.c/) next - - seenfiles[$0] = 1 - print "'"$objlist"'" ": " $0 - '"$AWK_OPTIONAL"' - } - ' >> $TMP) 3>&1 | (read a; exit $a) - done -fi - -if $APPEND; then - cat $TMP >> $OUTFILE -else - cat $TMP > $OUTFILE -fi - -rm -f $TMP -exit 0 diff --git a/tools/installboot/Makefile b/tools/installboot/Makefile deleted file mode 100644 index dd0e97ca3..000000000 --- a/tools/installboot/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# $NetBSD: Makefile,v 1.11 2011/03/06 18:15:30 bouyer Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}installboot -HOST_SRCDIR= usr.sbin/installboot - -HOST_CPPFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/../mips-elf2ecoff -HOST_CPPFLAGS+= -I${TOOLDIR}/include/nbinclude - -.include "${.CURDIR}/../Makefile.nbincludes" -.include "${.CURDIR}/../Makefile.host" - diff --git a/tools/join/Makefile b/tools/join/Makefile deleted file mode 100644 index 22081cfb3..000000000 --- a/tools/join/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2007/01/14 16:17:29 apb Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}join -HOST_SRCDIR= usr.bin/join - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/lex/Makefile b/tools/lex/Makefile deleted file mode 100644 index 08df7227d..000000000 --- a/tools/lex/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -# $NetBSD: Makefile,v 1.9 2009/10/30 00:30:20 christos Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}lex -HOST_SRCDIR= external/bsd/flex/bin - -.if ${HOST_OSTYPE:C/\-.*//} == "Minix" -HOST_LDFLAGS+= -static -.endif - -.include "${.CURDIR}/../Makefile.host" -HOST_CPPFLAGS+= -DM4=\"${TOOL_M4}\" - -.y.c .l.c .y.h: - @true - -scan.c: - echo '#include ' >$@ -parse.c: - echo '#include ' >$@ -parse.h: - echo '#include ' >$@ - -scan.c: parse.h - -CLEANFILES+=scan.c parse.c parse.h diff --git a/tools/llvm-clang-tblgen/Makefile b/tools/llvm-clang-tblgen/Makefile deleted file mode 100644 index af7645a27..000000000 --- a/tools/llvm-clang-tblgen/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/10/11 13:54:01 joerg Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}clang-tblgen -HOSTPROG_CXX= ${_TOOL_PREFIX}clang-tblgen -HOST_SRCDIR= external/bsd/llvm/bin/clang-tblgen - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/llvm-clang/Makefile b/tools/llvm-clang/Makefile deleted file mode 100644 index 6d0025b4e..000000000 --- a/tools/llvm-clang/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2011/03/18 23:32:04 joerg Exp $ - -HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-clang -HOSTPROG_CXX= ${MACHINE_GNU_PLATFORM}-clang -HOST_SRCDIR= external/bsd/llvm/bin/clang - -.include "${.CURDIR}/../Makefile.host" - -install.host: ${HOST_BINDIR}/${MACHINE_GNU_PLATFORM}-clang++ -install.host: ${HOST_BINDIR}/${MACHINE_GNU_PLATFORM}-clang-cpp - -${HOST_BINDIR}/${MACHINE_GNU_PLATFORM}-clang++: - ${_MKTARGET_INSTALL} - mkdir -p ${HOST_BINDIR} - ${HOST_INSTALL_SYMLINK} ${HOSTPROGNAME} ${.TARGET} - -${HOST_BINDIR}/${MACHINE_GNU_PLATFORM}-clang-cpp: - ${_MKTARGET_INSTALL} - mkdir -p ${HOST_BINDIR} - ${HOST_INSTALL_SYMLINK} ${HOSTPROGNAME} ${.TARGET} diff --git a/tools/llvm-include/Makefile b/tools/llvm-include/Makefile deleted file mode 100644 index 277cb946d..000000000 --- a/tools/llvm-include/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2012/06/17 07:40:25 joerg Exp $ - -HOST_BUILD= - -.include "${.PARSEDIR}/../llvm/Makefile.inc" - -.include "${LLVM_TOPLEVEL}/Makefile.inc" -.include "${LLVM_TOPLEVEL}/include/Makefile" diff --git a/tools/llvm-lib/Makefile b/tools/llvm-lib/Makefile deleted file mode 100644 index 87cf56754..000000000 --- a/tools/llvm-lib/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2011/07/05 17:15:51 joerg Exp $ - -.include - -NO_LLVM_DEVELOPER= yes - -.include "${.PARSEDIR}/../llvm/Makefile.inc" - -.include "${LLVM_TOPLEVEL}/lib/Makefile" diff --git a/tools/llvm-lib/Makefile.inc b/tools/llvm-lib/Makefile.inc deleted file mode 100644 index d91f5d91b..000000000 --- a/tools/llvm-lib/Makefile.inc +++ /dev/null @@ -1,10 +0,0 @@ -# $NetBSD: Makefile.inc,v 1.1 2011/02/06 01:14:12 joerg Exp $ - -.include "${.PARSEDIR}/../llvm/Makefile.inc" - -HOSTLIB= ${LIB} - -.include "${LLVM_TOPLEVEL}/lib/Makefile.inc" -.include "${LLVM_TOPLEVEL}/lib/${.CURDIR:T}/Makefile" - -HOST_CPPFLAGS:= ${HOST_CPPFLAGS:N-Wp,-iremap,*} diff --git a/tools/llvm-lib/libLLVMAArch64AsmParser/Makefile b/tools/llvm-lib/libLLVMAArch64AsmParser/Makefile deleted file mode 100644 index 3d86ef6cb..000000000 --- a/tools/llvm-lib/libLLVMAArch64AsmParser/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/04 15:00:36 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMAArch64AsmPrinter/Makefile b/tools/llvm-lib/libLLVMAArch64AsmPrinter/Makefile deleted file mode 100644 index 3d86ef6cb..000000000 --- a/tools/llvm-lib/libLLVMAArch64AsmPrinter/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/04 15:00:36 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMAArch64CodeGen/Makefile b/tools/llvm-lib/libLLVMAArch64CodeGen/Makefile deleted file mode 100644 index 3d86ef6cb..000000000 --- a/tools/llvm-lib/libLLVMAArch64CodeGen/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/04 15:00:36 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMAArch64Disassembler/Makefile b/tools/llvm-lib/libLLVMAArch64Disassembler/Makefile deleted file mode 100644 index 3d86ef6cb..000000000 --- a/tools/llvm-lib/libLLVMAArch64Disassembler/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/04 15:00:36 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMAArch64MCTargetDesc/Makefile b/tools/llvm-lib/libLLVMAArch64MCTargetDesc/Makefile deleted file mode 100644 index 4c56f01df..000000000 --- a/tools/llvm-lib/libLLVMAArch64MCTargetDesc/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/04 15:00:37 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMAArch64TargetInfo/Makefile b/tools/llvm-lib/libLLVMAArch64TargetInfo/Makefile deleted file mode 100644 index 4c56f01df..000000000 --- a/tools/llvm-lib/libLLVMAArch64TargetInfo/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/04 15:00:37 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMAArch64Utils/Makefile b/tools/llvm-lib/libLLVMAArch64Utils/Makefile deleted file mode 100644 index a9d6e1743..000000000 --- a/tools/llvm-lib/libLLVMAArch64Utils/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/19 12:35:43 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMARMAsmParser/Makefile b/tools/llvm-lib/libLLVMARMAsmParser/Makefile deleted file mode 100644 index 0011f6d6e..000000000 --- a/tools/llvm-lib/libLLVMARMAsmParser/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/05 17:22:20 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMARMAsmPrinter/Makefile b/tools/llvm-lib/libLLVMARMAsmPrinter/Makefile deleted file mode 100644 index 5c6bf3541..000000000 --- a/tools/llvm-lib/libLLVMARMAsmPrinter/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/05 17:22:21 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMARMCodeGen/Makefile b/tools/llvm-lib/libLLVMARMCodeGen/Makefile deleted file mode 100644 index 5c6bf3541..000000000 --- a/tools/llvm-lib/libLLVMARMCodeGen/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/05 17:22:21 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMARMDisassembler/Makefile b/tools/llvm-lib/libLLVMARMDisassembler/Makefile deleted file mode 100644 index 5c6bf3541..000000000 --- a/tools/llvm-lib/libLLVMARMDisassembler/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/05 17:22:21 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMARMMCTargetDesc/Makefile b/tools/llvm-lib/libLLVMARMMCTargetDesc/Makefile deleted file mode 100644 index f88f9077a..000000000 --- a/tools/llvm-lib/libLLVMARMMCTargetDesc/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/07 21:59:14 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMARMTargetInfo/Makefile b/tools/llvm-lib/libLLVMARMTargetInfo/Makefile deleted file mode 100644 index 5c6bf3541..000000000 --- a/tools/llvm-lib/libLLVMARMTargetInfo/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/05 17:22:21 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMAnalysis/Makefile b/tools/llvm-lib/libLLVMAnalysis/Makefile deleted file mode 100644 index 758cae9ab..000000000 --- a/tools/llvm-lib/libLLVMAnalysis/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:12 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMAsmParser/Makefile b/tools/llvm-lib/libLLVMAsmParser/Makefile deleted file mode 100644 index 758cae9ab..000000000 --- a/tools/llvm-lib/libLLVMAsmParser/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:12 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMAsmPrinter/Makefile b/tools/llvm-lib/libLLVMAsmPrinter/Makefile deleted file mode 100644 index ac3903498..000000000 --- a/tools/llvm-lib/libLLVMAsmPrinter/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:13 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMBitReader/Makefile b/tools/llvm-lib/libLLVMBitReader/Makefile deleted file mode 100644 index ac3903498..000000000 --- a/tools/llvm-lib/libLLVMBitReader/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:13 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMBitWriter/Makefile b/tools/llvm-lib/libLLVMBitWriter/Makefile deleted file mode 100644 index ac3903498..000000000 --- a/tools/llvm-lib/libLLVMBitWriter/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:13 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMCodeGen/Makefile b/tools/llvm-lib/libLLVMCodeGen/Makefile deleted file mode 100644 index 64cae1977..000000000 --- a/tools/llvm-lib/libLLVMCodeGen/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:14 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMDebugInfo/Makefile b/tools/llvm-lib/libLLVMDebugInfo/Makefile deleted file mode 100644 index 3b5b2a742..000000000 --- a/tools/llvm-lib/libLLVMDebugInfo/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/05/30 18:28:16 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMIR/Makefile b/tools/llvm-lib/libLLVMIR/Makefile deleted file mode 100644 index f5bd00f3d..000000000 --- a/tools/llvm-lib/libLLVMIR/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/01/23 15:03:01 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMIRReader/Makefile b/tools/llvm-lib/libLLVMIRReader/Makefile deleted file mode 100644 index 99ba6596d..000000000 --- a/tools/llvm-lib/libLLVMIRReader/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/04/25 13:59:58 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMInstCombine/Makefile b/tools/llvm-lib/libLLVMInstCombine/Makefile deleted file mode 100644 index 64cae1977..000000000 --- a/tools/llvm-lib/libLLVMInstCombine/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:14 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMInstrumentation/Makefile b/tools/llvm-lib/libLLVMInstrumentation/Makefile deleted file mode 100644 index d84e16b58..000000000 --- a/tools/llvm-lib/libLLVMInstrumentation/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/05/12 14:56:24 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMLTO/Makefile b/tools/llvm-lib/libLLVMLTO/Makefile deleted file mode 100644 index 0a0aa6930..000000000 --- a/tools/llvm-lib/libLLVMLTO/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:19 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMLinker/Makefile b/tools/llvm-lib/libLLVMLinker/Makefile deleted file mode 100644 index 6b404b3c8..000000000 --- a/tools/llvm-lib/libLLVMLinker/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/11/03 17:52:53 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMMC/Makefile b/tools/llvm-lib/libLLVMMC/Makefile deleted file mode 100644 index 64cae1977..000000000 --- a/tools/llvm-lib/libLLVMMC/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:14 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMMCDisassembler/Makefile b/tools/llvm-lib/libLLVMMCDisassembler/Makefile deleted file mode 100644 index dd8481d20..000000000 --- a/tools/llvm-lib/libLLVMMCDisassembler/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:15 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMMCParser/Makefile b/tools/llvm-lib/libLLVMMCParser/Makefile deleted file mode 100644 index dd8481d20..000000000 --- a/tools/llvm-lib/libLLVMMCParser/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:15 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMMipsAsmParser/Makefile b/tools/llvm-lib/libLLVMMipsAsmParser/Makefile deleted file mode 100644 index 9e0eb0aa2..000000000 --- a/tools/llvm-lib/libLLVMMipsAsmParser/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2012/01/17 15:51:55 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMMipsAsmPrinter/Makefile b/tools/llvm-lib/libLLVMMipsAsmPrinter/Makefile deleted file mode 100644 index b2dcaf21a..000000000 --- a/tools/llvm-lib/libLLVMMipsAsmPrinter/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/13 23:48:30 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMMipsCodeGen/Makefile b/tools/llvm-lib/libLLVMMipsCodeGen/Makefile deleted file mode 100644 index 0a459623a..000000000 --- a/tools/llvm-lib/libLLVMMipsCodeGen/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/05 19:37:11 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMMipsDisassembler/Makefile b/tools/llvm-lib/libLLVMMipsDisassembler/Makefile deleted file mode 100644 index c405cea5b..000000000 --- a/tools/llvm-lib/libLLVMMipsDisassembler/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2012/09/23 17:22:26 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMMipsMCTargetDesc/Makefile b/tools/llvm-lib/libLLVMMipsMCTargetDesc/Makefile deleted file mode 100644 index 624c78d4d..000000000 --- a/tools/llvm-lib/libLLVMMipsMCTargetDesc/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/17 20:07:56 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMMipsTargetInfo/Makefile b/tools/llvm-lib/libLLVMMipsTargetInfo/Makefile deleted file mode 100644 index 0a459623a..000000000 --- a/tools/llvm-lib/libLLVMMipsTargetInfo/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/05 19:37:11 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMObjCARC/Makefile b/tools/llvm-lib/libLLVMObjCARC/Makefile deleted file mode 100644 index 4c56f01df..000000000 --- a/tools/llvm-lib/libLLVMObjCARC/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/04 15:00:37 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMObject/Makefile b/tools/llvm-lib/libLLVMObject/Makefile deleted file mode 100644 index 5ee6a8ffa..000000000 --- a/tools/llvm-lib/libLLVMObject/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/05/28 17:37:35 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMOption/Makefile b/tools/llvm-lib/libLLVMOption/Makefile deleted file mode 100644 index 378347f7c..000000000 --- a/tools/llvm-lib/libLLVMOption/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/07/07 21:36:44 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMPowerPCAsmParser/Makefile b/tools/llvm-lib/libLLVMPowerPCAsmParser/Makefile deleted file mode 100644 index 5ee6a8ffa..000000000 --- a/tools/llvm-lib/libLLVMPowerPCAsmParser/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/05/28 17:37:35 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMPowerPCAsmPrinter/Makefile b/tools/llvm-lib/libLLVMPowerPCAsmPrinter/Makefile deleted file mode 100644 index 9f45c66c9..000000000 --- a/tools/llvm-lib/libLLVMPowerPCAsmPrinter/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/04 22:37:58 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMPowerPCCodeGen/Makefile b/tools/llvm-lib/libLLVMPowerPCCodeGen/Makefile deleted file mode 100644 index 9f45c66c9..000000000 --- a/tools/llvm-lib/libLLVMPowerPCCodeGen/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/04 22:37:58 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMPowerPCDisassembler/Makefile b/tools/llvm-lib/libLLVMPowerPCDisassembler/Makefile deleted file mode 100644 index 984c61269..000000000 --- a/tools/llvm-lib/libLLVMPowerPCDisassembler/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/01/05 16:38:07 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMPowerPCMCTargetDesc/Makefile b/tools/llvm-lib/libLLVMPowerPCMCTargetDesc/Makefile deleted file mode 100644 index 624c78d4d..000000000 --- a/tools/llvm-lib/libLLVMPowerPCMCTargetDesc/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/17 20:07:56 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMPowerPCTargetInfo/Makefile b/tools/llvm-lib/libLLVMPowerPCTargetInfo/Makefile deleted file mode 100644 index 9f45c66c9..000000000 --- a/tools/llvm-lib/libLLVMPowerPCTargetInfo/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/04 22:37:58 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMProfileData/Makefile b/tools/llvm-lib/libLLVMProfileData/Makefile deleted file mode 100644 index 3b5b2a742..000000000 --- a/tools/llvm-lib/libLLVMProfileData/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/05/30 18:28:16 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMRuntimeDyld/Makefile b/tools/llvm-lib/libLLVMRuntimeDyld/Makefile deleted file mode 100644 index f6445ad17..000000000 --- a/tools/llvm-lib/libLLVMRuntimeDyld/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/05/12 14:56:25 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMScalarOpts/Makefile b/tools/llvm-lib/libLLVMScalarOpts/Makefile deleted file mode 100644 index dd8481d20..000000000 --- a/tools/llvm-lib/libLLVMScalarOpts/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:15 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMSelectionDAG/Makefile b/tools/llvm-lib/libLLVMSelectionDAG/Makefile deleted file mode 100644 index 2ca42e2c6..000000000 --- a/tools/llvm-lib/libLLVMSelectionDAG/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:16 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMSparcAsmParser/Makefile b/tools/llvm-lib/libLLVMSparcAsmParser/Makefile deleted file mode 100644 index 7d68dbafe..000000000 --- a/tools/llvm-lib/libLLVMSparcAsmParser/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/01/15 22:21:33 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMSparcAsmPrinter/Makefile b/tools/llvm-lib/libLLVMSparcAsmPrinter/Makefile deleted file mode 100644 index 984c61269..000000000 --- a/tools/llvm-lib/libLLVMSparcAsmPrinter/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/01/05 16:38:07 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMSparcCodeGen/Makefile b/tools/llvm-lib/libLLVMSparcCodeGen/Makefile deleted file mode 100644 index 6dc21df0c..000000000 --- a/tools/llvm-lib/libLLVMSparcCodeGen/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/05 14:15:56 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMSparcDisassembler/Makefile b/tools/llvm-lib/libLLVMSparcDisassembler/Makefile deleted file mode 100644 index 6e64ffdea..000000000 --- a/tools/llvm-lib/libLLVMSparcDisassembler/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/01/15 22:21:34 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMSparcMCTargetDesc/Makefile b/tools/llvm-lib/libLLVMSparcMCTargetDesc/Makefile deleted file mode 100644 index 624c78d4d..000000000 --- a/tools/llvm-lib/libLLVMSparcMCTargetDesc/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/17 20:07:56 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMSparcTargetInfo/Makefile b/tools/llvm-lib/libLLVMSparcTargetInfo/Makefile deleted file mode 100644 index 6dc21df0c..000000000 --- a/tools/llvm-lib/libLLVMSparcTargetInfo/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/05 14:15:56 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMSupport/Makefile b/tools/llvm-lib/libLLVMSupport/Makefile deleted file mode 100644 index 2ca42e2c6..000000000 --- a/tools/llvm-lib/libLLVMSupport/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:16 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMTableGen/Makefile b/tools/llvm-lib/libLLVMTableGen/Makefile deleted file mode 100644 index f6236ec64..000000000 --- a/tools/llvm-lib/libLLVMTableGen/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/10/11 13:54:01 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMTarget/Makefile b/tools/llvm-lib/libLLVMTarget/Makefile deleted file mode 100644 index 2ca42e2c6..000000000 --- a/tools/llvm-lib/libLLVMTarget/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:16 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMTransformsUtils/Makefile b/tools/llvm-lib/libLLVMTransformsUtils/Makefile deleted file mode 100644 index 13e16500e..000000000 --- a/tools/llvm-lib/libLLVMTransformsUtils/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:17 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMVectorize/Makefile b/tools/llvm-lib/libLLVMVectorize/Makefile deleted file mode 100644 index cbdaa8368..000000000 --- a/tools/llvm-lib/libLLVMVectorize/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2012/02/28 17:09:29 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMX86AsmParser/Makefile b/tools/llvm-lib/libLLVMX86AsmParser/Makefile deleted file mode 100644 index 13e16500e..000000000 --- a/tools/llvm-lib/libLLVMX86AsmParser/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:17 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMX86AsmPrinter/Makefile b/tools/llvm-lib/libLLVMX86AsmPrinter/Makefile deleted file mode 100644 index 13e16500e..000000000 --- a/tools/llvm-lib/libLLVMX86AsmPrinter/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:17 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMX86CodeGen/Makefile b/tools/llvm-lib/libLLVMX86CodeGen/Makefile deleted file mode 100644 index 6fca88205..000000000 --- a/tools/llvm-lib/libLLVMX86CodeGen/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:18 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMX86Disassembler/Makefile b/tools/llvm-lib/libLLVMX86Disassembler/Makefile deleted file mode 100644 index 6fca88205..000000000 --- a/tools/llvm-lib/libLLVMX86Disassembler/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:18 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMX86MCTargetDesc/Makefile b/tools/llvm-lib/libLLVMX86MCTargetDesc/Makefile deleted file mode 100644 index b2dcaf21a..000000000 --- a/tools/llvm-lib/libLLVMX86MCTargetDesc/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/13 23:48:30 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMX86TargetInfo/Makefile b/tools/llvm-lib/libLLVMX86TargetInfo/Makefile deleted file mode 100644 index 6fca88205..000000000 --- a/tools/llvm-lib/libLLVMX86TargetInfo/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:18 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMX86Utils/Makefile b/tools/llvm-lib/libLLVMX86Utils/Makefile deleted file mode 100644 index e7596c5b6..000000000 --- a/tools/llvm-lib/libLLVMX86Utils/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/23 03:09:04 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMgold/Makefile b/tools/llvm-lib/libLLVMgold/Makefile deleted file mode 100644 index 0a0aa6930..000000000 --- a/tools/llvm-lib/libLLVMgold/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:19 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMipa/Makefile b/tools/llvm-lib/libLLVMipa/Makefile deleted file mode 100644 index 0a0aa6930..000000000 --- a/tools/llvm-lib/libLLVMipa/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:19 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libLLVMipo/Makefile b/tools/llvm-lib/libLLVMipo/Makefile deleted file mode 100644 index 0a0aa6930..000000000 --- a/tools/llvm-lib/libLLVMipo/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:19 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerADT/Makefile b/tools/llvm-lib/libMCLinkerADT/Makefile deleted file mode 100644 index c6a09e4ec..000000000 --- a/tools/llvm-lib/libMCLinkerADT/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:11 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerARMCodeGen/Makefile b/tools/llvm-lib/libMCLinkerARMCodeGen/Makefile deleted file mode 100644 index 874d47b31..000000000 --- a/tools/llvm-lib/libMCLinkerARMCodeGen/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:12 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerARMTargetInfo/Makefile b/tools/llvm-lib/libMCLinkerARMTargetInfo/Makefile deleted file mode 100644 index 874d47b31..000000000 --- a/tools/llvm-lib/libMCLinkerARMTargetInfo/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:12 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerCodeGen/Makefile b/tools/llvm-lib/libMCLinkerCodeGen/Makefile deleted file mode 100644 index 874d47b31..000000000 --- a/tools/llvm-lib/libMCLinkerCodeGen/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:12 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerCore/Makefile b/tools/llvm-lib/libMCLinkerCore/Makefile deleted file mode 100644 index 874d47b31..000000000 --- a/tools/llvm-lib/libMCLinkerCore/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:12 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerFragment/Makefile b/tools/llvm-lib/libMCLinkerFragment/Makefile deleted file mode 100644 index 874d47b31..000000000 --- a/tools/llvm-lib/libMCLinkerFragment/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:12 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerLD/Makefile b/tools/llvm-lib/libMCLinkerLD/Makefile deleted file mode 100644 index 874d47b31..000000000 --- a/tools/llvm-lib/libMCLinkerLD/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:12 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerMC/Makefile b/tools/llvm-lib/libMCLinkerMC/Makefile deleted file mode 100644 index 874d47b31..000000000 --- a/tools/llvm-lib/libMCLinkerMC/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:12 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerMipsCodeGen/Makefile b/tools/llvm-lib/libMCLinkerMipsCodeGen/Makefile deleted file mode 100644 index 38fbac4db..000000000 --- a/tools/llvm-lib/libMCLinkerMipsCodeGen/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:13 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerMipsTargetInfo/Makefile b/tools/llvm-lib/libMCLinkerMipsTargetInfo/Makefile deleted file mode 100644 index 38fbac4db..000000000 --- a/tools/llvm-lib/libMCLinkerMipsTargetInfo/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:13 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerObject/Makefile b/tools/llvm-lib/libMCLinkerObject/Makefile deleted file mode 100644 index 38fbac4db..000000000 --- a/tools/llvm-lib/libMCLinkerObject/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:13 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerSupport/Makefile b/tools/llvm-lib/libMCLinkerSupport/Makefile deleted file mode 100644 index 38fbac4db..000000000 --- a/tools/llvm-lib/libMCLinkerSupport/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:13 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerTarget/Makefile b/tools/llvm-lib/libMCLinkerTarget/Makefile deleted file mode 100644 index 38fbac4db..000000000 --- a/tools/llvm-lib/libMCLinkerTarget/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:13 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerX86CodeGen/Makefile b/tools/llvm-lib/libMCLinkerX86CodeGen/Makefile deleted file mode 100644 index 38fbac4db..000000000 --- a/tools/llvm-lib/libMCLinkerX86CodeGen/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:13 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libMCLinkerX86TargetInfo/Makefile b/tools/llvm-lib/libMCLinkerX86TargetInfo/Makefile deleted file mode 100644 index 38fbac4db..000000000 --- a/tools/llvm-lib/libMCLinkerX86TargetInfo/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:13 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangARCMigrate/Makefile b/tools/llvm-lib/libclangARCMigrate/Makefile deleted file mode 100644 index 2ca812ff0..000000000 --- a/tools/llvm-lib/libclangARCMigrate/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/07/04 16:10:40 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangAST/Makefile b/tools/llvm-lib/libclangAST/Makefile deleted file mode 100644 index 0a0aa6930..000000000 --- a/tools/llvm-lib/libclangAST/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:19 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangAnalysis/Makefile b/tools/llvm-lib/libclangAnalysis/Makefile deleted file mode 100644 index 0a0aa6930..000000000 --- a/tools/llvm-lib/libclangAnalysis/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:19 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangBasic/Makefile b/tools/llvm-lib/libclangBasic/Makefile deleted file mode 100644 index 6822d33fb..000000000 --- a/tools/llvm-lib/libclangBasic/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:20 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangCodeGen/Makefile b/tools/llvm-lib/libclangCodeGen/Makefile deleted file mode 100644 index 6822d33fb..000000000 --- a/tools/llvm-lib/libclangCodeGen/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:20 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangDriver/Makefile b/tools/llvm-lib/libclangDriver/Makefile deleted file mode 100644 index 6822d33fb..000000000 --- a/tools/llvm-lib/libclangDriver/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:20 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangEdit/Makefile b/tools/llvm-lib/libclangEdit/Makefile deleted file mode 100644 index 8a76794fe..000000000 --- a/tools/llvm-lib/libclangEdit/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2012/04/04 10:42:05 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangFrontend/Makefile b/tools/llvm-lib/libclangFrontend/Makefile deleted file mode 100644 index 43103acff..000000000 --- a/tools/llvm-lib/libclangFrontend/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:21 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangFrontendRewrite/Makefile b/tools/llvm-lib/libclangFrontendRewrite/Makefile deleted file mode 100644 index 25adc0528..000000000 --- a/tools/llvm-lib/libclangFrontendRewrite/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/08/10 17:32:54 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangFrontendTool/Makefile b/tools/llvm-lib/libclangFrontendTool/Makefile deleted file mode 100644 index 43103acff..000000000 --- a/tools/llvm-lib/libclangFrontendTool/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:21 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangIndex/Makefile b/tools/llvm-lib/libclangIndex/Makefile deleted file mode 100644 index 43103acff..000000000 --- a/tools/llvm-lib/libclangIndex/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:21 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangLex/Makefile b/tools/llvm-lib/libclangLex/Makefile deleted file mode 100644 index 43103acff..000000000 --- a/tools/llvm-lib/libclangLex/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:21 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangParse/Makefile b/tools/llvm-lib/libclangParse/Makefile deleted file mode 100644 index 120e4d300..000000000 --- a/tools/llvm-lib/libclangParse/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:22 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangRewrite/Makefile b/tools/llvm-lib/libclangRewrite/Makefile deleted file mode 100644 index f82199c7c..000000000 --- a/tools/llvm-lib/libclangRewrite/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2014/08/10 17:34:19 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangSema/Makefile b/tools/llvm-lib/libclangSema/Makefile deleted file mode 100644 index 120e4d300..000000000 --- a/tools/llvm-lib/libclangSema/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:22 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangSerialization/Makefile b/tools/llvm-lib/libclangSerialization/Makefile deleted file mode 100644 index 06c1faecc..000000000 --- a/tools/llvm-lib/libclangSerialization/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:23 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangStaticAnalyzerCheckers/Makefile b/tools/llvm-lib/libclangStaticAnalyzerCheckers/Makefile deleted file mode 100644 index 06c1faecc..000000000 --- a/tools/llvm-lib/libclangStaticAnalyzerCheckers/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:23 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangStaticAnalyzerCore/Makefile b/tools/llvm-lib/libclangStaticAnalyzerCore/Makefile deleted file mode 100644 index 529917a5f..000000000 --- a/tools/llvm-lib/libclangStaticAnalyzerCore/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/17 18:35:37 joerg Exp $ - -.include diff --git a/tools/llvm-lib/libclangStaticAnalyzerFrontend/Makefile b/tools/llvm-lib/libclangStaticAnalyzerFrontend/Makefile deleted file mode 100644 index 529917a5f..000000000 --- a/tools/llvm-lib/libclangStaticAnalyzerFrontend/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2011/02/17 18:35:37 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldConfig/Makefile b/tools/llvm-lib/liblldConfig/Makefile deleted file mode 100644 index 3316dd4a9..000000000 --- a/tools/llvm-lib/liblldConfig/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2015/01/29 20:41:39 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldCore/Makefile b/tools/llvm-lib/liblldCore/Makefile deleted file mode 100644 index 63aa0c3a0..000000000 --- a/tools/llvm-lib/liblldCore/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldDriver/Makefile b/tools/llvm-lib/liblldDriver/Makefile deleted file mode 100644 index 63aa0c3a0..000000000 --- a/tools/llvm-lib/liblldDriver/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:57 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldPasses/Makefile b/tools/llvm-lib/liblldPasses/Makefile deleted file mode 100644 index 46b859b97..000000000 --- a/tools/llvm-lib/liblldPasses/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldReaderWriter/Makefile b/tools/llvm-lib/liblldReaderWriter/Makefile deleted file mode 100644 index 46b859b97..000000000 --- a/tools/llvm-lib/liblldReaderWriter/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldReaderWriterELF/Makefile b/tools/llvm-lib/liblldReaderWriterELF/Makefile deleted file mode 100644 index 46b859b97..000000000 --- a/tools/llvm-lib/liblldReaderWriterELF/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldReaderWriterELFAArch64/Makefile b/tools/llvm-lib/liblldReaderWriterELFAArch64/Makefile deleted file mode 100644 index 3316dd4a9..000000000 --- a/tools/llvm-lib/liblldReaderWriterELFAArch64/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2015/01/29 20:41:39 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldReaderWriterELFHexagon/Makefile b/tools/llvm-lib/liblldReaderWriterELFHexagon/Makefile deleted file mode 100644 index 46b859b97..000000000 --- a/tools/llvm-lib/liblldReaderWriterELFHexagon/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldReaderWriterELFMips/Makefile b/tools/llvm-lib/liblldReaderWriterELFMips/Makefile deleted file mode 100644 index 82cc2443d..000000000 --- a/tools/llvm-lib/liblldReaderWriterELFMips/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2014/01/05 16:38:08 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldReaderWriterELFPPC/Makefile b/tools/llvm-lib/liblldReaderWriterELFPPC/Makefile deleted file mode 100644 index 46b859b97..000000000 --- a/tools/llvm-lib/liblldReaderWriterELFPPC/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldReaderWriterELFX86/Makefile b/tools/llvm-lib/liblldReaderWriterELFX86/Makefile deleted file mode 100644 index 46b859b97..000000000 --- a/tools/llvm-lib/liblldReaderWriterELFX86/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldReaderWriterELFX86_64/Makefile b/tools/llvm-lib/liblldReaderWriterELFX86_64/Makefile deleted file mode 100644 index 46b859b97..000000000 --- a/tools/llvm-lib/liblldReaderWriterELFX86_64/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldReaderWriterMachO/Makefile b/tools/llvm-lib/liblldReaderWriterMachO/Makefile deleted file mode 100644 index 46b859b97..000000000 --- a/tools/llvm-lib/liblldReaderWriterMachO/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldReaderWriterNative/Makefile b/tools/llvm-lib/liblldReaderWriterNative/Makefile deleted file mode 100644 index 46b859b97..000000000 --- a/tools/llvm-lib/liblldReaderWriterNative/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldReaderWriterPECOFF/Makefile b/tools/llvm-lib/liblldReaderWriterPECOFF/Makefile deleted file mode 100644 index 46b859b97..000000000 --- a/tools/llvm-lib/liblldReaderWriterPECOFF/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ - -.include diff --git a/tools/llvm-lib/liblldReaderWriterYAML/Makefile b/tools/llvm-lib/liblldReaderWriterYAML/Makefile deleted file mode 100644 index 46b859b97..000000000 --- a/tools/llvm-lib/liblldReaderWriterYAML/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ - -.include diff --git a/tools/llvm-lld/Makefile b/tools/llvm-lld/Makefile deleted file mode 100644 index 6d180255b..000000000 --- a/tools/llvm-lld/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/09/02 14:34:58 joerg Exp $ - -HOSTPROGNAME= ${MACHINE_GNU_PLATFORM}-lld -HOSTPROG_CXX= ${MACHINE_GNU_PLATFORM}-lld -HOST_SRCDIR= external/bsd/llvm/bin/lld - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/llvm-mcld/Makefile b/tools/llvm-mcld/Makefile deleted file mode 100644 index b817f0e08..000000000 --- a/tools/llvm-mcld/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2013/02/27 21:25:14 joerg Exp $ - -HOSTPROGNAME= ld.mcld -HOSTPROG_CXX= ld.mcld -HOST_SRCDIR= external/bsd/llvm/bin/llvm-mcld - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/llvm-tblgen/Makefile b/tools/llvm-tblgen/Makefile deleted file mode 100644 index b5f846819..000000000 --- a/tools/llvm-tblgen/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2011/10/11 13:54:01 joerg Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}llvm-tblgen -HOSTPROG_CXX= ${_TOOL_PREFIX}llvm-tblgen -HOST_SRCDIR= external/bsd/llvm/bin/tblgen -# MINIX, for OSX Crosscompilation support -CPPFLAGS+= -D_NLS_PRIVATE=1 - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/llvm/Makefile b/tools/llvm/Makefile deleted file mode 100644 index 49f44f35d..000000000 --- a/tools/llvm/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -# $NetBSD: Makefile,v 1.20 2015/03/05 10:22:25 joerg Exp $ - -.include - -# -# Do *not* set HOSTPROG or HOSTLIB at this point otherwise -# it will create a loop trying to extract the object directory. -# -.include "Makefile.inc" -.include "${LLVM_TOPLEVEL}/lib/Makefile.inc" - -realdepends realall: config/config.status need-dl need-terminfo - -config/config.status: ${LLVM_SRCDIR}/configure - mkdir -p config - printf '#!/bin/sh\necho 2.7.3' > config/python - chmod 755 config/python - cd config && ${HOST_SH} ${LLVM_SRCDIR}/configure ${LLVM_CONFIGURE_ARGS} \ - --enable-optimized CC=${HOST_CC:Q} CXX=${HOST_CXX:Q} \ - --with-python=${.OBJDIR}/config/python -# --disable-assertions - -need-dl: - printf '#include \nint main(void){void *p; return dladdr(p, p);}' > need-dl.c - if ${HOST_CC} -o need-dl.out -D_GNU_SOURCE need-dl.c > /dev/null 2>&1; then \ - echo > ${.TARGET}; \ - elif ${HOST_CC} -o need-dl.out -D_GNU_SOURCE need-dl.c -ldl > /dev/null 2>&1; then \ - echo -ldl > ${.TARGET}; \ - else \ - echo > ${.TARGET}; \ - fi - -need-terminfo: - printf '#include \nint main(void){return setupterm(0, 0, 0);}' > need-terminfo.c - for lib in tinfo terminfo ncurses curses; do \ - if ${HOST_CC} -o need-terminfo.out need-terminfo.c -l$$lib > /dev/null 2>&1; then \ - echo -l$$lib > ${.TARGET}; \ - break; \ - fi; \ - done - -CLEANFILES+= need-dl need-dl.c need-dl.out need-terminfo need-terminfo.c need-terminfo.out - -cleandir: cleandir-llvm - -cleandir-llvm: .PHONY - test ! -d config || rm -r config - rm -f need-dl need-dl.tmp - -.include diff --git a/tools/llvm/Makefile.inc b/tools/llvm/Makefile.inc deleted file mode 100644 index d5b15d06b..000000000 --- a/tools/llvm/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -# $NetBSD: Makefile.inc,v 1.3 2013/02/19 18:02:41 joerg Exp $ - -LLVM_TOPLEVEL:= ${.PARSEDIR}/../../external/bsd/llvm diff --git a/tools/lorder/Makefile b/tools/lorder/Makefile deleted file mode 100644 index 30f107e3c..000000000 --- a/tools/lorder/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# $NetBSD: Makefile,v 1.12 2012/12/02 12:48:33 apb Exp $ - -.include - -.-include "${TOOLDIR}/share/compat/defs.mk" - -TIMESTAMP= ${TOOLDIR}/bin/${_TOOL_PREFIX}lorder - -CLEANFILES+= lorder - -.PATH: ${.CURDIR}/../../usr.bin/lorder - -.include - -install: ${TIMESTAMP} -${TIMESTAMP}: lorder - ${HOST_INSTALL_FILE} -m ${BINMODE} ${.ALLSRC} ${.TARGET} - -lorder: lorder.sh - ${TOOL_SED} -e "s,/bin/sh,"${HOST_BSHELL:Q}",g" \ - -e "s,{JOIN:=.*},{JOIN:="${TOOL_JOIN:Q}"}," \ - -e "s,{MKTEMP:=.*},{MKTEMP:="${TOOL_MKTEMP:Q}"}," \ - -e "s,{NM:=.*},{NM:="${NM:Q}"}," \ - -e "s,{SED:=.*},{SED:="${TOOL_SED:Q}"}," \ - < ${.ALLSRC} > ${.TARGET} - -realall: lorder diff --git a/tools/m4/Makefile b/tools/m4/Makefile deleted file mode 100644 index 54837a867..000000000 --- a/tools/m4/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2009/11/06 15:14:37 joerg Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}m4 -HOST_SRCDIR= usr.bin/m4 -HOST_CPPFLAGS+= -I. - -.include "${.CURDIR}/../Makefile.host" - -# Don't build any of those; we don't have lex and yacc available yet -.y.c .y.h .l.c: - @true - -parser.c: ${.CURDIR}/bootstrap/parser.c - @ln -sf ${.ALLSRC:M*.c} $@ -parser.h: ${.CURDIR}/bootstrap/parser.h - @ln -sf ${.ALLSRC:M*.h} $@ -tokenizer.c: ${.CURDIR}/bootstrap/tokenizer.c - @ln -sf ${.ALLSRC:M*.c} $@ diff --git a/tools/m4/bootstrap/Makefile b/tools/m4/bootstrap/Makefile deleted file mode 100644 index 2775d8893..000000000 --- a/tools/m4/bootstrap/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2009/11/03 22:52:59 christos Exp $ - -FILES=parser.h parser.c tokenizer.c - -all: ${FILES} - -.include - -DIST=${NETBSDSRCDIR}/usr.bin/m4 - -parser.c parser.h: ${DIST}/parser.y - ${YACC} -d ${DIST}/parser.y - sed -e 's/\$$''NetBSD:\([^$$]*\)\ \$$/NetBSD:\1/' < y.tab.c > parser.c - rm -f y.tab.c - mv y.tab.h parser.h - -tokenizer.c: ${DIST}/tokenizer.l - ${LEX} ${DIST}/tokenizer.l - sed -e 's/\$$''NetBSD:\([^$$]*\)\ \$$/NetBSD:\1/' < lex.yy.c > ${.TARGET} - rm -f lex.yy.c - -clean:: - rm -f ${FILES} - diff --git a/tools/m4/bootstrap/parser.c b/tools/m4/bootstrap/parser.c deleted file mode 100644 index e6890a76e..000000000 --- a/tools/m4/bootstrap/parser.c +++ /dev/null @@ -1,649 +0,0 @@ -#if HAVE_NBTOOL_CONFIG_H -#include "nbtool_config.h" -#endif -#include -#ifndef lint -#if 0 -static char yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93"; -#else -#if defined(__NetBSD__) && defined(__IDSTRING) -__IDSTRING(yyrcsid, "NetBSD: skeleton.c,v 1.29 2008/07/18 14:25:37 drochner Exp "); -#endif /* __NetBSD__ && __IDSTRING */ -#endif /* 0 */ -#endif /* lint */ -#define YYBYACC 1 -#define YYMAJOR 1 -#define YYMINOR 9 -#define YYLEX yylex() -#define YYEMPTY -1 -#define yyclearin (yychar=(YYEMPTY)) -#define yyerrok (yyerrflag=0) -#define YYRECOVERING (yyerrflag!=0) -#define YYPREFIX "yy" -#line 2 "../../../usr.bin/m4/parser.y" -/* NetBSD: parser.y,v 1.2 2009/10/26 21:11:28 christos Exp */ -/* $OpenBSD: parser.y,v 1.6 2008/08/21 21:00:14 espie Exp $ */ -/* - * Copyright (c) 2004 Marc Espie - * - * 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 THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR 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. - */ -#if HAVE_NBTOOL_CONFIG_H -#include "nbtool_config.h" -#endif -__RCSID("NetBSD: parser.y,v 1.2 2009/10/26 21:11:28 christos Exp "); -#include -#define YYSTYPE int32_t -extern int32_t end_result; -extern int yylex(void); -extern int yyerror(const char *); -#line 48 "parser.c" -#define NUMBER 257 -#define ERROR 258 -#define LOR 259 -#define LAND 260 -#define EQ 261 -#define NE 262 -#define LE 263 -#define GE 264 -#define LSHIFT 265 -#define RSHIFT 266 -#define UMINUS 267 -#define UPLUS 268 -#define YYERRCODE 256 -const short yylhs[] = { -1, - 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, -}; -const short yylen[] = { 2, - 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 2, 2, 2, 2, 1, -}; -const short yydefred[] = { 0, - 25, 0, 0, 0, 0, 0, 0, 0, 22, 21, - 23, 24, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 4, 5, 6, -}; -const short yydgoto[] = { 7, - 8, -}; -const short yysindex[] = { -13, - 0, -13, -13, -13, -13, -13, 0, 190, 0, 0, - 0, 0, 114, -13, -13, -13, -13, -13, -13, -13, - -13, -13, -13, -13, -13, -13, -13, -13, -13, -13, - -13, 0, 321, 347, 159, 397, 354, -24, -24, -35, - -35, -35, -35, 136, 136, -31, -31, 0, 0, 0, -}; -const short yyrindex[] = { 0, - 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 65, 56, 51, 48, 74, 60, 66, 34, - 40, 76, 83, 17, 26, 1, 9, 0, 0, 0, -}; -const short yygindex[] = { 0, - 458, -}; -#define YYTABLESIZE 663 -const short yytable[] = { 0, - 2, 31, 1, 0, 0, 31, 29, 27, 3, 28, - 29, 30, 31, 0, 0, 30, 7, 29, 27, 4, - 28, 0, 30, 0, 0, 8, 6, 0, 0, 2, - 0, 3, 0, 9, 0, 21, 0, 23, 2, 11, - 0, 2, 0, 2, 0, 2, 3, 16, 0, 3, - 17, 3, 0, 3, 7, 18, 0, 7, 0, 13, - 2, 0, 2, 8, 19, 14, 8, 0, 3, 0, - 3, 9, 0, 15, 9, 10, 7, 11, 7, 0, - 11, 0, 12, 0, 0, 8, 0, 8, 16, 0, - 0, 17, 0, 9, 2, 9, 18, 13, 0, 11, - 13, 11, 3, 14, 0, 19, 14, 0, 0, 0, - 7, 15, 5, 10, 15, 0, 10, 0, 0, 8, - 12, 0, 0, 12, 2, 0, 0, 9, 0, 0, - 0, 0, 3, 11, 0, 10, 0, 10, 0, 0, - 7, 16, 12, 0, 12, 0, 0, 0, 0, 8, - 31, 18, 0, 13, 32, 29, 27, 9, 28, 14, - 30, 0, 0, 11, 0, 0, 0, 15, 0, 10, - 0, 16, 31, 21, 17, 23, 12, 29, 27, 0, - 28, 0, 30, 13, 0, 0, 0, 0, 0, 14, - 0, 0, 0, 0, 0, 31, 18, 15, 0, 10, - 29, 27, 0, 28, 0, 30, 12, 17, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, - 23, 0, 0, 0, 0, 0, 31, 18, 0, 25, - 26, 29, 27, 0, 28, 0, 30, 16, 22, 24, - 25, 26, 0, 1, 0, 0, 0, 0, 0, 21, - 0, 23, 17, 0, 0, 0, 0, 0, 0, 2, - 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, - 3, 3, 3, 3, 3, 7, 7, 7, 7, 7, - 7, 7, 7, 17, 8, 8, 8, 8, 8, 8, - 8, 8, 9, 9, 9, 9, 9, 9, 11, 11, - 11, 11, 11, 11, 0, 0, 16, 16, 0, 17, - 17, 0, 0, 16, 18, 18, 0, 0, 13, 13, - 13, 13, 0, 19, 14, 14, 14, 14, 0, 0, - 0, 0, 15, 15, 10, 10, 10, 10, 10, 10, - 0, 12, 12, 12, 12, 12, 12, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 31, 18, 0, - 0, 0, 29, 27, 0, 28, 0, 30, 0, 0, - 0, 0, 14, 15, 19, 20, 22, 24, 25, 26, - 21, 0, 23, 31, 18, 0, 0, 0, 29, 27, - 31, 28, 0, 30, 0, 29, 27, 0, 28, 0, - 30, 0, 0, 0, 0, 0, 21, 0, 23, 0, - 0, 0, 0, 21, 17, 23, 0, 0, 0, 19, - 20, 22, 24, 25, 26, 0, 0, 0, 0, 0, - 0, 0, 0, 31, 18, 0, 0, 0, 29, 27, - 17, 28, 0, 30, 16, 0, 0, 0, 14, 15, - 19, 20, 22, 24, 25, 26, 21, 0, 23, 9, - 10, 11, 12, 13, 0, 0, 0, 0, 0, 0, - 16, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 46, 47, 48, 49, 50, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 15, 19, 20, 22, 24, 25, 26, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 19, 20, 22, - 24, 25, 26, 0, 19, 20, 22, 24, 25, 26, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 19, 20, 22, - 24, 25, 26, -}; -const short yycheck[] = { -1, - 0, 37, 0, -1, -1, 37, 42, 43, 0, 45, - 42, 47, 37, -1, -1, 47, 0, 42, 43, 33, - 45, -1, 47, -1, -1, 0, 40, -1, -1, 43, - -1, 45, -1, 0, -1, 60, -1, 62, 38, 0, - -1, 41, -1, 43, -1, 45, 38, 0, -1, 41, - 0, 43, -1, 45, 38, 0, -1, 41, -1, 0, - 60, -1, 62, 38, 0, 0, 41, -1, 60, -1, - 62, 38, -1, 0, 41, 0, 60, 38, 62, -1, - 41, -1, 0, -1, -1, 60, -1, 62, 41, -1, - -1, 41, -1, 60, 94, 62, 41, 38, -1, 60, - 41, 62, 94, 38, -1, 41, 41, -1, -1, -1, - 94, 38, 126, 38, 41, -1, 41, -1, -1, 94, - 38, -1, -1, 41, 124, -1, -1, 94, -1, -1, - -1, -1, 124, 94, -1, 60, -1, 62, -1, -1, - 124, 94, 60, -1, 62, -1, -1, -1, -1, 124, - 37, 38, -1, 94, 41, 42, 43, 124, 45, 94, - 47, -1, -1, 124, -1, -1, -1, 94, -1, 94, - -1, 124, 37, 60, 124, 62, 94, 42, 43, -1, - 45, -1, 47, 124, -1, -1, -1, -1, -1, 124, - -1, -1, -1, -1, -1, 37, 38, 124, -1, 124, - 42, 43, -1, 45, -1, 47, 124, 94, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, - 62, -1, -1, -1, -1, -1, 37, 38, -1, 265, - 266, 42, 43, -1, 45, -1, 47, 124, 263, 264, - 265, 266, -1, 257, -1, -1, -1, -1, -1, 60, - -1, 62, 94, -1, -1, -1, -1, -1, -1, 259, - 260, 261, 262, 263, 264, 265, 266, 259, 260, 261, - 262, 263, 264, 265, 266, 259, 260, 261, 262, 263, - 264, 265, 266, 94, 259, 260, 261, 262, 263, 264, - 265, 266, 259, 260, 261, 262, 263, 264, 259, 260, - 261, 262, 263, 264, -1, -1, 259, 260, -1, 259, - 260, -1, -1, 124, 259, 260, -1, -1, 259, 260, - 261, 262, -1, 259, 259, 260, 261, 262, -1, -1, - -1, -1, 259, 260, 259, 260, 261, 262, 263, 264, - -1, 259, 260, 261, 262, 263, 264, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, - -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, - -1, -1, 259, 260, 261, 262, 263, 264, 265, 266, - 60, -1, 62, 37, 38, -1, -1, -1, 42, 43, - 37, 45, -1, 47, -1, 42, 43, -1, 45, -1, - 47, -1, -1, -1, -1, -1, 60, -1, 62, -1, - -1, -1, -1, 60, 94, 62, -1, -1, -1, 261, - 262, 263, 264, 265, 266, -1, -1, -1, -1, -1, - -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, - 94, 45, -1, 47, 124, -1, -1, -1, 259, 260, - 261, 262, 263, 264, 265, 266, 60, -1, 62, 2, - 3, 4, 5, 6, -1, -1, -1, -1, -1, -1, - 124, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 260, 261, 262, 263, 264, 265, 266, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 261, 262, 263, - 264, 265, 266, -1, 261, 262, 263, 264, 265, 266, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 261, 262, 263, - 264, 265, 266, -}; -#define YYFINAL 7 -#ifndef YYDEBUG -#define YYDEBUG 0 -#endif -#define YYMAXTOKEN 268 -#if YYDEBUG -const char * const yyname[] = { -"end-of-file",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -"'!'",0,0,0,"'%'","'&'",0,"'('","')'","'*'","'+'",0,"'-'",0,"'/'",0,0,0,0,0,0,0, -0,0,0,0,0,"'<'",0,"'>'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,"'^'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"'|'",0, -"'~'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,"NUMBER","ERROR","LOR","LAND","EQ","NE","LE","GE", -"LSHIFT","RSHIFT","UMINUS","UPLUS", -}; -const char * const yyrule[] = { -"$accept : top", -"top : expr", -"expr : expr '+' expr", -"expr : expr '-' expr", -"expr : expr '*' expr", -"expr : expr '/' expr", -"expr : expr '%' expr", -"expr : expr LSHIFT expr", -"expr : expr RSHIFT expr", -"expr : expr '<' expr", -"expr : expr '>' expr", -"expr : expr LE expr", -"expr : expr GE expr", -"expr : expr EQ expr", -"expr : expr NE expr", -"expr : expr '&' expr", -"expr : expr '^' expr", -"expr : expr '|' expr", -"expr : expr LAND expr", -"expr : expr LOR expr", -"expr : '(' expr ')'", -"expr : '-' expr", -"expr : '+' expr", -"expr : '!' expr", -"expr : '~' expr", -"expr : NUMBER", -}; -#endif -#ifndef YYSTYPE -typedef int YYSTYPE; -#endif -#ifdef YYSTACKSIZE -#undef YYMAXDEPTH -#define YYMAXDEPTH YYSTACKSIZE -#else -#ifdef YYMAXDEPTH -#define YYSTACKSIZE YYMAXDEPTH -#else -#define YYSTACKSIZE 10000 -#define YYMAXDEPTH 10000 -#endif -#endif -#define YYINITSTACKSIZE 200 -int yydebug; -int yynerrs; -int yyerrflag; -int yychar; -short *yyssp; -YYSTYPE *yyvsp; -YYSTYPE yyval; -static YYSTYPE yyvalzero; -YYSTYPE yylval; -short *yyss; -short *yysslim; -YYSTYPE *yyvs; -int yystacksize; -int yyparse(void); -#line 85 "../../../usr.bin/m4/parser.y" - -#line 315 "parser.c" -/* allocate initial stack or double stack size, up to YYMAXDEPTH */ -static int yygrowstack(void); -static int yygrowstack(void) -{ - int newsize, i; - short *newss; - YYSTYPE *newvs; - - if ((newsize = yystacksize) == 0) - newsize = YYINITSTACKSIZE; - else if (newsize >= YYMAXDEPTH) - return -1; - else if ((newsize *= 2) > YYMAXDEPTH) - newsize = YYMAXDEPTH; - i = yyssp - yyss; - if ((newss = (short *)realloc(yyss, newsize * sizeof *newss)) == NULL) - return -1; - yyss = newss; - yyssp = newss + i; - if ((newvs = (YYSTYPE *)realloc(yyvs, newsize * sizeof *newvs)) == NULL) - return -1; - yyvs = newvs; - yyvsp = newvs + i; - yystacksize = newsize; - yysslim = yyss + newsize - 1; - return 0; -} - -#define YYABORT goto yyabort -#define YYREJECT goto yyabort -#define YYACCEPT goto yyaccept -#define YYERROR goto yyerrlab -int -yyparse(void) -{ - int yym, yyn, yystate; -#if YYDEBUG - const char *yys; - - if ((yys = getenv("YYDEBUG")) != NULL) - { - yyn = *yys; - if (yyn >= '0' && yyn <= '9') - yydebug = yyn - '0'; - } -#endif - - yynerrs = 0; - yyerrflag = 0; - yychar = (-1); - - if (yyss == NULL && yygrowstack()) goto yyoverflow; - yyssp = yyss; - yyvsp = yyvs; - *yyssp = yystate = 0; - -yyloop: - if ((yyn = yydefred[yystate]) != 0) goto yyreduce; - if (yychar < 0) - { - if ((yychar = yylex()) < 0) yychar = 0; -#if YYDEBUG - if (yydebug) - { - yys = 0; - if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; - if (!yys) yys = "illegal-symbol"; - printf("%sdebug: state %d, reading %d (%s)\n", - YYPREFIX, yystate, yychar, yys); - } -#endif - } - if ((yyn = yysindex[yystate]) && (yyn += yychar) >= 0 && - yyn <= YYTABLESIZE && yycheck[yyn] == yychar) - { -#if YYDEBUG - if (yydebug) - printf("%sdebug: state %d, shifting to state %d\n", - YYPREFIX, yystate, yytable[yyn]); -#endif - if (yyssp >= yysslim && yygrowstack()) - { - goto yyoverflow; - } - *++yyssp = yystate = yytable[yyn]; - *++yyvsp = yylval; - yychar = (-1); - if (yyerrflag > 0) --yyerrflag; - goto yyloop; - } - if ((yyn = yyrindex[yystate]) && (yyn += yychar) >= 0 && - yyn <= YYTABLESIZE && yycheck[yyn] == yychar) - { - yyn = yytable[yyn]; - goto yyreduce; - } - if (yyerrflag) goto yyinrecovery; - goto yynewerror; -yynewerror: - yyerror("syntax error"); - goto yyerrlab; -yyerrlab: - ++yynerrs; -yyinrecovery: - if (yyerrflag < 3) - { - yyerrflag = 3; - for (;;) - { - if ((yyn = yysindex[*yyssp]) && (yyn += YYERRCODE) >= 0 && - yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE) - { -#if YYDEBUG - if (yydebug) - printf("%sdebug: state %d, error recovery shifting\ - to state %d\n", YYPREFIX, *yyssp, yytable[yyn]); -#endif - if (yyssp >= yysslim && yygrowstack()) - { - goto yyoverflow; - } - *++yyssp = yystate = yytable[yyn]; - *++yyvsp = yylval; - goto yyloop; - } - else - { -#if YYDEBUG - if (yydebug) - printf("%sdebug: error recovery discarding state %d\n", - YYPREFIX, *yyssp); -#endif - if (yyssp <= yyss) goto yyabort; - --yyssp; - --yyvsp; - } - } - } - else - { - if (yychar == 0) goto yyabort; -#if YYDEBUG - if (yydebug) - { - yys = 0; - if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; - if (!yys) yys = "illegal-symbol"; - printf("%sdebug: state %d, error recovery discards token %d (%s)\n", - YYPREFIX, yystate, yychar, yys); - } -#endif - yychar = (-1); - goto yyloop; - } -yyreduce: -#if YYDEBUG - if (yydebug) - printf("%sdebug: state %d, reducing by rule %d (%s)\n", - YYPREFIX, yystate, yyn, yyrule[yyn]); -#endif - yym = yylen[yyn]; - if (yym) - yyval = yyvsp[1-yym]; - else - yyval = yyvalzero; - switch (yyn) - { -case 1: -#line 45 "../../../usr.bin/m4/parser.y" -{ end_result = yyvsp[0]; } -break; -case 2: -#line 47 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] + yyvsp[0]; } -break; -case 3: -#line 48 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] - yyvsp[0]; } -break; -case 4: -#line 49 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] * yyvsp[0]; } -break; -case 5: -#line 50 "../../../usr.bin/m4/parser.y" -{ - if (yyvsp[0] == 0) { - yyerror("division by zero"); - exit(1); - } - yyval = yyvsp[-2] / yyvsp[0]; - } -break; -case 6: -#line 57 "../../../usr.bin/m4/parser.y" -{ - if (yyvsp[0] == 0) { - yyerror("modulo zero"); - exit(1); - } - yyval = yyvsp[-2] % yyvsp[0]; - } -break; -case 7: -#line 64 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] << yyvsp[0]; } -break; -case 8: -#line 65 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] >> yyvsp[0]; } -break; -case 9: -#line 66 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] < yyvsp[0]; } -break; -case 10: -#line 67 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] > yyvsp[0]; } -break; -case 11: -#line 68 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] <= yyvsp[0]; } -break; -case 12: -#line 69 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] >= yyvsp[0]; } -break; -case 13: -#line 70 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] == yyvsp[0]; } -break; -case 14: -#line 71 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] != yyvsp[0]; } -break; -case 15: -#line 72 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] & yyvsp[0]; } -break; -case 16: -#line 73 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] ^ yyvsp[0]; } -break; -case 17: -#line 74 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] | yyvsp[0]; } -break; -case 18: -#line 75 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] && yyvsp[0]; } -break; -case 19: -#line 76 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-2] || yyvsp[0]; } -break; -case 20: -#line 77 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[-1]; } -break; -case 21: -#line 78 "../../../usr.bin/m4/parser.y" -{ yyval = -yyvsp[0]; } -break; -case 22: -#line 79 "../../../usr.bin/m4/parser.y" -{ yyval = yyvsp[0]; } -break; -case 23: -#line 80 "../../../usr.bin/m4/parser.y" -{ yyval = !yyvsp[0]; } -break; -case 24: -#line 81 "../../../usr.bin/m4/parser.y" -{ yyval = ~yyvsp[0]; } -break; -#line 591 "parser.c" - } - yyssp -= yym; - yystate = *yyssp; - yyvsp -= yym; - yym = yylhs[yyn]; - if (yystate == 0 && yym == 0) - { -#if YYDEBUG - if (yydebug) - printf("%sdebug: after reduction, shifting from state 0 to\ - state %d\n", YYPREFIX, YYFINAL); -#endif - yystate = YYFINAL; - *++yyssp = YYFINAL; - *++yyvsp = yyval; - if (yychar < 0) - { - if ((yychar = yylex()) < 0) yychar = 0; -#if YYDEBUG - if (yydebug) - { - yys = 0; - if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; - if (!yys) yys = "illegal-symbol"; - printf("%sdebug: state %d, reading %d (%s)\n", - YYPREFIX, YYFINAL, yychar, yys); - } -#endif - } - if (yychar == 0) goto yyaccept; - goto yyloop; - } - if ((yyn = yygindex[yym]) && (yyn += yystate) >= 0 && - yyn <= YYTABLESIZE && yycheck[yyn] == yystate) - yystate = yytable[yyn]; - else - yystate = yydgoto[yym]; -#if YYDEBUG - if (yydebug) - printf("%sdebug: after reduction, shifting from state %d \ -to state %d\n", YYPREFIX, *yyssp, yystate); -#endif - if (yyssp >= yysslim && yygrowstack()) - { - goto yyoverflow; - } - *++yyssp = yystate; - *++yyvsp = yyval; - goto yyloop; -yyoverflow: - yyerror("yacc stack overflow"); -yyabort: - return (1); -yyaccept: - return (0); -} diff --git a/tools/m4/bootstrap/parser.h b/tools/m4/bootstrap/parser.h deleted file mode 100644 index fc848d6ca..000000000 --- a/tools/m4/bootstrap/parser.h +++ /dev/null @@ -1,12 +0,0 @@ -#define NUMBER 257 -#define ERROR 258 -#define LOR 259 -#define LAND 260 -#define EQ 261 -#define NE 262 -#define LE 263 -#define GE 264 -#define LSHIFT 265 -#define RSHIFT 266 -#define UMINUS 267 -#define UPLUS 268 diff --git a/tools/m4/bootstrap/tokenizer.c b/tools/m4/bootstrap/tokenizer.c deleted file mode 100644 index 80d0bc176..000000000 --- a/tools/m4/bootstrap/tokenizer.c +++ /dev/null @@ -1,1899 +0,0 @@ -#if HAVE_NBTOOL_CONFIG_H -#include "nbtool_config.h" -#endif -#line 2 "tokenizer.c" - -#line 4 "tokenizer.c" - -#define YY_INT_ALIGNED short int - -/* A lexical scanner generated by flex */ - -#define FLEX_SCANNER -#define YY_FLEX_MAJOR_VERSION 2 -#define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 35 -#if YY_FLEX_SUBMINOR_VERSION > 0 -#define FLEX_BETA -#endif - -/* First, we deal with platform-specific or compiler-specific issues. */ - -/* begin standard C headers. */ -#include -#include -#include -#include - -/* end standard C headers. */ - -/* NetBSD: flexint.h,v 1.1.1.1 2009/10/26 00:26:19 christos Exp */ - -/* flex integer type definitions */ - -#ifndef FLEXINT_H -#define FLEXINT_H - -/* C99 systems have . Non-C99 systems may or may not. */ - -#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L - -/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, - * if you want the limit (max/min) macros for int types. - */ -#ifndef __STDC_LIMIT_MACROS -#define __STDC_LIMIT_MACROS 1 -#endif - -#include -typedef int8_t flex_int8_t; -typedef uint8_t flex_uint8_t; -typedef int16_t flex_int16_t; -typedef uint16_t flex_uint16_t; -typedef int32_t flex_int32_t; -typedef uint32_t flex_uint32_t; -#else -typedef signed char flex_int8_t; -typedef short int flex_int16_t; -typedef int flex_int32_t; -typedef unsigned char flex_uint8_t; -typedef unsigned short int flex_uint16_t; -typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ - -/* Limits of integral types. */ -#ifndef INT8_MIN -#define INT8_MIN (-128) -#endif -#ifndef INT16_MIN -#define INT16_MIN (-32767-1) -#endif -#ifndef INT32_MIN -#define INT32_MIN (-2147483647-1) -#endif -#ifndef INT8_MAX -#define INT8_MAX (127) -#endif -#ifndef INT16_MAX -#define INT16_MAX (32767) -#endif -#ifndef INT32_MAX -#define INT32_MAX (2147483647) -#endif -#ifndef UINT8_MAX -#define UINT8_MAX (255U) -#endif -#ifndef UINT16_MAX -#define UINT16_MAX (65535U) -#endif -#ifndef UINT32_MAX -#define UINT32_MAX (4294967295U) -#endif - -#endif /* ! FLEXINT_H */ - -#ifdef __cplusplus - -/* The "const" storage-class-modifier is valid. */ -#define YY_USE_CONST - -#else /* ! __cplusplus */ - -/* C99 requires __STDC__ to be defined as 1. */ -#if defined (__STDC__) - -#define YY_USE_CONST - -#endif /* defined (__STDC__) */ -#endif /* ! __cplusplus */ - -#ifdef YY_USE_CONST -#define yyconst const -#else -#define yyconst -#endif - -/* Returned upon end-of-file. */ -#define YY_NULL 0 - -/* Promotes a possibly negative, possibly signed char to an unsigned - * integer for use as an array index. If the signed char is negative, - * we want to instead treat it as an 8-bit unsigned char, hence the - * double cast. - */ -#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) - -/* Enter a start condition. This macro really ought to take a parameter, - * but we do it the disgusting crufty way forced on us by the ()-less - * definition of BEGIN. - */ -#define BEGIN (yy_start) = 1 + 2 * - -/* Translate the current start state into a value that can be later handed - * to BEGIN to return to the state. The YYSTATE alias is for lex - * compatibility. - */ -#define YY_START (((yy_start) - 1) / 2) -#define YYSTATE YY_START - -/* Action number for EOF rule of a given start state. */ -#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) - -/* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE yyrestart(yyin ) - -#define YY_END_OF_BUFFER_CHAR 0 - -/* Size of default input buffer. */ -#ifndef YY_BUF_SIZE -#define YY_BUF_SIZE 16384 -#endif - -/* The state buf must be large enough to hold one state per character in the main buffer. - */ -#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) - -#ifndef YY_TYPEDEF_YY_BUFFER_STATE -#define YY_TYPEDEF_YY_BUFFER_STATE -typedef struct yy_buffer_state *YY_BUFFER_STATE; -#endif - -extern int yyleng; - -extern FILE *yyin, *yyout; - -#define EOB_ACT_CONTINUE_SCAN 0 -#define EOB_ACT_END_OF_FILE 1 -#define EOB_ACT_LAST_MATCH 2 - - #define YY_LESS_LINENO(n) - -/* Return all but the first "n" matched characters back to the input stream. */ -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - *yy_cp = (yy_hold_char); \ - YY_RESTORE_YY_MORE_OFFSET \ - (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up yytext again */ \ - } \ - while ( 0 ) - -#define unput(c) yyunput( c, (yytext_ptr) ) - -#ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T -typedef size_t yy_size_t; -#endif - -#ifndef YY_STRUCT_YY_BUFFER_STATE -#define YY_STRUCT_YY_BUFFER_STATE -struct yy_buffer_state - { - FILE *yy_input_file; - - char *yy_ch_buf; /* input buffer */ - char *yy_buf_pos; /* current position in input buffer */ - - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - yy_size_t yy_buf_size; - - /* Number of characters read into yy_ch_buf, not including EOB - * characters. - */ - int yy_n_chars; - - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int yy_at_bol; - - int yy_bs_lineno; /**< The line count. */ - int yy_bs_column; /**< The column count. */ - - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int yy_fill_buffer; - - int yy_buffer_status; - -#define YY_BUFFER_NEW 0 -#define YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via yyrestart()), so that the user can continue scanning by - * just pointing yyin at a new input file. - */ -#define YY_BUFFER_EOF_PENDING 2 - - }; -#endif /* !YY_STRUCT_YY_BUFFER_STATE */ - -/* Stack of input buffers. */ -static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ -static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ -static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ - -/* We provide macros for accessing buffer states in case in the - * future we want to put the buffer states in a more general - * "scanner state". - * - * Returns the top of the stack, or NULL. - */ -#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ - ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ - : NULL) - -/* Same as previous macro, but useful when we know that the buffer stack is not - * NULL or when we need an lvalue. For internal use only. - */ -#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] - -/* yy_hold_char holds the character lost when yytext is formed. */ -static char yy_hold_char; -static int yy_n_chars; /* number of characters read into yy_ch_buf */ -int yyleng; - -/* Points to current character in buffer. */ -static char *yy_c_buf_p = (char *) 0; -static int yy_init = 0; /* whether we need to initialize */ -static int yy_start = 0; /* start state number */ - -/* Flag which is used to allow yywrap()'s to do buffer switches - * instead of setting up a fresh yyin. A bit of a hack ... - */ -static int yy_did_buffer_switch_on_eof; - -void yyrestart (FILE *input_file ); -void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); -YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); -void yy_delete_buffer (YY_BUFFER_STATE b ); -void yy_flush_buffer (YY_BUFFER_STATE b ); -void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); -void yypop_buffer_state (void ); - -static void yyensure_buffer_stack (void ); -static void yy_load_buffer_state (void ); -static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); - -#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) - -YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); -YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); -YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); - -void *yyalloc (yy_size_t ); -void *yyrealloc (void *,yy_size_t ); -void yyfree (void * ); - -#define yy_new_buffer yy_create_buffer - -#define yy_set_interactive(is_interactive) \ - { \ - if ( ! YY_CURRENT_BUFFER ){ \ - yyensure_buffer_stack (); \ - YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer(yyin,YY_BUF_SIZE ); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ - } - -#define yy_set_bol(at_bol) \ - { \ - if ( ! YY_CURRENT_BUFFER ){\ - yyensure_buffer_stack (); \ - YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer(yyin,YY_BUF_SIZE ); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ - } - -#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) - -/* Begin user sect3 */ - -typedef unsigned char YY_CHAR; - -FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; - -typedef int yy_state_type; - -extern int yylineno; - -int yylineno = 1; - -extern char *yytext; -#define yytext_ptr yytext - -static yy_state_type yy_get_previous_state (void ); -static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); -static int yy_get_next_buffer (void ); -static void yy_fatal_error (yyconst char msg[] ); - -/* Done after the current pattern has been matched and before the - * corresponding action - sets up yytext. - */ -#define YY_DO_BEFORE_ACTION \ - (yytext_ptr) = yy_bp; \ - yyleng = (size_t) (yy_cp - yy_bp); \ - (yy_hold_char) = *yy_cp; \ - *yy_cp = '\0'; \ - (yy_c_buf_p) = yy_cp; - -#define YY_NUM_RULES 13 -#define YY_END_OF_BUFFER 14 -/* This struct is not used in this scanner, - but its presence is necessary. */ -struct yy_trans_info - { - flex_int32_t yy_verify; - flex_int32_t yy_nxt; - }; -static yyconst flex_int16_t yy_accept[33] = - { 0, - 0, 0, 14, 12, 1, 1, 12, 12, 2, 2, - 12, 12, 12, 12, 1, 9, 10, 2, 0, 0, - 2, 6, 4, 8, 5, 7, 11, 0, 2, 0, - 3, 0 - } ; - -static yyconst flex_int32_t yy_ec[256] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 4, 1, 1, 1, 1, 5, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 6, 7, 7, - 7, 7, 7, 7, 7, 8, 8, 9, 1, 10, - 11, 12, 1, 1, 13, 13, 13, 13, 13, 13, - 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, - 14, 15, 14, 14, 14, 14, 14, 16, 14, 14, - 1, 1, 1, 1, 1, 1, 13, 13, 13, 13, - - 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, - 14, 14, 14, 15, 14, 14, 14, 14, 14, 16, - 14, 14, 1, 17, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1 - } ; - -static yyconst flex_int32_t yy_meta[18] = - { 0, - 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, - 1, 1, 3, 4, 4, 4, 1 - } ; - -static yyconst flex_int16_t yy_base[37] = - { 0, - 0, 0, 46, 47, 16, 18, 34, 39, 16, 0, - 14, 32, 15, 25, 26, 47, 47, 27, 0, 0, - 0, 47, 47, 47, 47, 47, 47, 32, 0, 0, - 0, 47, 38, 28, 33, 35 - } ; - -static yyconst flex_int16_t yy_def[37] = - { 0, - 32, 1, 32, 32, 32, 32, 32, 32, 32, 33, - 32, 32, 32, 32, 32, 32, 32, 32, 34, 35, - 33, 32, 32, 32, 32, 32, 32, 34, 35, 36, - 36, 0, 32, 32, 32, 32 - } ; - -static yyconst flex_int16_t yy_nxt[65] = - { 0, - 4, 5, 6, 7, 8, 9, 10, 10, 4, 11, - 12, 13, 4, 4, 4, 4, 14, 15, 15, 15, - 15, 18, 18, 22, 23, 25, 26, 15, 15, 28, - 19, 20, 18, 18, 29, 29, 31, 31, 31, 21, - 30, 27, 24, 17, 16, 32, 3, 32, 32, 32, - 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, - 32, 32, 32, 32 - } ; - -static yyconst flex_int16_t yy_chk[65] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 5, 5, 6, - 6, 9, 9, 11, 11, 13, 13, 15, 15, 34, - 9, 9, 18, 18, 35, 35, 36, 36, 36, 33, - 28, 14, 12, 8, 7, 3, 32, 32, 32, 32, - 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, - 32, 32, 32, 32 - } ; - -static yy_state_type yy_last_accepting_state; -static char *yy_last_accepting_cpos; - -extern int yy_flex_debug; -int yy_flex_debug = 0; - -/* The intent behind this definition is that it'll catch - * any uses of REJECT which flex missed. - */ -#define REJECT reject_used_but_not_detected -#define yymore() yymore_used_but_not_detected -#define YY_MORE_ADJ 0 -#define YY_RESTORE_YY_MORE_OFFSET -char *yytext; -#line 1 "../../../usr.bin/m4/tokenizer.l" -#line 2 "../../../usr.bin/m4/tokenizer.l" -/* NetBSD: tokenizer.l,v 1.2 2009/10/26 21:11:28 christos Exp */ -/* $OpenBSD: tokenizer.l,v 1.6 2008/08/21 21:00:14 espie Exp $ */ -/* - * Copyright (c) 2004 Marc Espie - * - * 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 THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR 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. - */ -#if HAVE_NBTOOL_CONFIG_H -#include "nbtool_config.h" -#endif -#include "parser.h" -__RCSID("NetBSD: tokenizer.l,v 1.2 2009/10/26 21:11:28 christos Exp "); -#include -#include -#include -#include - -extern int mimic_gnu; -extern int32_t yylval; -extern int yylex(void); -extern int yywrap(void); - -int32_t number(void); -int32_t parse_radix(void); -#line 509 "tokenizer.c" - -#define INITIAL 0 - -#ifndef YY_NO_UNISTD_H -/* Special case for "unistd.h", since it is non-ANSI. We include it way - * down here because we want the user's section 1 to have been scanned first. - * The user has a chance to override it with an option. - */ -#include -#endif - -#ifndef YY_EXTRA_TYPE -#define YY_EXTRA_TYPE void * -#endif - -static int yy_init_globals (void ); - -/* Accessor methods to globals. - These are made visible to non-reentrant scanners for convenience. */ - -int yylex_destroy (void ); - -int yyget_debug (void ); - -void yyset_debug (int debug_flag ); - -YY_EXTRA_TYPE yyget_extra (void ); - -void yyset_extra (YY_EXTRA_TYPE user_defined ); - -FILE *yyget_in (void ); - -void yyset_in (FILE * in_str ); - -FILE *yyget_out (void ); - -void yyset_out (FILE * out_str ); - -int yyget_leng (void ); - -char *yyget_text (void ); - -int yyget_lineno (void ); - -void yyset_lineno (int line_number ); - -/* Macros after this point can all be overridden by user definitions in - * section 1. - */ - -#ifndef YY_SKIP_YYWRAP -#ifdef __cplusplus -extern "C" int yywrap (void ); -#else -extern int yywrap (void ); -#endif -#endif - -#ifndef YY_NO_UNPUT - - static void yyunput (int c,char *buf_ptr ); - -#endif - -#ifndef yytext_ptr -static void yy_flex_strncpy (char *,yyconst char *,int ); -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * ); -#endif - -#ifndef YY_NO_INPUT - -#ifdef __cplusplus -static int yyinput (void ); -#else -static int input (void ); -#endif - -#endif - -/* Amount of stuff to slurp up with each read. */ -#ifndef YY_READ_BUF_SIZE -#define YY_READ_BUF_SIZE 8192 -#endif - -/* Copy whatever the last rule matched to the standard output. */ -#ifndef ECHO -/* This used to be an fputs(), but since the string might contain NUL's, - * we now use fwrite(). - */ -#define ECHO fwrite( yytext, yyleng, 1, yyout ) -#endif - -/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, - * is returned in "result". - */ -#ifndef YY_INPUT -#define YY_INPUT(buf,result,max_size) \ - if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ - { \ - int c = '*'; \ - size_t n; \ - for ( n = 0; n < max_size && \ - (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( c == EOF && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - result = n; \ - } \ - else \ - { \ - errno=0; \ - while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ - { \ - if( errno != EINTR) \ - { \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - break; \ - } \ - errno=0; \ - clearerr(yyin); \ - } \ - }\ -\ - -#endif - -/* No semi-colon after return; correct usage is to write "yyterminate();" - - * we don't want an extra ';' after the "return" because that will cause - * some compilers to complain about unreachable statements. - */ -#ifndef yyterminate -#define yyterminate() return YY_NULL -#endif - -/* Number of entries by which start-condition stack grows. */ -#ifndef YY_START_STACK_INCR -#define YY_START_STACK_INCR 25 -#endif - -/* Report a fatal error. */ -#ifndef YY_FATAL_ERROR -#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) -#endif - -/* end tables serialization structures and prototypes */ - -/* Default declaration of generated scanner - a define so the user can - * easily add parameters. - */ -#ifndef YY_DECL -#define YY_DECL_IS_OURS 1 - -extern int yylex (void); - -#define YY_DECL int yylex (void) -#endif /* !YY_DECL */ - -/* Code executed at the beginning of each rule, after yytext and yyleng - * have been set up. - */ -#ifndef YY_USER_ACTION -#define YY_USER_ACTION -#endif - -/* Code executed at the end of each rule. */ -#ifndef YY_BREAK -#define YY_BREAK break; -#endif - -#define YY_RULE_SETUP \ - YY_USER_ACTION - -/** The main scanner function which does all the work. - */ -YY_DECL -{ - register yy_state_type yy_current_state; - register char *yy_cp, *yy_bp; - register int yy_act; - -#line 45 "../../../usr.bin/m4/tokenizer.l" - -#line 697 "tokenizer.c" - - if ( !(yy_init) ) - { - (yy_init) = 1; - -#ifdef YY_USER_INIT - YY_USER_INIT; -#endif - - if ( ! (yy_start) ) - (yy_start) = 1; /* first start state */ - - if ( ! yyin ) - yyin = stdin; - - if ( ! yyout ) - yyout = stdout; - - if ( ! YY_CURRENT_BUFFER ) { - yyensure_buffer_stack (); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer(yyin,YY_BUF_SIZE ); - } - - yy_load_buffer_state( ); - } - - while ( 1 ) /* loops until end-of-file is reached */ - { - yy_cp = (yy_c_buf_p); - - /* Support of yytext. */ - *yy_cp = (yy_hold_char); - - /* yy_bp points to the position in yy_ch_buf of the start of - * the current run. - */ - yy_bp = yy_cp; - - yy_current_state = (yy_start); -yy_match: - do - { - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; - if ( yy_accept[yy_current_state] ) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 33 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - ++yy_cp; - } - while ( yy_base[yy_current_state] != 47 ); - -yy_find_action: - yy_act = yy_accept[yy_current_state]; - if ( yy_act == 0 ) - { /* have to back up */ - yy_cp = (yy_last_accepting_cpos); - yy_current_state = (yy_last_accepting_state); - yy_act = yy_accept[yy_current_state]; - } - - YY_DO_BEFORE_ACTION; - -do_action: /* This label is used only to access EOF actions. */ - - switch ( yy_act ) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = (yy_hold_char); - yy_cp = (yy_last_accepting_cpos); - yy_current_state = (yy_last_accepting_state); - goto yy_find_action; - -case 1: -/* rule 1 can match eol */ -YY_RULE_SETUP -#line 46 "../../../usr.bin/m4/tokenizer.l" -{/* just skip it */} - YY_BREAK -case 2: -YY_RULE_SETUP -#line 47 "../../../usr.bin/m4/tokenizer.l" -{ yylval = number(); return(NUMBER); } - YY_BREAK -case 3: -YY_RULE_SETUP -#line 48 "../../../usr.bin/m4/tokenizer.l" -{ if (mimic_gnu) { - yylval = parse_radix(); return(NUMBER); - } else { - return(ERROR); - } - } - YY_BREAK -case 4: -YY_RULE_SETUP -#line 54 "../../../usr.bin/m4/tokenizer.l" -{ return(LE); } - YY_BREAK -case 5: -YY_RULE_SETUP -#line 55 "../../../usr.bin/m4/tokenizer.l" -{ return(GE); } - YY_BREAK -case 6: -YY_RULE_SETUP -#line 56 "../../../usr.bin/m4/tokenizer.l" -{ return(LSHIFT); } - YY_BREAK -case 7: -YY_RULE_SETUP -#line 57 "../../../usr.bin/m4/tokenizer.l" -{ return(RSHIFT); } - YY_BREAK -case 8: -YY_RULE_SETUP -#line 58 "../../../usr.bin/m4/tokenizer.l" -{ return(EQ); } - YY_BREAK -case 9: -YY_RULE_SETUP -#line 59 "../../../usr.bin/m4/tokenizer.l" -{ return(NE); } - YY_BREAK -case 10: -YY_RULE_SETUP -#line 60 "../../../usr.bin/m4/tokenizer.l" -{ return(LAND); } - YY_BREAK -case 11: -YY_RULE_SETUP -#line 61 "../../../usr.bin/m4/tokenizer.l" -{ return(LOR); } - YY_BREAK -case 12: -YY_RULE_SETUP -#line 62 "../../../usr.bin/m4/tokenizer.l" -{ return yytext[0]; } - YY_BREAK -case 13: -YY_RULE_SETUP -#line 63 "../../../usr.bin/m4/tokenizer.l" -ECHO; - YY_BREAK -#line 851 "tokenizer.c" -case YY_STATE_EOF(INITIAL): - yyterminate(); - - case YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; - - /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = (yy_hold_char); - YY_RESTORE_YY_MORE_OFFSET - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed yyin at a new source and called - * yylex(). If so, then we have to assure - * consistency between YY_CURRENT_BUFFER and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; - } - - /* Note that here we test for yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) - { /* This was really a NUL. */ - yy_state_type yy_next_state; - - (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( ); - - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ - - yy_next_state = yy_try_NUL_trans( yy_current_state ); - - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - - if ( yy_next_state ) - { - /* Consume the NUL. */ - yy_cp = ++(yy_c_buf_p); - yy_current_state = yy_next_state; - goto yy_match; - } - - else - { - yy_cp = (yy_c_buf_p); - goto yy_find_action; - } - } - - else switch ( yy_get_next_buffer( ) ) - { - case EOB_ACT_END_OF_FILE: - { - (yy_did_buffer_switch_on_eof) = 0; - - if ( yywrap( ) ) - { - /* Note: because we've taken care in - * yy_get_next_buffer() to have set up - * yytext, we can now set up - * yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * YY_NULL, it'll still work - another - * YY_NULL will get returned. - */ - (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; - - yy_act = YY_STATE_EOF(YY_START); - goto do_action; - } - - else - { - if ( ! (yy_did_buffer_switch_on_eof) ) - YY_NEW_FILE; - } - break; - } - - case EOB_ACT_CONTINUE_SCAN: - (yy_c_buf_p) = - (yytext_ptr) + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state( ); - - yy_cp = (yy_c_buf_p); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - goto yy_match; - - case EOB_ACT_LAST_MATCH: - (yy_c_buf_p) = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; - - yy_current_state = yy_get_previous_state( ); - - yy_cp = (yy_c_buf_p); - yy_bp = (yytext_ptr) + YY_MORE_ADJ; - goto yy_find_action; - } - break; - } - - default: - YY_FATAL_ERROR( - "fatal flex scanner internal error--no action found" ); - } /* end of action switch */ - } /* end of scanning one token */ -} /* end of yylex */ - -/* yy_get_next_buffer - try to read in a new buffer - * - * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file - */ -static int yy_get_next_buffer (void) -{ - register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - register char *source = (yytext_ptr); - register int number_to_move, i; - int ret_val; - - if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) - YY_FATAL_ERROR( - "fatal flex scanner internal error--end of buffer missed" ); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) - { - /* We matched a single character, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; - } - - else - { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; - } - } - - /* Try to read more data. */ - - /* First move last chars to start of buffer. */ - number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; - - for ( i = 0; i < number_to_move; ++i ) - *(dest++) = *(source++); - - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; - - else - { - int num_to_read = - YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; - - while ( num_to_read <= 0 ) - { /* Not enough room in the buffer - grow it. */ - - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER; - - int yy_c_buf_p_offset = - (int) ((yy_c_buf_p) - b->yy_ch_buf); - - if ( b->yy_is_our_buffer ) - { - int new_size = b->yy_buf_size * 2; - - if ( new_size <= 0 ) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; - - b->yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = 0; - - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); - - (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; - - num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - - number_to_move - 1; - - } - - if ( num_to_read > YY_READ_BUF_SIZE ) - num_to_read = YY_READ_BUF_SIZE; - - /* Read in more data. */ - YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - (yy_n_chars), (size_t) num_to_read ); - - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - if ( (yy_n_chars) == 0 ) - { - if ( number_to_move == YY_MORE_ADJ ) - { - ret_val = EOB_ACT_END_OF_FILE; - yyrestart(yyin ); - } - - else - { - ret_val = EOB_ACT_LAST_MATCH; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = - YY_BUFFER_EOF_PENDING; - } - } - - else - ret_val = EOB_ACT_CONTINUE_SCAN; - - if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { - /* Extend the array by 50%, plus the number we really need. */ - yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); - if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); - } - - (yy_n_chars) += number_to_move; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; - - (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; - - return ret_val; -} - -/* yy_get_previous_state - get the state just before the EOB char was reached */ - - static yy_state_type yy_get_previous_state (void) -{ - register yy_state_type yy_current_state; - register char *yy_cp; - - yy_current_state = (yy_start); - - for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) - { - register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); - if ( yy_accept[yy_current_state] ) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 33 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - } - - return yy_current_state; -} - -/* yy_try_NUL_trans - try to make a transition on the NUL character - * - * synopsis - * next_state = yy_try_NUL_trans( current_state ); - */ - static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) -{ - register int yy_is_jam; - register char *yy_cp = (yy_c_buf_p); - - register YY_CHAR yy_c = 1; - if ( yy_accept[yy_current_state] ) - { - (yy_last_accepting_state) = yy_current_state; - (yy_last_accepting_cpos) = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 33 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - yy_is_jam = (yy_current_state == 32); - - return yy_is_jam ? 0 : yy_current_state; -} - -#ifndef YY_NO_UNPUT - - static void yyunput (int c, register char * yy_bp ) -{ - register char *yy_cp; - - yy_cp = (yy_c_buf_p); - - /* undo effects of setting up yytext */ - *yy_cp = (yy_hold_char); - - if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) - { /* need to shift things up to make room */ - /* +2 for EOB chars. */ - register int number_to_move = (yy_n_chars) + 2; - register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ - YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; - register char *source = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; - - while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) - *--dest = *--source; - - yy_cp += (int) (dest - source); - yy_bp += (int) (dest - source); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; - - if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) - YY_FATAL_ERROR( "flex scanner push-back overflow" ); - } - - *--yy_cp = (char) c; - - (yytext_ptr) = yy_bp; - (yy_hold_char) = *yy_cp; - (yy_c_buf_p) = yy_cp; -} - -#endif - -#ifndef YY_NO_INPUT -#ifdef __cplusplus - static int yyinput (void) -#else - static int input (void) -#endif - -{ - int c; - - *(yy_c_buf_p) = (yy_hold_char); - - if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) - { - /* yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) - /* This was really a NUL. */ - *(yy_c_buf_p) = '\0'; - - else - { /* need more input */ - int offset = (yy_c_buf_p) - (yytext_ptr); - ++(yy_c_buf_p); - - switch ( yy_get_next_buffer( ) ) - { - case EOB_ACT_LAST_MATCH: - /* This happens because yy_g_n_b() - * sees that we've accumulated a - * token and flags that we need to - * try matching the token before - * proceeding. But for input(), - * there's no matching to consider. - * So convert the EOB_ACT_LAST_MATCH - * to EOB_ACT_END_OF_FILE. - */ - - /* Reset buffer status. */ - yyrestart(yyin ); - - /*FALLTHROUGH*/ - - case EOB_ACT_END_OF_FILE: - { - if ( yywrap( ) ) - return EOF; - - if ( ! (yy_did_buffer_switch_on_eof) ) - YY_NEW_FILE; -#ifdef __cplusplus - return yyinput(); -#else - return input(); -#endif - } - - case EOB_ACT_CONTINUE_SCAN: - (yy_c_buf_p) = (yytext_ptr) + offset; - break; - } - } - } - - c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ - *(yy_c_buf_p) = '\0'; /* preserve yytext */ - (yy_hold_char) = *++(yy_c_buf_p); - - return c; -} -#endif /* ifndef YY_NO_INPUT */ - -/** Immediately switch to a different input stream. - * @param input_file A readable stream. - * - * @note This function does not reset the start condition to @c INITIAL . - */ - void yyrestart (FILE * input_file ) -{ - - if ( ! YY_CURRENT_BUFFER ){ - yyensure_buffer_stack (); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer(yyin,YY_BUF_SIZE ); - } - - yy_init_buffer(YY_CURRENT_BUFFER,input_file ); - yy_load_buffer_state( ); -} - -/** Switch to a different input buffer. - * @param new_buffer The new input buffer. - * - */ - void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) -{ - - /* TODO. We should be able to replace this entire function body - * with - * yypop_buffer_state(); - * yypush_buffer_state(new_buffer); - */ - yyensure_buffer_stack (); - if ( YY_CURRENT_BUFFER == new_buffer ) - return; - - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *(yy_c_buf_p) = (yy_hold_char); - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - YY_CURRENT_BUFFER_LVALUE = new_buffer; - yy_load_buffer_state( ); - - /* We don't actually know whether we did this switch during - * EOF (yywrap()) processing, but the only time this flag - * is looked at is after yywrap() is called, so it's safe - * to go ahead and always set it. - */ - (yy_did_buffer_switch_on_eof) = 1; -} - -static void yy_load_buffer_state (void) -{ - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; - (yy_hold_char) = *(yy_c_buf_p); -} - -/** Allocate and initialize an input buffer state. - * @param file A readable stream. - * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. - * - * @return the allocated buffer state. - */ - YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) -{ - YY_BUFFER_STATE b; - - b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - - b->yy_buf_size = size; - - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - - b->yy_is_our_buffer = 1; - - yy_init_buffer(b,file ); - - return b; -} - -/** Destroy the buffer. - * @param b a buffer created with yy_create_buffer() - * - */ - void yy_delete_buffer (YY_BUFFER_STATE b ) -{ - - if ( ! b ) - return; - - if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ - YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; - - if ( b->yy_is_our_buffer ) - yyfree((void *) b->yy_ch_buf ); - - yyfree((void *) b ); -} - -#ifndef __cplusplus -extern int isatty (int ); -#endif /* __cplusplus */ - -/* Initializes or reinitializes a buffer. - * This function is sometimes called more than once on the same buffer, - * such as during a yyrestart() or at EOF. - */ - static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) - -{ - int oerrno = errno; - - yy_flush_buffer(b ); - - b->yy_input_file = file; - b->yy_fill_buffer = 1; - - /* If b is the current buffer, then yy_init_buffer was _probably_ - * called from yyrestart() or through yy_get_next_buffer. - * In that case, we don't want to reset the lineno or column. - */ - if (b != YY_CURRENT_BUFFER){ - b->yy_bs_lineno = 1; - b->yy_bs_column = 0; - } - - b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; - - errno = oerrno; -} - -/** Discard all buffered characters. On the next scan, YY_INPUT will be called. - * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. - * - */ - void yy_flush_buffer (YY_BUFFER_STATE b ) -{ - if ( ! b ) - return; - - b->yy_n_chars = 0; - - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; - b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; - - b->yy_buf_pos = &b->yy_ch_buf[0]; - - b->yy_at_bol = 1; - b->yy_buffer_status = YY_BUFFER_NEW; - - if ( b == YY_CURRENT_BUFFER ) - yy_load_buffer_state( ); -} - -/** Pushes the new state onto the stack. The new state becomes - * the current state. This function will allocate the stack - * if necessary. - * @param new_buffer The new state. - * - */ -void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) -{ - if (new_buffer == NULL) - return; - - yyensure_buffer_stack(); - - /* This block is copied from yy_switch_to_buffer. */ - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *(yy_c_buf_p) = (yy_hold_char); - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); - } - - /* Only push if top exists. Otherwise, replace top. */ - if (YY_CURRENT_BUFFER) - (yy_buffer_stack_top)++; - YY_CURRENT_BUFFER_LVALUE = new_buffer; - - /* copied from yy_switch_to_buffer. */ - yy_load_buffer_state( ); - (yy_did_buffer_switch_on_eof) = 1; -} - -/** Removes and deletes the top of the stack, if present. - * The next element becomes the new top. - * - */ -void yypop_buffer_state (void) -{ - if (!YY_CURRENT_BUFFER) - return; - - yy_delete_buffer(YY_CURRENT_BUFFER ); - YY_CURRENT_BUFFER_LVALUE = NULL; - if ((yy_buffer_stack_top) > 0) - --(yy_buffer_stack_top); - - if (YY_CURRENT_BUFFER) { - yy_load_buffer_state( ); - (yy_did_buffer_switch_on_eof) = 1; - } -} - -/* Allocates the stack if it does not exist. - * Guarantees space for at least one push. - */ -static void yyensure_buffer_stack (void) -{ - int num_to_alloc; - - if (!(yy_buffer_stack)) { - - /* First allocation is just for 2 elements, since we don't know if this - * scanner will even need a stack. We use 2 instead of 1 to avoid an - * immediate realloc on the next call. - */ - num_to_alloc = 1; - (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc - (num_to_alloc * sizeof(struct yy_buffer_state*) - ); - if ( ! (yy_buffer_stack) ) - YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); - - memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - - (yy_buffer_stack_max) = num_to_alloc; - (yy_buffer_stack_top) = 0; - return; - } - - if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ - - /* Increase the buffer to prepare for a possible push. */ - int grow_size = 8 /* arbitrary grow size */; - - num_to_alloc = (yy_buffer_stack_max) + grow_size; - (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc - ((yy_buffer_stack), - num_to_alloc * sizeof(struct yy_buffer_state*) - ); - if ( ! (yy_buffer_stack) ) - YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); - - /* zero only the new slots.*/ - memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); - (yy_buffer_stack_max) = num_to_alloc; - } -} - -/** Setup the input buffer state to scan directly from a user-specified character buffer. - * @param base the character buffer - * @param size the size in bytes of the character buffer - * - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) -{ - YY_BUFFER_STATE b; - - if ( size < 2 || - base[size-2] != YY_END_OF_BUFFER_CHAR || - base[size-1] != YY_END_OF_BUFFER_CHAR ) - /* They forgot to leave room for the EOB's. */ - return 0; - - b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); - - b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ - b->yy_buf_pos = b->yy_ch_buf = base; - b->yy_is_our_buffer = 0; - b->yy_input_file = 0; - b->yy_n_chars = b->yy_buf_size; - b->yy_is_interactive = 0; - b->yy_at_bol = 1; - b->yy_fill_buffer = 0; - b->yy_buffer_status = YY_BUFFER_NEW; - - yy_switch_to_buffer(b ); - - return b; -} - -/** Setup the input buffer state to scan a string. The next call to yylex() will - * scan from a @e copy of @a str. - * @param yystr a NUL-terminated string to scan - * - * @return the newly allocated buffer state object. - * @note If you want to scan bytes that may contain NUL values, then use - * yy_scan_bytes() instead. - */ -YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) -{ - - return yy_scan_bytes(yystr,strlen(yystr) ); -} - -/** Setup the input buffer state to scan the given bytes. The next call to yylex() will - * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. - * - * @return the newly allocated buffer state object. - */ -YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) -{ - YY_BUFFER_STATE b; - char *buf; - yy_size_t n; - int i; - - /* Get memory for full buffer, including space for trailing EOB's. */ - n = _yybytes_len + 2; - buf = (char *) yyalloc(n ); - if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); - - for ( i = 0; i < _yybytes_len; ++i ) - buf[i] = yybytes[i]; - - buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; - - b = yy_scan_buffer(buf,n ); - if ( ! b ) - YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); - - /* It's okay to grow etc. this buffer, and we should throw it - * away when we're done. - */ - b->yy_is_our_buffer = 1; - - return b; -} - -#ifndef YY_EXIT_FAILURE -#define YY_EXIT_FAILURE 2 -#endif - -static void yy_fatal_error (yyconst char* msg ) -{ - (void) fprintf( stderr, "%s\n", msg ); - exit( YY_EXIT_FAILURE ); -} - -/* Redefine yyless() so it works in section 3 code. */ - -#undef yyless -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - yytext[yyleng] = (yy_hold_char); \ - (yy_c_buf_p) = yytext + yyless_macro_arg; \ - (yy_hold_char) = *(yy_c_buf_p); \ - *(yy_c_buf_p) = '\0'; \ - yyleng = yyless_macro_arg; \ - } \ - while ( 0 ) - -/* Accessor methods (get/set functions) to struct members. */ - -/** Get the current line number. - * - */ -int yyget_lineno (void) -{ - - return yylineno; -} - -/** Get the input stream. - * - */ -FILE *yyget_in (void) -{ - return yyin; -} - -/** Get the output stream. - * - */ -FILE *yyget_out (void) -{ - return yyout; -} - -/** Get the length of the current token. - * - */ -int yyget_leng (void) -{ - return yyleng; -} - -/** Get the current token. - * - */ - -char *yyget_text (void) -{ - return yytext; -} - -/** Set the current line number. - * @param line_number - * - */ -void yyset_lineno (int line_number ) -{ - - yylineno = line_number; -} - -/** Set the input stream. This does not discard the current - * input buffer. - * @param in_str A readable stream. - * - * @see yy_switch_to_buffer - */ -void yyset_in (FILE * in_str ) -{ - yyin = in_str ; -} - -void yyset_out (FILE * out_str ) -{ - yyout = out_str ; -} - -int yyget_debug (void) -{ - return yy_flex_debug; -} - -void yyset_debug (int bdebug ) -{ - yy_flex_debug = bdebug ; -} - -static int yy_init_globals (void) -{ - /* Initialization is the same as for the non-reentrant scanner. - * This function is called from yylex_destroy(), so don't allocate here. - */ - - (yy_buffer_stack) = 0; - (yy_buffer_stack_top) = 0; - (yy_buffer_stack_max) = 0; - (yy_c_buf_p) = (char *) 0; - (yy_init) = 0; - (yy_start) = 0; - -/* Defined in main.c */ -#ifdef YY_STDINIT - yyin = stdin; - yyout = stdout; -#else - yyin = (FILE *) 0; - yyout = (FILE *) 0; -#endif - - /* For future reference: Set errno on error, since we are called by - * yylex_init() - */ - return 0; -} - -/* yylex_destroy is for both reentrant and non-reentrant scanners. */ -int yylex_destroy (void) -{ - - /* Pop the buffer stack, destroying each element. */ - while(YY_CURRENT_BUFFER){ - yy_delete_buffer(YY_CURRENT_BUFFER ); - YY_CURRENT_BUFFER_LVALUE = NULL; - yypop_buffer_state(); - } - - /* Destroy the stack itself. */ - yyfree((yy_buffer_stack) ); - (yy_buffer_stack) = NULL; - - /* Reset the globals. This is important in a non-reentrant scanner so the next time - * yylex() is called, initialization will occur. */ - yy_init_globals( ); - - return 0; -} - -/* - * Internal utility routines. - */ - -#ifndef yytext_ptr -static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) -{ - register int i; - for ( i = 0; i < n; ++i ) - s1[i] = s2[i]; -} -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * s ) -{ - register int n; - for ( n = 0; s[n]; ++n ) - ; - - return n; -} -#endif - -void *yyalloc (yy_size_t size ) -{ - return (void *) malloc( size ); -} - -void *yyrealloc (void * ptr, yy_size_t size ) -{ - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return (void *) realloc( (char *) ptr, size ); -} - -void yyfree (void * ptr ) -{ - free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ -} - -#define YYTABLES_NAME "yytables" - -#line 63 "../../../usr.bin/m4/tokenizer.l" - - - -int32_t -number() -{ - long l; - - errno = 0; - l = strtol(yytext, NULL, 0); - if (((l == LONG_MAX || l == LONG_MIN) && errno == ERANGE) || - l > INT32_MAX || l < INT32_MIN) { - fprintf(stderr, "m4: numeric overflow in expr: %s\n", yytext); - } - return l; -} - -int32_t -parse_radix() -{ - long base; - char *next; - long l; - - l = 0; - base = strtol(yytext+2, &next, 0); - if (base > 36 || next == NULL) { - fprintf(stderr, "m4: error in number %s\n", yytext); - } else { - next++; - while (*next != 0) { - if (*next >= '0' && *next <= '9') - l = base * l + *next - '0'; - else if (*next >= 'a' && *next <= 'z') - l = base * l + *next - 'a' + 10; - else if (*next >= 'A' && *next <= 'Z') - l = base * l + *next - 'A' + 10; - next++; - } - } - return l; -} - - diff --git a/tools/make/Makefile.regen b/tools/make/Makefile.regen deleted file mode 100644 index f55958d34..000000000 --- a/tools/make/Makefile.regen +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile.regen,v 1.1 2007/10/14 20:25:35 apb Exp $ - -.include "bsd.own.mk" - -# Run "${TOOLDIR}/bin/nbmake-${MACHINE} -f Makefile.regen" by hand after -# editing configure.ac. See more detailed instructions in configure.ac. -regen: - cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoconf diff --git a/tools/make/buildmake.sh.in b/tools/make/buildmake.sh.in deleted file mode 100755 index 59e3bfbbf..000000000 --- a/tools/make/buildmake.sh.in +++ /dev/null @@ -1,23 +0,0 @@ -#! /bin/sh -# $NetBSD: buildmake.sh.in,v 1.8 2006/08/26 22:17:48 christos Exp $ -# -# buildmake.sh.in - Autoconf-processed shell script for building make(1). -# - -: ${HOST_CC="@CC@"} -: ${HOST_CFLAGS="@CPPFLAGS@ @CFLAGS@"} -: ${HOST_LDFLAGS="@LDFLAGS@ @LIBS@"} -: ${runcmd=""} - -docmd () { - echo "$1" - $1 || exit 1 -} - -MKSRCDIR=@srcdir@/../../usr.bin/make - -for f in $MKSRCDIR/*.c $MKSRCDIR/lst.lib/*.c; do - docmd "${HOST_CC} ${HOST_CFLAGS} @DEFS@ -c $f" -done - -docmd "${HOST_CC} ${HOST_CFLAGS} -o ${_TOOL_PREFIX:-nb}make *.o ${HOST_LDFLAGS}" diff --git a/tools/make/configure b/tools/make/configure deleted file mode 100755 index 92810e3fc..000000000 --- a/tools/make/configure +++ /dev/null @@ -1,2802 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by Autoconf 2.52 for make noversion. -# -# Report bugs to . -# -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 -# Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi - -# Name of the executable. -as_me=`echo "$0" |sed 's,.*[\\/],,'` - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -as_executable_p="test -f" - -# Support unset when possible. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - -# NLS nuisances. -$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } -$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } -$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } -$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } -$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } -$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } -$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } -$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -exec 6>&1 - -# -# Initializations. -# -ac_default_prefix=/usr/local -cross_compiling=no -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Maximum number of lines to put in a shell here document. -# This variable seems obsolete. It should probably be removed, and -# only ac_max_sed_lines should be used. -: ${ac_max_here_lines=38} - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Identity of this package. -PACKAGE_NAME='make' -PACKAGE_TARNAME='make' -PACKAGE_VERSION='noversion' -PACKAGE_STRING='make noversion' -PACKAGE_BUGREPORT='bin-bug-people@NetBSD.org' - -ac_prev= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_option in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - eval "enable_$ac_feature=no" ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "enable_$ac_feature='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package| sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "with_$ac_package='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/-/_/g'` - eval "with_$ac_package=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` - eval "$ac_envvar='$ac_optarg'" - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute paths. -for ac_var in exec_prefix prefix -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; - *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -# Be sure to have absolute paths. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ - localstatedir libdir includedir oldincludedir infodir mandir -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* ) ;; - *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: should be removed in autoconf 3.0. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 - { (exit 1); exit 1; }; } - else - { echo "$as_me: error: cannot find sources in $srcdir" >&2 - { (exit 1); exit 1; }; } - fi -fi -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` -ac_env_build_alias_set=${build_alias+set} -ac_env_build_alias_value=$build_alias -ac_cv_env_build_alias_set=${build_alias+set} -ac_cv_env_build_alias_value=$build_alias -ac_env_host_alias_set=${host_alias+set} -ac_env_host_alias_value=$host_alias -ac_cv_env_host_alias_set=${host_alias+set} -ac_cv_env_host_alias_value=$host_alias -ac_env_target_alias_set=${target_alias+set} -ac_env_target_alias_value=$target_alias -ac_cv_env_target_alias_set=${target_alias+set} -ac_cv_env_target_alias_value=$target_alias -ac_env_CC_set=${CC+set} -ac_env_CC_value=$CC -ac_cv_env_CC_set=${CC+set} -ac_cv_env_CC_value=$CC -ac_env_CFLAGS_set=${CFLAGS+set} -ac_env_CFLAGS_value=$CFLAGS -ac_cv_env_CFLAGS_set=${CFLAGS+set} -ac_cv_env_CFLAGS_value=$CFLAGS -ac_env_LDFLAGS_set=${LDFLAGS+set} -ac_env_LDFLAGS_value=$LDFLAGS -ac_cv_env_LDFLAGS_set=${LDFLAGS+set} -ac_cv_env_LDFLAGS_value=$LDFLAGS -ac_env_CPPFLAGS_set=${CPPFLAGS+set} -ac_env_CPPFLAGS_value=$CPPFLAGS -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} -ac_cv_env_CPPFLAGS_value=$CPPFLAGS -ac_env_CPP_set=${CPP+set} -ac_env_CPP_value=$CPP -ac_cv_env_CPP_set=${CPP+set} -ac_cv_env_CPP_value=$CPP - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat < if you have libraries in a - nonstandard directory - CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have - headers in a nonstandard directory - CPP C preprocessor - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -Report bugs to . -EOF -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - ac_popdir=`pwd` - for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue - cd $ac_subdir - # A "../" for each directory in /$ac_subdir. - ac_dots=`echo $ac_subdir | - sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` - - case $srcdir in - .) # No --srcdir option. We are building in place. - ac_sub_srcdir=$srcdir ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_sub_srcdir=$srcdir/$ac_subdir ;; - *) # Relative path. - ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; - esac - - # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_sub_srcdir/configure.gnu; then - echo - $SHELL $ac_sub_srcdir/configure.gnu --help=recursive - elif test -f $ac_sub_srcdir/configure; then - echo - $SHELL $ac_sub_srcdir/configure --help=recursive - elif test -f $ac_sub_srcdir/configure.ac || - test -f $ac_sub_srcdir/configure.in; then - echo - $ac_configure --help - else - echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 - fi - cd $ac_popdir - done -fi - -test -n "$ac_init_help" && exit 0 -if $ac_init_version; then - cat <<\EOF -make configure noversion -generated by GNU Autoconf 2.52 - -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -EOF - exit 0 -fi -exec 5>config.log -cat >&5 </dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -hostinfo = `(hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -PATH = $PATH - -_ASUNAME -} >&5 - -cat >&5 <\?\"\']*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" - ac_sep=" " ;; - *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" - ac_sep=" " ;; - esac - # Get rid of the leading space. -done - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - echo >&5 - echo "## ----------------- ##" >&5 - echo "## Cache variables. ##" >&5 - echo "## ----------------- ##" >&5 - echo >&5 - # The following way of writing the cache mishandles newlines in values, -{ - (set) 2>&1 | - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in - *ac_space=\ *) - sed -n \ - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" - ;; - *) - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} >&5 - sed "/^$/d" confdefs.h >conftest.log - if test -s conftest.log; then - echo >&5 - echo "## ------------ ##" >&5 - echo "## confdefs.h. ##" >&5 - echo "## ------------ ##" >&5 - echo >&5 - cat conftest.log >&5 - fi - (echo; echo) >&5 - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" >&5 - echo "$as_me: exit $exit_status" >&5 - rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && - exit $exit_status - ' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo >confdefs.h - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - { echo "$as_me:824: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - cat "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:835: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . $cache_file;; - *) . ./$cache_file;; - esac - fi -else - { echo "$as_me:843: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in `(set) 2>&1 | - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val="\$ac_cv_env_${ac_var}_value" - eval ac_new_val="\$ac_env_${ac_var}_value" - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:859: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:863: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:869: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:871: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:873: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. It doesn't matter if - # we pass some twice (in addition to the command line arguments). - if test "$ac_new_set" = set; then - case $ac_new_val in - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` - ac_configure_args="$ac_configure_args '$ac_arg'" - ;; - *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" - ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:892: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:894: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -esac -echo "#! $SHELL" >conftest.sh -echo "exit 0" >>conftest.sh -chmod +x conftest.sh -if { (echo "$as_me:914: PATH=\".;.\"; conftest.sh") >&5 - (PATH=".;."; conftest.sh) 2>&5 - ac_status=$? - echo "$as_me:917: \$? = $ac_status" >&5 - (exit $ac_status); }; then - ac_path_separator=';' -else - ac_path_separator=: -fi -PATH_SEPARATOR="$ac_path_separator" -rm -f conftest.sh - -ac_config_files="$ac_config_files buildmake.sh" - -# Extract the first word of "sh", so it can be a program name with args. -set dummy sh; ac_word=$2 -echo "$as_me:930: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_BSHELL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $BSHELL in - [\\/]* | ?:[\\/]*) - ac_cv_path_BSHELL="$BSHELL" # Let the user override the test with a path. - ;; - *) - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - if $as_executable_p "$ac_dir/$ac_word"; then - ac_cv_path_BSHELL="$ac_dir/$ac_word" - echo "$as_me:947: found $ac_dir/$ac_word" >&5 - break -fi -done - - ;; -esac -fi -BSHELL=$ac_cv_path_BSHELL - -if test -n "$BSHELL"; then - echo "$as_me:958: result: $BSHELL" >&5 -echo "${ECHO_T}$BSHELL" >&6 -else - echo "$as_me:961: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -if test x"$BSHELL" = x; then - { { echo "$as_me:966: error: sh must be somewhere on \$PATH, or BSHELL must be defined" >&5 -echo "$as_me: error: sh must be somewhere on \$PATH, or BSHELL must be defined" >&2;} - { (exit 1); exit 1; }; } -fi -cat >>confdefs.h <&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_CC="${ac_tool_prefix}gcc" -echo "$as_me:998: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:1006: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:1009: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo "$as_me:1018: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_ac_ct_CC="gcc" -echo "$as_me:1033: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:1041: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:1044: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - CC=$ac_ct_CC -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -echo "$as_me:1057: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_CC="${ac_tool_prefix}cc" -echo "$as_me:1072: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:1080: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:1083: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo "$as_me:1092: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_ac_ct_CC="cc" -echo "$as_me:1107: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:1115: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:1118: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - CC=$ac_ct_CC -else - CC="$ac_cv_prog_CC" -fi - -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo "$as_me:1131: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue -fi -ac_cv_prog_CC="cc" -echo "$as_me:1151: found $ac_dir/$ac_word" >&5 -break -done - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" ${1+"$@"} - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:1173: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:1176: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -echo "$as_me:1187: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_CC="$ac_tool_prefix$ac_prog" -echo "$as_me:1202: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:1210: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:1213: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:1226: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else - ac_save_IFS=$IFS; IFS=$ac_path_separator -ac_dummy="$PATH" -for ac_dir in $ac_dummy; do - IFS=$ac_save_IFS - test -z "$ac_dir" && ac_dir=. - $as_executable_p "$ac_dir/$ac_word" || continue -ac_cv_prog_ac_ct_CC="$ac_prog" -echo "$as_me:1241: found $ac_dir/$ac_word" >&5 -break -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:1249: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:1252: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$ac_ct_CC" && break -done - - CC=$ac_ct_CC -fi - -fi - -test -z "$CC" && { { echo "$as_me:1264: error: no acceptable cc found in \$PATH" >&5 -echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:1269:" \ - "checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (eval echo "$as_me:1272: \"$ac_compiler --version &5\"") >&5 - (eval $ac_compiler --version &5) 2>&5 - ac_status=$? - echo "$as_me:1275: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:1277: \"$ac_compiler -v &5\"") >&5 - (eval $ac_compiler -v &5) 2>&5 - ac_status=$? - echo "$as_me:1280: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:1282: \"$ac_compiler -V &5\"") >&5 - (eval $ac_compiler -V &5) 2>&5 - ac_status=$? - echo "$as_me:1285: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -#line 1289 "configure" -#include "confdefs.h" - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -echo "$as_me:1305: checking for C compiler default output" >&5 -echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -if { (eval echo "$as_me:1308: \"$ac_link_default\"") >&5 - (eval $ac_link_default) 2>&5 - ac_status=$? - echo "$as_me:1311: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Find the output, starting from the most likely. This scheme is -# not robust to junk in `.', hence go to wildcards (a.*) only as a last -# resort. -for ac_file in `ls a.exe conftest.exe 2>/dev/null; - ls a.out conftest 2>/dev/null; - ls a.* conftest.* 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; - a.out ) # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - # FIXME: I believe we export ac_cv_exeext for Libtool --akim. - export ac_cv_exeext - break;; - * ) break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -{ { echo "$as_me:1334: error: C compiler cannot create executables" >&5 -echo "$as_me: error: C compiler cannot create executables" >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext -echo "$as_me:1340: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6 - -# Check the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -echo "$as_me:1345: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (eval echo "$as_me:1351: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1354: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:1361: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -echo "$as_me:1369: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - -rm -f a.out a.exe conftest$ac_cv_exeext -ac_clean_files=$ac_clean_files_save -# Check the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -echo "$as_me:1376: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 -echo "$as_me:1378: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6 - -echo "$as_me:1381: checking for executable suffix" >&5 -echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 -if { (eval echo "$as_me:1383: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:1386: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - export ac_cv_exeext - break;; - * ) break;; - esac -done -else - { { echo "$as_me:1402: error: cannot compute EXEEXT: cannot compile and link" >&5 -echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -echo "$as_me:1408: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6 - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -echo "$as_me:1414: checking for object suffix" >&5 -echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 1420 "configure" -#include "confdefs.h" - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (eval echo "$as_me:1432: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1435: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -{ { echo "$as_me:1447: error: cannot compute OBJEXT: cannot compile" >&5 -echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -echo "$as_me:1454: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6 -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -echo "$as_me:1458: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 1464 "configure" -#include "confdefs.h" - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1479: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1482: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1485: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1488: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_compiler_gnu=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -echo "$as_me:1500: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -CFLAGS="-g" -echo "$as_me:1506: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 1512 "configure" -#include "confdefs.h" - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1524: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1527: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1530: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1533: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_prog_cc_g=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:1543: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -# Some people use a C++ compiler to compile C. Since we use `exit', -# in C++ we need to declare it. In case someone uses the same compiler -# for both compiling C and C++ we need to have the C++ compiler decide -# the declaration of exit, since it's the most demanding environment. -cat >conftest.$ac_ext <<_ACEOF -#ifndef __cplusplus - choke me -#endif -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1570: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1573: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1576: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1579: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - for ac_declaration in \ - ''\ - '#include ' \ - 'extern "C" void std::exit (int) throw (); using std::exit;' \ - 'extern "C" void std::exit (int); using std::exit;' \ - 'extern "C" void exit (int) throw ();' \ - 'extern "C" void exit (int);' \ - 'void exit (int);' -do - cat >conftest.$ac_ext <<_ACEOF -#line 1591 "configure" -#include "confdefs.h" -#include -$ac_declaration -int -main () -{ -exit (42); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1604: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1607: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1610: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1613: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -continue -fi -rm -f conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -#line 1623 "configure" -#include "confdefs.h" -$ac_declaration -int -main () -{ -exit (42); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:1635: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1638: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:1641: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1644: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - break -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -fi -rm -f conftest.$ac_objext conftest.$ac_ext -done -rm -f conftest* -if test -n "$ac_declaration"; then - echo '#ifdef __cplusplus' >>confdefs.h - echo $ac_declaration >>confdefs.h - echo '#endif' >>confdefs.h -fi - -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -fi -rm -f conftest.$ac_objext conftest.$ac_ext -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -echo "$as_me:1676: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -#line 1697 "configure" -#include "confdefs.h" -#include - Syntax error -_ACEOF -if { (eval echo "$as_me:1702: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:1708: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - : -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -#line 1731 "configure" -#include "confdefs.h" -#include -_ACEOF -if { (eval echo "$as_me:1735: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:1741: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -echo "$as_me:1778: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6 -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -#line 1788 "configure" -#include "confdefs.h" -#include - Syntax error -_ACEOF -if { (eval echo "$as_me:1793: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:1799: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - : -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -#line 1822 "configure" -#include "confdefs.h" -#include -_ACEOF -if { (eval echo "$as_me:1826: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:1832: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:1860: error: C preprocessor \"$CPP\" fails sanity check" >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -echo "$as_me:1871: checking for regex.h" >&5 -echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 -if test "${ac_cv_header_regex_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 1877 "configure" -#include "confdefs.h" -#include -_ACEOF -if { (eval echo "$as_me:1881: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:1887: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_cv_header_regex_h=yes -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_header_regex_h=no -fi -rm -f conftest.err conftest.$ac_ext -fi -echo "$as_me:1906: result: $ac_cv_header_regex_h" >&5 -echo "${ECHO_T}$ac_cv_header_regex_h" >&6 -if test $ac_cv_header_regex_h = yes; then - : -else - { { echo "$as_me:1911: error: POSIX regex.h is required" >&5 -echo "$as_me: error: POSIX regex.h is required" >&2;} - { (exit 1); exit 1; }; } -fi - -# If we don't have , we need to use select(2). -echo "$as_me:1917: checking for poll.h" >&5 -echo $ECHO_N "checking for poll.h... $ECHO_C" >&6 -if test "${ac_cv_header_poll_h+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 1923 "configure" -#include "confdefs.h" -#include -_ACEOF -if { (eval echo "$as_me:1927: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:1933: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_cv_header_poll_h=yes -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_header_poll_h=no -fi -rm -f conftest.err conftest.$ac_ext -fi -echo "$as_me:1952: result: $ac_cv_header_poll_h" >&5 -echo "${ECHO_T}$ac_cv_header_poll_h" >&6 -if test $ac_cv_header_poll_h = yes; then - : -else - cat >>confdefs.h <<\EOF -#define USE_SELECT 1 -EOF - -fi - -# regcomp() and regexec() are also names of functions in the old V8 -# regexp package. To avoid them, we need to find out who has regfree(). - -echo "$as_me:1966: checking for regfree in -lregex" >&5 -echo $ECHO_N "checking for regfree in -lregex... $ECHO_C" >&6 -if test "${ac_cv_lib_regex_regfree+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lregex $LIBS" -cat >conftest.$ac_ext <<_ACEOF -#line 1974 "configure" -#include "confdefs.h" - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char regfree (); -int -main () -{ -regfree (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:1993: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:1996: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:1999: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2002: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_lib_regex_regfree=yes -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_lib_regex_regfree=no -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -echo "$as_me:2013: result: $ac_cv_lib_regex_regfree" >&5 -echo "${ECHO_T}$ac_cv_lib_regex_regfree" >&6 -if test $ac_cv_lib_regex_regfree = yes; then - cat >>confdefs.h <&5 -echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6 -if test "${ac_cv_search_regfree+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_func_search_save_LIBS=$LIBS -ac_cv_search_regfree=no -cat >conftest.$ac_ext <<_ACEOF -#line 2032 "configure" -#include "confdefs.h" - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char regfree (); -int -main () -{ -regfree (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:2051: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:2054: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:2057: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2060: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_search_regfree="none required" -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -if test "$ac_cv_search_regfree" = no; then - for ac_lib in rx posix; do - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - cat >conftest.$ac_ext <<_ACEOF -#line 2072 "configure" -#include "confdefs.h" - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char regfree (); -int -main () -{ -regfree (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:2091: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:2094: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:2097: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2100: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_search_regfree="-l$ac_lib" -break -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext - done -fi -LIBS=$ac_func_search_save_LIBS -fi -echo "$as_me:2113: result: $ac_cv_search_regfree" >&5 -echo "${ECHO_T}$ac_cv_search_regfree" >&6 -if test "$ac_cv_search_regfree" != no; then - test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS" - -fi - -for ac_func in setenv strdup strerror strftime vsnprintf -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:2123: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 2129 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. */ -#include -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -char (*f) (); - -int -main () -{ -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -f = $ac_func; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:2160: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:2163: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:2166: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:2169: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -eval "$as_ac_var=no" -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:2179: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overriden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -{ - (set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} | - sed ' - t clear - : clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - : end' >>confcache -if cmp -s $cache_file confcache; then :; else - if test -w $cache_file; then - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" - cat confcache >$cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/; -s/:*\${srcdir}:*/:/; -s/:*@srcdir@:*/:/; -s/^\([^=]*=[ ]*\):*/\1/; -s/:*$//; -s/^[^=]*=[ ]*$//; -}' -fi - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -# -# If the first sed substitution is executed (which looks for macros that -# take arguments), then we branch to the quote section. Otherwise, -# look for a macro that doesn't take arguments. -cat >confdef2opt.sed <<\EOF -t clear -: clear -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g -t quote -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g -t quote -d -: quote -s,[ `~#$^&*(){}\\|;'"<>?],\\&,g -s,\[,\\&,g -s,\],\\&,g -s,\$,$$,g -p -EOF -# We use echo to avoid assuming a particular line-breaking character. -# The extra dot is to prevent the shell from consuming trailing -# line-breaks from the sub-command output. A line-break within -# single-quotes doesn't work because, if this script is created in a -# platform that uses two characters for line-breaks (e.g., DOS), tr -# would break. -ac_LF_and_DOT=`echo; echo .` -DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` -rm -f confdef2opt.sed - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:2298: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated automatically by configure. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -SHELL=\${CONFIG_SHELL-$SHELL} -ac_cs_invocation="\$0 \$@" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi - -# Name of the executable. -as_me=`echo "$0" |sed 's,.*[\\/],,'` - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -as_executable_p="test -f" - -# Support unset when possible. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - -# NLS nuisances. -$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } -$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } -$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } -$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } -$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } -$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } -$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } -$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } - -exec 6>&1 - -_ACEOF - -# Files that config.status was made for. -if test -n "$ac_config_files"; then - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_headers"; then - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_links"; then - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_commands"; then - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS -fi - -cat >>$CONFIG_STATUS <<\EOF - -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number, then exit - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - -Configuration files: -$config_files - -Report bugs to ." -EOF - -cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "x$1" : 'x\([^=]*\)='` - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` - shift - set dummy "$ac_option" "$ac_optarg" ${1+"$@"} - shift - ;; - -*);; - *) # This is not an option, so the user has probably given explicit - # arguments. - ac_need_defaults=false;; - esac - - case $1 in - # Handling of the options. -EOF -cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF - --version | --vers* | -V ) - echo "$ac_cs_version"; exit 0 ;; - --he | --h) - # Conflict between --help and --header - { { echo "$as_me:2465: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - shift - CONFIG_FILES="$CONFIG_FILES $1" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - shift - CONFIG_HEADERS="$CONFIG_HEADERS $1" - ac_need_defaults=false;; - - # This is an error. - -*) { { echo "$as_me:2484: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" ;; - - esac - shift -done - -exec 5>>config.log -cat >&5 << _ACEOF - -## ----------------------- ## -## Running config.status. ## -## ----------------------- ## - -This file was extended by $as_me (make noversion) 2.52, executed with - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - > $ac_cs_invocation -on `(hostname || uname -n) 2>/dev/null | sed 1q` - -_ACEOF -EOF - -cat >>$CONFIG_STATUS <<\EOF -for ac_config_target in $ac_config_targets -do - case "$ac_config_target" in - # Handling of arguments. - "buildmake.sh" ) CONFIG_FILES="$CONFIG_FILES buildmake.sh" ;; - *) { { echo "$as_me:2520: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files -fi - -# Create a temporary directory, and hook for its removal unless debugging. -$debug || -{ - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} - -# Create a (secure) tmp directory for tmp files. -: ${TMPDIR=/tmp} -{ - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=$TMPDIR/cs$$-$RANDOM - (umask 077 && mkdir $tmp) -} || -{ - echo "$me: cannot create a temporary directory in $TMPDIR" >&2 - { (exit 1); exit 1; } -} - -EOF - -cat >>$CONFIG_STATUS <\$tmp/subs.sed <<\\CEOF -s,@SHELL@,$SHELL,;t t -s,@exec_prefix@,$exec_prefix,;t t -s,@prefix@,$prefix,;t t -s,@program_transform_name@,$program_transform_name,;t t -s,@bindir@,$bindir,;t t -s,@sbindir@,$sbindir,;t t -s,@libexecdir@,$libexecdir,;t t -s,@datadir@,$datadir,;t t -s,@sysconfdir@,$sysconfdir,;t t -s,@sharedstatedir@,$sharedstatedir,;t t -s,@localstatedir@,$localstatedir,;t t -s,@libdir@,$libdir,;t t -s,@includedir@,$includedir,;t t -s,@oldincludedir@,$oldincludedir,;t t -s,@infodir@,$infodir,;t t -s,@mandir@,$mandir,;t t -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t -s,@build_alias@,$build_alias,;t t -s,@host_alias@,$host_alias,;t t -s,@target_alias@,$target_alias,;t t -s,@ECHO_C@,$ECHO_C,;t t -s,@ECHO_N@,$ECHO_N,;t t -s,@ECHO_T@,$ECHO_T,;t t -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t -s,@DEFS@,$DEFS,;t t -s,@LIBS@,$LIBS,;t t -s,@BSHELL@,$BSHELL,;t t -s,@CC@,$CC,;t t -s,@CFLAGS@,$CFLAGS,;t t -s,@LDFLAGS@,$LDFLAGS,;t t -s,@CPPFLAGS@,$CPPFLAGS,;t t -s,@ac_ct_CC@,$ac_ct_CC,;t t -s,@EXEEXT@,$EXEEXT,;t t -s,@OBJEXT@,$OBJEXT,;t t -s,@CPP@,$CPP,;t t -CEOF - -EOF - - cat >>$CONFIG_STATUS <<\EOF - # Split the substitutions into bite-sized pieces for seds with - # small command number limits, like on Digital OSF/1 and HP-UX. - ac_max_sed_lines=48 - ac_sed_frag=1 # Number of current file. - ac_beg=1 # First line for current file. - ac_end=$ac_max_sed_lines # Line after last line for current file. - ac_more_lines=: - ac_sed_cmds= - while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - else - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - fi - if test ! -s $tmp/subs.frag; then - ac_more_lines=false - else - # The purpose of the label and of the branching condition is to - # speed up the sed processing (if there are no `@' at all, there - # is no need to browse any of the substitutions). - # These are the two extra sed commands mentioned above. - (echo ':t - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" - else - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" - fi - ac_sed_frag=`expr $ac_sed_frag + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_lines` - fi - done - if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat - fi -fi # test -n "$CONFIG_FILES" - -EOF -cat >>$CONFIG_STATUS <<\EOF -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; - esac - - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. - ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - { case "$ac_dir" in - [\\/]* | ?:[\\/]* ) as_incr_dir=;; - *) as_incr_dir=.;; -esac -as_dummy="$ac_dir" -for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do - case $as_mkdir_dir in - # Skip DOS drivespec - ?:) as_incr_dir=$as_mkdir_dir ;; - *) - as_incr_dir=$as_incr_dir/$as_mkdir_dir - test -d "$as_incr_dir" || mkdir "$as_incr_dir" - ;; - esac -done; } - - ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` - else - ac_dir_suffix= ac_dots= - fi - - case $srcdir in - .) ac_srcdir=. - if test -z "$ac_dots"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_dots$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_dots$srcdir ;; - esac - - if test x"$ac_file" != x-; then - { echo "$as_me:2718: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - rm -f "$ac_file" - fi - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated automatically by config.status. */ - configure_input="Generated automatically from `echo $ac_file_in | - sed 's,.*/,,'` by configure." - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:2736: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - echo $f;; - *) # Relative - if test -f "$f"; then - # Build tree - echo $f - elif test -f "$srcdir/$f"; then - # Source tree - echo $srcdir/$f - else - # /dev/null tree - { { echo "$as_me:2749: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - fi;; - esac - done` || { (exit 1); exit 1; } -EOF -cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s,@configure_input@,$configure_input,;t t -s,@srcdir@,$ac_srcdir,;t t -s,@top_srcdir@,$ac_top_srcdir,;t t -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out - rm -f $tmp/stdin - if test x"$ac_file" != x-; then - mv $tmp/out $ac_file - else - cat $tmp/out - rm -f $tmp/out - fi - -done -EOF - -cat >>$CONFIG_STATUS <<\EOF - -{ (exit 0); exit 0; } -EOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - exec 5>/dev/null - $SHELL $CONFIG_STATUS || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - diff --git a/tools/make/configure.ac b/tools/make/configure.ac deleted file mode 100644 index 368e8a704..000000000 --- a/tools/make/configure.ac +++ /dev/null @@ -1,50 +0,0 @@ -# $NetBSD: configure.ac,v 1.9 2007/10/14 20:26:47 apb Exp $ -# -# Autoconf definition file for make. -# -# When you edit configure.ac: -# 0. Create the tools version of autoconf: -# cd ${SRCDIR} && build.sh -V MKMAINTAINERTOOLS=yes tools -# (This might not work if you try it after editing configure.ac.) -# 1. edit configure.ac -# 2. Regenerate "configure" from "configure.ac": -# cd ${SRCDIR}/tools/make && \ -# ${TOOLDIR}/bin/nbmake-${MACHINE} -f Makefile.regen -# (Please don't use a non-tools version of autoconf). -# 3. Test that nbmake still builds -# mv ${TOOLDIR}/nbmake ${TOOLDIR}/bin/nbmake.bak -# cd ${SRCDIR} && build.sh makewrapper -# 4. cvs commit files that you edited. -# 5. Regen again, to pick up changed RCS IDs from the above commit: -# cd ${SRCDIR}/tools/make && \ -# ${TOOLDIR}/bin/nbmake-${MACHINE} -f Makefile.regen -# 6. cvs commit files that were generated. -# -# - -AC_INIT([make], [noversion], [bin-bug-people@NetBSD.org]) -AC_CONFIG_FILES(buildmake.sh) - -AC_PATH_PROG(BSHELL, sh) -if test x"$BSHELL" = x; then - AC_MSG_ERROR([sh must be somewhere on \$PATH, or BSHELL must be defined]) -fi -AC_DEFINE_UNQUOTED(DEFSHELL_CUSTOM, "${BSHELL}") - -# Make sure we have POSIX regex ability. -AC_CHECK_HEADER(regex.h,, AC_MSG_ERROR([POSIX regex.h is required])) - -# If we don't have , we need to use select(2). -AC_CHECK_HEADER(poll.h,, AC_DEFINE(USE_SELECT)) - -# regcomp() and regexec() are also names of functions in the old V8 -# regexp package. To avoid them, we need to find out who has regfree(). - -dnl # Cygwin: We *MUST* look at -lregex *before* the "no libs" condition. -dnl # Thus AC_CHECK_LIB(regex...) comes first, and AC_SEARCHLIBS next. -AC_CHECK_LIB(regex, regfree) -AC_SEARCH_LIBS(regfree, rx posix) - -AC_CHECK_FUNCS(setenv strdup strerror strftime vsnprintf) - -AC_OUTPUT diff --git a/tools/makefs/Makefile b/tools/makefs/Makefile deleted file mode 100644 index f7919550f..000000000 --- a/tools/makefs/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -# $NetBSD: Makefile,v 1.9 2011/03/07 13:28:06 he Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}makefs -HOST_SRCDIR= usr.sbin/makefs - -HOST_CPPFLAGS+= -I. -I${TOOLDIR}/include/nbinclude - -.include "${.CURDIR}/../Makefile.nbincludes" -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/makekeys/Makefile b/tools/makekeys/Makefile deleted file mode 100644 index 92e4535ea..000000000 --- a/tools/makekeys/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2015/06/24 22:20:26 matt Exp $ - -#NOMAN= - -#.include - -HOSTPROG= ${_TOOL_PREFIX}makekeys -HOST_SRCDIR= external/mit/xorg/tools/makekeys - -#.PATH: ${X11SRCDIR.X11}/src/util - -#HOST_CPPFLAGS+= -I${DESTDIR}${X11INCDIR} - -#SRCS= makekeys.c - -.include "${.CURDIR}/../Makefile.host" -#.include diff --git a/tools/makestrs/Makefile b/tools/makestrs/Makefile deleted file mode 100644 index 187e4c1fb..000000000 --- a/tools/makestrs/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2015/06/24 22:20:26 matt Exp $ - -HOSTPROG= ${_TOOL_PREFIX}makestrs -HOST_SRCDIR= external/mit/xorg/tools/makestrs - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/makewhatis/Makefile b/tools/makewhatis/Makefile deleted file mode 100644 index 0cef6bcf5..000000000 --- a/tools/makewhatis/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2003/06/14 17:57:26 wiz Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}makewhatis -HOST_SRCDIR= libexec/makewhatis - -CPPFLAGS+= -DNROFF="\"nbnroff\"" - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/mandoc/Makefile b/tools/mandoc/Makefile deleted file mode 100644 index 11c3f8cbd..000000000 --- a/tools/mandoc/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -# $NetBSD: Makefile,v 1.7 2014/01/16 01:15:34 christos Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}mandoc -HOST_SRCDIR= external/bsd/mdocml/bin/mandoc - -NOMAN= # defined - -.include - -NETBSD_MINOR!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh -n -NETBSD_OSNAME= "NetBSD ${NETBSD_MINOR}" - -HOST_CPPFLAGS+= -DOSNAME=${NETBSD_OSNAME:Q} -DHAVE_CONFIG_H -I. - -DPSRCS+= config.h - -CLEANFILES+= config.log config.h - -config.h: configure config.h.pre config.h.post - SRCDIR=${DISTDIR} ${HOST_SH} -x ${DISTDIR}/configure - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/mkcsmapper/Makefile b/tools/mkcsmapper/Makefile deleted file mode 100644 index ef2e5e13a..000000000 --- a/tools/mkcsmapper/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2003/06/26 06:30:19 tshiozak Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}mkcsmapper -HOST_SRCDIR= usr.bin/mkcsmapper - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/mkdep/Makefile b/tools/mkdep/Makefile deleted file mode 100644 index 3885ec5f1..000000000 --- a/tools/mkdep/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile,v 1.8 2002/12/08 20:20:03 thorpej Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}mkdep -HOST_SRCDIR= usr.bin/mkdep - -SRCS= mkdep.c - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/mkesdb/Makefile b/tools/mkesdb/Makefile deleted file mode 100644 index 68dfcc5c2..000000000 --- a/tools/mkesdb/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2003/06/26 06:30:20 tshiozak Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}mkesdb -HOST_SRCDIR= usr.bin/mkesdb - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/mkfs.mfs/Makefile b/tools/mkfs.mfs/Makefile deleted file mode 100644 index c2bd05cda..000000000 --- a/tools/mkfs.mfs/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -HOSTPROGNAME= ${_TOOL_PREFIX}mkfs.mfs -HOST_SRCDIR= minix/usr.sbin/mkfs.mfs/v3 - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/mkheaderlist.sh b/tools/mkheaderlist.sh deleted file mode 100644 index d0a075bf4..000000000 --- a/tools/mkheaderlist.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -# $NetBSD: mkheaderlist.sh,v 1.2 2011/02/05 13:30:26 yamt Exp $ - -# scan the source tree and create the headerlist file which is used by -# Makefile.nbincludes. - -set -e - -mklist() -{ - echo "# \$NetBSD\$" - echo "#" - echo '# do not edit; this file was automatically generated by:' - echo '# $NetBSD: mkheaderlist.sh,v 1.2 2011/02/05 13:30:26 yamt Exp $' | sed -e 's/\$//g' - echo - cd ../sys/arch && find . -name disklabel.h -o -name elf_machdep.h -} - -LIST=headerlist -rm -f ${LIST} -mklist > ${LIST} diff --git a/tools/mklocale/Makefile b/tools/mklocale/Makefile deleted file mode 100644 index ea553d0e5..000000000 --- a/tools/mklocale/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.7 2011/03/18 15:13:55 tsutsui Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}mklocale -HOST_SRCDIR= usr.bin/mklocale - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/mknod/Makefile b/tools/mknod/Makefile deleted file mode 100644 index 1179585e7..000000000 --- a/tools/mknod/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2003/10/27 00:35:37 lukem Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}mknod -HOST_SRCDIR= sbin/mknod - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/mkproto/Makefile b/tools/mkproto/Makefile deleted file mode 100644 index 6f2350c38..000000000 --- a/tools/mkproto/Makefile +++ /dev/null @@ -1,7 +0,0 @@ - -HOSTPROGNAME= ${_TOOL_PREFIX}mkproto -HOST_SRCDIR= usr.sbin/mkproto -#CPPFLAGS+= -I${.CURDIR}/../compat/sys - -LDADD= #defined -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/mktemp/Makefile b/tools/mktemp/Makefile deleted file mode 100644 index 8ea418469..000000000 --- a/tools/mktemp/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2002/12/08 20:20:03 thorpej Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}mktemp -HOST_SRCDIR= usr.bin/mktemp - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/mpc/Makefile b/tools/mpc/Makefile deleted file mode 100644 index 5bad5521f..000000000 --- a/tools/mpc/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2013/11/28 12:08:57 mrg Exp $ -# - -GNUHOSTDIST= ${.CURDIR}/../../external/lgpl3/mpc/dist - -CONFIGURE_ARGS+= --with-gmp=${TOOLDIR:Q} \ - --with-mpfr=${TOOLDIR:Q} - -CONFIGURE_ARGS+=--disable-shared - -.include "${.CURDIR}/../Makefile.gnuhost" - -.if ${HOST_OSTYPE:C/\-.*//} != "Minix" -# Force avoiding possibly non-executable install-sh. -CONFIGURE_ENV+= ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d" -.endif diff --git a/tools/mpfr/Makefile b/tools/mpfr/Makefile deleted file mode 100644 index fa34a1356..000000000 --- a/tools/mpfr/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2012/04/15 08:37:32 mrg Exp $ -# - -GNUHOSTDIST= ${.CURDIR}/../../external/lgpl3/mpfr/dist - -CONFIGURE_ARGS+= --with-gmp=${TOOLDIR:Q} - -CONFIGURE_ARGS+=--disable-shared - -.include "${.CURDIR}/../Makefile.gnuhost" - -.if ${HOST_OSTYPE:C/\-.*//} != "Minix" -# Force avoiding possibly non-executable install-sh. -CONFIGURE_ENV+= ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d" -.endif diff --git a/tools/mtree/Makefile b/tools/mtree/Makefile deleted file mode 100644 index dbc6ce370..000000000 --- a/tools/mtree/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# $NetBSD: Makefile,v 1.7 2013/02/06 01:01:48 christos Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}mtree -HOST_SRCDIR= usr.sbin/mtree -#HOST_CPPFLAGS= -DNO_MD5 -DNO_RMD160 -DNO_SHA1 -DNO_SHA2 - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/nbperf/Makefile b/tools/nbperf/Makefile deleted file mode 100644 index aa76fb1dd..000000000 --- a/tools/nbperf/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2011/11/01 21:16:29 joerg Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}perf -HOST_SRCDIR= usr.bin/nbperf - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/partition/Makefile b/tools/partition/Makefile deleted file mode 100644 index eb1c42a4f..000000000 --- a/tools/partition/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -HOSTPROGNAME= ${_TOOL_PREFIX}partition -HOST_SRCDIR= minix/commands/partition - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/pax/Makefile b/tools/pax/Makefile deleted file mode 100644 index b6777f5a7..000000000 --- a/tools/pax/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2002/12/08 20:20:04 thorpej Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}pax -HOST_SRCDIR= bin/pax - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/pkg_install/Makefile b/tools/pkg_install/Makefile deleted file mode 100644 index cbdf118bf..000000000 --- a/tools/pkg_install/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/12/01 09:01:45 uebayasi Exp $ - -SUBDIR= lib .WAIT pkg_add pkg_create pkg_delete pkg_info -# XXX pkg_admin - -.include diff --git a/tools/pkg_install/Makefile.inc b/tools/pkg_install/Makefile.inc deleted file mode 100644 index 854be640d..000000000 --- a/tools/pkg_install/Makefile.inc +++ /dev/null @@ -1,3 +0,0 @@ -HOST_LDFLAGS:= -L../lib -linstall - -.include "${NETBSDSRCDIR}/external/bsd/pkg_install/sbin/Makefile.inc" diff --git a/tools/pkg_install/pkg_add/Makefile b/tools/pkg_install/pkg_add/Makefile deleted file mode 100644 index 4f6b501a5..000000000 --- a/tools/pkg_install/pkg_add/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/12/01 09:01:46 uebayasi Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}pkg_add -HOST_SRCDIR= external/bsd/pkg_install/sbin/pkg_add - -.include "${.CURDIR}/../Makefile.inc" - -.include "${.CURDIR}/../../Makefile.host" diff --git a/tools/pkg_install/pkg_admin/Makefile b/tools/pkg_install/pkg_admin/Makefile deleted file mode 100644 index 5779c5154..000000000 --- a/tools/pkg_install/pkg_admin/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/12/01 09:01:46 uebayasi Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}pkg_admin -HOST_SRCDIR= external/bsd/pkg_install/sbin/pkg_admin - -.include "${.CURDIR}/../Makefile.inc" - -.include "${.CURDIR}/../../Makefile.host" diff --git a/tools/pkg_install/pkg_create/Makefile b/tools/pkg_install/pkg_create/Makefile deleted file mode 100644 index e0032fe1d..000000000 --- a/tools/pkg_install/pkg_create/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/12/01 09:01:46 uebayasi Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}pkg_create -HOST_SRCDIR= external/bsd/pkg_install/sbin/pkg_create - -.include "${.CURDIR}/../Makefile.inc" - -.include "${.CURDIR}/../../Makefile.host" diff --git a/tools/pkg_install/pkg_delete/Makefile b/tools/pkg_install/pkg_delete/Makefile deleted file mode 100644 index efd5fc2de..000000000 --- a/tools/pkg_install/pkg_delete/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/12/01 09:01:46 uebayasi Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}pkg_delete -HOST_SRCDIR= external/bsd/pkg_install/sbin/pkg_delete - -.include "${.CURDIR}/../Makefile.inc" - -.include "${.CURDIR}/../../Makefile.host" diff --git a/tools/pkg_install/pkg_info/Makefile b/tools/pkg_install/pkg_info/Makefile deleted file mode 100644 index 1c71ea0ef..000000000 --- a/tools/pkg_install/pkg_info/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2009/12/01 09:01:46 uebayasi Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}pkg_info -HOST_SRCDIR= external/bsd/pkg_install/sbin/pkg_info - -.include "${.CURDIR}/../Makefile.inc" - -.include "${.CURDIR}/../../Makefile.host" diff --git a/tools/pwd_mkdb/Makefile b/tools/pwd_mkdb/Makefile deleted file mode 100644 index 239f381ae..000000000 --- a/tools/pwd_mkdb/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2002/12/08 20:20:04 thorpej Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}pwd_mkdb -HOST_SRCDIR= usr.sbin/pwd_mkdb - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/sed/Makefile b/tools/sed/Makefile deleted file mode 100644 index 28b141335..000000000 --- a/tools/sed/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2006/06/18 05:16:41 gdamore Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}sed -HOST_SRCDIR= usr.bin/sed - -.ifdef __MINIX -SYMLINKS= # defined so usr.bin/sed/Makefile does not set it -.endif - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/stat/Makefile b/tools/stat/Makefile deleted file mode 100644 index c702ffbdd..000000000 --- a/tools/stat/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2003/07/20 14:06:33 lukem Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}stat -HOST_SRCDIR= usr.bin/stat - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/strfile/Makefile b/tools/strfile/Makefile deleted file mode 100644 index a909d2da6..000000000 --- a/tools/strfile/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.1 2008/09/26 18:23:09 apb Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}strfile -HOST_SRCDIR= games/fortune/strfile - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/texinfo/Makefile b/tools/texinfo/Makefile deleted file mode 100644 index 821e6d6ac..000000000 --- a/tools/texinfo/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# $NetBSD: Makefile,v 1.11 2013/06/14 16:10:02 tsutsui Exp $ - -MODULE= texinfo - -CONFIGURE_ARGS= --program-prefix=${_TOOL_PREFIX} - -.include "${.CURDIR}/../Makefile.gnuhost" - -.if !empty(.MAKE.OS:M*CYGWIN*) && target(install) -.END: install-texinfo -install-texinfo: - ${HOST_SH} ${NETBSDSRCDIR}/tools/binstall/mkmanifest ${TOOLDIR}/bin/${_TOOL_PREFIX}install-info.exe -.endif diff --git a/tools/tic/Makefile b/tools/tic/Makefile deleted file mode 100644 index 5d236c72f..000000000 --- a/tools/tic/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2011/11/02 17:49:20 christos Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}tic -HOST_SRCDIR= usr.bin/tic -HOST_SRCS= compile.c hash.c - -TERMINFODIR= ${NETBSDSRCDIR}/lib/libterminfo - -.include "${.CURDIR}/../Makefile.host" -.include "${TERMINFODIR}/Makefile.hash" - -.PATH: ${TERMINFODIR} diff --git a/tools/toproto/Makefile b/tools/toproto/Makefile deleted file mode 100644 index 0429dbd0a..000000000 --- a/tools/toproto/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -HOSTPROGNAME= ${_TOOL_PREFIX}toproto -HOST_SRCDIR= minix/usr.bin/toproto - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/tsort/Makefile b/tools/tsort/Makefile deleted file mode 100644 index bb516a70f..000000000 --- a/tools/tsort/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.4 2002/12/08 20:20:06 thorpej Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}tsort -HOST_SRCDIR= usr.bin/tsort - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/uudecode/Makefile b/tools/uudecode/Makefile deleted file mode 100644 index 0bc794fed..000000000 --- a/tools/uudecode/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -# $NetBSD: Makefile,v 1.3 2006/09/24 21:43:14 dbj Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}uudecode -HOST_SRCDIR= usr.bin/uudecode - -HOST_CPPFLAGS= -DNO_BASE64 - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/yacc/Makefile b/tools/yacc/Makefile deleted file mode 100644 index c53b279fc..000000000 --- a/tools/yacc/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -# $NetBSD: Makefile,v 1.5 2009/10/29 01:01:27 christos Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}yacc -HOST_SRCDIR= external/bsd/byacc/bin - -.include "${.CURDIR}/../Makefile.host" diff --git a/tools/zic/Makefile b/tools/zic/Makefile deleted file mode 100644 index 5927879a0..000000000 --- a/tools/zic/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2011/03/03 14:53:01 nakayama Exp $ - -HOSTPROGNAME= ${_TOOL_PREFIX}zic -HOST_SRCDIR= usr.sbin/zic - -.if !empty(HOST_OSTYPE:MSunOS-5.1[01]-*) -HOST_CPPFLAGS= -D_POSIX_PTHREAD_SEMANTICS -.endif - -.include "${.CURDIR}/../Makefile.host"