Skip to content

Commit

Permalink
Update configure to accept --without-fftw3 and --without-libpng
Browse files Browse the repository at this point in the history
  • Loading branch information
hiromatsui committed Nov 27, 2024
1 parent fc47b74 commit e275c19
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
17 changes: 14 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -1460,8 +1460,10 @@ Optional Features:
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-fftw3 Use fftw3 library
--with-fftw3 Use fftw3 library
--without-fftw3 to disable fftw3 library
--with-libpng Use libpng library
--without-libpng to disable libpng library
--with-hdf5=yes/no/PATH full path of h5pcc for parallel HDF5 configuration
--with-blas=<lib> use BLAS library <lib>
--with-zlib=DIR root directory path of zlib installation defaults to
Expand Down Expand Up @@ -4053,17 +4055,26 @@ fi
# Check whether --with-fftw3 was given.
if test ${with_fftw3+y}
then :
withval=$with_fftw3; USE_fftw3='yes'
withval=$with_fftw3; if test "$withval" != no ; then
USE_fftw3='yes'
else
USE_fftw3='no'
fi
else case e in #(
e) USE_fftw3='no' ;;
esac
fi



# Check whether --with-libpng was given.
if test ${with_libpng+y}
then :
withval=$with_libpng; USE_libpng='yes'
withval=$with_libpng; if test "$withval" != no ; then
USE_libpng='yes'
else
USE_libpng='no'
fi
else case e in #(
e) USE_libpng='no' ;;
esac
Expand Down
19 changes: 17 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,24 @@ AC_CONFIG_SRCDIR([src/programs/SPH_MHD/main_sph_MHD_w_psf.f90])
# AC_CONFIG_HEADER([config.h])

AC_ARG_WITH(fftw3,
[ --with-fftw3 Use fftw3 library],[USE_fftw3='yes'],[USE_fftw3='no'])
[ --with-fftw3 Use fftw3 library
--without-fftw3 to disable fftw3 library],
[if test "$withval" != no ; then
USE_fftw3='yes'
else
USE_fftw3='no'
fi],
[USE_fftw3='no'])

AC_ARG_WITH(libpng,
[ --with-libpng Use libpng library],[USE_libpng='yes'],[USE_libpng='no'])
[ --with-libpng Use libpng library
--without-libpng to disable libpng library],
[if test "$withval" != no ; then
USE_libpng='yes'
else
USE_libpng='no'
fi],
[USE_libpng='no'])

AC_MSG_RESULT(with-fftw3... "${USE_fftw3}")
AC_MSG_RESULT(enable-libpng..."${USE_libpng}")
Expand Down

0 comments on commit e275c19

Please sign in to comment.