File: gnome-orbit-check.m4

package info (click to toggle)
gnome-objc 0.27.cvs.980926-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,252 kB
  • ctags: 364
  • sloc: objc: 8,683; sh: 4,866; ansic: 2,090; makefile: 591; sed: 93
file content (25 lines) | stat: -rw-r--r-- 587 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
dnl
dnl GNOME_ORBIT_HOOK (script-if-orbit-found, failflat)
dnl
dnl if failflag is "failure" it aborts if orbit is not found.
dnl

AC_DEFUN([GNOME_ORBIT_HOOK],[
	AC_PATH_PROG(ORBIT_CONFIG,orbit-config,no)
	if test x$ORBIT_CONFIG = xno; then
	    	if test x$2 = failure; then	
			AC_MSG_ERROR(Could not find orbit-config)
	    	fi
	else
		$1
		ORBIT_CFLAGS=`orbit-config --cflags client server`
		ORBIT_LIBS=`orbit-config --libs client server`
		AC_SUBST(ORBIT_CFLAGS)
		AC_SUBST(ORBIT_LIBS)
		AC_DEFINE(HAVE_ORBIT)
	fi
])

AC_DEFUN([GNOME_ORBIT_CHECK], [
	GNOME_ORBIT_HOOK([],failure)
])