- if $pkgconfig --exists openssl; then
- SSL_CFLAGS=`$pkgconfig --cflags openssl`
- SSL_LIBS=`$pkgconfig --libs openssl`
- sslver=`$pkgconfig --modversion openssl`
- fi
+ if test "$pkgconfig" != "NONE"; then
+ if $pkgconfig --exists openssl; then
+ SSL_CFLAGS=`$pkgconfig --cflags openssl`
+ SSL_LIBS=`$pkgconfig --libs openssl`
+ sslver=`$pkgconfig --modversion openssl`
+ fi
+ fi
+ if test "$sslver" = "no"; then
+ SSL_CFLAGS="-I/usr/include/openssl"
+ SSL_LIBS=""
+ fi