Ignore:
Timestamp:
May 20, 2000, 10:56:25 AM (25 years ago)
Author:
ansari
Message:

Adaptation multiplateforme - Reza 19/5/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/JThreadsC++/JTCSrc/JTC/Config.h

    r1016 r1018  
    1111 ***********************************************************************/
    1212
     13/* -----------------------------------------------------------
     14  Modified by R. Ansari (LAL-IN2P3/CNRS) for multi-platform
     15     multi-compiler support      05/2000
     16-------------------------------------------------------------- */
    1317
    14 /* Define if you need to in order for stat and other things to work.  */
    15 /* #undef _POSIX_SOURCE */
     18#ifndef JTCCONFIG_H_SEEN
     19#define JTCCONFIG_H_SEEN
    1620
    17 /* Define if your processor stores words with the most significant
    18    byte first (like Motorola and SPARC, unlike Intel and VAX).  */
    19 /* #undef WORDS_BIGENDIAN */
     21/*  System dependence (thread capabilities) */
    2022
    21 /* Define if your c++ compiler doesn't know mutable. */
    22 /* #undef HAVE_NO_MUTABLE */
    23 
    24 /* Define if your c++ compiler doesn't have namespaces. */
    25 /* #undef HAVE_NO_NAMESPACE */
    26 
    27 /* Define if your c++ compiler supports iostream in namespace std. */
    28 /* #undef HAVE_STD_IOSTREAM */
    29 
    30 /* Define if your c++ compiler supports STL in namespace std. */
    31 #define HAVE_STD_STL 1
    32 
    33 /* Define if your c++ compiler can explicitly instanciate templates. */
    34 /* #undef HAVE_NO_EXPLICIT_TEMPLATES */
    35 
    36 /* Define if your c++ compiler does not have RTTI. */
    37 /* #undef HAVE_NO_RTTI */
    38 
    39 /* Define if your c++ compiler can't overload const type conversions. */
    40 /* #undef HAVE_NO_CONST_TYPE_CONVERSION_OVERLOAD */
    41 
    42 /* Define if your c++ compiler doesn't have typename. */
    43 /* #undef HAVE_NO_TYPENAME */
    44 
    45 /* Define if you don't have a prototype for gethostname(). */
    46 /* #undef HAVE_NO_GETHOSTNAME_PROTOTYPE */
    47 
    48 /* Define if there is no declaration for h_errno */
    49 /* #undef HAVE_NO_H_ERRNO_DECLARATION */
    50 
    51 /* Define if OS supports MIT threads. */
    52 /* #undef HAVE_MIT_THREADS */
    53 
    54 /* Define if OS supports FSU threads. */
    55 /* #undef HAVE_FSU_THREADS */
    56 
    57 /* Define if OS supports posix threads. */
     23/* DEC/Compaq TruUnix64 (OSF1) */
     24#if defined(OSF1)
    5825#define HAVE_POSIX_THREADS 1
    59 
    60 /* Define if OS supports DCE threads. */
    61 /* #undef HAVE_DCE_THREADS */
    62 
    63 /* Define if OS supports pthread_attr_setstacksize. */
    6426#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
    65 
    66 /* Define if OS supports pthread_delay_np. */
    6727#define HAVE_PTHREAD_DELAY_NP 1
    68 
    69 /* Define if OS supports pthread_sched_yield. */
    7028#define HAVE_SCHED_YIELD 1
    71 
    72 /* Define if OS supports pthread_yield. */
    73 /* #undef HAVE_PTHREAD_YIELD */
    74 
    75 /* Define if JThreads/C++ has support for stop/suspend/resume. */
    7629#define HAVE_JTC_STOP 1
    77 
    78 /* The number of bytes in a bool.  */
    79 #define SIZEOF_BOOL 1
    80 
    81 /* The number of bytes in a char.  */
    82 #define SIZEOF_CHAR 1
    83 
    84 /* The number of bytes in a double.  */
    85 #define SIZEOF_DOUBLE 8
    86 
    87 /* The number of bytes in a float.  */
    88 #define SIZEOF_FLOAT 4
    89 
    90 /* The number of bytes in a int.  */
    91 #define SIZEOF_INT 4
    92 
    93 /* The number of bytes in a long.  */
    94 #define SIZEOF_LONG 8
    95 
    96 /* The number of bytes in a short.  */
    97 #define SIZEOF_SHORT 2
    98 
    99 /* Define if you have the strcasecmp function.  */
    100 #define HAVE_STRCASECMP 1
    101 
    102 /* Define if you have the strerror function.  */
    103 #define HAVE_STRERROR 1
    104 
    105 /* Define if you have the strncasecmp function.  */
    106 #define HAVE_STRNCASECMP 1
    107 
    108 /* Define if you have the <bstring.h> header file.  */
    109 /* #undef HAVE_BSTRING_H */
    110 
    111 /* Define if you have the <exception> header file.  */
    112 #define HAVE_EXCEPTION 1
    113 
    114 /* Define if you have the <exception.h> header file.  */
    115 #define HAVE_EXCEPTION_H 1
    116 
    117 /* Define if you have the <fstream> header file.  */
    118 /* #undef HAVE_FSTREAM */
    119 
    120 /* Define if you have the <iostream> header file.  */
    121 /* #undef HAVE_IOSTREAM */
    122 
    123 /* Define if you have the <sched.h> header file.  */
    12430#define HAVE_SCHED_H 1
    12531
    126 /* Define if you have the <stddef.h> header file.  */
    127 #define HAVE_STDDEF_H 1
     32/* Linux  */
     33#elif defined(Linux)
     34#define HAVE_POSIX_THREADS 1
     35#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
     36#define HAVE_SCHED_YIELD 1
     37#define HAVE_JTC_STOP 1
     38#define HAVE_SCHED_H 1
    12839
    129 /* Define if you have the <stdlib.h> header file.  */
    130 #define HAVE_STDLIB_H 1
     40/* SGI - ** To be checked ** */
     41#elif defined(IRIX64)
     42#define HAVE_POSIX_THREADS 1
     43#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
     44#define HAVE_SCHED_YIELD 1
     45#define HAVE_JTC_STOP 1
     46#define HAVE_SCHED_H 1
     47#if !defined(__sgi)
     48#define __sgi 1
     49#endif
    13150
    132 /* Define if you have the <strings.h> header file.  */
    133 #define HAVE_STRINGS_H 1
     51/* IBM-AIX - ** To be checked ** */
     52#elif defined(AIX)
     53#define HAVE_POSIX_THREADS 1
     54#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
     55#define HAVE_SCHED_YIELD 1
     56#define HAVE_JTC_STOP 1
     57#define HAVE_SCHED_H 1
    13458
    135 /* Define if you have the <strstream> header file.  */
    136 /* #undef HAVE_STRSTREAM */
     59/* Sun-Solaris - ** To be checked ** */
     60#elif defined(SunOS)
     61#define HAVE_POSIX_THREADS 1
     62#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
     63#define HAVE_SCHED_YIELD 1
     64#define HAVE_JTC_STOP 1
     65#define HAVE_SCHED_H 1
    13766
    138 /* Define if you have the <sys/sched.h> header file.  */
    139 /* #undef HAVE_SYS_SCHED_H */
     67#else
     68#error  Undefined OS type in JTC/Config.h
     69#endif
    14070
    141 /* Define if you have the <sys/select.h> header file.  */
    142 #define HAVE_SYS_SELECT_H 1
     71/* Compiler dependend flags   */
     72/* ---- g++ KCC cxx (DEC) CC (SGI) --- */
     73/* All supported compilers have bool type, and exception handling */
     74#define SIZEOF_BOOL 1
     75#define HAVE_EXCEPTION 1
     76#define HAVE_EXCEPTION_H 1  /* To be checked */
    14377
    144 /* Define if you have the <sys/time.h> header file.  */
    145 #define HAVE_SYS_TIME_H 1
     78#endif
    14679
    147 /* Define if you have the <sys/types.h> header file.  */
    148 #define HAVE_SYS_TYPES_H 1
    14980
    150 /* Define if you have the <terminate.h> header file.  */
    151 /* #undef HAVE_TERMINATE_H */
    15281
    153 /* Define if you have the <termio.h> header file.  */
    154 #define HAVE_TERMIO_H 1
    15582
    156 /* Define if you have the <termios.h> header file.  */
    157 #define HAVE_TERMIOS_H 1
    15883
    159 /* Define if you have the <unexpected.h> header file.  */
    160 /* #undef HAVE_UNEXPECTED_H */
    16184
    162 /* Define if you have the <unistd.h> header file.  */
    163 #define HAVE_UNISTD_H 1
    16485
    165 /* Define if you have the malloc library (-lmalloc).  */
    166 /* #undef HAVE_LIBMALLOC */
     86
     87
     88
Note: See TracChangeset for help on using the changeset viewer.