summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-11 02:34:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:20:04 -0500
commit76478d7eb145880e213ed8a399ce2171f43e18a4 (patch)
tree45bb02223587d9319fe3cf279de6991b8314c806
parent2b89817e467c409e5eb20b2a3885941e9accc7eb (diff)
downloadsamba-76478d7eb145880e213ed8a399ce2171f43e18a4.tar.gz
samba-76478d7eb145880e213ed8a399ce2171f43e18a4.tar.bz2
samba-76478d7eb145880e213ed8a399ce2171f43e18a4.zip
r8306: some more heimdal configure checks
(This used to be commit 575413fc863147ee46e1ff658af1d74093fc7686)
-rw-r--r--source4/build/m4/rewrite.m42
-rwxr-xr-xsource4/heimdal_build/build_external.sh1
-rw-r--r--source4/heimdal_build/config.m43
-rw-r--r--source4/include/includes.h4
4 files changed, 7 insertions, 3 deletions
diff --git a/source4/build/m4/rewrite.m4 b/source4/build/m4/rewrite.m4
index 275c001fdd..a29ae0ffa1 100644
--- a/source4/build/m4/rewrite.m4
+++ b/source4/build/m4/rewrite.m4
@@ -80,7 +80,7 @@ AC_DIRENT_D_OFF
AC_CHECK_TYPE(ino_t,unsigned)
AC_CHECK_TYPE(loff_t,off_t)
AC_CHECK_TYPE(offset_t,loff_t)
-AC_CHECK_TYPE(ssize_t, int)
+AC_CHECK_TYPES(ssize_t)
AC_CHECK_TYPES(intptr_t)
diff --git a/source4/heimdal_build/build_external.sh b/source4/heimdal_build/build_external.sh
index f95c43dc21..24e5eb9bee 100755
--- a/source4/heimdal_build/build_external.sh
+++ b/source4/heimdal_build/build_external.sh
@@ -10,7 +10,6 @@ ET_COMPILE=$TOP/bin/compile_et
# we need to substitute these correctly based on configure output
FLEX=flex
BISON=bison
-AWK=gawk
CC=gcc
build_asn1() {
diff --git a/source4/heimdal_build/config.m4 b/source4/heimdal_build/config.m4
index 3a60ff3240..c4057a355d 100644
--- a/source4/heimdal_build/config.m4
+++ b/source4/heimdal_build/config.m4
@@ -3,7 +3,8 @@ AC_CHECK_HEADERS(sys/stropts.h sys/timeb.h sys/times.h sys/uio.h sys/un.h)
AC_CHECK_HEADERS(sys/utsname.h termcap.h term.h timezone.h time.h ttyname.h netdb.h)
AC_CHECK_FUNCS(setitimer uname umask unsetenv socket sendmsg putenv atexit strsep)
-AC_CHECK_FUNCS(strlwr strncasecmp strptime strsep_copy strtok_r strupr swab)
+AC_CHECK_FUNCS(strlwr strncasecmp strptime strsep_copy strtok_r strupr swab writev readv)
+AC_CHECK_FUNCS(inet_ntop)
AC_CHECK_DECL(h_errno,
[AC_DEFINE(HAVE_DECL_H_ERRNO,1,whether h_errno is declared)], [], [
diff --git a/source4/include/includes.h b/source4/include/includes.h
index 85a023338a..d87820d788 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -197,6 +197,10 @@ extern int DEBUGLEVEL;
#endif
#define discard_const_p(type, ptr) ((type *)discard_const(ptr))
+#ifndef HAVE_SSIZE_T
+#define ssize_t int
+#endif
+
/*
type safe varient of smb_xmalloc()
*/