2 # configure.ac - process this file with autoconf to produce a configure script
3 # Copyright © 2012 Géraud Meyer <graud@gmx.com>
4 # This file is part of CDimgtools.
6 # CDimgtools is free software; you can redistribute it and/or modify it under
7 # the terms of the GNU General Public License version 2 as published by the
8 # Free Software Foundation.
10 # This package is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 # You should have received a copy of the GNU General Public License
16 # along with CDimgtools. If not, see <http://www.gnu.org/licenses/>.
19 define([dynamic_version], [esyscmd(./version.sh | tr -d '\n')])
20 AC_INIT([CDimgtools], [dynamic_version], [g_raud@gna.org], [cdimgtools])
21 AC_CONFIG_SRCDIR([cssdec.c])
22 AC_CONFIG_HEADERS([config.h])
24 # Checks for programs.
31 AC_CHECK_PROGS(ASCIIDOC, [asciidoc], [false])
32 AC_CHECK_PROGS(POD2MAN, [pod2man], [false])
33 AC_CHECK_PROGS(POD2HTML, [pod2html], [false])
34 AC_CHECK_PROGS(XMLTO, [xmlto], [false])
36 # Checks for libraries.
37 AC_CHECK_LIB([dvdcss], [dvdcss_open], [], [AC_MSG_ERROR([Could not find libdvdcss])])
38 AC_CHECK_LIB([dvdread], [UDFFindFile], [], [AC_MSG_ERROR([Could not find libdvdread])])
40 # Checks for header files.
41 AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h unistd.h])
44 # Checks for typedefs, structures, and compiler characteristics.
48 AC_CHECK_MEMBERS([struct stat.st_rdev])
51 # Checks for library functions.
53 AC_CHECK_FUNCS([strerror strtol])
55 # Runtime dependencies
57 if test x$interpval = xno; then
58 AC_MSG_WARN([the scripts provided may be unusable])
60 AC_PATH_PROG(PERL, perl perl5.004 perl5.003 perl5.002 perl5.001 perl5, no)
61 if test x$PERL = xno; then
63 AC_MSG_WARN([perl not found; default of $PERL used])
66 AC_CONFIG_FILES([config.make])