core: fix build with autotools and gettext >= 0.19

This commit is contained in:
Sébastien Helleu 2014-08-03 11:56:38 +02:00
parent b2466aae29
commit e13593dceb

View File

@ -51,36 +51,20 @@ run ()
fi fi
} }
###
### cleanning part
###
# remove autotools stuff # remove autotools stuff
run "rm -rf config"
run "rm -f config.h.in" run "rm -f config.h.in"
run "rm -f aclocal.m4 configure config.log config.status" run "rm -f aclocal.m4 configure config.log config.status"
run "rm -rf autom4te*.cache" run "rm -rf autom4te*.cache"
# remove libtool stuff # remove libtool stuff
run "rm -f libtool" run "rm -f libtool"
# remove gettext stuff # remove gettext stuff
run "rm -f ABOUT-NLS" run "rm -f ABOUT-NLS"
run "rm -rf intl" run "rm -rf intl"
### # execute autoreconf cmds
### configuration part run "autoreconf -fvi"
###
# create the config directory
run "mkdir -p config/m4"
run "mkdir intl"
# execute autotools cmds
run "autopoint -f"
LIBTOOLIZE=libtoolize
test `uname` = "Darwin" && LIBTOOLIZE=glibtoolize
run "$LIBTOOLIZE --automake --force --copy"
run "aclocal --force -I config/m4"
run "autoheader"
run "autoconf"
run "automake --add-missing --copy --gnu"
# ending # ending
rm -f $AUTOGEN_LOG rm -f $AUTOGEN_LOG