-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·36 lines (27 loc) · 1019 Bytes
/
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
#!/bin/sh -
## autogen.sh - generate all the twisty little files.
here=`pwd`
cd `dirname $0`
# Clean up these files -- maybe we should not have them in CVS? GJB:FIXME::
rm -f ltconfig ltmain.sh
# Generate aclocal.m4 from configure.in
aclocal -I .
# Copy ltconfig and ltmain.sh for this version of libtool
libtoolize --automake --copy
# Generate include/config.h.in from acconfig.h and configure.in
autoheader
# Generate Makefile.in's from Makefile.am's and configure.in
# (adding missing files that may be needed for proper operation)
#automake-1.4 --add-missing --gnu
automake --add-missing --foreign
# Generate configure from configure.in and aclocal.m4
autoconf
cd $here
# Instead of rerunning config.status, re-run configure from scratch
if [ -r config.status ]; then
CMD=`awk '/^#.*\/?configure .*/ { $1 = ""; print; exit }' < config.status`
echo "Running: $CMD $@" 1>&2
else
CMD=`dirname $0`/configure
fi
$CMD "$@" && echo && echo "Now type 'make' to compile Scwm, and install via 'make install'."