])
], [
# Add vendor-specific compiler options...
- AS_CASE([$host_os_name], [sunos*], [
+ AS_CASE([$host_os_name], [sunos* | solaris*], [
# Solaris
AS_IF([test -z "$OPTIM"], [
OPTIM="-xO2"
AS_IF([test "x$default_printcap" = "xdefault"], [
AS_CASE([$host_os_name], [darwin*], [
CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
- ], [sunos*], [
+ ], [sunos* | solaris*], [
CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
], [*], [
CUPS_DEFAULT_PRINTCAP="/etc/printcap"
# Locale data
AS_IF([test "$localedir" = "\${datarootdir}/locale"], [
- AS_CASE(["$host_os_name"], [linux* | gnu* | *bsd* | darwin*], [
+ AS_CASE(["$host_os_name"], [linux* | gnu* | *bsd* | darwin* | solaris*], [
CUPS_LOCALEDIR="$datarootdir/locale"
], [*], [
# This is the standard System V location...
AS_CASE(["$host_os_name"], [darwin*], [
# Darwin (macOS)
CUPS_STATEDIR="$CUPS_SERVERROOT"
+ ], [sun* | solaris*], [
+ AS_IF([test -d /system/volatile], [
+ CUPS_STATEDIR="/system/volatile/cups"
+ ])
], [*], [
# All others
CUPS_STATEDIR="$localstatedir/run/cups"
], [
AC_MSG_RESULT([no])
])
- ], [sunos*], [
+ ], [sunos* | solaris*], [
# Solaris has a non-standard krb5-config, don't use it!
SAVELIBS="$LIBS"
AC_CHECK_LIB([gss], [gss_display_status], [
DSO="\$(CC)"
DSOXX="\$(CXX)"
DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G"
- ], [linux* | gnu* | *bsd*], [
+ ], [linux* | gnu* | *bsd* | solaris*], [
LIBCUPS="lib$cupsbase.so.2"
AS_IF([test "x$cupsimagebase" != x], [
LIBCUPSIMAGE="lib$cupsimagebase.so.2"
# Tell the run-time linkers where to find a DSO. Some platforms
# need this option, even when the library is installed in a
# standard location...
- AS_CASE([$host_os_name], [sunos*], [
+ AS_CASE([$host_os_name], [sunos* | solaris*], [
# Solaris...
AS_IF([test $exec_prefix != /usr], [
DSOFLAGS="-R$libdir $DSOFLAGS"
# Solaris requires -D_POSIX_PTHREAD_SEMANTICS to be POSIX-
# compliant... :(
- AS_IF([test $host_os_name = sunos], [
+ AS_IF([test $host_os_name = solaris], [
PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
])
break