r18053: the sig_atomic_t test needs to be in libreplace for getpass.c to
authorAndrew Tridgell <tridge@samba.org>
Tue, 5 Sep 2006 01:50:52 +0000 (01:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:17:08 +0000 (14:17 -0500)
compile on hpux
(This used to be commit a0bd4f5c4a08f4815aa742cc2406ed8e46d7b8f5)

source4/lib/replace/config.m4

index 8bfd8361896410af8c26ae17457c4753114ac5eb..32870df38695117478f9befc0789e7b7aa206d29 100644 (file)
@@ -192,3 +192,16 @@ eprintf("bla", "bar");
 # Check prerequisites
 AC_CHECK_FUNCS([memset printf syslog], [], 
                           [ AC_MSG_ERROR([Required function not found])])
+
+AC_CACHE_CHECK([for sig_atomic_t type],samba_cv_sig_atomic_t, [
+    AC_TRY_COMPILE([
+#include <sys/types.h>
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
+#include <signal.h>],[sig_atomic_t i = 0],
+       samba_cv_sig_atomic_t=yes,samba_cv_sig_atomic_t=no)])
+if test x"$samba_cv_sig_atomic_t" = x"yes"; then
+   AC_DEFINE(HAVE_SIG_ATOMIC_T_TYPE,1,[Whether we have the atomic_t variable type])
+fi