1*5e7646d2SAndroid Build Coastguard Workerdnl 2*5e7646d2SAndroid Build Coastguard Workerdnl Manpage stuff for CUPS. 3*5e7646d2SAndroid Build Coastguard Workerdnl 4*5e7646d2SAndroid Build Coastguard Workerdnl Copyright © 2007-2019 by Apple Inc. 5*5e7646d2SAndroid Build Coastguard Workerdnl Copyright © 1997-2006 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 8*5e7646d2SAndroid Build Coastguard Workerdnl information. 9*5e7646d2SAndroid Build Coastguard Workerdnl 10*5e7646d2SAndroid Build Coastguard Worker 11*5e7646d2SAndroid Build Coastguard Workerdnl Fix "mandir" variable... 12*5e7646d2SAndroid Build Coastguard Workerif test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then 13*5e7646d2SAndroid Build Coastguard Worker # New GNU "standards" break previous ones, so make sure we use 14*5e7646d2SAndroid Build Coastguard Worker # the right default location for the operating system... 15*5e7646d2SAndroid Build Coastguard Worker mandir="\${prefix}/man" 16*5e7646d2SAndroid Build Coastguard Workerfi 17*5e7646d2SAndroid Build Coastguard Worker 18*5e7646d2SAndroid Build Coastguard Workerif test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then 19*5e7646d2SAndroid Build Coastguard Worker case "$host_os_name" in 20*5e7646d2SAndroid Build Coastguard Worker darwin* | linux* | gnu* | *bsd*) 21*5e7646d2SAndroid Build Coastguard Worker # Darwin, macOS, Linux, GNU HURD, and *BSD 22*5e7646d2SAndroid Build Coastguard Worker mandir="/usr/share/man" 23*5e7646d2SAndroid Build Coastguard Worker ;; 24*5e7646d2SAndroid Build Coastguard Worker *) 25*5e7646d2SAndroid Build Coastguard Worker # All others 26*5e7646d2SAndroid Build Coastguard Worker mandir="/usr/man" 27*5e7646d2SAndroid Build Coastguard Worker ;; 28*5e7646d2SAndroid Build Coastguard Worker esac 29*5e7646d2SAndroid Build Coastguard Workerfi 30