~ubuntu-branches/debian/experimental/libeatmydata/experimental

« back to all changes in this revision

Viewing changes to m4/pandora_optimize.m4

  • Committer: Package Import Robot
  • Author(s): Mattia Rizzolo
  • Date: 2014-10-03 20:48:40 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20141003204840-xyxqm6u7d2l72c3x
Tags: 82-1
* New upstream release (Closes: #700649).
  + fixes a issue with faketime (Closes: #747078).
* Add Multi-Arch support (Closes: #694314, LP: #1275932):
  + Upstream now has a basic multiarch support on its own, update packaging.
  + debian/control: split package to libeatmydata1 being Multi-Arch:same.
  + debian/rules: move shared library to /usr/lib/<triplet>/libeatmydata.
* debian/{bin,lib}: drop, included upstream.
* debian/control:
  + [19c31a7] Bump Standards-Version to 3.9.6. No changes required.
  + Bump debhelper version to 9.
  + Add autotools-dev and strace to Build-Depends.
  + [687e4b8] Add dpkg-dev to depends of eatmydata
  + [8083867] wrap-and sort maintenance.
  + [64b0f93] Add myself as uploader.
  + [e74b025] Add Breaks/Replaces relations to libeatmydata1.
  + [d46838e,512aabc] Update Vcs-* links to collab-maint.
* debian/copyright:
  + Update accordingly the new upstream release.
  + Update to the debian-copyright format 1.0.
  + Update the homepage to launchpad.net/libeatmydata.
  + Add myself to copyright owners.
* debian/compat: bump to 9.
* debian/rules:
  + use dh with autotools_dev addon.
  + [71e3563] remove the override_dh_makeshilibs.
* [db986b8] debian/libeatmydata1.lintian-overrides: add
  non-dev-pkg-with-shlib-symlink.
* debian/patches:
  + executable-not-elf-or-script.patch. add to fix omonim
    lintian warning.
  + [6eba479,bce9c1d] multiarch-issue: add to fix a issue with multiarch (a
    script refers to a fixed position, non multiarch-compatible).
  + bug-702711.patch: update headers. Thanks Petter for the NMU.
* [ad63684] debian/eatmydata.install:
  + Drop eatmydata.sh, now installed in libeatmydata1.
  + Change source to debian/tmp.
* debian/libmydata1.install: add, it installs all /usr/lib/* stuff.
* [9908ebb] debian/eatmydata.manpages: add to install the manpage.
* debian/watch, debian/upstream/signing-key.asc
  + [42f1561] add.
  + [86912da] fix debian-watch-may-check-gpg-signature lintian tag.
* debian/README.debian: drop, it's useless.

* Upload sponsored by Petter Reinholdtsen.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
 
2
dnl This file is free software; Sun Microsystems, Inc.
 
3
dnl gives unlimited permission to copy and/or distribute it,
 
4
dnl with or without modifications, as long as this notice is preserved.
 
5
 
 
6
AC_DEFUN([PANDORA_OPTIMIZE],[
 
7
  dnl Build optimized or debug version ?
 
8
  dnl First check for gcc and g++
 
9
  AS_IF([test "$GCC" = "yes" -a "$INTELCC" = "no"],[
 
10
 
 
11
    dnl The following is required for portable results of floating point 
 
12
    dnl calculations on PowerPC. The same must also be done for IA-64, but 
 
13
    dnl this options is missing in the IA-64 gcc backend.
 
14
    case "$target_cpu" in
 
15
      *ppc* | *powerpc*)
 
16
        AM_CFLAGS="-mno-fused-madd ${AM_CFLAGS}"
 
17
        AM_CXXFLAGS="-mno-fused-madd ${AM_CXXFLAGS}"
 
18
      ;;
 
19
    esac
 
20
 
 
21
    dnl Once we can use a modern autoconf, we can replace the std=gnu99 here
 
22
    dnl with using AC_CC_STD_C99 above
 
23
    CC="${CC} -std=gnu99"
 
24
 
 
25
    AM_CPPFLAGS="-g ${AM_CPPFLAGS}"
 
26
 
 
27
    DEBUG_CFLAGS="-O0"
 
28
    DEBUG_CXXFLAGS="-O0"
 
29
 
 
30
    OPTIMIZE_CFLAGS="-O2"
 
31
    OPTIMIZE_CXXFLAGS="-O2"
 
32
  ])
 
33
  AS_IF([test "$INTELCC" = "yes"],[
 
34
    AM_CPPFLAGS="-g ${AM_CPPFLAGS}"
 
35
 
 
36
    DEBUG_CFLAGS="-O0"
 
37
    DEBUG_CXXFLAGS="-O0"
 
38
 
 
39
    OPTIMIZE_CFLAGS="-xHOST -O2 -no-prec-div -static"
 
40
    OPTIMIZE_CXXFLAGS="${OPTIMIZE_CFLAGS}"
 
41
 
 
42
  ])
 
43
  AS_IF([test "$SUNCC" = "yes"],[
 
44
    dnl Once we can use a modern autoconf, we can replace the -xc99=all here
 
45
    dnl with using AC_CC_STD_C99 above
 
46
    CC="${CC} -xc99=all"
 
47
    CXX="${CXX} -xlang=c99"
 
48
 
 
49
    AM_CFLAGS="-g -mt -xstrconst -Xa ${AM_CFLAGS}"
 
50
    AM_CXXFLAGS="-mt -compat=5 -library=stlport4 -library=Crun -template=no%extdef ${AM_CXXFLAGS}"
 
51
 
 
52
    DEBUG_CXXFLAGS="-g"
 
53
 
 
54
    dnl TODO: Make a test for -xO4 usability here
 
55
    OPTIMIZE_FLAGS="-xO3 -xlibmil -xdepend -xbuiltin"
 
56
    OPTIMIZE_CFLAGS="${OPTIMIZE_FLAGS}"
 
57
    OPTIMIZE_CXXFLAGS="-g0 ${OPTIMIZE_FLAGS}"
 
58
 
 
59
  ])
 
60
 
 
61
  AC_ARG_WITH([debug],
 
62
    [AS_HELP_STRING([--with-debug],
 
63
       [Add debug code/turns off optimizations (yes|no) @<:@default=no@:>@])],
 
64
    [with_debug=$withval],
 
65
    [with_debug=no])
 
66
  AS_IF([test "$with_debug" = "yes"],[
 
67
    # Debugging. No optimization.
 
68
    AM_CFLAGS="${AM_CFLAGS} ${DEBUG_CFLAGS} -DDEBUG"
 
69
    AM_CXXFLAGS="${AM_CXXFLAGS} ${DEBUG_CXXFLAGS} -DDEBUG"
 
70
  ],[
 
71
    # Optimized version. No debug
 
72
    AM_CFLAGS="${AM_CFLAGS} ${OPTIMIZE_CFLAGS}"
 
73
    AM_CXXFLAGS="${AM_CXXFLAGS} ${OPTIMIZE_CXXFLAGS}"
 
74
  ])
 
75
])