[distcc] Re: building distcc-0.14 on Solaris
Dimitri Papadopoulos
papadopo at REMOVE.shfj.DECOY.cea.fr
Tue Nov 19 13:54:00 GMT 2002
Hi,
I wrote:
>
> I have problems configuring distcc-0.14 on Solaris.
> [...]
> with autconf 2.54 and better. See for example:
> http://bugzilla.gnome.org/show_bug.cgi?id=98880
> Would it possible to revert to the previously used version
> of autconf until current versions of autoconf are fixed?
Actually this is not an autoconf bug but a new autoconf feature
and autoconf.ac needs to be modified to work with newer autoconf
versions.
Please find attached a patch against configure.ac from distcc-0.14.
It follows the header dependencies documented here:
http://www.sas.com/service/library/onlinedoc/sasc/doc700/html/lr2/zr2bsdhf.htm
as well as the autoconf.info recommendations.
It's similar to the patch I've submitted for libxml2:
http://bugzilla.gnome.org/show_bug.cgi?id=98880
Regards,
--
Dimitri
-------------- next part --------------
--- configure.ac- 2002-11-15 23:57:53.000000000 +0100
+++ configure.ac 2002-11-19 14:42:53.989047877 +0100
@@ -71,8 +71,34 @@
AC_SUBST(INSTALL_SCRIPT, ["install -m 555"])
dnl Checks for header files
-AC_CHECK_HEADERS([sys/sendfile.h sys/signal.h arpa/nameser.h resolv.h float.h])
-AC_CHECK_HEADERS([mcheck.h unistd.h alloca.h])
+AC_CHECK_HEADERS([unistd.h])
+AC_CHECK_HEADERS([sys/types.h])
+AC_CHECK_HEADERS([sys/sendfile.h])
+AC_CHECK_HEADERS([sys/signal.h])
+AC_CHECK_HEADERS([netinet/in.h], [], [],
+[#if HAVE_SYS_TYPES_H
+# include <sys/types.h>
+# endif
+])
+AC_CHECK_HEADERS([arpa/nameser.h], [], [],
+[#if HAVE_SYS_TYPES_H
+# include <sys/types.h>
+# endif
+])
+AC_CHECK_HEADERS([resolv.h], [], [],
+[#if HAVE_SYS_TYPES_H
+# include <sys/types.h>
+# endif
+#if HAVE_NETINET_IN_H
+# include <netinet/in.h>
+# endif
+#if HAVE_ARPA_NAMESER_H
+# include <arpa/nameser.h>
+# endif
+])
+AC_CHECK_HEADERS([float.h])
+AC_CHECK_HEADERS([mcheck.h])
+AC_CHECK_HEADERS([alloca.h])
dnl Checks for types
AC_CHECK_TYPES([in_port_t], , ,
More information about the distcc
mailing list