Lucio Andrés Illanes Albornoz (arab, vxp) 570129
#
Lucio Andrés Illanes Albornoz e1d469
# set +o errexit -o noglob -o nounset 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 7ab7cc
	local _libtool="" _rc=0;
Lucio Andrés Illanes Albornoz e1d469
	if [ -x "${PKG_CONFIGURE:-}" ]; then
Lucio Andrés Illanes Albornoz 7ab7cc
		case "${PKG_LIBTOOL:-}" in
Lucio Andrés Illanes Albornoz 7ab7cc
		"")	_libtool=""; ;;
Lucio Andrés Illanes Albornoz 7ab7cc
		none)	_libtool=""; ;;
Lucio Andrés Illanes Albornoz 7ab7cc
		*)	_libtool="${PKG_LIBTOOL}"; ;;
Lucio Andrés Illanes Albornoz 7ab7cc
		esac;
Lucio Andrés Illanes Albornoz e1d469
		rtl_export_vars	\
Lucio Andrés Illanes Albornoz e1d469
			PKG_CONFIG "${PKG_PKG_CONFIG:-}"								\
Lucio Andrés Illanes Albornoz 703f24
			PKG_CONFIG_LIBDIR "${PKG_PKG_CONFIG_LIBDIR:-}"							\
Lucio Andrés Illanes Albornoz 7ab7cc
			PYTHON "${PKG_PYTHON:-}"									\
Lucio Andrés Illanes Albornoz 7ab7cc
			${_libtool:+MAKE} ${_libtool:+"make LIBTOOL=${_libtool}"};
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 e1d469
		CFLAGS="${PKG_CFLAGS_CONFIGURE:-}${PKG_CFLAGS_CONFIGURE_EXTRA:+ ${PKG_CFLAGS_CONFIGURE_EXTRA}}"		\
Lucio Andrés Illanes Albornoz e1d469
		CPPFLAGS="${PKG_CFLAGS_CONFIGURE:-}${PKG_CFLAGS_CONFIGURE_EXTRA:+ ${PKG_CFLAGS_CONFIGURE_EXTRA}}"	\
Lucio Andrés Illanes Albornoz e1d469
		CXXFLAGS="${PKG_CXXFLAGS_CONFIGURE:-}${PKG_CXXFLAGS_CONFIGURE_EXTRA:+ ${PKG_CXXFLAGS_CONFIGURE_EXTRA}}"	\
Lucio Andrés Illanes Albornoz e1d469
		LDFLAGS="${PKG_LDFLAGS_CONFIGURE:-}${PKG_LDFLAGS_CONFIGURE_EXTRA:+ ${PKG_LDFLAGS_CONFIGURE_EXTRA}}"	\
Lucio Andrés Illanes Albornoz e1d469
		"${PKG_CONFIGURE}" ${PKG_CONFIGURE_ARGS:-} ${PKG_CONFIGURE_ARGS_EXTRA:-} ${PKG_CONFIGURE_ARGS_EXTRA_DEBUG:-};
Lucio Andrés Illanes Albornoz e1d469
		_rc="${?}"
Lucio Andrés Illanes Albornoz e1d469
		rtl_export_vars	-u \
Lucio Andrés Illanes Albornoz e1d469
			PKG_CONFIG "${PKG_PKG_CONFIG:-}"								\
Lucio Andrés Illanes Albornoz 703f24
			PKG_CONFIG_LIBDIR "${PKG_PKG_CONFIG_LIBDIR:-}"							\
Lucio Andrés Illanes Albornoz 7ab7cc
			PYTHON "${PKG_PYTHON:-}"									\
Lucio Andrés Illanes Albornoz 7ab7cc
			${_libtool:+MAKE} ${_libtool:+"make LIBTOOL=${_libtool}"};
Lucio Andrés Illanes Albornoz bf9edf
		return "${_rc}";
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
	fi;
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