X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=autogen.sh;h=7b8a66081d10d17f3833e25de480484a657b2e9f;hb=dbc07ef630f6a388d3ec388fbdb9261dc5067099;hp=066e508f75bb51bf13f3006494e5cc4182219490;hpb=a43de951800a6307f26b56c0a89924ed570e292d;p=lyx.git diff --git a/autogen.sh b/autogen.sh index 066e508f75..7b8a66081d 100755 --- a/autogen.sh +++ b/autogen.sh @@ -46,74 +46,47 @@ case $autoversion in ;; esac -echo -n "Locating GNU m4... " -GNUM4= -for prog in $M4 gm4 gnum4 m4; do - # continue if $prog generates error (e.g. does not exist) - ( $prog --version ) < /dev/null > /dev/null 2>&1 - if test $? -ne 0 ; then continue; fi - - # /dev/null input prevents a hang of the script for some m4 compilers (e.g. on FreeBSD) - case `$prog --version < /dev/null 2>&1` in - *GNU*) GNUM4=$prog - break ;; - esac -done -if test x$GNUM4 = x ; then - echo "not found." - exit 1 -else - echo `which $GNUM4` -fi - # Delete old cache directories. # automake will stop if their contents was created by an earlier version. rm -rf autom4te.cache +# Update the gettext files +echo "Copying gettext code... " +if ( autopoint --version ) < /dev/null > /dev/null 2>&1; then + autopoint --force >/dev/null +else + echo "autopoint not found -- aborting" + exit 1 +fi + # Generate the Makefiles and configure files +echo "Building macros..." if ( $ACLOCAL --version ) < /dev/null > /dev/null 2>&1; then - echo "Building macros..." - for dir in . ; do - echo " $dir" - ( cd $dir ; $ACLOCAL ) - done - echo "done." + $ACLOCAL else echo "aclocal not found -- aborting" exit 1 fi +echo "Building config header template..." if ( $AUTOHEADER --version ) < /dev/null > /dev/null 2>&1; then - echo "Building config header template..." - for dir in . ; do - echo " $dir" - ( cd $dir ; $AUTOHEADER ) - done - echo "done." + $AUTOHEADER else echo "autoheader not found -- aborting" exit 1 fi +echo "Building Makefile templates..." if ( $AUTOMAKE --version ) < /dev/null > /dev/null 2>&1; then - echo "Building Makefile templates..." - for dir in . ; do - echo " $dir" - ( cd $dir ; $AUTOMAKE ) - done - echo "done." + $AUTOMAKE else echo "automake not found -- aborting" exit 1 fi +echo "Building configure..." if ( $AUTOCONF --version ) < /dev/null > /dev/null 2>&1; then - echo "Building configure..." - for dir in . ; do - echo " $dir" - ( cd $dir ; $AUTOCONF ) - done - echo "done." + $AUTOCONF else echo "autoconf not found -- aborting" exit 1