-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·75 lines (63 loc) · 1.55 KB
/
autogen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/sh
aclocal=${ACLOCAL:-aclocal}
autoconf=${AUTOCONF:-autoconf}
autoheader=${AUTOHEADER:-autoheader}
while test $# -gt 0; do
case $1 in
--with-aclocal)
shift
aclocal=$1
;;
--with-aclocal=*)
aclocal=`echo $1 | sed 's/^--with-aclocal=//'`
;;
--with-autoconf)
shift
autoconf=$1
;;
--with-autoconf=*)
autoconf=`echo $1 | sed 's/^--with-autoconf=//'`
;;
--with-autoheader)
shift
autoheader=$1
;;
--with-autoheader=*)
autoheader=`echo $1 | sed 's/^--with-autoheader=//'`
;;
--*)
cat <<.
Usage: autogen [OPTIONS]
Options:
--with-aclocal=PROGRAM version of aclocal to use.
--with-autoconf=PROGRAM version of autoconf to use.
--with-autoheader=PROGRAM version of autoheader to use.
Alternatively you can the the variables ACLOCAL, AUTOCONF, AUTOHEADER.
.
exit
;;
esac
shift
done
rm -f config.cache
. ./VERSION
sed <icewm.spec.in >icewm.spec \
-e 's/%%VERSION%%/'"$VERSION"'/'
sed <icewm.lsm.in >icewm.lsm \
-e 's/%%VERSION%%/'"$VERSION"'/' \
-e 's/%%DATE%%/'"`date +%d%b%Y`"'/'
"$aclocal" &&
"$autoconf" &&
"$autoheader" &&
echo "You can run \`configure' now to create your Makefile." ||
cat >&2 <<.
Failed to build the \`configure' script. You need GNU autoconf version 2.50
(or newer) installed for this procedure. If autoconf should be installed
allready call `basename $0` --help" to see how to adjust this script.
.
#
# !!! Fix the build system to allow $top_builddir != $top_srcdir
# !!! or add an option to create build directories (find, ln -s, ...)
#
# echo "Maybe you want to create a build directory first."
#