#!/bin/sh # # Return information about the local GD library installation # # Modeled after pdflib-config # installation directories prefix=@CLIENT_BASEDIR@ exec_prefix=${prefix} libdir=${exec_prefix}/lib/amd64 includedir=${prefix}/include bindir=${exec_prefix}/bin usage() { cat <&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) echo $libdir ;; --includedir) echo $includedir ;; --version) echo 2.0.34 ;; --majorversion) echo 2 ;; --minorversion) echo 0 ;; --revision) echo 34 ;; --ldflags) echo -m64 -lm ;; --libs) echo -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz ;; --cflags|--includes) echo -I${prefix}/include ;; --features) echo GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON ;; --all) echo "GD library 2.0.34" echo "includedir: $includedir" echo "cflags: -I${prefix}/include" echo "ldflags: -m64 -lm -L/usr/lib" echo "libs: -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz " echo "libdir: $libdir" echo "features: GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON" ;; *) usage 1 1>&2 ;; esac shift done