From: Akim Demaille Date: Wed, 7 Jun 2000 07:02:26 +0000 (+0000) Subject: Hard (code) X. X-Git-Tag: autoconf-2.50~830 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1a16bbee346a8a7d327d2d2f0b6a5d422b460f9;p=thirdparty%2Fautoconf.git Hard (code) X. * acspecific.m4 (_AC_PATH_X_DIRECT): Hard code `X11/Intrinsic.h' instead of using `ac_x_direct_test_include', likewise for `Xt' and `ac_x_direct_test_lib', `XtMalloc' and `ac_x_direct_test_function'. --- diff --git a/ChangeLog b/ChangeLog index e34d9677c..139e196c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2000-06-07 Akim Demaille + + Hard (code) X. + + * acspecific.m4 (_AC_PATH_X_DIRECT): Hard code `X11/Intrinsic.h' + instead of using `ac_x_direct_test_include', likewise for `Xt' and + `ac_x_direct_test_lib', `XtMalloc' and + `ac_x_direct_test_function'. + 2000-06-07 Akim Demaille * acspecific.m4 (AC_PATH_X): Use AC_DIVERT. diff --git a/acspecific.m4 b/acspecific.m4 index 79f179e4d..b08cd7b04 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -2358,16 +2358,13 @@ ac_x_header_dirs=' /usr/openwin/share/include' if test "$ac_x_includes" = no; then - # Guess where to find include files, by looking for this one X11 .h file. - test -z "$ac_x_direct_test_include" && - ac_x_direct_test_include=X11/Intrinsic.h - + # Guess where to find include files, by looking for Intrinsic.h. # First, try using that file with no special directory specified. -AC_TRY_CPP([#include <$ac_x_direct_test_include>], + AC_TRY_CPP([@%:@include ], [# We can compile using X headers with no special include directory. ac_x_includes=], [for ac_dir in $ac_x_header_dirs; do - if test -r "$ac_dir/$ac_x_direct_test_include"; then + if test -r "$ac_dir/X11/Intrinsic.h"; then ac_x_includes=$ac_dir break fi @@ -2376,15 +2373,11 @@ fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # 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}()], + LIBS="-lXt $LIBS" + AC_TRY_LINK(, [XtMalloc (0)], [LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries=], @@ -2393,7 +2386,7 @@ for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl; do - if test -r $ac_dir/lib${ac_x_direct_test_library}.$ac_extension; then + if test -r $ac_dir/libXt.$ac_extension; then ac_x_libraries=$ac_dir break 2 fi diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index 79f179e4d..b08cd7b04 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -2358,16 +2358,13 @@ ac_x_header_dirs=' /usr/openwin/share/include' if test "$ac_x_includes" = no; then - # Guess where to find include files, by looking for this one X11 .h file. - test -z "$ac_x_direct_test_include" && - ac_x_direct_test_include=X11/Intrinsic.h - + # Guess where to find include files, by looking for Intrinsic.h. # First, try using that file with no special directory specified. -AC_TRY_CPP([#include <$ac_x_direct_test_include>], + AC_TRY_CPP([@%:@include ], [# We can compile using X headers with no special include directory. ac_x_includes=], [for ac_dir in $ac_x_header_dirs; do - if test -r "$ac_dir/$ac_x_direct_test_include"; then + if test -r "$ac_dir/X11/Intrinsic.h"; then ac_x_includes=$ac_dir break fi @@ -2376,15 +2373,11 @@ fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # 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}()], + LIBS="-lXt $LIBS" + AC_TRY_LINK(, [XtMalloc (0)], [LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries=], @@ -2393,7 +2386,7 @@ for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl; do - if test -r $ac_dir/lib${ac_x_direct_test_library}.$ac_extension; then + if test -r $ac_dir/libXt.$ac_extension; then ac_x_libraries=$ac_dir break 2 fi