mirror of
https://abf.rosa.ru/djam/openssl.git
synced 2025-02-23 16:22:50 +00:00
upload openssl-config 0.9.7d-alt1
This commit is contained in:
parent
3f9a2be567
commit
814e9aac6f
1 changed files with 68 additions and 0 deletions
68
openssl-config
Normal file
68
openssl-config
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# openssl-config
|
||||||
|
# provides configuration info for openssl.
|
||||||
|
|
||||||
|
version=%version
|
||||||
|
openssldir=%openssldir
|
||||||
|
cppflags=
|
||||||
|
cflags=
|
||||||
|
ldflags=
|
||||||
|
libs="-lcrypto -lssl"
|
||||||
|
|
||||||
|
usage()
|
||||||
|
{
|
||||||
|
cat <<EOF
|
||||||
|
Usage: openssl-config [OPTION] ...
|
||||||
|
|
||||||
|
Known values for OPTION are:
|
||||||
|
|
||||||
|
--openssldir print OpenSSL directory
|
||||||
|
--cflags print compiler flags
|
||||||
|
--cppflags print pre-processor flags
|
||||||
|
--ldflags print loader flags
|
||||||
|
--libs print library linking information
|
||||||
|
--help display this help and exit
|
||||||
|
--version output version information
|
||||||
|
EOF
|
||||||
|
|
||||||
|
exit $1
|
||||||
|
}
|
||||||
|
|
||||||
|
if test $# -eq 0; then
|
||||||
|
usage 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
while test $# -gt 0; do
|
||||||
|
case "$1" in
|
||||||
|
--openssldir)
|
||||||
|
echo ${openssldir}
|
||||||
|
;;
|
||||||
|
--cflags)
|
||||||
|
echo ${cflags}
|
||||||
|
;;
|
||||||
|
--cppflags)
|
||||||
|
echo ${cppflags}
|
||||||
|
;;
|
||||||
|
--libs)
|
||||||
|
echo ${libs}
|
||||||
|
;;
|
||||||
|
--ldflags)
|
||||||
|
echo ${ldflags}
|
||||||
|
;;
|
||||||
|
--version)
|
||||||
|
echo ${version}
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
--help)
|
||||||
|
usage 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
usage
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Add table
Reference in a new issue