~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to gettext-tools/examples/hello-c++-gnome/m4/gnome-gnorba-check.m4

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl
 
2
dnl GNOME_GNORBA_HOOK (script-if-gnorba-found, failflag)
 
3
dnl
 
4
dnl if failflag is "failure" it aborts if gnorba is not found.
 
5
dnl
 
6
 
 
7
AC_DEFUN([GNOME_GNORBA_HOOK],[
 
8
        GNOME_ORBIT_HOOK([],$2)
 
9
        AC_CACHE_CHECK([for gnorba libraries],gnome_cv_gnorba_found,[
 
10
                gnome_cv_gnorba_found=no
 
11
                if test x$gnome_cv_orbit_found = xyes; then
 
12
                        GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
 
13
                        GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
 
14
                        if test -n "$GNORBA_LIBS"; then
 
15
                                gnome_cv_gnorba_found=yes
 
16
                        fi
 
17
                fi
 
18
        ])
 
19
        AM_CONDITIONAL(HAVE_GNORBA, test x$gnome_cv_gnorba_found = xyes)
 
20
        if test x$gnome_cv_orbit_found = xyes; then
 
21
                $1
 
22
                GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
 
23
                GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
 
24
                AC_SUBST(GNORBA_CFLAGS)
 
25
                AC_SUBST(GNORBA_LIBS)
 
26
        else
 
27
                if test x$2 = xfailure; then
 
28
                        AC_MSG_ERROR(gnorba library not installed or installation problem)
 
29
                fi
 
30
        fi
 
31
])
 
32
 
 
33
AC_DEFUN([GNOME_GNORBA_CHECK], [
 
34
        GNOME_GNORBA_HOOK([],failure)
 
35
])