You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
522 B
22 lines
522 B
#!/bin/sh |
|
|
|
if [ -e "$HOME/.nix-profile/lib/pkgconfig/openssl.pc" ]; then |
|
# Nix on macOS |
|
res=$(env PKG_CONFIG_PATH=$HOME/.nix-profile/lib/pkgconfig pkg-config openssl) |
|
if [ $? -eq 0 ]; then |
|
echo $res |
|
exit 0 |
|
fi |
|
fi |
|
|
|
if [ -e "/usr/local/opt/openssl/lib/pkgconfig/openssl.pc" ]; then |
|
# Homebrew |
|
res=$(env PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig pkg-config openssl) |
|
if [ $? -eq 0 ]; then |
|
echo $res |
|
exit 0 |
|
fi |
|
fi |
|
|
|
# MacPorts |
|
PKG_CONFIG_PATH=/opt/local/lib/pkgconfig pkg-config openssl
|
|
|