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