libgtk2-2.12.6-configure.patch 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. diff -urN libgtk2-2.12.6-0rig/configure libgtk2-2.12.6/configure
  2. --- libgtk2-2.12.6-0rig/configure 2008-01-29 04:38:14.000000000 +0100
  3. +++ libgtk2-2.12.6/configure 2008-07-08 10:54:39.000000000 +0200
  4. @@ -5094,7 +5094,7 @@
  5. ;;
  6. # This must be Linux ELF.
  7. -linux* | k*bsd*-gnu)
  8. +*-linux-gnu | linux* | k*bsd*-gnu)
  9. lt_cv_deplibs_check_method=pass_all
  10. ;;
  11. @@ -6973,7 +6973,7 @@
  12. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  13. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  14. ;;
  15. -linux* | k*bsd*-gnu)
  16. +*-linux-gnu | linux* | k*bsd*-gnu)
  17. if test "$host_cpu" = ia64; then
  18. symcode='[ABCDGIRSTW]'
  19. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  20. @@ -7943,7 +7943,7 @@
  21. lt_prog_compiler_static='-Bstatic'
  22. ;;
  23. - linux* | k*bsd*-gnu)
  24. + *-linux-gnu | linux* | k*bsd*-gnu)
  25. case $cc_basename in
  26. icc* | ecc*)
  27. lt_prog_compiler_wl='-Wl,'
  28. @@ -8402,7 +8402,7 @@
  29. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  30. ;;
  31. - gnu* | linux* | k*bsd*-gnu)
  32. + *-linux-gnu | gnu* | linux* | k*bsd*-gnu)
  33. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34. tmp_addflag=
  35. case $cc_basename,$host_cpu in
  36. @@ -9336,6 +9336,7 @@
  37. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  38. }'`
  39. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  40. +
  41. else
  42. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  43. fi
  44. @@ -9667,8 +9668,9 @@
  45. dynamic_linker=no
  46. ;;
  47. +
  48. # This must be Linux ELF.
  49. -linux* | k*bsd*-gnu)
  50. +*-linux-gnu | linux* | k*bsd*-gnu)
  51. version_type=linux
  52. need_lib_prefix=no
  53. need_version=no
  54. @@ -9681,8 +9683,22 @@
  55. # Some rework will be needed to allow for fast_install
  56. # before this can be enabled.
  57. hardcode_into_libs=yes
  58. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  59. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  60. + # sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  61. + # Buildroot: New sys_lib_search_path_spec taken from atk!
  62. +if test "$GCC" = yes; then
  63. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  64. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  65. + # if the path contains ";" then we assume it to be the separator
  66. + # otherwise default to the standard path separator (i.e. ":") - it is
  67. + # assumed that no part of a normal pathname contains ";" but that should
  68. + # okay in the real world where ";" in dirpaths is itself problematic.
  69. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  70. + else
  71. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  72. + fi
  73. +else
  74. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  75. +fi
  76. # Append ld.so.conf contents to the search path
  77. if test -f /etc/ld.so.conf; then
  78. @@ -10780,6 +10796,7 @@
  79. # Now quote all the things that may contain metacharacters while being
  80. # careful not to overquote the AC_SUBSTed values. We take copies of the
  81. # variables and quote the copies for generation of the libtool script.
  82. +
  83. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  84. SED SHELL STRIP \
  85. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  86. @@ -12109,7 +12126,7 @@
  87. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  88. hardcode_libdir_separator_CXX=:
  89. ;;
  90. - linux* | k*bsd*-gnu)
  91. + *-linux-gnu | linux* | k*bsd*-gnu)
  92. case $cc_basename in
  93. KCC*)
  94. # Kuck and Associates, Inc. (KAI) C++ Compiler
  95. @@ -12680,7 +12697,7 @@
  96. postdeps_CXX=
  97. ;;
  98. -linux*)
  99. +*-linux-gnu | linux*)
  100. case `$CC -V 2>&1 | sed 5q` in
  101. *Sun\ C*)
  102. # Sun C++ 5.9
  103. @@ -12884,7 +12901,7 @@
  104. ;;
  105. esac
  106. ;;
  107. - linux* | k*bsd*-gnu)
  108. + *-linux-gnu | linux* | k*bsd*-gnu)
  109. case $cc_basename in
  110. KCC*)
  111. # KAI C++ Compiler
  112. @@ -13636,7 +13653,7 @@
  113. ;;
  114. # This must be Linux ELF.
  115. -linux* | k*bsd*-gnu)
  116. +*-linux-gnu | linux* | k*bsd*-gnu)
  117. version_type=linux
  118. need_lib_prefix=no
  119. need_version=no
  120. @@ -13649,7 +13666,24 @@
  121. # Some rework will be needed to allow for fast_install
  122. # before this can be enabled.
  123. hardcode_into_libs=yes
  124. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  125. +
  126. + # sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  127. + # Buildroot: New sys_lib_search_path_spec taken from atk!
  128. +if test "$GCC" = yes; then
  129. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  130. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  131. + # if the path contains ";" then we assume it to be the separator
  132. + # otherwise default to the standard path separator (i.e. ":") - it is
  133. + # assumed that no part of a normal pathname contains ";" but that should
  134. + # okay in the real world where ";" in dirpaths is itself problematic.
  135. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  136. + else
  137. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  138. + fi
  139. +else
  140. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  141. +fi
  142. +
  143. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  144. # Append ld.so.conf contents to the search path
  145. @@ -14586,7 +14620,7 @@
  146. lt_prog_compiler_static_F77='-Bstatic'
  147. ;;
  148. - linux* | k*bsd*-gnu)
  149. + *-linux-gnu | linux* | k*bsd*-gnu)
  150. case $cc_basename in
  151. icc* | ecc*)
  152. lt_prog_compiler_wl_F77='-Wl,'
  153. @@ -15045,7 +15079,7 @@
  154. archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  155. ;;
  156. - gnu* | linux* | k*bsd*-gnu)
  157. + gnu* | *-linux-gnu | linux* | k*bsd*-gnu)
  158. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  159. tmp_addflag=
  160. case $cc_basename,$host_cpu in
  161. @@ -16239,7 +16273,7 @@
  162. ;;
  163. # This must be Linux ELF.
  164. -linux* | k*bsd*-gnu)
  165. +*-linux-gnu | linux* | k*bsd*-gnu)
  166. version_type=linux
  167. need_lib_prefix=no
  168. need_version=no
  169. @@ -16252,7 +16286,23 @@
  170. # Some rework will be needed to allow for fast_install
  171. # before this can be enabled.
  172. hardcode_into_libs=yes
  173. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  174. + # sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  175. + # Buildroot: New sys_lib_search_path_spec taken from atk!
  176. +if test "$GCC" = yes; then
  177. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  178. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  179. + # if the path contains ";" then we assume it to be the separator
  180. + # otherwise default to the standard path separator (i.e. ":") - it is
  181. + # assumed that no part of a normal pathname contains ";" but that should
  182. + # okay in the real world where ";" in dirpaths is itself problematic.
  183. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  184. + else
  185. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  186. + fi
  187. +else
  188. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  189. +fi
  190. +
  191. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  192. # Append ld.so.conf contents to the search path
  193. @@ -17169,7 +17219,7 @@
  194. lt_prog_compiler_static_GCJ='-Bstatic'
  195. ;;
  196. - linux* | k*bsd*-gnu)
  197. + *-linux-gnu | linux* | k*bsd*-gnu)
  198. case $cc_basename in
  199. icc* | ecc*)
  200. lt_prog_compiler_wl_GCJ='-Wl,'
  201. @@ -17628,7 +17678,7 @@
  202. archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  203. ;;
  204. - gnu* | linux* | k*bsd*-gnu)
  205. + gnu* | *-linux-gnu | linux* | k*bsd*-gnu)
  206. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  207. tmp_addflag=
  208. case $cc_basename,$host_cpu in
  209. @@ -18842,7 +18892,7 @@
  210. ;;
  211. # This must be Linux ELF.
  212. -linux* | k*bsd*-gnu)
  213. +*-linux-gnu | linux* | k*bsd*-gnu)
  214. version_type=linux
  215. need_lib_prefix=no
  216. need_version=no
  217. @@ -18855,7 +18905,22 @@
  218. # Some rework will be needed to allow for fast_install
  219. # before this can be enabled.
  220. hardcode_into_libs=yes
  221. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  222. + #sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  223. + # Buildroot: New sys_lib_search_path_spec taken from atk!
  224. +if test "$GCC" = yes; then
  225. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  226. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  227. + # if the path contains ";" then we assume it to be the separator
  228. + # otherwise default to the standard path separator (i.e. ":") - it is
  229. + # assumed that no part of a normal pathname contains ";" but that should
  230. + # okay in the real world where ";" in dirpaths is itself problematic.
  231. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  232. + else
  233. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  234. + fi
  235. +else
  236. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  237. +fi
  238. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  239. # Append ld.so.conf contents to the search path