summaryrefslogtreecommitdiff
path: root/legacy/emotion/autogen.sh
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2004-06-18 15:38:03 +0000
committerCarsten Haitzler <raster@rasterman.com>2004-06-18 15:38:03 +0000
commit7f3528ec27a1419b927542e6ab3eff62e69aadd4 (patch)
tree95ddf197be0bf244f723478cdeab0e6d09f68adc /legacy/emotion/autogen.sh
parente1704a29b526ca419f7d85bcc8a2dac3596be2e4 (diff)
it had to happen sooner or later... in in in... we go! :)
SVN revision: 10537
Diffstat (limited to 'legacy/emotion/autogen.sh')
-rwxr-xr-xlegacy/emotion/autogen.sh137
1 files changed, 137 insertions, 0 deletions
diff --git a/legacy/emotion/autogen.sh b/legacy/emotion/autogen.sh
new file mode 100755
index 0000000000..9226176c74
--- /dev/null
+++ b/legacy/emotion/autogen.sh
@@ -0,0 +1,137 @@
1#!/bin/sh
2# Run this to generate all the initial makefiles, etc.
3
4srcdir=`dirname $0`
5PKG_NAME="the package."
6
7DIE=0
8
9(autoconf --version) < /dev/null > /dev/null 2>&1 || {
10 echo
11 echo "**Error**: You must have \`autoconf' installed to."
12 echo "Download the appropriate package for your distribution,"
13 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
14 DIE=1
15}
16
17(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
18 (libtool --version) < /dev/null > /dev/null 2>&1 || {
19 echo
20 echo "**Error**: You must have \`libtool' installed."
21 echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
22 echo "(or a newer version if it is available)"
23 DIE=1
24 }
25}
26
27grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
28 grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
29 (gettext --version) < /dev/null > /dev/null 2>&1 || {
30 echo
31 echo "**Error**: You must have \`gettext' installed."
32 echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
33 echo "(or a newer version if it is available)"
34 DIE=1
35 }
36}
37
38(automake --version) < /dev/null > /dev/null 2>&1 || {
39 echo
40 echo "**Error**: You must have \`automake' installed."
41 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
42 echo "(or a newer version if it is available)"
43 DIE=1
44 NO_AUTOMAKE=yes
45}
46
47
48# if no automake, don't bother testing for aclocal
49test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
50 echo
51 echo "**Error**: Missing \`aclocal'. The version of \`automake'"
52 echo "installed doesn't appear recent enough."
53 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
54 echo "(or a newer version if it is available)"
55 DIE=1
56}
57
58if test "$DIE" -eq 1; then
59 exit 1
60fi
61
62if test -z "$*"; then
63 echo "**Warning**: I am going to run \`configure' with no arguments."
64 echo "If you wish to pass any to it, please specify them on the"
65 echo \`$0\'" command line."
66 echo
67fi
68
69case $CC in
70xlc )
71 am_opt=--include-deps;;
72esac
73
74for coin in `find $srcdir -name configure.in -print`
75do
76 dr=`dirname $coin`
77 if test -f $dr/NO-AUTO-GEN; then
78 echo skipping $dr -- flagged as no auto-gen
79 else
80 echo processing $dr
81 macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
82 ( cd $dr
83 aclocalinclude="$ACLOCAL_FLAGS"
84 for k in $macrodirs; do
85 if test -d $k; then
86 aclocalinclude="$aclocalinclude -I $k"
87 ##else
88 ## echo "**Warning**: No such directory \`$k'. Ignored."
89 fi
90 done
91 if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then
92 if grep "sed.*POTFILES" configure.in >/dev/null; then
93 : do nothing -- we still have an old unmodified configure.in
94 else
95 echo "Creating $dr/aclocal.m4 ..."
96 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
97 echo "Running gettextize... Ignore non-fatal messages."
98 echo "no" | gettextize --force --copy
99 echo "Making $dr/aclocal.m4 writable ..."
100 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
101 fi
102 fi
103 if grep "^AM_GNOME_GETTEXT" configure.in >/dev/null; then
104 echo "Creating $dr/aclocal.m4 ..."
105 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
106 echo "Running gettextize... Ignore non-fatal messages."
107 echo "no" | gettextize --force --copy
108 echo "Making $dr/aclocal.m4 writable ..."
109 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
110 fi
111 if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
112 echo "Running libtoolize..."
113 libtoolize --force --copy
114 fi
115 echo "Running aclocal $aclocalinclude ..."
116 aclocal $aclocalinclude
117 if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
118 echo "Running autoheader..."
119 autoheader
120 fi
121 echo "Running automake --gnu $am_opt ..."
122 automake --add-missing --gnu $am_opt
123 echo "Running autoconf ..."
124 autoconf
125 )
126 fi
127done
128
129#conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
130
131if test x$NOCONFIGURE = x; then
132 echo Running $srcdir/configure $conf_flags "$@" ...
133 $srcdir/configure $conf_flags "$@" \
134 && echo Now type \`make\' to compile $PKG_NAME
135else
136 echo Skipping configure process.
137fi