~ubuntu-branches/ubuntu/saucy/gnudatalanguage/saucy-proposed

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Package Import Robot
  • Author(s): Axel Beckert
  • Date: 2013-05-15 02:23:58 UTC
  • mfrom: (15.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130515022358-rziznpf225zn9lv9
Tags: 0.9.3-2
* Upload to unstable.
* Revamp debian/rules
  - Allow parallel builds
  - Use debian/manpages instead of dh_installman parameter
  - Switch to dh7 style debian/rules file
* Bump debhelper compatibility to 9
  - Update versioned debhelper build-dependency
* Bump Standards-Version to 3.9.4 (no changes)
* Apply wrap-and-sort

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT(gdl, 0.9.2)
 
1
AC_INIT(gdl, 0.9.3)
2
2
AC_CONFIG_MACRO_DIR([m4])
3
3
 
4
4
dnl == Configuration (of the configure script)  ============
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
33
34
 
34
35
AM_CONFIG_HEADER(config.h)
35
36
 
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)
43
 
],[
44
 
  AC_MSG_RESULT([<2.62])
45
 
  AM_INIT_AUTOMAKE
46
 
]) 
 
37
AM_INIT_AUTOMAKE
47
38
 
48
39
AC_LANG(C++)
49
40
AC_PROG_CXX
143
134
        echo "       Check the README or use configure --help for other libraries needed"
144
135
        echo ""
145
136
        echo "       (suitable Debian/Ubuntu package: libreadline5-dev)"
 
137
        echo "       (suitable Fedora package: readline-devel)"
146
138
        exit -1
147
139
        ])
148
140
 
187
179
        echo "       Use --with-zlibdir=DIR to specify the zlib directory tree"
188
180
        echo ""
189
181
        echo "       (suitable Debian/Ubuntu package: zlib1g-dev)"
 
182
        echo "       (suitable Fedora package: zlib-devel)"
190
183
        exit -1
191
184
        ])
192
185
 
260
253
        echo "Error! Gnu Scientific Library (1.7 or higher) is mandatory"
261
254
        echo ""
262
255
        echo "       (suitable Debian/Ubuntu package: libgsl0-dev)"
 
256
        echo "       (suitable Fedora package: gsl-dev)"
 
257
        echo "       (suitable Gentoo package: sci-libs/gsl)"
263
258
        exit -1
264
259
        ])
265
260
AC_CHECK_LIB(gslcblas, cblas_drot, [], [
309
304
        [
310
305
        echo ""
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"
313
308
        echo ""
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
312
        exit -1
316
313
        ])
317
314
 
 
315
dnl recent plplot (5.9.9-4) in Debian unstable version have hidden symbols
 
316
 
 
317
AC_CHECK_LIB(plplotcxxd, plP_mmpcx, 
 
318
        [AC_DEFINE([HAVE_PLPLOT_BEFORE_5994], [1], [plplot 5994 library])],
 
319
        [
 
320
        echo ""
 
321
        echo "Warning ! limited features in XYOUTS in GDL due to private symbols in plplot lib ..."
 
322
        echo ""        
 
323
        ])
 
324
 
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, [
353
360
    echo "       (--with-xxxdir = obligatory, --with-xxx = optional (--with-xxx=no to disable))"
354
361
    echo ""
355
362
    echo "       (suitable Debian/Ubuntu package: libwxgtk2.8-dev)"
 
363
    echo "       (suitable Fedora package: wxGTK-devel)"
 
364
    echo "       (suitable Gentoo package: x11-libs/wxGTK)"
356
365
    exit -1
357
366
  else
358
367
    LIBS="$LIBS `wx-config --libs`"
403
412
      Use --with-Magick=no  to not use it
404
413
    
405
414
      (suitable Debian/Ubuntu package: libmagick++-dev)
 
415
      (suitable Fedora package: ImageMagick-c++-devel)
406
416
    )
407
417
  else
408
418
    LIBS="$LIBS `$MagickConfig --libs`"
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))"
428
438
        echo ""
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)"
 
442
        exit -1
 
443
      ])
 
444
    ]
 
445
  )
 
446
fi
 
447
dnl == GraphicsMagick ======================================
 
448
dnl ========================================================
 
449
 
 
450
AC_ARG_WITH(GraphicsMagick,     
 
451
        [  --with-GraphicsMagick[=DIR]  use GraphicsMagick package (with optional path DIR) ],
 
452
        [with_GraphicsMagick="$withval" ])
 
453
 
 
454
if test "x$with_GraphicsMagick" != "xno"; then
 
455
  if test "x$with_GraphicsMagick" = "xyes"; then
 
456
    AC_PATH_PROG(GraphicsMagickConfig, GraphicsMagick++-config, no)
 
457
  else
 
458
    AC_PATH_PROG(GraphicsMagickConfig, GraphicsMagick++-config, no, "$with_GraphicsMagick/bin")
 
459
  fi
 
460
 
 
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
 
465
    
 
466
      (suitable Debian/Ubuntu package: libmagick++-dev)
 
467
      (suitable Fedora package: GraphicsMagick-c++-devel)
 
468
    )
 
469
  else
 
470
    LIBS="$LIBS `$GraphicsMagickConfig --libs`"
 
471
    INCLUDES="$INCLUDES `$GraphicsMagickConfig --cppflags`"
 
472
    LDFLAGS="$LDFLAGS `$GraphicsMagickConfig --ldflags`"
 
473
  fi
 
474
 
 
475
  AC_CHECK_LIB(
 
476
    GraphicsMagick++, 
 
477
    GetMagickVersion, 
 
478
    [AC_DEFINE([USE_MAGICK], [1], [Define if you want to use GraphicsMagick])], [
 
479
      AC_MSG_CHECKING(if adding X library path helps)
 
480
      AC_MSG_RESULT(?)
 
481
      AC_PATH_X
 
482
      LDFLAGS="$LDFLAGS -L$x_libraries"
 
483
      AC_CHECK_LIB(GraphicsMagick++, GetMagickReleaseDate, AC_DEFINE([USE_MAGICK], [1]), [
 
484
        echo ""
 
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))"
 
490
        echo ""
 
491
        echo "       (suitable Debian/Ubuntu package: libgraphicsmagick++-dev)"
 
492
        echo "       (suitable Fedora package: graphicsMagick-c++-devel)"
 
493
        echo "       (suitable Fedora package: media-gfx/igraphicsmagick)"
430
494
        exit -1
431
495
      ])
432
496
    ]
472
536
    echo "       (--with-xxxdir = obligatory, --with-xxx = optional (--with-xxx=no to disable))"
473
537
    echo ""
474
538
    echo "       (suitable Debian/Ubuntu package: libnetcdf-dev)"
 
539
    echo "       (suitable Fedora package: netcdf-devel)"
 
540
    echo "       (suitable Fedora package: sci-libs/netcdf-cxx )"
475
541
    exit -1
476
542
    ])
477
543
 
597
663
    echo "       (--with-xxxdir = obligatory, --with-xxx = optional (--with-xxx=no to disable))"
598
664
    echo ""
599
665
    echo "       (suitable Debian/Ubuntu package: libhdf5-serial-dev)"
 
666
    echo "       (suitable Fedora package: hdf-devel)"
600
667
    exit -1
601
668
    ], [-lsz]))
602
669
fi
632
699
    echo "       (--with-xxxdir = obligatory, --with-xxx = optional (--with-xxx=no to disable))"
633
700
    echo ""
634
701
    echo "       (suitable Debian/Ubuntu package: libfftw3-dev)"
 
702
    echo "       (suitable Fedora package: fftw-devel)"
635
703
    exit -1
636
704
    ])
637
705
fi
762
830
    echo "       Use --with-python=no  to not use it"
763
831
    echo ""
764
832
    echo "       (suitable Debian/Ubuntu package: python$PYTHON_VERSION-dev)"
 
833
    echo "       (suitable Fedora package: python-devel)"
765
834
    exit -1
766
835
    ])
767
836
 
816
885
    echo "       (--with-xxxdir = obligatory, --with-xxx = optional (--with-xxx=no to disable))"
817
886
    echo ""
818
887
    echo "       (suitable Debian/Ubuntu package: libudunits2-dev)"
 
888
    echo "       (suitable Fedora package: udunits2-devel)"
819
889
    exit -1
820
890
    ])
821
891
  AC_CHECK_HEADERS(udunits2/udunits2.h)
866
936
            echo "       (--with-xxxdir = obligatory, --with-xxx = optional (--with-xxx=no to disable))"
867
937
            echo ""
868
938
            echo "       (suitable Debian/Ubuntu package: libgrib-api-dev)"
 
939
            echo "       (suitable Fedora package: grib_api-devel)"
869
940
            exit -1
870
941
          ], [-ljasper -lopenjpeg -lpng])
871
942
        ], [-ljasper -lopenjpeg])
939
1010
    echo "       (--with-xxxdir = obligatory, --with-xxx = optional (--with-xxx=no to disable))"
940
1011
    echo ""
941
1012
    echo "       (suitable Debian/Ubuntu package: pslib-dev)"
 
1013
    echo "       (suitable Fedora package: pslib-devel)"
942
1014
    exit -1
943
1015
  ])
944
1016
 
1108
1180
dnl perform program name transformation
1109
1181
dnl AC_ARG_PROGRAM
1110
1182
 
1111
 
AC_CONFIG_FILES(Makefile src/Makefile src/pro/Makefile src/pro/dicom/Makefile testsuite/Makefile doc/Makefile)
 
1183
AC_CONFIG_FILES(Makefile src/Makefile src/pro/Makefile src/pro/dicom/Makefile src/pro/envi/Makefile testsuite/Makefile doc/Makefile)
1112
1184
AC_OUTPUT
1113
1185
 
1114
1186
dnl == summary table =======================================
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)
1169
1243
"
 
1244
echo "
 
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
**************************************************************
 
1252
"
1170
1253
 
1171
1254
dnl == EOF =================================================