diff options
| author | Mark Adler <git@madler.net> | 2026-02-07 22:29:42 -0800 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-02-09 07:08:54 -0800 |
| commit | f7d8be0478cb9fa802305dbcf5afb82f23539ed7 (patch) | |
| tree | c34ed430b873b9fecb58269ab9925930e68a2117 /configure | |
| parent | 61f343885ee9560d541dcb1a5df94f441d75624f (diff) | |
| download | zlib-f7d8be0478cb9fa802305dbcf5afb82f23539ed7.tar.gz zlib-f7d8be0478cb9fa802305dbcf5afb82f23539ed7.tar.bz2 zlib-f7d8be0478cb9fa802305dbcf5afb82f23539ed7.zip | |
Add a test to configure to check for a working compiler.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -476,6 +476,13 @@ tryboth() | |||
| 476 | cat > $test.c << EOF | 476 | cat > $test.c << EOF |
| 477 | int foo() { return 0; } | 477 | int foo() { return 0; } |
| 478 | EOF | 478 | EOF |
| 479 | echo "Checking for compiler..." >> configure.log | ||
| 480 | if try $CC -c $test.c; then | ||
| 481 | : | ||
| 482 | else | ||
| 483 | echo "Missing or broken C compiler." | tee -a configure.log | ||
| 484 | leave 1 | ||
| 485 | fi | ||
| 479 | echo "Checking for obsessive-compulsive compiler options..." >> configure.log | 486 | echo "Checking for obsessive-compulsive compiler options..." >> configure.log |
| 480 | if try $CC -c $CFLAGS $test.c; then | 487 | if try $CC -c $CFLAGS $test.c; then |
| 481 | : | 488 | : |
