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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24053
	ac_cv_lib_fftw3_fftw_execute=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24054
24055
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24056
24057
24058
24059
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
24060
24061
24062
{ 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
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
  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
24081
24082
        { 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
24083
if test "${ac_cv_lib_fftw3f_threads_fftwf_init_threads+set}" = set; then
24084
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24085
24086
24087
24088
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
24089
24090
24091
24092
24093
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24133
	ac_cv_lib_fftw3f_threads_fftwf_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24134
24135
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24136
24137
24138
24139
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
24140
24141
24142
{ 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
24143
24144
24145
  acx_fftw_ok=yes
else
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24146
24147
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24148
        if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24149

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24150
24151
24152
24153
24154
24155
24156
24157
24158
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
24159
24160
        { 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
24161
if test "${ac_cv_lib_fftw3_threads_fftw_init_threads+set}" = set; then
24162
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24163
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24164
24165
24166
  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
24167
24168
24169
24170
24171
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24172
24173
24174
24175
24176
24177

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24211
	ac_cv_lib_fftw3_threads_fftw_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24212
24213
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24214
24215
24216
24217
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
24218
24219
24220
{ 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
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
  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
24240
24241
      { 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
24242
if test "${ac_cv_lib_fftw3f_fftwf_execute+set}" = set; then
24243
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24244
24245
24246
24247
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
24248
24249
24250
24251
24252
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24292
	ac_cv_lib_fftw3f_fftwf_execute=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24293
24294
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24295
24296
24297
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
24298
fi
24299
24300
24301
{ 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
24302
  acx_fftw_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24303
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24304
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24305
24306
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24307
      if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24308

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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24370
	ac_cv_lib_fftw3_fftw_execute=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24371
24372
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24373
24374
24375
24376
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
24377
24378
24379
{ 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
24380
  acx_fftw_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24381
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24382
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24383
24384
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24385
      if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24386

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

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

	ac_cv_lib_fftw3f_threads_fftwf_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24451
24452
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24453
24454
24455
24456
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
24457
24458
24459
{ 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
24460
24461
24462
  acx_fftw_ok=yes
else
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24463
24464
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
        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
24476
24477
        { 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
24478
if test "${ac_cv_lib_fftw3_threads_fftw_init_threads+set}" = set; then
24479
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24480
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24481
24482
24483
  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
24484
24485
24486
24487
24488
24489
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24528
	ac_cv_lib_fftw3_threads_fftw_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24529
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24530
24531
24532
24533

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
24534
fi
24535
24536
24537
{ 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
24538
24539
24540
  acx_fftw_ok=yes
else
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24541
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24542
24543

        if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24544
24545

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24549
24550
24551
24552
24553
24554
24555
          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
24556
24557
fi

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


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

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




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


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

	ac_header_compiler=no
fi

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

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

  ac_header_preproc=no
fi

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

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
24682
24683
24684
24685
    { 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
24686
24687
24688
    ac_header_preproc=yes
    ;;
  no:yes:* )
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
    { 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
24701
24702
24703
24704
24705
24706
24707
24708
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
24709
24710
{ 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
24711
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24712
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24713
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24714
  eval "$as_ac_Header=\$ac_header_preproc"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24715
fi
24716
24717
24718
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
24719

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

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24730
    if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24731

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


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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24741
    else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24742
24743


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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24791
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24792
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24793
24794

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

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

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

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

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
24840
24841
24842
24843
    { 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
24844
24845
24846
    ac_header_preproc=yes
    ;;
  no:yes:* )
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
    { 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
24859
    ( cat <<\_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24860
24861
24862
24863
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24864
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24865
24866
    ;;
esac
24867
24868
{ 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
24869
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24870
  echo $ECHO_N "(cached) $ECHO_C" >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24871
24872
24873
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
24874
24875
24876
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
24877
24878

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

done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24888
      if test x$acx_atlas_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24889

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


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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24899
24900
      else
        atlas_def=/usr/local/atlas
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24901

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24902
24903
24904

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24950
	ac_header_compiler=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24951
24952
fi

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

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24989
  ac_header_preproc=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24990
24991
fi

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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24996
24997
24998
# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
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;}
For faster browsing, not all history is shown. View entire blame