Diff

Differences From Artifact [2cb258376d]:

To Artifact [1011f72d15]:


     5      5   AC_PROG_CC
     6      6   AC_PROG_MAKE_SET
     7      7   AC_PROG_INSTALL
     8      8   AC_AIX
     9      9   AC_GNU_SOURCE
    10     10   
    11     11   dnl Find the appropriate libraries to link to
    12         -AC_SEARCH_LIBS(inflate, z zlib,, [ AC_MSG_WARN([Couldn't find inflate (normally in zlib)!]) ])
    13     12   AC_SEARCH_LIBS(acos, m,, [ AC_MSG_WARN([Couldn't find acos (normally in libm)!]) ])
    14     13   AC_SEARCH_LIBS(dlsym, dl,, [ AC_MSG_WARN([Couldn't find dlsym (normally in libdl)!]) ])
    15     14   
    16     15   dnl Find the appropriate Tcl headers and libraries
    17     16   DC_DO_TCL
    18     17   
    19     18   dnl Find archives we need to link to
    20     19   DC_FIND_TCLKIT_LIBS
    21     20   
    22         -dnl Find any platform specific defines that we need to make
    23         -DC_SETUP_TCL_PLAT_DEFS
    24         -
    25     21   dnl Determine if we have "Tcl_SetStartupScript" (8.6.x) or "TclSetStartupScriptPath" (8.4.x)
    26     22   SAVE_LIBS="${LIBS}"
    27     23   LIBS="${ARCHS} ${LIBS}"
    28     24   AC_CHECK_FUNCS(Tcl_SetStartupScript TclSetStartupScriptPath)
    29     25   LIBS="${SAVE_LIBS}"
    30     26   
           27  +dnl Find zlib
           28  +AC_ARG_WITH(zlib, AC_HELP_STRING([--with-zlib], [directory containing zlib]), [
           29  +	CFLAGS="${CFLAGS} -I${with_zlib}/include -I${with_zlib}"
           30  +	LDFLAGS="${CFLAGS} -L${with_zlib}/lib -L${with_zlib}"
           31  +])
           32  +AC_SEARCH_LIBS(inflate, z zlib,, [ AC_MSG_WARN([Couldn't find inflate (normally in zlib)!]) ])
           33  +
    31     34   dnl Produce output
    32     35   AC_OUTPUT(Makefile)