--- ./configure.orig 2004-02-08 09:35:23.000000000 +0000 +++ ./configure 2014-01-25 23:08:47.000000000 +0000 @@ -4566,12 +4566,12 @@ kpathsea_dir= kpathsea_lib= kpathsea_def= - for cand in .. ../kpse3-2 kpse3-2 . + for cand in ${LOCALBASE} do - if test -f $cand/kpathsea/tex-file.h ; then - kpathsea_dir=$cand - kpathsea_lib=$cand/kpathsea/STATIC/libkpathsea.a - kpathsea_def="-DHAVE_LIBKPATHSEA -I$cand" + if test -f $cand/include/kpathsea/tex-file.h ; then + kpathsea_dir=$cand/include + kpathsea_lib=$cand/lib/libkpathsea.a + kpathsea_def="-DHAVE_LIBKPATHSEA -I$cand/include" fi done if test -z "$kpathsea_dir"; then