From c6a286ec4a67513c3be2f93e695490a6fad64bf2 Mon Sep 17 00:00:00 2001 From: nadolski <nadolski@9a6e40ed-f3a0-4838-9b4a-bf418f78e88d> Date: Thu, 2 Feb 2012 21:20:57 +0000 Subject: [PATCH] Need for autoconf 2.59 (well known bug) --- tracy/acinclude.m4 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tracy/acinclude.m4 diff --git a/tracy/acinclude.m4 b/tracy/acinclude.m4 new file mode 100644 index 0000000..f253bbc --- /dev/null +++ b/tracy/acinclude.m4 @@ -0,0 +1,28 @@ +# autoconf 2.59 ships without AC_HEADER_RESOLV, so we include it here +# +# AC_HEADER_RESOLV +# ---------------- +# According to http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?resolver+3 +# (or http://www.chemie.fu-berlin.de/cgi-bin/man/sgi_irix?resolver+3), +# sys/types.h, netinet/in.h and arpa/nameser.h are required on IRIX. +# netinet/in.h is needed on Cygwin, too. +# With Solaris 9, netdb.h is required, to get symbols like HOST_NOT_FOUND. +# +AN_HEADER(resolv.h, [AC_HEADER_RESOLV]) + AC_DEFUN([AC_HEADER_RESOLV], + [AC_CHECK_HEADERS(sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h, + [], [], + [[#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif +#ifdef HAVE_NETINET_IN_H +# include <netinet/in.h> /* inet_ functions / structs */ +#endif +#ifdef HAVE_ARPA_NAMESER_H +# include <arpa/nameser.h> /* DNS HEADER struct */ +#endif +#ifdef HAVE_NETDB_H +# include <netdb.h> +#endif]]) + ])# AC_HEADER_RESOLV + -- GitLab