diff --git a/configure.ac b/configure.ac
index a06a7f06..dd45d386 100644
--- a/configure.ac
+++ b/configure.ac
@@ -261,7 +261,7 @@ if test "x$with_libuv" = "xyes"; then
         AC_SUBST([LIBUV_LIBS])
       fi
       CPPFLAGS=$save_CPPFLAGS
-      CPPLIBS=$save_LIBS
+      LIBS=$save_LIBS
     ;;
 
     *darwin*)