/[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.7, Wed Jan 9 00:28:36 2002 UTC revision 1.8, Wed Jun 19 14:47:55 2002 UTC
# Line 23  Line 23 
23                  ])                  ])
24    
25  LIBS="$LIBS -lgd"  LIBS="$LIBS -lgd"
26    have_lib_png="no"
27    have_lib_z="no"
28    have_lib_jpeg="no"
29    
30  AC_ARG_WITH(z-inc,[  --with-z-inc=DIR        location of zlib includes],  AC_ARG_WITH(freetype-lib,[  --with-freetype-lib=DIR    location of freetype library],
31                  [INCL="${INCL} -I${withval}"                  [LIBS="${LIBS} -L${withval} -lttf"
32                  ])                  ])
33    
34  AC_ARG_WITH(z-lib,[  --with-z-lib=DIR        location of zlib library],  AC_ARG_WITH(freetype2-lib,[  --with-freetype2-lib=DIR    location of freetype2 library],
35                  [LIBS="${LIBS} -L${withval} -lz"                  [LIBS="${LIBS} -L${withval} -lfreetype"
36                  ])                  ])
37    
38  AC_ARG_WITH(png-inc,[  --with-png-inc=DIR      location of png includes],  AC_ARG_WITH(png-inc,[  --with-png-inc=DIR      location of png includes],
# Line 38  Line 41 
41    
42  AC_ARG_WITH(png-lib,[  --with-png-lib=DIR      location of png library],  AC_ARG_WITH(png-lib,[  --with-png-lib=DIR      location of png library],
43                  [LIBS="${LIBS} -L${withval} -lpng"                  [LIBS="${LIBS} -L${withval} -lpng"
44                     have_lib_png="yes"
45                  ])                  ])
46    
47  AC_ARG_WITH(jpeg-inc,[  --with-jpeg-inc=DIR    location of jpeg includes],  AC_ARG_WITH(jpeg-inc,[  --with-jpeg-inc=DIR    location of jpeg includes],
# Line 46  Line 50 
50    
51  AC_ARG_WITH(jpeg-lib,[  --with-jpeg-lib=DIR    location of jpeg library],  AC_ARG_WITH(jpeg-lib,[  --with-jpeg-lib=DIR    location of jpeg library],
52                  [LIBS="${LIBS} -L${withval} -ljpeg"                  [LIBS="${LIBS} -L${withval} -ljpeg"
53                     have_lib_jpeg="yes"
54                  ])                  ])
55    
56  AC_ARG_WITH(freetype-lib,[  --with-freetype-lib=DIR    location of freetype library],  AC_ARG_WITH(z-inc,[  --with-z-inc=DIR        location of zlib includes],
57                  [LIBS="${LIBS} -L${withval} -lttf"                  [INCL="${INCL} -I${withval}"
58                  ])                  ])
59    
60  AC_ARG_WITH(freetype2-lib,[  --with-freetype2-lib=DIR    location of freetype2 library],  AC_ARG_WITH(z-lib,[  --with-z-lib=DIR        location of zlib library],
61                  [LIBS="${LIBS} -L${withval} -lfreetype"                  [LIBS="${LIBS} -L${withval} -lz"
62                     have_lib_z="yes"
63                  ])                  ])
64    
65  AC_ARG_ENABLE(speed,[  --disable-speed         Turn off lex table optimization reducing speed and size of executable],  AC_ARG_ENABLE(speed,[  --disable-speed         Turn off lex table optimization reducing speed and size of executable],
# Line 95  Line 101 
101  dnl Checks for libraries.  dnl Checks for libraries.
102  AC_CHECK_LIB(m, sqrt, [  AC_CHECK_LIB(m, sqrt, [
103          AC_DEFINE(LIBM)          AC_DEFINE(LIBM)
104          MATHLIBS="-lm" ])          MATHLIBS="-lm"
105            ])
106    
107  dnl which version of gd do we have here? (taken from mrtg config)  dnl which version of gd do we have here? (taken from mrtg config)
108  AC_CHECK_LIB(gd,gdImageGif,[  AC_CHECK_LIB(gd,gdImageGif,[
109          AC_DEFINE(HAVE_IMAGE_GIF)          AC_DEFINE(HAVE_IMAGE_GIF)
110          ])          ]
111            have_gifs="yes",
112            have_gifs="no",
113            $MATHLIBS )
114    
115    dnl If we don't have gifs, then force png/jpeg libs to be present.
116    dnl This should be adequate for all newer libgd versions.
117    if test "$have_gifs" = "no"
118    then
119            if test "$have_lib_jpeg" = "no"
120            then
121                    LIBS="${LIBS} -ljpeg"
122            fi
123            if test "$have_lib_png" = "no"
124            then
125                    LIBS="${LIBS} -lpng"
126            fi
127            if test "$have_lib_z" = "no"
128            then
129                    LIBS="${LIBS} -lz"
130            fi
131    fi
132    
133    LIBS="${LIBS} ${MATHLIBS}"
134    
135  AC_CHECK_LIB(gd,gdImagePng,[  AC_CHECK_LIB(gd,gdImagePng,[
136          AC_DEFINE(HAVE_IMAGE_PNG)          AC_DEFINE(HAVE_IMAGE_PNG)
137          ])          ])

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0