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
|
Index: magicpoint-1.11b/configure.in
===================================================================
--- magicpoint-1.11b/configure.in {cset b4d3ff90-24b8-4cde-9052-f5859b9ff17a}
+++ magicpoint-1.11b/configure.in {local clone}
@@ -292,27 +292,35 @@
done
fi
-for i in /usr/pkg /usr/local /usr; do
- if test -f $i/include/libmng.h; then
- if test -f $i/lib/libmng.a ; then
- DEPLIBS="$DEPLIBS $i/lib/libmng.a"
- elif test -f $i/lib/libmng.so ; then
- DEPLIBS="$DEPLIBS $i/lib/libmng.so"
- else
- break;
- fi
- LIBS="$LIBS -L$i/lib"
- OPTFLAGS="$OPTFLAGS -I$i/include"
- AC_CHECK_LIB(mng, mng_initialize,
- [LIBS="$LIBS -Wl,-rpath,$i/lib -lmng"
- AC_DEFINE(MNG)],
- [AC_CHECK_LIB(mng, mng_readdisplay,
- [LIBS="$LIBS -lmng -ljpeg"
- AC_DEFINE(MNG)],
- [], [-ljpeg])])
- break
- fi
-done
+AC_MSG_CHECKING(if mng handling is enabled)
+AC_ARG_ENABLE(mng,
+ [ --enable-mng compile mng support in.],
+ [mgp_mng="$enableval"],
+ [mgp_mng="no"])
+AC_MSG_RESULT($mgp_mng)
+if test $mgp_mng = "yes"; then
+ for i in /usr/pkg /usr/local /usr; do
+ if test -f $i/include/libmng.h; then
+ if test -f $i/lib/libmng.a ; then
+ DEPLIBS="$DEPLIBS $i/lib/libmng.a"
+ elif test -f $i/lib/libmng.so ; then
+ DEPLIBS="$DEPLIBS $i/lib/libmng.so"
+ else
+ break;
+ fi
+ LIBS="$LIBS -L$i/lib"
+ OPTFLAGS="$OPTFLAGS -I$i/include"
+ AC_CHECK_LIB(mng, mng_initialize,
+ [LIBS="$LIBS -Wl,-rpath,$i/lib -lmng"
+ AC_DEFINE(MNG)],
+ [AC_CHECK_LIB(mng, mng_readdisplay,
+ [LIBS="$LIBS -lmng -ljpeg"
+ AC_DEFINE(MNG)],
+ [], [-ljpeg])])
+ break
+ fi
+ done
+fi
dnl Checks for header files.
AC_PATH_X
|