| Server IP : 20.75.53.88 / Your IP : 216.73.217.72 [ Web Server : Apache System : Linux VMRALP-3 4.4.0-256-generic #290~14.04.1-Ubuntu SMP Thu Jun 20 09:24:50 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29+esm15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Domains : 3 Domains MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/bin/ |
Upload File : |
#!/bin/sh
#
# Return information about the local GD library installation
#
# Modified to use pkgconfig
pkg=gdlib
usage()
{
cat <<EOF
Print information on GD library's version, configuration, and use.
Usage: gdlib-config [options]
Options:
--libdir # directory where GD library is installed
--includedir # directory where GD library headers are installed
--version # complete GD library version string
--majorversion # GD library major version number
--minorversion # GD library minor version number
--revision # GD library revision version number
--ldflags # options required for linking against GD library
--libs # libs required for linking against GD library
--cflags # options required for compiling GD library apps
--includes # same as --cflags
--features # lists features compiled into gd, separated by spaces.
# Currently (as of 2.1.1-dev) the optional features
# are GD_PNG, GD_JPEG, GD_XPM, GD_FREETYPE, and
# GD_FONTCONFIG. When these features are reported by
# --features, it is safe to include calls to the
# related functions in your code.
--all # print a summary of all GD library configure options
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--libdir)
pkg-config --variable=libdir ${pkg}
;;
--includedir)
pkg-config --variable=includedir ${pkg}
;;
--version)
pkg-config --modversion ${pkg}
;;
--majorversion)
pkg-config --modversion ${pkg} | cut -f 1 -d .
;;
--minorversion)
pkg-config --modversion ${pkg} | cut -f 2 -d .
;;
--revision)
pkg-config --modversion ${pkg} | cut -f 3 -d .
;;
--ldflags)
pkg-config --libs-only-L ${pkg}
;;
--libs)
pkg-config --libs ${pkg}
;;
--cflags|--includes)
pkg-config --cflags ${pkg}
;;
--features)
echo GD_TIFF GD_VPX GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON
;;
--all)
echo "GD library $($0 --version)@"
echo "includedir: $($0 --includedir)"
echo "cflags: $($0 --cflags)"
echo "ldflags: $($0 --ldflags)"
echo "libs: $($0 --libs)"
echo "libdir: $($0 --libdir)"
echo "features: $($0 --features)"
;;
*)
usage 1 1>&2
;;
esac
shift
done