From 5d2ece44feb29e0f63b2e62b616f2ea377b04f8c Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 7 Jun 2005 07:18:40 +0000 Subject: [PATCH] search in LD_LIBRARY_PATH before system --- salome_adm/unix/config_files/check_qwt.m4 | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/salome_adm/unix/config_files/check_qwt.m4 b/salome_adm/unix/config_files/check_qwt.m4 index c8537dae7..b8760ebdf 100644 --- a/salome_adm/unix/config_files/check_qwt.m4 +++ b/salome_adm/unix/config_files/check_qwt.m4 @@ -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 -- 2.39.2