1 ?RCS: Copyright (c) 2016 Dagfinn Ilmari Mannsåker & H.Merijn Brand
3 ?RCS: You may distribute under the terms of either the GNU General Public
4 ?RCS: License or the Artistic License, as specified in the README file.
7 ?X: This unit produces a variable that is intended to be eval'ed in
8 ?X: order to define/undefine a symbol. A consistency check is made
9 ?X: regarding any previous value and a warning is issued if there
10 ?X: is any discrepancy.
13 ?X: set d_siginfo_si_errno siginfo_t int si_errno $d_sigaction signal.h
16 ?MAKE:Hasfield_t: test Compile rm_try Setvar
17 ?MAKE: -pick add $@ %<
18 ?LINT:define hasfield_t
20 ?S: Internal macro for Configure
23 ?T:varname struct type field
24 : Define hasfield_t macro for Configure internal use
25 hasfield_t='varname=$1; struct=$2; type=$3; field=$4; shift; shift; shift; shift;
26 while $test $# -ge 2; do
28 $define) echo "#include <$2>";;
32 echo "int main () { $struct foo; $type bar = foo.$field; }" >> try.c;
34 if eval $compile; then