commit 86939cb45bd3dc4de80a21254506fdabbb6f731b from: Omar Polo date: Thu Jan 21 13:40:22 2021 UTC simplify CFLAGS/LDFLAGS autodetection commit - f980545b58dd011218c11c00b5ddf1f303b7a647 commit + 86939cb45bd3dc4de80a21254506fdabbb6f731b blob - e1456f10c9ab0fecba0a5466c9bef99760f8009e blob + 194acf6d01a791df14f9e096b9f819ad30bdca9b --- configure +++ configure @@ -56,15 +56,10 @@ BINDIR= INSTALL="install" # try to auto detect CFLAGS and LDFLAGS -which pkg-config 2>/dev/null 1>&2 && { - if ! got=`pkg-config --cflags libtls`; then - CFLAGS="$got" - fi - - if ! got=`pkg-config --libs libtls`; then - LDFLAGS="$got" - fi -} +if which pkg-config 2>/dev/null 1>&2 && pkg-config libtls; then + CFLAGS=`pkg-config --cflags libtls` + LDFLAGS=`pkg-config --libs libtls` +fi # auto detect lex/flex which ${LEX} 2>/dev/null 1>&2 || {