Blame subr/pkg_configure.subr

Lucio Andrés Illanes Albornoz (arab, vxp) 570129
#
Lucio Andrés Illanes Albornoz 2b85d0
# set +o errexit -o noglob is assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
#
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
pkg_configure() {
Lucio Andrés Illanes Albornoz 2b85d0
	local _rc=0;
Lucio Andrés Illanes Albornoz (arab, vxp) 8ee843
	if [ -x "${PKG_CONFIGURE}" ]; then
Lucio Andrés Illanes Albornoz 2b85d0
		ex_rtl_export_vars PKG_CONFIG "${PKG_PKG_CONFIG}" PKG_CONFIG_PATH "${PKG_PKG_CONFIG_PATH}" PYTHON "${PKG_PYTHON}";
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		AR="${PKG_AR}"												\
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		CC="${PKG_CC}"												\
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		RANLIB="${PKG_RANLIB}"											\
Lucio Andrés Illanes Albornoz (arab, vxp) 8ee843
		CFLAGS="${PKG_CFLAGS_CONFIGURE}${PKG_CFLAGS_CONFIGURE_EXTRA:+ ${PKG_CFLAGS_CONFIGURE_EXTRA}}"		\
Lucio Andrés Illanes Albornoz (arab, vxp) 557c73
		CPPFLAGS="${PKG_CFLAGS_CONFIGURE}${PKG_CFLAGS_CONFIGURE_EXTRA:+ ${PKG_CFLAGS_CONFIGURE_EXTRA}}"		\
Lucio Andrés Illanes Albornoz (arab, vxp) b19456
		CXXFLAGS="${PKG_CXXFLAGS_CONFIGURE}${PKG_CXXFLAGS_CONFIGURE_EXTRA:+ ${PKG_CXXFLAGS_CONFIGURE_EXTRA}}"	\
Lucio Andrés Illanes Albornoz (arab, vxp) 8ee843
		LDFLAGS="${PKG_LDFLAGS_CONFIGURE}${PKG_LDFLAGS_CONFIGURE_EXTRA:+ ${PKG_LDFLAGS_CONFIGURE_EXTRA}}"	\
Lucio Andrés Illanes Albornoz 2b85d0
		"${PKG_CONFIGURE}" ${PKG_CONFIGURE_ARGS} ${PKG_CONFIGURE_ARGS_EXTRA} ${PKG_CONFIGURE_ARGS_EXTRA_DEBUG}; _rc="${?}"
Lucio Andrés Illanes Albornoz 2b85d0
		ex_rtl_export_vars -u PKG_CONFIG "${PKG_PKG_CONFIG}" PKG_CONFIG_PATH "${PKG_PKG_CONFIG_PATH}" PYTHON "${PKG_PYTHON}";
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
	fi;
Lucio Andrés Illanes Albornoz 2b85d0
	return "${?}";
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
};
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
# vim:filetype=sh