Add AC_CANONICAL_SYSTEM to generate $target

Use $target instead of $host, maybe should use both $target and $host.
Fix $ol_host_os bug.
This commit is contained in:
Kurt Zeilenga 1999-06-11 18:24:18 +00:00
parent da549e3a42
commit 041c7971c4
2 changed files with 728 additions and 656 deletions

1370
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -20,6 +20,11 @@ if test -z "$OL_VERSION"; then
AC_MSG_ERROR([could not determine version])
fi
dnl ----------------------------------------------------------------
dnl Determine host platform
dnl we try not to use this for much
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE(OpenLDAP,[$OL_VERSION], [no defines])dnl
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
@ -304,11 +309,6 @@ READLINE_LIBS=
TERMCAP_LIBS=
TLS_LIBS=
dnl ----------------------------------------------------------------
dnl Determine host platform
dnl we try not to use this for much
AC_CANONICAL_HOST
dnl ----------------------------------------------------------------
dnl Checks for programs
@ -324,9 +324,9 @@ dnl any additional thread libraries)
dnl If we do not find cc_r|xlc_r, disable threads
ol_aix_threads=no
case "$host" in
case "$target" in
*-*-aix*) dnl all AIX is not a good idea.
if test -z "CC" -a "$ol_host_os" = aix ; then
if test -z "CC" ; then
case "$ol_with_threads" in
auto | yes | posix) ol_aix_threads=yes ;;
esac