aclocal.m4 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  12. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  13. #
  14. # This file is free software; the Free Software Foundation
  15. # gives unlimited permission to copy and/or distribute it,
  16. # with or without modifications, as long as this notice is preserved.
  17. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  18. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  19. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  20. #
  21. # Of course, Automake must honor this variable whenever it calls a
  22. # tool from the auxiliary directory. The problem is that $srcdir (and
  23. # therefore $ac_aux_dir as well) can be either absolute or relative,
  24. # depending on how configure is run. This is pretty annoying, since
  25. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  26. # source directory, any form will work fine, but in subdirectories a
  27. # relative path needs to be adjusted first.
  28. #
  29. # $ac_aux_dir/missing
  30. # fails when called from a subdirectory if $ac_aux_dir is relative
  31. # $top_srcdir/$ac_aux_dir/missing
  32. # fails if $ac_aux_dir is absolute,
  33. # fails when called from a subdirectory in a VPATH build with
  34. # a relative $ac_aux_dir
  35. #
  36. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  37. # are both prefixed by $srcdir. In an in-source build this is usually
  38. # harmless because $srcdir is `.', but things will broke when you
  39. # start a VPATH build or use an absolute $srcdir.
  40. #
  41. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  42. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  43. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  44. # and then we would define $MISSING as
  45. # MISSING="\${SHELL} $am_aux_dir/missing"
  46. # This will work as long as MISSING is not called from configure, because
  47. # unfortunately $(top_srcdir) has no meaning in configure.
  48. # However there are other variables, like CC, which are often used in
  49. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  50. #
  51. # Another solution, used here, is to always expand $ac_aux_dir to an
  52. # absolute PATH. The drawback is that using absolute paths prevent a
  53. # configured tree to be moved without reconfiguration.
  54. AC_DEFUN([AM_AUX_DIR_EXPAND],
  55. [dnl Rely on autoconf to set up CDPATH properly.
  56. AC_PREREQ([2.50])dnl
  57. # expand $ac_aux_dir to an absolute path
  58. am_aux_dir=`cd $ac_aux_dir && pwd`
  59. ])
  60. # AM_CONDITIONAL -*- Autoconf -*-
  61. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  62. # Free Software Foundation, Inc.
  63. #
  64. # This file is free software; the Free Software Foundation
  65. # gives unlimited permission to copy and/or distribute it,
  66. # with or without modifications, as long as this notice is preserved.
  67. # serial 9
  68. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  69. # -------------------------------------
  70. # Define a conditional.
  71. AC_DEFUN([AM_CONDITIONAL],
  72. [AC_PREREQ(2.52)dnl
  73. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  74. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  75. AC_SUBST([$1_TRUE])dnl
  76. AC_SUBST([$1_FALSE])dnl
  77. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  78. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  79. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  80. if $2; then
  81. $1_TRUE=
  82. $1_FALSE='#'
  83. else
  84. $1_TRUE='#'
  85. $1_FALSE=
  86. fi
  87. AC_CONFIG_COMMANDS_PRE(
  88. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  89. AC_MSG_ERROR([[conditional "$1" was never defined.
  90. Usually this means the macro was only invoked conditionally.]])
  91. fi])])
  92. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  93. # From Jim Meyering
  94. # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  95. # Free Software Foundation, Inc.
  96. #
  97. # This file is free software; the Free Software Foundation
  98. # gives unlimited permission to copy and/or distribute it,
  99. # with or without modifications, as long as this notice is preserved.
  100. # serial 5
  101. # AM_MAINTAINER_MODE([DEFAULT-MODE])
  102. # ----------------------------------
  103. # Control maintainer-specific portions of Makefiles.
  104. # Default is to disable them, unless `enable' is passed literally.
  105. # For symmetry, `disable' may be passed as well. Anyway, the user
  106. # can override the default with the --enable/--disable switch.
  107. AC_DEFUN([AM_MAINTAINER_MODE],
  108. [m4_case(m4_default([$1], [disable]),
  109. [enable], [m4_define([am_maintainer_other], [disable])],
  110. [disable], [m4_define([am_maintainer_other], [enable])],
  111. [m4_define([am_maintainer_other], [enable])
  112. m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  113. AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  114. dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  115. AC_ARG_ENABLE([maintainer-mode],
  116. [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  117. (and sometimes confusing) to the casual installer],
  118. [USE_MAINTAINER_MODE=$enableval],
  119. [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  120. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  121. AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  122. MAINT=$MAINTAINER_MODE_TRUE
  123. AC_SUBST([MAINT])dnl
  124. ]
  125. )
  126. AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
  127. # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  128. # Free Software Foundation, Inc.
  129. #
  130. # This file is free software; the Free Software Foundation
  131. # gives unlimited permission to copy and/or distribute it,
  132. # with or without modifications, as long as this notice is preserved.
  133. # serial 6
  134. # AM_PROG_CC_C_O
  135. # --------------
  136. # Like AC_PROG_CC_C_O, but changed for automake.
  137. AC_DEFUN([AM_PROG_CC_C_O],
  138. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  139. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  140. AC_REQUIRE_AUX_FILE([compile])dnl
  141. # FIXME: we rely on the cache variable name because
  142. # there is no other way.
  143. set dummy $CC
  144. am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  145. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  146. if test "$am_t" != yes; then
  147. # Losing compiler, so override with the script.
  148. # FIXME: It is wrong to rewrite CC.
  149. # But if we don't then we get into trouble of one sort or another.
  150. # A longer-term fix would be to have automake use am__CC in this case,
  151. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  152. CC="$am_aux_dir/compile $CC"
  153. fi
  154. dnl Make sure AC_PROG_CC is never called again, or it will override our
  155. dnl setting of CC.
  156. m4_define([AC_PROG_CC],
  157. [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  158. ])
  159. # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  160. #
  161. # This file is free software; the Free Software Foundation
  162. # gives unlimited permission to copy and/or distribute it,
  163. # with or without modifications, as long as this notice is preserved.
  164. # serial 2
  165. # _AM_SUBST_NOTMAKE(VARIABLE)
  166. # ---------------------------
  167. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  168. # This macro is traced by Automake.
  169. AC_DEFUN([_AM_SUBST_NOTMAKE])
  170. # AM_SUBST_NOTMAKE(VARIABLE)
  171. # ---------------------------
  172. # Public sister of _AM_SUBST_NOTMAKE.
  173. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  174. m4_include([../ltoptions.m4])
  175. m4_include([../ltsugar.m4])
  176. m4_include([../ltversion.m4])
  177. m4_include([../lt~obsolete.m4])
  178. m4_include([../config/lthostflags.m4])
  179. m4_include([../config/multi.m4])
  180. m4_include([../config/override.m4])
  181. m4_include([acinclude.m4])