configure.ac
author John Bailey <rekkanoryo@rekkanoryo.org>
Sun Aug 30 20:10:58 2009 -0400 (2009-08-30)
changeset 1046 93089a7ce7f6
parent 1028 314cfd774bc4
child 1056 ba4a69308027
permissions -rw-r--r--
Merge
rekkanoryo@1040
     1
AC_INIT([purple-plugin_pack], [2.6.0], [plugins-devel@lists.guifications.org])
jbailey@22
     2
AC_CANONICAL_SYSTEM
jbailey@22
     3
AM_CONFIG_HEADER(pre_config.h)
jbailey@22
     4
jbailey@22
     5
AM_INIT_AUTOMAKE([foreign dist-bzip2])
jbailey@22
     6
jbailey@22
     7
AC_PREREQ([2.50])
jbailey@22
     8
grim@208
     9
AC_DEFINE_UNQUOTED(PP_VERSION, "AC_PACKAGE_VERSION", [Plugin Pack Version])
jbailey@22
    10
jbailey@22
    11
AC_PATH_PROG(sedpath, sed)
jbailey@22
    12
AC_DISABLE_STATIC
jbailey@22
    13
jbailey@22
    14
dnl #######################################################################
grim@788
    15
dnl # Initialize some variables that get passed to plugin_pack.py
grim@788
    16
dnl #######################################################################
grim@788
    17
DEPENDENCIES=""
grim@788
    18
grim@788
    19
dnl #######################################################################
jbailey@22
    20
dnl # Setup libtool
jbailey@22
    21
dnl #######################################################################
rekkanoryo@991
    22
m4_defun([_LT_AC_LANG_CXX_CONFIG], [:])
rekkanoryo@991
    23
m4_defun([_LT_AC_LANG_F77_CONFIG], [:])
rekkanoryo@991
    24
m4_defun([_LT_AC_LANG_GCJ_CONFIG], [:])
rekkanoryo@991
    25
m4_defun([_LT_AC_LANG_RC_CONFIG], [:])
jbailey@22
    26
AM_PROG_LIBTOOL
jbailey@22
    27
LIBTOOL="$LIBTOOL --silent"
jbailey@22
    28
jbailey@22
    29
dnl #######################################################################
jbailey@22
    30
dnl # I'm lazy and figured config.h is the best place for this ;)
jbailey@22
    31
dnl #######################################################################
paul@1028
    32
AC_DEFINE_UNQUOTED(PP_WEBSITE, "http://plugins.guifications.org/trac", [Plugin Pack Website]) 
jbailey@22
    33
jbailey@22
    34
dnl #######################################################################
jbailey@22
    35
dnl # Our header
jbailey@22
    36
dnl #######################################################################
jbailey@22
    37
AH_TOP([ /* our header */
grim@208
    38
#ifndef PP_CONFIG_H
grim@208
    39
#define PP_CONFIG_H
jbailey@22
    40
])
jbailey@22
    41
AH_BOTTOM([
grim@208
    42
#endif /* PP_CONFIG_H */
jbailey@22
    43
])
jbailey@22
    44
jbailey@22
    45
dnl #######################################################################
rekkanoryo@995
    46
dnl # Good ol' gettext
rekkanoryo@995
    47
dnl #######################################################################
rekkanoryo@995
    48
AC_PROG_INTLTOOL
rekkanoryo@995
    49
rekkanoryo@995
    50
GETTEXT_PACKAGE=plugin_pack
rekkanoryo@995
    51
AC_SUBST(GETTEXT_PACKAGE)
rekkanoryo@995
    52
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package to be used.])
rekkanoryo@995
    53
ALL_LINGUAS="en_AU es_ES fr vi"
rekkanoryo@995
    54
AM_GLIB_GNU_GETTEXT
rekkanoryo@995
    55
rekkanoryo@995
    56
dnl #######################################################################
jbailey@22
    57
dnl # Look for the C compiler
jbailey@22
    58
dnl #######################################################################
jbailey@22
    59
CFLAGS_save="$CFLAGS"
jbailey@22
    60
AC_PROG_CC
jbailey@22
    61
CFLAGS="$CFLAGS_save"
jbailey@22
    62
jbailey@22
    63
AC_ARG_ENABLE(debug, [  --enable-debug          compile with debugging support],,enable_debug=no)
jbailey@22
    64
jbailey@22
    65
if test "x$enable_debug" = "xyes" ; then
jbailey@22
    66
	AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
jbailey@22
    67
fi
jbailey@22
    68
jbailey@22
    69
if test "x$GCC" = "xyes"; then
jbailey@22
    70
	CFLAGS="$CFLAGS -Wall -g3"
jbailey@22
    71
fi
jbailey@22
    72
AC_SUBST(CFLAGS)
jbailey@22
    73
jbailey@22
    74
dnl #######################################################################
grim@207
    75
dnl # Check for purple
jbailey@22
    76
dnl #######################################################################
grim@207
    77
PKG_CHECK_MODULES(PURPLE, purple,
jbailey@22
    78
[
grim@207
    79
	AC_DEFINE(HAVE_PURPLE, 1, [Define if we've found libpurple.])
jbailey@22
    80
])
jbailey@22
    81
grim@214
    82
HAVE_PURPLE="yes"
grim@214
    83
AM_CONDITIONAL(HAVE_PURPLE, true)
grim@814
    84
DEPENDENCIES="$DEPENDENCIES,purple"
grim@214
    85
grim@381
    86
if test x"$prefix" = x"NONE" ; then
grim@381
    87
	PURPLE_LIBDIR=`pkg-config --variable=libdir purple`
grim@381
    88
	PURPLE_DATADIR=`pkg-config --variable=datadir purple`
grim@381
    89
else
grim@381
    90
	PURPLE_LIBDIR="$libdir"
grim@381
    91
	PURPLE_DATADIR="$datadir"
grim@381
    92
fi
grim@381
    93
grim@268
    94
PURPLE_PIXMAPSDIR=""
grim@207
    95
grim@257
    96
# this is a hack but should work fine.
grim@257
    97
# we use the libpurple datadir for PP_LOCALEDIR since we are not breaking up
grim@257
    98
# the pot's yet, and need to make sure they goto the same place
grim@257
    99
PP_LOCALEDIR="PURPLE_DATADIR/locale"
grim@257
   100
AC_DEFINE_UNQUOTED(PP_LOCALEDIR, ["$PP_LOCALEDIR"], [The localedir to use])
grim@257
   101
grim@228
   102
if test x"$PURPLE_LIBDIR" != x"" ; then
nosnilmot@299
   103
	PURPLE_LIBDIR="$PURPLE_LIBDIR/purple-2"
grim@228
   104
fi
grim@228
   105
grim@228
   106
if test x"$PURPLE_DATADIR" != x"" ; then
grim@268
   107
	PURPLE_PIXMAPSDIR="$PURPLE_DATADIR/pixmaps/libpurple"
rekkanoryo@284
   108
	AC_DEFINE_UNQUOTED(PURPLE_PIXMAPSDIR, "$PURPLE_PIXMAPSDIR", [Libpurple pixmaps directory])
grim@228
   109
fi
grim@228
   110
grim@207
   111
AC_SUBST(PURPLE_CFLAGS)
grim@207
   112
AC_SUBST(PURPLE_LIBS)
grim@207
   113
AC_SUBST(PURPLE_LIBDIR)
grim@207
   114
AC_SUBST(PURPLE_DATADIR)
grim@268
   115
AC_SUBST(PURPLE_PIXMAPSDIR)
grim@207
   116
rekkanoryo@284
   117
grim@207
   118
dnl #######################################################################
grim@207
   119
dnl # Check for pidgin
grim@207
   120
dnl #######################################################################
grim@207
   121
PKG_CHECK_MODULES(PIDGIN, pidgin,
grim@207
   122
[
grim@207
   123
	AC_DEFINE(HAVE_PIDGIN, 1, [Define if we've found pidgin.])
grim@214
   124
	HAVE_PIDGIN="yes"
grim@207
   125
	AM_CONDITIONAL(HAVE_PIDGIN, true)
grim@814
   126
	DEPENDENCIES="$DEPENDENCIES,pidgin"
grim@207
   127
], [
nosnilmot@405
   128
	AC_MSG_RESULT([no])
grim@214
   129
	HAVE_PIDGIN="no"
grim@207
   130
	AM_CONDITIONAL(HAVE_PIDGIN, false)
grim@207
   131
])
grim@207
   132
grim@381
   133
if test x"$prefix" = x"NONE" ; then
grim@381
   134
	PIDGIN_LIBDIR=`pkg-config --variable=libdir pidgin`
grim@381
   135
	PIDGIN_DATADIR=`pkg-config --variable=datadir pidgin`
grim@381
   136
else
grim@381
   137
	PIDGIN_LIBDIR="$libdir"
grim@381
   138
	PIDGIN_DATADIR="$datadir"
grim@381
   139
fi
grim@381
   140
grim@268
   141
PIDGIN_PIXMAPSDIR=""
grim@207
   142
grim@228
   143
if test x"$PIDGIN_LIBDIR" != x"" ; then
grim@228
   144
	PIDGIN_LIBDIR="$PIDGIN_LIBDIR/pidgin"
grim@228
   145
fi
grim@228
   146
grim@228
   147
if test x"$PIDGIN_DATADIR" != x"" ; then
grim@268
   148
	PIDGIN_PIXMAPSDIR="$PIDGIN_DATADIR/pixmaps/pidgin"
rekkanoryo@284
   149
	AC_DEFINE_UNQUOTED(PIDGIN_PIXMAPSDIR, "$PIDGIN_PIXMAPSDIR", [Pidgin pixmaps directory])
grim@228
   150
fi
grim@228
   151
grim@207
   152
AC_SUBST(PIDGIN_CFLAGS)
grim@207
   153
AC_SUBST(PIDGIN_LIBS)
grim@207
   154
AC_SUBST(PIDGIN_LIBDIR)
grim@207
   155
AC_SUBST(PIDGIN_DATADIR)
grim@268
   156
AC_SUBST(PIDGIN_PIXMAPSDIR)
grim@207
   157
grim@207
   158
dnl #######################################################################
grim@207
   159
dnl # Check for finch
grim@207
   160
dnl #######################################################################
grim@207
   161
PKG_CHECK_MODULES(FINCH, finch,
grim@207
   162
[
grim@207
   163
	AC_DEFINE(HAVE_FINCH, 1, [Define if we've found finch.])
grim@214
   164
	HAVE_FINCH="yes"
grim@207
   165
	AM_CONDITIONAL(HAVE_FINCH, true)
grim@814
   166
	DEPENDENCIES="$DEPENDENCIES,finch"
grim@207
   167
], [
nosnilmot@405
   168
	AC_MSG_RESULT([no])
grim@214
   169
	HAVE_FINCH="no"
grim@207
   170
	AM_CONDITIONAL(HAVE_FINCH, false)
grim@207
   171
])
grim@207
   172
grim@381
   173
if test x"$prefix" = x"NONE" ; then
grim@381
   174
	FINCH_LIBDIR=`pkg-config --variable=libdir finch`
grim@381
   175
	FINCH_DATADIR=`pkg-config --variable=datadir finch`
grim@381
   176
else
grim@381
   177
	FINCH_LIBDIR="$libdir"
grim@381
   178
	FINCH_DATADIR="$datadir"
grim@381
   179
fi
grim@381
   180
grim@268
   181
FINCH_PIXMAPSDIR=""
grim@207
   182
grim@228
   183
if test x"$FINCH_LIBDIR" != x"" ; then
grim@228
   184
	FINCH_LIBDIR="$FINCH_LIBDIR/finch"
grim@228
   185
fi
grim@228
   186
grim@228
   187
if test x"$FINCH_DATADIR" != x"" ; then
grim@268
   188
	FINCH_PIXMAPSDIR="$FINCH_DATADIR/pixmaps/finch"
rekkanoryo@284
   189
	AC_DEFINE_UNQUOTED(FINCH_PIXMAPSDIR, "$FINCH_PIXMAPSDIR", [Finch pixmaps directory])
grim@228
   190
fi
grim@228
   191
grim@207
   192
AC_SUBST(FINCH_CFLAGS)
grim@207
   193
AC_SUBST(FINCH_LIBS)
grim@207
   194
AC_SUBST(FINCH_LIBDIR)
grim@207
   195
AC_SUBST(FINCH_DATADIR)
grim@268
   196
AC_SUBST(FINCH_PIXMAPSDIR)
jbailey@22
   197
jbailey@22
   198
dnl #######################################################################
grim@884
   199
dnl # check for gtk
jbailey@22
   200
dnl #######################################################################
grim@329
   201
HAVE_GLIB="no"
grim@329
   202
PKG_CHECK_MODULES(GLIB, [glib-2.0], HAVE_GLIB="yes", HAVE_GLIB="no")
grim@329
   203
grim@329
   204
if test x"$HAVE_GLIB" = x"no" ; then
grim@329
   205
	echo "glib development headers were not found.  glib development headers"
grim@329
   206
	echo "are required to build $PACKAGE."
grim@329
   207
	exit 1
grim@329
   208
fi
jbailey@22
   209
AC_SUBST(GLIB_CFLAGS)
grim@208
   210
AC_SUBST(GLIB_LIBS)
jbailey@22
   211
grim@329
   212
HAVE_GTK="no"
grim@329
   213
GTK_CFLAGS=""
grim@329
   214
GTK_LIBS=""
grim@329
   215
PKG_CHECK_MODULES(GTK, [gtk+-2.0], HAVE_GTK="yes", HAVE_GTK="no")
jbailey@22
   216
AC_SUBST(GTK_CFLAGS)
grim@208
   217
AC_SUBST(GTK_LIBS)
jbailey@22
   218
grim@884
   219
dnl #######################################################################
grim@884
   220
dnl # check for gnt
grim@884
   221
dnl #######################################################################
grim@845
   222
HAVE_GNT="no"
grim@845
   223
GNT_CFLAGS=""
grim@845
   224
GNT_LIBS=""
grim@845
   225
PKG_CHECK_MODULES(GNT, [gnt], HAVE_GNT="yes", HAVE_GNT="no")
grim@845
   226
AC_SUBST(GNT_CFLAGS)
grim@845
   227
AC_SUBST(GNT_CFLAGS)
grim@845
   228
jbailey@22
   229
dnl #######################################################################
grim@884
   230
dnl # check for pango
grim@884
   231
dnl #######################################################################
grim@884
   232
HAVE_PANGO="no"
grim@884
   233
PANGO_CFLAGS=""
grim@884
   234
PANGO_LIBS=""
grim@884
   235
PKG_CHECK_MODULES(PANGO, [pango], HAVE_PANGO="yes", HAVE_PANGO="no")
grim@884
   236
AC_SUBST(PANGO_CFLAGS)
grim@884
   237
AC_SUBST(PANGO_CFLAGS)
grim@884
   238
grim@884
   239
if test x"$HAVE_PANGO" = x"yes" ; then
grim@884
   240
	DEPENDENCIES="$DEPENDENCIES,pango"
grim@884
   241
fi
grim@884
   242
grim@884
   243
dnl #######################################################################
grim@884
   244
dnl # check for cairo
grim@884
   245
dnl #######################################################################
grim@884
   246
HAVE_CAIRO="no"
grim@884
   247
CAIRO_CFLAGS=""
grim@884
   248
CAIRO_LIBS=""
grim@884
   249
PKG_CHECK_MODULES(CAIRO, [cairo], HAVE_CAIRO="yes", HAVE_CAIRO="no")
grim@884
   250
AC_SUBST(CAIRO_CFLAGS)
grim@884
   251
AC_SUBST(CAIRO_CFLAGS)
grim@884
   252
grim@884
   253
if test x"$HAVE_CAIRO" = x"yes" ; then
grim@884
   254
	DEPENDENCIES="$DEPENDENCIES,cairo"
grim@884
   255
fi
grim@884
   256
grim@884
   257
dnl #######################################################################
grim@788
   258
dnl # Check for talkfilters
jbailey@22
   259
dnl #######################################################################
jbailey@22
   260
AC_CHECK_HEADER(talkfilters.h, HAVE_TALKFILTERS=yes, AC_MSG_WARN([
jbailey@22
   261
*** GNU Talk Filters is required to build the talkfilters plugin;
jbailey@22
   262
*** please make sure you have the GNU Talk Filters development headers installed.
jbailey@22
   263
*** The latest version of GNU Talk Filters is available at
jbailey@22
   264
*** http://www.hyperrealm.com/talkfilters/talkfilters.html.])
jbailey@22
   265
HAVE_TALKFILTERS=no
jbailey@22
   266
)
jbailey@22
   267
AM_CONDITIONAL(USE_TALKFILTERS, test x"$HAVE_TALKFILTERS" = x"yes")
jbailey@22
   268
if test x"$HAVE_TALKFILTERS" = x"yes"; then
jbailey@22
   269
	dnl work out that the library exists
jbailey@22
   270
	AC_CHECK_LIB(talkfilters, gtf_filter_count, TALKFILTERS_LIBS="-ltalkfilters")
jbailey@22
   271
	AC_SUBST(TALKFILTERS_LIBS)
grim@848
   272
grim@814
   273
	DEPENDENCIES="$DEPENDENCIES,talkfilters"
jbailey@22
   274
fi
jbailey@22
   275
grim@788
   276
dnl #######################################################################
grim@788
   277
dnl # Check for switchspell
grim@788
   278
dnl #######################################################################
rekkanoryo@197
   279
gtkspell=yes
grim@651
   280
PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, [], [gtkspell=no])
rekkanoryo@197
   281
AC_SUBST(GTKSPELL_CFLAGS)
rekkanoryo@197
   282
AC_SUBST(GTKSPELL_LIBS)
grim@651
   283
grim@982
   284
DEPENDENCIES="$DEPENDENCIES,gtkspell"
grim@982
   285
grim@651
   286
BUILD_SWITCH_SPELL=no
grim@982
   287
grim@982
   288
ASPELL_CFLAGS=""
grim@982
   289
APSELL_LIBS=""
grim@982
   290
grim@982
   291
ENCHANT_CFLAGS=""
grim@982
   292
ENCHANT_LIBS=""
grim@982
   293
grim@651
   294
if test x"$gtkspell" = x"yes" ; then
grim@982
   295
	AC_MSG_CHECKING([which backend gtkspell is compiled with])
grim@982
   296
grim@982
   297
	$PKG_CONFIG --static --libs gtkspell-2.0 | grep -q enchant
grim@982
   298
	if test $? -eq 0 ; then
grim@982
   299
		AC_MSG_RESULT([enchant])
grim@982
   300
grim@989
   301
		PKG_CHECK_MODULES(ENCHANT,
grim@989
   302
						  [enchant],
grim@989
   303
						  [BUILD_SWITCH_SPELL=yes],
grim@989
   304
						  [BUILD_SWITCH_SPELL=no])
grim@982
   305
grim@982
   306
		AC_DEFINE(HAVE_ENCHANT, 1, [define if we've found enchant])
grim@982
   307
grim@982
   308
		DEPENDENCIES="$DEPENDENCIES,enchant"
grim@651
   309
	else
grim@982
   310
		AC_MSG_RESULT([aspell])
grim@982
   311
grim@982
   312
		AC_CHECK_HEADER([aspell.h], HAVE_ASPELL_H=yes, HAVE_ASPELL_H=no)
grim@982
   313
		if test x"$HAVE_ASPELL_H" = x"yes" ; then
grim@982
   314
			AC_CHECK_LIB([aspell], [new_aspell_config],
grim@982
   315
						 [ASPELL_LIBS="-laspell"
grim@982
   316
						  BUILD_SWITCH_SPELL=yes],
grim@982
   317
						 [BUILD_SWITCH_SPELL=no])
grim@982
   318
grim@982
   319
			DEPENDENCIES="$DEPENDENCIES,aspell"
grim@982
   320
		else
grim@982
   321
			BUILD_SWITCH_SPELL=no
grim@982
   322
		fi
grim@651
   323
	fi
grim@651
   324
fi
grim@788
   325
grim@982
   326
if test x"$BUILD_SWITCH_SPELL" = x"no" ; then
grim@982
   327
	ASPELL_CFLAGS=""
grim@982
   328
	ASPELL_LIBS=""
grim@739
   329
grim@982
   330
	ENCHANT_CFLAGS=""
grim@982
   331
	ENCHANT_LIBS=""
grim@739
   332
grim@989
   333
	AM_CONDITIONAL(BUILD_SWITCH_SPELL, false)
grim@989
   334
else
grim@982
   335
	AM_CONDITIONAL(BUILD_SWITCH_SPELL, true)
nosnilmot@865
   336
fi
nosnilmot@865
   337
grim@739
   338
AC_SUBST(ASPELL_CFLAGS)
grim@739
   339
AC_SUBST(ASPELL_LIBS)
grim@739
   340
grim@982
   341
AC_SUBST(ENCHANT_CFLAGS)
grim@982
   342
AC_SUBST(ENCHANT_LIBS)
grim@788
   343
grim@788
   344
dnl #######################################################################
grim@788
   345
dnl # Check for xmms
grim@788
   346
dnl #######################################################################
grim@117
   347
XMMS_LIBS=""
grim@117
   348
XMMS_CFLAGS=""
grim@117
   349
HAVE_XMMS="no"
grim@117
   350
grim@117
   351
AC_PATH_PROG(XMMS_CONFIG, xmms-config, no)
grim@117
   352
if test x"$XMMS_CONFIG" != x"no" ; then
grim@117
   353
	AC_MSG_CHECKING([for xmms >= 1.0.0])
grim@117
   354
	# check the version of xmms config we found
grim@117
   355
	XMMS_VERSION=`$XMMS_CONFIG --version`
grim@117
   356
	if test x"$XMMS_VERSION" != x"" ; then
grim@117
   357
		XMMS_MAJOR=`echo $XMMS_VERSION | cut -d. -f1`
grim@117
   358
		XMMS_MINOR=`echo $XMMS_VERSION | cut -d. -f2`
grim@117
   359
grim@117
   360
		if test $XMMS_MAJOR -ge 1 -a $XMMS_MINOR -ge 0 ; then
grim@117
   361
			XMMS_LIBS=`$XMMS_CONFIG --libs`
grim@117
   362
			XMMS_CFLAGS=`$XMMS_CONFIG --cflags`
grim@117
   363
grim@117
   364
			HAVE_XMMS="yes"
grim@117
   365
		fi
grim@117
   366
	fi
grim@117
   367
grim@117
   368
	if test x"$HAVE_XMMS" = x"yes" ; then
grim@117
   369
		AC_MSG_RESULT([yes])
grim@788
   370
grim@814
   371
		DEPENDENCIES="$DEPENDENCIES,xmms"
grim@117
   372
	else
grim@117
   373
		AC_MSG_RESULT([no])
grim@117
   374
	fi
grim@117
   375
fi
jbailey@22
   376
AM_CONDITIONAL(USE_XMMS, test x"$HAVE_XMMS" = x"yes")
grim@117
   377
AC_SUBST(XMMS_LIBS)
grim@117
   378
AC_SUBST(XMMS_CFLAGS)
jbailey@22
   379
grim@788
   380
dnl #######################################################################
grim@788
   381
dnl # Check for some basic headers
grim@788
   382
dnl #######################################################################
grim@166
   383
AC_CHECK_HEADERS(regex.h)
grim@166
   384
jbailey@22
   385
dnl #######################################################################
rekkanoryo@736
   386
dnl # Disable installation of translation files
rekkanoryo@736
   387
dnl #######################################################################
rekkanoryo@737
   388
AC_ARG_ENABLE(nls, AC_HELP_STRING([--enable-nls], [enable installation of translation files]), enable_i18n="$enableval", enable_i18n=yes)
rekkanoryo@736
   389
rekkanoryo@736
   390
AM_CONDITIONAL(INSTALL_I18N, test "x$enable_i18n" = "xyes")
rekkanoryo@736
   391
rekkanoryo@736
   392
dnl #######################################################################
jbailey@22
   393
dnl # Version stuff
jbailey@22
   394
dnl #######################################################################
jbailey@22
   395
AC_CONFIG_COMMANDS_PRE([
jbailey@22
   396
	if test -e VERSION; then
jbailey@22
   397
		cp -p VERSION VERSION.ac-save
jbailey@22
   398
	fi
jbailey@22
   399
])
jbailey@22
   400
jbailey@22
   401
AC_CONFIG_COMMANDS_POST([
jbailey@22
   402
	cmp VERSION VERSION.ac-save || touch -r VERSION.ac-save VERSION
jbailey@22
   403
	rm -f VERSION.ac-save
jbailey@22
   404
])
jbailey@22
   405
jbailey@22
   406
dnl #######################################################################
grim@803
   407
dnl # plugin_pack.py has already done our heavy lifting from the boot
grim@803
   408
dnl # strap.  So we'll include our config file it created and call it to
grim@803
   409
dnl # determine our build directories
grim@787
   410
dnl #######################################################################
grim@787
   411
AC_PATH_PROG([PYTHON], [python], [no])
grim@787
   412
grim@803
   413
dnl # include the config file we created during bootstrapping
grim@803
   414
m4_include([plugin_pack.m4])
grim@787
   415
grim@787
   416
dnl #######################################################################
jbailey@22
   417
dnl # Finish up
jbailey@22
   418
dnl #######################################################################
grim@795
   419
AC_OUTPUT([Makefile
grim@795
   420
		   common/Makefile
grim@795
   421
		   doc/Makefile
grim@795
   422
		   po/Makefile.in
grim@795
   423
		   VERSION
grim@795
   424
		   plugin_pack.spec
jbailey@22
   425
])
jbailey@22
   426
jbailey@22
   427
dnl #######################################################################
jbailey@22
   428
dnl # Ouput!!
jbailey@22
   429
dnl #######################################################################
jbailey@22
   430
echo;
jbailey@22
   431
echo $PACKAGE $VERSION Configuration complete
jbailey@22
   432
echo;
jbailey@22
   433
echo Debugging enabled................: $enable_debug
jbailey@22
   434
echo;
grim@215
   435
grim@215
   436
echo Build purple plugins.............: $HAVE_PURPLE
grim@215
   437
if test x"$HAVE_PURPLE" = x"yes" ; then
grim@215
   438
	echo Installing purple plugins to.....: `eval eval echo $PURPLE_LIBDIR`
grim@228
   439
	echo Installing purple plugin data to.: `eval eval echo $PURPLE_DATADIR`
grim@816
   440
	echo Purple plugins to be built.......:
grim@816
   441
	eval $PP_PURPLE_BUILD
grim@215
   442
fi
grim@204
   443
echo;
grim@215
   444
grim@215
   445
echo Build pidgin plugins.............: $HAVE_PIDGIN
grim@215
   446
if test x"$HAVE_PIDGIN" = x"yes" ; then
grim@215
   447
	echo Installing pidgin plugins to.....: `eval eval echo $PIDGIN_LIBDIR`
grim@228
   448
	echo Installing pidgin plugin data to.: `eval eval echo $PIDGIN_DATADIR`
grim@816
   449
	echo Pidgin plugins to be built.......:
grim@816
   450
	eval $PP_PIDGIN_BUILD
grim@215
   451
fi
jbailey@22
   452
echo;
grim@215
   453
grim@215
   454
echo Build finch plugins..............: $HAVE_FINCH
grim@215
   455
if test x"$HAVE_FINCH" = x"yes" ; then
grim@215
   456
	echo Installing finch plugins to......: `eval eval echo $FINCH_LIBDIR`
grim@228
   457
	echo Installing finch plugin data to..: `eval eval echo $FINCH_DATADIR`
grim@816
   458
	echo Finch plugins to be built........: none - THIS IS NORMAL
grim@816
   459
	# uncomment this when we have finch plugins
grim@816
   460
	# eval $PP_FINCH_BUILD
grim@215
   461
fi
grim@215
   462
echo;
grim@215
   463
jbailey@22
   464
echo Type make to compile
jbailey@22
   465
echo;