configure-fail-if-cant-guess-linux-version-for-sysname-20010719
[openafs.git] / configure.in
index 829b87a..75efd02 100644 (file)
@@ -239,6 +239,9 @@ else
        case $AFS_SYSNAME in
                *_linux*)
                        AFS_SYSKVERS=`echo $LINUX_VERSION | awk -F\. '{print $1 $2}'`
+                       if test "x${AFS_SYSKVERS}" = "x"; then
+                        AC_MSG_ERROR(Couldn't guess your Linux version. Please use the --with-afs-sysname option to configure an AFS sysname.)
+                       fi
                        _AFS_SYSNAME=`echo $AFS_SYSNAME|sed s/XX\$/$AFS_SYSKVERS/`
                        AFS_SYSNAME="$_AFS_SYSNAME"
                        ;;