libcurl.pc: make it relocatable

It supposes when people specify the libdir/includedir they do it to
change where under prefix/exec_prefix it should be, not to make it
independent of prefix/exec_prefix.

Closes #6061
This commit is contained in:
Cristian Morales Vega 2020-10-11 23:46:53 +01:00 committed by Daniel Stenberg
parent 88bf689f94
commit 3862c37b63
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 360 additions and 5 deletions

View file

@ -23,10 +23,10 @@
# This should most probably benefit from getting a "Requires:" field added
# dynamically by configure.
#
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
prefix=${pcfiledir}/@pkgconf_to_prefix@
exec_prefix=${pcfiledir}/@pkgconf_to_exec_prefix@
libdir=${exec_prefix}/@exec_prefix_to_libdir@
includedir=${prefix}/@prefix_to_includedir@
supported_protocols="@SUPPORT_PROTOCOLS@"
supported_features="@SUPPORT_FEATURES@"