#!/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)
      echo /usr
      ;;
    --exec-prefix)
      echo /usr
      ;;
    --version)
      echo 6.3.3
      ;;
    --cflags)
      echo '-pipe -Wall -O2 -march=i586 -mtune=i686 -Wall -W -pthread'
      ;;
    --cxxflags)
      echo '-pipe -Wall -O2 -march=i586 -mtune=i686 -Wall -W -pthread'
      ;;
    --cppflags)
      echo ''
      ;;
    --ldflags)
      echo ' '
      ;;
    --libs)
      echo '-lWand -lMagick'
      ;;
    *)
      echo "${usage}" 1>&2
      exit 1
      ;;
  esac
  shift
done

