How can I detect shell that will be used by gnu make? I want my make to be running on following platforms:
- linux
- windows
- windows with cygwin (Note that on windows with cygwin the make uses cygwin shell)
Then I would like to detect if gcc is present on the system independently on OS.
So far I come up with this solution:
optionally when I need to detect more tools I can use: