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

« back to all changes in this revision

Viewing changes to gettext-tools/examples/hello-c-gnome/m4/gnome-orbit-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_ORBIT_HOOK (script-if-orbit-found, failflag)
 
3
dnl
 
4
dnl if failflag is "failure" it aborts if orbit is not found.
 
5
dnl
 
6
 
 
7
AC_DEFUN([GNOME_ORBIT_HOOK],[
 
8
        AC_PATH_PROG(ORBIT_CONFIG,orbit-config,no)
 
9
        AC_PATH_PROG(ORBIT_IDL,orbit-idl,no)
 
10
        AC_CACHE_CHECK([for working ORBit environment],gnome_cv_orbit_found,[
 
11
                if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
 
12
                        gnome_cv_orbit_found=no
 
13
                else
 
14
                        gnome_cv_orbit_found=yes
 
15
                fi
 
16
        ])
 
17
        AM_CONDITIONAL(HAVE_ORBIT, test x$gnome_cv_orbit_found = xyes)
 
18
        if test x$gnome_cv_orbit_found = xyes; then
 
19
                $1
 
20
                ORBIT_CFLAGS=`orbit-config --cflags client server`
 
21
                ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
 
22
                AC_SUBST(ORBIT_CFLAGS)
 
23
                AC_SUBST(ORBIT_LIBS)
 
24
        else
 
25
                if test x$2 = xfailure; then
 
26
                        AC_MSG_ERROR(ORBit not installed or installation problem)
 
27
                fi
 
28
        fi
 
29
])
 
30
 
 
31
AC_DEFUN([GNOME_ORBIT_CHECK], [
 
32
        GNOME_ORBIT_HOOK([],failure)
 
33
])