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