blob: 731f0ecc0265559f9e180218870067b2329cafd8 [file] [log] [blame]
cristy7e41fe82010-12-04 23:12:08 +00001# Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
cristybd1c7bf2010-04-07 23:50:41 +00002# dedicated to making software imaging solutions freely available.
3#
4# You may not use this file except in compliance with the License. You may
5# obtain a copy of the License at
6#
7# http://www.imagemagick.org/script/license.php
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15# Copyright (C) 2003 - 2009 GraphicsMagick Group
16#
17# Check script for building PerlMagick.
18
19echo "LD_LIBRARY_PATH='${LD_LIBRARY_PATH}'"
20echo "MAGICK_CODER_MODULE_PATH='${MAGICK_CODER_MODULE_PATH}'"
21echo "MAGICK_CONFIGURE_PATH='${MAGICK_CONFIGURE_PATH}'"
22echo "MAGICK_FILTER_MODULE_PATH='${MAGICK_FILTER_MODULE_PATH}'"
23echo "MAKE='${MAKE}'"
24echo "MAKEFLAGS='${MAKEFLAGS}'"
25echo "MEMCHECK='${MEMCHECK}'"
26echo "PATH='${PATH}'"
27echo "SRCDIR='${SRCDIR}'"
28echo "srcdir='${srcdir}'"
29
30set -x
31
32SRCDIR=`dirname $0`
33SRCDIR=`cd $SRCDIR && pwd`
34TOPSRCDIR=`cd $srcdir && pwd`
35
36cd PerlMagick || exit 1
37
38if test -z "${MAKE}" ; then
39 MAKE=make
40fi
41
42if test -x PerlMagick -a -f Makefile.aperl ; then
43 # Static build test incantation
cristy232a9ab2010-06-26 01:02:54 +000044 ${MAKE} -f Makefile.aperl CC='gcc -std=gnu99 -std=gnu99' TEST_VERBOSE=1 test
cristybd1c7bf2010-04-07 23:50:41 +000045elif test -f Makefile -a -f Magick.o; then
46 # Shared build test incantation
cristy232a9ab2010-06-26 01:02:54 +000047 ${MAKE} CC='gcc -std=gnu99 -std=gnu99' TEST_VERBOSE=1 test
cristybd1c7bf2010-04-07 23:50:41 +000048else
49 echo 'PerlMagick has not been built!'
50 exit 1
51fi