configure 913 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24001
else
24002
24003
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
fi


else
        PTHREAD_CC="$CC"
fi





# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
if test x"$acx_pthread_ok" = xyes; then

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

        :
else
        acx_pthread_ok=no

fi


  CC="$PTHREAD_CC"
24030
  AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS -D_REENTRANT"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
  LIBS="$PTHREAD_LIBS $LIBS"
fi
 if test $use_pthreads = "yes"; then
  USE_THREADS_TRUE=
  USE_THREADS_FALSE='#'
else
  USE_THREADS_TRUE='#'
  USE_THREADS_FALSE=
fi


################ handle the FFTW library (Fourier transforms) ################
24043
if test "$use_model" = "yes"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24044
24045
24046
24047
24048
24049
24050
24051




acx_fftw_ok=no
if test x$fftw_incdir = x; then
  if test x$fftw_libdir = x; then
    if test "${ac_cv_header_fftw3_h+set}" = set; then
24052
24053
  { $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
24054
if test "${ac_cv_header_fftw3_h+set}" = set; then
24055
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24056
fi
24057
24058
{ $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
24059
24060
else
  # Is the header compilable?
24061
24062
{ $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
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
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
24078
24079
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24080
24081
24082
24083
24084
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24085
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24086
24087
24088
24089
24090
24091
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
24092
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24093
24094
24095
24096
24097
24098
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

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

# Is the header present?
24103
24104
{ $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
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
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
24118
24119
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24120
24121
24122
24123
24124
  (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
24125
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24126
24127
24128
24129
24130
24131
  (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
24132
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24133
24134
24135
24136
24137
24138
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

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

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
24145
24146
24147
24148
    { $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
24149
24150
24151
    ac_header_preproc=yes
    ;;
  no:yes:* )
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
    { $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
24164
24165
24166
24167
24168
24169
24170
24171
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
24172
24173
{ $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
24174
if test "${ac_cv_header_fftw3_h+set}" = set; then
24175
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24176
24177
24178
else
  ac_cv_header_fftw3_h=$ac_header_preproc
fi
24179
24180
{ $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
24181
24182

fi
24183
if test "x$ac_cv_header_fftw3_h" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24184
24185
24186
24187
24188
24189
24190
  acx_fftw_ok=yes
fi


    if test x$acx_fftw_ok = xyes; then

cat >>confdefs.h <<\_ACEOF
24191
#define FFTW_H "fftw3.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24192
24193
24194
24195
_ACEOF

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

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24243
24244
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24245
24246

# Is the header present?
24247
24248
{ $as_echo "$as_me:$LINENO: checking fftw/fftw3.h presence" >&5
$as_echo_n "checking fftw/fftw3.h presence... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <fftw/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
24262
24263
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24264
24265
24266
24267
24268
  (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
24269
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24270
24271
24272
24273
24274
24275
  (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
24276
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24277
24278
24279
24280
24281
24282
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
24283
24284
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24285
24286
24287
24288

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
24289
24290
24291
24292
    { $as_echo "$as_me:$LINENO: WARNING: fftw/fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: fftw/fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:$LINENO: WARNING: fftw/fftw3.h: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: fftw/fftw3.h: proceeding with the compiler's result" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24293
24294
24295
    ac_header_preproc=yes
    ;;
  no:yes:* )
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
    { $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
24308
24309
24310
24311
24312
24313
24314
24315
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
24316
24317
{ $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
24318
if test "${ac_cv_header_fftw_fftw3_h+set}" = set; then
24319
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24320
24321
24322
else
  ac_cv_header_fftw_fftw3_h=$ac_header_preproc
fi
24323
24324
{ $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
24325
24326

fi
24327
if test "x$ac_cv_header_fftw_fftw3_h" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
  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
24343
    as_ac_Header=`$as_echo "ac_cv_header_$fftw_libdir/include/fftw3.h" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24344
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24345
24346
  { $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
24347
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24348
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24349
fi
24350
24351
24352
24353
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
24354
24355
else
  # Is the header compilable?
24356
24357
{ $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
24358
24359
24360
24361
24362
24363
24364
24365
24366
24367
24368
24369
24370
24371
24372
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
24373
24374
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24375
24376
24377
24378
24379
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24380
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24381
24382
24383
24384
24385
24386
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
24387
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24388
24389
24390
24391
24392
24393
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24394
24395
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24396
24397

# Is the header present?
24398
24399
{ $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
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
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
24413
24414
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24415
24416
24417
24418
24419
  (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
24420
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24421
24422
24423
24424
24425
24426
  (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
24427
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24428
24429
24430
24431
24432
24433
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
24434
24435
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24436
24437
24438
24439

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
24440
24441
24442
24443
    { $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
24444
24445
24446
    ac_header_preproc=yes
    ;;
  no:yes:* )
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
    { $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
24459
24460
24461
24462
24463
24464
24465
24466
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
24467
24468
{ $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
24469
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24470
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24471
24472
24473
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
24474
24475
24476
24477
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
24478
24479

fi
24480
24481
24482
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
24483
24484
24485
24486
24487
24488
24489
  acx_fftw_ok=yes
fi


    if test x$acx_fftw_ok = xyes; then

cat >>confdefs.h <<\_ACEOF
24490
#define FFTW_H $fftw_libdir"/include/fftw3.h
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24491
24492
24493
24494
_ACEOF

    else
      if test "${ac_cv_header_fftw3_h+set}" = set; then
24495
24496
  { $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
24497
if test "${ac_cv_header_fftw3_h+set}" = set; then
24498
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24499
fi
24500
24501
{ $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
24502
24503
else
  # Is the header compilable?
24504
24505
{ $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
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
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
24521
24522
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24523
24524
24525
24526
24527
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24528
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24529
24530
24531
24532
24533
24534
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
24535
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24536
24537
24538
24539
24540
24541
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24542
24543
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24544
24545

# Is the header present?
24546
24547
{ $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
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
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
24561
24562
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24563
24564
24565
24566
24567
  (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
24568
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24569
24570
24571
24572
24573
24574
  (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
24575
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24576
24577
24578
24579
24580
24581
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
24582
24583
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24584
24585
24586
24587

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
24588
24589
24590
24591
    { $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
24592
24593
24594
    ac_header_preproc=yes
    ;;
  no:yes:* )
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
    { $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
24607
24608
24609
24610
24611
24612
24613
24614
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
    ;;
esac
24615
24616
{ $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
24617
if test "${ac_cv_header_fftw3_h+set}" = set; then
24618
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24619
24620
24621
else
  ac_cv_header_fftw3_h=$ac_header_preproc
fi
24622
24623
{ $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
24624
24625

fi
24626
if test "x$ac_cv_header_fftw3_h" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24627
24628
24629
24630
24631
24632
24633
  acx_fftw_ok=yes
fi


      if test x$acx_fftw_ok = xyes; then

cat >>confdefs.h <<\_ACEOF
24634
#define FFTW_H "fftw3.h"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24635
24636
24637
24638
24639
24640
24641
24642
_ACEOF

      else
        FFTW_ERROR="FFTW include files not found in $fftw_libdir/include!"
      fi
    fi
  fi
else
24643
  as_ac_Header=`$as_echo "ac_cv_header_$fftw_incdir/fftw3.h" | $as_tr_sh`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24644
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24645
24646
  { $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
24647
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24648
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24649
fi
24650
24651
24652
24653
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
24654
24655
else
  # Is the header compilable?
24656
24657
{ $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
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
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
24673
24674
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24675
24676
24677
24678
24679
  (eval "$ac_compile") 2>conftest.er1
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24680
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24681
24682
24683
24684
24685
24686
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  ac_header_compiler=yes
else
24687
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24688
24689
24690
24691
24692
24693
sed 's/^/| /' conftest.$ac_ext >&5

	ac_header_compiler=no
fi

rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24694
24695
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24696
24697

# Is the header present?
24698
24699
{ $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
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
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
24713
24714
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24715
24716
24717
24718
24719
  (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
24720
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24721
24722
24723
24724
24725
24726
  (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
24727
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24728
24729
24730
24731
24732
24733
sed 's/^/| /' conftest.$ac_ext >&5

  ac_header_preproc=no
fi

rm -f conftest.err conftest.$ac_ext
24734
24735
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24736
24737
24738
24739

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  yes:no: )
24740
24741
24742
24743
    { $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
24744
24745
24746
    ac_header_preproc=yes
    ;;
  no:yes:* )
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
    { $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
24759
24760
24761
24762
24763
24764
    ( cat <<\_ASBOX
## ---------------------------- ##
## Report this to bertin@iap.fr ##
## ---------------------------- ##
_ASBOX
     ) | sed "s/^/$as_me: WARNING:     /" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24765
24766
    ;;
esac
24767
24768
{ $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
24769
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24770
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24771
24772
24773
else
  eval "$as_ac_Header=\$ac_header_preproc"
fi
24774
24775
24776
24777
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
24778
24779

fi
24780
24781
24782
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
24783
  acx_fftw_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24784
24785
24786
fi


Emmanuel Bertin's avatar
Emmanuel Bertin committed
24787
  if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24788

24789
cat >>confdefs.h <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24790
24791
24792
24793
24794
24795
24796
#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
24797
24798


Emmanuel Bertin's avatar
Emmanuel Bertin committed
24799
24800
24801
FFTW_LIBS=""
OLIBS="$LIBS"
LIBS=""
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24802

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24803
24804
if test x$acx_fftw_ok = xyes; then
  if test x$fftw_libdir = x; then
24805
    if test xyes = xyes; then
24806
24807
      { $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
24808
if test "${ac_cv_lib_fftw3f_fftwf_execute+set}" = set; then
24809
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24810
24811
else
  ac_check_lib_save_LIBS=$LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24812
LIBS="-lfftw3f -lm $LIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24813
24814
24815
24816
24817
24818
24819
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
24820
24821
24822
/* 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
24823
24824
24825
#ifdef __cplusplus
extern "C"
#endif
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24826
char fftwf_execute ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24827
24828
24829
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24830
return fftwf_execute ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24831
24832
24833
24834
24835
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24836
24837
24838
24839
24840
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
24841
24842
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24843
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24844
24845
24846
24847
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
24848
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24849
24850
24851
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
24852
24853
24854
24855
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24856
  ac_cv_lib_fftw3f_fftwf_execute=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24857
else
24858
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24859
24860
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24861
	ac_cv_lib_fftw3f_fftwf_execute=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24862
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24863

24864
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24865
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24866
24867
24868
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
24869
24870
24871
{ $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
24872
24873
24874
  acx_fftw_ok=yes
else
  acx_fftw_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24875
24876
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24877
      if test x$acx_fftw_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
24878

Emmanuel Bertin's avatar
Emmanuel Bertin committed
24879
24880
24881
24882
24883
24884
24885
24886
24887
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
24888
24889
      { $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
24890
if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
  $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
24971
      if test xyes = xyes; then
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
        { $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
For faster browsing, not all history is shown. View entire blame