#ifndef	__CONF_H_
#define	__CONF_H_	__CONF_H_

#include <lconf.h>
#include "config.h"

/* Workaround for bug in IRIX headers */
#if	defined(IRIX_6) || defined(IRIX64_6)
#define	_KMEMUSER	1
#endif
/* sometimes not defined by SGI's compilers (?) */
#if	defined(IRIX_5) || defined(IRIX_6) || defined(IRIX64_6)
#ifndef	sgi
#define	sgi	sgi
#endif
#endif

#ifdef	_64_BIT_FILESIZE_
#ifdef	_AIX
#define	_LARGE_FILES	1
#define	_LARGE_FILE_API	1
#endif
#if	defined(sun) || defined(linux)
#define	_FILE_OFFSET_BITS	64
#endif
#ifdef	hpux
#if 0	/* not compilable (????) (HP @#~*&%§ !!!) */
#define	_LARGEFILE64_SOURCE	1
#endif
#endif
#endif	/* defined(_64_BIT_FILESIZE_) */

#ifdef	HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef	HAVE_SYS_TIME_H
#ifdef	TIME_WITH_SYS_TIME
#include <time.h>
#endif
#endif

#ifdef	HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif

#ifdef  HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#ifdef  HAVE_SYS_STATFS_H
#include <sys/statfs.h>
#endif

/* cannot use pthread_create cause dumb IRIX will fail compiling */
#ifdef	HAVE_PTHREAD_JOIN
#define	HAVE_POSIX_THREADS	1
#endif

#ifdef	bioware_4
#define	REGEX_MALLOC	1
#endif

#ifdef	ENABLE_NLS
#ifdef	HAVE_INTL_LIBINTL_H
#include <intl/libintl.h>
#else
#include <libintl.h>
#endif
#define T_(String) gettext(String)
#ifdef gettext_noop
# define TN_(String) gettext_noop(String)
#else
# define TN_(String) (String)
#endif
#else /* !ENABLE_NLS */
#define T_(String) (String)
#define TN_(String) (String)
#endif /* ENABLE_NLS */

#endif	/* !defined(__CONF_H_) */
