wmbattery: Bump to version 2.46.
[dockapps.git] / wmbattery / configure.ac
blob5c5a8fc0a2efad68d0dd8255606cfea96f817b0a
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(wmbattery.c, 2.46)
3 AC_CONFIG_HEADER(config.h)
5 AC_CONFIG_AUX_DIR(autoconf)
7 dnl Checks for the apm device other than /proc/apm.
8 AC_CHECK_FILES(/dev/apm)
10 dnl Checks for programs.
11 AC_PROG_CC
12 AC_PROG_INSTALL
14 dnl Locate X11.
15 AC_PATH_X
16 if test "x${no_x}" = "xyes"; then
17    AC_MSG_ERROR(Can't find X windows include files and libraries)
19 if test "x${x_includes}" != "x"; then
20    CPPFLAGS="$CPPFLAGS -I`echo ${x_includes}`"
22 if test "x${x_libraries}" != "x"; then
23    LIBS="$LIBS -L`echo ${x_libraries}`"
26 dnl Checks for libraries.
27 AC_CHECK_LIB(X11, XOpenDisplay)
28 AC_CHECK_LIB(Xext, XShapeCombineMask)
29 AC_CHECK_LIB(Xpm, XpmReadFileToPixmap)
30 AC_CHECK_LIB(apm, apm_read)
32 dnl Checks for header files.
33 AC_HEADER_STDC
34 AC_CHECK_HEADERS(X11/xpm.h)
35 AC_CHECK_HEADERS(X11/extensions/shape.h)
36 AC_CHECK_HEADERS(getopt.h)
37 AC_CHECK_HEADERS(apm.h)
38 dnl FreeBSD needs apm_bios.h
39 AC_CHECK_HEADERS(machine/apm_bios.h)
40 dnl NetBSD and OpenBSD need apmvar.h
41 AC_CHECK_HEADERS(i386/apmvar.h)
43 dnl Checks for typedefs, structures, and compiler characteristics.
44 AC_C_CONST
46 dnl Checks for library functions.
47 AC_PROG_GCC_TRADITIONAL
48 AC_FUNC_VPRINTF
49 AC_CHECK_FUNCS(strdup)
51 AC_OUTPUT(makeinfo:autoconf/makeinfo.in)