vinted-memcached 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (210) hide show
  1. checksums.yaml +7 -0
  2. data/BENCHMARKS +142 -0
  3. data/CHANGELOG +176 -0
  4. data/Gemfile +11 -0
  5. data/Gemfile.lock +45 -0
  6. data/LICENSE +184 -0
  7. data/Manifest +209 -0
  8. data/README.rdoc +124 -0
  9. data/Rakefile +134 -0
  10. data/TODO +1 -0
  11. data/ext/extconf-make.rb +25 -0
  12. data/ext/extconf.rb +78 -0
  13. data/ext/libmemcached-0.32/AUTHORS +7 -0
  14. data/ext/libmemcached-0.32/COPYING +32 -0
  15. data/ext/libmemcached-0.32/ChangeLog +303 -0
  16. data/ext/libmemcached-0.32/INSTALL +302 -0
  17. data/ext/libmemcached-0.32/Makefile.am +36 -0
  18. data/ext/libmemcached-0.32/Makefile.in +911 -0
  19. data/ext/libmemcached-0.32/NEWS +1 -0
  20. data/ext/libmemcached-0.32/README +33 -0
  21. data/ext/libmemcached-0.32/THANKS +14 -0
  22. data/ext/libmemcached-0.32/TODO +11 -0
  23. data/ext/libmemcached-0.32/aclocal.m4 +2108 -0
  24. data/ext/libmemcached-0.32/clients/Makefile.am +80 -0
  25. data/ext/libmemcached-0.32/clients/Makefile.in +773 -0
  26. data/ext/libmemcached-0.32/clients/client_options.h +32 -0
  27. data/ext/libmemcached-0.32/clients/execute.c +64 -0
  28. data/ext/libmemcached-0.32/clients/execute.h +5 -0
  29. data/ext/libmemcached-0.32/clients/generator.c +74 -0
  30. data/ext/libmemcached-0.32/clients/generator.h +20 -0
  31. data/ext/libmemcached-0.32/clients/memcat.c +178 -0
  32. data/ext/libmemcached-0.32/clients/memcp.c +251 -0
  33. data/ext/libmemcached-0.32/clients/memdump.c +170 -0
  34. data/ext/libmemcached-0.32/clients/memerror.c +80 -0
  35. data/ext/libmemcached-0.32/clients/memflush.c +143 -0
  36. data/ext/libmemcached-0.32/clients/memrm.c +160 -0
  37. data/ext/libmemcached-0.32/clients/memslap.c +441 -0
  38. data/ext/libmemcached-0.32/clients/memstat.c +326 -0
  39. data/ext/libmemcached-0.32/clients/utilities.c +207 -0
  40. data/ext/libmemcached-0.32/clients/utilities.h +41 -0
  41. data/ext/libmemcached-0.32/config/compile +143 -0
  42. data/ext/libmemcached-0.32/config/config.guess +1561 -0
  43. data/ext/libmemcached-0.32/config/config.rpath +666 -0
  44. data/ext/libmemcached-0.32/config/config.sub +1686 -0
  45. data/ext/libmemcached-0.32/config/depcomp +630 -0
  46. data/ext/libmemcached-0.32/config/install-sh +520 -0
  47. data/ext/libmemcached-0.32/config/ltmain.sh +9636 -0
  48. data/ext/libmemcached-0.32/config/missing +376 -0
  49. data/ext/libmemcached-0.32/config.h.in +254 -0
  50. data/ext/libmemcached-0.32/configure +23843 -0
  51. data/ext/libmemcached-0.32/configure.ac +120 -0
  52. data/ext/libmemcached-0.32/libmemcached/Makefile.am +111 -0
  53. data/ext/libmemcached-0.32/libmemcached/Makefile.in +1069 -0
  54. data/ext/libmemcached-0.32/libmemcached/byteorder.c +31 -0
  55. data/ext/libmemcached-0.32/libmemcached/common.h +189 -0
  56. data/ext/libmemcached-0.32/libmemcached/crc.c +86 -0
  57. data/ext/libmemcached-0.32/libmemcached/hsieh_hash.c +68 -0
  58. data/ext/libmemcached-0.32/libmemcached/jenkins_hash.c +213 -0
  59. data/ext/libmemcached-0.32/libmemcached/libmemcached.ver +1 -0
  60. data/ext/libmemcached-0.32/libmemcached/libmemcached_probes.d +30 -0
  61. data/ext/libmemcached-0.32/libmemcached/libmemcached_probes.h +82 -0
  62. data/ext/libmemcached-0.32/libmemcached/md5.c +354 -0
  63. data/ext/libmemcached-0.32/libmemcached/memcached/README.txt +7 -0
  64. data/ext/libmemcached-0.32/libmemcached/memcached/protocol_binary.h +385 -0
  65. data/ext/libmemcached-0.32/libmemcached/memcached.c +153 -0
  66. data/ext/libmemcached-0.32/libmemcached/memcached.h +305 -0
  67. data/ext/libmemcached-0.32/libmemcached/memcached.hpp +799 -0
  68. data/ext/libmemcached-0.32/libmemcached/memcached_allocators.c +72 -0
  69. data/ext/libmemcached-0.32/libmemcached/memcached_analyze.c +100 -0
  70. data/ext/libmemcached-0.32/libmemcached/memcached_auto.c +207 -0
  71. data/ext/libmemcached-0.32/libmemcached/memcached_behavior.c +290 -0
  72. data/ext/libmemcached-0.32/libmemcached/memcached_callback.c +175 -0
  73. data/ext/libmemcached-0.32/libmemcached/memcached_configure.h.in +23 -0
  74. data/ext/libmemcached-0.32/libmemcached/memcached_connect.c +371 -0
  75. data/ext/libmemcached-0.32/libmemcached/memcached_constants.h +146 -0
  76. data/ext/libmemcached-0.32/libmemcached/memcached_delete.c +0 -0
  77. data/ext/libmemcached-0.32/libmemcached/memcached_do.c +72 -0
  78. data/ext/libmemcached-0.32/libmemcached/memcached_dump.c +79 -0
  79. data/ext/libmemcached-0.32/libmemcached/memcached_exist.c +114 -0
  80. data/ext/libmemcached-0.32/libmemcached/memcached_exist.h +20 -0
  81. data/ext/libmemcached-0.32/libmemcached/memcached_fetch.c +102 -0
  82. data/ext/libmemcached-0.32/libmemcached/memcached_flush.c +89 -0
  83. data/ext/libmemcached-0.32/libmemcached/memcached_flush_buffers.c +23 -0
  84. data/ext/libmemcached-0.32/libmemcached/memcached_get.c +494 -0
  85. data/ext/libmemcached-0.32/libmemcached/memcached_get.h +87 -0
  86. data/ext/libmemcached-0.32/libmemcached/memcached_hash.c +252 -0
  87. data/ext/libmemcached-0.32/libmemcached/memcached_hosts.c +510 -0
  88. data/ext/libmemcached-0.32/libmemcached/memcached_internal.h +31 -0
  89. data/ext/libmemcached-0.32/libmemcached/memcached_io.c +594 -0
  90. data/ext/libmemcached-0.32/libmemcached/memcached_io.h +72 -0
  91. data/ext/libmemcached-0.32/libmemcached/memcached_key.c +28 -0
  92. data/ext/libmemcached-0.32/libmemcached/memcached_parse.c +74 -0
  93. data/ext/libmemcached-0.32/libmemcached/memcached_pool.h +38 -0
  94. data/ext/libmemcached-0.32/libmemcached/memcached_purge.c +76 -0
  95. data/ext/libmemcached-0.32/libmemcached/memcached_quit.c +75 -0
  96. data/ext/libmemcached-0.32/libmemcached/memcached_response.c +529 -0
  97. data/ext/libmemcached-0.32/libmemcached/memcached_result.c +57 -0
  98. data/ext/libmemcached-0.32/libmemcached/memcached_result.h +59 -0
  99. data/ext/libmemcached-0.32/libmemcached/memcached_sasl.c +225 -0
  100. data/ext/libmemcached-0.32/libmemcached/memcached_sasl.h +44 -0
  101. data/ext/libmemcached-0.32/libmemcached/memcached_server.c +159 -0
  102. data/ext/libmemcached-0.32/libmemcached/memcached_server.h +93 -0
  103. data/ext/libmemcached-0.32/libmemcached/memcached_stats.c +437 -0
  104. data/ext/libmemcached-0.32/libmemcached/memcached_storage.c +514 -0
  105. data/ext/libmemcached-0.32/libmemcached/memcached_storage.h +107 -0
  106. data/ext/libmemcached-0.32/libmemcached/memcached_strerror.c +92 -0
  107. data/ext/libmemcached-0.32/libmemcached/memcached_string.c +138 -0
  108. data/ext/libmemcached-0.32/libmemcached/memcached_string.h +53 -0
  109. data/ext/libmemcached-0.32/libmemcached/memcached_touch.c +60 -0
  110. data/ext/libmemcached-0.32/libmemcached/memcached_touch.h +31 -0
  111. data/ext/libmemcached-0.32/libmemcached/memcached_types.h +44 -0
  112. data/ext/libmemcached-0.32/libmemcached/memcached_util.h +15 -0
  113. data/ext/libmemcached-0.32/libmemcached/memcached_verbosity.c +36 -0
  114. data/ext/libmemcached-0.32/libmemcached/memcached_version.c +112 -0
  115. data/ext/libmemcached-0.32/libmemcached/memcached_watchpoint.h +38 -0
  116. data/ext/libmemcached-0.32/libmemcached/murmur_hash.c +76 -0
  117. data/ext/libmemcached-0.32/libmemcached/visibility.h +51 -0
  118. data/ext/libmemcached-0.32/libmemcachedutil/Makefile.am +11 -0
  119. data/ext/libmemcached-0.32/libmemcachedutil/Makefile.in +604 -0
  120. data/ext/libmemcached-0.32/libmemcachedutil/libmemcachedutil.ver +1 -0
  121. data/ext/libmemcached-0.32/libmemcachedutil/memcached_pool.c +170 -0
  122. data/ext/libmemcached-0.32/m4/ac_cxx_compile_stdcxx_0x.m4 +103 -0
  123. data/ext/libmemcached-0.32/m4/ac_cxx_header_stdcxx_98.m4 +67 -0
  124. data/ext/libmemcached-0.32/m4/acx_pthread.m4 +276 -0
  125. data/ext/libmemcached-0.32/m4/byteorder.m4 +40 -0
  126. data/ext/libmemcached-0.32/m4/deprecated.m4 +17 -0
  127. data/ext/libmemcached-0.32/m4/enable_utillib.m4 +16 -0
  128. data/ext/libmemcached-0.32/m4/extensions.m4 +94 -0
  129. data/ext/libmemcached-0.32/m4/hsieh.m4 +18 -0
  130. data/ext/libmemcached-0.32/m4/lib-prefix.m4 +221 -0
  131. data/ext/libmemcached-0.32/m4/libtool.m4 +7831 -0
  132. data/ext/libmemcached-0.32/m4/ltoptions.m4 +369 -0
  133. data/ext/libmemcached-0.32/m4/ltsugar.m4 +123 -0
  134. data/ext/libmemcached-0.32/m4/ltversion.m4 +23 -0
  135. data/ext/libmemcached-0.32/m4/lt~obsolete.m4 +98 -0
  136. data/ext/libmemcached-0.32/m4/memcached.m4 +30 -0
  137. data/ext/libmemcached-0.32/m4/pandora_64bit.m4 +55 -0
  138. data/ext/libmemcached-0.32/m4/pandora_canonical.m4 +151 -0
  139. data/ext/libmemcached-0.32/m4/pandora_check_compiler_version.m4 +37 -0
  140. data/ext/libmemcached-0.32/m4/pandora_check_cxx_standard.m4 +16 -0
  141. data/ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4 +41 -0
  142. data/ext/libmemcached-0.32/m4/pandora_ensure_gcc_version.m4 +36 -0
  143. data/ext/libmemcached-0.32/m4/pandora_have_better_malloc.m4 +54 -0
  144. data/ext/libmemcached-0.32/m4/pandora_have_sasl.m4 +133 -0
  145. data/ext/libmemcached-0.32/m4/pandora_header_assert.m4 +23 -0
  146. data/ext/libmemcached-0.32/m4/pandora_libtool.m4 +15 -0
  147. data/ext/libmemcached-0.32/m4/pandora_optimize.m4 +79 -0
  148. data/ext/libmemcached-0.32/m4/pandora_shared_ptr.m4 +56 -0
  149. data/ext/libmemcached-0.32/m4/pandora_vc_build.m4 +32 -0
  150. data/ext/libmemcached-0.32/m4/pandora_warnings.m4 +262 -0
  151. data/ext/libmemcached-0.32/m4/pod2man.m4 +7 -0
  152. data/ext/libmemcached-0.32/m4/protocol_binary.m4 +23 -0
  153. data/ext/libmemcached-0.32/m4/setsockopt.m4 +57 -0
  154. data/ext/libmemcached-0.32/m4/visibility.m4 +52 -0
  155. data/ext/libmemcached-0.32/support/Makefile.am +4 -0
  156. data/ext/libmemcached-0.32/support/Makefile.in +487 -0
  157. data/ext/libmemcached-0.32/support/libmemcached-fc.spec.in +105 -0
  158. data/ext/libmemcached-0.32/support/libmemcached.pc.in +10 -0
  159. data/ext/libmemcached-0.32/support/libmemcached.spec +105 -0
  160. data/ext/libmemcached-0.32/support/libmemcached.spec.in +105 -0
  161. data/ext/libmemcached-0.32/support/set_benchmark.sh +5 -0
  162. data/ext/libmemcached-0.32/tests/Makefile.am +113 -0
  163. data/ext/libmemcached-0.32/tests/Makefile.in +762 -0
  164. data/ext/libmemcached-0.32/tests/atomsmasher.c +245 -0
  165. data/ext/libmemcached-0.32/tests/function.c +4904 -0
  166. data/ext/libmemcached-0.32/tests/ketama_test_cases.h +108 -0
  167. data/ext/libmemcached-0.32/tests/output.cmp +7 -0
  168. data/ext/libmemcached-0.32/tests/output.res +7 -0
  169. data/ext/libmemcached-0.32/tests/output2.res +46 -0
  170. data/ext/libmemcached-0.32/tests/plus.cpp +293 -0
  171. data/ext/libmemcached-0.32/tests/r/memcat.res +19 -0
  172. data/ext/libmemcached-0.32/tests/r/memcp.res +27 -0
  173. data/ext/libmemcached-0.32/tests/r/memrm.res +19 -0
  174. data/ext/libmemcached-0.32/tests/r/memslap.res +33 -0
  175. data/ext/libmemcached-0.32/tests/r/memstat.res +33 -0
  176. data/ext/libmemcached-0.32/tests/server.c +118 -0
  177. data/ext/libmemcached-0.32/tests/server.h +25 -0
  178. data/ext/libmemcached-0.32/tests/start.c +16 -0
  179. data/ext/libmemcached-0.32/tests/t/memcat.test +4 -0
  180. data/ext/libmemcached-0.32/tests/t/memcp.test +3 -0
  181. data/ext/libmemcached-0.32/tests/t/memrm.test +3 -0
  182. data/ext/libmemcached-0.32/tests/t/memslap.test +5 -0
  183. data/ext/libmemcached-0.32/tests/t/memstat.test +3 -0
  184. data/ext/libmemcached-0.32/tests/test.c +137 -0
  185. data/ext/libmemcached-0.32/tests/test.h +46 -0
  186. data/ext/libmemcached-0.32/tests/udp.c +76 -0
  187. data/ext/rlibmemcached.i +258 -0
  188. data/ext/rlibmemcached_wrap.c +13917 -0
  189. data/lib/memcached/auth.rb +16 -0
  190. data/lib/memcached/behaviors.rb +78 -0
  191. data/lib/memcached/exceptions.rb +84 -0
  192. data/lib/memcached/experimental.rb +48 -0
  193. data/lib/memcached/marshal_codec.rb +10 -0
  194. data/lib/memcached/memcached.rb +732 -0
  195. data/lib/memcached/rails.rb +250 -0
  196. data/lib/memcached.rb +33 -0
  197. data/memcached.gemspec +0 -0
  198. data/test/profile/benchmark.rb +280 -0
  199. data/test/profile/c_profiler.rb +14 -0
  200. data/test/profile/exercise.rb +185 -0
  201. data/test/profile/rb_profiler.rb +21 -0
  202. data/test/profile/valgrind.rb +10 -0
  203. data/test/setup.rb +30 -0
  204. data/test/teardown.rb +0 -0
  205. data/test/test_helper.rb +18 -0
  206. data/test/unit/binding_test.rb +8 -0
  207. data/test/unit/memcached_experimental_test.rb +272 -0
  208. data/test/unit/memcached_test.rb +1487 -0
  209. data/test/unit/rails_test.rb +330 -0
  210. metadata +336 -0
@@ -0,0 +1,2108 @@
1
+ # generated automatically by aclocal 1.14 -*- Autoconf -*-
2
+
3
+ # Copyright (C) 1996-2013 Free Software Foundation, Inc.
4
+
5
+ # This file is free software; the Free Software Foundation
6
+ # gives unlimited permission to copy and/or distribute it,
7
+ # with or without modifications, as long as this notice is preserved.
8
+
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
+ # PARTICULAR PURPOSE.
13
+
14
+ m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15
+ m4_ifndef([AC_AUTOCONF_VERSION],
16
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17
+ m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18
+ [m4_warning([this file was generated for autoconf 2.69.
19
+ You have another version of autoconf. It may work, but is not guaranteed to.
20
+ If you have problems, you may need to regenerate the build system entirely.
21
+ To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
+
23
+ # lib-ld.m4 serial 6
24
+ dnl Copyright (C) 1996-2003, 2009-2013 Free Software Foundation, Inc.
25
+ dnl This file is free software; the Free Software Foundation
26
+ dnl gives unlimited permission to copy and/or distribute it,
27
+ dnl with or without modifications, as long as this notice is preserved.
28
+
29
+ dnl Subroutines of libtool.m4,
30
+ dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid
31
+ dnl collision with libtool.m4.
32
+
33
+ dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no.
34
+ AC_DEFUN([AC_LIB_PROG_LD_GNU],
35
+ [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
36
+ [# I'd rather use --version here, but apparently some GNU lds only accept -v.
37
+ case `$LD -v 2>&1 </dev/null` in
38
+ *GNU* | *'with BFD'*)
39
+ acl_cv_prog_gnu_ld=yes
40
+ ;;
41
+ *)
42
+ acl_cv_prog_gnu_ld=no
43
+ ;;
44
+ esac])
45
+ with_gnu_ld=$acl_cv_prog_gnu_ld
46
+ ])
47
+
48
+ dnl From libtool-2.4. Sets the variable LD.
49
+ AC_DEFUN([AC_LIB_PROG_LD],
50
+ [AC_REQUIRE([AC_PROG_CC])dnl
51
+ AC_REQUIRE([AC_CANONICAL_HOST])dnl
52
+
53
+ AC_ARG_WITH([gnu-ld],
54
+ [AS_HELP_STRING([--with-gnu-ld],
55
+ [assume the C compiler uses GNU ld [default=no]])],
56
+ [test "$withval" = no || with_gnu_ld=yes],
57
+ [with_gnu_ld=no])dnl
58
+
59
+ # Prepare PATH_SEPARATOR.
60
+ # The user is always right.
61
+ if test "${PATH_SEPARATOR+set}" != set; then
62
+ # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
63
+ # contains only /bin. Note that ksh looks also at the FPATH variable,
64
+ # so we have to set that as well for the test.
65
+ PATH_SEPARATOR=:
66
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
67
+ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
68
+ || PATH_SEPARATOR=';'
69
+ }
70
+ fi
71
+
72
+ ac_prog=ld
73
+ if test "$GCC" = yes; then
74
+ # Check if gcc -print-prog-name=ld gives a path.
75
+ AC_MSG_CHECKING([for ld used by $CC])
76
+ case $host in
77
+ *-*-mingw*)
78
+ # gcc leaves a trailing carriage return which upsets mingw
79
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
80
+ *)
81
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
82
+ esac
83
+ case $ac_prog in
84
+ # Accept absolute paths.
85
+ [[\\/]]* | ?:[[\\/]]*)
86
+ re_direlt='/[[^/]][[^/]]*/\.\./'
87
+ # Canonicalize the pathname of ld
88
+ ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
89
+ while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
90
+ ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
91
+ done
92
+ test -z "$LD" && LD="$ac_prog"
93
+ ;;
94
+ "")
95
+ # If it fails, then pretend we aren't using GCC.
96
+ ac_prog=ld
97
+ ;;
98
+ *)
99
+ # If it is relative, then search for the first ld in PATH.
100
+ with_gnu_ld=unknown
101
+ ;;
102
+ esac
103
+ elif test "$with_gnu_ld" = yes; then
104
+ AC_MSG_CHECKING([for GNU ld])
105
+ else
106
+ AC_MSG_CHECKING([for non-GNU ld])
107
+ fi
108
+ AC_CACHE_VAL([acl_cv_path_LD],
109
+ [if test -z "$LD"; then
110
+ acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
111
+ for ac_dir in $PATH; do
112
+ IFS="$acl_save_ifs"
113
+ test -z "$ac_dir" && ac_dir=.
114
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
115
+ acl_cv_path_LD="$ac_dir/$ac_prog"
116
+ # Check to see if the program is GNU ld. I'd rather use --version,
117
+ # but apparently some variants of GNU ld only accept -v.
118
+ # Break only if it was the GNU/non-GNU ld that we prefer.
119
+ case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
120
+ *GNU* | *'with BFD'*)
121
+ test "$with_gnu_ld" != no && break
122
+ ;;
123
+ *)
124
+ test "$with_gnu_ld" != yes && break
125
+ ;;
126
+ esac
127
+ fi
128
+ done
129
+ IFS="$acl_save_ifs"
130
+ else
131
+ acl_cv_path_LD="$LD" # Let the user override the test with a path.
132
+ fi])
133
+ LD="$acl_cv_path_LD"
134
+ if test -n "$LD"; then
135
+ AC_MSG_RESULT([$LD])
136
+ else
137
+ AC_MSG_RESULT([no])
138
+ fi
139
+ test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
140
+ AC_LIB_PROG_LD_GNU
141
+ ])
142
+
143
+ # lib-link.m4 serial 26 (gettext-0.18.2)
144
+ dnl Copyright (C) 2001-2013 Free Software Foundation, Inc.
145
+ dnl This file is free software; the Free Software Foundation
146
+ dnl gives unlimited permission to copy and/or distribute it,
147
+ dnl with or without modifications, as long as this notice is preserved.
148
+
149
+ dnl From Bruno Haible.
150
+
151
+ AC_PREREQ([2.54])
152
+
153
+ dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
154
+ dnl the libraries corresponding to explicit and implicit dependencies.
155
+ dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
156
+ dnl augments the CPPFLAGS variable.
157
+ dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
158
+ dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
159
+ AC_DEFUN([AC_LIB_LINKFLAGS],
160
+ [
161
+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
162
+ AC_REQUIRE([AC_LIB_RPATH])
163
+ pushdef([Name],[m4_translit([$1],[./+-], [____])])
164
+ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
165
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
166
+ AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
167
+ AC_LIB_LINKFLAGS_BODY([$1], [$2])
168
+ ac_cv_lib[]Name[]_libs="$LIB[]NAME"
169
+ ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
170
+ ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
171
+ ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX"
172
+ ])
173
+ LIB[]NAME="$ac_cv_lib[]Name[]_libs"
174
+ LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
175
+ INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
176
+ LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix"
177
+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
178
+ AC_SUBST([LIB]NAME)
179
+ AC_SUBST([LTLIB]NAME)
180
+ AC_SUBST([LIB]NAME[_PREFIX])
181
+ dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
182
+ dnl results of this search when this library appears as a dependency.
183
+ HAVE_LIB[]NAME=yes
184
+ popdef([NAME])
185
+ popdef([Name])
186
+ ])
187
+
188
+ dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message])
189
+ dnl searches for libname and the libraries corresponding to explicit and
190
+ dnl implicit dependencies, together with the specified include files and
191
+ dnl the ability to compile and link the specified testcode. The missing-message
192
+ dnl defaults to 'no' and may contain additional hints for the user.
193
+ dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME}
194
+ dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and
195
+ dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
196
+ dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
197
+ dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname
198
+ dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
199
+ AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
200
+ [
201
+ AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
202
+ AC_REQUIRE([AC_LIB_RPATH])
203
+ pushdef([Name],[m4_translit([$1],[./+-], [____])])
204
+ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
205
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
206
+
207
+ dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
208
+ dnl accordingly.
209
+ AC_LIB_LINKFLAGS_BODY([$1], [$2])
210
+
211
+ dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
212
+ dnl because if the user has installed lib[]Name and not disabled its use
213
+ dnl via --without-lib[]Name-prefix, he wants to use it.
214
+ ac_save_CPPFLAGS="$CPPFLAGS"
215
+ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
216
+
217
+ AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
218
+ ac_save_LIBS="$LIBS"
219
+ dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS,
220
+ dnl because these -l options might require -L options that are present in
221
+ dnl LIBS. -l options benefit only from the -L options listed before it.
222
+ dnl Otherwise, add it to the front of LIBS, because it may be a static
223
+ dnl library that depends on another static library that is present in LIBS.
224
+ dnl Static libraries benefit only from the static libraries listed after
225
+ dnl it.
226
+ case " $LIB[]NAME" in
227
+ *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
228
+ *) LIBS="$LIB[]NAME $LIBS" ;;
229
+ esac
230
+ AC_LINK_IFELSE(
231
+ [AC_LANG_PROGRAM([[$3]], [[$4]])],
232
+ [ac_cv_lib[]Name=yes],
233
+ [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
234
+ LIBS="$ac_save_LIBS"
235
+ ])
236
+ if test "$ac_cv_lib[]Name" = yes; then
237
+ HAVE_LIB[]NAME=yes
238
+ AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.])
239
+ AC_MSG_CHECKING([how to link with lib[]$1])
240
+ AC_MSG_RESULT([$LIB[]NAME])
241
+ else
242
+ HAVE_LIB[]NAME=no
243
+ dnl If $LIB[]NAME didn't lead to a usable library, we don't need
244
+ dnl $INC[]NAME either.
245
+ CPPFLAGS="$ac_save_CPPFLAGS"
246
+ LIB[]NAME=
247
+ LTLIB[]NAME=
248
+ LIB[]NAME[]_PREFIX=
249
+ fi
250
+ AC_SUBST([HAVE_LIB]NAME)
251
+ AC_SUBST([LIB]NAME)
252
+ AC_SUBST([LTLIB]NAME)
253
+ AC_SUBST([LIB]NAME[_PREFIX])
254
+ popdef([NAME])
255
+ popdef([Name])
256
+ ])
257
+
258
+ dnl Determine the platform dependent parameters needed to use rpath:
259
+ dnl acl_libext,
260
+ dnl acl_shlibext,
261
+ dnl acl_libname_spec,
262
+ dnl acl_library_names_spec,
263
+ dnl acl_hardcode_libdir_flag_spec,
264
+ dnl acl_hardcode_libdir_separator,
265
+ dnl acl_hardcode_direct,
266
+ dnl acl_hardcode_minus_L.
267
+ AC_DEFUN([AC_LIB_RPATH],
268
+ [
269
+ dnl Tell automake >= 1.10 to complain if config.rpath is missing.
270
+ m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
271
+ AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
272
+ AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
273
+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
274
+ AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
275
+ AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [
276
+ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
277
+ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
278
+ . ./conftest.sh
279
+ rm -f ./conftest.sh
280
+ acl_cv_rpath=done
281
+ ])
282
+ wl="$acl_cv_wl"
283
+ acl_libext="$acl_cv_libext"
284
+ acl_shlibext="$acl_cv_shlibext"
285
+ acl_libname_spec="$acl_cv_libname_spec"
286
+ acl_library_names_spec="$acl_cv_library_names_spec"
287
+ acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
288
+ acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
289
+ acl_hardcode_direct="$acl_cv_hardcode_direct"
290
+ acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
291
+ dnl Determine whether the user wants rpath handling at all.
292
+ AC_ARG_ENABLE([rpath],
293
+ [ --disable-rpath do not hardcode runtime library paths],
294
+ :, enable_rpath=yes)
295
+ ])
296
+
297
+ dnl AC_LIB_FROMPACKAGE(name, package)
298
+ dnl declares that libname comes from the given package. The configure file
299
+ dnl will then not have a --with-libname-prefix option but a
300
+ dnl --with-package-prefix option. Several libraries can come from the same
301
+ dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar
302
+ dnl macro call that searches for libname.
303
+ AC_DEFUN([AC_LIB_FROMPACKAGE],
304
+ [
305
+ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
306
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
307
+ define([acl_frompackage_]NAME, [$2])
308
+ popdef([NAME])
309
+ pushdef([PACK],[$2])
310
+ pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
311
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
312
+ define([acl_libsinpackage_]PACKUP,
313
+ m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1])
314
+ popdef([PACKUP])
315
+ popdef([PACK])
316
+ ])
317
+
318
+ dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
319
+ dnl the libraries corresponding to explicit and implicit dependencies.
320
+ dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
321
+ dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found
322
+ dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
323
+ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
324
+ [
325
+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
326
+ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
327
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
328
+ pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
329
+ pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
330
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
331
+ pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
332
+ dnl Autoconf >= 2.61 supports dots in --with options.
333
+ pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)])
334
+ dnl By default, look in $includedir and $libdir.
335
+ use_additional=yes
336
+ AC_LIB_WITH_FINAL_PREFIX([
337
+ eval additional_includedir=\"$includedir\"
338
+ eval additional_libdir=\"$libdir\"
339
+ ])
340
+ AC_ARG_WITH(P_A_C_K[-prefix],
341
+ [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
342
+ --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
343
+ [
344
+ if test "X$withval" = "Xno"; then
345
+ use_additional=no
346
+ else
347
+ if test "X$withval" = "X"; then
348
+ AC_LIB_WITH_FINAL_PREFIX([
349
+ eval additional_includedir=\"$includedir\"
350
+ eval additional_libdir=\"$libdir\"
351
+ ])
352
+ else
353
+ additional_includedir="$withval/include"
354
+ additional_libdir="$withval/$acl_libdirstem"
355
+ if test "$acl_libdirstem2" != "$acl_libdirstem" \
356
+ && ! test -d "$withval/$acl_libdirstem"; then
357
+ additional_libdir="$withval/$acl_libdirstem2"
358
+ fi
359
+ fi
360
+ fi
361
+ ])
362
+ dnl Search the library and its dependencies in $additional_libdir and
363
+ dnl $LDFLAGS. Using breadth-first-seach.
364
+ LIB[]NAME=
365
+ LTLIB[]NAME=
366
+ INC[]NAME=
367
+ LIB[]NAME[]_PREFIX=
368
+ dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been
369
+ dnl computed. So it has to be reset here.
370
+ HAVE_LIB[]NAME=
371
+ rpathdirs=
372
+ ltrpathdirs=
373
+ names_already_handled=
374
+ names_next_round='$1 $2'
375
+ while test -n "$names_next_round"; do
376
+ names_this_round="$names_next_round"
377
+ names_next_round=
378
+ for name in $names_this_round; do
379
+ already_handled=
380
+ for n in $names_already_handled; do
381
+ if test "$n" = "$name"; then
382
+ already_handled=yes
383
+ break
384
+ fi
385
+ done
386
+ if test -z "$already_handled"; then
387
+ names_already_handled="$names_already_handled $name"
388
+ dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
389
+ dnl or AC_LIB_HAVE_LINKFLAGS call.
390
+ uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
391
+ eval value=\"\$HAVE_LIB$uppername\"
392
+ if test -n "$value"; then
393
+ if test "$value" = yes; then
394
+ eval value=\"\$LIB$uppername\"
395
+ test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
396
+ eval value=\"\$LTLIB$uppername\"
397
+ test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
398
+ else
399
+ dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
400
+ dnl that this library doesn't exist. So just drop it.
401
+ :
402
+ fi
403
+ else
404
+ dnl Search the library lib$name in $additional_libdir and $LDFLAGS
405
+ dnl and the already constructed $LIBNAME/$LTLIBNAME.
406
+ found_dir=
407
+ found_la=
408
+ found_so=
409
+ found_a=
410
+ eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
411
+ if test -n "$acl_shlibext"; then
412
+ shrext=".$acl_shlibext" # typically: shrext=.so
413
+ else
414
+ shrext=
415
+ fi
416
+ if test $use_additional = yes; then
417
+ dir="$additional_libdir"
418
+ dnl The same code as in the loop below:
419
+ dnl First look for a shared library.
420
+ if test -n "$acl_shlibext"; then
421
+ if test -f "$dir/$libname$shrext"; then
422
+ found_dir="$dir"
423
+ found_so="$dir/$libname$shrext"
424
+ else
425
+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
426
+ ver=`(cd "$dir" && \
427
+ for f in "$libname$shrext".*; do echo "$f"; done \
428
+ | sed -e "s,^$libname$shrext\\\\.,," \
429
+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
430
+ | sed 1q ) 2>/dev/null`
431
+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
432
+ found_dir="$dir"
433
+ found_so="$dir/$libname$shrext.$ver"
434
+ fi
435
+ else
436
+ eval library_names=\"$acl_library_names_spec\"
437
+ for f in $library_names; do
438
+ if test -f "$dir/$f"; then
439
+ found_dir="$dir"
440
+ found_so="$dir/$f"
441
+ break
442
+ fi
443
+ done
444
+ fi
445
+ fi
446
+ fi
447
+ dnl Then look for a static library.
448
+ if test "X$found_dir" = "X"; then
449
+ if test -f "$dir/$libname.$acl_libext"; then
450
+ found_dir="$dir"
451
+ found_a="$dir/$libname.$acl_libext"
452
+ fi
453
+ fi
454
+ if test "X$found_dir" != "X"; then
455
+ if test -f "$dir/$libname.la"; then
456
+ found_la="$dir/$libname.la"
457
+ fi
458
+ fi
459
+ fi
460
+ if test "X$found_dir" = "X"; then
461
+ for x in $LDFLAGS $LTLIB[]NAME; do
462
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
463
+ case "$x" in
464
+ -L*)
465
+ dir=`echo "X$x" | sed -e 's/^X-L//'`
466
+ dnl First look for a shared library.
467
+ if test -n "$acl_shlibext"; then
468
+ if test -f "$dir/$libname$shrext"; then
469
+ found_dir="$dir"
470
+ found_so="$dir/$libname$shrext"
471
+ else
472
+ if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
473
+ ver=`(cd "$dir" && \
474
+ for f in "$libname$shrext".*; do echo "$f"; done \
475
+ | sed -e "s,^$libname$shrext\\\\.,," \
476
+ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
477
+ | sed 1q ) 2>/dev/null`
478
+ if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
479
+ found_dir="$dir"
480
+ found_so="$dir/$libname$shrext.$ver"
481
+ fi
482
+ else
483
+ eval library_names=\"$acl_library_names_spec\"
484
+ for f in $library_names; do
485
+ if test -f "$dir/$f"; then
486
+ found_dir="$dir"
487
+ found_so="$dir/$f"
488
+ break
489
+ fi
490
+ done
491
+ fi
492
+ fi
493
+ fi
494
+ dnl Then look for a static library.
495
+ if test "X$found_dir" = "X"; then
496
+ if test -f "$dir/$libname.$acl_libext"; then
497
+ found_dir="$dir"
498
+ found_a="$dir/$libname.$acl_libext"
499
+ fi
500
+ fi
501
+ if test "X$found_dir" != "X"; then
502
+ if test -f "$dir/$libname.la"; then
503
+ found_la="$dir/$libname.la"
504
+ fi
505
+ fi
506
+ ;;
507
+ esac
508
+ if test "X$found_dir" != "X"; then
509
+ break
510
+ fi
511
+ done
512
+ fi
513
+ if test "X$found_dir" != "X"; then
514
+ dnl Found the library.
515
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
516
+ if test "X$found_so" != "X"; then
517
+ dnl Linking with a shared library. We attempt to hardcode its
518
+ dnl directory into the executable's runpath, unless it's the
519
+ dnl standard /usr/lib.
520
+ if test "$enable_rpath" = no \
521
+ || test "X$found_dir" = "X/usr/$acl_libdirstem" \
522
+ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
523
+ dnl No hardcoding is needed.
524
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
525
+ else
526
+ dnl Use an explicit option to hardcode DIR into the resulting
527
+ dnl binary.
528
+ dnl Potentially add DIR to ltrpathdirs.
529
+ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
530
+ haveit=
531
+ for x in $ltrpathdirs; do
532
+ if test "X$x" = "X$found_dir"; then
533
+ haveit=yes
534
+ break
535
+ fi
536
+ done
537
+ if test -z "$haveit"; then
538
+ ltrpathdirs="$ltrpathdirs $found_dir"
539
+ fi
540
+ dnl The hardcoding into $LIBNAME is system dependent.
541
+ if test "$acl_hardcode_direct" = yes; then
542
+ dnl Using DIR/libNAME.so during linking hardcodes DIR into the
543
+ dnl resulting binary.
544
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
545
+ else
546
+ if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
547
+ dnl Use an explicit option to hardcode DIR into the resulting
548
+ dnl binary.
549
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
550
+ dnl Potentially add DIR to rpathdirs.
551
+ dnl The rpathdirs will be appended to $LIBNAME at the end.
552
+ haveit=
553
+ for x in $rpathdirs; do
554
+ if test "X$x" = "X$found_dir"; then
555
+ haveit=yes
556
+ break
557
+ fi
558
+ done
559
+ if test -z "$haveit"; then
560
+ rpathdirs="$rpathdirs $found_dir"
561
+ fi
562
+ else
563
+ dnl Rely on "-L$found_dir".
564
+ dnl But don't add it if it's already contained in the LDFLAGS
565
+ dnl or the already constructed $LIBNAME
566
+ haveit=
567
+ for x in $LDFLAGS $LIB[]NAME; do
568
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
569
+ if test "X$x" = "X-L$found_dir"; then
570
+ haveit=yes
571
+ break
572
+ fi
573
+ done
574
+ if test -z "$haveit"; then
575
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
576
+ fi
577
+ if test "$acl_hardcode_minus_L" != no; then
578
+ dnl FIXME: Not sure whether we should use
579
+ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
580
+ dnl here.
581
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
582
+ else
583
+ dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH
584
+ dnl here, because this doesn't fit in flags passed to the
585
+ dnl compiler. So give up. No hardcoding. This affects only
586
+ dnl very old systems.
587
+ dnl FIXME: Not sure whether we should use
588
+ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
589
+ dnl here.
590
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
591
+ fi
592
+ fi
593
+ fi
594
+ fi
595
+ else
596
+ if test "X$found_a" != "X"; then
597
+ dnl Linking with a static library.
598
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
599
+ else
600
+ dnl We shouldn't come here, but anyway it's good to have a
601
+ dnl fallback.
602
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
603
+ fi
604
+ fi
605
+ dnl Assume the include files are nearby.
606
+ additional_includedir=
607
+ case "$found_dir" in
608
+ */$acl_libdirstem | */$acl_libdirstem/)
609
+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
610
+ if test "$name" = '$1'; then
611
+ LIB[]NAME[]_PREFIX="$basedir"
612
+ fi
613
+ additional_includedir="$basedir/include"
614
+ ;;
615
+ */$acl_libdirstem2 | */$acl_libdirstem2/)
616
+ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
617
+ if test "$name" = '$1'; then
618
+ LIB[]NAME[]_PREFIX="$basedir"
619
+ fi
620
+ additional_includedir="$basedir/include"
621
+ ;;
622
+ esac
623
+ if test "X$additional_includedir" != "X"; then
624
+ dnl Potentially add $additional_includedir to $INCNAME.
625
+ dnl But don't add it
626
+ dnl 1. if it's the standard /usr/include,
627
+ dnl 2. if it's /usr/local/include and we are using GCC on Linux,
628
+ dnl 3. if it's already present in $CPPFLAGS or the already
629
+ dnl constructed $INCNAME,
630
+ dnl 4. if it doesn't exist as a directory.
631
+ if test "X$additional_includedir" != "X/usr/include"; then
632
+ haveit=
633
+ if test "X$additional_includedir" = "X/usr/local/include"; then
634
+ if test -n "$GCC"; then
635
+ case $host_os in
636
+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
637
+ esac
638
+ fi
639
+ fi
640
+ if test -z "$haveit"; then
641
+ for x in $CPPFLAGS $INC[]NAME; do
642
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
643
+ if test "X$x" = "X-I$additional_includedir"; then
644
+ haveit=yes
645
+ break
646
+ fi
647
+ done
648
+ if test -z "$haveit"; then
649
+ if test -d "$additional_includedir"; then
650
+ dnl Really add $additional_includedir to $INCNAME.
651
+ INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
652
+ fi
653
+ fi
654
+ fi
655
+ fi
656
+ fi
657
+ dnl Look for dependencies.
658
+ if test -n "$found_la"; then
659
+ dnl Read the .la file. It defines the variables
660
+ dnl dlname, library_names, old_library, dependency_libs, current,
661
+ dnl age, revision, installed, dlopen, dlpreopen, libdir.
662
+ save_libdir="$libdir"
663
+ case "$found_la" in
664
+ */* | *\\*) . "$found_la" ;;
665
+ *) . "./$found_la" ;;
666
+ esac
667
+ libdir="$save_libdir"
668
+ dnl We use only dependency_libs.
669
+ for dep in $dependency_libs; do
670
+ case "$dep" in
671
+ -L*)
672
+ additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
673
+ dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
674
+ dnl But don't add it
675
+ dnl 1. if it's the standard /usr/lib,
676
+ dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
677
+ dnl 3. if it's already present in $LDFLAGS or the already
678
+ dnl constructed $LIBNAME,
679
+ dnl 4. if it doesn't exist as a directory.
680
+ if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
681
+ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
682
+ haveit=
683
+ if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
684
+ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
685
+ if test -n "$GCC"; then
686
+ case $host_os in
687
+ linux* | gnu* | k*bsd*-gnu) haveit=yes;;
688
+ esac
689
+ fi
690
+ fi
691
+ if test -z "$haveit"; then
692
+ haveit=
693
+ for x in $LDFLAGS $LIB[]NAME; do
694
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
695
+ if test "X$x" = "X-L$additional_libdir"; then
696
+ haveit=yes
697
+ break
698
+ fi
699
+ done
700
+ if test -z "$haveit"; then
701
+ if test -d "$additional_libdir"; then
702
+ dnl Really add $additional_libdir to $LIBNAME.
703
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
704
+ fi
705
+ fi
706
+ haveit=
707
+ for x in $LDFLAGS $LTLIB[]NAME; do
708
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
709
+ if test "X$x" = "X-L$additional_libdir"; then
710
+ haveit=yes
711
+ break
712
+ fi
713
+ done
714
+ if test -z "$haveit"; then
715
+ if test -d "$additional_libdir"; then
716
+ dnl Really add $additional_libdir to $LTLIBNAME.
717
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
718
+ fi
719
+ fi
720
+ fi
721
+ fi
722
+ ;;
723
+ -R*)
724
+ dir=`echo "X$dep" | sed -e 's/^X-R//'`
725
+ if test "$enable_rpath" != no; then
726
+ dnl Potentially add DIR to rpathdirs.
727
+ dnl The rpathdirs will be appended to $LIBNAME at the end.
728
+ haveit=
729
+ for x in $rpathdirs; do
730
+ if test "X$x" = "X$dir"; then
731
+ haveit=yes
732
+ break
733
+ fi
734
+ done
735
+ if test -z "$haveit"; then
736
+ rpathdirs="$rpathdirs $dir"
737
+ fi
738
+ dnl Potentially add DIR to ltrpathdirs.
739
+ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
740
+ haveit=
741
+ for x in $ltrpathdirs; do
742
+ if test "X$x" = "X$dir"; then
743
+ haveit=yes
744
+ break
745
+ fi
746
+ done
747
+ if test -z "$haveit"; then
748
+ ltrpathdirs="$ltrpathdirs $dir"
749
+ fi
750
+ fi
751
+ ;;
752
+ -l*)
753
+ dnl Handle this in the next round.
754
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
755
+ ;;
756
+ *.la)
757
+ dnl Handle this in the next round. Throw away the .la's
758
+ dnl directory; it is already contained in a preceding -L
759
+ dnl option.
760
+ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
761
+ ;;
762
+ *)
763
+ dnl Most likely an immediate library name.
764
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
765
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
766
+ ;;
767
+ esac
768
+ done
769
+ fi
770
+ else
771
+ dnl Didn't find the library; assume it is in the system directories
772
+ dnl known to the linker and runtime loader. (All the system
773
+ dnl directories known to the linker should also be known to the
774
+ dnl runtime loader, otherwise the system is severely misconfigured.)
775
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
776
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
777
+ fi
778
+ fi
779
+ fi
780
+ done
781
+ done
782
+ if test "X$rpathdirs" != "X"; then
783
+ if test -n "$acl_hardcode_libdir_separator"; then
784
+ dnl Weird platform: only the last -rpath option counts, the user must
785
+ dnl pass all path elements in one option. We can arrange that for a
786
+ dnl single library, but not when more than one $LIBNAMEs are used.
787
+ alldirs=
788
+ for found_dir in $rpathdirs; do
789
+ alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
790
+ done
791
+ dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl.
792
+ acl_save_libdir="$libdir"
793
+ libdir="$alldirs"
794
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
795
+ libdir="$acl_save_libdir"
796
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
797
+ else
798
+ dnl The -rpath options are cumulative.
799
+ for found_dir in $rpathdirs; do
800
+ acl_save_libdir="$libdir"
801
+ libdir="$found_dir"
802
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
803
+ libdir="$acl_save_libdir"
804
+ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
805
+ done
806
+ fi
807
+ fi
808
+ if test "X$ltrpathdirs" != "X"; then
809
+ dnl When using libtool, the option that works for both libraries and
810
+ dnl executables is -R. The -R options are cumulative.
811
+ for found_dir in $ltrpathdirs; do
812
+ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
813
+ done
814
+ fi
815
+ popdef([P_A_C_K])
816
+ popdef([PACKLIBS])
817
+ popdef([PACKUP])
818
+ popdef([PACK])
819
+ popdef([NAME])
820
+ ])
821
+
822
+ dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
823
+ dnl unless already present in VAR.
824
+ dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
825
+ dnl contains two or three consecutive elements that belong together.
826
+ AC_DEFUN([AC_LIB_APPENDTOVAR],
827
+ [
828
+ for element in [$2]; do
829
+ haveit=
830
+ for x in $[$1]; do
831
+ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
832
+ if test "X$x" = "X$element"; then
833
+ haveit=yes
834
+ break
835
+ fi
836
+ done
837
+ if test -z "$haveit"; then
838
+ [$1]="${[$1]}${[$1]:+ }$element"
839
+ fi
840
+ done
841
+ ])
842
+
843
+ dnl For those cases where a variable contains several -L and -l options
844
+ dnl referring to unknown libraries and directories, this macro determines the
845
+ dnl necessary additional linker options for the runtime path.
846
+ dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
847
+ dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
848
+ dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
849
+ dnl otherwise linking without libtool is assumed.
850
+ AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
851
+ [
852
+ AC_REQUIRE([AC_LIB_RPATH])
853
+ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
854
+ $1=
855
+ if test "$enable_rpath" != no; then
856
+ if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
857
+ dnl Use an explicit option to hardcode directories into the resulting
858
+ dnl binary.
859
+ rpathdirs=
860
+ next=
861
+ for opt in $2; do
862
+ if test -n "$next"; then
863
+ dir="$next"
864
+ dnl No need to hardcode the standard /usr/lib.
865
+ if test "X$dir" != "X/usr/$acl_libdirstem" \
866
+ && test "X$dir" != "X/usr/$acl_libdirstem2"; then
867
+ rpathdirs="$rpathdirs $dir"
868
+ fi
869
+ next=
870
+ else
871
+ case $opt in
872
+ -L) next=yes ;;
873
+ -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
874
+ dnl No need to hardcode the standard /usr/lib.
875
+ if test "X$dir" != "X/usr/$acl_libdirstem" \
876
+ && test "X$dir" != "X/usr/$acl_libdirstem2"; then
877
+ rpathdirs="$rpathdirs $dir"
878
+ fi
879
+ next= ;;
880
+ *) next= ;;
881
+ esac
882
+ fi
883
+ done
884
+ if test "X$rpathdirs" != "X"; then
885
+ if test -n ""$3""; then
886
+ dnl libtool is used for linking. Use -R options.
887
+ for dir in $rpathdirs; do
888
+ $1="${$1}${$1:+ }-R$dir"
889
+ done
890
+ else
891
+ dnl The linker is used for linking directly.
892
+ if test -n "$acl_hardcode_libdir_separator"; then
893
+ dnl Weird platform: only the last -rpath option counts, the user
894
+ dnl must pass all path elements in one option.
895
+ alldirs=
896
+ for dir in $rpathdirs; do
897
+ alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
898
+ done
899
+ acl_save_libdir="$libdir"
900
+ libdir="$alldirs"
901
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
902
+ libdir="$acl_save_libdir"
903
+ $1="$flag"
904
+ else
905
+ dnl The -rpath options are cumulative.
906
+ for dir in $rpathdirs; do
907
+ acl_save_libdir="$libdir"
908
+ libdir="$dir"
909
+ eval flag=\"$acl_hardcode_libdir_flag_spec\"
910
+ libdir="$acl_save_libdir"
911
+ $1="${$1}${$1:+ }$flag"
912
+ done
913
+ fi
914
+ fi
915
+ fi
916
+ fi
917
+ fi
918
+ AC_SUBST([$1])
919
+ ])
920
+
921
+ # Copyright (C) 2002-2013 Free Software Foundation, Inc.
922
+ #
923
+ # This file is free software; the Free Software Foundation
924
+ # gives unlimited permission to copy and/or distribute it,
925
+ # with or without modifications, as long as this notice is preserved.
926
+
927
+ # AM_AUTOMAKE_VERSION(VERSION)
928
+ # ----------------------------
929
+ # Automake X.Y traces this macro to ensure aclocal.m4 has been
930
+ # generated from the m4 files accompanying Automake X.Y.
931
+ # (This private macro should not be called outside this file.)
932
+ AC_DEFUN([AM_AUTOMAKE_VERSION],
933
+ [am__api_version='1.14'
934
+ dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
935
+ dnl require some minimum version. Point them to the right macro.
936
+ m4_if([$1], [1.14], [],
937
+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
938
+ ])
939
+
940
+ # _AM_AUTOCONF_VERSION(VERSION)
941
+ # -----------------------------
942
+ # aclocal traces this macro to find the Autoconf version.
943
+ # This is a private macro too. Using m4_define simplifies
944
+ # the logic in aclocal, which can simply ignore this definition.
945
+ m4_define([_AM_AUTOCONF_VERSION], [])
946
+
947
+ # AM_SET_CURRENT_AUTOMAKE_VERSION
948
+ # -------------------------------
949
+ # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
950
+ # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
951
+ AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
952
+ [AM_AUTOMAKE_VERSION([1.14])dnl
953
+ m4_ifndef([AC_AUTOCONF_VERSION],
954
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
955
+ _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
956
+
957
+ # AM_AUX_DIR_EXPAND -*- Autoconf -*-
958
+
959
+ # Copyright (C) 2001-2013 Free Software Foundation, Inc.
960
+ #
961
+ # This file is free software; the Free Software Foundation
962
+ # gives unlimited permission to copy and/or distribute it,
963
+ # with or without modifications, as long as this notice is preserved.
964
+
965
+ # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
966
+ # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
967
+ # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
968
+ #
969
+ # Of course, Automake must honor this variable whenever it calls a
970
+ # tool from the auxiliary directory. The problem is that $srcdir (and
971
+ # therefore $ac_aux_dir as well) can be either absolute or relative,
972
+ # depending on how configure is run. This is pretty annoying, since
973
+ # it makes $ac_aux_dir quite unusable in subdirectories: in the top
974
+ # source directory, any form will work fine, but in subdirectories a
975
+ # relative path needs to be adjusted first.
976
+ #
977
+ # $ac_aux_dir/missing
978
+ # fails when called from a subdirectory if $ac_aux_dir is relative
979
+ # $top_srcdir/$ac_aux_dir/missing
980
+ # fails if $ac_aux_dir is absolute,
981
+ # fails when called from a subdirectory in a VPATH build with
982
+ # a relative $ac_aux_dir
983
+ #
984
+ # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
985
+ # are both prefixed by $srcdir. In an in-source build this is usually
986
+ # harmless because $srcdir is '.', but things will broke when you
987
+ # start a VPATH build or use an absolute $srcdir.
988
+ #
989
+ # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
990
+ # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
991
+ # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
992
+ # and then we would define $MISSING as
993
+ # MISSING="\${SHELL} $am_aux_dir/missing"
994
+ # This will work as long as MISSING is not called from configure, because
995
+ # unfortunately $(top_srcdir) has no meaning in configure.
996
+ # However there are other variables, like CC, which are often used in
997
+ # configure, and could therefore not use this "fixed" $ac_aux_dir.
998
+ #
999
+ # Another solution, used here, is to always expand $ac_aux_dir to an
1000
+ # absolute PATH. The drawback is that using absolute paths prevent a
1001
+ # configured tree to be moved without reconfiguration.
1002
+
1003
+ AC_DEFUN([AM_AUX_DIR_EXPAND],
1004
+ [dnl Rely on autoconf to set up CDPATH properly.
1005
+ AC_PREREQ([2.50])dnl
1006
+ # expand $ac_aux_dir to an absolute path
1007
+ am_aux_dir=`cd $ac_aux_dir && pwd`
1008
+ ])
1009
+
1010
+ # AM_CONDITIONAL -*- Autoconf -*-
1011
+
1012
+ # Copyright (C) 1997-2013 Free Software Foundation, Inc.
1013
+ #
1014
+ # This file is free software; the Free Software Foundation
1015
+ # gives unlimited permission to copy and/or distribute it,
1016
+ # with or without modifications, as long as this notice is preserved.
1017
+
1018
+ # AM_CONDITIONAL(NAME, SHELL-CONDITION)
1019
+ # -------------------------------------
1020
+ # Define a conditional.
1021
+ AC_DEFUN([AM_CONDITIONAL],
1022
+ [AC_PREREQ([2.52])dnl
1023
+ m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1024
+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1025
+ AC_SUBST([$1_TRUE])dnl
1026
+ AC_SUBST([$1_FALSE])dnl
1027
+ _AM_SUBST_NOTMAKE([$1_TRUE])dnl
1028
+ _AM_SUBST_NOTMAKE([$1_FALSE])dnl
1029
+ m4_define([_AM_COND_VALUE_$1], [$2])dnl
1030
+ if $2; then
1031
+ $1_TRUE=
1032
+ $1_FALSE='#'
1033
+ else
1034
+ $1_TRUE='#'
1035
+ $1_FALSE=
1036
+ fi
1037
+ AC_CONFIG_COMMANDS_PRE(
1038
+ [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1039
+ AC_MSG_ERROR([[conditional "$1" was never defined.
1040
+ Usually this means the macro was only invoked conditionally.]])
1041
+ fi])])
1042
+
1043
+ # Copyright (C) 1999-2013 Free Software Foundation, Inc.
1044
+ #
1045
+ # This file is free software; the Free Software Foundation
1046
+ # gives unlimited permission to copy and/or distribute it,
1047
+ # with or without modifications, as long as this notice is preserved.
1048
+
1049
+
1050
+ # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
1051
+ # written in clear, in which case automake, when reading aclocal.m4,
1052
+ # will think it sees a *use*, and therefore will trigger all it's
1053
+ # C support machinery. Also note that it means that autoscan, seeing
1054
+ # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1055
+
1056
+
1057
+ # _AM_DEPENDENCIES(NAME)
1058
+ # ----------------------
1059
+ # See how the compiler implements dependency checking.
1060
+ # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
1061
+ # We try a few techniques and use that to set a single cache variable.
1062
+ #
1063
+ # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1064
+ # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1065
+ # dependency, and given that the user is not expected to run this macro,
1066
+ # just rely on AC_PROG_CC.
1067
+ AC_DEFUN([_AM_DEPENDENCIES],
1068
+ [AC_REQUIRE([AM_SET_DEPDIR])dnl
1069
+ AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1070
+ AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1071
+ AC_REQUIRE([AM_DEP_TRACK])dnl
1072
+
1073
+ m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
1074
+ [$1], [CXX], [depcc="$CXX" am_compiler_list=],
1075
+ [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1076
+ [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
1077
+ [$1], [UPC], [depcc="$UPC" am_compiler_list=],
1078
+ [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1079
+ [depcc="$$1" am_compiler_list=])
1080
+
1081
+ AC_CACHE_CHECK([dependency style of $depcc],
1082
+ [am_cv_$1_dependencies_compiler_type],
1083
+ [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1084
+ # We make a subdir and do the tests there. Otherwise we can end up
1085
+ # making bogus files that we don't know about and never remove. For
1086
+ # instance it was reported that on HP-UX the gcc test will end up
1087
+ # making a dummy file named 'D' -- because '-MD' means "put the output
1088
+ # in D".
1089
+ rm -rf conftest.dir
1090
+ mkdir conftest.dir
1091
+ # Copy depcomp to subdir because otherwise we won't find it if we're
1092
+ # using a relative directory.
1093
+ cp "$am_depcomp" conftest.dir
1094
+ cd conftest.dir
1095
+ # We will build objects and dependencies in a subdirectory because
1096
+ # it helps to detect inapplicable dependency modes. For instance
1097
+ # both Tru64's cc and ICC support -MD to output dependencies as a
1098
+ # side effect of compilation, but ICC will put the dependencies in
1099
+ # the current directory while Tru64 will put them in the object
1100
+ # directory.
1101
+ mkdir sub
1102
+
1103
+ am_cv_$1_dependencies_compiler_type=none
1104
+ if test "$am_compiler_list" = ""; then
1105
+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1106
+ fi
1107
+ am__universal=false
1108
+ m4_case([$1], [CC],
1109
+ [case " $depcc " in #(
1110
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
1111
+ esac],
1112
+ [CXX],
1113
+ [case " $depcc " in #(
1114
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
1115
+ esac])
1116
+
1117
+ for depmode in $am_compiler_list; do
1118
+ # Setup a source with many dependencies, because some compilers
1119
+ # like to wrap large dependency lists on column 80 (with \), and
1120
+ # we should not choose a depcomp mode which is confused by this.
1121
+ #
1122
+ # We need to recreate these files for each test, as the compiler may
1123
+ # overwrite some of them when testing with obscure command lines.
1124
+ # This happens at least with the AIX C compiler.
1125
+ : > sub/conftest.c
1126
+ for i in 1 2 3 4 5 6; do
1127
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
1128
+ # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
1129
+ # Solaris 10 /bin/sh.
1130
+ echo '/* dummy */' > sub/conftst$i.h
1131
+ done
1132
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1133
+
1134
+ # We check with '-c' and '-o' for the sake of the "dashmstdout"
1135
+ # mode. It turns out that the SunPro C++ compiler does not properly
1136
+ # handle '-M -o', and we need to detect this. Also, some Intel
1137
+ # versions had trouble with output in subdirs.
1138
+ am__obj=sub/conftest.${OBJEXT-o}
1139
+ am__minus_obj="-o $am__obj"
1140
+ case $depmode in
1141
+ gcc)
1142
+ # This depmode causes a compiler race in universal mode.
1143
+ test "$am__universal" = false || continue
1144
+ ;;
1145
+ nosideeffect)
1146
+ # After this tag, mechanisms are not by side-effect, so they'll
1147
+ # only be used when explicitly requested.
1148
+ if test "x$enable_dependency_tracking" = xyes; then
1149
+ continue
1150
+ else
1151
+ break
1152
+ fi
1153
+ ;;
1154
+ msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1155
+ # This compiler won't grok '-c -o', but also, the minuso test has
1156
+ # not run yet. These depmodes are late enough in the game, and
1157
+ # so weak that their functioning should not be impacted.
1158
+ am__obj=conftest.${OBJEXT-o}
1159
+ am__minus_obj=
1160
+ ;;
1161
+ none) break ;;
1162
+ esac
1163
+ if depmode=$depmode \
1164
+ source=sub/conftest.c object=$am__obj \
1165
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1166
+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1167
+ >/dev/null 2>conftest.err &&
1168
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1169
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1170
+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1171
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1172
+ # icc doesn't choke on unknown options, it will just issue warnings
1173
+ # or remarks (even with -Werror). So we grep stderr for any message
1174
+ # that says an option was ignored or not supported.
1175
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
1176
+ # icc: Command line warning: ignoring option '-M'; no argument required
1177
+ # The diagnosis changed in icc 8.0:
1178
+ # icc: Command line remark: option '-MP' not supported
1179
+ if (grep 'ignoring option' conftest.err ||
1180
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1181
+ am_cv_$1_dependencies_compiler_type=$depmode
1182
+ break
1183
+ fi
1184
+ fi
1185
+ done
1186
+
1187
+ cd ..
1188
+ rm -rf conftest.dir
1189
+ else
1190
+ am_cv_$1_dependencies_compiler_type=none
1191
+ fi
1192
+ ])
1193
+ AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1194
+ AM_CONDITIONAL([am__fastdep$1], [
1195
+ test "x$enable_dependency_tracking" != xno \
1196
+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1197
+ ])
1198
+
1199
+
1200
+ # AM_SET_DEPDIR
1201
+ # -------------
1202
+ # Choose a directory name for dependency files.
1203
+ # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
1204
+ AC_DEFUN([AM_SET_DEPDIR],
1205
+ [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1206
+ AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1207
+ ])
1208
+
1209
+
1210
+ # AM_DEP_TRACK
1211
+ # ------------
1212
+ AC_DEFUN([AM_DEP_TRACK],
1213
+ [AC_ARG_ENABLE([dependency-tracking], [dnl
1214
+ AS_HELP_STRING(
1215
+ [--enable-dependency-tracking],
1216
+ [do not reject slow dependency extractors])
1217
+ AS_HELP_STRING(
1218
+ [--disable-dependency-tracking],
1219
+ [speeds up one-time build])])
1220
+ if test "x$enable_dependency_tracking" != xno; then
1221
+ am_depcomp="$ac_aux_dir/depcomp"
1222
+ AMDEPBACKSLASH='\'
1223
+ am__nodep='_no'
1224
+ fi
1225
+ AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1226
+ AC_SUBST([AMDEPBACKSLASH])dnl
1227
+ _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1228
+ AC_SUBST([am__nodep])dnl
1229
+ _AM_SUBST_NOTMAKE([am__nodep])dnl
1230
+ ])
1231
+
1232
+ # Generate code to set up dependency tracking. -*- Autoconf -*-
1233
+
1234
+ # Copyright (C) 1999-2013 Free Software Foundation, Inc.
1235
+ #
1236
+ # This file is free software; the Free Software Foundation
1237
+ # gives unlimited permission to copy and/or distribute it,
1238
+ # with or without modifications, as long as this notice is preserved.
1239
+
1240
+
1241
+ # _AM_OUTPUT_DEPENDENCY_COMMANDS
1242
+ # ------------------------------
1243
+ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1244
+ [{
1245
+ # Older Autoconf quotes --file arguments for eval, but not when files
1246
+ # are listed without --file. Let's play safe and only enable the eval
1247
+ # if we detect the quoting.
1248
+ case $CONFIG_FILES in
1249
+ *\'*) eval set x "$CONFIG_FILES" ;;
1250
+ *) set x $CONFIG_FILES ;;
1251
+ esac
1252
+ shift
1253
+ for mf
1254
+ do
1255
+ # Strip MF so we end up with the name of the file.
1256
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
1257
+ # Check whether this is an Automake generated Makefile or not.
1258
+ # We used to match only the files named 'Makefile.in', but
1259
+ # some people rename them; so instead we look at the file content.
1260
+ # Grep'ing the first line is not enough: some people post-process
1261
+ # each Makefile.in and add a new line on top of each file to say so.
1262
+ # Grep'ing the whole file is not good either: AIX grep has a line
1263
+ # limit of 2048, but all sed's we know have understand at least 4000.
1264
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1265
+ dirpart=`AS_DIRNAME("$mf")`
1266
+ else
1267
+ continue
1268
+ fi
1269
+ # Extract the definition of DEPDIR, am__include, and am__quote
1270
+ # from the Makefile without running 'make'.
1271
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1272
+ test -z "$DEPDIR" && continue
1273
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
1274
+ test -z "$am__include" && continue
1275
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1276
+ # Find all dependency output files, they are included files with
1277
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
1278
+ # simplest approach to changing $(DEPDIR) to its actual value in the
1279
+ # expansion.
1280
+ for file in `sed -n "
1281
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1282
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1283
+ # Make sure the directory exists.
1284
+ test -f "$dirpart/$file" && continue
1285
+ fdir=`AS_DIRNAME(["$file"])`
1286
+ AS_MKDIR_P([$dirpart/$fdir])
1287
+ # echo "creating $dirpart/$file"
1288
+ echo '# dummy' > "$dirpart/$file"
1289
+ done
1290
+ done
1291
+ }
1292
+ ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1293
+
1294
+
1295
+ # AM_OUTPUT_DEPENDENCY_COMMANDS
1296
+ # -----------------------------
1297
+ # This macro should only be invoked once -- use via AC_REQUIRE.
1298
+ #
1299
+ # This code is only required when automatic dependency tracking
1300
+ # is enabled. FIXME. This creates each '.P' file that we will
1301
+ # need in order to bootstrap the dependency handling code.
1302
+ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1303
+ [AC_CONFIG_COMMANDS([depfiles],
1304
+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1305
+ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1306
+ ])
1307
+
1308
+ # Do all the work for Automake. -*- Autoconf -*-
1309
+
1310
+ # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1311
+ #
1312
+ # This file is free software; the Free Software Foundation
1313
+ # gives unlimited permission to copy and/or distribute it,
1314
+ # with or without modifications, as long as this notice is preserved.
1315
+
1316
+ # This macro actually does too much. Some checks are only needed if
1317
+ # your package does certain things. But this isn't really a big deal.
1318
+
1319
+ dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
1320
+ m4_define([AC_PROG_CC],
1321
+ m4_defn([AC_PROG_CC])
1322
+ [_AM_PROG_CC_C_O
1323
+ ])
1324
+
1325
+ # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1326
+ # AM_INIT_AUTOMAKE([OPTIONS])
1327
+ # -----------------------------------------------
1328
+ # The call with PACKAGE and VERSION arguments is the old style
1329
+ # call (pre autoconf-2.50), which is being phased out. PACKAGE
1330
+ # and VERSION should now be passed to AC_INIT and removed from
1331
+ # the call to AM_INIT_AUTOMAKE.
1332
+ # We support both call styles for the transition. After
1333
+ # the next Automake release, Autoconf can make the AC_INIT
1334
+ # arguments mandatory, and then we can depend on a new Autoconf
1335
+ # release and drop the old call support.
1336
+ AC_DEFUN([AM_INIT_AUTOMAKE],
1337
+ [AC_PREREQ([2.65])dnl
1338
+ dnl Autoconf wants to disallow AM_ names. We explicitly allow
1339
+ dnl the ones we care about.
1340
+ m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1341
+ AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1342
+ AC_REQUIRE([AC_PROG_INSTALL])dnl
1343
+ if test "`cd $srcdir && pwd`" != "`pwd`"; then
1344
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1345
+ # is not polluted with repeated "-I."
1346
+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1347
+ # test to see if srcdir already configured
1348
+ if test -f $srcdir/config.status; then
1349
+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1350
+ fi
1351
+ fi
1352
+
1353
+ # test whether we have cygpath
1354
+ if test -z "$CYGPATH_W"; then
1355
+ if (cygpath --version) >/dev/null 2>/dev/null; then
1356
+ CYGPATH_W='cygpath -w'
1357
+ else
1358
+ CYGPATH_W=echo
1359
+ fi
1360
+ fi
1361
+ AC_SUBST([CYGPATH_W])
1362
+
1363
+ # Define the identity of the package.
1364
+ dnl Distinguish between old-style and new-style calls.
1365
+ m4_ifval([$2],
1366
+ [AC_DIAGNOSE([obsolete],
1367
+ [$0: two- and three-arguments forms are deprecated.])
1368
+ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1369
+ AC_SUBST([PACKAGE], [$1])dnl
1370
+ AC_SUBST([VERSION], [$2])],
1371
+ [_AM_SET_OPTIONS([$1])dnl
1372
+ dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1373
+ m4_if(
1374
+ m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
1375
+ [ok:ok],,
1376
+ [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1377
+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1378
+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1379
+
1380
+ _AM_IF_OPTION([no-define],,
1381
+ [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
1382
+ AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
1383
+
1384
+ # Some tools Automake needs.
1385
+ AC_REQUIRE([AM_SANITY_CHECK])dnl
1386
+ AC_REQUIRE([AC_ARG_PROGRAM])dnl
1387
+ AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
1388
+ AM_MISSING_PROG([AUTOCONF], [autoconf])
1389
+ AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
1390
+ AM_MISSING_PROG([AUTOHEADER], [autoheader])
1391
+ AM_MISSING_PROG([MAKEINFO], [makeinfo])
1392
+ AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1393
+ AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1394
+ AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1395
+ # For better backward compatibility. To be removed once Automake 1.9.x
1396
+ # dies out for good. For more background, see:
1397
+ # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
1398
+ # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1399
+ AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
1400
+ # We need awk for the "check" target. The system "awk" is bad on
1401
+ # some platforms.
1402
+ AC_REQUIRE([AC_PROG_AWK])dnl
1403
+ AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1404
+ AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1405
+ _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1406
+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1407
+ [_AM_PROG_TAR([v7])])])
1408
+ _AM_IF_OPTION([no-dependencies],,
1409
+ [AC_PROVIDE_IFELSE([AC_PROG_CC],
1410
+ [_AM_DEPENDENCIES([CC])],
1411
+ [m4_define([AC_PROG_CC],
1412
+ m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
1413
+ AC_PROVIDE_IFELSE([AC_PROG_CXX],
1414
+ [_AM_DEPENDENCIES([CXX])],
1415
+ [m4_define([AC_PROG_CXX],
1416
+ m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1417
+ AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1418
+ [_AM_DEPENDENCIES([OBJC])],
1419
+ [m4_define([AC_PROG_OBJC],
1420
+ m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
1421
+ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
1422
+ [_AM_DEPENDENCIES([OBJCXX])],
1423
+ [m4_define([AC_PROG_OBJCXX],
1424
+ m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
1425
+ ])
1426
+ AC_REQUIRE([AM_SILENT_RULES])dnl
1427
+ dnl The testsuite driver may need to know about EXEEXT, so add the
1428
+ dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
1429
+ dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
1430
+ AC_CONFIG_COMMANDS_PRE(dnl
1431
+ [m4_provide_if([_AM_COMPILER_EXEEXT],
1432
+ [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1433
+
1434
+ # POSIX will say in a future version that running "rm -f" with no argument
1435
+ # is OK; and we want to be able to make that assumption in our Makefile
1436
+ # recipes. So use an aggressive probe to check that the usage we want is
1437
+ # actually supported "in the wild" to an acceptable degree.
1438
+ # See automake bug#10828.
1439
+ # To make any issue more visible, cause the running configure to be aborted
1440
+ # by default if the 'rm' program in use doesn't match our expectations; the
1441
+ # user can still override this though.
1442
+ if rm -f && rm -fr && rm -rf; then : OK; else
1443
+ cat >&2 <<'END'
1444
+ Oops!
1445
+
1446
+ Your 'rm' program seems unable to run without file operands specified
1447
+ on the command line, even when the '-f' option is present. This is contrary
1448
+ to the behaviour of most rm programs out there, and not conforming with
1449
+ the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
1450
+
1451
+ Please tell bug-automake@gnu.org about your system, including the value
1452
+ of your $PATH and any error possibly output before this message. This
1453
+ can help us improve future automake versions.
1454
+
1455
+ END
1456
+ if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
1457
+ echo 'Configuration will proceed anyway, since you have set the' >&2
1458
+ echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
1459
+ echo >&2
1460
+ else
1461
+ cat >&2 <<'END'
1462
+ Aborting the configuration process, to ensure you take notice of the issue.
1463
+
1464
+ You can download and install GNU coreutils to get an 'rm' implementation
1465
+ that behaves properly: <http://www.gnu.org/software/coreutils/>.
1466
+
1467
+ If you want to complete the configuration process using your problematic
1468
+ 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
1469
+ to "yes", and re-run configure.
1470
+
1471
+ END
1472
+ AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
1473
+ fi
1474
+ fi])
1475
+
1476
+ dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1477
+ dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1478
+ dnl mangled by Autoconf and run in a shell conditional statement.
1479
+ m4_define([_AC_COMPILER_EXEEXT],
1480
+ m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1481
+
1482
+ # When config.status generates a header, we must update the stamp-h file.
1483
+ # This file resides in the same directory as the config header
1484
+ # that is generated. The stamp files are numbered to have different names.
1485
+
1486
+ # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1487
+ # loop where config.status creates the headers, so we can generate
1488
+ # our stamp files there.
1489
+ AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1490
+ [# Compute $1's index in $config_headers.
1491
+ _am_arg=$1
1492
+ _am_stamp_count=1
1493
+ for _am_header in $config_headers :; do
1494
+ case $_am_header in
1495
+ $_am_arg | $_am_arg:* )
1496
+ break ;;
1497
+ * )
1498
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1499
+ esac
1500
+ done
1501
+ echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1502
+
1503
+ # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1504
+ #
1505
+ # This file is free software; the Free Software Foundation
1506
+ # gives unlimited permission to copy and/or distribute it,
1507
+ # with or without modifications, as long as this notice is preserved.
1508
+
1509
+ # AM_PROG_INSTALL_SH
1510
+ # ------------------
1511
+ # Define $install_sh.
1512
+ AC_DEFUN([AM_PROG_INSTALL_SH],
1513
+ [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1514
+ if test x"${install_sh}" != xset; then
1515
+ case $am_aux_dir in
1516
+ *\ * | *\ *)
1517
+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1518
+ *)
1519
+ install_sh="\${SHELL} $am_aux_dir/install-sh"
1520
+ esac
1521
+ fi
1522
+ AC_SUBST([install_sh])])
1523
+
1524
+ # Copyright (C) 2003-2013 Free Software Foundation, Inc.
1525
+ #
1526
+ # This file is free software; the Free Software Foundation
1527
+ # gives unlimited permission to copy and/or distribute it,
1528
+ # with or without modifications, as long as this notice is preserved.
1529
+
1530
+ # Check whether the underlying file-system supports filenames
1531
+ # with a leading dot. For instance MS-DOS doesn't.
1532
+ AC_DEFUN([AM_SET_LEADING_DOT],
1533
+ [rm -rf .tst 2>/dev/null
1534
+ mkdir .tst 2>/dev/null
1535
+ if test -d .tst; then
1536
+ am__leading_dot=.
1537
+ else
1538
+ am__leading_dot=_
1539
+ fi
1540
+ rmdir .tst 2>/dev/null
1541
+ AC_SUBST([am__leading_dot])])
1542
+
1543
+ # Check to see how 'make' treats includes. -*- Autoconf -*-
1544
+
1545
+ # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1546
+ #
1547
+ # This file is free software; the Free Software Foundation
1548
+ # gives unlimited permission to copy and/or distribute it,
1549
+ # with or without modifications, as long as this notice is preserved.
1550
+
1551
+ # AM_MAKE_INCLUDE()
1552
+ # -----------------
1553
+ # Check to see how make treats includes.
1554
+ AC_DEFUN([AM_MAKE_INCLUDE],
1555
+ [am_make=${MAKE-make}
1556
+ cat > confinc << 'END'
1557
+ am__doit:
1558
+ @echo this is the am__doit target
1559
+ .PHONY: am__doit
1560
+ END
1561
+ # If we don't find an include directive, just comment out the code.
1562
+ AC_MSG_CHECKING([for style of include used by $am_make])
1563
+ am__include="#"
1564
+ am__quote=
1565
+ _am_result=none
1566
+ # First try GNU make style include.
1567
+ echo "include confinc" > confmf
1568
+ # Ignore all kinds of additional output from 'make'.
1569
+ case `$am_make -s -f confmf 2> /dev/null` in #(
1570
+ *the\ am__doit\ target*)
1571
+ am__include=include
1572
+ am__quote=
1573
+ _am_result=GNU
1574
+ ;;
1575
+ esac
1576
+ # Now try BSD make style include.
1577
+ if test "$am__include" = "#"; then
1578
+ echo '.include "confinc"' > confmf
1579
+ case `$am_make -s -f confmf 2> /dev/null` in #(
1580
+ *the\ am__doit\ target*)
1581
+ am__include=.include
1582
+ am__quote="\""
1583
+ _am_result=BSD
1584
+ ;;
1585
+ esac
1586
+ fi
1587
+ AC_SUBST([am__include])
1588
+ AC_SUBST([am__quote])
1589
+ AC_MSG_RESULT([$_am_result])
1590
+ rm -f confinc confmf
1591
+ ])
1592
+
1593
+ # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1594
+
1595
+ # Copyright (C) 1997-2013 Free Software Foundation, Inc.
1596
+ #
1597
+ # This file is free software; the Free Software Foundation
1598
+ # gives unlimited permission to copy and/or distribute it,
1599
+ # with or without modifications, as long as this notice is preserved.
1600
+
1601
+ # AM_MISSING_PROG(NAME, PROGRAM)
1602
+ # ------------------------------
1603
+ AC_DEFUN([AM_MISSING_PROG],
1604
+ [AC_REQUIRE([AM_MISSING_HAS_RUN])
1605
+ $1=${$1-"${am_missing_run}$2"}
1606
+ AC_SUBST($1)])
1607
+
1608
+ # AM_MISSING_HAS_RUN
1609
+ # ------------------
1610
+ # Define MISSING if not defined so far and test if it is modern enough.
1611
+ # If it is, set am_missing_run to use it, otherwise, to nothing.
1612
+ AC_DEFUN([AM_MISSING_HAS_RUN],
1613
+ [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1614
+ AC_REQUIRE_AUX_FILE([missing])dnl
1615
+ if test x"${MISSING+set}" != xset; then
1616
+ case $am_aux_dir in
1617
+ *\ * | *\ *)
1618
+ MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1619
+ *)
1620
+ MISSING="\${SHELL} $am_aux_dir/missing" ;;
1621
+ esac
1622
+ fi
1623
+ # Use eval to expand $SHELL
1624
+ if eval "$MISSING --is-lightweight"; then
1625
+ am_missing_run="$MISSING "
1626
+ else
1627
+ am_missing_run=
1628
+ AC_MSG_WARN(['missing' script is too old or missing])
1629
+ fi
1630
+ ])
1631
+
1632
+ # -*- Autoconf -*-
1633
+ # Obsolete and "removed" macros, that must however still report explicit
1634
+ # error messages when used, to smooth transition.
1635
+ #
1636
+ # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1637
+ #
1638
+ # This file is free software; the Free Software Foundation
1639
+ # gives unlimited permission to copy and/or distribute it,
1640
+ # with or without modifications, as long as this notice is preserved.
1641
+
1642
+ AC_DEFUN([AM_CONFIG_HEADER],
1643
+ [AC_DIAGNOSE([obsolete],
1644
+ ['$0': this macro is obsolete.
1645
+ You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
1646
+ AC_CONFIG_HEADERS($@)])
1647
+
1648
+ AC_DEFUN([AM_PROG_CC_STDC],
1649
+ [AC_PROG_CC
1650
+ am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
1651
+ AC_DIAGNOSE([obsolete],
1652
+ ['$0': this macro is obsolete.
1653
+ You should simply use the 'AC][_PROG_CC' macro instead.
1654
+ Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
1655
+ but upon 'ac_cv_prog_cc_stdc'.])])
1656
+
1657
+ AC_DEFUN([AM_C_PROTOTYPES],
1658
+ [AC_FATAL([automatic de-ANSI-fication support has been removed])])
1659
+ AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
1660
+
1661
+ # Helper functions for option handling. -*- Autoconf -*-
1662
+
1663
+ # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1664
+ #
1665
+ # This file is free software; the Free Software Foundation
1666
+ # gives unlimited permission to copy and/or distribute it,
1667
+ # with or without modifications, as long as this notice is preserved.
1668
+
1669
+ # _AM_MANGLE_OPTION(NAME)
1670
+ # -----------------------
1671
+ AC_DEFUN([_AM_MANGLE_OPTION],
1672
+ [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1673
+
1674
+ # _AM_SET_OPTION(NAME)
1675
+ # --------------------
1676
+ # Set option NAME. Presently that only means defining a flag for this option.
1677
+ AC_DEFUN([_AM_SET_OPTION],
1678
+ [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1679
+
1680
+ # _AM_SET_OPTIONS(OPTIONS)
1681
+ # ------------------------
1682
+ # OPTIONS is a space-separated list of Automake options.
1683
+ AC_DEFUN([_AM_SET_OPTIONS],
1684
+ [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1685
+
1686
+ # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1687
+ # -------------------------------------------
1688
+ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1689
+ AC_DEFUN([_AM_IF_OPTION],
1690
+ [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1691
+
1692
+ # Copyright (C) 1999-2013 Free Software Foundation, Inc.
1693
+ #
1694
+ # This file is free software; the Free Software Foundation
1695
+ # gives unlimited permission to copy and/or distribute it,
1696
+ # with or without modifications, as long as this notice is preserved.
1697
+
1698
+ # _AM_PROG_CC_C_O
1699
+ # ---------------
1700
+ # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1701
+ # to automatically call this.
1702
+ AC_DEFUN([_AM_PROG_CC_C_O],
1703
+ [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1704
+ AC_REQUIRE_AUX_FILE([compile])dnl
1705
+ AC_LANG_PUSH([C])dnl
1706
+ AC_CACHE_CHECK(
1707
+ [whether $CC understands -c and -o together],
1708
+ [am_cv_prog_cc_c_o],
1709
+ [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1710
+ # Make sure it works both with $CC and with simple cc.
1711
+ # Following AC_PROG_CC_C_O, we do the test twice because some
1712
+ # compilers refuse to overwrite an existing .o file with -o,
1713
+ # though they will create one.
1714
+ am_cv_prog_cc_c_o=yes
1715
+ for am_i in 1 2; do
1716
+ if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1717
+ && test -f conftest2.$ac_objext; then
1718
+ : OK
1719
+ else
1720
+ am_cv_prog_cc_c_o=no
1721
+ break
1722
+ fi
1723
+ done
1724
+ rm -f core conftest*
1725
+ unset am_i])
1726
+ if test "$am_cv_prog_cc_c_o" != yes; then
1727
+ # Losing compiler, so override with the script.
1728
+ # FIXME: It is wrong to rewrite CC.
1729
+ # But if we don't then we get into trouble of one sort or another.
1730
+ # A longer-term fix would be to have automake use am__CC in this case,
1731
+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1732
+ CC="$am_aux_dir/compile $CC"
1733
+ fi
1734
+ AC_LANG_POP([C])])
1735
+
1736
+ # For backward compatibility.
1737
+ AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1738
+
1739
+ # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1740
+ #
1741
+ # This file is free software; the Free Software Foundation
1742
+ # gives unlimited permission to copy and/or distribute it,
1743
+ # with or without modifications, as long as this notice is preserved.
1744
+
1745
+ # AM_RUN_LOG(COMMAND)
1746
+ # -------------------
1747
+ # Run COMMAND, save the exit status in ac_status, and log it.
1748
+ # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1749
+ AC_DEFUN([AM_RUN_LOG],
1750
+ [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1751
+ ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1752
+ ac_status=$?
1753
+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1754
+ (exit $ac_status); }])
1755
+
1756
+ # Check to make sure that the build environment is sane. -*- Autoconf -*-
1757
+
1758
+ # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1759
+ #
1760
+ # This file is free software; the Free Software Foundation
1761
+ # gives unlimited permission to copy and/or distribute it,
1762
+ # with or without modifications, as long as this notice is preserved.
1763
+
1764
+ # AM_SANITY_CHECK
1765
+ # ---------------
1766
+ AC_DEFUN([AM_SANITY_CHECK],
1767
+ [AC_MSG_CHECKING([whether build environment is sane])
1768
+ # Reject unsafe characters in $srcdir or the absolute working directory
1769
+ # name. Accept space and tab only in the latter.
1770
+ am_lf='
1771
+ '
1772
+ case `pwd` in
1773
+ *[[\\\"\#\$\&\'\`$am_lf]]*)
1774
+ AC_MSG_ERROR([unsafe absolute working directory name]);;
1775
+ esac
1776
+ case $srcdir in
1777
+ *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1778
+ AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1779
+ esac
1780
+
1781
+ # Do 'set' in a subshell so we don't clobber the current shell's
1782
+ # arguments. Must try -L first in case configure is actually a
1783
+ # symlink; some systems play weird games with the mod time of symlinks
1784
+ # (eg FreeBSD returns the mod time of the symlink's containing
1785
+ # directory).
1786
+ if (
1787
+ am_has_slept=no
1788
+ for am_try in 1 2; do
1789
+ echo "timestamp, slept: $am_has_slept" > conftest.file
1790
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1791
+ if test "$[*]" = "X"; then
1792
+ # -L didn't work.
1793
+ set X `ls -t "$srcdir/configure" conftest.file`
1794
+ fi
1795
+ if test "$[*]" != "X $srcdir/configure conftest.file" \
1796
+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
1797
+
1798
+ # If neither matched, then we have a broken ls. This can happen
1799
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
1800
+ # broken ls alias from the environment. This has actually
1801
+ # happened. Such a system could not be considered "sane".
1802
+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1803
+ alias in your environment])
1804
+ fi
1805
+ if test "$[2]" = conftest.file || test $am_try -eq 2; then
1806
+ break
1807
+ fi
1808
+ # Just in case.
1809
+ sleep 1
1810
+ am_has_slept=yes
1811
+ done
1812
+ test "$[2]" = conftest.file
1813
+ )
1814
+ then
1815
+ # Ok.
1816
+ :
1817
+ else
1818
+ AC_MSG_ERROR([newly created file is older than distributed files!
1819
+ Check your system clock])
1820
+ fi
1821
+ AC_MSG_RESULT([yes])
1822
+ # If we didn't sleep, we still need to ensure time stamps of config.status and
1823
+ # generated files are strictly newer.
1824
+ am_sleep_pid=
1825
+ if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1826
+ ( sleep 1 ) &
1827
+ am_sleep_pid=$!
1828
+ fi
1829
+ AC_CONFIG_COMMANDS_PRE(
1830
+ [AC_MSG_CHECKING([that generated files are newer than configure])
1831
+ if test -n "$am_sleep_pid"; then
1832
+ # Hide warnings about reused PIDs.
1833
+ wait $am_sleep_pid 2>/dev/null
1834
+ fi
1835
+ AC_MSG_RESULT([done])])
1836
+ rm -f conftest.file
1837
+ ])
1838
+
1839
+ # Copyright (C) 2009-2013 Free Software Foundation, Inc.
1840
+ #
1841
+ # This file is free software; the Free Software Foundation
1842
+ # gives unlimited permission to copy and/or distribute it,
1843
+ # with or without modifications, as long as this notice is preserved.
1844
+
1845
+ # AM_SILENT_RULES([DEFAULT])
1846
+ # --------------------------
1847
+ # Enable less verbose build rules; with the default set to DEFAULT
1848
+ # ("yes" being less verbose, "no" or empty being verbose).
1849
+ AC_DEFUN([AM_SILENT_RULES],
1850
+ [AC_ARG_ENABLE([silent-rules], [dnl
1851
+ AS_HELP_STRING(
1852
+ [--enable-silent-rules],
1853
+ [less verbose build output (undo: "make V=1")])
1854
+ AS_HELP_STRING(
1855
+ [--disable-silent-rules],
1856
+ [verbose build output (undo: "make V=0")])dnl
1857
+ ])
1858
+ case $enable_silent_rules in @%:@ (((
1859
+ yes) AM_DEFAULT_VERBOSITY=0;;
1860
+ no) AM_DEFAULT_VERBOSITY=1;;
1861
+ *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1862
+ esac
1863
+ dnl
1864
+ dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1865
+ dnl do not support nested variable expansions.
1866
+ dnl See automake bug#9928 and bug#10237.
1867
+ am_make=${MAKE-make}
1868
+ AC_CACHE_CHECK([whether $am_make supports nested variables],
1869
+ [am_cv_make_support_nested_variables],
1870
+ [if AS_ECHO([['TRUE=$(BAR$(V))
1871
+ BAR0=false
1872
+ BAR1=true
1873
+ V=1
1874
+ am__doit:
1875
+ @$(TRUE)
1876
+ .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1877
+ am_cv_make_support_nested_variables=yes
1878
+ else
1879
+ am_cv_make_support_nested_variables=no
1880
+ fi])
1881
+ if test $am_cv_make_support_nested_variables = yes; then
1882
+ dnl Using '$V' instead of '$(V)' breaks IRIX make.
1883
+ AM_V='$(V)'
1884
+ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1885
+ else
1886
+ AM_V=$AM_DEFAULT_VERBOSITY
1887
+ AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1888
+ fi
1889
+ AC_SUBST([AM_V])dnl
1890
+ AM_SUBST_NOTMAKE([AM_V])dnl
1891
+ AC_SUBST([AM_DEFAULT_V])dnl
1892
+ AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1893
+ AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1894
+ AM_BACKSLASH='\'
1895
+ AC_SUBST([AM_BACKSLASH])dnl
1896
+ _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1897
+ ])
1898
+
1899
+ # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1900
+ #
1901
+ # This file is free software; the Free Software Foundation
1902
+ # gives unlimited permission to copy and/or distribute it,
1903
+ # with or without modifications, as long as this notice is preserved.
1904
+
1905
+ # AM_PROG_INSTALL_STRIP
1906
+ # ---------------------
1907
+ # One issue with vendor 'install' (even GNU) is that you can't
1908
+ # specify the program used to strip binaries. This is especially
1909
+ # annoying in cross-compiling environments, where the build's strip
1910
+ # is unlikely to handle the host's binaries.
1911
+ # Fortunately install-sh will honor a STRIPPROG variable, so we
1912
+ # always use install-sh in "make install-strip", and initialize
1913
+ # STRIPPROG with the value of the STRIP variable (set by the user).
1914
+ AC_DEFUN([AM_PROG_INSTALL_STRIP],
1915
+ [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1916
+ # Installed binaries are usually stripped using 'strip' when the user
1917
+ # run "make install-strip". However 'strip' might not be the right
1918
+ # tool to use in cross-compilation environments, therefore Automake
1919
+ # will honor the 'STRIP' environment variable to overrule this program.
1920
+ dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1921
+ if test "$cross_compiling" != no; then
1922
+ AC_CHECK_TOOL([STRIP], [strip], :)
1923
+ fi
1924
+ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1925
+ AC_SUBST([INSTALL_STRIP_PROGRAM])])
1926
+
1927
+ # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1928
+ #
1929
+ # This file is free software; the Free Software Foundation
1930
+ # gives unlimited permission to copy and/or distribute it,
1931
+ # with or without modifications, as long as this notice is preserved.
1932
+
1933
+ # _AM_SUBST_NOTMAKE(VARIABLE)
1934
+ # ---------------------------
1935
+ # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1936
+ # This macro is traced by Automake.
1937
+ AC_DEFUN([_AM_SUBST_NOTMAKE])
1938
+
1939
+ # AM_SUBST_NOTMAKE(VARIABLE)
1940
+ # --------------------------
1941
+ # Public sister of _AM_SUBST_NOTMAKE.
1942
+ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1943
+
1944
+ # Check how to create a tarball. -*- Autoconf -*-
1945
+
1946
+ # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1947
+ #
1948
+ # This file is free software; the Free Software Foundation
1949
+ # gives unlimited permission to copy and/or distribute it,
1950
+ # with or without modifications, as long as this notice is preserved.
1951
+
1952
+ # _AM_PROG_TAR(FORMAT)
1953
+ # --------------------
1954
+ # Check how to create a tarball in format FORMAT.
1955
+ # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1956
+ #
1957
+ # Substitute a variable $(am__tar) that is a command
1958
+ # writing to stdout a FORMAT-tarball containing the directory
1959
+ # $tardir.
1960
+ # tardir=directory && $(am__tar) > result.tar
1961
+ #
1962
+ # Substitute a variable $(am__untar) that extract such
1963
+ # a tarball read from stdin.
1964
+ # $(am__untar) < result.tar
1965
+ #
1966
+ AC_DEFUN([_AM_PROG_TAR],
1967
+ [# Always define AMTAR for backward compatibility. Yes, it's still used
1968
+ # in the wild :-( We should find a proper way to deprecate it ...
1969
+ AC_SUBST([AMTAR], ['$${TAR-tar}'])
1970
+
1971
+ # We'll loop over all known methods to create a tar archive until one works.
1972
+ _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1973
+
1974
+ m4_if([$1], [v7],
1975
+ [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1976
+
1977
+ [m4_case([$1],
1978
+ [ustar],
1979
+ [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1980
+ # There is notably a 21 bits limit for the UID and the GID. In fact,
1981
+ # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1982
+ # and bug#13588).
1983
+ am_max_uid=2097151 # 2^21 - 1
1984
+ am_max_gid=$am_max_uid
1985
+ # The $UID and $GID variables are not portable, so we need to resort
1986
+ # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1987
+ # below are definitely unexpected, so allow the users to see them
1988
+ # (that is, avoid stderr redirection).
1989
+ am_uid=`id -u || echo unknown`
1990
+ am_gid=`id -g || echo unknown`
1991
+ AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1992
+ if test $am_uid -le $am_max_uid; then
1993
+ AC_MSG_RESULT([yes])
1994
+ else
1995
+ AC_MSG_RESULT([no])
1996
+ _am_tools=none
1997
+ fi
1998
+ AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1999
+ if test $am_gid -le $am_max_gid; then
2000
+ AC_MSG_RESULT([yes])
2001
+ else
2002
+ AC_MSG_RESULT([no])
2003
+ _am_tools=none
2004
+ fi],
2005
+
2006
+ [pax],
2007
+ [],
2008
+
2009
+ [m4_fatal([Unknown tar format])])
2010
+
2011
+ AC_MSG_CHECKING([how to create a $1 tar archive])
2012
+
2013
+ # Go ahead even if we have the value already cached. We do so because we
2014
+ # need to set the values for the 'am__tar' and 'am__untar' variables.
2015
+ _am_tools=${am_cv_prog_tar_$1-$_am_tools}
2016
+
2017
+ for _am_tool in $_am_tools; do
2018
+ case $_am_tool in
2019
+ gnutar)
2020
+ for _am_tar in tar gnutar gtar; do
2021
+ AM_RUN_LOG([$_am_tar --version]) && break
2022
+ done
2023
+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
2024
+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
2025
+ am__untar="$_am_tar -xf -"
2026
+ ;;
2027
+ plaintar)
2028
+ # Must skip GNU tar: if it does not support --format= it doesn't create
2029
+ # ustar tarball either.
2030
+ (tar --version) >/dev/null 2>&1 && continue
2031
+ am__tar='tar chf - "$$tardir"'
2032
+ am__tar_='tar chf - "$tardir"'
2033
+ am__untar='tar xf -'
2034
+ ;;
2035
+ pax)
2036
+ am__tar='pax -L -x $1 -w "$$tardir"'
2037
+ am__tar_='pax -L -x $1 -w "$tardir"'
2038
+ am__untar='pax -r'
2039
+ ;;
2040
+ cpio)
2041
+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
2042
+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
2043
+ am__untar='cpio -i -H $1 -d'
2044
+ ;;
2045
+ none)
2046
+ am__tar=false
2047
+ am__tar_=false
2048
+ am__untar=false
2049
+ ;;
2050
+ esac
2051
+
2052
+ # If the value was cached, stop now. We just wanted to have am__tar
2053
+ # and am__untar set.
2054
+ test -n "${am_cv_prog_tar_$1}" && break
2055
+
2056
+ # tar/untar a dummy directory, and stop if the command works.
2057
+ rm -rf conftest.dir
2058
+ mkdir conftest.dir
2059
+ echo GrepMe > conftest.dir/file
2060
+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
2061
+ rm -rf conftest.dir
2062
+ if test -s conftest.tar; then
2063
+ AM_RUN_LOG([$am__untar <conftest.tar])
2064
+ AM_RUN_LOG([cat conftest.dir/file])
2065
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2066
+ fi
2067
+ done
2068
+ rm -rf conftest.dir
2069
+
2070
+ AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
2071
+ AC_MSG_RESULT([$am_cv_prog_tar_$1])])
2072
+
2073
+ AC_SUBST([am__tar])
2074
+ AC_SUBST([am__untar])
2075
+ ]) # _AM_PROG_TAR
2076
+
2077
+ m4_include([m4/ac_cxx_compile_stdcxx_0x.m4])
2078
+ m4_include([m4/ac_cxx_header_stdcxx_98.m4])
2079
+ m4_include([m4/acx_pthread.m4])
2080
+ m4_include([m4/byteorder.m4])
2081
+ m4_include([m4/deprecated.m4])
2082
+ m4_include([m4/enable_utillib.m4])
2083
+ m4_include([m4/extensions.m4])
2084
+ m4_include([m4/hsieh.m4])
2085
+ m4_include([m4/lib-prefix.m4])
2086
+ m4_include([m4/libtool.m4])
2087
+ m4_include([m4/ltoptions.m4])
2088
+ m4_include([m4/ltsugar.m4])
2089
+ m4_include([m4/ltversion.m4])
2090
+ m4_include([m4/lt~obsolete.m4])
2091
+ m4_include([m4/memcached.m4])
2092
+ m4_include([m4/pandora_64bit.m4])
2093
+ m4_include([m4/pandora_canonical.m4])
2094
+ m4_include([m4/pandora_check_compiler_version.m4])
2095
+ m4_include([m4/pandora_check_cxx_standard.m4])
2096
+ m4_include([m4/pandora_enable_dtrace.m4])
2097
+ m4_include([m4/pandora_ensure_gcc_version.m4])
2098
+ m4_include([m4/pandora_have_better_malloc.m4])
2099
+ m4_include([m4/pandora_have_sasl.m4])
2100
+ m4_include([m4/pandora_header_assert.m4])
2101
+ m4_include([m4/pandora_libtool.m4])
2102
+ m4_include([m4/pandora_optimize.m4])
2103
+ m4_include([m4/pandora_shared_ptr.m4])
2104
+ m4_include([m4/pandora_vc_build.m4])
2105
+ m4_include([m4/pandora_warnings.m4])
2106
+ m4_include([m4/protocol_binary.m4])
2107
+ m4_include([m4/setsockopt.m4])
2108
+ m4_include([m4/visibility.m4])