4.0.4 NEWS
[yaz-moved-to-github.git] / configure.ac
index 7c98b6c..5cff7c5 100644 (file)
@@ -333,8 +333,9 @@ if test "$enable_threads" = "yes" -a "$HAVETHREADS" = "0"; then
                done
                LIBS=$OLIBS
            fi
-           CFLAGS=$OCFLAGS
-           PTHREAD_CFLAGS="$PTHREAD_CFLAGS -DYAZ_POSIX_THREADS=1"
+           LIBS=$PTHREAD_LIBS
+           CFLAGS="$CFLAGS -DYAZ_POSIX_THREADS=1"
+           YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_POSIX_THREADS=1"
            ])
 fi