From b8a61673414b8fac09903e22225fa452b84a80a8 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 4 Jan 2009 14:07:07 +0000 Subject: Berlios Patch #2525, courtesy of Diego E. "Flameeyes" Pettenò: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "The AC_CANONICAL_TARGET macro and the $target_os variables are used for the target of compilers and other code-generation tools, and should not be used during cross-compile of generic software. Replace them with AC_CANONICAL_HOST and $host_os instead, as they should have been from the start. For a breakdown of what host, build and target machines are, please see http://blog.flameeyes.eu/s/canonical-target ." svn path=/branches/BRANCH_6-3/; revision=5258 --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 88a004f0..96aedeb2 100644 --- a/configure.ac +++ b/configure.ac @@ -13,7 +13,7 @@ AC_CONFIG_SRCDIR([fetchmail.h]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_LIBOBJ_DIR([.]) -AC_CANONICAL_TARGET +AC_CANONICAL_HOST dnl automake options are in Makefile.am AC_PREREQ(2.60) @@ -88,7 +88,7 @@ AC_PROG_MAKE_SET AC_PROG_YACC # Check for OS special cases -case $target_os in +case $host_os in darwin*) AC_MSG_NOTICE(found Darwin - Adding -DBIND_8_COMPAT to CFLAGS) CPPFLAGS="$CPPFLAGS -DBIND_8_COMPAT" @@ -498,7 +498,7 @@ if test "$fm_cv_getaddrinfo" = yes ; then AC_MSG_CHECKING(if your getaddrinfo is async-signal-safe) gai_ts=no dnl we have getaddrinfo() - check if the OS is known to have a async-signal-safe implementation - case $target_os in + case $host_os in darwin9*) gai_ts=yes ;; linux*) gai_ts=yes ;; freebsd5.5|freebsd6*|freebsd7*) gai_ts=yes ;; -- cgit v1.2.3