Improve BSD man page location detection
Improve BSD man page location detection by using /usr/share/man as the system default
This commit is contained in:
parent
bfd97bb7e5
commit
7571c6f97b
1 changed files with 8 additions and 2 deletions
10
configure
vendored
10
configure
vendored
|
@ -107,8 +107,14 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
build_mk_append_man_bsd() {
|
build_mk_append_man_bsd() {
|
||||||
cat <<'EOF' >> "$1"
|
if [ "$PREFIX" = "/usr" ]; then
|
||||||
MANDIR = $(PREFIX)/man
|
local mandir='$(PREFIX)/share/man'
|
||||||
|
else
|
||||||
|
local mandir='$(PREFIX)/man'
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat <<EOF >> "$1"
|
||||||
|
MANDIR = $mandir
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue