Blame SOURCES/mysql_config_multilib.sh

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