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