]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Update default includedir to ${prefix}/include/libcups2
authorMichael R Sweet <msweet@msweet.org>
Mon, 18 Nov 2024 16:13:31 +0000 (11:13 -0500)
committerMichael R Sweet <msweet@msweet.org>
Mon, 18 Nov 2024 16:13:31 +0000 (11:13 -0500)
Fix default domain socket on macOS.

config-scripts/cups-directories.m4
config-scripts/cups-network.m4
configure

index 4c57370e07b02ba3c4b14f4d766022e80976c129..032707b991a0791ef7d7a79025609de58b50164b 100644 (file)
@@ -9,8 +9,11 @@ dnl Licensed under Apache License v2.0.  See the file "LICENSE" for more informa
 dnl
 
 dnl Fix "prefix" variable if it hasn't been specified...
-AS_IF([test "$prefix" = "NONE"], [
-    prefix="/usr/local"
+AS_IF([test "$prefix" = NONE], [
+    # Default prefix isn't bound until AC_OUTPUT...
+    realprefix="/usr/local"
+], [
+    realprefix="$prefix"
 ])
 
 dnl Fix "exec_prefix" variable if it hasn't been specified...
@@ -18,7 +21,7 @@ AS_IF([test "$exec_prefix" = "NONE"], [
     AS_IF([test "$prefix" = "/"], [
        exec_prefix="/usr"
     ], [
-       exec_prefix="$prefix"
+       exec_prefix="$realprefix"
     ])
 ])
 
@@ -41,7 +44,7 @@ AS_IF([test "$datarootdir" = "\${prefix}/share"], [
     AS_IF([test "$prefix" = "/"], [
        datarootdir="/usr/share"
     ], [
-       datarootdir="$prefix/share"
+       datarootdir="$realprefix/share"
     ])
 ])
 
@@ -50,15 +53,19 @@ AS_IF([test "$datadir" = "\${prefix}/share"], [
     AS_IF([test "$prefix" = "/"], [
        datadir="/usr/share"
     ], [
-       datadir="$prefix/share"
+       datadir="$realprefix/share"
     ])
 ], [test "$datadir" = "\${datarootdir}"], [
     datadir="$datarootdir"
 ])
 
 dnl Fix "includedir" variable if it hasn't been specified...
-AS_IF([test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"], [
-    includedir="/usr/include"
+AS_IF([test "$includedir" = "\${prefix}/include"], [
+    AS_IF([test "$prefix" = "/"], [
+       includedir="/usr/include/libcups2"
+    ], [
+       includedir="$realprefix/include/libcups2"
+    ])
 ])
 AS_IF([test "$includedir" != "/usr/include"], [
     PKGCONFIG_CFLAGS="$PKGCONFIG_CFLAGS -I$includedir"
@@ -73,7 +80,7 @@ AS_IF([test "$localstatedir" = "\${prefix}/var"], [
            localstatedir="/var"
        ])
     ], [
-       localstatedir="$prefix/var"
+       localstatedir="$realprefix/var"
     ])
 ])
 
@@ -86,7 +93,7 @@ AS_IF([test "$sysconfdir" = "\${prefix}/etc"], [
            sysconfdir="/etc"
        ])
     ], [
-       sysconfdir="$prefix/etc"
+       sysconfdir="$realprefix/etc"
     ])
 ])
 
index 6d5e41ea070cd8cea51a2004d709e3df86dfacaa..c3c699b28286ed9a211dd9eba76fe029717421f5 100644 (file)
@@ -61,7 +61,7 @@ AS_IF([test x$enable_domainsocket != xno -a x$default_domainsocket != xno], [
     AS_IF([test "x$default_domainsocket" = x], [
         AS_CASE(["$host_os_name"], [darwin*], [
            # Darwin and macOS do their own thing...
-           CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
+           CUPS_DEFAULT_DOMAINSOCKET="/private/var/run/cupsd"
        ], [*], [
            # All others use FHS standard...
            CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
index 3317fcadde94f59a8ead562168045afbbe6d9c21..08d0d5546a5a839802c536e6047a49feeb9323c7 100755 (executable)
--- a/configure
+++ b/configure
@@ -7019,10 +7019,15 @@ esac
 
 
 
-if test "$prefix" = "NONE"
+if test "$prefix" = NONE
 then :
 
-    prefix="/usr/local"
+    # Default prefix isn't bound until AC_OUTPUT...
+    realprefix="/usr/local"
+
+else $as_nop
+
+    realprefix="$prefix"
 
 fi
 
@@ -7036,7 +7041,7 @@ then :
 
 else $as_nop
 
-       exec_prefix="$prefix"
+       exec_prefix="$realprefix"
 
 fi
 
@@ -7074,7 +7079,7 @@ then :
 
 else $as_nop
 
-       datarootdir="$prefix/share"
+       datarootdir="$realprefix/share"
 
 fi
 
@@ -7090,7 +7095,7 @@ then :
 
 else $as_nop
 
-       datadir="$prefix/share"
+       datadir="$realprefix/share"
 
 fi
 
@@ -7101,10 +7106,19 @@ then :
 
 fi
 
-if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"
+if test "$includedir" = "\${prefix}/include"
+then :
+
+    if test "$prefix" = "/"
 then :
 
-    includedir="/usr/include"
+       includedir="/usr/include/libcups2"
+
+else $as_nop
+
+       includedir="$realprefix/include/libcups2"
+
+fi
 
 fi
 if test "$includedir" != "/usr/include"
@@ -7133,7 +7147,7 @@ fi
 
 else $as_nop
 
-       localstatedir="$prefix/var"
+       localstatedir="$realprefix/var"
 
 fi
 
@@ -7158,7 +7172,7 @@ fi
 
 else $as_nop
 
-       sysconfdir="$prefix/etc"
+       sysconfdir="$realprefix/etc"
 
 fi
 
@@ -8767,7 +8781,7 @@ then :
   darwin*) :
 
            # Darwin and macOS do their own thing...
-           CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
+           CUPS_DEFAULT_DOMAINSOCKET="/private/var/run/cupsd"
         ;; #(
   *) :