~ubuntu-branches/ubuntu/intrepid/graphicsmagick/intrepid

« back to all changes in this revision

Viewing changes to magick/GraphicsMagick-config.in

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2006-05-06 16:28:08 UTC
  • Revision ID: james.westby@ubuntu.com-20060506162808-vt2ni3r5nytcszms
Tags: upstream-1.1.7
ImportĀ upstreamĀ versionĀ 1.1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# Configure options script for re-calling GraphicsMagick compilation
 
4
# options required to use the GraphicsMagick 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: GraphicsMagick-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 `GraphicsMagick-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 @PREFIX_DIR@
 
25
      ;;
 
26
    --exec-prefix)
 
27
      echo @EXEC_PREFIX_DIR@
 
28
      ;;
 
29
    --version)
 
30
      echo @PACKAGE_VERSION@
 
31
      ;;
 
32
    --cflags)
 
33
      echo '@CFLAGS@'
 
34
      ;;
 
35
    --cppflags)
 
36
      echo '@MAGICK_API_CPPFLAGS@'
 
37
      ;;
 
38
    --ldflags)
 
39
      echo '@MAGICK_API_LDFLAGS@'
 
40
      ;;
 
41
    --libs)
 
42
      echo '@MAGICK_API_LIBS@'
 
43
      ;;
 
44
    *)
 
45
      echo "${usage}" 1>&2
 
46
      exit 1
 
47
      ;;
 
48
  esac
 
49
  shift
 
50
done
 
51