blob: b84296e897e6306efcd17824156c90b5d3867b08 (
plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.53)
AC_INIT([mb-applet-volume], 0.1, [mallum@handhelds.org])
AC_CONFIG_SRCDIR([volume-applet.c])
AM_INIT_AUTOMAKE()
AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)
# Checks for programs.
AC_PROG_CC
PKG_CHECK_MODULES(APPLET, [gtk+-2.0 libmb])
if test "x$GCC" = "xyes"; then
GCC_WARNINGS="-Wall -fno-strict-aliasing"
XLIBS_CFLAGS="$GCC_WARNINGS"
fi
AC_SUBST(APPLET_CFLAGS)
AC_SUBST(APPLET_LIBS)
# Checks for header files.
AC_HEADER_STDC
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_PID_T
MIXER_LIBS=""
P_MIXER=""
AC_CHECK_HEADERS(linux/soundcard.h, [ P_MIXER=yes ], [
AC_CHECK_HEADERS(soundcard.h, [MIXER_LIBS="-lossaudio"], [ P_MIXER=no ]) ] )
if test "$P_MIXER" != "yes"; then
AC_MSG_ERROR([Could not find suitable Soundcard libs.])
fi
AC_SUBST(MIXER_LIBS)
# Checks for library functions.
AC_OUTPUT([Makefile])
|