From fafa8c3e47497a9f399e9ca52a7e6a904f1fb9f6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 14 Sep 2006 18:46:10 +0000 Subject: r18535: move the AC_CANONICAL_HOST and host specific flag tests into libreplace. This should fix the standalone build of tdb on HPUX, where we need to blacklist mmap. Unfortunately this requires that we have a copy of config.guess and config.sub in each of our project subdirectories. I tried to find a way to use something like AC_CONFIG_AUX_DIR($libreplacedir) and just put config.{guess,sub} in the lib/replace/ directory, but I couldn't figure out how to do that in a way that kept autoconf happy for each of our separate builds. Any autoconf guru out there see a way to do this? (This used to be commit 823cd3ab35456769dcefee17bdaca21f01ba0f63) --- source4/build/m4/check_cc.m4 | 39 --------------------------------------- source4/build/m4/env.m4 | 2 -- 2 files changed, 41 deletions(-) (limited to 'source4/build/m4') diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4 index 62b8e48e7a..a1dfc45404 100644 --- a/source4/build/m4/check_cc.m4 +++ b/source4/build/m4/check_cc.m4 @@ -151,45 +151,6 @@ if test -n "$DEVELOPER_CFLAGS"; then CFLAGS="${OLD_CFLAGS}" fi -# -# Config CPPFLAG settings for strange OS's that must be set -# before other tests. -# -case "$host_os" in - # Try to work out if this is the native HPUX compiler that uses the -Ae flag. - *hpux*) - # mmap on HPUX is completely broken... - AC_DEFINE(MMAP_BLACKLIST, 1, [Whether MMAP is broken]) - ;; - - *aix*) - if test "${GCC}" != "yes"; then - ## for funky AIX compiler using strncpy() - CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000" - fi - ;; - - # - # VOS may need to have POSIX support and System V compatibility enabled. - # - *vos*) - case "$CPPFLAGS" in - *-D_POSIX_C_SOURCE*);; - *) - CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L" - AC_DEFINE(_POSIX_C_SOURCE, 200112L, [Whether to enable POSIX support]) - ;; - esac - case "$CPPFLAGS" in - *-D_SYSV*|*-D_SVID_SOURCE*);; - *) - CPPFLAGS="$CPPFLAGS -D_SYSV" - AC_DEFINE(_SYSV, 1, [Whether to enable System V compatibility]) - ;; - esac - ;; -esac - # allow for --with-hostcc=gcc AC_ARG_WITH(hostcc,[ --with-hostcc=compiler choose host compiler], [HOSTCC=$withval], diff --git a/source4/build/m4/env.m4 b/source4/build/m4/env.m4 index 7b5a5d19dd..7556f16ce2 100644 --- a/source4/build/m4/env.m4 +++ b/source4/build/m4/env.m4 @@ -5,8 +5,6 @@ dnl Released under the GNU GPL dnl ------------------------------------------------------- dnl -AC_CANONICAL_HOST - AC_SUBST(srcdir) export srcdir; -- cgit