#!/bin/sh
#
# Configure options script for re-calling MagickWand compilation options
# required to use the MagickWand library.
#
usage="\
Usage: Wand-config [--cflags] [--cppflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]"

if test $# -eq 0; then
      echo "${usage}" 1>&2
      echo "Example: gcc \`Wand-config --cflags --cppflags\` -o wand wand.c \`Wand-config --ldflags --libs\`" 1>&2
      exit 1
fi

while test $# -gt 0; do
  case $1 in
    --prefix)
      pkg-config --variable prefix Wand
      ;;
    --exec-prefix)
      pkg-config --variable exec_prefix Wand
      ;;
    --version)
      pkg-config --modversion Wan
      ;;
    --cflags)
      pkg-config --cflags Wand
      ;;
    --cxxflags)
      pkg-config --cflags Wand
      ;;
    --cppflags)
      pkg-config --cflags Wand
      ;;
    --ldflags)
      pkg-config --libs Wand
      ;;
    --libs)
      pkg-config --libs Wand
      ;;
    *)
      echo "${usage}" 1>&2
      exit 1
      ;;
  esac
  shift
done

