#!/bin/sh
#
# Configure options script for re-calling MagickWand compilation options
# required to use the MagickWand library.
#
prefix=/usr
exec_prefix=/usr

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 $prefix
      ;;
    --exec-prefix)
      echo $exec_prefix
      ;;
    --version)
      echo '6.3.5 Q16 '
      ;;
    --cflags)
      echo '-isystem/usr/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -Wall -W -pthread'
      ;;
    --cxxflags)
      echo '-isystem/usr/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -fpermissive -fvisibility-inlines-hidden -Wall -W -pthread'
      ;;
    --cppflags)
      echo '-I/usr/include'
      ;;
    --ldflags)
      echo '-L/usr/lib -L/usr/lib -Wl,-rpath-link,/usr/lib -Wl,-O1'
      ;;
    --libs)
      echo '-lMagick -ltiff -ljpeg -lz -lm -lpthread -lWand -lMagick'
      ;;
    *)
      echo "${usage}" 1>&2
      exit 1
      ;;
  esac
  shift
done

