Skip to content

Commit

Permalink
debug 3
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason committed Aug 30, 2024
1 parent 964000f commit fe6200d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
18 changes: 7 additions & 11 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -13809,13 +13809,13 @@ then :
blas_ok=yes
else $as_nop

as_fn_error $? "*** Unable to link to BLAS library with \"$BLASLIB\"." "$LINENO" 5


fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
conftest$ac_exeext conftest.$ac_ext
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $blas_ok" >&5
printf "%s\n" "$blas_ok" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linking to BLAS sgemm" >&5
printf %s "checking for linking to BLAS sgemm... " >&6; }
Expand All @@ -13833,13 +13833,11 @@ _ACEOF
if ac_fn_c_try_link "$LINENO"
then :
blas_ok=yes;
else $as_nop
as_fn_error $? "*** Unable to link to BLAS sgemm library with \"$BLASLIB\"." "$LINENO" 5
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
conftest$ac_exeext conftest.$ac_ext
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $blas_ok" >&5
printf "%s\n" "$blas_ok" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linking to BLAS cblas_dgemm" >&5
printf %s "checking for linking to BLAS cblas_dgemm... " >&6; }
Expand All @@ -13857,13 +13855,11 @@ _ACEOF
if ac_fn_c_try_link "$LINENO"
then :
blas_ok=yes;
else $as_nop
as_fn_error $? "*** Unable to link to BLAS cblas_dgemm library with \"$BLASLIB\"." "$LINENO" 5
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
conftest$ac_exeext conftest.$ac_ext
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $blas_ok" >&5
printf "%s\n" "$blas_ok" >&6; }

CFLAGS="$save_CFLAGS"
LDFLAGS="$save_LDFLAGS"
Expand Down
17 changes: 11 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1623,20 +1623,25 @@ if test -n "$USE_BLAS"; then
AC_MSG_ERROR([*** Unable to find "cblas.h" with "$CFLAGS".]))

AC_MSG_CHECKING([for linking to BLAS])
dnl AC_LINK_IFELSE([AC_LANG_PROGRAM(
dnl [[char cblas_dgemm();]], [[return cblas_dgemm();]])],
dnl [blas_ok=yes] , [
dnl AC_MSG_ERROR([*** Unable to link to BLAS library with "$BLASLIB".])
dnl ])
AC_LINK_IFELSE([AC_LANG_PROGRAM(
[[char cblas_dgemm();]], [[return cblas_dgemm();]])],
[blas_ok=yes] , [
AC_MSG_ERROR([*** Unable to link to BLAS library with "$BLASLIB".])
[]
])
AC_MSG_RESULT(yes)
AC_MSG_RESULT($blas_ok)

AC_MSG_CHECKING([for linking to BLAS sgemm])
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[sgemm]])],[blas_ok=yes;], AC_MSG_ERROR([*** Unable to link to BLAS sgemm library with "$BLASLIB".]))
AC_MSG_RESULT(yes)
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[sgemm]])],[blas_ok=yes;], [])
AC_MSG_RESULT([$blas_ok])

AC_MSG_CHECKING([for linking to BLAS cblas_dgemm])
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[cblas_dgemm]])],[blas_ok=yes;], AC_MSG_ERROR([*** Unable to link to BLAS cblas_dgemm library with "$BLASLIB".]))
AC_MSG_RESULT(yes)
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[cblas_dgemm]])],[blas_ok=yes;], [])
AC_MSG_RESULT([$blas_ok])

CFLAGS="$save_CFLAGS"
LDFLAGS="$save_LDFLAGS"
Expand Down

0 comments on commit fe6200d

Please sign in to comment.