diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2025-10-16 21:11:24 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2025-10-16 21:11:24 +0200 |
commit | b90048d2140f0dd9b729dda2fbf0d2204ae1dc3c (patch) | |
tree | ebab3a436240c90b58648ac0b0ef3649c9efbba3 /ConfigureChecks.cmake | |
parent | ae098dd0dc3160487611baa736f16b0d9ee2dc10 (diff) | |
download | tdewebdev-master.tar.gz tdewebdev-master.zip |
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 86 |
1 files changed, 2 insertions, 84 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 7fc1c49b..10d7307b 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -31,27 +31,7 @@ endif( WITH_GCC_VISIBILITY ) find_package( X11) -##### check for headers - -check_include_file( unistd.h HAVE_UNISTD_H ) -check_include_file( string.h HAVE_STRING_H ) -check_include_file( sys/time.h HAVE_SYS_TIME_H ) -check_include_file( sys/stat.h HAVE_SYS_STAT_H ) -check_include_file( stdlib.h HAVE_STDLIB_H ) -check_include_file( stdarg.h HAVE_STDARG_H ) -check_include_file( time.h HAVE_TIME_H ) -check_include_file( locale.h LOCALE_PREFIX ) -check_include_file( pthread.h USE_XSLDBG_AS_THREAD ) - - -##### check for functions - -check_function_exists( gettimeofday HAVE_GETTIMEOFDAY ) -check_function_exists( usleep HAVE_USLEEP ) -check_function_exists( stat HAVE_STAT ) - - -if( (BUILD_QUANTA) OR (BUILD_KXSLDBG) OR (BUILD_KLINKSTATUS) ) +if( (BUILD_QUANTA) OR (BUILD_KLINKSTATUS) ) ##### check for icu's c++ standard @@ -113,70 +93,8 @@ if( (BUILD_QUANTA) OR (BUILD_KXSLDBG) OR (BUILD_KLINKSTATUS) ) message( STATUS "kompare (diff utility - tdesdk) installation is advised since some quanta's features will make use of It." ) endif() endif( BUILD_QUANTA ) - - - if( BUILD_KXSLDBG ) - find_package( Threads ) - - tde_save( CMAKE_REQUIRED_INCLUDES ) - set( CMAKE_REQUIRED_INCLUDES ${LIBXML_INCLUDE_DIRS} ) - set( LIBXML_DOCB_ENABLED 1 CACHE BOOL "Enable docbook input files" ) - check_include_file( "libxml/xinclude.h" LIBXML_XINCLUDE_ENABLED ) - tde_restore( CMAKE_REQUIRED_INCLUDES ) - - -##### check for libexslt - - pkg_search_module( LIBEXSLT libexslt ) - if( NOT LIBEXSLT_FOUND ) - tde_message_fatal( "libexlt is required but was not found on your system" ) - endif() - -##### check for readline - - find_path( READLINE_INCLUDE_DIR - NAMES "readline/readline.h" "readline/history.h" - HINTS "/usr/include" "/usr/local/include" - DOC "Looking for readline header's path" - ) - find_library( READLINE_LIBRARY - NAMES readline history - DOC "Looking for readline libraries" - ) - - if( (READLINE_INCLUDE_DIR) AND ( READLINE_LIBRARY ) ) - set( HAVE_READLINE 1 ) - set( HAVE_HISTORY 1 ) - set( READLINE_LIBRARIES ${READLINE_LIBRARY} ) - set( READLINE_INCLUDE_DIRS ${READLINE_INCLUDE_DIR} ) - else() - tde_message_fatal( "readline is required but was not found on your system" ) - endif() - -##### look for Curses - - tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${READLINE_INCLUDE_DIRS} ) - tde_save_and_set( CMAKE_REQUIRED_LIBRARIES ${READLINE_LIBRARIES} ) - check_c_source_compiles(" - #include <readline/readline.h> - int main(void) - { - char *result = readline(\"prompt\"); - return 0; - }" - BUILD_READLINE_STANDALONE - ) - if( NOT BUILD_READLINE_STANDALONE ) - find_package( Curses ) - if( NOT CURSES_FOUND ) - tde_message_fatal( "(n)curses is required but was not found on your system" ) - endif() - list( APPEND READLINE_LIBRARIES ${CURSES_LIBRARIES} ) - endif() - tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES ) - endif( BUILD_KXSLDBG ) -endif( (BUILD_QUANTA) OR (BUILD_KXSLDBG) OR (BUILD_KLINKSTATUS) ) +endif( (BUILD_QUANTA) OR (BUILD_KLINKSTATUS) ) ##### option other editors |