summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-02-01 08:30:33 (GMT)
committer Slávek Banko <slavek.banko@axis.cz>2017-02-01 08:30:33 (GMT)
commit81ed8f2068c52b168e628835795bc390f3de5559 (patch)
tree6d182880250e520c8289f1c19dd924f926805df3
parent55b56d7f1b9ca6d7289257b16b3feb9c3f6ac75c (diff)
downloadtdebase-81ed8f20.zip
tdebase-81ed8f20.tar.gz
Fix detection whether the system is big endian
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--ConfigureChecks.cmake22
-rw-r--r--config.h.cmake11
2 files changed, 33 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index adf578d..e744cb4 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 )
diff --git a/config.h.cmake b/config.h.cmake
index d7d9b7a..30828ca 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -3,6 +3,10 @@
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
+ significant byte first (like Motorola and SPARC, unlike Intel). */
+#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
+
// Defined if compiler supports long long type.
#cmakedefine HAVE_LONG_LONG 1
@@ -46,6 +50,13 @@
// tdm, tdeioslave
#cmakedefine HAVE_TERMIOS_H 1
+// drkonqi
+#cmakedefine HAVE_STDINT_H 1
+#cmakedefine HAVE_SYS_BITYPES_H
+
+// drkonqi, tdeioslave
+#cmakedefine HAVE_SYS_TYPES_H 1
+
// tdeioslave/media
#cmakedefine WITH_HAL 1
#ifdef WITH_HAL