--- kdemultimedia-3.1.3/admin/libtool.m4.in.orig Tue Jul 15 12:03:59 2003 +++ kdemultimedia-3.1.3/admin/libtool.m4.in Fri Sep 5 14:54:56 2003 @@ -11412,6 +11412,19 @@ if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) + # sanitize + new_c=$(echo $p | sed -e ['s/\(-[LR]\).*/\1/']) + new_d=["${p#-[LR]}"] + if ! test -d $new_d -a -x $new_d ; then + continue + fi + # normalize + new_d=$(cd $new_d ; pwd) + # uniq + if echo "${compiler_lib_search_path_CXX}" | grep -q -F -e "\(^\| \)$new_c$new_d\( \|$\)"; then + continue + fi + p="$new_c$new_d" # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them.