39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
--- config-scripts/cups-pdf.m4
|
|
+++ config-scripts/cups-pdf.m4
|
|
@@ -13,26 +13,31 @@
|
|
dnl file is missing or damaged, see the license at "http://www.cups.org/".
|
|
dnl
|
|
|
|
-AC_ARG_ENABLE(pdftops, [ --enable-pdftops build pdftops filter, default=auto ])
|
|
+AC_ARG_WITH(pdftops, [ --with-pdftops build pdftops filter, default=auto ],[],with_pdftops=auto)
|
|
|
|
PDFTOPS=""
|
|
|
|
-if test "x$enable_pdftops" != xno; then
|
|
+if test "x$with_pdftops" != xno; then
|
|
+ if test "x$with_pdftops" != xyes -a "x$with_pdftops" != xauto ; then
|
|
+ CUPS_PDFTOPS=$with_pdftops
|
|
+ AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS")
|
|
+ else
|
|
AC_PATH_PROG(CUPS_PDFTOPS, pdftops)
|
|
AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS")
|
|
|
|
if test "x$CUPS_PDFTOPS" != x; then
|
|
AC_MSG_CHECKING(whether to build pdftops filter)
|
|
- if test "x$enable_pdftops" = xyes -o $uname != Darwin; then
|
|
+ if test "x$with_pdftops" = xyes -o $uname != Darwin; then
|
|
PDFTOPS="pdftops"
|
|
AC_MSG_RESULT(yes)
|
|
else
|
|
AC_MSG_RESULT(no)
|
|
fi
|
|
- elif test x$enable_pdftops = xyes; then
|
|
+ elif test x$with_pdftops = xyes; then
|
|
AC_MSG_ERROR(Unable to find pdftops program!)
|
|
exit 1
|
|
fi
|
|
+ fi
|
|
fi
|
|
|
|
AC_SUBST(PDFTOPS)
|