1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(src/gdcmDict.cxx)
4 AM_INIT_AUTOMAKE(gdcm, 0.3.0)
6 AM_CONFIG_HEADER(src/config.h)
8 dnl Checks for programs.
17 dnl Checks for header files.
20 dnl Checks for typedefs, structures, and compiler characteristics.
25 dnl Checks for endianness
28 dnl Checks for int and long size
29 AC_CHECK_SIZEOF(char, 1)
30 AC_CHECK_SIZEOF(short, 2)
31 AC_CHECK_SIZEOF(int, 4)
32 AC_CHECK_SIZEOF(long, 4)
33 AC_CHECK_SIZEOF(long long, 8)
35 AC_CHECK_PROG(DOXYGEN, doxygen, true, false)
36 AM_CONDITIONAL(HAVE_DOXYGEN, $DOXYGEN)
37 AC_SUBST(HAVE_DOXYGEN)
39 dnl Let people disable the doxygen stuff.
40 AC_ARG_ENABLE(docygen,
41 [ --enable-doxygen Use doxygen to build documentation (default=auto)],
42 [enable_doxygen="$enableval"],
43 [enable_doxygen=auto])
45 if test x$enable_doxygen = xauto ; then
46 if test x$DOXYGEN = xtrue ; then
53 dnl NOTE: We need to use a separate automake conditional for this
54 dnl to make this work with the tarballs.
55 AM_CONDITIONAL(ENABLE_DOXYGEN, test x$enable_doxygen = xyes)
59 [ --enable-python Enable Python language support (default=no).],
62 dnl AC_MSG_RESULT($enable_python)
64 if test "yes" = "$enable_python"; then
66 if test -n "$PYTHON"; then
67 AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
70 AC_CHECK_PROGS(SWIG, swig13)
72 AM_CONDITIONAL(BUILD_PYTHON, test x$build_python = xyes)
76 [ --enable-vtk Enable vtk extensions support (default=no).],
79 AM_CONDITIONAL(BUILD_VTK, test x$enable_vtk = xyes)
81 dnl produce Makefile.in files
87 src/jpeg/libijg8/Makefile
88 src/jpeg/libijg12/Makefile