File: libxosd.m4

package info (click to toggle)
xosd 2.2.14-2.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 2,320 kB
  • ctags: 409
  • sloc: sh: 10,748; ansic: 3,875; makefile: 77
file content (30 lines) | stat: -rw-r--r-- 830 bytes parent folder | download | duplicates (2)
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
26
27
28
29
30
# Oron Peled (Sun Jun 30 2002)
# Taken from libglade.m4

# a macro to get the libs/cflags for libxosd

dnl AM_PATH_LIBXOSD([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
dnl Test to see if libxosd is installed, and define LIBXOSD_CFLAGS, LIBXOSDLIBS
dnl
AC_DEFUN([AM_PATH_LIBXOSD],
[dnl
dnl Get the cflags and libraries from the xosd-config script
dnl
AC_ARG_WITH(xosd-config,
AC_HELP_STRING([--with-xosd-config=LIBXOSD_CONFIG],[Location of xosd-config]),
LIBXOSD_CONFIG="$withval")

AC_PATH_PROG(LIBXOSD_CONFIG, xosd-config, no)
AC_MSG_CHECKING(for libxosd)
if test "$LIBXOSD_CONFIG" = "no"; then
  AC_MSG_RESULT(no)
  ifelse([$2], , :, [$2])
else
  LIBXOSD_CFLAGS=`$LIBXOSD_CONFIG --cflags`
  LIBXOSD_LIBS=`$LIBXOSD_CONFIG --libs`
  AC_MSG_RESULT(yes)
  ifelse([$1], , :, [$1])
fi
AC_SUBST(LIBXOSD_CFLAGS)
AC_SUBST(LIBXOSD_LIBS)
])