XCOMM	Imlib compilation configuration file
XCOMM	------------------------------------

XCOMM	Imlib installation directory
XCOMM	----------------------------
XCOMM	The root directory of where the installation will put include and lib.

IMLROOT = /usr

XCOMM	imlib custom configuration file
XCOMM	--------------------------------
XCOMM	Change the following to where you would like imrc and imlib.pal 
XCOMM	to be loaded

CNFDIR = /usr/etc

XCOMM	Location of the NetPBM Utilities
XCOMM	--------------------------------
XCOMM	NetPBM is needed to convert from various formats to various other
XCOMM	formats that imlib understands.  This should be the location of
XCOMM	those files.
XCOMM
XCOMM	On SunOS and Solaris machines, Sun provides these binaries. 

#ifdef	SunArchitecture
NETPBM_DIR = /usr/openwin/bin
#else
NETPBM_DIR = /usr/local/bin
#endif

XCOMM	Location of the IJG JPEG Utilities
XCOMM	----------------------------------
XCOMM	imlib needs convert and djpeg from the IJG.  This is the location
XCOMM	of those files.

CONVERT_DIR = /usr/local/bin
JPEG_PROG = /usr/local/bin/djpeg

XCOMM	JPEG Library Support
XCOMM	--------------------
XCOMM	imlib can use the IJG JPEG library (libjpeg) directly.  If you
XCOMM	wish to compile this in, set this to YES.

#define DoJPEG  YES

XCOMM   PNG Library Support
XCOMM   --------------------
XCOMM   imlib can use the PNG Consortium library (libpng) directly.  
XCOMM	If you wish to compile this in, set this to YES.
XCOMM	[NOTE:  This library requires libz be availabel too.]

#define DoPNG YES

XCOMM   TIFF Library Support
XCOMM   --------------------
XCOMM   imlib can use the TIFF library (libtiff) directly.  If you
XCOMM   wish to compile this in, set this to YES.

#define DoTIFF YES

XCOMM   GIF Library Support
XCOMM   -------------------
XCOMM   imlib can use the GIF library (libgif) directly.  If you
XCOMM   wish to compile this in, set this to YES.

#define DoGIF  YES


XCOMM	Shared Library Support
XCOMM	----------------------
XCOMM	By default, a shared library will be built *if* your architecture
XCOMM	supports it.  If you wish to disable shared libraries, then either
XCOMM	comment this out or change HasSharedLibraries to NO.

#define DoSharedLib HasSharedLibraries

XCOMM	Extra Library Support
XCOMM	-------------------------
XCOMM	If you are a developer and wish to activate debugging, profiled,
XCOMM	or a lint'ed library, activate them here.  For most users, 
XCOMM	the defaults are fine.

#define DoLintLib NO
#define DoProfileLib NO
#define DoDebugLib NO

XCOMM	String Prototypes
XCOMM	-----------------
XCOMM	Most environments have either a strings.h or a string.h  or both... 
XCOMM	and, a few have neither. Change the YES to NO if you do not have these
XCOMM	files in /usr/include (or wherever your include files are.)
XCOMM	For most people, the defaults will be fine.

#define StringH YES
#define StringsH NO

XCOMM	Compiler Flags
XCOMM	--------------
XCOMM	By default, the Makefile will have whatever flags you need defined
XCOMM	according to what is in the Imake configuration files.  You
XCOMM	can make some custom changes here:

XCOMM   GNU C v2.xxx flags
#if HasGcc2
IML_USR_FLAGS = -Wall -pedantic

XCOMM   Solaris v2.6+  or  Solaris v2.5.1-
#elif defined(HasSunC) || defined(SunArchitecture) && defined(SVR4)    
IML_USR_FLAGS = -v -fast -native -D__EXTENSIONS__

XCOMM   Digital UNIX
#elif ModernOSF1                        /* Digital UNIX */
IML_USR_FLAGS = -fast -verbose -warnprotos -D__EXTENSIONS__

XCOMM	<Your OS Here>
#else
IML_USR_FLAGS =
#endif

XCOMM	Include Files
XCOMM	-------------
XCOMM	If you have some extra include files that you would like to
XCOMM	have available, set this.

XCOMM IML_USR_INC = -I<your directory here>

XCOMM	Library Files
XCOMM	-------------
XCOMM	If you need an additional path to find libraries in,
XCOMM	set this.

XCOMM IML_USR_LIB = -L<your directory here>

XCOMM -------------------------------------------------------------------
XCOMM -------------------------------------------------------------------
XCOMM        DO NOT MODIFY ANYTHING BELOW THIS SECTION
XCOMM -------------------------------------------------------------------
XCOMM -------------------------------------------------------------------
XCOMM
XCOMM	Developers:  These defines are availble to you for your own
XCOMM			Imakefiles.  

#if (RequireImlibDefs > 0 )

XCOMM Have imlib do JPEG rendering?
#if DoJPEG
JPEGL_DEF = -DBUILTIN_JPEG
JPEGL_LIB = -ljpeg
#endif

XCOMM Have imlib do PNG rendering?
#if DoPNG
PNGL_DEF = -DBUILTIN_PNG
PNGL_LIB = -lpng -lz -lm
#endif

XCOMM Have imlib do TIFF rendering?
#if DoTIFF
TIFFL_DEF = -DBUILTIN_TIFF
TIFFL_LIB = -ltiff
#endif

XCOMM Have imlib do GIF rendering?
#if DoGIF
GIFL_DEF = -DBUILTIN_GIF
GIFL_LIB = -lgif
#endif

GRFX_DEF = $(JPEGL_DEF) $(PNGL_DEF) $(TIFFL_DEF) $(GIFL_DEF)
GRFX_LIB = $(JPEGL_LIB) $(PNGL_LIB) $(TIFFL_LIB) $(GIFL_LIB)

#endif
