Don't include intl headers in translate.h if we're not going to use gettext

darcs-hash:20060118183758-ac50b-ae3aef1154a9be6e39e154ad420d0881e7f86c85.gz
This commit is contained in:
axel 2006-01-19 04:37:58 +10:00
parent 588bc1103a
commit 619f076958
2 changed files with 6 additions and 1 deletions

View File

@ -149,7 +149,7 @@ AC_CHECK_LIB(rt, nanosleep)
AC_CHECK_LIB(intl, gettext) AC_CHECK_LIB(intl, gettext)
# Check for various header files # Check for various header files
AC_CHECK_HEADERS([getopt.h termio.h sys/resource.h]) AC_CHECK_HEADERS([getopt.h termio.h sys/resource.h term.h ncurses/term.h libintl.h])
# Check for various functions, and insert results into config.h # Check for various functions, and insert results into config.h
AC_CHECK_FUNCS(wcsdup wcsndup wcslen wcscasecmp wcsncasecmp gettext wprintf futimes wcwidth wcswidth getopt_long ) AC_CHECK_FUNCS(wcsdup wcsndup wcslen wcscasecmp wcsncasecmp gettext wprintf futimes wcwidth wcswidth getopt_long )

View File

@ -8,7 +8,12 @@ Translation library, internally uses catgets
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h>
#include <wchar.h>
#if HAVE_LIBINTL_H
#include <libintl.h> #include <libintl.h>
#endif
#include "common.h" #include "common.h"
#include "util.h" #include "util.h"