| 17236 | # newer gcc are configured to fail to resolve references to libraries not |
| 17237 | # explicitly listed on the linker commandline. |
| 17238 | # So to make build add explicitly gcrypt library. |
| 17239 | if test "$enable_threadsafe" != "no" -a "$with_gnutls" = "yes"; then |
| 17240 | if test "$PKG_CONFIG" != "" && "$PKG_CONFIG" --exists gcrypt> /dev/null 2>&1; then |
| 17241 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags gcrypt`" |
| 17242 | NETWORK_LIBS="$NETWORK_LIBS `$PKG_CONFIG --libs gcrypt`" |
| 17243 | else |
| 17244 | CPPFLAGS="$CPPFLAGS `libgcrypt-config --cflags`" |
| 17245 | NETWORK_LIBS="$NETWORK_LIBS `libgcrypt-config --libs`" |
| 17246 | fi |
| 17247 | fi |