|
|
@ -337,9 +337,25 @@ if( BUILD_XCF )
|
|
|
|
|
|
|
|
|
|
|
|
check_include_file( "iconv.h" HAVE_ICONV_H )
|
|
|
|
check_include_file( "iconv.h" HAVE_ICONV_H )
|
|
|
|
if( NOT HAVE_ICONV_H )
|
|
|
|
if( NOT HAVE_ICONV_H )
|
|
|
|
tde_message_fatal( "xcf codec was requested but libiconv not found on your system" )
|
|
|
|
tde_message_fatal( "xcf codec was requested but iconv header not found on your system" )
|
|
|
|
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
message( STATUS "Check for standalone libiconv" )
|
|
|
|
|
|
|
|
find_library( HAVE_LIBICONV iconv )
|
|
|
|
|
|
|
|
if( HAVE_LIBICONV )
|
|
|
|
|
|
|
|
set( ICONV_LIBRARIES iconv )
|
|
|
|
|
|
|
|
message( STATUS "Check for standalone libiconv - found" )
|
|
|
|
|
|
|
|
else( )
|
|
|
|
|
|
|
|
set( ICONV_LIBRARIES "" )
|
|
|
|
|
|
|
|
message( STATUS "Check for standalone libiconv - not found" )
|
|
|
|
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tde_save_and_set( CMAKE_REQUIRED_LIBRARIES "${ICONV_LIBRARIES}" )
|
|
|
|
|
|
|
|
check_function_exists( "iconv_open" HAVE_ICONV )
|
|
|
|
|
|
|
|
tde_restore( CMAKE_REQUIRED_LIBRARIES )
|
|
|
|
|
|
|
|
if( NOT HAVE_ICONV )
|
|
|
|
|
|
|
|
tde_message_fatal( "xcf codec was requested but iconv library not found on your system" )
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
set( HAVE_ICONV 1 )
|
|
|
|
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|