openbsd-ports/net/mrtg/patches/patch-configure_in
2005-10-24 05:12:31 +00:00

27 lines
824 B
Plaintext

$OpenBSD: patch-configure_in,v 1.3 2005/10/24 05:12:31 fgsch Exp $
--- configure.in.orig Tue Jan 13 07:28:11 2004
+++ configure.in Sun Feb 27 10:05:00 2005
@@ -113,6 +113,11 @@ AC_CHECK_LIB(gd,gdImagePng,[
GLIBS="-lgd -lpng -lz"
],:,[-lgd -lpng -lz ${MATHLIBS}])
+AC_CHECK_LIB(gd,gdImageStringTTF,[
+ GDFORM_EXT=png
+ GLIBS="-lgd -lpng -lz -ljpeg"
+ ],:,[-lgd -lpng -lz -ljpeg ${MATHLIBS}])
+
AC_CHECK_LIB(gd,gdImagePng_jpg,[
GDFORM_EXT=png
GLIBS="-lgd -lpng -lz -ljpeg"
@@ -128,8 +133,8 @@ if test x$GDFORM_EXT = xgif; then
fi
AC_CHECK_LIB(gd,gdImageGd,[
- GLIBS="-Wl,-Bstatic ${GLIBS} -Wl,-Bdynamic"
- ],:,[-Wl,-Bstatic ${GLIBS} -Wl,-Bdynamic])
+ GLIBS="${GLIBS}"
+ ],:,[${GLIBS}])
if test x$GDFORM_EXT = xpng; then
CPPFLAGS="$CPPFLAGS -DGFORM_GD=gdImagePng"