nutcracker 0.2.4.mac9 → 0.2.4.1

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 +13 -46
  2. data/Rakefile +20 -15
  3. data/bin/nutcracker +1 -6
  4. data/ext/nutcracker/ChangeLog +0 -9
  5. data/ext/nutcracker/LICENSE +0 -0
  6. data/ext/nutcracker/Makefile.am +0 -0
  7. data/ext/nutcracker/Makefile.in +149 -66
  8. data/ext/nutcracker/NOTICE +0 -0
  9. data/ext/nutcracker/README.md +11 -13
  10. data/ext/nutcracker/aclocal.m4 +201 -112
  11. data/ext/nutcracker/conf/nutcracker.leaf.yml +0 -0
  12. data/ext/nutcracker/conf/nutcracker.root.yml +0 -0
  13. data/ext/nutcracker/conf/nutcracker.yml +0 -0
  14. data/ext/nutcracker/config.h.in +0 -15
  15. data/ext/nutcracker/config/config.guess +84 -23
  16. data/ext/nutcracker/config/config.sub +93 -23
  17. data/ext/nutcracker/config/depcomp +81 -35
  18. data/ext/nutcracker/config/install-sh +122 -109
  19. data/ext/nutcracker/config/ltmain.sh +721 -1053
  20. data/ext/nutcracker/config/missing +29 -20
  21. data/ext/nutcracker/configure +2311 -2113
  22. data/ext/nutcracker/configure.ac +3 -35
  23. data/ext/nutcracker/contrib/Makefile.am +0 -0
  24. data/ext/nutcracker/contrib/Makefile.in +107 -41
  25. data/ext/nutcracker/contrib/yaml-0.1.4.tar.gz +0 -0
  26. data/ext/nutcracker/extconf.rb +5 -3
  27. data/ext/nutcracker/m4/libtool.m4 +492 -553
  28. data/ext/nutcracker/m4/ltoptions.m4 +6 -7
  29. data/ext/nutcracker/m4/ltversion.m4 +5 -5
  30. data/ext/nutcracker/m4/lt~obsolete.m4 +3 -9
  31. data/ext/nutcracker/notes/c-styleguide.txt +0 -0
  32. data/ext/nutcracker/notes/debug.txt +0 -0
  33. data/ext/nutcracker/notes/memcache.txt +0 -0
  34. data/ext/nutcracker/notes/recommendation.md +2 -21
  35. data/ext/nutcracker/notes/redis.md +9 -9
  36. data/ext/nutcracker/notes/socket.txt +0 -0
  37. data/ext/nutcracker/scripts/nutcracker.init +0 -0
  38. data/ext/nutcracker/scripts/nutcracker.spec +0 -0
  39. data/ext/nutcracker/scripts/redis-check.py +0 -0
  40. data/ext/nutcracker/scripts/redis-check.sh +0 -9
  41. data/ext/nutcracker/src/Makefile.am +1 -1
  42. data/ext/nutcracker/src/Makefile.in +153 -74
  43. data/ext/nutcracker/src/hashkit/Makefile.am +0 -1
  44. data/ext/nutcracker/src/hashkit/Makefile.in +64 -39
  45. data/ext/nutcracker/src/hashkit/nc_crc32.c +0 -0
  46. data/ext/nutcracker/src/hashkit/nc_fnv.c +0 -0
  47. data/ext/nutcracker/src/hashkit/nc_hashkit.h +0 -2
  48. data/ext/nutcracker/src/hashkit/nc_hsieh.c +0 -0
  49. data/ext/nutcracker/src/hashkit/nc_jenkins.c +0 -0
  50. data/ext/nutcracker/src/hashkit/nc_ketama.c +0 -0
  51. data/ext/nutcracker/src/hashkit/nc_md5.c +0 -0
  52. data/ext/nutcracker/src/hashkit/nc_modula.c +6 -18
  53. data/ext/nutcracker/src/hashkit/nc_murmur.c +0 -0
  54. data/ext/nutcracker/src/hashkit/nc_one_at_a_time.c +0 -0
  55. data/ext/nutcracker/src/hashkit/nc_random.c +0 -0
  56. data/ext/nutcracker/src/nc.c +0 -0
  57. data/ext/nutcracker/src/nc_array.c +0 -0
  58. data/ext/nutcracker/src/nc_array.h +0 -0
  59. data/ext/nutcracker/src/nc_client.c +0 -0
  60. data/ext/nutcracker/src/nc_client.h +0 -0
  61. data/ext/nutcracker/src/nc_conf.c +35 -14
  62. data/ext/nutcracker/src/nc_conf.h +1 -1
  63. data/ext/nutcracker/src/nc_connection.c +0 -0
  64. data/ext/nutcracker/src/nc_connection.h +0 -0
  65. data/ext/nutcracker/src/nc_core.c +26 -29
  66. data/ext/nutcracker/src/nc_core.h +5 -13
  67. data/ext/nutcracker/src/{nc_epoll.c → nc_event.c} +30 -94
  68. data/ext/nutcracker/src/nc_event.h +13 -33
  69. data/ext/nutcracker/src/nc_log.c +0 -0
  70. data/ext/nutcracker/src/nc_log.h +0 -0
  71. data/ext/nutcracker/src/nc_mbuf.c +0 -0
  72. data/ext/nutcracker/src/nc_mbuf.h +0 -0
  73. data/ext/nutcracker/src/nc_message.c +0 -0
  74. data/ext/nutcracker/src/nc_message.h +0 -2
  75. data/ext/nutcracker/src/nc_proxy.c +8 -8
  76. data/ext/nutcracker/src/nc_proxy.h +0 -0
  77. data/ext/nutcracker/src/nc_queue.h +0 -0
  78. data/ext/nutcracker/src/nc_rbtree.c +0 -0
  79. data/ext/nutcracker/src/nc_rbtree.h +0 -0
  80. data/ext/nutcracker/src/nc_request.c +3 -3
  81. data/ext/nutcracker/src/nc_response.c +6 -4
  82. data/ext/nutcracker/src/nc_server.c +12 -14
  83. data/ext/nutcracker/src/nc_server.h +0 -0
  84. data/ext/nutcracker/src/nc_signal.c +0 -0
  85. data/ext/nutcracker/src/nc_signal.h +0 -0
  86. data/ext/nutcracker/src/nc_stats.c +21 -16
  87. data/ext/nutcracker/src/nc_stats.h +4 -3
  88. data/ext/nutcracker/src/nc_string.c +0 -0
  89. data/ext/nutcracker/src/nc_string.h +0 -0
  90. data/ext/nutcracker/src/nc_util.c +0 -16
  91. data/ext/nutcracker/src/nc_util.h +0 -1
  92. data/ext/nutcracker/src/proto/Makefile.am +0 -0
  93. data/ext/nutcracker/src/proto/Makefile.in +60 -32
  94. data/ext/nutcracker/src/proto/nc_memcache.c +0 -0
  95. data/ext/nutcracker/src/proto/nc_proto.h +0 -0
  96. data/ext/nutcracker/src/proto/nc_redis.c +4 -17
  97. data/lib/nutcracker.rb +2 -187
  98. data/lib/nutcracker/version.rb +1 -1
  99. metadata +10 -256
  100. data/ext/nutcracker/Makefile +0 -643
  101. data/ext/nutcracker/autom4te.cache/output.0 +0 -18664
  102. data/ext/nutcracker/autom4te.cache/output.1 +0 -18664
  103. data/ext/nutcracker/autom4te.cache/output.2 +0 -18664
  104. data/ext/nutcracker/autom4te.cache/requests +0 -494
  105. data/ext/nutcracker/autom4te.cache/traces.0 +0 -2415
  106. data/ext/nutcracker/autom4te.cache/traces.1 +0 -945
  107. data/ext/nutcracker/autom4te.cache/traces.2 +0 -2415
  108. data/ext/nutcracker/config.h +0 -332
  109. data/ext/nutcracker/config.log +0 -2684
  110. data/ext/nutcracker/config.status +0 -2317
  111. data/ext/nutcracker/contrib/Makefile +0 -494
  112. data/ext/nutcracker/contrib/yaml-0.1.4/Makefile +0 -736
  113. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.0 +0 -13102
  114. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.1 +0 -13085
  115. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/output.2 +0 -13085
  116. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/requests +0 -476
  117. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.0 +0 -2339
  118. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.1 +0 -545
  119. data/ext/nutcracker/contrib/yaml-0.1.4/autom4te.cache/traces.2 +0 -2339
  120. data/ext/nutcracker/contrib/yaml-0.1.4/config.h +0 -81
  121. data/ext/nutcracker/contrib/yaml-0.1.4/config.h.in~ +0 -80
  122. data/ext/nutcracker/contrib/yaml-0.1.4/config.log +0 -688
  123. data/ext/nutcracker/contrib/yaml-0.1.4/config.status +0 -2032
  124. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/annotated.html +0 -51
  125. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/bc_s.png +0 -0
  126. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/classes.html +0 -41
  127. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/closed.png +0 -0
  128. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/doxygen.css +0 -656
  129. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/doxygen.png +0 -0
  130. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/files.html +0 -40
  131. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions.html +0 -91
  132. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x62.html +0 -84
  133. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x63.html +0 -87
  134. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x64.html +0 -83
  135. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x65.html +0 -110
  136. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x66.html +0 -79
  137. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x68.html +0 -80
  138. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x69.html +0 -92
  139. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6b.html +0 -71
  140. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6c.html +0 -88
  141. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6d.html +0 -96
  142. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6e.html +0 -71
  143. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x6f.html +0 -80
  144. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x70.html +0 -100
  145. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x71.html +0 -71
  146. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x72.html +0 -87
  147. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x73.html +0 -163
  148. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x74.html +0 -115
  149. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x75.html +0 -71
  150. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x76.html +0 -80
  151. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_0x77.html +0 -77
  152. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars.html +0 -91
  153. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x62.html +0 -84
  154. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x63.html +0 -87
  155. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x64.html +0 -83
  156. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x65.html +0 -110
  157. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x66.html +0 -79
  158. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x68.html +0 -80
  159. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x69.html +0 -92
  160. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6b.html +0 -71
  161. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6c.html +0 -88
  162. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6d.html +0 -96
  163. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6e.html +0 -71
  164. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x6f.html +0 -80
  165. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x70.html +0 -100
  166. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x71.html +0 -71
  167. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x72.html +0 -87
  168. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x73.html +0 -163
  169. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x74.html +0 -115
  170. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x75.html +0 -71
  171. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x76.html +0 -80
  172. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/functions_vars_0x77.html +0 -77
  173. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals.html +0 -667
  174. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_defs.html +0 -81
  175. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_enum.html +0 -78
  176. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_eval.html +0 -373
  177. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_func.html +0 -196
  178. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/globals_type.html +0 -126
  179. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__basic.html +0 -320
  180. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__emitter.html +0 -819
  181. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__events.html +0 -664
  182. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__export.html +0 -60
  183. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__nodes.html +0 -795
  184. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__parser.html +0 -606
  185. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__styles.html +0 -222
  186. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__tokens.html +0 -246
  187. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/group__version.html +0 -106
  188. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/index.html +0 -31
  189. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/modules.html +0 -42
  190. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/nav_f.png +0 -0
  191. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/nav_h.png +0 -0
  192. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/open.png +0 -0
  193. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__alias__data__s.html +0 -108
  194. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__document__s.html +0 -235
  195. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__emitter__s.html +0 -1300
  196. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__event__s.html +0 -496
  197. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__mark__s.html +0 -108
  198. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__node__pair__s.html +0 -91
  199. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__node__s.html +0 -420
  200. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__parser__s.html +0 -1229
  201. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__simple__key__s.html +0 -97
  202. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__tag__directive__s.html +0 -91
  203. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__token__s.html +0 -413
  204. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/structyaml__version__directive__s.html +0 -91
  205. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_a.png +0 -0
  206. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_b.png +0 -0
  207. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_h.png +0 -0
  208. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tab_s.png +0 -0
  209. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/tabs.css +0 -59
  210. data/ext/nutcracker/contrib/yaml-0.1.4/doc/html/yaml_8h.html +0 -525
  211. data/ext/nutcracker/contrib/yaml-0.1.4/include/Makefile.am +0 -17
  212. data/ext/nutcracker/contrib/yaml-0.1.4/include/Makefile.in +0 -470
  213. data/ext/nutcracker/contrib/yaml-0.1.4/libtool +0 -8890
  214. data/ext/nutcracker/contrib/yaml-0.1.4/src/Makefile +0 -484
  215. data/ext/nutcracker/contrib/yaml-0.1.4/src/api.lo +0 -12
  216. data/ext/nutcracker/contrib/yaml-0.1.4/src/api.o +0 -0
  217. data/ext/nutcracker/contrib/yaml-0.1.4/src/dumper.lo +0 -12
  218. data/ext/nutcracker/contrib/yaml-0.1.4/src/dumper.o +0 -0
  219. data/ext/nutcracker/contrib/yaml-0.1.4/src/emitter.lo +0 -12
  220. data/ext/nutcracker/contrib/yaml-0.1.4/src/emitter.o +0 -0
  221. data/ext/nutcracker/contrib/yaml-0.1.4/src/libyaml.la +0 -41
  222. data/ext/nutcracker/contrib/yaml-0.1.4/src/loader.lo +0 -12
  223. data/ext/nutcracker/contrib/yaml-0.1.4/src/loader.o +0 -0
  224. data/ext/nutcracker/contrib/yaml-0.1.4/src/parser.lo +0 -12
  225. data/ext/nutcracker/contrib/yaml-0.1.4/src/parser.o +0 -0
  226. data/ext/nutcracker/contrib/yaml-0.1.4/src/reader.lo +0 -12
  227. data/ext/nutcracker/contrib/yaml-0.1.4/src/reader.o +0 -0
  228. data/ext/nutcracker/contrib/yaml-0.1.4/src/scanner.lo +0 -12
  229. data/ext/nutcracker/contrib/yaml-0.1.4/src/scanner.o +0 -0
  230. data/ext/nutcracker/contrib/yaml-0.1.4/src/writer.lo +0 -12
  231. data/ext/nutcracker/contrib/yaml-0.1.4/src/writer.o +0 -0
  232. data/ext/nutcracker/contrib/yaml-0.1.4/stamp-h1 +0 -1
  233. data/ext/nutcracker/contrib/yaml-0.1.4/tests/Makefile +0 -675
  234. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor +0 -0
  235. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor-alt +0 -0
  236. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor-alt.o +0 -0
  237. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor.o +0 -0
  238. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter +0 -0
  239. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter-alt +0 -0
  240. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter-alt.o +0 -0
  241. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter.o +0 -0
  242. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-dumper +0 -0
  243. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-dumper.o +0 -0
  244. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-emitter +0 -0
  245. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-emitter.o +0 -0
  246. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-loader +0 -0
  247. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-loader.o +0 -0
  248. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-parser +0 -0
  249. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-parser.o +0 -0
  250. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-scanner +0 -0
  251. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-scanner.o +0 -0
  252. data/ext/nutcracker/contrib/yaml-0.1.4/yaml-0.1.pc +0 -10
  253. data/ext/nutcracker/contrib/yaml-0.1.4/yaml-0.1.pc.in +0 -10
  254. data/ext/nutcracker/libtool +0 -9403
  255. data/ext/nutcracker/src/Makefile +0 -647
  256. data/ext/nutcracker/src/hashkit/Makefile +0 -476
  257. data/ext/nutcracker/src/hashkit/libhashkit.a +0 -0
  258. data/ext/nutcracker/src/hashkit/nc_crc16.c +0 -66
  259. data/ext/nutcracker/src/hashkit/nc_crc16.o +0 -0
  260. data/ext/nutcracker/src/hashkit/nc_crc32.o +0 -0
  261. data/ext/nutcracker/src/hashkit/nc_fnv.o +0 -0
  262. data/ext/nutcracker/src/hashkit/nc_hsieh.o +0 -0
  263. data/ext/nutcracker/src/hashkit/nc_jenkins.o +0 -0
  264. data/ext/nutcracker/src/hashkit/nc_ketama.o +0 -0
  265. data/ext/nutcracker/src/hashkit/nc_md5.o +0 -0
  266. data/ext/nutcracker/src/hashkit/nc_modula.o +0 -0
  267. data/ext/nutcracker/src/hashkit/nc_murmur.o +0 -0
  268. data/ext/nutcracker/src/hashkit/nc_one_at_a_time.o +0 -0
  269. data/ext/nutcracker/src/hashkit/nc_random.o +0 -0
  270. data/ext/nutcracker/src/nc.o +0 -0
  271. data/ext/nutcracker/src/nc_array.o +0 -0
  272. data/ext/nutcracker/src/nc_client.o +0 -0
  273. data/ext/nutcracker/src/nc_conf.o +0 -0
  274. data/ext/nutcracker/src/nc_connection.o +0 -0
  275. data/ext/nutcracker/src/nc_core.o +0 -0
  276. data/ext/nutcracker/src/nc_epoll.o +0 -0
  277. data/ext/nutcracker/src/nc_kqueue.c +0 -296
  278. data/ext/nutcracker/src/nc_kqueue.o +0 -0
  279. data/ext/nutcracker/src/nc_log.o +0 -0
  280. data/ext/nutcracker/src/nc_mbuf.o +0 -0
  281. data/ext/nutcracker/src/nc_message.o +0 -0
  282. data/ext/nutcracker/src/nc_proxy.o +0 -0
  283. data/ext/nutcracker/src/nc_rbtree.o +0 -0
  284. data/ext/nutcracker/src/nc_request.o +0 -0
  285. data/ext/nutcracker/src/nc_response.o +0 -0
  286. data/ext/nutcracker/src/nc_server.o +0 -0
  287. data/ext/nutcracker/src/nc_signal.o +0 -0
  288. data/ext/nutcracker/src/nc_stats.o +0 -0
  289. data/ext/nutcracker/src/nc_string.o +0 -0
  290. data/ext/nutcracker/src/nc_util.o +0 -0
  291. data/ext/nutcracker/src/nutcracker +0 -0
  292. data/ext/nutcracker/src/proto/Makefile +0 -454
  293. data/ext/nutcracker/src/proto/libproto.a +0 -0
  294. data/ext/nutcracker/src/proto/nc_memcache.o +0 -0
  295. data/ext/nutcracker/src/proto/nc_redis.o +0 -0
  296. data/ext/nutcracker/stamp-h1 +0 -1
@@ -1,7 +1,7 @@
1
1
  # Define the package version numbers and the bug reporting address
2
2
  m4_define([NC_MAJOR], 0)
3
3
  m4_define([NC_MINOR], 2)
4
- m4_define([NC_PATCH], 4)
4
+ m4_define([NC_PATCH], 3)
5
5
  m4_define([NC_BUGS], [manj@twitter.com])
6
6
 
7
7
  # Initialize autoconf
@@ -67,10 +67,7 @@ AC_CHECK_HEADERS([fcntl.h float.h limits.h stddef.h stdlib.h string.h unistd.h])
67
67
  AC_CHECK_HEADERS([inttypes.h stdint.h])
68
68
  AC_CHECK_HEADERS([sys/ioctl.h sys/time.h sys/uio.h])
69
69
  AC_CHECK_HEADERS([sys/socket.h sys/un.h netinet/in.h arpa/inet.h netdb.h])
70
- AC_CHECK_HEADERS([execinfo.h],
71
- [AC_DEFINE(HAVE_BACKTRACE, [1], [Define to 1 if backtrace is supported])], [])
72
- AC_CHECK_HEADERS([sys/epoll.h], [], [])
73
- AC_CHECK_HEADERS([sys/event.h], [], [])
70
+ AC_CHECK_HEADERS([sys/epoll.h], [], [AC_MSG_ERROR([required sys/epoll.h header file is missing])])
74
71
 
75
72
  # Checks for libraries
76
73
  AC_CHECK_LIB([m], [pow])
@@ -103,36 +100,7 @@ main(int argc, char **argv)
103
100
  exit(0);
104
101
  }
105
102
  ], [ac_cv_epoll_works=yes], [ac_cv_epoll_works=no]))
106
- AS_IF([test "x$ac_cv_epoll_works" = "xyes"],
107
- [AC_DEFINE([HAVE_EPOLL], [1], [Define to 1 if epoll is supported])], [])
108
-
109
- AC_CACHE_CHECK([if kqueue works], [ac_cv_kqueue_works],
110
- AC_TRY_RUN([
111
- #include <stdio.h>
112
- #include <stdlib.h>
113
- #include <sys/types.h>
114
- #include <sys/event.h>
115
- #include <sys/time.h>
116
- int
117
- main(int argc, char **argv)
118
- {
119
- int fd;
120
-
121
- fd = kqueue();
122
- if (fd < 0) {
123
- perror("kqueue:");
124
- exit(1);
125
- }
126
- exit(0);
127
- }
128
- ], [ac_cv_kqueue_works=yes], [ac_cv_kqueue_works=no]))
129
- AS_IF([test "x$ac_cv_kqueue_works" = "xyes"],
130
- [AC_DEFINE([HAVE_KQUEUE], [1], [Define to 1 if kqueue is supported])], [])
131
-
132
- AS_IF([test "x$ac_cv_epoll_works" = "xno" &&
133
- test "x$ac_cv_kqueue_works" = "xno"],
134
- [AC_MSG_ERROR([either epoll or kqueue support is required])], [])
135
-
103
+ AS_IF([test "x$ac_cv_epoll_works" = "xyes"], [], [AC_MSG_FAILURE([Linux epoll(7) API is missing])])
136
104
 
137
105
  # Package options
138
106
  AC_MSG_CHECKING([whether to enable debug logs and asserts])
File without changes
@@ -1,8 +1,9 @@
1
- # Makefile.in generated by automake 1.10 from Makefile.am.
1
+ # Makefile.in generated by automake 1.11 from Makefile.am.
2
2
  # @configure_input@
3
3
 
4
4
  # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
- # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5
+ # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6
+ # Inc.
6
7
  # This Makefile.in is free software; the Free Software Foundation
7
8
  # gives unlimited permission to copy and/or distribute it,
8
9
  # with or without modifications, as long as this notice is preserved.
@@ -15,8 +16,9 @@
15
16
  @SET_MAKE@
16
17
  VPATH = @srcdir@
17
18
  pkgdatadir = $(datadir)/@PACKAGE@
18
- pkglibdir = $(libdir)/@PACKAGE@
19
19
  pkgincludedir = $(includedir)/@PACKAGE@
20
+ pkglibdir = $(libdir)/@PACKAGE@
21
+ pkglibexecdir = $(libexecdir)/@PACKAGE@
20
22
  am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21
23
  install_sh_DATA = $(install_sh) -c -m 644
22
24
  install_sh_PROGRAM = $(install_sh) -c
@@ -43,6 +45,7 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43
45
  mkinstalldirs = $(install_sh) -d
44
46
  CONFIG_HEADER = $(top_builddir)/config.h
45
47
  CONFIG_CLEAN_FILES =
48
+ CONFIG_CLEAN_VPATH_FILES =
46
49
  SOURCES =
47
50
  DIST_SOURCES =
48
51
  RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
@@ -54,10 +57,38 @@ RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
54
57
  ps-recursive uninstall-recursive
55
58
  RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
56
59
  distclean-recursive maintainer-clean-recursive
60
+ AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
61
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
62
+ distdir
57
63
  ETAGS = etags
58
64
  CTAGS = ctags
59
65
  DIST_SUBDIRS = $(SUBDIRS)
60
66
  DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
67
+ am__relativize = \
68
+ dir0=`pwd`; \
69
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
70
+ sed_rest='s,^[^/]*/*,,'; \
71
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
72
+ sed_butlast='s,/*[^/]*$$,,'; \
73
+ while test -n "$$dir1"; do \
74
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
75
+ if test "$$first" != "."; then \
76
+ if test "$$first" = ".."; then \
77
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
78
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
79
+ else \
80
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
81
+ if test "$$first2" = "$$first"; then \
82
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
83
+ else \
84
+ dir2="../$$dir2"; \
85
+ fi; \
86
+ dir0="$$dir0"/"$$first"; \
87
+ fi; \
88
+ fi; \
89
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
90
+ done; \
91
+ reldir="$$dir2"
61
92
  ACLOCAL = @ACLOCAL@
62
93
  AMTAR = @AMTAR@
63
94
  AR = @AR@
@@ -158,6 +189,7 @@ libdir = @libdir@
158
189
  libexecdir = @libexecdir@
159
190
  localedir = @localedir@
160
191
  localstatedir = @localstatedir@
192
+ lt_ECHO = @lt_ECHO@
161
193
  mandir = @mandir@
162
194
  mkdir_p = @mkdir_p@
163
195
  oldincludedir = @oldincludedir@
@@ -183,14 +215,14 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
183
215
  @for dep in $?; do \
184
216
  case '$(am__configure_deps)' in \
185
217
  *$$dep*) \
186
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
187
- && exit 0; \
218
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
219
+ && { if test -f $@; then exit 0; else break; fi; }; \
188
220
  exit 1;; \
189
221
  esac; \
190
222
  done; \
191
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign contrib/Makefile'; \
192
- cd $(top_srcdir) && \
193
- $(AUTOMAKE) --foreign contrib/Makefile
223
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign contrib/Makefile'; \
224
+ $(am__cd) $(top_srcdir) && \
225
+ $(AUTOMAKE) --foreign contrib/Makefile
194
226
  .PRECIOUS: Makefile
195
227
  Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
196
228
  @case '$?' in \
@@ -208,6 +240,7 @@ $(top_srcdir)/configure: $(am__configure_deps)
208
240
  cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
209
241
  $(ACLOCAL_M4): $(am__aclocal_m4_deps)
210
242
  cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
243
+ $(am__aclocal_m4_deps):
211
244
 
212
245
  mostlyclean-libtool:
213
246
  -rm -f *.lo
@@ -239,7 +272,7 @@ $(RECURSIVE_TARGETS):
239
272
  else \
240
273
  local_target="$$target"; \
241
274
  fi; \
242
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
275
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
243
276
  || eval $$failcom; \
244
277
  done; \
245
278
  if test "$$dot_seen" = "no"; then \
@@ -273,16 +306,16 @@ $(RECURSIVE_CLEAN_TARGETS):
273
306
  else \
274
307
  local_target="$$target"; \
275
308
  fi; \
276
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
309
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
277
310
  || eval $$failcom; \
278
311
  done && test -z "$$fail"
279
312
  tags-recursive:
280
313
  list='$(SUBDIRS)'; for subdir in $$list; do \
281
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
314
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
282
315
  done
283
316
  ctags-recursive:
284
317
  list='$(SUBDIRS)'; for subdir in $$list; do \
285
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
318
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
286
319
  done
287
320
 
288
321
  ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
@@ -290,14 +323,14 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
290
323
  unique=`for i in $$list; do \
291
324
  if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
292
325
  done | \
293
- $(AWK) ' { files[$$0] = 1; } \
294
- END { for (i in files) print i; }'`; \
326
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
327
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
295
328
  mkid -fID $$unique
296
329
  tags: TAGS
297
330
 
298
331
  TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
299
332
  $(TAGS_FILES) $(LISP)
300
- tags=; \
333
+ set x; \
301
334
  here=`pwd`; \
302
335
  if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
303
336
  include_option=--etags-include; \
@@ -309,39 +342,43 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
309
342
  list='$(SUBDIRS)'; for subdir in $$list; do \
310
343
  if test "$$subdir" = .; then :; else \
311
344
  test ! -f $$subdir/TAGS || \
312
- tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
345
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
313
346
  fi; \
314
347
  done; \
315
348
  list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
316
349
  unique=`for i in $$list; do \
317
350
  if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
318
351
  done | \
319
- $(AWK) ' { files[$$0] = 1; } \
320
- END { for (i in files) print i; }'`; \
321
- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
353
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
354
+ shift; \
355
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
322
356
  test -n "$$unique" || unique=$$empty_fix; \
323
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
324
- $$tags $$unique; \
357
+ if test $$# -gt 0; then \
358
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
359
+ "$$@" $$unique; \
360
+ else \
361
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
362
+ $$unique; \
363
+ fi; \
325
364
  fi
326
365
  ctags: CTAGS
327
366
  CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
328
367
  $(TAGS_FILES) $(LISP)
329
- tags=; \
330
- here=`pwd`; \
331
368
  list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
332
369
  unique=`for i in $$list; do \
333
370
  if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
334
371
  done | \
335
- $(AWK) ' { files[$$0] = 1; } \
336
- END { for (i in files) print i; }'`; \
337
- test -z "$(CTAGS_ARGS)$$tags$$unique" \
372
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
373
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
374
+ test -z "$(CTAGS_ARGS)$$unique" \
338
375
  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
339
- $$tags $$unique
376
+ $$unique
340
377
 
341
378
  GTAGS:
342
379
  here=`$(am__cd) $(top_builddir) && pwd` \
343
- && cd $(top_srcdir) \
344
- && gtags -i $(GTAGS_ARGS) $$here
380
+ && $(am__cd) $(top_srcdir) \
381
+ && gtags -i $(GTAGS_ARGS) "$$here"
345
382
 
346
383
  distclean-tags:
347
384
  -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
@@ -362,29 +399,44 @@ distdir: $(DISTFILES)
362
399
  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
363
400
  if test -d $$d/$$file; then \
364
401
  dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
402
+ if test -d "$(distdir)/$$file"; then \
403
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
404
+ fi; \
365
405
  if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
366
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
406
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
407
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
367
408
  fi; \
368
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
409
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
369
410
  else \
370
- test -f $(distdir)/$$file \
371
- || cp -p $$d/$$file $(distdir)/$$file \
411
+ test -f "$(distdir)/$$file" \
412
+ || cp -p $$d/$$file "$(distdir)/$$file" \
372
413
  || exit 1; \
373
414
  fi; \
374
415
  done
375
- list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
416
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
376
417
  if test "$$subdir" = .; then :; else \
377
418
  test -d "$(distdir)/$$subdir" \
378
419
  || $(MKDIR_P) "$(distdir)/$$subdir" \
379
420
  || exit 1; \
380
- distdir=`$(am__cd) $(distdir) && pwd`; \
381
- top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
382
- (cd $$subdir && \
421
+ fi; \
422
+ done
423
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
424
+ if test "$$subdir" = .; then :; else \
425
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
426
+ $(am__relativize); \
427
+ new_distdir=$$reldir; \
428
+ dir1=$$subdir; dir2="$(top_distdir)"; \
429
+ $(am__relativize); \
430
+ new_top_distdir=$$reldir; \
431
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
432
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
433
+ ($(am__cd) $$subdir && \
383
434
  $(MAKE) $(AM_MAKEFLAGS) \
384
- top_distdir="$$top_distdir" \
385
- distdir="$$distdir/$$subdir" \
435
+ top_distdir="$$new_top_distdir" \
436
+ distdir="$$new_distdir" \
386
437
  am__remove_distdir=: \
387
438
  am__skip_length_check=: \
439
+ am__skip_mode_fix=: \
388
440
  distdir) \
389
441
  || exit 1; \
390
442
  fi; \
@@ -414,6 +466,7 @@ clean-generic:
414
466
 
415
467
  distclean-generic:
416
468
  -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
469
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
417
470
 
418
471
  maintainer-clean-generic:
419
472
  @echo "This command is intended for maintainers to use"
@@ -432,6 +485,8 @@ dvi-am:
432
485
 
433
486
  html: html-recursive
434
487
 
488
+ html-am:
489
+
435
490
  info: info-recursive
436
491
 
437
492
  info-am:
@@ -440,18 +495,28 @@ install-data-am:
440
495
 
441
496
  install-dvi: install-dvi-recursive
442
497
 
498
+ install-dvi-am:
499
+
443
500
  install-exec-am:
444
501
 
445
502
  install-html: install-html-recursive
446
503
 
504
+ install-html-am:
505
+
447
506
  install-info: install-info-recursive
448
507
 
508
+ install-info-am:
509
+
449
510
  install-man:
450
511
 
451
512
  install-pdf: install-pdf-recursive
452
513
 
514
+ install-pdf-am:
515
+
453
516
  install-ps: install-ps-recursive
454
517
 
518
+ install-ps-am:
519
+
455
520
  installcheck-am:
456
521
 
457
522
  maintainer-clean: maintainer-clean-recursive
@@ -472,8 +537,8 @@ ps-am:
472
537
 
473
538
  uninstall-am:
474
539
 
475
- .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
476
- install-strip
540
+ .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
541
+ install-am install-strip tags-recursive
477
542
 
478
543
  .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
479
544
  all all-am check check-am clean clean-generic clean-libtool \
@@ -489,6 +554,7 @@ uninstall-am:
489
554
  mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
490
555
  uninstall uninstall-am
491
556
 
557
+
492
558
  # Tell versions [3.59,3.63) of GNU make to not export all variables.
493
559
  # Otherwise a system limit (for SysV at least) may be exceeded.
494
560
  .NOEXPORT:
File without changes
@@ -1,3 +1,5 @@
1
- system "./configure --prefix=#{File.expand_path('..',__FILE__)}"
2
- system 'make'
3
-
1
+
2
+ raise "no support for #{RUBY_PLATFORM}" if RUBY_PLATFORM =~ /darwin|mswin|mingw/
3
+ system './configure'
4
+ system 'make'
5
+
@@ -1,8 +1,7 @@
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, 2009, 2010 Free Software Foundation,
5
- # Inc.
4
+ # 2006, 2007, 2008 Free Software Foundation, Inc.
6
5
  # Written by Gordon Matzigkeit, 1996
7
6
  #
8
7
  # This file is free software; the Free Software Foundation gives
@@ -11,8 +10,7 @@
11
10
 
12
11
  m4_define([_LT_COPYING], [dnl
13
12
  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14
- # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15
- # Inc.
13
+ # 2006, 2007, 2008 Free Software Foundation, Inc.
16
14
  # Written by Gordon Matzigkeit, 1996
17
15
  #
18
16
  # This file is part of GNU Libtool.
@@ -39,7 +37,7 @@ m4_define([_LT_COPYING], [dnl
39
37
  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
40
38
  ])
41
39
 
42
- # serial 57 LT_INIT
40
+ # serial 56 LT_INIT
43
41
 
44
42
 
45
43
  # LT_PREREQ(VERSION)
@@ -68,7 +66,6 @@ esac
68
66
  # ------------------
69
67
  AC_DEFUN([LT_INIT],
70
68
  [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
71
- AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
72
69
  AC_BEFORE([$0], [LT_LANG])dnl
73
70
  AC_BEFORE([$0], [LT_OUTPUT])dnl
74
71
  AC_BEFORE([$0], [LTDL_INIT])dnl
@@ -85,8 +82,6 @@ AC_REQUIRE([LTVERSION_VERSION])dnl
85
82
  AC_REQUIRE([LTOBSOLETE_VERSION])dnl
86
83
  m4_require([_LT_PROG_LTMAIN])dnl
87
84
 
88
- _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
89
-
90
85
  dnl Parse OPTIONS
91
86
  _LT_SET_OPTIONS([$0], [$1])
92
87
 
@@ -123,7 +118,7 @@ m4_defun([_LT_CC_BASENAME],
123
118
  *) break;;
124
119
  esac
125
120
  done
126
- cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
121
+ cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
127
122
  ])
128
123
 
129
124
 
@@ -143,9 +138,6 @@ m4_defun([_LT_FILEUTILS_DEFAULTS],
143
138
  m4_defun([_LT_SETUP],
144
139
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
145
140
  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
146
- AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
147
- AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
148
-
149
141
  _LT_DECL([], [host_alias], [0], [The host system])dnl
150
142
  _LT_DECL([], [host], [0])dnl
151
143
  _LT_DECL([], [host_os], [0])dnl
@@ -187,6 +179,7 @@ fi
187
179
  _LT_CHECK_OBJDIR
188
180
 
189
181
  m4_require([_LT_TAG_COMPILER])dnl
182
+ _LT_PROG_ECHO_BACKSLASH
190
183
 
191
184
  case $host_os in
192
185
  aix3*)
@@ -200,6 +193,23 @@ aix3*)
200
193
  ;;
201
194
  esac
202
195
 
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
+
203
213
  # Global variables:
204
214
  ofile=libtool
205
215
  can_build_shared=yes
@@ -240,28 +250,6 @@ _LT_CONFIG_COMMANDS
240
250
  ])# _LT_SETUP
241
251
 
242
252
 
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
-
265
253
  # _LT_PROG_LTMAIN
266
254
  # ---------------
267
255
  # Note that this code is called both from `configure', and `config.status'
@@ -420,7 +408,7 @@ m4_define([_lt_decl_all_varnames],
420
408
  # declaration there will have the same value as in `configure'. VARNAME
421
409
  # must have a single quote delimited value for this to work.
422
410
  m4_define([_LT_CONFIG_STATUS_DECLARE],
423
- [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
411
+ [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
424
412
 
425
413
 
426
414
  # _LT_CONFIG_STATUS_DECLARATIONS
@@ -430,7 +418,7 @@ m4_define([_LT_CONFIG_STATUS_DECLARE],
430
418
  # embedded single quotes properly. In configure, this macro expands
431
419
  # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
432
420
  #
433
- # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
421
+ # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
434
422
  m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
435
423
  [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
436
424
  [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
@@ -529,20 +517,12 @@ LTCC='$LTCC'
529
517
  LTCFLAGS='$LTCFLAGS'
530
518
  compiler='$compiler_DEFAULT'
531
519
 
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
-
540
520
  # Quote evaled strings.
541
521
  for var in lt_decl_all_varnames([[ \
542
522
  ]], lt_decl_quote_varnames); do
543
- case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
523
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
544
524
  *[[\\\\\\\`\\"\\\$]]*)
545
- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
525
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
546
526
  ;;
547
527
  *)
548
528
  eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
@@ -553,9 +533,9 @@ done
553
533
  # Double-quote double-evaled strings.
554
534
  for var in lt_decl_all_varnames([[ \
555
535
  ]], lt_decl_dquote_varnames); do
556
- case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
536
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
557
537
  *[[\\\\\\\`\\"\\\$]]*)
558
- eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
538
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
559
539
  ;;
560
540
  *)
561
541
  eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
@@ -563,38 +543,16 @@ for var in lt_decl_all_varnames([[ \
563
543
  esac
564
544
  done
565
545
 
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
+
566
553
  _LT_OUTPUT_LIBTOOL_INIT
567
554
  ])
568
555
 
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
598
556
 
599
557
  # LT_OUTPUT
600
558
  # ---------
@@ -604,11 +562,20 @@ m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
604
562
  AC_DEFUN([LT_OUTPUT],
605
563
  [: ${CONFIG_LT=./config.lt}
606
564
  AC_MSG_NOTICE([creating $CONFIG_LT])
607
- _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
608
- [# Run this file to recreate a libtool stub with the current configuration.])
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.
609
569
 
610
- cat >>"$CONFIG_LT" <<\_LTEOF
611
570
  lt_cl_silent=false
571
+ SHELL=\${CONFIG_SHELL-$SHELL}
572
+ _LTEOF
573
+
574
+ cat >>"$CONFIG_LT" <<\_LTEOF
575
+ AS_SHELL_SANITIZE
576
+ _AS_PREPARE
577
+
578
+ exec AS_MESSAGE_FD>&1
612
579
  exec AS_MESSAGE_LOG_FD>>config.log
613
580
  {
614
581
  echo
@@ -634,7 +601,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
634
601
  m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
635
602
  configured by $[0], generated by m4_PACKAGE_STRING.
636
603
 
637
- Copyright (C) 2010 Free Software Foundation, Inc.
604
+ Copyright (C) 2008 Free Software Foundation, Inc.
638
605
  This config.lt script is free software; the Free Software Foundation
639
606
  gives unlimited permision to copy, distribute and modify it."
640
607
 
@@ -679,13 +646,15 @@ chmod +x "$CONFIG_LT"
679
646
  # appending to config.log, which fails on DOS, as config.log is still kept
680
647
  # open by configure. Here we exec the FD to /dev/null, effectively closing
681
648
  # config.log, so it can be properly (re)opened and appended to by config.lt.
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)
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
689
658
  ])# LT_OUTPUT
690
659
 
691
660
 
@@ -707,8 +676,8 @@ _LT_CONFIG_SAVE_COMMANDS([
707
676
  fi
708
677
 
709
678
  cfgfile="${ofile}T"
710
- trap "$RM -f \"$cfgfile\"; exit 1" 1 2 15
711
- $RM -f "$cfgfile"
679
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
680
+ $RM "$cfgfile"
712
681
 
713
682
  cat <<_LT_EOF >> "$cfgfile"
714
683
  #! $SHELL
@@ -862,13 +831,11 @@ AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
862
831
  AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
863
832
  AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
864
833
  AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
865
- AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
866
834
  dnl aclocal-1.4 backwards compatibility:
867
835
  dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
868
836
  dnl AC_DEFUN([AC_LIBTOOL_F77], [])
869
837
  dnl AC_DEFUN([AC_LIBTOOL_FC], [])
870
838
  dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
871
- dnl AC_DEFUN([AC_LIBTOOL_RC], [])
872
839
 
873
840
 
874
841
  # _LT_TAG_COMPILER
@@ -902,7 +869,7 @@ ac_outfile=conftest.$ac_objext
902
869
  echo "$lt_simple_compile_test_code" >conftest.$ac_ext
903
870
  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
904
871
  _lt_compiler_boilerplate=`cat conftest.err`
905
- $RM -r conftest*
872
+ $RM conftest*
906
873
  ])# _LT_COMPILER_BOILERPLATE
907
874
 
908
875
 
@@ -973,31 +940,6 @@ m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
973
940
  [lt_cv_ld_exported_symbols_list=no])
974
941
  LDFLAGS="$save_LDFLAGS"
975
942
  ])
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
- ])
1001
943
  case $host_os in
1002
944
  rhapsody* | darwin1.[[012]])
1003
945
  _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
@@ -1025,7 +967,7 @@ _LT_EOF
1025
967
  else
1026
968
  _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1027
969
  fi
1028
- if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
970
+ if test "$DSYMUTIL" != ":"; then
1029
971
  _lt_dsymutil='~$DSYMUTIL $lib || :'
1030
972
  else
1031
973
  _lt_dsymutil=
@@ -1045,11 +987,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
1045
987
  _LT_TAGVAR(hardcode_direct, $1)=no
1046
988
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1047
989
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
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
990
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1053
991
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1054
992
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1055
993
  case $cc_basename in
@@ -1057,7 +995,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
1057
995
  *) _lt_dar_can_shared=$GCC ;;
1058
996
  esac
1059
997
  if test "$_lt_dar_can_shared" = "yes"; then
1060
- output_verbose_link_cmd=func_echo_all
998
+ output_verbose_link_cmd=echo
1061
999
  _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}"
1062
1000
  _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1063
1001
  _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}"
@@ -1103,65 +1041,170 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1103
1041
  # _LT_SHELL_INIT(ARG)
1104
1042
  # -------------------
1105
1043
  m4_define([_LT_SHELL_INIT],
1106
- [m4_divert_text([M4SH-INIT], [$1
1107
- ])])# _LT_SHELL_INIT
1108
-
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
1109
1050
 
1110
1051
 
1111
1052
  # _LT_PROG_ECHO_BACKSLASH
1112
1053
  # -----------------------
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).
1054
+ # Add some code to the start of the generated configure script which
1055
+ # will find an echo command which doesn't interpret backslashes.
1117
1056
  m4_defun([_LT_PROG_ECHO_BACKSLASH],
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'
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
+ :
1129
1078
  else
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'
1079
+ # Restart under the correct shell.
1080
+ exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1138
1081
  fi
1139
1082
 
1140
- # func_echo_all arg...
1141
- # Invoke $ECHO with all args, space-separated.
1142
- func_echo_all ()
1143
- {
1144
- $ECHO "$*"
1145
- }
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
1090
+ fi
1146
1091
 
1147
- case "$ECHO" in
1148
- printf*) AC_MSG_RESULT([printf]) ;;
1149
- print*) AC_MSG_RESULT([print -r]) ;;
1150
- *) AC_MSG_RESULT([cat]) ;;
1151
- esac
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
1181
+
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
1152
1195
 
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" )])])
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
1162
1202
 
1203
+ AC_SUBST(lt_ECHO)
1204
+ ])
1163
1205
  _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1164
- _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1206
+ _LT_DECL([], [ECHO], [1],
1207
+ [An echo program that does not interpret backslashes])
1165
1208
  ])# _LT_PROG_ECHO_BACKSLASH
1166
1209
 
1167
1210
 
@@ -1193,7 +1236,7 @@ ia64-*-hpux*)
1193
1236
  ;;
1194
1237
  *-*-irix6*)
1195
1238
  # Find out which ABI we are using.
1196
- echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1239
+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1197
1240
  if AC_TRY_EVAL(ac_compile); then
1198
1241
  if test "$lt_cv_prog_gnu_ld" = yes; then
1199
1242
  case `/usr/bin/file conftest.$ac_objext` in
@@ -1345,19 +1388,10 @@ if test -n "$RANLIB"; then
1345
1388
  esac
1346
1389
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1347
1390
  fi
1348
-
1349
- case $host_os in
1350
- darwin*)
1351
- lock_old_archive_extraction=yes ;;
1352
- *)
1353
- lock_old_archive_extraction=no ;;
1354
- esac
1355
1391
  _LT_DECL([], [old_postinstall_cmds], [2])
1356
1392
  _LT_DECL([], [old_postuninstall_cmds], [2])
1357
1393
  _LT_TAGDECL([], [old_archive_cmds], [2],
1358
1394
  [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])
1361
1395
  ])# _LT_CMD_OLD_ARCHIVE
1362
1396
 
1363
1397
 
@@ -1382,21 +1416,21 @@ AC_CACHE_CHECK([$1], [$2],
1382
1416
  -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1383
1417
  -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1384
1418
  -e 's:$: $lt_compiler_flag:'`
1385
- (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1419
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1386
1420
  (eval "$lt_compile" 2>conftest.err)
1387
1421
  ac_status=$?
1388
1422
  cat conftest.err >&AS_MESSAGE_LOG_FD
1389
- echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1423
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1390
1424
  if (exit $ac_status) && test -s "$ac_outfile"; then
1391
1425
  # The compiler can only warn and ignore the option if not recognized
1392
1426
  # So say no if there are warnings other than the usual output.
1393
- $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1427
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1394
1428
  $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1395
1429
  if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1396
1430
  $2=yes
1397
1431
  fi
1398
1432
  fi
1399
- $RM -r conftest*
1433
+ $RM conftest*
1400
1434
  ])
1401
1435
 
1402
1436
  if test x"[$]$2" = xyes; then
@@ -1430,7 +1464,7 @@ AC_CACHE_CHECK([$1], [$2],
1430
1464
  if test -s conftest.err; then
1431
1465
  # Append any errors to the config.log.
1432
1466
  cat conftest.err 1>&AS_MESSAGE_LOG_FD
1433
- $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1467
+ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1434
1468
  $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1435
1469
  if diff conftest.exp conftest.er2 >/dev/null; then
1436
1470
  $2=yes
@@ -1493,11 +1527,6 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1493
1527
  lt_cv_sys_max_cmd_len=8192;
1494
1528
  ;;
1495
1529
 
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
-
1501
1530
  amigaos*)
1502
1531
  # On AmigaOS with pdksh, this test takes hours, literally.
1503
1532
  # So we just punt and use a minimum line length of 8192.
@@ -1562,8 +1591,8 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1562
1591
  # If test is not a shell built-in, we'll probably end up computing a
1563
1592
  # maximum length that is only half of the actual maximum length, but
1564
1593
  # we can't tell.
1565
- while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
1566
- = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1594
+ while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1595
+ = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1567
1596
  test $i != 17 # 1/2 MB should be enough
1568
1597
  do
1569
1598
  i=`expr $i + 1`
@@ -1614,7 +1643,7 @@ else
1614
1643
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1615
1644
  lt_status=$lt_dlunknown
1616
1645
  cat > conftest.$ac_ext <<_LT_EOF
1617
- [#line $LINENO "configure"
1646
+ [#line __oline__ "configure"
1618
1647
  #include "confdefs.h"
1619
1648
 
1620
1649
  #if HAVE_DLFCN_H
@@ -1655,13 +1684,7 @@ else
1655
1684
  # endif
1656
1685
  #endif
1657
1686
 
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; }
1687
+ void fnord() { int i=42;}
1665
1688
  int main ()
1666
1689
  {
1667
1690
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
@@ -1670,11 +1693,7 @@ int main ()
1670
1693
  if (self)
1671
1694
  {
1672
1695
  if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1673
- else
1674
- {
1675
- if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1676
- else puts (dlerror ());
1677
- }
1696
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1678
1697
  /* dlclose (self); */
1679
1698
  }
1680
1699
  else
@@ -1850,30 +1869,30 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1850
1869
  -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1851
1870
  -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1852
1871
  -e 's:$: $lt_compiler_flag:'`
1853
- (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1872
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1854
1873
  (eval "$lt_compile" 2>out/conftest.err)
1855
1874
  ac_status=$?
1856
1875
  cat out/conftest.err >&AS_MESSAGE_LOG_FD
1857
- echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1876
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1858
1877
  if (exit $ac_status) && test -s out/conftest2.$ac_objext
1859
1878
  then
1860
1879
  # The compiler can only warn and ignore the option if not recognized
1861
1880
  # So say no if there are warnings
1862
- $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1881
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1863
1882
  $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1864
1883
  if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1865
1884
  _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1866
1885
  fi
1867
1886
  fi
1868
1887
  chmod u+w . 2>&AS_MESSAGE_LOG_FD
1869
- $RM -r conftest*
1888
+ $RM conftest*
1870
1889
  # SGI C++ compiler will create directory out/ii_files/ for
1871
1890
  # template instantiation
1872
1891
  test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1873
1892
  $RM out/* && rmdir out
1874
1893
  cd ..
1875
1894
  $RM -r conftest
1876
- $RM -r conftest*
1895
+ $RM conftest*
1877
1896
  ])
1878
1897
  _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1879
1898
  [Does compiler simultaneously support -c and -o options?])
@@ -1893,7 +1912,7 @@ if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" !=
1893
1912
  # do not overwrite the value of need_locks provided by the user
1894
1913
  AC_MSG_CHECKING([if we can lock with hard links])
1895
1914
  hard_links=yes
1896
- $RM -r conftest*
1915
+ $RM conftest*
1897
1916
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1898
1917
  touch conftest.a
1899
1918
  ln conftest.a conftest.b 2>&5 || hard_links=no
@@ -2018,7 +2037,6 @@ m4_require([_LT_DECL_EGREP])dnl
2018
2037
  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2019
2038
  m4_require([_LT_DECL_OBJDUMP])dnl
2020
2039
  m4_require([_LT_DECL_SED])dnl
2021
- m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2022
2040
  AC_MSG_CHECKING([dynamic linker characteristics])
2023
2041
  m4_if([$1],
2024
2042
  [], [
@@ -2027,23 +2045,16 @@ if test "$GCC" = yes; then
2027
2045
  darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2028
2046
  *) lt_awk_arg="/^libraries:/" ;;
2029
2047
  esac
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
- *\;*)
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
2037
2050
  # if the path contains ";" then we assume it to be the separator
2038
2051
  # otherwise default to the standard path separator (i.e. ":") - it is
2039
2052
  # assumed that no part of a normal pathname contains ";" but that should
2040
2053
  # okay in the real world where ";" in dirpaths is itself problematic.
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
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
2047
2058
  # Ok, now we have the path, separated by spaces, we can step through it
2048
2059
  # and add multilib dir if necessary.
2049
2060
  lt_tmp_lt_search_path_spec=
@@ -2056,7 +2067,7 @@ if test "$GCC" = yes; then
2056
2067
  lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2057
2068
  fi
2058
2069
  done
2059
- lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2070
+ lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2060
2071
  BEGIN {RS=" "; FS="/|\n";} {
2061
2072
  lt_foo="";
2062
2073
  lt_count=0;
@@ -2076,13 +2087,7 @@ BEGIN {RS=" "; FS="/|\n";} {
2076
2087
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2077
2088
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2078
2089
  }'`
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`
2090
+ sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2086
2091
  else
2087
2092
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2088
2093
  fi])
@@ -2170,7 +2175,7 @@ amigaos*)
2170
2175
  m68k)
2171
2176
  library_names_spec='$libname.ixlibrary $libname.a'
2172
2177
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
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'
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'
2174
2179
  ;;
2175
2180
  esac
2176
2181
  ;;
@@ -2223,12 +2228,23 @@ cygwin* | mingw* | pw32* | cegcc*)
2223
2228
  cygwin*)
2224
2229
  # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2225
2230
  soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2226
- m4_if([$1], [],[
2227
- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2231
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2228
2232
  ;;
2229
2233
  mingw* | cegcc*)
2230
2234
  # MinGW DLLs use traditional 'lib' prefix
2231
2235
  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
2232
2248
  ;;
2233
2249
  pw32*)
2234
2250
  # pw32 DLLs use 'pw' prefix rather than 'lib'
@@ -2251,7 +2267,7 @@ darwin* | rhapsody*)
2251
2267
  version_type=darwin
2252
2268
  need_lib_prefix=no
2253
2269
  need_version=no
2254
- library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
2270
+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2255
2271
  soname_spec='${libname}${release}${major}$shared_ext'
2256
2272
  shlibpath_overrides_runpath=yes
2257
2273
  shlibpath_var=DYLD_LIBRARY_PATH
@@ -2328,19 +2344,6 @@ gnu*)
2328
2344
  hardcode_into_libs=yes
2329
2345
  ;;
2330
2346
 
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
-
2344
2347
  hpux9* | hpux10* | hpux11*)
2345
2348
  # Give a soname corresponding to the major version so that dld.sl refuses to
2346
2349
  # link against other versions.
@@ -2383,10 +2386,8 @@ hpux9* | hpux10* | hpux11*)
2383
2386
  soname_spec='${libname}${release}${shared_ext}$major'
2384
2387
  ;;
2385
2388
  esac
2386
- # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2389
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
2387
2390
  postinstall_cmds='chmod 555 $lib'
2388
- # or fails outright, so override atomically:
2389
- install_override_mode=555
2390
2391
  ;;
2391
2392
 
2392
2393
  interix[[3-9]]*)
@@ -2444,7 +2445,7 @@ linux*oldld* | linux*aout* | linux*coff*)
2444
2445
  ;;
2445
2446
 
2446
2447
  # This must be Linux ELF.
2447
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
2448
+ linux* | k*bsd*-gnu)
2448
2449
  version_type=linux
2449
2450
  need_lib_prefix=no
2450
2451
  need_version=no
@@ -2453,21 +2454,16 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
2453
2454
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2454
2455
  shlibpath_var=LD_LIBRARY_PATH
2455
2456
  shlibpath_overrides_runpath=no
2456
-
2457
2457
  # Some binutils ld are patched to set DT_RUNPATH
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
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
2471
2467
 
2472
2468
  # This implies no fast_install, which is unacceptable.
2473
2469
  # Some rework will be needed to allow for fast_install
@@ -2476,7 +2472,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
2476
2472
 
2477
2473
  # Append ld.so.conf contents to the search path
2478
2474
  if test -f /etc/ld.so.conf; then
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' ' '`
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' ' '`
2480
2476
  sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2481
2477
  fi
2482
2478
 
@@ -2489,6 +2485,18 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
2489
2485
  dynamic_linker='GNU/Linux ld.so'
2490
2486
  ;;
2491
2487
 
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
+
2492
2500
  netbsd*)
2493
2501
  version_type=sunos
2494
2502
  need_lib_prefix=no
@@ -2709,8 +2717,6 @@ _LT_DECL([], [library_names_spec], [1],
2709
2717
  The last name is the one that the linker finds with -lNAME]])
2710
2718
  _LT_DECL([], [soname_spec], [1],
2711
2719
  [[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])
2714
2720
  _LT_DECL([], [postinstall_cmds], [2],
2715
2721
  [Command to use after installation of a shared archive])
2716
2722
  _LT_DECL([], [postuninstall_cmds], [2],
@@ -2823,7 +2829,6 @@ AC_REQUIRE([AC_CANONICAL_HOST])dnl
2823
2829
  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2824
2830
  m4_require([_LT_DECL_SED])dnl
2825
2831
  m4_require([_LT_DECL_EGREP])dnl
2826
- m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
2827
2832
 
2828
2833
  AC_ARG_WITH([gnu-ld],
2829
2834
  [AS_HELP_STRING([--with-gnu-ld],
@@ -2953,8 +2958,8 @@ case $host_os in
2953
2958
  fi
2954
2959
  ;;
2955
2960
  esac
2956
- _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2957
- _LT_TAGDECL([], [reload_cmds], [2])dnl
2961
+ _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2962
+ _LT_DECL([], [reload_cmds], [2])dnl
2958
2963
  ])# _LT_CMD_RELOAD
2959
2964
 
2960
2965
 
@@ -3006,18 +3011,16 @@ mingw* | pw32*)
3006
3011
  # Base MSYS/MinGW do not provide the 'file' command needed by
3007
3012
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3008
3013
  # unless we find 'file', for example because we are cross-compiling.
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
3014
+ if ( file / ) >/dev/null 2>&1; then
3011
3015
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3012
3016
  lt_cv_file_magic_cmd='func_win32_libid'
3013
3017
  else
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)'
3018
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3016
3019
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3017
3020
  fi
3018
3021
  ;;
3019
3022
 
3020
- cegcc*)
3023
+ cegcc)
3021
3024
  # use the weaker test based on 'objdump'. See mingw*.
3022
3025
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3023
3026
  lt_cv_file_magic_cmd='$OBJDUMP -f'
@@ -3047,10 +3050,6 @@ gnu*)
3047
3050
  lt_cv_deplibs_check_method=pass_all
3048
3051
  ;;
3049
3052
 
3050
- haiku*)
3051
- lt_cv_deplibs_check_method=pass_all
3052
- ;;
3053
-
3054
3053
  hpux10.20* | hpux11*)
3055
3054
  lt_cv_file_magic_cmd=/usr/bin/file
3056
3055
  case $host_cpu in
@@ -3059,11 +3058,11 @@ hpux10.20* | hpux11*)
3059
3058
  lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3060
3059
  ;;
3061
3060
  hppa*64*)
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]']
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]']
3063
3062
  lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3064
3063
  ;;
3065
3064
  *)
3066
- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3065
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3067
3066
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3068
3067
  ;;
3069
3068
  esac
@@ -3085,11 +3084,11 @@ irix5* | irix6* | nonstopux*)
3085
3084
  ;;
3086
3085
 
3087
3086
  # This must be Linux ELF.
3088
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
3087
+ linux* | k*bsd*-gnu)
3089
3088
  lt_cv_deplibs_check_method=pass_all
3090
3089
  ;;
3091
3090
 
3092
- netbsd*)
3091
+ netbsd* | netbsdelf*-gnu)
3093
3092
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3094
3093
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3095
3094
  else
@@ -3227,19 +3226,7 @@ if test "$lt_cv_path_NM" != "no"; then
3227
3226
  NM="$lt_cv_path_NM"
3228
3227
  else
3229
3228
  # Didn't find any BSD compatible name lister, look for dumpbin.
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
3229
+ AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3243
3230
  AC_SUBST([DUMPBIN])
3244
3231
  if test "$DUMPBIN" != ":"; then
3245
3232
  NM="$DUMPBIN"
@@ -3252,18 +3239,18 @@ _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3252
3239
  AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3253
3240
  [lt_cv_nm_interface="BSD nm"
3254
3241
  echo "int some_variable = 0;" > conftest.$ac_ext
3255
- (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3242
+ (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3256
3243
  (eval "$ac_compile" 2>conftest.err)
3257
3244
  cat conftest.err >&AS_MESSAGE_LOG_FD
3258
- (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3245
+ (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3259
3246
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3260
3247
  cat conftest.err >&AS_MESSAGE_LOG_FD
3261
- (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3248
+ (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3262
3249
  cat conftest.out >&AS_MESSAGE_LOG_FD
3263
3250
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3264
3251
  lt_cv_nm_interface="MS dumpbin"
3265
3252
  fi
3266
- rm -r -f conftest*])
3253
+ rm -f conftest*])
3267
3254
  ])# LT_PATH_NM
3268
3255
 
3269
3256
  # Old names:
@@ -3281,7 +3268,7 @@ AC_DEFUN([LT_LIB_M],
3281
3268
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3282
3269
  LIBM=
3283
3270
  case $host in
3284
- *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3271
+ *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3285
3272
  # These system don't have libm, or don't need it
3286
3273
  ;;
3287
3274
  *-ncr-sysv4.3*)
@@ -3309,12 +3296,7 @@ m4_defun([_LT_COMPILER_NO_RTTI],
3309
3296
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3310
3297
 
3311
3298
  if test "$GCC" = yes; then
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
3299
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3318
3300
 
3319
3301
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3320
3302
  lt_cv_prog_compiler_rtti_exceptions,
@@ -3331,7 +3313,6 @@ _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3331
3313
  m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3332
3314
  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3333
3315
  AC_REQUIRE([AC_PROG_CC])dnl
3334
- AC_REQUIRE([AC_PROG_AWK])dnl
3335
3316
  AC_REQUIRE([LT_PATH_NM])dnl
3336
3317
  AC_REQUIRE([LT_PATH_LD])dnl
3337
3318
  m4_require([_LT_DECL_SED])dnl
@@ -3440,7 +3421,7 @@ for ac_symprfx in "" "_"; do
3440
3421
  # Check to see that the pipe works correctly.
3441
3422
  pipe_works=no
3442
3423
 
3443
- rm -r -f conftest*
3424
+ rm -f conftest*
3444
3425
  cat > conftest.$ac_ext <<_LT_EOF
3445
3426
  #ifdef __cplusplus
3446
3427
  extern "C" {
@@ -3457,7 +3438,7 @@ _LT_EOF
3457
3438
  if AC_TRY_EVAL(ac_compile); then
3458
3439
  # Now try to grab the symbols.
3459
3440
  nlist=conftest.nm
3460
- if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3441
+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3461
3442
  # Try sorting and uniquifying the output.
3462
3443
  if sort "$nlist" | uniq > "$nlist"T; then
3463
3444
  mv -f "$nlist"T "$nlist"
@@ -3619,11 +3600,6 @@ m4_if([$1], [CXX], [
3619
3600
  # DJGPP does not support shared libraries at all
3620
3601
  _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3621
3602
  ;;
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
- ;;
3627
3603
  interix[[3-9]]*)
3628
3604
  # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3629
3605
  # Instead, we relocate shared libraries at runtime.
@@ -3729,7 +3705,7 @@ m4_if([$1], [CXX], [
3729
3705
  ;;
3730
3706
  esac
3731
3707
  ;;
3732
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
3708
+ linux* | k*bsd*-gnu)
3733
3709
  case $cc_basename in
3734
3710
  KCC*)
3735
3711
  # KAI C++ Compiler
@@ -3762,8 +3738,8 @@ m4_if([$1], [CXX], [
3762
3738
  _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3763
3739
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3764
3740
  ;;
3765
- xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
3766
- # IBM XL 8.0, 9.0 on PPC and BlueGene
3741
+ xlc* | xlC*)
3742
+ # IBM XL 8.0 on PPC
3767
3743
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3768
3744
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3769
3745
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
@@ -3793,7 +3769,7 @@ m4_if([$1], [CXX], [
3793
3769
  ;;
3794
3770
  esac
3795
3771
  ;;
3796
- netbsd*)
3772
+ netbsd* | netbsdelf*-gnu)
3797
3773
  ;;
3798
3774
  *qnx* | *nto*)
3799
3775
  # QNX uses GNU C++, but need to define -shared option too, otherwise
@@ -3825,7 +3801,7 @@ m4_if([$1], [CXX], [
3825
3801
  ;;
3826
3802
  solaris*)
3827
3803
  case $cc_basename in
3828
- CC* | sunCC*)
3804
+ CC*)
3829
3805
  # Sun C++ 4.2, 5.x and Centerline C++
3830
3806
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3831
3807
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
@@ -3929,12 +3905,6 @@ m4_if([$1], [CXX], [
3929
3905
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3930
3906
  ;;
3931
3907
 
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
-
3938
3908
  hpux*)
3939
3909
  # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3940
3910
  # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
@@ -3977,13 +3947,6 @@ m4_if([$1], [CXX], [
3977
3947
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3978
3948
  ;;
3979
3949
  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
3987
3950
  else
3988
3951
  # PORTME Check for flag to pass linker flags through the system compiler.
3989
3952
  case $host_os in
@@ -4026,7 +3989,7 @@ m4_if([$1], [CXX], [
4026
3989
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4027
3990
  ;;
4028
3991
 
4029
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
3992
+ linux* | k*bsd*-gnu)
4030
3993
  case $cc_basename in
4031
3994
  # old Intel for x86_64 which still supported -KPIC.
4032
3995
  ecc*)
@@ -4047,7 +4010,7 @@ m4_if([$1], [CXX], [
4047
4010
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4048
4011
  _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4049
4012
  ;;
4050
- pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4013
+ pgcc* | pgf77* | pgf90* | pgf95*)
4051
4014
  # Portland Group compilers (*not* the Pentium gcc compiler,
4052
4015
  # which looks to be a dead project)
4053
4016
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
@@ -4059,26 +4022,26 @@ m4_if([$1], [CXX], [
4059
4022
  # All Alpha code is PIC.
4060
4023
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4061
4024
  ;;
4062
- xl* | bgxl* | bgf* | mpixl*)
4063
- # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4025
+ xl*)
4026
+ # IBM XL C 8.0/Fortran 10.1 on PPC
4064
4027
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4065
4028
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4066
4029
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4067
4030
  ;;
4068
4031
  *)
4069
4032
  case `$CC -V 2>&1 | sed 5q` in
4070
- *Sun\ F* | *Sun*Fortran*)
4071
- # Sun Fortran 8.3 passes all unrecognized flags to the linker
4072
- _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4073
- _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4074
- _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4075
- ;;
4076
4033
  *Sun\ C*)
4077
4034
  # Sun C 5.9
4078
4035
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4079
4036
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4080
4037
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4081
4038
  ;;
4039
+ *Sun\ F*)
4040
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
4041
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4042
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4043
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4044
+ ;;
4082
4045
  esac
4083
4046
  ;;
4084
4047
  esac
@@ -4109,7 +4072,7 @@ m4_if([$1], [CXX], [
4109
4072
  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4110
4073
  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4111
4074
  case $cc_basename in
4112
- f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4075
+ f77* | f90* | f95*)
4113
4076
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4114
4077
  *)
4115
4078
  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
@@ -4219,10 +4182,8 @@ m4_if([$1], [CXX], [
4219
4182
  aix[[4-9]]*)
4220
4183
  # If we're using GNU nm, then we don't want the "-C" option.
4221
4184
  # -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".
4224
4185
  if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
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'
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'
4226
4187
  else
4227
4188
  _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'
4228
4189
  fi
@@ -4233,6 +4194,9 @@ m4_if([$1], [CXX], [
4233
4194
  cygwin* | mingw* | cegcc*)
4234
4195
  _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'
4235
4196
  ;;
4197
+ linux* | k*bsd*-gnu)
4198
+ _LT_TAGVAR(link_all_deplibs, $1)=no
4199
+ ;;
4236
4200
  *)
4237
4201
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4238
4202
  ;;
@@ -4297,36 +4261,13 @@ dnl Note also adjust exclude_expsyms for C++ above.
4297
4261
  openbsd*)
4298
4262
  with_gnu_ld=no
4299
4263
  ;;
4264
+ linux* | k*bsd*-gnu)
4265
+ _LT_TAGVAR(link_all_deplibs, $1)=no
4266
+ ;;
4300
4267
  esac
4301
4268
 
4302
4269
  _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
4307
4270
  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
4330
4271
  # If archive_cmds runs LD, not CC, wlarc should be empty
4331
4272
  wlarc='${wl}'
4332
4273
 
@@ -4344,7 +4285,6 @@ dnl Note also adjust exclude_expsyms for C++ above.
4344
4285
  fi
4345
4286
  supports_anon_versioning=no
4346
4287
  case `$LD -v 2>&1` in
4347
- *GNU\ gold*) supports_anon_versioning=yes ;;
4348
4288
  *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4349
4289
  *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4350
4290
  *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
@@ -4360,12 +4300,11 @@ dnl Note also adjust exclude_expsyms for C++ above.
4360
4300
  _LT_TAGVAR(ld_shlibs, $1)=no
4361
4301
  cat <<_LT_EOF 1>&2
4362
4302
 
4363
- *** Warning: the GNU linker, at least up to release 2.19, is reported
4303
+ *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4364
4304
  *** to be unable to reliably create shared libraries on AIX.
4365
4305
  *** Therefore, libtool is disabling shared libraries support. If you
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.
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.
4369
4308
 
4370
4309
  _LT_EOF
4371
4310
  fi
@@ -4401,7 +4340,6 @@ _LT_EOF
4401
4340
  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4402
4341
  # as there is no search path for DLLs.
4403
4342
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4404
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4405
4343
  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4406
4344
  _LT_TAGVAR(always_export_symbols, $1)=no
4407
4345
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
@@ -4423,11 +4361,6 @@ _LT_EOF
4423
4361
  fi
4424
4362
  ;;
4425
4363
 
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
-
4431
4364
  interix[[3-9]]*)
4432
4365
  _LT_TAGVAR(hardcode_direct, $1)=no
4433
4366
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
@@ -4443,7 +4376,7 @@ _LT_EOF
4443
4376
  _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'
4444
4377
  ;;
4445
4378
 
4446
- gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4379
+ gnu* | linux* | tpf* | k*bsd*-gnu)
4447
4380
  tmp_diet=no
4448
4381
  if test "$host_os" = linux-dietlibc; then
4449
4382
  case $cc_basename in
@@ -4457,12 +4390,11 @@ _LT_EOF
4457
4390
  tmp_sharedflag='-shared'
4458
4391
  case $cc_basename,$host_cpu in
4459
4392
  pgcc*) # Portland Group C compiler
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'
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'
4461
4394
  tmp_addflag=' $pic_flag'
4462
4395
  ;;
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'
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'
4466
4398
  tmp_addflag=' $pic_flag -Mnomain' ;;
4467
4399
  ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4468
4400
  tmp_addflag=' -i_dynamic' ;;
@@ -4473,17 +4405,13 @@ _LT_EOF
4473
4405
  lf95*) # Lahey Fortran 8.1
4474
4406
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
4475
4407
  tmp_sharedflag='--shared' ;;
4476
- xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4408
+ xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4477
4409
  tmp_sharedflag='-qmkshrobj'
4478
4410
  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
- ;;
4483
4411
  esac
4484
4412
  case `$CC -V 2>&1 | sed 5q` in
4485
4413
  *Sun\ C*) # Sun C 5.9
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'
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'
4487
4415
  _LT_TAGVAR(compiler_needs_object, $1)=yes
4488
4416
  tmp_sharedflag='-G' ;;
4489
4417
  *Sun\ F*) # Sun Fortran 8.3
@@ -4499,17 +4427,17 @@ _LT_EOF
4499
4427
  fi
4500
4428
 
4501
4429
  case $cc_basename in
4502
- xlf* | bgf* | bgxlf* | mpixlf*)
4430
+ xlf*)
4503
4431
  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4504
4432
  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4505
4433
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4506
4434
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4507
- _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4435
+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4508
4436
  if test "x$supports_anon_versioning" = xyes; then
4509
4437
  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4510
4438
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4511
4439
  echo "local: *; };" >> $output_objdir/$libname.ver~
4512
- $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4440
+ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4513
4441
  fi
4514
4442
  ;;
4515
4443
  esac
@@ -4518,7 +4446,7 @@ _LT_EOF
4518
4446
  fi
4519
4447
  ;;
4520
4448
 
4521
- netbsd*)
4449
+ netbsd* | netbsdelf*-gnu)
4522
4450
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4523
4451
  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4524
4452
  wlarc=
@@ -4630,10 +4558,8 @@ _LT_EOF
4630
4558
  else
4631
4559
  # If we're using GNU nm, then we don't want the "-C" option.
4632
4560
  # -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".
4635
4561
  if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
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'
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'
4637
4563
  else
4638
4564
  _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'
4639
4565
  fi
@@ -4695,6 +4621,7 @@ _LT_EOF
4695
4621
  if test "$aix_use_runtimelinking" = yes; then
4696
4622
  shared_flag="$shared_flag "'${wl}-G'
4697
4623
  fi
4624
+ _LT_TAGVAR(link_all_deplibs, $1)=no
4698
4625
  else
4699
4626
  # not using gcc
4700
4627
  if test "$host_cpu" = ia64; then
@@ -4722,7 +4649,7 @@ _LT_EOF
4722
4649
  # empty executable.
4723
4650
  _LT_SYS_MODULE_PATH_AIX
4724
4651
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
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"
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"
4726
4653
  else
4727
4654
  if test "$host_cpu" = ia64; then
4728
4655
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
@@ -4737,13 +4664,8 @@ _LT_EOF
4737
4664
  # -berok will link without error, but may produce a broken library.
4738
4665
  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4739
4666
  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
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
4667
+ # Exported symbols can be pulled into shared objects from archives
4668
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4747
4669
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4748
4670
  # This is similar to how AIX traditionally builds its shared libraries.
4749
4671
  _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'
@@ -4782,7 +4704,7 @@ _LT_EOF
4782
4704
  # Tell ltmain to make .dll files, not .so files.
4783
4705
  shrext_cmds=".dll"
4784
4706
  # FIXME: Setting linknames here is a bad hack.
4785
- _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
4707
+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4786
4708
  # The linker will automatically build a .lib file if we build a DLL.
4787
4709
  _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4788
4710
  # FIXME: Should let the user specify the lib program.
@@ -4849,7 +4771,7 @@ _LT_EOF
4849
4771
  ;;
4850
4772
 
4851
4773
  hpux10*)
4852
- if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4774
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4853
4775
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4854
4776
  else
4855
4777
  _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
@@ -4868,7 +4790,7 @@ _LT_EOF
4868
4790
  ;;
4869
4791
 
4870
4792
  hpux11*)
4871
- if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4793
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4872
4794
  case $host_cpu in
4873
4795
  hppa*64*)
4874
4796
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
@@ -4889,14 +4811,7 @@ _LT_EOF
4889
4811
  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4890
4812
  ;;
4891
4813
  *)
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'])
4814
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4900
4815
  ;;
4901
4816
  esac
4902
4817
  fi
@@ -4924,19 +4839,19 @@ _LT_EOF
4924
4839
 
4925
4840
  irix5* | irix6* | nonstopux*)
4926
4841
  if test "$GCC" = yes; then
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'
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'
4928
4843
  # Try to use the -exported_symbol ld option, if it does not
4929
4844
  # work, assume that -exports_file does not work either and
4930
4845
  # implicitly export all symbols.
4931
4846
  save_LDFLAGS="$LDFLAGS"
4932
4847
  LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4933
4848
  AC_LINK_IFELSE(int foo(void) {},
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'
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'
4935
4850
  )
4936
4851
  LDFLAGS="$save_LDFLAGS"
4937
4852
  else
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'
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'
4940
4855
  fi
4941
4856
  _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4942
4857
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
@@ -4945,7 +4860,7 @@ _LT_EOF
4945
4860
  _LT_TAGVAR(link_all_deplibs, $1)=yes
4946
4861
  ;;
4947
4862
 
4948
- netbsd*)
4863
+ netbsd* | netbsdelf*-gnu)
4949
4864
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4950
4865
  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4951
4866
  else
@@ -4998,17 +4913,17 @@ _LT_EOF
4998
4913
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4999
4914
  _LT_TAGVAR(hardcode_minus_L, $1)=yes
5000
4915
  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
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'
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'
5002
4917
  _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5003
4918
  ;;
5004
4919
 
5005
4920
  osf3*)
5006
4921
  if test "$GCC" = yes; then
5007
4922
  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
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'
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'
5009
4924
  else
5010
4925
  _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
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'
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'
5012
4927
  fi
5013
4928
  _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5014
4929
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
@@ -5018,13 +4933,13 @@ _LT_EOF
5018
4933
  osf4* | osf5*) # as osf3* with the addition of -msym flag
5019
4934
  if test "$GCC" = yes; then
5020
4935
  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
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'
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'
5022
4937
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5023
4938
  else
5024
4939
  _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
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'
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'
5026
4941
  _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~
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'
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'
5028
4943
 
5029
4944
  # Both c and cxx compiler support -rpath directly
5030
4945
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
@@ -5215,38 +5130,36 @@ x|xyes)
5215
5130
  # Test whether the compiler implicitly links with -lc since on some
5216
5131
  # systems, -lgcc has to come before -lc. If gcc already passes -lc
5217
5132
  # to ld, don't add -lc before -lgcc.
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)
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)])
5250
5163
  ;;
5251
5164
  esac
5252
5165
  fi
@@ -5416,14 +5329,14 @@ CC="$lt_save_CC"
5416
5329
  ])# _LT_LANG_C_CONFIG
5417
5330
 
5418
5331
 
5419
- # _LT_LANG_CXX_CONFIG([TAG])
5420
- # --------------------------
5421
- # Ensure that the configuration variables for a C++ compiler are suitably
5422
- # defined. These variables are subsequently used by _LT_CONFIG to write
5423
- # the compiler configuration to `libtool'.
5424
- m4_defun([_LT_LANG_CXX_CONFIG],
5425
- [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5426
- m4_require([_LT_DECL_EGREP])dnl
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
5427
5340
  if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5428
5341
  ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5429
5342
  (test "X$CXX" != "Xg++"))) ; then
@@ -5431,6 +5344,22 @@ if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5431
5344
  else
5432
5345
  _lt_caught_CXX_error=yes
5433
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
+ # _LT_LANG_CXX_CONFIG([TAG])
5355
+ # --------------------------
5356
+ # Ensure that the configuration variables for a C++ compiler are suitably
5357
+ # defined. These variables are subsequently used by _LT_CONFIG to write
5358
+ # the compiler configuration to `libtool'.
5359
+ m4_defun([_LT_LANG_CXX_CONFIG],
5360
+ [AC_REQUIRE([_LT_PROG_CXX])dnl
5361
+ m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5362
+ m4_require([_LT_DECL_EGREP])dnl
5434
5363
 
5435
5364
  AC_LANG_PUSH(C++)
5436
5365
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
@@ -5452,8 +5381,6 @@ _LT_TAGVAR(module_cmds, $1)=
5452
5381
  _LT_TAGVAR(module_expsym_cmds, $1)=
5453
5382
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
5454
5383
  _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
5457
5384
  _LT_TAGVAR(no_undefined_flag, $1)=
5458
5385
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
5459
5386
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -5556,7 +5483,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5556
5483
  # Commands to make compiler produce verbose output that lists
5557
5484
  # what "hidden" libraries, object files and flags are used when
5558
5485
  # linking a shared library.
5559
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5486
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5560
5487
 
5561
5488
  else
5562
5489
  GXX=no
@@ -5668,7 +5595,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5668
5595
  _LT_SYS_MODULE_PATH_AIX
5669
5596
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5670
5597
 
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"
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"
5672
5599
  else
5673
5600
  if test "$host_cpu" = ia64; then
5674
5601
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
@@ -5683,13 +5610,8 @@ if test "$_lt_caught_CXX_error" != yes; then
5683
5610
  # -berok will link without error, but may produce a broken library.
5684
5611
  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5685
5612
  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
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
5613
+ # Exported symbols can be pulled into shared objects from archives
5614
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5693
5615
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5694
5616
  # This is similar to how AIX traditionally builds its shared
5695
5617
  # libraries.
@@ -5722,7 +5644,6 @@ if test "$_lt_caught_CXX_error" != yes; then
5722
5644
  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5723
5645
  # as there is no search path for DLLs.
5724
5646
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5725
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5726
5647
  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5727
5648
  _LT_TAGVAR(always_export_symbols, $1)=no
5728
5649
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
@@ -5783,11 +5704,6 @@ if test "$_lt_caught_CXX_error" != yes; then
5783
5704
  gnu*)
5784
5705
  ;;
5785
5706
 
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
-
5791
5707
  hpux9*)
5792
5708
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5793
5709
  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
@@ -5812,7 +5728,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5812
5728
  # explicitly linking system object files so we need to strip them
5813
5729
  # from the output so that they don't get included in the library
5814
5730
  # dependencies.
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"'
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'
5816
5732
  ;;
5817
5733
  *)
5818
5734
  if test "$GXX" = yes; then
@@ -5877,7 +5793,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5877
5793
  # explicitly linking system object files so we need to strip them
5878
5794
  # from the output so that they don't get included in the library
5879
5795
  # dependencies.
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"'
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'
5881
5797
  ;;
5882
5798
  *)
5883
5799
  if test "$GXX" = yes; then
@@ -5920,7 +5836,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5920
5836
  case $cc_basename in
5921
5837
  CC*)
5922
5838
  # SGI C++
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'
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'
5924
5840
 
5925
5841
  # Archives containing C++ object files must be created using
5926
5842
  # "CC -ar", where "CC" is the IRIX C++ compiler. This is
@@ -5931,9 +5847,9 @@ if test "$_lt_caught_CXX_error" != yes; then
5931
5847
  *)
5932
5848
  if test "$GXX" = yes; then
5933
5849
  if test "$with_gnu_ld" = no; then
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'
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'
5935
5851
  else
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'
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'
5937
5853
  fi
5938
5854
  fi
5939
5855
  _LT_TAGVAR(link_all_deplibs, $1)=yes
@@ -5944,7 +5860,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5944
5860
  _LT_TAGVAR(inherit_rpath, $1)=yes
5945
5861
  ;;
5946
5862
 
5947
- linux* | k*bsd*-gnu | kopensolaris*-gnu)
5863
+ linux* | k*bsd*-gnu)
5948
5864
  case $cc_basename in
5949
5865
  KCC*)
5950
5866
  # Kuck and Associates, Inc. (KAI) C++ Compiler
@@ -5962,7 +5878,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5962
5878
  # explicitly linking system object files so we need to strip them
5963
5879
  # from the output so that they don't get included in the library
5964
5880
  # dependencies.
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"'
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'
5966
5882
 
5967
5883
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5968
5884
  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -5999,26 +5915,26 @@ if test "$_lt_caught_CXX_error" != yes; then
5999
5915
  pgCC* | pgcpp*)
6000
5916
  # Portland Group C++ compiler
6001
5917
  case `$CC -V` in
6002
- *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
5918
+ *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6003
5919
  _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6004
5920
  rm -rf $tpldir~
6005
5921
  $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6006
- compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
5922
+ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6007
5923
  _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6008
5924
  rm -rf $tpldir~
6009
5925
  $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6010
- $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
5926
+ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6011
5927
  $RANLIB $oldlib'
6012
5928
  _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6013
5929
  rm -rf $tpldir~
6014
5930
  $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
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'
5931
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6016
5932
  _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6017
5933
  rm -rf $tpldir~
6018
5934
  $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
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'
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'
6020
5936
  ;;
6021
- *) # Version 6 and above use weak symbols
5937
+ *) # Version 6 will use weak symbols
6022
5938
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6023
5939
  _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'
6024
5940
  ;;
@@ -6026,7 +5942,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6026
5942
 
6027
5943
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6028
5944
  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
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'
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'
6030
5946
  ;;
6031
5947
  cxx*)
6032
5948
  # Compaq C++
@@ -6045,9 +5961,9 @@ if test "$_lt_caught_CXX_error" != yes; then
6045
5961
  # explicitly linking system object files so we need to strip them
6046
5962
  # from the output so that they don't get included in the library
6047
5963
  # dependencies.
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'
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'
6049
5965
  ;;
6050
- xl* | mpixl* | bgxl*)
5966
+ xl*)
6051
5967
  # IBM XL 8.0 on PPC, with GNU ld
6052
5968
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6053
5969
  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -6067,13 +5983,13 @@ if test "$_lt_caught_CXX_error" != yes; then
6067
5983
  _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6068
5984
  _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'
6069
5985
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
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'
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'
6071
5987
  _LT_TAGVAR(compiler_needs_object, $1)=yes
6072
5988
 
6073
5989
  # Not sure whether something based on
6074
5990
  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6075
5991
  # would be better.
6076
- output_verbose_link_cmd='func_echo_all'
5992
+ output_verbose_link_cmd='echo'
6077
5993
 
6078
5994
  # Archives containing C++ object files must be created using
6079
5995
  # "CC -xar", where "CC" is the Sun C++ compiler. This is
@@ -6142,7 +6058,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6142
6058
  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6143
6059
  _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6144
6060
  fi
6145
- output_verbose_link_cmd=func_echo_all
6061
+ output_verbose_link_cmd=echo
6146
6062
  else
6147
6063
  _LT_TAGVAR(ld_shlibs, $1)=no
6148
6064
  fi
@@ -6177,15 +6093,15 @@ if test "$_lt_caught_CXX_error" != yes; then
6177
6093
  case $host in
6178
6094
  osf3*)
6179
6095
  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
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'
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'
6181
6097
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6182
6098
  ;;
6183
6099
  *)
6184
6100
  _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
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'
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'
6186
6102
  _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6187
6103
  echo "-hidden">> $lib.exp~
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~
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~
6189
6105
  $RM $lib.exp'
6190
6106
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6191
6107
  ;;
@@ -6201,17 +6117,17 @@ if test "$_lt_caught_CXX_error" != yes; then
6201
6117
  # explicitly linking system object files so we need to strip them
6202
6118
  # from the output so that they don't get included in the library
6203
6119
  # dependencies.
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"'
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'
6205
6121
  ;;
6206
6122
  *)
6207
6123
  if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6208
6124
  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6209
6125
  case $host in
6210
6126
  osf3*)
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'
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'
6212
6128
  ;;
6213
6129
  *)
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'
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'
6215
6131
  ;;
6216
6132
  esac
6217
6133
 
@@ -6221,7 +6137,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6221
6137
  # Commands to make compiler produce verbose output that lists
6222
6138
  # what "hidden" libraries, object files and flags are used when
6223
6139
  # linking a shared library.
6224
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6140
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6225
6141
 
6226
6142
  else
6227
6143
  # FIXME: insert proper C++ library support
@@ -6257,7 +6173,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6257
6173
 
6258
6174
  solaris*)
6259
6175
  case $cc_basename in
6260
- CC* | sunCC*)
6176
+ CC*)
6261
6177
  # Sun C++ 4.2, 5.x and Centerline C++
6262
6178
  _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6263
6179
  _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
@@ -6278,7 +6194,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6278
6194
  esac
6279
6195
  _LT_TAGVAR(link_all_deplibs, $1)=yes
6280
6196
 
6281
- output_verbose_link_cmd='func_echo_all'
6197
+ output_verbose_link_cmd='echo'
6282
6198
 
6283
6199
  # Archives containing C++ object files must be created using
6284
6200
  # "CC -xar", where "CC" is the Sun C++ compiler. This is
@@ -6305,7 +6221,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6305
6221
  # Commands to make compiler produce verbose output that lists
6306
6222
  # what "hidden" libraries, object files and flags are used when
6307
6223
  # linking a shared library.
6308
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6224
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6309
6225
  else
6310
6226
  # g++ 2.7 appears to require `-G' NOT `-shared' on this
6311
6227
  # platform.
@@ -6316,7 +6232,7 @@ if test "$_lt_caught_CXX_error" != yes; then
6316
6232
  # Commands to make compiler produce verbose output that lists
6317
6233
  # what "hidden" libraries, object files and flags are used when
6318
6234
  # linking a shared library.
6319
- output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6235
+ output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6320
6236
  fi
6321
6237
 
6322
6238
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
@@ -6370,10 +6286,6 @@ if test "$_lt_caught_CXX_error" != yes; then
6370
6286
  CC*)
6371
6287
  _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6372
6288
  _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)"
6377
6289
  ;;
6378
6290
  *)
6379
6291
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
@@ -6620,7 +6532,7 @@ linux*)
6620
6532
 
6621
6533
  solaris*)
6622
6534
  case $cc_basename in
6623
- CC* | sunCC*)
6535
+ CC*)
6624
6536
  # The more standards-conforming stlport4 library is
6625
6537
  # incompatible with the Cstd library. Avoid specifying
6626
6538
  # it if it's in CXXFLAGS. Ignore libCrun as
@@ -6664,16 +6576,32 @@ _LT_TAGDECL([], [compiler_lib_search_path], [1],
6664
6576
  ])# _LT_SYS_HIDDEN_LIBDEPS
6665
6577
 
6666
6578
 
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
+
6667
6597
  # _LT_LANG_F77_CONFIG([TAG])
6668
6598
  # --------------------------
6669
6599
  # Ensure that the configuration variables for a Fortran 77 compiler are
6670
6600
  # suitably defined. These variables are subsequently used by _LT_CONFIG
6671
6601
  # to write the compiler configuration to `libtool'.
6672
6602
  m4_defun([_LT_LANG_F77_CONFIG],
6673
- [AC_LANG_PUSH(Fortran 77)
6674
- if test -z "$F77" || test "X$F77" = "Xno"; then
6675
- _lt_disable_F77=yes
6676
- fi
6603
+ [AC_REQUIRE([_LT_PROG_F77])dnl
6604
+ AC_LANG_PUSH(Fortran 77)
6677
6605
 
6678
6606
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6679
6607
  _LT_TAGVAR(allow_undefined_flag, $1)=
@@ -6692,8 +6620,6 @@ _LT_TAGVAR(module_cmds, $1)=
6692
6620
  _LT_TAGVAR(module_expsym_cmds, $1)=
6693
6621
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
6694
6622
  _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
6697
6623
  _LT_TAGVAR(no_undefined_flag, $1)=
6698
6624
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
6699
6625
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -6793,17 +6719,32 @@ AC_LANG_POP
6793
6719
  ])# _LT_LANG_F77_CONFIG
6794
6720
 
6795
6721
 
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
+
6796
6740
  # _LT_LANG_FC_CONFIG([TAG])
6797
6741
  # -------------------------
6798
6742
  # Ensure that the configuration variables for a Fortran compiler are
6799
6743
  # suitably defined. These variables are subsequently used by _LT_CONFIG
6800
6744
  # to write the compiler configuration to `libtool'.
6801
6745
  m4_defun([_LT_LANG_FC_CONFIG],
6802
- [AC_LANG_PUSH(Fortran)
6803
-
6804
- if test -z "$FC" || test "X$FC" = "Xno"; then
6805
- _lt_disable_FC=yes
6806
- fi
6746
+ [AC_REQUIRE([_LT_PROG_FC])dnl
6747
+ AC_LANG_PUSH(Fortran)
6807
6748
 
6808
6749
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6809
6750
  _LT_TAGVAR(allow_undefined_flag, $1)=
@@ -6822,8 +6763,6 @@ _LT_TAGVAR(module_cmds, $1)=
6822
6763
  _LT_TAGVAR(module_expsym_cmds, $1)=
6823
6764
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
6824
6765
  _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
6827
6766
  _LT_TAGVAR(no_undefined_flag, $1)=
6828
6767
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
6829
6768
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -6969,8 +6908,6 @@ _LT_CC_BASENAME([$compiler])
6969
6908
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6970
6909
 
6971
6910
  _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
6974
6911
 
6975
6912
  ## CAVEAT EMPTOR:
6976
6913
  ## There is no encapsulation within the following macros, do not change
@@ -7338,7 +7275,7 @@ _LT_EOF
7338
7275
  func_dirname ()
7339
7276
  {
7340
7277
  # Extract subdirectory from the argument.
7341
- func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
7278
+ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7342
7279
  if test "X$func_dirname_result" = "X${1}"; then
7343
7280
  func_dirname_result="${3}"
7344
7281
  else
@@ -7349,7 +7286,7 @@ func_dirname ()
7349
7286
  # func_basename file
7350
7287
  func_basename ()
7351
7288
  {
7352
- func_basename_result=`$ECHO "${1}" | $SED "$basename"`
7289
+ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7353
7290
  }
7354
7291
 
7355
7292
  dnl func_dirname_and_basename
@@ -7365,8 +7302,10 @@ dnl so there is no need for it here.
7365
7302
  func_stripname ()
7366
7303
  {
7367
7304
  case ${2} in
7368
- .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7369
- *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
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}\$%%"`;;
7370
7309
  esac
7371
7310
  }
7372
7311
 
@@ -7377,20 +7316,20 @@ my_sed_long_arg='1s/^-[[^=]]*=//'
7377
7316
  # func_opt_split
7378
7317
  func_opt_split ()
7379
7318
  {
7380
- func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
7381
- func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
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"`
7382
7321
  }
7383
7322
 
7384
7323
  # func_lo2o object
7385
7324
  func_lo2o ()
7386
7325
  {
7387
- func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
7326
+ func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7388
7327
  }
7389
7328
 
7390
7329
  # func_xform libobj-or-source
7391
7330
  func_xform ()
7392
7331
  {
7393
- func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
7332
+ func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7394
7333
  }
7395
7334
 
7396
7335
  # func_arith arithmetic-term...