-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
58 lines (48 loc) · 1.27 KB
/
configure.ac
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
AC_INIT(pyabiword, 0.8.0)
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE
AC_CONFIG_MACRO_DIRS([m4])
dnl Checks for programs.
AC_ISC_POSIX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_STDC_HEADERS
AM_PROG_LIBTOOL
AC_C_CONST
abi_pkg='abiword-3.0 >= 3.0.0'
PKG_CHECK_MODULES(ABIWORD, "$abi_pkg")
AC_SUBST(ABIWORD_CFLAGS)
AC_SUBST(ABIWORD_LIBS)
AC_MSG_CHECKING(whether AbiWord uses Gtk+ 2.0)
if test ! -z "`echo "$ABIWORD_LIBS" | grep gtk-3`" ; then
AC_MSG_RESULT(no)
AC_MSG_ERROR(libabiword uses Gtk+3.0. Use GObject Introspection instead)
else
AC_MSG_RESULT(yes)
fi
dnl check for python
AM_PATH_PYTHON(2.3)
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
dnl check for pygtk
PKG_CHECK_MODULES(PYGTK, pygtk-2.0)
AC_SUBST(PYGTK_CFLAGS)
AC_PATH_PROG(PYGTK_CODEGEN, pygobject-codegen-2.0, no)
if test "x$PYGTK_CODEGEN" = xno; then
AC_MSG_ERROR(could not find pygtk-codegen-2.0 script)
fi
dnl =======================================================================================
AC_OUTPUT([
Makefile
src/Makefile
])
dnl ===========================================================================================
echo "
prefix: ${prefix}
compiler: ${CC}
"