Skip to content

Commit

Permalink
Add CUPS libraries/cflags.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Nov 29, 2023
1 parent 9e80858 commit 618170d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
18 changes: 18 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -3751,6 +3751,24 @@ else $as_nop
fi
if $PKGCONFIG --exists cups3
then :
CFLAGS="$CFLAGS $($PKGCONFIG --cflags cups3)"
LIBS="$LIBS $($PKGCONFIG --libs cups3)"
elif $PKGCONFIG --exists cups
then :
CFLAGS="$CFLAGS $($PKGCONFIG --cflags cups)"
LIBS="$LIBS $($PKGCONFIG --libs cups)"
else $as_nop
as_fn_error $? "CUPS 2.4 or later is required for LPrint." "$LINENO" 5
fi
unitdir=""
Expand Down
11 changes: 11 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,17 @@ AS_IF([$PKGCONFIG --exists pappl --atleast-version=1.1], [
AC_MSG_ERROR([PAPPL 1.1 or later is required for LPrint.])
])

dnl CUPS library...
AS_IF([$PKGCONFIG --exists cups3], [
CFLAGS="$CFLAGS $($PKGCONFIG --cflags cups3)"
LIBS="$LIBS $($PKGCONFIG --libs cups3)"
], [$PKGCONFIG --exists cups], [
CFLAGS="$CFLAGS $($PKGCONFIG --cflags cups)"
LIBS="$LIBS $($PKGCONFIG --libs cups)"
], [
AC_MSG_ERROR([CUPS 2.4 or later is required for LPrint.])
])


dnl systemd support...
unitdir=""
Expand Down

0 comments on commit 618170d

Please sign in to comment.