root/ImageMagick/trunk/PerlMagick/check.sh.in

Revision 1, 1.5 KB (checked in by cristy, 3 months ago)


Line 
1#  Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization
2#  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
44  ${MAKE} -f Makefile.aperl CC='@CC@' test
45elif test -f Makefile -a -f Magick.o; then
46  # Shared build test incantation
47  ${MAKE} CC='@CC@' test
48else
49  echo 'PerlMagick has not been built!'
50  exit 1
51fi
Note: See TracBrowser for help on using the browser.