What is the error the build system report without the patch?
Also before applying the patch I would be interested in a comparison between self-contained levmar and levmar+LAPACK.
The photometric optimizer is the only part of Hugin which is using the embedded levmar lib. I don't know if using LAPACK (+BLAS) brings a speed or stability improvement. If there is no improvement of using LAPACK then maybe the LAPACK detection should be removed. When there is an improvement with LAPACK I would be interested how large this improvement is.
What is the error the build system report without the patch?
Also before applying the patch I would be interested in a comparison between self-contained levmar and levmar+LAPACK.
The photometric optimizer is the only part of Hugin which is using the embedded levmar lib. I don't know if using LAPACK (+BLAS) brings a speed or stability improvement. If there is no improvement of using LAPACK then maybe the LAPACK detection should be removed. When there is an improvement with LAPACK I would be interested how large this improvement is.