summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-06-02 12:40:36 -0700
committerKhem Raj <raj.khem@gmail.com>2010-06-05 06:52:39 -0700
commit87bf42f132f6a05fd294e3690cf637ab5b1362a6 (patch)
treee1442d2afacddb567872a46567daaec362fb2a72
parentf814ce00892d78aefe1cc4311849c9b227a6310e (diff)
classes/autotools.bbclass: Dont bail out if gettext/config.rpath does not exist.
* Add a note if this file does not exist. The reason is that gettext can needs libiconv and libiconv needs gettext so we need to solve this catch 22 Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--classes/autotools.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass
index df2c11426e..8a5b982bc2 100644
--- a/classes/autotools.bbclass
+++ b/classes/autotools.bbclass
@@ -125,7 +125,11 @@ autotools_do_configure() {
echo "no" | glib-gettextize --force --copy
fi
else if grep "^[[:space:]]*AM_GNU_GETTEXT" $CONFIGURE_AC >/dev/null; then
- cp ${STAGING_DATADIR}/gettext/config.rpath ${S}/
+ if [ -e ${STAGING_DATADIR}/gettext/config.rpath ]; then
+ cp ${STAGING_DATADIR}/gettext/config.rpath ${S}/
+ else
+ oenote ${STAGING_DATADIR}/gettext/config.rpath not found. gettext is not installed.
+ fi
fi
fi