Bump version number and amend changelog entry
[darcs-mirror-pidgin-blinklight.git] / configure.ac
1 #
2 # Most of this configure script was ripped from gaim or the
3 # gaim-encryption configure script, thanks guys ;)
4 #
5
6 AC_INIT([pidgin-blinklight], [0.11.1], [mail@joachim-breitner.de])
7 AC_CANONICAL_SYSTEM
8 AC_GNU_SOURCE
9 AM_CONFIG_HEADER(config.h)
10
11 AM_INIT_AUTOMAKE([1.8])
12
13 AC_PREREQ([2.50])
14
15 AC_PATH_PROG(sedpath, sed)
16 AC_DISABLE_STATIC
17 #
18 # Setup libtool
19 #
20 AM_PROG_LIBTOOL
21 LIBTOOL="$LIBTOOL --silent"
22
23
24 #
25 # Good o' gettext
26 #
27 #ALL_LINGUAS="de en_AU en_GB es fr he it ja nl no pt pt_BR sk sv zh_CN zh_TW"
28 ALL_LINGUAS="de sv"
29 AM_GNU_GETTEXT(external)
30 #AM_GNU_GETTEXT(external)
31 AM_GNU_GETTEXT_VERSION(0.16.1)
32
33 #
34 # Look for the C compiler
35 #
36 CFLAGS_save="$CFLAGS"
37 AC_PROG_CC_STDC
38 CFLAGS="$CFLAGS_save"
39
40 AC_ARG_ENABLE(debug, [  --enable-debug          compile with debugging support],,enable_debug=no)
41
42 if test "x$enable_debug" = "xyes" ; then
43         AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
44 fi
45
46 AC_SUBST(DEBUG_CFLAGS)
47
48 if test "x$GCC" = "xyes"; then
49         CFLAGS="$CFLAGS -Wall -g3"
50 fi
51 AC_SUBST(CFLAGS)
52
53 #
54 # Check for gaim
55 #
56
57 PKG_CHECK_MODULES(PURPLE, purple,
58 [
59         AC_DEFINE(HAVE_PURPLE, 1, [Define if we've found purple.])
60 ])
61
62 AC_SUBST(PURPLE)
63 PURPLE_LIBDIR=`pkg-config --variable=libdir purple`
64 PURPLE_DATADIR=`pkg-config --variable=datadir purple`
65 AC_SUBST(PURPLE_LIBDIR)
66 AC_SUBST(PURPLE_DATADIR)
67
68
69 #
70 # Check if plugins are enabled
71 #
72 want_plugins=yes
73 AM_CONDITIONAL(PLUGINS, test "$want_plugins" = "yes")
74
75 #
76 # Finish up
77 #
78 AC_OUTPUT([Makefile
79            VERSION
80            po/Makefile.in
81            src/Makefile
82           ])
83
84 echo;
85 echo Configuration complete
86 echo;
87 echo Debugging enabled..............: $enable_debug
88 echo;
89 echo Type make to compile
90 echo Thank you for using pidgin-blinklight
91 echo;