Idea taken from OpenSSH-portable.
svn path=/trunk/yasm/; revision=142
--- /dev/null
+/* $Id: acconfig.h,v 1.1 2001/08/19 04:25:18 peter Exp $ */
+
+#ifndef YASM_CONFIG_H
+#define YASM_CONFIG_H
+
+/* Generated automatically from acconfig.h by autoheader. */
+/* Please make your changes there */
+
+@TOP@
+
+/* Workaround for bad <sys/queue.h> implementations. */
+#undef HAVE_BOGUS_SYS_QUEUE_H
+
+@BOTTOM@
+
+#endif /* YASM_CONFIG_H */
AC_CHECK_FUNCS(memcpy toascii)
AC_REPLACE_FUNCS(strdup strtoul)
+AC_CHECK_HEADERS(sys/queue.h)
+
+# Check for some target-specific stuff
+case "$host" in
+*-*-sunos4*)
+ AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
+ ;;
+*-sni-sysv*)
+ AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
+ ;;
+*-*-sco3.2v4*)
+ AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
+ ;;
+*-*-sco3.2v5*)
+ AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
+ ;;
+esac
+
AC_OUTPUT(Makefile src/Makefile src/parsers/Makefile src/parsers/nasm/Makefile src/preprocs/Makefile src/preprocs/raw/Makefile src/outfmts/Makefile src/outfmts/dbg/Makefile)
AC_CHECK_FUNCS(memcpy toascii)
AC_REPLACE_FUNCS(strdup strtoul)
+AC_CHECK_HEADERS(sys/queue.h)
+
+# Check for some target-specific stuff
+case "$host" in
+*-*-sunos4*)
+ AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
+ ;;
+*-sni-sysv*)
+ AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
+ ;;
+*-*-sco3.2v4*)
+ AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
+ ;;
+*-*-sco3.2v5*)
+ AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
+ ;;
+esac
+
AC_OUTPUT(Makefile src/Makefile src/parsers/Makefile src/parsers/nasm/Makefile src/preprocs/Makefile src/preprocs/raw/Makefile src/outfmts/Makefile src/outfmts/dbg/Makefile)