From 550df275580b253e8c3ebb5dbfceef87311a63c9 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 22 Oct 2001 20:00:15 +0000 Subject: Fixed building from objdir (symlinks irssi-version.h and in ui/textui perl stuff) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1894 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- configure.in | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 2f69765e..e2a60ec6 100644 --- a/configure.in +++ b/configure.in @@ -755,11 +755,16 @@ irssi.spec irssi-config) dnl ** for building from objdir -if test "x$want_perl" != "xno"; then - old_dir=`pwd` && cd $srcdir && whole_dir=`pwd` && cd $old_dir +old_dir=`pwd` && cd $srcdir && whole_dir=`pwd` && cd $old_dir +if test "x$old_dir" != "x$whole_dir"; then + $LN_S $srcdir/irssi-version.h irssi-version.h - if test "x$old_dir" != "x$whole_dir"; then - for file in $whole_dir/src/perl/*.[[ch]] $whole_dir/src/perl/libperl_orig.la $whole_dir/src/perl/libperl_dynaloader.la $whole_dir/src/perl/common/typemap $whole_dir/src/perl/common/module.h $whole_dir/src/perl/common/*.xs $whole_dir/src/perl/irc/typemap $whole_dir/src/perl/irc/module.h $whole_dir/src/perl/irc/*.xs; do + if test "x$want_perl" != "xno"; then + subdirfiles="" + for i in $whole_dir/src/perl/common $whole_dir/src/perl/irc $whole_dir/src/perl/ui $whole_dir/src/perl/textui; do + subdirfiles=`echo $subdirfiles $i/typemap $i/module.h $i/*.xs` + done + for file in $whole_dir/src/perl/*.[[ch]] $whole_dir/src/perl/libperl_orig.la $whole_dir/src/perl/libperl_dynaloader.la $subdirfiles; do link=`echo $file|$sedpath "s?$whole_dir/??"` rm -f $link $LN_S $file $link -- cgit v1.2.3