1*5e7646d2SAndroid Build Coastguard Workerdnl 2*5e7646d2SAndroid Build Coastguard Workerdnl Directory stuff for CUPS. 3*5e7646d2SAndroid Build Coastguard Workerdnl 4*5e7646d2SAndroid Build Coastguard Workerdnl Copyright 2007-2017 by Apple Inc. 5*5e7646d2SAndroid Build Coastguard Workerdnl Copyright 1997-2007 by Easy Software Products, all rights reserved. 6*5e7646d2SAndroid Build Coastguard Workerdnl 7*5e7646d2SAndroid Build Coastguard Workerdnl Licensed under Apache License v2.0. See the file "LICENSE" for more information. 8*5e7646d2SAndroid Build Coastguard Workerdnl 9*5e7646d2SAndroid Build Coastguard Worker 10*5e7646d2SAndroid Build Coastguard WorkerAC_PREFIX_DEFAULT(/) 11*5e7646d2SAndroid Build Coastguard Worker 12*5e7646d2SAndroid Build Coastguard Workerdnl Fix "prefix" variable if it hasn't been specified... 13*5e7646d2SAndroid Build Coastguard Workerif test "$prefix" = "NONE"; then 14*5e7646d2SAndroid Build Coastguard Worker prefix="/" 15*5e7646d2SAndroid Build Coastguard Workerfi 16*5e7646d2SAndroid Build Coastguard Worker 17*5e7646d2SAndroid Build Coastguard Workerdnl Fix "exec_prefix" variable if it hasn't been specified... 18*5e7646d2SAndroid Build Coastguard Workerif test "$exec_prefix" = "NONE"; then 19*5e7646d2SAndroid Build Coastguard Worker if test "$prefix" = "/"; then 20*5e7646d2SAndroid Build Coastguard Worker exec_prefix="/usr" 21*5e7646d2SAndroid Build Coastguard Worker else 22*5e7646d2SAndroid Build Coastguard Worker exec_prefix="$prefix" 23*5e7646d2SAndroid Build Coastguard Worker fi 24*5e7646d2SAndroid Build Coastguard Workerfi 25*5e7646d2SAndroid Build Coastguard Worker 26*5e7646d2SAndroid Build Coastguard Workerdnl Fix "bindir" variable... 27*5e7646d2SAndroid Build Coastguard Workerif test "$bindir" = "\${exec_prefix}/bin"; then 28*5e7646d2SAndroid Build Coastguard Worker bindir="$exec_prefix/bin" 29*5e7646d2SAndroid Build Coastguard Workerfi 30*5e7646d2SAndroid Build Coastguard Worker 31*5e7646d2SAndroid Build Coastguard WorkerAC_DEFINE_UNQUOTED(CUPS_BINDIR, "$bindir") 32*5e7646d2SAndroid Build Coastguard Worker 33*5e7646d2SAndroid Build Coastguard Workerdnl Fix "sbindir" variable... 34*5e7646d2SAndroid Build Coastguard Workerif test "$sbindir" = "\${exec_prefix}/sbin"; then 35*5e7646d2SAndroid Build Coastguard Worker sbindir="$exec_prefix/sbin" 36*5e7646d2SAndroid Build Coastguard Workerfi 37*5e7646d2SAndroid Build Coastguard Worker 38*5e7646d2SAndroid Build Coastguard WorkerAC_DEFINE_UNQUOTED(CUPS_SBINDIR, "$sbindir") 39*5e7646d2SAndroid Build Coastguard Worker 40*5e7646d2SAndroid Build Coastguard Workerdnl Fix "sharedstatedir" variable if it hasn't been specified... 41*5e7646d2SAndroid Build Coastguard Workerif test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then 42*5e7646d2SAndroid Build Coastguard Worker sharedstatedir="/usr/com" 43*5e7646d2SAndroid Build Coastguard Workerfi 44*5e7646d2SAndroid Build Coastguard Worker 45*5e7646d2SAndroid Build Coastguard Workerdnl Fix "datarootdir" variable if it hasn't been specified... 46*5e7646d2SAndroid Build Coastguard Workerif test "$datarootdir" = "\${prefix}/share"; then 47*5e7646d2SAndroid Build Coastguard Worker if test "$prefix" = "/"; then 48*5e7646d2SAndroid Build Coastguard Worker datarootdir="/usr/share" 49*5e7646d2SAndroid Build Coastguard Worker else 50*5e7646d2SAndroid Build Coastguard Worker datarootdir="$prefix/share" 51*5e7646d2SAndroid Build Coastguard Worker fi 52*5e7646d2SAndroid Build Coastguard Workerfi 53*5e7646d2SAndroid Build Coastguard Worker 54*5e7646d2SAndroid Build Coastguard Workerdnl Fix "datadir" variable if it hasn't been specified... 55*5e7646d2SAndroid Build Coastguard Workerif test "$datadir" = "\${prefix}/share"; then 56*5e7646d2SAndroid Build Coastguard Worker if test "$prefix" = "/"; then 57*5e7646d2SAndroid Build Coastguard Worker datadir="/usr/share" 58*5e7646d2SAndroid Build Coastguard Worker else 59*5e7646d2SAndroid Build Coastguard Worker datadir="$prefix/share" 60*5e7646d2SAndroid Build Coastguard Worker fi 61*5e7646d2SAndroid Build Coastguard Workerelif test "$datadir" = "\${datarootdir}"; then 62*5e7646d2SAndroid Build Coastguard Worker datadir="$datarootdir" 63*5e7646d2SAndroid Build Coastguard Workerfi 64*5e7646d2SAndroid Build Coastguard Worker 65*5e7646d2SAndroid Build Coastguard Workerdnl Fix "includedir" variable if it hasn't been specified... 66*5e7646d2SAndroid Build Coastguard Workerif test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then 67*5e7646d2SAndroid Build Coastguard Worker includedir="/usr/include" 68*5e7646d2SAndroid Build Coastguard Workerfi 69*5e7646d2SAndroid Build Coastguard Worker 70*5e7646d2SAndroid Build Coastguard Workerdnl Fix "localstatedir" variable if it hasn't been specified... 71*5e7646d2SAndroid Build Coastguard Workerif test "$localstatedir" = "\${prefix}/var"; then 72*5e7646d2SAndroid Build Coastguard Worker if test "$prefix" = "/"; then 73*5e7646d2SAndroid Build Coastguard Worker if test "$host_os_name" = darwin; then 74*5e7646d2SAndroid Build Coastguard Worker localstatedir="/private/var" 75*5e7646d2SAndroid Build Coastguard Worker else 76*5e7646d2SAndroid Build Coastguard Worker localstatedir="/var" 77*5e7646d2SAndroid Build Coastguard Worker fi 78*5e7646d2SAndroid Build Coastguard Worker else 79*5e7646d2SAndroid Build Coastguard Worker localstatedir="$prefix/var" 80*5e7646d2SAndroid Build Coastguard Worker fi 81*5e7646d2SAndroid Build Coastguard Workerfi 82*5e7646d2SAndroid Build Coastguard Worker 83*5e7646d2SAndroid Build Coastguard Workerdnl Fix "sysconfdir" variable if it hasn't been specified... 84*5e7646d2SAndroid Build Coastguard Workerif test "$sysconfdir" = "\${prefix}/etc"; then 85*5e7646d2SAndroid Build Coastguard Worker if test "$prefix" = "/"; then 86*5e7646d2SAndroid Build Coastguard Worker if test "$host_os_name" = darwin; then 87*5e7646d2SAndroid Build Coastguard Worker sysconfdir="/private/etc" 88*5e7646d2SAndroid Build Coastguard Worker else 89*5e7646d2SAndroid Build Coastguard Worker sysconfdir="/etc" 90*5e7646d2SAndroid Build Coastguard Worker fi 91*5e7646d2SAndroid Build Coastguard Worker else 92*5e7646d2SAndroid Build Coastguard Worker sysconfdir="$prefix/etc" 93*5e7646d2SAndroid Build Coastguard Worker fi 94*5e7646d2SAndroid Build Coastguard Workerfi 95*5e7646d2SAndroid Build Coastguard Worker 96*5e7646d2SAndroid Build Coastguard Workerdnl Fix "libdir" variable... 97*5e7646d2SAndroid Build Coastguard Workerif test "$libdir" = "\${exec_prefix}/lib"; then 98*5e7646d2SAndroid Build Coastguard Worker case "$host_os_name" in 99*5e7646d2SAndroid Build Coastguard Worker linux*) 100*5e7646d2SAndroid Build Coastguard Worker if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then 101*5e7646d2SAndroid Build Coastguard Worker libdir="$exec_prefix/lib64" 102*5e7646d2SAndroid Build Coastguard Worker fi 103*5e7646d2SAndroid Build Coastguard Worker ;; 104*5e7646d2SAndroid Build Coastguard Worker esac 105*5e7646d2SAndroid Build Coastguard Workerfi 106*5e7646d2SAndroid Build Coastguard Worker 107*5e7646d2SAndroid Build Coastguard Workerdnl Setup private include directory... 108*5e7646d2SAndroid Build Coastguard WorkerAC_ARG_WITH(privateinclude, [ --with-privateinclude set path for private include files, default=none],privateinclude="$withval",privateinclude="") 109*5e7646d2SAndroid Build Coastguard Workerif test "x$privateinclude" != x -a "x$privateinclude" != xnone; then 110*5e7646d2SAndroid Build Coastguard Worker PRIVATEINCLUDE="$privateinclude/cups" 111*5e7646d2SAndroid Build Coastguard Workerelse 112*5e7646d2SAndroid Build Coastguard Worker privateinclude="" 113*5e7646d2SAndroid Build Coastguard Worker PRIVATEINCLUDE="" 114*5e7646d2SAndroid Build Coastguard Workerfi 115*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(privateinclude) 116*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(PRIVATEINCLUDE) 117*5e7646d2SAndroid Build Coastguard Worker 118*5e7646d2SAndroid Build Coastguard Workerdnl LPD sharing support... 119*5e7646d2SAndroid Build Coastguard WorkerAC_ARG_WITH(lpdconfig, [ --with-lpdconfig set URI for LPD config file], 120*5e7646d2SAndroid Build Coastguard Worker LPDCONFIG="$withval", LPDCONFIG="") 121*5e7646d2SAndroid Build Coastguard Worker 122*5e7646d2SAndroid Build Coastguard Workerif test "x$LPDCONFIG" = x; then 123*5e7646d2SAndroid Build Coastguard Worker if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then 124*5e7646d2SAndroid Build Coastguard Worker LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist" 125*5e7646d2SAndroid Build Coastguard Worker elif test "x$XINETD" != x; then 126*5e7646d2SAndroid Build Coastguard Worker LPDCONFIG="xinetd://$XINETD/cups-lpd" 127*5e7646d2SAndroid Build Coastguard Worker fi 128*5e7646d2SAndroid Build Coastguard Workerfi 129*5e7646d2SAndroid Build Coastguard Worker 130*5e7646d2SAndroid Build Coastguard Workerif test "x$LPDCONFIG" = xoff; then 131*5e7646d2SAndroid Build Coastguard Worker AC_DEFINE_UNQUOTED(CUPS_DEFAULT_LPD_CONFIG, "") 132*5e7646d2SAndroid Build Coastguard Workerelse 133*5e7646d2SAndroid Build Coastguard Worker AC_DEFINE_UNQUOTED(CUPS_DEFAULT_LPD_CONFIG, "$LPDCONFIG") 134*5e7646d2SAndroid Build Coastguard Workerfi 135*5e7646d2SAndroid Build Coastguard Worker 136*5e7646d2SAndroid Build Coastguard Workerdnl SMB sharing support... 137*5e7646d2SAndroid Build Coastguard WorkerAC_ARG_WITH(smbconfig, [ --with-smbconfig set URI for Samba config file], 138*5e7646d2SAndroid Build Coastguard Worker SMBCONFIG="$withval", SMBCONFIG="") 139*5e7646d2SAndroid Build Coastguard Worker 140*5e7646d2SAndroid Build Coastguard Workerif test "x$SMBCONFIG" = x; then 141*5e7646d2SAndroid Build Coastguard Worker if test -f /System/Library/LaunchDaemons/smbd.plist; then 142*5e7646d2SAndroid Build Coastguard Worker SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist" 143*5e7646d2SAndroid Build Coastguard Worker else 144*5e7646d2SAndroid Build Coastguard Worker for dir in /etc /etc/samba /usr/local/etc; do 145*5e7646d2SAndroid Build Coastguard Worker if test -f $dir/smb.conf; then 146*5e7646d2SAndroid Build Coastguard Worker SMBCONFIG="samba://$dir/smb.conf" 147*5e7646d2SAndroid Build Coastguard Worker break 148*5e7646d2SAndroid Build Coastguard Worker fi 149*5e7646d2SAndroid Build Coastguard Worker done 150*5e7646d2SAndroid Build Coastguard Worker fi 151*5e7646d2SAndroid Build Coastguard Workerfi 152*5e7646d2SAndroid Build Coastguard Worker 153*5e7646d2SAndroid Build Coastguard Workerif test "x$SMBCONFIG" = xoff; then 154*5e7646d2SAndroid Build Coastguard Worker AC_DEFINE_UNQUOTED(CUPS_DEFAULT_SMB_CONFIG, "") 155*5e7646d2SAndroid Build Coastguard Workerelse 156*5e7646d2SAndroid Build Coastguard Worker AC_DEFINE_UNQUOTED(CUPS_DEFAULT_SMB_CONFIG, "$SMBCONFIG") 157*5e7646d2SAndroid Build Coastguard Workerfi 158*5e7646d2SAndroid Build Coastguard Worker 159*5e7646d2SAndroid Build Coastguard Workerdnl Setup default locations... 160*5e7646d2SAndroid Build Coastguard Worker# Cache data... 161*5e7646d2SAndroid Build Coastguard WorkerAC_ARG_WITH(cachedir, [ --with-cachedir set path for cache files],cachedir="$withval",cachedir="") 162*5e7646d2SAndroid Build Coastguard Worker 163*5e7646d2SAndroid Build Coastguard Workerif test x$cachedir = x; then 164*5e7646d2SAndroid Build Coastguard Worker if test "x$host_os_name" = xdarwin; then 165*5e7646d2SAndroid Build Coastguard Worker CUPS_CACHEDIR="$localstatedir/spool/cups/cache" 166*5e7646d2SAndroid Build Coastguard Worker else 167*5e7646d2SAndroid Build Coastguard Worker CUPS_CACHEDIR="$localstatedir/cache/cups" 168*5e7646d2SAndroid Build Coastguard Worker fi 169*5e7646d2SAndroid Build Coastguard Workerelse 170*5e7646d2SAndroid Build Coastguard Worker CUPS_CACHEDIR="$cachedir" 171*5e7646d2SAndroid Build Coastguard Workerfi 172*5e7646d2SAndroid Build Coastguard WorkerAC_DEFINE_UNQUOTED(CUPS_CACHEDIR, "$CUPS_CACHEDIR") 173*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(CUPS_CACHEDIR) 174*5e7646d2SAndroid Build Coastguard Worker 175*5e7646d2SAndroid Build Coastguard Worker# Data files 176*5e7646d2SAndroid Build Coastguard WorkerCUPS_DATADIR="$datadir/cups" 177*5e7646d2SAndroid Build Coastguard WorkerAC_DEFINE_UNQUOTED(CUPS_DATADIR, "$datadir/cups") 178*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(CUPS_DATADIR) 179*5e7646d2SAndroid Build Coastguard Worker 180*5e7646d2SAndroid Build Coastguard Worker# Icon directory 181*5e7646d2SAndroid Build Coastguard WorkerAC_ARG_WITH(icondir, [ --with-icondir set path for application icons],icondir="$withval",icondir="") 182*5e7646d2SAndroid Build Coastguard Worker 183*5e7646d2SAndroid Build Coastguard Workerif test "x$icondir" = x -a -d /usr/share/icons; then 184*5e7646d2SAndroid Build Coastguard Worker ICONDIR="/usr/share/icons" 185*5e7646d2SAndroid Build Coastguard Workerelse 186*5e7646d2SAndroid Build Coastguard Worker ICONDIR="$icondir" 187*5e7646d2SAndroid Build Coastguard Workerfi 188*5e7646d2SAndroid Build Coastguard Worker 189*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(ICONDIR) 190*5e7646d2SAndroid Build Coastguard Worker 191*5e7646d2SAndroid Build Coastguard Worker# Menu directory 192*5e7646d2SAndroid Build Coastguard WorkerAC_ARG_WITH(menudir, [ --with-menudir set path for application menus],menudir="$withval",menudir="") 193*5e7646d2SAndroid Build Coastguard Worker 194*5e7646d2SAndroid Build Coastguard Workerif test "x$menudir" = x -a -d /usr/share/applications; then 195*5e7646d2SAndroid Build Coastguard Worker MENUDIR="/usr/share/applications" 196*5e7646d2SAndroid Build Coastguard Workerelse 197*5e7646d2SAndroid Build Coastguard Worker MENUDIR="$menudir" 198*5e7646d2SAndroid Build Coastguard Workerfi 199*5e7646d2SAndroid Build Coastguard Worker 200*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(MENUDIR) 201*5e7646d2SAndroid Build Coastguard Worker 202*5e7646d2SAndroid Build Coastguard Worker# Documentation files 203*5e7646d2SAndroid Build Coastguard WorkerAC_ARG_WITH(docdir, [ --with-docdir set path for documentation],docdir="$withval",docdir="") 204*5e7646d2SAndroid Build Coastguard Worker 205*5e7646d2SAndroid Build Coastguard Workerif test x$docdir = x; then 206*5e7646d2SAndroid Build Coastguard Worker CUPS_DOCROOT="$datadir/doc/cups" 207*5e7646d2SAndroid Build Coastguard Worker docdir="$datadir/doc/cups" 208*5e7646d2SAndroid Build Coastguard Workerelse 209*5e7646d2SAndroid Build Coastguard Worker CUPS_DOCROOT="$docdir" 210*5e7646d2SAndroid Build Coastguard Workerfi 211*5e7646d2SAndroid Build Coastguard Worker 212*5e7646d2SAndroid Build Coastguard WorkerAC_DEFINE_UNQUOTED(CUPS_DOCROOT, "$docdir") 213*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(CUPS_DOCROOT) 214*5e7646d2SAndroid Build Coastguard Worker 215*5e7646d2SAndroid Build Coastguard Worker# Fonts 216*5e7646d2SAndroid Build Coastguard WorkerAC_ARG_WITH(fontpath, [ --with-fontpath set font path for pstoraster],fontpath="$withval",fontpath="") 217*5e7646d2SAndroid Build Coastguard Worker 218*5e7646d2SAndroid Build Coastguard Workerif test "x$fontpath" = "x"; then 219*5e7646d2SAndroid Build Coastguard Worker CUPS_FONTPATH="$datadir/cups/fonts" 220*5e7646d2SAndroid Build Coastguard Workerelse 221*5e7646d2SAndroid Build Coastguard Worker CUPS_FONTPATH="$fontpath" 222*5e7646d2SAndroid Build Coastguard Workerfi 223*5e7646d2SAndroid Build Coastguard Worker 224*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(CUPS_FONTPATH) 225*5e7646d2SAndroid Build Coastguard WorkerAC_DEFINE_UNQUOTED(CUPS_FONTPATH, "$CUPS_FONTPATH") 226*5e7646d2SAndroid Build Coastguard Worker 227*5e7646d2SAndroid Build Coastguard Worker# Locale data 228*5e7646d2SAndroid Build Coastguard Workerif test "$localedir" = "\${datarootdir}/locale"; then 229*5e7646d2SAndroid Build Coastguard Worker case "$host_os_name" in 230*5e7646d2SAndroid Build Coastguard Worker linux* | gnu* | *bsd* | darwin*) 231*5e7646d2SAndroid Build Coastguard Worker CUPS_LOCALEDIR="$datarootdir/locale" 232*5e7646d2SAndroid Build Coastguard Worker ;; 233*5e7646d2SAndroid Build Coastguard Worker 234*5e7646d2SAndroid Build Coastguard Worker *) 235*5e7646d2SAndroid Build Coastguard Worker # This is the standard System V location... 236*5e7646d2SAndroid Build Coastguard Worker CUPS_LOCALEDIR="$exec_prefix/lib/locale" 237*5e7646d2SAndroid Build Coastguard Worker ;; 238*5e7646d2SAndroid Build Coastguard Worker esac 239*5e7646d2SAndroid Build Coastguard Workerelse 240*5e7646d2SAndroid Build Coastguard Worker CUPS_LOCALEDIR="$localedir" 241*5e7646d2SAndroid Build Coastguard Workerfi 242*5e7646d2SAndroid Build Coastguard Worker 243*5e7646d2SAndroid Build Coastguard WorkerAC_DEFINE_UNQUOTED(CUPS_LOCALEDIR, "$CUPS_LOCALEDIR") 244*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(CUPS_LOCALEDIR) 245*5e7646d2SAndroid Build Coastguard Worker 246*5e7646d2SAndroid Build Coastguard Worker# Log files... 247*5e7646d2SAndroid Build Coastguard WorkerAC_ARG_WITH(logdir, [ --with-logdir set path for log files],logdir="$withval",logdir="") 248*5e7646d2SAndroid Build Coastguard Worker 249*5e7646d2SAndroid Build Coastguard Workerif test x$logdir = x; then 250*5e7646d2SAndroid Build Coastguard Worker CUPS_LOGDIR="$localstatedir/log/cups" 251*5e7646d2SAndroid Build Coastguard Worker AC_DEFINE_UNQUOTED(CUPS_LOGDIR, "$localstatedir/log/cups") 252*5e7646d2SAndroid Build Coastguard Workerelse 253*5e7646d2SAndroid Build Coastguard Worker CUPS_LOGDIR="$logdir" 254*5e7646d2SAndroid Build Coastguard Workerfi 255*5e7646d2SAndroid Build Coastguard WorkerAC_DEFINE_UNQUOTED(CUPS_LOGDIR, "$CUPS_LOGDIR") 256*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(CUPS_LOGDIR) 257*5e7646d2SAndroid Build Coastguard Worker 258*5e7646d2SAndroid Build Coastguard Worker# Longer-term spool data 259*5e7646d2SAndroid Build Coastguard WorkerCUPS_REQUESTS="$localstatedir/spool/cups" 260*5e7646d2SAndroid Build Coastguard WorkerAC_DEFINE_UNQUOTED(CUPS_REQUESTS, "$localstatedir/spool/cups") 261*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(CUPS_REQUESTS) 262*5e7646d2SAndroid Build Coastguard Worker 263*5e7646d2SAndroid Build Coastguard Worker# Server executables... 264*5e7646d2SAndroid Build Coastguard Workercase "$host_os_name" in 265*5e7646d2SAndroid Build Coastguard Worker *bsd* | darwin*) 266*5e7646d2SAndroid Build Coastguard Worker # *BSD and Darwin (macOS) 267*5e7646d2SAndroid Build Coastguard Worker INSTALL_SYSV="" 268*5e7646d2SAndroid Build Coastguard Worker CUPS_SERVERBIN="$exec_prefix/libexec/cups" 269*5e7646d2SAndroid Build Coastguard Worker ;; 270*5e7646d2SAndroid Build Coastguard Worker *) 271*5e7646d2SAndroid Build Coastguard Worker # All others 272*5e7646d2SAndroid Build Coastguard Worker INSTALL_SYSV="install-sysv" 273*5e7646d2SAndroid Build Coastguard Worker CUPS_SERVERBIN="$exec_prefix/lib/cups" 274*5e7646d2SAndroid Build Coastguard Worker ;; 275*5e7646d2SAndroid Build Coastguard Workeresac 276*5e7646d2SAndroid Build Coastguard Worker 277*5e7646d2SAndroid Build Coastguard WorkerAC_DEFINE_UNQUOTED(CUPS_SERVERBIN, "$CUPS_SERVERBIN") 278*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(CUPS_SERVERBIN) 279*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(INSTALL_SYSV) 280*5e7646d2SAndroid Build Coastguard Worker 281*5e7646d2SAndroid Build Coastguard Worker# Configuration files 282*5e7646d2SAndroid Build Coastguard WorkerCUPS_SERVERROOT="$sysconfdir/cups" 283*5e7646d2SAndroid Build Coastguard WorkerAC_DEFINE_UNQUOTED(CUPS_SERVERROOT, "$sysconfdir/cups") 284*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(CUPS_SERVERROOT) 285*5e7646d2SAndroid Build Coastguard Worker 286*5e7646d2SAndroid Build Coastguard Worker# Transient run-time state 287*5e7646d2SAndroid Build Coastguard WorkerAC_ARG_WITH(rundir, [ --with-rundir set transient run-time state directory],CUPS_STATEDIR="$withval",[ 288*5e7646d2SAndroid Build Coastguard Worker case "$host_os_name" in 289*5e7646d2SAndroid Build Coastguard Worker darwin*) 290*5e7646d2SAndroid Build Coastguard Worker # Darwin (macOS) 291*5e7646d2SAndroid Build Coastguard Worker CUPS_STATEDIR="$CUPS_SERVERROOT" 292*5e7646d2SAndroid Build Coastguard Worker ;; 293*5e7646d2SAndroid Build Coastguard Worker *) 294*5e7646d2SAndroid Build Coastguard Worker # All others 295*5e7646d2SAndroid Build Coastguard Worker CUPS_STATEDIR="$localstatedir/run/cups" 296*5e7646d2SAndroid Build Coastguard Worker ;; 297*5e7646d2SAndroid Build Coastguard Worker esac]) 298*5e7646d2SAndroid Build Coastguard WorkerAC_DEFINE_UNQUOTED(CUPS_STATEDIR, "$CUPS_STATEDIR") 299*5e7646d2SAndroid Build Coastguard WorkerAC_SUBST(CUPS_STATEDIR) 300