Blame SOURCES/mysql_config_multilib.sh

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