/[CvsGraph]/cvsgraph/configure.in
ViewVC logotype

Diff of /cvsgraph/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.9, Sat Jul 20 00:48:17 2002 UTC revision 1.10, Sat Jul 20 20:41:40 2002 UTC
# Line 183  Line 183 
183  OLIBS="${LIBS}"  OLIBS="${LIBS}"
184  LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBJPEG} ${MATHLIB}"  LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBJPEG} ${MATHLIB}"
185  AC_CACHE_CHECK( "whether libgd needs -lpng", ac_cv_gd_needs_png,  AC_CACHE_CHECK( "whether libgd needs -lpng", ac_cv_gd_needs_png,
186            AC_TRY_LINK_FUNC( gdImageCreate, [            AC_TRY_LINK_FUNC( gdImagePng, [
187          ac_cv_gd_needs_png="no"          ac_cv_gd_needs_png="no"
188          ] , [          ] , [
189          ac_cv_gd_needs_png="yes"          ac_cv_gd_needs_png="yes"
# Line 193  Line 193 
193  OLIBS="${LIBS}"  OLIBS="${LIBS}"
194  LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBPNG} ${LIBZ} ${MATHLIB}"  LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBPNG} ${LIBZ} ${MATHLIB}"
195  AC_CACHE_CHECK( "whether libgd needs -ljpeg", ac_cv_gd_needs_jpeg,  AC_CACHE_CHECK( "whether libgd needs -ljpeg", ac_cv_gd_needs_jpeg,
196            AC_TRY_LINK_FUNC( gdImageCreate, [            AC_TRY_LINK_FUNC( gdImageJpeg, [
197          ac_cv_gd_needs_jpeg="no"          ac_cv_gd_needs_jpeg="no"
198          ] , [          ] , [
199          ac_cv_gd_needs_jpeg="yes"          ac_cv_gd_needs_jpeg="yes"
# Line 203  Line 203 
203  OLIBS="${LIBS}"  OLIBS="${LIBS}"
204  LIBS="${LIBS} ${LIBFT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}"  LIBS="${LIBS} ${LIBFT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}"
205  AC_CACHE_CHECK( "whether libgd needs -lttf", ac_cv_gd_needs_ttf,  AC_CACHE_CHECK( "whether libgd needs -lttf", ac_cv_gd_needs_ttf,
206            AC_TRY_LINK_FUNC( gdImageCreate, [            AC_TRY_LINK_FUNC( gdImageStringTTF, [
207          ac_cv_gd_needs_ttf="no"          ac_cv_gd_needs_ttf="no"
208          ] , [          ] , [
209          ac_cv_gd_needs_ttf="yes"          ac_cv_gd_needs_ttf="yes"
# Line 213  Line 213 
213  OLIBS="${LIBS}"  OLIBS="${LIBS}"
214  LIBS="${LIBS} ${LIBTT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}"  LIBS="${LIBS} ${LIBTT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}"
215  AC_CACHE_CHECK( "whether libgd needs -lfreetype", ac_cv_gd_needs_freetype,  AC_CACHE_CHECK( "whether libgd needs -lfreetype", ac_cv_gd_needs_freetype,
216            AC_TRY_LINK_FUNC( gdImageCreate, [            AC_TRY_LINK_FUNC( gdImageStringFT, [
217          ac_cv_gd_needs_freetype="no"          ac_cv_gd_needs_freetype="no"
218          ] , [          ] , [
219          ac_cv_gd_needs_freetype="yes"          ac_cv_gd_needs_freetype="yes"
# Line 222  Line 222 
222    
223  if test "$ac_cv_gd_needs_freetype" = "yes"  if test "$ac_cv_gd_needs_freetype" = "yes"
224  then  then
225          if test "$ac_have_libfreetype" != "yes"          if test "$ac_have_libfreetype" != "yes" -a "$ac_have_libttf" != "yes"
226          then          then
227                  echo "** WARNING: Required library libfreetype not found"                  echo "** WARNING: Required library libfreetype not found"
228          fi          fi
# Line 231  Line 231 
231    
232  if test "$ac_cv_gd_needs_ttf" = "yes"  if test "$ac_cv_gd_needs_ttf" = "yes"
233  then  then
234          if test "$ac_have_libttf" != "yes"          if test "$ac_have_libttf" != "yes" -a "$ac_have_libfreetype" != "yes"
235          then          then
236                  echo "** WARNING: Required library libttf not found"                  echo "** WARNING: Required library libttf not found"
237          fi          fi
# Line 291  Line 291 
291          AC_DEFINE(HAVE_IMAGE_JPEG)          AC_DEFINE(HAVE_IMAGE_JPEG)
292          ])          ])
293  AC_CHECK_LIB(gd, gdImageStringTTF, [  AC_CHECK_LIB(gd, gdImageStringTTF, [
294          AC_DEFINE(HAVE_GDIMAGESTRINGTTF)          if test "$ac_have_libttf" = "yes"
295            then
296                    AC_DEFINE(HAVE_GDIMAGESTRINGTTF)
297            fi
298          ])          ])
299  AC_CHECK_LIB(gd, gdImageStringFT, [  AC_CHECK_LIB(gd, gdImageStringFT, [
300          AC_DEFINE(HAVE_GDIMAGESTRINGFT)          if test "$ac_have_libfreetype" = "yes"
301            then
302                    AC_DEFINE(HAVE_GDIMAGESTRINGFT)
303            fi
304          ])          ])
305    
306    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0