summaryrefslogtreecommitdiff
path: root/source4/include/system/config.m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-04-29 12:39:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:05:15 -0500
commite572bbb94cb8a23d366647bcf584cc75029e8def (patch)
tree0e63adf94037542fc38f178e43f02bfdb0b35a4b /source4/include/system/config.m4
parent657325d684b838ee7dd6379a4a6034c1fedabcae (diff)
downloadsamba-e572bbb94cb8a23d366647bcf584cc75029e8def.tar.gz
samba-e572bbb94cb8a23d366647bcf584cc75029e8def.tar.bz2
samba-e572bbb94cb8a23d366647bcf584cc75029e8def.zip
r15321: Reduce the size of rewrite.m4 a bit more
(This used to be commit c83e4b166534278c335254aa8890a50635bbf1b7)
Diffstat (limited to 'source4/include/system/config.m4')
-rw-r--r--source4/include/system/config.m443
1 files changed, 43 insertions, 0 deletions
diff --git a/source4/include/system/config.m4 b/source4/include/system/config.m4
new file mode 100644
index 0000000000..2c62b571e0
--- /dev/null
+++ b/source4/include/system/config.m4
@@ -0,0 +1,43 @@
+# filesys
+AC_HEADER_DIRENT
+AC_CHECK_HEADERS(fcntl.h sys/fcntl.h sys/acl.h sys/resource.h sys/ioctl.h sys/mode.h sys/filio.h sys/fs/s5param.h sys/filsys.h )
+
+# select
+AC_CHECK_HEADERS(sys/select.h)
+
+# time
+AC_CHECK_HEADERS(sys/time.h utime.h)
+AC_HEADER_TIME
+
+# wait
+AC_HEADER_SYS_WAIT
+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
+
+# capability
+AC_CHECK_HEADERS(sys/capability.h)
+
+# passwd
+AC_CHECK_HEADERS(grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h)
+
+# iconv
+AC_CHECK_HEADERS(ctype.h locale.h)
+
+# glob
+AC_CHECK_HEADERS(fnmatch.h)
+
+# shmem
+AC_CHECK_HEADERS(sys/ipc.h sys/mman.h sys/shm.h )
+
+# terminal
+AC_CHECK_HEADERS(termios.h termio.h sys/termio.h )