+Support for TurboLinux kernels.
[lufs.git] / autogen.pl
index 7d90ab5..c2baea2 100755 (executable)
@@ -24,6 +24,12 @@ $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
 use strict;
 use warnings;
 
+BEGIN {
+       # 'macros' could got checked out empty by our '-r captive' tag.
+       if (!-f "./macros/AutoGen.pm") {
+               do { system $_ and die "$_: $!"; } for ("cvs co -A macros");
+               }
+       }
 use lib "./macros/";
 use AutoGen;
 
@@ -34,15 +40,23 @@ AutoGen->run(
                "name"=>"lufs",
                "ARGV"=>\@ARGV,
                "clean"=>[qw(
-                               ./lufsd/lufsd
+                               ./ChangeLog.captive.bak
+                               ./lufsd/lufsd-bin
                                ./util/auto.ftpfs
                                ./util/auto.sshfs
-                               ./util/lufsmnt-bin
+                               ./util/lufsmnt
                                ./util/lufsmount
-                               ./util/lufsumount
                                ./kernel/Linux/prepmod
                                ./kernel/Linux/modbin/*.o
                                ./kernel/Linux/modbin/prepmod-tmp-dir
+                               ./kernel/Linux/2.4/makefile
+                               ./kernel/Linux/2.6/makefile
+                               ./debian/changelog
                                )],
                "ChangeLog"=>"ChangeLog.captive",
+               "prep"=>sub {
+                               # 1.6 to prevent weird error on configure.in:81 with unsatistifed dependencies
+                               AutoGen->checkcommandversion("automake","1.6");
+                               1;
+                               },
                );