Home | History | Annotate | Download | only in MagickWand
      1 #!/bin/sh
      2 #
      3 # Configure options script for re-calling MagickWand compilation options
      4 # required to use the MagickWand library.
      5 #
      6 
      7 prefix=@prefix@
      8 exec_prefix=@exec_prefix@
      9 
     10 usage="\
     11 Usage: MagickWand-config [--cflags] [--cppflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]"
     12 
     13 if test $# -eq 0; then
     14       echo "${usage}" 1>&2
     15       echo "Example: gcc \`MagickWand-config --cflags --cppflags\` -o wand wand.c \`MagickWand-config --ldflags --libs\`" 1>&2
     16       exit 1
     17 fi
     18 
     19 while test $# -gt 0; do
     20   case "$1" in
     21     -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
     22     *) optarg= ;;
     23   esac
     24   case $1 in
     25     --prefix=*)
     26       prefix=$optarg
     27       ;;
     28     --prefix)
     29       echo $prefix
     30       ;;
     31     --exec-prefix=*)
     32       exec_prefix=$optarg
     33       ;;
     34     --exec-prefix)
     35       echo $exec_prefix
     36       ;;
     37     --version)
     38       echo '@PACKAGE_VERSION@ Q@QUANTUM_DEPTH@ @MAGICK_HDRI@'
     39       ;;
     40     --cflags)
     41       PKG_CONFIG_PATH="@libdir@/pkgconfig" pkg-config --cflags MagickWand
     42       ;;
     43     --cxxflags)
     44       PKG_CONFIG_PATH="@libdir@/pkgconfig" pkg-config --cflags MagickWand
     45       ;;
     46     --cppflags)
     47       PKG_CONFIG_PATH="@libdir@/pkgconfig" pkg-config --cflags MagickWand
     48       ;;
     49     --ldflags)
     50       PKG_CONFIG_PATH="@libdir@/pkgconfig" pkg-config --libs MagickWand
     51       ;;
     52     --libs)
     53       PKG_CONFIG_PATH="@libdir@/pkgconfig" pkg-config --libs MagickWand
     54       ;;
     55     *)
     56       echo "${usage}" 1>&2
     57       exit 1
     58       ;;
     59   esac
     60   shift
     61 done
     62 
     63