Note: I had to add substitute 'configure' with ' configure CFLAGS="-Wno-error" '
This is a bit obsolete now, as libqmi/libmbim use meson instead of autotools