1
AC_INIT([XChat-GNOME IRC Chat],[0.8],[http://bugzilla.gnome.org/enter_bug.cgi?product=xchat-gnome],[xchat-gnome])
1
AC_INIT([XChat-GNOME IRC Chat],[0.9],[http://bugzilla.gnome.org/enter_bug.cgi?product=xchat-gnome],[xchat-gnome])
63
64
gconf-2.0 >= $GCONF_REQUIRED \
67
# We can do better option parsing if we have libgnome >= 2.14
68
# Once 2.14 is out and relatively common, we should probably eliminate this
69
# and just force everyone to it.
70
PKG_CHECK_MODULES([LIBGNOME], [libgnome-2.0 >= 2.13], newlibgnome=yes, newlibgnome=no)
71
if test "x$newlibgnome" = xyes; then
72
AC_DEFINE(HAVE_LIBGNOME_214, 1, [Enable 2.14-specific code])
76
AC_MSG_CHECKING([whether dbus support is requested])
78
AS_HELP_STRING([--disable-dbus],[Disable dbus support]),
79
[enable_dbus=$enableval dbus=$enableval],
80
[enable_dbus=autodetect dbus=yes])
81
AC_MSG_RESULT([$enable_dbus])
83
if test "x$enable_dbus" != "xno"; then
66
84
# D-BUS soft dependency
67
PKG_CHECK_MODULES([DBUS], [\
68
dbus-1 >= $DBUS_REQUIRED \
69
dbus-glib-1 >= $DBUS_GLIB_REQUIRED \
71
AC_SUBST([DBUS_CFLAGS])
73
AC_PATH_PROG([DBUS_BINDING_TOOL],[dbus-binding-tool],[no])
74
if test "x$DBUS_BINDING_TOOL" = "xno"; then
75
AC_MSG_ERROR([dbus-binding-tool not found])
85
PKG_CHECK_MODULES([DBUS], [\
86
dbus-1 >= $DBUS_REQUIRED \
87
dbus-glib-1 >= $DBUS_GLIB_REQUIRED \
89
AC_SUBST([DBUS_CFLAGS])
91
AC_PATH_PROG([DBUS_BINDING_TOOL],[dbus-binding-tool],[no])
92
if test "x$DBUS_BINDING_TOOL" = "xno"; then
97
if test "x$dbus" != "xyes"; then
98
if test "x$enable_dbus" = "xyes"; then
99
AC_MSG_ERROR([DBus not found])
100
elif test "x$enable_dbus" = "xautodetect"; then
101
AC_MSG_WARN([DBus not found, disabling dbus support])
78
105
AM_CONDITIONAL([ENABLE_DBUS],[test "x$dbus" = "xyes"])
80
107
# libsexy soft dependency
89
116
# libnotify soft dependency
90
PKG_CHECK_MODULES([LIBNOTIFY], [libnotify], libnotify=yes, libnotify=no)
117
PKG_CHECK_MODULES([LIBNOTIFY], [libnotify >= $LIBNOTIFY_REQUIRED], libnotify=yes, libnotify=no)
91
118
AC_SUBST([LIBNOTIFY_CFLAGS])
92
119
AC_SUBST([LIBNOTIFY_LIBS])
93
120
AM_CONDITIONAL([ENABLE_LIBNOTIFY],[test "x$libnotify" = "xyes"])
115
142
if test "x$have_perl" != "xno"; then
116
143
AC_PATH_PROG(PERL, perl perl5)
117
144
if test -z $PERL ; then
119
*** Perl must be installed on your system
120
*** but perl interpreter couldn't be found in path.
122
Please check that perl is in path, or install
123
it with your software package manager.])
145
AC_MSG_WARN([Perl interpreter not found, disabling perl support])
133
155
PERL_CFLAGS=`$PERL -MExtUtils::Embed -e ccopts`
134
156
AC_MSG_RESULT(found)
137
*** Perl headers couldn't be found in your system.
138
*** Try to install it with your software package manager.])
158
AC_MSG_WARN([Perl headers not found, disabling perl support])
152
172
AC_DEFINE([ENABLE_PERL],[1],[Define to compile with perl support])
156
*** Perl library couldn't be found in your system.
157
*** Try to install it with your software package manager.])
175
AC_MSG_WARN([Perl library not found, disabling perl support])
240
258
PKG_CHECK_MODULES([OPENSSL], [openssl], openssl=yes, openssl=no)
241
AC_SUBST([OPENSSL_CFLAGS])
242
AC_SUBST([OPENSSL_LIBS])
243
AC_DEFINE(USE_OPENSSL, [], [Whether to use OpenSSL])
259
if test "x$openssl" = xyes; then
260
AC_SUBST([OPENSSL_CFLAGS])
261
AC_SUBST([OPENSSL_LIBS])
262
AC_DEFINE(USE_OPENSSL, [], [Whether to use OpenSSL])
264
AM_CONDITIONAL(USE_OPENSSL, test "x$openssl" = "xyes")
246
267
ALL_LINGUAS="`cat "$srcdir/po/LINGUAS" | grep -v '^#'`"