configure 904 KB
Newer Older
25001
25002

          fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25003
25004
25005
25006
        fi
      fi
    fi
  else
25007
    if test xyes = xyes; then
25008
25009
      { $as_echo "$as_me:$LINENO: checking for fftwf_execute in -lfftw3f" >&5
$as_echo_n "checking for fftwf_execute in -lfftw3f... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25010
if test "${ac_cv_lib_fftw3f_fftwf_execute+set}" = set; then
25011
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25012
25013
25014
25015
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3f -L$fftw_libdir -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25016
25017
25018
25019
25020
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035

/* 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 fftwf_execute ();
int
main ()
{
return fftwf_execute ();
  ;
  return 0;
}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25036
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25037
25038
25039
25040
25041
25042
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
25043
25044
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25045
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25046
25047
25048
25049
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25050
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25051
25052
25053
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25054
25055
25056
25057
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25058
  ac_cv_lib_fftw3f_fftwf_execute=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25059
else
25060
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25061
25062
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25063
	ac_cv_lib_fftw3f_fftwf_execute=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25064
25065
fi

25066
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25067
25068
25069
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
25070
fi
25071
25072
25073
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3f_fftwf_execute" >&5
$as_echo "$ac_cv_lib_fftw3f_fftwf_execute" >&6; }
if test "x$ac_cv_lib_fftw3f_fftwf_execute" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25074
  acx_fftw_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25075
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25076
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25077
25078
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25079
      if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25080

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25081
25082
25083
25084
25085
25086
25087
25088
25089
cat >>confdefs.h <<\_ACEOF
#define HAVE_FFTWF 1
_ACEOF

        FFTW_LIBS="-L$fftw_libdir -lfftw3f"
      else
        FFTW_ERROR="FFTW single precision library files not found in $fftw_libdir!"
      fi
    else
25090
25091
      { $as_echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25092
if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
25093
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25094
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25095
25096
25097
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3 -L$fftw_libdir -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25098
25099
25100
25101
25102
25103
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25104
25105
25106
25107
25108
25109
25110
/* 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 fftw_execute ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25111
25112
25113
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25114
return fftw_execute ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25115
25116
25117
25118
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25119
25120
25121
25122
25123
25124
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
25125
25126
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25127
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25128
25129
25130
25131
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25132
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25133
25134
25135
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25136
25137
25138
25139
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25140
  ac_cv_lib_fftw3_fftw_execute=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25141
else
25142
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25143
25144
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25145
	ac_cv_lib_fftw3_fftw_execute=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25146
25147
fi

25148
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25149
25150
25151
25152
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
25153
25154
25155
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25156
  acx_fftw_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25157
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25158
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25159
25160
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25161
      if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25162

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
cat >>confdefs.h <<\_ACEOF
#define HAVE_FFTW 1
_ACEOF

        FFTW_LIBS="-L$fftw_libdir -lfftw3"
      else
        FFTW_ERROR="FFTW double precision library files not found in $fftw_libdir!"
      fi
    fi
    if test x$acx_fftw_ok = xyes && test x$use_pthreads = xyes; then
25173
      if test xyes = xyes; then
25174
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
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
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
        { $as_echo "$as_me:$LINENO: checking for fftwf_init_threads in -lfftw3f" >&5
$as_echo_n "checking for fftwf_init_threads in -lfftw3f... " >&6; }
if test "${ac_cv_lib_fftw3f_fftwf_init_threads+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3f -L$fftw_libdir -lm -lpthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* 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 fftwf_init_threads ();
int
main ()
{
return fftwf_init_threads ();
  ;
  return 0;
}
_ACEOF
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_fftw3f_fftwf_init_threads=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_fftw3f_fftwf_init_threads=no
fi

rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3f_fftwf_init_threads" >&5
$as_echo "$ac_cv_lib_fftw3f_fftwf_init_threads" >&6; }
if test "x$ac_cv_lib_fftw3f_fftwf_init_threads" = x""yes; then
  acx_fftwt_ok=yes
else
  acx_fftwt_ok=no
fi

        if test x$acx_fftwt_ok = xyes; then

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

          FFTW_LIBS="-L$fftw_libdir -lfftw3f"
        else
          { $as_echo "$as_me:$LINENO: checking for fftwf_init_threads in -lfftw3f_threads" >&5
$as_echo_n "checking for fftwf_init_threads in -lfftw3f_threads... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25255
if test "${ac_cv_lib_fftw3f_threads_fftwf_init_threads+set}" = set; then
25256
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25257
25258
25259
25260
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3f_threads -L$fftw_libdir -lfftw3f -lm -lpthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25261
25262
25263
25264
25265
25266
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
/* 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 fftwf_init_threads ();
int
main ()
{
return fftwf_init_threads ();
  ;
  return 0;
}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25281
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25282
25283
25284
25285
25286
25287
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
25288
25289
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25290
25291
25292
25293
25294
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25295
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25296
25297
25298
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25299
25300
25301
25302
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25303
  ac_cv_lib_fftw3f_threads_fftwf_init_threads=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25304
else
25305
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25306
25307
25308
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_fftw3f_threads_fftwf_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25309
25310
fi

25311
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25312
25313
25314
25315
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
25316
25317
25318
25319
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3f_threads_fftwf_init_threads" >&5
$as_echo "$ac_cv_lib_fftw3f_threads_fftwf_init_threads" >&6; }
if test "x$ac_cv_lib_fftw3f_threads_fftwf_init_threads" = x""yes; then
  acx_fftwt_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25320
else
25321
  acx_fftwt_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25322
25323
fi

25324
          if test x$acx_fftwt_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25325
25326

cat >>confdefs.h <<\_ACEOF
25327
#define HAVE_FFTWF_MP 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25328
25329
_ACEOF

25330
25331
25332
25333
25334
            FFTW_LIBS="-L$fftw_libdir -lfftw3f_threads -lfftw3f"
          else
            FFTW_WARN="FFTW single precision library in $fftw_libdir was compiled without multithreading support!"

          fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25335
25336
        fi
      else
25337
25338
        { $as_echo "$as_me:$LINENO: checking for fftw_init_threads in -lfftw3_threads" >&5
$as_echo_n "checking for fftw_init_threads in -lfftw3_threads... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25339
if test "${ac_cv_lib_fftw3_threads_fftw_init_threads+set}" = set; then
25340
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25341
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25342
25343
25344
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3_threads -L$fftw_libdir -lfftw3 -lm -lpthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25345
25346
25347
25348
25349
25350
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25351
25352
25353
25354
25355
25356
25357
/* 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 fftw_init_threads ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25358
25359
25360
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25361
25362
25363
return fftw_init_threads ();
  ;
  return 0;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25364
25365
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25366
25367
25368
25369
25370
25371
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
25372
25373
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25374
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25375
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25376
25377
25378
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25379
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25380
25381
25382
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
25383
25384
25385
25386
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25387
  ac_cv_lib_fftw3_threads_fftw_init_threads=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25388
else
25389
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25390
25391
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25392
	ac_cv_lib_fftw3_threads_fftw_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25393
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25394

25395
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25396
25397
25398
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
25399
fi
25400
25401
25402
25403
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_threads_fftw_init_threads" >&5
$as_echo "$ac_cv_lib_fftw3_threads_fftw_init_threads" >&6; }
if test "x$ac_cv_lib_fftw3_threads_fftw_init_threads" = x""yes; then
  acx_fftwt_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25404
else
25405
  acx_fftwt_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25406
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25407

25408
        if test x$acx_fftwt_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25409
25410

cat >>confdefs.h <<\_ACEOF
25411
#define HAVE_FFTW_MP 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25412
25413
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25414
25415
          FFTW_LIBS="-L$fftw_libdir -lfftw3_threads -lfftw3"
        else
25416
25417
          FFTW_WARN="FFTW double precision library in $fftw_libdir was compiled without multithreading support!"

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25418
25419
25420
25421
        fi
      fi
    fi
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25422
25423
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25424
25425
25426
25427
25428
25429
25430
25431
LIBS="$OLIBS"
if test x$acx_fftw_ok = xyes; then

  use_fftw=yes
else

  use_fftw=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25432
25433


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25434
25435
if test "$use_fftw" = "yes"; then
  LIBS="$FFTW_LIBS $LIBS"
25436
25437
25438
25439
  if test "$FFTW_WARN" != ""; then
    { $as_echo "$as_me:$LINENO: WARNING: $FFTW_WARN" >&5
$as_echo "$as_me: WARNING: $FFTW_WARN" >&2;}
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25440
else
25441
25442
  { { $as_echo "$as_me:$LINENO: error: $FFTW_ERROR Exiting." >&5
$as_echo "$as_me: error: $FFTW_ERROR Exiting." >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25443
25444
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25445

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25446
################## handle the ATLAS library(linear algebra) ##################
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25447
25448
25449
25450




Emmanuel Bertin's avatar
Emmanuel Bertin committed
25451
25452
25453
acx_atlas_ok=no
if test x$atlas_incdir = x; then
  if test x$atlas_libdir = x; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25454
25455


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25456
for ac_header in cblas.h clapack.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25457
do
25458
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25459
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25460
25461
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25462
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25463
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25464
fi
25465
25466
25467
25468
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25469
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25470
  # Is the header compilable?
25471
25472
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25473
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25474
25475
25476
25477
25478
25479
25480
25481
25482
/* 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
25483
25484
25485
25486
25487
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25488
25489
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25490
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25491
25492
25493
25494
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25495
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25496
25497
25498
25499
25500
25501
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
25502
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25503
25504
25505
25506
25507
25508
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25509
25510
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25511
25512

# Is the header present?
25513
25514
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
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
25528
25529
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25530
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25531
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25532
25533
25534
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25535
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25536
25537
25538
25539
25540
25541
  (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
else
25542
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25543
25544
25545
25546
25547
25548
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
25549
25550
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25551
25552
25553
25554

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25555
25556
25557
25558
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25559
25560
25561
    ac_header_preproc=yes
    ;;
  no:yes:* )
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25574
25575
25576
25577
25578
25579
25580
25581
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
25582
25583
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25584
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25585
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25586
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25587
  eval "$as_ac_Header=\$ac_header_preproc"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25588
fi
25589
25590
25591
25592
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25593

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25594
fi
25595
25596
25597
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25598
  cat >>confdefs.h <<_ACEOF
25599
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25600
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25601
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25602
25603
25604
25605
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25606
    if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25607

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25608
25609
25610
cat >>confdefs.h <<\_ACEOF
#define ATLAS_BLAS_H "cblas.h"
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25611
25612


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25613
25614
25615
cat >>confdefs.h <<\_ACEOF
#define ATLAS_LAPACK_H "clapack.h"
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25616

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25617
    else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25618
25619


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25620
for ac_header in atlas/cblas.h atlas/clapack.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25621
do
25622
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25623
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25624
25625
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25626
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25627
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25628
fi
25629
25630
25631
25632
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25633
25634
else
  # Is the header compilable?
25635
25636
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
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
25647
25648
25649
25650
25651
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25652
25653
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25654
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25655
25656
25657
25658
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25659
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25660
25661
25662
25663
  (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
25664
25665
  ac_header_compiler=yes
else
25666
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25667
25668
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25669
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25670
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25671
25672

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25673
25674
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25675
25676

# Is the header present?
25677
25678
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25679
25680
25681
25682
25683
25684
25685
25686
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
25687
25688
25689
25690
25691
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25692
25693
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25694
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25695
25696
25697
25698
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25699
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25700
25701
25702
25703
  (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
25704
25705
  ac_header_preproc=yes
else
25706
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25707
25708
25709
25710
sed 's/^/| /' conftest.$ac_ext >&5

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25712
rm -f conftest.err conftest.$ac_ext
25713
25714
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25715
25716
25717
25718

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25719
25720
25721
25722
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25723
25724
25725
    ac_header_preproc=yes
    ;;
  no:yes:* )
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25738
    ( cat <<\_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25739
25740
25741
25742
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25743
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25744
25745
    ;;
esac
25746
25747
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25748
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25749
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25750
25751
25752
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
25753
25754
25755
25756
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25757
25758

fi
25759
25760
25761
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25762
  cat >>confdefs.h <<_ACEOF
25763
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25764
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25765
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25766
25767
25768
25769
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25770
      if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25771

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25772
25773
cat >>confdefs.h <<\_ACEOF
#define ATLAS_BLAS_H "atlas/cblas.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25774
25775
25776
25777
_ACEOF


cat >>confdefs.h <<\_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25778
#define ATLAS_LAPACK_H "atlas/clapack.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25779
25780
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25781
25782
      else
        atlas_def=/usr/local/atlas
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25783

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25784
25785
25786

for ac_header in $atlas_def/include/cblas.h $atlas_def/include/clapack.h
do
25787
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25788
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25789
25790
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25791
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25792
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25793
fi
25794
25795
25796
25797
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25798
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25799
  # Is the header compilable?
25800
25801
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25802
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25803
25804
25805
25806
25807
25808
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
$ac_includes_default
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25809
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25810
25811
_ACEOF
rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25812
25813
25814
25815
25816
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25817
25818
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25819
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25820
25821
25822
25823
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25824
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25825
25826
25827
25828
25829
  (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
25830
else
25831
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25832
25833
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25834
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25835
25836
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25837
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25838
25839
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25840

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25841
# Is the header present?
25842
25843
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
$as_echo_n "checking $ac_header presence... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25844
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25845
25846
25847
25848
25849
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25850
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25851
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25852
25853
25854
25855
25856
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
25857
25858
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25859
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25860
25861
25862
25863
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25864
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25865
25866
25867
25868
25869
  (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
25870
else
25871
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25872
25873
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25874
  ac_header_preproc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25875
25876
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25877
rm -f conftest.err conftest.$ac_ext
25878
25879
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25880

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25881
25882
25883
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25884
25885
25886
25887
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25888
25889
25890
    ac_header_preproc=yes
    ;;
  no:yes:* )
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25903
25904
25905
25906
25907
25908
25909
25910
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
25911
25912
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25913
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25914
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25915
25916
25917
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
25918
25919
25920
25921
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25922
25923

fi
25924
25925
25926
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25927
  cat >>confdefs.h <<_ACEOF
25928
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25929
25930
_ACEOF
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25931
25932
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25933
25934
25935
25936
25937
25938
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
25939
25940
25941
_ACEOF


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
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
25952
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25953
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25954
25955
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
$as_echo_n "checking for $ac_header... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25956
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25957
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25958
fi
25959
25960
25961
25962
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25963
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25964
  # Is the header compilable?
25965
25966
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
$as_echo_n "checking $ac_header usability... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25967
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25968
25969
25970
25971
25972
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25973
25974
$ac_includes_default
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25975
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25976
25977
25978
25979
25980
25981
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
25982
25983
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25984
25985
25986
25987
25988
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
25989
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25990
25991
25992
25993
25994
  (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
25995
else
25996
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25997
sed 's/^/| /' conftest.$ac_ext >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25998

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25999
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
26000
fi
For faster browsing, not all history is shown. View entire blame