Signed-off-by: Anders Kaseorg <andersk@mit.edu>
AC_PROG_INSTALL
AC_PROG_LIBTOOL
+AC_HEADER_STDBOOL
+
case "$target_cpu" in
i386 | i486 | i586 | i686 | i786)
AC_DEFINE([USE_REGPARMS], [],
#define NONLOCAL_H
#include "config.h"
+
+#ifdef HAVE_STDBOOL_H
+# include <stdbool.h>
+#else
+# ifndef HAVE__BOOL
+# ifdef __cplusplus
+typedef bool _Bool;
+# else
+# define _Bool signed char
+# endif
+# endif
+# define bool _Bool
+# define false 0
+# define true 1
+# define __bool_true_false_are_defined 1
+#endif
+
#include "nsswitch-internal.h"
struct walk_nss {