Pavel Raiskup c047b3
# This is the config.site file to satisfy FHS defaults when installing below
Pavel Raiskup c047b3
# /usr.
Pavel Raiskup c047b3
#
Pavel Raiskup c047b3
# You may override this file by your config.site using the CONFIG_SITE env
Pavel Raiskup c047b3
# variable.
Pavel Raiskup c047b3
#
Pavel Raiskup c047b3
# Note: This file includes also RHEL/Fedora fix for installing libraries into
Pavel Raiskup c047b3
# "/lib/lib64" on 64bit systems.
Pavel Raiskup c047b3
Pavel Raiskup 504519
if test -n "$host"; then
Pavel Raiskup 504519
    # skip when cross-compiling
Pavel Raiskup 504519
    return 0
Pavel Raiskup 504519
fi
Pavel Raiskup 504519
Pavel Raiskup 19ad13
if test "$prefix" = /usr \
Pavel Raiskup 19ad13
   || { test "$prefix" = NONE && test "$ac_default_prefix" = /usr ; }
Pavel Raiskup 19ad13
then
Pavel Raiskup c047b3
    test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
Pavel Raiskup c047b3
    test "$sharedstatedir" = '${prefix}/com' && sharedstatedir=/var
Pavel Raiskup c047b3
    test "$localstatedir" = '${prefix}/var' && localstatedir=/var
Pavel Raiskup c047b3
Pavel Raiskup c047b3
    ARCH=`uname -m`
Pavel Raiskup c047b3
    for i in x86_64 ppc64 s390x aarch64; do
Pavel Raiskup c047b3
        if test $ARCH = $i; then
Pavel Raiskup c047b3
            test "$libdir" = '${exec_prefix}/lib' && libdir='${exec_prefix}/lib64'
Pavel Raiskup c047b3
            break
Pavel Raiskup c047b3
        fi
Pavel Raiskup c047b3
    done
Pavel Raiskup c047b3
fi