summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 684c1a9423fe0ed3aaa2c5d655cfc80614d3c243 (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
#! /bin/sh

if [ "$USER" = "root" ]; then
  echo "You cannot do this as "$USER" please use a normal user account"
  exit
fi

echo
echo 
echo "NOTE:"
echo "you will need libtool 1.3 or higher for this to work"
echo
echo

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

THEDIR="`pwd`"
cd "$srcdir"
DIE=0

set -x
autoheader
libtoolize --ltdl --force --copy
aclocal
automake --foreign --add-missing
autoconf

if test -z "$*"; then
        echo "I am going to run ./configure with no arguments - if you wish "
        echo "to pass any to it, please specify them on the $0 command line."
fi

cd "$THEDIR"

$srcdir/configure "$@"

set +x

echo "making loader dir "$HOME"/.loaders/image"
mkdir $HOME"/.loaders"
mkdir $HOME"/.loaders/image"
echo "Now type:"
echo
echo "make"
echo "make install"
echo
echo "to compile and install the loaders for imlib2 demo."
echo "please ensure after you type make install there is a png.so and "
echo "jpeg.so in "$HOME"/.loaders/image"
echo "ignore the errors make install emits when make install exits - they are"
echo "ok to have."
echo "also make sure you run imlib2 from THIS directory - ie:"
echo 
echo "./imlib2"
echo
echo "have fun."