github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/graphics-magick/bin/GraphicsMagickWand-config (about)

     1  #!/bin/sh
     2  #
     3  # Configure options script for re-calling GraphicsMagick compilation
     4  # options required to use the GraphicsMagick Wand library.
     5  #
     6  # Concept derived from gtk-config in the Gtk package except that Autoconf-style
     7  # configuration information is presented instead so that it may be used more
     8  # effectively in configure scripts.
     9  #
    10  usage='Usage: GraphicsMagickWand-config [--cflags] [--cppflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]
    11  
    12   For example, "example.c" may be compiled to produce "example" as follows:
    13  
    14    "gcc -o example example.c `GraphicsMagickWand-config --cppflags --cflags --ldflags --libs`"'
    15  
    16  if test $# -eq 0; then
    17        echo "${usage}" 1>&2
    18        exit 1
    19  fi
    20  
    21  while test $# -gt 0; do
    22    case $1 in
    23      --prefix)
    24        echo /root/pinwoodxu/GraphicsMagick-source/release
    25        ;;
    26      --exec-prefix)
    27        echo /root/pinwoodxu/GraphicsMagick-source/release
    28        ;;
    29      --version)
    30        echo 1.3.35
    31        ;;
    32      --cflags)
    33        echo "`GraphicsMagick-config --cflags`"
    34        ;;
    35      --cppflags)
    36        echo "`GraphicsMagick-config --cppflags`"
    37        ;;
    38      --ldflags)
    39        echo "`GraphicsMagick-config --ldflags`"
    40        ;;
    41      --libs)
    42        echo "-lGraphicsMagickWand `GraphicsMagick-config --libs`"
    43        ;;
    44      *)
    45        echo "${usage}" 1>&2
    46        exit 1
    47        ;;
    48    esac
    49    shift
    50  done
    51