Home | History | Annotate | Line # | Download | only in ksh
conf-end.h revision 1.1
      1  1.1  jtc /*
      2  1.1  jtc  * End of configuration stuff for PD ksh.
      3  1.1  jtc  *
      4  1.1  jtc  * RCSid: $Id: conf-end.h,v 1.1 1996/09/21 23:35:13 jtc Exp $
      5  1.1  jtc  */
      6  1.1  jtc 
      7  1.1  jtc #if defined(EMACS) || defined(VI)
      8  1.1  jtc # define	EDIT
      9  1.1  jtc #else
     10  1.1  jtc # undef		EDIT
     11  1.1  jtc #endif
     12  1.1  jtc 
     13  1.1  jtc /* Editing implies history */
     14  1.1  jtc #if defined(EDIT) && !defined(HISTORY)
     15  1.1  jtc # define HISTORY
     16  1.1  jtc #endif /* EDIT */
     17  1.1  jtc 
     18  1.1  jtc /*
     19  1.1  jtc  * if you don't have mmap() you can't use Peter Collinson's history
     20  1.1  jtc  * mechanism.  If that is the case, then define EASY_HISTORY
     21  1.1  jtc  */
     22  1.1  jtc #if defined(HISTORY) && (!defined(COMPLEX_HISTORY) || !defined(HAVE_MMAP) || !defined(HAVE_FLOCK))
     23  1.1  jtc # undef COMPLEX_HISTORY
     24  1.1  jtc # define EASY_HISTORY			/* sjg's trivial history file */
     25  1.1  jtc #endif
     26  1.1  jtc 
     27  1.1  jtc /* Can we safely catch sigchld and wait for processes? */
     28  1.1  jtc #if (defined(HAVE_WAITPID) || defined(HAVE_WAIT3)) \
     29  1.1  jtc     && (defined(POSIX_SIGNALS) || defined(BSD42_SIGNALS))
     30  1.1  jtc # define JOB_SIGS
     31  1.1  jtc #endif
     32  1.1  jtc 
     33  1.1  jtc #if !defined(JOB_SIGS) || !(defined(POSIX_PGRP) || defined(BSD_PGRP))
     34  1.1  jtc # undef JOBS /* if no JOB_SIGS, no job control support */
     35  1.1  jtc #endif
     36  1.1  jtc 
     37  1.1  jtc /* pdksh assumes system calls return EINTR if a signal happened (this so
     38  1.1  jtc  * the signal handler doesn't have to longjmp()).  I don't know if this
     39  1.1  jtc  * happens (or can be made to happen) with sigset() et. al. (the bsd41 signal
     40  1.1  jtc  * routines), so, the autoconf stuff checks what they do and defines
     41  1.1  jtc  * SIGNALS_DONT_INTERRUPT if signals don't interrupt read().
     42  1.1  jtc  * If SIGNALS_DONT_INTERRUPT isn't defined and your compiler chokes on this,
     43  1.1  jtc  * delete the hash in front of the error (and file a bug report).
     44  1.1  jtc  */
     45  1.1  jtc #ifdef SIGNALS_DONT_INTERRUPT
     46  1.1  jtc   # error pdksh needs interruptable system calls.
     47  1.1  jtc #endif /* SIGNALS_DONT_INTERRUPT */
     48  1.1  jtc 
     49  1.1  jtc #ifdef HAVE_GCC_FUNC_ATTR
     50  1.1  jtc # define GCC_FUNC_ATTR(x)	__attribute__((x))
     51  1.1  jtc # define GCC_FUNC_ATTR2(x,y)	__attribute__((x,y))
     52  1.1  jtc #else
     53  1.1  jtc # define GCC_FUNC_ATTR(x)
     54  1.1  jtc # define GCC_FUNC_ATTR2(x,y)
     55  1.1  jtc #endif /* HAVE_GCC_FUNC_ATTR */
     56