configure 876 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26001
26002
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26003
26004
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26005
  LIBS="-lcblas $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26006

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26007
26008
26009
else
  acx_atlas_ok=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26010

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26011
26012
26013
26014
26015
26016
26017
26018
      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

26019
26020
{ echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
echo $ECHO_N "checking for clapack_dpotrf in -llapack... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26021
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
26022
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26023
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26024
26025
26026
  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
26027
26028
26029
26030
26031
26032
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26033
26034
/* 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
26035
26036
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26037
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26038
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26039
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26040
26041
26042
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26043
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26044
26045
26046
26047
26048
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26049
26050
26051
26052
26053
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26054
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26055
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26056
26057
26058
26059
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26061
26062
26063
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26064
26065
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26066
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26067
else
26068
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26069
26070
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26071
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26072
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26073
26074

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26075
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26076
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26077
fi
26078
26079
26080
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
echo "${ECHO_T}$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test $ac_cv_lib_lapack_clapack_dpotrf = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26081
  cat >>confdefs.h <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26082
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26083
26084
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26085
26086
  LIBS="-llapack $LIBS"

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26087
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26088
26089
26090
26091
  acx_atlas_ok=no
fi


26092
26093
{ echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26094
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
26095
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26096
26097
else
  ac_check_lib_save_LIBS=$LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26098
LIBS="-lcblas -L$atlas_def -latlas -lm $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26099
26100
26101
26102
26103
26104
26105
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
26106
26107
26108
/* 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
26109
26110
26111
#ifdef __cplusplus
extern "C"
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26112
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26113
26114
26115
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26116
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26117
26118
26119
26120
26121
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26122
26123
26124
26125
26126
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26128
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26129
26130
26131
26132
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26134
26135
26136
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26137
26138
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26139
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26140
else
26141
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26142
26143
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26144
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26145
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26146
26147

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26148
26149
26150
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
26151
26152
26153
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
echo "${ECHO_T}$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test $ac_cv_lib_cblas_cblas_dgemm = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26154
26155
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26156
26157
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26158
  LIBS="-lcblas $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26159

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26160
26161
else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26162
26163
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26164
26165
26166
26167
26168
26169
26170
        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
26171

26172
26173
{ echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
echo $ECHO_N "checking for clapack_dpotrf in -llapack... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26174
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
26175
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26176
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26177
26178
26179
  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
26180
26181
26182
26183
26184
26185
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26186
26187
/* 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
26188
26189
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26190
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26191
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26192
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26193
26194
26195
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26196
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26197
26198
26199
26200
26201
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26202
26203
26204
26205
26206
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26207
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26208
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26209
26210
26211
26212
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26214
26215
26216
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26217
26218
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26219
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26220
else
26221
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26222
26223
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26224
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26225
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26226
26227

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26228
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26229
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26230
fi
26231
26232
26233
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
echo "${ECHO_T}$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test $ac_cv_lib_lapack_clapack_dpotrf = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26234
  cat >>confdefs.h <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26235
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26236
26237
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26238
  LIBS="-llapack $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26239

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26240
26241
26242
else
  acx_atlas_ok=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26243
26244


26245
26246
{ echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26247
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
26248
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26249
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26250
26251
26252
  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
26253
26254
26255
26256
26257
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26258
26259
26260
26261
26262
26263
26264
26265

/* 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
26266
26267
26268
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26269
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26270
26271
26272
26273
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26274
26275
26276
26277
26278
26279
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
26280
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26281
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26282
26283
26284
26285
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26287
26288
26289
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26290
26291
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26292
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26293
else
26294
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26295
26296
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26297
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26298
26299
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26300
26301
26302
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
26303
fi
26304
26305
26306
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
echo "${ECHO_T}$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test $ac_cv_lib_cblas_cblas_dgemm = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26307
26308
26309
26310
26311
26312
26313
26314
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
_ACEOF

  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26315
26316
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26317
26318
26319
26320
26321
26322
26323
26324
          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

26325
26326
{ echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
echo $ECHO_N "checking for clapack_dpotrf in -llapack... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26327
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
26328
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26329
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26330
26331
26332
  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
26333
26334
26335
26336
26337
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26338
26339
26340
26341
26342
26343
26344
26345

/* 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
26346
26347
26348
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26349
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26350
26351
26352
26353
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26354
26355
26356
26357
26358
26359
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
26360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26361
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26362
26363
26364
26365
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26367
26368
26369
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26370
26371
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26372
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26373
else
26374
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26375
26376
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26377
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26378
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26379
26380
26381
26382
26383

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
26384
26385
26386
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
echo "${ECHO_T}$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test $ac_cv_lib_lapack_clapack_dpotrf = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


26398
26399
{ echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26400
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
26401
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26402
26403
26404
26405
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
26406
26407
26408
26409
26410
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26411
26412
26413
26414
26415
26416
26417
26418

/* 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
26419
26420
26421
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26422
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26423
26424
26425
26426
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26427
26428
26429
26430
26431
26432
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
26433
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26434
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26435
26436
26437
26438
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26440
26441
26442
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26443
26444
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26445
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26446
else
26447
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26448
26449
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26450
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26451
26452
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26453
26454
26455
26456
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
26457
26458
26459
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
echo "${ECHO_T}$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test $ac_cv_lib_cblas_cblas_dgemm = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26460
26461
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26462
26463
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26464
26465
26466
26467
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26468
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26469
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480

            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

26481
26482
{ echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
echo $ECHO_N "checking for clapack_dpotrf in -llapack... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26483
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
26484
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26485
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26486
26487
26488
  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
26489
26490
26491
26492
26493
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26494
26495
26496
26497
26498
26499
26500
26501

/* 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
26502
26503
26504
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26505
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26506
26507
26508
26509
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26510
26511
26512
26513
26514
26515
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
26516
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26517
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26518
26519
26520
26521
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26523
26524
26525
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26526
26527
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26528
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26529
else
26530
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26531
26532
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26533
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26534
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26535
26536
26537
26538
26539

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
26540
26541
26542
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
echo "${ECHO_T}$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test $ac_cv_lib_lapack_clapack_dpotrf = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


26554
26555
{ echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26556
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
26557
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26558
26559
26560
26561
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
26562
26563
26564
26565
26566
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26567
26568
26569
26570
26571
26572
26573
26574

/* 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
26575
26576
26577
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26578
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26579
26580
26581
26582
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26583
26584
26585
26586
26587
26588
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
26589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26590
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26591
26592
26593
26594
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26596
26597
26598
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26599
26600
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26601
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26602
else
26603
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26604
26605
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26606
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26607
26608
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26609
26610
26611
26612
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
26613
26614
26615
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
echo "${ECHO_T}$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test $ac_cv_lib_cblas_cblas_dgemm = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26616
26617
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26618
26619
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26620
26621
26622
26623
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26624
26625
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26626
26627
26628
26629
26630
26631
26632
    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

26633
26634
{ echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
echo $ECHO_N "checking for clapack_dpotrf in -llapack... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26635
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
26636
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26637
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26638
26639
26640
  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
26641
26642
26643
26644
26645
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26646
26647
26648
26649
26650
26651
26652
26653

/* 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
26654
26655
26656
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26657
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26658
26659
26660
26661
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26662
26663
26664
26665
26666
26667
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
26668
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26669
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26670
26671
26672
26673
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26675
26676
26677
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26678
26679
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26680
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26681
else
26682
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26683
26684
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26685
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26686
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26687
26688
26689
26690
26691

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
26692
26693
26694
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
echo "${ECHO_T}$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test $ac_cv_lib_lapack_clapack_dpotrf = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi


26706
26707
{ echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26708
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
26709
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26710
26711
26712
26713
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
26714
26715
26716
26717
26718
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26719
26720
26721
26722
26723
26724
26725
26726

/* 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
26727
26728
26729
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26730
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26731
26732
26733
26734
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26735
26736
26737
26738
26739
26740
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
26741
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26742
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26743
26744
26745
26746
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26748
26749
26750
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26751
26752
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26753
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26754
else
26755
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26756
26757
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26758
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26759
26760
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26761
26762
26763
26764
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
26765
26766
26767
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
echo "${ECHO_T}$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test $ac_cv_lib_cblas_cblas_dgemm = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26768
26769
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26770
26771
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26772
26773
26774
26775
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26776
26777
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
      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

26799
26800
{ echo "$as_me:$LINENO: checking for cblas_dgemm in -lptcblas" >&5
echo $ECHO_N "checking for cblas_dgemm in -lptcblas... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26801
if test "${ac_cv_lib_ptcblas_cblas_dgemm+set}" = set; then
26802
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26803
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26804
26805
26806
  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
26807
26808
26809
26810
26811
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26812
26813
26814
26815
26816
26817
26818
26819

/* 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
26820
26821
26822
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26823
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26824
26825
26826
26827
26828
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26829
26830
26831
26832
26833
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
26834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26835
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26836
26837
26838
26839
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
26840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26841
26842
26843
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
26844
26845
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26846
  ac_cv_lib_ptcblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26847
else
26848
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26849
26850
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26851
	ac_cv_lib_ptcblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26852
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26853
26854

rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26855
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26856
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26857
fi
26858
26859
26860
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ptcblas_cblas_dgemm" >&5
echo "${ECHO_T}$ac_cv_lib_ptcblas_cblas_dgemm" >&6; }
if test $ac_cv_lib_ptcblas_cblas_dgemm = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26861
26862
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBPTCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26863
26864
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26865
26866
26867
26868
  LIBS="-lptcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26869
26870
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26871
26872
26873
    if test x$acx_atlas_ok = xyes; then
      ATLAS_LIB="$ATLAS_LIBPATH -llapack -lptcblas -lcblas -latlas"
      LIBS="$OLIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26874
26875


Emmanuel Bertin's avatar
Emmanuel Bertin committed
26876
26877
cat >>confdefs.h <<\_ACEOF
#define HAVE_ATLAS_MP 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26878
26879
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
      use_atlas=yes
    else
      ATLAS_ERROR="CBLAS/LAPack was compiled without multithreading support!"

      use_atlas=no
    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
26896

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26897

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26898
26899
26900
if test "$use_atlas" = "yes"; then
  LIBS="$ATLAS_LIB $LIBS"
else
26901
26902
  { { echo "$as_me:$LINENO: error: $ATLAS_ERROR Exiting." >&5
echo "$as_me: error: $ATLAS_ERROR Exiting." >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26903
   { (exit 1); exit 1; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26904
26905
26906
26907
26908
26909
26910
fi

# Link with gprof option
if test "$use_gprof" = "yes"; then
  if test "$use_icc" = "yes"; then
    CFLAGS="$CFLAGS -pq"
  else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26911
    CFLAGS="$CFLAGS -pg"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26912
26913
26914
26915
  fi
  use_static="no"
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26916
# Static linking option
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26917
if test "$use_static" = "yes"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26918
  LDFLAGS="-static -shared-libgcc $LDFLAGS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26919
26920
26921
fi

# Override automatic CFLAGS and LDFLAGS with those of user
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26922
26923
26924
26925
26926
26927
#if test -n "$mycflags"; then
#CFLAGS="$mycflags"
#fi
#if test -n "$myldflags"; then
#LDFLAGS="$myldflags"
#fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26928
26929

# Display compiler and linker flags
26930
26931
26932
26933
26934
26935
26936
26937
26938
26939
{ echo "$as_me:$LINENO: result: ***************************************************************" >&5
echo "${ECHO_T}***************************************************************" >&6; }
{ echo "$as_me:$LINENO: result: Compile cmdline:  $CC $CFLAGS" >&5
echo "${ECHO_T}Compile cmdline:  $CC $CFLAGS" >&6; }
{ echo "$as_me:$LINENO: result: Link    cmdline:  $CC $LDFLAGS $LIBS" >&5
echo "${ECHO_T}Link    cmdline:  $CC $LDFLAGS $LIBS" >&6; }
{ echo "$as_me:$LINENO: result: Default XSLT URL: $xsl_url" >&5
echo "${ECHO_T}Default XSLT URL: $xsl_url" >&6; }
{ echo "$as_me:$LINENO: result: ***************************************************************" >&5
echo "${ECHO_T}***************************************************************" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26940

Emmanuel Bertin's avatar
Emmanuel Bertin committed
26941
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
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954



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
26955
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26956
  ac_i=`echo "$ac_i" | sed "$ac_script"`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26957
26958
26959
26960
  # 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
26961
26962
26963
26964
26965
26966
26967
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26968
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26969
Usually this means the macro was only invoked conditionally." >&5
26970
echo "$as_me: error: conditional \"AMDEP\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26971
26972
26973
26974
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
26975
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26976
Usually this means the macro was only invoked conditionally." >&5
26977
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26978
26979
26980
26981
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
26982
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26983
Usually this means the macro was only invoked conditionally." >&5
26984
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26985
26986
26987
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26988
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26989
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26990
Usually this means the macro was only invoked conditionally." >&5
26991
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26992
26993
26994
26995
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
26996
  { { echo "$as_me:$LINENO: error: conditional \"USE_THREADS\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26997
Usually this means the macro was only invoked conditionally." >&5
26998
echo "$as_me: error: conditional \"USE_THREADS\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26999
27000
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
For faster browsing, not all history is shown. View entire blame