X-Git-Url: http://git.jankratochvil.net/?p=mdsms.git;a=blobdiff_plain;f=acconfig.h;h=a366e4895f318a819cf8e6484e2dde7026287402;hp=4859a4b6042c336098482f141f683a1709ca9d86;hb=0bd1ccac2b66ee61dc7d6f658c4f7c80c00355b3;hpb=3b127365dbbc640bc1a0813b24baa925b99f5079 diff --git a/acconfig.h b/acconfig.h index 4859a4b..a366e48 100644 --- a/acconfig.h +++ b/acconfig.h @@ -3,6 +3,21 @@ * $Id$ */ +/* Define if your locale.h file contains LC_MESSAGES. */ +#undef HAVE_LC_MESSAGES + +/* Define to 1 if NLS is requested. */ +#undef ENABLE_NLS + +/* Define as 1 if you have catgets and don't want to use GNU gettext. */ +#undef HAVE_CATGETS + +/* Define as 1 if you have gettext and don't want to use GNU gettext. */ +#undef HAVE_GETTEXT + +/* Define as 1 if you have the stpcpy function. */ +#undef HAVE_STPCPY + /* __NORETURN define - usually a GCC extension. */ #undef __NORETURN @@ -15,18 +30,6 @@ /* Disable runtime assertion checks. */ #undef NDEBUG -/* Provide stub for MAX-function if needed. */ -#undef HAVE_MAX -#ifndef HAVE_MAX -#define MAX(a,b) ((a)>(b)?(a):(b)) -#endif - -/* Provide stub for MIN-function if needed. */ -#undef HAVE_MIN -#ifndef HAVE_MIN -#define MIN(a,b) ((a)<(b)?(a):(b)) -#endif - /* LINE_MAX from , provide default if not defined. */ #undef HAVE_LINE_MAX #undef LINE_MAX @@ -39,6 +42,10 @@ #undef HAVE_CBAUDEX #undef CBAUDEX +/* CRTSCTS define, may be missing. */ +#undef HAVE_CRTSCTS +#undef CRTSCTS + /* FD_SETSIZE define, may be missing. */ #undef HAVE_FD_SETSIZE @@ -67,81 +74,114 @@ @BOTTOM@ -#ifndef DONT_NEED_DECLARATIONS +#ifdef WANT_DECLARATIONS /* Declaration for gethostname(3)? */ #undef NEED_DECLARATION_GETHOSTNAME #ifdef NEED_DECLARATION_GETHOSTNAME +#ifdef HAVE_UNISTD_H #include +#endif int gethostname(char *name, size_t len); #endif /* Declaration for kill(2)? */ #undef NEED_DECLARATION_KILL #ifdef NEED_DECLARATION_KILL +#ifdef HAVE_SYS_TYPES_H #include +#endif +#ifdef HAVE_SIGNAL_H #include +#endif int kill(pid_t pid, int sig); #endif /* Declaration for snprintf(3)? */ #undef NEED_DECLARATION_SNPRINTF #ifdef NEED_DECLARATION_SNPRINTF +#ifdef HAVE_STDIO_H #include +#endif int snprintf(char *str, size_t n, const char *format, ...); #endif /* Declaration for vsnprintf(3)? */ #undef NEED_DECLARATION_VSNPRINTF #ifdef NEED_DECLARATION_VSNPRINTF +#ifdef HAVE_STDIO_H #include +#endif +#ifdef HAVE_STDARG_H #include +#endif int vsnprintf(char *str, size_t n, const char *format, va_list ap); #endif /* Declaration for strdup(3)? */ #undef NEED_DECLARATION_STRDUP #ifdef NEED_DECLARATION_STRDUP +#ifdef HAVE_STRING_H #include +#endif char *strdup(const char *s); #endif /* Declaration for usleep(3)? */ #undef NEED_DECLARATION_USLEEP #ifdef NEED_DECLARATION_USLEEP +#ifdef HAVE_UNISTD_H #include +#endif void usleep(unsigned long usec); #endif /* Declaration for strcasecmp(3)? */ #undef NEED_DECLARATION_STRCASECMP #ifdef NEED_DECLARATION_STRCASECMP +#ifdef HAVE_STRING_H #include +#endif int strcasecmp(const char *s1, const char *s2); #endif /* Declaration for siginterrupt(3)? */ #undef NEED_DECLARATION_SIGINTERRUPT #ifdef NEED_DECLARATION_SIGINTERRUPT +#ifdef HAVE_SIGNAL_H #include +#endif int siginterrupt(int sig, int flag); #endif /* Declaration for popen(3)? */ #undef NEED_DECLARATION_POPEN #ifdef NEED_DECLARATION_POPEN +#ifdef HAVE_STDIO_H #include +#endif FILE *popen(const char *command, const char *type); #endif /* Declaration for pclose(3)? */ #undef NEED_DECLARATION_PCLOSE #ifdef NEED_DECLARATION_PCLOSE +#ifdef HAVE_STDIO_H #include +#endif int pclose(FILE *stream); #endif -#endif /* !DONT_NEED_DECLARATIONS */ +/* Declaration for gettext(3)? */ +#undef NEED_DECLARATION_GETTEXT +#ifdef NEED_DECLARATION_GETTEXT +#ifdef HAVE_LIBINTL_H +#include +#endif +extern const char *gettext(const char *msgid); +#endif + +#endif /* WANT_DECLARATIONS */ /* snprintf(3) unsafe emulation */ #ifdef HAVE_SNPRINTF @@ -185,3 +225,32 @@ extern char *sys_errlist[]; #ifndef HAVE_OFFSETOF #define offsetof(a,b) ((size_t)&((a *)0)->b) #endif + +#ifdef WANT_DECLARATIONS +/* + * Handles all of the internationalization configuration options. + * Author: Tom Tromey + * Stolen from + * Modified by Jan Kratochvil + */ +#ifdef ENABLE_NLS +#ifdef HAVE_LIBINTL_H +# include +#endif /* HAVE_LIBINTL_H */ +# define _(String) gettext (String) +# ifdef gettext_noop +# define N_(String) gettext_noop (String) +# else +# define N_(String) (String) +# endif +#else /* ENABLE_NLS */ +/* Stubs that do something close enough. */ +# define textdomain(String) (String) +# define gettext(String) (String) +# define dgettext(Domain,Message) (Message) +# define dcgettext(Domain,Message,Type) (Message) +# define bindtextdomain(Domain,Directory) (Domain) +# define _(String) (String) +# define N_(String) (String) +#endif /* ENABLE_NLS */ +#endif /* WANT_DECLARATIONS */