Lucio Andrés Illanes Albornoz (arab, vxp) 570129
#
Lucio Andrés Illanes Albornoz (arab, vxp) 802215
# set -o errexit -o noglob are 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 (arab, vxp) 8ee843
	if [ -x "${PKG_CONFIGURE}" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		if [ -n "${PKG_PKGCONFIG}" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
			export PKGCONFIG="${PKG_PKGCONFIG}";
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		fi;
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		if [ -n "${PKG_PKG_CONFIG}" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
			export PKG_CONFIG="${PKG_PKG_CONFIG}";
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		fi;
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		if [ -n "${PKG_PKG_CONFIG_LIB_PATH}" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
			export PKG_CONFIG_LIBPATH="${PKG_PKG_CONFIG_LIBPATH}";
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		fi;
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 (arab, vxp) 8ee843
		${PKG_CONFIGURE}											\
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
			${PKG_CONFIGURE_ARGS} ${PKG_CONFIGURE_ARGS_EXTRA} ${PKG_CONFIGURE_ARGS_EXTRA_DEBUG};
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		unset PKGCONFIG PKG_CONFIG PKG_CONFIG_LIBPATH;
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