configure/swscale: move logic to Makefile.am

20 jobs for !3152 with bsymbolic in 19 minutes and 42 seconds (queued for 3 seconds)
merge request