File: configure.in

package info (click to toggle)
fookb 2.21-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 360 kB
  • ctags: 49
  • sloc: ansic: 567; makefile: 85; sh: 44
file content (59 lines) | stat: -rw-r--r-- 1,429 bytes parent folder | download
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
dnl Process this file with autoconf to produce a configure script.
dnl (c) 2001 Alexey Vyskubov <alexey@pepper.spb.ru>

AC_INIT(fookb.c)

dnl AC_CONFIG_HEADER(foofig.h)

dnl Checks for programs.
AC_PROG_CC

dnl Checks for libraries.

AC_PATH_XTRA

AC_CHECK_LIB(X11, XkbOpenDisplay,, echo "Fatal error! No libX11 found!"; exit 1, $X_LIBS)

AC_CHECK_LIB(Xpm, XpmReadFileToImage,, echo "Fatal error! No libXpm found!"; exit 1, $X_LIBS)

AC_ARG_ENABLE(libproplist,
	
  --enable-libproplist  Try to compile libproplist-enabled version,

if test $enable_libproplist = yes ; then
	
	AC_CHECK_LIB(PropList, PLGetProplistWithPath,,
	echo "No libPropList found. You should use X resources for customizing fookb.", $X_LIBS)
	
	AC_CHECK_HEADERS(proplist.h,,
	echo "No proplist.h found -- cannot compile libPropList version. You should use X resources for customizing fookb.")

fi

,

AC_CHECK_LIB(PropList, PLGetProplistWithPath,,
echo "No libPropList found. You should use X resources for customizing fookb.", $X_LIBS)

AC_CHECK_HEADERS(proplist.h,,
echo "No proplist.h found -- cannot compile libPropList version. You should use X resources for customizing fookb.")

)

AC_CHECK_PROG(HAVE_WMAKER, wmaker, yes, no)

AC_ARG_ENABLE(wmaker,
  --enable-wmaker  Create windowmaker dockable application,

if test $enable_wmaker = yes ; then
	AC_DEFINE(WMAKER)
fi

,

if test $HAVE_WMAKER = yes ; then
	AC_DEFINE(WMAKER)
fi
)

AC_OUTPUT(Makefile)