After looking at the parts of configure
script checking the library versions, it seems that it compares versions with strcmp
or strncmp
. Since "1.2.11" is lexicographically smaller that "1.2.6" it return a non-zero value indicating that the match failed. Besides, it just compares the first 5 characters which is also not what it is intented. So, it's a bug in configure script. Changing the script fixed the issue.
For zlib, find this line:
exit(strncmp(ZLIB_VERSION, "1.2.5", 5) < 0);
Change it to:
exit(ZLIB_VERNUM < 0x1250);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…