summaryrefslogtreecommitdiff
path: root/config.site
blob: 976734c3403ee419b26b212c39a8e5549492e75a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This is the config.site file to satisfy FHS defaults when installing below
# /usr.
#
# You may override this file by your config.site using the CONFIG_SITE env
# variable.

# return when cross compiling
[ -n $host ] && return 0;

if [ "$prefix" = /usr ] || [[ "$prefix" = NONE && "$ac_default_prefix" = /usr ]]
then
    [ "$sysconfdir" = '${prefix}/etc' ] && sysconfdir=/etc
    [ "$localstatedir" = '${prefix}/var' ] && localstatedir=/var
    [ "$sharedstatedir" = '${prefix}/com' ] && sharedstatedir=/var

# for x86_64 aarch64
    [ "$libdir" = '${exec_prefix}/lib' ] && libdir='${exec_prefix}/lib64'
fi