Blame SOURCES/mysql_config_multilib.sh

8ddd42
#! /bin/sh
8ddd42
#
8ddd42
# Wrapper script for mysql_config to support multilib
8ddd42
#
8ddd42
# This command respects setarch
8ddd42
8ddd42
bits=$(rpm --eval %__isa_bits)
8ddd42
8ddd42
case $bits in
8ddd42
    32|64) status=known ;;
8ddd42
        *) status=unknown ;;
8ddd42
esac
8ddd42
8ddd42
if [ "$status" = "unknown" ] ; then
8ddd42
    echo "$0: error: command 'rpm --eval %__isa_bits' returned unknown value: $bits"
8ddd42
    exit 1
8ddd42
fi
8ddd42
8ddd42
8ddd42
if [ -x @bindir@/mysql_config-$bits ] ; then
8ddd42
    @bindir@/mysql_config-$bits "$@"
8ddd42
else
8ddd42
    echo "$0: error: needed binary: @bindir@/mysql_config-$bits is missing"
8ddd42
    exit 1
8ddd42
fi
8ddd42