Added -l prefix to EXTRA_COMPONENTS when generating pkg-config file
changed foreach variable to match naming conventions and dropped intermediate variable, appending directly to the LIB_COMPONENTS list
Only append -l to lib entries with no path and no -l or -L of their own
shortened code to not repeat myself
added backslash
fixed wrong regex
regex doesnt need to match full length of input, so only trying to match the leading -[lL]
Merge pull request #1623 from ImAlsoGreg:2.4-pkgconfig-dash-l