diff options
author | Timo Sirainen <cras@irssi.org> | 2000-03-11 20:19:24 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-03-11 20:19:24 +0000 |
commit | edec3faf85da18a209827294cb43d58ff89e7f50 (patch) | |
tree | 2e42848f287785ff1222f31b10f091c9e6d036dd | |
parent | 0c66bb3185395f28373d38134f927181eb68cfba (diff) | |
download | irssi-edec3faf85da18a209827294cb43d58ff89e7f50.zip |
Building from objdir now works right
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@145 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | configure.in | 16 |
1 files changed, 16 insertions, 0 deletions
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 |