--enable-ssl and --enable-sasl don't reset the linker flags once it realizes the ssl or sasl libs don't work out as expected.
https://evergreen.mongodb.com/task_log_raw/mongo_c_driver_gcc53_i386_debug_compile_noexperimental_98713feddcc334e667c0f7a0cff82c4f5a900dcd_16_08_02_21_55_22/0?type=T&text=true
[2016/08/02 15:46:29.765] SASL : sasl2
|
[2016/08/02 15:46:29.765] SSL : no
|
[2016/08/02 15:47:35.089] /usr/bin/ld: cannot find -lssl
|
[2016/08/02 15:47:35.089] /usr/bin/ld: cannot find -lcrypto
|
[2016/08/02 15:47:35.089] /usr/bin/ld: cannot find -lsasl2
|