configure-fail-if-cant-guess-linux-version-for-sysname-20010719
[openafs.git] / configure.in
index bf87234..75efd02 100644 (file)
@@ -62,6 +62,9 @@ system=$host
 case $system in
         *-linux*)
                MKAFS_OSTYPE=LINUX
+               if test "x$enable_redhat_buildsys" = "xyes"; then
+                AC_DEFINE(ENABLE_REDHAT_BUILDSYS)
+               fi
                if test "x$enable_kernel_module" = "xyes"; then
                 if test "x$with_linux_kernel_headers" != "x"; then
                   LINUX_KERNEL_PATH="$with_linux_kernel_headers"
@@ -228,7 +231,7 @@ else
                power*-ibm-aix4.3*)
                        AFS_SYSNAME="rs_aix42"
                        ;;
-               default)
+               *)
                        AC_MSG_ERROR(An AFS sysname is required)
                        exit 1
                        ;;
@@ -236,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"
                        ;;