Created Autodist git repository.
[autodist.git] / apps / autodist / configure.ad
1 #
2 #  apps/autodist/configure.ad
3 #
4 #  Author: Pekka Riikonen <priikone@silcnet.org>
5 #
6 #  Copyright (C) 2005 Pekka Riikonen
7 #
8 #  This program is free software; you can redistribute it and/or modify
9 #  it under the terms of the GNU General Public License as published by
10 #  the Free Software Foundation; version 2 of the License.
11 #
12 #  This program is distributed in the hope that it will be useful,
13 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #  GNU General Public License for more details.
16 #
17
18 # The APIVERSION is appended to the filename, to give versioned name.
19 # The base version (X.Y) is taken.
20 APIVERSION=`echo "$VERSION" | sed -e 's/^\([[0-9]]*\.[[0-9]]*[[a-z]]*\).*$/\1/'`
21 AC_SUBST(APIVERSION)
22
23 old_exec_prefix=$exec_prefix
24 old_prefix=$prefix
25 exec_prefix=$silc_prefix
26 prefix=$silc_prefix
27
28 # Path to the autodist in installed environment
29 s_bindir=`eval echo $bindir`;s_bindir=`eval echo $s_bindir`
30 AUTODIST=$s_bindir/autodist
31 AC_SUBST(AUTODIST)
32
33 # Path to the Autodist data
34 s_datadir=`eval echo $datadir`;s_bindir=`eval echo $s_datadir`
35 AUTODISTDIR=$s_datadir/autodist
36 AC_SUBST(AUTODISTDIR)
37
38 exec_prefix=$old_exec_prefix
39 prefix=$old_prefix
40
41 #
42 # Makefile outputs
43 #
44 AC_CONFIG_FILES(
45 apps/autodist/Makefile
46 apps/autodist/autodist
47 apps/autodist/makedist
48 apps/autodist/doc/Makefile
49 apps/autodist/doc/autodist.1
50 apps/autodist/tests/Makefile
51 )