XCOMM ----------------------------------------------------------------------
XCOMM XmHTML.cf: imake configuration file for the XmHTML Widget Library
XCOMM
XCOMM (C)Copyright 1995-1997 Ripley Software Development
XCOMM All Rights Reserved
XCOMM
XCOMM This file is part of the XmHTML Widget Library.
XCOMM
XCOMM See the file LICENSE for the full copyright statement.

XCOMM ----------------------------------------------------------------------
XCOMM Root of XmHTML Source Tree
XCOMM ----------------------------------------------------------------------
XCOMM If BUILDINCTOP is not or incorrectly set on your system, you can
XCOMM override it here.
XCOMM BUILDINCTOP=<path to root of the XmHTML source tree>
BUILDINCTOP=/home/newt/src/XmHTML/XmHTML

XCOMM ----------------------------------------------------------------------
XCOMM Installation Directories
XCOMM ----------------------------------------------------------------------
XCOMM This specifies where the XmHTML and http library will be installed
#define XmHTMLLibDir $(USRLIBDIR)

XCOMM This specifies where the XmHTML and http header files will be installed
#define XmHTMLIncDir $(INCROOT)/XmHTML

XCOMM ----------------------------------------------------------------------
XCOMM Common Desktop Environment
XCOMM ----------------------------------------------------------------------
XCOMM If you are using CDE and have the development system for it installed,
XCOMM uncommenting the following lines might help. STD_INCLUDES indicates
XCOMM where the CDE/Motif header files are located, XMLIB indicates where
XCOMM libXm is to be found. The last one tells imake not to look for the
XCOMM Motif.tmpl imake configuration file.

XCOMM STD_INCLUDES = -I/usr/dt/include
XCOMM XMLIB = -L/usr/dt/lib -lXm
XCOMM #define MotifDefines

XCOMM ----------------------------------------------------------------------
XCOMM Image support configuration
XCOMM ----------------------------------------------------------------------

XCOMM XPM support.
XCOMM Only required for imakes that don't include libXpm automatically
XCOMM (Probably anything below Motif 2.X). XmHTML references to the xpm.h
XCOMM header file as <X11/xpm.h>. Uncomment and fill in the proper
XCOMM paths to xpm.h and libXpm. The defaults are /usr/X11R6/include (or
XCOMM wherever your X includes live) and /usr/X11R6/lib (or wherever your X
XCOMM libraries live)
XCOMM XPMINCLUDES  = -I$(INCROOT)
XCOMM XPMLIBRARIES = -L$(LIBDIR) -lXpm

XCOMM JPEG Support. Enabled by default.
XCOMM You require libjpeg, version 6 or above. If you don't have this lib
XCOMM or don't want jpeg support, set IHaveJPEG to NO.
XCOMM JPEGINC indicates where the jpeg header files ar to be found while
XCOMM JPEGLIB indicates where libjpeg is to be found.
XCOMM Required include files: jpeglib.h, jconfig.h, jmorecfg.h

#define IHaveJPEG YES
JPEGINC =
JPEGLIB = -ljpeg

XCOMM PNG Support. Enabled by default.
XCOMM You require libpng, version 0.96 or above. If you don't have this lib
XCOMM or don't want png support, set IHavePNG to NO. PNG also requires zlib.
XCOMM Required include files: png.h, pngconf.h

#define IHavePNG YES
PNGINC = 
PNGLIB = -lpng

XCOMM zlib Support. Enabled by default. PNG support implies zlib.
XCOMM You require libz, version 1.0.4 or above. If you don't have this lib
XCOMM or don't want png/gzf support, set IHaveZLIB to NO
XCOMM Required include files: zlib.h, zconf.h

#define IHaveZLIB YES
ZLIBINC = 
ZLIBLIB = -lz -lm

XCOMM ----------------------------------------------------------------------
XCOMM Full Text Searching Using POSIX 1. Regular Expressions
XCOMM ----------------------------------------------------------------------
XCOMM If your system does not provide a POSIX 1. compliant regex, define
XCOMM IHavePosixRegex to NO.
XCOMM (POSIX regex defines the following functions: regcomp, regexec,
XCOMM regerror and regfree, so if you have them, leave it like this.)
#define IHavePosixRegex NO

XCOMM ----------------------------------------------------------------------
XCOMM Runtime Debug support
XCOMM ----------------------------------------------------------------------
XCOMM If you want support for selectable debugging, set IWantDebug to YES
XCOMM This will include debug.o and debug_menu.o when building the library.
XCOMM debug.o contains the low-level debug routines that perform the actual
XCOMM setting of the debugging levels. debug_menu.o contains a convenience
XCOMM routine that will add a ``Debug'' menu item to the menubar of your
XCOMM application. This menu allows you to select debug output at runtime.
XCOMM IWantDebug *must* have a value. Commenting it will lead to
XCOMM to imake/make errors.

#define IWantDebug NO
DEBUG = -DDEBUG

XCOMM If you have dmalloc and want support for it, set IHaveDmalloc to YES
XCOMM and fill in the path to the dmalloc includes & paths.

#define IHaveDmalloc NO
DMALLOCINC =
DMALLOCLIB = -ldmalloc

XCOMM ----------------------------------------------------------------------
XCOMM XmHTML Widget Set Libary targets
XCOMM ----------------------------------------------------------------------
XCOMM If you want a library to be build, set it to YES, and if you don't
XCOMM want it, set to NO.
XCOMM
XCOMM You must set explicit values for these targets. Don't comment them.
XCOMM
XCOMM Shared libraries are not supported for SGI and Linux a.out, as they
XCOMM require some sort of specification files which I don't have.
XCOMM
XCOMM Update 24 july 1997:
XCOMM Richard Offer (offer@sgi.com) says the not yet released Irix 6.5 builds
XCOMM shared libs without problems.
XCOMM
#define SharedLibXmHTML YES
#define NormalLibXmHTML YES
#define DebugLibXmHTML NO

XCOMM Systems requiring additional defines and/or libraries.
XCOMM If you are compiling XmHTML on a system not listed below and
XCOMM you need additional defines or libraries, this is the place to add
XCOMM them.
XCOMM
XCOMM If your system doesn't have str[n]casecmp, define NEED_STRCASECMP
XCOMM If your system doesn't have strerror, define NEED_STRERROR

#if defined (SVR4Architecture)
XCOMM Unixware 1.1.2
XCOMM From: Thanh Ma (tma@encore.com)
DEFINES = -DNEED_STRCASECMP -DNEED_STRERROR -DSVR4 -DHAVE_MEMCPY
#endif

#if defined (i386SVR4Architecture)
XCOMM Unixware 2.1.1
XCOMM From: Valery Kravchuk (valera@itech.kiev.ua)
DEFINES = -DNEED_STRCASECMP -D_POSIX_SOURCE
SYSLIBS = -lsocket -lnsl -z nodefs
#endif

#if defined (LynxOSArchitecture)
XCOMM LynxOS
XCOMM From: Milburn Taylor (mwt@starbase.neosoft.com)
DEFINES = -DNEED_STRCASECMP
#endif

#if defined (SCOArchitecture) && (OSMajorVersion == 3) && (OSMinorVersion == 2)
XCOMM SCO ODT 3.0 (SYSV 3.2)
DEFINES = -DNEED_STRCASECMP -D_POSIX_SOURCE
SYSLIBS = -lXmu -lintl -lsocket -lPW 
#endif

XCOMM ----------------------------------------------------------------------
XCOMM There's really nothing beyond this line you should be messing with.
XCOMM ----------------------------------------------------------------------

XCOMM You can do whatever you want, but *NEVER* change this number!
VERSION = 1106
ARCHIVE = 1.1.5

XCOMM Internal Image Support Configuration

#if (IHavePNG) && !(IHaveZLIB)
XCOMM PNG support disabled due to XmHTML.cf inconsistency.
#undef IHavePNG
#define IHavePNG NO
PNGINC =
PNGLIB =
#endif

XCOMM JPEG
#if (IHaveJPEG)
JPEGDEF = -DHAVE_LIBJPEG
#else
JPEGINC =
JPEGLIB = 
#endif

XCOMM PNG 
#if (IHavePNG)
PNGDEF = -DHAVE_LIBPNG
#else
PNGINC = 
PNGLIB =
#endif

XCOMM zlib 
#if (IHaveZLIB)
ZLIBDEF = -DHAVE_LIBZ
#else
ZLIBINC =
ZLIBLIB =
#endif

XCOMM Debug Support
#if (IWantDebug == NO)
DEBUG = -DNDEBUG
#endif

XCOMM dmalloc support
#if (IHaveDmalloc)
DMALLOC = -DDMALLOC
#else
DMALLOC = 
DMALLOCINC =
DMALLOCLIB = 
#endif

#if (IHavePosixRegex)
REGDEF = -DHAVE_REGEX
#else
REGDEF =
#endif

#ifndef ForTools
XCOMM Internal image configuration defines
IMAGEDEFINES = $(JPEGDEF) $(PNGDEF) $(ZLIBDEF)

XCOMM include path for selected image types
IMAGEINCS = $(XPMINCLUDES) $(JPEGINC) $(PNGINC) $(ZLIBINC)

XCOMM library path & libraries for selected image types
IMAGELIBS = $(XPMLIBRARIES) $(JPEGLIB) $(PNGLIB) $(ZLIBLIB)

EXTRA_DEFINES  = -DVERSION=$(VERSION) $(DEFINES) $(IMAGEDEFINES) $(REGDEF) \
$(DEBUG) $(DMALLOC)
EXTRA_INCLUDES = -I. -I$(BUILDINCTOP)/include $(IMAGEINCS) $(DMALLOCINC)
EXTRA_LIBRARIES= $(IMAGELIBS) $(DMALLOCLIB) $(SYSLIBS)
#endif

XCOMM End of configuration file.
XCOMM ----------------------------------------------------------------------
