mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05: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
2 changed files with 728 additions and 656 deletions
14
configure.in
14
configure.in
|
|
@ -20,6 +20,11 @@ if test -z "$OL_VERSION"; then
|
||||||
AC_MSG_ERROR([could not determine version])
|
AC_MSG_ERROR([could not determine version])
|
||||||
fi
|
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
|
AM_INIT_AUTOMAKE(OpenLDAP,[$OL_VERSION], [no defines])dnl
|
||||||
AC_SUBST(PACKAGE)
|
AC_SUBST(PACKAGE)
|
||||||
AC_SUBST(VERSION)
|
AC_SUBST(VERSION)
|
||||||
|
|
@ -304,11 +309,6 @@ READLINE_LIBS=
|
||||||
TERMCAP_LIBS=
|
TERMCAP_LIBS=
|
||||||
TLS_LIBS=
|
TLS_LIBS=
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
|
||||||
dnl Determine host platform
|
|
||||||
dnl we try not to use this for much
|
|
||||||
AC_CANONICAL_HOST
|
|
||||||
|
|
||||||
dnl ----------------------------------------------------------------
|
dnl ----------------------------------------------------------------
|
||||||
dnl Checks for programs
|
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
|
dnl If we do not find cc_r|xlc_r, disable threads
|
||||||
|
|
||||||
ol_aix_threads=no
|
ol_aix_threads=no
|
||||||
case "$host" in
|
case "$target" in
|
||||||
*-*-aix*) dnl all AIX is not a good idea.
|
*-*-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
|
case "$ol_with_threads" in
|
||||||
auto | yes | posix) ol_aix_threads=yes ;;
|
auto | yes | posix) ol_aix_threads=yes ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue