1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-15 23:21:12 +02:00

Updates the cmake build system

It's still has some work, but it successfully builds on
all 3 main platforms.  Some of the outstanding items
include:

   Install target testing (mostly important for Linux)
   CMakeList clean up and comments
   Debug and Release build verification
   Audit of compile/link options
   Need a Mac signed and notarized build
   (and probably more)
This commit is contained in:
Leland Lucius
2020-02-03 00:39:43 -06:00
parent 3b77af5dfc
commit 6217351a12
57 changed files with 7958 additions and 6106 deletions

View File

@@ -1,222 +1,98 @@
#directory cmake-proxies/libflac
cmake_minimum_required(VERSION 3.12)
set(TARGET libflac)
set(TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET})
project(${TARGET} VERSION 1.3.1)
add_library( ${TARGET} STATIC )
add_library( ${TARGET}++ STATIC )
option(FLAC_ENABLE_64_BIT_WORDS "Set FLAC__BYTES_PER_WORD to 8 (4 is the default)" OFF)
option(FLAC_WITH_ASM "Use any assembly optimization routines" ON)
list( APPEND SOURCES
PRIVATE
if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
if(CMAKE_BULD_TYPE STREQUAL Release)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -funroll-loops")
endif()
# libflac
${TARGET_ROOT}/src/libFLAC/bitmath.c
${TARGET_ROOT}/src/libFLAC/bitreader.c
${TARGET_ROOT}/src/libFLAC/bitwriter.c
${TARGET_ROOT}/src/libFLAC/cpu.c
${TARGET_ROOT}/src/libFLAC/crc.c
${TARGET_ROOT}/src/libFLAC/fixed.c
${TARGET_ROOT}/src/libFLAC/fixed_intrin_sse2.c
${TARGET_ROOT}/src/libFLAC/fixed_intrin_ssse3.c
${TARGET_ROOT}/src/libFLAC/float.c
${TARGET_ROOT}/src/libFLAC/format.c
${TARGET_ROOT}/src/libFLAC/lpc.c
${TARGET_ROOT}/src/libFLAC/lpc_intrin_sse.c
${TARGET_ROOT}/src/libFLAC/lpc_intrin_sse2.c
${TARGET_ROOT}/src/libFLAC/lpc_intrin_sse41.c
${TARGET_ROOT}/src/libFLAC/lpc_intrin_avx2.c
${TARGET_ROOT}/src/libFLAC/md5.c
${TARGET_ROOT}/src/libFLAC/memory.c
${TARGET_ROOT}/src/libFLAC/metadata_iterators.c
${TARGET_ROOT}/src/libFLAC/metadata_object.c
${TARGET_ROOT}/src/libFLAC/stream_decoder.c
${TARGET_ROOT}/src/libFLAC/stream_encoder.c
${TARGET_ROOT}/src/libFLAC/stream_encoder_intrin_sse2.c
${TARGET_ROOT}/src/libFLAC/stream_encoder_intrin_ssse3.c
${TARGET_ROOT}/src/libFLAC/stream_encoder_intrin_avx2.c
${TARGET_ROOT}/src/libFLAC/stream_encoder_framing.c
${TARGET_ROOT}/src/libFLAC/window.c
${TARGET_ROOT}/src/libFLAC/ogg_decoder_aspect.c
${TARGET_ROOT}/src/libFLAC/ogg_encoder_aspect.c
${TARGET_ROOT}/src/libFLAC/ogg_helper.c
${TARGET_ROOT}/src/libFLAC/ogg_mapping.c
$<$<BOOL:${WIN32}>:${TARGET_ROOT}/src/share/win_utf8_io/win_utf8_io.c>
)
option(FLAC_ENABLE_SSP "Enable GNU GCC stack smash protection" OFF)
endif()
list( APPEND SOURCES++
# libflac++
${TARGET_ROOT}/src/libFLAC++/metadata.cpp
${TARGET_ROOT}/src/libFLAC++/stream_decoder.cpp
${TARGET_ROOT}/src/libFLAC++/stream_encoder.cpp
)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "[xX]86(_64)?|(AMD|amd)64|i[346]86")
option(FLAC_WITH_AVX "Enable AVX, AVX2 optimizations" ON)
option(FLAC_WITH_SSE "Enable AVX, AVX2 optimizations" ON)
endif()
list( APPEND INCLUDES
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/private
${TARGET_ROOT}/src/libFLAC/include
PUBLIC
${TARGET_ROOT}/include
)
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)
include(CheckSymbolExists)
include(CheckFunctionExists)
include(CheckIncludeFile)
include(CheckCSourceCompiles)
include(CheckCXXSourceCompiles)
include(TestBigEndian)
list( APPEND DEFINES
PRIVATE
HAVE_CONFIG_H
PUBLIC
FLAC__NO_DLL
)
check_include_file("byteswap.h" HAVE_BYTESWAP_H)
check_include_file("inttypes.h" HAVE_INTTYPES_H)
check_include_file("stdint.h" HAVE_STDINT_H)
check_include_file("x86intrin.h" HAVE_X86INTRIN_H)
check_include_file("cpuid.h" HAVE_CPUID_H)
check_include_file("sys/param.h" HAVE_SYS_PARAM_H)
list( APPEND LIBRARIES
PRIVATE
libogg
)
function(check_lround)
set(CMAKE_REQUIRED_LIBRARIES m)
check_function_exists(lround HAVE_LROUND)
endfunction()
list( APPEND LIBRARIES++
PRIVATE
libflac
)
check_lround()
set( CPU_IS_BIG_ENDIAN ${WORDS_BIGENDIAN} )
set( CPU_IS_LITTLE_ENDIAN NOT ${WORDS_BIGENDIAN} )
check_c_source_compiles("int main() { return __builtin_bswap16 (0) ; }" HAVE_BSWAP16)
check_c_source_compiles("int main() { return __builtin_bswap32 (0) ; }" HAVE_BSWAP32)
check_c_source_compiles("
int main()
{
#ifndef _FORTIFY_SOURCE
return 0;
#else
this_is_an_error;
#endif
}"
HAVENOT_FORTIFY_SOURCE)
set( FLAC__HAS_OGG 1 )
test_big_endian(CPU_IS_BIG_ENDIAN)
set( VERSION "1.3.1" )
check_c_compiler_flag(-Werror HAVE_WERROR_FLAG)
check_c_compiler_flag(-Wdeclaration-after-statement HAVE_DECL_AFTER_STMT_FLAG)
check_c_compiler_flag("-fstack-protector --param ssp-buffer-size=4" HAVE_SSP_FLAG)
check_c_compiler_flag("-mstackrealign" HAVE_STACKREALIGN_FLAG)
check_c_compiler_flag(-msse2 HAVE_MSSE2_FLAG)
check_cxx_compiler_flag(-Weffc++ HAVE_WEFFCXX_FLAG)
configure_file( config.h.in private/config.h )
add_compile_definitions(
VERSION="${PROJECT_VERSION}"
$<$<BOOL:${HAVE_BYTESWAP_H}>:HAVE_BYTESWAP_H>
$<$<BOOL:${HAVE_INTTYPES_H}>:HAVE_INTTYPES_H>
$<$<BOOL:${HAVE_STDINT_H}>:HAVE_STDINT_H>
$<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>
$<$<BOOL:${MSVC}>:_USE_MATH_DEFINES>
$<$<BOOL:${HAVE_ICONV}>:HAVE_ICONV>
$<$<BOOL:${HAVE_LROUND}>:HAVE_LROUND>
$<$<BOOL:${HAVE_CPUID_H}>:HAVE_CPUID_H>
$<$<BOOL:${HAVE_SYS_PARAM_H}>:HAVE_SYS_PARAM_H>
$<$<BOOL:${ENABLE_64_BIT_WORDS}>:ENABLE_64_BIT_WORDS>
HAVE_BSWAP16=$<BOOL:${HAVE_BSWAP16}>
HAVE_BSWAP32=$<BOOL:${HAVE_BSWAP32}>
ENABLE_64_BIT_WORDS=$<BOOL:${ENABLE_64_BIT_WORDS}>
WORDS_BIGENDIAN=$<BOOL:${CPU_IS_BIG_ENDIAN}>
CPU_IS_BIG_ENDIAN=$<BOOL:${CPU_IS_BIG_ENDIAN}>
CPU_IS_LITTLE_ENDIAN=$<NOT:${CPU_IS_BIG_ENDIAN}>
FLAC__HAS_X86INTRIN=$<BOOL:${HAVE_X86INTRIN_H}>
FLAC__USE_AVX=$<BOOL:${WITH_AVX}>
$<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:FLAC__OVERFLOW_DETECT>
_ALL_SOURCE
_DARWIN_C_SOURCE
_GNU_SOURCE
_POSIX_PTHREAD_SEMANTICS
__STDC_WANT_IEC_60559_ATTRIBS_EXT__
__STDC_WANT_IEC_60559_BFP_EXT__
__STDC_WANT_IEC_60559_DFP_EXT__
__STDC_WANT_IEC_60559_FUNCS_EXT__
__STDC_WANT_IEC_60559_TYPES_EXT__
__STDC_WANT_LIB_EXT2__
__STDC_WANT_MATH_SPEC_FUNCS__
_TANDEM_SOURCE
$<$<AND:$<BOOL:${HAVENOT_FORTIFY_SOURCE}>,$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>>>:_FORTIFY_SOURCE=2>)
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
target_sources( ${TARGET} PRIVATE ${SOURCES} )
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
add_compile_options(
$<$<BOOL:${MSVC}>:/wd4267>
$<$<BOOL:${MSVC}>:/wd4996>
$<$<BOOL:${ENABLE_WERROR}>:-Werror>
$<$<AND:$<BOOL:${HAVE_SSP_FLAG}>,$<BOOL:${ENABLE_SSP}>>:"-fstack-protector --param ssp-buffer-size=4">
$<$<AND:$<BOOL:${HAVE_MSSE2_FLAG}>,$<BOOL:FLAC_WITH_SSE>>:-msse2>)
organize_source( "${TARGET_ROOT}" "" "${SOURCES++}" )
target_sources( ${TARGET}++ PRIVATE ${SOURCES++} )
target_compile_definitions( ${TARGET}++ PRIVATE ${DEFINES} )
target_compile_features( ${TARGET}++ PRIVATE ${FEATURES} )
target_compile_options( ${TARGET}++ PRIVATE ${OPTIONS} )
target_include_directories( ${TARGET}++ PRIVATE ${INCLUDES} )
target_link_libraries( ${TARGET}++ PRIVATE ${LIBRARIES++} )
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "i686" AND HAVE_STACKREALIGN_FLAG)
add_compile_options(-mstackrealign)
endif()
if(HAVE_WEFFCXX_FLAG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Weffc++")
endif()
if(HAVE_DECL_AFTER_STMT_FLAG)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wdeclaration-after-statement")
endif()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "[xX]86_64|(AMD|amd)64")
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(IA32 TRUE)
endif()
add_compile_definitions(
FLAC__CPU_X86_64
FLAC__ALIGN_MALLOC_DATA)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "([xX]|i[346])86")
set(IA32 TRUE)
add_compile_definitions(
FLAC__CPU_IA32
FLAC__ALIGN_MALLOC_DATA)
endif()
include(CheckLanguage)
check_language(ASM_NASM)
if(CMAKE_ASM_NASM_COMPILER)
enable_language(ASM_NASM)
add_compile_definitions(FLAC__HAS_NASM)
endif()
if(NOT WITH_ASM)
add_compile_definitions(FLAC__NO_ASM)
endif()
if(WITH_ASM AND IA32 AND CMAKE_ASM_NASM_COMPILER)
if(APPLE)
set(CMAKE_ASM_NASM_FLAGS -dOBJ_FORMAT_macho)
elseif(WIN32)
set(CMAKE_ASM_NASM_FLAGS -dOBJ_FORMAT_win32)
else()
set(CMAKE_ASM_NASM_FLAGS -dOBJ_FORMAT_elf)
endif()
add_library(FLAC-asm STATIC
"${TARGET_SOURCE}/src/libFLAC/ia32/cpu_asm.nasm"
"${TARGET_SOURCE}/src/libFLAC/ia32/fixed_asm.nasm"
"${TARGET_SOURCE}/src/libFLAC/ia32/lpc_asm.nasm")
set_target_properties(FLAC-asm PROPERTIES COMPILE_OPTIONS "")
target_include_directories(FLAC-asm PRIVATE "${TARGET_SOURCE}/src/libFLAC/ia32/")
endif()
add_library(FLAC-static STATIC
"${TARGET_SOURCE}/src/libFLAC/bitmath.c"
"${TARGET_SOURCE}/src/libFLAC/bitreader.c"
"${TARGET_SOURCE}/src/libFLAC/bitwriter.c"
"${TARGET_SOURCE}/src/libFLAC/cpu.c"
"${TARGET_SOURCE}/src/libFLAC/crc.c"
"${TARGET_SOURCE}/src/libFLAC/fixed.c"
"${TARGET_SOURCE}/src/libFLAC/fixed_intrin_sse2.c"
"${TARGET_SOURCE}/src/libFLAC/fixed_intrin_ssse3.c"
"${TARGET_SOURCE}/src/libFLAC/float.c"
"${TARGET_SOURCE}/src/libFLAC/format.c"
"${TARGET_SOURCE}/src/libFLAC/lpc.c"
"${TARGET_SOURCE}/src/libFLAC/lpc_intrin_sse.c"
"${TARGET_SOURCE}/src/libFLAC/lpc_intrin_sse2.c"
"${TARGET_SOURCE}/src/libFLAC/lpc_intrin_sse41.c"
"${TARGET_SOURCE}/src/libFLAC/lpc_intrin_avx2.c"
"${TARGET_SOURCE}/src/libFLAC/md5.c"
"${TARGET_SOURCE}/src/libFLAC/memory.c"
"${TARGET_SOURCE}/src/libFLAC/metadata_iterators.c"
"${TARGET_SOURCE}/src/libFLAC/metadata_object.c"
"${TARGET_SOURCE}/src/libFLAC/stream_decoder.c"
"${TARGET_SOURCE}/src/libFLAC/stream_encoder.c"
"${TARGET_SOURCE}/src/libFLAC/stream_encoder_intrin_sse2.c"
"${TARGET_SOURCE}/src/libFLAC/stream_encoder_intrin_ssse3.c"
"${TARGET_SOURCE}/src/libFLAC/stream_encoder_intrin_avx2.c"
"${TARGET_SOURCE}/src/libFLAC/stream_encoder_framing.c"
"${TARGET_SOURCE}/src/libFLAC/window.c"
"${TARGET_SOURCE}/src/libFLAC/ogg_decoder_aspect.c"
"${TARGET_SOURCE}/src/libFLAC/ogg_encoder_aspect.c"
"${TARGET_SOURCE}/src/libFLAC/ogg_helper.c"
"${TARGET_SOURCE}/src/libFLAC/ogg_mapping.c"
"$<$<BOOL:${WIN32}>:${TARGET_SOURCE}/src/share/win_utf8_io/win_utf8_io.c>")
include_directories(
"${TARGET_SOURCE}/include"
"${TARGET_SOURCE}/src/libFLAC/include")
target_compile_definitions(FLAC-static PUBLIC FLAC__NO_DLL FLAC__HAS_OGG)
target_include_directories(FLAC-static INTERFACE
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>")
target_link_libraries(FLAC-static PUBLIC
libogg
$<TARGET_NAME_IF_EXISTS:FLAC-asm>
$<$<BOOL:${HAVE_LROUND}>:m>
$<TARGET_NAME_IF_EXISTS:win_utf8_io>)
set_target_properties(FLAC-static PROPERTIES
OSX_ARCHITECTURES ""
OUTPUT_NAME libflac)
add_library(FLACXX-static STATIC
"${TARGET_SOURCE}/src/libFLAC++/metadata.cpp"
"${TARGET_SOURCE}/src/libFLAC++/stream_decoder.cpp"
"${TARGET_SOURCE}/src/libFLAC++/stream_encoder.cpp")
target_compile_definitions(FLACXX-static PUBLIC FLAC__NO_DLL)
target_include_directories(FLACXX-static INTERFACE
"$<BUILD_INTERFACE:${TARGET_SOURCE}/include>")
target_link_libraries(FLACXX-static PUBLIC FLAC-static)
set_target_properties(FLACXX-static PROPERTIES
OSX_ARCHITECTURES ""
OUTPUT_NAME libflac++)

View File

@@ -0,0 +1,234 @@
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
#cmakedefine AC_APPLE_UNIVERSAL_BUILD 1
/* Target processor is big endian. */
#cmakedefine01 CPU_IS_BIG_ENDIAN
/* Target processor is little endian. */
#cmakedefine01 CPU_IS_LITTLE_ENDIAN
/* define to align allocated memory on 32-byte boundaries */
#cmakedefine FLAC__ALIGN_MALLOC_DATA 1
/* define if building for ia32/i386 */
#cmakedefine FLAC__CPU_IA32 1
/* define if building for PowerPC */
#cmakedefine FLAC__CPU_PPC 1
/* define if building for PowerPC with SPE ABI */
#cmakedefine FLAC__CPU_PPC_SPE 1
/* define if building for SPARC */
#cmakedefine FLAC__CPU_SPARC 1
/* define if building for x86_64 */
#cmakedefine FLAC__CPU_X86_64 1
/* define if you have docbook-to-man or docbook2man */
#cmakedefine FLAC__HAS_DOCBOOK_TO_MAN 1
/* define if you are compiling for x86 and have the NASM assembler */
#cmakedefine FLAC__HAS_NASM 1
/* define if you have the ogg library */
#cmakedefine FLAC__HAS_OGG 1
/* Set to 1 if <x86intrin.h> is available. */
#cmakedefine FLAC__HAS_X86INTRIN 1
/* define to disable use of assembly code */
#cmakedefine FLAC__NO_ASM 1
/* define if your operating system supports SSE instructions */
#cmakedefine FLAC__SSE_OS 1
/* define if building for Darwin / MacOS X */
#cmakedefine FLAC__SYS_DARWIN 1
/* define if building for Linux */
#cmakedefine FLAC__SYS_LINUX 1
/* define to enable use of Altivec instructions */
#cmakedefine FLAC__USE_ALTIVEC 1
/* Define to 1 if `TIOCGWINSZ' requires <sys/ioctl.h>. */
#cmakedefine GWINSZ_IN_SYS_IOCTL 1
/* Compiler has the __builtin_bswap16 intrinsic */
#cmakedefine HAVE_BSWAP16 1
/* Compiler has the __builtin_bswap32 intrinsic */
#cmakedefine HAVE_BSWAP32 1
/* Define to 1 if you have the <byteswap.h> header file. */
#cmakedefine HAVE_BYTESWAP_H 1
/* Define to 1 if you have the <cpuid.h> header file. */
#cmakedefine HAVE_CPUID_H 1
/* Define to 1 if C++ supports variable-length arrays. */
#cmakedefine HAVE_CXX_VARARRAYS 1
/* Define to 1 if C supports variable-length arrays. */
#cmakedefine HAVE_C_VARARRAYS 1
/* Define to 1 if you have the <dlfcn.h> header file. */
#cmakedefine HAVE_DLFCN_H 1
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
#cmakedefine HAVE_FSEEKO 1
/* Define to 1 if you have the `getopt_long' function. */
#cmakedefine HAVE_GETOPT_LONG 1
/* Define if you have the iconv() function and it works. */
#cmakedefine HAVE_ICONV 1
/* Define to 1 if you have the <inttypes.h> header file. */
#cmakedefine HAVE_INTTYPES_H 1
/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
#cmakedefine HAVE_LANGINFO_CODESET 1
/* lround support */
#cmakedefine HAVE_LROUND 1
/* Define to 1 if you have the <memory.h> header file. */
#cmakedefine HAVE_MEMORY_H 1
/* Define to 1 if the system has the type `socklen_t'. */
#cmakedefine HAVE_SOCKLEN_T 1
/* Define to 1 if you have the <stdint.h> header file. */
#cmakedefine HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#cmakedefine HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#cmakedefine HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#cmakedefine HAVE_STRING_H 1
/* Define to 1 if you have the <sys/param.h> header file. */
#cmakedefine HAVE_SYS_PARAM_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#cmakedefine HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#cmakedefine HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <termios.h> header file. */
#cmakedefine HAVE_TERMIOS_H 1
/* Define to 1 if typeof works with your compiler. */
#cmakedefine HAVE_TYPEOF 1
/* Define to 1 if you have the <unistd.h> header file. */
#cmakedefine HAVE_UNISTD_H 1
/* Define to 1 if you have the <x86intrin.h> header file. */
#cmakedefine HAVE_X86INTRIN_H 1
/* Define as const if the declaration of iconv() needs const. */
#cmakedefine ICONV_CONST @ICONV_CONST@
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#cmakedefine LT_OBJDIR "@LT_OBJDIR@"
/* Name of package */
#cmakedefine PACKAGE "@PACKAGE@"
/* Define to the address where bug reports for this package should be sent. */
#cmakedefine PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
/* Define to the full name of this package. */
#cmakedefine PACKAGE_NAME "@PACKAGE_NAME@"
/* Define to the full name and version of this package. */
#cmakedefine PACKAGE_STRING "@PACKAGE_STRING@"
/* Define to the one symbol short name of this package. */
#cmakedefine PACKAGE_TARNAME "@PACKAGE_TARNAME@"
/* Define to the home page for this package. */
#cmakedefine PACKAGE_URL "@PACKAGE_URL@"
/* Define to the version of this package. */
#cmakedefine PACKAGE_VERSION "@PACKAGE_VERSION"
/* The size of `off_t', as computed by sizeof. */
#define SIZEOF_OFF_T @SIZEOF_OFF_T
/* The size of `void*', as computed by sizeof. */
#define SIZEOF_VOIDP @SIZEOF_VOIDP@
/* Define to 1 if you have the ANSI C header files. */
#cmakedefine STDC_HEADERS 1
/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# cmakedefine _ALL_SOURCE 1
#endif
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# cmakedefine _GNU_SOURCE 1
#endif
/* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS
# cmakedefine _POSIX_PTHREAD_SEMANTICS 1
#endif
/* Enable extensions on HP NonStop. */
#ifndef _TANDEM_SOURCE
# cmakedefine _TANDEM_SOURCE 1
#endif
/* Enable general extensions on Solaris. */
#ifndef __EXTENSIONS__
# cmakedefine __EXTENSIONS__ 1
#endif
/* Version number of package */
#cmakedefine VERSION "@VERSION@"
/* Target processor is big endian. */
#cmakedefine WORDS_BIGENDIAN 1
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
/* Number of bits in a file offset, on hosts where this is settable. */
#cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
#cmakedefine _LARGEFILE_SOURCE 1
/* Define for large files, on AIX-style hosts. */
#cmakedefine _LARGE_FILES 1
/* Define to 1 if on MINIX. */
#cmakedefine _MINIX 1
/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
#cmakedefine _POSIX_1_SOURCE 1
/* Define to 1 if you need to in order for `stat' and other things to work. */
#cmakedefine _POSIX_SOURCE 1
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
#cmakedefine inline @inline@
#endif
/* Define to __typeof__ if your compiler spells it that way. */
#cmakedefine typeof @typeof@