]> granicus.if.org Git - apache/commitdiff
Cleanup the threads check, also resets the CFLAGS and LDFLAGS variables
authorRyan Bloom <rbb@apache.org>
Fri, 24 Dec 1999 21:22:27 +0000 (21:22 +0000)
committerRyan Bloom <rbb@apache.org>
Fri, 24 Dec 1999 21:22:27 +0000 (21:22 +0000)
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

index 5fbbd82443befa80e4fcf210b3d12e6b093ac51e..9f14dbb41c794c9392e8b481d8976d06a8a78180 100644 (file)
@@ -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