XFree86 XCursor sample support. No change with a default install, but if you grab...
[platform/upstream/enlightenment.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 abort () {
5     echo "$1 not found or command failed. Aborting!"
6     exit 1
7 }
8
9 srcdir=`dirname $0`
10 PKG_NAME="the package."
11
12 DIE=0
13
14 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
15   echo
16   echo "**Error**: You must have \`autoconf' installed to."
17   echo "Download the appropriate package for your distribution,"
18   echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
19   DIE=1
20 }
21
22 (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
23   (libtool --version) < /dev/null > /dev/null 2>&1 || {
24     echo
25     echo "**Error**: You must have \`libtool' installed."
26     echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
27     echo "(or a newer version if it is available)"
28     DIE=1
29   }
30 }
31
32 (automake --version) < /dev/null > /dev/null 2>&1 || {
33   echo
34   echo "**Error**: You must have \`automake' installed."
35   echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
36   echo "(or a newer version if it is available)"
37   DIE=1
38   NO_AUTOMAKE=yes
39 }
40
41
42 # if no automake, don't bother testing for aclocal
43 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
44   echo
45   echo "**Error**: Missing \`aclocal'.  The version of \`automake'"
46   echo "installed doesn't appear recent enough."
47   echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
48   echo "(or a newer version if it is available)"
49   DIE=1
50 }
51
52 if test "$DIE" -eq 1; then
53   exit 1
54 fi
55
56 if test -z "$*"; then
57   echo "**Warning**: I am going to run \`configure' with no arguments."
58   echo "If you wish to pass any to it, please specify them on the"
59   echo \`$0\'" command line."
60   echo
61 fi
62
63 case $CC in
64 xlc )
65   am_opt=--include-deps;;
66 esac
67
68 for coin in `find $srcdir -name configure.in -print`
69 do 
70   dr=`dirname $coin`
71   if test -f $dr/NO-AUTO-GEN; then
72     echo skipping $dr -- flagged as no auto-gen
73   else
74     echo processing $dr
75     macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
76     ( cd $dr
77       aclocalinclude="$ACLOCAL_FLAGS"
78       for k in $macrodirs; do
79         if test -d $k; then
80           aclocalinclude="$aclocalinclude -I $k"
81         ##else 
82         ##  echo "**Warning**: No such directory \`$k'.  Ignored."
83         fi
84       done
85       if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
86         echo "Running libtoolize..."
87         libtoolize --force --copy || abort "libtoolize"
88       fi
89       echo "Running aclocal $aclocalinclude ..."
90       aclocal $aclocalinclude || abort "aclocal"
91       if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
92         echo "Running autoheader..."
93         autoheader || abort "autoheader"
94       fi
95       echo "Running automake --gnu $am_opt ..."
96       automake --add-missing --gnu $am_opt || abort "automake"
97       echo "Running autoconf ..."
98       autoconf || abort "autoconf"
99     )
100   fi
101 done
102
103 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
104
105 if test x$NOCONFIGURE = x; then
106   echo Running $srcdir/configure $conf_flags "$@" ...
107   $srcdir/configure $conf_flags "$@" \
108   && echo Now type \`make\' to compile $PKG_NAME || abort "configure"
109 else
110   echo Skipping configure process.
111 fi
112
113
114 cd data/borders/
115 cd borderless
116 ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-0.shaded-0.bits.db
117 ln -sf selected-0.sticky-0.shaded-0.bits.db selected-0.sticky-1.shaded-0.bits.db
118 ln -sf selected-0.sticky-0.shaded-0.bits.db selected-0.sticky-0.shaded-1.bits.db
119 ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-1.shaded-0.bits.db
120 ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-0.shaded-1.bits.db
121 ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-1.shaded-1.bits.db
122 ln -sf selected-0.sticky-0.shaded-0.bits.db selected-0.sticky-1.shaded-1.bits.db
123 cd ..
124 cd default
125 #ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-0.shaded-0.bits.db
126 ln -sf selected-0.sticky-0.shaded-0.bits.db selected-0.sticky-1.shaded-0.bits.db
127 ln -sf selected-0.sticky-0.shaded-0.bits.db selected-0.sticky-0.shaded-1.bits.db
128 ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-1.shaded-0.bits.db
129 ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-0.shaded-1.bits.db
130 ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-1.shaded-1.bits.db
131 ln -sf selected-0.sticky-0.shaded-0.bits.db selected-0.sticky-1.shaded-1.bits.db
132 cd ..
133
134 cd fonts
135 ln -sf borzoib.ttf menu.ttf
136 ln -sf borzoib.ttf text.ttf