Skip to contentSkip to conversation

autotools: warn when running intltoolize if intltool isn't a dependemcy

PATCH New Ross Burton 1 participant 1 message Apr 20, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autotools: warn when running intltoolize if intltool isn't a dependemcy

---
 meta/classes/autotools.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes/autotools.bbclass +3 -0
index 6649f5d..22880cc 100644
@@ -293,6 +293,9 @@ autotools_do_configure() {
 		fi
 		mkdir -p m4
 		if grep "^[[:space:]]*[AI][CT]_PROG_INTLTOOL" $CONFIGURE_AC >/dev/null; then
+			if ! echo "${DEPENDS}" | grep -q intltool-native; then
+				bbwarn "Missing DEPENDS on intltool-native"
+			fi
 			bbnote Executing intltoolize --copy --force --automake
 			intltoolize --copy --force --automake
 		fi
Signature · 1 line
2.8.0.rc3