3 # Configure options script for re-calling MagickWand compilation options
4 # required to use the MagickWand library.
9 libdir=${exec_prefix}/lib
10 includedir=${prefix}/include/ImageMagick
13 Usage: Wand-config [--cflags] [--cppflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]"
15 if test $# -eq 0; then
17 echo "Example: gcc \`Wand-config --cflags --cppflags\` -o wand wand.c \`Wand-config --ldflags --libs\`" 1>&2
21 while test $# -gt 0; do
23 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
43 echo "-I${includedir} -fopenmp"
46 echo '-g -O2 -Wall -W -pthread'
49 echo '-I/usr/local/include/ImageMagick'
52 echo '-L/usr/local/lib -Wl,--as-needed'
55 echo "-L${libdir} -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -ldjvulibre -lfftw3 -lfontconfig -lwmflite -lXext -lXt -lSM -lICE -lX11 -lbz2 -pthread -lrsvg-2 -lgdk_pixbuf-2.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lxml2 -lz -lm -lgomp -lpthread -lltdl"