configure 876 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25027
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25028
25029
25030
25031
25032
25033
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25034
25035

fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25036
25037
25038
25039
25040
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25041
25042
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25043
25044
25045
25046
25047
25048
done

        if test x$acx_atlas_ok = xyes; then

cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "$atlas_def/include/cblas.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25049
25050
25051
_ACEOF


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066
cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "$atlas_def/include/clapack.h"
_ACEOF

        else
          atlas_def=/usr/atlas


for ac_header in $atlas_def/include/cblas.h $atlas_def/include/clapack.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25067
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25068
25069
25070
25071
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25072
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25073
25074
25075
25076
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25077
25078
25079
25080
25081
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25082
25083
$ac_includes_default
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25084
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25103
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25104
25105
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25106

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25107
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25108
25109
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25110
25111
25112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25113

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25114
25115
25116
25117
# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25118
25119
25120
25121
25122
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25123
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25124
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25125
25126
25127
25128
25129
25130
25131
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25132
25133
25134
25135
25136
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25137
25138
25139
25140
25141
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25142
25143
25144
25145
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25146
  ac_header_preproc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25147
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25182
esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25193
25194

fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
 acx_atlas_ok=yes
fi

done

          if test x$acx_atlas_ok = xyes; then

cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "$atlas_def/include/cblas.h"
_ACEOF


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

          else
            ATLAS_ERROR="CBLAS/LAPack include files not found!"
          fi
        fi
      fi
    fi
  else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25222

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25223

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25224
for ac_header in $atlas_libdir/include/cblas.h $atlas_libdir/include/clapack.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25225
25226
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25227
25228
25229
25230
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25231
25232
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25233
25234
25235
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25236
25237
else
  # Is the header compilable?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25238
25239
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25250
25251
25252
25253
25254
25255
25256
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25257
25258
25259
25260
25261
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25262
25263
25264
25265
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25266
25267
25268
25269
25270
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25271
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25272
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25273
25274
25275
25276

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25277
25278

# Is the header present?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25279
25280
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25281
25282
25283
25284
25285
25286
25287
25288
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25289
25290
25291
25292
25293
25294
25295
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25296
25297
25298
25299
25300
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25301
25302
25303
25304
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25305
25306
25307
25308
25309
25310
25311
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25312

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25313
rm -f conftest.err conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25314
25315
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25339
    ( cat <<\_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25340
25341
25342
25343
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25344
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25345
25346
    ;;
esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25347
25348
25349
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25350
25351
25352
25353
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25354
25355
25356
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25357
25358
25359
25360
25361
25362

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25363
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25364
25365
25366
25367
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
    if test x$acx_atlas_ok = xyes; then

cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "$atlas_libdir/include/cblas.h"
_ACEOF


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

    else


for ac_header in cblas.h clapack.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25389
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25390
25391
25392
25393
fi
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25394
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25395
25396
25397
25398
  # Is the header compilable?
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25399
25400
25401
25402
25403
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25404
25405
$ac_includes_default
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25406
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25407
25408
25409
25410
25411
25412
25413
25414
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25415
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25416
25417
25418
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }

# Is the header present?
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25454
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25455
25456
25457
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25459
25460
25461
25462
25463
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
  ac_header_preproc=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25464
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25465
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25466
25467
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25468
  ac_header_preproc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25469
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25470
25471
25472
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509
25510

rm -f conftest.err conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25511
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25512
25513
25514
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25515

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25516
25517
25518
25519
fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25520
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25521
25522
 acx_atlas_ok=yes
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25523

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25524
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25525

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25526
      if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25527

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25528
25529
cat >>confdefs.h <<_ACEOF
#define ATLAS_BLAS_H "cblas.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25530
25531
25532
_ACEOF


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25533
25534
25535
cat >>confdefs.h <<_ACEOF
#define ATLAS_LAPACK_H "clapack.h"
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25536

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25537
25538
25539
25540
25541
25542
      else
        ATLAS_ERROR="CBLAS/LAPack include files not found in $atlas_libdir/include!"
      fi
    fi
  fi
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25543
25544


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25545
for ac_header in $atlas_incdir/cblas.h $atlas_incdir/clapack.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25546
25547
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25548
25549
25550
25551
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25552
25553
  echo $ECHO_N "(cached) $ECHO_C" >&6
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25554
25555
25556
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25557
25558
else
  # Is the header compilable?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25559
25560
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25571
25572
25573
25574
25575
25576
25577
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25578
25579
25580
25581
25582
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25583
25584
25585
25586
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25587
25588
25589
25590
25591
  ac_header_compiler=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25592
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25593
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25594
25595
25596
25597

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
echo "${ECHO_T}$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25598
25599

# Is the header present?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25600
25601
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25602
25603
25604
25605
25606
25607
25608
25609
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$ac_header>
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25610
25611
25612
25613
25614
25615
25616
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25617
25618
25619
25620
25621
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25622
25623
25624
25625
  (exit $ac_status); } >/dev/null && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25626
25627
25628
25629
25630
25631
25632
  ac_header_preproc=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25633

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25634
rm -f conftest.err conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25635
25636
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    ac_header_preproc=yes
    ;;
  no:yes:* )
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25660
    ( cat <<\_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25661
25662
25663
25664
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25665
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25666
25667
    ;;
esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25668
25669
25670
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25671
25672
25673
25674
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25675
25676
25677
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25678
25679
25680
25681
25682
25683

fi
if test `eval echo '${'$as_ac_Header'}'` = yes; then
  cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25684
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25685
25686
25687
25688
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25689
  if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25690

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
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

{ echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
echo $ECHO_N "checking for clapack_dpotrf in -llapack... $ECHO_C" >&6; }
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25714
25715
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25716
25717
25718
  ac_check_lib_save_LIBS=$LIBS
LIBS="-llapack -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25719
25720
25721
25722
25723
25724
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25725
25726
/* 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
25727
25728
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25729
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25730
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25731
char clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25732
25733
25734
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25735
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25736
25737
25738
25739
25740
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25741
25742
25743
25744
25745
25746
25747
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25748
25749
25750
25751
25752
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25753
25754
25755
25756
25757
25758
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25759
25760
25761
25762
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25763
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25764
25765
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25766
25767
25768
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
25769
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25770
25771
25772
25773
25774
{ 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
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25775
25776
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25777
25778
25779
25780
  LIBS="-llapack $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25781
25782
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25783
25784
25785
25786

{ echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6; }
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25787
25788
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25789
25790
25791
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25792
25793
25794
25795
25796
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25797
25798
25799
25800

/* 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
25801
#ifdef __cplusplus
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25802
extern "C"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25803
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25804
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25805
25806
25807
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25808
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25809
25810
25811
25812
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25813
25814
25815
25816
25817
25818
25819
25820
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
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25821
25822
25823
25824
25825
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25826
25827
25828
25829
25830
25831
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25832
25833
25834
25835
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25836
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25837
25838
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25839
25840
25841
25842
25843
25844
25845
25846
25847
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
{ 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
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25848
25849
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25850
  LIBS="-lcblas $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25851
25852

else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
  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

{ echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
echo $ECHO_N "checking for clapack_dpotrf in -llapack... $ECHO_C" >&6; }
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25868
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25869
25870
25871
  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
25872
25873
25874
25875
25876
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25877
25878
25879
25880
25881
25882
25883
25884

/* 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
25885
25886
25887
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25888
return clapack_dpotrf ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25889
25890
25891
25892
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25893
25894
25895
25896
25897
25898
25899
25900
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
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25901
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25902
25903
25904
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25906
25907
25908
25909
25910
25911
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25912
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25913
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25914
25915
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25916
	ac_cv_lib_lapack_clapack_dpotrf=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25917
25918
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25919
25920
25921
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
25922
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25923
25924
25925
25926
25927
{ 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
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBLAPACK 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25928
25929
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25930
  LIBS="-llapack $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25931

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25932
25933
else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25934
25935
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25936
25937
25938
25939

{ echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6; }
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25940
25941
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25942
25943
25944
  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
25945
25946
25947
25948
25949
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25950
25951
25952
25953
25954
25955
25956
25957

/* 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
25958
25959
25960
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25961
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25962
25963
25964
25965
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25966
25967
25968
25969
25970
25971
25972
25973
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
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25974
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25975
25976
25977
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25979
25980
25981
25982
25983
25984
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25985
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25986
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25987
25988
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25989
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25990
25991
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25992
25993
25994
25995
25996
25997
25998
25999
26000
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
{ 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
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
For faster browsing, not all history is shown. View entire blame