classes/autotools.bbclass: Dont bail out if gettext/config.rpath does not exist.
authorKhem Raj <raj.khem@gmail.com>
Wed, 2 Jun 2010 19:40:36 +0000 (12:40 -0700)
committerKhem Raj <raj.khem@gmail.com>
Sat, 5 Jun 2010 13:52:39 +0000 (06:52 -0700)
* 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>
classes/autotools.bbclass

index df2c114..8a5b982 100644 (file)
@@ -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