memcached 1.7.0 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +9 -9
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/CHANGELOG +4 -0
  5. data/Manifest +2 -36
  6. data/README.rdoc +2 -2
  7. data/Rakefile +1 -0
  8. data/ext/extconf.rb +1 -1
  9. data/ext/lib64/libmemcached.la +41 -0
  10. data/ext/lib64/pkgconfig/libmemcached.pc +10 -0
  11. data/ext/libmemcached-0.32/Makefile.am +1 -1
  12. data/ext/libmemcached-0.32/Makefile.in +242 -162
  13. data/ext/libmemcached-0.32/aclocal.m4 +533 -342
  14. data/ext/libmemcached-0.32/config.h.in +5 -3
  15. data/ext/libmemcached-0.32/configure +449 -431
  16. data/ext/libmemcached-0.32/configure.ac +0 -2
  17. data/memcached.gemspec +0 -0
  18. data/memcached.pem +16 -16
  19. metadata +26 -59
  20. metadata.gz.sig +0 -0
  21. data/ext/libmemcached-0.32/docs/Makefile.am +0 -415
  22. data/ext/libmemcached-0.32/docs/Makefile.in +0 -920
  23. data/ext/libmemcached-0.32/docs/libmemcached.pod +0 -123
  24. data/ext/libmemcached-0.32/docs/libmemcached_examples.pod +0 -115
  25. data/ext/libmemcached-0.32/docs/libmemcachedutil.pod +0 -40
  26. data/ext/libmemcached-0.32/docs/memcached_analyze.pod +0 -52
  27. data/ext/libmemcached-0.32/docs/memcached_auto.pod +0 -97
  28. data/ext/libmemcached-0.32/docs/memcached_behavior.pod +0 -224
  29. data/ext/libmemcached-0.32/docs/memcached_callback.pod +0 -123
  30. data/ext/libmemcached-0.32/docs/memcached_create.pod +0 -61
  31. data/ext/libmemcached-0.32/docs/memcached_delete.pod +0 -54
  32. data/ext/libmemcached-0.32/docs/memcached_dump.pod +0 -53
  33. data/ext/libmemcached-0.32/docs/memcached_flush.pod +0 -46
  34. data/ext/libmemcached-0.32/docs/memcached_flush_buffers.pod +0 -42
  35. data/ext/libmemcached-0.32/docs/memcached_generate_hash_value.pod +0 -57
  36. data/ext/libmemcached-0.32/docs/memcached_get.pod +0 -161
  37. data/ext/libmemcached-0.32/docs/memcached_memory_allocators.pod +0 -73
  38. data/ext/libmemcached-0.32/docs/memcached_pool.pod +0 -77
  39. data/ext/libmemcached-0.32/docs/memcached_quit.pod +0 -47
  40. data/ext/libmemcached-0.32/docs/memcached_sasl.pod +0 -63
  41. data/ext/libmemcached-0.32/docs/memcached_server_st.pod +0 -75
  42. data/ext/libmemcached-0.32/docs/memcached_servers.pod +0 -102
  43. data/ext/libmemcached-0.32/docs/memcached_set.pod +0 -187
  44. data/ext/libmemcached-0.32/docs/memcached_stats.pod +0 -82
  45. data/ext/libmemcached-0.32/docs/memcached_strerror.pod +0 -46
  46. data/ext/libmemcached-0.32/docs/memcached_user_data.pod +0 -49
  47. data/ext/libmemcached-0.32/docs/memcached_verbosity.pod +0 -41
  48. data/ext/libmemcached-0.32/docs/memcached_version.pod +0 -56
  49. data/ext/libmemcached-0.32/docs/memcat.pod +0 -37
  50. data/ext/libmemcached-0.32/docs/memcp.pod +0 -40
  51. data/ext/libmemcached-0.32/docs/memdump.pod +0 -31
  52. data/ext/libmemcached-0.32/docs/memerror.pod +0 -30
  53. data/ext/libmemcached-0.32/docs/memflush.pod +0 -35
  54. data/ext/libmemcached-0.32/docs/memrm.pod +0 -34
  55. data/ext/libmemcached-0.32/docs/memslap.pod +0 -33
  56. data/ext/libmemcached-0.32/docs/memstat.pod +0 -35
@@ -1,7 +1,7 @@
1
- # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
1
+ # generated automatically by aclocal 1.14 -*- Autoconf -*-
2
+
3
+ # Copyright (C) 1996-2013 Free Software Foundation, Inc.
2
4
 
3
- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
- # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5
5
  # This file is free software; the Free Software Foundation
6
6
  # gives unlimited permission to copy and/or distribute it,
7
7
  # with or without modifications, as long as this notice is preserved.
@@ -11,61 +11,68 @@
11
11
  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
  # PARTICULAR PURPOSE.
13
13
 
14
+ m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14
15
  m4_ifndef([AC_AUTOCONF_VERSION],
15
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
- m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17
- [m4_warning([this file was generated for autoconf 2.68.
17
+ m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18
+ [m4_warning([this file was generated for autoconf 2.69.
18
19
  You have another version of autoconf. It may work, but is not guaranteed to.
19
20
  If you have problems, you may need to regenerate the build system entirely.
20
- To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
+ To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22
 
22
- # lib-ld.m4 serial 4 (gettext-0.18)
23
- dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc.
23
+ # lib-ld.m4 serial 6
24
+ dnl Copyright (C) 1996-2003, 2009-2013 Free Software Foundation, Inc.
24
25
  dnl This file is free software; the Free Software Foundation
25
26
  dnl gives unlimited permission to copy and/or distribute it,
26
27
  dnl with or without modifications, as long as this notice is preserved.
27
28
 
28
29
  dnl Subroutines of libtool.m4,
29
- dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
30
- dnl with libtool.m4.
30
+ dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid
31
+ dnl collision with libtool.m4.
31
32
 
32
- dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
33
+ dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no.
33
34
  AC_DEFUN([AC_LIB_PROG_LD_GNU],
34
35
  [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld],
35
- [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
36
+ [# I'd rather use --version here, but apparently some GNU lds only accept -v.
36
37
  case `$LD -v 2>&1 </dev/null` in
37
38
  *GNU* | *'with BFD'*)
38
- acl_cv_prog_gnu_ld=yes ;;
39
+ acl_cv_prog_gnu_ld=yes
40
+ ;;
39
41
  *)
40
- acl_cv_prog_gnu_ld=no ;;
42
+ acl_cv_prog_gnu_ld=no
43
+ ;;
41
44
  esac])
42
45
  with_gnu_ld=$acl_cv_prog_gnu_ld
43
46
  ])
44
47
 
45
- dnl From libtool-1.4. Sets the variable LD.
48
+ dnl From libtool-2.4. Sets the variable LD.
46
49
  AC_DEFUN([AC_LIB_PROG_LD],
47
- [AC_ARG_WITH([gnu-ld],
48
- [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
49
- test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
50
- AC_REQUIRE([AC_PROG_CC])dnl
50
+ [AC_REQUIRE([AC_PROG_CC])dnl
51
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
+
52
59
  # Prepare PATH_SEPARATOR.
53
60
  # The user is always right.
54
61
  if test "${PATH_SEPARATOR+set}" != set; then
55
- echo "#! /bin/sh" >conf$$.sh
56
- echo "exit 0" >>conf$$.sh
57
- chmod +x conf$$.sh
58
- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
59
- PATH_SEPARATOR=';'
60
- else
61
- PATH_SEPARATOR=:
62
- fi
63
- rm -f conf$$.sh
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
+ }
64
70
  fi
71
+
65
72
  ac_prog=ld
66
73
  if test "$GCC" = yes; then
67
74
  # Check if gcc -print-prog-name=ld gives a path.
68
- AC_MSG_CHECKING([for ld used by GCC])
75
+ AC_MSG_CHECKING([for ld used by $CC])
69
76
  case $host in
70
77
  *-*-mingw*)
71
78
  # gcc leaves a trailing carriage return which upsets mingw
@@ -75,11 +82,11 @@ if test "$GCC" = yes; then
75
82
  esac
76
83
  case $ac_prog in
77
84
  # Accept absolute paths.
78
- [[\\/]* | [A-Za-z]:[\\/]*)]
79
- [re_direlt='/[^/][^/]*/\.\./']
80
- # Canonicalize the path of ld
81
- ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
82
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
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
83
90
  ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
84
91
  done
85
92
  test -z "$LD" && LD="$ac_prog"
@@ -100,23 +107,26 @@ else
100
107
  fi
101
108
  AC_CACHE_VAL([acl_cv_path_LD],
102
109
  [if test -z "$LD"; then
103
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
110
+ acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
104
111
  for ac_dir in $PATH; do
112
+ IFS="$acl_save_ifs"
105
113
  test -z "$ac_dir" && ac_dir=.
106
114
  if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
107
115
  acl_cv_path_LD="$ac_dir/$ac_prog"
108
116
  # Check to see if the program is GNU ld. I'd rather use --version,
109
- # but apparently some GNU ld's only accept -v.
117
+ # but apparently some variants of GNU ld only accept -v.
110
118
  # Break only if it was the GNU/non-GNU ld that we prefer.
111
- case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
119
+ case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
112
120
  *GNU* | *'with BFD'*)
113
- test "$with_gnu_ld" != no && break ;;
121
+ test "$with_gnu_ld" != no && break
122
+ ;;
114
123
  *)
115
- test "$with_gnu_ld" != yes && break ;;
124
+ test "$with_gnu_ld" != yes && break
125
+ ;;
116
126
  esac
117
127
  fi
118
128
  done
119
- IFS="$ac_save_ifs"
129
+ IFS="$acl_save_ifs"
120
130
  else
121
131
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
122
132
  fi])
@@ -130,8 +140,8 @@ test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
130
140
  AC_LIB_PROG_LD_GNU
131
141
  ])
132
142
 
133
- # lib-link.m4 serial 21 (gettext-0.18)
134
- dnl Copyright (C) 2001-2010 Free Software Foundation, Inc.
143
+ # lib-link.m4 serial 26 (gettext-0.18.2)
144
+ dnl Copyright (C) 2001-2013 Free Software Foundation, Inc.
135
145
  dnl This file is free software; the Free Software Foundation
136
146
  dnl gives unlimited permission to copy and/or distribute it,
137
147
  dnl with or without modifications, as long as this notice is preserved.
@@ -150,9 +160,9 @@ AC_DEFUN([AC_LIB_LINKFLAGS],
150
160
  [
151
161
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
152
162
  AC_REQUIRE([AC_LIB_RPATH])
153
- pushdef([Name],[translit([$1],[./-], [___])])
154
- pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
155
- [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
163
+ pushdef([Name],[m4_translit([$1],[./+-], [____])])
164
+ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
165
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
156
166
  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
157
167
  AC_LIB_LINKFLAGS_BODY([$1], [$2])
158
168
  ac_cv_lib[]Name[]_libs="$LIB[]NAME"
@@ -190,9 +200,9 @@ AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
190
200
  [
191
201
  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
192
202
  AC_REQUIRE([AC_LIB_RPATH])
193
- pushdef([Name],[translit([$1],[./-], [___])])
194
- pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
195
- [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
203
+ pushdef([Name],[m4_translit([$1],[./+-], [____])])
204
+ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
205
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
196
206
 
197
207
  dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
198
208
  dnl accordingly.
@@ -217,7 +227,8 @@ AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
217
227
  *" -l"*) LIBS="$LIBS $LIB[]NAME" ;;
218
228
  *) LIBS="$LIB[]NAME $LIBS" ;;
219
229
  esac
220
- AC_TRY_LINK([$3], [$4],
230
+ AC_LINK_IFELSE(
231
+ [AC_LANG_PROGRAM([[$3]], [[$4]])],
221
232
  [ac_cv_lib[]Name=yes],
222
233
  [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])'])
223
234
  LIBS="$ac_save_LIBS"
@@ -247,6 +258,8 @@ AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
247
258
  dnl Determine the platform dependent parameters needed to use rpath:
248
259
  dnl acl_libext,
249
260
  dnl acl_shlibext,
261
+ dnl acl_libname_spec,
262
+ dnl acl_library_names_spec,
250
263
  dnl acl_hardcode_libdir_flag_spec,
251
264
  dnl acl_hardcode_libdir_separator,
252
265
  dnl acl_hardcode_direct,
@@ -289,15 +302,15 @@ dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar
289
302
  dnl macro call that searches for libname.
290
303
  AC_DEFUN([AC_LIB_FROMPACKAGE],
291
304
  [
292
- pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
293
- [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
305
+ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
306
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
294
307
  define([acl_frompackage_]NAME, [$2])
295
308
  popdef([NAME])
296
309
  pushdef([PACK],[$2])
297
- pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-],
298
- [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
310
+ pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
311
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
299
312
  define([acl_libsinpackage_]PACKUP,
300
- m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1])
313
+ m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1])
301
314
  popdef([PACKUP])
302
315
  popdef([PACK])
303
316
  ])
@@ -310,14 +323,14 @@ dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem.
310
323
  AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
311
324
  [
312
325
  AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
313
- pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
314
- [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
326
+ pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-],
327
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
315
328
  pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])])
316
- pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-],
317
- [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
329
+ pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
330
+ [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
318
331
  pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
319
332
  dnl Autoconf >= 2.61 supports dots in --with options.
320
- pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)])
333
+ pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)])
321
334
  dnl By default, look in $includedir and $libdir.
322
335
  use_additional=yes
323
336
  AC_LIB_WITH_FINAL_PREFIX([
@@ -374,7 +387,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
374
387
  names_already_handled="$names_already_handled $name"
375
388
  dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
376
389
  dnl or AC_LIB_HAVE_LINKFLAGS call.
377
- uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
390
+ uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
378
391
  eval value=\"\$HAVE_LIB$uppername\"
379
392
  if test -n "$value"; then
380
393
  if test "$value" = yes; then
@@ -905,7 +918,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
905
918
  AC_SUBST([$1])
906
919
  ])
907
920
 
908
- # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
921
+ # Copyright (C) 2002-2013 Free Software Foundation, Inc.
909
922
  #
910
923
  # This file is free software; the Free Software Foundation
911
924
  # gives unlimited permission to copy and/or distribute it,
@@ -917,10 +930,10 @@ AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
917
930
  # generated from the m4 files accompanying Automake X.Y.
918
931
  # (This private macro should not be called outside this file.)
919
932
  AC_DEFUN([AM_AUTOMAKE_VERSION],
920
- [am__api_version='1.11'
933
+ [am__api_version='1.14'
921
934
  dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
922
935
  dnl require some minimum version. Point them to the right macro.
923
- m4_if([$1], [1.11.1], [],
936
+ m4_if([$1], [1.14], [],
924
937
  [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
925
938
  ])
926
939
 
@@ -936,22 +949,22 @@ m4_define([_AM_AUTOCONF_VERSION], [])
936
949
  # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
937
950
  # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
938
951
  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
939
- [AM_AUTOMAKE_VERSION([1.11.1])dnl
952
+ [AM_AUTOMAKE_VERSION([1.14])dnl
940
953
  m4_ifndef([AC_AUTOCONF_VERSION],
941
954
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
942
955
  _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
943
956
 
944
957
  # AM_AUX_DIR_EXPAND -*- Autoconf -*-
945
958
 
946
- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
959
+ # Copyright (C) 2001-2013 Free Software Foundation, Inc.
947
960
  #
948
961
  # This file is free software; the Free Software Foundation
949
962
  # gives unlimited permission to copy and/or distribute it,
950
963
  # with or without modifications, as long as this notice is preserved.
951
964
 
952
965
  # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
953
- # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
954
- # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
966
+ # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
967
+ # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
955
968
  #
956
969
  # Of course, Automake must honor this variable whenever it calls a
957
970
  # tool from the auxiliary directory. The problem is that $srcdir (and
@@ -970,7 +983,7 @@ _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
970
983
  #
971
984
  # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
972
985
  # are both prefixed by $srcdir. In an in-source build this is usually
973
- # harmless because $srcdir is `.', but things will broke when you
986
+ # harmless because $srcdir is '.', but things will broke when you
974
987
  # start a VPATH build or use an absolute $srcdir.
975
988
  #
976
989
  # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
@@ -996,22 +1009,19 @@ am_aux_dir=`cd $ac_aux_dir && pwd`
996
1009
 
997
1010
  # AM_CONDITIONAL -*- Autoconf -*-
998
1011
 
999
- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
1000
- # Free Software Foundation, Inc.
1012
+ # Copyright (C) 1997-2013 Free Software Foundation, Inc.
1001
1013
  #
1002
1014
  # This file is free software; the Free Software Foundation
1003
1015
  # gives unlimited permission to copy and/or distribute it,
1004
1016
  # with or without modifications, as long as this notice is preserved.
1005
1017
 
1006
- # serial 9
1007
-
1008
1018
  # AM_CONDITIONAL(NAME, SHELL-CONDITION)
1009
1019
  # -------------------------------------
1010
1020
  # Define a conditional.
1011
1021
  AC_DEFUN([AM_CONDITIONAL],
1012
- [AC_PREREQ(2.52)dnl
1013
- ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1014
- [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
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
1015
1025
  AC_SUBST([$1_TRUE])dnl
1016
1026
  AC_SUBST([$1_FALSE])dnl
1017
1027
  _AM_SUBST_NOTMAKE([$1_TRUE])dnl
@@ -1030,16 +1040,14 @@ AC_CONFIG_COMMANDS_PRE(
1030
1040
  Usually this means the macro was only invoked conditionally.]])
1031
1041
  fi])])
1032
1042
 
1033
- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
1034
- # Free Software Foundation, Inc.
1043
+ # Copyright (C) 1999-2013 Free Software Foundation, Inc.
1035
1044
  #
1036
1045
  # This file is free software; the Free Software Foundation
1037
1046
  # gives unlimited permission to copy and/or distribute it,
1038
1047
  # with or without modifications, as long as this notice is preserved.
1039
1048
 
1040
- # serial 10
1041
1049
 
1042
- # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1050
+ # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
1043
1051
  # written in clear, in which case automake, when reading aclocal.m4,
1044
1052
  # will think it sees a *use*, and therefore will trigger all it's
1045
1053
  # C support machinery. Also note that it means that autoscan, seeing
@@ -1049,7 +1057,7 @@ fi])])
1049
1057
  # _AM_DEPENDENCIES(NAME)
1050
1058
  # ----------------------
1051
1059
  # See how the compiler implements dependency checking.
1052
- # NAME is "CC", "CXX", "GCJ", or "OBJC".
1060
+ # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
1053
1061
  # We try a few techniques and use that to set a single cache variable.
1054
1062
  #
1055
1063
  # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
@@ -1062,12 +1070,13 @@ AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1062
1070
  AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1063
1071
  AC_REQUIRE([AM_DEP_TRACK])dnl
1064
1072
 
1065
- ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1066
- [$1], CXX, [depcc="$CXX" am_compiler_list=],
1067
- [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1068
- [$1], UPC, [depcc="$UPC" am_compiler_list=],
1069
- [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1070
- [depcc="$$1" am_compiler_list=])
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=])
1071
1080
 
1072
1081
  AC_CACHE_CHECK([dependency style of $depcc],
1073
1082
  [am_cv_$1_dependencies_compiler_type],
@@ -1075,8 +1084,9 @@ AC_CACHE_CHECK([dependency style of $depcc],
1075
1084
  # We make a subdir and do the tests there. Otherwise we can end up
1076
1085
  # making bogus files that we don't know about and never remove. For
1077
1086
  # instance it was reported that on HP-UX the gcc test will end up
1078
- # making a dummy file named `D' -- because `-MD' means `put the output
1079
- # in D'.
1087
+ # making a dummy file named 'D' -- because '-MD' means "put the output
1088
+ # in D".
1089
+ rm -rf conftest.dir
1080
1090
  mkdir conftest.dir
1081
1091
  # Copy depcomp to subdir because otherwise we won't find it if we're
1082
1092
  # using a relative directory.
@@ -1115,16 +1125,16 @@ AC_CACHE_CHECK([dependency style of $depcc],
1115
1125
  : > sub/conftest.c
1116
1126
  for i in 1 2 3 4 5 6; do
1117
1127
  echo '#include "conftst'$i'.h"' >> sub/conftest.c
1118
- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1119
- # Solaris 8's {/usr,}/bin/sh.
1120
- touch sub/conftst$i.h
1128
+ # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
1129
+ # Solaris 10 /bin/sh.
1130
+ echo '/* dummy */' > sub/conftst$i.h
1121
1131
  done
1122
1132
  echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1123
1133
 
1124
- # We check with `-c' and `-o' for the sake of the "dashmstdout"
1134
+ # We check with '-c' and '-o' for the sake of the "dashmstdout"
1125
1135
  # mode. It turns out that the SunPro C++ compiler does not properly
1126
- # handle `-M -o', and we need to detect this. Also, some Intel
1127
- # versions had trouble with output in subdirs
1136
+ # handle '-M -o', and we need to detect this. Also, some Intel
1137
+ # versions had trouble with output in subdirs.
1128
1138
  am__obj=sub/conftest.${OBJEXT-o}
1129
1139
  am__minus_obj="-o $am__obj"
1130
1140
  case $depmode in
@@ -1133,16 +1143,16 @@ AC_CACHE_CHECK([dependency style of $depcc],
1133
1143
  test "$am__universal" = false || continue
1134
1144
  ;;
1135
1145
  nosideeffect)
1136
- # after this tag, mechanisms are not by side-effect, so they'll
1137
- # only be used when explicitly requested
1146
+ # After this tag, mechanisms are not by side-effect, so they'll
1147
+ # only be used when explicitly requested.
1138
1148
  if test "x$enable_dependency_tracking" = xyes; then
1139
1149
  continue
1140
1150
  else
1141
1151
  break
1142
1152
  fi
1143
1153
  ;;
1144
- msvisualcpp | msvcmsys)
1145
- # This compiler won't grok `-c -o', but also, the minuso test has
1154
+ msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1155
+ # This compiler won't grok '-c -o', but also, the minuso test has
1146
1156
  # not run yet. These depmodes are late enough in the game, and
1147
1157
  # so weak that their functioning should not be impacted.
1148
1158
  am__obj=conftest.${OBJEXT-o}
@@ -1190,7 +1200,7 @@ AM_CONDITIONAL([am__fastdep$1], [
1190
1200
  # AM_SET_DEPDIR
1191
1201
  # -------------
1192
1202
  # Choose a directory name for dependency files.
1193
- # This macro is AC_REQUIREd in _AM_DEPENDENCIES
1203
+ # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
1194
1204
  AC_DEFUN([AM_SET_DEPDIR],
1195
1205
  [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1196
1206
  AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
@@ -1200,34 +1210,39 @@ AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1200
1210
  # AM_DEP_TRACK
1201
1211
  # ------------
1202
1212
  AC_DEFUN([AM_DEP_TRACK],
1203
- [AC_ARG_ENABLE(dependency-tracking,
1204
- [ --disable-dependency-tracking speeds up one-time build
1205
- --enable-dependency-tracking do not reject slow dependency extractors])
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])])
1206
1220
  if test "x$enable_dependency_tracking" != xno; then
1207
1221
  am_depcomp="$ac_aux_dir/depcomp"
1208
1222
  AMDEPBACKSLASH='\'
1223
+ am__nodep='_no'
1209
1224
  fi
1210
1225
  AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1211
1226
  AC_SUBST([AMDEPBACKSLASH])dnl
1212
1227
  _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1228
+ AC_SUBST([am__nodep])dnl
1229
+ _AM_SUBST_NOTMAKE([am__nodep])dnl
1213
1230
  ])
1214
1231
 
1215
1232
  # Generate code to set up dependency tracking. -*- Autoconf -*-
1216
1233
 
1217
- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1218
- # Free Software Foundation, Inc.
1234
+ # Copyright (C) 1999-2013 Free Software Foundation, Inc.
1219
1235
  #
1220
1236
  # This file is free software; the Free Software Foundation
1221
1237
  # gives unlimited permission to copy and/or distribute it,
1222
1238
  # with or without modifications, as long as this notice is preserved.
1223
1239
 
1224
- #serial 5
1225
1240
 
1226
1241
  # _AM_OUTPUT_DEPENDENCY_COMMANDS
1227
1242
  # ------------------------------
1228
1243
  AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1229
1244
  [{
1230
- # Autoconf 2.62 quotes --file arguments for eval, but not when files
1245
+ # Older Autoconf quotes --file arguments for eval, but not when files
1231
1246
  # are listed without --file. Let's play safe and only enable the eval
1232
1247
  # if we detect the quoting.
1233
1248
  case $CONFIG_FILES in
@@ -1240,7 +1255,7 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1240
1255
  # Strip MF so we end up with the name of the file.
1241
1256
  mf=`echo "$mf" | sed -e 's/:.*$//'`
1242
1257
  # Check whether this is an Automake generated Makefile or not.
1243
- # We used to match only the files named `Makefile.in', but
1258
+ # We used to match only the files named 'Makefile.in', but
1244
1259
  # some people rename them; so instead we look at the file content.
1245
1260
  # Grep'ing the first line is not enough: some people post-process
1246
1261
  # each Makefile.in and add a new line on top of each file to say so.
@@ -1252,21 +1267,19 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1252
1267
  continue
1253
1268
  fi
1254
1269
  # Extract the definition of DEPDIR, am__include, and am__quote
1255
- # from the Makefile without running `make'.
1270
+ # from the Makefile without running 'make'.
1256
1271
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1257
1272
  test -z "$DEPDIR" && continue
1258
1273
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
1259
- test -z "am__include" && continue
1274
+ test -z "$am__include" && continue
1260
1275
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1261
- # When using ansi2knr, U may be empty or an underscore; expand it
1262
- U=`sed -n 's/^U = //p' < "$mf"`
1263
1276
  # Find all dependency output files, they are included files with
1264
1277
  # $(DEPDIR) in their names. We invoke sed twice because it is the
1265
1278
  # simplest approach to changing $(DEPDIR) to its actual value in the
1266
1279
  # expansion.
1267
1280
  for file in `sed -n "
1268
1281
  s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1269
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1282
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1270
1283
  # Make sure the directory exists.
1271
1284
  test -f "$dirpart/$file" && continue
1272
1285
  fdir=`AS_DIRNAME(["$file"])`
@@ -1284,7 +1297,7 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1284
1297
  # This macro should only be invoked once -- use via AC_REQUIRE.
1285
1298
  #
1286
1299
  # This code is only required when automatic dependency tracking
1287
- # is enabled. FIXME. This creates each `.P' file that we will
1300
+ # is enabled. FIXME. This creates each '.P' file that we will
1288
1301
  # need in order to bootstrap the dependency handling code.
1289
1302
  AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1290
1303
  [AC_CONFIG_COMMANDS([depfiles],
@@ -1292,32 +1305,23 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1292
1305
  [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1293
1306
  ])
1294
1307
 
1295
- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1296
- # Free Software Foundation, Inc.
1297
- #
1298
- # This file is free software; the Free Software Foundation
1299
- # gives unlimited permission to copy and/or distribute it,
1300
- # with or without modifications, as long as this notice is preserved.
1301
-
1302
- # serial 8
1303
-
1304
- # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
1305
- AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1306
-
1307
1308
  # Do all the work for Automake. -*- Autoconf -*-
1308
1309
 
1309
- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1310
- # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1310
+ # Copyright (C) 1996-2013 Free Software Foundation, Inc.
1311
1311
  #
1312
1312
  # This file is free software; the Free Software Foundation
1313
1313
  # gives unlimited permission to copy and/or distribute it,
1314
1314
  # with or without modifications, as long as this notice is preserved.
1315
1315
 
1316
- # serial 16
1317
-
1318
1316
  # This macro actually does too much. Some checks are only needed if
1319
1317
  # your package does certain things. But this isn't really a big deal.
1320
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
+
1321
1325
  # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1322
1326
  # AM_INIT_AUTOMAKE([OPTIONS])
1323
1327
  # -----------------------------------------------
@@ -1330,7 +1334,7 @@ AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1330
1334
  # arguments mandatory, and then we can depend on a new Autoconf
1331
1335
  # release and drop the old call support.
1332
1336
  AC_DEFUN([AM_INIT_AUTOMAKE],
1333
- [AC_PREREQ([2.62])dnl
1337
+ [AC_PREREQ([2.65])dnl
1334
1338
  dnl Autoconf wants to disallow AM_ names. We explicitly allow
1335
1339
  dnl the ones we care about.
1336
1340
  m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
@@ -1359,31 +1363,40 @@ AC_SUBST([CYGPATH_W])
1359
1363
  # Define the identity of the package.
1360
1364
  dnl Distinguish between old-style and new-style calls.
1361
1365
  m4_ifval([$2],
1362
- [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1366
+ [AC_DIAGNOSE([obsolete],
1367
+ [$0: two- and three-arguments forms are deprecated.])
1368
+ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1363
1369
  AC_SUBST([PACKAGE], [$1])dnl
1364
1370
  AC_SUBST([VERSION], [$2])],
1365
1371
  [_AM_SET_OPTIONS([$1])dnl
1366
1372
  dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1367
- m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1373
+ m4_if(
1374
+ m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
1375
+ [ok:ok],,
1368
1376
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1369
1377
  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1370
1378
  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1371
1379
 
1372
1380
  _AM_IF_OPTION([no-define],,
1373
- [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1374
- AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1381
+ [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
1382
+ AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
1375
1383
 
1376
1384
  # Some tools Automake needs.
1377
1385
  AC_REQUIRE([AM_SANITY_CHECK])dnl
1378
1386
  AC_REQUIRE([AC_ARG_PROGRAM])dnl
1379
- AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1380
- AM_MISSING_PROG(AUTOCONF, autoconf)
1381
- AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1382
- AM_MISSING_PROG(AUTOHEADER, autoheader)
1383
- AM_MISSING_PROG(MAKEINFO, makeinfo)
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])
1384
1392
  AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1385
1393
  AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1386
- AC_REQUIRE([AM_PROG_MKDIR_P])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)'])
1387
1400
  # We need awk for the "check" target. The system "awk" is bad on
1388
1401
  # some platforms.
1389
1402
  AC_REQUIRE([AC_PROG_AWK])dnl
@@ -1394,34 +1407,78 @@ _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1394
1407
  [_AM_PROG_TAR([v7])])])
1395
1408
  _AM_IF_OPTION([no-dependencies],,
1396
1409
  [AC_PROVIDE_IFELSE([AC_PROG_CC],
1397
- [_AM_DEPENDENCIES(CC)],
1398
- [define([AC_PROG_CC],
1399
- defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1410
+ [_AM_DEPENDENCIES([CC])],
1411
+ [m4_define([AC_PROG_CC],
1412
+ m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
1400
1413
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
1401
- [_AM_DEPENDENCIES(CXX)],
1402
- [define([AC_PROG_CXX],
1403
- defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1414
+ [_AM_DEPENDENCIES([CXX])],
1415
+ [m4_define([AC_PROG_CXX],
1416
+ m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
1404
1417
  AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1405
- [_AM_DEPENDENCIES(OBJC)],
1406
- [define([AC_PROG_OBJC],
1407
- defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
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
1408
1425
  ])
1409
- _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1410
- dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1411
- dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
1412
- dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
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.
1413
1430
  AC_CONFIG_COMMANDS_PRE(dnl
1414
1431
  [m4_provide_if([_AM_COMPILER_EXEEXT],
1415
1432
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1416
- ])
1417
1433
 
1418
- dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
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
1419
1477
  dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1420
1478
  dnl mangled by Autoconf and run in a shell conditional statement.
1421
1479
  m4_define([_AC_COMPILER_EXEEXT],
1422
1480
  m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1423
1481
 
1424
-
1425
1482
  # When config.status generates a header, we must update the stamp-h file.
1426
1483
  # This file resides in the same directory as the config header
1427
1484
  # that is generated. The stamp files are numbered to have different names.
@@ -1443,7 +1500,7 @@ for _am_header in $config_headers :; do
1443
1500
  done
1444
1501
  echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1445
1502
 
1446
- # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
1503
+ # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1447
1504
  #
1448
1505
  # This file is free software; the Free Software Foundation
1449
1506
  # gives unlimited permission to copy and/or distribute it,
@@ -1462,16 +1519,14 @@ if test x"${install_sh}" != xset; then
1462
1519
  install_sh="\${SHELL} $am_aux_dir/install-sh"
1463
1520
  esac
1464
1521
  fi
1465
- AC_SUBST(install_sh)])
1522
+ AC_SUBST([install_sh])])
1466
1523
 
1467
- # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1524
+ # Copyright (C) 2003-2013 Free Software Foundation, Inc.
1468
1525
  #
1469
1526
  # This file is free software; the Free Software Foundation
1470
1527
  # gives unlimited permission to copy and/or distribute it,
1471
1528
  # with or without modifications, as long as this notice is preserved.
1472
1529
 
1473
- # serial 2
1474
-
1475
1530
  # Check whether the underlying file-system supports filenames
1476
1531
  # with a leading dot. For instance MS-DOS doesn't.
1477
1532
  AC_DEFUN([AM_SET_LEADING_DOT],
@@ -1487,14 +1542,12 @@ AC_SUBST([am__leading_dot])])
1487
1542
 
1488
1543
  # Check to see how 'make' treats includes. -*- Autoconf -*-
1489
1544
 
1490
- # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
1545
+ # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1491
1546
  #
1492
1547
  # This file is free software; the Free Software Foundation
1493
1548
  # gives unlimited permission to copy and/or distribute it,
1494
1549
  # with or without modifications, as long as this notice is preserved.
1495
1550
 
1496
- # serial 4
1497
-
1498
1551
  # AM_MAKE_INCLUDE()
1499
1552
  # -----------------
1500
1553
  # Check to see how make treats includes.
@@ -1512,7 +1565,7 @@ am__quote=
1512
1565
  _am_result=none
1513
1566
  # First try GNU make style include.
1514
1567
  echo "include confinc" > confmf
1515
- # Ignore all kinds of additional output from `make'.
1568
+ # Ignore all kinds of additional output from 'make'.
1516
1569
  case `$am_make -s -f confmf 2> /dev/null` in #(
1517
1570
  *the\ am__doit\ target*)
1518
1571
  am__include=include
@@ -1537,52 +1590,14 @@ AC_MSG_RESULT([$_am_result])
1537
1590
  rm -f confinc confmf
1538
1591
  ])
1539
1592
 
1540
- # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
1541
- # Free Software Foundation, Inc.
1542
- #
1543
- # This file is free software; the Free Software Foundation
1544
- # gives unlimited permission to copy and/or distribute it,
1545
- # with or without modifications, as long as this notice is preserved.
1546
-
1547
- # serial 6
1548
-
1549
- # AM_PROG_CC_C_O
1550
- # --------------
1551
- # Like AC_PROG_CC_C_O, but changed for automake.
1552
- AC_DEFUN([AM_PROG_CC_C_O],
1553
- [AC_REQUIRE([AC_PROG_CC_C_O])dnl
1554
- AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1555
- AC_REQUIRE_AUX_FILE([compile])dnl
1556
- # FIXME: we rely on the cache variable name because
1557
- # there is no other way.
1558
- set dummy $CC
1559
- am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1560
- eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1561
- if test "$am_t" != yes; then
1562
- # Losing compiler, so override with the script.
1563
- # FIXME: It is wrong to rewrite CC.
1564
- # But if we don't then we get into trouble of one sort or another.
1565
- # A longer-term fix would be to have automake use am__CC in this case,
1566
- # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1567
- CC="$am_aux_dir/compile $CC"
1568
- fi
1569
- dnl Make sure AC_PROG_CC is never called again, or it will override our
1570
- dnl setting of CC.
1571
- m4_define([AC_PROG_CC],
1572
- [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1573
- ])
1574
-
1575
1593
  # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1576
1594
 
1577
- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1578
- # Free Software Foundation, Inc.
1595
+ # Copyright (C) 1997-2013 Free Software Foundation, Inc.
1579
1596
  #
1580
1597
  # This file is free software; the Free Software Foundation
1581
1598
  # gives unlimited permission to copy and/or distribute it,
1582
1599
  # with or without modifications, as long as this notice is preserved.
1583
1600
 
1584
- # serial 6
1585
-
1586
1601
  # AM_MISSING_PROG(NAME, PROGRAM)
1587
1602
  # ------------------------------
1588
1603
  AC_DEFUN([AM_MISSING_PROG],
@@ -1590,11 +1605,10 @@ AC_DEFUN([AM_MISSING_PROG],
1590
1605
  $1=${$1-"${am_missing_run}$2"}
1591
1606
  AC_SUBST($1)])
1592
1607
 
1593
-
1594
1608
  # AM_MISSING_HAS_RUN
1595
1609
  # ------------------
1596
- # Define MISSING if not defined so far and test if it supports --run.
1597
- # If it does, set am_missing_run to use it, otherwise, to nothing.
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.
1598
1612
  AC_DEFUN([AM_MISSING_HAS_RUN],
1599
1613
  [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1600
1614
  AC_REQUIRE_AUX_FILE([missing])dnl
@@ -1607,63 +1621,64 @@ if test x"${MISSING+set}" != xset; then
1607
1621
  esac
1608
1622
  fi
1609
1623
  # Use eval to expand $SHELL
1610
- if eval "$MISSING --run true"; then
1611
- am_missing_run="$MISSING --run "
1624
+ if eval "$MISSING --is-lightweight"; then
1625
+ am_missing_run="$MISSING "
1612
1626
  else
1613
1627
  am_missing_run=
1614
- AC_MSG_WARN([`missing' script is too old or missing])
1628
+ AC_MSG_WARN(['missing' script is too old or missing])
1615
1629
  fi
1616
1630
  ])
1617
1631
 
1618
- # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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.
1619
1637
  #
1620
1638
  # This file is free software; the Free Software Foundation
1621
1639
  # gives unlimited permission to copy and/or distribute it,
1622
1640
  # with or without modifications, as long as this notice is preserved.
1623
1641
 
1624
- # AM_PROG_MKDIR_P
1625
- # ---------------
1626
- # Check for `mkdir -p'.
1627
- AC_DEFUN([AM_PROG_MKDIR_P],
1628
- [AC_PREREQ([2.60])dnl
1629
- AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1630
- dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1631
- dnl while keeping a definition of mkdir_p for backward compatibility.
1632
- dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1633
- dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1634
- dnl Makefile.ins that do not define MKDIR_P, so we do our own
1635
- dnl adjustment using top_builddir (which is defined more often than
1636
- dnl MKDIR_P).
1637
- AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1638
- case $mkdir_p in
1639
- [[\\/$]]* | ?:[[\\/]]*) ;;
1640
- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1641
- esac
1642
- ])
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])
1643
1660
 
1644
1661
  # Helper functions for option handling. -*- Autoconf -*-
1645
1662
 
1646
- # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
1663
+ # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1647
1664
  #
1648
1665
  # This file is free software; the Free Software Foundation
1649
1666
  # gives unlimited permission to copy and/or distribute it,
1650
1667
  # with or without modifications, as long as this notice is preserved.
1651
1668
 
1652
- # serial 4
1653
-
1654
1669
  # _AM_MANGLE_OPTION(NAME)
1655
1670
  # -----------------------
1656
1671
  AC_DEFUN([_AM_MANGLE_OPTION],
1657
1672
  [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1658
1673
 
1659
1674
  # _AM_SET_OPTION(NAME)
1660
- # ------------------------------
1675
+ # --------------------
1661
1676
  # Set option NAME. Presently that only means defining a flag for this option.
1662
1677
  AC_DEFUN([_AM_SET_OPTION],
1663
- [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1678
+ [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1664
1679
 
1665
1680
  # _AM_SET_OPTIONS(OPTIONS)
1666
- # ----------------------------------
1681
+ # ------------------------
1667
1682
  # OPTIONS is a space-separated list of Automake options.
1668
1683
  AC_DEFUN([_AM_SET_OPTIONS],
1669
1684
  [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
@@ -1674,24 +1689,82 @@ AC_DEFUN([_AM_SET_OPTIONS],
1674
1689
  AC_DEFUN([_AM_IF_OPTION],
1675
1690
  [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1676
1691
 
1677
- # Check to make sure that the build environment is sane. -*- Autoconf -*-
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.
1678
1697
 
1679
- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1680
- # Free Software Foundation, Inc.
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.
1681
1740
  #
1682
1741
  # This file is free software; the Free Software Foundation
1683
1742
  # gives unlimited permission to copy and/or distribute it,
1684
1743
  # with or without modifications, as long as this notice is preserved.
1685
1744
 
1686
- # serial 5
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.
1687
1763
 
1688
1764
  # AM_SANITY_CHECK
1689
1765
  # ---------------
1690
1766
  AC_DEFUN([AM_SANITY_CHECK],
1691
1767
  [AC_MSG_CHECKING([whether build environment is sane])
1692
- # Just in case
1693
- sleep 1
1694
- echo timestamp > conftest.file
1695
1768
  # Reject unsafe characters in $srcdir or the absolute working directory
1696
1769
  # name. Accept space and tab only in the latter.
1697
1770
  am_lf='
@@ -1702,32 +1775,40 @@ case `pwd` in
1702
1775
  esac
1703
1776
  case $srcdir in
1704
1777
  *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1705
- AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1778
+ AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1706
1779
  esac
1707
1780
 
1708
- # Do `set' in a subshell so we don't clobber the current shell's
1781
+ # Do 'set' in a subshell so we don't clobber the current shell's
1709
1782
  # arguments. Must try -L first in case configure is actually a
1710
1783
  # symlink; some systems play weird games with the mod time of symlinks
1711
1784
  # (eg FreeBSD returns the mod time of the symlink's containing
1712
1785
  # directory).
1713
1786
  if (
1714
- set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1715
- if test "$[*]" = "X"; then
1716
- # -L didn't work.
1717
- set X `ls -t "$srcdir/configure" conftest.file`
1718
- fi
1719
- rm -f conftest.file
1720
- if test "$[*]" != "X $srcdir/configure conftest.file" \
1721
- && test "$[*]" != "X conftest.file $srcdir/configure"; then
1722
-
1723
- # If neither matched, then we have a broken ls. This can happen
1724
- # if, for instance, CONFIG_SHELL is bash and it inherits a
1725
- # broken ls alias from the environment. This has actually
1726
- # happened. Such a system could not be considered "sane".
1727
- AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1728
- alias in your environment])
1729
- fi
1730
-
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
1731
1812
  test "$[2]" = conftest.file
1732
1813
  )
1733
1814
  then
@@ -1737,9 +1818,85 @@ else
1737
1818
  AC_MSG_ERROR([newly created file is older than distributed files!
1738
1819
  Check your system clock])
1739
1820
  fi
1740
- AC_MSG_RESULT(yes)])
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
+ ])
1741
1898
 
1742
- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1899
+ # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1743
1900
  #
1744
1901
  # This file is free software; the Free Software Foundation
1745
1902
  # gives unlimited permission to copy and/or distribute it,
@@ -1747,34 +1904,32 @@ AC_MSG_RESULT(yes)])
1747
1904
 
1748
1905
  # AM_PROG_INSTALL_STRIP
1749
1906
  # ---------------------
1750
- # One issue with vendor `install' (even GNU) is that you can't
1907
+ # One issue with vendor 'install' (even GNU) is that you can't
1751
1908
  # specify the program used to strip binaries. This is especially
1752
1909
  # annoying in cross-compiling environments, where the build's strip
1753
1910
  # is unlikely to handle the host's binaries.
1754
1911
  # Fortunately install-sh will honor a STRIPPROG variable, so we
1755
- # always use install-sh in `make install-strip', and initialize
1912
+ # always use install-sh in "make install-strip", and initialize
1756
1913
  # STRIPPROG with the value of the STRIP variable (set by the user).
1757
1914
  AC_DEFUN([AM_PROG_INSTALL_STRIP],
1758
1915
  [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1759
- # Installed binaries are usually stripped using `strip' when the user
1760
- # run `make install-strip'. However `strip' might not be the right
1916
+ # Installed binaries are usually stripped using 'strip' when the user
1917
+ # run "make install-strip". However 'strip' might not be the right
1761
1918
  # tool to use in cross-compilation environments, therefore Automake
1762
- # will honor the `STRIP' environment variable to overrule this program.
1763
- dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
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'.
1764
1921
  if test "$cross_compiling" != no; then
1765
1922
  AC_CHECK_TOOL([STRIP], [strip], :)
1766
1923
  fi
1767
1924
  INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1768
1925
  AC_SUBST([INSTALL_STRIP_PROGRAM])])
1769
1926
 
1770
- # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1927
+ # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1771
1928
  #
1772
1929
  # This file is free software; the Free Software Foundation
1773
1930
  # gives unlimited permission to copy and/or distribute it,
1774
1931
  # with or without modifications, as long as this notice is preserved.
1775
1932
 
1776
- # serial 2
1777
-
1778
1933
  # _AM_SUBST_NOTMAKE(VARIABLE)
1779
1934
  # ---------------------------
1780
1935
  # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
@@ -1782,24 +1937,22 @@ AC_SUBST([INSTALL_STRIP_PROGRAM])])
1782
1937
  AC_DEFUN([_AM_SUBST_NOTMAKE])
1783
1938
 
1784
1939
  # AM_SUBST_NOTMAKE(VARIABLE)
1785
- # ---------------------------
1940
+ # --------------------------
1786
1941
  # Public sister of _AM_SUBST_NOTMAKE.
1787
1942
  AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1788
1943
 
1789
1944
  # Check how to create a tarball. -*- Autoconf -*-
1790
1945
 
1791
- # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1946
+ # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1792
1947
  #
1793
1948
  # This file is free software; the Free Software Foundation
1794
1949
  # gives unlimited permission to copy and/or distribute it,
1795
1950
  # with or without modifications, as long as this notice is preserved.
1796
1951
 
1797
- # serial 2
1798
-
1799
1952
  # _AM_PROG_TAR(FORMAT)
1800
1953
  # --------------------
1801
1954
  # Check how to create a tarball in format FORMAT.
1802
- # FORMAT should be one of `v7', `ustar', or `pax'.
1955
+ # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1803
1956
  #
1804
1957
  # Substitute a variable $(am__tar) that is a command
1805
1958
  # writing to stdout a FORMAT-tarball containing the directory
@@ -1809,75 +1962,114 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1809
1962
  # Substitute a variable $(am__untar) that extract such
1810
1963
  # a tarball read from stdin.
1811
1964
  # $(am__untar) < result.tar
1965
+ #
1812
1966
  AC_DEFUN([_AM_PROG_TAR],
1813
- [# Always define AMTAR for backward compatibility.
1814
- AM_MISSING_PROG([AMTAR], [tar])
1815
- m4_if([$1], [v7],
1816
- [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1817
- [m4_case([$1], [ustar],, [pax],,
1818
- [m4_fatal([Unknown tar format])])
1819
- AC_MSG_CHECKING([how to create a $1 tar archive])
1820
- # Loop over all known methods to create a tar archive until one works.
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.
1821
1972
  _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1822
- _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1823
- # Do not fold the above two line into one, because Tru64 sh and
1824
- # Solaris sh will not grok spaces in the rhs of `-'.
1825
- for _am_tool in $_am_tools
1826
- do
1827
- case $_am_tool in
1828
- gnutar)
1829
- for _am_tar in tar gnutar gtar;
1830
- do
1831
- AM_RUN_LOG([$_am_tar --version]) && break
1832
- done
1833
- am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1834
- am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1835
- am__untar="$_am_tar -xf -"
1836
- ;;
1837
- plaintar)
1838
- # Must skip GNU tar: if it does not support --format= it doesn't create
1839
- # ustar tarball either.
1840
- (tar --version) >/dev/null 2>&1 && continue
1841
- am__tar='tar chf - "$$tardir"'
1842
- am__tar_='tar chf - "$tardir"'
1843
- am__untar='tar xf -'
1844
- ;;
1845
- pax)
1846
- am__tar='pax -L -x $1 -w "$$tardir"'
1847
- am__tar_='pax -L -x $1 -w "$tardir"'
1848
- am__untar='pax -r'
1849
- ;;
1850
- cpio)
1851
- am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1852
- am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1853
- am__untar='cpio -i -H $1 -d'
1854
- ;;
1855
- none)
1856
- am__tar=false
1857
- am__tar_=false
1858
- am__untar=false
1859
- ;;
1860
- esac
1861
1973
 
1862
- # If the value was cached, stop now. We just wanted to have am__tar
1863
- # and am__untar set.
1864
- test -n "${am_cv_prog_tar_$1}" && break
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],
1865
2005
 
1866
- # tar/untar a dummy directory, and stop if the command works
1867
- rm -rf conftest.dir
1868
- mkdir conftest.dir
1869
- echo GrepMe > conftest.dir/file
1870
- AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
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
1871
2068
  rm -rf conftest.dir
1872
- if test -s conftest.tar; then
1873
- AM_RUN_LOG([$am__untar <conftest.tar])
1874
- grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1875
- fi
1876
- done
1877
- rm -rf conftest.dir
1878
2069
 
1879
- AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1880
- AC_MSG_RESULT([$am_cv_prog_tar_$1])])
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
+
1881
2073
  AC_SUBST([am__tar])
1882
2074
  AC_SUBST([am__untar])
1883
2075
  ]) # _AM_PROG_TAR
@@ -1911,7 +2103,6 @@ m4_include([m4/pandora_optimize.m4])
1911
2103
  m4_include([m4/pandora_shared_ptr.m4])
1912
2104
  m4_include([m4/pandora_vc_build.m4])
1913
2105
  m4_include([m4/pandora_warnings.m4])
1914
- m4_include([m4/pod2man.m4])
1915
2106
  m4_include([m4/protocol_binary.m4])
1916
2107
  m4_include([m4/setsockopt.m4])
1917
2108
  m4_include([m4/visibility.m4])