When I am building software from source on a GNU+Linux system, during the
./configure stage I frequently see the following line:
checking for suffix of executables...
How do I create such a check in a bash script?
The reason I want to know this is that I want to create a makefile in which it compiles with suffix .exe on Cygwin, but no suffix on true GNU+Linux.