From f6044a399ad9101fce71df062c5311c10b0f4cb8 Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Fri, 24 Dec 1999 21:22:27 +0000 Subject: [PATCH] Cleanup the threads check, also resets the CFLAGS and LDFLAGS variables in cases where no threading library was found. Submitted by: Sascha Schumann Reviewed by: Ryan Bloom git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84370 13f79535-47bb-0310-9956-ffa450edef68 --- acinclude.m4 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 5fbbd82443..9f14dbb41c 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -127,15 +127,17 @@ define(APACHE_CHECK_THREADS, [dnl LDFLAGS="$test_ldflag $ldflags_orig" THREAD_TEST() if test "$apache_threads_working" = "yes"; then - break + break 2 fi done - if test "$apache_threads_working" = "yes"; then - threads_result="Updating CFLAGS and LDFLAGS" - break - fi - threads_result="Threads not found" done + if test "$apache_threads_working" = "yes"; then + threads_result="POSIX Threads found" + else + CFLAGS="$cflags_orig" + LDFLAGS="$ldflags_orig" + threads_result="POSIX Threads not found" + fi ] ) dnl -- 2.40.0