|
|
@ -92,6 +92,7 @@ OPTION( WITH_XRANDR "Build the krandr library" ON )
|
|
|
|
OPTION( WITH_XCOMPOSITE "Enable xcomposite support" ON )
|
|
|
|
OPTION( WITH_XCOMPOSITE "Enable xcomposite support" ON )
|
|
|
|
OPTION( WITH_MITSHM "Use MIT-SHM for pixmap loading/saving" ${WITH_ALL_OPTIONS} )
|
|
|
|
OPTION( WITH_MITSHM "Use MIT-SHM for pixmap loading/saving" ${WITH_ALL_OPTIONS} )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OPTION( WITH_ISPELL "Enable ispell support" ON )
|
|
|
|
OPTION( WITH_ASPELL "Enable aspell support" ${WITH_ALL_OPTIONS} )
|
|
|
|
OPTION( WITH_ASPELL "Enable aspell support" ${WITH_ALL_OPTIONS} )
|
|
|
|
OPTION( WITH_HSPELL "Enable hspell support" ${WITH_ALL_OPTIONS} )
|
|
|
|
OPTION( WITH_HSPELL "Enable hspell support" ${WITH_ALL_OPTIONS} )
|
|
|
|
|
|
|
|
|
|
|
@ -1076,21 +1077,24 @@ endif( WITH_GAMIN )
|
|
|
|
|
|
|
|
|
|
|
|
##### check for ispell ##########################
|
|
|
|
##### check for ispell ##########################
|
|
|
|
|
|
|
|
|
|
|
|
if ( NOT ISPELL_LIBDIR )
|
|
|
|
if( WITH_ISPELL )
|
|
|
|
find_program( ISPELL_EXECUTABLE NAMES ispell DOC "path to the ispell executable" )
|
|
|
|
if( NOT ISPELL_LIBDIR )
|
|
|
|
if( ISPELL_EXECUTABLE )
|
|
|
|
find_program( ISPELL_EXECUTABLE NAMES ispell DOC "path to the ispell executable" )
|
|
|
|
execute_process (
|
|
|
|
if( ISPELL_EXECUTABLE )
|
|
|
|
COMMAND ${ISPELL_EXECUTABLE} -vv
|
|
|
|
execute_process (
|
|
|
|
COMMAND awk "$1 == \"LIBDIR\" && $2 == \"=\" {gsub(/\"/, \"\", $3); print $3;}"
|
|
|
|
COMMAND ${ISPELL_EXECUTABLE} -vv
|
|
|
|
OUTPUT_VARIABLE ISPELL_LIBDIR
|
|
|
|
COMMAND awk "$1 == \"LIBDIR\" && $2 == \"=\" {gsub(/\"/, \"\", $3); print $3;}"
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
OUTPUT_VARIABLE ISPELL_LIBDIR
|
|
|
|
if ( ISPELL_LIBDIR )
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
|
|
set ( ISPELL_LIBDIR "${ISPELL_LIBDIR}" CACHE PATH "ispell lib directory contains dictionaries" )
|
|
|
|
if ( ISPELL_LIBDIR )
|
|
|
|
else ( ISPELL_LIBDIR )
|
|
|
|
set ( ISPELL_LIBDIR "${ISPELL_LIBDIR}" CACHE PATH "ispell lib directory contains dictionaries" )
|
|
|
|
unset ( ISPELL_LIBDIR )
|
|
|
|
else ( ISPELL_LIBDIR )
|
|
|
|
endif ( ISPELL_LIBDIR )
|
|
|
|
unset ( ISPELL_LIBDIR )
|
|
|
|
endif( ISPELL_EXECUTABLE )
|
|
|
|
endif ( ISPELL_LIBDIR )
|
|
|
|
endif ( NOT ISPELL_LIBDIR )
|
|
|
|
endif( ISPELL_EXECUTABLE )
|
|
|
|
|
|
|
|
endif ( NOT ISPELL_LIBDIR )
|
|
|
|
|
|
|
|
endif( WITH_ISPELL )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### check for aspell ##########################
|
|
|
|
##### check for aspell ##########################
|
|
|
|
|
|
|
|
|
|
|
|