1 dnl configure.in -- Process this file with autoconf to produce a configure script.
2 dnl Epson Inkjet Printer Driver (ESC/P-R) for Linux
3 dnl Copyright (C) 2006-2009 AVASYS CORPORATION.
4 dnl Copyright (C) Seiko Epson Corporation 2006-2012.
5 dnl This program is free software; you can redistribute it and/or modify
6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation; either version 2 of the License, or
8 dnl (at your option) any later version.
10 dnl This program is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 dnl GNU General Public License for more details.
15 dnl You should have received a copy of the GNU General Public License
16 dnl along with this program; if not, write to the Free Software
17 dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA.
20 AC_INIT([Epson Laser Printer Driver (ESC/Page) for Linux],
22 [Seiko Epson Corporation <linux-printer@epson.jp>],
23 [epson-laser-printer-escpage])
25 AC_SUBST(PACKAGE_RELEASE, [1])
26 AC_SUBST(LSB_VER, [3.2])
27 AC_SUBST(VENDOR_NAME, ["Seiko Epson Corporation"])
29 AC_CONFIG_HEADER([config.h])
30 AC_CONFIG_SRCDIR(src/filter.c)
33 BUILD_MACHINE_ARCH=`uname -m`
34 if test "x$BUILD_MACHINE_ARCH" = "xx86_64"; then
38 AM_INIT_AUTOMAKE([gnu 1.7])
40 dnl Checks for programs.
49 dnl Checks for argments.
50 AC_CHECK_PROG([have_cups_config], [cups-config], [yes], [no])
52 if test "xNONE" != "x${prefix}" ; then
53 cups_default_prefix="${prefix}"
55 cups_default_prefix="${ac_default_prefix}"
58 AC_ARG_WITH([cupsfilterdir],
59 [AS_HELP_STRING([--with-cupsfilterdir=DIR],
60 [CUPS binary directory, where filters are stored.])],
62 [with_cupsfilterdir=no])
63 if test "xno" = "x${with_cupsfilterdir}"; then
64 if test "xyes" = "x$have_cups_config" ; then
65 dnl `@<:@' , `@:>@' are replaced with `[' , `]'
66 CUPS_FILTER_DIR="${cups_default_prefix}`cups-config --serverbin | sed -e 's,^/@<:@^/@:>@@<:@^/@:>@*,,'`/filter"
68 CUPS_FILTER_DIR="${cups_default_prefix}/lib/cups/filter"
71 CUPS_FILTER_DIR="${with_cupsfilterdir}"
74 AC_ARG_WITH([cupsppddir],
75 [AS_HELP_STRING([--with-cupsppddir=DIR],
76 [CUPS ppd directory])],
79 if test "xno" = "x${with_cupsppddir}"; then
80 if test -d "${cups_default_prefix}/share/ppd" ; then
81 CUPS_PPD_DIR="${cups_default_prefix}/share/ppd"
82 elif test "xyes" = "x$have_cups_config" ; then
83 dnl `@<:@' , `@:>@' are replaced with `[' , `]'
84 CUPS_PPD_DIR="${cups_default_prefix}/`cups-config --datadir | sed -e 's,^/@<:@^/@:>@@<:@^/@:>@*,,'`/model"
86 CUPS_PPD_DIR="${cups_default_prefix}/share/cups/model"
89 CUPS_PPD_DIR="${with_cupsppddir}"
92 AC_SUBST(CUPS_FILTER_DIR)
93 AC_SUBST(CUPS_PPD_DIR)
96 dnl Checks for header files.
125 # Checks for libraries.
126 AC_CHECK_LIB([cups], [ppdOpenFile])
127 AC_CHECK_LIB([cupsimage], [cupsRasterOpen])
129 # Checks for library functions.
143 epson-laser-printer-escpage.spec \