annotate aclocal.m4 @ 190:6b4a101a2455

forgot to remove the pop3_login option in conf.c in the last commit
author meillo@marmaro.de
date Thu, 15 Jul 2010 11:15:25 +0200
parents c80a5730bcc5
children e3e1a030c703
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
2
36
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
4 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
5 # This file is free software; the Free Software Foundation
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
6 # gives unlimited permission to copy and/or distribute it,
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
7 # with or without modifications, as long as this notice is preserved.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
8
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
9 # This program is distributed in the hope that it will be useful,
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
12 # PARTICULAR PURPOSE.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
13
36
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
14 m4_ifndef([AC_AUTOCONF_VERSION],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
17 [m4_warning([this file was generated for autoconf 2.65.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
18 You have another version of autoconf. It may work, but is not guaranteed to.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
19 If you have problems, you may need to regenerate the build system entirely.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
21
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
22 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
23 # serial 1 (pkg-config-0.24)
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
24 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
25 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
26 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
27 # This program is free software; you can redistribute it and/or modify
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
28 # it under the terms of the GNU General Public License as published by
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
29 # the Free Software Foundation; either version 2 of the License, or
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
30 # (at your option) any later version.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
31 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
32 # This program is distributed in the hope that it will be useful, but
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
33 # WITHOUT ANY WARRANTY; without even the implied warranty of
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
34 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
35 # General Public License for more details.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
36 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
37 # You should have received a copy of the GNU General Public License
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
38 # along with this program; if not, write to the Free Software
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
39 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
40 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
41 # As a special exception to the GNU General Public License, if you
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
42 # distribute this file as part of a program that contains a
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
43 # configuration script generated by Autoconf, you may include it under
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
44 # the same distribution terms that you use for the rest of that program.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
45
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
46 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
47 # ----------------------------------
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
48 AC_DEFUN([PKG_PROG_PKG_CONFIG],
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
49 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
50 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
51 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
52 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
53 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
54
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
55 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
56 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
57 fi
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
58 if test -n "$PKG_CONFIG"; then
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
59 _pkg_min_version=m4_default([$1], [0.9.0])
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
60 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
61 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
62 AC_MSG_RESULT([yes])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
63 else
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
64 AC_MSG_RESULT([no])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
65 PKG_CONFIG=""
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
66 fi
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
67 fi[]dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
68 ])# PKG_PROG_PKG_CONFIG
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
69
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
70 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
71 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
72 # Check to see whether a particular set of modules exists. Similar
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
73 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
74 #
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
75 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
76 # only at the first occurence in configure.ac, so if the first place
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
77 # it's called might be skipped (such as if it is within an "if", you
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
78 # have to call PKG_CHECK_EXISTS manually
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
79 # --------------------------------------------------------------
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
80 AC_DEFUN([PKG_CHECK_EXISTS],
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
81 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
82 if test -n "$PKG_CONFIG" && \
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
83 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
84 m4_default([$2], [:])
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
85 m4_ifvaln([$3], [else
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
86 $3])dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
87 fi])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
88
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
89 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
90 # ---------------------------------------------
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
91 m4_define([_PKG_CONFIG],
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
92 [if test -n "$$1"; then
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
93 pkg_cv_[]$1="$$1"
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
94 elif test -n "$PKG_CONFIG"; then
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
95 PKG_CHECK_EXISTS([$3],
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
96 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
97 [pkg_failed=yes])
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
98 else
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
99 pkg_failed=untried
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
100 fi[]dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
101 ])# _PKG_CONFIG
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
102
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
103 # _PKG_SHORT_ERRORS_SUPPORTED
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
104 # -----------------------------
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
105 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
106 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
107 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
108 _pkg_short_errors_supported=yes
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
109 else
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
110 _pkg_short_errors_supported=no
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
111 fi[]dnl
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
112 ])# _PKG_SHORT_ERRORS_SUPPORTED
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
113
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
114
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
115 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
116 # [ACTION-IF-NOT-FOUND])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
117 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
118 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
119 # Note that if there is a possibility the first call to
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
120 # PKG_CHECK_MODULES might not happen, you should be sure to include an
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
121 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
122 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
123 #
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
124 # --------------------------------------------------------------
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
125 AC_DEFUN([PKG_CHECK_MODULES],
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
126 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
127 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
128 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
129
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
130 pkg_failed=no
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
131 AC_MSG_CHECKING([for $1])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
132
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
133 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
134 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
135
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
136 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
137 and $1[]_LIBS to avoid the need to call pkg-config.
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
138 See the pkg-config man page for more details.])
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
139
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
140 if test $pkg_failed = yes; then
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
141 AC_MSG_RESULT([no])
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
142 _PKG_SHORT_ERRORS_SUPPORTED
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
143 if test $_pkg_short_errors_supported = yes; then
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
144 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
145 else
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
146 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
147 fi
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
148 # Put the nasty error message in config.log where it belongs
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
149 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
150
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
151 m4_default([$4], [AC_MSG_ERROR(
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
152 [Package requirements ($2) were not met:
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
153
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
154 $$1_PKG_ERRORS
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
155
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
156 Consider adjusting the PKG_CONFIG_PATH environment variable if you
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
157 installed software in a non-standard prefix.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
158
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
159 _PKG_TEXT])dnl
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
160 ])
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
161 elif test $pkg_failed = untried; then
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
162 AC_MSG_RESULT([no])
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
163 m4_default([$4], [AC_MSG_FAILURE(
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
164 [The pkg-config script could not be found or is too old. Make sure it
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
165 is in your PATH or set the PKG_CONFIG environment variable to the full
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
166 path to pkg-config.
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
167
1
af25f5c39d90 added diff from debian (masqmail-0.2.21-4)
meillo@marmaro.de
parents: 0
diff changeset
168 _PKG_TEXT
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
169
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
170 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
171 ])
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
172 else
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
173 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
174 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
175 AC_MSG_RESULT([yes])
52
c80a5730bcc5 next release will be 0.2.23
meillo@marmaro.de
parents: 36
diff changeset
176 $3
0
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
177 fi[]dnl
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
178 ])# PKG_CHECK_MODULES
08114f7dcc23 this is masqmail-0.2.21 from oliver kurth
meillo@marmaro.de
parents:
diff changeset
179
36
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
180 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
181 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
182 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
183 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
184 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
185
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
186 # AM_AUTOMAKE_VERSION(VERSION)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
187 # ----------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
188 # Automake X.Y traces this macro to ensure aclocal.m4 has been
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
189 # generated from the m4 files accompanying Automake X.Y.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
190 # (This private macro should not be called outside this file.)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
191 AC_DEFUN([AM_AUTOMAKE_VERSION],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
192 [am__api_version='1.11'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
193 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
194 dnl require some minimum version. Point them to the right macro.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
195 m4_if([$1], [1.11.1], [],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
196 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
197 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
198
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
199 # _AM_AUTOCONF_VERSION(VERSION)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
200 # -----------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
201 # aclocal traces this macro to find the Autoconf version.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
202 # This is a private macro too. Using m4_define simplifies
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
203 # the logic in aclocal, which can simply ignore this definition.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
204 m4_define([_AM_AUTOCONF_VERSION], [])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
205
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
206 # AM_SET_CURRENT_AUTOMAKE_VERSION
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
207 # -------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
208 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
209 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
210 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
211 [AM_AUTOMAKE_VERSION([1.11.1])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
212 m4_ifndef([AC_AUTOCONF_VERSION],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
213 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
214 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
215
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
216 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
217
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
218 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
219 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
220 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
221 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
222 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
223
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
224 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
225 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
226 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
227 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
228 # Of course, Automake must honor this variable whenever it calls a
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
229 # tool from the auxiliary directory. The problem is that $srcdir (and
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
230 # therefore $ac_aux_dir as well) can be either absolute or relative,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
231 # depending on how configure is run. This is pretty annoying, since
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
232 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
233 # source directory, any form will work fine, but in subdirectories a
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
234 # relative path needs to be adjusted first.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
235 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
236 # $ac_aux_dir/missing
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
237 # fails when called from a subdirectory if $ac_aux_dir is relative
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
238 # $top_srcdir/$ac_aux_dir/missing
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
239 # fails if $ac_aux_dir is absolute,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
240 # fails when called from a subdirectory in a VPATH build with
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
241 # a relative $ac_aux_dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
242 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
243 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
244 # are both prefixed by $srcdir. In an in-source build this is usually
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
245 # harmless because $srcdir is `.', but things will broke when you
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
246 # start a VPATH build or use an absolute $srcdir.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
247 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
248 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
249 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
250 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
251 # and then we would define $MISSING as
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
252 # MISSING="\${SHELL} $am_aux_dir/missing"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
253 # This will work as long as MISSING is not called from configure, because
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
254 # unfortunately $(top_srcdir) has no meaning in configure.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
255 # However there are other variables, like CC, which are often used in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
256 # configure, and could therefore not use this "fixed" $ac_aux_dir.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
257 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
258 # Another solution, used here, is to always expand $ac_aux_dir to an
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
259 # absolute PATH. The drawback is that using absolute paths prevent a
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
260 # configured tree to be moved without reconfiguration.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
261
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
262 AC_DEFUN([AM_AUX_DIR_EXPAND],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
263 [dnl Rely on autoconf to set up CDPATH properly.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
264 AC_PREREQ([2.50])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
265 # expand $ac_aux_dir to an absolute path
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
266 am_aux_dir=`cd $ac_aux_dir && pwd`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
267 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
268
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
269 # AM_CONDITIONAL -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
270
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
271 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
272 # Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
273 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
274 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
275 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
276 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
277
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
278 # serial 9
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
279
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
280 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
281 # -------------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
282 # Define a conditional.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
283 AC_DEFUN([AM_CONDITIONAL],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
284 [AC_PREREQ(2.52)dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
285 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
286 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
287 AC_SUBST([$1_TRUE])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
288 AC_SUBST([$1_FALSE])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
289 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
290 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
291 m4_define([_AM_COND_VALUE_$1], [$2])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
292 if $2; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
293 $1_TRUE=
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
294 $1_FALSE='#'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
295 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
296 $1_TRUE='#'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
297 $1_FALSE=
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
298 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
299 AC_CONFIG_COMMANDS_PRE(
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
300 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
301 AC_MSG_ERROR([[conditional "$1" was never defined.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
302 Usually this means the macro was only invoked conditionally.]])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
303 fi])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
304
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
305 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
306 # Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
307 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
308 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
309 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
310 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
311
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
312 # serial 10
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
313
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
314 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
315 # written in clear, in which case automake, when reading aclocal.m4,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
316 # will think it sees a *use*, and therefore will trigger all it's
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
317 # C support machinery. Also note that it means that autoscan, seeing
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
318 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
319
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
320
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
321 # _AM_DEPENDENCIES(NAME)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
322 # ----------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
323 # See how the compiler implements dependency checking.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
324 # NAME is "CC", "CXX", "GCJ", or "OBJC".
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
325 # We try a few techniques and use that to set a single cache variable.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
326 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
327 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
328 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
329 # dependency, and given that the user is not expected to run this macro,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
330 # just rely on AC_PROG_CC.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
331 AC_DEFUN([_AM_DEPENDENCIES],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
332 [AC_REQUIRE([AM_SET_DEPDIR])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
333 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
334 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
335 AC_REQUIRE([AM_DEP_TRACK])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
336
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
337 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
338 [$1], CXX, [depcc="$CXX" am_compiler_list=],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
339 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
340 [$1], UPC, [depcc="$UPC" am_compiler_list=],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
341 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
342 [depcc="$$1" am_compiler_list=])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
343
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
344 AC_CACHE_CHECK([dependency style of $depcc],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
345 [am_cv_$1_dependencies_compiler_type],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
346 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
347 # We make a subdir and do the tests there. Otherwise we can end up
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
348 # making bogus files that we don't know about and never remove. For
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
349 # instance it was reported that on HP-UX the gcc test will end up
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
350 # making a dummy file named `D' -- because `-MD' means `put the output
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
351 # in D'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
352 mkdir conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
353 # Copy depcomp to subdir because otherwise we won't find it if we're
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
354 # using a relative directory.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
355 cp "$am_depcomp" conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
356 cd conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
357 # We will build objects and dependencies in a subdirectory because
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
358 # it helps to detect inapplicable dependency modes. For instance
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
359 # both Tru64's cc and ICC support -MD to output dependencies as a
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
360 # side effect of compilation, but ICC will put the dependencies in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
361 # the current directory while Tru64 will put them in the object
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
362 # directory.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
363 mkdir sub
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
364
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
365 am_cv_$1_dependencies_compiler_type=none
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
366 if test "$am_compiler_list" = ""; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
367 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
368 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
369 am__universal=false
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
370 m4_case([$1], [CC],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
371 [case " $depcc " in #(
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
372 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
373 esac],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
374 [CXX],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
375 [case " $depcc " in #(
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
376 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
377 esac])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
378
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
379 for depmode in $am_compiler_list; do
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
380 # Setup a source with many dependencies, because some compilers
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
381 # like to wrap large dependency lists on column 80 (with \), and
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
382 # we should not choose a depcomp mode which is confused by this.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
383 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
384 # We need to recreate these files for each test, as the compiler may
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
385 # overwrite some of them when testing with obscure command lines.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
386 # This happens at least with the AIX C compiler.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
387 : > sub/conftest.c
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
388 for i in 1 2 3 4 5 6; do
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
389 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
390 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
391 # Solaris 8's {/usr,}/bin/sh.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
392 touch sub/conftst$i.h
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
393 done
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
394 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
395
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
396 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
397 # mode. It turns out that the SunPro C++ compiler does not properly
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
398 # handle `-M -o', and we need to detect this. Also, some Intel
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
399 # versions had trouble with output in subdirs
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
400 am__obj=sub/conftest.${OBJEXT-o}
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
401 am__minus_obj="-o $am__obj"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
402 case $depmode in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
403 gcc)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
404 # This depmode causes a compiler race in universal mode.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
405 test "$am__universal" = false || continue
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
406 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
407 nosideeffect)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
408 # after this tag, mechanisms are not by side-effect, so they'll
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
409 # only be used when explicitly requested
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
410 if test "x$enable_dependency_tracking" = xyes; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
411 continue
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
412 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
413 break
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
414 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
415 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
416 msvisualcpp | msvcmsys)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
417 # This compiler won't grok `-c -o', but also, the minuso test has
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
418 # not run yet. These depmodes are late enough in the game, and
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
419 # so weak that their functioning should not be impacted.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
420 am__obj=conftest.${OBJEXT-o}
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
421 am__minus_obj=
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
422 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
423 none) break ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
424 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
425 if depmode=$depmode \
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
426 source=sub/conftest.c object=$am__obj \
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
427 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
428 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
429 >/dev/null 2>conftest.err &&
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
430 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
431 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
432 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
433 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
434 # icc doesn't choke on unknown options, it will just issue warnings
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
435 # or remarks (even with -Werror). So we grep stderr for any message
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
436 # that says an option was ignored or not supported.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
437 # When given -MP, icc 7.0 and 7.1 complain thusly:
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
438 # icc: Command line warning: ignoring option '-M'; no argument required
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
439 # The diagnosis changed in icc 8.0:
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
440 # icc: Command line remark: option '-MP' not supported
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
441 if (grep 'ignoring option' conftest.err ||
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
442 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
443 am_cv_$1_dependencies_compiler_type=$depmode
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
444 break
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
445 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
446 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
447 done
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
448
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
449 cd ..
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
450 rm -rf conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
451 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
452 am_cv_$1_dependencies_compiler_type=none
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
453 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
454 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
455 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
456 AM_CONDITIONAL([am__fastdep$1], [
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
457 test "x$enable_dependency_tracking" != xno \
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
458 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
459 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
460
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
461
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
462 # AM_SET_DEPDIR
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
463 # -------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
464 # Choose a directory name for dependency files.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
465 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
466 AC_DEFUN([AM_SET_DEPDIR],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
467 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
468 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
469 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
470
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
471
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
472 # AM_DEP_TRACK
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
473 # ------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
474 AC_DEFUN([AM_DEP_TRACK],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
475 [AC_ARG_ENABLE(dependency-tracking,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
476 [ --disable-dependency-tracking speeds up one-time build
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
477 --enable-dependency-tracking do not reject slow dependency extractors])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
478 if test "x$enable_dependency_tracking" != xno; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
479 am_depcomp="$ac_aux_dir/depcomp"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
480 AMDEPBACKSLASH='\'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
481 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
482 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
483 AC_SUBST([AMDEPBACKSLASH])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
484 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
485 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
486
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
487 # Generate code to set up dependency tracking. -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
488
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
489 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
490 # Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
491 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
492 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
493 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
494 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
495
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
496 #serial 5
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
497
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
498 # _AM_OUTPUT_DEPENDENCY_COMMANDS
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
499 # ------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
500 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
501 [{
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
502 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
503 # are listed without --file. Let's play safe and only enable the eval
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
504 # if we detect the quoting.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
505 case $CONFIG_FILES in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
506 *\'*) eval set x "$CONFIG_FILES" ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
507 *) set x $CONFIG_FILES ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
508 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
509 shift
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
510 for mf
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
511 do
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
512 # Strip MF so we end up with the name of the file.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
513 mf=`echo "$mf" | sed -e 's/:.*$//'`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
514 # Check whether this is an Automake generated Makefile or not.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
515 # We used to match only the files named `Makefile.in', but
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
516 # some people rename them; so instead we look at the file content.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
517 # Grep'ing the first line is not enough: some people post-process
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
518 # each Makefile.in and add a new line on top of each file to say so.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
519 # Grep'ing the whole file is not good either: AIX grep has a line
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
520 # limit of 2048, but all sed's we know have understand at least 4000.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
521 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
522 dirpart=`AS_DIRNAME("$mf")`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
523 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
524 continue
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
525 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
526 # Extract the definition of DEPDIR, am__include, and am__quote
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
527 # from the Makefile without running `make'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
528 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
529 test -z "$DEPDIR" && continue
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
530 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
531 test -z "am__include" && continue
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
532 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
533 # When using ansi2knr, U may be empty or an underscore; expand it
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
534 U=`sed -n 's/^U = //p' < "$mf"`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
535 # Find all dependency output files, they are included files with
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
536 # $(DEPDIR) in their names. We invoke sed twice because it is the
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
537 # simplest approach to changing $(DEPDIR) to its actual value in the
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
538 # expansion.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
539 for file in `sed -n "
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
540 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
541 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
542 # Make sure the directory exists.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
543 test -f "$dirpart/$file" && continue
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
544 fdir=`AS_DIRNAME(["$file"])`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
545 AS_MKDIR_P([$dirpart/$fdir])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
546 # echo "creating $dirpart/$file"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
547 echo '# dummy' > "$dirpart/$file"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
548 done
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
549 done
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
550 }
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
551 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
552
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
553
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
554 # AM_OUTPUT_DEPENDENCY_COMMANDS
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
555 # -----------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
556 # This macro should only be invoked once -- use via AC_REQUIRE.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
557 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
558 # This code is only required when automatic dependency tracking
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
559 # is enabled. FIXME. This creates each `.P' file that we will
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
560 # need in order to bootstrap the dependency handling code.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
561 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
562 [AC_CONFIG_COMMANDS([depfiles],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
563 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
564 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
565 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
566
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
567 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
568 # Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
569 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
570 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
571 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
572 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
573
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
574 # serial 8
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
575
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
576 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
577 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
578
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
579 # Do all the work for Automake. -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
580
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
581 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
582 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
583 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
584 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
585 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
586 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
587
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
588 # serial 16
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
589
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
590 # This macro actually does too much. Some checks are only needed if
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
591 # your package does certain things. But this isn't really a big deal.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
592
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
593 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
594 # AM_INIT_AUTOMAKE([OPTIONS])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
595 # -----------------------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
596 # The call with PACKAGE and VERSION arguments is the old style
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
597 # call (pre autoconf-2.50), which is being phased out. PACKAGE
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
598 # and VERSION should now be passed to AC_INIT and removed from
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
599 # the call to AM_INIT_AUTOMAKE.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
600 # We support both call styles for the transition. After
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
601 # the next Automake release, Autoconf can make the AC_INIT
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
602 # arguments mandatory, and then we can depend on a new Autoconf
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
603 # release and drop the old call support.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
604 AC_DEFUN([AM_INIT_AUTOMAKE],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
605 [AC_PREREQ([2.62])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
606 dnl Autoconf wants to disallow AM_ names. We explicitly allow
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
607 dnl the ones we care about.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
608 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
609 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
610 AC_REQUIRE([AC_PROG_INSTALL])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
611 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
612 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
613 # is not polluted with repeated "-I."
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
614 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
615 # test to see if srcdir already configured
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
616 if test -f $srcdir/config.status; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
617 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
618 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
619 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
620
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
621 # test whether we have cygpath
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
622 if test -z "$CYGPATH_W"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
623 if (cygpath --version) >/dev/null 2>/dev/null; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
624 CYGPATH_W='cygpath -w'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
625 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
626 CYGPATH_W=echo
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
627 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
628 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
629 AC_SUBST([CYGPATH_W])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
630
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
631 # Define the identity of the package.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
632 dnl Distinguish between old-style and new-style calls.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
633 m4_ifval([$2],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
634 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
635 AC_SUBST([PACKAGE], [$1])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
636 AC_SUBST([VERSION], [$2])],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
637 [_AM_SET_OPTIONS([$1])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
638 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
639 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
640 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
641 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
642 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
643
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
644 _AM_IF_OPTION([no-define],,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
645 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
646 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
647
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
648 # Some tools Automake needs.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
649 AC_REQUIRE([AM_SANITY_CHECK])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
650 AC_REQUIRE([AC_ARG_PROGRAM])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
651 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
652 AM_MISSING_PROG(AUTOCONF, autoconf)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
653 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
654 AM_MISSING_PROG(AUTOHEADER, autoheader)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
655 AM_MISSING_PROG(MAKEINFO, makeinfo)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
656 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
657 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
658 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
659 # We need awk for the "check" target. The system "awk" is bad on
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
660 # some platforms.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
661 AC_REQUIRE([AC_PROG_AWK])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
662 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
663 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
664 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
665 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
666 [_AM_PROG_TAR([v7])])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
667 _AM_IF_OPTION([no-dependencies],,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
668 [AC_PROVIDE_IFELSE([AC_PROG_CC],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
669 [_AM_DEPENDENCIES(CC)],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
670 [define([AC_PROG_CC],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
671 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
672 AC_PROVIDE_IFELSE([AC_PROG_CXX],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
673 [_AM_DEPENDENCIES(CXX)],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
674 [define([AC_PROG_CXX],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
675 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
676 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
677 [_AM_DEPENDENCIES(OBJC)],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
678 [define([AC_PROG_OBJC],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
679 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
680 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
681 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
682 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
683 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
684 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
685 AC_CONFIG_COMMANDS_PRE(dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
686 [m4_provide_if([_AM_COMPILER_EXEEXT],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
687 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
688 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
689
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
690 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
691 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
692 dnl mangled by Autoconf and run in a shell conditional statement.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
693 m4_define([_AC_COMPILER_EXEEXT],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
694 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
695
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
696
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
697 # When config.status generates a header, we must update the stamp-h file.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
698 # This file resides in the same directory as the config header
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
699 # that is generated. The stamp files are numbered to have different names.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
700
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
701 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
702 # loop where config.status creates the headers, so we can generate
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
703 # our stamp files there.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
704 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
705 [# Compute $1's index in $config_headers.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
706 _am_arg=$1
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
707 _am_stamp_count=1
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
708 for _am_header in $config_headers :; do
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
709 case $_am_header in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
710 $_am_arg | $_am_arg:* )
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
711 break ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
712 * )
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
713 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
714 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
715 done
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
716 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
717
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
718 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
719 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
720 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
721 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
722 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
723
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
724 # AM_PROG_INSTALL_SH
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
725 # ------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
726 # Define $install_sh.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
727 AC_DEFUN([AM_PROG_INSTALL_SH],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
728 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
729 if test x"${install_sh}" != xset; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
730 case $am_aux_dir in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
731 *\ * | *\ *)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
732 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
733 *)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
734 install_sh="\${SHELL} $am_aux_dir/install-sh"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
735 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
736 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
737 AC_SUBST(install_sh)])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
738
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
739 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
740 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
741 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
742 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
743 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
744
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
745 # serial 2
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
746
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
747 # Check whether the underlying file-system supports filenames
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
748 # with a leading dot. For instance MS-DOS doesn't.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
749 AC_DEFUN([AM_SET_LEADING_DOT],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
750 [rm -rf .tst 2>/dev/null
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
751 mkdir .tst 2>/dev/null
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
752 if test -d .tst; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
753 am__leading_dot=.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
754 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
755 am__leading_dot=_
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
756 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
757 rmdir .tst 2>/dev/null
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
758 AC_SUBST([am__leading_dot])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
759
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
760 # Check to see how 'make' treats includes. -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
761
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
762 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
763 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
764 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
765 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
766 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
767
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
768 # serial 4
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
769
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
770 # AM_MAKE_INCLUDE()
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
771 # -----------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
772 # Check to see how make treats includes.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
773 AC_DEFUN([AM_MAKE_INCLUDE],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
774 [am_make=${MAKE-make}
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
775 cat > confinc << 'END'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
776 am__doit:
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
777 @echo this is the am__doit target
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
778 .PHONY: am__doit
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
779 END
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
780 # If we don't find an include directive, just comment out the code.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
781 AC_MSG_CHECKING([for style of include used by $am_make])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
782 am__include="#"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
783 am__quote=
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
784 _am_result=none
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
785 # First try GNU make style include.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
786 echo "include confinc" > confmf
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
787 # Ignore all kinds of additional output from `make'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
788 case `$am_make -s -f confmf 2> /dev/null` in #(
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
789 *the\ am__doit\ target*)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
790 am__include=include
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
791 am__quote=
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
792 _am_result=GNU
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
793 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
794 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
795 # Now try BSD make style include.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
796 if test "$am__include" = "#"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
797 echo '.include "confinc"' > confmf
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
798 case `$am_make -s -f confmf 2> /dev/null` in #(
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
799 *the\ am__doit\ target*)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
800 am__include=.include
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
801 am__quote="\""
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
802 _am_result=BSD
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
803 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
804 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
805 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
806 AC_SUBST([am__include])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
807 AC_SUBST([am__quote])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
808 AC_MSG_RESULT([$_am_result])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
809 rm -f confinc confmf
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
810 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
811
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
812 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
813
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
814 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
815 # Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
816 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
817 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
818 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
819 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
820
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
821 # serial 6
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
822
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
823 # AM_MISSING_PROG(NAME, PROGRAM)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
824 # ------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
825 AC_DEFUN([AM_MISSING_PROG],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
826 [AC_REQUIRE([AM_MISSING_HAS_RUN])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
827 $1=${$1-"${am_missing_run}$2"}
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
828 AC_SUBST($1)])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
829
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
830
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
831 # AM_MISSING_HAS_RUN
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
832 # ------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
833 # Define MISSING if not defined so far and test if it supports --run.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
834 # If it does, set am_missing_run to use it, otherwise, to nothing.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
835 AC_DEFUN([AM_MISSING_HAS_RUN],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
836 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
837 AC_REQUIRE_AUX_FILE([missing])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
838 if test x"${MISSING+set}" != xset; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
839 case $am_aux_dir in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
840 *\ * | *\ *)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
841 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
842 *)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
843 MISSING="\${SHELL} $am_aux_dir/missing" ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
844 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
845 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
846 # Use eval to expand $SHELL
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
847 if eval "$MISSING --run true"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
848 am_missing_run="$MISSING --run "
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
849 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
850 am_missing_run=
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
851 AC_MSG_WARN([`missing' script is too old or missing])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
852 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
853 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
854
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
855 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
856 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
857 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
858 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
859 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
860
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
861 # AM_PROG_MKDIR_P
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
862 # ---------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
863 # Check for `mkdir -p'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
864 AC_DEFUN([AM_PROG_MKDIR_P],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
865 [AC_PREREQ([2.60])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
866 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
867 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
868 dnl while keeping a definition of mkdir_p for backward compatibility.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
869 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
870 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
871 dnl Makefile.ins that do not define MKDIR_P, so we do our own
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
872 dnl adjustment using top_builddir (which is defined more often than
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
873 dnl MKDIR_P).
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
874 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
875 case $mkdir_p in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
876 [[\\/$]]* | ?:[[\\/]]*) ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
877 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
878 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
879 ])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
880
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
881 # Helper functions for option handling. -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
882
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
883 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
884 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
885 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
886 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
887 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
888
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
889 # serial 4
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
890
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
891 # _AM_MANGLE_OPTION(NAME)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
892 # -----------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
893 AC_DEFUN([_AM_MANGLE_OPTION],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
894 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
895
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
896 # _AM_SET_OPTION(NAME)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
897 # ------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
898 # Set option NAME. Presently that only means defining a flag for this option.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
899 AC_DEFUN([_AM_SET_OPTION],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
900 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
901
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
902 # _AM_SET_OPTIONS(OPTIONS)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
903 # ----------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
904 # OPTIONS is a space-separated list of Automake options.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
905 AC_DEFUN([_AM_SET_OPTIONS],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
906 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
907
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
908 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
909 # -------------------------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
910 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
911 AC_DEFUN([_AM_IF_OPTION],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
912 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
913
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
914 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
915
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
916 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
917 # Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
918 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
919 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
920 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
921 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
922
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
923 # serial 5
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
924
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
925 # AM_SANITY_CHECK
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
926 # ---------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
927 AC_DEFUN([AM_SANITY_CHECK],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
928 [AC_MSG_CHECKING([whether build environment is sane])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
929 # Just in case
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
930 sleep 1
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
931 echo timestamp > conftest.file
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
932 # Reject unsafe characters in $srcdir or the absolute working directory
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
933 # name. Accept space and tab only in the latter.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
934 am_lf='
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
935 '
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
936 case `pwd` in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
937 *[[\\\"\#\$\&\'\`$am_lf]]*)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
938 AC_MSG_ERROR([unsafe absolute working directory name]);;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
939 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
940 case $srcdir in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
941 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
942 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
943 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
944
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
945 # Do `set' in a subshell so we don't clobber the current shell's
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
946 # arguments. Must try -L first in case configure is actually a
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
947 # symlink; some systems play weird games with the mod time of symlinks
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
948 # (eg FreeBSD returns the mod time of the symlink's containing
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
949 # directory).
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
950 if (
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
951 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
952 if test "$[*]" = "X"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
953 # -L didn't work.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
954 set X `ls -t "$srcdir/configure" conftest.file`
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
955 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
956 rm -f conftest.file
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
957 if test "$[*]" != "X $srcdir/configure conftest.file" \
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
958 && test "$[*]" != "X conftest.file $srcdir/configure"; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
959
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
960 # If neither matched, then we have a broken ls. This can happen
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
961 # if, for instance, CONFIG_SHELL is bash and it inherits a
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
962 # broken ls alias from the environment. This has actually
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
963 # happened. Such a system could not be considered "sane".
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
964 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
965 alias in your environment])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
966 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
967
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
968 test "$[2]" = conftest.file
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
969 )
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
970 then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
971 # Ok.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
972 :
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
973 else
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
974 AC_MSG_ERROR([newly created file is older than distributed files!
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
975 Check your system clock])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
976 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
977 AC_MSG_RESULT(yes)])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
978
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
979 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
980 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
981 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
982 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
983 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
984
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
985 # AM_PROG_INSTALL_STRIP
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
986 # ---------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
987 # One issue with vendor `install' (even GNU) is that you can't
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
988 # specify the program used to strip binaries. This is especially
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
989 # annoying in cross-compiling environments, where the build's strip
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
990 # is unlikely to handle the host's binaries.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
991 # Fortunately install-sh will honor a STRIPPROG variable, so we
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
992 # always use install-sh in `make install-strip', and initialize
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
993 # STRIPPROG with the value of the STRIP variable (set by the user).
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
994 AC_DEFUN([AM_PROG_INSTALL_STRIP],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
995 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
996 # Installed binaries are usually stripped using `strip' when the user
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
997 # run `make install-strip'. However `strip' might not be the right
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
998 # tool to use in cross-compilation environments, therefore Automake
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
999 # will honor the `STRIP' environment variable to overrule this program.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1000 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1001 if test "$cross_compiling" != no; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1002 AC_CHECK_TOOL([STRIP], [strip], :)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1003 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1004 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1005 AC_SUBST([INSTALL_STRIP_PROGRAM])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1006
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1007 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1008 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1009 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1010 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1011 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1012
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1013 # serial 2
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1014
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1015 # _AM_SUBST_NOTMAKE(VARIABLE)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1016 # ---------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1017 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1018 # This macro is traced by Automake.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1019 AC_DEFUN([_AM_SUBST_NOTMAKE])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1020
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1021 # AM_SUBST_NOTMAKE(VARIABLE)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1022 # ---------------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1023 # Public sister of _AM_SUBST_NOTMAKE.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1024 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1025
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1026 # Check how to create a tarball. -*- Autoconf -*-
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1027
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1028 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1029 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1030 # This file is free software; the Free Software Foundation
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1031 # gives unlimited permission to copy and/or distribute it,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1032 # with or without modifications, as long as this notice is preserved.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1033
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1034 # serial 2
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1035
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1036 # _AM_PROG_TAR(FORMAT)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1037 # --------------------
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1038 # Check how to create a tarball in format FORMAT.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1039 # FORMAT should be one of `v7', `ustar', or `pax'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1040 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1041 # Substitute a variable $(am__tar) that is a command
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1042 # writing to stdout a FORMAT-tarball containing the directory
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1043 # $tardir.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1044 # tardir=directory && $(am__tar) > result.tar
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1045 #
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1046 # Substitute a variable $(am__untar) that extract such
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1047 # a tarball read from stdin.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1048 # $(am__untar) < result.tar
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1049 AC_DEFUN([_AM_PROG_TAR],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1050 [# Always define AMTAR for backward compatibility.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1051 AM_MISSING_PROG([AMTAR], [tar])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1052 m4_if([$1], [v7],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1053 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1054 [m4_case([$1], [ustar],, [pax],,
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1055 [m4_fatal([Unknown tar format])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1056 AC_MSG_CHECKING([how to create a $1 tar archive])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1057 # Loop over all known methods to create a tar archive until one works.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1058 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1059 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1060 # Do not fold the above two line into one, because Tru64 sh and
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1061 # Solaris sh will not grok spaces in the rhs of `-'.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1062 for _am_tool in $_am_tools
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1063 do
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1064 case $_am_tool in
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1065 gnutar)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1066 for _am_tar in tar gnutar gtar;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1067 do
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1068 AM_RUN_LOG([$_am_tar --version]) && break
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1069 done
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1070 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1071 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1072 am__untar="$_am_tar -xf -"
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1073 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1074 plaintar)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1075 # Must skip GNU tar: if it does not support --format= it doesn't create
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1076 # ustar tarball either.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1077 (tar --version) >/dev/null 2>&1 && continue
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1078 am__tar='tar chf - "$$tardir"'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1079 am__tar_='tar chf - "$tardir"'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1080 am__untar='tar xf -'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1081 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1082 pax)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1083 am__tar='pax -L -x $1 -w "$$tardir"'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1084 am__tar_='pax -L -x $1 -w "$tardir"'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1085 am__untar='pax -r'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1086 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1087 cpio)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1088 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1089 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1090 am__untar='cpio -i -H $1 -d'
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1091 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1092 none)
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1093 am__tar=false
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1094 am__tar_=false
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1095 am__untar=false
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1096 ;;
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1097 esac
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1098
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1099 # If the value was cached, stop now. We just wanted to have am__tar
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1100 # and am__untar set.
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1101 test -n "${am_cv_prog_tar_$1}" && break
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1102
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1103 # tar/untar a dummy directory, and stop if the command works
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1104 rm -rf conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1105 mkdir conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1106 echo GrepMe > conftest.dir/file
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1107 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1108 rm -rf conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1109 if test -s conftest.tar; then
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1110 AM_RUN_LOG([$am__untar <conftest.tar])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1111 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1112 fi
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1113 done
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1114 rm -rf conftest.dir
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1115
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1116 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1117 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1118 AC_SUBST([am__tar])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1119 AC_SUBST([am__untar])
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1120 ]) # _AM_PROG_TAR
9cb4031fa5e0 updated the generated AutoHELL files
meillo@marmaro.de
parents: 1
diff changeset
1121