~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to libdb/dist/aclocal/sosuffix.ac

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id$
2
 
# Determine shared object suffixes.
3
 
#
4
 
# Our method is to use the libtool variable $library_names_spec,
5
 
# set by using AC_PROG_LIBTOOL.  This variable is a snippet of shell
6
 
# defined in terms of $versuffix, $release, $libname, $module and $jnimodule.
7
 
# We want to eval it and grab the suffix used for shared objects.
8
 
# By setting $module and $jnimodule to yes/no, we obtain the suffixes
9
 
# used to create dlloadable, or java loadable modules.
10
 
# On many (*nix) systems, these all evaluate to .so, but there
11
 
# are some notable exceptions.
12
 
 
13
 
# This macro is used internally to discover the suffix for the current
14
 
# settings of $module and $jnimodule.  The result is stored in $_SOSUFFIX.
15
 
AC_DEFUN(_SOSUFFIX_INTERNAL, [
16
 
        versuffix=""
17
 
        release=""
18
 
        libname=libfoo
19
 
        eval library_names=\"$library_names_spec\"
20
 
        _SOSUFFIX=`echo "$library_names" | sed -e 's/.*\.\([[a-zA-Z0-9_]]*\).*/\1/'`
21
 
        if test "$_SOSUFFIX" = '' ; then
22
 
                _SOSUFFIX=so
23
 
                if test "$enable_shared" = "yes" && test "$_SOSUFFIX_MESSAGE" = ""; then
24
 
                        _SOSUFFIX_MESSAGE=yes
25
 
                        AC_MSG_WARN([libtool may not know about this architecture.])
26
 
                        AC_MSG_WARN([assuming .$_SUFFIX suffix for dynamic libraries.])
27
 
                fi
28
 
        fi
29
 
])
30
 
 
31
 
# SOSUFFIX_CONFIG will set the variable SOSUFFIX to be the
32
 
# shared library extension used for general linking, not dlopen.
33
 
AC_DEFUN(SOSUFFIX_CONFIG, [
34
 
        AC_MSG_CHECKING([SOSUFFIX from libtool])
35
 
        module=no
36
 
        jnimodule=no
37
 
        _SOSUFFIX_INTERNAL
38
 
        SOSUFFIX=$_SOSUFFIX
39
 
        AC_MSG_RESULT($SOSUFFIX)
40
 
        AC_SUBST(SOSUFFIX)
41
 
])
42
 
 
43
 
# MODSUFFIX_CONFIG will set the variable MODSUFFIX to be the
44
 
# shared library extension used for dlopen'ed modules.
45
 
# To discover this, we set $module, simulating libtool's -module option.
46
 
AC_DEFUN(MODSUFFIX_CONFIG, [
47
 
        AC_MSG_CHECKING([MODSUFFIX from libtool])
48
 
        module=yes
49
 
        jnimodule=no
50
 
        _SOSUFFIX_INTERNAL
51
 
        MODSUFFIX=$_SOSUFFIX
52
 
        AC_MSG_RESULT($MODSUFFIX)
53
 
        AC_SUBST(MODSUFFIX)
54
 
])
55
 
 
56
 
# JMODSUFFIX_CONFIG will set the variable JMODSUFFIX to be the
57
 
# shared library extension used JNI modules opened by Java.
58
 
# To discover this, we set $jnimodule, simulating libtool's -jnimodule option.
59
 
# -jnimodule is currently a Sleepycat local extension to libtool.
60
 
AC_DEFUN(JMODSUFFIX_CONFIG, [
61
 
        AC_MSG_CHECKING([JMODSUFFIX from libtool])
62
 
        module=yes
63
 
        jnimodule=yes
64
 
        _SOSUFFIX_INTERNAL
65
 
        JMODSUFFIX=$_SOSUFFIX
66
 
        AC_MSG_RESULT($JMODSUFFIX)
67
 
        AC_SUBST(JMODSUFFIX)
68
 
])
69