--- src/configure.in +++ src/configure.in @@ -2701,7 +2701,7 @@ AC_MSG_CHECKING(whether X_LOCALE needed) AC_TRY_COMPILE([#include ],, AC_TRY_LINK_FUNC([_Xsetlocale], [AC_MSG_RESULT(yes) - AC_DEFINE(X_LOCALE)], AC_MSG_RESULT(no)), + AC_DEFINE(X_LOCALE) ldflags_save="$ldflags_save -lX11"], AC_MSG_RESULT(no)), AC_MSG_RESULT(no)) fi CFLAGS=$cflags_save