Fixed -I for prevention of -I/usr/include during Linux kernel mod compilation.
[lufs.git] / autogen.pl
index 7d90ab5..b8a375b 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,6 +40,7 @@ AutoGen->run(
                "name"=>"lufs",
                "ARGV"=>\@ARGV,
                "clean"=>[qw(
+                               ./ChangeLog.captive.bak
                                ./lufsd/lufsd
                                ./util/auto.ftpfs
                                ./util/auto.sshfs
@@ -43,6 +50,14 @@ AutoGen->run(
                                ./kernel/Linux/prepmod
                                ./kernel/Linux/modbin/*.o
                                ./kernel/Linux/modbin/prepmod-tmp-dir
+                               ./kernel/Linux/2.4/makefile
+                               ./kernel/Linux/2.5/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;
+                               },
                );