Blame SOURCES/mysql_config_multilib.sh

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