Blame SOURCES/mysql_config_multilib.sh

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