From c86e4c398844b221db71d43425e35fa2e419d680 Mon Sep 17 00:00:00 2001 From: "seawood%netscape.com" Date: Tue, 14 Jan 2003 01:31:21 +0000 Subject: [PATCH] Throw an error if we are building with qt support and the qt libs are not found. Bug #188275 r=timeless --- configure | 2 +- configure.in | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index be8cd1e0a2f9..b372edaa9d36 100755 --- a/configure +++ b/configure @@ -11085,9 +11085,9 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then QT_LIB=-lqt-mt else echo "$ac_t""no" 1>&6 +{ echo "configure: error: Cannot find QT libraries." 1>&2; exit 1; } fi - fi LDFLAGS=$_SAVE_LDFLAGS diff --git a/configure.in b/configure.in index bf2f6964d61e..4e8c273bec0f 100644 --- a/configure.in +++ b/configure.in @@ -3152,8 +3152,8 @@ then AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_CHECK_LIB(qt, main, QT_LIB=-lqt, - AC_CHECK_LIB(qt-mt, main, QT_LIB=-lqt-mt) - ) + AC_CHECK_LIB(qt-mt, main, QT_LIB=-lqt-mt, + AC_MSG_ERROR([Cannot find QT libraries.]))) LDFLAGS=$_SAVE_LDFLAGS QT_LIBS="-L/usr/X11R6/lib $QT_LDFLAGS $QT_LIB -lXext -lX11" dnl AM_PATH_QT($QT_VERSION,,