Hi,
Adding:
```
"ac_cv_header_sys_socket_h=no"
```
To configure flags in the case the target is mingw solves the first issue, but
more issues appear.
I have no enough knowledge about autotools to dig into this much further but it
looks like we are finding wrong stuff in the configure step:
`
Any package that uses `bash-minimal` to build in mingw (all of them?) fails
when trying to build `bash-minimal` with the following error:
```
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `build'
rm -f mksyntax.exe
gcc -DPROGRAM='"bash.exe"' -DCONF_HOSTTYPE='"x8