~ubuntu-branches/ubuntu/oneiric/lightning-extension/oneiric-proposed

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2011-12-29 12:14:14 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20111229121414-q6pyb0vyeprgpl4e
Tags: 1.1+build1-0ubuntu0.11.10.1
* New upstream stable release (CALENDAR_1_1_BUILD1) (LP: #909599)

* Refresh debian/patches/02_fix_system_libxul_build.patch
* Add debian/patches/03_maxversion_override.patch to ensure compatibility
  with Thunderbird 9 point releases
* Add the new python IDL parser to the tarball
  - update debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
639
639
                AC_MSG_RESULT([none needed])
640
640
            fi
641
641
            ;;
642
 
        x86_64)
 
642
        x86_64-*)
643
643
            MIDL_FLAGS="${MIDL_FLAGS} -env x64"
644
644
            ;;
645
645
        *)
2105
2105
    MOZ_TOOLS_DIR=`cd $MOZ_TOOLS && pwd -W`
2106
2106
    MOZ_BUILD_ROOT=`cd $MOZ_BUILD_ROOT && pwd -W`
2107
2107
    AR_LIST="$AR -list"
2108
 
    AR_EXTRACT="$AR -extract"
 
2108
    AR_EXTRACT=
2109
2109
    AR_DELETE="$AR d"
2110
2110
    AR_FLAGS='-OUT:"$@"'
2111
2111
 
2126
2126
    HOST_CC=cl
2127
2127
    HOST_CXX=cl
2128
2128
    HOST_LD=link
2129
 
    HOST_AR='lib -OUT:$@'
 
2129
    HOST_AR='lib'
 
2130
    HOST_AR_FLAGS='-OUT:$@'
2130
2131
    HOST_RANLIB='echo ranlib'
2131
2132
    HOST_CFLAGS="$HOST_CFLAGS -D_X86_"
2132
2133
        
2230
2231
        if test "$AS_BIN"; then
2231
2232
            AS="$(basename "$AS_BIN")"
2232
2233
        fi
2233
 
        AR='lib -NOLOGO -OUT:"$@"'
2234
 
        AR_FLAGS=
 
2234
        AR='lib'
 
2235
        AR_FLAGS='-NOLOGO -OUT:"$@"'
 
2236
        AR_EXTRACT=
2235
2237
        RANLIB='echo not_ranlib'
2236
2238
        STRIP='echo not_strip'
2237
2239
        XARGS=xargs
4061
4063
fi
4062
4064
 
4063
4065
# try harder, when checking for __thread support, see bug 521750 comment #33 and below
 
4066
# We pass MOZ_OPTIMIZE_LDFLAGS to the linker because if dead_strip is
 
4067
# enabled, the linker in xcode 4.1 will crash. Without this it would crash when
 
4068
# linking XUL.
4064
4069
_SAVE_LDFLAGS=$LDFLAGS
4065
 
LDFLAGS="$LDFLAGS $DSO_PIC_CFLAGS $DSO_LDOPTS"
 
4070
LDFLAGS="$LDFLAGS $DSO_PIC_CFLAGS $DSO_LDOPTS $MOZ_OPTIMIZE_LDFLAGS"
4066
4071
AC_CACHE_CHECK(for __thread keyword for TLS variables,
4067
4072
               ac_cv_thread_keyword,
4068
4073
               [AC_TRY_LINK([__thread bool tlsIsMainThread = false;],
5323
5328
  ;;
5324
5329
x86_64)
5325
5330
  MOZ_DIRECTX_SDK_CPU_SUFFIX=x64
5326
 
  # currently we disable ANGLE in 64bit builds
5327
 
  MOZ_ANGLE=
5328
5331
  ;;
5329
5332
esac
5330
5333
 
5519
5522
    MOZ_UPDATE_CHANNEL=default
5520
5523
fi
5521
5524
AC_DEFINE_UNQUOTED(MOZ_UPDATE_CHANNEL, $MOZ_UPDATE_CHANNEL)
 
5525
AC_SUBST(MOZ_UPDATE_CHANNEL)
5522
5526
 
5523
5527
# tools/update-packaging is not checked out by default.
5524
5528
MOZ_ARG_ENABLE_BOOL(update-packaging,
5877
5881
    MOZ_MEMORY=
5878
5882
fi
5879
5883
 
 
5884
if test "${OS_TARGET}" = "WINNT" -o "${OS_TARGET}" = "Darwin" -o "${OS_TARGET}" = "OS2"; then
 
5885
  dnl On Windows, OSX and OS2, we want to link all our binaries against mozutils
 
5886
  MOZ_UTILS_LDFLAGS='$(call EXPAND_LIBNAME_PATH,mozutils,$(LIBXUL_DIST)/lib)'
 
5887
else
 
5888
  dnl On other Unix systems, we only want to link executables against mozutils
 
5889
  MOZ_UTILS_PROGRAM_LDFLAGS='$(MKSHLIB_FORCE_ALL) $(call EXPAND_LIBNAME_PATH,mozutils,$(LIBXUL_DIST)/lib) $(MKSHLIB_UNFORCE_ALL)'
 
5890
  if test -n "$GNU_CC"; then
 
5891
    dnl And we need mozutils symbols to be exported.
 
5892
    MOZ_UTILS_PROGRAM_LDFLAGS="$MOZ_UTILS_PROGRAM_LDFLAGS -rdynamic"
 
5893
  fi
 
5894
fi
 
5895
 
5880
5896
if test "$MOZ_MEMORY"; then
5881
 
 
5882
5897
  dnl Don't try to run compiler tests on Windows  
5883
5898
  if test "$OS_ARCH" = "WINNT"; then
5884
5899
    if test -z "$HAVE_64BIT_OS"; then
5926
5941
    ;;
5927
5942
  *-msvc*|*-mks*|*-mingw*)
5928
5943
    AC_DEFINE(MOZ_MEMORY_WINDOWS)
5929
 
    dnl This is sort of awful. Will revisit if we add support for more versions
5930
 
    if test "$CC_VERSION" != "14.00.50727.762" -a "$CC_VERSION" != "15.00.30729.01"; then
5931
 
        AC_MSG_ERROR([Building jemalloc requires exactly Visual C++ 2005 SP1 or 2008 SP1 currently.])
5932
 
    fi
5933
 
    if test -z "$WIN32_CRT_SRC_DIR"; then
5934
 
      if test -z "$VCINSTALLDIR" -o ! -d "$VCINSTALLDIR"; then
5935
 
        AC_MSG_ERROR([When building jemalloc, set WIN32_CRT_SRC_DIR to the path to the Visual C++ CRT source (usually VCINSTALLDIR\crt\src, but VCINSTALLDIR is not set, so I can't autodetect it for you).])
5936
 
      else
5937
 
        WIN32_CRT_SRC_DIR="$VCINSTALLDIR\crt\src"
5938
 
      fi
5939
 
    fi
5940
 
    case "${target_cpu}" in
5941
 
    i*86)
5942
 
      MOZ_CRT_CPU_ARCH=intel
5943
 
      ;;
5944
 
    x86_64)
5945
 
      MOZ_CRT_CPU_ARCH=amd64
5946
 
      ;;
5947
 
    *)
5948
 
      AC_MSG_ERROR([--enable-jemalloc not supported on ${target}])
5949
 
      ;;
5950
 
    esac
5951
 
 
5952
 
    AC_SUBST(MOZ_CRT_CPU_ARCH)
5953
 
 
5954
 
    if test ! -d "$WIN32_CRT_SRC_DIR"; then
5955
 
      AC_MSG_ERROR([Invalid Win32 CRT source directory: ${WIN32_CRT_SRC_DIR}])
5956
 
    fi
5957
 
    WIN32_CRT_SRC_DIR=`cd "$WIN32_CRT_SRC_DIR" && pwd -W`
5958
 
    _objdir_win=`pwd -W`
5959
 
    WIN32_CUSTOM_CRT_DIR="$_objdir_win/mozilla/memory/jemalloc/crtsrc/build/$MOZ_CRT_CPU_ARCH"
5960
 
    MOZ_MEMORY_LDFLAGS="-MANIFEST:NO -LIBPATH:\"$WIN32_CUSTOM_CRT_DIR\" -NODEFAULTLIB:msvcrt -NODEFAULTLIB:msvcrtd -NODEFAULTLIB:msvcprt -NODEFAULTLIB:msvcprtd -DEFAULTLIB:mozcrt19 -DEFAULTLIB:mozcpp19"
 
5944
    if test -z "$MOZ_DEBUG"; then
 
5945
      WIN32_CRT_LIBS="msvcrt.lib msvcprt.lib"
 
5946
    else
 
5947
      WIN32_CRT_LIBS="msvcrtd.lib msvcprtd.lib"
 
5948
    fi
 
5949
    dnl Look for a broken crtdll.obj
 
5950
    WIN32_CRTDLL_FULLPATH=`lib -nologo -list $WIN32_CRT_LIBS | grep crtdll\\.obj`
 
5951
    lib -NOLOGO -OUT:crtdll.obj $WIN32_CRT_LIBS -EXTRACT:$WIN32_CRTDLL_FULLPATH
 
5952
    if grep -q '__imp__\{0,1\}free' crtdll.obj; then
 
5953
      MOZ_UTILS_LDFLAGS='-LIBPATH:$(DIST)/lib -NODEFAULTLIB:msvcrt -NODEFAULTLIB:msvcrtd -NODEFAULTLIB:msvcprt -NODEFAULTLIB:msvcprtd -DEFAULTLIB:mozcrt'
 
5954
    fi
 
5955
    rm crtdll.obj
 
5956
 
5961
5957
    dnl Also pass this to NSPR/NSS
5962
 
    DLLFLAGS="$DLLFLAGS $MOZ_MEMORY_LDFLAGS"
 
5958
    DLLFLAGS="$DLLFLAGS $MOZ_UTILS_LDFLAGS"
5963
5959
    export DLLFLAGS
5964
5960
    ;;
5965
5961
  *-android*)
5981
5977
  fi
5982
5978
fi
5983
5979
AC_SUBST(MOZ_MEMORY)
5984
 
AC_SUBST(MOZ_MEMORY_LDFLAGS)
5985
 
AC_SUBST(WIN32_CRT_SRC_DIR)
 
5980
AC_SUBST(MOZ_UTILS_LDFLAGS)
 
5981
AC_SUBST(MOZ_UTILS_PROGRAM_LDFLAGS)
 
5982
AC_SUBST(WIN32_CRT_LIBS)
5986
5983
dnl Need to set this for make because NSS doesn't have configure
5987
5984
AC_SUBST(DLLFLAGS)
5988
5985
 
7230
7227
 
7231
7228
  cat >> $_CONFIG_TMP <<\EOF
7232
7229
 
 
7230
/* The c99 defining the limit macros (UINT32_MAX for example), says:
 
7231
 * C++ implementations should define these macros only when __STDC_LIMIT_MACROS
 
7232
 * is defined before <stdint.h> is included. */
 
7233
#define __STDC_LIMIT_MACROS
 
7234
 
7233
7235
#endif /* _COMM_CONFIG_H_ */
7234
7236
 
7235
7237
EOF