Newer
Older
Emmanuel Bertin
committed
if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin
committed
LIBS="$FFTW_LIBS $LIBS"
if test "$FFTW_WARN" != ""; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FFTW_WARN" >&5
$as_echo "$as_me: WARNING: $FFTW_WARN" >&2;}
fi
else
Emmanuel Bertin
committed
as_fn_error $? "$FFTW_ERROR Exiting." "$LINENO" 5
fi
Emmanuel Bertin
committed
################## handle the ATLAS library(linear algebra) ##################
Emmanuel Bertin
committed
acx_atlas_ok=no
if test x$with_atlas_incdir = x; then
if test x$with_atlas_libdir = x; then
for ac_header in cblas.h clapack.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
acx_atlas_ok=yes
fi
Emmanuel Bertin
committed
done
Emmanuel Bertin
committed
if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin
committed
$as_echo "#define ATLAS_BLAS_H \"cblas.h\"" >>confdefs.h
Emmanuel Bertin
committed
$as_echo "#define ATLAS_LAPACK_H \"clapack.h\"" >>confdefs.h
Emmanuel Bertin
committed
else
for ac_header in atlas/cblas.h atlas/clapack.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
acx_atlas_ok=yes
fi
Emmanuel Bertin
committed
done
Emmanuel Bertin
committed
if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin
committed
$as_echo "#define ATLAS_BLAS_H \"atlas/cblas.h\"" >>confdefs.h
Emmanuel Bertin
committed
$as_echo "#define ATLAS_LAPACK_H \"atlas/clapack.h\"" >>confdefs.h
Emmanuel Bertin
committed
else
atlas_def=/usr/local/atlas
for ac_header in $atlas_def/include/cblas.h $atlas_def/include/clapack.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
acx_atlas_ok=yes
fi
Emmanuel Bertin
committed
done
Emmanuel Bertin
committed
if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin
committed
cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "$atlas_def/include/cblas.h"
_ACEOF
Emmanuel Bertin
committed
cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "$atlas_def/include/clapack.h"
_ACEOF
Emmanuel Bertin
committed
else
atlas_def=/usr/atlas
for ac_header in $atlas_def/include/cblas.h $atlas_def/include/clapack.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
acx_atlas_ok=yes
fi
Emmanuel Bertin
committed
done
Emmanuel Bertin
committed
if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin
committed
cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "$atlas_def/include/cblas.h"
_ACEOF
Emmanuel Bertin
committed
cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "$atlas_def/include/clapack.h"
_ACEOF
Emmanuel Bertin
committed
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
else
ATLAS_ERROR="CBLAS/LAPack include files not found!"
fi
fi
fi
fi
else
for ac_header in $with_atlas_libdir/include/cblas.h $with_atlas_libdir/include/clapack.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
acx_atlas_ok=yes
fi
Emmanuel Bertin
committed
done
Emmanuel Bertin
committed
if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin
committed
cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "$with_atlas_libdir/include/cblas.h"
_ACEOF
Emmanuel Bertin
committed
cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "$with_atlas_libdir/include/clapack.h"
_ACEOF
Emmanuel Bertin
committed
else
for ac_header in cblas.h clapack.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
acx_atlas_ok=yes
fi
Emmanuel Bertin
committed
done
Emmanuel Bertin
committed
if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin
committed
cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "cblas.h"
_ACEOF
Emmanuel Bertin
committed
cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "clapack.h"
_ACEOF
Emmanuel Bertin
committed
else
ATLAS_ERROR="CBLAS/LAPack include files not found in $with_atlas_libdir/include!"
fi
fi
fi
else
for ac_header in $with_atlas_incdir/cblas.h $with_atlas_incdir/clapack.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
acx_atlas_ok=yes
fi
Emmanuel Bertin
committed
done
Emmanuel Bertin
committed
if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin
committed
cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "$with_atlas_incdir/cblas.h"
_ACEOF
Emmanuel Bertin
committed
cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "$with_atlas_incdir/clapack.h"
_ACEOF
Emmanuel Bertin
committed
else
ATLAS_ERROR="CBLAS/LAPack include files not found in $with_atlas_incdir!"
fi
fi
Emmanuel Bertin
committed
if test x$acx_atlas_ok = xyes; then
OLIBS="$LIBS"
LIBS=""
if test x$with_atlas_libdir = x; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Emmanuel Bertin
committed
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char clapack_dpotrf ();
int
main ()
{
return clapack_dpotrf ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_lapack_clapack_dpotrf=yes
else
ac_cv_lib_lapack_clapack_dpotrf=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF
Emmanuel Bertin
committed
LIBS="-llapack $LIBS"
Emmanuel Bertin
committed
acx_atlas_ok=no
Emmanuel Bertin
committed
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Emmanuel Bertin
committed
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
int
main ()
{
return cblas_dgemm ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_cblas_cblas_dgemm=yes
else
ac_cv_lib_cblas_cblas_dgemm=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
_ACEOF
Emmanuel Bertin
committed
LIBS="-lcblas $LIBS"
Emmanuel Bertin
committed
else
acx_atlas_ok=no
fi
Emmanuel Bertin
committed
if test x$acx_atlas_ok = xyes; then
ATLAS_LIBPATH=""
else
atlas_def=/usr/local/atlas
unset ac_cv_lib_lapack_clapack_dpotrf
unset ac_cv_lib_cblas_cblas_dgemm
acx_atlas_ok=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def/lib -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Emmanuel Bertin
committed
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char clapack_dpotrf ();
int
main ()
{
return clapack_dpotrf ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_lapack_clapack_dpotrf=yes
else
ac_cv_lib_lapack_clapack_dpotrf=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF
Emmanuel Bertin
committed
LIBS="-llapack $LIBS"
Emmanuel Bertin
committed
else
acx_atlas_ok=no
fi
Emmanuel Bertin
committed
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def/lib -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Emmanuel Bertin
committed
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
int
main ()
{
return cblas_dgemm ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_cblas_cblas_dgemm=yes
else
ac_cv_lib_cblas_cblas_dgemm=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
_ACEOF
Emmanuel Bertin
committed
LIBS="-lcblas $LIBS"
Emmanuel Bertin
committed
else
acx_atlas_ok=no
fi
Emmanuel Bertin
committed
if test x$acx_atlas_ok = xyes; then
ATLAS_LIBPATH="-L$atlas_def/lib"
else
atlas_def=/usr/lib64/atlas
unset ac_cv_lib_lapack_clapack_dpotrf
unset ac_cv_lib_cblas_cblas_dgemm
acx_atlas_ok=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Emmanuel Bertin
committed
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char clapack_dpotrf ();
int
main ()
{
return clapack_dpotrf ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_lapack_clapack_dpotrf=yes
else
ac_cv_lib_lapack_clapack_dpotrf=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF
Emmanuel Bertin
committed
LIBS="-llapack $LIBS"
Emmanuel Bertin
committed
else
acx_atlas_ok=no
fi
Emmanuel Bertin
committed
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Emmanuel Bertin
committed
Emmanuel Bertin
committed
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
int
main ()
{
return cblas_dgemm ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_cblas_cblas_dgemm=yes
else
ac_cv_lib_cblas_cblas_dgemm=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
_ACEOF
Emmanuel Bertin
committed
Emmanuel Bertin
committed
LIBS="-lcblas $LIBS"
Emmanuel Bertin
committed
else
acx_atlas_ok=no
fi
Emmanuel Bertin
committed
Emmanuel Bertin
committed
if test x$acx_atlas_ok = xyes; then
ATLAS_LIBPATH="-L$atlas_def"
else
atlas_def=/usr/lib/atlas
unset ac_cv_lib_lapack_clapack_dpotrf
unset ac_cv_lib_cblas_cblas_dgemm
acx_atlas_ok=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Emmanuel Bertin
committed
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char clapack_dpotrf ();
int
main ()
{
return clapack_dpotrf ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_lapack_clapack_dpotrf=yes
else
ac_cv_lib_lapack_clapack_dpotrf=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF
Emmanuel Bertin
committed
LIBS="-llapack $LIBS"
Emmanuel Bertin
committed
else
acx_atlas_ok=no
fi
Emmanuel Bertin
committed
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Emmanuel Bertin
committed
Emmanuel Bertin
committed
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
int
main ()
{
return cblas_dgemm ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_cblas_cblas_dgemm=yes
else
ac_cv_lib_cblas_cblas_dgemm=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
_ACEOF
Emmanuel Bertin
committed
Emmanuel Bertin
committed
LIBS="-lcblas $LIBS"
Emmanuel Bertin
committed
else
acx_atlas_ok=no
fi
Emmanuel Bertin
committed
Emmanuel Bertin
committed
if test x$acx_atlas_ok = xyes; then
ATLAS_LIBPATH="-L$atlas_def"
else
atlas_def=/usr/atlas
unset ac_cv_lib_lapack_clapack_dpotrf
unset ac_cv_lib_cblas_cblas_dgemm
acx_atlas_ok=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def/lib -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Emmanuel Bertin
committed
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char clapack_dpotrf ();
int
main ()
{
return clapack_dpotrf ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_lapack_clapack_dpotrf=yes
else
ac_cv_lib_lapack_clapack_dpotrf=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF
Emmanuel Bertin
committed
LIBS="-llapack $LIBS"
Emmanuel Bertin
committed
else
acx_atlas_ok=no
fi
Emmanuel Bertin
committed
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def/lib -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Emmanuel Bertin
committed
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
int
main ()
{
return cblas_dgemm ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_cblas_cblas_dgemm=yes
else
ac_cv_lib_cblas_cblas_dgemm=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
_ACEOF
Emmanuel Bertin
committed
LIBS="-lcblas $LIBS"
Emmanuel Bertin
committed
else
acx_atlas_ok=no
fi
Emmanuel Bertin
committed
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
if test x$acx_atlas_ok = xyes; then
ATLAS_LIBPATH="-L$atlas_def/lib"
else
ATLAS_ERROR="CBLAS/LAPack library files not found at usual locations!"
fi
fi
fi
fi
fi
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$with_atlas_libdir -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Emmanuel Bertin
committed
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char clapack_dpotrf ();
int
main ()
{
return clapack_dpotrf ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_lapack_clapack_dpotrf=yes
else
ac_cv_lib_lapack_clapack_dpotrf=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF
Emmanuel Bertin
committed
LIBS="-llapack $LIBS"
Emmanuel Bertin
committed
else
acx_atlas_ok=no
fi
Emmanuel Bertin
committed
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$with_atlas_libdir -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Emmanuel Bertin
committed
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
int
main ()
{
return cblas_dgemm ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin
committed
ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin
committed
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin
committed
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
_ACEOF
Emmanuel Bertin
committed
LIBS="-lcblas $LIBS"
Emmanuel Bertin
committed
else
acx_atlas_ok=no
fi
Emmanuel Bertin
committed
if test x$acx_atlas_ok = xyes; then
ATLAS_LIBPATH="-L$with_atlas_libdir"
else
unset ac_cv_lib_lapack_clapack_dpotrf
unset ac_cv_lib_cblas_cblas_dgemm
acx_atlas_ok=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
Emmanuel Bertin
committed
LIBS="-llapack -L$with_atlas_libdir/lib -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
Emmanuel Bertin
committed
char clapack_dpotrf ();
Emmanuel Bertin
committed
return clapack_dpotrf ();
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin
committed
ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin
committed
ac_cv_lib_lapack_clapack_dpotrf=no
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin
committed
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
Emmanuel Bertin
committed
#define HAVE_LIBLAPACK 1
Emmanuel Bertin
committed
LIBS="-llapack $LIBS"
Emmanuel Bertin
committed
else
acx_atlas_ok=no
Emmanuel Bertin
committed
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
Emmanuel Bertin
committed
$as_echo_n "(cached) " >&6
Emmanuel Bertin
committed
ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$with_atlas_libdir/lib -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin
committed
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
Emmanuel Bertin
committed
return cblas_dgemm ();
Emmanuel Bertin
committed
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin
committed
ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin
committed
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin
committed
LIBS="-lcblas $LIBS"
Emmanuel Bertin
committed
acx_atlas_ok=no
Emmanuel Bertin
committed
if test x$acx_atlas_ok = xyes; then
ATLAS_LIBPATH="-L$with_atlas_libdir/lib"
else
ATLAS_ERROR="CBLAS/LAPack library files not found in $with_atlas_libdir!"
fi
fi
fi
LIBS="$OLIBS"
Emmanuel Bertin
committed
if test x"$acx_atlas_ok" = xyes; then
Emmanuel Bertin
committed
Emmanuel Bertin
committed
$as_echo "#define HAVE_ATLAS 1" >>confdefs.h
if test x$use_pthreads = xyes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lptcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lptcblas... " >&6; }
if ${ac_cv_lib_ptcblas_cblas_dgemm+:} false; then :
$as_echo_n "(cached) " >&6
Emmanuel Bertin
committed
ac_check_lib_save_LIBS=$LIBS
LIBS="-lptcblas $ATLAS_LIBPATH -lcblas -latlas -lm $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin
committed
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
Emmanuel Bertin
committed
return cblas_dgemm ();
;
Emmanuel Bertin
committed
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_ptcblas_cblas_dgemm=yes
Emmanuel Bertin
committed
ac_cv_lib_ptcblas_cblas_dgemm=no
Emmanuel Bertin
committed
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin
committed
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ptcblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_ptcblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_ptcblas_cblas_dgemm" = xyes; then :
acx_atlast_ok=yes
else
acx_atlast_ok=no
Emmanuel Bertin
committed
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
if test x$acx_atlast_ok = xyes; then
ATLAS_LIBS="$ATLAS_LIBPATH -llapack -lptcblas -lcblas -latlas"
LIBS="$OLIBS"
$as_echo "#define HAVE_ATLAS_MP 1" >>confdefs.h
LIBS="$ATLAS_LIBS $LIBS"
if test "$ATLAS_WARN" != ""; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ATLAS_WARN" >&5
$as_echo "$as_me: WARNING: $ATLAS_WARN" >&2;}
fi
else
ATLAS_LIBS="$ATLAS_LIBPATH -llapack -lcblas -latlas"
LIBS="$OLIBS"
ATLAS_WARN="CBLAS/LAPack was compiled without multithreading support!"
LIBS="$ATLAS_LIBS $LIBS"
if test "$ATLAS_WARN" != ""; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ATLAS_WARN" >&5
$as_echo "$as_me: WARNING: $ATLAS_WARN" >&2;}
fi
fi
else
ATLAS_LIBS="$ATLAS_LIBPATH -llapack -lcblas -latlas"
LIBS="$OLIBS"