--- configure.orig	2020-05-15 23:35:58 UTC
+++ configure
@@ -5296,7 +5296,7 @@ if ${ac_cv_lib_zvbi_vbi_capture_fd+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lzvbi $LIBPTHREAD $LIBS"
+LIBS="-lunicode -lzvbi $LIBPTHREAD $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -5329,7 +5329,7 @@ $as_echo "$ac_cv_lib_zvbi_vbi_capture_fd" >&6; }
 if test "x$ac_cv_lib_zvbi_vbi_capture_fd" = xyes; then :
 
 $as_echo "#define HAVE_ZVBI 1" >>confdefs.h
- FOUND_ZVBI="yes"; LIBZVBI="-lzvbi -lpthread -lm -lpng -lz"
+ FOUND_ZVBI="yes"; LIBZVBI="-lzvbi -lunicode -lpthread -lm -lpng -lz"
 fi
 
 else
@@ -5431,7 +5431,7 @@ $as_echo "$ac_cv_lib_dv_dv_decoder_new" >&6; }
 if test "x$ac_cv_lib_dv_dv_decoder_new" = xyes; then :
 
 $as_echo "#define HAVE_DV 1" >>confdefs.h
- FOUND_DV="yes"; LIBDV="-ldv -lm"
+ FOUND_DV="yes"; LIBDV="-ldv -lm $LIBPTHREAD $LIBS"
 fi
 
 else
@@ -5966,23 +5966,14 @@ VERSION="`head -1 $srcdir/Changes`"
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 config directory" >&5
 $as_echo_n "checking for X11 config directory... " >&6; }
-x11conf=/usr/lib/X11
-if test -d /etc/X11; then
-	x11conf=/etc/X11
-fi
+x11conf=/etc/X11
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $x11conf" >&5
 $as_echo "$x11conf" >&6; }
 
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 app-defaults directory" >&5
 $as_echo_n "checking for X11 app-defaults directory... " >&6; }
-resdir=/usr/lib/X11
-if test -d /usr/share/X11/app-defaults; then
-	resdir=/usr/share/X11
-fi
-if test -d /etc/X11/app-defaults; then
-	resdir=/etc/X11
-fi
+resdir=/usr/X11R6/lib/X11
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $resdir/app-defaults" >&5
 $as_echo "$resdir/app-defaults" >&6; }
 
