Jakub Jelinek bcc1c6
--- binutils/configure.jj	2007-06-18 13:29:28.000000000 -0400
Jakub Jelinek e989e1
+++ binutils/configure	2007-06-27 13:55:07.000000000 -0400
Jakub Jelinek e989e1
@@ -8990,10 +8990,34 @@ rm -f conftest.err conftest.$ac_objext \
Jakub Jelinek bcc1c6
   # before this can be enabled.
Jakub Jelinek bcc1c6
   hardcode_into_libs=yes
Jakub Jelinek bcc1c6
 
Jakub Jelinek bcc1c6
+  # find out which ABI we are using
Jakub Jelinek bcc1c6
+  libsuff=
Jakub Jelinek bcc1c6
+  case "$host_cpu" in
Jakub Jelinek bcc1c6
+  x86_64*|s390*|powerpc*|ppc*|sparc*)
Jakub Jelinek e989e1
+    echo 'int i;' > conftest.$ac_ext
Jakub Jelinek e989e1
+    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jakub Jelinek e989e1
+  (eval $ac_compile) 2>&5
Jakub Jelinek e989e1
+  ac_status=$?
Jakub Jelinek e989e1
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jakub Jelinek e989e1
+  (exit $ac_status); }; then
Jakub Jelinek bcc1c6
+      case `/usr/bin/file conftest.$ac_objext` in
Jakub Jelinek bcc1c6
+      *64-bit*)
Jakub Jelinek bcc1c6
+        libsuff=64
Jakub Jelinek bcc1c6
+        if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
Jakub Jelinek bcc1c6
+          sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        fi
Jakub Jelinek bcc1c6
+        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
Jakub Jelinek bcc1c6
+        ;;
Jakub Jelinek bcc1c6
+      esac
Jakub Jelinek bcc1c6
+    fi
Jakub Jelinek bcc1c6
+    rm -rf conftest*
Jakub Jelinek bcc1c6
+    ;;
Jakub Jelinek bcc1c6
+  esac
Jakub Jelinek bcc1c6
+
Jakub Jelinek bcc1c6
   # Append ld.so.conf contents to the search path
Jakub Jelinek bcc1c6
   if test -f /etc/ld.so.conf; then
Jakub Jelinek bcc1c6
     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Jakub Jelinek bcc1c6
-    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Jakub Jelinek bcc1c6
+    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
Jakub Jelinek bcc1c6
   fi
Jakub Jelinek bcc1c6
 
Jakub Jelinek bcc1c6
   # We used to test for /lib/ld.so.1 and disable shared libraries on
Jakub Jelinek bcc1c6
--- binutils/aclocal.m4.jj	2007-06-18 13:29:28.000000000 -0400
Jakub Jelinek e989e1
+++ binutils/aclocal.m4	2007-06-27 13:55:07.000000000 -0400
Jakub Jelinek bcc1c6
@@ -1206,16 +1206,49 @@ version_type=none
Jakub Jelinek bcc1c6
 dynamic_linker="$host_os ld.so"
Jakub Jelinek bcc1c6
 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Jakub Jelinek bcc1c6
 if test "$GCC" = yes; then
Jakub Jelinek bcc1c6
-  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Jakub Jelinek bcc1c6
-  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
Jakub Jelinek bcc1c6
+  lt_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Jakub Jelinek bcc1c6
+  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
Jakub Jelinek bcc1c6
     # if the path contains ";" then we assume it to be the separator
Jakub Jelinek bcc1c6
     # otherwise default to the standard path separator (i.e. ":") - it is
Jakub Jelinek bcc1c6
     # assumed that no part of a normal pathname contains ";" but that should
Jakub Jelinek bcc1c6
     # okay in the real world where ";" in dirpaths is itself problematic.
Jakub Jelinek bcc1c6
-    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Jakub Jelinek bcc1c6
+    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
Jakub Jelinek bcc1c6
   else
Jakub Jelinek bcc1c6
-    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Jakub Jelinek bcc1c6
+    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Jakub Jelinek bcc1c6
   fi
Jakub Jelinek bcc1c6
+  # Ok, now we have the path, separated by spaces, we can step through it
Jakub Jelinek bcc1c6
+  # and add multilib dir if necessary.
Jakub Jelinek bcc1c6
+  lt_tmp_lt_search_path_spec=
Jakub Jelinek bcc1c6
+  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Jakub Jelinek bcc1c6
+  for lt_sys_path in $lt_search_path_spec; do
Jakub Jelinek bcc1c6
+    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
Jakub Jelinek bcc1c6
+      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
Jakub Jelinek bcc1c6
+    else
Jakub Jelinek bcc1c6
+      test -d "$lt_sys_path" && \
Jakub Jelinek bcc1c6
+	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Jakub Jelinek bcc1c6
+    fi
Jakub Jelinek bcc1c6
+  done
Jakub Jelinek bcc1c6
+  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
Jakub Jelinek bcc1c6
+BEGIN {RS=" "; FS="/|\n";} {
Jakub Jelinek bcc1c6
+  lt_foo="";
Jakub Jelinek bcc1c6
+  lt_count=0;
Jakub Jelinek bcc1c6
+  for (lt_i = NF; lt_i > 0; lt_i--) {
Jakub Jelinek bcc1c6
+    if ($lt_i != "" && $lt_i != ".") {
Jakub Jelinek bcc1c6
+      if ($lt_i == "..") {
Jakub Jelinek bcc1c6
+        lt_count++;
Jakub Jelinek bcc1c6
+      } else {
Jakub Jelinek bcc1c6
+        if (lt_count == 0) {
Jakub Jelinek bcc1c6
+          lt_foo="/" $lt_i lt_foo;
Jakub Jelinek bcc1c6
+        } else {
Jakub Jelinek bcc1c6
+          lt_count--;
Jakub Jelinek bcc1c6
+        }
Jakub Jelinek bcc1c6
+      }
Jakub Jelinek bcc1c6
+    }
Jakub Jelinek bcc1c6
+  }
Jakub Jelinek bcc1c6
+  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
Jakub Jelinek bcc1c6
+  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
Jakub Jelinek bcc1c6
+}'`
Jakub Jelinek bcc1c6
+  sys_lib_search_path_spec=`echo $lt_search_path_spec`
Jakub Jelinek bcc1c6
 else
Jakub Jelinek bcc1c6
   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Jakub Jelinek bcc1c6
 fi
Jakub Jelinek bcc1c6
@@ -1581,13 +1614,16 @@ linux*)
Jakub Jelinek bcc1c6
   # find out which ABI we are using
Jakub Jelinek bcc1c6
   libsuff=
Jakub Jelinek bcc1c6
   case "$host_cpu" in
Jakub Jelinek bcc1c6
-  x86_64*|s390x*|powerpc64*)
Jakub Jelinek bcc1c6
-    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
Jakub Jelinek bcc1c6
+  x86_64*|s390*|powerpc64*|ppc*|sparc*)
Jakub Jelinek e989e1
+    echo 'int i;' > conftest.$ac_ext
Jakub Jelinek bcc1c6
     if AC_TRY_EVAL(ac_compile); then
Jakub Jelinek bcc1c6
       case `/usr/bin/file conftest.$ac_objext` in
Jakub Jelinek bcc1c6
       *64-bit*)
Jakub Jelinek bcc1c6
         libsuff=64
Jakub Jelinek bcc1c6
-        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
Jakub Jelinek bcc1c6
+          sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        fi
Jakub Jelinek bcc1c6
+        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
Jakub Jelinek bcc1c6
         ;;
Jakub Jelinek bcc1c6
       esac
Jakub Jelinek bcc1c6
     fi
Jakub Jelinek bcc1c6
--- opcodes/configure.jj	2007-06-18 13:29:29.000000000 -0400
Jakub Jelinek e989e1
+++ opcodes/configure	2007-06-27 13:55:08.000000000 -0400
Jakub Jelinek e989e1
@@ -8420,10 +8420,34 @@ rm -f conftest.err conftest.$ac_objext \
Jakub Jelinek bcc1c6
   # before this can be enabled.
Jakub Jelinek bcc1c6
   hardcode_into_libs=yes
Jakub Jelinek bcc1c6
 
Jakub Jelinek bcc1c6
+  # find out which ABI we are using
Jakub Jelinek bcc1c6
+  libsuff=
Jakub Jelinek bcc1c6
+  case "$host_cpu" in
Jakub Jelinek bcc1c6
+  x86_64*|s390*|powerpc*|ppc*|sparc*)
Jakub Jelinek e989e1
+    echo 'int i;' > conftest.$ac_ext
Jakub Jelinek e989e1
+    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jakub Jelinek e989e1
+  (eval $ac_compile) 2>&5
Jakub Jelinek e989e1
+  ac_status=$?
Jakub Jelinek e989e1
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jakub Jelinek e989e1
+  (exit $ac_status); }; then
Jakub Jelinek bcc1c6
+      case `/usr/bin/file conftest.$ac_objext` in
Jakub Jelinek bcc1c6
+      *64-bit*)
Jakub Jelinek bcc1c6
+        libsuff=64
Jakub Jelinek bcc1c6
+        if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
Jakub Jelinek bcc1c6
+          sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        fi
Jakub Jelinek bcc1c6
+        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
Jakub Jelinek bcc1c6
+        ;;
Jakub Jelinek bcc1c6
+      esac
Jakub Jelinek bcc1c6
+    fi
Jakub Jelinek bcc1c6
+    rm -rf conftest*
Jakub Jelinek bcc1c6
+    ;;
Jakub Jelinek bcc1c6
+  esac
Jakub Jelinek bcc1c6
+
Jakub Jelinek bcc1c6
   # Append ld.so.conf contents to the search path
Jakub Jelinek bcc1c6
   if test -f /etc/ld.so.conf; then
Jakub Jelinek bcc1c6
     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Jakub Jelinek bcc1c6
-    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Jakub Jelinek bcc1c6
+    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
Jakub Jelinek bcc1c6
   fi
Jakub Jelinek bcc1c6
 
Jakub Jelinek bcc1c6
   # We used to test for /lib/ld.so.1 and disable shared libraries on
Jakub Jelinek bcc1c6
--- opcodes/aclocal.m4.jj	2007-06-18 13:29:29.000000000 -0400
Jakub Jelinek e989e1
+++ opcodes/aclocal.m4	2007-06-27 13:55:08.000000000 -0400
Jakub Jelinek bcc1c6
@@ -1206,16 +1206,49 @@ version_type=none
Jakub Jelinek bcc1c6
 dynamic_linker="$host_os ld.so"
Jakub Jelinek bcc1c6
 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Jakub Jelinek bcc1c6
 if test "$GCC" = yes; then
Jakub Jelinek bcc1c6
-  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Jakub Jelinek bcc1c6
-  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
Jakub Jelinek bcc1c6
+  lt_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Jakub Jelinek bcc1c6
+  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
Jakub Jelinek bcc1c6
     # if the path contains ";" then we assume it to be the separator
Jakub Jelinek bcc1c6
     # otherwise default to the standard path separator (i.e. ":") - it is
Jakub Jelinek bcc1c6
     # assumed that no part of a normal pathname contains ";" but that should
Jakub Jelinek bcc1c6
     # okay in the real world where ";" in dirpaths is itself problematic.
Jakub Jelinek bcc1c6
-    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Jakub Jelinek bcc1c6
+    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
Jakub Jelinek bcc1c6
   else
Jakub Jelinek bcc1c6
-    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Jakub Jelinek bcc1c6
+    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Jakub Jelinek bcc1c6
   fi
Jakub Jelinek bcc1c6
+  # Ok, now we have the path, separated by spaces, we can step through it
Jakub Jelinek bcc1c6
+  # and add multilib dir if necessary.
Jakub Jelinek bcc1c6
+  lt_tmp_lt_search_path_spec=
Jakub Jelinek bcc1c6
+  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Jakub Jelinek bcc1c6
+  for lt_sys_path in $lt_search_path_spec; do
Jakub Jelinek bcc1c6
+    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
Jakub Jelinek bcc1c6
+      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
Jakub Jelinek bcc1c6
+    else
Jakub Jelinek bcc1c6
+      test -d "$lt_sys_path" && \
Jakub Jelinek bcc1c6
+	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Jakub Jelinek bcc1c6
+    fi
Jakub Jelinek bcc1c6
+  done
Jakub Jelinek bcc1c6
+  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
Jakub Jelinek bcc1c6
+BEGIN {RS=" "; FS="/|\n";} {
Jakub Jelinek bcc1c6
+  lt_foo="";
Jakub Jelinek bcc1c6
+  lt_count=0;
Jakub Jelinek bcc1c6
+  for (lt_i = NF; lt_i > 0; lt_i--) {
Jakub Jelinek bcc1c6
+    if ($lt_i != "" && $lt_i != ".") {
Jakub Jelinek bcc1c6
+      if ($lt_i == "..") {
Jakub Jelinek bcc1c6
+        lt_count++;
Jakub Jelinek bcc1c6
+      } else {
Jakub Jelinek bcc1c6
+        if (lt_count == 0) {
Jakub Jelinek bcc1c6
+          lt_foo="/" $lt_i lt_foo;
Jakub Jelinek bcc1c6
+        } else {
Jakub Jelinek bcc1c6
+          lt_count--;
Jakub Jelinek bcc1c6
+        }
Jakub Jelinek bcc1c6
+      }
Jakub Jelinek bcc1c6
+    }
Jakub Jelinek bcc1c6
+  }
Jakub Jelinek bcc1c6
+  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
Jakub Jelinek bcc1c6
+  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
Jakub Jelinek bcc1c6
+}'`
Jakub Jelinek bcc1c6
+  sys_lib_search_path_spec=`echo $lt_search_path_spec`
Jakub Jelinek bcc1c6
 else
Jakub Jelinek bcc1c6
   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Jakub Jelinek bcc1c6
 fi
Jakub Jelinek bcc1c6
@@ -1581,13 +1614,16 @@ linux*)
Jakub Jelinek bcc1c6
   # find out which ABI we are using
Jakub Jelinek bcc1c6
   libsuff=
Jakub Jelinek bcc1c6
   case "$host_cpu" in
Jakub Jelinek bcc1c6
-  x86_64*|s390x*|powerpc64*)
Jakub Jelinek bcc1c6
-    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
Jakub Jelinek bcc1c6
+  x86_64*|s390*|powerpc64*|ppc*|sparc*)
Jakub Jelinek e989e1
+    echo 'int i;' > conftest.$ac_ext
Jakub Jelinek bcc1c6
     if AC_TRY_EVAL(ac_compile); then
Jakub Jelinek bcc1c6
       case `/usr/bin/file conftest.$ac_objext` in
Jakub Jelinek bcc1c6
       *64-bit*)
Jakub Jelinek bcc1c6
         libsuff=64
Jakub Jelinek bcc1c6
-        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
Jakub Jelinek bcc1c6
+          sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        fi
Jakub Jelinek bcc1c6
+        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
Jakub Jelinek bcc1c6
         ;;
Jakub Jelinek bcc1c6
       esac
Jakub Jelinek bcc1c6
     fi
Jakub Jelinek bcc1c6
--- gprof/configure.jj	2007-06-18 13:29:29.000000000 -0400
Jakub Jelinek e989e1
+++ gprof/configure	2007-06-27 13:55:08.000000000 -0400
Jakub Jelinek e989e1
@@ -8250,10 +8250,34 @@ rm -f conftest.err conftest.$ac_objext \
Jakub Jelinek bcc1c6
   # before this can be enabled.
Jakub Jelinek bcc1c6
   hardcode_into_libs=yes
Jakub Jelinek bcc1c6
 
Jakub Jelinek bcc1c6
+  # find out which ABI we are using
Jakub Jelinek bcc1c6
+  libsuff=
Jakub Jelinek bcc1c6
+  case "$host_cpu" in
Jakub Jelinek bcc1c6
+  x86_64*|s390*|powerpc*|ppc*|sparc*)
Jakub Jelinek e989e1
+    echo 'int i;' > conftest.$ac_ext
Jakub Jelinek e989e1
+    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jakub Jelinek e989e1
+  (eval $ac_compile) 2>&5
Jakub Jelinek e989e1
+  ac_status=$?
Jakub Jelinek e989e1
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jakub Jelinek e989e1
+  (exit $ac_status); }; then
Jakub Jelinek bcc1c6
+      case `/usr/bin/file conftest.$ac_objext` in
Jakub Jelinek bcc1c6
+      *64-bit*)
Jakub Jelinek bcc1c6
+        libsuff=64
Jakub Jelinek bcc1c6
+        if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
Jakub Jelinek bcc1c6
+          sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        fi
Jakub Jelinek bcc1c6
+        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
Jakub Jelinek bcc1c6
+        ;;
Jakub Jelinek bcc1c6
+      esac
Jakub Jelinek bcc1c6
+    fi
Jakub Jelinek bcc1c6
+    rm -rf conftest*
Jakub Jelinek bcc1c6
+    ;;
Jakub Jelinek bcc1c6
+  esac
Jakub Jelinek bcc1c6
+
Jakub Jelinek bcc1c6
   # Append ld.so.conf contents to the search path
Jakub Jelinek bcc1c6
   if test -f /etc/ld.so.conf; then
Jakub Jelinek bcc1c6
     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Jakub Jelinek bcc1c6
-    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Jakub Jelinek bcc1c6
+    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
Jakub Jelinek bcc1c6
   fi
Jakub Jelinek bcc1c6
 
Jakub Jelinek bcc1c6
   # We used to test for /lib/ld.so.1 and disable shared libraries on
Jakub Jelinek bcc1c6
--- gprof/aclocal.m4.jj	2007-06-18 13:29:29.000000000 -0400
Jakub Jelinek e989e1
+++ gprof/aclocal.m4	2007-06-27 13:55:08.000000000 -0400
Jakub Jelinek bcc1c6
@@ -1206,16 +1206,49 @@ version_type=none
Jakub Jelinek bcc1c6
 dynamic_linker="$host_os ld.so"
Jakub Jelinek bcc1c6
 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Jakub Jelinek bcc1c6
 if test "$GCC" = yes; then
Jakub Jelinek bcc1c6
-  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Jakub Jelinek bcc1c6
-  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
Jakub Jelinek bcc1c6
+  lt_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Jakub Jelinek bcc1c6
+  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
Jakub Jelinek bcc1c6
     # if the path contains ";" then we assume it to be the separator
Jakub Jelinek bcc1c6
     # otherwise default to the standard path separator (i.e. ":") - it is
Jakub Jelinek bcc1c6
     # assumed that no part of a normal pathname contains ";" but that should
Jakub Jelinek bcc1c6
     # okay in the real world where ";" in dirpaths is itself problematic.
Jakub Jelinek bcc1c6
-    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Jakub Jelinek bcc1c6
+    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
Jakub Jelinek bcc1c6
   else
Jakub Jelinek bcc1c6
-    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Jakub Jelinek bcc1c6
+    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Jakub Jelinek bcc1c6
   fi
Jakub Jelinek bcc1c6
+  # Ok, now we have the path, separated by spaces, we can step through it
Jakub Jelinek bcc1c6
+  # and add multilib dir if necessary.
Jakub Jelinek bcc1c6
+  lt_tmp_lt_search_path_spec=
Jakub Jelinek bcc1c6
+  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Jakub Jelinek bcc1c6
+  for lt_sys_path in $lt_search_path_spec; do
Jakub Jelinek bcc1c6
+    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
Jakub Jelinek bcc1c6
+      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
Jakub Jelinek bcc1c6
+    else
Jakub Jelinek bcc1c6
+      test -d "$lt_sys_path" && \
Jakub Jelinek bcc1c6
+	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Jakub Jelinek bcc1c6
+    fi
Jakub Jelinek bcc1c6
+  done
Jakub Jelinek bcc1c6
+  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
Jakub Jelinek bcc1c6
+BEGIN {RS=" "; FS="/|\n";} {
Jakub Jelinek bcc1c6
+  lt_foo="";
Jakub Jelinek bcc1c6
+  lt_count=0;
Jakub Jelinek bcc1c6
+  for (lt_i = NF; lt_i > 0; lt_i--) {
Jakub Jelinek bcc1c6
+    if ($lt_i != "" && $lt_i != ".") {
Jakub Jelinek bcc1c6
+      if ($lt_i == "..") {
Jakub Jelinek bcc1c6
+        lt_count++;
Jakub Jelinek bcc1c6
+      } else {
Jakub Jelinek bcc1c6
+        if (lt_count == 0) {
Jakub Jelinek bcc1c6
+          lt_foo="/" $lt_i lt_foo;
Jakub Jelinek bcc1c6
+        } else {
Jakub Jelinek bcc1c6
+          lt_count--;
Jakub Jelinek bcc1c6
+        }
Jakub Jelinek bcc1c6
+      }
Jakub Jelinek bcc1c6
+    }
Jakub Jelinek bcc1c6
+  }
Jakub Jelinek bcc1c6
+  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
Jakub Jelinek bcc1c6
+  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
Jakub Jelinek bcc1c6
+}'`
Jakub Jelinek bcc1c6
+  sys_lib_search_path_spec=`echo $lt_search_path_spec`
Jakub Jelinek bcc1c6
 else
Jakub Jelinek bcc1c6
   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Jakub Jelinek bcc1c6
 fi
Jakub Jelinek bcc1c6
@@ -1581,13 +1614,16 @@ linux*)
Jakub Jelinek bcc1c6
   # find out which ABI we are using
Jakub Jelinek bcc1c6
   libsuff=
Jakub Jelinek bcc1c6
   case "$host_cpu" in
Jakub Jelinek bcc1c6
-  x86_64*|s390x*|powerpc64*)
Jakub Jelinek bcc1c6
-    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
Jakub Jelinek bcc1c6
+  x86_64*|s390*|powerpc64*|ppc*|sparc*)
Jakub Jelinek e989e1
+    echo 'int i;' > conftest.$ac_ext
Jakub Jelinek bcc1c6
     if AC_TRY_EVAL(ac_compile); then
Jakub Jelinek bcc1c6
       case `/usr/bin/file conftest.$ac_objext` in
Jakub Jelinek bcc1c6
       *64-bit*)
Jakub Jelinek bcc1c6
         libsuff=64
Jakub Jelinek bcc1c6
-        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
Jakub Jelinek bcc1c6
+          sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        fi
Jakub Jelinek bcc1c6
+        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
Jakub Jelinek bcc1c6
         ;;
Jakub Jelinek bcc1c6
       esac
Jakub Jelinek bcc1c6
     fi
Jakub Jelinek bcc1c6
--- ld/configure.jj	2007-06-18 13:29:29.000000000 -0400
Jakub Jelinek e989e1
+++ ld/configure	2007-06-27 13:55:08.000000000 -0400
Jakub Jelinek e989e1
@@ -8253,10 +8253,34 @@ rm -f conftest.err conftest.$ac_objext \
Jakub Jelinek bcc1c6
   # before this can be enabled.
Jakub Jelinek bcc1c6
   hardcode_into_libs=yes
Jakub Jelinek bcc1c6
 
Jakub Jelinek bcc1c6
+  # find out which ABI we are using
Jakub Jelinek bcc1c6
+  libsuff=
Jakub Jelinek bcc1c6
+  case "$host_cpu" in
Jakub Jelinek bcc1c6
+  x86_64*|s390*|powerpc*|ppc*|sparc*)
Jakub Jelinek e989e1
+    echo 'int i;' > conftest.$ac_ext
Jakub Jelinek e989e1
+    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jakub Jelinek e989e1
+  (eval $ac_compile) 2>&5
Jakub Jelinek e989e1
+  ac_status=$?
Jakub Jelinek e989e1
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jakub Jelinek e989e1
+  (exit $ac_status); }; then
Jakub Jelinek bcc1c6
+      case `/usr/bin/file conftest.$ac_objext` in
Jakub Jelinek bcc1c6
+      *64-bit*)
Jakub Jelinek bcc1c6
+        libsuff=64
Jakub Jelinek bcc1c6
+        if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
Jakub Jelinek bcc1c6
+          sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        fi
Jakub Jelinek bcc1c6
+        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
Jakub Jelinek bcc1c6
+        ;;
Jakub Jelinek bcc1c6
+      esac
Jakub Jelinek bcc1c6
+    fi
Jakub Jelinek bcc1c6
+    rm -rf conftest*
Jakub Jelinek bcc1c6
+    ;;
Jakub Jelinek bcc1c6
+  esac
Jakub Jelinek bcc1c6
+
Jakub Jelinek bcc1c6
   # Append ld.so.conf contents to the search path
Jakub Jelinek bcc1c6
   if test -f /etc/ld.so.conf; then
Jakub Jelinek bcc1c6
     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Jakub Jelinek bcc1c6
-    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Jakub Jelinek bcc1c6
+    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
Jakub Jelinek bcc1c6
   fi
Jakub Jelinek bcc1c6
 
Jakub Jelinek bcc1c6
   # We used to test for /lib/ld.so.1 and disable shared libraries on
Jakub Jelinek bcc1c6
--- ld/aclocal.m4.jj	2007-06-18 13:29:29.000000000 -0400
Jakub Jelinek e989e1
+++ ld/aclocal.m4	2007-06-27 13:55:08.000000000 -0400
Jakub Jelinek bcc1c6
@@ -1206,16 +1206,49 @@ version_type=none
Jakub Jelinek bcc1c6
 dynamic_linker="$host_os ld.so"
Jakub Jelinek bcc1c6
 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Jakub Jelinek bcc1c6
 if test "$GCC" = yes; then
Jakub Jelinek bcc1c6
-  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Jakub Jelinek bcc1c6
-  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
Jakub Jelinek bcc1c6
+  lt_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Jakub Jelinek bcc1c6
+  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
Jakub Jelinek bcc1c6
     # if the path contains ";" then we assume it to be the separator
Jakub Jelinek bcc1c6
     # otherwise default to the standard path separator (i.e. ":") - it is
Jakub Jelinek bcc1c6
     # assumed that no part of a normal pathname contains ";" but that should
Jakub Jelinek bcc1c6
     # okay in the real world where ";" in dirpaths is itself problematic.
Jakub Jelinek bcc1c6
-    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Jakub Jelinek bcc1c6
+    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
Jakub Jelinek bcc1c6
   else
Jakub Jelinek bcc1c6
-    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Jakub Jelinek bcc1c6
+    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Jakub Jelinek bcc1c6
   fi
Jakub Jelinek bcc1c6
+  # Ok, now we have the path, separated by spaces, we can step through it
Jakub Jelinek bcc1c6
+  # and add multilib dir if necessary.
Jakub Jelinek bcc1c6
+  lt_tmp_lt_search_path_spec=
Jakub Jelinek bcc1c6
+  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Jakub Jelinek bcc1c6
+  for lt_sys_path in $lt_search_path_spec; do
Jakub Jelinek bcc1c6
+    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
Jakub Jelinek bcc1c6
+      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
Jakub Jelinek bcc1c6
+    else
Jakub Jelinek bcc1c6
+      test -d "$lt_sys_path" && \
Jakub Jelinek bcc1c6
+	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Jakub Jelinek bcc1c6
+    fi
Jakub Jelinek bcc1c6
+  done
Jakub Jelinek bcc1c6
+  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
Jakub Jelinek bcc1c6
+BEGIN {RS=" "; FS="/|\n";} {
Jakub Jelinek bcc1c6
+  lt_foo="";
Jakub Jelinek bcc1c6
+  lt_count=0;
Jakub Jelinek bcc1c6
+  for (lt_i = NF; lt_i > 0; lt_i--) {
Jakub Jelinek bcc1c6
+    if ($lt_i != "" && $lt_i != ".") {
Jakub Jelinek bcc1c6
+      if ($lt_i == "..") {
Jakub Jelinek bcc1c6
+        lt_count++;
Jakub Jelinek bcc1c6
+      } else {
Jakub Jelinek bcc1c6
+        if (lt_count == 0) {
Jakub Jelinek bcc1c6
+          lt_foo="/" $lt_i lt_foo;
Jakub Jelinek bcc1c6
+        } else {
Jakub Jelinek bcc1c6
+          lt_count--;
Jakub Jelinek bcc1c6
+        }
Jakub Jelinek bcc1c6
+      }
Jakub Jelinek bcc1c6
+    }
Jakub Jelinek bcc1c6
+  }
Jakub Jelinek bcc1c6
+  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
Jakub Jelinek bcc1c6
+  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
Jakub Jelinek bcc1c6
+}'`
Jakub Jelinek bcc1c6
+  sys_lib_search_path_spec=`echo $lt_search_path_spec`
Jakub Jelinek bcc1c6
 else
Jakub Jelinek bcc1c6
   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Jakub Jelinek bcc1c6
 fi
Jakub Jelinek bcc1c6
@@ -1581,13 +1614,16 @@ linux*)
Jakub Jelinek bcc1c6
   # find out which ABI we are using
Jakub Jelinek bcc1c6
   libsuff=
Jakub Jelinek bcc1c6
   case "$host_cpu" in
Jakub Jelinek bcc1c6
-  x86_64*|s390x*|powerpc64*)
Jakub Jelinek bcc1c6
-    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
Jakub Jelinek bcc1c6
+  x86_64*|s390*|powerpc64*|ppc*|sparc*)
Jakub Jelinek e989e1
+    echo 'int i;' > conftest.$ac_ext
Jakub Jelinek bcc1c6
     if AC_TRY_EVAL(ac_compile); then
Jakub Jelinek bcc1c6
       case `/usr/bin/file conftest.$ac_objext` in
Jakub Jelinek bcc1c6
       *64-bit*)
Jakub Jelinek bcc1c6
         libsuff=64
Jakub Jelinek bcc1c6
-        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
Jakub Jelinek bcc1c6
+          sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        fi
Jakub Jelinek bcc1c6
+        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
Jakub Jelinek bcc1c6
         ;;
Jakub Jelinek bcc1c6
       esac
Jakub Jelinek bcc1c6
     fi
Jakub Jelinek bcc1c6
--- gas/configure.jj	2007-06-18 13:29:28.000000000 -0400
Jakub Jelinek e989e1
+++ gas/configure	2007-06-27 13:55:08.000000000 -0400
Jakub Jelinek e989e1
@@ -8252,10 +8252,34 @@ rm -f conftest.err conftest.$ac_objext \
Jakub Jelinek bcc1c6
   # before this can be enabled.
Jakub Jelinek bcc1c6
   hardcode_into_libs=yes
Jakub Jelinek bcc1c6
 
Jakub Jelinek bcc1c6
+  # find out which ABI we are using
Jakub Jelinek bcc1c6
+  libsuff=
Jakub Jelinek bcc1c6
+  case "$host_cpu" in
Jakub Jelinek bcc1c6
+  x86_64*|s390*|powerpc*|ppc*|sparc*)
Jakub Jelinek e989e1
+    echo 'int i;' > conftest.$ac_ext
Jakub Jelinek e989e1
+    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jakub Jelinek e989e1
+  (eval $ac_compile) 2>&5
Jakub Jelinek e989e1
+  ac_status=$?
Jakub Jelinek e989e1
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jakub Jelinek e989e1
+  (exit $ac_status); }; then
Jakub Jelinek bcc1c6
+      case `/usr/bin/file conftest.$ac_objext` in
Jakub Jelinek bcc1c6
+      *64-bit*)
Jakub Jelinek bcc1c6
+        libsuff=64
Jakub Jelinek bcc1c6
+        if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
Jakub Jelinek bcc1c6
+          sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        fi
Jakub Jelinek bcc1c6
+        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
Jakub Jelinek bcc1c6
+        ;;
Jakub Jelinek bcc1c6
+      esac
Jakub Jelinek bcc1c6
+    fi
Jakub Jelinek bcc1c6
+    rm -rf conftest*
Jakub Jelinek bcc1c6
+    ;;
Jakub Jelinek bcc1c6
+  esac
Jakub Jelinek bcc1c6
+
Jakub Jelinek bcc1c6
   # Append ld.so.conf contents to the search path
Jakub Jelinek bcc1c6
   if test -f /etc/ld.so.conf; then
Jakub Jelinek bcc1c6
     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Jakub Jelinek bcc1c6
-    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Jakub Jelinek bcc1c6
+    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
Jakub Jelinek bcc1c6
   fi
Jakub Jelinek bcc1c6
 
Jakub Jelinek bcc1c6
   # We used to test for /lib/ld.so.1 and disable shared libraries on
Jakub Jelinek bcc1c6
--- gas/aclocal.m4.jj	2007-06-18 13:29:28.000000000 -0400
Jakub Jelinek e989e1
+++ gas/aclocal.m4	2007-06-27 13:55:08.000000000 -0400
Jakub Jelinek bcc1c6
@@ -1206,16 +1206,49 @@ version_type=none
Jakub Jelinek bcc1c6
 dynamic_linker="$host_os ld.so"
Jakub Jelinek bcc1c6
 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Jakub Jelinek bcc1c6
 if test "$GCC" = yes; then
Jakub Jelinek bcc1c6
-  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Jakub Jelinek bcc1c6
-  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
Jakub Jelinek bcc1c6
+  lt_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Jakub Jelinek bcc1c6
+  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
Jakub Jelinek bcc1c6
     # if the path contains ";" then we assume it to be the separator
Jakub Jelinek bcc1c6
     # otherwise default to the standard path separator (i.e. ":") - it is
Jakub Jelinek bcc1c6
     # assumed that no part of a normal pathname contains ";" but that should
Jakub Jelinek bcc1c6
     # okay in the real world where ";" in dirpaths is itself problematic.
Jakub Jelinek bcc1c6
-    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Jakub Jelinek bcc1c6
+    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
Jakub Jelinek bcc1c6
   else
Jakub Jelinek bcc1c6
-    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Jakub Jelinek bcc1c6
+    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Jakub Jelinek bcc1c6
   fi
Jakub Jelinek bcc1c6
+  # Ok, now we have the path, separated by spaces, we can step through it
Jakub Jelinek bcc1c6
+  # and add multilib dir if necessary.
Jakub Jelinek bcc1c6
+  lt_tmp_lt_search_path_spec=
Jakub Jelinek bcc1c6
+  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Jakub Jelinek bcc1c6
+  for lt_sys_path in $lt_search_path_spec; do
Jakub Jelinek bcc1c6
+    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
Jakub Jelinek bcc1c6
+      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
Jakub Jelinek bcc1c6
+    else
Jakub Jelinek bcc1c6
+      test -d "$lt_sys_path" && \
Jakub Jelinek bcc1c6
+	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Jakub Jelinek bcc1c6
+    fi
Jakub Jelinek bcc1c6
+  done
Jakub Jelinek bcc1c6
+  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
Jakub Jelinek bcc1c6
+BEGIN {RS=" "; FS="/|\n";} {
Jakub Jelinek bcc1c6
+  lt_foo="";
Jakub Jelinek bcc1c6
+  lt_count=0;
Jakub Jelinek bcc1c6
+  for (lt_i = NF; lt_i > 0; lt_i--) {
Jakub Jelinek bcc1c6
+    if ($lt_i != "" && $lt_i != ".") {
Jakub Jelinek bcc1c6
+      if ($lt_i == "..") {
Jakub Jelinek bcc1c6
+        lt_count++;
Jakub Jelinek bcc1c6
+      } else {
Jakub Jelinek bcc1c6
+        if (lt_count == 0) {
Jakub Jelinek bcc1c6
+          lt_foo="/" $lt_i lt_foo;
Jakub Jelinek bcc1c6
+        } else {
Jakub Jelinek bcc1c6
+          lt_count--;
Jakub Jelinek bcc1c6
+        }
Jakub Jelinek bcc1c6
+      }
Jakub Jelinek bcc1c6
+    }
Jakub Jelinek bcc1c6
+  }
Jakub Jelinek bcc1c6
+  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
Jakub Jelinek bcc1c6
+  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
Jakub Jelinek bcc1c6
+}'`
Jakub Jelinek bcc1c6
+  sys_lib_search_path_spec=`echo $lt_search_path_spec`
Jakub Jelinek bcc1c6
 else
Jakub Jelinek bcc1c6
   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Jakub Jelinek bcc1c6
 fi
Jakub Jelinek bcc1c6
@@ -1581,13 +1614,16 @@ linux*)
Jakub Jelinek bcc1c6
   # find out which ABI we are using
Jakub Jelinek bcc1c6
   libsuff=
Jakub Jelinek bcc1c6
   case "$host_cpu" in
Jakub Jelinek bcc1c6
-  x86_64*|s390x*|powerpc64*)
Jakub Jelinek bcc1c6
-    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
Jakub Jelinek bcc1c6
+  x86_64*|s390*|powerpc64*|ppc*|sparc*)
Jakub Jelinek e989e1
+    echo 'int i;' > conftest.$ac_ext
Jakub Jelinek bcc1c6
     if AC_TRY_EVAL(ac_compile); then
Jakub Jelinek bcc1c6
       case `/usr/bin/file conftest.$ac_objext` in
Jakub Jelinek bcc1c6
       *64-bit*)
Jakub Jelinek bcc1c6
         libsuff=64
Jakub Jelinek bcc1c6
-        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
Jakub Jelinek bcc1c6
+          sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        fi
Jakub Jelinek bcc1c6
+        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
Jakub Jelinek bcc1c6
         ;;
Jakub Jelinek bcc1c6
       esac
Jakub Jelinek bcc1c6
     fi
Jakub Jelinek bcc1c6
--- bfd/configure.jj	2007-06-18 13:29:28.000000000 -0400
Jakub Jelinek e989e1
+++ bfd/configure	2007-06-27 13:55:08.000000000 -0400
Jakub Jelinek e989e1
@@ -9156,10 +9156,34 @@ rm -f conftest.err conftest.$ac_objext \
Jakub Jelinek bcc1c6
   # before this can be enabled.
Jakub Jelinek bcc1c6
   hardcode_into_libs=yes
Jakub Jelinek bcc1c6
 
Jakub Jelinek bcc1c6
+  # find out which ABI we are using
Jakub Jelinek bcc1c6
+  libsuff=
Jakub Jelinek bcc1c6
+  case "$host_cpu" in
Jakub Jelinek bcc1c6
+  x86_64*|s390*|powerpc*|ppc*|sparc*)
Jakub Jelinek e989e1
+    echo 'int i;' > conftest.$ac_ext
Jakub Jelinek e989e1
+    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Jakub Jelinek e989e1
+  (eval $ac_compile) 2>&5
Jakub Jelinek e989e1
+  ac_status=$?
Jakub Jelinek e989e1
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Jakub Jelinek e989e1
+  (exit $ac_status); }; then
Jakub Jelinek bcc1c6
+      case `/usr/bin/file conftest.$ac_objext` in
Jakub Jelinek bcc1c6
+      *64-bit*)
Jakub Jelinek bcc1c6
+        libsuff=64
Jakub Jelinek bcc1c6
+        if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
Jakub Jelinek bcc1c6
+          sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        fi
Jakub Jelinek bcc1c6
+        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
Jakub Jelinek bcc1c6
+        ;;
Jakub Jelinek bcc1c6
+      esac
Jakub Jelinek bcc1c6
+    fi
Jakub Jelinek bcc1c6
+    rm -rf conftest*
Jakub Jelinek bcc1c6
+    ;;
Jakub Jelinek bcc1c6
+  esac
Jakub Jelinek bcc1c6
+
Jakub Jelinek bcc1c6
   # Append ld.so.conf contents to the search path
Jakub Jelinek bcc1c6
   if test -f /etc/ld.so.conf; then
Jakub Jelinek bcc1c6
     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Jakub Jelinek bcc1c6
-    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Jakub Jelinek bcc1c6
+    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
Jakub Jelinek bcc1c6
   fi
Jakub Jelinek bcc1c6
 
Jakub Jelinek bcc1c6
   # We used to test for /lib/ld.so.1 and disable shared libraries on
Jakub Jelinek bcc1c6
--- bfd/aclocal.m4.jj	2007-06-18 13:29:28.000000000 -0400
Jakub Jelinek e989e1
+++ bfd/aclocal.m4	2007-06-27 13:55:08.000000000 -0400
Jakub Jelinek bcc1c6
@@ -1206,16 +1206,49 @@ version_type=none
Jakub Jelinek bcc1c6
 dynamic_linker="$host_os ld.so"
Jakub Jelinek bcc1c6
 sys_lib_dlsearch_path_spec="/lib /usr/lib"
Jakub Jelinek bcc1c6
 if test "$GCC" = yes; then
Jakub Jelinek bcc1c6
-  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Jakub Jelinek bcc1c6
-  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
Jakub Jelinek bcc1c6
+  lt_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
Jakub Jelinek bcc1c6
+  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
Jakub Jelinek bcc1c6
     # if the path contains ";" then we assume it to be the separator
Jakub Jelinek bcc1c6
     # otherwise default to the standard path separator (i.e. ":") - it is
Jakub Jelinek bcc1c6
     # assumed that no part of a normal pathname contains ";" but that should
Jakub Jelinek bcc1c6
     # okay in the real world where ";" in dirpaths is itself problematic.
Jakub Jelinek bcc1c6
-    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
Jakub Jelinek bcc1c6
+    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
Jakub Jelinek bcc1c6
   else
Jakub Jelinek bcc1c6
-    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Jakub Jelinek bcc1c6
+    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
Jakub Jelinek bcc1c6
   fi
Jakub Jelinek bcc1c6
+  # Ok, now we have the path, separated by spaces, we can step through it
Jakub Jelinek bcc1c6
+  # and add multilib dir if necessary.
Jakub Jelinek bcc1c6
+  lt_tmp_lt_search_path_spec=
Jakub Jelinek bcc1c6
+  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
Jakub Jelinek bcc1c6
+  for lt_sys_path in $lt_search_path_spec; do
Jakub Jelinek bcc1c6
+    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
Jakub Jelinek bcc1c6
+      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
Jakub Jelinek bcc1c6
+    else
Jakub Jelinek bcc1c6
+      test -d "$lt_sys_path" && \
Jakub Jelinek bcc1c6
+	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
Jakub Jelinek bcc1c6
+    fi
Jakub Jelinek bcc1c6
+  done
Jakub Jelinek bcc1c6
+  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
Jakub Jelinek bcc1c6
+BEGIN {RS=" "; FS="/|\n";} {
Jakub Jelinek bcc1c6
+  lt_foo="";
Jakub Jelinek bcc1c6
+  lt_count=0;
Jakub Jelinek bcc1c6
+  for (lt_i = NF; lt_i > 0; lt_i--) {
Jakub Jelinek bcc1c6
+    if ($lt_i != "" && $lt_i != ".") {
Jakub Jelinek bcc1c6
+      if ($lt_i == "..") {
Jakub Jelinek bcc1c6
+        lt_count++;
Jakub Jelinek bcc1c6
+      } else {
Jakub Jelinek bcc1c6
+        if (lt_count == 0) {
Jakub Jelinek bcc1c6
+          lt_foo="/" $lt_i lt_foo;
Jakub Jelinek bcc1c6
+        } else {
Jakub Jelinek bcc1c6
+          lt_count--;
Jakub Jelinek bcc1c6
+        }
Jakub Jelinek bcc1c6
+      }
Jakub Jelinek bcc1c6
+    }
Jakub Jelinek bcc1c6
+  }
Jakub Jelinek bcc1c6
+  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
Jakub Jelinek bcc1c6
+  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
Jakub Jelinek bcc1c6
+}'`
Jakub Jelinek bcc1c6
+  sys_lib_search_path_spec=`echo $lt_search_path_spec`
Jakub Jelinek bcc1c6
 else
Jakub Jelinek bcc1c6
   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
Jakub Jelinek bcc1c6
 fi
Jakub Jelinek bcc1c6
@@ -1581,13 +1614,16 @@ linux*)
Jakub Jelinek bcc1c6
   # find out which ABI we are using
Jakub Jelinek bcc1c6
   libsuff=
Jakub Jelinek bcc1c6
   case "$host_cpu" in
Jakub Jelinek bcc1c6
-  x86_64*|s390x*|powerpc64*)
Jakub Jelinek bcc1c6
-    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
Jakub Jelinek bcc1c6
+  x86_64*|s390*|powerpc64*|ppc*|sparc*)
Jakub Jelinek e989e1
+    echo 'int i;' > conftest.$ac_ext
Jakub Jelinek bcc1c6
     if AC_TRY_EVAL(ac_compile); then
Jakub Jelinek bcc1c6
       case `/usr/bin/file conftest.$ac_objext` in
Jakub Jelinek bcc1c6
       *64-bit*)
Jakub Jelinek bcc1c6
         libsuff=64
Jakub Jelinek bcc1c6
-        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
Jakub Jelinek bcc1c6
+          sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek bcc1c6
+        fi
Jakub Jelinek bcc1c6
+        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
Jakub Jelinek bcc1c6
         ;;
Jakub Jelinek bcc1c6
       esac
Jakub Jelinek bcc1c6
     fi
Jakub Jelinek e989e1
--- libtool.m4.jj	2007-06-18 13:29:28.000000000 -0400
Jakub Jelinek e989e1
+++ libtool.m4	2007-06-27 13:55:08.000000000 -0400
Jakub Jelinek e989e1
@@ -2337,10 +2337,30 @@ linux* | k*bsd*-gnu)
Jakub Jelinek e989e1
   # before this can be enabled.
Jakub Jelinek e989e1
   hardcode_into_libs=yes
Jakub Jelinek e989e1
 
Jakub Jelinek e989e1
+  # find out which ABI we are using
Jakub Jelinek e989e1
+  libsuff=
Jakub Jelinek e989e1
+  case "$host_cpu" in
Jakub Jelinek e989e1
+  x86_64*|s390*|powerpc*|ppc*|sparc*)
Jakub Jelinek e989e1
+    echo 'int i;' > conftest.$ac_ext
Jakub Jelinek e989e1
+    if AC_TRY_EVAL(ac_compile); then
Jakub Jelinek e989e1
+      case `/usr/bin/file conftest.$ac_objext` in
Jakub Jelinek e989e1
+      *64-bit*)
Jakub Jelinek e989e1
+        libsuff=64
Jakub Jelinek e989e1
+        if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
Jakub Jelinek e989e1
+          sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
Jakub Jelinek e989e1
+        fi
Jakub Jelinek e989e1
+        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
Jakub Jelinek e989e1
+        ;;
Jakub Jelinek e989e1
+      esac
Jakub Jelinek e989e1
+    fi
Jakub Jelinek e989e1
+    rm -rf conftest*
Jakub Jelinek e989e1
+    ;;
Jakub Jelinek e989e1
+  esac
Jakub Jelinek e989e1
+
Jakub Jelinek e989e1
   # Append ld.so.conf contents to the search path
Jakub Jelinek e989e1
   if test -f /etc/ld.so.conf; then
Jakub Jelinek e989e1
     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Jakub Jelinek e989e1
-    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
Jakub Jelinek e989e1
+    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
Jakub Jelinek e989e1
   fi
Jakub Jelinek e989e1
 
Jakub Jelinek e989e1
   # We used to test for /lib/ld.so.1 and disable shared libraries on