wmbattery: use PKG_CHECK_MODULES for X libraries and headers.
[dockapps.git] / wmacpiload / acinclude.m4
blob94f4aeba7256fcc9fad505678123688b20ad0d9a
1 #!/bin/sh
3 # $Id: acinclude.m4,v 1.3 1999/07/24 22:01:51 daeron Exp $
5 dnl
6 dnl DA_CHECK_LIB(NAME, FUNCTION, EXTRALIBS)
7 dnl
8 AC_DEFUN(DA_CHECK_LIB,
10 LDFLAGS_old="$LDFLAGS"
11 LDFLAGS="$LDFLAGS $lib_search_path"
12 AC_CHECK_LIB([$1],[$2],yes=yes,no=no,[$3])
13 LDFLAGS="$LDFLAGS_old"
17 dnl
18 dnl DA_CHECK_HEADER(NAME)
19 dnl
20 AC_DEFUN(DA_CHECK_HEADER,
22 CPPFLAGS_old="$CPPFLAGS"
23 CPPFLAGS="$CPPFLAGS $inc_search_path"
24 AC_CHECK_HEADER([$1])
25 CPPFLAGS="$CPPFLAGS_old"