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