X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=autogen.sh;h=72e10332c446fac2f9450817f6c8242592e3413c;hb=refs%2Fheads%2F2.0alpha;hp=649973633804c5f69a8f912623650a8fcd90e5e4;hpb=d1d3924b89ca07bf222aceb11d33ee14fbc6ffc9;p=framework%2Fuifw%2Fembryo.git diff --git a/autogen.sh b/autogen.sh index 6499736..72e1033 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,6 +1,9 @@ #!/bin/sh -touch README +rm -rf autom4te.cache +rm -f aclocal.m4 ltmain.sh + +touch ABOUT-NLS echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS -I m4 || exit 1 echo "Running autoheader..." ; autoheader || exit 1 @@ -8,6 +11,28 @@ echo "Running autoconf..." ; autoconf || exit 1 echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1 echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1 +W=0 + +rm -f config.cache-env.tmp +echo "OLD_PARM=\"$@\"" >> config.cache-env.tmp +echo "OLD_CFLAGS=\"$CFLAGS\"" >> config.cache-env.tmp +echo "OLD_PATH=\"$PATH\"" >> config.cache-env.tmp +echo "OLD_PKG_CONFIG_PATH=\"$PKG_CONFIG_PATH\"" >> config.cache-env.tmp +echo "OLD_LDFLAGS=\"$LDFLAGS\"" >> config.cache-env.tmp + +cmp config.cache-env.tmp config.cache-env >> /dev/null +if [ $? -ne 0 ]; then + W=1; +fi + +if [ $W -ne 0 ]; then + echo "Cleaning configure cache..."; + rm -f config.cache config.cache-env + mv config.cache-env.tmp config.cache-env +else + rm -f config.cache-env.tmp +fi + if [ -z "$NOCONFIGURE" ]; then ./configure -C "$@" fi