Patchwork rxvt-unicode: Check existence of acinclude.m4

login
register
mail settings
Submitter Radu Moisan
Date July 11, 2013, 12:47 p.m.
Message ID <1373546865-24088-1-git-send-email-radu.moisan@intel.com>
Download mbox | patch
Permalink /patch/53509/
State Accepted
Commit f3f892cba2d4f23d6b994b907ce06badd5ad2f0c
Headers show

Comments

Radu Moisan - July 11, 2013, 12:47 p.m.
copy should only happen if acinclude.m4 doesn't exist

Signed-off-by: Radu Moisan <radu.moisan@intel.com>
---
 .../recipes-sato/rxvt-unicode/rxvt-unicode_9.18.bb |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-sato/rxvt-unicode/rxvt-unicode_9.18.bb b/meta/recipes-sato/rxvt-unicode/rxvt-unicode_9.18.bb
index 9a47617..e417957 100644
--- a/meta/recipes-sato/rxvt-unicode/rxvt-unicode_9.18.bb
+++ b/meta/recipes-sato/rxvt-unicode/rxvt-unicode_9.18.bb
@@ -42,7 +42,9 @@  EXTRA_OECONF = "--enable-menubar --enable-xim \
 		--with-x=${STAGING_DIR_HOST}${prefix}"
 
 do_configure_prepend () {
-	cp ${S}/aclocal.m4 ${S}/acinclude.m4
+	if [ ! -e ${S}/acinclude.m4 ]; then
+		cp ${S}/aclocal.m4 ${S}/acinclude.m4
+	fi
 }
 
 do_compile_prepend () {