From 862d99ab59131f828c0eebbced9a9ddb261f5690 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 15 Mar 2008 20:35:33 +0000 Subject: [PATCH] kbd: Fixed cross compilation by changing configure to trust gcc's $? instead of executing the resulting conftest files --- base/kbd/configure-trust_gcc.patch.cross | 45 ++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 base/kbd/configure-trust_gcc.patch.cross diff --git a/base/kbd/configure-trust_gcc.patch.cross b/base/kbd/configure-trust_gcc.patch.cross new file mode 100644 index 000000000..361829033 --- /dev/null +++ b/base/kbd/configure-trust_gcc.patch.cross @@ -0,0 +1,45 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../kbd/configure-trust_gcc.patch.cross +# Copyright (C) 2008 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +--- ./configure.orig 2004-01-03 14:53:39.000000000 +0000 ++++ ./configure 2008-03-15 20:30:20.000000000 +0000 +@@ -140,7 +140,7 @@ + main(){ exit(0); } + " > conftest.c + eval $compile +-if test -s conftest && ./conftest 2>/dev/null; then ++if test $? -eq 0; then + echo "#define HAVE_locale_h" >> defines.h + echo "You have " + else +@@ -151,6 +151,7 @@ + # + # 2. For lib/nls.h: do we have and gettext() ? + # ++if [ $nls = 1 ]; then + echo ' + #include + main(int a, char **v){ +@@ -160,8 +161,7 @@ + } + ' > conftest.c + eval $compile +-if [ $nls = 1 ]; then +- if test -s conftest && ./conftest 2>/dev/null; then ++ if test $? -eq 0; then + echo '#define HAVE_libintl_h' >> defines.h + echo "You have and gettext()" + echo '#define ENABLE_NLS' >> defines.h