From: maier Date: Fri, 28 Sep 2012 14:45:46 +0000 (+0000) Subject: Add the last bunch of system checks X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5802267b282d63cc365881dfa630432818e0463e;p=dealii-svn.git Add the last bunch of system checks git-svn-id: https://svn.dealii.org/branches/branch_cmake@26838 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/TODO.CMAKE b/deal.II/TODO.CMAKE index e97ff26ce7..095a7ca394 100644 --- a/deal.II/TODO.CMAKE +++ b/deal.II/TODO.CMAKE @@ -28,6 +28,8 @@ Major: Minor: +* HAVE_JN_ ? + * There is still a perl script for generating lapack_templates.h. Is this necessary. diff --git a/deal.II/cmake/checks/check_for_system_features.cmake b/deal.II/cmake/checks/check_for_system_features.cmake index 46b5fa9d63..a30c10b855 100644 --- a/deal.II/cmake/checks/check_for_system_features.cmake +++ b/deal.II/cmake/checks/check_for_system_features.cmake @@ -2,6 +2,14 @@ # Check for various system features: # +INCLUDE(TestBigEndian) + + +# +# Check for various posix specific header files: +# + +CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H) CHECK_INCLUDE_FILE("sys/stat.h" HAVE_SYS_STAT_H) @@ -11,4 +19,18 @@ CHECK_INCLUDE_FILE("sys/times.h" HAVE_SYS_TIMES_H) CHECK_INCLUDE_FILE("sys/types.h" HAVE_SYS_TYPES_H) -CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H) + +# +# Check for various posix specific functions: +# + +CHECK_FUNCTION_EXISTS(gethostname HAVE_GETHOSTNAME) + +CHECK_FUNCTION_EXISTS(getpid HAVE_GETPID) + +CHECK_FUNCTION_EXISTS(rand_r HAVE_RAND_R) + +CHECK_FUNCTION_EXISTS(times HAVE_TIMES) + +TEST_BIG_ENDIAN(DEAL_II_WORDS_BIGENDIAN) + diff --git a/deal.II/include/deal.II/base/config.h.in b/deal.II/include/deal.II/base/config.h.in index 3b0af02f50..40c45c9287 100644 --- a/deal.II/include/deal.II/base/config.h.in +++ b/deal.II/include/deal.II/base/config.h.in @@ -443,26 +443,9 @@ /* Defined if you have the "times" function. */ #cmakedefine HAVE_TIMES -/* Defined if you have the "jn" function. */ -#cmakedefine HAVE_JN - /* Defined if the system stores words with the most significant byte first */ #cmakedefine DEAL_II_WORDS_BIGENDIAN -/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most - significant byte first (like Motorola and SPARC, unlike Intel). */ -#if defined AC_APPLE_UNIVERSAL_BUILD -# if defined __BIG_ENDIAN__ -# define WORDS_BIGENDIAN 1 -# endif -#else -# ifndef WORDS_BIGENDIAN -# undef WORDS_BIGENDIAN -# endif -#endif - - -