# Configure options:
# --disable-lua-old: build elua for the target.
# --disable-sdl: disable sdl2 support.
-# --disable-systemd: disable systemd support.
# --disable-xinput22: disable X11 XInput v2.2+ support.
# --with-opengl=none: disable opengl support.
EFL_CONF_OPTS = \
--with-eolian-gen=$(HOST_DIR)/usr/bin/eolian_gen \
--disable-lua-old \
--disable-sdl \
- --disable-systemd \
--disable-xinput22 \
--with-opengl=none
EFL_CONF_OPTS += --disable-libmount
endif
+ifeq ($(BR2_PACKAGE_SYSTEMD),y)
+EFL_CONF_OPTS += --enable-systemd
+EFL_DEPENDENCIES += systemd
+else
+EFL_CONF_OPTS += --disable-systemd
+endif
+
ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
EFL_CONF_OPTS += --enable-fontconfig
EFL_DEPENDENCIES += fontconfig