#endif
#if STDC_HEADERS || _LIBC
+# include <stddef.h>
# include <stdlib.h>
+#else
+# ifndef NULL
+# define NULL 0
+# endif
#endif
-#include <regex.h>
+#include <sys/types.h>
+#ifdef WITH_REGEX
+# include <regex.h>
+#else
+# include <rx.h>
+#endif
-#ifndef _
-# define _(String) String
+#if ENABLE_NLS
+# include <libintl.h>
+# define _(Text) gettext (Text)
+#else
+# define _(Text) Text
#endif
static int