mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
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:
parent
da549e3a42
commit
041c7971c4
14
configure.in
14
configure.in
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user