configure 876 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24001
if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
24002
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24003
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24004
24005
24006
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3 -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24007
24008
24009
24010
24011
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24012
24013
24014
24015
24016
24017

/* 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"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24018
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24019
24020
24021
24022
24023
24024
24025
24026
char fftw_execute ();
int
main ()
{
return fftw_execute ();
  ;
  return 0;
}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24027
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24028
24029
24030
24031
24032
24033
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
24034
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24035
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24036
24037
24038
24039
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24041
24042
24043
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
24044
24045
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24046
  ac_cv_lib_fftw3_fftw_execute=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24047
else
24048
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24049
24050
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24051
	ac_cv_lib_fftw3_fftw_execute=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24052
24053
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24054
24055
24056
24057
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
24058
24059
24060
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_execute" >&6; }
if test $ac_cv_lib_fftw3_fftw_execute = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
  acx_fftw_ok=yes
else
  acx_fftw_ok=no
fi

      if test x$acx_fftw_ok = xyes; then

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

        FFTW_LIBS="-lfftw3"
      else
        FFTW_ERROR="FFTW double precision library files not found at usual locations!"
      fi
    fi
    if test x$acx_fftw_ok = xyes && test x$use_pthreads = xyes; then
      if test xno = xyes; then
24079
24080
        { echo "$as_me:$LINENO: checking for fftwf_init_threads in -lfftw3f_threads" >&5
echo $ECHO_N "checking for fftwf_init_threads in -lfftw3f_threads... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24081
if test "${ac_cv_lib_fftw3f_threads_fftwf_init_threads+set}" = set; then
24082
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24083
24084
24085
24086
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3f_threads -lfftw3f -lm -lpthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24087
24088
24089
24090
24091
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106

/* 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
24107
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24108
24109
24110
24111
24112
24113
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
24114
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24115
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24116
24117
24118
24119
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24121
24122
24123
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
24124
24125
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24126
  ac_cv_lib_fftw3f_threads_fftwf_init_threads=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24127
else
24128
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24129
24130
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24131
	ac_cv_lib_fftw3f_threads_fftwf_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24132
24133
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24134
24135
24136
24137
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
24138
24139
24140
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3f_threads_fftwf_init_threads" >&5
echo "${ECHO_T}$ac_cv_lib_fftw3f_threads_fftwf_init_threads" >&6; }
if test $ac_cv_lib_fftw3f_threads_fftwf_init_threads = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24141
24142
24143
  acx_fftw_ok=yes
else
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24144
24145
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24146
        if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24147

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24148
24149
24150
24151
24152
24153
24154
24155
24156
cat >>confdefs.h <<\_ACEOF
#define HAVE_FFTWFT 1
_ACEOF

          FFTW_LIBS="-lfftw3f_threads -lfftw3f"
        else
          FFTW_ERROR="FFTW single precision library was compiled without multithreading support!"
        fi
      else
24157
24158
        { echo "$as_me:$LINENO: checking for fftw_init_threads in -lfftw3_threads" >&5
echo $ECHO_N "checking for fftw_init_threads in -lfftw3_threads... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24159
if test "${ac_cv_lib_fftw3_threads_fftw_init_threads+set}" = set; then
24160
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24161
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24162
24163
24164
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3_threads -lfftw3 -lm -lpthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24165
24166
24167
24168
24169
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24170
24171
24172
24173
24174
24175

/* 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"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24176
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24177
24178
24179
24180
24181
24182
24183
24184
char fftw_init_threads ();
int
main ()
{
return fftw_init_threads ();
  ;
  return 0;
}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24185
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24186
24187
24188
24189
24190
24191
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
24192
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24193
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24194
24195
24196
24197
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24199
24200
24201
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
24202
24203
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24204
  ac_cv_lib_fftw3_threads_fftw_init_threads=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24205
else
24206
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24207
24208
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24209
	ac_cv_lib_fftw3_threads_fftw_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24210
24211
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24212
24213
24214
24215
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
24216
24217
24218
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_threads_fftw_init_threads" >&5
echo "${ECHO_T}$ac_cv_lib_fftw3_threads_fftw_init_threads" >&6; }
if test $ac_cv_lib_fftw3_threads_fftw_init_threads = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
  acx_fftw_ok=yes
else
  acx_fftw_ok=no
fi

        if test x$acx_fftw_ok = xyes; then

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

          FFTW_LIBS="-lfftw3_threads -lfftw3"
        else
          FFTW_ERROR="FFTW double precision library was compiled without multithreading support!"
        fi
      fi
    fi
  else
    if test xno = xyes; then
24238
24239
      { echo "$as_me:$LINENO: checking for fftwf_execute in -lfftw3f" >&5
echo $ECHO_N "checking for fftwf_execute in -lfftw3f... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24240
if test "${ac_cv_lib_fftw3f_fftwf_execute+set}" = set; then
24241
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24242
24243
24244
24245
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
24246
24247
24248
24249
24250
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265

/* 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
24266
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24267
24268
24269
24270
24271
24272
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
24273
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24274
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24275
24276
24277
24278
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24280
24281
24282
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
24283
24284
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24285
  ac_cv_lib_fftw3f_fftwf_execute=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24286
else
24287
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24288
24289
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24290
	ac_cv_lib_fftw3f_fftwf_execute=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24291
24292
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24293
24294
24295
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
24296
fi
24297
24298
24299
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3f_fftwf_execute" >&5
echo "${ECHO_T}$ac_cv_lib_fftw3f_fftwf_execute" >&6; }
if test $ac_cv_lib_fftw3f_fftwf_execute = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24300
  acx_fftw_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24301
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24302
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24303
24304
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24305
      if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24306

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24307
24308
24309
24310
24311
24312
24313
24314
24315
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
24316
24317
      { echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
echo $ECHO_N "checking for fftw_execute in -lfftw3... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24318
if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
24319
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24320
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24321
24322
24323
  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
24324
24325
24326
24327
24328
24329
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24330
24331
24332
24333
24334
24335
24336
/* 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
24337
24338
24339
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24340
return fftw_execute ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24341
24342
24343
24344
  ;
  return 0;
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24345
24346
24347
24348
24349
24350
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
24351
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24352
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24353
24354
24355
24356
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24358
24359
24360
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
24361
24362
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24363
  ac_cv_lib_fftw3_fftw_execute=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24364
else
24365
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24366
24367
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24368
	ac_cv_lib_fftw3_fftw_execute=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24369
24370
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24371
24372
24373
24374
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
24375
24376
24377
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_execute" >&6; }
if test $ac_cv_lib_fftw3_fftw_execute = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24378
  acx_fftw_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24379
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24380
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24381
24382
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24383
      if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24384

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
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
      if test xno = xyes; then
24396
24397
        { echo "$as_me:$LINENO: checking for fftwf_init_threads in -lfftw3f_threads" >&5
echo $ECHO_N "checking for fftwf_init_threads in -lfftw3f_threads... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24398
if test "${ac_cv_lib_fftw3f_threads_fftwf_init_threads+set}" = set; then
24399
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24400
24401
24402
24403
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
24404
24405
24406
24407
24408
24409
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
/* 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
24424
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24425
24426
24427
24428
24429
24430
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
24431
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24432
24433
24434
24435
24436
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24438
24439
24440
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
24441
24442
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24443
  ac_cv_lib_fftw3f_threads_fftwf_init_threads=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24444
else
24445
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24446
24447
24448
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_fftw3f_threads_fftwf_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24449
24450
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24451
24452
24453
24454
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
24455
24456
24457
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3f_threads_fftwf_init_threads" >&5
echo "${ECHO_T}$ac_cv_lib_fftw3f_threads_fftwf_init_threads" >&6; }
if test $ac_cv_lib_fftw3f_threads_fftwf_init_threads = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24458
24459
24460
  acx_fftw_ok=yes
else
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24461
24462
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
        if test x$acx_fftw_ok = xyes; then

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

          FFTW_LIBS="-L$fftw_libdir -lfftw3f_threads -lfftw3f"
        else
          FFTW_ERROR="FFTW single precision library in $fftw_libdir was compiled without multithreading support!"
        fi
      else
24474
24475
        { echo "$as_me:$LINENO: checking for fftw_init_threads in -lfftw3_threads" >&5
echo $ECHO_N "checking for fftw_init_threads in -lfftw3_threads... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24476
if test "${ac_cv_lib_fftw3_threads_fftw_init_threads+set}" = set; then
24477
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24478
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24479
24480
24481
  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
24482
24483
24484
24485
24486
24487
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24488
24489
24490
24491
24492
24493
24494
/* 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
24495
24496
24497
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24498
24499
24500
return fftw_init_threads ();
  ;
  return 0;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24501
24502
}
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24503
24504
24505
24506
24507
24508
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
24509
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24510
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24511
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24512
24513
24514
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24516
24517
24518
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
24519
24520
       } && test -s conftest$ac_exeext &&
       $as_test_x conftest$ac_exeext; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24521
  ac_cv_lib_fftw3_threads_fftw_init_threads=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24522
else
24523
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24524
24525
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24526
	ac_cv_lib_fftw3_threads_fftw_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24527
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24528
24529
24530
24531

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
24532
fi
24533
24534
24535
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_threads_fftw_init_threads" >&5
echo "${ECHO_T}$ac_cv_lib_fftw3_threads_fftw_init_threads" >&6; }
if test $ac_cv_lib_fftw3_threads_fftw_init_threads = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24536
24537
24538
  acx_fftw_ok=yes
else
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24539
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24540
24541

        if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24542
24543

cat >>confdefs.h <<\_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24544
#define HAVE_FFTWT 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24545
24546
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24547
24548
24549
24550
24551
24552
24553
          FFTW_LIBS="-L$fftw_libdir -lfftw3_threads -lfftw3"
        else
          FFTW_ERROR="FFTW double precision library in $fftw_libdir was compiled without multithreading support!"
        fi
      fi
    fi
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24554
24555
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24556
24557
24558
24559
24560
24561
24562
24563
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
24564
24565


Emmanuel Bertin's avatar
Emmanuel Bertin committed
24566
24567
24568
if test "$use_fftw" = "yes"; then
  LIBS="$FFTW_LIBS $LIBS"
else
24569
24570
  { { echo "$as_me:$LINENO: error: $FFTW_ERROR Exiting." >&5
echo "$as_me: error: $FFTW_ERROR Exiting." >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24571
24572
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24573

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24574
################## handle the ATLAS library(linear algebra) ##################
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24575
24576
24577
24578




Emmanuel Bertin's avatar
Emmanuel Bertin committed
24579
24580
24581
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
24582
24583


Emmanuel Bertin's avatar
Emmanuel Bertin committed
24584
for ac_header in cblas.h clapack.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24585
do
24586
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24587
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24588
24589
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24590
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24591
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24592
fi
24593
24594
24595
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24596
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24597
  # Is the header compilable?
24598
24599
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24600
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24601
24602
24603
24604
24605
24606
24607
24608
24609
/* 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
24610
24611
24612
24613
24614
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
24615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24616
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24617
24618
24619
24620
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24622
24623
24624
24625
24626
24627
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
24628
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24629
24630
24631
24632
24633
24634
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

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

# Is the header present?
24639
24640
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
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
24654
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24655
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24656
  ac_status=$?
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24657
24658
24659
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24661
24662
24663
24664
24665
24666
  (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
24667
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24668
24669
24670
24671
24672
24673
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
24674
24675
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24676
24677
24678
24679

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
24680
24681
24682
24683
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24684
24685
24686
    ac_header_preproc=yes
    ;;
  no:yes:* )
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24699
24700
24701
24702
24703
24704
24705
24706
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
24707
24708
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24709
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24710
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24711
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24712
  eval "$as_ac_Header=\$ac_header_preproc"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24713
fi
24714
24715
24716
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24717

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24718
fi
24719
if test `eval echo '${'$as_ac_Header'}'` = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24720
  cat >>confdefs.h <<_ACEOF
24721
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24722
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24723
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24724
24725
24726
24727
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24728
    if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24729

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24730
24731
24732
cat >>confdefs.h <<\_ACEOF
#define ATLAS_BLAS_H "cblas.h"
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24733
24734


Emmanuel Bertin's avatar
Emmanuel Bertin committed
24735
24736
24737
cat >>confdefs.h <<\_ACEOF
#define ATLAS_LAPACK_H "clapack.h"
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24738

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24739
    else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24740
24741


Emmanuel Bertin's avatar
Emmanuel Bertin committed
24742
for ac_header in atlas/cblas.h atlas/clapack.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24743
do
24744
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24745
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24746
24747
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24748
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24749
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24750
fi
24751
24752
24753
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24754
24755
else
  # Is the header compilable?
24756
24757
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
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
24768
24769
24770
24771
24772
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
24773
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24774
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24775
24776
24777
24778
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24780
24781
24782
24783
  (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
24784
24785
  ac_header_compiler=yes
else
24786
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24787
24788
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24789
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24790
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24791
24792

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

# Is the header present?
24797
24798
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24799
24800
24801
24802
24803
24804
24805
24806
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
24807
24808
24809
24810
24811
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
24812
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24813
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24814
24815
24816
24817
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24819
24820
24821
24822
  (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
24823
24824
  ac_header_preproc=yes
else
24825
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24826
24827
24828
24829
sed 's/^/| /' conftest.$ac_ext >&5

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24831
rm -f conftest.err conftest.$ac_ext
24832
24833
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24834
24835
24836
24837

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
24838
24839
24840
24841
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24842
24843
24844
    ac_header_preproc=yes
    ;;
  no:yes:* )
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24857
    ( cat <<\_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24858
24859
24860
24861
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24862
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24863
24864
    ;;
esac
24865
24866
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24867
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24868
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24869
24870
24871
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
24872
24873
24874
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24875
24876

fi
24877
if test `eval echo '${'$as_ac_Header'}'` = yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24878
  cat >>confdefs.h <<_ACEOF
24879
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24880
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24881
 acx_atlas_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24882
24883
24884
24885
fi

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24886
      if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24887

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24888
24889
cat >>confdefs.h <<\_ACEOF
#define ATLAS_BLAS_H "atlas/cblas.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24890
24891
24892
24893
_ACEOF


cat >>confdefs.h <<\_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24894
#define ATLAS_LAPACK_H "atlas/clapack.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24895
24896
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24897
24898
      else
        atlas_def=/usr/local/atlas
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24899

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24900
24901
24902

for ac_header in $atlas_def/include/cblas.h $atlas_def/include/clapack.h
do
24903
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24904
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24905
24906
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24907
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24908
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24909
fi
24910
24911
24912
ac_res=`eval echo '${'$as_ac_Header'}'`
	       { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24913
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24914
  # Is the header compilable?
24915
24916
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24917
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24918
24919
24920
24921
24922
24923
/* 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
24924
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24925
24926
_ACEOF
rm -f conftest.$ac_objext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24927
24928
24929
24930
24931
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
24932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24933
  (eval "$ac_compile") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24934
24935
24936
24937
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24939
24940
24941
24942
24943
  (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
24944
else
24945
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24946
24947
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24948
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24949
24950
fi

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24955
# Is the header present?
24956
24957
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24958
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24959
24960
24961
24962
24963
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24964
#include <$ac_header>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24965
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24966
24967
24968
24969
24970
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
24971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24972
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24973
24974
24975
24976
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24978
24979
24980
24981
24982
  (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
24983
else
24984
  echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24985
24986
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24987
  ac_header_preproc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24988
24989
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24990
rm -f conftest.err conftest.$ac_ext
24991
24992
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
echo "${ECHO_T}$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24993

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24994
24995
24996
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
24997
24998
24999
25000
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
For faster browsing, not all history is shown. View entire blame