diff options
author | Thomas White <taw@physics.org> | 2010-07-05 17:29:56 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:52 +0100 |
commit | 27bfe46fbf64db47e53204f4dc60e0f6820cb9bf (patch) | |
tree | 0406dfcf016bcc6075420097c0616e80ae6b0b6b /configure | |
parent | 7135bb83dacf088e6613149453a9e51dd005a730 (diff) |
Add configure options: --disable-tiff and --disable-png
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 60 |
1 files changed, 51 insertions, 9 deletions
@@ -739,6 +739,8 @@ with_gsl enable_opencl enable_gtk enable_gtktest +enable_png +enable_tiff with_libtiff ' ac_precious_vars='build_alias @@ -1383,6 +1385,8 @@ Optional Features: --enable-opencl Enable the use of OpenCL --disable-gtk Disable GTK+/GLib --disable-gtktest do not try to compile and run a test GTK+ program + --disable-png Disable the use of libPNG + --disable-tiff Disable the use of libTIFF Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -5702,34 +5706,72 @@ done -{ $as_echo "$as_me:$LINENO: checking libpng" >&5 +{ $as_echo "$as_me:$LINENO: checking whether to use PNG" >&5 +$as_echo_n "checking whether to use PNG... " >&6; } +# Check whether --enable-png was given. +if test "${enable_png+set}" = set; then + enableval=$enable_png; +fi + +if test "x$enable_png" != "xno"; then + + { $as_echo "$as_me:$LINENO: result: yes" >&5 +$as_echo "yes" >&6; } + { $as_echo "$as_me:$LINENO: checking libpng" >&5 $as_echo_n "checking libpng... " >&6; } -if $PKG_CONFIG --atleast-version 1.2.0 libpng ; then - LIBPNG_VERSION=`$PKG_CONFIG --modversion libpng` - { $as_echo "$as_me:$LINENO: result: $LIBPNG_VERSION" >&5 + if $PKG_CONFIG --atleast-version 1.2.0 libpng ; then + LIBPNG_VERSION=`$PKG_CONFIG --modversion libpng` + { $as_echo "$as_me:$LINENO: result: $LIBPNG_VERSION" >&5 $as_echo "$LIBPNG_VERSION" >&6; } - LIBPNG_CFLAGS=`$PKG_CONFIG --cflags libpng` - LIBPNG_LIBS=`$PKG_CONFIG --libs libpng` + LIBPNG_CFLAGS=`$PKG_CONFIG --cflags libpng` + LIBPNG_LIBS=`$PKG_CONFIG --libs libpng` cat >>confdefs.h <<\_ACEOF #define HAVE_LIBPNG 1 _ACEOF -else - { $as_echo "$as_me:$LINENO: result: Lower than 1.2.0 or not found" >&5 + else + { $as_echo "$as_me:$LINENO: result: Lower than 1.2.0 or not found" >&5 $as_echo "Lower than 1.2.0 or not found" >&6; } + fi + +else + + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } + fi +{ $as_echo "$as_me:$LINENO: checking whether to use TIFF" >&5 +$as_echo_n "checking whether to use TIFF... " >&6; } +# Check whether --enable-tiff was given. +if test "${enable_tiff+set}" = set; then + enableval=$enable_tiff; +fi + +if test "x$enable_tiff" != "xno"; then + + # Check whether --with-libtiff was given. if test "${with_libtiff+set}" = set; then withval=$with_libtiff; LIBTIFF_CFLAGS="-I$withval/include" - LIBTIFF_LIBS="-L$withval/lib -ltiff" + LIBTIFF_LIBS="-L$withval/lib -ltiff" else LIBTIFF_LIBS="-ltiff" fi + { $as_echo "$as_me:$LINENO: result: yes" >&5 +$as_echo "yes" >&6; } + +else + + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } + +fi + CFLAGS="$CFLAGS $HDF5_CFLAGS $GTK_CFLAGS $GSL_CFLAGS $OPENCL_CFLAGS -pthread" |