use AC_RUN_IFELSE so we can handle cross compiling

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13716 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-04-14 12:47:37 +00:00
parent 30d6172fe7
commit 24072eaa7f
2 changed files with 6 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ if test "$no_x" != yes; then
done
fi
LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
AC_TRY_RUN([
AC_RUN_IFELSE([
#include <X11/Xlib.h>
foo()
{
@@ -42,7 +42,8 @@ if test "$no_x" != yes; then
{
return 0;
}
], krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break,:)
],krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break,:,
krb_cv_sys_x_libs_rpath="" ; krb_cv_sys_x_libs="" ; break)
done
LIBS="$ac_save_libs"
CFLAGS="$ac_save_cflags"