94559d06923e706c70ccb063c74e48efdf6dd36d
[silc.git] / apps / irssi / configure.ad
1 #ifdef SILC_DIST_CLIENT
2 #
3 #  apps/irssi/configure.ad
4 #
5 #  Author: Pekka Riikonen <priikone@silcnet.org>
6 #
7 #  Copyright (C) 2005 - 2007 Pekka Riikonen
8 #
9 #  This program is free software; you can redistribute it and/or modify
10 #  it under the terms of the GNU General Public License as published by
11 #  the Free Software Foundation; version 2 of the License.
12 #
13 #  This program is distributed in the hope that it will be useful,
14 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #  GNU General Public License for more details.
17 #
18
19 # The actual configure script is apps/irssi/configure.in.  This file is
20 # for getting irssi specific stuff to top configure script with Autodist
21 # without polluting the top configure.ad file with these stuff.
22
23 IRSSI_SUBDIR=
24
25 #ifdef SILC_DIST_TOOLKIT
26 if test x$without_irssi = xfalse; then
27 #endif SILC_DIST_TOOLKIT
28
29 IRSSI_SUBDIR=irssi
30
31 # help directory
32 #
33 HELPDIR="$datadir/silc/help"
34 AC_ARG_WITH(helpdir,
35   [[  --with-helpdir=DIR      directory for SILC Client help files [DATADIR/silc/help]]],
36   [
37     case "$withval" in
38       no|yes)
39         ;;
40       *)
41        HELPDIR="$withval"
42        ;;
43     esac
44   ])
45 AC_SUBST(HELPDIR)
46 AC_DEFINE_UNQUOTED([SILC_HELPDIR], "$HELPDIR", [SILC_HELPDIR])
47
48 # Irssi perl support
49 #
50 AC_ARG_WITH(perl,
51   [[  --with-perl[=yes|no|module]  Build with Perl support - also specifies
52                                if it should be built into main silc binary
53                                (static, default) or as a module]])
54
55 # Irssi SILC Plugin support
56 #
57 AC_ARG_ENABLE(silc-plugin,
58 [  --enable-silc-plugin    Compile the SILC Plugin instead of the SILC Client])
59
60 AC_CONFIG_SUBDIRS(apps/irssi)
61 AC_CONFIG_FILES(
62 apps/irssi/Makefile.defines
63 apps/irssi/Makefile.defines_int
64 )
65
66 irssi="yes"
67 #ifdef SILC_DIST_TOOLKIT
68 fi      # without_irssi = false
69 #endif SILC_DIST_TOOLKIT
70
71 AC_SUBST(IRSSI_SUBDIR)
72 #endif SILC_DIST_CLIENT