On Mon, Feb 17, 2003 at 08:34:36PM +0100, Olaf Weber wrote:
Luc Van Eycken writes:
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,
How about?
We posted a patch for this against tetex-2.0 to the main tetex mailing
list. Here it is again. I think the select patch is for AIX.
--
albert chin ([EMAIL PROTECTED])
-- snip snip
--- texk/etc/autoconf/acspecific.m4.origMon Feb 3 18:47:42 2003
+++ texk/etc/autoconf/acspecific.m4 Mon Feb 3 18:48:02 2003
@@ -1754,7 +1754,7 @@
#ifdef HAVE_SYS_SOCKET_H
#include sys/socket.h
#endif
-extern select
($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);],,dnl
+extern int select
+($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);],,dnl
[ac_not_found=no ; break 3],ac_not_found=yes)
done
done
@@ -2519,7 +2519,7 @@
# Don't add to $LIBS permanently.
ac_save_LIBS=$LIBS
LIBS=-l$x_direct_test_library $LIBS
-AC_TRY_LINK(, [${x_direct_test_function}()],
+AC_TRY_LINK([#include X11/Intrinsic.h], [${x_direct_test_function}(1)],
[LIBS=$ac_save_LIBS
# We can link X programs with no special library path.
ac_x_libraries=],