libxkbcommon_link_args += '/DEF:' + libxkbcommon_def.full_path()
endif
-## For tizen profile ##
-tizen_profile = get_option('tizen-profile')
-if tizen_profile == 'common'
- libxkbcommon_link_args += '-D_F_TIZEN_COMMON_PROFILE_'
-endif
-
libxkbcommon = library(
'xkbcommon',
'include/xkbcommon/xkbcommon.h',
man_pages = []
# Tools
+if get_option('enable-tools')
build_tools = get_option('enable-tools') and cc.has_header_symbol('getopt.h', 'getopt_long', prefix: '#define _GNU_SOURCE')
+else
+build_tools = false
+endif
+
if build_tools
# Common resources
libxkbcommon_tools_internal_sources = [