aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Adler <git@madler.net>2026-02-07 22:29:42 -0800
committerMark Adler <git@madler.net>2026-02-09 07:08:54 -0800
commitf7d8be0478cb9fa802305dbcf5afb82f23539ed7 (patch)
treec34ed430b873b9fecb58269ab9925930e68a2117 /configure
parent61f343885ee9560d541dcb1a5df94f441d75624f (diff)
downloadzlib-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-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index e183abb7..daa4aa73 100755
--- a/configure
+++ b/configure
@@ -476,6 +476,13 @@ tryboth()
476cat > $test.c << EOF 476cat > $test.c << EOF
477int foo() { return 0; } 477int foo() { return 0; }
478EOF 478EOF
479echo "Checking for compiler..." >> configure.log
480if try $CC -c $test.c; then
481 :
482else
483 echo "Missing or broken C compiler." | tee -a configure.log
484 leave 1
485fi
479echo "Checking for obsessive-compulsive compiler options..." >> configure.log 486echo "Checking for obsessive-compulsive compiler options..." >> configure.log
480if try $CC -c $CFLAGS $test.c; then 487if try $CC -c $CFLAGS $test.c; then
481 : 488 :