summaryrefslogtreecommitdiff
path: root/src/fe-none
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-10-14 15:19:56 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-10-14 15:19:56 +0000
commit76a6b9a93157ff7b132bdf212f74be8ff8f3b481 (patch)
treed2d2f89c9453e8c0da7ee30ee700c71335915be1 /src/fe-none
parent5733a8c6e39ef869aaec89ac3044a8249d1927d3 (diff)
downloadirssi-76a6b9a93157ff7b132bdf212f74be8ff8f3b481.zip
perl fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@754 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-none')
-rw-r--r--src/fe-none/Makefile.am3
-rw-r--r--src/fe-none/irssi.c13
2 files changed, 14 insertions, 2 deletions
diff --git a/src/fe-none/Makefile.am b/src/fe-none/Makefile.am
index 528e3a7b..7d276128 100644
--- a/src/fe-none/Makefile.am
+++ b/src/fe-none/Makefile.am
@@ -12,8 +12,7 @@ botti_DEPENDENCIES = @COMMON_NOUI_LIBS@
botti_LDADD = \
@COMMON_NOUI_LIBS@ \
- $(PROG_LIBS) \
- $(PERL_LDFLAGS)
+ $(PROG_LIBS)
botti_SOURCES = \
irssi.c
diff --git a/src/fe-none/irssi.c b/src/fe-none/irssi.c
index 3c449e22..bd93edd8 100644
--- a/src/fe-none/irssi.c
+++ b/src/fe-none/irssi.c
@@ -23,6 +23,11 @@
#include "signals.h"
#include "core.h"
+#ifdef HAVE_STATIC_PERL
+void perl_init(void);
+void perl_deinit(void);
+#endif
+
void irc_init(void);
void irc_deinit(void);
@@ -57,11 +62,19 @@ void noui_init(void)
signal_add("reload", (SIGNAL_FUNC) sig_reload);
signal_add("gui exit", (SIGNAL_FUNC) sig_exit);
+
+#ifdef HAVE_STATIC_PERL
+ perl_init();
+#endif
signal_emit("irssi init finished", 0);
}
void noui_deinit(void)
{
+#ifdef HAVE_STATIC_PERL
+ perl_deinit();
+#endif
+
signal_remove("reload", (SIGNAL_FUNC) sig_reload);
signal_remove("gui exit", (SIGNAL_FUNC) sig_exit);
irc_deinit();