diff options
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index ee7350711..e744cb45f 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 ) @@ -433,6 +455,19 @@ if( WITH_HAL AND (BUILD_KSMSERVER OR BUILD_KICKER OR BUILD_TDEIOSLAVES) ) endif( ) +# check for krb5 +if( WITH_KRB5 ) + pkg_search_module( KRB5 krb5 ) + if( NOT KRB5_FOUND ) + check_include_file( kadm5/admin.h HAVE_KRB_KADM_H ) + if( NOT HAVE_KRB_KADM_H ) + message(FATAL_ERROR "\nKerberos support was requested, but krb5 was not found on your system" ) + endif( NOT HAVE_KRB_KADM_H ) + endif( NOT KRB5_FOUND ) + set( HAVE_KRB5 1 ) + set( LIBTDELDAP_LIBRARIES "tdeldap" ) +endif( ) + # check for libr if( WITH_ELFICON ) pkg_search_module( LIBR libr ) |