configure 904 KB
Newer Older
25001
          fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25002
25003
25004
25005
        fi
      fi
    fi
  else
25006
    if test xyes = xyes; then
25007
25008
      { $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
25009
if test "${ac_cv_lib_fftw3f_fftwf_execute+set}" = set; then
25010
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25011
25012
25013
25014
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
25015
25016
25017
25018
25019
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25020
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034

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

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

25065
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25066
25067
25068
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
25069
fi
25070
25071
25072
{ $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
25073
  acx_fftw_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25074
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25075
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25076
25077
fi

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25080
25081
25082
25083
25084
25085
25086
25087
25088
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
25089
25090
      { $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
25091
if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
25092
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25093
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25094
25095
25096
  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
25097
25098
25099
25100
25101
25102
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

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

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

25147
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25148
25149
25150
25151
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
25152
25153
25154
{ $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
25155
  acx_fftw_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25156
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25157
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25158
25159
fi

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
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
25172
      if test xyes = xyes; then
25173
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
        { $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
25254
if test "${ac_cv_lib_fftw3f_threads_fftwf_init_threads+set}" = set; then
25255
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25256
25257
25258
25259
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
25260
25261
25262
25263
25264
25265
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

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

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

25310
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25311
25312
25313
25314
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
25315
25316
25317
25318
{ $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
25319
else
25320
  acx_fftwt_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25321
25322
fi

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

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

25329
25330
25331
25332
25333
            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
25334
25335
        fi
      else
25336
25337
        { $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
25338
if test "${ac_cv_lib_fftw3_threads_fftw_init_threads+set}" = set; then
25339
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25340
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25341
25342
25343
  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
25344
25345
25346
25347
25348
25349
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

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

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

25394
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25395
25396
25397
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
25398
fi
25399
25400
25401
25402
{ $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
25403
else
25404
  acx_fftwt_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25405
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25406

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

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

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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25423
25424
25425
25426
25427
25428
25429
25430
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
25431
25432


Emmanuel Bertin's avatar
Emmanuel Bertin committed
25433
25434
if test "$use_fftw" = "yes"; then
  LIBS="$FFTW_LIBS $LIBS"
25435
25436
25437
25438
  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
25439
else
25440
25441
  { { $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
25442
25443
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25444

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




Emmanuel Bertin's avatar
Emmanuel Bertin committed
25450
25451
25452
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
25453
25454


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

	ac_header_compiler=no
fi

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

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

  ac_header_preproc=no
fi

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

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25554
25555
25556
25557
    { $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
25558
25559
25560
    ac_header_preproc=yes
    ;;
  no:yes:* )
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
    { $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
25573
25574
25575
25576
25577
25578
25579
25580
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
25581
25582
{ $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
25583
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25584
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25585
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25586
  eval "$as_ac_Header=\$ac_header_preproc"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25587
fi
25588
25589
25590
25591
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
25592

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25593
fi
25594
25595
25596
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
25597
  cat >>confdefs.h <<_ACEOF
25598
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25599
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25600
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25601
25602
25603
25604
fi

done

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

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


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

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


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

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

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

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

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

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

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25718
25719
25720
25721
    { $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
25722
25723
25724
    ac_header_preproc=yes
    ;;
  no:yes:* )
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
    { $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
25737
    ( cat <<\_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25738
25739
25740
25741
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25742
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25743
25744
    ;;
esac
25745
25746
{ $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
25747
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25748
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25749
25750
25751
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
25752
25753
25754
25755
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
25756
25757

fi
25758
25759
25760
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
25761
  cat >>confdefs.h <<_ACEOF
25762
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25763
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25764
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25765
25766
25767
25768
fi

done

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

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


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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25783
25784
25785

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

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

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

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

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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25880
25881
25882
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
25883
25884
25885
25886
    { $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
25887
25888
25889
    ac_header_preproc=yes
    ;;
  no:yes:* )
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
    { $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
25902
25903
25904
25905
25906
25907
25908
25909
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
25910
25911
{ $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
25912
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25913
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25914
25915
25916
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
25917
25918
25919
25920
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
25921
25922

fi
25923
25924
25925
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
25926
  cat >>confdefs.h <<_ACEOF
25927
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25928
25929
_ACEOF
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25930
25931
fi

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


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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
25998
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25999
26000
fi

For faster browsing, not all history is shown. View entire blame