🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1287

autoconf-1.2 -- define mode_t if it's not in sys/types.h

#1287
From: J.T. Conklin
Date: Sat, 09 Jan 1993 00:56
44 lines
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
Technical Details
Message-ID: <9301090056.AA00716@talisman.kaleida.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!talisman.kaleida.com!conklin

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!talisman.kaleida.com!conklin
From: conklin@talisman.kaleida.com (J.T. Conklin)
Subject: autoconf-1.2 -- define mode_t if it's not in sys/types.h
Message-ID: <9301090056.AA00716@talisman.kaleida.com>
Sender: gnulists@ai.mit.edu
Reply-To: conklin@kaleida.com
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sat, 9 Jan 1993 00:56:27 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 45