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
|
AC_INIT([abrt], [1.1.7], [crash-catcher@fedorahosted.org])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_ARG_ENABLE(debug,
[AC_HELP_STRING([--enable-debug],
[Enable debug information])],
[CXXFLAGS="$CXXFLAGS -DDEBUG -ggdb -g"])
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_CXX
AC_SYS_LARGEFILE
CXXFLAGS="$CXXFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
-D_FILE_OFFSET_BITS=64 -fno-strict-aliasing "
AC_CHECK_PROGS(YACC, 'bison -y', [no])
[if test "$YACC" = "no"]
[then]
[echo "bison not found in the search path. Please ensure that it is"]
[echo "installed and its directory is included in the search path."]
[echo "Then run configure again before attempting to build ABRT."]
[exit 1]
[fi]
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.17])
AM_PATH_PYTHON
if test -z "$PYTHON"; then
echo "*** Essential program python not found" 1>&2
exit 1
fi
PKG_CHECK_MODULES([SQLITE3], [sqlite3])
PKG_CHECK_MODULES([GTK], [gtk+-2.0])
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.21])
PKG_CHECK_MODULES([DBUS], [dbus-1])
PKG_CHECK_MODULES([RPM], [rpm])
PKG_CHECK_MODULES([CURL], [libcurl])
PKG_CHECK_MODULES([LIBNOTIFY], [libnotify])
#PKG_CHECK_MODULES([NSS], [nss])
PKG_CHECK_MODULES([XMLRPC], [xmlrpc])
PKG_CHECK_MODULES([XMLRPC_CLIENT], [xmlrpc_client])
PKG_CHECK_MODULES([POLKIT],[polkit-gobject-1])
PKG_CHECK_MODULES([ZIP],[libzip])
AC_CHECK_HEADER([libtar.h], [],
[AC_MSG_ERROR([libtar.h is needed to build abrt])])
AC_CHECK_HEADER([bzlib.h], [],
[AC_MSG_ERROR([bzlib.h is needed to build abrt])])
AC_CHECK_HEADER([sys/inotify.h], [],
[AC_MSG_ERROR([sys/inotify.h is needed to build abrt])])
CONF_DIR='${sysconfdir}/${PACKAGE_NAME}'
VAR_RUN='${localstatedir}/run'
PLUGINS_CONF_DIR='${sysconfdir}/${PACKAGE_NAME}/plugins'
PLUGINS_LIB_DIR='${libdir}/${PACKAGE_NAME}'
ENABLE_SOCKET_OR_DBUS='-DENABLE_DBUS=1'
DEBUG_DUMPS_DIR='${localstatedir}/spool/${PACKAGE_NAME}'
DEBUG_INFO_DIR='${localstatedir}/cache/${PACKAGE_NAME}-di'
AC_ARG_WITH(debugdumpsdir,
[AS_HELP_STRING([--with-debugdumpdir=DIR],
[Directory where debugdumps are created])],
[DEBUG_DUMPS_DIR="$withval"])
AC_ARG_WITH(debuginfosdir,
[AS_HELP_STRING([--with-debuginfodir=DIR],
[Directory where debuginfo is stored])],
[DEBUG_INFO_DIR="$withval"])
AC_ARG_ENABLE(socket,
[AC_HELP_STRING([--enable-socket],
[Enable socket communication. Disable DBus communication])],
[ENABLE_SOCKET_OR_DBUS='-DENABLE_SOCKET=1'])
AC_ARG_ENABLE(dbus,
[AC_HELP_STRING([--enable-dbus],
[Enable DBus communication. Disable socket communication @<:@default@:>@])],
[ENABLE_SOCKET_OR_DBUS='-DENABLE_DBUS=1'])
AC_SUBST(ENABLE_SOCKET_OR_DBUS)
AC_SUBST(CONF_DIR)
AC_SUBST(VAR_RUN)
AC_SUBST(PLUGINS_CONF_DIR)
AC_SUBST(PLUGINS_LIB_DIR)
AC_SUBST(DEBUG_DUMPS_DIR)
AC_SUBST(DEBUG_INFO_DIR)
AC_SUBST(DL_LIBS, -ldl)
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
lib/Makefile
lib/Utils/Makefile
lib/Plugins/Makefile
src/Makefile
src/Daemon/Makefile
src/Hooks/Makefile
src/Applet/Makefile
src/Gui/Makefile
src/CLI/Makefile
src/utils/Makefile
inc/Makefile
po/Makefile.in
icons/Makefile
])
AC_OUTPUT
|