Configure: Disable fcitx support if sdl2 not present

This commit is contained in:
Jonathan G Rennison
2019-10-13 10:27:12 +01:00
parent f479559a4e
commit f3df140f2b

View File

@@ -3249,6 +3249,18 @@ detect_xdg_basedir() {
detect_fcitx() {
if ([ "$with_fcitx" = "1" ] && [ "$enable_dedicated" = "0" ]) || [ "$with_fcitx" = "2" ]; then
if [ -z "$sdl2_config" ]; then
if [ "$with_fcitx" = "2" ]; then
log 1 "configure: error: fcitx requires sdl2"
log 1 "configure: error: you supplied --with-fcitx"
exit 1
fi
log 1 "checking fcitx... no sdl2, skipping"
fcitx_config=""
dbus_config=""
x11_config=""
return 0
fi
detect_pkg_config "$with_fcitx" "dbus-1" "dbus_config" "1.0" "1"
detect_pkg_config "$with_fcitx" "x11" "x11_config" "1.0" "1"
if [ -z "$dbus_config" ]; then