~ubuntu-branches/ubuntu/precise/cheese/precise-proposed

« back to all changes in this revision

Viewing changes to m4/intlmacosx.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher, Jeremy Bicha, Robert Ancell
  • Date: 2011-06-10 11:45:37 UTC
  • mfrom: (1.2.24 upstream)
  • Revision ID: james.westby@ubuntu.com-20110610114537-p9e4zl8m0ehf2b5a
Tags: 3.0.0-0ubuntu1
* Upload to oneiric

[ Jeremy Bicha ]
* Depend on gnome-video-effects since clicking Effects when it is
  not installed results in a segmentation fault.

[ Robert Ancell]
* New upstream version
* debian/control:
  - Use standards version 3.9.1
  - Add build-depends on dh-autoreconf, valac, libclutter-1.0-dev,
    libclutter-gtk-1.0-dev, libclutter-gst-dev, libmx-dev,
    gnome-video-effects-dev, libgee-dev, gnome-common, gobject-introspection, 
    libgirepository1.0-dev, gir1.2-freedesktop, gir1.2-glib-2.0, 
    gir1.2-gstreamer-0.10, gir1.2-clutter-1.0, gir1.2-gdkpixbuf-2.0
  - Drop build-depends on libgconf2-dev, libdbus-1-dev, libdbus-glib-1-dev,
  - Bump build-depends on libglib2.0-dev, libgtk-3-dev,
    libgnome-desktop-3-dev, libgstreamer0.10-dev,
    libgstreamer-plugins-base0.10-dev, libcairo2-dev, libpango1.0-dev,
    librsvg2-dev, libcanberra-gtk3-dev
  - Add new gir1.2-cheese-3.0 package
  - libcheese-gtk18 -> libcheese-gtk19
* debian/cheese.install:
* debian/cheese-common.install:
* debian/libcheese-gtk-dev.install
  - Update for new/changed files
* debian/gir1.2-cheese-3.0.install:
  - Install typelib
* debian/patches/fix-linking.patch:
  - Fix linking issues
* debian/patches/no-gnu-gettext.patch:
  - Don't use both AM_GNU_GETTEXT and IT_PROG_INTLTOOL

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# intlmacosx.m4 serial 1 (gettext-0.17)
 
2
dnl Copyright (C) 2004-2007 Free Software Foundation, Inc.
 
3
dnl This file is free software; the Free Software Foundation
 
4
dnl gives unlimited permission to copy and/or distribute it,
 
5
dnl with or without modifications, as long as this notice is preserved.
 
6
dnl
 
7
dnl This file can can be used in projects which are not available under
 
8
dnl the GNU General Public License or the GNU Library General Public
 
9
dnl License but which still want to provide support for the GNU gettext
 
10
dnl functionality.
 
11
dnl Please note that the actual code of the GNU gettext library is covered
 
12
dnl by the GNU Library General Public License, and the rest of the GNU
 
13
dnl gettext package package is covered by the GNU General Public License.
 
14
dnl They are *not* in the public domain.
 
15
 
 
16
dnl Checks for special options needed on MacOS X.
 
17
dnl Defines INTL_MACOSX_LIBS.
 
18
AC_DEFUN([gt_INTL_MACOSX],
 
19
[
 
20
  dnl Check for API introduced in MacOS X 10.2.
 
21
  AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
 
22
    gt_cv_func_CFPreferencesCopyAppValue,
 
23
    [gt_save_LIBS="$LIBS"
 
24
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
25
     AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
 
26
       [CFPreferencesCopyAppValue(NULL, NULL)],
 
27
       [gt_cv_func_CFPreferencesCopyAppValue=yes],
 
28
       [gt_cv_func_CFPreferencesCopyAppValue=no])
 
29
     LIBS="$gt_save_LIBS"])
 
30
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
31
    AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
 
32
      [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
 
33
  fi
 
34
  dnl Check for API introduced in MacOS X 10.3.
 
35
  AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
 
36
    [gt_save_LIBS="$LIBS"
 
37
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
38
     AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
 
39
       [gt_cv_func_CFLocaleCopyCurrent=yes],
 
40
       [gt_cv_func_CFLocaleCopyCurrent=no])
 
41
     LIBS="$gt_save_LIBS"])
 
42
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
43
    AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
 
44
      [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
 
45
  fi
 
46
  INTL_MACOSX_LIBS=
 
47
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
48
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
49
  fi
 
50
  AC_SUBST([INTL_MACOSX_LIBS])
 
51
])