-define Build/Configure
-$(call Build/Configure/Default,--enable-shared=yes \
- --enable-static=yes \
- --disable-rpath \
- --with-gnu-ld \
- --enable-rrdcgi \
- --disable-mmap \
- --disable-perl \
- --disable-tcl \
- --disable-python \
- --without-x \
- --with-rrd-default-font=/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf, CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/freetype2 -I$(STAGING_DIR)/usr/include/libart-2.0" \
- LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib " \
- LIBS="-lnotimpl" \
- PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
- rd_cv_ieee_works=yes)
-endef
+CONFIGURE_ARGS += \
+ --enable-shared=yes \
+ --enable-static=yes \
+ --disable-rpath \
+ --with-gnu-ld \
+ --disable-mmap \
+ --disable-perl \
+ --disable-tcl \
+ --without-x \
+ --with-rrd-default-font="/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf" \
+
+CONFIGURE_VARS += \
+ CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/freetype2 -I$(STAGING_DIR)/usr/include/libart-2.0" \
+ LIBS="-lnotimpl" \
+ rd_cv_ieee_works=yes \
+ rd_cv_null_realloc=nope \
+ ac_cv_func_mmap_fixed_mapped=yes \
+
+ifneq ($(SDK)$(CONFIG_PACKAGE_rrdcgi),)
+ CONFIGURE_ARGS += --enable-rrdcgi
+else
+ CONFIGURE_ARGS += --disable-rrdcgi
+endif
+
+ifneq ($(SDK)$(CONFIG_PACKAGE_rrdpy),)
+ CONFIGURE_ARGS += \
+ --enable-python
+ CONFIGURE_VARS += \
+ PYTHON="$(PYTHON)"
+else
+ CONFIGURE_ARGS += --disable-python
+endif