patch-config_guess 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. --- rpm-4.7.0.orig/config.guess 2008-08-30 00:27:10.000000000 +0200
  2. +++ rpm-4.7.0/config.guess 2009-06-11 17:31:39.670840385 +0200
  3. @@ -4,7 +4,7 @@
  4. # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  5. # Free Software Foundation, Inc.
  6. -timestamp='2008-01-23'
  7. +timestamp='2008-09-28'
  8. # This file is free software; you can redistribute it and/or modify it
  9. # under the terms of the GNU General Public License as published by
  10. @@ -139,6 +139,23 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` |
  11. UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  12. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  13. +if [ "${UNAME_SYSTEM}" = "Linux" ] ; then
  14. + eval $set_cc_for_build
  15. + cat << EOF > $dummy.c
  16. + #include <features.h>
  17. + #ifdef __UCLIBC__
  18. + # ifdef __UCLIBC_CONFIG_VERSION__
  19. + LIBC=uclibc __UCLIBC_CONFIG_VERSION__
  20. + # else
  21. + LIBC=uclibc
  22. + # endif
  23. + #else
  24. + LIBC=gnu
  25. + #endif
  26. +EOF
  27. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'`
  28. +fi
  29. +
  30. # Note: order is significant - the case branches are not exclusive.
  31. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  32. @@ -796,7 +813,7 @@ EOF
  33. x86)
  34. echo i586-pc-interix${UNAME_RELEASE}
  35. exit ;;
  36. - EM64T | authenticamd)
  37. + EM64T | authenticamd | genuineintel)
  38. echo x86_64-unknown-interix${UNAME_RELEASE}
  39. exit ;;
  40. IA64)
  41. @@ -840,31 +857,31 @@ EOF
  42. if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  43. | grep -q __ARM_EABI__
  44. then
  45. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  46. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  47. else
  48. - echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  49. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
  50. fi
  51. exit ;;
  52. avr32*:Linux:*:*)
  53. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  54. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  55. exit ;;
  56. cris:Linux:*:*)
  57. - echo cris-axis-linux-gnu
  58. + echo cris-axis-linux-${LIBC}
  59. exit ;;
  60. crisv32:Linux:*:*)
  61. - echo crisv32-axis-linux-gnu
  62. + echo crisv32-axis-linux-${LIBC}
  63. exit ;;
  64. frv:Linux:*:*)
  65. - echo frv-unknown-linux-gnu
  66. + echo frv-unknown-linux-${LIBC}
  67. exit ;;
  68. ia64:Linux:*:*)
  69. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  70. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  71. exit ;;
  72. m32r*:Linux:*:*)
  73. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  74. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  75. exit ;;
  76. m68*:Linux:*:*)
  77. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  78. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  79. exit ;;
  80. mips:Linux:*:*)
  81. eval $set_cc_for_build
  82. @@ -887,7 +904,7 @@ EOF
  83. s: ::g
  84. p
  85. }'`"
  86. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  87. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
  88. ;;
  89. mips64:Linux:*:*)
  90. eval $set_cc_for_build
  91. @@ -910,16 +927,16 @@ EOF
  92. s: ::g
  93. p
  94. }'`"
  95. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  96. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
  97. ;;
  98. or32:Linux:*:*)
  99. - echo or32-unknown-linux-gnu
  100. + echo or32-unknown-linux-${LIBC}
  101. exit ;;
  102. ppc:Linux:*:*)
  103. - echo powerpc-unknown-linux-gnu
  104. + echo powerpc-unknown-linux-${LIBC}
  105. exit ;;
  106. ppc64:Linux:*:*)
  107. - echo powerpc64-unknown-linux-gnu
  108. + echo powerpc64-unknown-linux-${LIBC}
  109. exit ;;
  110. alpha:Linux:*:*)
  111. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  112. @@ -932,40 +949,43 @@ EOF
  113. EV68*) UNAME_MACHINE=alphaev68 ;;
  114. esac
  115. objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  116. - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  117. - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  118. + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
  119. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  120. + exit ;;
  121. + padre:Linux:*:*)
  122. + echo sparc-unknown-linux-gnu
  123. exit ;;
  124. parisc:Linux:*:* | hppa:Linux:*:*)
  125. # Look for CPU level
  126. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  127. - PA7*) echo hppa1.1-unknown-linux-gnu ;;
  128. - PA8*) echo hppa2.0-unknown-linux-gnu ;;
  129. - *) echo hppa-unknown-linux-gnu ;;
  130. + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
  131. + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
  132. + *) echo hppa-unknown-linux-${LIBC} ;;
  133. esac
  134. exit ;;
  135. parisc64:Linux:*:* | hppa64:Linux:*:*)
  136. - echo hppa64-unknown-linux-gnu
  137. + echo hppa64-unknown-linux-${LIBC}
  138. exit ;;
  139. s390:Linux:*:* | s390x:Linux:*:*)
  140. echo ${UNAME_MACHINE}-ibm-linux
  141. exit ;;
  142. sh64*:Linux:*:*)
  143. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  144. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  145. exit ;;
  146. sh*:Linux:*:*)
  147. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  148. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  149. exit ;;
  150. sparc:Linux:*:* | sparc64:Linux:*:*)
  151. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  152. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  153. exit ;;
  154. vax:Linux:*:*)
  155. - echo ${UNAME_MACHINE}-dec-linux-gnu
  156. + echo ${UNAME_MACHINE}-dec-linux-${LIBC}
  157. exit ;;
  158. x86_64:Linux:*:*)
  159. - echo x86_64-unknown-linux-gnu
  160. + echo x86_64-unknown-linux-${LIBC}
  161. exit ;;
  162. xtensa*:Linux:*:*)
  163. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  164. + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
  165. exit ;;
  166. i*86:Linux:*:*)
  167. # The BFD linker knows what the default object file format is, so
  168. @@ -980,20 +1000,19 @@ EOF
  169. p'`
  170. case "$ld_supported_targets" in
  171. elf32-i386)
  172. - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  173. + TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}"
  174. ;;
  175. a.out-i386-linux)
  176. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  177. - exit ;;
  178. - coff-i386)
  179. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  180. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout"
  181. exit ;;
  182. "")
  183. # Either a pre-BFD a.out linker (linux-gnuoldld) or
  184. # one that does not give us useful --help.
  185. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  186. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld"
  187. exit ;;
  188. esac
  189. + # This should get integrated into the C code below, but now we hack
  190. + if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi
  191. # Determine whether the default compiler is a.out or elf
  192. eval $set_cc_for_build
  193. sed 's/^ //' << EOF >$dummy.c
  194. @@ -1216,6 +1235,9 @@ EOF
  195. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  196. echo i586-pc-beos
  197. exit ;;
  198. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  199. + echo i586-pc-haiku
  200. + exit ;;
  201. SX-4:SUPER-UX:*:*)
  202. echo sx4-nec-superux${UNAME_RELEASE}
  203. exit ;;