~bcurtiswx/ubuntu/precise/empathy/3.4.2.1-0ubuntu1

« back to all changes in this revision

Viewing changes to telepathy-yell/m4/linker.m4

  • Committer: Package Import Robot
  • Author(s): Ken VanDine
  • Date: 2012-03-05 15:14:36 UTC
  • mfrom: (1.1.87)
  • Revision ID: package-import@ubuntu.com-20120305151436-utnrdabb2ppp3kw1
Tags: 3.3.90.2-0ubuntu1
* New upstream release
* debian/control
  - added yelp-tools and libfarstream-0.1-dev build depends
  - bump build depends on libtelepathy-farstream-dev, and 
    libtelepathy-glib-dev
  - bumpded depends for telepathy-mission-control-5
  - removed telepathy-butterfly recommends, mission-control-5 ensures 
    telepathy-haze handles MSN now.
* debian/rules
  - enable empathy-av 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# linker.m4 - autoconf macros for linker settings
2
 
#
3
 
# Copyright © 2005 Scott James Remnant <scott@netsplit.com>.
4
 
#
5
 
# Permission is hereby granted, free of charge, to any person obtaining
6
 
# a copy of this software and associated documentation files (the
7
 
# "Software"), to deal in the Software without restriction, including
8
 
# without limitation the rights to use, copy, modify, merge, publish,
9
 
# distribute, sublicense, and/or sell copies of the Software, and to
10
 
# permit persons to whom the Software is furnished to do so, subject to
11
 
# the following conditions:
12
 
13
 
# The above copyright notice and this permission notice shall be
14
 
# included in all copies or substantial portions of the Software.
15
 
16
 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
 
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
 
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
 
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
20
 
# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
21
 
# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
 
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
 
 
24
 
 
25
 
# LINKER_OPTIMISATIONS
26
 
# --------------------
27
 
# Add configure option to disable linker optimisations.
28
 
AC_DEFUN([LINKER_OPTIMISATIONS],
29
 
[AC_ARG_ENABLE(linker-optimisations,
30
 
        AS_HELP_STRING([--disable-linker-optimisations],
31
 
                       [Disable linker optimisations]),
32
 
[if test "x$enable_linker_optimisations" = "xno"; then
33
 
        [LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O[0-9]*\b//g"`]
34
 
else
35
 
        [LDFLAGS="$LDFLAGS -Wl,-O1"]
36
 
fi], [LDFLAGS="$LDFLAGS -Wl,-O1"])dnl
37
 
])# LINKER_OPTIMISATIONS
38
 
 
39
 
# LINKER_VERSION_SCRIPT
40
 
# --------------------------
41
 
# Detect whether the linker supports version scripts
42
 
AC_DEFUN([LINKER_VERSION_SCRIPT],
43
 
[AC_MSG_CHECKING([for linker version script argument])
44
 
for aranha_try_arg in "-Wl,--version-script"; do
45
 
        aranha_old_libs="$LIBS"
46
 
        LIBS="$LIBS $aranha_try_arg=conftest.ver"
47
 
 
48
 
        cat >conftest.ver <<EOF
49
 
TEST {
50
 
        global:
51
 
                *;
52
 
};
53
 
EOF
54
 
 
55
 
        AC_TRY_LINK([], [], [
56
 
                rm -f conftest.ver
57
 
                LIBS="$aranha_old_libs"
58
 
 
59
 
                AC_MSG_RESULT([$aranha_try_arg])
60
 
                AC_SUBST(VERSION_SCRIPT_ARG, [$aranha_try_arg])
61
 
                break
62
 
        ])
63
 
 
64
 
        rm -f conftest.ver
65
 
        LIBS="$aranha_old_libs"
66
 
done
67
 
 
68
 
AM_CONDITIONAL(HAVE_VERSION_SCRIPT_ARG, [test -n "$VERSION_SCRIPT_ARG"])
69
 
if test -z "$VERSION_SCRIPT_ARG"; then
70
 
        AC_MSG_RESULT([unknown])
71
 
fi
72
 
])dnl
73
 
])# LINKER_VERSION_SCRIPT