Hi,
We’re trying to package AF_XDP-example for Yocto/OpenEmbedded, but are running into issues because the current configure script is hardcoded to fetch libxdp as a git submodule, rather than checking if it’s already installed on the system (like is done for libbpf). This causes problems for packaging systems like Yocto, which do not allow network access or git operations outside the do_fetch stage, and expect to use system-installed libraries where possible.
Could you please update the build system to:
- Check if libxdp (and/or xdp-tools) is already installed on the system (using pkg-config or similar), and use the system version if available.
 
- Only fall back to fetching/building the submodule if the system version is not found.
 
- Make the behavior for libxdp/xdp-tools consistent with how you already handle libbpf.
 
This change would make it much easier to package AF_XDP-example. Thanks.