#!/bin/sh

pkg_config="$HOMEBREW_OPT/pkg-config/bin/pkg-config"

if [ -z "$HOMEBREW_SDKROOT" ]; then
  exec "$pkg_config" "$@"
fi

exec "$pkg_config" \
  "--define-variable=homebrew_sdkroot=$HOMEBREW_SDKROOT" \
  "$@"
