Commit e9831ca0 by Kaveh R. Ghazi Committed by Kaveh Ghazi

configure.in: Don't do AC_CHECK_HEADERS(wait.h sys/wait.h).

        * configure.in: Don't do AC_CHECK_HEADERS(wait.h sys/wait.h).
        Instead call AC_HEADER_SYS_WAIT.
        * collect2.c: Don't provide defaults for sys/wait.h macros.
        * gcc.c: Likewise.
        * protoize.c: Likewise.  Also, don't include sys/wait.h.
        * system.h: Include sys/wait.h and provide macro defaults.

From-SVN: r23712
parent a6458d1d
Thu Nov 19 12:58:55 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* configure.in: Don't do AC_CHECK_HEADERS(wait.h sys/wait.h).
Instead call AC_HEADER_SYS_WAIT.
* collect2.c: Don't provide defaults for sys/wait.h macros.
* gcc.c: Likewise.
* protoize.c: Likewise. Also, don't include sys/wait.h.
* system.h: Include sys/wait.h and provide macro defaults.
1998-11-19 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 1998-11-19 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* Makefile.in (mandir): Set to @mandir@. * Makefile.in (mandir): Set to @mandir@.
......
...@@ -55,19 +55,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -55,19 +55,6 @@ Boston, MA 02111-1307, USA. */
#define obstack_chunk_alloc xmalloc #define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free #define obstack_chunk_free free
#ifndef WIFSIGNALED
#define WIFSIGNALED(S) (((S) & 0xff) != 0 && ((S) & 0xff) != 0x7f)
#endif
#ifndef WTERMSIG
#define WTERMSIG(S) ((S) & 0x7f)
#endif
#ifndef WIFEXITED
#define WIFEXITED(S) (((S) & 0xff) == 0)
#endif
#ifndef WEXITSTATUS
#define WEXITSTATUS(S) (((S) & 0xff00) >> 8)
#endif
extern char *make_temp_file PROTO ((char *)); extern char *make_temp_file PROTO ((char *));
/* On certain systems, we have code that works by scanning the object file /* On certain systems, we have code that works by scanning the object file
......
...@@ -98,6 +98,9 @@ ...@@ -98,6 +98,9 @@
/* Define if you don't have vprintf but do have _doprnt. */ /* Define if you don't have vprintf but do have _doprnt. */
#undef HAVE_DOPRNT #undef HAVE_DOPRNT
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
#undef HAVE_SYS_WAIT_H
/* Define if you have <vfork.h>. */ /* Define if you have <vfork.h>. */
#undef HAVE_VFORK_H #undef HAVE_VFORK_H
...@@ -218,14 +221,8 @@ ...@@ -218,14 +221,8 @@
/* Define if you have the <sys/times.h> header file. */ /* Define if you have the <sys/times.h> header file. */
#undef HAVE_SYS_TIMES_H #undef HAVE_SYS_TIMES_H
/* Define if you have the <sys/wait.h> header file. */
#undef HAVE_SYS_WAIT_H
/* Define if you have the <time.h> header file. */ /* Define if you have the <time.h> header file. */
#undef HAVE_TIME_H #undef HAVE_TIME_H
/* Define if you have the <unistd.h> header file. */ /* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H #undef HAVE_UNISTD_H
/* Define if you have the <wait.h> header file. */
#undef HAVE_WAIT_H
...@@ -330,7 +330,8 @@ EGCS_PROG_INSTALL ...@@ -330,7 +330,8 @@ EGCS_PROG_INSTALL
AC_HEADER_STDC AC_HEADER_STDC
AC_HEADER_TIME AC_HEADER_TIME
GCC_HEADER_STRING GCC_HEADER_STRING
AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h wait.h sys/wait.h) AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h)
# Check for thread headers. # Check for thread headers.
AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=]) AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
......
...@@ -51,19 +51,6 @@ extern void set_std_prefix PROTO((char *, int)); ...@@ -51,19 +51,6 @@ extern void set_std_prefix PROTO((char *, int));
#define PEXECUTE_SEARCH 4 #define PEXECUTE_SEARCH 4
#define PEXECUTE_VERBOSE 8 #define PEXECUTE_VERBOSE 8
#ifndef WIFSIGNALED
#define WIFSIGNALED(S) (((S) & 0xff) != 0 && ((S) & 0xff) != 0x7f)
#endif
#ifndef WTERMSIG
#define WTERMSIG(S) ((S) & 0x7f)
#endif
#ifndef WIFEXITED
#define WIFEXITED(S) (((S) & 0xff) == 0)
#endif
#ifndef WEXITSTATUS
#define WEXITSTATUS(S) (((S) & 0xff00) >> 8)
#endif
#ifdef VMS #ifdef VMS
#define exit __posix_exit #define exit __posix_exit
#endif #endif
......
...@@ -139,23 +139,9 @@ typedef char * const_pointer_type; ...@@ -139,23 +139,9 @@ typedef char * const_pointer_type;
#if defined(POSIX) #if defined(POSIX)
#include <signal.h> #include <signal.h>
#include <sys/wait.h>
#else /* !defined(POSIX) */ #else /* !defined(POSIX) */
#ifndef WIFSIGNALED
#define WIFSIGNALED(S) (((S) & 0xff) != 0 && ((S) & 0xff) != 0x7f)
#endif
#ifndef WTERMSIG
#define WTERMSIG(S) ((S) & 0x7f)
#endif
#ifndef WIFEXITED
#define WIFEXITED(S) (((S) & 0xff) == 0)
#endif
#ifndef WEXITSTATUS
#define WEXITSTATUS(S) (((S) & 0xff00) >> 8)
#endif
/* Declaring stat or __flsbuf with a prototype /* Declaring stat or __flsbuf with a prototype
causes conflicts with system headers on some systems. */ causes conflicts with system headers on some systems. */
......
...@@ -156,6 +156,23 @@ extern int errno; ...@@ -156,6 +156,23 @@ extern int errno;
# define O_WRONLY 1 # define O_WRONLY 1
#endif #endif
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#ifndef WIFSIGNALED
#define WIFSIGNALED(S) (((S) & 0xff) != 0 && ((S) & 0xff) != 0x7f)
#endif
#ifndef WTERMSIG
#define WTERMSIG(S) ((S) & 0x7f)
#endif
#ifndef WIFEXITED
#define WIFEXITED(S) (((S) & 0xff) == 0)
#endif
#ifndef WEXITSTATUS
#define WEXITSTATUS(S) (((S) & 0xff00) >> 8)
#endif
#ifndef bcopy #ifndef bcopy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment