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