diff options
author | Timo Sirainen <cras@irssi.org> | 2001-10-22 20:00:15 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-10-22 20:00:15 +0000 |
commit | 550df275580b253e8c3ebb5dbfceef87311a63c9 (patch) | |
tree | bbffe5dd3dbbe6cf2fb7916c2cd734f103b6ee8c /configure.in | |
parent | 14092a6b255dd8a3a34078f20531dedee6e13632 (diff) | |
download | irssi-550df275580b253e8c3ebb5dbfceef87311a63c9.zip |
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
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 13 |
1 files 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 |