]> granicus.if.org Git - yasm/commitdiff
Add check for <sys/queue.h> and specific checks for bogus implementations.
authorPeter Johnson <peter@tortall.net>
Sun, 19 Aug 2001 04:25:18 +0000 (04:25 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 19 Aug 2001 04:25:18 +0000 (04:25 -0000)
Idea taken from OpenSSH-portable.

svn path=/trunk/yasm/; revision=142

acconfig.h [new file with mode: 0644]
configure.ac
configure.in

diff --git a/acconfig.h b/acconfig.h
new file mode 100644 (file)
index 0000000..a2e1ad7
--- /dev/null
@@ -0,0 +1,16 @@
+/* $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 */
index a78f47a6f67e23a79fb8799b01b5e0c53b2f2037..2900274447ec4e404e2bc5aae9fd658d18da6a17 100644 (file)
@@ -31,4 +31,22 @@ AC_FUNC_VPRINTF
 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)
index a78f47a6f67e23a79fb8799b01b5e0c53b2f2037..2900274447ec4e404e2bc5aae9fd658d18da6a17 100644 (file)
@@ -31,4 +31,22 @@ AC_FUNC_VPRINTF
 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)