From: Peter Johnson Date: Sun, 19 Aug 2001 04:25:18 +0000 (-0000) Subject: Add check for and specific checks for bogus implementations. X-Git-Tag: v0.1.0~369 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b619f63541013b484f3e85ccf7fb687f59cb00c1;p=yasm Add check for and specific checks for bogus implementations. Idea taken from OpenSSH-portable. svn path=/trunk/yasm/; revision=142 --- diff --git a/acconfig.h b/acconfig.h new file mode 100644 index 00000000..a2e1ad77 --- /dev/null +++ b/acconfig.h @@ -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 implementations. */ +#undef HAVE_BOGUS_SYS_QUEUE_H + +@BOTTOM@ + +#endif /* YASM_CONFIG_H */ diff --git a/configure.ac b/configure.ac index a78f47a6..29002744 100644 --- a/configure.ac +++ b/configure.ac @@ -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) diff --git a/configure.in b/configure.in index a78f47a6..29002744 100644 --- a/configure.in +++ b/configure.in @@ -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)