1#! /bin/sh
2#  Copyright (c) 2005-2008 Wind River Systems, Inc.
3#
4# SPDX-License-Identifier: GPL-2.0-only
5#
6
7cat << EOF
8AC_PREREQ(2.57)
9AC_INIT([site_wide],[1.0.0])
10
11EOF
12
13# Disable as endian is set in the default config
14#echo AC_C_BIGENDIAN
15#echo
16
17if [ -e $1/types ] ; then
18  while read type ; do
19    echo "AC_CHECK_SIZEOF([$type])"
20  done < $1/types
21
22  echo
23fi
24
25if [ -e $1/funcs ]; then
26  while read func ; do
27    echo "AC_CHECK_FUNCS([$func])"
28  done < $1/funcs
29
30  echo
31fi
32
33if [ -e $1/headers ]; then
34  while read header ; do
35    echo "AC_CHECK_HEADERS([$header])"
36  done < $1/headers
37
38  echo
39fi
40
41cat << EOF
42AC_OUTPUT
43EOF
44