]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
host_os_name value in config-scripts has changed to 'solaris' some time ago
authorMartin Rehak <martin.rehak@oracle.com>
Thu, 18 May 2023 13:48:43 +0000 (15:48 +0200)
committerMartin Rehak <martin.rehak@oracle.com>
Fri, 26 May 2023 07:36:53 +0000 (09:36 +0200)
config-scripts/cups-compiler.m4
config-scripts/cups-defaults.m4
config-scripts/cups-directories.m4
config-scripts/cups-gssapi.m4
config-scripts/cups-sharedlibs.m4
config-scripts/cups-threads.m4

index 6a4f4ba87e8791a6987c7a0056eb53583c16cfc6..33d444e74362c478346e080d1415a42620213fb5 100644 (file)
@@ -202,7 +202,7 @@ AS_IF([test -n "$GCC"], [
     ])
 ], [
     # 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"
index 8678f6a7a7f0be5a8cd9d7faf9b8c67cb6baf2a9..04a9f533f381fdd71a8aab60538e69362ae279f5 100644 (file)
@@ -335,7 +335,7 @@ AS_IF([test x$default_printcap != xno], [
     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"
index bb6008c092bf5e1202dd8a2e8994606616532ebb..a2f5c615cb59f5f78cba4227dfbe9f6ae056104f 100644 (file)
@@ -184,7 +184,7 @@ AC_SUBST([CUPS_DOCROOT])
 
 # 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...
@@ -266,6 +266,10 @@ AC_ARG_WITH([rundir], AS_HELP_STRING([--with-rundir], [set transient run-time st
     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"
index 996bca8711c07c460bb657ecebbb180a630fa9d4..e90b6a8641b8510bb49577f0eefcea53047f5e97 100644 (file)
@@ -30,7 +30,7 @@ AS_IF([test x$enable_gssapi = xyes], [
        ], [
            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], [
index c17cd48754127c58ba049efcb167b7562268a3f8..0fc90edb635ddf0779d7bfe6de492f4e308503c5 100644 (file)
@@ -28,7 +28,7 @@ AS_IF([test x$enable_shared != xno], [
        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"
@@ -102,7 +102,7 @@ AS_IF([test "$DSO" != ":"], [
     # 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"
index 8699f7df156bc8433d5afb90cc326e47e1a0f07b..f657f2f22826bff7c5b1a4fcec06546671491b90 100644 (file)
@@ -38,7 +38,7 @@ AS_IF([test x$ac_cv_header_pthread_h = xyes], [
 
            # 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