comparison configure.in @ 4773:ccfbd6047a54

[project @ 2004-02-16 19:02:32 by jwe]
author jwe
date Mon, 16 Feb 2004 19:02:33 +0000
parents 8ece12f60ba2
children fc316bde0053
comparison
equal deleted inserted replaced
4772:9eed17b2c8d1 4773:ccfbd6047a54
27 27
28 EXTERN_CFLAGS="$CFLAGS" 28 EXTERN_CFLAGS="$CFLAGS"
29 EXTERN_CXXFLAGS="$CXXFLAGS" 29 EXTERN_CXXFLAGS="$CXXFLAGS"
30 30
31 AC_INIT 31 AC_INIT
32 AC_REVISION($Revision: 1.445 $) 32 AC_REVISION($Revision: 1.446 $)
33 AC_PREREQ(2.57) 33 AC_PREREQ(2.57)
34 AC_CONFIG_SRCDIR([src/octave.cc]) 34 AC_CONFIG_SRCDIR([src/octave.cc])
35 AC_CONFIG_HEADER(config.h) 35 AC_CONFIG_HEADER(config.h)
36 36
37 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) 37 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.])
405 AC_ARG_WITH(fftw, 405 AC_ARG_WITH(fftw,
406 [ --without-fftw use included fftpack instead of installed fftw], 406 [ --without-fftw use included fftpack instead of installed fftw],
407 with_fftw=$withval, with_fftw=yes) 407 with_fftw=$withval, with_fftw=yes)
408 408
409 if test "$with_fftw" = "yes"; then 409 if test "$with_fftw" = "yes"; then
410 have_fftw_header=no 410 have_fftw3_header=no
411 AC_CHECK_HEADERS(dfftw.h fftw.h, [have_fftw_header=yes; break]) 411 with_fftw3=no
412 if test "$have_fftw_header" = yes; then 412 AC_CHECK_HEADER(fftw3.h, [have_fftw3_header=yes; break])
413 AC_CHECK_LIB(dfftw, fftw_create_plan, FFTW_LIBS="-ldfftw", 413 if test "$have_fftw3_header" = yes; then
414 [AC_CHECK_LIB(fftw, fftw_create_plan, FFTW_LIBS="-lfftw", with_fftw=no)]) 414 AC_CHECK_LIB(fftw3, fftw_plan_dft_1d, [FFTW_LIBS="-lfftw3"; with_fftw3=yes])
415 else
416 with_fftw=no
417 fi 415 fi
418 fi 416 fi
419 417
420 if test "$with_fftw" = yes; then 418 if test "$with_fftw" = yes && test "$with_fftw3" = yes; then
421 FFT_DIR='' 419 FFT_DIR=''
422 AC_DEFINE(HAVE_FFTW, 1, [Define if the FFTW library is available.]) 420 AC_DEFINE(HAVE_FFTW3, 1, [Define if the FFTW3 library is used.])
423 fi 421 fi
424 422
425 WITH_MPI=true 423 WITH_MPI=true
426 AC_ARG_WITH(mpi, 424 AC_ARG_WITH(mpi,
427 [ --without-mpi don't use MPI], 425 [ --without-mpi don't use MPI],