maint: optimize locale.h syntax check
maint: optimize locale.h syntax check

Reusing the maint.mk code allows for a more efficient syntax check
(fewer grep processes), and a more compact representation of what
we are really checking for in commit 1919e35.

* cfg.mk (sc_require_locale_h): Use maint.mk loop instead of
rolling our own.

Signed-off-by: Eric Blake <a9da18479c871fe903d9590822cfe2629c6a4d11@redhat.com>

crobinso/libvirt,rlaager/libvirt,datto/libvirt,datto/libvirt,elmarco/libvirt,libvirt/libvirt,elmarco/libvirt,jfehlig/libvirt,agx/libvirt,eskultety/libvirt,elmarco/libvirt,jardasgit/libvirt,taget/libvirt,datto/libvirt,andreabolognani/libvirt,libvirt/libvirt,shugaoye/libvirt,elmarco/libvirt,VenkatDatta/libvirt,rlaager/libvirt,shugaoye/libvirt,zippy2/libvirt,eskultety/libvirt,shugaoye/libvirt,olafhering/libvirt,andreabolognani/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,taget/libvirt,VenkatDatta/libvirt,crobinso/libvirt,fabianfreyer/libvirt,rlaager/libvirt,datto/libvirt,zippy2/libvirt,datto/libvirt,agx/libvirt,jfehlig/libvirt,shugaoye/libvirt,nertpinx/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,zippy2/libvirt,andreabolognani/libvirt,jfehlig/libvirt,elmarco/libvirt,libvirt/libvirt,crobinso/libvirt,taget/libvirt,rlaager/libvirt,nertpinx/libvirt,olafhering/libvirt,eskultety/libvirt,eskultety/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,eskultety/libvirt,zippy2/libvirt,shugaoye/libvirt,libvirt/libvirt,jardasgit/libvirt,nertpinx/libvirt,agx/libvirt,olafhering/libvirt,taget/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,olafhering/libvirt,andreabolognani/libvirt,agx/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,jardasgit/libvirt,taget/libvirt,nertpinx/libvirt,crobinso/libvirt,rlaager/libvirt,agx/libvirt