]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
To see which qwt we're using in configure log
authornge <nge>
Tue, 6 Oct 2009 15:17:13 +0000 (15:17 +0000)
committernge <nge>
Tue, 6 Oct 2009 15:17:13 +0000 (15:17 +0000)
If Qt3 and Qt4 headers natively installed, fix detection by checking qwt headers in include/qwt-qt4 directory first

adm_local/unix/config_files/check_qwt.m4

index 6d9dcb82c0e16c8c07948e9bb7e0833452effd8b..bae22ac31a3c6f9ccc94a781150b934a43d2f095 100644 (file)
@@ -47,6 +47,7 @@ AC_ARG_WITH(qwt_inc,
 libqwt_name=qwt
 if test -z $QWTHOME; then
   AC_MSG_RESULT(QWTHOME not defined)
+  AC_MSG_NOTICE(Trying native Qwt...)
   exist_ok=no  
   if test "x$exist_ok" = "xno"; then
      for d in /usr /usr/local ; do
@@ -78,21 +79,22 @@ if test -z $QWTHOME; then
   fi
   if test "x$exist_ok" = "xyes"; then
      if test -z $QWT_INCDIR; then
-        QWT_INCDIR=$QWTHOME"/include/qwt"
+        QWT_INCDIR=$QWTHOME"/include/qwt-qt4"
         if test ! -f $QWT_INCDIR/qwt.h ; then
-          QWT_INCDIR=$QWTHOME"/include"
+          QWT_INCDIR=/usr/include/qwt
         fi
         if test ! -f $QWT_INCDIR/qwt.h ; then
-          QWT_INCDIR=/usr/lib/qt4/include/qwt
+          QWT_INCDIR=$QWTHOME"/include"
         fi
         if test ! -f $QWT_INCDIR/qwt.h ; then
-          QWT_INCDIR=/usr/include/qwt-qt4
+          QWT_INCDIR=/usr/lib/qt4/include/qwt
         fi
      fi
   else
      qwt_ok=no
   fi
 else
+  AC_MSG_NOTICE(Trying Qwt from $QWTHOME ...)
   if test -z $QWT_INCDIR; then
      QWT_INCDIR="$QWTHOME/include"
   fi