summarylogtreecommitdiffstats
path: root/autogen.sh
blob: 9fc0f34060b53d6951ad6d7beb990fc812a4d34e (plain)
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
#!/bin/sh

PROGNAME="$0"
#DN_EXEC=`echo "${PROGNAME}" | ${EXEC_AWK} -F/ '{b=$1; for (i=2; i < NF; i ++) {b=b "/" $(i)}; print b}'`
DN_EXEC=`dirname "${PROGNAME}"`
if [ ! "${DN_EXEC}" = "" ]; then
    DN_EXEC="${DN_EXEC}/"
else
    DN_EXEC="./"
fi

${DN_EXEC}autoclean.sh

rm -f configure

rm -f Makefile.in

rm -f config.guess
rm -f config.sub
rm -f install-sh
rm -f missing
rm -f depcomp

# install libs
#which apt-get
#if [ "$?" = "0" ]; then
    #sudo apt-get install -y libxml2-dev libxslt-dev libicu-dev
    ## for traceback
    #sudo apt-get install -y binutils-dev libiberty-dev
    ## for doxygen
    #sudo apt-get install -y graphviz doxygen texlive-full
#fi

#which yum
#if [ "$?" = "0" ]; then
    #sudo yum install -y libxml2-devel libxslt-devel libicu-devel
#if

if [ 0 = 1 ]; then
autoscan
else
#cd pflib && ${DN_EXEC}autogen.sh && cd ..

touch NEWS
touch README
touch AUTHORS
touch ChangeLog
touch config.h.in

libtoolize --force --copy --install --automake
aclocal
#automake -ac
automake --copy --add-missing --gnu
autoconf

autoreconf # run twice to get rid of 'ltmain.sh not found'
autoreconf

if [ 1 = 1 ]; then
rm -rf build
mkdir -p build
cd build
fi

#${DN_EXEC}configure --enable-debug
#./configure --enable-debug
#make clean
#make

fi