diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2017-02-01 09:30:33 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-02-01 09:30:46 +0100 |
commit | 0ea8a0d1dcf1c259e081a17caa952de2c4ff160e (patch) | |
tree | b64b9f9b44e236952c15d2458969e8267d579770 /ConfigureChecks.cmake | |
parent | 36daa2806d7bfa38a2ce8f020c5ff7cad5b390b2 (diff) | |
download | tdebase-0ea8a0d1dcf1c259e081a17caa952de2c4ff160e.tar.gz tdebase-0ea8a0d1dcf1c259e081a17caa952de2c4ff160e.zip |
Fix detection whether the system is big endian
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 81ed8f2068c52b168e628835795bc390f3de5559)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index ee7350711..4f6752e15 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -14,6 +14,10 @@ # required stuff tde_setup_architecture_flags( ) + +include(TestBigEndian) +test_big_endian(WORDS_BIGENDIAN) + find_package( TQt ) find_package( TDE ) @@ -31,18 +35,36 @@ if( NOT HAVE_LIBDL ) endif( NOT HAVE_LIBDL ) +# stdint.h (drkonqi) +if( BUILD_DRKONQI ) + check_include_file( stdint.h HAVE_STDINT_H ) +endif( ) + + # termios.h (tdm, tdeioslave) if( BUILD_TDM OR BUILD_TDEIOSLAVES ) check_include_file( termios.h HAVE_TERMIOS_H ) endif( ) +# sys/bitypes.h (drkonqi) +if( BUILD_DRKONQI ) + check_include_file( sys/bitypes.h HAVE_SYS_BITYPES_H ) +endif( ) + + # sys/ioctl.h (tdeioslave/fish, kcontrol/info) if( BUILD_TDEIOSLAVES OR BUILD_KCONTROL ) check_include_file( sys/ioctl.h HAVE_SYS_IOCTL_H ) endif( ) +# sys/types.h (drkonqi, tdeioslave/smtp) +if( BUILD_DRKONQI OR BUILD_TDEIOSLAVES ) + check_include_file( sys/types.h HAVE_SYS_TYPES_H ) +endif( ) + + # pam if( WITH_PAM AND (BUILD_KCHECKPASS OR BUILD_TDM) ) check_library_exists( pam pam_start "" HAVE_PAM ) |