* Fixes and updates to build WebCit on Linux for IBM S/390
[citadel.git] / webcit / aclocal.m4
1 # generated automatically by aclocal 1.7 -*- Autoconf -*-
2
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4 # Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 #  -*- Autoconf -*-
15
16
17 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
18
19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by
21 # the Free Software Foundation; either version 2, or (at your option)
22 # any later version.
23
24 # This program is distributed in the hope that it will be useful,
25 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27 # GNU General Public License for more details.
28
29 # You should have received a copy of the GNU General Public License
30 # along with this program; if not, write to the Free Software
31 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
32 # 02111-1307, USA.
33
34 # serial 3
35
36 # AM_MISSING_PROG(NAME, PROGRAM)
37 # ------------------------------
38 AC_DEFUN([AM_MISSING_PROG],
39 [AC_REQUIRE([AM_MISSING_HAS_RUN])
40 $1=${$1-"${am_missing_run}$2"}
41 AC_SUBST($1)])
42
43
44 # AM_MISSING_HAS_RUN
45 # ------------------
46 # Define MISSING if not defined so far and test if it supports --run.
47 # If it does, set am_missing_run to use it, otherwise, to nothing.
48 AC_DEFUN([AM_MISSING_HAS_RUN],
49 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
50 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
51 # Use eval to expand $SHELL
52 if eval "$MISSING --run true"; then
53   am_missing_run="$MISSING --run "
54 else
55   am_missing_run=
56   AC_MSG_WARN([`missing' script is too old or missing])
57 fi
58 ])
59
60 # AM_AUX_DIR_EXPAND
61
62 # Copyright 2001 Free Software Foundation, Inc.
63
64 # This program is free software; you can redistribute it and/or modify
65 # it under the terms of the GNU General Public License as published by
66 # the Free Software Foundation; either version 2, or (at your option)
67 # any later version.
68
69 # This program is distributed in the hope that it will be useful,
70 # but WITHOUT ANY WARRANTY; without even the implied warranty of
71 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
72 # GNU General Public License for more details.
73
74 # You should have received a copy of the GNU General Public License
75 # along with this program; if not, write to the Free Software
76 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
77 # 02111-1307, USA.
78
79 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
80 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
81 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
82 #
83 # Of course, Automake must honor this variable whenever it calls a
84 # tool from the auxiliary directory.  The problem is that $srcdir (and
85 # therefore $ac_aux_dir as well) can be either absolute or relative,
86 # depending on how configure is run.  This is pretty annoying, since
87 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
88 # source directory, any form will work fine, but in subdirectories a
89 # relative path needs to be adjusted first.
90 #
91 # $ac_aux_dir/missing
92 #    fails when called from a subdirectory if $ac_aux_dir is relative
93 # $top_srcdir/$ac_aux_dir/missing
94 #    fails if $ac_aux_dir is absolute,
95 #    fails when called from a subdirectory in a VPATH build with
96 #          a relative $ac_aux_dir
97 #
98 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
99 # are both prefixed by $srcdir.  In an in-source build this is usually
100 # harmless because $srcdir is `.', but things will broke when you
101 # start a VPATH build or use an absolute $srcdir.
102 #
103 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
104 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
105 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
106 # and then we would define $MISSING as
107 #   MISSING="\${SHELL} $am_aux_dir/missing"
108 # This will work as long as MISSING is not called from configure, because
109 # unfortunately $(top_srcdir) has no meaning in configure.
110 # However there are other variables, like CC, which are often used in
111 # configure, and could therefore not use this "fixed" $ac_aux_dir.
112 #
113 # Another solution, used here, is to always expand $ac_aux_dir to an
114 # absolute PATH.  The drawback is that using absolute paths prevent a
115 # configured tree to be moved without reconfiguration.
116
117 # Rely on autoconf to set up CDPATH properly.
118 AC_PREREQ([2.50])
119
120 AC_DEFUN([AM_AUX_DIR_EXPAND], [
121 # expand $ac_aux_dir to an absolute path
122 am_aux_dir=`cd $ac_aux_dir && pwd`
123 ])
124