Thread View: gnu.utils.bug
1 messages
1 total messages
Started by J.T. Conklin
Sat, 09 Jan 1993 00:56
autoconf-1.2 -- define mode_t if it's not in sys/types.h
Author: J.T. Conklin
Date: Sat, 09 Jan 1993 00:56
Date: Sat, 09 Jan 1993 00:56
44 lines
1939 bytes
1939 bytes
Adding a AC_MODE_T test (to check to see if mode_t is defined in
sys/types.h) to autoconf 1.2 (like is done with size_t, uid_t, and
pid_t) made it a lot easier to move a project of mine from machine
to machine.
The following patch to autconf 1.2 adds the AC_MODE_T test to
autoconfig and updates the on-line documentation.
=====
diff -c autoconf/acspecific.m4:1.1.1.1 autoconf/acspecific.m4:1.2
*** autoconf/acspecific.m4:1.1.1.1 Fri Jan 8 16:45:41 1993
--- autoconf/acspecific.m4 Fri Jan 8 16:45:41 1993
***************
*** 245,250 ****
--- 245,254 ----
AC_HEADER_EGREP(uid_t, sys/types.h, ,
AC_DEFINE(uid_t, int) AC_DEFINE(gid_t, int))])dnl
dnl
+ define(AC_MODE_T,
+ [echo checking for mode_t in sys/types.h
+ AC_HEADER_EGREP(mode_t, sys/types.h, , AC_DEFINE(mode_t, int))])dnl
+ dnl
define(AC_SIZE_T,
[echo checking for size_t in sys/types.h
AC_HEADER_EGREP(size_t, sys/types.h, , AC_DEFINE(size_t, unsigned))])dnl
diff -c autoconf/autoconf.texi:1.1.1.1 autoconf/autoconf.texi:1.2
*** autoconf/autoconf.texi:1.1.1.1 Fri Jan 8 16:45:43 1993
--- autoconf/autoconf.texi Fri Jan 8 16:45:43 1993
***************
*** 580,585 ****
--- 580,591 ----
@end group
@end example
+ @item AC_MODE_T
+ @findex MODE_T
+ @vindex mode_t
+ If @code{mode_t} is not defined in @file{sys/types.h}, define
+ @code{mode_t} to be @code{int}.
+
@item AC_SIZE_T
@findex SIZE_T
@vindex size_t
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads