autoconf help needed

Arnaud Desitter arnaud.desitter@ouce.ox.ac.uk
Thu Nov 18 16:34:00 GMT 2004


----- Original Message ----- 
From: "Steve Kargl" <sgk@troutmask.apl.washington.edu>
Newsgroups: gmane.comp.gcc.devel
Sent: Wednesday, November 17, 2004 7:58 PM
Subject: autoconf help needed


> I'm currently writing gfortran intrinsic procedures to
> achieve backwards compatibility with g77.  I know very
> little about autoconf (and friends), so I'm seeking advice.
> 
> I need to test that struct stat has the 3 members
> st_blksize, st_rdev, and st_blocks.  I know my
> code needs for example
> 
> #if HAVE_ST_BLKSIZE
>  sarray[11] = buf.st_blksize;
> #else
>  sarray[11] = -1;
> #endif
> 
> but I don't know how to make configure properly set
> HAVE_ST_BLKSIZE.

Try:
AC_CHECK_MEMBERS([struct stat.st_blksize])

which will define HAVE_STRUCT_STAT_ST_BLKSIZE

Regards,




More information about the Gcc mailing list