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

prefix=/media/0/kumatux.org-apps/imagemagick_6.6.4-0_jj_2010-09-07-165555_fremantle-scratchbox_armv71
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/ImageMagick

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
    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    *) optarg= ;;
  esac
  case $1 in
    --prefix=*)
      prefix=$optarg
      ;;
    --prefix)
      echo $prefix
      ;;
    --exec-prefix=*)
      exec_prefix=$optarg
      ;;
    --exec-prefix)
      echo $exec_prefix
      ;;
    --version)
      echo '6.6.4 Q16 '
      ;;
    --cflags)
      echo "-I${includedir} "
      ;;
    --cxxflags)
      echo '-O6 -fomit-frame-pointer -pipe -I/home/jj/kumatux.org-root/1/30 -I/home/jj/kumatux.org-root/1/3 -I/home/jj/kumatux.org-root/1/22 -I/home/jj/kumatux.org-root/1/58 -I/home/jj/kumatux.org-root/1/49 -I/home/jj/kumatux.org-root/1/66 -I/home/jj/kumatux.org-root/1/18 -I/home/jj/kumatux.org-root/1/76 -I/home/jj/kumatux.org-root/1/80 -I/home/jj/kumatux.org-root/1/47 -I/home/jj/kumatux.org-root/1/15 -I/home/jj/kumatux.org-root/1/34 -I/home/jj/kumatux.org-root/1/45 -I/home/jj/kumatux.org-root/1/20 -I/home/jj/kumatux.org-root/1/28 -I/home/jj/kumatux.org-root/1/27 -I/home/jj/kumatux.org-root/1/21 -I/home/jj/kumatux.org-root/1/25 -I/home/jj/kumatux.org-root/1/67 -I/home/jj/kumatux.org-root/1/57 -I/home/jj/kumatux.org-root/1/26 -I/home/jj/kumatux.org-root/1/54 -I/home/jj/kumatux.org-root/1/70 -I/home/jj/kumatux.org-root/1/19 -I/home/jj/kumatux.org-root/1/38 -I/home/jj/kumatux.org-root/1/48 -I/home/jj/kumatux.org-root/1/7 -I/home/jj/kumatux.org-root/1/68 -I/home/jj/kumatux.org-root/1/17 -I/home/jj/kumatux.org-root/1/56 -I/home/jj/kumatux.org-root/1/61 -I/home/jj/kumatux.org-root/1/39 -I/home/jj/kumatux.org-root/1/37 -I/home/jj/kumatux.org-root/1/65 -I/home/jj/kumatux.org-root/1/6 -I/home/jj/kumatux.org-root/1/75 -I/home/jj/kumatux.org-root/1/62 -I/home/jj/kumatux.org-root/1/72 -I/home/jj/kumatux.org-root/1/73 -I/home/jj/kumatux.org-root/1/32 -I/home/jj/kumatux.org-root/1/79 -I/home/jj/kumatux.org-root/1/51 -I/home/jj/kumatux.org-root/1/78 -I/home/jj/kumatux.org-root/1/43 -I/home/jj/kumatux.org-root/1/1 -I/home/jj/kumatux.org-root/1/13 -I/home/jj/kumatux.org-root/1/55 -I/home/jj/kumatux.org-root/1/2 -I/home/jj/kumatux.org-root/1/44 -I/home/jj/kumatux.org-root/1/46 -I/home/jj/kumatux.org-root/1/60 -I/home/jj/kumatux.org-root/1/74 -I/home/jj/kumatux.org-root/1/52 -I/home/jj/kumatux.org-root/1/40 -I/home/jj/kumatux.org-root/1/77 -I/home/jj/kumatux.org-root/1/23 -I/home/jj/kumatux.org-root/1/59 -I/home/jj/kumatux.org-root/1/50 -I/home/jj/kumatux.org-root/1/12 -I/home/jj/kumatux.org-root/1/36 -I/home/jj/kumatux.org-root/1/24 -I/home/jj/kumatux.org-root/1/14 -I/home/jj/kumatux.org-root/1/33 -I/home/jj/kumatux.org-root/1/53 -I/home/jj/kumatux.org-root/1/69 -I/home/jj/kumatux.org-root/1/42 -I/home/jj/kumatux.org-root/1/71 -I/home/jj/kumatux.org-root/1/64 -I/home/jj/kumatux.org-root/1/29 -I/home/jj/kumatux.org-root/1/11 -I/home/jj/kumatux.org-root/1/41 -I/home/jj/kumatux.org-root/1/4 -I/home/jj/kumatux.org-root/1/10 -I/home/jj/kumatux.org-root/1/31 -I/home/jj/kumatux.org-root/1/63 -I/home/jj/kumatux.org-root/1/16 -I/home/jj/kumatux.org-root/1/9 -I/home/jj/kumatux.org-root/1/8 -I/home/jj/kumatux.org-root/1/5 -I/home/jj/kumatux.org-root/1/0 -pthread'
      ;;
    --cppflags)
      echo '-I/media/0/kumatux.org-apps/imagemagick_6.6.4-0_jj_2010-09-07-165555_fremantle-scratchbox_armv71/include/ImageMagick'
      ;;
    --ldflags)
      echo '-L/media/0/kumatux.org-apps/imagemagick_6.6.4-0_jj_2010-09-07-165555_fremantle-scratchbox_armv71/lib -L/home/jj/kumatux.org-root/9/26 -L/home/jj/kumatux.org-root/9/3 -L/home/jj/kumatux.org-root/9/17 -L/home/jj/kumatux.org-root/9/58 -L/home/jj/kumatux.org-root/9/47 -L/home/jj/kumatux.org-root/9/68 -L/home/jj/kumatux.org-root/9/13 -L/home/jj/kumatux.org-root/9/78 -L/home/jj/kumatux.org-root/9/83 -L/home/jj/kumatux.org-root/9/45 -L/home/jj/kumatux.org-root/9/4 -L/home/jj/kumatux.org-root/9/30 -L/home/jj/kumatux.org-root/9/32 -L/home/jj/kumatux.org-root/9/31 -L/home/jj/kumatux.org-root/9/43 -L/home/jj/kumatux.org-root/9/15 -L/home/jj/kumatux.org-root/9/23 -L/home/jj/kumatux.org-root/9/22 -L/home/jj/kumatux.org-root/9/16 -L/home/jj/kumatux.org-root/9/20 -L/home/jj/kumatux.org-root/9/69 -L/home/jj/kumatux.org-root/9/57 -L/home/jj/kumatux.org-root/9/24 -L/home/jj/kumatux.org-root/9/52 -L/home/jj/kumatux.org-root/9/72 -L/home/jj/kumatux.org-root/9/14 -L/home/jj/kumatux.org-root/9/36 -L/home/jj/kumatux.org-root/9/53 -L/home/jj/kumatux.org-root/9/46 -L/home/jj/kumatux.org-root/9/6 -L/home/jj/kumatux.org-root/9/70 -L/home/jj/kumatux.org-root/9/12 -L/home/jj/kumatux.org-root/9/56 -L/home/jj/kumatux.org-root/9/63 -L/home/jj/kumatux.org-root/9/37 -L/home/jj/kumatux.org-root/9/35 -L/home/jj/kumatux.org-root/9/67 -L/home/jj/kumatux.org-root/9/62 -L/home/jj/kumatux.org-root/9/77 -L/home/jj/kumatux.org-root/9/64 -L/home/jj/kumatux.org-root/9/74 -L/home/jj/kumatux.org-root/9/75 -L/home/jj/kumatux.org-root/9/28 -L/home/jj/kumatux.org-root/9/81 -L/home/jj/kumatux.org-root/9/49 -L/home/jj/kumatux.org-root/9/80 -L/home/jj/kumatux.org-root/9/41 -L/home/jj/kumatux.org-root/9/1 -L/home/jj/kumatux.org-root/9/82 -L/home/jj/kumatux.org-root/9/55 -L/home/jj/kumatux.org-root/9/21 -L/home/jj/kumatux.org-root/9/5 -L/home/jj/kumatux.org-root/9/42 -L/home/jj/kumatux.org-root/9/44 -L/home/jj/kumatux.org-root/9/60 -L/home/jj/kumatux.org-root/9/76 -L/home/jj/kumatux.org-root/9/50 -L/home/jj/kumatux.org-root/9/38 -L/home/jj/kumatux.org-root/9/79 -L/home/jj/kumatux.org-root/9/18 -L/home/jj/kumatux.org-root/9/59 -L/home/jj/kumatux.org-root/9/48 -L/home/jj/kumatux.org-root/9/54 -L/home/jj/kumatux.org-root/9/61 -L/home/jj/kumatux.org-root/9/2 -L/home/jj/kumatux.org-root/9/34 -L/home/jj/kumatux.org-root/9/19 -L/home/jj/kumatux.org-root/9/11 -L/home/jj/kumatux.org-root/9/29 -L/home/jj/kumatux.org-root/9/51 -L/home/jj/kumatux.org-root/9/71 -L/home/jj/kumatux.org-root/9/40 -L/home/jj/kumatux.org-root/9/73 -L/home/jj/kumatux.org-root/9/66 -L/home/jj/kumatux.org-root/9/25 -L/home/jj/kumatux.org-root/9/10 -L/home/jj/kumatux.org-root/9/39 -L/home/jj/kumatux.org-root/9/9 -L/home/jj/kumatux.org-root/9/27 -L/home/jj/kumatux.org-root/9/65 -L/home/jj/kumatux.org-root/9/8 -L/home/jj/kumatux.org-root/9/7 -L/home/jj/kumatux.org-root/9/0 -L/usr/lib'
      ;;
    --libs)
      echo "-L${libdir} -lMagickWand -lMagickCore -llcms2 -ltiff -lfreetype -ljpeg -lpng -lfftw3 -lfontconfig -lwmf -lwmflite -lXext -lXt -lSM -lICE -lX11 -lbz2 -L/media/0/kumatux.org-apps/librsvg_2.26.0_jj_2010-03-28-074600_fremantle_armel/lib -lrsvg-2 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lxml2 -lz -lm -lgomp -lpthread -lltdl"
      ;;
    *)
      echo "${usage}" 1>&2
      exit 1
      ;;
  esac
  shift
done

