]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - config-scripts/cups-defaults.m4
Fix some of the Linux-specific configure tests.
[thirdparty/cups.git] / config-scripts / cups-defaults.m4
index 9de4efc5149e609348f07ea5582aa582e9aaf4d7..22c193884b91b4e0b0444e9f027f382677e329ce 100644 (file)
@@ -40,11 +40,14 @@ fi
 dnl Default executable file permissions
 AC_ARG_WITH(exe_file_perm, [  --with-exe-file-perm set default exectuable permissions value, default=0555],
        CUPS_EXE_FILE_PERM="$withval",
-       if test "x$host_os_name" = xlinux; then
-               CUPS_EXE_FILE_PERM="755"
-       else
-               CUPS_EXE_FILE_PERM="555"
-       fi)
+       case "$host_os_name" in
+               linux* | gnu*)
+                       CUPS_EXE_FILE_PERM="755"
+                       ;;
+               *)
+                       CUPS_EXE_FILE_PERM="555"
+                       ;;
+       esac)
 AC_SUBST(CUPS_EXE_FILE_PERM)
 
 dnl Default ConfigFilePerm
@@ -61,11 +64,14 @@ AC_DEFINE_UNQUOTED(CUPS_DEFAULT_CONFIG_FILE_PERM, 0$CUPS_CONFIG_FILE_PERM)
 dnl Default permissions for cupsd
 AC_ARG_WITH(cupsd_file_perm, [  --with-cupsd-file-perm  set default cupsd permissions, default=0500],
        CUPS_CUPSD_FILE_PERM="$withval",
-       if test "x$host_os_name" = xlinux; then
-               CUPS_CUPSD_FILE_PERM="700"
-       else
-               CUPS_CUPSD_FILE_PERM="500"
-       fi)
+       case "$host_os_name" in
+               linux* | gnu*)
+                       CUPS_CUPSD_FILE_PERM="700"
+                       ;;
+               *)
+                       CUPS_CUPSD_FILE_PERM="500"
+                       ;;
+       esac)
 AC_SUBST(CUPS_CUPSD_FILE_PERM)
 
 dnl Default LogFilePerm