diff --git a/CMake/LofarGeneral.cmake b/CMake/LofarGeneral.cmake index dbef9f030c11525817326a7496e098e668a5f1e1..c181c095830b5c90c7c234e5cd2b048cde319ab1 100644 --- a/CMake/LofarGeneral.cmake +++ b/CMake/LofarGeneral.cmake @@ -48,6 +48,24 @@ if(NOT DEFINED LOFAR_GENERAL_INCLUDED) check_type_size("ulong" HAVE_ULONG ) check_type_size("long long" HAVE_LONG_LONG) + ## -------------------------------------------------------------------------- + ## Check for several system header files + ## -------------------------------------------------------------------------- + include(CheckIncludeFile) + check_include_file(dlfcn.h HAVE_DLFCN_H) + check_include_file(inttypes.h HAVE_INTTYPES_H) + check_include_file(memory.h HAVE_MEMORY_H) + check_include_file(signal.h HAVE_SIGNAL_H) + check_include_file(stdint.h HAVE_STDINT_H) + check_include_file(stdlib.h HAVE_STDLIB_H) + check_include_file(string.h HAVE_STRING_H) + check_include_file(strings.h HAVE_STRINGS_H) + check_include_file(sys/resource.h HAVE_SYS_RESOURCE_H) + check_include_file(sys/stat.h HAVE_SYS_STAT_H) + check_include_file(sys/time.h HAVE_SYS_TIME_H) + check_include_file(sys/types.h HAVE_SYS_TYPES_H) + check_include_file(unistd.h HAVE_UNISTD_H) + ## -------------------------------------------------------------------------- ## Check endianess ## -------------------------------------------------------------------------- diff --git a/lofar_config.h.cmake b/lofar_config.h.cmake index 1a822c1c5572a0f384dc100646038a9ebc8ff841..533f3c3e2e5fc1079a4599bcd1271d750e37ca8c 100644 --- a/lofar_config.h.cmake +++ b/lofar_config.h.cmake @@ -69,6 +69,9 @@ /* Defined if shared memory is used */ #cmakedefine HAVE_SHMEM 1 +/* Define to 1 if you have the <signal.h> header file. */ +#cmakedefine HAVE_SIGNAL_H 1 + /* Define to 1 if you have the <stdint.h> header file. */ #cmakedefine HAVE_STDINT_H 1 @@ -81,15 +84,18 @@ /* Define to 1 if you have the <string.h> header file. */ #cmakedefine HAVE_STRING_H 1 +/* Define to 1 if you have the <sys/resource.h> header file. */ +#cmakedefine HAVE_SYS_RESOURCE_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/time.h> header file. */ +#cmakedefine HAVE_SYS_TIME_H 1 + /* Define to 1 if you have the <sys/types.h> header file. */ #cmakedefine HAVE_SYS_TYPES_H 1 -/* Define if TOOLS is installed */ -#cmakedefine HAVE_TOOLS 1 - /* Define if `ushort' is supported */ #cmakedefine HAVE_USHORT 1