#!/bin/sh # # Return information about the local GD library installation # # Modeled after pdflib-config # installation directories prefix=/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/Cellar/gd/2.1.1_2 exec_prefix=${prefix} libdir=${exec_prefix}/lib 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.1.1 ;; --majorversion) echo @GDLIB_MAJOR@ ;; --minorversion) echo @GDLIB_MINOR@ ;; --revision) echo 0 ;; --ldflags) echo -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/lib -Wl,--dynamic-linker=/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/lib/ld.so -Wl,-rpath,/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/lib -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/opt/jpeg/lib ;; --libs) echo -lgd -ljpeg -lz -lm -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/Cellar/libpng/1.6.21/lib -lpng16 -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/Cellar/freetype/2.6.3/lib -lfreetype -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/opt/fontconfig/lib -lfontconfig -lfontconfig -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/Cellar/libxpm/3.5.11/lib -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/Cellar/libx11/1.6.3/lib -lXpm -lX11 -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/opt/libtiff/lib -ltiff ;; --cflags|--includes) echo -I${prefix}/include ;; --features) echo GD_TIFF GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON ;; --all) echo "GD library 2.1.1" echo "includedir: $includedir" echo "cflags: -I${prefix}/include" echo "ldflags: -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/lib -Wl,--dynamic-linker=/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/lib/ld.so -Wl,-rpath,/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/lib -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/opt/jpeg/lib" echo "libs: -ljpeg -lz -lm -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/Cellar/libpng/1.6.21/lib -lpng16 -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/Cellar/freetype/2.6.3/lib -lfreetype -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/opt/fontconfig/lib -lfontconfig -lfontconfig -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/Cellar/libxpm/3.5.11/lib -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/Cellar/libx11/1.6.3/lib -lXpm -lX11 -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/opt/libtiff/lib -ltiff " echo "libdir: $libdir" echo "features: GD_TIFF GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON" ;; *) usage 1 1>&2 ;; esac shift done