remove our cross compiling cruft and add warning where $cross_compiling == yes

This commit is contained in:
Kurt Zeilenga 2004-04-04 18:26:51 +00:00
parent 65e409817e
commit 13eb893181
2 changed files with 869 additions and 897 deletions

1748
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -153,9 +153,6 @@ dnl OL_ARG_ENABLE(kbind,[ --enable-kbind enable LDAPv2+ Kerberos IV bind (dep
ol_enable_kbind=${ol_enable_kbind-no}
OL_ARG_ENABLE(ipv6,[ --enable-ipv6 enable IPv6 support], auto)dnl
OL_ARG_ENABLE(local,[ --enable-local enable AF_LOCAL (AF_UNIX) socket support], auto)dnl
dnl OL_ARG_ENABLE(x_compile,[ --enable-x-compile enable cross compiling],
dnl no, [yes no])dnl
ol_enable_x_compile=${ol_enable_x_compile-no}
dnl ----------------------------------------------------------------
dnl General "with" options
@ -755,20 +752,6 @@ fi
AC_PROG_CPP
dnl ----------------------------------------------------------------
dnl Cross compiling checks
if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
AC_MSG_WARN([cross compiling.... some functionality will be removed.])
elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
AC_MSG_WARN([programs compiled here do run here...])
AC_MSG_ERROR([ if not cross compiling, use --disable-x-compile.])
elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
AC_MSG_WARN([programs compiled here do not run here...])
AC_MSG_ERROR([ if cross compiling, add --enable-x-compile.])
fi
dnl ----------------------------------------------------------------
dnl Checks for UNIX Variants
dnl AC_AIX
@ -2397,6 +2380,7 @@ AC_C_CONST
OL_C_VOLATILE
if test $cross_compiling = yes ; then
AC_MSG_WARN([Crossing compiling... all bets are off!])
AC_DEFINE(CROSS_COMPILING, 1, [define if cross compiling])
else
AC_C_BIGENDIAN