configure 759 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22001
else
22002
22003
22004
22005
22006
  for ac_header in $atlas_incdir/cblas.h $atlas_incdir/clapack.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22007
  cat >>confdefs.h <<_ACEOF
22008
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22009
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22010
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22011
22012
22013
22014
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22015
  if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22016

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "$atlas_incdir/cblas.h"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "$atlas_incdir/clapack.h"
_ACEOF

  else
    ATLAS_ERROR="CBLAS/LAPack include files not found in $atlas_incdir!"
  fi
fi


if test x$acx_atlas_ok = xyes; then
  OLIBS="$LIBS"
  LIBS=""
  if test x$atlas_libdir = x; then
22036
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
22037
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
22038
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
22039
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22040
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22041
22042
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -lcblas -latlas -lm $LIBS"
22043
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22044
22045
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22046
22047
/* 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
22048
22049
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22050
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22051
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22052
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22053
22054
22055
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22056
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22057
22058
22059
22060
  ;
  return 0;
}
_ACEOF
22061
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22062
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22063
else
22064
  ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22065
fi
22066
22067
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22068
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22069
fi
22070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
22071
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
22072
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22073
22074
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22075
22076
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22077
22078
22079
22080
  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22081
22082
fi

22083
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
22084
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
22085
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
22086
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22087
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22088
22089
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -latlas -lm $LIBS"
22090
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22091
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22092
22093
22094
22095

/* 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
22096
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22097
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22098
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22099
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22100
22101
22102
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22103
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22104
22105
22106
22107
  ;
  return 0;
}
_ACEOF
22108
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22109
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22110
else
22111
  ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22112
fi
22113
22114
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22115
22116
LIBS=$ac_check_lib_save_LIBS
fi
22117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
22118
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
22119
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22120
22121
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22122
22123
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22124
  LIBS="-lcblas $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22125
22126

else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
  acx_atlas_ok=no
fi

    if test x$acx_atlas_ok = xyes; then
      ATLAS_LIBPATH=""
    else
      atlas_def=/usr/local/atlas
      unset ac_cv_lib_lapack_clapack_dpotrf
      unset ac_cv_lib_cblas_cblas_dgemm
      acx_atlas_ok=yes
22137
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
22138
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
22139
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
22140
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22141
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22142
22143
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def/lib -lcblas -latlas -lm $LIBS"
22144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22145
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22146
22147
22148
22149
22150
22151
22152
22153

/* 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
22154
22155
22156
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22157
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22158
22159
22160
22161
  ;
  return 0;
}
_ACEOF
22162
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22163
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22164
else
22165
  ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22166
fi
22167
22168
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22169
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22170
fi
22171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
22172
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
22173
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22174
22175
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22176
22177
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22178
  LIBS="-llapack $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22179

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22180
22181
else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22182
22183
fi

22184
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
22185
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
22186
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
22187
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22188
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22189
22190
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def/lib -latlas -lm $LIBS"
22191
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22192
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22193
22194
22195
22196
22197
22198
22199
22200

/* 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
22201
22202
22203
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22204
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22205
22206
22207
22208
  ;
  return 0;
}
_ACEOF
22209
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22210
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22211
else
22212
  ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22213
fi
22214
22215
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22216
22217
LIBS=$ac_check_lib_save_LIBS
fi
22218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
22219
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
22220
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22221
22222
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22223
22224
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22225
  LIBS="-lcblas $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22226

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22227
22228
22229
else
  acx_atlas_ok=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22230

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22231
22232
22233
22234
22235
22236
22237
      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
22238
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
22239
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
22240
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
22241
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22242
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22243
22244
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def -lcblas -latlas -lm $LIBS"
22245
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22246
22247
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22248
22249
/* 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
22250
22251
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22252
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22253
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22254
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22255
22256
22257
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22258
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22259
22260
22261
22262
  ;
  return 0;
}
_ACEOF
22263
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22264
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22265
else
22266
  ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22267
fi
22268
22269
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22270
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22271
fi
22272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
22273
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
22274
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22275
  cat >>confdefs.h <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22276
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22277
22278
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22279
22280
  LIBS="-llapack $LIBS"

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22281
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22282
22283
22284
  acx_atlas_ok=no
fi

22285
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
22286
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
22287
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
22288
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22289
22290
else
  ac_check_lib_save_LIBS=$LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22291
LIBS="-lcblas -L$atlas_def -latlas -lm $LIBS"
22292
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22293
22294
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22295
22296
22297
/* 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
22298
22299
22300
#ifdef __cplusplus
extern "C"
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22301
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22302
22303
22304
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22305
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22306
22307
22308
22309
  ;
  return 0;
}
_ACEOF
22310
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22311
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22312
else
22313
  ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22314
fi
22315
22316
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22317
22318
LIBS=$ac_check_lib_save_LIBS
fi
22319
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
22320
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
22321
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22322
22323
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22324
22325
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22326
  LIBS="-lcblas $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22327

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22328
22329
else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22330
22331
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22332
22333
22334
22335
22336
22337
22338
        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
22339
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
22340
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
22341
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
22342
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22343
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22344
22345
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def -lcblas -latlas -lm $LIBS"
22346
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22347
22348
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22349
22350
/* 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
22351
22352
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22353
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22354
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22355
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22356
22357
22358
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22359
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22360
22361
22362
22363
  ;
  return 0;
}
_ACEOF
22364
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22365
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22366
else
22367
  ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22368
fi
22369
22370
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22371
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22372
fi
22373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
22374
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
22375
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22376
  cat >>confdefs.h <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22377
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22378
22379
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22380
  LIBS="-llapack $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22381

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22382
22383
22384
else
  acx_atlas_ok=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22385

22386
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
22387
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
22388
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
22389
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22390
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22391
22392
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def -latlas -lm $LIBS"
22393
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22394
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22395
22396
22397
22398
22399
22400
22401
22402

/* 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
22403
22404
22405
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22406
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22407
22408
22409
22410
  ;
  return 0;
}
_ACEOF
22411
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22412
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22413
else
22414
  ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22415
fi
22416
22417
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22418
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22419
fi
22420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
22421
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
22422
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22423
22424
22425
22426
22427
22428
22429
22430
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
_ACEOF

  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22431
22432
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22433
22434
22435
22436
22437
22438
22439
          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
22440
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
22441
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
22442
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
22443
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22444
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22445
22446
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_def/lib -lcblas -latlas -lm $LIBS"
22447
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22448
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22449
22450
22451
22452
22453
22454
22455
22456

/* 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
22457
22458
22459
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22460
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22461
22462
22463
22464
  ;
  return 0;
}
_ACEOF
22465
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22466
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22467
else
22468
  ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22469
fi
22470
22471
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22472
22473
LIBS=$ac_check_lib_save_LIBS
fi
22474
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
22475
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
22476
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi

22487
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
22488
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
22489
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
22490
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22491
22492
22493
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_def/lib -latlas -lm $LIBS"
22494
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22495
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22496
22497
22498
22499
22500
22501
22502
22503

/* 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
22504
22505
22506
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22507
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22508
22509
22510
22511
  ;
  return 0;
}
_ACEOF
22512
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22513
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22514
else
22515
  ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22516
fi
22517
22518
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22519
22520
LIBS=$ac_check_lib_save_LIBS
fi
22521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
22522
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
22523
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22524
22525
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22526
22527
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22528
22529
22530
22531
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22532
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543

            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
22544
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
22545
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
22546
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
22547
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22548
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22549
22550
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_libdir -lcblas -latlas -lm $LIBS"
22551
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22552
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22553
22554
22555
22556
22557
22558
22559
22560

/* 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
22561
22562
22563
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22564
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22565
22566
22567
22568
  ;
  return 0;
}
_ACEOF
22569
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22570
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22571
else
22572
  ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22573
fi
22574
22575
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22576
22577
LIBS=$ac_check_lib_save_LIBS
fi
22578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
22579
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
22580
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi

22591
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
22592
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
22593
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
22594
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22595
22596
22597
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_libdir -latlas -lm $LIBS"
22598
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22599
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22600
22601
22602
22603
22604
22605
22606
22607

/* 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
22608
22609
22610
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22611
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22612
22613
22614
22615
  ;
  return 0;
}
_ACEOF
22616
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22617
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22618
else
22619
  ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22620
fi
22621
22622
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22623
22624
LIBS=$ac_check_lib_save_LIBS
fi
22625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
22626
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
22627
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22628
22629
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22630
22631
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22632
22633
22634
22635
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22636
22637
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22638
22639
22640
22641
22642
22643
    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
22644
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clapack_dpotrf in -llapack" >&5
22645
$as_echo_n "checking for clapack_dpotrf in -llapack... " >&6; }
22646
if ${ac_cv_lib_lapack_clapack_dpotrf+:} false; then :
22647
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22648
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22649
22650
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -L$atlas_libdir/lib -lcblas -latlas -lm $LIBS"
22651
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22652
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22653
22654
22655
22656
22657
22658
22659
22660

/* 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
22661
22662
22663
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22664
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22665
22666
22667
22668
  ;
  return 0;
}
_ACEOF
22669
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22670
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22671
else
22672
  ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22673
fi
22674
22675
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22676
22677
LIBS=$ac_check_lib_save_LIBS
fi
22678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
22679
$as_echo "$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
22680
if test "x$ac_cv_lib_lapack_clapack_dpotrf" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
_ACEOF

  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
fi

22691
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5
22692
$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; }
22693
if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then :
22694
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22695
22696
22697
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -L$atlas_libdir/lib -latlas -lm $LIBS"
22698
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22699
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22700
22701
22702
22703
22704
22705
22706
22707

/* 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
22708
22709
22710
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22711
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22712
22713
22714
22715
  ;
  return 0;
}
_ACEOF
22716
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22717
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22718
else
22719
  ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22720
fi
22721
22722
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22723
22724
LIBS=$ac_check_lib_save_LIBS
fi
22725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
22726
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
22727
if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22728
22729
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22730
22731
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22732
22733
22734
22735
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22736
22737
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
      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

22753
$as_echo "#define HAVE_ATLAS 1" >>confdefs.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22754
22755

  if test x$use_pthreads = xyes; then
22756
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lptcblas" >&5
22757
$as_echo_n "checking for cblas_dgemm in -lptcblas... " >&6; }
22758
if ${ac_cv_lib_ptcblas_cblas_dgemm+:} false; then :
22759
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22760
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22761
22762
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lptcblas $ATLAS_LIBPATH -lcblas -latlas -lm $LIBS"
22763
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22764
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22765
22766
22767
22768
22769
22770
22771
22772

/* 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
22773
22774
22775
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22776
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22777
22778
22779
22780
  ;
  return 0;
}
_ACEOF
22781
if ac_fn_c_try_link "$LINENO"; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22782
  ac_cv_lib_ptcblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22783
else
22784
  ac_cv_lib_ptcblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22785
fi
22786
22787
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22788
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22789
fi
22790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ptcblas_cblas_dgemm" >&5
22791
$as_echo "$ac_cv_lib_ptcblas_cblas_dgemm" >&6; }
22792
if test "x$ac_cv_lib_ptcblas_cblas_dgemm" = xyes; then :
22793
  acx_atlast_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22794
else
22795
  acx_atlast_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22796
22797
fi

22798
    if test x$acx_atlast_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22799
22800
      ATLAS_LIB="$ATLAS_LIBPATH -llapack -lptcblas -lcblas -latlas"
      LIBS="$OLIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22801
22802


22803
$as_echo "#define HAVE_ATLAS_MP 1" >>confdefs.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22804

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22805
22806
      use_atlas=yes
    else
22807
22808
22809
22810
      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
22811

22812
      use_atlas=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
    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
22824

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22825

22826
22827
22828
  if test "$use_atlas" = "yes"; then
    LIBS="$ATLAS_LIB $LIBS"
    if test "$ATLAS_WARN" != ""; then
22829
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ATLAS_WARN" >&5
22830
$as_echo "$as_me: WARNING: $ATLAS_WARN" >&2;}
22831
22832
    fi
  else
22833
    as_fn_error $? "$ATLAS_ERROR Exiting." "$LINENO" 5
22834
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22835
22836
22837
fi

# Link with gprof option
22838
22839
if test "$enable_gprof" = "yes"; then
  if test "$enable_icc" = "yes"; then
22840
    AM_CFLAGS="$AM_CFLAGS -pq"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22841
  else
22842
    AM_CFLAGS="$AM_CFLAGS -pg"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22843
  fi
22844
  enable_best_link="no"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22845
22846
fi

22847
# "Best" linking option
22848
if test "$enable_best_link" = "yes"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22849
  AM_LDFLAGS="-shared-libgcc -static-libtool-libs $AM_LDFLAGS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22850
22851
fi

22852
22853
22854



Emmanuel Bertin's avatar
Emmanuel Bertin committed
22855
22856

# Display compiler and linker flags
22857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***************************************************************" >&5
22858
$as_echo "***************************************************************" >&6; }
22859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Compile cmdline:  $CC $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS" >&5
22860
$as_echo "Compile cmdline:  $CC $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS" >&6; }
22861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Link    cmdline:  $CC $AM_LDFLAGS $LDFLAGS $LIBS" >&5
22862
$as_echo "Link    cmdline:  $CC $AM_LDFLAGS $LDFLAGS $LIBS" >&6; }
22863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Default XSLT URL: $xsl_url" >&5
22864
$as_echo "Default XSLT URL: $xsl_url" >&6; }
22865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ***************************************************************" >&5
22866
$as_echo "***************************************************************" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22867

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22868
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
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879



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=
22880
U=
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22881
22882
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
22883
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22884
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22885
22886
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
22887
22888
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22889
22890
22891
22892
22893
22894
22895
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22896
22897
  as_fn_error $? "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22898
22899
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22900
22901
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22902
22903
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22904
22905
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22906
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22907
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22908
22909
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22910
fi
22911
if test -z "${USE_MODEL_TRUE}" && test -z "${USE_MODEL_FALSE}"; then
22912
22913
  as_fn_error $? "conditional \"USE_MODEL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22914
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22915
if test -z "${USE_THREADS_TRUE}" && test -z "${USE_THREADS_FALSE}"; then
22916
22917
  as_fn_error $? "conditional \"USE_THREADS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22918
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22919

22920
: "${CONFIG_STATUS=./config.status}"
22921
ac_write_fail=0
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22922
22923
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22924
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22925
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22926
22927
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
#! $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

22938
22939
22940
22941
22942
22943
22944
SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22945

Emmanuel Bertin's avatar
Emmanuel Bertin committed
22946
22947
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
22948
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22949
22950
  emulate sh
  NULLCMD=:
22951
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22952
22953
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22954
22955
  setopt NO_GLOB_SUBST
else
22956
22957
22958
22959
22960
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22961
22962
22963
22964
esac
fi


22965
22966
22967
22968
22969
22970
22971
as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22972
22973
22974
22975
22976
22977
22978
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22979
22980
22981
22982
22983
22984
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
22985
  else
22986
22987
22988
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
22989
      case $arg in #(
22990
22991
22992
22993
22994
22995
22996
22997
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
22998
  fi
22999
23000
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
For faster browsing, not all history is shown. View entire blame