#!/bin/sh
# Wrapper: the real binary is flm-real. Proprietary NPU engines are not
# shipped in the RPM; fetch them once with fastflowlm-fetch-kernels.
LIBDIR="${FASTFLOWLM_LIBDIR:-/usr/lib64/flm}"
if [ ! -e "$LIBDIR/libllama_npu.so" ]; then
    echo "fastflowlm: NPU engines are not installed." >&2
    echo "They are proprietary binaries (see TERMS.md) and are not shipped" >&2
    echo "by this package. Fetch the matching upstream release with:" >&2
    echo "    sudo fastflowlm-fetch-kernels" >&2
    exit 1
fi
exec /usr/bin/flm-real "$@"
