#!/bin/sh
#
# Configure options script for re-calling Magick+ compilation options
# required to use the Magick++ library.
#
#
usage='Usage: Magick++-config [--cppflags] [--cxxflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]

 For example, "magick.cpp" may be compiled to produce "magick" as follows:

  "c++ -o magick magick.cpp `Magick++-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 /usr
      ;;
    --exec-prefix)
      echo /usr
      ;;
    --version)
      echo 6.3.3
      ;;
    --cflags)
      echo '-O2 -march=i486 -mtune=i686 -Wall -W -pthread'
      ;;
    --cxxflags)
      echo '-O2 -march=i486 -mtune=i686 -Wall -W -pthread'
      ;;
    --cppflags)
      echo '-I/usr/include'
      ;;
    --ldflags)
      echo '-L/usr/lib -L/usr/X11R6/lib -lfreetype -lz'
      ;;
    --libs)
      echo '-lMagick++ -lMagick -llcms -ltiff -lfreetype -ljpeg -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lpthread -lm -lpthread -lWand -lMagick'
      ;;
    *)
      echo "${usage}" 1>&2
      exit 1
      ;;
  esac
  shift
done

