]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
search in LD_LIBRARY_PATH before system
authoradam <adam>
Tue, 7 Jun 2005 07:18:40 +0000 (07:18 +0000)
committeradam <adam>
Tue, 7 Jun 2005 07:18:40 +0000 (07:18 +0000)
salome_adm/unix/config_files/check_qwt.m4

index c8537dae707b8de035bd821b2522548a7449cf7c..b8760ebdff40d79d8920e11aea26499b2210f831 100644 (file)
@@ -25,17 +25,6 @@ if test -z $QWTHOME; then
   AC_MSG_RESULT(QWTHOME not defined)
   dnl E.A. : Trying to detect QWTHOME
   exits_ok=no  
-  if test "x$exits_ok" = "xno"; then
-     dnl E.A. : Searching for libqwt.so in usual system paths
-     for d in /usr/local /usr ; do
-        AC_CHECK_FILE(${d}/lib/libqwt.so,exits_ok=yes,exits_ok=no)
-        if test "x$exits_ok" = "xyes"; then
-           QWTHOME=$d
-           AC_MSG_RESULT(libqwt.so detected in $d/lib)
-           break
-        fi
-     done
-  fi
   if test "x$exits_ok" = "xno"; then
      dnl E.A. : Searching for libqwt.so in LD_LIBRARY_PATH
      for d in `echo $LD_LIBRARY_PATH | sed -e "s/:/ /g"` ; do
@@ -48,6 +37,17 @@ if test -z $QWTHOME; then
         fi
      done
   fi
+  if test "x$exits_ok" = "xno"; then
+     dnl E.A. : Searching for libqwt.so in usual system paths
+     for d in /usr/local /usr ; do
+        AC_CHECK_FILE(${d}/lib/libqwt.so,exits_ok=yes,exits_ok=no)
+        if test "x$exits_ok" = "xyes"; then
+           QWTHOME=$d
+           AC_MSG_RESULT(libqwt.so detected in $d/lib)
+           break
+        fi
+     done
+  fi
   dnl E.A. : Trying to find QWT_INCLUDES
   if test "x$exits_ok" = "xyes"; then
      if test -z $QWT_INCLUDES; then