15
15
if test "x$with_udunits" = "x"; then with_udunits=no; fi
16
16
if test "x$with_grib" = "x"; then with_grib=no; fi
17
17
if test "x$with_Magick" = "x"; then with_Magick=yes; fi
18
if test "x$with_GraphicsMagick" = "x"; then with_GraphicsMagick=no; fi
18
19
if test "x$with_netcdf" = "x"; then with_netcdf=yes; fi
19
20
if test "x$with_hdf" = "x"; then with_hdf=yes; fi
20
21
if test "x$with_hdf5" = "x"; then with_hdf5=yes; fi
34
35
AM_CONFIG_HEADER(config.h)
36
dnl checking for Automake version is tricky:
37
dnl (http://www.mail-archive.com/automake@gnu.org/msg15292.html)
38
dnl color-tests require AM >=1.11 and AM 1.11 requires AC >=2.62
39
AC_MSG_CHECKING([autoconf version])
40
m4_version_prereq([2.62], [
41
AC_MSG_RESULT([>=2.62])
42
AM_INIT_AUTOMAKE(color-tests)
44
AC_MSG_RESULT([<2.62])
260
253
echo "Error! Gnu Scientific Library (1.7 or higher) is mandatory"
262
255
echo " (suitable Debian/Ubuntu package: libgsl0-dev)"
256
echo " (suitable Fedora package: gsl-dev)"
257
echo " (suitable Gentoo package: sci-libs/gsl)"
265
260
AC_CHECK_LIB(gslcblas, cblas_drot, [], [
311
306
echo "Error! plplot library is required but was not found"
312
echo " Use --with-plplot=DIR to specify the plplot directory tree"
307
echo " Use --with-plplotdir=DIR to specify the plplot directory tree"
314
309
echo " (suitable Debian/Ubuntu packages: libplplot-dev, [plplot9-driver-xwin])"
310
echo " (suitable Fedora package: plplot-devel)"
311
echo " (suitable Gentoo package: sci-libs/plplot)"
315
dnl recent plplot (5.9.9-4) in Debian unstable version have hidden symbols
317
AC_CHECK_LIB(plplotcxxd, plP_mmpcx,
318
[AC_DEFINE([HAVE_PLPLOT_BEFORE_5994], [1], [plplot 5994 library])],
321
echo "Warning ! limited features in XYOUTS in GDL due to private symbols in plplot lib ..."
318
325
if test "x$with_Magick" != "xno"; then
319
326
# https://sourceforge.net/tracker/index.php?func=detail&aid=2974380&group_id=97659&atid=618683
320
327
AC_CHECK_LIB(plplotd, plGetDrvDir, [
426
436
echo " Check the README or use configure --help for other libraries needed"
427
437
echo " (--with-xxxdir = mandatory, --with-xxx = optional (--with-xxx=no to disable))"
429
echo " (suitable Debian/Ubuntu package: libmagick-dev)"
439
echo " (suitable Debian/Ubuntu package: libmagick++-dev)"
440
echo " (suitable Fedora package: ImageMagick-c++-devel)"
441
echo " (suitable Fedora package: media-gfx/imagemagick)"
447
dnl == GraphicsMagick ======================================
448
dnl ========================================================
450
AC_ARG_WITH(GraphicsMagick,
451
[ --with-GraphicsMagick[=DIR] use GraphicsMagick package (with optional path DIR) ],
452
[with_GraphicsMagick="$withval" ])
454
if test "x$with_GraphicsMagick" != "xno"; then
455
if test "x$with_GraphicsMagick" = "xyes"; then
456
AC_PATH_PROG(GraphicsMagickConfig, GraphicsMagick++-config, no)
458
AC_PATH_PROG(GraphicsMagickConfig, GraphicsMagick++-config, no, "$with_GraphicsMagick/bin")
461
if test "x$GraphicsMagickConfig" = "xno"; then
462
AC_MSG_ERROR(GraphicsMagick is required but was not found (GraphicsMagick++-config program not found)
463
Use --with-GraphicsMagick=DIR to specify the GraphicsMagick directory tree
464
Use --with-GraphicsMagick=no to not use it
466
(suitable Debian/Ubuntu package: libmagick++-dev)
467
(suitable Fedora package: GraphicsMagick-c++-devel)
470
LIBS="$LIBS `$GraphicsMagickConfig --libs`"
471
INCLUDES="$INCLUDES `$GraphicsMagickConfig --cppflags`"
472
LDFLAGS="$LDFLAGS `$GraphicsMagickConfig --ldflags`"
478
[AC_DEFINE([USE_MAGICK], [1], [Define if you want to use GraphicsMagick])], [
479
AC_MSG_CHECKING(if adding X library path helps)
482
LDFLAGS="$LDFLAGS -L$x_libraries"
483
AC_CHECK_LIB(GraphicsMagick++, GetMagickReleaseDate, AC_DEFINE([USE_MAGICK], [1]), [
485
echo "Error! GraphicsMagick version 1.3 or later is required but was not found"
486
echo " Use --with-GraphicsMagick=DIR to specify the GraphicsMagick directory tree"
487
echo " Use --with-GraphicsMagick=no to not use it"
488
echo " Check the README or use configure --help for other libraries needed"
489
echo " (--with-xxxdir = mandatory, --with-xxx = optional (--with-xxx=no to disable))"
491
echo " (suitable Debian/Ubuntu package: libgraphicsmagick++-dev)"
492
echo " (suitable Fedora package: graphicsMagick-c++-devel)"
493
echo " (suitable Fedora package: media-gfx/igraphicsmagick)"
866
936
echo " (--with-xxxdir = obligatory, --with-xxx = optional (--with-xxx=no to disable))"
868
938
echo " (suitable Debian/Ubuntu package: libgrib-api-dev)"
939
echo " (suitable Fedora package: grib_api-devel)"
870
941
], [-ljasper -lopenjpeg -lpng])
871
942
], [-ljasper -lopenjpeg])
1129
1201
then echo 'no'; else echo yes; fi`
1130
1202
Magick: `if test no = $with_Magick;
1131
1203
then echo 'no'; else echo yes; fi`
1204
GraphicsMagick: `if test no = $with_GraphicsMagick;
1205
then echo 'no'; else echo yes; fi`
1132
1206
NetCDF: `if test no = $with_netcdf;
1133
1207
then echo 'no'; else echo yes; fi`
1134
1208
HDF4: `if test no = $with_hdf;
1167
1241
use 'make' to build and 'make install' to install GDL
1168
1242
(optional 'make check' tests the build - experimental)
1245
*********************** WARNING ******************************
1246
We plan to drop support for Autotools-based configuration
1247
(i.e. the configure script) and switch to CMake. If possible,
1248
please try to compile GDL with CMake (e.g. by typing \"cmake .\"
1249
instead of \"./configure\") and please do report any problems.
1250
Consult INSTALL.CMake for help on passing options to CMake.
1251
**************************************************************
1171
1254
dnl == EOF =================================================