This patch ensures that QCA2 installs the same pkg-config file, for both a release and a debug build. diff -ur qca-2.0.0.orig/qca-2.0.0/configure qca-2.0.0/qca-2.0.0/configure --- qca-2.0.0.orig/qca-2.0.0/configure 2007-12-13 14:31:23.000000000 +0100 +++ qca-2.0.0/qca-2.0.0/configure 2007-12-19 15:47:35.000000000 +0100 @@ -749,8 +749,7 @@ QStringList pcfiles; QDir::current().mkdir("lib"); - if(release) - { + str = pkg_template1.arg(prefix, libdir, incdir); str += pkg_template2.arg("QCA"); str += pkg_template3.arg("QtCore"); @@ -760,20 +759,6 @@ f.write(str.toLatin1()); f.close(); pcfiles += "lib/qca2.pc"; - } - - if(debug) - { - str = pkg_template1.arg(prefix, libdir, incdir); - str += pkg_template2.arg("QCA_debug"); - str += pkg_template3.arg("QtCore_debug"); - str += pkg_template4.arg("qca_debug"); - f.setFileName("lib/qca2_debug.pc"); - if(f.open(QFile::WriteOnly | QFile::Truncate)) - f.write(str.toLatin1()); - f.close(); - pcfiles += "lib/qca2_debug.pc"; - } str = QString( "pcfiles.path = \$\$PREFIX/lib/pkgconfig\n"