#!/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 /c/GMIC-64bit-WIN
      ;;
    --exec-prefix)
      echo /c/GMIC-64bit-WIN
      ;;
    --version)
      echo 1.3.18
      ;;
    --cppflags)
      echo '-I/c/GMIC-64bit-WIN/include/GraphicsMagick -D_DLL -D_MT'
      ;;
    --cxxflags)
      echo '-I/env/mingw-w64-gcc-4.8.2/include -I/env/mingw-w64-gcc-4.8.2/x86_64-w64-mingw32/include -I/home/gimpeval/.local/share/crossroad/roads/w64/include -I/python/include -pipe -O3 -mms-bitfields -m64 -pthread'
      ;;
    --ldflags)
      echo '-L/c/GMIC-64bit-WIN/lib -L/env/mingw-w64-gcc-4.8.2/lib -L/env/mingw-w64-gcc-4.8.2/x86_64-w64-mingw32/lib64 -L/home/gimpeval/.local/share/crossroad/roads/w64/lib -lpthread -L/mingw/lib'
      ;;
    --libs)
      echo '-lGraphicsMagick++ -lGraphicsMagick -llcms2 -ltiff -lfreetype -ljpeg -lpng16 -llzma -lz -lgdi32 -lm -lgomp -lpthread'
      ;;
    *)
      echo "${usage}" 1>&2
      exit 1
      ;;
  esac
  shift
done

