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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
AC_INIT(src/yelp-main.c)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(yelp, 2.4.2)
AC_PROG_INTLTOOL
AM_MAINTAINER_MODE
AC_PROG_CC
AC_ISC_POSIX
AC_HEADER_STDC
AM_PROG_LIBTOOL
AM_PATH_ORBIT2
AM_PATH_GLIB_2_0
dnl NOTE : it appears that some systems do not like it when you use line
dnl continuation charactes to split CFLAGS into readable chunks
if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS -Wall -Wno-uninitialized -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare"
fi
AC_SUBST(CFLAGS)
AC_SUBST(LDFLAGS)
GETTEXT_PACKAGE=yelp
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
ALL_LINGUAS="am ar az be bg bn ca cs cy da de el eo es et fa fi fr ga gl he hi hu id is it ja ka kn ko li lt lv mk ml mn mr ms ne nl nn no pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tr uk vi wa zh_CN zh_TW"
AM_GLIB_GNU_GETTEXT
# AM_GLIB_GNU_GETTEXT above substs $DATADIRNAME
# this is the directory where the *.{mo,gmo} files are installed
yelplocaledir='${prefix}/${DATADIRNAME}/locale'
AC_SUBST(yelplocaledir)
if test "x$prefix" = "xNONE"; then
GNOMELOCALEDIR=$ac_default_prefix/share/locale
else
GNOMELOCALEDIR=$prefix/share/locale
fi
AC_DEFINE_UNQUOTED(GNOMELOCALEDIR, "$GNOMELOCALEDIR")
PKG_CHECK_MODULES(DB2HTML,
[
glib-2.0 >= 2.0.6
libxslt >= 1.0.15
])
PKG_CHECK_MODULES(YELP,
[
gnome-vfs-2.0 >= 1.1
libgnome-2.0 >= 2.0.2
libgnomeui-2.0 >= 1.103.0
libbonobo-2.0 >= 1.108.0
libxslt >= 1.0.15
libglade-2.0 >= 2.0.0
gconf-2.0
libgtkhtml-2.0 >= 2.1.2
])
CFLAGS="$YELP_CFLAGS $CFLAGS"
YELP_MODULES="gnome-vfs-2.0 libgnomeui-2.0 libbonobo-2.0"
YELP_IDL_INCLUDES="`$PKG_CONFIG --variable=idldir gnome-vfs-2.0 libgnomeui-2.0 libbonobo-2.0 bonobo-activation-2.0| sed -e 's/^/ /' -e 's/ \+$//' -e 's/ \+/ -I /g' -e 's/^ \+//'`"
AC_SUBST(YELP_IDL_INCLUDES)
dnl Check for whereis
AC_CANONICAL_HOST
case $host in
*-linux-gnu | *-irix6*) AC_DEFINE(HAVE_MAN_WHEREIS, 1, [man(1) understands -w option]);;
*-solaris*) AC_DEFINE(HAVE_MAN_DEBUG, 1, [man(1) has a -d debug option]);;
esac
dnl ===================================================
dnl = Check for popt, reported to be needed on AIX
dnl ===================================================
AC_CHECK_LIB(popt, poptGetArgs, [POPT_LIBS="-lpopt"],
[AC_MSG_ERROR([popt is required to build yelp])])
AC_SUBST(POPT_LIBS)
dnl ====================================
dnl = zlib for help converters
dnl ====================================
AC_CHECK_LIB(z, gzopen, [Z_LIBS=-lz
AC_SUBST(Z_LIBS)], AC_MSG_ERROR([*** zlib is required]))
dnl ====================================
dnl = Bzip2, for the help converters
dnl ====================================
BZ_LIBS=
AC_CHECK_LIB(bz2, bzread, [AC_DEFINE(HAVE_LIBBZ2, 1, [Compile with libbz2 suppot])
BZ_LIBS="-lbz2"])
dnl <= Check for bzip2 > 1.0.0
AC_CHECK_LIB(bz2, BZ2_bzread, [AC_DEFINE(HAVE_LIBBZ2, 1, [Compile with libbz2 support])
BZ_LIBS="-lbz2"
dnl <= define the wrapper-functions to get the Bzip2 stuff working .. =>
AC_DEFINE(bzread,BZ2_bzread, [Needed to get Bzip2 working])
AC_DEFINE(bzopen,BZ2_bzopen, [Needed to get Bzip2 working])
AC_DEFINE(bzdopen,BZ2_bzdopen, [Needed to get Bzip2 working])
AC_DEFINE(bzwrite,BZ2_bzwrite, [Needed to get Bzip2 working])
AC_DEFINE(bzerror,BZ2_bzerror, [Needed to get Bzip2 working])
AC_DEFINE(bzclose,BZ2_bzclose, [Needed to get Bzip2 working])
AC_DEFINE(bzflush,BZ2_bzflush, [Needed to get Bzip2 working])
AC_DEFINE(bzCompress,BZ2_bzCompress, [Needed to get Bzip2 working])
AC_DEFINE(bzCompressInit,BZ2_bzCompressInit, [Needed to get Bzip2 working])
AC_DEFINE(bzDecompress,BZ2_bzDecompress, [Needed to get Bzip2 working])
AC_DEFINE(bzDecompressInit,BZ2_bzDecompressInit, [Needed to get Bzip2 working])
])
dnl =>
AC_SUBST(BZ_LIBS)
AC_OUTPUT([
Makefile
src/Makefile
src/man2html/Makefile
src/info2html/Makefile
stylesheets/Makefile
stylesheets/docbook/Makefile
stylesheets/docbook/catalog
stylesheets/docbook/dtd/Makefile
data/Makefile
data/images/Makefile
data/ui/Makefile
po/Makefile.in
])
|