~ubuntu-branches/ubuntu/saucy/nspr/saucy-updates

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2011-01-11 14:55:23 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110111145523-hb3ap33jpgf838lt
Tags: 4.8.7-0ubuntu1
* New upstream release v4.8.7 (NSPR_4_8_7_RTM)
* Refresh patches
  - update debian/patches/30_config_64bits.patch
  - update debian/patches/99_configure.patch
* Drop the link shuffeling now, as all upgraders to this version will be
  using a fixed package anyway
  - remove debian/libnspr4-0d.postinst
  - remove debian/libnspr4-0d.postrm
  - remove debian/libnspr4-0d.preinst
  - remove debian/libnspr4-0d.prerm
* Drop arch-specific symbols files for architectures we don't support
  - remove debian/libnspr4-0d.symbols.hurd_i386
  - remove debian/libnspr4-0d.symbols.ia64
  - remove debian/libnspr4-0d.symbols.lpia
* Ship the main SO files in an unversioned binary, as we don't have
  versioned SO's in Ubuntu. Maintain a transitional versioned binary
  package containing the versioned symlinks, to maintain compatibility with
  Debian
  - update debian/control
  - mass rename debian/libnspr4-0d* => debian/libnspr4*
  - update debian/rules
* Fix postinst-must-call-ldconfig - dh_makeshlibs doesn't seem to add
  the maintainer script hooks with the unversioned SO files, so add them
  manually
  - add debian/libnspr4.postinst
  - add debian/libnspr4.postrm

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
dnl ========================================================
51
51
MOD_MAJOR_VERSION=4
52
52
MOD_MINOR_VERSION=8
53
 
MOD_PATCH_VERSION=6
 
53
MOD_PATCH_VERSION=7
54
54
NSPR_MODNAME=nspr20
55
55
_HAVE_PTHREADS=
56
56
USE_PTHREADS=
194
194
        HOST_LDFLAGS=" "
195
195
    fi
196
196
 
 
197
    WRAP_MALLOC_CFLAGS="-Wl,--wrap=dlopen -Wl,--wrap=dlclose -Wl,--wrap=dlerror -Wl,--wrap=dlsym -Wl,--wrap=dladdr"
 
198
 
197
199
    AC_DEFINE(ANDROID)
198
200
fi
199
201
 
934
936
      AC_MSG_ERROR([--enable-thumb2 is not supported for non-ARM CPU architectures])
935
937
    ;;
936
938
  esac
 
939
else
 
940
  case "$target_cpu" in
 
941
    arm*)
 
942
      if test "$GNU_CC"; then
 
943
       CFLAGS="$CFLAGS -march=armv5te -mthumb-interwork -Wa, -march=armv5te -Wa, -mthumb-interwork"
 
944
        CXXFLAGS="$CXXFLAGS -march=armv5te -mthumb-interwork -Wa, -march=armv5te -Wa, -mthumb-interwork"
 
945
        ASFLAGS="$ASFLAGS -march=armv5te -mthumb-interwork"
 
946
      fi
 
947
      ;;
 
948
  esac
937
949
fi
938
950
 
939
951
dnl ========================================================
1698
1710
           elif test $_CC_BUILD -ge 762; then
1699
1711
              _USE_DYNAMICBASE=1
1700
1712
           fi
 
1713
           AC_DEFINE(_CRT_SECURE_NO_DEPRECATE)
 
1714
           AC_DEFINE(_CRT_NONSTDC_NO_DEPRECATE)
1701
1715
        elif test $_CC_MAJOR_VERSION -ge 15; then
1702
1716
           _USE_DYNAMICBASE=1    
 
1717
           AC_DEFINE(_CRT_SECURE_NO_WARNINGS)
 
1718
           AC_DEFINE(_CRT_NONSTDC_NO_WARNINGS)
1703
1719
        fi
1704
1720
 
1705
1721
        if test -n "$_USE_DYNAMICBASE"; then
2511
2527
dnl Check options
2512
2528
dnl ========================================================
2513
2529
 
 
2530
dnl ======================================================
 
2531
dnl = Enable compiling with ccache
 
2532
dnl ======================================================
 
2533
AC_ARG_WITH(ccache,
 
2534
[  --with-ccache[=path/to/ccache]
 
2535
                          Enable compiling with ccache],
 
2536
    CCACHE=$withval, CCACHE="no")
 
2537
 
 
2538
if test "$CCACHE" != "no"; then
 
2539
    if test -n "$CCACHE"; then
 
2540
        if test "$CCACHE" = "yes"; then
 
2541
            CCACHE=
 
2542
        else
 
2543
            if test ! -e "$CCACHE"; then
 
2544
                AC_MSG_ERROR([$CCACHE not found])
 
2545
            fi
 
2546
        fi
 
2547
    fi
 
2548
    AC_PATH_PROGS(CCACHE, $CCACHE ccache)
 
2549
    if test -z "$CCACHE" -o "$CCACHE" = ":"; then
 
2550
        AC_MSG_ERROR([ccache not found])
 
2551
    elif test -x "$CCACHE"; then
 
2552
        CC="$CCACHE $CC"
 
2553
        CXX="$CCACHE $CXX"
 
2554
    else
 
2555
        AC_MSG_ERROR([$CCACHE is not executable])
 
2556
    fi
 
2557
fi
 
2558
 
2514
2559
dnl ========================================================
2515
2560
dnl =
2516
2561
dnl = --enable-strip
2674
2719
            USE_IPV6=
2675
2720
      fi])
2676
2721
 
2677
 
 
2678
 
AC_ARG_ENABLE(boehm,
2679
 
    [  --enable-boehm          Enable the Boehm Garbage Collector],
2680
 
    [ if test "$enableval" = "yes"; then
2681
 
        AC_DEFINE(GC_LEAK_DETECTOR)
2682
 
        GC_LEAK_DETECTOR=1
2683
 
    fi])
2684
 
 
2685
2722
if test -n "$USE_PTHREADS"; then
2686
2723
   dnl See if -pthread is supported.
2687
2724
   rm -f conftest*
2954
2991
 
2955
2992
if test -n "$_WRAP_MALLOC"; then
2956
2993
    if test "$GNU_CC"; then
2957
 
       WRAP_MALLOC_CFLAGS="${LDFLAGS} -Wl,--wrap -Wl,malloc -Wl,--wrap -Wl,calloc -Wl,--wrap -Wl,valloc -Wl,--wrap -Wl,free -Wl,--wrap -Wl,realloc -Wl,--wrap -Wl,memalign -Wl,--wrap -Wl,__builtin_new -Wl,--wrap -Wl,__builtin_vec_new -Wl,--wrap -Wl,__builtin_delete -Wl,--wrap -Wl,__builtin_vec_delete -Wl,--wrap -Wl,PR_Free -Wl,--wrap -Wl,PR_Malloc -Wl,--wrap -Wl,PR_Calloc -Wl,--wrap -Wl,PR_Realloc -Wl,--wrap -Wl,strdup -Wl,--wrap -Wl,strndup -Wl,--wrap -Wl,posix_memalign"
 
2994
       WRAP_MALLOC_CFLAGS="${LDFLAGS} ${WRAP_MALLOC_CFLAGS} -Wl,--wrap -Wl,malloc -Wl,--wrap -Wl,calloc -Wl,--wrap -Wl,valloc -Wl,--wrap -Wl,free -Wl,--wrap -Wl,realloc -Wl,--wrap -Wl,memalign -Wl,--wrap -Wl,__builtin_new -Wl,--wrap -Wl,__builtin_vec_new -Wl,--wrap -Wl,__builtin_delete -Wl,--wrap -Wl,__builtin_vec_delete -Wl,--wrap -Wl,PR_Free -Wl,--wrap -Wl,PR_Malloc -Wl,--wrap -Wl,PR_Calloc -Wl,--wrap -Wl,PR_Realloc -Wl,--wrap -Wl,strdup -Wl,--wrap -Wl,strndup -Wl,--wrap -Wl,posix_memalign"
2958
2995
       DSO_LDOPTS="$DSO_LDOPTS $WRAP_MALLOC_CFLAGS"
2959
2996
    else
2960
2997
       AC_MSG_ERROR([--enable-wrap-malloc is not supported for non-GNU toolchains])
2997
3034
AC_SUBST(USE_N32)
2998
3035
AC_SUBST(USE_64)
2999
3036
AC_SUBST(OBJECT_MODE)
3000
 
AC_SUBST(GC_LEAK_DETECTOR)
3001
3037
AC_SUBST(ENABLE_STRIP)
3002
3038
 
3003
3039
AC_SUBST(USE_PTHREADS)