I forgot to CC: this mail to the [EMAIL PROTECTED] list.

Regards,
Morten




Hi,

I was chasing a problem where configure-scripts under IRIX 6.5 with
the SGI Mipspro v7.30 C++ compiler refused to link against X11 unless
the user applied some magic by setting environment variables etc.

I believe I found the root of the problem within _AC_PATH_X_DIRECT,
where the first X11 linkcheck fails due to a missing
#include-statement in the testcode. (Rather amazing that this nasty
bug has survived for so long -- it has at least been present for > 6
months, probably even longer.)

Patch against current CVS head branch attached below. (Note: the patch
hasn't been tested, as I'm running an older Autoconf at the moment,
due to the mismatch with the current CVS Automake.)


Mon May 29 15:35:51 2000  Morten Eriksen  <[EMAIL PROTECTED]>

        * acspecific.m4: Fix the first X11 linktest in
        _AC_PATH_X_DIRECT to actually have a chance of
        succeeding. Also killed an unnecessary shell variable.



Index: acspecific.m4
===================================================================
RCS file: /cvs/autoconf/acspecific.m4,v
retrieving revision 1.272
diff -u -r1.272 acspecific.m4
--- acspecific.m4       2000/05/28 16:27:56     1.272
+++ acspecific.m4       2000/05/29 13:32:25
@@ -2379,13 +2379,12 @@
   # Check for the libraries.
 
   test -z "$ac_x_direct_test_library" && ac_x_direct_test_library=Xt
-  test -z "$ac_x_direct_test_function" && ac_x_direct_test_function=XtMalloc
 
   # See if we find them without any special options.
   # Don't add to $LIBS permanently.
   ac_save_LIBS=$LIBS
   LIBS="-l$ac_x_direct_test_library $LIBS"
-AC_TRY_LINK(, [${ac_x_direct_test_function}()],
+AC_TRY_LINK([#include <$ac_x_direct_test_include>], [(void)XtMalloc(0)],
 [LIBS=$ac_save_LIBS
 # We can link X programs with no special library path.
 ac_x_libraries=],


Regards,
Morten Eriksen



Reply via email to