blob: 4676d95e63244035c26d9ec977a0d3428f3f86f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
#!/bin/bash -norc
dnl This file is an input file used by the GNU "autoconf" program to
dnl generate the file "configure", which is run during Tcl installation
dnl to configure the system for the local environment.
#
AC_INIT(TclMagick, 0.46)
# Specify directory where m4 macros may be found.
AC_CONFIG_MACRO_DIR([unix/m4])
# Directory where autotools helper scripts lives.
AC_CONFIG_AUX_DIR([unix/config])
AM_INIT_AUTOMAKE
# Add configure option --enable-maintainer-mode which enables dependency
# checking and generation useful to package maintainers. This is made an
# option to avoid confusing end users.
AM_MAINTAINER_MODE
# Enable support for silent build rules
AM_SILENT_RULES
AC_PROG_CC
AC_PROG_LIBTOOL
AC_ISC_POSIX
AC_HEADER_STDC([])
dnl Allow the user to specify the GraphicsMagick or ImageMagick config
dnl script to use.
AC_ARG_WITH(magick, [ --with-magick location of Graphics/MagickWand-config script], with_magick=${withval})
dnl First check to see if --with-magick-config was specified.
GM_CPPFLAGS=''
GM_LDFLAGS=''
GM_LIBS=''
wand_config=''
if test x"${with_magick}" != x
then
if test -x "${with_magick}"
then
wand_config=${with_magick}
else
AC_MSG_ERROR([${with_magick} is not an executable file])
fi
fi
if test x"${wand_config}" = x
then
AC_PATH_PROGS(wand_config,[GraphicsMagickWand-config MagickWand-config],,)
fi
if test x"${wand_config}" = x
then
AC_MSG_ERROR([Please specify the Graphics/ImageMagick-config script with --with-magick!])
fi
dnl It actually calls another script, so the PATH needs to be set.
PATH=$PATH:`dirname ${wand_config}`
export PATH
AC_MSG_CHECKING([for Graphics/ImageMagick Wand configuration script])
AC_MSG_RESULT(${wand_config})
GM_CPPFLAGS=`${wand_config} --cppflags`
AC_SUBST(GM_CPPFLAGS)
GM_LDFLAGS=`${wand_config} --ldflags`
AC_SUBST(GM_LDFLAGS)
GM_LIBS=`${wand_config} --libs`
AC_SUBST(GM_LIBS)
CPPFLAGS_SAVE=$CPPFLAGS
LDFLAGS_SAVE=$LDFLAGS
LIBS_SAVE=$LIBS
CPPFLAGS="$CPPFLAGS $GM_CPPFLAGS"
LDFLAGS="$LDFLAGS $GM_LDFLAGS"
LIBS="$GM_LIBS $LIBS"
AC_CHECK_FUNCS([MagickSetImageFormat])
CPPFLAGS=$CPPFLAGS_SAVE
LDFLAGS=$LDFLAGS_SAVE
LIBS=$LIBS_SAVE
TEA_INIT([3.10])
TEA_PATH_TCLCONFIG
TEA_LOAD_TCLCONFIG
TEA_PATH_TKCONFIG
TEA_LOAD_TKCONFIG
TEA_PREFIX
TEA_SETUP_COMPILER
TEA_ADD_HEADERS([])
TEA_ADD_INCLUDES([])
TEA_ADD_LIBS([])
TEA_ADD_CFLAGS([])
TEA_ADD_STUB_SOURCES([])
TEA_ADD_TCL_SOURCES([])
TEA_PUBLIC_TCL_HEADERS
TEA_PUBLIC_TK_HEADERS
TEA_ENABLE_THREADS
TEA_ENABLE_SHARED
TEA_CONFIG_CFLAGS
AC_DEFINE(USE_TCL_STUBS)
AC_DEFINE(USE_TK_STUBS)
TEA_MAKE_LIB
TEA_PROG_TCLSH
TEA_PROG_WISH
AC_OUTPUT([
Makefile
generic/Makefile
generic/pkgIndex.tcl
])
|