Cool, thanks. That works, along with the "desired":


$ diff -u lib.h.orig lib.h
--- lib.h.orig  Wed Jun 24 23:41:22 2009
+++ lib.h       Wed Jun 24 23:41:44 2009
@@ -22,6 +22,10 @@
 #include <config.h>
 #endif

+#if defined(__INTERIX) && !defined(_ALL_SOURCE)
+#define _ALL_SOURCE
+#endif
+
 extern "C" {
 #ifndef HAVE_STRERROR
   char *strerror(int);

 

and configure -without-x.

X is mostly there and mostly groff builds against it, but not quite.

 

 - Jay


 
> Date: Thu, 25 Jun 2009 07:35:39 +0200
> To: [email protected]
> CC: [email protected]
> Subject: Re: groff 1.20 on Interix (all_source)
> From: [email protected]
> 
> 
> > The autoconf tests are run without the #define of _ALL_SOURCE so
> > they get a different view of if things are declared or not. This is
> > a common problem with autoconf.
> 
> Not anymore; autoconf version 2.60 added proper support for this, and
> version 2.62 fixed it for Interix.
> 
> > If you can foist the _ALL_SOURCE into the autoconf runs of the
> > compiler, then maybe more success.
> 
> Please apply the patch below, call `autoconf', do `make clean', and
> run `configure' again.
> 
> 
> Werner
> 
> 
> ======================================================================
> 
> 
> --- configure.ac.old 2009-03-07 08:00:17.000000000 +0100
> +++ configure.ac 2009-06-25 07:32:11.000000000 +0200
> @@ -43,11 +43,13 @@
> GROFF_VERSION_STRING,
> [[email protected]],
> [groff-]GROFF_VERSION_STRING)
> -AC_PREREQ([2.59])
> +AC_PREREQ([2.62])
> 
> AC_CONFIG_HEADERS([src/include/config.h:src/include/config.hin])
> AC_CONFIG_SRCDIR([src/roff/groff/groff.cpp])
> 
> +AC_USE_SYSTEM_EXTENSIONS
> +
> # checks for programs
> AC_PROG_CC
> AC_PROG_CXX
_______________________________________________
bug-groff mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-groff

Reply via email to