ffi 1.9.18-x64-mingw32 → 1.9.21-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ffi might be problematic. Click here for more details.

Files changed (384) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +3 -2
  3. data/Rakefile +14 -4
  4. data/ext/ffi_c/AbstractMemory.c +6 -1
  5. data/ext/ffi_c/Platform.c +10 -2
  6. data/ext/ffi_c/extconf.rb +7 -2
  7. data/ext/ffi_c/libffi.bsd.mk +9 -3
  8. data/ext/ffi_c/libffi.darwin.mk +14 -4
  9. data/ext/ffi_c/libffi.gnu.mk +2 -1
  10. data/ext/ffi_c/libffi.mk +9 -4
  11. data/ext/ffi_c/libffi/ChangeLog.libffi +2 -2
  12. data/ext/ffi_c/libffi/{ChangeLog → ChangeLog.libffi-3.1} +1402 -2
  13. data/ext/ffi_c/libffi/ChangeLog.v1 +1 -1
  14. data/ext/ffi_c/libffi/LICENSE +1 -1
  15. data/ext/ffi_c/libffi/Makefile.am +166 -157
  16. data/ext/ffi_c/libffi/Makefile.in +923 -938
  17. data/ext/ffi_c/libffi/README +164 -52
  18. data/ext/ffi_c/libffi/acinclude.m4 +381 -0
  19. data/ext/ffi_c/libffi/aclocal.m4 +645 -384
  20. data/ext/ffi_c/libffi/autogen.sh +2 -0
  21. data/ext/ffi_c/libffi/autom4te.cache/output.0 +21972 -0
  22. data/ext/ffi_c/libffi/autom4te.cache/output.1 +21972 -0
  23. data/ext/ffi_c/libffi/autom4te.cache/output.2 +21972 -0
  24. data/ext/ffi_c/libffi/autom4te.cache/output.3 +21972 -0
  25. data/ext/ffi_c/libffi/autom4te.cache/requests +331 -0
  26. data/ext/ffi_c/libffi/autom4te.cache/traces.0 +4010 -0
  27. data/ext/ffi_c/libffi/autom4te.cache/traces.1 +1005 -0
  28. data/ext/ffi_c/libffi/autom4te.cache/traces.2 +4010 -0
  29. data/ext/ffi_c/libffi/autom4te.cache/traces.3 +4010 -0
  30. data/ext/ffi_c/libffi/compile +218 -14
  31. data/ext/ffi_c/libffi/config.guess +329 -368
  32. data/ext/ffi_c/libffi/config.sub +232 -112
  33. data/ext/ffi_c/libffi/configure +6970 -2189
  34. data/ext/ffi_c/libffi/configure.ac +148 -256
  35. data/ext/ffi_c/libffi/configure.host +265 -4
  36. data/ext/ffi_c/libffi/depcomp +346 -185
  37. data/ext/ffi_c/libffi/doc/Makefile.am +3 -0
  38. data/ext/ffi_c/libffi/doc/Makefile.in +811 -0
  39. data/ext/ffi_c/libffi/doc/libffi.texi +430 -45
  40. data/ext/ffi_c/libffi/{mdate-sh → doc/mdate-sh} +40 -13
  41. data/ext/ffi_c/libffi/{texinfo.tex → doc/texinfo.tex} +3990 -1121
  42. data/ext/ffi_c/libffi/doc/version.texi +4 -4
  43. data/ext/ffi_c/libffi/fficonfig.h.in +24 -13
  44. data/ext/ffi_c/libffi/fficonfig.h.in~ +210 -0
  45. data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +207 -0
  46. data/ext/ffi_c/libffi/include/Makefile.am +3 -3
  47. data/ext/ffi_c/libffi/include/Makefile.in +188 -71
  48. data/ext/ffi_c/libffi/include/ffi.h.in +107 -50
  49. data/ext/ffi_c/libffi/include/ffi_cfi.h +55 -0
  50. data/ext/ffi_c/libffi/include/ffi_common.h +32 -11
  51. data/ext/ffi_c/libffi/install-sh +190 -202
  52. data/ext/ffi_c/libffi/libffi.map.in +80 -0
  53. data/ext/ffi_c/libffi/libffi.pc.in +3 -2
  54. data/ext/ffi_c/libffi/libffi.xcodeproj/project.pbxproj +637 -0
  55. data/ext/ffi_c/libffi/libtool-ldflags +106 -0
  56. data/ext/ffi_c/libffi/libtool-version +1 -1
  57. data/ext/ffi_c/libffi/ltmain.sh +3553 -2033
  58. data/ext/ffi_c/libffi/m4/asmcfi.m4 +13 -0
  59. data/ext/ffi_c/libffi/m4/ax_append_flag.m4 +69 -0
  60. data/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +13 -8
  61. data/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +31 -104
  62. data/ext/ffi_c/libffi/m4/{ax_check_compiler_flags.m4 → ax_check_compile_flag.m4} +30 -34
  63. data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +32 -11
  64. data/ext/ffi_c/libffi/m4/ax_enable_builddir.m4 +6 -5
  65. data/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +31 -21
  66. data/ext/ffi_c/libffi/m4/libtool.m4 +1691 -1135
  67. data/ext/ffi_c/libffi/m4/ltoptions.m4 +104 -36
  68. data/ext/ffi_c/libffi/m4/ltsugar.m4 +4 -3
  69. data/ext/ffi_c/libffi/m4/ltversion.m4 +6 -6
  70. data/ext/ffi_c/libffi/m4/lt~obsolete.m4 +4 -3
  71. data/ext/ffi_c/libffi/man/Makefile.am +2 -2
  72. data/ext/ffi_c/libffi/man/Makefile.in +141 -49
  73. data/ext/ffi_c/libffi/man/ffi.3 +10 -0
  74. data/ext/ffi_c/libffi/man/ffi_prep_cif.3 +6 -4
  75. data/ext/ffi_c/libffi/man/ffi_prep_cif_var.3 +73 -0
  76. data/ext/ffi_c/libffi/missing +150 -311
  77. data/ext/ffi_c/libffi/msvcc.sh +72 -9
  78. data/ext/ffi_c/libffi/src/aarch64/ffi.c +941 -0
  79. data/ext/ffi_c/libffi/src/aarch64/ffitarget.h +81 -0
  80. data/ext/ffi_c/libffi/src/aarch64/internal.h +67 -0
  81. data/ext/ffi_c/libffi/src/aarch64/sysv.S +438 -0
  82. data/ext/ffi_c/libffi/src/alpha/ffi.c +335 -98
  83. data/ext/ffi_c/libffi/src/alpha/ffitarget.h +10 -1
  84. data/ext/ffi_c/libffi/src/alpha/internal.h +23 -0
  85. data/ext/ffi_c/libffi/src/alpha/osf.S +161 -266
  86. data/ext/ffi_c/libffi/src/arc/arcompact.S +135 -0
  87. data/ext/ffi_c/libffi/src/arc/ffi.c +266 -0
  88. data/ext/ffi_c/libffi/src/arc/ffitarget.h +53 -0
  89. data/ext/ffi_c/libffi/src/arm/ffi.c +597 -517
  90. data/ext/ffi_c/libffi/src/arm/ffitarget.h +24 -7
  91. data/ext/ffi_c/libffi/src/arm/internal.h +7 -0
  92. data/ext/ffi_c/libffi/src/arm/sysv.S +303 -417
  93. data/ext/ffi_c/libffi/src/avr32/ffitarget.h +6 -1
  94. data/ext/ffi_c/libffi/src/bfin/ffi.c +196 -0
  95. data/ext/ffi_c/libffi/src/bfin/ffitarget.h +43 -0
  96. data/ext/ffi_c/libffi/src/bfin/sysv.S +179 -0
  97. data/ext/ffi_c/libffi/src/closures.c +319 -44
  98. data/ext/ffi_c/libffi/src/cris/ffi.c +10 -7
  99. data/ext/ffi_c/libffi/src/cris/ffitarget.h +6 -1
  100. data/ext/ffi_c/libffi/src/debug.c +6 -1
  101. data/ext/ffi_c/libffi/src/dlmalloc.c +16 -11
  102. data/ext/ffi_c/libffi/src/frv/ffi.c +1 -1
  103. data/ext/ffi_c/libffi/src/frv/ffitarget.h +6 -1
  104. data/ext/ffi_c/libffi/src/ia64/ffi.c +11 -7
  105. data/ext/ffi_c/libffi/src/ia64/ffitarget.h +6 -1
  106. data/ext/ffi_c/libffi/src/java_raw_api.c +23 -5
  107. data/ext/ffi_c/libffi/src/m32r/ffi.c +1 -1
  108. data/ext/ffi_c/libffi/src/m32r/ffitarget.h +6 -1
  109. data/ext/ffi_c/libffi/src/m68k/ffi.c +87 -13
  110. data/ext/ffi_c/libffi/src/m68k/ffitarget.h +6 -1
  111. data/ext/ffi_c/libffi/src/m68k/sysv.S +119 -32
  112. data/ext/ffi_c/libffi/src/m88k/ffi.c +400 -0
  113. data/ext/ffi_c/libffi/src/m88k/ffitarget.h +49 -0
  114. data/ext/ffi_c/libffi/src/m88k/obsd.S +209 -0
  115. data/ext/ffi_c/libffi/src/metag/ffi.c +330 -0
  116. data/ext/ffi_c/libffi/{fficonfig.hw → src/metag/ffitarget.h} +22 -26
  117. data/ext/ffi_c/libffi/src/metag/sysv.S +311 -0
  118. data/ext/ffi_c/libffi/src/microblaze/ffi.c +321 -0
  119. data/ext/ffi_c/libffi/src/microblaze/ffitarget.h +53 -0
  120. data/ext/ffi_c/libffi/src/microblaze/sysv.S +302 -0
  121. data/ext/ffi_c/libffi/src/mips/ffi.c +95 -28
  122. data/ext/ffi_c/libffi/src/mips/ffitarget.h +9 -2
  123. data/ext/ffi_c/libffi/src/mips/n32.S +126 -56
  124. data/ext/ffi_c/libffi/src/mips/o32.S +148 -27
  125. data/ext/ffi_c/libffi/src/moxie/eabi.S +55 -82
  126. data/ext/ffi_c/libffi/src/moxie/ffi.c +40 -44
  127. data/ext/ffi_c/libffi/src/moxie/ffitarget.h +52 -0
  128. data/ext/ffi_c/libffi/src/nios2/ffi.c +304 -0
  129. data/ext/ffi_c/libffi/src/nios2/ffitarget.h +52 -0
  130. data/ext/ffi_c/libffi/src/nios2/sysv.S +136 -0
  131. data/ext/ffi_c/libffi/src/or1k/ffi.c +328 -0
  132. data/ext/ffi_c/libffi/src/or1k/ffitarget.h +58 -0
  133. data/ext/ffi_c/libffi/src/or1k/sysv.S +107 -0
  134. data/ext/ffi_c/libffi/src/pa/ffitarget.h +8 -1
  135. data/ext/ffi_c/libffi/src/powerpc/aix.S +6 -6
  136. data/ext/ffi_c/libffi/src/powerpc/aix_closure.S +3 -1
  137. data/ext/ffi_c/libffi/src/powerpc/asm.h +2 -2
  138. data/ext/ffi_c/libffi/src/powerpc/darwin.S +2 -7
  139. data/ext/ffi_c/libffi/src/powerpc/darwin_closure.S +22 -26
  140. data/ext/ffi_c/libffi/src/powerpc/ffi.c +103 -1378
  141. data/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +25 -25
  142. data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +945 -0
  143. data/ext/ffi_c/libffi/src/powerpc/ffi_powerpc.h +94 -0
  144. data/ext/ffi_c/libffi/src/powerpc/ffi_sysv.c +923 -0
  145. data/ext/ffi_c/libffi/src/powerpc/ffitarget.h +100 -44
  146. data/ext/ffi_c/libffi/src/powerpc/linux64.S +100 -59
  147. data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +360 -108
  148. data/ext/ffi_c/libffi/src/powerpc/ppc_closure.S +138 -68
  149. data/ext/ffi_c/libffi/src/powerpc/sysv.S +68 -112
  150. data/ext/ffi_c/libffi/src/prep_cif.c +108 -24
  151. data/ext/ffi_c/libffi/src/raw_api.c +18 -5
  152. data/ext/ffi_c/libffi/src/s390/ffi.c +294 -318
  153. data/ext/ffi_c/libffi/src/s390/ffitarget.h +9 -1
  154. data/ext/ffi_c/libffi/src/s390/internal.h +11 -0
  155. data/ext/ffi_c/libffi/src/s390/sysv.S +257 -366
  156. data/ext/ffi_c/libffi/src/sh/ffi.c +4 -3
  157. data/ext/ffi_c/libffi/src/sh/ffitarget.h +6 -1
  158. data/ext/ffi_c/libffi/src/sh64/ffi.c +3 -2
  159. data/ext/ffi_c/libffi/src/sh64/ffitarget.h +6 -1
  160. data/ext/ffi_c/libffi/src/sparc/ffi.c +326 -527
  161. data/ext/ffi_c/libffi/src/sparc/ffi64.c +608 -0
  162. data/ext/ffi_c/libffi/src/sparc/ffitarget.h +20 -7
  163. data/ext/ffi_c/libffi/src/sparc/internal.h +26 -0
  164. data/ext/ffi_c/libffi/src/sparc/v8.S +364 -234
  165. data/ext/ffi_c/libffi/src/sparc/v9.S +340 -207
  166. data/ext/ffi_c/libffi/src/tile/ffi.c +355 -0
  167. data/ext/ffi_c/libffi/src/tile/ffitarget.h +65 -0
  168. data/ext/ffi_c/libffi/src/tile/tile.S +360 -0
  169. data/ext/ffi_c/libffi/src/types.c +43 -14
  170. data/ext/ffi_c/libffi/src/vax/elfbsd.S +195 -0
  171. data/ext/ffi_c/libffi/src/vax/ffi.c +276 -0
  172. data/ext/ffi_c/libffi/src/vax/ffitarget.h +49 -0
  173. data/ext/ffi_c/libffi/src/x86/asmnames.h +30 -0
  174. data/ext/ffi_c/libffi/src/x86/ffi.c +589 -500
  175. data/ext/ffi_c/libffi/src/x86/ffi64.c +338 -116
  176. data/ext/ffi_c/libffi/src/x86/ffitarget.h +55 -35
  177. data/ext/ffi_c/libffi/src/x86/ffiw64.c +287 -0
  178. data/ext/ffi_c/libffi/src/x86/internal.h +29 -0
  179. data/ext/ffi_c/libffi/src/x86/internal64.h +22 -0
  180. data/ext/ffi_c/libffi/src/x86/sysv.S +975 -400
  181. data/ext/ffi_c/libffi/src/x86/unix64.S +398 -299
  182. data/ext/ffi_c/libffi/src/x86/win64.S +222 -458
  183. data/ext/ffi_c/libffi/src/x86/win64_intel.S +237 -0
  184. data/ext/ffi_c/libffi/src/xtensa/ffi.c +298 -0
  185. data/ext/ffi_c/libffi/src/xtensa/ffitarget.h +53 -0
  186. data/ext/ffi_c/libffi/src/xtensa/sysv.S +253 -0
  187. data/ext/ffi_c/libffi/stamp-h.in +1 -0
  188. data/ext/ffi_c/libffi/testsuite/Makefile.am +78 -73
  189. data/ext/ffi_c/libffi/testsuite/Makefile.in +218 -111
  190. data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +120 -25
  191. data/ext/ffi_c/libffi/testsuite/lib/target-libpath.exp +21 -1
  192. data/ext/ffi_c/libffi/testsuite/libffi.call/align_mixed.c +46 -0
  193. data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +4 -6
  194. data/ext/ffi_c/libffi/testsuite/libffi.call/{closure_stdcall.c → closure_simple.c} +7 -16
  195. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_12byte.c +4 -4
  196. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_16byte.c +4 -4
  197. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_18byte.c +4 -4
  198. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_19byte.c +4 -4
  199. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_1_1byte.c +4 -4
  200. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_20byte.c +4 -4
  201. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_20byte1.c +4 -4
  202. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_24byte.c +5 -5
  203. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_2byte.c +4 -4
  204. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3_1byte.c +4 -4
  205. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3byte1.c +4 -4
  206. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3byte2.c +4 -4
  207. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_4_1byte.c +4 -4
  208. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_4byte.c +4 -4
  209. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_5_1_byte.c +4 -4
  210. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_5byte.c +4 -4
  211. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_64byte.c +5 -5
  212. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_6_1_byte.c +4 -4
  213. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_6byte.c +4 -4
  214. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_7_1_byte.c +4 -4
  215. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_7byte.c +4 -4
  216. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_8byte.c +4 -4
  217. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_9byte1.c +4 -4
  218. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_9byte2.c +4 -4
  219. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_double.c +4 -4
  220. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_float.c +4 -4
  221. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble.c +4 -4
  222. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split.c +4 -6
  223. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split2.c +4 -6
  224. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_pointer.c +4 -4
  225. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint16.c +4 -4
  226. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint32.c +4 -4
  227. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint64.c +4 -4
  228. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint16.c +4 -4
  229. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint32.c +4 -4
  230. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint64.c +4 -4
  231. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_dbls_struct.c +4 -4
  232. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_double_va.c +10 -9
  233. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble.c +3 -3
  234. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble_va.c +10 -9
  235. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_many_mixed_args.c +70 -0
  236. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_many_mixed_float_double.c +55 -0
  237. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer.c +1 -1
  238. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer_stack.c +11 -9
  239. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_struct_va1.c +114 -0
  240. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uchar_va.c +44 -0
  241. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uint_va.c +45 -0
  242. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ulong_va.c +45 -0
  243. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ulonglong.c +5 -5
  244. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ushort_va.c +44 -0
  245. data/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c +2 -2
  246. data/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +23 -40
  247. data/ext/ffi_c/libffi/testsuite/libffi.call/float1.c +3 -1
  248. data/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +6 -4
  249. data/ext/ffi_c/libffi/testsuite/libffi.call/float3.c +4 -2
  250. data/ext/ffi_c/libffi/testsuite/libffi.call/float_va.c +107 -0
  251. data/ext/ffi_c/libffi/testsuite/libffi.call/huge_struct.c +18 -19
  252. data/ext/ffi_c/libffi/testsuite/libffi.call/many.c +6 -16
  253. data/ext/ffi_c/libffi/testsuite/libffi.call/many2.c +57 -0
  254. data/ext/ffi_c/libffi/testsuite/libffi.call/many_double.c +70 -0
  255. data/ext/ffi_c/libffi/testsuite/libffi.call/many_mixed.c +78 -0
  256. data/ext/ffi_c/libffi/testsuite/libffi.call/negint.c +0 -1
  257. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c +6 -6
  258. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct1.c +8 -8
  259. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct10.c +6 -6
  260. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct11.c +121 -0
  261. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct2.c +5 -5
  262. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct3.c +5 -5
  263. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct4.c +5 -5
  264. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct5.c +5 -5
  265. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct6.c +6 -6
  266. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct7.c +5 -5
  267. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct8.c +6 -6
  268. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct9.c +6 -6
  269. data/ext/ffi_c/libffi/testsuite/libffi.call/offsets.c +46 -0
  270. data/ext/ffi_c/libffi/testsuite/libffi.call/pr1172638.c +127 -0
  271. data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl.c +1 -0
  272. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ldl.c +1 -1
  273. data/ext/ffi_c/libffi/testsuite/libffi.call/return_sc.c +1 -1
  274. data/ext/ffi_c/libffi/testsuite/libffi.call/return_uc.c +1 -1
  275. data/ext/ffi_c/libffi/testsuite/libffi.call/stret_large.c +7 -7
  276. data/ext/ffi_c/libffi/testsuite/libffi.call/stret_large2.c +7 -7
  277. data/ext/ffi_c/libffi/testsuite/libffi.call/stret_medium.c +5 -5
  278. data/ext/ffi_c/libffi/testsuite/libffi.call/stret_medium2.c +5 -5
  279. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen.c +2 -2
  280. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c +49 -0
  281. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c +49 -0
  282. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen4.c +55 -0
  283. data/ext/ffi_c/libffi/testsuite/libffi.call/struct1.c +9 -7
  284. data/ext/ffi_c/libffi/testsuite/libffi.call/struct2.c +7 -7
  285. data/ext/ffi_c/libffi/testsuite/libffi.call/struct3.c +7 -6
  286. data/ext/ffi_c/libffi/testsuite/libffi.call/struct4.c +9 -8
  287. data/ext/ffi_c/libffi/testsuite/libffi.call/struct5.c +9 -8
  288. data/ext/ffi_c/libffi/testsuite/libffi.call/struct6.c +9 -9
  289. data/ext/ffi_c/libffi/testsuite/libffi.call/struct7.c +9 -9
  290. data/ext/ffi_c/libffi/testsuite/libffi.call/struct8.c +9 -8
  291. data/ext/ffi_c/libffi/testsuite/libffi.call/struct9.c +9 -8
  292. data/ext/ffi_c/libffi/testsuite/libffi.call/testclosure.c +2 -2
  293. data/ext/ffi_c/libffi/testsuite/libffi.call/uninitialized.c +61 -0
  294. data/ext/ffi_c/libffi/testsuite/{libffi.special → libffi.call}/unwindtest.cc +3 -10
  295. data/ext/ffi_c/libffi/testsuite/{libffi.special → libffi.call}/unwindtest_ffi_call.cc +2 -1
  296. data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +196 -0
  297. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c +121 -0
  298. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c +123 -0
  299. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c +125 -0
  300. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex.inc +91 -0
  301. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_double.c +10 -0
  302. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_float.c +10 -0
  303. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_longdouble.c +10 -0
  304. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex.inc +42 -0
  305. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_double.c +10 -0
  306. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_float.c +10 -0
  307. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_longdouble.c +10 -0
  308. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct.inc +71 -0
  309. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_double.c +10 -0
  310. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_float.c +10 -0
  311. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_longdouble.c +10 -0
  312. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va.inc +80 -0
  313. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_double.c +10 -0
  314. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_float.c +16 -0
  315. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_longdouble.c +10 -0
  316. data/ext/ffi_c/libffi/testsuite/{libffi.special/special.exp → libffi.complex/complex.exp} +9 -8
  317. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.inc +51 -0
  318. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_double.inc +7 -0
  319. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_float.inc +7 -0
  320. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_longdouble.inc +7 -0
  321. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_double.c +10 -0
  322. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_float.c +10 -0
  323. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_int.c +86 -0
  324. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_longdouble.c +10 -0
  325. data/ext/ffi_c/libffi/testsuite/libffi.complex/ffitest.h +1 -0
  326. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex.inc +78 -0
  327. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_double.c +10 -0
  328. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_float.c +10 -0
  329. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_longdouble.c +10 -0
  330. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex.inc +37 -0
  331. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1.inc +41 -0
  332. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_double.c +10 -0
  333. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_float.c +10 -0
  334. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_longdouble.c +10 -0
  335. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2.inc +44 -0
  336. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_double.c +10 -0
  337. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_float.c +10 -0
  338. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_longdouble.c +10 -0
  339. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_double.c +10 -0
  340. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_float.c +10 -0
  341. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_longdouble.c +10 -0
  342. data/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c +34 -0
  343. data/ext/ffi_c/libffi/testsuite/libffi.go/closure1.c +28 -0
  344. data/ext/ffi_c/libffi/testsuite/libffi.go/ffitest.h +1 -0
  345. data/ext/ffi_c/libffi/testsuite/libffi.go/go.exp +36 -0
  346. data/ext/ffi_c/libffi/testsuite/libffi.go/static-chain.h +19 -0
  347. data/ffi.gemspec +2 -2
  348. data/lib/2.0/ffi_c.so +0 -0
  349. data/lib/2.1/ffi_c.so +0 -0
  350. data/lib/2.2/ffi_c.so +0 -0
  351. data/lib/2.3/ffi_c.so +0 -0
  352. data/lib/2.4/ffi_c.so +0 -0
  353. data/lib/2.5/ffi_c.so +0 -0
  354. data/lib/ffi/enum.rb +124 -0
  355. data/lib/ffi/library.rb +65 -13
  356. data/lib/ffi/platform.rb +7 -2
  357. data/lib/ffi/platform/sparc64-linux/types.conf +102 -0
  358. data/lib/ffi/platform/x86_64-windows/types.conf +113 -20
  359. data/lib/ffi/pointer.rb +1 -0
  360. data/lib/ffi/struct.rb +0 -2
  361. data/lib/ffi/version.rb +1 -1
  362. data/spec/ffi/bitmask_spec.rb +575 -0
  363. data/spec/ffi/embed-test/ext/Makefile +242 -0
  364. data/spec/ffi/fixtures/BitmaskTest.c +51 -0
  365. data/spec/ffi/rbx/memory_pointer_spec.rb +4 -0
  366. data/spec/ffi/struct_spec.rb +0 -4
  367. metadata +158 -32
  368. data/ext/ffi_c/libffi/Makefile.vc +0 -141
  369. data/ext/ffi_c/libffi/Makefile.vc64 +0 -141
  370. data/ext/ffi_c/libffi/build-ios.sh +0 -67
  371. data/ext/ffi_c/libffi/doc/libffi.info +0 -593
  372. data/ext/ffi_c/libffi/doc/stamp-vti +0 -4
  373. data/ext/ffi_c/libffi/include/ffi.h.vc +0 -427
  374. data/ext/ffi_c/libffi/include/ffi.h.vc64 +0 -427
  375. data/ext/ffi_c/libffi/src/arm/gentramp.sh +0 -118
  376. data/ext/ffi_c/libffi/src/arm/trampoline.S +0 -4450
  377. data/ext/ffi_c/libffi/src/x86/darwin.S +0 -444
  378. data/ext/ffi_c/libffi/src/x86/darwin64.S +0 -416
  379. data/ext/ffi_c/libffi/src/x86/freebsd.S +0 -458
  380. data/ext/ffi_c/libffi/src/x86/win32.S +0 -1065
  381. data/ext/ffi_c/libffi/testsuite/lib/libffi-dg.exp +0 -300
  382. data/ext/ffi_c/libffi/testsuite/libffi.call/many_win32.c +0 -63
  383. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen_win32.c +0 -44
  384. data/ext/ffi_c/libffi/testsuite/libffi.special/ffitestcxx.h +0 -96
@@ -1,7 +1,7 @@
1
- # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
1
+ # generated automatically by aclocal 1.15 -*- Autoconf -*-
2
+
3
+ # Copyright (C) 1996-2014 Free Software Foundation, Inc.
2
4
 
3
- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
- # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5
5
  # This file is free software; the Free Software Foundation
6
6
  # gives unlimited permission to copy and/or distribute it,
7
7
  # with or without modifications, as long as this notice is preserved.
@@ -11,24 +11,25 @@
11
11
  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
  # PARTICULAR PURPOSE.
13
13
 
14
+ m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14
15
  m4_ifndef([AC_AUTOCONF_VERSION],
15
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
- m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17
- [m4_warning([this file was generated for autoconf 2.68.
17
+ m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18
+ [m4_warning([this file was generated for autoconf 2.69.
18
19
  You have another version of autoconf. It may work, but is not guaranteed to.
19
20
  If you have problems, you may need to regenerate the build system entirely.
20
- To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
+ To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22
 
22
23
  # ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
23
24
  #
24
- # Copyright (C) 1999-2006, 2007, 2008 Free Software Foundation, Inc.
25
+ # Copyright (C) 1999-2008, 2011-2015 Free Software Foundation, Inc.
25
26
  # Written by Thomas Tanner, 1999
26
27
  #
27
28
  # This file is free software; the Free Software Foundation gives
28
29
  # unlimited permission to copy and/or distribute it, with or without
29
30
  # modifications, as long as this notice is preserved.
30
31
 
31
- # serial 18 LTDL_INIT
32
+ # serial 20 LTDL_INIT
32
33
 
33
34
  # LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
34
35
  # ------------------------------------------
@@ -45,14 +46,14 @@ m4_defun([_LT_CONFIG_LTDL_DIR],
45
46
  [dnl remove trailing slashes
46
47
  m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$]))
47
48
  m4_case(_LTDL_DIR,
48
- [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply `.'
49
+ [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply '.'
49
50
  m4_if(_ARG_DIR, [.],
50
51
  [],
51
52
  [m4_define([_LTDL_DIR], _ARG_DIR)
52
53
  _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])],
53
54
  [m4_if(_ARG_DIR, _LTDL_DIR,
54
55
  [],
55
- [m4_fatal([multiple libltdl directories: `]_LTDL_DIR[', `]_ARG_DIR['])])])
56
+ [m4_fatal([multiple libltdl directories: ']_LTDL_DIR[', ']_ARG_DIR['])])])
56
57
  m4_popdef([_ARG_DIR])
57
58
  ])# _LT_CONFIG_LTDL_DIR
58
59
 
@@ -62,16 +63,16 @@ m4_define([_LTDL_DIR], [])
62
63
 
63
64
  # _LT_BUILD_PREFIX
64
65
  # ----------------
65
- # If Autoconf is new enough, expand to `${top_build_prefix}', otherwise
66
- # to `${top_builddir}/'.
66
+ # If Autoconf is new enough, expand to '$(top_build_prefix)', otherwise
67
+ # to '$(top_builddir)/'.
67
68
  m4_define([_LT_BUILD_PREFIX],
68
69
  [m4_ifdef([AC_AUTOCONF_VERSION],
69
70
  [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]),
70
71
  [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX],
71
- [${top_build_prefix}],
72
- [${top_builddir}/])],
73
- [${top_build_prefix}])],
74
- [${top_builddir}/])[]dnl
72
+ [$(top_build_prefix)],
73
+ [$(top_builddir)/])],
74
+ [$(top_build_prefix)])],
75
+ [$(top_builddir)/])[]dnl
75
76
  ])
76
77
 
77
78
 
@@ -81,8 +82,8 @@ m4_define([_LT_BUILD_PREFIX],
81
82
  # LTDLINCL to the include flags for the libltdl header and adds
82
83
  # --enable-ltdl-convenience to the configure arguments. Note that
83
84
  # AC_CONFIG_SUBDIRS is not called here. LIBLTDL will be prefixed with
84
- # '${top_build_prefix}' if available, otherwise with '${top_builddir}/',
85
- # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
85
+ # '$(top_build_prefix)' if available, otherwise with '$(top_builddir)/',
86
+ # and LTDLINCL will be prefixed with '$(top_srcdir)/' (note the single
86
87
  # quotes!). If your package is not flat and you're not using automake,
87
88
  # define top_build_prefix, top_builddir, and top_srcdir appropriately
88
89
  # in your Makefiles.
@@ -118,14 +119,14 @@ m4_defun([_LTDL_CONVENIENCE],
118
119
  esac
119
120
  LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
120
121
  LTDLDEPS=$LIBLTDL
121
- LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
122
+ LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
122
123
 
123
124
  AC_SUBST([LIBLTDL])
124
125
  AC_SUBST([LTDLDEPS])
125
126
  AC_SUBST([LTDLINCL])
126
127
 
127
128
  # For backwards non-gettext consistent compatibility...
128
- INCLTDL="$LTDLINCL"
129
+ INCLTDL=$LTDLINCL
129
130
  AC_SUBST([INCLTDL])
130
131
  ])# _LTDL_CONVENIENCE
131
132
 
@@ -136,9 +137,9 @@ AC_SUBST([INCLTDL])
136
137
  # and LTDLINCL to the include flags for the libltdl header and adds
137
138
  # --enable-ltdl-install to the configure arguments. Note that
138
139
  # AC_CONFIG_SUBDIRS is not called from here. If an installed libltdl
139
- # is not found, LIBLTDL will be prefixed with '${top_build_prefix}' if
140
- # available, otherwise with '${top_builddir}/', and LTDLINCL will be
141
- # prefixed with '${top_srcdir}/' (note the single quotes!). If your
140
+ # is not found, LIBLTDL will be prefixed with '$(top_build_prefix)' if
141
+ # available, otherwise with '$(top_builddir)/', and LTDLINCL will be
142
+ # prefixed with '$(top_srcdir)/' (note the single quotes!). If your
142
143
  # package is not flat and you're not using automake, define top_build_prefix,
143
144
  # top_builddir, and top_srcdir appropriately in your Makefiles.
144
145
  # In the future, this macro may have to be called after LT_INIT.
@@ -167,18 +168,18 @@ dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [])
167
168
  # -----------------
168
169
  # Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]).
169
170
  m4_defun([_LTDL_INSTALLABLE],
170
- [if test -f $prefix/lib/libltdl.la; then
171
- lt_save_LDFLAGS="$LDFLAGS"
171
+ [if test -f "$prefix/lib/libltdl.la"; then
172
+ lt_save_LDFLAGS=$LDFLAGS
172
173
  LDFLAGS="-L$prefix/lib $LDFLAGS"
173
174
  AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes])
174
- LDFLAGS="$lt_save_LDFLAGS"
175
- if test x"${lt_lib_ltdl-no}" = xyes; then
176
- if test x"$enable_ltdl_install" != xyes; then
175
+ LDFLAGS=$lt_save_LDFLAGS
176
+ if test yes = "${lt_lib_ltdl-no}"; then
177
+ if test yes != "$enable_ltdl_install"; then
177
178
  # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
178
- AC_MSG_WARN([not overwriting libltdl at $prefix, force with `--enable-ltdl-install'])
179
+ AC_MSG_WARN([not overwriting libltdl at $prefix, force with '--enable-ltdl-install'])
179
180
  enable_ltdl_install=no
180
181
  fi
181
- elif test x"$enable_ltdl_install" = xno; then
182
+ elif test no = "$enable_ltdl_install"; then
182
183
  AC_MSG_WARN([libltdl not installed, but installation disabled])
183
184
  fi
184
185
  fi
@@ -187,7 +188,7 @@ fi
187
188
  # with --disable-ltdl-install, we will install the shipped libltdl.
188
189
  case $enable_ltdl_install in
189
190
  no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
190
- LIBLTDL="-lltdl"
191
+ LIBLTDL=-lltdl
191
192
  LTDLDEPS=
192
193
  LTDLINCL=
193
194
  ;;
@@ -195,7 +196,7 @@ case $enable_ltdl_install in
195
196
  ac_configure_args="$ac_configure_args --enable-ltdl-install"
196
197
  LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
197
198
  LTDLDEPS=$LIBLTDL
198
- LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
199
+ LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
199
200
  ;;
200
201
  esac
201
202
 
@@ -204,7 +205,7 @@ AC_SUBST([LTDLDEPS])
204
205
  AC_SUBST([LTDLINCL])
205
206
 
206
207
  # For backwards non-gettext consistent compatibility...
207
- INCLTDL="$LTDLINCL"
208
+ INCLTDL=$LTDLINCL
208
209
  AC_SUBST([INCLTDL])
209
210
  ])# LTDL_INSTALLABLE
210
211
 
@@ -212,14 +213,14 @@ AC_SUBST([INCLTDL])
212
213
  # _LTDL_MODE_DISPATCH
213
214
  # -------------------
214
215
  m4_define([_LTDL_MODE_DISPATCH],
215
- [dnl If _LTDL_DIR is `.', then we are configuring libltdl itself:
216
+ [dnl If _LTDL_DIR is '.', then we are configuring libltdl itself:
216
217
  m4_if(_LTDL_DIR, [],
217
218
  [],
218
- dnl if _LTDL_MODE was not set already, the default value is `subproject':
219
+ dnl if _LTDL_MODE was not set already, the default value is 'subproject':
219
220
  [m4_case(m4_default(_LTDL_MODE, [subproject]),
220
221
  [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR)
221
- _LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"])],
222
- [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"])],
222
+ _LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir])],
223
+ [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir; lt_libobj_prefix=$lt_ltdl_dir/])],
223
224
  [recursive], [],
224
225
  [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl
225
226
  dnl Be careful not to expand twice:
@@ -264,7 +265,7 @@ AC_ARG_WITH([included_ltdl],
264
265
  [AS_HELP_STRING([--with-included-ltdl],
265
266
  [use the GNU ltdl sources included here])])
266
267
 
267
- if test "x$with_included_ltdl" != xyes; then
268
+ if test yes != "$with_included_ltdl"; then
268
269
  # We are not being forced to use the included libltdl sources, so
269
270
  # decide whether there is a useful installed version we can use.
270
271
  AC_CHECK_HEADER([ltdl.h],
@@ -292,7 +293,7 @@ AC_ARG_WITH([ltdl_include],
292
293
  if test -n "$with_ltdl_include"; then
293
294
  if test -f "$with_ltdl_include/ltdl.h"; then :
294
295
  else
295
- AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include'])
296
+ AC_MSG_ERROR([invalid ltdl include directory: '$with_ltdl_include'])
296
297
  fi
297
298
  else
298
299
  with_ltdl_include=no
@@ -305,7 +306,7 @@ AC_ARG_WITH([ltdl_lib],
305
306
  if test -n "$with_ltdl_lib"; then
306
307
  if test -f "$with_ltdl_lib/libltdl.la"; then :
307
308
  else
308
- AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib'])
309
+ AC_MSG_ERROR([invalid ltdl library directory: '$with_ltdl_lib'])
309
310
  fi
310
311
  else
311
312
  with_ltdl_lib=no
@@ -328,15 +329,15 @@ case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
328
329
  LTDLINCL=
329
330
  ;;
330
331
  ,no*,no,*)
331
- AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together])
332
+ AC_MSG_ERROR(['--with-ltdl-include' and '--with-ltdl-lib' options must be used together])
332
333
  ;;
333
334
  *) with_included_ltdl=no
334
335
  LIBLTDL="-L$with_ltdl_lib -lltdl"
335
336
  LTDLDEPS=
336
- LTDLINCL="-I$with_ltdl_include"
337
+ LTDLINCL=-I$with_ltdl_include
337
338
  ;;
338
339
  esac
339
- INCLTDL="$LTDLINCL"
340
+ INCLTDL=$LTDLINCL
340
341
 
341
342
  # Report our decision...
342
343
  AC_MSG_CHECKING([where to find libltdl headers])
@@ -394,7 +395,7 @@ AC_REQUIRE([LT_LIB_DLLOAD])dnl
394
395
  AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
395
396
  AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl
396
397
  AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl
397
- AC_REQUIRE([gl_FUNC_ARGZ])dnl
398
+ AC_REQUIRE([LT_FUNC_ARGZ])dnl
398
399
 
399
400
  m4_require([_LT_CHECK_OBJDIR])dnl
400
401
  m4_require([_LT_HEADER_DLFCN])dnl
@@ -418,7 +419,7 @@ m4_pattern_allow([^LT_CONFIG_H$])dnl
418
419
  m4_ifset([AH_HEADER],
419
420
  [LT_CONFIG_H=AH_HEADER],
420
421
  [m4_ifset([AC_LIST_HEADERS],
421
- [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[ ]]*,,;s,[[ :]].*$,,'`],
422
+ [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's|^[[ ]]*||;s|[[ :]].*$||'`],
422
423
  [])])])
423
424
  AC_SUBST([LT_CONFIG_H])
424
425
 
@@ -448,14 +449,14 @@ m4_define([_LT_ENABLE_INSTALL],
448
449
  [AC_ARG_ENABLE([ltdl-install],
449
450
  [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])])
450
451
 
451
- case ,${enable_ltdl_install},${enable_ltdl_convenience} in
452
+ case ,$enable_ltdl_install,$enable_ltdl_convenience in
452
453
  *yes*) ;;
453
454
  *) enable_ltdl_convenience=yes ;;
454
455
  esac
455
456
 
456
457
  m4_ifdef([AM_CONDITIONAL],
457
- [AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno)
458
- AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)])
458
+ [AM_CONDITIONAL(INSTALL_LTDL, test no != "${enable_ltdl_install-no}")
459
+ AM_CONDITIONAL(CONVENIENCE_LTDL, test no != "${enable_ltdl_convenience-no}")])
459
460
  ])# _LT_ENABLE_INSTALL
460
461
 
461
462
 
@@ -473,7 +474,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
473
474
  case $host_os in
474
475
  aix3*|aix4.1.*|aix4.2.*)
475
476
  # Unknown whether this is true for these versions of AIX, but
476
- # we want this `case' here to explicitly catch those versions.
477
+ # we want this 'case' here to explicitly catch those versions.
477
478
  lt_cv_sys_dlopen_deplibs=unknown
478
479
  ;;
479
480
  aix[[4-9]]*)
@@ -486,6 +487,9 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
486
487
  ;;
487
488
  esac
488
489
  ;;
490
+ bitrig*)
491
+ lt_cv_sys_dlopen_deplibs=yes
492
+ ;;
489
493
  darwin*)
490
494
  # Assuming the user has installed a libdl from somewhere, this is true
491
495
  # If you are looking for one http://www.opendarwin.org/projects/dlcompat
@@ -514,7 +518,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
514
518
  # at 6.2 and later dlopen does load deplibs.
515
519
  lt_cv_sys_dlopen_deplibs=yes
516
520
  ;;
517
- netbsd*)
521
+ netbsd* | netbsdelf*-gnu)
518
522
  lt_cv_sys_dlopen_deplibs=yes
519
523
  ;;
520
524
  openbsd*)
@@ -523,7 +527,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
523
527
  osf[[1234]]*)
524
528
  # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
525
529
  # it did *not* use an RPATH in a shared library to find objects the
526
- # library depends on, so we explicitly say `no'.
530
+ # library depends on, so we explicitly say 'no'.
527
531
  lt_cv_sys_dlopen_deplibs=no
528
532
  ;;
529
533
  osf5.0|osf5.0a|osf5.1)
@@ -532,14 +536,14 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
532
536
  # that the library depends on, but there's no easy way to know if that
533
537
  # patch is installed. Since this is the case, all we can really
534
538
  # say is unknown -- it depends on the patch being installed. If
535
- # it is, this changes to `yes'. Without it, it would be `no'.
539
+ # it is, this changes to 'yes'. Without it, it would be 'no'.
536
540
  lt_cv_sys_dlopen_deplibs=unknown
537
541
  ;;
538
542
  osf*)
539
543
  # the two cases above should catch all versions of osf <= 5.1. Read
540
544
  # the comments above for what we know about them.
541
545
  # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
542
- # is used to find them so we can finally say `yes'.
546
+ # is used to find them so we can finally say 'yes'.
543
547
  lt_cv_sys_dlopen_deplibs=yes
544
548
  ;;
545
549
  qnx*)
@@ -553,7 +557,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
553
557
  ;;
554
558
  esac
555
559
  ])
556
- if test "$lt_cv_sys_dlopen_deplibs" != yes; then
560
+ if test yes != "$lt_cv_sys_dlopen_deplibs"; then
557
561
  AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],
558
562
  [Define if the OS needs help to load dependent libraries for dlopen().])
559
563
  fi
@@ -569,17 +573,29 @@ dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [])
569
573
  # -----------------
570
574
  AC_DEFUN([LT_SYS_MODULE_EXT],
571
575
  [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
572
- AC_CACHE_CHECK([which extension is used for runtime loadable modules],
576
+ AC_CACHE_CHECK([what extension is used for runtime loadable modules],
573
577
  [libltdl_cv_shlibext],
574
578
  [
575
579
  module=yes
576
580
  eval libltdl_cv_shlibext=$shrext_cmds
581
+ module=no
582
+ eval libltdl_cv_shrext=$shrext_cmds
577
583
  ])
578
584
  if test -n "$libltdl_cv_shlibext"; then
579
585
  m4_pattern_allow([LT_MODULE_EXT])dnl
580
586
  AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"],
581
587
  [Define to the extension used for runtime loadable modules, say, ".so".])
582
588
  fi
589
+ if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
590
+ m4_pattern_allow([LT_SHARED_EXT])dnl
591
+ AC_DEFINE_UNQUOTED([LT_SHARED_EXT], ["$libltdl_cv_shrext"],
592
+ [Define to the shared library suffix, say, ".dylib".])
593
+ fi
594
+ if test -n "$shared_archive_member_spec"; then
595
+ m4_pattern_allow([LT_SHARED_LIB_MEMBER])dnl
596
+ AC_DEFINE_UNQUOTED([LT_SHARED_LIB_MEMBER], ["($shared_archive_member_spec.o)"],
597
+ [Define to the shared archive member specification, say "(shr.o)".])
598
+ fi
583
599
  ])# LT_SYS_MODULE_EXT
584
600
 
585
601
  # Old name:
@@ -592,8 +608,8 @@ dnl AC_DEFUN([AC_LTDL_SHLIBEXT], [])
592
608
  # ------------------
593
609
  AC_DEFUN([LT_SYS_MODULE_PATH],
594
610
  [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
595
- AC_CACHE_CHECK([which variable specifies run-time module search path],
596
- [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"])
611
+ AC_CACHE_CHECK([what variable specifies run-time module search path],
612
+ [lt_cv_module_path_var], [lt_cv_module_path_var=$shlibpath_var])
597
613
  if test -n "$lt_cv_module_path_var"; then
598
614
  m4_pattern_allow([LT_MODULE_PATH_VAR])dnl
599
615
  AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"],
@@ -613,14 +629,14 @@ AC_DEFUN([LT_SYS_DLSEARCH_PATH],
613
629
  [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
614
630
  AC_CACHE_CHECK([for the default library search path],
615
631
  [lt_cv_sys_dlsearch_path],
616
- [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"])
632
+ [lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec])
617
633
  if test -n "$lt_cv_sys_dlsearch_path"; then
618
634
  sys_dlsearch_path=
619
635
  for dir in $lt_cv_sys_dlsearch_path; do
620
636
  if test -z "$sys_dlsearch_path"; then
621
- sys_dlsearch_path="$dir"
637
+ sys_dlsearch_path=$dir
622
638
  else
623
- sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
639
+ sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
624
640
  fi
625
641
  done
626
642
  m4_pattern_allow([LT_DLSEARCH_PATH])dnl
@@ -647,7 +663,7 @@ AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
647
663
  libltdl_cv_preloaded_symbols=no
648
664
  fi
649
665
  ])
650
- if test x"$libltdl_cv_preloaded_symbols" = xyes; then
666
+ if test yes = "$libltdl_cv_preloaded_symbols"; then
651
667
  AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],
652
668
  [Define if libtool can extract symbol lists from object files.])
653
669
  fi
@@ -662,15 +678,16 @@ LT_DLLOADERS=
662
678
  AC_SUBST([LT_DLLOADERS])
663
679
 
664
680
  AC_LANG_PUSH([C])
681
+ lt_dlload_save_LIBS=$LIBS
665
682
 
666
683
  LIBADD_DLOPEN=
667
684
  AC_SEARCH_LIBS([dlopen], [dl],
668
685
  [AC_DEFINE([HAVE_LIBDL], [1],
669
686
  [Define if you have the libdl library or equivalent.])
670
- if test "$ac_cv_search_dlopen" != "none required" ; then
671
- LIBADD_DLOPEN="-ldl"
687
+ if test "$ac_cv_search_dlopen" != "none required"; then
688
+ LIBADD_DLOPEN=-ldl
672
689
  fi
673
- libltdl_cv_lib_dl_dlopen="yes"
690
+ libltdl_cv_lib_dl_dlopen=yes
674
691
  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
675
692
  [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H
676
693
  # include <dlfcn.h>
@@ -678,19 +695,19 @@ AC_SEARCH_LIBS([dlopen], [dl],
678
695
  ]], [[dlopen(0, 0);]])],
679
696
  [AC_DEFINE([HAVE_LIBDL], [1],
680
697
  [Define if you have the libdl library or equivalent.])
681
- libltdl_cv_func_dlopen="yes"
698
+ libltdl_cv_func_dlopen=yes
682
699
  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
683
700
  [AC_CHECK_LIB([svld], [dlopen],
684
701
  [AC_DEFINE([HAVE_LIBDL], [1],
685
702
  [Define if you have the libdl library or equivalent.])
686
- LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
703
+ LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
687
704
  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
688
- if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
705
+ if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
689
706
  then
690
- lt_save_LIBS="$LIBS"
707
+ lt_save_LIBS=$LIBS
691
708
  LIBS="$LIBS $LIBADD_DLOPEN"
692
709
  AC_CHECK_FUNCS([dlerror])
693
- LIBS="$lt_save_LIBS"
710
+ LIBS=$lt_save_LIBS
694
711
  fi
695
712
  AC_SUBST([LIBADD_DLOPEN])
696
713
 
@@ -703,7 +720,7 @@ AC_CHECK_FUNC([shl_load],
703
720
  [AC_DEFINE([HAVE_SHL_LOAD], [1],
704
721
  [Define if you have the shl_load function.])
705
722
  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
706
- LIBADD_SHL_LOAD="-ldld"])])
723
+ LIBADD_SHL_LOAD=-ldld])])
707
724
  AC_SUBST([LIBADD_SHL_LOAD])
708
725
 
709
726
  case $host_os in
@@ -717,7 +734,7 @@ darwin[[1567]].*)
717
734
  beos*)
718
735
  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
719
736
  ;;
720
- cygwin* | mingw* | os2* | pw32*)
737
+ cygwin* | mingw* | pw32*)
721
738
  AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]])
722
739
  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
723
740
  ;;
@@ -745,6 +762,7 @@ dnl This isn't used anymore, but set it for backwards compatibility
745
762
  LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
746
763
  AC_SUBST([LIBADD_DL])
747
764
 
765
+ LIBS=$lt_dlload_save_LIBS
748
766
  AC_LANG_POP
749
767
  ])# LT_LIB_DLLOAD
750
768
 
@@ -802,24 +820,106 @@ dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [])
802
820
  # LT_FUNC_DLSYM_USCORE
803
821
  # --------------------
804
822
  AC_DEFUN([LT_FUNC_DLSYM_USCORE],
805
- [AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
806
- if test x"$lt_cv_sys_symbol_underscore" = xyes; then
807
- if test x"$libltdl_cv_func_dlopen" = xyes ||
808
- test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
809
- AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
810
- [libltdl_cv_need_uscore],
811
- [libltdl_cv_need_uscore=unknown
812
- save_LIBS="$LIBS"
813
- LIBS="$LIBS $LIBADD_DLOPEN"
814
- _LT_TRY_DLOPEN_SELF(
815
- [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes],
816
- [], [libltdl_cv_need_uscore=cross])
817
- LIBS="$save_LIBS"
818
- ])
823
+ [AC_REQUIRE([_LT_COMPILER_PIC])dnl for lt_prog_compiler_wl
824
+ AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl for lt_cv_sys_symbol_underscore
825
+ AC_REQUIRE([LT_SYS_MODULE_EXT])dnl for libltdl_cv_shlibext
826
+ if test yes = "$lt_cv_sys_symbol_underscore"; then
827
+ if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
828
+ AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
829
+ [libltdl_cv_need_uscore],
830
+ [libltdl_cv_need_uscore=unknown
831
+ dlsym_uscore_save_LIBS=$LIBS
832
+ LIBS="$LIBS $LIBADD_DLOPEN"
833
+ libname=conftmod # stay within 8.3 filename limits!
834
+ cat >$libname.$ac_ext <<_LT_EOF
835
+ [#line $LINENO "configure"
836
+ #include "confdefs.h"
837
+ /* When -fvisibility=hidden is used, assume the code has been annotated
838
+ correspondingly for the symbols needed. */
839
+ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
840
+ int fnord () __attribute__((visibility("default")));
841
+ #endif
842
+ int fnord () { return 42; }]
843
+ _LT_EOF
844
+
845
+ # ltfn_module_cmds module_cmds
846
+ # Execute tilde-delimited MODULE_CMDS with environment primed for
847
+ # $module_cmds or $archive_cmds type content.
848
+ ltfn_module_cmds ()
849
+ {( # subshell avoids polluting parent global environment
850
+ module_cmds_save_ifs=$IFS; IFS='~'
851
+ for cmd in @S|@1; do
852
+ IFS=$module_cmds_save_ifs
853
+ libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
854
+ rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
855
+ major=; versuffix=; verstring=; deplibs=
856
+ ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
857
+ eval $cmd
858
+ done
859
+ IFS=$module_cmds_save_ifs
860
+ )}
861
+
862
+ # Compile a loadable module using libtool macro expansion results.
863
+ $CC $pic_flag -c $libname.$ac_ext
864
+ ltfn_module_cmds "${module_cmds:-$archive_cmds}"
865
+
866
+ # Try to fetch fnord with dlsym().
867
+ libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
868
+ cat >conftest.$ac_ext <<_LT_EOF
869
+ [#line $LINENO "configure"
870
+ #include "confdefs.h"
871
+ #if HAVE_DLFCN_H
872
+ #include <dlfcn.h>
873
+ #endif
874
+ #include <stdio.h>
875
+ #ifndef RTLD_GLOBAL
876
+ # ifdef DL_GLOBAL
877
+ # define RTLD_GLOBAL DL_GLOBAL
878
+ # else
879
+ # define RTLD_GLOBAL 0
880
+ # endif
881
+ #endif
882
+ #ifndef RTLD_NOW
883
+ # ifdef DL_NOW
884
+ # define RTLD_NOW DL_NOW
885
+ # else
886
+ # define RTLD_NOW 0
887
+ # endif
888
+ #endif
889
+ int main () {
890
+ void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
891
+ int status = $libltdl_dlunknown;
892
+ if (handle) {
893
+ if (dlsym (handle, "fnord"))
894
+ status = $libltdl_dlnouscore;
895
+ else {
896
+ if (dlsym (handle, "_fnord"))
897
+ status = $libltdl_dluscore;
898
+ else
899
+ puts (dlerror ());
900
+ }
901
+ dlclose (handle);
902
+ } else
903
+ puts (dlerror ());
904
+ return status;
905
+ }]
906
+ _LT_EOF
907
+ if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
908
+ (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
909
+ libltdl_status=$?
910
+ case x$libltdl_status in
911
+ x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
912
+ x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
913
+ x*) libltdl_cv_need_uscore=unknown ;;
914
+ esac
915
+ fi
916
+ rm -rf conftest* $libname*
917
+ LIBS=$dlsym_uscore_save_LIBS
918
+ ])
819
919
  fi
820
920
  fi
821
921
 
822
- if test x"$libltdl_cv_need_uscore" = xyes; then
922
+ if test yes = "$libltdl_cv_need_uscore"; then
823
923
  AC_DEFINE([NEED_USCORE], [1],
824
924
  [Define if dlsym() requires a leading underscore in symbol names.])
825
925
  fi
@@ -830,7 +930,7 @@ AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE])
830
930
  dnl aclocal-1.4 backwards compatibility:
831
931
  dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])
832
932
 
833
- # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
933
+ # Copyright (C) 2002-2014 Free Software Foundation, Inc.
834
934
  #
835
935
  # This file is free software; the Free Software Foundation
836
936
  # gives unlimited permission to copy and/or distribute it,
@@ -842,10 +942,10 @@ dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])
842
942
  # generated from the m4 files accompanying Automake X.Y.
843
943
  # (This private macro should not be called outside this file.)
844
944
  AC_DEFUN([AM_AUTOMAKE_VERSION],
845
- [am__api_version='1.11'
945
+ [am__api_version='1.15'
846
946
  dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
847
947
  dnl require some minimum version. Point them to the right macro.
848
- m4_if([$1], [1.11.1], [],
948
+ m4_if([$1], [1.15], [],
849
949
  [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
850
950
  ])
851
951
 
@@ -861,21 +961,19 @@ m4_define([_AM_AUTOCONF_VERSION], [])
861
961
  # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
862
962
  # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
863
963
  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
864
- [AM_AUTOMAKE_VERSION([1.11.1])dnl
964
+ [AM_AUTOMAKE_VERSION([1.15])dnl
865
965
  m4_ifndef([AC_AUTOCONF_VERSION],
866
966
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
867
967
  _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
868
968
 
869
969
  # Figure out how to run the assembler. -*- Autoconf -*-
870
970
 
871
- # Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
971
+ # Copyright (C) 2001-2014 Free Software Foundation, Inc.
872
972
  #
873
973
  # This file is free software; the Free Software Foundation
874
974
  # gives unlimited permission to copy and/or distribute it,
875
975
  # with or without modifications, as long as this notice is preserved.
876
976
 
877
- # serial 5
878
-
879
977
  # AM_PROG_AS
880
978
  # ----------
881
979
  AC_DEFUN([AM_PROG_AS],
@@ -890,15 +988,15 @@ _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
890
988
 
891
989
  # AM_AUX_DIR_EXPAND -*- Autoconf -*-
892
990
 
893
- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
991
+ # Copyright (C) 2001-2014 Free Software Foundation, Inc.
894
992
  #
895
993
  # This file is free software; the Free Software Foundation
896
994
  # gives unlimited permission to copy and/or distribute it,
897
995
  # with or without modifications, as long as this notice is preserved.
898
996
 
899
997
  # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
900
- # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
901
- # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
998
+ # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
999
+ # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
902
1000
  #
903
1001
  # Of course, Automake must honor this variable whenever it calls a
904
1002
  # tool from the auxiliary directory. The problem is that $srcdir (and
@@ -917,7 +1015,7 @@ _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
917
1015
  #
918
1016
  # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
919
1017
  # are both prefixed by $srcdir. In an in-source build this is usually
920
- # harmless because $srcdir is `.', but things will broke when you
1018
+ # harmless because $srcdir is '.', but things will broke when you
921
1019
  # start a VPATH build or use an absolute $srcdir.
922
1020
  #
923
1021
  # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
@@ -935,30 +1033,26 @@ _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
935
1033
  # configured tree to be moved without reconfiguration.
936
1034
 
937
1035
  AC_DEFUN([AM_AUX_DIR_EXPAND],
938
- [dnl Rely on autoconf to set up CDPATH properly.
939
- AC_PREREQ([2.50])dnl
940
- # expand $ac_aux_dir to an absolute path
941
- am_aux_dir=`cd $ac_aux_dir && pwd`
1036
+ [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
1037
+ # Expand $ac_aux_dir to an absolute path.
1038
+ am_aux_dir=`cd "$ac_aux_dir" && pwd`
942
1039
  ])
943
1040
 
944
1041
  # AM_CONDITIONAL -*- Autoconf -*-
945
1042
 
946
- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
947
- # Free Software Foundation, Inc.
1043
+ # Copyright (C) 1997-2014 Free Software Foundation, Inc.
948
1044
  #
949
1045
  # This file is free software; the Free Software Foundation
950
1046
  # gives unlimited permission to copy and/or distribute it,
951
1047
  # with or without modifications, as long as this notice is preserved.
952
1048
 
953
- # serial 9
954
-
955
1049
  # AM_CONDITIONAL(NAME, SHELL-CONDITION)
956
1050
  # -------------------------------------
957
1051
  # Define a conditional.
958
1052
  AC_DEFUN([AM_CONDITIONAL],
959
- [AC_PREREQ(2.52)dnl
960
- ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
961
- [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1053
+ [AC_PREREQ([2.52])dnl
1054
+ m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1055
+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
962
1056
  AC_SUBST([$1_TRUE])dnl
963
1057
  AC_SUBST([$1_FALSE])dnl
964
1058
  _AM_SUBST_NOTMAKE([$1_TRUE])dnl
@@ -977,16 +1071,14 @@ AC_CONFIG_COMMANDS_PRE(
977
1071
  Usually this means the macro was only invoked conditionally.]])
978
1072
  fi])])
979
1073
 
980
- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
981
- # Free Software Foundation, Inc.
1074
+ # Copyright (C) 1999-2014 Free Software Foundation, Inc.
982
1075
  #
983
1076
  # This file is free software; the Free Software Foundation
984
1077
  # gives unlimited permission to copy and/or distribute it,
985
1078
  # with or without modifications, as long as this notice is preserved.
986
1079
 
987
- # serial 10
988
1080
 
989
- # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1081
+ # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
990
1082
  # written in clear, in which case automake, when reading aclocal.m4,
991
1083
  # will think it sees a *use*, and therefore will trigger all it's
992
1084
  # C support machinery. Also note that it means that autoscan, seeing
@@ -996,7 +1088,7 @@ fi])])
996
1088
  # _AM_DEPENDENCIES(NAME)
997
1089
  # ----------------------
998
1090
  # See how the compiler implements dependency checking.
999
- # NAME is "CC", "CXX", "GCJ", or "OBJC".
1091
+ # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
1000
1092
  # We try a few techniques and use that to set a single cache variable.
1001
1093
  #
1002
1094
  # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
@@ -1009,12 +1101,13 @@ AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1009
1101
  AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1010
1102
  AC_REQUIRE([AM_DEP_TRACK])dnl
1011
1103
 
1012
- ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1013
- [$1], CXX, [depcc="$CXX" am_compiler_list=],
1014
- [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1015
- [$1], UPC, [depcc="$UPC" am_compiler_list=],
1016
- [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1017
- [depcc="$$1" am_compiler_list=])
1104
+ m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
1105
+ [$1], [CXX], [depcc="$CXX" am_compiler_list=],
1106
+ [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1107
+ [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
1108
+ [$1], [UPC], [depcc="$UPC" am_compiler_list=],
1109
+ [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1110
+ [depcc="$$1" am_compiler_list=])
1018
1111
 
1019
1112
  AC_CACHE_CHECK([dependency style of $depcc],
1020
1113
  [am_cv_$1_dependencies_compiler_type],
@@ -1022,8 +1115,9 @@ AC_CACHE_CHECK([dependency style of $depcc],
1022
1115
  # We make a subdir and do the tests there. Otherwise we can end up
1023
1116
  # making bogus files that we don't know about and never remove. For
1024
1117
  # instance it was reported that on HP-UX the gcc test will end up
1025
- # making a dummy file named `D' -- because `-MD' means `put the output
1026
- # in D'.
1118
+ # making a dummy file named 'D' -- because '-MD' means "put the output
1119
+ # in D".
1120
+ rm -rf conftest.dir
1027
1121
  mkdir conftest.dir
1028
1122
  # Copy depcomp to subdir because otherwise we won't find it if we're
1029
1123
  # using a relative directory.
@@ -1062,16 +1156,16 @@ AC_CACHE_CHECK([dependency style of $depcc],
1062
1156
  : > sub/conftest.c
1063
1157
  for i in 1 2 3 4 5 6; do
1064
1158
  echo '#include "conftst'$i'.h"' >> sub/conftest.c
1065
- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1066
- # Solaris 8's {/usr,}/bin/sh.
1067
- touch sub/conftst$i.h
1159
+ # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
1160
+ # Solaris 10 /bin/sh.
1161
+ echo '/* dummy */' > sub/conftst$i.h
1068
1162
  done
1069
1163
  echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1070
1164
 
1071
- # We check with `-c' and `-o' for the sake of the "dashmstdout"
1165
+ # We check with '-c' and '-o' for the sake of the "dashmstdout"
1072
1166
  # mode. It turns out that the SunPro C++ compiler does not properly
1073
- # handle `-M -o', and we need to detect this. Also, some Intel
1074
- # versions had trouble with output in subdirs
1167
+ # handle '-M -o', and we need to detect this. Also, some Intel
1168
+ # versions had trouble with output in subdirs.
1075
1169
  am__obj=sub/conftest.${OBJEXT-o}
1076
1170
  am__minus_obj="-o $am__obj"
1077
1171
  case $depmode in
@@ -1080,16 +1174,16 @@ AC_CACHE_CHECK([dependency style of $depcc],
1080
1174
  test "$am__universal" = false || continue
1081
1175
  ;;
1082
1176
  nosideeffect)
1083
- # after this tag, mechanisms are not by side-effect, so they'll
1084
- # only be used when explicitly requested
1177
+ # After this tag, mechanisms are not by side-effect, so they'll
1178
+ # only be used when explicitly requested.
1085
1179
  if test "x$enable_dependency_tracking" = xyes; then
1086
1180
  continue
1087
1181
  else
1088
1182
  break
1089
1183
  fi
1090
1184
  ;;
1091
- msvisualcpp | msvcmsys)
1092
- # This compiler won't grok `-c -o', but also, the minuso test has
1185
+ msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1186
+ # This compiler won't grok '-c -o', but also, the minuso test has
1093
1187
  # not run yet. These depmodes are late enough in the game, and
1094
1188
  # so weak that their functioning should not be impacted.
1095
1189
  am__obj=conftest.${OBJEXT-o}
@@ -1137,7 +1231,7 @@ AM_CONDITIONAL([am__fastdep$1], [
1137
1231
  # AM_SET_DEPDIR
1138
1232
  # -------------
1139
1233
  # Choose a directory name for dependency files.
1140
- # This macro is AC_REQUIREd in _AM_DEPENDENCIES
1234
+ # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
1141
1235
  AC_DEFUN([AM_SET_DEPDIR],
1142
1236
  [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1143
1237
  AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
@@ -1147,34 +1241,39 @@ AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1147
1241
  # AM_DEP_TRACK
1148
1242
  # ------------
1149
1243
  AC_DEFUN([AM_DEP_TRACK],
1150
- [AC_ARG_ENABLE(dependency-tracking,
1151
- [ --disable-dependency-tracking speeds up one-time build
1152
- --enable-dependency-tracking do not reject slow dependency extractors])
1244
+ [AC_ARG_ENABLE([dependency-tracking], [dnl
1245
+ AS_HELP_STRING(
1246
+ [--enable-dependency-tracking],
1247
+ [do not reject slow dependency extractors])
1248
+ AS_HELP_STRING(
1249
+ [--disable-dependency-tracking],
1250
+ [speeds up one-time build])])
1153
1251
  if test "x$enable_dependency_tracking" != xno; then
1154
1252
  am_depcomp="$ac_aux_dir/depcomp"
1155
1253
  AMDEPBACKSLASH='\'
1254
+ am__nodep='_no'
1156
1255
  fi
1157
1256
  AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1158
1257
  AC_SUBST([AMDEPBACKSLASH])dnl
1159
1258
  _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1259
+ AC_SUBST([am__nodep])dnl
1260
+ _AM_SUBST_NOTMAKE([am__nodep])dnl
1160
1261
  ])
1161
1262
 
1162
1263
  # Generate code to set up dependency tracking. -*- Autoconf -*-
1163
1264
 
1164
- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1165
- # Free Software Foundation, Inc.
1265
+ # Copyright (C) 1999-2014 Free Software Foundation, Inc.
1166
1266
  #
1167
1267
  # This file is free software; the Free Software Foundation
1168
1268
  # gives unlimited permission to copy and/or distribute it,
1169
1269
  # with or without modifications, as long as this notice is preserved.
1170
1270
 
1171
- #serial 5
1172
1271
 
1173
1272
  # _AM_OUTPUT_DEPENDENCY_COMMANDS
1174
1273
  # ------------------------------
1175
1274
  AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1176
1275
  [{
1177
- # Autoconf 2.62 quotes --file arguments for eval, but not when files
1276
+ # Older Autoconf quotes --file arguments for eval, but not when files
1178
1277
  # are listed without --file. Let's play safe and only enable the eval
1179
1278
  # if we detect the quoting.
1180
1279
  case $CONFIG_FILES in
@@ -1187,7 +1286,7 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1187
1286
  # Strip MF so we end up with the name of the file.
1188
1287
  mf=`echo "$mf" | sed -e 's/:.*$//'`
1189
1288
  # Check whether this is an Automake generated Makefile or not.
1190
- # We used to match only the files named `Makefile.in', but
1289
+ # We used to match only the files named 'Makefile.in', but
1191
1290
  # some people rename them; so instead we look at the file content.
1192
1291
  # Grep'ing the first line is not enough: some people post-process
1193
1292
  # each Makefile.in and add a new line on top of each file to say so.
@@ -1199,21 +1298,19 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1199
1298
  continue
1200
1299
  fi
1201
1300
  # Extract the definition of DEPDIR, am__include, and am__quote
1202
- # from the Makefile without running `make'.
1301
+ # from the Makefile without running 'make'.
1203
1302
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1204
1303
  test -z "$DEPDIR" && continue
1205
1304
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
1206
- test -z "am__include" && continue
1305
+ test -z "$am__include" && continue
1207
1306
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1208
- # When using ansi2knr, U may be empty or an underscore; expand it
1209
- U=`sed -n 's/^U = //p' < "$mf"`
1210
1307
  # Find all dependency output files, they are included files with
1211
1308
  # $(DEPDIR) in their names. We invoke sed twice because it is the
1212
1309
  # simplest approach to changing $(DEPDIR) to its actual value in the
1213
1310
  # expansion.
1214
1311
  for file in `sed -n "
1215
1312
  s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1216
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1313
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1217
1314
  # Make sure the directory exists.
1218
1315
  test -f "$dirpart/$file" && continue
1219
1316
  fdir=`AS_DIRNAME(["$file"])`
@@ -1231,7 +1328,7 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1231
1328
  # This macro should only be invoked once -- use via AC_REQUIRE.
1232
1329
  #
1233
1330
  # This code is only required when automatic dependency tracking
1234
- # is enabled. FIXME. This creates each `.P' file that we will
1331
+ # is enabled. FIXME. This creates each '.P' file that we will
1235
1332
  # need in order to bootstrap the dependency handling code.
1236
1333
  AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1237
1334
  [AC_CONFIG_COMMANDS([depfiles],
@@ -1241,18 +1338,21 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1241
1338
 
1242
1339
  # Do all the work for Automake. -*- Autoconf -*-
1243
1340
 
1244
- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1245
- # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1341
+ # Copyright (C) 1996-2014 Free Software Foundation, Inc.
1246
1342
  #
1247
1343
  # This file is free software; the Free Software Foundation
1248
1344
  # gives unlimited permission to copy and/or distribute it,
1249
1345
  # with or without modifications, as long as this notice is preserved.
1250
1346
 
1251
- # serial 16
1252
-
1253
1347
  # This macro actually does too much. Some checks are only needed if
1254
1348
  # your package does certain things. But this isn't really a big deal.
1255
1349
 
1350
+ dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
1351
+ m4_define([AC_PROG_CC],
1352
+ m4_defn([AC_PROG_CC])
1353
+ [_AM_PROG_CC_C_O
1354
+ ])
1355
+
1256
1356
  # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1257
1357
  # AM_INIT_AUTOMAKE([OPTIONS])
1258
1358
  # -----------------------------------------------
@@ -1265,7 +1365,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1265
1365
  # arguments mandatory, and then we can depend on a new Autoconf
1266
1366
  # release and drop the old call support.
1267
1367
  AC_DEFUN([AM_INIT_AUTOMAKE],
1268
- [AC_PREREQ([2.62])dnl
1368
+ [AC_PREREQ([2.65])dnl
1269
1369
  dnl Autoconf wants to disallow AM_ names. We explicitly allow
1270
1370
  dnl the ones we care about.
1271
1371
  m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
@@ -1294,33 +1394,42 @@ AC_SUBST([CYGPATH_W])
1294
1394
  # Define the identity of the package.
1295
1395
  dnl Distinguish between old-style and new-style calls.
1296
1396
  m4_ifval([$2],
1297
- [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1397
+ [AC_DIAGNOSE([obsolete],
1398
+ [$0: two- and three-arguments forms are deprecated.])
1399
+ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1298
1400
  AC_SUBST([PACKAGE], [$1])dnl
1299
1401
  AC_SUBST([VERSION], [$2])],
1300
1402
  [_AM_SET_OPTIONS([$1])dnl
1301
1403
  dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1302
- m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1404
+ m4_if(
1405
+ m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
1406
+ [ok:ok],,
1303
1407
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1304
1408
  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1305
1409
  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1306
1410
 
1307
1411
  _AM_IF_OPTION([no-define],,
1308
- [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1309
- AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1412
+ [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
1413
+ AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
1310
1414
 
1311
1415
  # Some tools Automake needs.
1312
1416
  AC_REQUIRE([AM_SANITY_CHECK])dnl
1313
1417
  AC_REQUIRE([AC_ARG_PROGRAM])dnl
1314
- AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1315
- AM_MISSING_PROG(AUTOCONF, autoconf)
1316
- AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1317
- AM_MISSING_PROG(AUTOHEADER, autoheader)
1318
- AM_MISSING_PROG(MAKEINFO, makeinfo)
1418
+ AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
1419
+ AM_MISSING_PROG([AUTOCONF], [autoconf])
1420
+ AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
1421
+ AM_MISSING_PROG([AUTOHEADER], [autoheader])
1422
+ AM_MISSING_PROG([MAKEINFO], [makeinfo])
1319
1423
  AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1320
1424
  AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1321
- AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1322
- # We need awk for the "check" target. The system "awk" is bad on
1323
- # some platforms.
1425
+ AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1426
+ # For better backward compatibility. To be removed once Automake 1.9.x
1427
+ # dies out for good. For more background, see:
1428
+ # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
1429
+ # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1430
+ AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
1431
+ # We need awk for the "check" target (and possibly the TAP driver). The
1432
+ # system "awk" is bad on some platforms.
1324
1433
  AC_REQUIRE([AC_PROG_AWK])dnl
1325
1434
  AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1326
1435
  AC_REQUIRE([AM_SET_LEADING_DOT])dnl
@@ -1329,34 +1438,82 @@ _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1329
1438
  [_AM_PROG_TAR([v7])])])
1330
1439
  _AM_IF_OPTION([no-dependencies],,
1331
1440
  [AC_PROVIDE_IFELSE([AC_PROG_CC],
1332
- [_AM_DEPENDENCIES(CC)],
1333
- [define([AC_PROG_CC],
1334
- defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1441
+ [_AM_DEPENDENCIES([CC])],
1442
+ [m4_define([AC_PROG_CC],
1443
+ m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
1335
1444
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
1336
- [_AM_DEPENDENCIES(CXX)],
1337
- [define([AC_PROG_CXX],
1338
- defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1445
+ [_AM_DEPENDENCIES([CXX])],
1446
+ [m4_define([AC_PROG_CXX],
1447
+ m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1339
1448
  AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1340
- [_AM_DEPENDENCIES(OBJC)],
1341
- [define([AC_PROG_OBJC],
1342
- defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1449
+ [_AM_DEPENDENCIES([OBJC])],
1450
+ [m4_define([AC_PROG_OBJC],
1451
+ m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
1452
+ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
1453
+ [_AM_DEPENDENCIES([OBJCXX])],
1454
+ [m4_define([AC_PROG_OBJCXX],
1455
+ m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
1343
1456
  ])
1344
- _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1345
- dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1346
- dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
1347
- dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1457
+ AC_REQUIRE([AM_SILENT_RULES])dnl
1458
+ dnl The testsuite driver may need to know about EXEEXT, so add the
1459
+ dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
1460
+ dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1348
1461
  AC_CONFIG_COMMANDS_PRE(dnl
1349
1462
  [m4_provide_if([_AM_COMPILER_EXEEXT],
1350
1463
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1464
+
1465
+ # POSIX will say in a future version that running "rm -f" with no argument
1466
+ # is OK; and we want to be able to make that assumption in our Makefile
1467
+ # recipes. So use an aggressive probe to check that the usage we want is
1468
+ # actually supported "in the wild" to an acceptable degree.
1469
+ # See automake bug#10828.
1470
+ # To make any issue more visible, cause the running configure to be aborted
1471
+ # by default if the 'rm' program in use doesn't match our expectations; the
1472
+ # user can still override this though.
1473
+ if rm -f && rm -fr && rm -rf; then : OK; else
1474
+ cat >&2 <<'END'
1475
+ Oops!
1476
+
1477
+ Your 'rm' program seems unable to run without file operands specified
1478
+ on the command line, even when the '-f' option is present. This is contrary
1479
+ to the behaviour of most rm programs out there, and not conforming with
1480
+ the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
1481
+
1482
+ Please tell bug-automake@gnu.org about your system, including the value
1483
+ of your $PATH and any error possibly output before this message. This
1484
+ can help us improve future automake versions.
1485
+
1486
+ END
1487
+ if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
1488
+ echo 'Configuration will proceed anyway, since you have set the' >&2
1489
+ echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
1490
+ echo >&2
1491
+ else
1492
+ cat >&2 <<'END'
1493
+ Aborting the configuration process, to ensure you take notice of the issue.
1494
+
1495
+ You can download and install GNU coreutils to get an 'rm' implementation
1496
+ that behaves properly: <http://www.gnu.org/software/coreutils/>.
1497
+
1498
+ If you want to complete the configuration process using your problematic
1499
+ 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
1500
+ to "yes", and re-run configure.
1501
+
1502
+ END
1503
+ AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
1504
+ fi
1505
+ fi
1506
+ dnl The trailing newline in this macro's definition is deliberate, for
1507
+ dnl backward compatibility and to allow trailing 'dnl'-style comments
1508
+ dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
1351
1509
  ])
1352
1510
 
1353
- dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1511
+ dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1354
1512
  dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1355
1513
  dnl mangled by Autoconf and run in a shell conditional statement.
1356
1514
  m4_define([_AC_COMPILER_EXEEXT],
1357
1515
  m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1358
1516
 
1359
-
1360
1517
  # When config.status generates a header, we must update the stamp-h file.
1361
1518
  # This file resides in the same directory as the config header
1362
1519
  # that is generated. The stamp files are numbered to have different names.
@@ -1378,7 +1535,7 @@ for _am_header in $config_headers :; do
1378
1535
  done
1379
1536
  echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1380
1537
 
1381
- # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
1538
+ # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1382
1539
  #
1383
1540
  # This file is free software; the Free Software Foundation
1384
1541
  # gives unlimited permission to copy and/or distribute it,
@@ -1389,7 +1546,7 @@ echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_co
1389
1546
  # Define $install_sh.
1390
1547
  AC_DEFUN([AM_PROG_INSTALL_SH],
1391
1548
  [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1392
- if test x"${install_sh}" != xset; then
1549
+ if test x"${install_sh+set}" != xset; then
1393
1550
  case $am_aux_dir in
1394
1551
  *\ * | *\ *)
1395
1552
  install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
@@ -1397,16 +1554,14 @@ if test x"${install_sh}" != xset; then
1397
1554
  install_sh="\${SHELL} $am_aux_dir/install-sh"
1398
1555
  esac
1399
1556
  fi
1400
- AC_SUBST(install_sh)])
1557
+ AC_SUBST([install_sh])])
1401
1558
 
1402
- # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1559
+ # Copyright (C) 2003-2014 Free Software Foundation, Inc.
1403
1560
  #
1404
1561
  # This file is free software; the Free Software Foundation
1405
1562
  # gives unlimited permission to copy and/or distribute it,
1406
1563
  # with or without modifications, as long as this notice is preserved.
1407
1564
 
1408
- # serial 2
1409
-
1410
1565
  # Check whether the underlying file-system supports filenames
1411
1566
  # with a leading dot. For instance MS-DOS doesn't.
1412
1567
  AC_DEFUN([AM_SET_LEADING_DOT],
@@ -1423,20 +1578,17 @@ AC_SUBST([am__leading_dot])])
1423
1578
  # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
1424
1579
  # From Jim Meyering
1425
1580
 
1426
- # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1427
- # Free Software Foundation, Inc.
1581
+ # Copyright (C) 1996-2014 Free Software Foundation, Inc.
1428
1582
  #
1429
1583
  # This file is free software; the Free Software Foundation
1430
1584
  # gives unlimited permission to copy and/or distribute it,
1431
1585
  # with or without modifications, as long as this notice is preserved.
1432
1586
 
1433
- # serial 5
1434
-
1435
1587
  # AM_MAINTAINER_MODE([DEFAULT-MODE])
1436
1588
  # ----------------------------------
1437
1589
  # Control maintainer-specific portions of Makefiles.
1438
- # Default is to disable them, unless `enable' is passed literally.
1439
- # For symmetry, `disable' may be passed as well. Anyway, the user
1590
+ # Default is to disable them, unless 'enable' is passed literally.
1591
+ # For symmetry, 'disable' may be passed as well. Anyway, the user
1440
1592
  # can override the default with the --enable/--disable switch.
1441
1593
  AC_DEFUN([AM_MAINTAINER_MODE],
1442
1594
  [m4_case(m4_default([$1], [disable]),
@@ -1444,13 +1596,14 @@ AC_DEFUN([AM_MAINTAINER_MODE],
1444
1596
  [disable], [m4_define([am_maintainer_other], [enable])],
1445
1597
  [m4_define([am_maintainer_other], [enable])
1446
1598
  m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1447
- AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
1599
+ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1448
1600
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1449
1601
  AC_ARG_ENABLE([maintainer-mode],
1450
- [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
1451
- (and sometimes confusing) to the casual installer],
1452
- [USE_MAINTAINER_MODE=$enableval],
1453
- [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1602
+ [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
1603
+ am_maintainer_other[ make rules and dependencies not useful
1604
+ (and sometimes confusing) to the casual installer])],
1605
+ [USE_MAINTAINER_MODE=$enableval],
1606
+ [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1454
1607
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1455
1608
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1456
1609
  MAINT=$MAINTAINER_MODE_TRUE
@@ -1458,18 +1611,14 @@ AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of
1458
1611
  ]
1459
1612
  )
1460
1613
 
1461
- AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1462
-
1463
1614
  # Check to see how 'make' treats includes. -*- Autoconf -*-
1464
1615
 
1465
- # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
1616
+ # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1466
1617
  #
1467
1618
  # This file is free software; the Free Software Foundation
1468
1619
  # gives unlimited permission to copy and/or distribute it,
1469
1620
  # with or without modifications, as long as this notice is preserved.
1470
1621
 
1471
- # serial 4
1472
-
1473
1622
  # AM_MAKE_INCLUDE()
1474
1623
  # -----------------
1475
1624
  # Check to see how make treats includes.
@@ -1487,7 +1636,7 @@ am__quote=
1487
1636
  _am_result=none
1488
1637
  # First try GNU make style include.
1489
1638
  echo "include confinc" > confmf
1490
- # Ignore all kinds of additional output from `make'.
1639
+ # Ignore all kinds of additional output from 'make'.
1491
1640
  case `$am_make -s -f confmf 2> /dev/null` in #(
1492
1641
  *the\ am__doit\ target*)
1493
1642
  am__include=include
@@ -1512,52 +1661,14 @@ AC_MSG_RESULT([$_am_result])
1512
1661
  rm -f confinc confmf
1513
1662
  ])
1514
1663
 
1515
- # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
1516
- # Free Software Foundation, Inc.
1517
- #
1518
- # This file is free software; the Free Software Foundation
1519
- # gives unlimited permission to copy and/or distribute it,
1520
- # with or without modifications, as long as this notice is preserved.
1521
-
1522
- # serial 6
1523
-
1524
- # AM_PROG_CC_C_O
1525
- # --------------
1526
- # Like AC_PROG_CC_C_O, but changed for automake.
1527
- AC_DEFUN([AM_PROG_CC_C_O],
1528
- [AC_REQUIRE([AC_PROG_CC_C_O])dnl
1529
- AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1530
- AC_REQUIRE_AUX_FILE([compile])dnl
1531
- # FIXME: we rely on the cache variable name because
1532
- # there is no other way.
1533
- set dummy $CC
1534
- am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1535
- eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1536
- if test "$am_t" != yes; then
1537
- # Losing compiler, so override with the script.
1538
- # FIXME: It is wrong to rewrite CC.
1539
- # But if we don't then we get into trouble of one sort or another.
1540
- # A longer-term fix would be to have automake use am__CC in this case,
1541
- # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1542
- CC="$am_aux_dir/compile $CC"
1543
- fi
1544
- dnl Make sure AC_PROG_CC is never called again, or it will override our
1545
- dnl setting of CC.
1546
- m4_define([AC_PROG_CC],
1547
- [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1548
- ])
1549
-
1550
1664
  # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1551
1665
 
1552
- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1553
- # Free Software Foundation, Inc.
1666
+ # Copyright (C) 1997-2014 Free Software Foundation, Inc.
1554
1667
  #
1555
1668
  # This file is free software; the Free Software Foundation
1556
1669
  # gives unlimited permission to copy and/or distribute it,
1557
1670
  # with or without modifications, as long as this notice is preserved.
1558
1671
 
1559
- # serial 6
1560
-
1561
1672
  # AM_MISSING_PROG(NAME, PROGRAM)
1562
1673
  # ------------------------------
1563
1674
  AC_DEFUN([AM_MISSING_PROG],
@@ -1565,11 +1676,10 @@ AC_DEFUN([AM_MISSING_PROG],
1565
1676
  $1=${$1-"${am_missing_run}$2"}
1566
1677
  AC_SUBST($1)])
1567
1678
 
1568
-
1569
1679
  # AM_MISSING_HAS_RUN
1570
1680
  # ------------------
1571
- # Define MISSING if not defined so far and test if it supports --run.
1572
- # If it does, set am_missing_run to use it, otherwise, to nothing.
1681
+ # Define MISSING if not defined so far and test if it is modern enough.
1682
+ # If it is, set am_missing_run to use it, otherwise, to nothing.
1573
1683
  AC_DEFUN([AM_MISSING_HAS_RUN],
1574
1684
  [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1575
1685
  AC_REQUIRE_AUX_FILE([missing])dnl
@@ -1582,63 +1692,35 @@ if test x"${MISSING+set}" != xset; then
1582
1692
  esac
1583
1693
  fi
1584
1694
  # Use eval to expand $SHELL
1585
- if eval "$MISSING --run true"; then
1586
- am_missing_run="$MISSING --run "
1695
+ if eval "$MISSING --is-lightweight"; then
1696
+ am_missing_run="$MISSING "
1587
1697
  else
1588
1698
  am_missing_run=
1589
- AC_MSG_WARN([`missing' script is too old or missing])
1699
+ AC_MSG_WARN(['missing' script is too old or missing])
1590
1700
  fi
1591
1701
  ])
1592
1702
 
1593
- # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1594
- #
1595
- # This file is free software; the Free Software Foundation
1596
- # gives unlimited permission to copy and/or distribute it,
1597
- # with or without modifications, as long as this notice is preserved.
1598
-
1599
- # AM_PROG_MKDIR_P
1600
- # ---------------
1601
- # Check for `mkdir -p'.
1602
- AC_DEFUN([AM_PROG_MKDIR_P],
1603
- [AC_PREREQ([2.60])dnl
1604
- AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1605
- dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1606
- dnl while keeping a definition of mkdir_p for backward compatibility.
1607
- dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1608
- dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1609
- dnl Makefile.ins that do not define MKDIR_P, so we do our own
1610
- dnl adjustment using top_builddir (which is defined more often than
1611
- dnl MKDIR_P).
1612
- AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1613
- case $mkdir_p in
1614
- [[\\/$]]* | ?:[[\\/]]*) ;;
1615
- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1616
- esac
1617
- ])
1618
-
1619
1703
  # Helper functions for option handling. -*- Autoconf -*-
1620
1704
 
1621
- # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
1705
+ # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1622
1706
  #
1623
1707
  # This file is free software; the Free Software Foundation
1624
1708
  # gives unlimited permission to copy and/or distribute it,
1625
1709
  # with or without modifications, as long as this notice is preserved.
1626
1710
 
1627
- # serial 4
1628
-
1629
1711
  # _AM_MANGLE_OPTION(NAME)
1630
1712
  # -----------------------
1631
1713
  AC_DEFUN([_AM_MANGLE_OPTION],
1632
1714
  [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1633
1715
 
1634
1716
  # _AM_SET_OPTION(NAME)
1635
- # ------------------------------
1717
+ # --------------------
1636
1718
  # Set option NAME. Presently that only means defining a flag for this option.
1637
1719
  AC_DEFUN([_AM_SET_OPTION],
1638
- [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1720
+ [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1639
1721
 
1640
1722
  # _AM_SET_OPTIONS(OPTIONS)
1641
- # ----------------------------------
1723
+ # ------------------------
1642
1724
  # OPTIONS is a space-separated list of Automake options.
1643
1725
  AC_DEFUN([_AM_SET_OPTIONS],
1644
1726
  [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
@@ -1649,24 +1731,82 @@ AC_DEFUN([_AM_SET_OPTIONS],
1649
1731
  AC_DEFUN([_AM_IF_OPTION],
1650
1732
  [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1651
1733
 
1652
- # Check to make sure that the build environment is sane. -*- Autoconf -*-
1734
+ # Copyright (C) 1999-2014 Free Software Foundation, Inc.
1735
+ #
1736
+ # This file is free software; the Free Software Foundation
1737
+ # gives unlimited permission to copy and/or distribute it,
1738
+ # with or without modifications, as long as this notice is preserved.
1739
+
1740
+ # _AM_PROG_CC_C_O
1741
+ # ---------------
1742
+ # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1743
+ # to automatically call this.
1744
+ AC_DEFUN([_AM_PROG_CC_C_O],
1745
+ [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1746
+ AC_REQUIRE_AUX_FILE([compile])dnl
1747
+ AC_LANG_PUSH([C])dnl
1748
+ AC_CACHE_CHECK(
1749
+ [whether $CC understands -c and -o together],
1750
+ [am_cv_prog_cc_c_o],
1751
+ [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1752
+ # Make sure it works both with $CC and with simple cc.
1753
+ # Following AC_PROG_CC_C_O, we do the test twice because some
1754
+ # compilers refuse to overwrite an existing .o file with -o,
1755
+ # though they will create one.
1756
+ am_cv_prog_cc_c_o=yes
1757
+ for am_i in 1 2; do
1758
+ if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1759
+ && test -f conftest2.$ac_objext; then
1760
+ : OK
1761
+ else
1762
+ am_cv_prog_cc_c_o=no
1763
+ break
1764
+ fi
1765
+ done
1766
+ rm -f core conftest*
1767
+ unset am_i])
1768
+ if test "$am_cv_prog_cc_c_o" != yes; then
1769
+ # Losing compiler, so override with the script.
1770
+ # FIXME: It is wrong to rewrite CC.
1771
+ # But if we don't then we get into trouble of one sort or another.
1772
+ # A longer-term fix would be to have automake use am__CC in this case,
1773
+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1774
+ CC="$am_aux_dir/compile $CC"
1775
+ fi
1776
+ AC_LANG_POP([C])])
1777
+
1778
+ # For backward compatibility.
1779
+ AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1653
1780
 
1654
- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1655
- # Free Software Foundation, Inc.
1781
+ # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1656
1782
  #
1657
1783
  # This file is free software; the Free Software Foundation
1658
1784
  # gives unlimited permission to copy and/or distribute it,
1659
1785
  # with or without modifications, as long as this notice is preserved.
1660
1786
 
1661
- # serial 5
1787
+ # AM_RUN_LOG(COMMAND)
1788
+ # -------------------
1789
+ # Run COMMAND, save the exit status in ac_status, and log it.
1790
+ # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1791
+ AC_DEFUN([AM_RUN_LOG],
1792
+ [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1793
+ ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1794
+ ac_status=$?
1795
+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1796
+ (exit $ac_status); }])
1797
+
1798
+ # Check to make sure that the build environment is sane. -*- Autoconf -*-
1799
+
1800
+ # Copyright (C) 1996-2014 Free Software Foundation, Inc.
1801
+ #
1802
+ # This file is free software; the Free Software Foundation
1803
+ # gives unlimited permission to copy and/or distribute it,
1804
+ # with or without modifications, as long as this notice is preserved.
1662
1805
 
1663
1806
  # AM_SANITY_CHECK
1664
1807
  # ---------------
1665
1808
  AC_DEFUN([AM_SANITY_CHECK],
1666
1809
  [AC_MSG_CHECKING([whether build environment is sane])
1667
- # Just in case
1668
- sleep 1
1669
- echo timestamp > conftest.file
1670
1810
  # Reject unsafe characters in $srcdir or the absolute working directory
1671
1811
  # name. Accept space and tab only in the latter.
1672
1812
  am_lf='
@@ -1677,32 +1817,40 @@ case `pwd` in
1677
1817
  esac
1678
1818
  case $srcdir in
1679
1819
  *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1680
- AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1820
+ AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1681
1821
  esac
1682
1822
 
1683
- # Do `set' in a subshell so we don't clobber the current shell's
1823
+ # Do 'set' in a subshell so we don't clobber the current shell's
1684
1824
  # arguments. Must try -L first in case configure is actually a
1685
1825
  # symlink; some systems play weird games with the mod time of symlinks
1686
1826
  # (eg FreeBSD returns the mod time of the symlink's containing
1687
1827
  # directory).
1688
1828
  if (
1689
- set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1690
- if test "$[*]" = "X"; then
1691
- # -L didn't work.
1692
- set X `ls -t "$srcdir/configure" conftest.file`
1693
- fi
1694
- rm -f conftest.file
1695
- if test "$[*]" != "X $srcdir/configure conftest.file" \
1696
- && test "$[*]" != "X conftest.file $srcdir/configure"; then
1697
-
1698
- # If neither matched, then we have a broken ls. This can happen
1699
- # if, for instance, CONFIG_SHELL is bash and it inherits a
1700
- # broken ls alias from the environment. This has actually
1701
- # happened. Such a system could not be considered "sane".
1702
- AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1703
- alias in your environment])
1704
- fi
1705
-
1829
+ am_has_slept=no
1830
+ for am_try in 1 2; do
1831
+ echo "timestamp, slept: $am_has_slept" > conftest.file
1832
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1833
+ if test "$[*]" = "X"; then
1834
+ # -L didn't work.
1835
+ set X `ls -t "$srcdir/configure" conftest.file`
1836
+ fi
1837
+ if test "$[*]" != "X $srcdir/configure conftest.file" \
1838
+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
1839
+
1840
+ # If neither matched, then we have a broken ls. This can happen
1841
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
1842
+ # broken ls alias from the environment. This has actually
1843
+ # happened. Such a system could not be considered "sane".
1844
+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1845
+ alias in your environment])
1846
+ fi
1847
+ if test "$[2]" = conftest.file || test $am_try -eq 2; then
1848
+ break
1849
+ fi
1850
+ # Just in case.
1851
+ sleep 1
1852
+ am_has_slept=yes
1853
+ done
1706
1854
  test "$[2]" = conftest.file
1707
1855
  )
1708
1856
  then
@@ -1712,9 +1860,85 @@ else
1712
1860
  AC_MSG_ERROR([newly created file is older than distributed files!
1713
1861
  Check your system clock])
1714
1862
  fi
1715
- AC_MSG_RESULT(yes)])
1863
+ AC_MSG_RESULT([yes])
1864
+ # If we didn't sleep, we still need to ensure time stamps of config.status and
1865
+ # generated files are strictly newer.
1866
+ am_sleep_pid=
1867
+ if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1868
+ ( sleep 1 ) &
1869
+ am_sleep_pid=$!
1870
+ fi
1871
+ AC_CONFIG_COMMANDS_PRE(
1872
+ [AC_MSG_CHECKING([that generated files are newer than configure])
1873
+ if test -n "$am_sleep_pid"; then
1874
+ # Hide warnings about reused PIDs.
1875
+ wait $am_sleep_pid 2>/dev/null
1876
+ fi
1877
+ AC_MSG_RESULT([done])])
1878
+ rm -f conftest.file
1879
+ ])
1716
1880
 
1717
- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1881
+ # Copyright (C) 2009-2014 Free Software Foundation, Inc.
1882
+ #
1883
+ # This file is free software; the Free Software Foundation
1884
+ # gives unlimited permission to copy and/or distribute it,
1885
+ # with or without modifications, as long as this notice is preserved.
1886
+
1887
+ # AM_SILENT_RULES([DEFAULT])
1888
+ # --------------------------
1889
+ # Enable less verbose build rules; with the default set to DEFAULT
1890
+ # ("yes" being less verbose, "no" or empty being verbose).
1891
+ AC_DEFUN([AM_SILENT_RULES],
1892
+ [AC_ARG_ENABLE([silent-rules], [dnl
1893
+ AS_HELP_STRING(
1894
+ [--enable-silent-rules],
1895
+ [less verbose build output (undo: "make V=1")])
1896
+ AS_HELP_STRING(
1897
+ [--disable-silent-rules],
1898
+ [verbose build output (undo: "make V=0")])dnl
1899
+ ])
1900
+ case $enable_silent_rules in @%:@ (((
1901
+ yes) AM_DEFAULT_VERBOSITY=0;;
1902
+ no) AM_DEFAULT_VERBOSITY=1;;
1903
+ *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1904
+ esac
1905
+ dnl
1906
+ dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1907
+ dnl do not support nested variable expansions.
1908
+ dnl See automake bug#9928 and bug#10237.
1909
+ am_make=${MAKE-make}
1910
+ AC_CACHE_CHECK([whether $am_make supports nested variables],
1911
+ [am_cv_make_support_nested_variables],
1912
+ [if AS_ECHO([['TRUE=$(BAR$(V))
1913
+ BAR0=false
1914
+ BAR1=true
1915
+ V=1
1916
+ am__doit:
1917
+ @$(TRUE)
1918
+ .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1919
+ am_cv_make_support_nested_variables=yes
1920
+ else
1921
+ am_cv_make_support_nested_variables=no
1922
+ fi])
1923
+ if test $am_cv_make_support_nested_variables = yes; then
1924
+ dnl Using '$V' instead of '$(V)' breaks IRIX make.
1925
+ AM_V='$(V)'
1926
+ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1927
+ else
1928
+ AM_V=$AM_DEFAULT_VERBOSITY
1929
+ AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1930
+ fi
1931
+ AC_SUBST([AM_V])dnl
1932
+ AM_SUBST_NOTMAKE([AM_V])dnl
1933
+ AC_SUBST([AM_DEFAULT_V])dnl
1934
+ AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1935
+ AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1936
+ AM_BACKSLASH='\'
1937
+ AC_SUBST([AM_BACKSLASH])dnl
1938
+ _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1939
+ ])
1940
+
1941
+ # Copyright (C) 2001-2014 Free Software Foundation, Inc.
1718
1942
  #
1719
1943
  # This file is free software; the Free Software Foundation
1720
1944
  # gives unlimited permission to copy and/or distribute it,
@@ -1722,34 +1946,32 @@ AC_MSG_RESULT(yes)])
1722
1946
 
1723
1947
  # AM_PROG_INSTALL_STRIP
1724
1948
  # ---------------------
1725
- # One issue with vendor `install' (even GNU) is that you can't
1949
+ # One issue with vendor 'install' (even GNU) is that you can't
1726
1950
  # specify the program used to strip binaries. This is especially
1727
1951
  # annoying in cross-compiling environments, where the build's strip
1728
1952
  # is unlikely to handle the host's binaries.
1729
1953
  # Fortunately install-sh will honor a STRIPPROG variable, so we
1730
- # always use install-sh in `make install-strip', and initialize
1954
+ # always use install-sh in "make install-strip", and initialize
1731
1955
  # STRIPPROG with the value of the STRIP variable (set by the user).
1732
1956
  AC_DEFUN([AM_PROG_INSTALL_STRIP],
1733
1957
  [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1734
- # Installed binaries are usually stripped using `strip' when the user
1735
- # run `make install-strip'. However `strip' might not be the right
1958
+ # Installed binaries are usually stripped using 'strip' when the user
1959
+ # run "make install-strip". However 'strip' might not be the right
1736
1960
  # tool to use in cross-compilation environments, therefore Automake
1737
- # will honor the `STRIP' environment variable to overrule this program.
1738
- dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1961
+ # will honor the 'STRIP' environment variable to overrule this program.
1962
+ dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1739
1963
  if test "$cross_compiling" != no; then
1740
1964
  AC_CHECK_TOOL([STRIP], [strip], :)
1741
1965
  fi
1742
1966
  INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1743
1967
  AC_SUBST([INSTALL_STRIP_PROGRAM])])
1744
1968
 
1745
- # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1969
+ # Copyright (C) 2006-2014 Free Software Foundation, Inc.
1746
1970
  #
1747
1971
  # This file is free software; the Free Software Foundation
1748
1972
  # gives unlimited permission to copy and/or distribute it,
1749
1973
  # with or without modifications, as long as this notice is preserved.
1750
1974
 
1751
- # serial 2
1752
-
1753
1975
  # _AM_SUBST_NOTMAKE(VARIABLE)
1754
1976
  # ---------------------------
1755
1977
  # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
@@ -1757,24 +1979,22 @@ AC_SUBST([INSTALL_STRIP_PROGRAM])])
1757
1979
  AC_DEFUN([_AM_SUBST_NOTMAKE])
1758
1980
 
1759
1981
  # AM_SUBST_NOTMAKE(VARIABLE)
1760
- # ---------------------------
1982
+ # --------------------------
1761
1983
  # Public sister of _AM_SUBST_NOTMAKE.
1762
1984
  AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1763
1985
 
1764
1986
  # Check how to create a tarball. -*- Autoconf -*-
1765
1987
 
1766
- # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1988
+ # Copyright (C) 2004-2014 Free Software Foundation, Inc.
1767
1989
  #
1768
1990
  # This file is free software; the Free Software Foundation
1769
1991
  # gives unlimited permission to copy and/or distribute it,
1770
1992
  # with or without modifications, as long as this notice is preserved.
1771
1993
 
1772
- # serial 2
1773
-
1774
1994
  # _AM_PROG_TAR(FORMAT)
1775
1995
  # --------------------
1776
1996
  # Check how to create a tarball in format FORMAT.
1777
- # FORMAT should be one of `v7', `ustar', or `pax'.
1997
+ # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1778
1998
  #
1779
1999
  # Substitute a variable $(am__tar) that is a command
1780
2000
  # writing to stdout a FORMAT-tarball containing the directory
@@ -1784,82 +2004,123 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1784
2004
  # Substitute a variable $(am__untar) that extract such
1785
2005
  # a tarball read from stdin.
1786
2006
  # $(am__untar) < result.tar
2007
+ #
1787
2008
  AC_DEFUN([_AM_PROG_TAR],
1788
- [# Always define AMTAR for backward compatibility.
1789
- AM_MISSING_PROG([AMTAR], [tar])
1790
- m4_if([$1], [v7],
1791
- [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1792
- [m4_case([$1], [ustar],, [pax],,
1793
- [m4_fatal([Unknown tar format])])
1794
- AC_MSG_CHECKING([how to create a $1 tar archive])
1795
- # Loop over all known methods to create a tar archive until one works.
2009
+ [# Always define AMTAR for backward compatibility. Yes, it's still used
2010
+ # in the wild :-( We should find a proper way to deprecate it ...
2011
+ AC_SUBST([AMTAR], ['$${TAR-tar}'])
2012
+
2013
+ # We'll loop over all known methods to create a tar archive until one works.
1796
2014
  _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1797
- _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1798
- # Do not fold the above two line into one, because Tru64 sh and
1799
- # Solaris sh will not grok spaces in the rhs of `-'.
1800
- for _am_tool in $_am_tools
1801
- do
1802
- case $_am_tool in
1803
- gnutar)
1804
- for _am_tar in tar gnutar gtar;
1805
- do
1806
- AM_RUN_LOG([$_am_tar --version]) && break
1807
- done
1808
- am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1809
- am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1810
- am__untar="$_am_tar -xf -"
1811
- ;;
1812
- plaintar)
1813
- # Must skip GNU tar: if it does not support --format= it doesn't create
1814
- # ustar tarball either.
1815
- (tar --version) >/dev/null 2>&1 && continue
1816
- am__tar='tar chf - "$$tardir"'
1817
- am__tar_='tar chf - "$tardir"'
1818
- am__untar='tar xf -'
1819
- ;;
1820
- pax)
1821
- am__tar='pax -L -x $1 -w "$$tardir"'
1822
- am__tar_='pax -L -x $1 -w "$tardir"'
1823
- am__untar='pax -r'
1824
- ;;
1825
- cpio)
1826
- am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1827
- am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1828
- am__untar='cpio -i -H $1 -d'
1829
- ;;
1830
- none)
1831
- am__tar=false
1832
- am__tar_=false
1833
- am__untar=false
1834
- ;;
1835
- esac
1836
2015
 
1837
- # If the value was cached, stop now. We just wanted to have am__tar
1838
- # and am__untar set.
1839
- test -n "${am_cv_prog_tar_$1}" && break
2016
+ m4_if([$1], [v7],
2017
+ [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
2018
+
2019
+ [m4_case([$1],
2020
+ [ustar],
2021
+ [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
2022
+ # There is notably a 21 bits limit for the UID and the GID. In fact,
2023
+ # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2024
+ # and bug#13588).
2025
+ am_max_uid=2097151 # 2^21 - 1
2026
+ am_max_gid=$am_max_uid
2027
+ # The $UID and $GID variables are not portable, so we need to resort
2028
+ # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
2029
+ # below are definitely unexpected, so allow the users to see them
2030
+ # (that is, avoid stderr redirection).
2031
+ am_uid=`id -u || echo unknown`
2032
+ am_gid=`id -g || echo unknown`
2033
+ AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
2034
+ if test $am_uid -le $am_max_uid; then
2035
+ AC_MSG_RESULT([yes])
2036
+ else
2037
+ AC_MSG_RESULT([no])
2038
+ _am_tools=none
2039
+ fi
2040
+ AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
2041
+ if test $am_gid -le $am_max_gid; then
2042
+ AC_MSG_RESULT([yes])
2043
+ else
2044
+ AC_MSG_RESULT([no])
2045
+ _am_tools=none
2046
+ fi],
2047
+
2048
+ [pax],
2049
+ [],
1840
2050
 
1841
- # tar/untar a dummy directory, and stop if the command works
1842
- rm -rf conftest.dir
1843
- mkdir conftest.dir
1844
- echo GrepMe > conftest.dir/file
1845
- AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
2051
+ [m4_fatal([Unknown tar format])])
2052
+
2053
+ AC_MSG_CHECKING([how to create a $1 tar archive])
2054
+
2055
+ # Go ahead even if we have the value already cached. We do so because we
2056
+ # need to set the values for the 'am__tar' and 'am__untar' variables.
2057
+ _am_tools=${am_cv_prog_tar_$1-$_am_tools}
2058
+
2059
+ for _am_tool in $_am_tools; do
2060
+ case $_am_tool in
2061
+ gnutar)
2062
+ for _am_tar in tar gnutar gtar; do
2063
+ AM_RUN_LOG([$_am_tar --version]) && break
2064
+ done
2065
+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
2066
+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
2067
+ am__untar="$_am_tar -xf -"
2068
+ ;;
2069
+ plaintar)
2070
+ # Must skip GNU tar: if it does not support --format= it doesn't create
2071
+ # ustar tarball either.
2072
+ (tar --version) >/dev/null 2>&1 && continue
2073
+ am__tar='tar chf - "$$tardir"'
2074
+ am__tar_='tar chf - "$tardir"'
2075
+ am__untar='tar xf -'
2076
+ ;;
2077
+ pax)
2078
+ am__tar='pax -L -x $1 -w "$$tardir"'
2079
+ am__tar_='pax -L -x $1 -w "$tardir"'
2080
+ am__untar='pax -r'
2081
+ ;;
2082
+ cpio)
2083
+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
2084
+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
2085
+ am__untar='cpio -i -H $1 -d'
2086
+ ;;
2087
+ none)
2088
+ am__tar=false
2089
+ am__tar_=false
2090
+ am__untar=false
2091
+ ;;
2092
+ esac
2093
+
2094
+ # If the value was cached, stop now. We just wanted to have am__tar
2095
+ # and am__untar set.
2096
+ test -n "${am_cv_prog_tar_$1}" && break
2097
+
2098
+ # tar/untar a dummy directory, and stop if the command works.
2099
+ rm -rf conftest.dir
2100
+ mkdir conftest.dir
2101
+ echo GrepMe > conftest.dir/file
2102
+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
2103
+ rm -rf conftest.dir
2104
+ if test -s conftest.tar; then
2105
+ AM_RUN_LOG([$am__untar <conftest.tar])
2106
+ AM_RUN_LOG([cat conftest.dir/file])
2107
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2108
+ fi
2109
+ done
1846
2110
  rm -rf conftest.dir
1847
- if test -s conftest.tar; then
1848
- AM_RUN_LOG([$am__untar <conftest.tar])
1849
- grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1850
- fi
1851
- done
1852
- rm -rf conftest.dir
1853
2111
 
1854
- AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1855
- AC_MSG_RESULT([$am_cv_prog_tar_$1])])
2112
+ AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
2113
+ AC_MSG_RESULT([$am_cv_prog_tar_$1])])
2114
+
1856
2115
  AC_SUBST([am__tar])
1857
2116
  AC_SUBST([am__untar])
1858
2117
  ]) # _AM_PROG_TAR
1859
2118
 
2119
+ m4_include([m4/asmcfi.m4])
2120
+ m4_include([m4/ax_append_flag.m4])
1860
2121
  m4_include([m4/ax_cc_maxopt.m4])
1861
2122
  m4_include([m4/ax_cflags_warn_all.m4])
1862
- m4_include([m4/ax_check_compiler_flags.m4])
2123
+ m4_include([m4/ax_check_compile_flag.m4])
1863
2124
  m4_include([m4/ax_compiler_vendor.m4])
1864
2125
  m4_include([m4/ax_configure_args.m4])
1865
2126
  m4_include([m4/ax_enable_builddir.m4])