~ubuntu-branches/ubuntu/precise/xchat-gnome/precise

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2006-01-23 10:38:23 UTC
  • mto: (2.1.1 etch) (1.1.19 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20060123103823-qnje8vlt9kpfqsk4
Tags: upstream-0.9
ImportĀ upstreamĀ versionĀ 0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
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])
2
2
 
3
3
AC_PREREQ([2.59])
4
4
 
7
7
AC_CONFIG_SRCDIR([configure.ac])
8
8
 
9
9
PACKAGE=xchat-gnome
10
 
VERSION=0.8
11
 
AM_INIT_AUTOMAKE([0.8 dist-bzip2 check-news subdir-objects])
 
10
VERSION=0.9
 
11
AM_INIT_AUTOMAKE([0.9 dist-bzip2 check-news subdir-objects])
12
12
 
13
13
AM_MAINTAINER_MODE
14
14
if test "x$enable_maintainer_mode" = xyes; then
29
29
DBUS_REQUIRED=0.35
30
30
DBUS_GLIB_REQUIRED=0.35
31
31
LIBSEXY_REQUIRED=0.1.4
 
32
LIBNOTIFY_REQUIRED=0.3.0
32
33
 
33
34
 
34
35
AC_PROG_CC
63
64
                  gconf-2.0 >= $GCONF_REQUIRED \
64
65
                  ])
65
66
 
 
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])
 
73
fi
 
74
 
 
75
#D-Bus
 
76
AC_MSG_CHECKING([whether dbus support is requested])
 
77
AC_ARG_ENABLE([dbus],
 
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])
 
82
 
 
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 \
70
 
                  ], dbus=yes, dbus=no)
71
 
AC_SUBST([DBUS_CFLAGS])
72
 
AC_SUBST([DBUS_LIBS])
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])
76
 
        dbus="no"
77
 
fi
 
85
        PKG_CHECK_MODULES([DBUS], [\
 
86
                          dbus-1 >= $DBUS_REQUIRED \
 
87
                          dbus-glib-1 >= $DBUS_GLIB_REQUIRED \
 
88
                          ], dbus=yes, dbus=no)
 
89
        AC_SUBST([DBUS_CFLAGS])
 
90
        AC_SUBST([DBUS_LIBS])
 
91
        AC_PATH_PROG([DBUS_BINDING_TOOL],[dbus-binding-tool],[no])
 
92
        if test "x$DBUS_BINDING_TOOL" = "xno"; then
 
93
                dbus="no"
 
94
        fi
 
95
fi
 
96
 
 
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])
 
102
        fi
 
103
fi
 
104
 
78
105
AM_CONDITIONAL([ENABLE_DBUS],[test "x$dbus" = "xyes"])
79
106
 
80
107
# libsexy soft dependency
87
114
fi
88
115
 
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
118
 
                AC_MSG_ERROR([
119
 
*** Perl must be installed on your system
120
 
*** but perl interpreter couldn't be found in path.
121
 
 
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])
124
146
                have_perl=no
125
147
        fi
126
148
fi
133
155
                PERL_CFLAGS=`$PERL -MExtUtils::Embed -e ccopts`
134
156
                AC_MSG_RESULT(found)
135
157
        else
136
 
                AC_MSG_ERROR([
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])
139
159
                have_perl=no
140
160
        fi
141
161
fi
152
172
                AC_DEFINE([ENABLE_PERL],[1],[Define to compile with perl support])
153
173
                enable_perl=yes
154
174
        else
155
 
                AC_MSG_ERROR([
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])
158
176
        fi
159
177
 
160
178
fi
238
256
 
239
257
# openssl
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])
 
263
fi
 
264
AM_CONDITIONAL(USE_OPENSSL, test "x$openssl" = "xyes")
244
265
 
245
266
# i18n
246
267
ALL_LINGUAS="`cat "$srcdir/po/LINGUAS" | grep -v '^#'`"