Re: teTeX-2.0.1

Luc Van Eycken <[email protected]>
Newsgroups gmane.comp.tex.tetex.beta
Message-ID <[email protected]>
Hi,

I just tried to compile teTeX 2.0.1 and I encountered a configuration
problem on some platforms. Due to the additional inclusion of
<X11/Intrinsic.h> in AC_PATH_X_DIRECT, the number of arguments of XtMalloc
is checked. But the correct number of arguments of XtMalloc is 1 and not 0,
resulting in a configuration test failure (cf. config.log), at least on
some platforms, such as Alpha or SGI, but not on other ones, such as Linux.
On SGI platforms, it results in a wrong library path.

The solution is to either remove the "#include <X11/Intrinsic.h>" line
again or, as stolen from a recent autoconf, to apply the patch included
below and to reautoconf.

I always had the feeling that messing around with an antique autoconf would
backfire one day :)

Best regards,

Luc Van Eycken

--- tetex-src-2.0.1/texk/etc/autoconf/acspecific.m4.orig	2003-02-04 23:53:55.000000000 +0100
+++ tetex-src-2.0.1/texk/etc/autoconf/acspecific.m4	2003-02-17 17:28:48.000000000 +0100
@@ -2519,7 +2519,7 @@
   # Don't add to $LIBS permanently.
   ac_save_LIBS="$LIBS"
   LIBS="-l$x_direct_test_library $LIBS"
-AC_TRY_LINK([#include <X11/Intrinsic.h>], [${x_direct_test_function}()],
+AC_TRY_LINK([#include <X11/Intrinsic.h>], [XtMalloc(0)],
 [LIBS="$ac_save_LIBS"
 # We can link X programs with no special library path.
 ac_x_libraries=],
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.