]>
Commit | Line | Data |
---|---|---|
22891a57 JB |
1 | --- libtool-2.4.3/m4/libtool.m4.orig 2003-04-14 23:58:23.000000000 +0200 |
2 | +++ libtool-2.4.3/m4/libtool.m4 2003-04-20 12:22:06.000000000 +0200 | |
6153179c JB |
3 | @@ -1103,6 +1103,21 @@ |
4 | else | |
5 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
6 | fi | |
7 | + # sanitize | |
8 | + new_sys_lib_search_path_spec= | |
9 | + for d in $sys_lib_search_path_spec ; do | |
10 | + # check if exists | |
11 | + if test -d $d -a -x $d ; then | |
12 | + # normalize | |
13 | + new_d=$(cd $d ; pwd) | |
14 | + # uniq | |
15 | + if ! echo "$new_sys_lib_search_path_spec" | grep -q -F -e " $new_d " ; then | |
16 | + new_sys_lib_search_path_spec="$new_sys_lib_search_path_spec $new_d " | |
17 | + fi | |
18 | + fi | |
19 | + done | |
20 | + # compress spaces | |
21 | + sys_lib_search_path_spec=`echo "$new_sys_lib_search_path_spec" | $SED -e 's/^ *//g;s/ \+/ /g;s/ $//g'` | |
22 | else | |
23 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
24 | fi |