Merged silc_1_0_branch to trunk.
[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 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="$silc_prefix/help"
34 AC_ARG_WITH(helpdir,
35   [[  --with-helpdir=DIR      directory for SILC Client help files [PREFIX/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 AC_CONFIG_SUBDIRS(apps/irssi)
56 AC_CONFIG_FILES(
57 apps/irssi/Makefile.defines
58 apps/irssi/Makefile.defines_int
59 )
60
61 irssi="yes"
62 #ifdef SILC_DIST_TOOLKIT
63 fi      # without_irssi = false
64 #endif SILC_DIST_TOOLKIT
65
66 AC_SUBST(IRSSI_SUBDIR)
67 #endif SILC_DIST_CLIENT