configure 876 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25001
25002
25003
    ac_header_preproc=yes
    ;;
  no:yes:* )
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
    { 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
25016
25017
25018
25019
25020
25021
25022
25023
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
25024
25025
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25026
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25027
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25028
25029
25030
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
25031
25032
25033
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
25036
if test `eval echo '${'$as_ac_Header'}'` = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25037
  cat >>confdefs.h <<_ACEOF
25038
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25039
25040
_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
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
25062
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25063
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25064
25065
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25066
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25067
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25068
fi
25069
25070
25071
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
  # Is the header compilable?
25074
25075
{ 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
25076
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
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
25091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25092
25093
25094
25095
25096
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25098
25099
25100
25101
25102
  (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
25104
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25105
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
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25111
25112
{ 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
# Is the header present?
25115
25116
{ 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
25117
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
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25131
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25132
25133
25134
25135
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25136
  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
else
25143
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25144
25145
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

rm -f conftest.err conftest.$ac_ext
25150
25151
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25152
25153
25154
25155

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25156
25157
25158
25159
    { 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;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25160
25161
25162
    ac_header_preproc=yes
    ;;
  no:yes:* )
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
    { 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
25175
25176
25177
25178
25179
25180
25181
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25182
esac
25183
25184
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25185
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25186
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25187
25188
25189
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
25190
25191
25192
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
25195
if test `eval echo '${'$as_ac_Header'}'` = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25196
  cat >>confdefs.h <<_ACEOF
25197
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
_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
do
25226
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25227
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25228
25229
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25230
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25231
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25232
fi
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?
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
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25255
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25256
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25257
25258
25259
25260
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25261
  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
  ac_header_compiler=yes
else
25268
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25269
25270
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

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25275
25276
{ 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?
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
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25294
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25295
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25296
25297
25298
25299
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25300
  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
  ac_header_preproc=yes
else
25307
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25308
25309
25310
25311
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
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

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25320
25321
25322
25323
    { 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;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25324
25325
25326
    ac_header_preproc=yes
    ;;
  no:yes:* )
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
    { 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
25347
25348
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25349
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25350
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25351
25352
25353
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
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

fi
25359
if test `eval echo '${'$as_ac_Header'}'` = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25360
  cat >>confdefs.h <<_ACEOF
25361
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25362
_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
    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
25384
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25385
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25386
25387
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25388
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25389
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25390
fi
25391
25392
25393
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
  # Is the header compilable?
25396
25397
{ 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
25398
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
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
25413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25414
  (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
25419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25420
25421
25422
25423
25424
25425
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
25426
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25427
25428
25429
25430
25431
25432
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

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

# Is the header present?
25437
25438
{ 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
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
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
25452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25453
  (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
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
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

rm -f conftest.err conftest.$ac_ext
25472
25473
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25474
25475
25476
25477

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25478
25479
25480
25481
    { 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;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25482
25483
25484
    ac_header_preproc=yes
    ;;
  no:yes:* )
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
    { 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
25497
25498
25499
25500
25501
25502
25503
25504
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
25505
25506
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25507
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25508
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25509
25510
else
  eval "$as_ac_Header=\$ac_header_preproc"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25511
fi
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
fi
25517
if test `eval echo '${'$as_ac_Header'}'` = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25518
  cat >>confdefs.h <<_ACEOF
25519
#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
do
25547
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25548
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25549
25550
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25551
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25552
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25553
fi
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?
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
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25577
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25578
25579
25580
25581
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25582
  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
  ac_header_compiler=yes
else
25589
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25590
25591
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

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25596
25597
{ 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?
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
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25616
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25617
25618
25619
25620
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25621
  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
  ac_header_preproc=yes
else
25628
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25629
25630
25631
25632
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
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

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25641
25642
25643
25644
    { 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;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25645
25646
25647
    ac_header_preproc=yes
    ;;
  no:yes:* )
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
    { 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
25668
25669
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25670
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25671
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25672
25673
25674
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
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

fi
25680
if test `eval echo '${'$as_ac_Header'}'` = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25681
  cat >>confdefs.h <<_ACEOF
25682
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25683
_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
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

25711
25712
{ echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
echo $ECHO_N "checking for clapack_dpotrf in -llapack... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25713
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
25714
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25715
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
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25747
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25748
25749
25750
25751
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25753
25754
25755
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25756
25757
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25758
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25759
else
25760
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25761
25762
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
25770
25771
25772
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
echo "${ECHO_T}$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test $ac_cv_lib_lapack_clapack_dpotrf = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25773
25774
  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
{ echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25786
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
25787
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25788
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
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
25819
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25820
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25821
25822
25823
25824
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25826
25827
25828
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25829
25830
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25831
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25832
else
25833
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25834
25835
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
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
25843
25844
25845
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
echo "${ECHO_T}$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test $ac_cv_lib_cblas_cblas_dgemm = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25846
25847
  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
  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

25864
25865
{ echo "$as_me:$LINENO: checking for clapack_dpotrf in -llapack" >&5
echo $ECHO_N "checking for clapack_dpotrf in -llapack... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25866
if test "${ac_cv_lib_lapack_clapack_dpotrf+set}" = set; then
25867
  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
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
25899
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25900
  (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
25905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25906
25907
25908
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25909
25910
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25911
  ac_cv_lib_lapack_clapack_dpotrf=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25912
else
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
25923
25924
25925
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_clapack_dpotrf" >&5
echo "${ECHO_T}$ac_cv_lib_lapack_clapack_dpotrf" >&6; }
if test $ac_cv_lib_lapack_clapack_dpotrf = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25926
25927
  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
{ echo "$as_me:$LINENO: checking for cblas_dgemm in -lcblas" >&5
echo $ECHO_N "checking for cblas_dgemm in -lcblas... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25939
if test "${ac_cv_lib_cblas_cblas_dgemm+set}" = set; then
25940
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25941
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
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
25972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25973
  (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
25978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25979
25980
25981
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25982
25983
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25984
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25985
else
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
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
25996
25997
25998
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
echo "${ECHO_T}$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test $ac_cv_lib_cblas_cblas_dgemm = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25999
26000
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
For faster browsing, not all history is shown. View entire blame