From 9991e8c7fbd18bf12af66b7cf040d2d7de3ed6c0 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 19 Jun 2008 19:06:08 +0000 Subject: [PATCH] package/config: add gettext helper From Bernhards tree (2b693d78) --- package/config/check.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 package/config/check.sh diff --git a/package/config/check.sh b/package/config/check.sh new file mode 100755 index 0000000000..fa59cbf9d6 --- /dev/null +++ b/package/config/check.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# Needed for systems without gettext +$* -xc -o /dev/null - > /dev/null 2>&1 << EOF +#include +int main() +{ + gettext(""); + return 0; +} +EOF +if [ ! "$?" -eq "0" ]; then + echo -DKBUILD_NO_NLS; +fi + -- 2.30.2