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]
Add better OpenMP detection and make an option to enable it.

Bug report and inspiration: http://code.opencv.org/issues/3328
workaround for cv::multiply bug
moved to relative errors in ocl::norm tests
cmake: fix bug with installation into OPENCV_LIB_INSTALL_PATH directory
fixed an accuracy test for ocl::resize (in some cases dsize.area() was equal to 0)
fixed ocl::copyMakeBorder
Merge pull request #1669 from ilya-lavrenov:ocl_copyMakeBorder
Merge pull request #1672 from ilya-lavrenov:ocl_arithm
Merge pull request #1673 from ilya-lavrenov:ocl_norm
Merge pull request #1676 from ilya-lavrenov:ocl_resize_test
Removed incorrect release of obtained colorspace. This fixes bug #3318 (updated commit for 2.4 branch)
Merge pull request #1674 from alalek:cmake_fix
Merge pull request #1678 from wejeus:ios-documentationfix-2.4