--- configure 2006-10-26 08:19:08.000000000 +0200 +++ configure 2006-10-26 08:18:21.000000000 +0200 @@ -66,13 +66,16 @@ search_includes() { for dir in ${DIRS}; do for dbn in "" ${subdirs}; do - if test -r ${dir}/include${dbn}/$1; then - add_include ${dir}/include${dbn} - echo Found: $1 at ${dir}/include${dbn} + for inc_path in `ls -dr ${dir}/include${dbn} 2> /dev/null`; do + if test -r "${inc_path}/$1"; then + add_include ${inc_path} + echo Found: $1 at ${inc_path} return 0 - fi + fi + done done done + return 1 }