diff --git a/configure b/configure
index 60b02f0..64e967b 100755
--- a/configure
+++ b/configure
@@ -4155,7 +4155,7 @@ $as_echo "$with_tidy" >&6; }
 if test "$with_tidy" != "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the HTML Tidy library is present" >&5
 $as_echo_n "checking if the HTML Tidy library is present... " >&6; }
-   if test `ls $with_tidy/lib/libtidy.* 2>/dev/null | wc -l` -gt 0 ; then
+   if test `ls $with_tidy/lib64/libtidy.* 2>/dev/null | wc -l` -gt 0 ; then
         if test `ls $with_tidy/include/tidy/tidy.h 2>/dev/null | wc -l` -gt 0 ; then
                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
