This repository has been archived by the owner on Jan 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.site
executable file
·145 lines (122 loc) · 3.25 KB
/
config.site
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#!/bin/sh
#
# Rogi's config.site
#
echo "loading Rogi's config.site script"
# Default prefix if configured without --prefix
ac_default_prefix='/usr/local'
# This script recognizes new configure options --enable-games-fhs
# (environment variable enable_games_fhs=yes) to mark package as game
# hierrarchy package. It also recognizes --disable-games-games
# (enable_games_games=no) to disable <dir>/games/games effect and
# --enable-libexec-sbin (enable_libexec_sbin=yes) to bind libexecdir
# to sbindir instead of libdir.
if [ ! $build ]; then
build=`uname -m`
fi
# Set the installation prefix
if [ "$prefix" == NONE ]; then
prefix="$ac_default_prefix"
fi
fhs_datadir='${prefix}/share'
fhs_sysconfdir='${prefix}/etc'
fhs_localstatedir='${prefix}/var'
fhs_imddir='${prefix}'
fhs_mandir='${datadir}/man'
fhs_infodir='${datadir}/info'
case "$prefix" in
'' | / )
if [ "$exec_prefix" == 'NONE' ]; then
exec_prefix=''
prefix='/usr'
else
# datadir should not be used directly by apps under prefix ""
fhs_datadir='/usr/share'
if [ "$includedir" == '${prefix}/include' ]; then
includedir='/usr/include'
fi
fi
fhs_sysconfdir='/etc'
fhs_localstatedir='/var'
fhs_imddir="$fhs_datadir"
;;
/usr )
fhs_sysconfdir='/etc'
fhs_localstatedir='/var'
fhs_imddir='$fhs_datadir'
;;
/usr/local )
fhs_localstatedir='/var/local'
fhs_sysconfdir='/usr/local/etc'
;;
/usr/X11* )
fhs_datadir='${prefix}/lib'$qual'/X11'
fhs_sysconfdir='/etc/X11'
fhs_localstatedir='/var' # guess from /var/lib'$qual'/xdm
fhs_mandir='${prefix}/man'
fhs_imddir="$fhs_datadir"
;;
/opt | /opt/* )
fhs_sysconfdir='/etc${prefix}' # i.e. /etc/opt | /etc/opt/*
fhs_localstatedir='/var${prefix}' # i.e. /var/opt | /var/opt/*
;;
esac
if [ "$bindir" == '${exec_prefix}/bin' ]; then
if [ "$enable_games_fhs" == yes ]; then
bindir='${exec_prefix}/games'
fi
fi
if [ "$libdir" == '${exec_prefix}/lib' ]; then
libdir='${exec_prefix}/lib'$qual
fi
if [ "$libexecdir" == '${exec_prefix}/libexec' ]; then
if [ "$enable_libexec_sbin" == yes ]; then
libexecdir='${exec_prefix}/sbin'
else
libexecdir='${exec_prefix}/lib'$qual
fi
fi
if [ "$datadir" == '${prefix}/share' ]; then
if [ "$enable_games_fhs" == yes -a "$enable_games_games" != 'no' ]; then
datadir="$fhs_datadir/games"
else
datadir="$fhs_datadir"
fi
fi
if [ "$sysconfdir" == '${prefix}/etc' ]; then
sysconfdir="$fhs_sysconfdir"
fi
if [ "$localstatedir" == '${prefix}/var' ]; then
if [ "$enable_games_fhs" == yes -a "$enable_games_games" != 'no' ]; then
localstatedir="$fhs_localstatedir/games"
else
localstatedir="$fhs_localstatedir"
fi
fi
if [ "$sharedstatedir" == '${prefix}/com' ]; then
if [ "$enable_games_fhs" == yes ]; then
if [ "$enable_games_games" == no ]; then
sharedstatedir="$fhs_localstatedir"
else
sharedstatedir="$fhs_localstatedir/games"
fi
else
sharedstatedir="$fhs_localstatedir/cache"
fi
fi
if [ "$infodir" == '${prefix}/info' ]; then
if [ "$fhs_infodir" == '' ]; then
infodir="$fhs_imddir/info" ; else
infodir="$fhs_infodir"
fi
fi
if [ "$mandir" == '${prefix}/man' ]; then
if [ "$fhs_mandir" == '' ]; then
mandir="$fhs_imddir/man" ; else
mandir="$fhs_mandir"
fi
fi
# This is not a standard part of GNU, but can be defined.
if [ "$docdir" == '${prefix}/doc' ]; then
docdir="$fhs_imddir/doc"
fi