1 dnl Process this file with autoconf to produce a configure script.
3 dnl (c) 1998-2004 Alexey Vyskubov <alexey@mawhrin.net>
5 dnl vim:ts=8:sts=2:shiftwidth=2:expandtab:foldmethod=marker
10 dnl Checks for programs.
17 dnl Checks for libraries. {{{1
19 dnl Basic checks: X compilation settings and essential libraries {{{2
22 dnl Adds C compiler flags to X_CFLAGS and X linker flags to X_CFLAGS
23 dnl Extra libraries will be in X_EXTRA_LIBS
24 dnl Libraries wich should be linked before -lX11 will be in X_PRE_LIBS
25 dnl We do not check X_DISPLAY_MISSING because we need to check for
26 dnl XkbOpenDisplay in libX11 anyway.
32 [AC_MSG_ERROR([[Fatal: no libX11 or no XkbOpenDisplay() in libX11]])],
40 [AC_MSG_ERROR([[Fatal: no libXpm found!]])],
46 dnl --enable/disable libWUtil (property lists handling) {{{2
50 [ --enable-libWUtil try to use property lists handling in libWUtil],
52 if test $enable_libWUtil = yes ; then
54 dnl enabled: libWUtil and WINGs/WUtil.h check {{{3
57 [WMReadPropListFromFile],
59 dnl library is found; let's check header file {{{4
64 AC_MSG_WARN([[No WINGs/WUtil.h found -- cannot compile version with property lists support. You should use X resources for customizing fookb; or, if you have libproplist, use older version of fookb]])
71 AC_MSG_WARN([[No libWUtil found or old libWUtil version. You should use X resources for setting up fookb. If you have libproplist, use older version of fookb]])
77 dnl That's EVEN BETTER than LISP!!!
80 dnl if --disable-libWUtil is given we just do almost nothing
85 dnl neither --enable nor --disable-libWUtil is not given.
86 dnl By default we will try to search for libWUtil {{{3
89 [WMReadPropListFromFile],
91 dnl library is found; let's check header file {{{4
96 AC_MSG_WARN([[No WINGs/WUtil.h found -- cannot compile version with property lists support. You should use X resources for customizing fookb; or, if you have libproplist, use older version of fookb]])
103 AC_MSG_WARN([[No libWUtil found or old libWUtil version. You should use X resources for setting up fookb. If you have libproplist, use older version of fookb]])
119 [ --enable-wmaker create windowmaker dockable application],
121 if test $enable_wmaker = yes ; then
126 AC_CHECK_PROG(HAVE_WMAKER, wmaker, yes, no)
128 if test $HAVE_WMAKER = yes ; then