git-svn-id: https://svn.o-hand.com/repos/poky@242 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Ross Burton 2006-01-30 12:04:04 +00:00
parent c73514c92a
commit 275e035637
1 changed files with 4 additions and 3 deletions

View File

@ -22,14 +22,15 @@ diff -p -u -r1.13 libs.m4
ac_x_includes=$ac_dir ac_x_includes=$ac_dir
break break
fi fi
@@ -284,7 +284,7 @@ if test "$ac_x_libraries" = no; then @@ -284,9 +284,9 @@ if test "$ac_x_libraries" = no; then
# Don't add to $LIBS permanently. # Don't add to $LIBS permanently.
ac_save_LIBS=$LIBS ac_save_LIBS=$LIBS
LIBS="-lXt $LIBS" - LIBS="-lXt $LIBS"
- AC_LINK_IFELSE([AC_LANG_PROGRAM([@%:@include <X11/Intrinsic.h>], - AC_LINK_IFELSE([AC_LANG_PROGRAM([@%:@include <X11/Intrinsic.h>],
- [XtMalloc (0)])], - [XtMalloc (0)])],
+ LIBS="-lX11 $LIBS"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([@%:@include <X11/Xlib.h>], + AC_LINK_IFELSE([AC_LANG_PROGRAM([@%:@include <X11/Xlib.h>],
+ [XrmInitialize ()])], + [XrmInitialize ()])],
[LIBS=$ac_save_LIBS [LIBS=$ac_save_LIBS
# We can link X programs with no special library path. # We can link X programs with no special library path.
ac_x_libraries=], ac_x_libraries=],