version 1.1.1.2, 2000/01/22 14:15:56 |
version 1.1.1.3, 2003/09/15 07:09:23 |
|
|
/* |
/* |
* Define operating system dependent constants [default value]: |
* Define operating system dependent constants [default value]: |
* |
* |
* OS: [" "] Name of OS plus trailing space |
* OS: [""] Name of OS; only required if system has no uname(2) call |
* HELPFILE: ["docs/gnuplot.gih"] Location of helpfile - overridden by Makefile |
* HELPFILE: ["docs/gnuplot.gih"] Location of helpfile - overridden by Makefile |
* HOME: ["HOME"] Name of environment variable which points to |
* HOME: ["HOME"] Name of environment variable which points to |
* the directory where gnuplot's config file is found. |
* the directory where gnuplot's config file is found. |
|
|
*/ |
*/ |
|
|
#if defined(AMIGA_SC_6_1) || defined(AMIGA_AC_5) || defined(__amigaos__) |
#if defined(AMIGA_SC_6_1) || defined(AMIGA_AC_5) || defined(__amigaos__) |
# define OS "Amiga " |
|
# ifndef __amigaos__ |
# ifndef __amigaos__ |
|
# define OS "Amiga" |
# define HELPFILE "S:gnuplot.gih" |
# define HELPFILE "S:gnuplot.gih" |
# define HOME "GNUPLOT" |
# define HOME "GNUPLOT" |
# define SHELL "NewShell" |
# define SHELL "NewShell" |
|
|
#endif /* Amiga */ |
#endif /* Amiga */ |
|
|
#ifdef ATARI |
#ifdef ATARI |
# define OS "TOS " |
# define OS "TOS" |
# define HOME "GNUPLOT" |
# define HOME "GNUPLOT" |
# define PLOTRC "gnuplot.ini" |
# define PLOTRC "gnuplot.ini" |
# define SHELL "gulam.prg" |
# define SHELL "gulam.prg" |
|
|
#endif /* Atari */ |
#endif /* Atari */ |
|
|
#ifdef DOS386 |
#ifdef DOS386 |
# define OS "DOS 386 " |
# define OS "DOS 386" |
# define HELPFILE "gnuplot.gih" |
# define HELPFILE "gnuplot.gih" |
# define HOME "GNUPLOT" |
# define HOME "GNUPLOT" |
# define PLOTRC "gnuplot.ini" |
# define PLOTRC "gnuplot.ini" |
|
|
# define DIRSEP1 '\\' |
# define DIRSEP1 '\\' |
#endif /* DOS386 */ |
#endif /* DOS386 */ |
|
|
#if defined(linux) || defined(__linux) |
|
# define OS "Linux " |
|
#endif /* Linux */ |
|
|
|
#if defined(__NeXT__) || defined(NEXT) |
#if defined(__NeXT__) || defined(NEXT) |
# ifndef NEXT |
# ifndef NEXT |
# define NEXT |
# define NEXT |
|
|
#endif /* NeXT */ |
#endif /* NeXT */ |
|
|
#ifdef OS2 |
#ifdef OS2 |
# define OS "OS/2 " |
# define OS "OS/2" |
# define HELPFILE "gnuplot.gih" |
# define HELPFILE "gnuplot.gih" |
# define HOME "GNUPLOT" |
# define HOME "GNUPLOT" |
# define PLOTRC "gnuplot.ini" |
# define PLOTRC "gnuplot.ini" |
|
|
#endif /* OS/2 */ |
#endif /* OS/2 */ |
|
|
#ifdef OSK |
#ifdef OSK |
# define OS "OS-9 " |
# define OS "OS-9" |
# define SHELL "/dd/cmds/shell" |
# define SHELL "/dd/cmds/shell" |
#endif /* OS-9 */ |
#endif /* OS-9 */ |
|
|
#if defined(vms) || defined(VMS) |
#if defined(vms) || defined(VMS) |
# define OS "VMS " |
# define OS "VMS" |
# ifndef VMS |
# ifndef VMS |
# define VMS |
# define VMS |
# endif |
# endif |
|
|
# define _Windows |
# define _Windows |
# endif |
# endif |
# ifdef WIN32 |
# ifdef WIN32 |
# define OS "MS-Windows 32 bit " |
# define OS "MS-Windows 32 bit" |
/* introduced by Pedro Mendes, prm@aber.ac.uk */ |
/* introduced by Pedro Mendes, prm@aber.ac.uk */ |
# define far |
# define far |
/* Fix for broken compiler headers |
/* Fix for broken compiler headers |
|
|
*/ |
*/ |
# define S_IFIFO _S_IFIFO |
# define S_IFIFO _S_IFIFO |
# else |
# else |
# define OS "MS-Windows " |
# define OS "MS-Windows" |
# ifndef WIN16 |
# ifndef WIN16 |
# define WIN16 |
# define WIN16 |
# endif |
# endif |
|
|
# endif |
# endif |
/* should this be here ? */ |
/* should this be here ? */ |
# ifdef MTOS |
# ifdef MTOS |
# define OS "TOS & MiNT & MULTITOS & Magic - " |
# define OS "TOS & MiNT & MULTITOS & Magic -" |
# endif /* MTOS */ |
# endif /* MTOS */ |
# define OS "MS-DOS " |
# define OS "MS-DOS" |
# undef HELPFILE |
# undef HELPFILE |
# define HELPFILE "gnuplot.gih" |
# define HELPFILE "gnuplot.gih" |
# define HOME "GNUPLOT" |
# define HOME "GNUPLOT" |
|
|
# endif |
# endif |
#endif /* MSDOS */ |
#endif /* MSDOS */ |
|
|
/* Note: may not catch all IBM AIX compilers or SCO compilers */ |
|
/* cc on NetBSD doesn't define unix anymore :-/ */ |
|
#if defined(unix)|| defined(__unix) || defined(_AIX) || defined(__NetBSD__) || defined(SCO) |
|
# ifndef unix |
|
# define unix |
|
# endif |
|
# ifndef OS |
|
# define OS "Unix " |
|
# endif |
|
#endif /* Unix */ |
|
|
|
/* End OS dependent constants; fall-through defaults |
/* End OS dependent constants; fall-through defaults |
* for the constants defined above are following. |
* for the constants defined above are following. |
*/ |
*/ |
|
|
#ifndef OS |
#ifndef HAVE_SYS_UTSNAME |
# define OS " " |
# ifndef OS |
|
# define OS "(unknown)" |
|
# endif |
#endif |
#endif |
|
|
#ifndef HELPFILE |
#ifndef HELPFILE |
|
|
#endif |
#endif |
|
|
#ifndef FAQ_LOCATION |
#ifndef FAQ_LOCATION |
/* # define FAQ_LOCATION "http://www.uni-karlsruhe.de/~ig25/gnuplot-faq/" */ |
#define FAQ_LOCATION "http://www.gnuplot.info/gnuplot-faq.html" |
/* #define FAQ_LOCATION "http://www-ihe.etec.uni-karlsruhe.de/mitarbeiter/vonhagen/gnuplot-faq.html" */ |
|
#define FAQ_LOCATION "http://www.ucc.ie/gnuplot/gnuplot-faq.html" |
|
#endif |
#endif |
|
|
#ifndef CONTACT |
#ifndef CONTACT |
|
|
# ifndef UNIXPC |
# ifndef UNIXPC |
# define UNIXPC |
# define UNIXPC |
# endif |
# endif |
|
#endif |
|
|
|
#ifdef HAVE_SIGSETJMP |
|
# define SETJMP(env, save_signals) sigsetjmp(env, save_signals) |
|
# define LONGJMP(env, retval) siglongjmp(env, retval) |
|
# define JMP_BUF sigjmp_buf |
|
#else |
|
# define SETJMP(env, save_signals) setjmp(env) |
|
# define LONGJMP(env, retval) longjmp(env, retval) |
|
# define JMP_BUF jmp_buf |
#endif |
#endif |
|
|
/* Autoconf related stuff |
/* Autoconf related stuff |