From edec3faf85da18a209827294cb43d58ff89e7f50 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 11 Mar 2000 20:19:24 +0000 Subject: [PATCH] Building from objdir now works right git-svn-id: http://svn.irssi.org/repos/irssi/trunk@145 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- configure.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/configure.in b/configure.in index 0af65e12..c6c511ec 100644 --- a/configure.in +++ b/configure.in @@ -388,6 +388,11 @@ if test "$want_perl" = yes; then AC_SUBST(PERL_LDFLAGS) AC_DEFINE(HAVE_PERL) fi + + dnl ** building from objdir.. + if test ! -d plugins/perl/xs; then + mkdir -p plugins/perl/xs + fi fi dnl ** check what we want to build @@ -463,6 +468,17 @@ plugins/perl/Makefile stamp.h irssi.spec) +dnl ** for building from objdir +if test "x$want_perl" = "xyes"; then + old_dir=`pwd` && cd $srcdir && whole_dir=`pwd` && cd $old_dir + + if test "x$old_dir" != "x$whole_dir"; then + ln -sf $whole_dir/plugins/perl/xs/typemap plugins/perl/xs/typemap + ln -sf $whole_dir/plugins/perl/xs/Irssi.xs plugins/perl/xs/Irssi.xs + ln -sf $whole_dir/plugins/perl/xs/Irssi.pm plugins/perl/xs/Irssi.pm + fi +fi + echo if test "x$GUI_LIBS" != "x"; then