diff options
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 36 |
1 files changed, 34 insertions, 2 deletions
@@ -1,6 +1,6 @@ /* Program version */ /* not for the inetutils version */ -#define VERSION "4.5.6" +#define VERSION "4.5.7" /* Configurable features */ @@ -13,7 +13,7 @@ /* Default server */ #define DEFAULTSERVER "whois.internic.net" -/* not for the inetutils version */ +/* autoconf in cpp macros */ #ifdef linux # define ENABLE_NLS # define HAVE_GETOPT_LONG @@ -22,3 +22,35 @@ # endif #endif +/* system features */ +#ifdef ENABLE_NLS +# ifndef NLS_CAT_NAME +# define NLS_CAT_NAME "whois" +# endif +# ifndef LOCALEDIR +# define LOCALEDIR "/usr/share/locale" +# endif +#endif + +#ifdef HAVE_GETOPT_LONG +# define GETOPT_LONGISH(c, v, o, l, i) getopt_long(c, v, o, l, i) +#else +# define GETOPT_LONGISH(c, v, o, l, i) getopt(c, v, o) +#endif + + +/* NLS stuff */ +#ifdef ENABLE_NLS +# include <libintl.h> +# include <locale.h> +# define _(a) (gettext (a)) +# ifdef gettext_noop +# define N_(a) gettext_noop (a) +# else +# define N_(a) (a) +# endif +#else +# define _(a) (a) +# define N_(a) a +#endif + |