configure 904 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24001
  no:yes:* )
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
    { $as_echo "$as_me:$LINENO: WARNING: fftw/fftw3.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: fftw/fftw3.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: fftw/fftw3.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: fftw/fftw3.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: fftw/fftw3.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: fftw/fftw3.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: fftw/fftw3.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: fftw/fftw3.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: fftw/fftw3.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: fftw/fftw3.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: fftw/fftw3.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: fftw/fftw3.h: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24014
24015
24016
24017
24018
24019
24020
24021
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
24022
24023
{ $as_echo "$as_me:$LINENO: checking for fftw/fftw3.h" >&5
$as_echo_n "checking for fftw/fftw3.h... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24024
if test "${ac_cv_header_fftw_fftw3_h+set}" = set; then
24025
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24026
24027
24028
else
  ac_cv_header_fftw_fftw3_h=$ac_header_preproc
fi
24029
24030
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw_fftw3_h" >&5
$as_echo "$ac_cv_header_fftw_fftw3_h" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24031
24032

fi
24033
if test "x$ac_cv_header_fftw_fftw3_h" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
  acx_fftw_ok=yes
fi


      if test x$acx_fftw_ok = xyes; then

cat >>confdefs.h <<\_ACEOF
#define FFTW_H "fftw/fftw3.h"
_ACEOF

      else
        FFTW_ERROR="FFTW include files not found in default location!"
      fi
    fi
  else
24049
    as_ac_Header=`$as_echo "ac_cv_header_$fftw_libdir/include/fftw3.h" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24050
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24051
24052
  { $as_echo "$as_me:$LINENO: checking for $fftw_libdir/include/fftw3.h" >&5
$as_echo_n "checking for $fftw_libdir/include/fftw3.h... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24053
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24054
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24055
fi
24056
24057
24058
24059
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24060
24061
else
  # Is the header compilable?
24062
24063
{ $as_echo "$as_me:$LINENO: checking $fftw_libdir/include/fftw3.h usability" >&5
$as_echo_n "checking $fftw_libdir/include/fftw3.h usability... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
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 <$fftw_libdir/include/fftw3.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
24079
24080
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24081
24082
24083
24084
24085
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24086
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24087
24088
24089
24090
24091
24092
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
24093
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24094
24095
24096
24097
24098
24099
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24100
24101
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24102
24103

# Is the header present?
24104
24105
{ $as_echo "$as_me:$LINENO: checking $fftw_libdir/include/fftw3.h presence" >&5
$as_echo_n "checking $fftw_libdir/include/fftw3.h presence... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$fftw_libdir/include/fftw3.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
24119
24120
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24121
24122
24123
24124
24125
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24126
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24127
24128
24129
24130
24131
24132
  (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
24133
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24134
24135
24136
24137
24138
24139
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
24140
24141
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24142
24143
24144
24145

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
24146
24147
24148
24149
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_libdir/include/fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $fftw_libdir/include/fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_libdir/include/fftw3.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $fftw_libdir/include/fftw3.h: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24150
24151
24152
    ac_header_preproc=yes
    ;;
  no:yes:* )
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_libdir/include/fftw3.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $fftw_libdir/include/fftw3.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_libdir/include/fftw3.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $fftw_libdir/include/fftw3.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_libdir/include/fftw3.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $fftw_libdir/include/fftw3.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_libdir/include/fftw3.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $fftw_libdir/include/fftw3.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_libdir/include/fftw3.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $fftw_libdir/include/fftw3.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_libdir/include/fftw3.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $fftw_libdir/include/fftw3.h: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24165
24166
24167
24168
24169
24170
24171
24172
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
24173
24174
{ $as_echo "$as_me:$LINENO: checking for $fftw_libdir/include/fftw3.h" >&5
$as_echo_n "checking for $fftw_libdir/include/fftw3.h... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24175
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24176
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24177
24178
24179
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
24180
24181
24182
24183
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24184
24185

fi
24186
24187
24188
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
  acx_fftw_ok=yes
fi


    if test x$acx_fftw_ok = xyes; then

cat >>confdefs.h <<\_ACEOF
#define FFTW_H "$fftw_libdir/include/fftw3.h"
_ACEOF

    else
      if test "${ac_cv_header_fftw3_h+set}" = set; then
24201
24202
  { $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
$as_echo_n "checking for fftw3.h... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24203
if test "${ac_cv_header_fftw3_h+set}" = set; then
24204
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24205
fi
24206
24207
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
$as_echo "$ac_cv_header_fftw3_h" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24208
24209
else
  # Is the header compilable?
24210
24211
{ $as_echo "$as_me:$LINENO: checking fftw3.h usability" >&5
$as_echo_n "checking fftw3.h usability... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
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 <fftw3.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
24227
24228
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24229
24230
24231
24232
24233
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24234
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24235
24236
24237
24238
24239
24240
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
24241
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24242
24243
24244
24245
24246
24247
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24248
24249
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24250
24251

# Is the header present?
24252
24253
{ $as_echo "$as_me:$LINENO: checking fftw3.h presence" >&5
$as_echo_n "checking fftw3.h presence... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <fftw3.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
24267
24268
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24269
24270
24271
24272
24273
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24274
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24275
24276
24277
24278
24279
24280
  (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
24281
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24282
24283
24284
24285
24286
24287
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
24288
24289
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24290
24291
24292
24293

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
24294
24295
24296
24297
    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24298
24299
24300
    ac_header_preproc=yes
    ;;
  no:yes:* )
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: fftw3.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24313
24314
24315
24316
24317
24318
24319
24320
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
24321
24322
{ $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
$as_echo_n "checking for fftw3.h... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24323
if test "${ac_cv_header_fftw3_h+set}" = set; then
24324
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24325
24326
24327
else
  ac_cv_header_fftw3_h=$ac_header_preproc
fi
24328
24329
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
$as_echo "$ac_cv_header_fftw3_h" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24330
24331

fi
24332
if test "x$ac_cv_header_fftw3_h" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
  acx_fftw_ok=yes
fi


      if test x$acx_fftw_ok = xyes; then

cat >>confdefs.h <<\_ACEOF
#define FFTW_H "fftw.h"
_ACEOF

      else
        FFTW_ERROR="FFTW include files not found in $fftw_libdir/include!"
      fi
    fi
  fi
else
24349
  as_ac_Header=`$as_echo "ac_cv_header_$fftw_incdir/fftw3.h" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24350
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24351
24352
  { $as_echo "$as_me:$LINENO: checking for $fftw_incdir/fftw3.h" >&5
$as_echo_n "checking for $fftw_incdir/fftw3.h... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24353
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24354
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24355
fi
24356
24357
24358
24359
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24360
24361
else
  # Is the header compilable?
24362
24363
{ $as_echo "$as_me:$LINENO: checking $fftw_incdir/fftw3.h usability" >&5
$as_echo_n "checking $fftw_incdir/fftw3.h usability... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24364
24365
24366
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
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 <$fftw_incdir/fftw3.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
24379
24380
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24381
24382
24383
24384
24385
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24386
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24387
24388
24389
24390
24391
24392
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
24393
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24394
24395
24396
24397
24398
24399
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24400
24401
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24402
24403

# Is the header present?
24404
24405
{ $as_echo "$as_me:$LINENO: checking $fftw_incdir/fftw3.h presence" >&5
$as_echo_n "checking $fftw_incdir/fftw3.h presence... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24406
24407
24408
24409
24410
24411
24412
24413
24414
24415
24416
24417
24418
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <$fftw_incdir/fftw3.h>
_ACEOF
if { (ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
24419
24420
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24421
24422
24423
24424
24425
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24426
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24427
24428
24429
24430
24431
24432
  (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
24433
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24434
24435
24436
24437
24438
24439
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
24440
24441
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24442
24443
24444
24445

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
24446
24447
24448
24449
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_incdir/fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $fftw_incdir/fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_incdir/fftw3.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $fftw_incdir/fftw3.h: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24450
24451
24452
    ac_header_preproc=yes
    ;;
  no:yes:* )
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_incdir/fftw3.h: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $fftw_incdir/fftw3.h: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_incdir/fftw3.h:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $fftw_incdir/fftw3.h:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_incdir/fftw3.h: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $fftw_incdir/fftw3.h: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_incdir/fftw3.h:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $fftw_incdir/fftw3.h:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_incdir/fftw3.h: proceeding with the preprocessor's result" >&5
$as_echo "$as_me: WARNING: $fftw_incdir/fftw3.h: proceeding with the preprocessor's result" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: $fftw_incdir/fftw3.h: in the future, the compiler will take precedence" >&5
$as_echo "$as_me: WARNING: $fftw_incdir/fftw3.h: in the future, the compiler will take precedence" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24465
24466
24467
24468
24469
24470
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24471
24472
    ;;
esac
24473
24474
{ $as_echo "$as_me:$LINENO: checking for $fftw_incdir/fftw3.h" >&5
$as_echo_n "checking for $fftw_incdir/fftw3.h... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24475
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24476
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24477
24478
24479
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
24480
24481
24482
24483
ac_res=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24484
24485

fi
24486
24487
24488
as_val=`eval 'as_val=${'$as_ac_Header'}
		 $as_echo "$as_val"'`
   if test "x$as_val" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24489
  acx_fftw_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24490
24491
24492
fi


Emmanuel Bertin's avatar
Emmanuel Bertin committed
24493
  if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24494

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24495
24496
24497
24498
24499
24500
24501
24502
cat >>confdefs.h <<\_ACEOF
#define FFTW_H "$fftw_incdir/fftw3.h"
_ACEOF

  else
    FFTW_ERROR="FFTW include files not found in $fftw_incdir!"
  fi
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24503
24504


Emmanuel Bertin's avatar
Emmanuel Bertin committed
24505
24506
24507
FFTW_LIBS=""
OLIBS="$LIBS"
LIBS=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24508

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24509
24510
if test x$acx_fftw_ok = xyes; then
  if test x$fftw_libdir = x; then
24511
    if test xyes = xyes; then
24512
24513
      { $as_echo "$as_me:$LINENO: checking for fftwf_execute in -lfftw3f" >&5
$as_echo_n "checking for fftwf_execute in -lfftw3f... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24514
if test "${ac_cv_lib_fftw3f_fftwf_execute+set}" = set; then
24515
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24516
24517
else
  ac_check_lib_save_LIBS=$LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24518
LIBS="-lfftw3f -lm $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24519
24520
24521
24522
24523
24524
24525
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24526
24527
24528
/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24529
24530
24531
#ifdef __cplusplus
extern "C"
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24532
char fftwf_execute ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24533
24534
24535
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24536
return fftwf_execute ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24537
24538
24539
24540
24541
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24542
24543
24544
24545
24546
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
24547
24548
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24549
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24550
24551
24552
24553
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24554
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24555
24556
24557
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
24558
24559
24560
24561
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24562
  ac_cv_lib_fftw3f_fftwf_execute=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24563
else
24564
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24565
24566
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24567
	ac_cv_lib_fftw3f_fftwf_execute=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24568
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24569

24570
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24571
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24572
24573
24574
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
24575
24576
24577
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3f_fftwf_execute" >&5
$as_echo "$ac_cv_lib_fftw3f_fftwf_execute" >&6; }
if test "x$ac_cv_lib_fftw3f_fftwf_execute" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24578
24579
24580
  acx_fftw_ok=yes
else
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24581
24582
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24583
      if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24584

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24585
24586
24587
24588
24589
24590
24591
24592
24593
cat >>confdefs.h <<\_ACEOF
#define HAVE_FFTWF 1
_ACEOF

        FFTW_LIBS="-lfftw3f"
      else
        FFTW_ERROR="FFTW single precision library files not found at usual locations!"
      fi
    else
24594
24595
      { $as_echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24596
if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3 -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fftw_execute ();
int
main ()
{
return fftw_execute ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_fftw3_fftw_execute=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_fftw3_fftw_execute=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then
  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
24677
      if test xyes = xyes; then
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
        { $as_echo "$as_me:$LINENO: checking for fftwf_init_threads in -lfftw3f" >&5
$as_echo_n "checking for fftwf_init_threads in -lfftw3f... " >&6; }
if test "${ac_cv_lib_fftw3f_fftwf_init_threads+set}" = set; then
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lfftw3f -lm -lpthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char fftwf_init_threads ();
int
main ()
{
return fftwf_init_threads ();
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
  (eval "$ac_link") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_fftw3f_fftwf_init_threads=yes
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_cv_lib_fftw3f_fftwf_init_threads=no
fi

rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3f_fftwf_init_threads" >&5
$as_echo "$ac_cv_lib_fftw3f_fftwf_init_threads" >&6; }
if test "x$ac_cv_lib_fftw3f_fftwf_init_threads" = x""yes; then
  acx_fftwt_ok=yes
else
  acx_fftwt_ok=no
fi

        if test x$acx_fftwt_ok = xyes; then

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

          FFTW_LIBS="-lfftw3f"
        else
          { $as_echo "$as_me:$LINENO: checking for fftwf_init_threads in -lfftw3f_threads" >&5
$as_echo_n "checking for fftwf_init_threads in -lfftw3f_threads... " >&6; }
if test "${ac_cv_lib_fftw3f_threads_fftwf_init_threads+set}" = set; then
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24761
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24762
  ac_check_lib_save_LIBS=$LIBS
24763
LIBS="-lfftw3f_threads -lfftw3f -lm -lpthread $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24764
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24765
24766
24767
24768
24769
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24770
24771
24772
24773
24774
24775

/* 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
24776
#endif
24777
char fftwf_init_threads ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24778
24779
24780
int
main ()
{
24781
return fftwf_init_threads ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24782
24783
24784
  ;
  return 0;
}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24785
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24786
24787
24788
24789
24790
24791
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
24792
24793
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24794
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24795
24796
24797
24798
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24799
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24800
24801
24802
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
24803
24804
24805
24806
24807
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_fftw3f_threads_fftwf_init_threads=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24808
else
24809
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24810
24811
sed 's/^/| /' conftest.$ac_ext >&5

24812
	ac_cv_lib_fftw3f_threads_fftwf_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24813
24814
fi

24815
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24816
24817
24818
24819
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
24820
24821
24822
24823
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3f_threads_fftwf_init_threads" >&5
$as_echo "$ac_cv_lib_fftw3f_threads_fftwf_init_threads" >&6; }
if test "x$ac_cv_lib_fftw3f_threads_fftwf_init_threads" = x""yes; then
  acx_fftwt_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24824
else
24825
  acx_fftwt_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24826
24827
fi

24828
          if test x$acx_fftwt_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24829
24830

cat >>confdefs.h <<\_ACEOF
24831
#define HAVE_FFTWF_MP 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24832
24833
_ACEOF

24834
24835
24836
24837
24838
24839
            FFTW_LIBS="-lfftw3f_threads -lfftw3f"
          else
            FFTW_WARN="FFTW single precision library was compiled without multithreading support!"

          fi
        fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24840
      else
24841
24842
24843
24844
        { $as_echo "$as_me:$LINENO: checking for fftw_init_threads in -lfftw3" >&5
$as_echo_n "checking for fftw_init_threads in -lfftw3... " >&6; }
if test "${ac_cv_lib_fftw3_fftw_init_threads+set}" = set; then
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24845
24846
else
  ac_check_lib_save_LIBS=$LIBS
24847
LIBS="-lfftw3 -lm -lpthread $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24848
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24849
24850
24851
24852
24853
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24854
24855
24856
24857
24858
24859
24860

/* 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
24861
char fftw_init_threads ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24862
24863
24864
int
main ()
{
24865
return fftw_init_threads ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24866
24867
24868
  ;
  return 0;
}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24869
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24870
24871
24872
24873
24874
24875
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
24876
24877
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24878
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24879
24880
24881
24882
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24883
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24884
24885
24886
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
24887
24888
24889
24890
24891
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
  ac_cv_lib_fftw3_fftw_init_threads=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24892
else
24893
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24894
24895
sed 's/^/| /' conftest.$ac_ext >&5

24896
	ac_cv_lib_fftw3_fftw_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24897
24898
fi

24899
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24900
24901
24902
24903
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
24904
24905
24906
24907
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_init_threads" >&5
$as_echo "$ac_cv_lib_fftw3_fftw_init_threads" >&6; }
if test "x$ac_cv_lib_fftw3_fftw_init_threads" = x""yes; then
  acx_fftwt_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24908
else
24909
  acx_fftwt_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24910
24911
fi

24912
        if test x$acx_fftwt_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24913

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24914
cat >>confdefs.h <<\_ACEOF
24915
#define HAVE_FFTW_MP 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24916
24917
_ACEOF

24918
          FFTW_LIBS="-lfftw3"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24919
        else
24920
24921
          { $as_echo "$as_me:$LINENO: checking for fftw_init_threads in -lfftw3_threads" >&5
$as_echo_n "checking for fftw_init_threads in -lfftw3_threads... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24922
if test "${ac_cv_lib_fftw3_threads_fftw_init_threads+set}" = set; then
24923
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24924
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24925
24926
24927
  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
24928
24929
24930
24931
24932
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24933
24934
24935
24936
24937
24938

/* 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
24939
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24940
24941
24942
24943
24944
24945
24946
24947
char fftw_init_threads ();
int
main ()
{
return fftw_init_threads ();
  ;
  return 0;
}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24948
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24949
24950
24951
24952
24953
24954
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
24955
24956
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24957
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24958
24959
24960
24961
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24962
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24963
24964
24965
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
24966
24967
24968
24969
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24970
  ac_cv_lib_fftw3_threads_fftw_init_threads=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24971
else
24972
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24973
24974
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24975
	ac_cv_lib_fftw3_threads_fftw_init_threads=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24976
24977
fi

24978
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24979
24980
24981
24982
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
24983
24984
24985
24986
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_threads_fftw_init_threads" >&5
$as_echo "$ac_cv_lib_fftw3_threads_fftw_init_threads" >&6; }
if test "x$ac_cv_lib_fftw3_threads_fftw_init_threads" = x""yes; then
  acx_fftwt_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24987
else
24988
  acx_fftwt_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24989
24990
fi

24991
          if test x$acx_fftwt_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24992
24993

cat >>confdefs.h <<\_ACEOF
24994
#define HAVE_FFTW_MP 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24995
24996
_ACEOF

24997
24998
24999
25000
            FFTW_LIBS="-lfftw3_threads -lfftw3"
          else
            FFTW_WARN="FFTW double precision library was compiled without multithreading support!"

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