diff options
Diffstat (limited to '')
-rwxr-xr-x | libraries/ecore/autogen.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libraries/ecore/autogen.sh b/libraries/ecore/autogen.sh new file mode 100755 index 0000000..2a59cac --- /dev/null +++ b/libraries/ecore/autogen.sh | |||
@@ -0,0 +1,39 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | rm -rf autom4te.cache | ||
4 | rm -f aclocal.m4 ltmain.sh | ||
5 | |||
6 | touch ABOUT-NLS | ||
7 | |||
8 | echo "Running autopoint..." ; autopoint -f || : | ||
9 | echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS -I m4 || exit 1 | ||
10 | echo "Running autoheader..." ; autoheader || exit 1 | ||
11 | echo "Running autoconf..." ; autoconf || exit 1 | ||
12 | echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1 | ||
13 | echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1 | ||
14 | |||
15 | W=0 | ||
16 | |||
17 | rm -f config.cache-env.tmp | ||
18 | echo "OLD_PARM=\"$@\"" >> config.cache-env.tmp | ||
19 | echo "OLD_CFLAGS=\"$CFLAGS\"" >> config.cache-env.tmp | ||
20 | echo "OLD_PATH=\"$PATH\"" >> config.cache-env.tmp | ||
21 | echo "OLD_PKG_CONFIG_PATH=\"$PKG_CONFIG_PATH\"" >> config.cache-env.tmp | ||
22 | echo "OLD_LDFLAGS=\"$LDFLAGS\"" >> config.cache-env.tmp | ||
23 | |||
24 | cmp config.cache-env.tmp config.cache-env >> /dev/null | ||
25 | if [ $? -ne 0 ]; then | ||
26 | W=1; | ||
27 | fi | ||
28 | |||
29 | if [ $W -ne 0 ]; then | ||
30 | echo "Cleaning configure cache..."; | ||
31 | rm -f config.cache config.cache-env | ||
32 | mv config.cache-env.tmp config.cache-env | ||
33 | else | ||
34 | rm -f config.cache-env.tmp | ||
35 | fi | ||
36 | |||
37 | if [ -z "$NOCONFIGURE" ]; then | ||
38 | ./configure -C "$@" | ||
39 | fi | ||