aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/misc/drivers/epson-escpr2/cups-filter-ppd-dirs.patch
blob: 02897f4f44d9beee9bf283333c8a0ffc71344fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
diff --git a/configure.orig b/configure
index e9d400f..dac1943 100755
--- a/configure.orig
+++ b/configure
@@ -12184,48 +12184,8 @@ esac
 #	*)		ESCPR_LIB_NAME="escpr2_32" ;;
 #esac
 
-
-
-# Check whether --with-cupsfilterdir was given.
-if test "${with_cupsfilterdir+set}" = set; then :
-  withval=$with_cupsfilterdir;
-else
-  with_cupsfilterdir=no
-fi
-
-if test "xno" = "x${with_cupsfilterdir}"; then
-   if test "xyes" = "x$have_cups_config" ; then
-            CUPS_FILTER_DIR="${cups_default_prefix}`cups-config --serverbin | sed -e 's,^/[^/][^/]*,,'`/filter"
-   else
-      CUPS_FILTER_DIR="${cups_default_prefix}/lib/cups/filter"
-   fi
-else
-   CUPS_FILTER_DIR="${with_cupsfilterdir}"
-fi
-
-
-# Check whether --with-cupsppddir was given.
-if test "${with_cupsppddir+set}" = set; then :
-  withval=$with_cupsppddir;
-else
-  with_cupsppddir=no
-fi
-
-if test "xno" = "x${with_cupsppddir}"; then
-   if test -d "${cups_default_prefix}/share/ppd" ; then
-      CUPS_PPD_DIR="${cups_default_prefix}/share/ppd"
-   elif test "xyes" = "x$have_cups_config" ; then
-            CUPS_PPD_DIR="${cups_default_prefix}`cups-config --datadir | sed -e 's,^/[^/][^/]*,,'`/model"
-   else
-      CUPS_PPD_DIR="${cups_default_prefix}/share/cups/model"
-   fi
-else
-   CUPS_PPD_DIR="${with_cupsppddir}"
-fi
-
-
-
-
+CUPS_FILTER_DIR="${prefix}/lib/cups/filter"
+CUPS_PPD_DIR="${prefix}/share/cups/model"
 
 # Check whether --enable-lsb was given.
 if test "${enable_lsb+set}" = set; then :