configure 904 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27001
27002
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27003
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27004
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27005

27006
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27007
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27008
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27009
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27010
fi
27011
27012
27013
{ $as_echo "$as_me:$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" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27014
  cat >>confdefs.h <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27015
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27016
27017
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27018
27019
  LIBS="-llapack $LIBS"

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27020
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27021
27022
27023
27024
  acx_atlas_ok=no
fi


27025
27026
{ $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27027
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27028
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27029
27030
else
  ac_check_lib_save_LIBS=$LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27031
LIBS="-lcblas -L$atlas_def -latlas -lm $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27032
27033
27034
27035
27036
27037
27038
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27039
27040
27041
/* 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.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27042
27043
27044
#ifdef __cplusplus
extern "C"
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27045
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27046
27047
27048
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27049
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27050
27051
27052
27053
27054
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27055
27056
27057
27058
27059
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27060
27061
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27062
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27063
27064
27065
27066
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27067
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27068
27069
27070
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27071
27072
27073
27074
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27075
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27076
else
27077
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27078
27079
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27080
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27081
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27082

27083
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27084
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27085
27086
27087
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27088
27089
27090
{ $as_echo "$as_me:$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" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27091
27092
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27093
27094
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27095
  LIBS="-lcblas $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27096

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27097
27098
else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27099
27100
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27101
27102
27103
27104
27105
27106
27107
        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
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27108

27109
27110
{ $as_echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27111
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
27112
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27113
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27114
27115
27116
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27117
27118
27119
27120
27121
27122
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27123
27124
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27125
27126
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27127
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27128
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27129
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27130
27131
27132
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27133
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27134
27135
27136
27137
27138
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27139
27140
27141
27142
27143
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27144
27145
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27146
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27147
27148
27149
27150
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27151
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27152
27153
27154
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27155
27156
27157
27158
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27159
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27160
else
27161
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27162
27163
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27164
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27165
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27166

27167
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27168
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27169
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27170
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27171
fi
27172
27173
27174
{ $as_echo "$as_me:$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" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27175
  cat >>confdefs.h <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27176
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27177
27178
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27179
  LIBS="-llapack $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27180

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27181
27182
27183
else
  acx_atlas_ok=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27184
27185


27186
27187
{ $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27188
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27189
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27190
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27191
27192
27193
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27194
27195
27196
27197
27198
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27199
27200
27201
27202
27203
27204
27205
27206

/* 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's avatar
Emmanuel Bertin committed
27207
27208
27209
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27210
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27211
27212
27213
27214
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27215
27216
27217
27218
27219
27220
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27221
27222
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27223
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27224
27225
27226
27227
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27228
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27229
27230
27231
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27232
27233
27234
27235
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27236
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27237
else
27238
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27239
27240
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27241
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27242
27243
fi

27244
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27245
27246
27247
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27248
fi
27249
27250
27251
{ $as_echo "$as_me:$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" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27252
27253
27254
27255
27256
27257
27258
27259
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
_ACEOF

  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27260
27261
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27262
27263
27264
27265
27266
27267
27268
27269
          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

27270
27271
{ $as_echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27272
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
27273
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27274
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27275
27276
27277
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def/lib -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27278
27279
27280
27281
27282
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27283
27284
27285
27286
27287
27288
27289
27290

/* 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 ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27291
27292
27293
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27294
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27295
27296
27297
27298
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27299
27300
27301
27302
27303
27304
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27305
27306
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27307
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27308
27309
27310
27311
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27312
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27313
27314
27315
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27316
27317
27318
27319
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27320
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27321
else
27322
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27323
27324
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27325
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27326
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27327

27328
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27329
27330
27331
27332
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27333
27334
27335
{ $as_echo "$as_me:$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" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


27347
27348
{ $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27349
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27350
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27351
27352
27353
27354
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def/lib -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27355
27356
27357
27358
27359
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27360
27361
27362
27363
27364
27365
27366
27367

/* 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's avatar
Emmanuel Bertin committed
27368
27369
27370
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27371
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27372
27373
27374
27375
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27376
27377
27378
27379
27380
27381
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27382
27383
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27384
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27385
27386
27387
27388
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27389
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27390
27391
27392
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27393
27394
27395
27396
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27397
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27398
else
27399
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27400
27401
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27402
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27403
27404
fi

27405
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27406
27407
27408
27409
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27410
27411
27412
{ $as_echo "$as_me:$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" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27413
27414
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27415
27416
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27417
27418
27419
27420
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27421
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433

            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

27434
27435
{ $as_echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27436
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
27437
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27438
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27439
27440
27441
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_libdir -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27442
27443
27444
27445
27446
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27447
27448
27449
27450
27451
27452
27453
27454

/* 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 ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27455
27456
27457
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27458
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27459
27460
27461
27462
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27463
27464
27465
27466
27467
27468
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27469
27470
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27471
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27472
27473
27474
27475
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27476
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27477
27478
27479
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27480
27481
27482
27483
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27484
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27485
else
27486
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27487
27488
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27489
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27490
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27491

27492
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27493
27494
27495
27496
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27497
27498
27499
{ $as_echo "$as_me:$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" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
27510
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


27511
27512
{ $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27513
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27514
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27515
27516
27517
27518
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_libdir -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27519
27520
27521
27522
27523
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27524
27525
27526
27527
27528
27529
27530
27531

/* 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's avatar
Emmanuel Bertin committed
27532
27533
27534
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27535
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27536
27537
27538
27539
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27540
27541
27542
27543
27544
27545
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27546
27547
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27548
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27549
27550
27551
27552
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27553
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27554
27555
27556
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27557
27558
27559
27560
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27561
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27562
else
27563
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27564
27565
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27566
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27567
27568
fi

27569
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27570
27571
27572
27573
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27574
27575
27576
{ $as_echo "$as_me:$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" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27577
27578
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27579
27580
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27581
27582
27583
27584
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27585
27586
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27587
27588
27589
27590
27591
27592
27593
    if test x$acx_atlas_ok = xyes; then
      ATLAS_LIBPATH="-L$atlas_libdir"
    else
      unset ac_cv_lib_lapack_clapack_dpotrf
      unset ac_cv_lib_cblas_cblas_dgemm
      acx_atlas_ok=yes

27594
27595
{ $as_echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27596
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
27597
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27598
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27599
27600
27601
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_libdir/lib -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27602
27603
27604
27605
27606
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27607
27608
27609
27610
27611
27612
27613
27614

/* 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 ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27615
27616
27617
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27618
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27619
27620
27621
27622
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27623
27624
27625
27626
27627
27628
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27629
27630
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27631
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27632
27633
27634
27635
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27636
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27637
27638
27639
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27640
27641
27642
27643
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27644
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27645
else
27646
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27647
27648
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27649
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27650
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27651

27652
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27653
27654
27655
27656
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27657
27658
27659
{ $as_echo "$as_me:$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" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


27671
27672
{ $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27673
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
27674
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27675
27676
27677
27678
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_libdir/lib -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27679
27680
27681
27682
27683
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27684
27685
27686
27687
27688
27689
27690
27691

/* 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's avatar
Emmanuel Bertin committed
27692
27693
27694
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27695
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27696
27697
27698
27699
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27700
27701
27702
27703
27704
27705
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27706
27707
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27708
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27709
27710
27711
27712
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27713
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27714
27715
27716
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27717
27718
27719
27720
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27721
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27722
else
27723
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27724
27725
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27726
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27727
27728
fi

27729
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27730
27731
27732
27733
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
27734
27735
27736
{ $as_echo "$as_me:$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" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27737
27738
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27739
27740
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27741
27742
27743
27744
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27745
27746
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
      if test x$acx_atlas_ok = xyes; then
        ATLAS_LIBPATH="-L$atlas_libdir/lib"
      else
        ATLAS_ERROR="CBLAS/LAPack library files not found in $atlas_libdir!"
      fi
    fi
  fi
  LIBS="$OLIBS"
fi




if test x"$acx_atlas_ok" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_ATLAS 1
_ACEOF

  if test x$use_pthreads = xyes; then
27767
27768
    { $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lptcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lptcblas... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27769
if test "${ac_cv_lib_ptcblas_cblas_dgemm+set}" = set; then
27770
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27771
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27772
27773
27774
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lptcblas $ATLAS_LIBPATH -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27775
27776
27777
27778
27779
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27780
27781
27782
27783
27784
27785
27786
27787

/* 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's avatar
Emmanuel Bertin committed
27788
27789
27790
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27791
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27792
27793
27794
27795
27796
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27797
27798
27799
27800
27801
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
27802
27803
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27804
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27805
27806
27807
27808
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
27809
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27810
27811
27812
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
27813
27814
27815
27816
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27817
  ac_cv_lib_ptcblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27818
else
27819
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27820
27821
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27822
	ac_cv_lib_ptcblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27823
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27824

27825
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27826
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27827
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27828
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27829
fi
27830
27831
27832
27833
{ $as_echo "$as_me:$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" = x""yes; then
  acx_atlast_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27834
else
27835
  acx_atlast_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27836
27837
fi

27838
    if test x$acx_atlast_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27839
27840
      ATLAS_LIB="$ATLAS_LIBPATH -llapack -lptcblas -lcblas -latlas"
      LIBS="$OLIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27841
27842


Emmanuel Bertin's avatar
Emmanuel Bertin committed
27843
27844
cat >>confdefs.h <<\_ACEOF
#define HAVE_ATLAS_MP 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27845
27846
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27847
27848
      use_atlas=yes
    else
27849
27850
27851
27852
      ATLAS_LIB="$ATLAS_LIBPATH -llapack -lcblas -latlas"
      LIBS="$OLIBS"

      ATLAS_WARN="CBLAS/LAPack was compiled without multithreading support!"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27853

27854
      use_atlas=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
    fi
  else
    ATLAS_LIB="$ATLAS_LIBPATH -llapack -lcblas -latlas"
    LIBS="$OLIBS"

    use_atlas=yes
  fi
else

  use_atlas=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27866

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27867

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27868
27869
if test "$use_atlas" = "yes"; then
  LIBS="$ATLAS_LIB $LIBS"
27870
27871
27872
27873
  if test "$ATLAS_WARN" != ""; then
    { $as_echo "$as_me:$LINENO: WARNING: $ATLAS_WARN" >&5
$as_echo "$as_me: WARNING: $ATLAS_WARN" >&2;}
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27874
else
27875
27876
  { { $as_echo "$as_me:$LINENO: error: $ATLAS_ERROR Exiting." >&5
$as_echo "$as_me: error: $ATLAS_ERROR Exiting." >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27877
   { (exit 1); exit 1; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27878
27879
27880
fi

# Link with gprof option
27881
27882
if test "$enable_gprof" = "yes"; then
  if test "$enable_icc" = "yes"; then
27883
    AM_CFLAGS="$AM_CFLAGS -pq"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27884
  else
27885
    AM_CFLAGS="$AM_CFLAGS -pg"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27886
  fi
27887
  enable_best_link="no"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27888
27889
fi

27890
# "Best" linking option
27891
if test "$enable_best_link" = "yes"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27892
  AM_LDFLAGS="-shared-libgcc -static-libtool-libs $AM_LDFLAGS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27893
27894
fi

27895
27896
27897



Emmanuel Bertin's avatar
Emmanuel Bertin committed
27898
27899

# Display compiler and linker flags
27900
27901
{ $as_echo "$as_me:$LINENO: result: ***************************************************************" >&5
$as_echo "***************************************************************" >&6; }
27902
27903
27904
27905
{ $as_echo "$as_me:$LINENO: result: Compile cmdline:  $CC $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS" >&5
$as_echo "Compile cmdline:  $CC $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS" >&6; }
{ $as_echo "$as_me:$LINENO: result: Link    cmdline:  $CC $AM_LDFLAGS $LDFLAGS $LIBS" >&5
$as_echo "Link    cmdline:  $CC $AM_LDFLAGS $LDFLAGS $LIBS" >&6; }
27906
27907
27908
27909
{ $as_echo "$as_me:$LINENO: result: Default XSLT URL: $xsl_url" >&5
$as_echo "Default XSLT URL: $xsl_url" >&6; }
{ $as_echo "$as_me:$LINENO: result: ***************************************************************" >&5
$as_echo "***************************************************************" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27910

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27911
ac_config_files="$ac_config_files Makefile src/Makefile src/fits/Makefile src/levmar/Makefile src/wcs/Makefile man/Makefile tests/Makefile sextractor.spec man/sex.1"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924



test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27925
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27926
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27927
27928
27929
27930
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27931
27932
27933
27934
27935
27936
27937
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27938
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27939
Usually this means the macro was only invoked conditionally." >&5
27940
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27941
27942
27943
27944
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27945
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27946
Usually this means the macro was only invoked conditionally." >&5
27947
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27948
27949
27950
27951
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27952
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27953
Usually this means the macro was only invoked conditionally." >&5
27954
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27955
27956
27957
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27958
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27959
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27960
Usually this means the macro was only invoked conditionally." >&5
27961
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27962
27963
27964
27965
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${USE_THREADS_TRUE}" && test -z "${USE_THREADS_FALSE}"; then
27966
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_THREADS\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27967
Usually this means the macro was only invoked conditionally." >&5
27968
$as_echo "$as_me: error: conditional \"USE_THREADS\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27969
27970
27971
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27972
27973

: ${CONFIG_STATUS=./config.status}
27974
ac_write_fail=0
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27975
27976
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27977
27978
27979
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27980
27981
27982
27983
27984
27985
27986
27987
27988
27989
27990
27991
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF

27992
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27993
27994
27995
27996
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

Emmanuel Bertin's avatar
Emmanuel Bertin committed
27997
27998
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
Emmanuel Bertin's avatar
Emmanuel Bertin committed
27999
28000
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
For faster browsing, not all history is shown. View entire blame