File: configure.ac

package info (click to toggle)
pidgin-blinklight 0.10-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,964 kB
  • ctags: 66
  • sloc: sh: 9,457; ansic: 246; makefile: 80; sed: 16
file content (91 lines) | stat: -rw-r--r-- 1,663 bytes parent folder | download
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
#
# Most of this configure script was ripped from gaim or the
# gaim-encryption configure script, thanks guys ;)
#

AC_INIT([pidgin-blinklight], [0.10], [mail@joachim-breitner.de])
AC_CANONICAL_SYSTEM
AC_GNU_SOURCE
AM_CONFIG_HEADER(config.h)

AM_INIT_AUTOMAKE([1.8])

AC_PREREQ([2.50])

AC_PATH_PROG(sedpath, sed)
AC_DISABLE_STATIC
#
# Setup libtool
#
AM_PROG_LIBTOOL
LIBTOOL="$LIBTOOL --silent"


#
# Good o' gettext
#
#ALL_LINGUAS="de en_AU en_GB es fr he it ja nl no pt pt_BR sk sv zh_CN zh_TW"
ALL_LINGUAS="de sv"
AM_GNU_GETTEXT(external)
#AM_GNU_GETTEXT(external)
AM_GNU_GETTEXT_VERSION(0.16.1)

#
# Look for the C compiler
#
CFLAGS_save="$CFLAGS"
AC_PROG_CC_STDC
CFLAGS="$CFLAGS_save"

AC_ARG_ENABLE(debug, [  --enable-debug          compile with debugging support],,enable_debug=no)

if test "x$enable_debug" = "xyes" ; then
	AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
fi

AC_SUBST(DEBUG_CFLAGS)

if test "x$GCC" = "xyes"; then
	CFLAGS="$CFLAGS -Wall -g3"
fi
AC_SUBST(CFLAGS)

#
# Check for gaim
#

PKG_CHECK_MODULES(PURPLE, purple,
[
	AC_DEFINE(HAVE_PURPLE, 1, [Define if we've found purple.])
])

AC_SUBST(PURPLE)
PURPLE_LIBDIR=`pkg-config --variable=libdir purple`
PURPLE_DATADIR=`pkg-config --variable=datadir purple`
AC_SUBST(PURPLE_LIBDIR)
AC_SUBST(PURPLE_DATADIR)


#
# Check if plugins are enabled
#
want_plugins=yes
AM_CONDITIONAL(PLUGINS, test "$want_plugins" = "yes")

#
# Finish up
#
AC_OUTPUT([Makefile
	   VERSION
	   po/Makefile.in
	   src/Makefile
	  ])

echo;
echo Configuration complete
echo;
echo Debugging enabled..............: $enable_debug
echo;
echo Type make to compile
echo Thank you for using pidgin-blinklight
echo;