4 echo "usage: sztest [-h] [-H SYS-HEADER] [-L LOCAL-HEADER] TYPE [CCFLAGS...]"
9 while [ "${1:0:1}" = "-" ]; do
18 sheaders="$sheaders $1"
22 lheaders="$lheaders $1"
33 file="$(mktemp /tmp/sztestXXXXXX)"
37 #include <sys/types.h>
41 for header in $sheaders; do
42 echo "#include <$header>" >>"$file.c"
44 for header in $lheaders; do
45 echo "#include \"$header\"" >>"$file.c"
48 int main(int argc, char **argv)
50 printf("%zi\n", sizeof($type));
55 if ! gcc "$@" -iquote. -g -Wall -o "$file" "$file.c"; then
56 rm -f "$file" "$file.c"