dnl Checks for signal functions.
case "$host_os_name" in
- linux | gnu)
+ linux* | gnu*)
# Do not use sigset on Linux or GNU HURD
;;
*)
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
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
# Locale data
if test "$localedir" = "\${datarootdir}/locale"; then
case "$host_os_name" in
- linux | gnu | *bsd* | darwin*)
+ linux* | gnu* | *bsd* | darwin*)
CUPS_LOCALEDIR="$datarootdir/locale"
;;
DSOXX="\$(CXX)"
DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G \$(OPTIM)"
;;
- linux | gnu | *bsd*)
+ linux* | gnu* | *bsd*)
LIBCUPS="lib$cupsbase.so.2"
LIBCUPSCGI="libcupscgi.so.1"
LIBCUPSIMAGE="libcupsimage.so.2"
EXPORT_LDFLAGS="-Wl,-R$libdir"
fi
;;
- linux | gnu)
+ linux* | gnu*)
# Linux, and HURD...
if test $exec_prefix != /usr; then
DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
if test "x$rcstart" = x; then
case "$host_os_name" in
- linux | gnu | gnu/k*bsd*)
+ linux* | gnu*)
# Linux
rcstart="81"
;;
if test "x$rcstop" = x; then
case "$host_os_name" in
- linux | gnu | gnu/k*bsd*)
+ linux* | gnu*)
# Linux
rcstop="36"
;;
case "$host_os_name" in
- linux | gnu)
+ linux* | gnu*)
# Do not use sigset on Linux or GNU HURD
;;
*)
# Locale data
if test "$localedir" = "\${datarootdir}/locale"; then
case "$host_os_name" in
- linux | gnu | *bsd* | darwin*)
+ linux* | gnu* | *bsd* | darwin*)
CUPS_LOCALEDIR="$datarootdir/locale"
;;
DSOXX="\$(CXX)"
DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G \$(OPTIM)"
;;
- linux | gnu | *bsd*)
+ linux* | gnu* | *bsd*)
LIBCUPS="lib$cupsbase.so.2"
LIBCUPSCGI="libcupscgi.so.1"
LIBCUPSIMAGE="libcupsimage.so.2"
EXPORT_LDFLAGS="-Wl,-R$libdir"
fi
;;
- linux | gnu)
+ linux* | gnu*)
# Linux, and HURD...
if test $exec_prefix != /usr; then
DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
if test "x$rcstart" = x; then
case "$host_os_name" in
- linux | gnu | gnu/k*bsd*)
+ linux* | gnu*)
# Linux
rcstart="81"
;;
if test "x$rcstop" = x; then
case "$host_os_name" in
- linux | gnu | gnu/k*bsd*)
+ linux* | gnu*)
# Linux
rcstop="36"
;;
if test "${with_exe_file_perm+set}" = set; then :
withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
else
- 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*
fi
+ CUPS_EXE_FILE_PERM="755"
+ ;;
+ *)
+ CUPS_EXE_FILE_PERM="555"
+ ;;
+ esac)
if test "${with_cupsd_file_perm+set}" = set; then :
withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
else
- 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*
fi
+ CUPS_CUPSD_FILE_PERM="700"
+ ;;
+ *)
+ CUPS_CUPSD_FILE_PERM="500"
+ ;;
+ esac)