3 ACLOCAL="aclocal -I m4 -I config"
4 AUTOHEADER="autoheader"
5 AUTOMAKE="automake --add-missing --force-missing --copy --foreign"
8 # Discover what version of automake we are using.
9 automake_version=`$AUTOMAKE --version 2>/dev/null | head -n 1`
11 test "$automake_version" != "" && {
12 echo "Using $automake_version"
14 echo "LyX requires automake >= 1.14"
18 case $automake_version in
22 echo "This automake version is not supported by LyX."
23 echo "LyX only supports automake 1.14 to 1.15."
28 # Discover what version of autoconf we are using.
29 autoversion=`$AUTOCONF --version 2>/dev/null | head -n 1`
31 test "$autoversion" != "" && {
32 echo "Using $autoversion"
34 echo "LyX requires autoconf >= 2.65"
42 echo "This autoconf version is not supported by LyX."
43 echo "LyX only supports autoconf 2.65-2.69."
48 # Delete old cache directories.
49 # automake will stop if their contents was created by an earlier version.
52 # Generate the Makefiles and configure files
53 echo "Building macros..."
54 if ( $ACLOCAL --version ) < /dev/null > /dev/null 2>&1; then
57 echo "aclocal not found -- aborting"
61 echo "Building config header template..."
62 if ( $AUTOHEADER --version ) < /dev/null > /dev/null 2>&1; then
65 echo "autoheader not found -- aborting"
69 echo "Building Makefile templates..."
70 if ( $AUTOMAKE --version ) < /dev/null > /dev/null 2>&1; then
73 echo "automake not found -- aborting"
77 echo "Building configure..."
78 if ( $AUTOCONF --version ) < /dev/null > /dev/null 2>&1; then
81 echo "autoconf not found -- aborting"
85 echo "Building po/POTFILES.in..."
86 if ( make -s -f po/Rules-lyx srcdir=po top_srcdir=. po/POTFILES.in ); then
89 echo "Building po/POTFILES.in failed -- aborting"
94 echo 'run "./configure && make"'