Revisão | e7fe1e055f9e1918b1020a68d2690bd66428e299 (tree) |
---|---|
Hora | 2013-01-02 03:44:50 |
Autor | Katsuhiko Nishimra <ktns.87@gmai...> |
Commiter | Katsuhiko Nishimra |
Revert "Remove duplicate CPP/LDFLAGS addition. #28588"
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/branches/automake@1228 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -76,9 +76,11 @@ AC_ARG_WITH([openblas], | ||
76 | 76 | OPENBLAS_ROOT=], |
77 | 77 | [no],[OPENBLAS_ROOT=], |
78 | 78 | [AS_IF([test -d $withval], |
79 | - [AC_MSG_NOTICE([Using OpenBLAS under `$withval'.])] | |
80 | - [BLAS_LIBS=-lopenblas] | |
81 | - [OPENBLAS_ROOT=$withval], | |
79 | + [AC_MSG_NOTICE([Using OpenBLAS under `$withval'.]) | |
80 | + BLAS_LIBS=-lopenblas | |
81 | + OPENBLAS_ROOT=$withval | |
82 | + CPPFLAGS="$CPPFLAGS -I$OPENBLAS_ROOT/include" | |
83 | + LDFLAGS="$LDFLAGS -L$OPENBLAS_ROOT/lib"], | |
82 | 84 | [AC_MSG_FAILURE([Cannot find directory `$withval'!])])])], |
83 | 85 | [OPENBLAS_ROOT=]) |
84 | 86 | AM_CONDITIONAL([USE_OPENBLAS_DIR], [test x != x$OPENBLAS_ROOT]) |