Module Name: src Committed By: joerg Date: Sun Jun 17 07:40:26 UTC 2012
Modified Files: src/external/bsd/llvm: Makefile.inc src/external/bsd/llvm/config/clang/Config: config.h src/external/bsd/llvm/config/llvm/Config: Disassemblers.def src/external/bsd/llvm/include: Makefile src/external/bsd/llvm/lib/libclangBasic: Makefile src/tools/llvm: Makefile src/tools/llvm-include: Makefile Added Files: src/external/bsd/llvm/config/llvm/Config: config.h.in llvm-config.h.in Removed Files: src/external/bsd/llvm/config/clang/Basic: Version.inc src/external/bsd/llvm/config/llvm/Config: config.h llvm-config.h Log Message: Fix version string returned by clang --version. Integrate the in-tree config file generation with the cross-building toolchain. Regenerate the files. Keep version numbers all in one place. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/external/bsd/llvm/Makefile.inc cvs rdiff -u -r1.2 -r0 src/external/bsd/llvm/config/clang/Basic/Version.inc cvs rdiff -u -r1.3 -r1.4 src/external/bsd/llvm/config/clang/Config/config.h cvs rdiff -u -r1.3 -r1.4 \ src/external/bsd/llvm/config/llvm/Config/Disassemblers.def cvs rdiff -u -r1.9 -r0 src/external/bsd/llvm/config/llvm/Config/config.h cvs rdiff -u -r0 -r1.1 src/external/bsd/llvm/config/llvm/Config/config.h.in \ src/external/bsd/llvm/config/llvm/Config/llvm-config.h.in cvs rdiff -u -r1.6 -r0 src/external/bsd/llvm/config/llvm/Config/llvm-config.h cvs rdiff -u -r1.10 -r1.11 src/external/bsd/llvm/include/Makefile cvs rdiff -u -r1.4 -r1.5 src/external/bsd/llvm/lib/libclangBasic/Makefile cvs rdiff -u -r1.14 -r1.15 src/tools/llvm/Makefile cvs rdiff -u -r1.1 -r1.2 src/tools/llvm-include/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/llvm/Makefile.inc diff -u src/external/bsd/llvm/Makefile.inc:1.36 src/external/bsd/llvm/Makefile.inc:1.37 --- src/external/bsd/llvm/Makefile.inc:1.36 Sat Jun 16 17:01:03 2012 +++ src/external/bsd/llvm/Makefile.inc Sun Jun 17 07:40:25 2012 @@ -1,12 +1,16 @@ -# $NetBSD: Makefile.inc,v 1.36 2012/06/16 17:01:03 joerg Exp $ +# $NetBSD: Makefile.inc,v 1.37 2012/06/17 07:40:25 joerg Exp $ .if !defined(LLVM_TOPLEVEL_MK) LLVM_TOPLEVEL_MK= .include <bsd.own.mk> -LLVM_REVISION= 158533 -CLANG_REVISION= 158533 +COMMON_REVISION= 158533 +LLVM_REVISION= ${COMMON_REVISION} +CLANG_REVISION= ${COMMON_REVISION} + +LLVM_VERSION= 3.2 +CLANG_VERSION= 3.2 LLVM_SRCDIR:= ${.PARSEDIR}/dist/llvm CLANG_SRCDIR:= ${.PARSEDIR}/dist/clang @@ -27,14 +31,16 @@ HOST_CXXFLAGS+= -O2 -g LLVM_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config CLANG_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config LLVM_INCLUDE_OBJDIR!= cd ${LLVM_TOPLEVEL}/include && ${PRINTOBJDIR} -CPPFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE="\"${MACHINE_GNU_PLATFORM}\"" .endif CPPFLAGS+= -I${LLVM_INCLUDE_OBJDIR} -I${LLVM_INCLUDE_CONFIG} \ -I${CLANG_INCLUDE_CONFIG} -# ./configure --enable-targets=x86,powerpc,sparc,arm,mips \ -# --with-c-include-dirs=/usr/include/clang-3.2:/usr/include \ -# --disable-timestamps --prefix=/usr --sysconfdir=/etc/llvm \ -# --disable-threads +LLVM_CONFIGURE_ARGS= \ + --enable-targets=x86,powerpc,sparc,arm,mips \ + --with-c-include-dirs=/usr/include/clang-${CLANG_VERSION}:/usr/include \ + --disable-timestamps --prefix=/usr --sysconfdir=/etc/llvm \ + --with-clang-srcdir=${CLANG_SRCDIR} \ + --host=${MACHINE_GNU_PLATFORM} \ + llvm_cv_gnu_make_command=${MAKE} .endif Index: src/external/bsd/llvm/config/clang/Config/config.h diff -u src/external/bsd/llvm/config/clang/Config/config.h:1.3 src/external/bsd/llvm/config/clang/Config/config.h:1.4 --- src/external/bsd/llvm/config/clang/Config/config.h:1.3 Sat Jun 16 17:01:03 2012 +++ src/external/bsd/llvm/config/clang/Config/config.h Sun Jun 17 07:40:25 2012 @@ -10,13 +10,16 @@ /* Relative directory for resource files */ #define CLANG_RESOURCE_DIR "" -/* Directory where gcc is installed. */ -#define GCC_INSTALL_PREFIX "" - /* Directories clang will search for headers */ #define C_INCLUDE_DIRS "/usr/include/clang-3.2:/usr/include" +/* Linker version detected at compile time. */ +#define HOST_LINK_VERSION "2.22" + /* Default <path> to all compiler invocations for --sysroot=<path>. */ #define DEFAULT_SYSROOT "" +/* Directory where gcc is installed. */ +#define GCC_INSTALL_PREFIX "" + #endif Index: src/external/bsd/llvm/config/llvm/Config/Disassemblers.def diff -u src/external/bsd/llvm/config/llvm/Config/Disassemblers.def:1.3 src/external/bsd/llvm/config/llvm/Config/Disassemblers.def:1.4 --- src/external/bsd/llvm/config/llvm/Config/Disassemblers.def:1.3 Tue Feb 28 17:09:30 2012 +++ src/external/bsd/llvm/config/llvm/Config/Disassemblers.def Sun Jun 17 07:40:26 2012 @@ -24,6 +24,6 @@ # error Please define the macro LLVM_DISASSEMBLER(TargetName) #endif -LLVM_DISASSEMBLER(X86) LLVM_DISASSEMBLER(ARM) +LLVM_DISASSEMBLER(X86) LLVM_DISASSEMBLER(ARM) LLVM_DISASSEMBLER(Mips) #undef LLVM_DISASSEMBLER Index: src/external/bsd/llvm/include/Makefile diff -u src/external/bsd/llvm/include/Makefile:1.10 src/external/bsd/llvm/include/Makefile:1.11 --- src/external/bsd/llvm/include/Makefile:1.10 Sat Jun 16 17:01:03 2012 +++ src/external/bsd/llvm/include/Makefile Sun Jun 17 07:40:26 2012 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2012/06/16 17:01:03 joerg Exp $ +# $NetBSD: Makefile,v 1.11 2012/06/17 07:40:26 joerg Exp $ .include <bsd.init.mk> @@ -30,7 +30,7 @@ INCS= ammintrin.h \ .elif ${MACHINE_ARCH} == "powerpc" INCS= altivec.h .endif -INCSDIR= /usr/include/clang-3.2 +INCSDIR= /usr/include/clang-${CLANG_VERSION} HEADER= \ float.h \ @@ -101,6 +101,64 @@ CLANG_TABLEGEN_OUTPUT.CC1AsOptions.td= \ .include "${.PARSEDIR}/../tablegen.mk" +DPSRCS+= clang/Basic/Version.inc +CLEANFILES+= clang/Basic/Version.inc + +clang/Basic/Version.inc: ${LLVM_TOPLEVEL}/Makefile.inc + mkdir -p ${.TARGET:H} + printf '#define CLANG_VERSION ${CLANG_VERSION}\n' > ${.TARGET}.tmp + printf '#define CLANG_VERSION_MAJOR ${CLANG_VERSION:C,\.[0-9]*,,}\n' >> ${.TARGET}.tmp + printf '#define CLANG_VERSION_MINOR ${CLANG_VERSION:C,[0-9]*\.,,}\n' >> ${.TARGET}.tmp + mv ${.TARGET}.tmp ${.TARGET} + +.ifndef HOST_BUILD + +DPSRCS+= llvm/Config/config.h llvm/Config/llvm-config.h +CLEANFILES+= llvm/Config/config.h llvm/Config/llvm-config.h + +llvm/Config/config.h: ${LLVM_TOPLEVEL}/Makefile.inc ${LLVM_TOPLEVEL}/config/llvm/Config/config.h.in + mkdir -p ${.TARGET:H} + ${TOOL_SED} -e /LLVM_DEFAULT_TARGET_TRIPLE/d -e /LLVM_NATIVE_/d \ + -e /LLVM_VERSION_/d -e /PACKAGE_VERSION/d \ + -e /\#endif/d \ + < ${LLVM_TOPLEVEL}/config/llvm/Config/config.h.in \ + > ${.TARGET}.tmp + printf '#define LLVM_DEFAULT_TARGET_TRIPLE "${MACHINE_GNU_PLATFORM}"\n' >> ${.TARGET}.tmp + printf '#define PACKAGE_VERSION "${LLVM_VERSION} (trunk ${LLVM_REVISION})"\n' >> ${.TARGET}.tmp + printf '#define LLVM_VERSION_MAJOR ${LLVM_VERSION:C,\.[0-9]*,,}\n' >> ${.TARGET}.tmp + printf '#define LLVM_VERSION_MINOR ${LLVM_VERSION:C,[0-9]*\.,,}\n' >> ${.TARGET}.tmp + printf '#endif\n' >> ${.TARGET}.tmp + mv ${.TARGET}.tmp ${.TARGET} + +llvm/Config/llvm-config.h: ${LLVM_TOPLEVEL}/Makefile.inc ${LLVM_TOPLEVEL}/config/llvm/Config/llvm-config.h.in + mkdir -p ${.TARGET:H} + ${TOOL_SED} -e /LLVM_DEFAULT_TARGET_TRIPLE/d -e /LLVM_NATIVE_/d \ + -e /LLVM_VERSION_/d -e /PACKAGE_VERSION/d \ + -e /\#endif/d \ + < ${LLVM_TOPLEVEL}/config/llvm/Config/llvm-config.h.in \ + > ${.TARGET}.tmp + printf '#define LLVM_DEFAULT_TARGET_TRIPLE "${MACHINE_GNU_PLATFORM}"\n' >> ${.TARGET}.tmp + printf '#define LLVM_VERSION_MAJOR ${LLVM_VERSION:C,\.[0-9]*,,}\n' >> ${.TARGET}.tmp + printf '#define LLVM_VERSION_MINOR ${LLVM_VERSION:C,[0-9]*\.,,}\n' >> ${.TARGET}.tmp + printf '#endif\n' >> ${.TARGET}.tmp + mv ${.TARGET}.tmp ${.TARGET} + +run-configure: + [ ! -d tmp ] || rm -r tmp + mkdir -p tmp + cd tmp && ${LLVM_SRCDIR}/configure ${LLVM_CONFIGURE_ARGS} \ + CC=${CC:Q} CFLAGS=${CFLAGS:N-Werror:Q} CXX=${CXX:Q} CXXFLAGS=${CXXFLAGS:N-Werror:Q} \ + CPPFLAGS=${CPPFLAGS:Q} LDFLAGS=${LDFLAGS:Q} LD=${LD:Q} LIBS=-lm \ + ac_cv_func_mmap_fixed_mapped=yes ac_cv_func_mmap_file=yes llvm_cv_c_printf_a=yes + cp -r tmp/include/llvm/* ${LLVM_INCLUDE_CONFIG}/llvm/ + mv ${LLVM_INCLUDE_CONFIG}/llvm/Config/config.h \ + ${LLVM_INCLUDE_CONFIG}/llvm/Config/config.h.in + mv ${LLVM_INCLUDE_CONFIG}/llvm/Config/llvm-config.h \ + ${LLVM_INCLUDE_CONFIG}/llvm/Config/llvm-config.h.in + cp -r tmp/tools/clang/include/clang/* ${CLANG_INCLUDE_CONFIG}/clang/ + rm -r tmp +.endif + depend dependall all: ${DPSRCS} .include <bsd.prog.mk> Index: src/external/bsd/llvm/lib/libclangBasic/Makefile diff -u src/external/bsd/llvm/lib/libclangBasic/Makefile:1.4 src/external/bsd/llvm/lib/libclangBasic/Makefile:1.5 --- src/external/bsd/llvm/lib/libclangBasic/Makefile:1.4 Sun Dec 11 14:58:50 2011 +++ src/external/bsd/llvm/lib/libclangBasic/Makefile Sun Jun 17 07:40:26 2012 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2011/12/11 14:58:50 joerg Exp $ +# $NetBSD: Makefile,v 1.5 2012/06/17 07:40:26 joerg Exp $ LIB= clangBasic @@ -23,7 +23,8 @@ SRCS+= Builtins.cpp \ Version.cpp \ VersionTuple.cpp -CPPFLAGS.version.cpp= -DSVN_REVISON=\"${CLANG_REVISION}\" +CPPFLAGS.Version.cpp= -DSVN_REVISION=\"${CLANG_REVISION}\" \ + -DLLVM_REVISION=\"${LLVM_REVISION}\" .if defined(HOSTLIB) .include <bsd.hostlib.mk> Index: src/tools/llvm/Makefile diff -u src/tools/llvm/Makefile:1.14 src/tools/llvm/Makefile:1.15 --- src/tools/llvm/Makefile:1.14 Sat Jun 16 17:01:04 2012 +++ src/tools/llvm/Makefile Sun Jun 17 07:40:25 2012 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2012/06/16 17:01:04 joerg Exp $ +# $NetBSD: Makefile,v 1.15 2012/06/17 07:40:25 joerg Exp $ .include <bsd.init.mk> @@ -9,22 +9,12 @@ .include "Makefile.inc" .include "${LLVM_TOPLEVEL}/lib/Makefile.inc" -realdepends realall: config/config.status need-dl \ - config/include/clang/Basic/Version.inc - -config/include/clang/Basic/Version.inc: \ - ${LLVM_TOPLEVEL}/config/clang/Basic/Version.inc - mkdir -p ${.TARGET:H} - cat < ${.ALLSRC} > ${.TARGET} +realdepends realall: config/config.status need-dl config/config.status: ${LLVM_SRCDIR}/configure mkdir -p config - cd config && ${LLVM_SRCDIR}/configure CC=${HOST_CC:Q} --prefix=/usr \ - --enable-targets=x86,powerpc,sparc,arm,mips \ - --host=${MACHINE_GNU_PLATFORM} \ - --with-c-include-dirs=/usr/include/clang-3.2:/usr/include \ - --with-clang-srcdir=${CLANG_SRCDIR} \ - --enable-optimized llvm_cv_gnu_make_command=${MAKE} + cd config && ${LLVM_SRCDIR}/configure ${LLVM_CONFIGURE_ARGS} \ + --enable-optimized CC=${HOST_CC:Q} # --disable-assertions need-dl: Index: src/tools/llvm-include/Makefile diff -u src/tools/llvm-include/Makefile:1.1 src/tools/llvm-include/Makefile:1.2 --- src/tools/llvm-include/Makefile:1.1 Sun Feb 6 01:14:11 2011 +++ src/tools/llvm-include/Makefile Sun Jun 17 07:40:25 2012 @@ -1,4 +1,6 @@ -# $NetBSD: Makefile,v 1.1 2011/02/06 01:14:11 joerg Exp $ +# $NetBSD: Makefile,v 1.2 2012/06/17 07:40:25 joerg Exp $ + +HOST_BUILD= .include "${.PARSEDIR}/../llvm/Makefile.inc" Added files: Index: src/external/bsd/llvm/config/llvm/Config/config.h.in diff -u /dev/null src/external/bsd/llvm/config/llvm/Config/config.h.in:1.1 --- /dev/null Sun Jun 17 07:40:26 2012 +++ src/external/bsd/llvm/config/llvm/Config/config.h.in Sun Jun 17 07:40:26 2012 @@ -0,0 +1,709 @@ +/* include/llvm/Config/config.h. Generated from config.h.in by configure. */ +/* include/llvm/Config/config.h.in. Generated from autoconf/configure.ac by autoheader. */ + +#ifndef CONFIG_H +#define CONFIG_H + +/* Bug report URL. */ +#define BUG_REPORT_URL "http://llvm.org/bugs/" + +/* Relative directory for resource files */ +#define CLANG_RESOURCE_DIR "" + +/* Directories clang will search for headers */ +#define C_INCLUDE_DIRS "/usr/include/clang-3.2:/usr/include" + +/* Default <path> to all compiler invocations for --sysroot=<path>. */ +#define DEFAULT_SYSROOT "" + +/* Define if position independent code is enabled */ +#define ENABLE_PIC 1 + +/* Define if timestamp information (e.g., __DATE___) is allowed */ +#define ENABLE_TIMESTAMPS 0 + +/* Directory where gcc is installed. */ +#define GCC_INSTALL_PREFIX "" + +/* Define to 1 if you have the `arc4random' function. */ +#define HAVE_ARC4RANDOM 1 + +/* Define to 1 if you have the `argz_append' function. */ +/* #undef HAVE_ARGZ_APPEND */ + +/* Define to 1 if you have the `argz_create_sep' function. */ +/* #undef HAVE_ARGZ_CREATE_SEP */ + +/* Define to 1 if you have the <argz.h> header file. */ +/* #undef HAVE_ARGZ_H */ + +/* Define to 1 if you have the `argz_insert' function. */ +/* #undef HAVE_ARGZ_INSERT */ + +/* Define to 1 if you have the `argz_next' function. */ +/* #undef HAVE_ARGZ_NEXT */ + +/* Define to 1 if you have the `argz_stringify' function. */ +/* #undef HAVE_ARGZ_STRINGIFY */ + +/* Define to 1 if you have the <assert.h> header file. */ +#define HAVE_ASSERT_H 1 + +/* Define to 1 if you have the `backtrace' function. */ +/* #undef HAVE_BACKTRACE */ + +/* Define to 1 if you have the `bcopy' function. */ +/* #undef HAVE_BCOPY */ + +/* Define to 1 if you have the `ceilf' function. */ +#define HAVE_CEILF 1 + +/* Define if the neat program is available */ +/* #undef HAVE_CIRCO */ + +/* Define to 1 if you have the `closedir' function. */ +#define HAVE_CLOSEDIR 1 + +/* Define to 1 if you have the <CrashReporterClient.h> header file. */ +/* #undef HAVE_CRASHREPORTERCLIENT_H */ + +/* Define if __crashreporter_info__ exists. */ +#define HAVE_CRASHREPORTER_INFO 0 + +/* Define to 1 if you have the <ctype.h> header file. */ +#define HAVE_CTYPE_H 1 + +/* Define to 1 if you have the declaration of `strerror_s', and to 0 if you + don't. */ +#define HAVE_DECL_STRERROR_S 0 + +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. + */ +#define HAVE_DIRENT_H 1 + +/* Define if you have the GNU dld library. */ +/* #undef HAVE_DLD */ + +/* Define to 1 if you have the <dld.h> header file. */ +/* #undef HAVE_DLD_H */ + +/* Define to 1 if you have the `dlerror' function. */ +#define HAVE_DLERROR 1 + +/* Define to 1 if you have the <dlfcn.h> header file. */ +#define HAVE_DLFCN_H 1 + +/* Define if dlopen() is available on this platform. */ +#define HAVE_DLOPEN 1 + +/* Define to 1 if you have the <dl.h> header file. */ +/* #undef HAVE_DL_H */ + +/* Define if the dot program is available */ +/* #undef HAVE_DOT */ + +/* Define if the dotty program is available */ +/* #undef HAVE_DOTTY */ + +/* Define if you have the _dyld_func_lookup function. */ +/* #undef HAVE_DYLD */ + +/* Define to 1 if you have the <errno.h> header file. */ +#define HAVE_ERRNO_H 1 + +/* Define to 1 if the system has the type `error_t'. */ +/* #undef HAVE_ERROR_T */ + +/* Define to 1 if you have the <execinfo.h> header file. */ +#define HAVE_EXECINFO_H 1 + +/* Define to 1 if you have the <fcntl.h> header file. */ +#define HAVE_FCNTL_H 1 + +/* Define if the neat program is available */ +/* #undef HAVE_FDP */ + +/* Define to 1 if you have the <fenv.h> header file. */ +#define HAVE_FENV_H 1 + +/* Define if libffi is available on this platform. */ +/* #undef HAVE_FFI_CALL */ + +/* Define to 1 if you have the <ffi/ffi.h> header file. */ +/* #undef HAVE_FFI_FFI_H */ + +/* Define to 1 if you have the <ffi.h> header file. */ +/* #undef HAVE_FFI_H */ + +/* Set to 1 if the finite function is found in <ieeefp.h> */ +/* #undef HAVE_FINITE_IN_IEEEFP_H */ + +/* Define to 1 if you have the `floorf' function. */ +#define HAVE_FLOORF 1 + +/* Define to 1 if you have the `fmodf' function. */ +#define HAVE_FMODF 1 + +/* Define to 1 if you have the `getcwd' function. */ +#define HAVE_GETCWD 1 + +/* Define to 1 if you have the `getpagesize' function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define to 1 if you have the `getrlimit' function. */ +#define HAVE_GETRLIMIT 1 + +/* Define to 1 if you have the `getrusage' function. */ +#define HAVE_GETRUSAGE 1 + +/* Define to 1 if you have the `gettimeofday' function. */ +#define HAVE_GETTIMEOFDAY 1 + +/* Define if the Graphviz program is available */ +/* #undef HAVE_GRAPHVIZ */ + +/* Define if the gv program is available */ +/* #undef HAVE_GV */ + +/* Define to 1 if you have the `index' function. */ +/* #undef HAVE_INDEX */ + +/* Define to 1 if the system has the type `int64_t'. */ +#define HAVE_INT64_T 1 + +/* Define to 1 if you have the <inttypes.h> header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `isatty' function. */ +#define HAVE_ISATTY 1 + +/* Set to 1 if the isinf function is found in <cmath> */ +/* #undef HAVE_ISINF_IN_CMATH */ + +/* Set to 1 if the isinf function is found in <math.h> */ +#define HAVE_ISINF_IN_MATH_H 1 + +/* Set to 1 if the isnan function is found in <cmath> */ +/* #undef HAVE_ISNAN_IN_CMATH */ + +/* Set to 1 if the isnan function is found in <math.h> */ +#define HAVE_ISNAN_IN_MATH_H 1 + +/* Define if you have the libdl library or equivalent. */ +#define HAVE_LIBDL 1 + +/* Define to 1 if you have the `imagehlp' library (-limagehlp). */ +/* #undef HAVE_LIBIMAGEHLP */ + +/* Define to 1 if you have the `m' library (-lm). */ +#define HAVE_LIBM 1 + +/* Define to 1 if you have the `psapi' library (-lpsapi). */ +/* #undef HAVE_LIBPSAPI */ + +/* Define to 1 if you have the `pthread' library (-lpthread). */ +#define HAVE_LIBPTHREAD 1 + +/* Define to 1 if you have the `udis86' library (-ludis86). */ +/* #undef HAVE_LIBUDIS86 */ + +/* Define to 1 if you have the <limits.h> header file. */ +#define HAVE_LIMITS_H 1 + +/* Define if you can use -Wl,-export-dynamic. */ +#define HAVE_LINK_EXPORT_DYNAMIC 1 + +/* Define to 1 if you have the <link.h> header file. */ +#define HAVE_LINK_H 1 + +/* Define if you can use -Wl,-R. to pass -R. to the linker, in order to add + the current directory to the dynamic linker search path. */ +#define HAVE_LINK_R 1 + +/* Define to 1 if you have the `longjmp' function. */ +/* #undef HAVE_LONGJMP */ + +/* Define to 1 if you have the <mach/mach.h> header file. */ +/* #undef HAVE_MACH_MACH_H */ + +/* Define to 1 if you have the <mach-o/dyld.h> header file. */ +/* #undef HAVE_MACH_O_DYLD_H */ + +/* Define if mallinfo() is available on this platform. */ +/* #undef HAVE_MALLINFO */ + +/* Define to 1 if you have the <malloc.h> header file. */ +#define HAVE_MALLOC_H 1 + +/* Define to 1 if you have the <malloc/malloc.h> header file. */ +/* #undef HAVE_MALLOC_MALLOC_H */ + +/* Define to 1 if you have the `malloc_zone_statistics' function. */ +/* #undef HAVE_MALLOC_ZONE_STATISTICS */ + +/* Define to 1 if you have the `memcpy' function. */ +#define HAVE_MEMCPY 1 + +/* Define to 1 if you have the `memmove' function. */ +#define HAVE_MEMMOVE 1 + +/* Define to 1 if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the `mkdtemp' function. */ +#define HAVE_MKDTEMP 1 + +/* Define to 1 if you have the `mkstemp' function. */ +#define HAVE_MKSTEMP 1 + +/* Define to 1 if you have the `mktemp' function. */ +#define HAVE_MKTEMP 1 + +/* Define to 1 if you have a working `mmap' system call. */ +#define HAVE_MMAP 1 + +/* Define if mmap() uses MAP_ANONYMOUS to map anonymous pages, or undefine if + it uses MAP_ANON */ +/* #undef HAVE_MMAP_ANONYMOUS */ + +/* Define if mmap() can map files into memory */ +#define HAVE_MMAP_FILE + +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ +/* #undef HAVE_NDIR_H */ + +/* Define to 1 if you have the `nearbyintf' function. */ +/* #undef HAVE_NEARBYINTF */ + +/* Define if the neat program is available */ +/* #undef HAVE_NEATO */ + +/* Define to 1 if you have the `opendir' function. */ +#define HAVE_OPENDIR 1 + +/* Define to 1 if you have the `posix_spawn' function. */ +#define HAVE_POSIX_SPAWN 1 + +/* Define to 1 if you have the `powf' function. */ +#define HAVE_POWF 1 + +/* Define to 1 if you have the `pread' function. */ +#define HAVE_PREAD 1 + +/* Define if libtool can extract symbol lists from object files. */ +#define HAVE_PRELOADED_SYMBOLS 1 + +/* Define to have the %a format string */ +#define HAVE_PRINTF_A 1 + +/* Have pthread_getspecific */ +#define HAVE_PTHREAD_GETSPECIFIC 1 + +/* Define to 1 if you have the <pthread.h> header file. */ +#define HAVE_PTHREAD_H 1 + +/* Have pthread_mutex_lock */ +#define HAVE_PTHREAD_MUTEX_LOCK 1 + +/* Have pthread_rwlock_init */ +#define HAVE_PTHREAD_RWLOCK_INIT 1 + +/* Define to 1 if srand48/lrand48/drand48 exist in <stdlib.h> */ +#define HAVE_RAND48 1 + +/* Define to 1 if you have the `readdir' function. */ +#define HAVE_READDIR 1 + +/* Define to 1 if you have the `realpath' function. */ +#define HAVE_REALPATH 1 + +/* Define to 1 if you have the `rindex' function. */ +/* #undef HAVE_RINDEX */ + +/* Define to 1 if you have the `rintf' function. */ +#define HAVE_RINTF 1 + +/* Define to 1 if you have the `round' function. */ +#define HAVE_ROUND 1 + +/* Define to 1 if you have the `roundf' function. */ +#define HAVE_ROUNDF 1 + +/* Define to 1 if you have the `sbrk' function. */ +#define HAVE_SBRK 1 + +/* Define to 1 if you have the `setenv' function. */ +#define HAVE_SETENV 1 + +/* Define to 1 if you have the `setjmp' function. */ +/* #undef HAVE_SETJMP */ + +/* Define to 1 if you have the <setjmp.h> header file. */ +#define HAVE_SETJMP_H 1 + +/* Define to 1 if you have the `setrlimit' function. */ +#define HAVE_SETRLIMIT 1 + +/* Define if you have the shl_load function. */ +/* #undef HAVE_SHL_LOAD */ + +/* Define to 1 if you have the `siglongjmp' function. */ +/* #undef HAVE_SIGLONGJMP */ + +/* Define to 1 if you have the <signal.h> header file. */ +#define HAVE_SIGNAL_H 1 + +/* Define to 1 if you have the `sigsetjmp' function. */ +/* #undef HAVE_SIGSETJMP */ + +/* Define to 1 if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the <stdio.h> header file. */ +#define HAVE_STDIO_H 1 + +/* Define to 1 if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Set to 1 if the std::isinf function is found in <cmath> */ +#define HAVE_STD_ISINF_IN_CMATH 1 + +/* Set to 1 if the std::isnan function is found in <cmath> */ +#define HAVE_STD_ISNAN_IN_CMATH 1 + +/* Define to 1 if you have the `strchr' function. */ +#define HAVE_STRCHR 1 + +/* Define to 1 if you have the `strcmp' function. */ +#define HAVE_STRCMP 1 + +/* Define to 1 if you have the `strdup' function. */ +#define HAVE_STRDUP 1 + +/* Define to 1 if you have the `strerror' function. */ +#define HAVE_STRERROR 1 + +/* Define to 1 if you have the `strerror_r' function. */ +#define HAVE_STRERROR_R 1 + +/* Define to 1 if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the `strrchr' function. */ +#define HAVE_STRRCHR 1 + +/* Define to 1 if you have the `strtof' function. */ +#define HAVE_STRTOF 1 + +/* Define to 1 if you have the `strtoll' function. */ +#define HAVE_STRTOLL 1 + +/* Define to 1 if you have the `strtoq' function. */ +#define HAVE_STRTOQ 1 + +/* Define to 1 if you have the `sysconf' function. */ +#define HAVE_SYSCONF 1 + +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_DIR_H */ + +/* Define to 1 if you have the <sys/dl.h> header file. */ +/* #undef HAVE_SYS_DL_H */ + +/* Define to 1 if you have the <sys/ioctl.h> header file. */ +#define HAVE_SYS_IOCTL_H 1 + +/* Define to 1 if you have the <sys/mman.h> header file. */ +#define HAVE_SYS_MMAN_H 1 + +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. + */ +/* #undef HAVE_SYS_NDIR_H */ + +/* Define to 1 if you have the <sys/param.h> header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define to 1 if you have the <sys/resource.h> header file. */ +#define HAVE_SYS_RESOURCE_H 1 + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <sys/time.h> header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the <sys/types.h> header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the <sys/uio.h> header file. */ +#define HAVE_SYS_UIO_H 1 + +/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ +#define HAVE_SYS_WAIT_H 1 + +/* Define to 1 if you have the <termios.h> header file. */ +#define HAVE_TERMIOS_H 1 + +/* Define if the neat program is available */ +/* #undef HAVE_TWOPI */ + +/* Define to 1 if the system has the type `uint64_t'. */ +#define HAVE_UINT64_T 1 + +/* Define to 1 if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the <utime.h> header file. */ +#define HAVE_UTIME_H 1 + +/* Define to 1 if the system has the type `u_int64_t'. */ +/* #undef HAVE_U_INT64_T */ + +/* Define to 1 if you have the <valgrind/valgrind.h> header file. */ +/* #undef HAVE_VALGRIND_VALGRIND_H */ + +/* Define to 1 if you have the <windows.h> header file. */ +/* #undef HAVE_WINDOWS_H */ + +/* Define to 1 if you have the `writev' function. */ +#define HAVE_WRITEV 1 + +/* Define if the xdot.py program is available */ +/* #undef HAVE_XDOT_PY */ + +/* Have host's _alloca */ +/* #undef HAVE__ALLOCA */ + +/* Have host's __alloca */ +/* #undef HAVE___ALLOCA */ + +/* Have host's __ashldi3 */ +/* #undef HAVE___ASHLDI3 */ + +/* Have host's __ashrdi3 */ +/* #undef HAVE___ASHRDI3 */ + +/* Have host's __chkstk */ +/* #undef HAVE___CHKSTK */ + +/* Have host's __cmpdi2 */ +/* #undef HAVE___CMPDI2 */ + +/* Have host's __divdi3 */ +/* #undef HAVE___DIVDI3 */ + +/* Define to 1 if you have the `__dso_handle' function. */ +#define HAVE___DSO_HANDLE 1 + +/* Have host's __fixdfdi */ +/* #undef HAVE___FIXDFDI */ + +/* Have host's __fixsfdi */ +/* #undef HAVE___FIXSFDI */ + +/* Have host's __floatdidf */ +/* #undef HAVE___FLOATDIDF */ + +/* Have host's __lshrdi3 */ +/* #undef HAVE___LSHRDI3 */ + +/* Have host's __main */ +/* #undef HAVE___MAIN */ + +/* Have host's __moddi3 */ +/* #undef HAVE___MODDI3 */ + +/* Have host's __udivdi3 */ +/* #undef HAVE___UDIVDI3 */ + +/* Have host's __umoddi3 */ +/* #undef HAVE___UMODDI3 */ + +/* Have host's ___chkstk */ +/* #undef HAVE____CHKSTK */ + +/* Linker version detected at compile time. */ +#define HOST_LINK_VERSION "2.22" + +/* Installation directory for binary executables */ +#define LLVM_BINDIR "/usr/bin" + +/* Time at which LLVM was configured */ +#define LLVM_CONFIGTIME "(timestamp not enabled)" + +/* Installation directory for data files */ +#define LLVM_DATADIR "/usr/share/llvm" + +/* Target triple LLVM will generate code for by default */ +#define LLVM_DEFAULT_TARGET_TRIPLE "x86_64--netbsd" + +/* Installation directory for documentation */ +#define LLVM_DOCSDIR "/usr/share/doc/llvm" + +/* Define if threads enabled */ +#define LLVM_ENABLE_THREADS 1 + +/* Installation directory for config files */ +#define LLVM_ETCDIR "/usr/etc/llvm" + +/* Has gcc/MSVC atomic intrinsics */ +#define LLVM_HAS_ATOMICS 1 + +/* Installation directory for include files */ +#define LLVM_INCLUDEDIR "/usr/include" + +/* Installation directory for .info files */ +#define LLVM_INFODIR "/usr/info" + +/* Installation directory for libraries */ +#define LLVM_LIBDIR "/usr/lib" + +/* Installation directory for man pages */ +#define LLVM_MANDIR "/usr/man" + +/* LLVM architecture name for the native architecture, if available */ +#define LLVM_NATIVE_ARCH X86 + +/* LLVM name for the native AsmParser init function, if available */ +#define LLVM_NATIVE_ASMPARSER LLVMInitializeX86AsmParser + +/* LLVM name for the native AsmPrinter init function, if available */ +#define LLVM_NATIVE_ASMPRINTER LLVMInitializeX86AsmPrinter + +/* LLVM name for the native Disassembler init function, if available */ +#define LLVM_NATIVE_DISASSEMBLER LLVMInitializeX86Disassembler + +/* LLVM name for the native Target init function, if available */ +#define LLVM_NATIVE_TARGET LLVMInitializeX86Target + +/* LLVM name for the native TargetInfo init function, if available */ +#define LLVM_NATIVE_TARGETINFO LLVMInitializeX86TargetInfo + +/* LLVM name for the native target MC init function, if available */ +#define LLVM_NATIVE_TARGETMC LLVMInitializeX86TargetMC + +/* Define if this is Unixish platform */ +#define LLVM_ON_UNIX 1 + +/* Define if this is Win32ish platform */ +/* #undef LLVM_ON_WIN32 */ + +/* Define to path to circo program if found or 'echo circo' otherwise */ +/* #undef LLVM_PATH_CIRCO */ + +/* Define to path to dot program if found or 'echo dot' otherwise */ +/* #undef LLVM_PATH_DOT */ + +/* Define to path to dotty program if found or 'echo dotty' otherwise */ +/* #undef LLVM_PATH_DOTTY */ + +/* Define to path to fdp program if found or 'echo fdp' otherwise */ +/* #undef LLVM_PATH_FDP */ + +/* Define to path to Graphviz program if found or 'echo Graphviz' otherwise */ +/* #undef LLVM_PATH_GRAPHVIZ */ + +/* Define to path to gv program if found or 'echo gv' otherwise */ +/* #undef LLVM_PATH_GV */ + +/* Define to path to neato program if found or 'echo neato' otherwise */ +/* #undef LLVM_PATH_NEATO */ + +/* Define to path to twopi program if found or 'echo twopi' otherwise */ +/* #undef LLVM_PATH_TWOPI */ + +/* Define to path to xdot.py program if found or 'echo xdot.py' otherwise */ +/* #undef LLVM_PATH_XDOT_PY */ + +/* Installation prefix directory */ +#define LLVM_PREFIX "/usr" + +/* Define if we have the Intel JIT API runtime support library */ +#define LLVM_USE_INTEL_JITEVENTS 0 + +/* Define if we have the oprofile JIT-support library */ +#define LLVM_USE_OPROFILE 0 + +/* Major version of the LLVM API */ +#define LLVM_VERSION_MAJOR 3 + +/* Minor version of the LLVM API */ +#define LLVM_VERSION_MINOR 2 + +/* Define if the OS needs help to load dependent libraries for dlopen(). */ +/* #undef LTDL_DLOPEN_DEPLIBS */ + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LTDL_OBJDIR ".libs/" + +/* Define to the name of the environment variable that determines the dynamic + library search path. */ +#define LTDL_SHLIBPATH_VAR "LD_LIBRARY_PATH" + +/* Define to the extension used for shared libraries, say, ".so". */ +#define LTDL_SHLIB_EXT ".so" + +/* Define to the system default library search path. */ +#define LTDL_SYSSEARCHPATH "/lib:/usr/lib" + +/* Define if /dev/zero should be used when mapping RWX memory, or undefine if + its not necessary */ +/* #undef NEED_DEV_ZERO_FOR_MMAP */ + +/* Define if dlsym() requires a leading underscore in symbol names. */ +/* #undef NEED_USCORE */ + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "http://llvm.org/bugs/" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "LLVM" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "LLVM 3.2svn" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "llvm" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "3.2svn" + +/* Define as the return type of signal handlers (`int' or `void'). */ +#define RETSIGTYPE void + +/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ +/* #undef STAT_MACROS_BROKEN */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ +#define TIME_WITH_SYS_TIME 1 + +/* Define to 1 if your <sys/time.h> declares `struct tm'. */ +/* #undef TM_IN_SYS_TIME */ + +/* Define if use udis86 library */ +#define USE_UDIS86 0 + +/* Type of 1st arg on ELM Callback */ +/* #undef WIN32_ELMCB_PCSTR */ + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to a type to use for `error_t' if it is not otherwise available. */ +#define error_t int + +/* Define to `int' if <sys/types.h> does not define. */ +/* #undef pid_t */ + +/* Define to `unsigned int' if <sys/types.h> does not define. */ +/* #undef size_t */ + +#endif Index: src/external/bsd/llvm/config/llvm/Config/llvm-config.h.in diff -u /dev/null src/external/bsd/llvm/config/llvm/Config/llvm-config.h.in:1.1 --- /dev/null Sun Jun 17 07:40:26 2012 +++ src/external/bsd/llvm/config/llvm/Config/llvm-config.h.in Sun Jun 17 07:40:26 2012 @@ -0,0 +1,119 @@ +/* include/llvm/Config/llvm-config.h. Generated from llvm-config.h.in by configure. */ +/*===-- llvm/config/llvm-config.h - llvm configure variable -------*- C -*-===*/ +/* */ +/* The LLVM Compiler Infrastructure */ +/* */ +/* This file is distributed under the University of Illinois Open Source */ +/* License. See LICENSE.TXT for details. */ +/* */ +/*===----------------------------------------------------------------------===*/ + +/* This file enumerates all of the llvm variables from configure so that + they can be in exported headers and won't override package specific + directives. This is a C file so we can include it in the llvm-c headers. */ + +/* To avoid multiple inclusions of these variables when we include the exported + headers and config.h, conditionally include these. */ +/* TODO: This is a bit of a hack. */ +#ifndef CONFIG_H + +/* Installation directory for binary executables */ +#define LLVM_BINDIR "/usr/bin" + +/* Time at which LLVM was configured */ +#define LLVM_CONFIGTIME "(timestamp not enabled)" + +/* Installation directory for data files */ +#define LLVM_DATADIR "/usr/share/llvm" + +/* Target triple LLVM will generate code for by default */ +#define LLVM_DEFAULT_TARGET_TRIPLE "x86_64--netbsd" + +/* Installation directory for documentation */ +#define LLVM_DOCSDIR "/usr/share/doc/llvm" + +/* Define if threads enabled */ +#define LLVM_ENABLE_THREADS 1 + +/* Installation directory for config files */ +#define LLVM_ETCDIR "/usr/etc/llvm" + +/* Has gcc/MSVC atomic intrinsics */ +#define LLVM_HAS_ATOMICS 1 + +/* Installation directory for include files */ +#define LLVM_INCLUDEDIR "/usr/include" + +/* Installation directory for .info files */ +#define LLVM_INFODIR "/usr/info" + +/* Installation directory for libraries */ +#define LLVM_LIBDIR "/usr/lib" + +/* Installation directory for man pages */ +#define LLVM_MANDIR "/usr/man" + +/* LLVM architecture name for the native architecture, if available */ +#define LLVM_NATIVE_ARCH X86 + +/* LLVM name for the native AsmParser init function, if available */ +#define LLVM_NATIVE_ASMPARSER LLVMInitializeX86AsmParser + +/* LLVM name for the native AsmPrinter init function, if available */ +#define LLVM_NATIVE_ASMPRINTER LLVMInitializeX86AsmPrinter + +/* LLVM name for the native Disassembler init function, if available */ +#define LLVM_NATIVE_DISASSEMBLER LLVMInitializeX86Disassembler + +/* LLVM name for the native Target init function, if available */ +#define LLVM_NATIVE_TARGET LLVMInitializeX86Target + +/* LLVM name for the native TargetInfo init function, if available */ +#define LLVM_NATIVE_TARGETINFO LLVMInitializeX86TargetInfo + +/* LLVM name for the native target MC init function, if available */ +#define LLVM_NATIVE_TARGETMC LLVMInitializeX86TargetMC + +/* Define if this is Unixish platform */ +#define LLVM_ON_UNIX 1 + +/* Define if this is Win32ish platform */ +/* #undef LLVM_ON_WIN32 */ + +/* Define to path to circo program if found or 'echo circo' otherwise */ +/* #undef LLVM_PATH_CIRCO */ + +/* Define to path to dot program if found or 'echo dot' otherwise */ +/* #undef LLVM_PATH_DOT */ + +/* Define to path to dotty program if found or 'echo dotty' otherwise */ +/* #undef LLVM_PATH_DOTTY */ + +/* Define to path to fdp program if found or 'echo fdp' otherwise */ +/* #undef LLVM_PATH_FDP */ + +/* Define to path to Graphviz program if found or 'echo Graphviz' otherwise */ +/* #undef LLVM_PATH_GRAPHVIZ */ + +/* Define to path to gv program if found or 'echo gv' otherwise */ +/* #undef LLVM_PATH_GV */ + +/* Define to path to neato program if found or 'echo neato' otherwise */ +/* #undef LLVM_PATH_NEATO */ + +/* Define to path to twopi program if found or 'echo twopi' otherwise */ +/* #undef LLVM_PATH_TWOPI */ + +/* Define to path to xdot.py program if found or 'echo xdot.py' otherwise */ +/* #undef LLVM_PATH_XDOT_PY */ + +/* Installation prefix directory */ +#define LLVM_PREFIX "/usr" + +/* Major version of the LLVM API */ +#define LLVM_VERSION_MAJOR 3 + +/* Minor version of the LLVM API */ +#define LLVM_VERSION_MINOR 2 + +#endif