## @id $Id$ ## 1 2 3 4 5 6 7 8 ## 45678901234567890123456789012345678901234567890123456789012345678901234567890 AC_INIT(webtester, 1.0.m4_esyscmd_s( LEAST="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-svn-checkout" for path in . .. ../..; do if svn info $path 2>&1 > /dev/null; then LEAST=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p') (cd $path && svn2cl) break; fi done echo -n $LEAST )) AM_INIT_AUTOMAKE([1.9 tar-pax]) AC_CONFIG_FILES(makefile src/makefile debian/changelog debian/control) AC_PROG_CXX AC_PROG_CC AC_CHECK_PROG(QMAKE, qmake-qt5) AC_CHECK_PROG(QMAKE, qtchooser, [qtchooser -run-tool=qmake -qt=qt5]) AC_CHECK_PROG(QMAKE, qmake) README=$(tail -n +3 README) README_DEB=$(tail -n +3 README | sed -e 's/^$/./g' -e 's/^/ /g') DESCRIPTION=$(head -1 README) AUTHOR=$(head -1 AUTHORS) AC_SUBST(AUTHOR) _AM_SUBST_NOTMAKE([AUTHOR]) AC_SUBST(DESCRIPTION) _AM_SUBST_NOTMAKE([DESCRIPTION]) AC_SUBST(README) _AM_SUBST_NOTMAKE([README]) AC_SUBST(README_DEB) _AM_SUBST_NOTMAKE([README_DEB]) DISTRO=$(lsb_release -sc) AC_SUBST(DISTRO) BUILD_NUMBER=${BUILD_NUMBER:-1} AC_SUBST(BUILD_NUMBER) BUILD_DATE=$(date -R) AC_SUBST(BUILD_DATE) AC_OUTPUT