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