From 6781444835ca04a1e2a441193be031a96e1db6d9 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 23 Oct 2011 15:35:36 +0000 Subject: [PATCH] Warn user that build will fail if bc is not installed. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39945 a592a061-630c-0410-9148-cb99ea01b6c8 --- config/qt4.m4 | 1 + configure.ac | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/qt4.m4 b/config/qt4.m4 index be2a21ebf9..eea6fdf4f8 100644 --- a/config/qt4.m4 +++ b/config/qt4.m4 @@ -142,6 +142,7 @@ AC_DEFUN([QT4_DO_IT_ALL], AC_PATH_PROGS(MOC4, [moc-qt4 moc],[],$qt4_cv_bin:$PATH) AC_PATH_PROGS(UIC4, [uic-qt4 uic],[],$qt4_cv_bin:$PATH) AC_PATH_PROGS(RCC4, [rcc-qt4 rcc],[],$qt4_cv_bin:$PATH) + AC_CHECK_PROG(bc_found,[bc],[yes],[no],$PATH) ]) AC_DEFUN([QT4_DO_PKG_CONFIG], diff --git a/configure.ac b/configure.ac index e0890eb361..700f6ff712 100644 --- a/configure.ac +++ b/configure.ac @@ -130,7 +130,7 @@ for frontend in $FRONTENDS ; do FRONTEND_INFO="${FRONTEND_INFO}\ Qt 4 Frontend:\n\ Qt 4 version:\t\t${QT4_VERSION}\n" -dnl qt 4 build will fail without moc or uic +dnl qt 4 build will fail without moc, uic, or bc if test -z "$MOC4"; then LYX_ERROR([moc 4 binary not found !]) fi @@ -140,6 +140,9 @@ dnl qt 4 build will fail without moc or uic if test -z "$QT4_LIB"; then LYX_ERROR([qt 4 library not found !]) fi + if test "$bc_found" = "no"; then + LYX_ERROR([bc binary not found !]) + fi ;; *) LYX_ERROR(Unknown frontend '$frontend');;