#! /bin/sh

echo "/*"
echo " * OS depend configuration file"
echo " */"
echo
echo "#ifndef CONFIG_H"
echo "#define CONFIG_H"
echo

if [ -f /usr/include/stdlib.h ]; then
	echo "#define HAVE_STDLIB_H"
fi

if [ -f /usr/include/string.h ]; then
	echo "#define HAVE_STRING_H"
fi

if [ -f /usr/include/strings.h ]; then
	echo "#define HAVE_STRINGS_H"
fi

if [ -f /usr/include/stdarg.h ]; then
	echo "#define HAVE_STDARG_H"
fi

if [ -f /usr/include/varargs.h ]; then
	echo "#define HAVE_VARARGS_H"
fi

if [ -f /usr/include/sys/dir.h ]; then
	echo "#define HAVE_SYS_DIR_H"
fi

if [ -f /usr/include/X11/extensions/shape.h ]; then
	echo "#define X11_EXTENSIONS_SHAPE_H"
fi

echo
echo "#endif /* CONFIG_H */"
