]> granicus.if.org Git - imagemagick/blob - MagickCore/MagickCore-config.in
(no commit message)
[imagemagick] / MagickCore / MagickCore-config.in
1 #!/bin/sh
2 #
3 # Configure options script for re-calling MagickCore compilation options
4 # required to use the MagickCore library.
5 #
6
7 prefix=@prefix@
8 exec_prefix=@exec_prefix@
9
10 usage="\
11 Usage: MagickCore-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 \`MagickCore-config --cflags --cppflags\` -o core core.c \`Magick-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 --cflags MagickCore
42       ;;
43     --cxxflags)
44       pkg-config --cflags MagickCore
45       ;;
46     --cppflags)
47       pkg-config --cflags MagickCore
48       ;;
49     --ldflags)
50       pkg-config --libs MagickCore
51       ;;
52     --libs)
53       pkg-config --libs MagickCore
54       ;;
55     --coder-path)
56       echo "@CODER_PATH@"
57       ;;
58     --filter-path)
59       echo "@FILTER_PATH@"
60       ;;
61     *)
62       echo "${usage}" 1>&2
63       exit 1
64       ;;
65   esac
66   shift
67 done