summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-05 01:50:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:08 -0500
commit474b74b345b7ebe5492fe9c09d2ca07438bf836f (patch)
tree06e3819759ecc0de0cb061ba04d86b80f6a18a7f
parentcbae8b2014dc118e876018a0dcf27167724d0143 (diff)
downloadsamba-474b74b345b7ebe5492fe9c09d2ca07438bf836f.tar.gz
samba-474b74b345b7ebe5492fe9c09d2ca07438bf836f.tar.bz2
samba-474b74b345b7ebe5492fe9c09d2ca07438bf836f.zip
r18053: the sig_atomic_t test needs to be in libreplace for getpass.c to
compile on hpux (This used to be commit a0bd4f5c4a08f4815aa742cc2406ed8e46d7b8f5)
-rw-r--r--source4/lib/replace/config.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/lib/replace/config.m4 b/source4/lib/replace/config.m4
index 8bfd836189..32870df386 100644
--- a/source4/lib/replace/config.m4
+++ b/source4/lib/replace/config.m4
@@ -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