acinclude/libtool.m4
changeset 9638 a30b6998c1d8
parent 6593 f20b511e05a6
child 10590 e75e81f94e47
equal deleted inserted replaced
9637:adf81fe554b9 9638:a30b6998c1d8
  2184   *)
  2184   *)
  2185     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  2185     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  2186     ;;
  2186     ;;
  2187   esac
  2187   esac
  2188   # Ok, now we have the path, separated by spaces, we can step through it
  2188   # Ok, now we have the path, separated by spaces, we can step through it
  2189   # and add multilib dir if necessary.
  2189   # and add multilib dir if necessary...
  2190   lt_tmp_lt_search_path_spec=
  2190   lt_tmp_lt_search_path_spec=
  2191   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2191   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
       
  2192   # ...but if some path already ends with the multilib dir we assume
       
  2193   # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
       
  2194   case "$lt_multi_os_dir; $lt_search_path_spec " in
       
  2195   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
       
  2196     lt_multi_os_dir=
       
  2197     ;;
       
  2198   esac
  2192   for lt_sys_path in $lt_search_path_spec; do
  2199   for lt_sys_path in $lt_search_path_spec; do
  2193     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  2200     if test -d "$lt_sys_path$lt_multi_os_dir"; then
  2194       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  2201       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  2195     else
  2202     elif test -n "$lt_multi_os_dir"; then
  2196       test -d "$lt_sys_path" && \
  2203       test -d "$lt_sys_path" && \
  2197 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2204 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2198     fi
  2205     fi
  2199   done
  2206   done
  2200   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  2207   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '