[distcc] Re: distcc for Cygwin?
Martin Pool
mbp at sourcefrog.net
Thu Aug 1 04:34:44 GMT 2002
Here's another patch for sa_family_t.
Index: configure
===================================================================
RCS file: /data/cvs/distcc/configure,v
retrieving revision 1.22
diff -u -r1.22 configure
--- configure 2002/07/25 06:08:22 1.22
+++ configure 2002/08/01 11:31:25
@@ -2743,6 +2743,68 @@
fi
+echo "$as_me:$LINENO: checking for sa_family_t" >&5
+echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
+if test "${ac_cv_type_sa_family_t+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+#include "confdefs.h"
+
+#include <sys/types.h>
+#include <netinet/in.h>
+
+
+#ifdef F77_DUMMY_MAIN
+# ifdef __cplusplus
+ extern "C"
+# endif
+ int F77_DUMMY_MAIN() { return 1; }
+#endif
+int
+main ()
+{
+if ((sa_family_t *) 0)
+ return 0;
+if (sizeof (sa_family_t))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_type_sa_family_t=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat conftest.$ac_ext >&5
+ac_cv_type_sa_family_t=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
+echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
+if test $ac_cv_type_sa_family_t = yes; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_SA_FAMILY_T 1
+_ACEOF
+
+
+fi
+
+
Index: configure.ac
===================================================================
RCS file: /data/cvs/distcc/configure.ac,v
retrieving revision 1.33
diff -u -r1.33 configure.ac
--- configure.ac 2002/07/25 06:08:22 1.33
+++ configure.ac 2002/08/01 11:31:26
@@ -69,6 +69,12 @@
#include <netinet/in.h>
] )
+AC_CHECK_TYPES([sa_family_t], , ,
+ [
+#include <sys/types.h>
+#include <netinet/in.h>
+])
+
dnl Checks for library functions
AC_CHECK_FUNCS([sendfile setsid flock lockf])
cvs server: Diffing analog
cvs server: Diffing aoss2002
cvs server: Diffing contrib
cvs server: Diffing doc
cvs server: Diffing linuxdoc
cvs server: Diffing man
cvs server: Diffing packaging
cvs server: Diffing patches
cvs server: Diffing python
cvs server: Diffing pyunit
cvs server: Diffing src
Index: src/config.h.in
===================================================================
RCS file: /data/cvs/distcc/src/config.h.in,v
retrieving revision 1.5
diff -u -r1.5 config.h.in
--- src/config.h.in 2002/06/27 03:23:41 1.5
+++ src/config.h.in 2002/08/01 11:31:26
@@ -12,11 +12,20 @@
/* Define to 1 if the system has the type `in_port_t'. */
#undef HAVE_IN_PORT_T
+/* Define to 1 if you have the `nsl' library (-lnsl). */
+#undef HAVE_LIBNSL
+
+/* Define to 1 if you have the `socket' library (-lsocket). */
+#undef HAVE_LIBSOCKET
+
/* Define to 1 if you have the `lockf' function. */
#undef HAVE_LOCKF
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
+
+/* Define to 1 if the system has the type `sa_family_t'. */
+#undef HAVE_SA_FAMILY_T
/* Define to 1 if you have the `sendfile' function. */
#undef HAVE_SENDFILE
Index: src/distcc.h
===================================================================
RCS file: /data/cvs/distcc/src/distcc.h,v
retrieving revision 1.66
diff -u -r1.66 distcc.h
--- src/distcc.h 2002/07/10 05:11:16 1.66
+++ src/distcc.h 2002/08/01 11:31:26
@@ -43,6 +43,10 @@
# define UNUSED(x) x
#endif /* !__GNUC__ && !__LCLINT__ */
+#ifndef HAVE_SA_FAMILY_T
+typedef int sa_family_t;
+#endif
+
struct dcc_hostdef;
cvs server: Diffing test
cvs server: Diffing web
--
Martin
More information about the distcc
mailing list