build-system-updates-20060323
[openafs.git] / src / config / linux-version
index a6759ec..caa7b25 100644 (file)
@@ -40,15 +40,21 @@ CAN_BUILD=""
 for VERS in $LINUX_VERS ; do
        dir=$LINUX_SRCDIR$VERS
        if [ ! -d $dir ] ; then
+           dir=$LINUX_SRCDIR
+           if [ ! -d $dir ] ; then
                echo "ERROR: Cannot build for Linux kernel $VERS: $dir does not exist."
                errors=true
                continue
+           fi
        fi
        header=$LINUX_SRCDIR$VERS/include/linux/version.h
        if [ ! -f $header ] ; then
-           echo "ERROR: Cannot build for Linux kernel $VERS: $header does not exist."
-           errors=true
-           continue
+           header=$LINUX_SRCDIR/include/linux/version.h
+           if [ ! -f $header ] ; then
+               echo "ERROR: Cannot build for Linux kernel $VERS: $header does not exist."
+               errors=true
+               continue
+           fi
        fi
 
        vers=`fgrep UTS_RELEASE $LINUX_SRCDIR$VERS/include/linux/version.h |