#!/bin/sh # # Configure options script for re-calling compilation # options required to use the Magick++ library. # # Concept derived from gtk-config in the Gtk package except that Autoconf-style # configuration information is presented instead so that it may be used more # effictively in configure scripts. # usage='Usage: GraphicsMagick++-config [--cppflags] [--cxxflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version] For example, "example.cpp" may be compiled to produce "example" as follows: "c++ -o example example.cpp `GraphicsMagick++-config --cppflags --cxxflags --ldflags --libs`"' if test $# -eq 0; then echo "${usage}" 1>&2 exit 1 fi while test $# -gt 0; do case $1 in --prefix) echo /cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/Cellar/graphicsmagick/1.3.23_1 ;; --exec-prefix) echo /cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/Cellar/graphicsmagick/1.3.23_1 ;; --version) echo 1.3.23 ;; --cppflags) echo '-I/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/Cellar/graphicsmagick/1.3.23_1/include/GraphicsMagick' ;; --cxxflags) echo '-Os -w -pipe -march=core2 -pthread' ;; --ldflags) echo '-L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/Cellar/graphicsmagick/1.3.23_1/lib -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/Cellar/freetype/2.6.3/lib -L/cvmfs/neugrid.egi.eu/software/x86_64/octave-3.8.1/linuxbrew/Cellar/libxml2/2.9.3/lib' ;; --libs) echo '-lGraphicsMagick++ -lGraphicsMagick -lfreetype -llzma -lbz2 -lz -lltdl -lm -lpthread' ;; *) echo "${usage}" 1>&2 exit 1 ;; esac shift done