LD_PATH_OPTION="-Wl,-rpath "],
[ AC_MSG_RESULT(no)
LDFLAGS=$OLD_LDFLAGS
- LD_PATH_OPTION="-L"])
+ LD_PATH_OPTION="no"])
])
AC_DEFUN(DEAL_II_WITH_UMFPACK, dnl
[
if test "x$1" != "xyes" ; then
- LDFLAGS="$LD_PATH_OPTION$1/UMFPACK/Lib $LD_PATH_OPTION$1/AMD/Lib $LDFLAGS"
+ LDFLAGS="-L$1/UMFPACK/Lib -L$1/AMD/Lib $LDFLAGS"
+ if test "$LD_PATH_OPTION" != "no"; then
+ LDFLAGS = "$LD_PATH_OPTION$1/UMFPACK/Lib $LD_PATH_OPTION$1/AMD/Lib $LDFLAGS"
+ fi
AC_CHECK_LIB(amd, amd_info)
AC_CHECK_LIB(umfpack, umfpack_di_defaults)
AC_CHECK_FILE($1/UMFPACK/Include/umfpack.h,
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
LDFLAGS=$OLD_LDFLAGS
- LD_PATH_OPTION="-L"
+ LD_PATH_OPTION="no"
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
withval="$with_umfpack"
if test "x$withval" != "xyes" ; then
- LDFLAGS="$LD_PATH_OPTION$withval/UMFPACK/Lib $LD_PATH_OPTION$withval/AMD/Lib $LDFLAGS"
+ LDFLAGS="-L$withval/UMFPACK/Lib -L$withval/AMD/Lib $LDFLAGS"
+ if test "$LD_PATH_OPTION" != "no"; then
+ LDFLAGS = "$LD_PATH_OPTION$withval/UMFPACK/Lib $LD_PATH_OPTION$withval/AMD/Lib $LDFLAGS"
+ fi
echo "$as_me:$LINENO: checking for amd_info in -lamd" >&5
echo $ECHO_N "checking for amd_info in -lamd... $ECHO_C" >&6