nutcracker 0.2.3 → 0.2.4.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (296) hide show
  1. data/README.md +53 -5
  2. data/Rakefile +14 -19
  3. data/bin/nutcracker +6 -1
  4. data/ext/nutcracker/ChangeLog +9 -0
  5. data/ext/nutcracker/LICENSE +0 -0
  6. data/ext/nutcracker/Makefile +643 -0
  7. data/ext/nutcracker/Makefile.am +0 -0
  8. data/ext/nutcracker/Makefile.in +66 -149
  9. data/ext/nutcracker/NOTICE +0 -0
  10. data/ext/nutcracker/README.md +13 -11
  11. data/ext/nutcracker/aclocal.m4 +112 -201
  12. data/ext/nutcracker/autom4te.cache/output.0 +18664 -0
  13. data/ext/nutcracker/autom4te.cache/output.1 +18664 -0
  14. data/ext/nutcracker/autom4te.cache/output.2 +18664 -0
  15. data/ext/nutcracker/autom4te.cache/requests +494 -0
  16. data/ext/nutcracker/autom4te.cache/traces.0 +2415 -0
  17. data/ext/nutcracker/autom4te.cache/traces.1 +945 -0
  18. data/ext/nutcracker/autom4te.cache/traces.2 +2415 -0
  19. data/ext/nutcracker/conf/nutcracker.leaf.yml +0 -0
  20. data/ext/nutcracker/conf/nutcracker.root.yml +0 -0
  21. data/ext/nutcracker/conf/nutcracker.yml +0 -0
  22. data/ext/nutcracker/config.h +332 -0
  23. data/ext/nutcracker/config.h.in +15 -0
  24. data/ext/nutcracker/config.log +2684 -0
  25. data/ext/nutcracker/config.status +2317 -0
  26. data/ext/nutcracker/config/config.guess +23 -84
  27. data/ext/nutcracker/config/config.sub +23 -93
  28. data/ext/nutcracker/config/depcomp +35 -81
  29. data/ext/nutcracker/config/install-sh +109 -122
  30. data/ext/nutcracker/config/ltmain.sh +1053 -721
  31. data/ext/nutcracker/config/missing +20 -29
  32. data/ext/nutcracker/configure +2122 -2320
  33. data/ext/nutcracker/configure.ac +35 -3
  34. data/ext/nutcracker/contrib/Makefile +494 -0
  35. data/ext/nutcracker/contrib/Makefile.am +0 -0
  36. data/ext/nutcracker/contrib/Makefile.in +41 -107
  37. data/ext/nutcracker/contrib/yaml-0.1.4.tar.gz +0 -0
  38. data/ext/nutcracker/contrib/yaml-0.1.4/Makefile +736 -0
  39. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.0 +13102 -0
  40. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.1 +13085 -0
  41. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.2 +13085 -0
  42. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/requests +476 -0
  43. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.0 +2339 -0
  44. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.1 +545 -0
  45. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.2 +2339 -0
  46. data/ext/nutcracker/contrib/yaml-0.1.4/config.h +81 -0
  47. data/ext/nutcracker/contrib/yaml-0.1.4/config.h.in~ +80 -0
  48. data/ext/nutcracker/contrib/yaml-0.1.4/config.log +688 -0
  49. data/ext/nutcracker/contrib/yaml-0.1.4/config.status +2032 -0
  50. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/annotated.html +51 -0
  51. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/bc_s.png +0 -0
  52. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/classes.html +41 -0
  53. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/closed.png +0 -0
  54. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/doxygen.css +656 -0
  55. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/doxygen.png +0 -0
  56. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/files.html +40 -0
  57. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions.html +91 -0
  58. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x62.html +84 -0
  59. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x63.html +87 -0
  60. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x64.html +83 -0
  61. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x65.html +110 -0
  62. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x66.html +79 -0
  63. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x68.html +80 -0
  64. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x69.html +92 -0
  65. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6b.html +71 -0
  66. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6c.html +88 -0
  67. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6d.html +96 -0
  68. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6e.html +71 -0
  69. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6f.html +80 -0
  70. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x70.html +100 -0
  71. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x71.html +71 -0
  72. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x72.html +87 -0
  73. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x73.html +163 -0
  74. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x74.html +115 -0
  75. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x75.html +71 -0
  76. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x76.html +80 -0
  77. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x77.html +77 -0
  78. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars.html +91 -0
  79. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x62.html +84 -0
  80. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x63.html +87 -0
  81. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x64.html +83 -0
  82. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x65.html +110 -0
  83. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x66.html +79 -0
  84. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x68.html +80 -0
  85. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x69.html +92 -0
  86. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6b.html +71 -0
  87. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6c.html +88 -0
  88. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6d.html +96 -0
  89. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6e.html +71 -0
  90. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6f.html +80 -0
  91. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x70.html +100 -0
  92. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x71.html +71 -0
  93. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x72.html +87 -0
  94. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x73.html +163 -0
  95. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x74.html +115 -0
  96. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x75.html +71 -0
  97. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x76.html +80 -0
  98. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x77.html +77 -0
  99. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals.html +667 -0
  100. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_defs.html +81 -0
  101. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_enum.html +78 -0
  102. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_eval.html +373 -0
  103. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_func.html +196 -0
  104. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_type.html +126 -0
  105. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__basic.html +320 -0
  106. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__emitter.html +819 -0
  107. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__events.html +664 -0
  108. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__export.html +60 -0
  109. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__nodes.html +795 -0
  110. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__parser.html +606 -0
  111. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__styles.html +222 -0
  112. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__tokens.html +246 -0
  113. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__version.html +106 -0
  114. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/index.html +31 -0
  115. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/modules.html +42 -0
  116. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/nav_f.png +0 -0
  117. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/nav_h.png +0 -0
  118. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/open.png +0 -0
  119. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__alias__data__s.html +108 -0
  120. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__document__s.html +235 -0
  121. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__emitter__s.html +1300 -0
  122. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__event__s.html +496 -0
  123. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__mark__s.html +108 -0
  124. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__node__pair__s.html +91 -0
  125. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__node__s.html +420 -0
  126. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__parser__s.html +1229 -0
  127. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__simple__key__s.html +97 -0
  128. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__tag__directive__s.html +91 -0
  129. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__token__s.html +413 -0
  130. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__version__directive__s.html +91 -0
  131. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_a.png +0 -0
  132. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_b.png +0 -0
  133. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_h.png +0 -0
  134. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_s.png +0 -0
  135. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tabs.css +59 -0
  136. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/yaml_8h.html +525 -0
  137. data/ext/nutcracker/contrib/yaml-0.1.4/include/Makefile.am +17 -0
  138. data/ext/nutcracker/contrib/yaml-0.1.4/include/Makefile.in +470 -0
  139. data/ext/nutcracker/contrib/yaml-0.1.4/libtool +8890 -0
  140. data/ext/nutcracker/contrib/yaml-0.1.4/src/Makefile +484 -0
  141. data/ext/nutcracker/contrib/yaml-0.1.4/src/api.lo +12 -0
  142. data/ext/nutcracker/contrib/yaml-0.1.4/src/api.o +0 -0
  143. data/ext/nutcracker/contrib/yaml-0.1.4/src/dumper.lo +12 -0
  144. data/ext/nutcracker/contrib/yaml-0.1.4/src/dumper.o +0 -0
  145. data/ext/nutcracker/contrib/yaml-0.1.4/src/emitter.lo +12 -0
  146. data/ext/nutcracker/contrib/yaml-0.1.4/src/emitter.o +0 -0
  147. data/ext/nutcracker/contrib/yaml-0.1.4/src/libyaml.la +41 -0
  148. data/ext/nutcracker/contrib/yaml-0.1.4/src/loader.lo +12 -0
  149. data/ext/nutcracker/contrib/yaml-0.1.4/src/loader.o +0 -0
  150. data/ext/nutcracker/contrib/yaml-0.1.4/src/parser.lo +12 -0
  151. data/ext/nutcracker/contrib/yaml-0.1.4/src/parser.o +0 -0
  152. data/ext/nutcracker/contrib/yaml-0.1.4/src/reader.lo +12 -0
  153. data/ext/nutcracker/contrib/yaml-0.1.4/src/reader.o +0 -0
  154. data/ext/nutcracker/contrib/yaml-0.1.4/src/scanner.lo +12 -0
  155. data/ext/nutcracker/contrib/yaml-0.1.4/src/scanner.o +0 -0
  156. data/ext/nutcracker/contrib/yaml-0.1.4/src/writer.lo +12 -0
  157. data/ext/nutcracker/contrib/yaml-0.1.4/src/writer.o +0 -0
  158. data/ext/nutcracker/contrib/yaml-0.1.4/stamp-h1 +1 -0
  159. data/ext/nutcracker/contrib/yaml-0.1.4/tests/Makefile +675 -0
  160. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor +0 -0
  161. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor-alt +0 -0
  162. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor-alt.o +0 -0
  163. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor.o +0 -0
  164. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter +0 -0
  165. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter-alt +0 -0
  166. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter-alt.o +0 -0
  167. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter.o +0 -0
  168. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-dumper +0 -0
  169. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-dumper.o +0 -0
  170. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-emitter +0 -0
  171. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-emitter.o +0 -0
  172. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-loader +0 -0
  173. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-loader.o +0 -0
  174. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-parser +0 -0
  175. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-parser.o +0 -0
  176. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-scanner +0 -0
  177. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-scanner.o +0 -0
  178. data/ext/nutcracker/contrib/yaml-0.1.4/yaml-0.1.pc +10 -0
  179. data/ext/nutcracker/contrib/yaml-0.1.4/yaml-0.1.pc.in +10 -0
  180. data/ext/nutcracker/extconf.rb +0 -5
  181. data/ext/nutcracker/libtool +9403 -0
  182. data/ext/nutcracker/m4/libtool.m4 +553 -492
  183. data/ext/nutcracker/m4/ltoptions.m4 +7 -6
  184. data/ext/nutcracker/m4/ltversion.m4 +5 -5
  185. data/ext/nutcracker/m4/lt~obsolete.m4 +9 -3
  186. data/ext/nutcracker/notes/c-styleguide.txt +0 -0
  187. data/ext/nutcracker/notes/debug.txt +0 -0
  188. data/ext/nutcracker/notes/memcache.txt +0 -0
  189. data/ext/nutcracker/notes/recommendation.md +21 -2
  190. data/ext/nutcracker/notes/redis.md +9 -9
  191. data/ext/nutcracker/notes/socket.txt +0 -0
  192. data/ext/nutcracker/scripts/nutcracker.init +0 -0
  193. data/ext/nutcracker/scripts/nutcracker.spec +0 -0
  194. data/ext/nutcracker/scripts/redis-check.py +0 -0
  195. data/ext/nutcracker/scripts/redis-check.sh +9 -0
  196. data/ext/nutcracker/src/Makefile +647 -0
  197. data/ext/nutcracker/src/Makefile.am +1 -1
  198. data/ext/nutcracker/src/Makefile.in +74 -153
  199. data/ext/nutcracker/src/hashkit/Makefile +476 -0
  200. data/ext/nutcracker/src/hashkit/Makefile.am +1 -0
  201. data/ext/nutcracker/src/hashkit/Makefile.in +39 -64
  202. data/ext/nutcracker/src/hashkit/libhashkit.a +0 -0
  203. data/ext/nutcracker/src/hashkit/nc_crc16.c +66 -0
  204. data/ext/nutcracker/src/hashkit/nc_crc16.o +0 -0
  205. data/ext/nutcracker/src/hashkit/nc_crc32.c +0 -0
  206. data/ext/nutcracker/src/hashkit/nc_crc32.o +0 -0
  207. data/ext/nutcracker/src/hashkit/nc_fnv.c +0 -0
  208. data/ext/nutcracker/src/hashkit/nc_fnv.o +0 -0
  209. data/ext/nutcracker/src/hashkit/nc_hashkit.h +2 -0
  210. data/ext/nutcracker/src/hashkit/nc_hsieh.c +0 -0
  211. data/ext/nutcracker/src/hashkit/nc_hsieh.o +0 -0
  212. data/ext/nutcracker/src/hashkit/nc_jenkins.c +0 -0
  213. data/ext/nutcracker/src/hashkit/nc_jenkins.o +0 -0
  214. data/ext/nutcracker/src/hashkit/nc_ketama.c +0 -0
  215. data/ext/nutcracker/src/hashkit/nc_ketama.o +0 -0
  216. data/ext/nutcracker/src/hashkit/nc_md5.c +0 -0
  217. data/ext/nutcracker/src/hashkit/nc_md5.o +0 -0
  218. data/ext/nutcracker/src/hashkit/nc_modula.c +18 -6
  219. data/ext/nutcracker/src/hashkit/nc_modula.o +0 -0
  220. data/ext/nutcracker/src/hashkit/nc_murmur.c +0 -0
  221. data/ext/nutcracker/src/hashkit/nc_murmur.o +0 -0
  222. data/ext/nutcracker/src/hashkit/nc_one_at_a_time.c +0 -0
  223. data/ext/nutcracker/src/hashkit/nc_one_at_a_time.o +0 -0
  224. data/ext/nutcracker/src/hashkit/nc_random.c +0 -0
  225. data/ext/nutcracker/src/hashkit/nc_random.o +0 -0
  226. data/ext/nutcracker/src/nc.c +0 -0
  227. data/ext/nutcracker/src/nc.o +0 -0
  228. data/ext/nutcracker/src/nc_array.c +0 -0
  229. data/ext/nutcracker/src/nc_array.h +0 -0
  230. data/ext/nutcracker/src/nc_array.o +0 -0
  231. data/ext/nutcracker/src/nc_client.c +0 -0
  232. data/ext/nutcracker/src/nc_client.h +0 -0
  233. data/ext/nutcracker/src/nc_client.o +0 -0
  234. data/ext/nutcracker/src/nc_conf.c +14 -35
  235. data/ext/nutcracker/src/nc_conf.h +1 -1
  236. data/ext/nutcracker/src/nc_conf.o +0 -0
  237. data/ext/nutcracker/src/nc_connection.c +0 -0
  238. data/ext/nutcracker/src/nc_connection.h +0 -0
  239. data/ext/nutcracker/src/nc_connection.o +0 -0
  240. data/ext/nutcracker/src/nc_core.c +29 -26
  241. data/ext/nutcracker/src/nc_core.h +13 -5
  242. data/ext/nutcracker/src/nc_core.o +0 -0
  243. data/ext/nutcracker/src/{nc_event.c → nc_epoll.c} +94 -30
  244. data/ext/nutcracker/src/nc_epoll.o +0 -0
  245. data/ext/nutcracker/src/nc_event.h +33 -13
  246. data/ext/nutcracker/src/nc_kqueue.c +296 -0
  247. data/ext/nutcracker/src/nc_kqueue.o +0 -0
  248. data/ext/nutcracker/src/nc_log.c +0 -0
  249. data/ext/nutcracker/src/nc_log.h +0 -0
  250. data/ext/nutcracker/src/nc_log.o +0 -0
  251. data/ext/nutcracker/src/nc_mbuf.c +0 -0
  252. data/ext/nutcracker/src/nc_mbuf.h +0 -0
  253. data/ext/nutcracker/src/nc_mbuf.o +0 -0
  254. data/ext/nutcracker/src/nc_message.c +0 -0
  255. data/ext/nutcracker/src/nc_message.h +2 -0
  256. data/ext/nutcracker/src/nc_message.o +0 -0
  257. data/ext/nutcracker/src/nc_proxy.c +8 -8
  258. data/ext/nutcracker/src/nc_proxy.h +0 -0
  259. data/ext/nutcracker/src/nc_proxy.o +0 -0
  260. data/ext/nutcracker/src/nc_queue.h +0 -0
  261. data/ext/nutcracker/src/nc_rbtree.c +0 -0
  262. data/ext/nutcracker/src/nc_rbtree.h +0 -0
  263. data/ext/nutcracker/src/nc_rbtree.o +0 -0
  264. data/ext/nutcracker/src/nc_request.c +3 -3
  265. data/ext/nutcracker/src/nc_request.o +0 -0
  266. data/ext/nutcracker/src/nc_response.c +4 -6
  267. data/ext/nutcracker/src/nc_response.o +0 -0
  268. data/ext/nutcracker/src/nc_server.c +14 -12
  269. data/ext/nutcracker/src/nc_server.h +0 -0
  270. data/ext/nutcracker/src/nc_server.o +0 -0
  271. data/ext/nutcracker/src/nc_signal.c +0 -0
  272. data/ext/nutcracker/src/nc_signal.h +0 -0
  273. data/ext/nutcracker/src/nc_signal.o +0 -0
  274. data/ext/nutcracker/src/nc_stats.c +16 -21
  275. data/ext/nutcracker/src/nc_stats.h +3 -4
  276. data/ext/nutcracker/src/nc_stats.o +0 -0
  277. data/ext/nutcracker/src/nc_string.c +0 -0
  278. data/ext/nutcracker/src/nc_string.h +0 -0
  279. data/ext/nutcracker/src/nc_string.o +0 -0
  280. data/ext/nutcracker/src/nc_util.c +16 -0
  281. data/ext/nutcracker/src/nc_util.h +1 -0
  282. data/ext/nutcracker/src/nc_util.o +0 -0
  283. data/ext/nutcracker/src/nutcracker +0 -0
  284. data/ext/nutcracker/src/proto/Makefile +454 -0
  285. data/ext/nutcracker/src/proto/Makefile.am +0 -0
  286. data/ext/nutcracker/src/proto/Makefile.in +32 -60
  287. data/ext/nutcracker/src/proto/libproto.a +0 -0
  288. data/ext/nutcracker/src/proto/nc_memcache.c +0 -0
  289. data/ext/nutcracker/src/proto/nc_memcache.o +0 -0
  290. data/ext/nutcracker/src/proto/nc_proto.h +0 -0
  291. data/ext/nutcracker/src/proto/nc_redis.c +17 -4
  292. data/ext/nutcracker/src/proto/nc_redis.o +0 -0
  293. data/ext/nutcracker/stamp-h1 +1 -0
  294. data/lib/nutcracker.rb +64 -2
  295. data/lib/nutcracker/version.rb +1 -1
  296. metadata +237 -9
@@ -1,7 +1,8 @@
1
1
  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2
2
  #
3
3
  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
4
- # 2006, 2007, 2008 Free Software Foundation, Inc.
4
+ # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
5
+ # Inc.
5
6
  # Written by Gordon Matzigkeit, 1996
6
7
  #
7
8
  # This file is free software; the Free Software Foundation gives
@@ -10,7 +11,8 @@
10
11
 
11
12
  m4_define([_LT_COPYING], [dnl
12
13
  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13
- # 2006, 2007, 2008 Free Software Foundation, Inc.
14
+ # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15
+ # Inc.
14
16
  # Written by Gordon Matzigkeit, 1996
15
17
  #
16
18
  # This file is part of GNU Libtool.
@@ -37,7 +39,7 @@ m4_define([_LT_COPYING], [dnl
37
39
  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38
40
  ])
39
41
 
40
- # serial 56 LT_INIT
42
+ # serial 57 LT_INIT
41
43
 
42
44
 
43
45
  # LT_PREREQ(VERSION)
@@ -66,6 +68,7 @@ esac
66
68
  # ------------------
67
69
  AC_DEFUN([LT_INIT],
68
70
  [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
71
+ AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
69
72
  AC_BEFORE([$0], [LT_LANG])dnl
70
73
  AC_BEFORE([$0], [LT_OUTPUT])dnl
71
74
  AC_BEFORE([$0], [LTDL_INIT])dnl
@@ -82,6 +85,8 @@ AC_REQUIRE([LTVERSION_VERSION])dnl
82
85
  AC_REQUIRE([LTOBSOLETE_VERSION])dnl
83
86
  m4_require([_LT_PROG_LTMAIN])dnl
84
87
 
88
+ _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
89
+
85
90
  dnl Parse OPTIONS
86
91
  _LT_SET_OPTIONS([$0], [$1])
87
92
 
@@ -118,7 +123,7 @@ m4_defun([_LT_CC_BASENAME],
118
123
  *) break;;
119
124
  esac
120
125
  done
121
- cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
126
+ cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
122
127
  ])
123
128
 
124
129
 
@@ -138,6 +143,9 @@ m4_defun([_LT_FILEUTILS_DEFAULTS],
138
143
  m4_defun([_LT_SETUP],
139
144
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
140
145
  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
146
+ AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
147
+ AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
148
+
141
149
  _LT_DECL([], [host_alias], [0], [The host system])dnl
142
150
  _LT_DECL([], [host], [0])dnl
143
151
  _LT_DECL([], [host_os], [0])dnl
@@ -179,7 +187,6 @@ fi
179
187
  _LT_CHECK_OBJDIR
180
188
 
181
189
  m4_require([_LT_TAG_COMPILER])dnl
182
- _LT_PROG_ECHO_BACKSLASH
183
190
 
184
191
  case $host_os in
185
192
  aix3*)
@@ -193,23 +200,6 @@ aix3*)
193
200
  ;;
194
201
  esac
195
202
 
196
- # Sed substitution that helps us do robust quoting. It backslashifies
197
- # metacharacters that are still active within double-quoted strings.
198
- sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
199
-
200
- # Same as above, but do not quote variable references.
201
- double_quote_subst='s/\([["`\\]]\)/\\\1/g'
202
-
203
- # Sed substitution to delay expansion of an escaped shell variable in a
204
- # double_quote_subst'ed string.
205
- delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
206
-
207
- # Sed substitution to delay expansion of an escaped single quote.
208
- delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
209
-
210
- # Sed substitution to avoid accidental globbing in evaled expressions
211
- no_glob_subst='s/\*/\\\*/g'
212
-
213
203
  # Global variables:
214
204
  ofile=libtool
215
205
  can_build_shared=yes
@@ -250,6 +240,28 @@ _LT_CONFIG_COMMANDS
250
240
  ])# _LT_SETUP
251
241
 
252
242
 
243
+ # _LT_PREPARE_SED_QUOTE_VARS
244
+ # --------------------------
245
+ # Define a few sed substitution that help us do robust quoting.
246
+ m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
247
+ [# Backslashify metacharacters that are still active within
248
+ # double-quoted strings.
249
+ sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
250
+
251
+ # Same as above, but do not quote variable references.
252
+ double_quote_subst='s/\([["`\\]]\)/\\\1/g'
253
+
254
+ # Sed substitution to delay expansion of an escaped shell variable in a
255
+ # double_quote_subst'ed string.
256
+ delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
257
+
258
+ # Sed substitution to delay expansion of an escaped single quote.
259
+ delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
260
+
261
+ # Sed substitution to avoid accidental globbing in evaled expressions
262
+ no_glob_subst='s/\*/\\\*/g'
263
+ ])
264
+
253
265
  # _LT_PROG_LTMAIN
254
266
  # ---------------
255
267
  # Note that this code is called both from `configure', and `config.status'
@@ -408,7 +420,7 @@ m4_define([_lt_decl_all_varnames],
408
420
  # declaration there will have the same value as in `configure'. VARNAME
409
421
  # must have a single quote delimited value for this to work.
410
422
  m4_define([_LT_CONFIG_STATUS_DECLARE],
411
- [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
423
+ [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
412
424
 
413
425
 
414
426
  # _LT_CONFIG_STATUS_DECLARATIONS
@@ -418,7 +430,7 @@ m4_define([_LT_CONFIG_STATUS_DECLARE],
418
430
  # embedded single quotes properly. In configure, this macro expands
419
431
  # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
420
432
  #
421
- # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
433
+ # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
422
434
  m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
423
435
  [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
424
436
  [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
@@ -517,12 +529,20 @@ LTCC='$LTCC'
517
529
  LTCFLAGS='$LTCFLAGS'
518
530
  compiler='$compiler_DEFAULT'
519
531
 
532
+ # A function that is used when there is no print builtin or printf.
533
+ func_fallback_echo ()
534
+ {
535
+ eval 'cat <<_LTECHO_EOF
536
+ \$[]1
537
+ _LTECHO_EOF'
538
+ }
539
+
520
540
  # Quote evaled strings.
521
541
  for var in lt_decl_all_varnames([[ \
522
542
  ]], lt_decl_quote_varnames); do
523
- case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
543
+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
524
544
  *[[\\\\\\\`\\"\\\$]]*)
525
- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
545
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
526
546
  ;;
527
547
  *)
528
548
  eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
@@ -533,9 +553,9 @@ done
533
553
  # Double-quote double-evaled strings.
534
554
  for var in lt_decl_all_varnames([[ \
535
555
  ]], lt_decl_dquote_varnames); do
536
- case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
556
+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
537
557
  *[[\\\\\\\`\\"\\\$]]*)
538
- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
558
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
539
559
  ;;
540
560
  *)
541
561
  eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
@@ -543,16 +563,38 @@ for var in lt_decl_all_varnames([[ \
543
563
  esac
544
564
  done
545
565
 
546
- # Fix-up fallback echo if it was mangled by the above quoting rules.
547
- case \$lt_ECHO in
548
- *'\\\[$]0 --fallback-echo"')dnl "
549
- lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
550
- ;;
551
- esac
552
-
553
566
  _LT_OUTPUT_LIBTOOL_INIT
554
567
  ])
555
568
 
569
+ # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
570
+ # ------------------------------------
571
+ # Generate a child script FILE with all initialization necessary to
572
+ # reuse the environment learned by the parent script, and make the
573
+ # file executable. If COMMENT is supplied, it is inserted after the
574
+ # `#!' sequence but before initialization text begins. After this
575
+ # macro, additional text can be appended to FILE to form the body of
576
+ # the child script. The macro ends with non-zero status if the
577
+ # file could not be fully written (such as if the disk is full).
578
+ m4_ifdef([AS_INIT_GENERATED],
579
+ [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
580
+ [m4_defun([_LT_GENERATED_FILE_INIT],
581
+ [m4_require([AS_PREPARE])]dnl
582
+ [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
583
+ [lt_write_fail=0
584
+ cat >$1 <<_ASEOF || lt_write_fail=1
585
+ #! $SHELL
586
+ # Generated by $as_me.
587
+ $2
588
+ SHELL=\${CONFIG_SHELL-$SHELL}
589
+ export SHELL
590
+ _ASEOF
591
+ cat >>$1 <<\_ASEOF || lt_write_fail=1
592
+ AS_SHELL_SANITIZE
593
+ _AS_PREPARE
594
+ exec AS_MESSAGE_FD>&1
595
+ _ASEOF
596
+ test $lt_write_fail = 0 && chmod +x $1[]dnl
597
+ m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
556
598
 
557
599
  # LT_OUTPUT
558
600
  # ---------
@@ -562,20 +604,11 @@ _LT_OUTPUT_LIBTOOL_INIT
562
604
  AC_DEFUN([LT_OUTPUT],
563
605
  [: ${CONFIG_LT=./config.lt}
564
606
  AC_MSG_NOTICE([creating $CONFIG_LT])
565
- cat >"$CONFIG_LT" <<_LTEOF
566
- #! $SHELL
567
- # Generated by $as_me.
568
- # Run this file to recreate a libtool stub with the current configuration.
569
-
570
- lt_cl_silent=false
571
- SHELL=\${CONFIG_SHELL-$SHELL}
572
- _LTEOF
607
+ _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
608
+ [# Run this file to recreate a libtool stub with the current configuration.])
573
609
 
574
610
  cat >>"$CONFIG_LT" <<\_LTEOF
575
- AS_SHELL_SANITIZE
576
- _AS_PREPARE
577
-
578
- exec AS_MESSAGE_FD>&1
611
+ lt_cl_silent=false
579
612
  exec AS_MESSAGE_LOG_FD>>config.log
580
613
  {
581
614
  echo
@@ -601,7 +634,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
601
634
  m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
602
635
  configured by $[0], generated by m4_PACKAGE_STRING.
603
636
 
604
- Copyright (C) 2008 Free Software Foundation, Inc.
637
+ Copyright (C) 2010 Free Software Foundation, Inc.
605
638
  This config.lt script is free software; the Free Software Foundation
606
639
  gives unlimited permision to copy, distribute and modify it."
607
640
 
@@ -646,15 +679,13 @@ chmod +x "$CONFIG_LT"
646
679
  # appending to config.log, which fails on DOS, as config.log is still kept
647
680
  # open by configure. Here we exec the FD to /dev/null, effectively closing
648
681
  # config.log, so it can be properly (re)opened and appended to by config.lt.
649
- if test "$no_create" != yes; then
650
- lt_cl_success=:
651
- test "$silent" = yes &&
652
- lt_config_lt_args="$lt_config_lt_args --quiet"
653
- exec AS_MESSAGE_LOG_FD>/dev/null
654
- $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
655
- exec AS_MESSAGE_LOG_FD>>config.log
656
- $lt_cl_success || AS_EXIT(1)
657
- fi
682
+ lt_cl_success=:
683
+ test "$silent" = yes &&
684
+ lt_config_lt_args="$lt_config_lt_args --quiet"
685
+ exec AS_MESSAGE_LOG_FD>/dev/null
686
+ $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
687
+ exec AS_MESSAGE_LOG_FD>>config.log
688
+ $lt_cl_success || AS_EXIT(1)
658
689
  ])# LT_OUTPUT
659
690
 
660
691
 
@@ -676,8 +707,8 @@ _LT_CONFIG_SAVE_COMMANDS([
676
707
  fi
677
708
 
678
709
  cfgfile="${ofile}T"
679
- trap "$RM \"$cfgfile\"; exit 1" 1 2 15
680
- $RM "$cfgfile"
710
+ trap "$RM -f \"$cfgfile\"; exit 1" 1 2 15
711
+ $RM -f "$cfgfile"
681
712
 
682
713
  cat <<_LT_EOF >> "$cfgfile"
683
714
  #! $SHELL
@@ -831,11 +862,13 @@ AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
831
862
  AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
832
863
  AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
833
864
  AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
865
+ AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
834
866
  dnl aclocal-1.4 backwards compatibility:
835
867
  dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
836
868
  dnl AC_DEFUN([AC_LIBTOOL_F77], [])
837
869
  dnl AC_DEFUN([AC_LIBTOOL_FC], [])
838
870
  dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
871
+ dnl AC_DEFUN([AC_LIBTOOL_RC], [])
839
872
 
840
873
 
841
874
  # _LT_TAG_COMPILER
@@ -869,7 +902,7 @@ ac_outfile=conftest.$ac_objext
869
902
  echo "$lt_simple_compile_test_code" >conftest.$ac_ext
870
903
  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
871
904
  _lt_compiler_boilerplate=`cat conftest.err`
872
- $RM conftest*
905
+ $RM -r conftest*
873
906
  ])# _LT_COMPILER_BOILERPLATE
874
907
 
875
908
 
@@ -940,6 +973,31 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
940
973
  [lt_cv_ld_exported_symbols_list=no])
941
974
  LDFLAGS="$save_LDFLAGS"
942
975
  ])
976
+ AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
977
+ [lt_cv_ld_force_load=no
978
+ cat > conftest.c << _LT_EOF
979
+ int forced_loaded() { return 2;}
980
+ _LT_EOF
981
+ echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
982
+ $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
983
+ echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
984
+ $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
985
+ echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
986
+ $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
987
+ cat > conftest.c << _LT_EOF
988
+ int main() { return 0;}
989
+ _LT_EOF
990
+ echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
991
+ $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
992
+ _lt_result=$?
993
+ if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
994
+ lt_cv_ld_force_load=yes
995
+ else
996
+ cat conftest.err >&AS_MESSAGE_LOG_FD
997
+ fi
998
+ rm -f conftest.err libconftest.a conftest conftest.c
999
+ rm -rf conftest.dSYM
1000
+ ])
943
1001
  case $host_os in
944
1002
  rhapsody* | darwin1.[[012]])
945
1003
  _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
@@ -967,7 +1025,7 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
967
1025
  else
968
1026
  _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
969
1027
  fi
970
- if test "$DSYMUTIL" != ":"; then
1028
+ if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
971
1029
  _lt_dsymutil='~$DSYMUTIL $lib || :'
972
1030
  else
973
1031
  _lt_dsymutil=
@@ -987,7 +1045,11 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
987
1045
  _LT_TAGVAR(hardcode_direct, $1)=no
988
1046
  _LT_TAGVAR(hardcode_automatic, $1)=yes
989
1047
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
990
- _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1048
+ if test "$lt_cv_ld_force_load" = "yes"; then
1049
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1050
+ else
1051
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1052
+ fi
991
1053
  _LT_TAGVAR(link_all_deplibs, $1)=yes
992
1054
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
993
1055
  case $cc_basename in
@@ -995,7 +1057,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
995
1057
  *) _lt_dar_can_shared=$GCC ;;
996
1058
  esac
997
1059
  if test "$_lt_dar_can_shared" = "yes"; then
998
- output_verbose_link_cmd=echo
1060
+ output_verbose_link_cmd=func_echo_all
999
1061
  _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1000
1062
  _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1001
1063
  _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
@@ -1041,170 +1103,65 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1041
1103
  # _LT_SHELL_INIT(ARG)
1042
1104
  # -------------------
1043
1105
  m4_define([_LT_SHELL_INIT],
1044
- [ifdef([AC_DIVERSION_NOTICE],
1045
- [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1046
- [AC_DIVERT_PUSH(NOTICE)])
1047
- $1
1048
- AC_DIVERT_POP
1049
- ])# _LT_SHELL_INIT
1106
+ [m4_divert_text([M4SH-INIT], [$1
1107
+ ])])# _LT_SHELL_INIT
1108
+
1050
1109
 
1051
1110
 
1052
1111
  # _LT_PROG_ECHO_BACKSLASH
1053
1112
  # -----------------------
1054
- # Add some code to the start of the generated configure script which
1055
- # will find an echo command which doesn't interpret backslashes.
1113
+ # Find how we can fake an echo command that does not interpret backslash.
1114
+ # In particular, with Autoconf 2.60 or later we add some code to the start
1115
+ # of the generated configure script which will find a shell with a builtin
1116
+ # printf (which we can use as an echo command).
1056
1117
  m4_defun([_LT_PROG_ECHO_BACKSLASH],
1057
- [_LT_SHELL_INIT([
1058
- # Check that we are running under the correct shell.
1059
- SHELL=${CONFIG_SHELL-/bin/sh}
1060
-
1061
- case X$lt_ECHO in
1062
- X*--fallback-echo)
1063
- # Remove one level of quotation (which was required for Make).
1064
- ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1065
- ;;
1066
- esac
1067
-
1068
- ECHO=${lt_ECHO-echo}
1069
- if test "X[$]1" = X--no-reexec; then
1070
- # Discard the --no-reexec flag, and continue.
1071
- shift
1072
- elif test "X[$]1" = X--fallback-echo; then
1073
- # Avoid inline document here, it may be left over
1074
- :
1075
- elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1076
- # Yippee, $ECHO works!
1077
- :
1118
+ [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1119
+ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1120
+ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1121
+
1122
+ AC_MSG_CHECKING([how to print strings])
1123
+ # Test print first, because it will be a builtin if present.
1124
+ if test "X`print -r -- -n 2>/dev/null`" = X-n && \
1125
+ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1126
+ ECHO='print -r --'
1127
+ elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1128
+ ECHO='printf %s\n'
1078
1129
  else
1079
- # Restart under the correct shell.
1080
- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1081
- fi
1082
-
1083
- if test "X[$]1" = X--fallback-echo; then
1084
- # used as fallback echo
1085
- shift
1086
- cat <<_LT_EOF
1087
- [$]*
1088
- _LT_EOF
1089
- exit 0
1130
+ # Use this function as a fallback that always works.
1131
+ func_fallback_echo ()
1132
+ {
1133
+ eval 'cat <<_LTECHO_EOF
1134
+ $[]1
1135
+ _LTECHO_EOF'
1136
+ }
1137
+ ECHO='func_fallback_echo'
1090
1138
  fi
1091
1139
 
1092
- # The HP-UX ksh and POSIX shell print the target directory to stdout
1093
- # if CDPATH is set.
1094
- (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1095
-
1096
- if test -z "$lt_ECHO"; then
1097
- if test "X${echo_test_string+set}" != Xset; then
1098
- # find a string as large as possible, as long as the shell can cope with it
1099
- for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1100
- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1101
- if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1102
- { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1103
- then
1104
- break
1105
- fi
1106
- done
1107
- fi
1108
-
1109
- if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1110
- echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1111
- test "X$echo_testing_string" = "X$echo_test_string"; then
1112
- :
1113
- else
1114
- # The Solaris, AIX, and Digital Unix default echo programs unquote
1115
- # backslashes. This makes it impossible to quote backslashes using
1116
- # echo "$something" | sed 's/\\/\\\\/g'
1117
- #
1118
- # So, first we look for a working echo in the user's PATH.
1119
-
1120
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1121
- for dir in $PATH /usr/ucb; do
1122
- IFS="$lt_save_ifs"
1123
- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1124
- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1125
- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1126
- test "X$echo_testing_string" = "X$echo_test_string"; then
1127
- ECHO="$dir/echo"
1128
- break
1129
- fi
1130
- done
1131
- IFS="$lt_save_ifs"
1132
-
1133
- if test "X$ECHO" = Xecho; then
1134
- # We didn't find a better echo, so look for alternatives.
1135
- if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1136
- echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1137
- test "X$echo_testing_string" = "X$echo_test_string"; then
1138
- # This shell has a builtin print -r that does the trick.
1139
- ECHO='print -r'
1140
- elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1141
- test "X$CONFIG_SHELL" != X/bin/ksh; then
1142
- # If we have ksh, try running configure again with it.
1143
- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1144
- export ORIGINAL_CONFIG_SHELL
1145
- CONFIG_SHELL=/bin/ksh
1146
- export CONFIG_SHELL
1147
- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1148
- else
1149
- # Try using printf.
1150
- ECHO='printf %s\n'
1151
- if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1152
- echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1153
- test "X$echo_testing_string" = "X$echo_test_string"; then
1154
- # Cool, printf works
1155
- :
1156
- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1157
- test "X$echo_testing_string" = 'X\t' &&
1158
- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1159
- test "X$echo_testing_string" = "X$echo_test_string"; then
1160
- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1161
- export CONFIG_SHELL
1162
- SHELL="$CONFIG_SHELL"
1163
- export SHELL
1164
- ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1165
- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1166
- test "X$echo_testing_string" = 'X\t' &&
1167
- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1168
- test "X$echo_testing_string" = "X$echo_test_string"; then
1169
- ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1170
- else
1171
- # maybe with a smaller string...
1172
- prev=:
1173
-
1174
- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1175
- if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1176
- then
1177
- break
1178
- fi
1179
- prev="$cmd"
1180
- done
1140
+ # func_echo_all arg...
1141
+ # Invoke $ECHO with all args, space-separated.
1142
+ func_echo_all ()
1143
+ {
1144
+ $ECHO "$*"
1145
+ }
1181
1146
 
1182
- if test "$prev" != 'sed 50q "[$]0"'; then
1183
- echo_test_string=`eval $prev`
1184
- export echo_test_string
1185
- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1186
- else
1187
- # Oops. We lost completely, so just stick with echo.
1188
- ECHO=echo
1189
- fi
1190
- fi
1191
- fi
1192
- fi
1193
- fi
1194
- fi
1147
+ case "$ECHO" in
1148
+ printf*) AC_MSG_RESULT([printf]) ;;
1149
+ print*) AC_MSG_RESULT([print -r]) ;;
1150
+ *) AC_MSG_RESULT([cat]) ;;
1151
+ esac
1195
1152
 
1196
- # Copy echo and quote the copy suitably for passing to libtool from
1197
- # the Makefile, instead of quoting the original, which is used later.
1198
- lt_ECHO=$ECHO
1199
- if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1200
- lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1201
- fi
1153
+ m4_ifdef([_AS_DETECT_SUGGESTED],
1154
+ [_AS_DETECT_SUGGESTED([
1155
+ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1156
+ ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1157
+ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1158
+ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1159
+ PATH=/empty FPATH=/empty; export PATH FPATH
1160
+ test "X`printf %s $ECHO`" = "X$ECHO" \
1161
+ || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1202
1162
 
1203
- AC_SUBST(lt_ECHO)
1204
- ])
1205
1163
  _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1206
- _LT_DECL([], [ECHO], [1],
1207
- [An echo program that does not interpret backslashes])
1164
+ _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1208
1165
  ])# _LT_PROG_ECHO_BACKSLASH
1209
1166
 
1210
1167
 
@@ -1236,7 +1193,7 @@ ia64-*-hpux*)
1236
1193
  ;;
1237
1194
  *-*-irix6*)
1238
1195
  # Find out which ABI we are using.
1239
- echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1196
+ echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1240
1197
  if AC_TRY_EVAL(ac_compile); then
1241
1198
  if test "$lt_cv_prog_gnu_ld" = yes; then
1242
1199
  case `/usr/bin/file conftest.$ac_objext` in
@@ -1388,10 +1345,19 @@ if test -n "$RANLIB"; then
1388
1345
  esac
1389
1346
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1390
1347
  fi
1348
+
1349
+ case $host_os in
1350
+ darwin*)
1351
+ lock_old_archive_extraction=yes ;;
1352
+ *)
1353
+ lock_old_archive_extraction=no ;;
1354
+ esac
1391
1355
  _LT_DECL([], [old_postinstall_cmds], [2])
1392
1356
  _LT_DECL([], [old_postuninstall_cmds], [2])
1393
1357
  _LT_TAGDECL([], [old_archive_cmds], [2],
1394
1358
  [Commands used to build an old-style archive])
1359
+ _LT_DECL([], [lock_old_archive_extraction], [0],
1360
+ [Whether to use a lock for old archive extraction])
1395
1361
  ])# _LT_CMD_OLD_ARCHIVE
1396
1362
 
1397
1363
 
@@ -1416,21 +1382,21 @@ AC_CACHE_CHECK([$1], [$2],
1416
1382
  -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1417
1383
  -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1418
1384
  -e 's:$: $lt_compiler_flag:'`
1419
- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1385
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1420
1386
  (eval "$lt_compile" 2>conftest.err)
1421
1387
  ac_status=$?
1422
1388
  cat conftest.err >&AS_MESSAGE_LOG_FD
1423
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1389
+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1424
1390
  if (exit $ac_status) && test -s "$ac_outfile"; then
1425
1391
  # The compiler can only warn and ignore the option if not recognized
1426
1392
  # So say no if there are warnings other than the usual output.
1427
- $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1393
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1428
1394
  $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1429
1395
  if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1430
1396
  $2=yes
1431
1397
  fi
1432
1398
  fi
1433
- $RM conftest*
1399
+ $RM -r conftest*
1434
1400
  ])
1435
1401
 
1436
1402
  if test x"[$]$2" = xyes; then
@@ -1464,7 +1430,7 @@ AC_CACHE_CHECK([$1], [$2],
1464
1430
  if test -s conftest.err; then
1465
1431
  # Append any errors to the config.log.
1466
1432
  cat conftest.err 1>&AS_MESSAGE_LOG_FD
1467
- $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1433
+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1468
1434
  $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1469
1435
  if diff conftest.exp conftest.er2 >/dev/null; then
1470
1436
  $2=yes
@@ -1527,6 +1493,11 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1527
1493
  lt_cv_sys_max_cmd_len=8192;
1528
1494
  ;;
1529
1495
 
1496
+ mint*)
1497
+ # On MiNT this can take a long time and run out of memory.
1498
+ lt_cv_sys_max_cmd_len=8192;
1499
+ ;;
1500
+
1530
1501
  amigaos*)
1531
1502
  # On AmigaOS with pdksh, this test takes hours, literally.
1532
1503
  # So we just punt and use a minimum line length of 8192.
@@ -1591,8 +1562,8 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1591
1562
  # If test is not a shell built-in, we'll probably end up computing a
1592
1563
  # maximum length that is only half of the actual maximum length, but
1593
1564
  # we can't tell.
1594
- while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1595
- = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1565
+ while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
1566
+ = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1596
1567
  test $i != 17 # 1/2 MB should be enough
1597
1568
  do
1598
1569
  i=`expr $i + 1`
@@ -1643,7 +1614,7 @@ else
1643
1614
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1644
1615
  lt_status=$lt_dlunknown
1645
1616
  cat > conftest.$ac_ext <<_LT_EOF
1646
- [#line __oline__ "configure"
1617
+ [#line $LINENO "configure"
1647
1618
  #include "confdefs.h"
1648
1619
 
1649
1620
  #if HAVE_DLFCN_H
@@ -1684,7 +1655,13 @@ else
1684
1655
  # endif
1685
1656
  #endif
1686
1657
 
1687
- void fnord() { int i=42;}
1658
+ /* When -fvisbility=hidden is used, assume the code has been annotated
1659
+ correspondingly for the symbols needed. */
1660
+ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1661
+ void fnord () __attribute__((visibility("default")));
1662
+ #endif
1663
+
1664
+ void fnord () { int i=42; }
1688
1665
  int main ()
1689
1666
  {
1690
1667
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
@@ -1693,7 +1670,11 @@ int main ()
1693
1670
  if (self)
1694
1671
  {
1695
1672
  if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1696
- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1673
+ else
1674
+ {
1675
+ if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1676
+ else puts (dlerror ());
1677
+ }
1697
1678
  /* dlclose (self); */
1698
1679
  }
1699
1680
  else
@@ -1869,30 +1850,30 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1869
1850
  -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1870
1851
  -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1871
1852
  -e 's:$: $lt_compiler_flag:'`
1872
- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1853
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1873
1854
  (eval "$lt_compile" 2>out/conftest.err)
1874
1855
  ac_status=$?
1875
1856
  cat out/conftest.err >&AS_MESSAGE_LOG_FD
1876
- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1857
+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1877
1858
  if (exit $ac_status) && test -s out/conftest2.$ac_objext
1878
1859
  then
1879
1860
  # The compiler can only warn and ignore the option if not recognized
1880
1861
  # So say no if there are warnings
1881
- $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1862
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1882
1863
  $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1883
1864
  if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1884
1865
  _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1885
1866
  fi
1886
1867
  fi
1887
1868
  chmod u+w . 2>&AS_MESSAGE_LOG_FD
1888
- $RM conftest*
1869
+ $RM -r conftest*
1889
1870
  # SGI C++ compiler will create directory out/ii_files/ for
1890
1871
  # template instantiation
1891
1872
  test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1892
1873
  $RM out/* && rmdir out
1893
1874
  cd ..
1894
1875
  $RM -r conftest
1895
- $RM conftest*
1876
+ $RM -r conftest*
1896
1877
  ])
1897
1878
  _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1898
1879
  [Does compiler simultaneously support -c and -o options?])
@@ -1912,7 +1893,7 @@ if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" !=
1912
1893
  # do not overwrite the value of need_locks provided by the user
1913
1894
  AC_MSG_CHECKING([if we can lock with hard links])
1914
1895
  hard_links=yes
1915
- $RM conftest*
1896
+ $RM -r conftest*
1916
1897
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1917
1898
  touch conftest.a
1918
1899
  ln conftest.a conftest.b 2>&5 || hard_links=no
@@ -2037,6 +2018,7 @@ m4_require([_LT_DECL_EGREP])dnl
2037
2018
  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2038
2019
  m4_require([_LT_DECL_OBJDUMP])dnl
2039
2020
  m4_require([_LT_DECL_SED])dnl
2021
+ m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2040
2022
  AC_MSG_CHECKING([dynamic linker characteristics])
2041
2023
  m4_if([$1],
2042
2024
  [], [
@@ -2045,16 +2027,23 @@ if test "$GCC" = yes; then
2045
2027
  darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2046
2028
  *) lt_awk_arg="/^libraries:/" ;;
2047
2029
  esac
2048
- lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2049
- if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2030
+ case $host_os in
2031
+ mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2032
+ *) lt_sed_strip_eq="s,=/,/,g" ;;
2033
+ esac
2034
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2035
+ case $lt_search_path_spec in
2036
+ *\;*)
2050
2037
  # if the path contains ";" then we assume it to be the separator
2051
2038
  # otherwise default to the standard path separator (i.e. ":") - it is
2052
2039
  # assumed that no part of a normal pathname contains ";" but that should
2053
2040
  # okay in the real world where ";" in dirpaths is itself problematic.
2054
- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2055
- else
2056
- lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2057
- fi
2041
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2042
+ ;;
2043
+ *)
2044
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2045
+ ;;
2046
+ esac
2058
2047
  # Ok, now we have the path, separated by spaces, we can step through it
2059
2048
  # and add multilib dir if necessary.
2060
2049
  lt_tmp_lt_search_path_spec=
@@ -2067,7 +2056,7 @@ if test "$GCC" = yes; then
2067
2056
  lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2068
2057
  fi
2069
2058
  done
2070
- lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2059
+ lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2071
2060
  BEGIN {RS=" "; FS="/|\n";} {
2072
2061
  lt_foo="";
2073
2062
  lt_count=0;
@@ -2087,7 +2076,13 @@ BEGIN {RS=" "; FS="/|\n";} {
2087
2076
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2088
2077
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2089
2078
  }'`
2090
- sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2079
+ # AWK program above erroneously prepends '/' to C:/dos/paths
2080
+ # for these hosts.
2081
+ case $host_os in
2082
+ mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2083
+ $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2084
+ esac
2085
+ sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2091
2086
  else
2092
2087
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2093
2088
  fi])
@@ -2175,7 +2170,7 @@ amigaos*)
2175
2170
  m68k)
2176
2171
  library_names_spec='$libname.ixlibrary $libname.a'
2177
2172
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
2178
- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2173
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2179
2174
  ;;
2180
2175
  esac
2181
2176
  ;;
@@ -2228,23 +2223,12 @@ cygwin* | mingw* | pw32* | cegcc*)
2228
2223
  cygwin*)
2229
2224
  # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2230
2225
  soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2231
- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2226
+ m4_if([$1], [],[
2227
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2232
2228
  ;;
2233
2229
  mingw* | cegcc*)
2234
2230
  # MinGW DLLs use traditional 'lib' prefix
2235
2231
  soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2236
- sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2237
- if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2238
- # It is most probably a Windows format PATH printed by
2239
- # mingw gcc, but we are running on Cygwin. Gcc prints its search
2240
- # path with ; separators, and with drive letters. We can handle the
2241
- # drive letters (cygwin fileutils understands them), so leave them,
2242
- # especially as we might pass files found there to a mingw objdump,
2243
- # which wouldn't understand a cygwinified path. Ahh.
2244
- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2245
- else
2246
- sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2247
- fi
2248
2232
  ;;
2249
2233
  pw32*)
2250
2234
  # pw32 DLLs use 'pw' prefix rather than 'lib'
@@ -2267,7 +2251,7 @@ darwin* | rhapsody*)
2267
2251
  version_type=darwin
2268
2252
  need_lib_prefix=no
2269
2253
  need_version=no
2270
- library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2254
+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
2271
2255
  soname_spec='${libname}${release}${major}$shared_ext'
2272
2256
  shlibpath_overrides_runpath=yes
2273
2257
  shlibpath_var=DYLD_LIBRARY_PATH
@@ -2344,6 +2328,19 @@ gnu*)
2344
2328
  hardcode_into_libs=yes
2345
2329
  ;;
2346
2330
 
2331
+ haiku*)
2332
+ version_type=linux
2333
+ need_lib_prefix=no
2334
+ need_version=no
2335
+ dynamic_linker="$host_os runtime_loader"
2336
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2337
+ soname_spec='${libname}${release}${shared_ext}$major'
2338
+ shlibpath_var=LIBRARY_PATH
2339
+ shlibpath_overrides_runpath=yes
2340
+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2341
+ hardcode_into_libs=yes
2342
+ ;;
2343
+
2347
2344
  hpux9* | hpux10* | hpux11*)
2348
2345
  # Give a soname corresponding to the major version so that dld.sl refuses to
2349
2346
  # link against other versions.
@@ -2386,8 +2383,10 @@ hpux9* | hpux10* | hpux11*)
2386
2383
  soname_spec='${libname}${release}${shared_ext}$major'
2387
2384
  ;;
2388
2385
  esac
2389
- # HP-UX runs *really* slowly unless shared libraries are mode 555.
2386
+ # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2390
2387
  postinstall_cmds='chmod 555 $lib'
2388
+ # or fails outright, so override atomically:
2389
+ install_override_mode=555
2391
2390
  ;;
2392
2391
 
2393
2392
  interix[[3-9]]*)
@@ -2445,7 +2444,7 @@ linux*oldld* | linux*aout* | linux*coff*)
2445
2444
  ;;
2446
2445
 
2447
2446
  # This must be Linux ELF.
2448
- linux* | k*bsd*-gnu)
2447
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
2449
2448
  version_type=linux
2450
2449
  need_lib_prefix=no
2451
2450
  need_version=no
@@ -2454,16 +2453,21 @@ linux* | k*bsd*-gnu)
2454
2453
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2455
2454
  shlibpath_var=LD_LIBRARY_PATH
2456
2455
  shlibpath_overrides_runpath=no
2456
+
2457
2457
  # Some binutils ld are patched to set DT_RUNPATH
2458
- save_LDFLAGS=$LDFLAGS
2459
- save_libdir=$libdir
2460
- eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2461
- LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2462
- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2463
- [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2464
- [shlibpath_overrides_runpath=yes])])
2465
- LDFLAGS=$save_LDFLAGS
2466
- libdir=$save_libdir
2458
+ AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2459
+ [lt_cv_shlibpath_overrides_runpath=no
2460
+ save_LDFLAGS=$LDFLAGS
2461
+ save_libdir=$libdir
2462
+ eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2463
+ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2464
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2465
+ [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2466
+ [lt_cv_shlibpath_overrides_runpath=yes])])
2467
+ LDFLAGS=$save_LDFLAGS
2468
+ libdir=$save_libdir
2469
+ ])
2470
+ shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2467
2471
 
2468
2472
  # This implies no fast_install, which is unacceptable.
2469
2473
  # Some rework will be needed to allow for fast_install
@@ -2472,7 +2476,7 @@ linux* | k*bsd*-gnu)
2472
2476
 
2473
2477
  # Append ld.so.conf contents to the search path
2474
2478
  if test -f /etc/ld.so.conf; then
2475
- 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2479
+ 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2476
2480
  sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2477
2481
  fi
2478
2482
 
@@ -2485,18 +2489,6 @@ linux* | k*bsd*-gnu)
2485
2489
  dynamic_linker='GNU/Linux ld.so'
2486
2490
  ;;
2487
2491
 
2488
- netbsdelf*-gnu)
2489
- version_type=linux
2490
- need_lib_prefix=no
2491
- need_version=no
2492
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2493
- soname_spec='${libname}${release}${shared_ext}$major'
2494
- shlibpath_var=LD_LIBRARY_PATH
2495
- shlibpath_overrides_runpath=no
2496
- hardcode_into_libs=yes
2497
- dynamic_linker='NetBSD ld.elf_so'
2498
- ;;
2499
-
2500
2492
  netbsd*)
2501
2493
  version_type=sunos
2502
2494
  need_lib_prefix=no
@@ -2717,6 +2709,8 @@ _LT_DECL([], [library_names_spec], [1],
2717
2709
  The last name is the one that the linker finds with -lNAME]])
2718
2710
  _LT_DECL([], [soname_spec], [1],
2719
2711
  [[The coded name of the library, if different from the real name]])
2712
+ _LT_DECL([], [install_override_mode], [1],
2713
+ [Permission mode override for installation of shared libraries])
2720
2714
  _LT_DECL([], [postinstall_cmds], [2],
2721
2715
  [Command to use after installation of a shared archive])
2722
2716
  _LT_DECL([], [postuninstall_cmds], [2],
@@ -2829,6 +2823,7 @@ AC_REQUIRE([AC_CANONICAL_HOST])dnl
2829
2823
  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2830
2824
  m4_require([_LT_DECL_SED])dnl
2831
2825
  m4_require([_LT_DECL_EGREP])dnl
2826
+ m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
2832
2827
 
2833
2828
  AC_ARG_WITH([gnu-ld],
2834
2829
  [AS_HELP_STRING([--with-gnu-ld],
@@ -2958,8 +2953,8 @@ case $host_os in
2958
2953
  fi
2959
2954
  ;;
2960
2955
  esac
2961
- _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2962
- _LT_DECL([], [reload_cmds], [2])dnl
2956
+ _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2957
+ _LT_TAGDECL([], [reload_cmds], [2])dnl
2963
2958
  ])# _LT_CMD_RELOAD
2964
2959
 
2965
2960
 
@@ -3011,16 +3006,18 @@ mingw* | pw32*)
3011
3006
  # Base MSYS/MinGW do not provide the 'file' command needed by
3012
3007
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3013
3008
  # unless we find 'file', for example because we are cross-compiling.
3014
- if ( file / ) >/dev/null 2>&1; then
3009
+ # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3010
+ if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3015
3011
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3016
3012
  lt_cv_file_magic_cmd='func_win32_libid'
3017
3013
  else
3018
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3014
+ # Keep this pattern in sync with the one in func_win32_libid.
3015
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3019
3016
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3020
3017
  fi
3021
3018
  ;;
3022
3019
 
3023
- cegcc)
3020
+ cegcc*)
3024
3021
  # use the weaker test based on 'objdump'. See mingw*.
3025
3022
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3026
3023
  lt_cv_file_magic_cmd='$OBJDUMP -f'
@@ -3050,6 +3047,10 @@ gnu*)
3050
3047
  lt_cv_deplibs_check_method=pass_all
3051
3048
  ;;
3052
3049
 
3050
+ haiku*)
3051
+ lt_cv_deplibs_check_method=pass_all
3052
+ ;;
3053
+
3053
3054
  hpux10.20* | hpux11*)
3054
3055
  lt_cv_file_magic_cmd=/usr/bin/file
3055
3056
  case $host_cpu in
@@ -3058,11 +3059,11 @@ hpux10.20* | hpux11*)
3058
3059
  lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3059
3060
  ;;
3060
3061
  hppa*64*)
3061
- [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3062
+ [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3062
3063
  lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3063
3064
  ;;
3064
3065
  *)
3065
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3066
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3066
3067
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3067
3068
  ;;
3068
3069
  esac
@@ -3084,11 +3085,11 @@ irix5* | irix6* | nonstopux*)
3084
3085
  ;;
3085
3086
 
3086
3087
  # This must be Linux ELF.
3087
- linux* | k*bsd*-gnu)
3088
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
3088
3089
  lt_cv_deplibs_check_method=pass_all
3089
3090
  ;;
3090
3091
 
3091
- netbsd* | netbsdelf*-gnu)
3092
+ netbsd*)
3092
3093
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3093
3094
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3094
3095
  else
@@ -3226,7 +3227,19 @@ if test "$lt_cv_path_NM" != "no"; then
3226
3227
  NM="$lt_cv_path_NM"
3227
3228
  else
3228
3229
  # Didn't find any BSD compatible name lister, look for dumpbin.
3229
- AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3230
+ if test -n "$DUMPBIN"; then :
3231
+ # Let the user override the test.
3232
+ else
3233
+ AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3234
+ case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3235
+ *COFF*)
3236
+ DUMPBIN="$DUMPBIN -symbols"
3237
+ ;;
3238
+ *)
3239
+ DUMPBIN=:
3240
+ ;;
3241
+ esac
3242
+ fi
3230
3243
  AC_SUBST([DUMPBIN])
3231
3244
  if test "$DUMPBIN" != ":"; then
3232
3245
  NM="$DUMPBIN"
@@ -3239,18 +3252,18 @@ _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3239
3252
  AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3240
3253
  [lt_cv_nm_interface="BSD nm"
3241
3254
  echo "int some_variable = 0;" > conftest.$ac_ext
3242
- (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3255
+ (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3243
3256
  (eval "$ac_compile" 2>conftest.err)
3244
3257
  cat conftest.err >&AS_MESSAGE_LOG_FD
3245
- (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3258
+ (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3246
3259
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3247
3260
  cat conftest.err >&AS_MESSAGE_LOG_FD
3248
- (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3261
+ (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3249
3262
  cat conftest.out >&AS_MESSAGE_LOG_FD
3250
3263
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3251
3264
  lt_cv_nm_interface="MS dumpbin"
3252
3265
  fi
3253
- rm -f conftest*])
3266
+ rm -r -f conftest*])
3254
3267
  ])# LT_PATH_NM
3255
3268
 
3256
3269
  # Old names:
@@ -3268,7 +3281,7 @@ AC_DEFUN([LT_LIB_M],
3268
3281
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3269
3282
  LIBM=
3270
3283
  case $host in
3271
- *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3284
+ *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3272
3285
  # These system don't have libm, or don't need it
3273
3286
  ;;
3274
3287
  *-ncr-sysv4.3*)
@@ -3296,7 +3309,12 @@ m4_defun([_LT_COMPILER_NO_RTTI],
3296
3309
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3297
3310
 
3298
3311
  if test "$GCC" = yes; then
3299
- _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3312
+ case $cc_basename in
3313
+ nvcc*)
3314
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3315
+ *)
3316
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3317
+ esac
3300
3318
 
3301
3319
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3302
3320
  lt_cv_prog_compiler_rtti_exceptions,
@@ -3313,6 +3331,7 @@ _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3313
3331
  m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3314
3332
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3315
3333
  AC_REQUIRE([AC_PROG_CC])dnl
3334
+ AC_REQUIRE([AC_PROG_AWK])dnl
3316
3335
  AC_REQUIRE([LT_PATH_NM])dnl
3317
3336
  AC_REQUIRE([LT_PATH_LD])dnl
3318
3337
  m4_require([_LT_DECL_SED])dnl
@@ -3421,7 +3440,7 @@ for ac_symprfx in "" "_"; do
3421
3440
  # Check to see that the pipe works correctly.
3422
3441
  pipe_works=no
3423
3442
 
3424
- rm -f conftest*
3443
+ rm -r -f conftest*
3425
3444
  cat > conftest.$ac_ext <<_LT_EOF
3426
3445
  #ifdef __cplusplus
3427
3446
  extern "C" {
@@ -3438,7 +3457,7 @@ _LT_EOF
3438
3457
  if AC_TRY_EVAL(ac_compile); then
3439
3458
  # Now try to grab the symbols.
3440
3459
  nlist=conftest.nm
3441
- if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3460
+ if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3442
3461
  # Try sorting and uniquifying the output.
3443
3462
  if sort "$nlist" | uniq > "$nlist"T; then
3444
3463
  mv -f "$nlist"T "$nlist"
@@ -3600,6 +3619,11 @@ m4_if([$1], [CXX], [
3600
3619
  # DJGPP does not support shared libraries at all
3601
3620
  _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3602
3621
  ;;
3622
+ haiku*)
3623
+ # PIC is the default for Haiku.
3624
+ # The "-static" flag exists, but is broken.
3625
+ _LT_TAGVAR(lt_prog_compiler_static, $1)=
3626
+ ;;
3603
3627
  interix[[3-9]]*)
3604
3628
  # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3605
3629
  # Instead, we relocate shared libraries at runtime.
@@ -3705,7 +3729,7 @@ m4_if([$1], [CXX], [
3705
3729
  ;;
3706
3730
  esac
3707
3731
  ;;
3708
- linux* | k*bsd*-gnu)
3732
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
3709
3733
  case $cc_basename in
3710
3734
  KCC*)
3711
3735
  # KAI C++ Compiler
@@ -3738,8 +3762,8 @@ m4_if([$1], [CXX], [
3738
3762
  _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3739
3763
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3740
3764
  ;;
3741
- xlc* | xlC*)
3742
- # IBM XL 8.0 on PPC
3765
+ xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
3766
+ # IBM XL 8.0, 9.0 on PPC and BlueGene
3743
3767
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3744
3768
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3745
3769
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
@@ -3769,7 +3793,7 @@ m4_if([$1], [CXX], [
3769
3793
  ;;
3770
3794
  esac
3771
3795
  ;;
3772
- netbsd* | netbsdelf*-gnu)
3796
+ netbsd*)
3773
3797
  ;;
3774
3798
  *qnx* | *nto*)
3775
3799
  # QNX uses GNU C++, but need to define -shared option too, otherwise
@@ -3801,7 +3825,7 @@ m4_if([$1], [CXX], [
3801
3825
  ;;
3802
3826
  solaris*)
3803
3827
  case $cc_basename in
3804
- CC*)
3828
+ CC* | sunCC*)
3805
3829
  # Sun C++ 4.2, 5.x and Centerline C++
3806
3830
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3807
3831
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
@@ -3905,6 +3929,12 @@ m4_if([$1], [CXX], [
3905
3929
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3906
3930
  ;;
3907
3931
 
3932
+ haiku*)
3933
+ # PIC is the default for Haiku.
3934
+ # The "-static" flag exists, but is broken.
3935
+ _LT_TAGVAR(lt_prog_compiler_static, $1)=
3936
+ ;;
3937
+
3908
3938
  hpux*)
3909
3939
  # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3910
3940
  # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
@@ -3947,6 +3977,13 @@ m4_if([$1], [CXX], [
3947
3977
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3948
3978
  ;;
3949
3979
  esac
3980
+
3981
+ case $cc_basename in
3982
+ nvcc*) # Cuda Compiler Driver 2.2
3983
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
3984
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
3985
+ ;;
3986
+ esac
3950
3987
  else
3951
3988
  # PORTME Check for flag to pass linker flags through the system compiler.
3952
3989
  case $host_os in
@@ -3989,7 +4026,7 @@ m4_if([$1], [CXX], [
3989
4026
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3990
4027
  ;;
3991
4028
 
3992
- linux* | k*bsd*-gnu)
4029
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
3993
4030
  case $cc_basename in
3994
4031
  # old Intel for x86_64 which still supported -KPIC.
3995
4032
  ecc*)
@@ -4010,7 +4047,7 @@ m4_if([$1], [CXX], [
4010
4047
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4011
4048
  _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4012
4049
  ;;
4013
- pgcc* | pgf77* | pgf90* | pgf95*)
4050
+ pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4014
4051
  # Portland Group compilers (*not* the Pentium gcc compiler,
4015
4052
  # which looks to be a dead project)
4016
4053
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
@@ -4022,25 +4059,25 @@ m4_if([$1], [CXX], [
4022
4059
  # All Alpha code is PIC.
4023
4060
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4024
4061
  ;;
4025
- xl*)
4026
- # IBM XL C 8.0/Fortran 10.1 on PPC
4062
+ xl* | bgxl* | bgf* | mpixl*)
4063
+ # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4027
4064
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4028
4065
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4029
4066
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4030
4067
  ;;
4031
4068
  *)
4032
4069
  case `$CC -V 2>&1 | sed 5q` in
4033
- *Sun\ C*)
4034
- # Sun C 5.9
4070
+ *Sun\ F* | *Sun*Fortran*)
4071
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
4035
4072
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4036
4073
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4037
- _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4074
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4038
4075
  ;;
4039
- *Sun\ F*)
4040
- # Sun Fortran 8.3 passes all unrecognized flags to the linker
4076
+ *Sun\ C*)
4077
+ # Sun C 5.9
4041
4078
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4042
4079
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4043
- _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4080
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4044
4081
  ;;
4045
4082
  esac
4046
4083
  ;;
@@ -4072,7 +4109,7 @@ m4_if([$1], [CXX], [
4072
4109
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4073
4110
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4074
4111
  case $cc_basename in
4075
- f77* | f90* | f95*)
4112
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4076
4113
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4077
4114
  *)
4078
4115
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
@@ -4182,8 +4219,10 @@ m4_if([$1], [CXX], [
4182
4219
  aix[[4-9]]*)
4183
4220
  # If we're using GNU nm, then we don't want the "-C" option.
4184
4221
  # -C means demangle to AIX nm, but means don't demangle with GNU nm
4222
+ # Also, AIX nm treats weak defined symbols like other global defined
4223
+ # symbols, whereas GNU nm marks them as "W".
4185
4224
  if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4186
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4225
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4187
4226
  else
4188
4227
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4189
4228
  fi
@@ -4194,9 +4233,6 @@ m4_if([$1], [CXX], [
4194
4233
  cygwin* | mingw* | cegcc*)
4195
4234
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4196
4235
  ;;
4197
- linux* | k*bsd*-gnu)
4198
- _LT_TAGVAR(link_all_deplibs, $1)=no
4199
- ;;
4200
4236
  *)
4201
4237
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4202
4238
  ;;
@@ -4261,13 +4297,36 @@ dnl Note also adjust exclude_expsyms for C++ above.
4261
4297
  openbsd*)
4262
4298
  with_gnu_ld=no
4263
4299
  ;;
4264
- linux* | k*bsd*-gnu)
4265
- _LT_TAGVAR(link_all_deplibs, $1)=no
4266
- ;;
4267
4300
  esac
4268
4301
 
4269
4302
  _LT_TAGVAR(ld_shlibs, $1)=yes
4303
+
4304
+ # On some targets, GNU ld is compatible enough with the native linker
4305
+ # that we're better off using the native interface for both.
4306
+ lt_use_gnu_ld_interface=no
4270
4307
  if test "$with_gnu_ld" = yes; then
4308
+ case $host_os in
4309
+ aix*)
4310
+ # The AIX port of GNU ld has always aspired to compatibility
4311
+ # with the native linker. However, as the warning in the GNU ld
4312
+ # block says, versions before 2.19.5* couldn't really create working
4313
+ # shared libraries, regardless of the interface used.
4314
+ case `$LD -v 2>&1` in
4315
+ *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4316
+ *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4317
+ *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4318
+ *)
4319
+ lt_use_gnu_ld_interface=yes
4320
+ ;;
4321
+ esac
4322
+ ;;
4323
+ *)
4324
+ lt_use_gnu_ld_interface=yes
4325
+ ;;
4326
+ esac
4327
+ fi
4328
+
4329
+ if test "$lt_use_gnu_ld_interface" = yes; then
4271
4330
  # If archive_cmds runs LD, not CC, wlarc should be empty
4272
4331
  wlarc='${wl}'
4273
4332
 
@@ -4285,6 +4344,7 @@ dnl Note also adjust exclude_expsyms for C++ above.
4285
4344
  fi
4286
4345
  supports_anon_versioning=no
4287
4346
  case `$LD -v 2>&1` in
4347
+ *GNU\ gold*) supports_anon_versioning=yes ;;
4288
4348
  *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4289
4349
  *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4290
4350
  *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
@@ -4300,11 +4360,12 @@ dnl Note also adjust exclude_expsyms for C++ above.
4300
4360
  _LT_TAGVAR(ld_shlibs, $1)=no
4301
4361
  cat <<_LT_EOF 1>&2
4302
4362
 
4303
- *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4363
+ *** Warning: the GNU linker, at least up to release 2.19, is reported
4304
4364
  *** to be unable to reliably create shared libraries on AIX.
4305
4365
  *** Therefore, libtool is disabling shared libraries support. If you
4306
- *** really care for shared libraries, you may want to modify your PATH
4307
- *** so that a non-GNU linker is found, and then restart.
4366
+ *** really care for shared libraries, you may want to install binutils
4367
+ *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4368
+ *** You will then need to restart the configuration process.
4308
4369
 
4309
4370
  _LT_EOF
4310
4371
  fi
@@ -4340,6 +4401,7 @@ _LT_EOF
4340
4401
  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4341
4402
  # as there is no search path for DLLs.
4342
4403
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4404
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4343
4405
  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4344
4406
  _LT_TAGVAR(always_export_symbols, $1)=no
4345
4407
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
@@ -4361,6 +4423,11 @@ _LT_EOF
4361
4423
  fi
4362
4424
  ;;
4363
4425
 
4426
+ haiku*)
4427
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4428
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
4429
+ ;;
4430
+
4364
4431
  interix[[3-9]]*)
4365
4432
  _LT_TAGVAR(hardcode_direct, $1)=no
4366
4433
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
@@ -4376,7 +4443,7 @@ _LT_EOF
4376
4443
  _LT_TAGVAR(archive_expsym_cmds, $1)='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'
4377
4444
  ;;
4378
4445
 
4379
- gnu* | linux* | tpf* | k*bsd*-gnu)
4446
+ gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4380
4447
  tmp_diet=no
4381
4448
  if test "$host_os" = linux-dietlibc; then
4382
4449
  case $cc_basename in
@@ -4390,11 +4457,12 @@ _LT_EOF
4390
4457
  tmp_sharedflag='-shared'
4391
4458
  case $cc_basename,$host_cpu in
4392
4459
  pgcc*) # Portland Group C compiler
4393
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4460
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4394
4461
  tmp_addflag=' $pic_flag'
4395
4462
  ;;
4396
- pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
4397
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4463
+ pgf77* | pgf90* | pgf95* | pgfortran*)
4464
+ # Portland Group f77 and f90 compilers
4465
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4398
4466
  tmp_addflag=' $pic_flag -Mnomain' ;;
4399
4467
  ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4400
4468
  tmp_addflag=' -i_dynamic' ;;
@@ -4405,13 +4473,17 @@ _LT_EOF
4405
4473
  lf95*) # Lahey Fortran 8.1
4406
4474
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
4407
4475
  tmp_sharedflag='--shared' ;;
4408
- xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4476
+ xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4409
4477
  tmp_sharedflag='-qmkshrobj'
4410
4478
  tmp_addflag= ;;
4479
+ nvcc*) # Cuda Compiler Driver 2.2
4480
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4481
+ _LT_TAGVAR(compiler_needs_object, $1)=yes
4482
+ ;;
4411
4483
  esac
4412
4484
  case `$CC -V 2>&1 | sed 5q` in
4413
4485
  *Sun\ C*) # Sun C 5.9
4414
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4486
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4415
4487
  _LT_TAGVAR(compiler_needs_object, $1)=yes
4416
4488
  tmp_sharedflag='-G' ;;
4417
4489
  *Sun\ F*) # Sun Fortran 8.3
@@ -4427,17 +4499,17 @@ _LT_EOF
4427
4499
  fi
4428
4500
 
4429
4501
  case $cc_basename in
4430
- xlf*)
4502
+ xlf* | bgf* | bgxlf* | mpixlf*)
4431
4503
  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4432
4504
  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4433
4505
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4434
4506
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4435
- _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4507
+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4436
4508
  if test "x$supports_anon_versioning" = xyes; then
4437
4509
  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4438
4510
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4439
4511
  echo "local: *; };" >> $output_objdir/$libname.ver~
4440
- $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4512
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4441
4513
  fi
4442
4514
  ;;
4443
4515
  esac
@@ -4446,7 +4518,7 @@ _LT_EOF
4446
4518
  fi
4447
4519
  ;;
4448
4520
 
4449
- netbsd* | netbsdelf*-gnu)
4521
+ netbsd*)
4450
4522
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4451
4523
  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4452
4524
  wlarc=
@@ -4558,8 +4630,10 @@ _LT_EOF
4558
4630
  else
4559
4631
  # If we're using GNU nm, then we don't want the "-C" option.
4560
4632
  # -C means demangle to AIX nm, but means don't demangle with GNU nm
4633
+ # Also, AIX nm treats weak defined symbols like other global
4634
+ # defined symbols, whereas GNU nm marks them as "W".
4561
4635
  if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4562
- _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4636
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4563
4637
  else
4564
4638
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4565
4639
  fi
@@ -4621,7 +4695,6 @@ _LT_EOF
4621
4695
  if test "$aix_use_runtimelinking" = yes; then
4622
4696
  shared_flag="$shared_flag "'${wl}-G'
4623
4697
  fi
4624
- _LT_TAGVAR(link_all_deplibs, $1)=no
4625
4698
  else
4626
4699
  # not using gcc
4627
4700
  if test "$host_cpu" = ia64; then
@@ -4649,7 +4722,7 @@ _LT_EOF
4649
4722
  # empty executable.
4650
4723
  _LT_SYS_MODULE_PATH_AIX
4651
4724
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4652
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4725
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4653
4726
  else
4654
4727
  if test "$host_cpu" = ia64; then
4655
4728
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
@@ -4664,8 +4737,13 @@ _LT_EOF
4664
4737
  # -berok will link without error, but may produce a broken library.
4665
4738
  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4666
4739
  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4667
- # Exported symbols can be pulled into shared objects from archives
4668
- _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4740
+ if test "$with_gnu_ld" = yes; then
4741
+ # We only use this code for GNU lds that support --whole-archive.
4742
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4743
+ else
4744
+ # Exported symbols can be pulled into shared objects from archives
4745
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4746
+ fi
4669
4747
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4670
4748
  # This is similar to how AIX traditionally builds its shared libraries.
4671
4749
  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
@@ -4704,7 +4782,7 @@ _LT_EOF
4704
4782
  # Tell ltmain to make .dll files, not .so files.
4705
4783
  shrext_cmds=".dll"
4706
4784
  # FIXME: Setting linknames here is a bad hack.
4707
- _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4785
+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
4708
4786
  # The linker will automatically build a .lib file if we build a DLL.
4709
4787
  _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4710
4788
  # FIXME: Should let the user specify the lib program.
@@ -4771,7 +4849,7 @@ _LT_EOF
4771
4849
  ;;
4772
4850
 
4773
4851
  hpux10*)
4774
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4852
+ if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4775
4853
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4776
4854
  else
4777
4855
  _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
@@ -4790,7 +4868,7 @@ _LT_EOF
4790
4868
  ;;
4791
4869
 
4792
4870
  hpux11*)
4793
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4871
+ if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4794
4872
  case $host_cpu in
4795
4873
  hppa*64*)
4796
4874
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
@@ -4811,7 +4889,14 @@ _LT_EOF
4811
4889
  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4812
4890
  ;;
4813
4891
  *)
4814
- _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4892
+ m4_if($1, [], [
4893
+ # Older versions of the 11.00 compiler do not understand -b yet
4894
+ # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
4895
+ _LT_LINKER_OPTION([if $CC understands -b],
4896
+ _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
4897
+ [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
4898
+ [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
4899
+ [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
4815
4900
  ;;
4816
4901
  esac
4817
4902
  fi
@@ -4839,19 +4924,19 @@ _LT_EOF
4839
4924
 
4840
4925
  irix5* | irix6* | nonstopux*)
4841
4926
  if test "$GCC" = yes; then
4842
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4927
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4843
4928
  # Try to use the -exported_symbol ld option, if it does not
4844
4929
  # work, assume that -exports_file does not work either and
4845
4930
  # implicitly export all symbols.
4846
4931
  save_LDFLAGS="$LDFLAGS"
4847
4932
  LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4848
4933
  AC_LINK_IFELSE(int foo(void) {},
4849
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4934
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4850
4935
  )
4851
4936
  LDFLAGS="$save_LDFLAGS"
4852
4937
  else
4853
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4854
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4938
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
4939
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4855
4940
  fi
4856
4941
  _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4857
4942
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
@@ -4860,7 +4945,7 @@ _LT_EOF
4860
4945
  _LT_TAGVAR(link_all_deplibs, $1)=yes
4861
4946
  ;;
4862
4947
 
4863
- netbsd* | netbsdelf*-gnu)
4948
+ netbsd*)
4864
4949
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4865
4950
  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4866
4951
  else
@@ -4913,17 +4998,17 @@ _LT_EOF
4913
4998
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4914
4999
  _LT_TAGVAR(hardcode_minus_L, $1)=yes
4915
5000
  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4916
- _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5001
+ _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4917
5002
  _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4918
5003
  ;;
4919
5004
 
4920
5005
  osf3*)
4921
5006
  if test "$GCC" = yes; then
4922
5007
  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4923
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5008
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4924
5009
  else
4925
5010
  _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4926
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5011
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
4927
5012
  fi
4928
5013
  _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4929
5014
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
@@ -4933,13 +5018,13 @@ _LT_EOF
4933
5018
  osf4* | osf5*) # as osf3* with the addition of -msym flag
4934
5019
  if test "$GCC" = yes; then
4935
5020
  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4936
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5021
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4937
5022
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4938
5023
  else
4939
5024
  _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4940
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5025
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
4941
5026
  _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4942
- $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5027
+ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
4943
5028
 
4944
5029
  # Both c and cxx compiler support -rpath directly
4945
5030
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
@@ -5130,36 +5215,38 @@ x|xyes)
5130
5215
  # Test whether the compiler implicitly links with -lc since on some
5131
5216
  # systems, -lgcc has to come before -lc. If gcc already passes -lc
5132
5217
  # to ld, don't add -lc before -lgcc.
5133
- AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5134
- $RM conftest*
5135
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5136
-
5137
- if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5138
- soname=conftest
5139
- lib=conftest
5140
- libobjs=conftest.$ac_objext
5141
- deplibs=
5142
- wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5143
- pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5144
- compiler_flags=-v
5145
- linker_flags=-v
5146
- verstring=
5147
- output_objdir=.
5148
- libname=conftest
5149
- lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5150
- _LT_TAGVAR(allow_undefined_flag, $1)=
5151
- if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5152
- then
5153
- _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5154
- else
5155
- _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5156
- fi
5157
- _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5158
- else
5159
- cat conftest.err 1>&5
5160
- fi
5161
- $RM conftest*
5162
- AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5218
+ AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5219
+ [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5220
+ [$RM -r conftest*
5221
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5222
+
5223
+ if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5224
+ soname=conftest
5225
+ lib=conftest
5226
+ libobjs=conftest.$ac_objext
5227
+ deplibs=
5228
+ wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5229
+ pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5230
+ compiler_flags=-v
5231
+ linker_flags=-v
5232
+ verstring=
5233
+ output_objdir=.
5234
+ libname=conftest
5235
+ lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5236
+ _LT_TAGVAR(allow_undefined_flag, $1)=
5237
+ if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5238
+ then
5239
+ lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5240
+ else
5241
+ lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5242
+ fi
5243
+ _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5244
+ else
5245
+ cat conftest.err 1>&5
5246
+ fi
5247
+ $RM -r conftest*
5248
+ ])
5249
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5163
5250
  ;;
5164
5251
  esac
5165
5252
  fi
@@ -5329,37 +5416,21 @@ CC="$lt_save_CC"
5329
5416
  ])# _LT_LANG_C_CONFIG
5330
5417
 
5331
5418
 
5332
- # _LT_PROG_CXX
5333
- # ------------
5334
- # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5335
- # compiler, we have our own version here.
5336
- m4_defun([_LT_PROG_CXX],
5337
- [
5338
- pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5339
- AC_PROG_CXX
5340
- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5341
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5342
- (test "X$CXX" != "Xg++"))) ; then
5343
- AC_PROG_CXXCPP
5344
- else
5345
- _lt_caught_CXX_error=yes
5346
- fi
5347
- popdef([AC_MSG_ERROR])
5348
- ])# _LT_PROG_CXX
5349
-
5350
- dnl aclocal-1.4 backwards compatibility:
5351
- dnl AC_DEFUN([_LT_PROG_CXX], [])
5352
-
5353
-
5354
5419
  # _LT_LANG_CXX_CONFIG([TAG])
5355
5420
  # --------------------------
5356
5421
  # Ensure that the configuration variables for a C++ compiler are suitably
5357
5422
  # defined. These variables are subsequently used by _LT_CONFIG to write
5358
5423
  # the compiler configuration to `libtool'.
5359
5424
  m4_defun([_LT_LANG_CXX_CONFIG],
5360
- [AC_REQUIRE([_LT_PROG_CXX])dnl
5361
- m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5425
+ [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5362
5426
  m4_require([_LT_DECL_EGREP])dnl
5427
+ if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5428
+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5429
+ (test "X$CXX" != "Xg++"))) ; then
5430
+ AC_PROG_CXXCPP
5431
+ else
5432
+ _lt_caught_CXX_error=yes
5433
+ fi
5363
5434
 
5364
5435
  AC_LANG_PUSH(C++)
5365
5436
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
@@ -5381,6 +5452,8 @@ _LT_TAGVAR(module_cmds, $1)=
5381
5452
  _LT_TAGVAR(module_expsym_cmds, $1)=
5382
5453
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
5383
5454
  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5455
+ _LT_TAGVAR(reload_flag, $1)=$reload_flag
5456
+ _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5384
5457
  _LT_TAGVAR(no_undefined_flag, $1)=
5385
5458
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
5386
5459
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -5483,7 +5556,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5483
5556
  # Commands to make compiler produce verbose output that lists
5484
5557
  # what "hidden" libraries, object files and flags are used when
5485
5558
  # linking a shared library.
5486
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5559
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5487
5560
 
5488
5561
  else
5489
5562
  GXX=no
@@ -5595,7 +5668,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5595
5668
  _LT_SYS_MODULE_PATH_AIX
5596
5669
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5597
5670
 
5598
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5671
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5599
5672
  else
5600
5673
  if test "$host_cpu" = ia64; then
5601
5674
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
@@ -5610,8 +5683,13 @@ if test "$_lt_caught_CXX_error" != yes; then
5610
5683
  # -berok will link without error, but may produce a broken library.
5611
5684
  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5612
5685
  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5613
- # Exported symbols can be pulled into shared objects from archives
5614
- _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5686
+ if test "$with_gnu_ld" = yes; then
5687
+ # We only use this code for GNU lds that support --whole-archive.
5688
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5689
+ else
5690
+ # Exported symbols can be pulled into shared objects from archives
5691
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5692
+ fi
5615
5693
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5616
5694
  # This is similar to how AIX traditionally builds its shared
5617
5695
  # libraries.
@@ -5644,6 +5722,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5644
5722
  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5645
5723
  # as there is no search path for DLLs.
5646
5724
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5725
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5647
5726
  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5648
5727
  _LT_TAGVAR(always_export_symbols, $1)=no
5649
5728
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
@@ -5704,6 +5783,11 @@ if test "$_lt_caught_CXX_error" != yes; then
5704
5783
  gnu*)
5705
5784
  ;;
5706
5785
 
5786
+ haiku*)
5787
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5788
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
5789
+ ;;
5790
+
5707
5791
  hpux9*)
5708
5792
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5709
5793
  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
@@ -5728,7 +5812,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5728
5812
  # explicitly linking system object files so we need to strip them
5729
5813
  # from the output so that they don't get included in the library
5730
5814
  # dependencies.
5731
- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5815
+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
5732
5816
  ;;
5733
5817
  *)
5734
5818
  if test "$GXX" = yes; then
@@ -5793,7 +5877,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5793
5877
  # explicitly linking system object files so we need to strip them
5794
5878
  # from the output so that they don't get included in the library
5795
5879
  # dependencies.
5796
- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5880
+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
5797
5881
  ;;
5798
5882
  *)
5799
5883
  if test "$GXX" = yes; then
@@ -5836,7 +5920,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5836
5920
  case $cc_basename in
5837
5921
  CC*)
5838
5922
  # SGI C++
5839
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5923
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5840
5924
 
5841
5925
  # Archives containing C++ object files must be created using
5842
5926
  # "CC -ar", where "CC" is the IRIX C++ compiler. This is
@@ -5847,9 +5931,9 @@ if test "$_lt_caught_CXX_error" != yes; then
5847
5931
  *)
5848
5932
  if test "$GXX" = yes; then
5849
5933
  if test "$with_gnu_ld" = no; then
5850
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5934
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5851
5935
  else
5852
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5936
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
5853
5937
  fi
5854
5938
  fi
5855
5939
  _LT_TAGVAR(link_all_deplibs, $1)=yes
@@ -5860,7 +5944,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5860
5944
  _LT_TAGVAR(inherit_rpath, $1)=yes
5861
5945
  ;;
5862
5946
 
5863
- linux* | k*bsd*-gnu)
5947
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
5864
5948
  case $cc_basename in
5865
5949
  KCC*)
5866
5950
  # Kuck and Associates, Inc. (KAI) C++ Compiler
@@ -5878,7 +5962,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5878
5962
  # explicitly linking system object files so we need to strip them
5879
5963
  # from the output so that they don't get included in the library
5880
5964
  # dependencies.
5881
- output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5965
+ output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
5882
5966
 
5883
5967
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5884
5968
  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -5915,26 +5999,26 @@ if test "$_lt_caught_CXX_error" != yes; then
5915
5999
  pgCC* | pgcpp*)
5916
6000
  # Portland Group C++ compiler
5917
6001
  case `$CC -V` in
5918
- *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6002
+ *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
5919
6003
  _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5920
6004
  rm -rf $tpldir~
5921
6005
  $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5922
- compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6006
+ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
5923
6007
  _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5924
6008
  rm -rf $tpldir~
5925
6009
  $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5926
- $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6010
+ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
5927
6011
  $RANLIB $oldlib'
5928
6012
  _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5929
6013
  rm -rf $tpldir~
5930
6014
  $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5931
- $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6015
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5932
6016
  _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5933
6017
  rm -rf $tpldir~
5934
6018
  $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5935
- $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6019
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5936
6020
  ;;
5937
- *) # Version 6 will use weak symbols
6021
+ *) # Version 6 and above use weak symbols
5938
6022
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5939
6023
  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5940
6024
  ;;
@@ -5942,7 +6026,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5942
6026
 
5943
6027
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5944
6028
  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5945
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6029
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5946
6030
  ;;
5947
6031
  cxx*)
5948
6032
  # Compaq C++
@@ -5961,9 +6045,9 @@ if test "$_lt_caught_CXX_error" != yes; then
5961
6045
  # explicitly linking system object files so we need to strip them
5962
6046
  # from the output so that they don't get included in the library
5963
6047
  # dependencies.
5964
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6048
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
5965
6049
  ;;
5966
- xl*)
6050
+ xl* | mpixl* | bgxl*)
5967
6051
  # IBM XL 8.0 on PPC, with GNU ld
5968
6052
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5969
6053
  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -5983,13 +6067,13 @@ if test "$_lt_caught_CXX_error" != yes; then
5983
6067
  _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5984
6068
  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
5985
6069
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5986
- _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6070
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5987
6071
  _LT_TAGVAR(compiler_needs_object, $1)=yes
5988
6072
 
5989
6073
  # Not sure whether something based on
5990
6074
  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5991
6075
  # would be better.
5992
- output_verbose_link_cmd='echo'
6076
+ output_verbose_link_cmd='func_echo_all'
5993
6077
 
5994
6078
  # Archives containing C++ object files must be created using
5995
6079
  # "CC -xar", where "CC" is the Sun C++ compiler. This is
@@ -6058,7 +6142,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6058
6142
  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6059
6143
  _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6060
6144
  fi
6061
- output_verbose_link_cmd=echo
6145
+ output_verbose_link_cmd=func_echo_all
6062
6146
  else
6063
6147
  _LT_TAGVAR(ld_shlibs, $1)=no
6064
6148
  fi
@@ -6093,15 +6177,15 @@ if test "$_lt_caught_CXX_error" != yes; then
6093
6177
  case $host in
6094
6178
  osf3*)
6095
6179
  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6096
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6180
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6097
6181
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6098
6182
  ;;
6099
6183
  *)
6100
6184
  _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6101
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6185
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6102
6186
  _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6103
6187
  echo "-hidden">> $lib.exp~
6104
- $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6188
+ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
6105
6189
  $RM $lib.exp'
6106
6190
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6107
6191
  ;;
@@ -6117,17 +6201,17 @@ if test "$_lt_caught_CXX_error" != yes; then
6117
6201
  # explicitly linking system object files so we need to strip them
6118
6202
  # from the output so that they don't get included in the library
6119
6203
  # dependencies.
6120
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6204
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6121
6205
  ;;
6122
6206
  *)
6123
6207
  if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6124
6208
  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6125
6209
  case $host in
6126
6210
  osf3*)
6127
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6211
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6128
6212
  ;;
6129
6213
  *)
6130
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6214
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6131
6215
  ;;
6132
6216
  esac
6133
6217
 
@@ -6137,7 +6221,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6137
6221
  # Commands to make compiler produce verbose output that lists
6138
6222
  # what "hidden" libraries, object files and flags are used when
6139
6223
  # linking a shared library.
6140
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6224
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6141
6225
 
6142
6226
  else
6143
6227
  # FIXME: insert proper C++ library support
@@ -6173,7 +6257,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6173
6257
 
6174
6258
  solaris*)
6175
6259
  case $cc_basename in
6176
- CC*)
6260
+ CC* | sunCC*)
6177
6261
  # Sun C++ 4.2, 5.x and Centerline C++
6178
6262
  _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6179
6263
  _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
@@ -6194,7 +6278,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6194
6278
  esac
6195
6279
  _LT_TAGVAR(link_all_deplibs, $1)=yes
6196
6280
 
6197
- output_verbose_link_cmd='echo'
6281
+ output_verbose_link_cmd='func_echo_all'
6198
6282
 
6199
6283
  # Archives containing C++ object files must be created using
6200
6284
  # "CC -xar", where "CC" is the Sun C++ compiler. This is
@@ -6221,7 +6305,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6221
6305
  # Commands to make compiler produce verbose output that lists
6222
6306
  # what "hidden" libraries, object files and flags are used when
6223
6307
  # linking a shared library.
6224
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6308
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6225
6309
  else
6226
6310
  # g++ 2.7 appears to require `-G' NOT `-shared' on this
6227
6311
  # platform.
@@ -6232,7 +6316,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6232
6316
  # Commands to make compiler produce verbose output that lists
6233
6317
  # what "hidden" libraries, object files and flags are used when
6234
6318
  # linking a shared library.
6235
- output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6319
+ output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6236
6320
  fi
6237
6321
 
6238
6322
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
@@ -6286,6 +6370,10 @@ if test "$_lt_caught_CXX_error" != yes; then
6286
6370
  CC*)
6287
6371
  _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6288
6372
  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6373
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6374
+ '"$_LT_TAGVAR(old_archive_cmds, $1)"
6375
+ _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6376
+ '"$_LT_TAGVAR(reload_cmds, $1)"
6289
6377
  ;;
6290
6378
  *)
6291
6379
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
@@ -6532,7 +6620,7 @@ linux*)
6532
6620
 
6533
6621
  solaris*)
6534
6622
  case $cc_basename in
6535
- CC*)
6623
+ CC* | sunCC*)
6536
6624
  # The more standards-conforming stlport4 library is
6537
6625
  # incompatible with the Cstd library. Avoid specifying
6538
6626
  # it if it's in CXXFLAGS. Ignore libCrun as
@@ -6576,32 +6664,16 @@ _LT_TAGDECL([], [compiler_lib_search_path], [1],
6576
6664
  ])# _LT_SYS_HIDDEN_LIBDEPS
6577
6665
 
6578
6666
 
6579
- # _LT_PROG_F77
6580
- # ------------
6581
- # Since AC_PROG_F77 is broken, in that it returns the empty string
6582
- # if there is no fortran compiler, we have our own version here.
6583
- m4_defun([_LT_PROG_F77],
6584
- [
6585
- pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6586
- AC_PROG_F77
6587
- if test -z "$F77" || test "X$F77" = "Xno"; then
6588
- _lt_disable_F77=yes
6589
- fi
6590
- popdef([AC_MSG_ERROR])
6591
- ])# _LT_PROG_F77
6592
-
6593
- dnl aclocal-1.4 backwards compatibility:
6594
- dnl AC_DEFUN([_LT_PROG_F77], [])
6595
-
6596
-
6597
6667
  # _LT_LANG_F77_CONFIG([TAG])
6598
6668
  # --------------------------
6599
6669
  # Ensure that the configuration variables for a Fortran 77 compiler are
6600
6670
  # suitably defined. These variables are subsequently used by _LT_CONFIG
6601
6671
  # to write the compiler configuration to `libtool'.
6602
6672
  m4_defun([_LT_LANG_F77_CONFIG],
6603
- [AC_REQUIRE([_LT_PROG_F77])dnl
6604
- AC_LANG_PUSH(Fortran 77)
6673
+ [AC_LANG_PUSH(Fortran 77)
6674
+ if test -z "$F77" || test "X$F77" = "Xno"; then
6675
+ _lt_disable_F77=yes
6676
+ fi
6605
6677
 
6606
6678
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6607
6679
  _LT_TAGVAR(allow_undefined_flag, $1)=
@@ -6620,6 +6692,8 @@ _LT_TAGVAR(module_cmds, $1)=
6620
6692
  _LT_TAGVAR(module_expsym_cmds, $1)=
6621
6693
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
6622
6694
  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6695
+ _LT_TAGVAR(reload_flag, $1)=$reload_flag
6696
+ _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6623
6697
  _LT_TAGVAR(no_undefined_flag, $1)=
6624
6698
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
6625
6699
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -6719,32 +6793,17 @@ AC_LANG_POP
6719
6793
  ])# _LT_LANG_F77_CONFIG
6720
6794
 
6721
6795
 
6722
- # _LT_PROG_FC
6723
- # -----------
6724
- # Since AC_PROG_FC is broken, in that it returns the empty string
6725
- # if there is no fortran compiler, we have our own version here.
6726
- m4_defun([_LT_PROG_FC],
6727
- [
6728
- pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6729
- AC_PROG_FC
6730
- if test -z "$FC" || test "X$FC" = "Xno"; then
6731
- _lt_disable_FC=yes
6732
- fi
6733
- popdef([AC_MSG_ERROR])
6734
- ])# _LT_PROG_FC
6735
-
6736
- dnl aclocal-1.4 backwards compatibility:
6737
- dnl AC_DEFUN([_LT_PROG_FC], [])
6738
-
6739
-
6740
6796
  # _LT_LANG_FC_CONFIG([TAG])
6741
6797
  # -------------------------
6742
6798
  # Ensure that the configuration variables for a Fortran compiler are
6743
6799
  # suitably defined. These variables are subsequently used by _LT_CONFIG
6744
6800
  # to write the compiler configuration to `libtool'.
6745
6801
  m4_defun([_LT_LANG_FC_CONFIG],
6746
- [AC_REQUIRE([_LT_PROG_FC])dnl
6747
- AC_LANG_PUSH(Fortran)
6802
+ [AC_LANG_PUSH(Fortran)
6803
+
6804
+ if test -z "$FC" || test "X$FC" = "Xno"; then
6805
+ _lt_disable_FC=yes
6806
+ fi
6748
6807
 
6749
6808
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6750
6809
  _LT_TAGVAR(allow_undefined_flag, $1)=
@@ -6763,6 +6822,8 @@ _LT_TAGVAR(module_cmds, $1)=
6763
6822
  _LT_TAGVAR(module_expsym_cmds, $1)=
6764
6823
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
6765
6824
  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6825
+ _LT_TAGVAR(reload_flag, $1)=$reload_flag
6826
+ _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6766
6827
  _LT_TAGVAR(no_undefined_flag, $1)=
6767
6828
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
6768
6829
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -6908,6 +6969,8 @@ _LT_CC_BASENAME([$compiler])
6908
6969
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6909
6970
 
6910
6971
  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6972
+ _LT_TAGVAR(reload_flag, $1)=$reload_flag
6973
+ _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6911
6974
 
6912
6975
  ## CAVEAT EMPTOR:
6913
6976
  ## There is no encapsulation within the following macros, do not change
@@ -7275,7 +7338,7 @@ _LT_EOF
7275
7338
  func_dirname ()
7276
7339
  {
7277
7340
  # Extract subdirectory from the argument.
7278
- func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7341
+ func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
7279
7342
  if test "X$func_dirname_result" = "X${1}"; then
7280
7343
  func_dirname_result="${3}"
7281
7344
  else
@@ -7286,7 +7349,7 @@ func_dirname ()
7286
7349
  # func_basename file
7287
7350
  func_basename ()
7288
7351
  {
7289
- func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7352
+ func_basename_result=`$ECHO "${1}" | $SED "$basename"`
7290
7353
  }
7291
7354
 
7292
7355
  dnl func_dirname_and_basename
@@ -7302,10 +7365,8 @@ dnl so there is no need for it here.
7302
7365
  func_stripname ()
7303
7366
  {
7304
7367
  case ${2} in
7305
- .*) func_stripname_result=`$ECHO "X${3}" \
7306
- | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7307
- *) func_stripname_result=`$ECHO "X${3}" \
7308
- | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7368
+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7369
+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7309
7370
  esac
7310
7371
  }
7311
7372
 
@@ -7316,20 +7377,20 @@ my_sed_long_arg='1s/^-[[^=]]*=//'
7316
7377
  # func_opt_split
7317
7378
  func_opt_split ()
7318
7379
  {
7319
- func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7320
- func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7380
+ func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
7381
+ func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
7321
7382
  }
7322
7383
 
7323
7384
  # func_lo2o object
7324
7385
  func_lo2o ()
7325
7386
  {
7326
- func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7387
+ func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
7327
7388
  }
7328
7389
 
7329
7390
  # func_xform libobj-or-source
7330
7391
  func_xform ()
7331
7392
  {
7332
- func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7393
+ func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
7333
7394
  }
7334
7395
 
7335
7396
  # func_arith arithmetic-term...