1997-10-18 11:34:02 +00:00
|
|
|
/* config.h: master configuration file, included first by all compilable
|
|
|
|
source files (not headers).
|
|
|
|
|
1999-11-11 14:31:27 +00:00
|
|
|
Copyright (C) 1993, 95, 96, 97 Free Software Foundation, Inc.
|
1997-10-18 11:34:02 +00:00
|
|
|
|
1999-11-11 14:31:27 +00:00
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
1997-10-18 11:34:02 +00:00
|
|
|
|
1999-11-11 14:31:27 +00:00
|
|
|
This library is distributed in the hope that it will be useful,
|
1997-10-18 11:34:02 +00:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
1999-11-11 14:31:27 +00:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
1997-10-18 11:34:02 +00:00
|
|
|
|
1999-11-11 14:31:27 +00:00
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
1997-10-18 11:34:02 +00:00
|
|
|
|
|
|
|
#ifndef KPATHSEA_CONFIG_H
|
|
|
|
#define KPATHSEA_CONFIG_H
|
|
|
|
|
1999-11-11 14:31:27 +00:00
|
|
|
/* System defines are for non-Unix systems only. (Testing for all Unix
|
|
|
|
variations should be done in configure.) Presently the defines used
|
|
|
|
are: AMIGA DOS OS2 VMCMS VMS WIN32. I do not use any of these systems
|
|
|
|
myself; if you do, I'd be grateful for any changes. --kb@mail.tug.org */
|
1997-10-18 11:34:02 +00:00
|
|
|
|
1999-11-11 14:31:27 +00:00
|
|
|
/* If we have either DOS or OS2, we are DOSISH. */
|
|
|
|
#if defined (DOS) || defined (OS2) || defined (WIN32) || defined(__MSDOS__)
|
|
|
|
#define DOSISH
|
|
|
|
#endif
|
1997-10-18 11:34:02 +00:00
|
|
|
|
1999-11-11 14:31:27 +00:00
|
|
|
#if defined (DOSISH)
|
|
|
|
#define MONOCASE_FILENAMES /* case-insensitive filename comparisons */
|
|
|
|
#endif
|
1997-10-18 11:34:02 +00:00
|
|
|
|
1999-11-11 14:31:27 +00:00
|
|
|
#ifdef WIN32
|
|
|
|
#define __STDC__ 1
|
|
|
|
#endif /* not WIN32 */
|
1997-10-18 11:34:02 +00:00
|
|
|
|
1999-11-11 14:31:27 +00:00
|
|
|
/* System dependencies that are figured out by `configure'. */
|
|
|
|
#include <kpathsea/c-auto.h>
|
1997-10-18 11:34:02 +00:00
|
|
|
|
1999-11-11 14:31:27 +00:00
|
|
|
#ifdef __DJGPP__
|
|
|
|
#include <fcntl.h> /* for long filenames' stuff */
|
|
|
|
#include <dir.h> /* for `getdisk' */
|
|
|
|
#include <io.h> /* for `setmode' */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef WIN32
|
|
|
|
#include <kpathsea/win32lib.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Some drivers have partially integrated kpathsea changes. */
|
|
|
|
#ifndef KPATHSEA
|
|
|
|
#define KPATHSEA 33
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <kpathsea/c-std.h> /* <stdio.h>, <math.h>, etc. */
|
|
|
|
|
|
|
|
#include <kpathsea/c-proto.h> /* Macros to discard or keep prototypes. */
|
|
|
|
|
|
|
|
#include <kpathsea/debug.h> /* Runtime tracing. */
|
|
|
|
#include <kpathsea/lib.h> /* STREQ, etc. */
|
|
|
|
#include <kpathsea/types.h> /* <sys/types.h>, boolean, string, etc. */
|
|
|
|
#include <kpathsea/progname.h> /* for program_invocation_*name */
|
|
|
|
|
|
|
|
|
1997-10-18 11:34:02 +00:00
|
|
|
/* If you want to find subdirectories in a directory with non-Unix
|
|
|
|
semantics (specifically, if a directory with no subdirectories does
|
|
|
|
not have exactly two links), define this. */
|
1999-11-11 14:31:27 +00:00
|
|
|
#if !defined (VMS) && !defined (VMCMS)
|
|
|
|
#if !defined (DOSISH) || defined(__DJGPP__)
|
|
|
|
/* Surprise! DJGPP returns st_nlink exactly like on Unix. */
|
|
|
|
#define ST_NLINK_TRICK
|
|
|
|
#endif /* either not DOSISH or __DJGPP__ */
|
1997-10-18 11:34:02 +00:00
|
|
|
#endif /* not DOS and not VMS and not VMCMS */
|
|
|
|
|
1999-11-11 14:31:27 +00:00
|
|
|
#ifdef AMIGA
|
|
|
|
/* No popen/pclose on Amiga, but rather than put #ifdef's in tex-make.c,
|
|
|
|
let's get rid of the functions here. (CallMF will automatically
|
|
|
|
generate fonts.) pclose must not be simply empty, since it still
|
|
|
|
occurs in a comparison. */
|
|
|
|
#define popen(cmd, mode) NULL
|
|
|
|
#define pclose(file) 0
|
|
|
|
#endif /* AMIGA */
|
|
|
|
|
|
|
|
#ifdef OS2
|
|
|
|
#define access ln_access
|
|
|
|
#define chmod ln_chmod
|
|
|
|
#define creat ln_creat
|
|
|
|
#define fopen ln_fopen
|
|
|
|
#define freopen ln_freopen
|
|
|
|
#define lstat ln_lstat
|
|
|
|
#define open ln_open
|
|
|
|
#define remove ln_remove
|
|
|
|
#define rename ln_rename
|
|
|
|
#define sopen ln_sopen
|
|
|
|
#define stat ln_stat
|
|
|
|
#define unlink ln_unlink
|
|
|
|
#endif /* OS2 */
|
|
|
|
|
1997-10-18 11:34:02 +00:00
|
|
|
#endif /* not KPATHSEA_CONFIG_H */
|