From: Enblend <enb...@li...> - 2013-12-01 09:51:34
|
branch: details: http://enblend.hg.sourceforge.net/hgweb/enblend/enblend/hg/p/enblend/code/rev/90fcf8f1b20d changeset: 988:90fcf8f1b20d user: tmodes date: Sun Dec 01 10:52:45 2013 +0100 description: Added some more checks to CMake build system diffstat: ConfigureChecks.cmake | 4 +++- VERSION | 2 +- config.h.cmake | 6 ++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diffs (50 lines): diff -r 145fbfb3eb2e -r 90fcf8f1b20d ConfigureChecks.cmake --- a/ConfigureChecks.cmake Sun Dec 01 10:52:02 2013 +0100 +++ b/ConfigureChecks.cmake Sun Dec 01 10:52:45 2013 +0100 @@ -24,7 +24,7 @@ "OpenGL/glu.h" "OpenGL/gl.h" "inttypes.h" "limits.h" "memory.h" "stdint.h" "stdlib.h" "stdbool.h" "strings.h" "string.h" - "sys/stat.h" "sys/types.h" "unistd.h" "windows.h") + "sys/stat.h" "sys/types.h" "unistd.h" "windows.h" "sys/times.h") string(REGEX REPLACE "[/\\.]" "_" _var ${_fl}) string(TOUPPER "${_var}" _FLN) check_include_file_cxx("${_fl}" "HAVE_${_FLN}" ) @@ -50,6 +50,8 @@ CLOSEDIR_INT) endif(HAVE_DIRENT_H) +CHECK_LIBRARY_EXISTS(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME) + # Check for restrict keyword # Builds the macro A_C_RESTRICT form automake set(RESTRICT) diff -r 145fbfb3eb2e -r 90fcf8f1b20d VERSION --- a/VERSION Sun Dec 01 10:52:02 2013 +0100 +++ b/VERSION Sun Dec 01 10:52:45 2013 +0100 @@ -1,1 +1,1 @@ -4.2-ce8d5349285d+ +4.2-145fbfb3eb2e+ diff -r 145fbfb3eb2e -r 90fcf8f1b20d config.h.cmake --- a/config.h.cmake Sun Dec 01 10:52:02 2013 +0100 +++ b/config.h.cmake Sun Dec 01 10:52:45 2013 +0100 @@ -57,6 +57,9 @@ to 0 otherwise. */ #cmakedefine HAVE_MALLOC 1 +/* Define to 1 if you have the 'clock_gettime' function. */ +#cmakedefine HAVE_CLOCK_GETTIME 1 + /* Define to 1 if you have the <memory.h> header file. */ #cmakedefine HAVE_MEMORY_H 1 @@ -131,6 +134,9 @@ /* 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/times.h> header file. */ +#cmakedefine HAVE_SYS_TIMES_H 1 + /* Define to 1 if you have the <sys/types.h> header file. */ #cmakedefine HAVE_SYS_TYPES_H 1 |