configure: fix check for gettext

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
(transplanted from dc2943c987756c9bd928c1989843d4beb8cfc184)
This commit is contained in:
Yann E. MORIN" 2012-05-08 12:15:37 +02:00
parent f1d6a5cca1
commit 71d33dff6a

View File

@ -266,8 +266,10 @@ AC_CHECK_HEADERS(
AS_IF(
[test -n "$ac_ct_gettext_hdr"],
[AC_CHECK_DECL(
[gettext],gettext=y,,
[#include <$ac_ct_gettext_hdr>])])
[gettext],
[gettext=y],,
[AC_INCLUDES_DEFAULT()
#include <$ac_ct_gettext_hdr>])])
#----------------------------------------
# Check for ncurses, for the kconfig frontends