/* */\r
/* #undef HAVE_CATGETS */\r
\r
+/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the\r
+ CoreFoundation framework. */\r
+/* #undef HAVE_CFLOCALECOPYCURRENT */\r
+\r
+/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in\r
+ the CoreFoundation framework. */\r
+/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */\r
+\r
/* Define if the GNU dcgettext() function is already present or preinstalled.\r
*/\r
/* #undef HAVE_DCGETTEXT */\r
\r
-/* Define if you don't have `vprintf' but do have `_doprnt'. */\r
-/* #undef HAVE_DOPRNT */\r
+/* Define to 1 if you have the <direct.h> header file. */\r
+/* #undef HAVE_DIRECT_H */\r
\r
/* Define to 1 if you have the `getcwd' function. */\r
#define HAVE_GETCWD 1\r
/* Define to 1 if you have the <libgen.h> header file. */\r
/* #undef HAVE_LIBGEN_H */\r
\r
-/* Define if you have the <limits.h> header file. */\r
-#define HAVE_LIMITS_H 1\r
-\r
-/* Define if you have the `memcpy' function. */\r
-#define HAVE_MEMCPY 1\r
-\r
-/* Define if you have the `memmove' function. */\r
-#define HAVE_MEMMOVE 1\r
-\r
/* Define if you have the <memory.h> header file. */\r
#define HAVE_MEMORY_H 1\r
\r
/* Define if you have the `strncasecmp' function. */\r
#define HAVE_STRNCASECMP 1\r
\r
-/* Define if you have the `strrchr' function. */\r
-#define HAVE_STRRCHR 1\r
-\r
/* Define if you have the `strsep' function. */\r
#define HAVE_STRSEP 1\r
\r
-/* Define if you have the <sys/param.h> header file. */\r
-#define HAVE_SYS_PARAM_H 1\r
-\r
/* Define if you have the <sys/stat.h> header file. */\r
#define HAVE_SYS_STAT_H 1\r
\r
/* Define if you have the <sys/types.h> header file. */\r
#define HAVE_SYS_TYPES_H 1\r
\r
-/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */\r
-#define HAVE_SYS_WAIT_H 1\r
-\r
/* Define if you have the `toascii' function. */\r
#define HAVE_TOASCII 1\r
\r
/* Define if you have the <unistd.h> header file. */\r
#define HAVE_UNISTD_H 1\r
\r
-/* Define if you have the vprintf function. */\r
-#define HAVE_VPRINTF 1\r
-\r
/* Define to 1 if you have the `vsnprintf' function. */\r
/* #undef HAVE_VSNPRINTF */\r
\r
+/* Define to 1 if you have the `_stricmp' function. */\r
+/* #undef HAVE__STRICMP */\r
+\r
/* Name of package */\r
#define PACKAGE "yasm"\r
\r
/* */\r
/* #undef HAVE_CATGETS */\r
\r
+/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the\r
+ CoreFoundation framework. */\r
+/* #undef HAVE_CFLOCALECOPYCURRENT */\r
+\r
+/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in\r
+ the CoreFoundation framework. */\r
+/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */\r
+\r
/* Define if the GNU dcgettext() function is already present or preinstalled.\r
*/\r
/* #undef HAVE_DCGETTEXT */\r
\r
-/* Define if you don't have `vprintf' but do have `_doprnt'. */\r
-/* #undef HAVE_DOPRNT */\r
+/* Define to 1 if you have the <direct.h> header file. */\r
+#define HAVE_DIRECT_H 1\r
\r
/* Define to 1 if you have the `getcwd' function. */\r
#define HAVE_GETCWD 1\r
/* Define to 1 if you have the <libgen.h> header file. */\r
/* #undef HAVE_LIBGEN_H */\r
\r
-/* Define if you have the <limits.h> header file. */\r
-#define HAVE_LIMITS_H 1\r
-\r
-/* Define if you have the `memcpy' function. */\r
-#define HAVE_MEMCPY 1\r
-\r
-/* Define if you have the `memmove' function. */\r
-#define HAVE_MEMMOVE 1\r
-\r
/* Define if you have the <memory.h> header file. */\r
/* #undef HAVE_MEMORY_H */\r
\r
/* #undefine HAVE_STRCMPI */\r
\r
/* Define if you have the `stricmp' function. */\r
-#define HAVE__STRICMP 1\r
+/* #undefine HAVE_STRICMP */\r
\r
/* Define if you have the <strings.h> header file. */\r
/* #undef HAVE_STRINGS_H */\r
/* Define if you have the `strncasecmp' function. */\r
/* #undef HAVE_STRNCASECMP */\r
\r
-/* Define if you have the `strrchr' function. */\r
-/* #undef HAVE_STRRCHR */\r
-\r
/* Define if you have the `strsep' function. */\r
/* #undef HAVE_STRSEP */\r
\r
-/* Define if you have the <sys/param.h> header file. */\r
-/* #undef HAVE_SYS_PARAM_H */\r
-\r
/* Define if you have the <sys/stat.h> header file. */\r
/* #undef HAVE_SYS_STAT_H */\r
\r
/* Define if you have the <sys/types.h> header file. */\r
#define HAVE_SYS_TYPES_H 1\r
\r
-/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */\r
-/* #undef HAVE_SYS_WAIT_H */\r
-\r
/* Define if you have the `toascii' function. */\r
#define HAVE_TOASCII 1\r
#define toascii __toascii\r
/* Define if you have the <unistd.h> header file. */\r
/* #undef HAVE_UNISTD_H */\r
\r
-/* Define if you have the vprintf function. */\r
-#define HAVE_VPRINTF 1\r
-\r
/* Define to 1 if you have the `vsnprintf' function. */\r
/* #undef HAVE_VSNPRINTF */\r
\r
+/* Define to 1 if you have the `_stricmp' function. */\r
+#undef HAVE__STRICMP 1\r
+\r
/* Name of package */\r
#define PACKAGE "yasm"\r
\r
/* */\r
/* #undef HAVE_CATGETS */\r
\r
+/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the\r
+ CoreFoundation framework. */\r
+/* #undef HAVE_CFLOCALECOPYCURRENT */\r
+\r
+/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in\r
+ the CoreFoundation framework. */\r
+/* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */\r
+\r
/* Define if the GNU dcgettext() function is already present or preinstalled.\r
*/\r
/* #undef HAVE_DCGETTEXT */\r
\r
-/* Define if you don't have `vprintf' but do have `_doprnt'. */\r
-/* #undef HAVE_DOPRNT */\r
+/* Define to 1 if you have the <direct.h> header file. */\r
+#define HAVE_DIRECT_H 1\r
\r
/* Define to 1 if you have the `getcwd' function. */\r
#define HAVE_GETCWD 1\r
/* Define to 1 if you have the <libgen.h> header file. */\r
/* #undef HAVE_LIBGEN_H */\r
\r
-/* Define if you have the <limits.h> header file. */\r
-#define HAVE_LIMITS_H 1\r
-\r
-/* Define if you have the `memcpy' function. */\r
-#define HAVE_MEMCPY 1\r
-\r
-/* Define if you have the `memmove' function. */\r
-#define HAVE_MEMMOVE 1\r
-\r
/* Define if you have the <memory.h> header file. */\r
/* #undef HAVE_MEMORY_H */\r
\r
/* #undef HAVE_STRCMPI */\r
\r
/* Define if you have the `stricmp' function. */\r
-#define HAVE__STRICMP 1\r
+/* #undefine HAVE_STRICMP */\r
\r
/* Define if you have the <strings.h> header file. */\r
/* #undef HAVE_STRINGS_H */\r
/* Define if you have the `strncasecmp' function. */\r
/* #undef HAVE_STRNCASECMP */\r
\r
-/* Define if you have the `strrchr' function. */\r
-/* #undef HAVE_STRRCHR */\r
-\r
/* Define if you have the `strsep' function. */\r
/* #undef HAVE_STRSEP */\r
\r
-/* Define if you have the <sys/param.h> header file. */\r
-/* #undef HAVE_SYS_PARAM_H */\r
-\r
/* Define if you have the <sys/stat.h> header file. */\r
/* #undef HAVE_SYS_STAT_H */\r
\r
/* Define if you have the <sys/types.h> header file. */\r
#define HAVE_SYS_TYPES_H 1\r
\r
-/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */\r
-/* #undef HAVE_SYS_WAIT_H */\r
-\r
/* Define if you have the `toascii' function. */\r
#define HAVE_TOASCII 1\r
#define toascii __toascii\r
/* Define if you have the <unistd.h> header file. */\r
/* #undef HAVE_UNISTD_H */\r
\r
-/* Define if you have the vprintf function. */\r
-#define HAVE_VPRINTF 1\r
-\r
/* Define to 1 if you have the `vsnprintf' function. */\r
/* #undef HAVE_VSNPRINTF */\r
\r
+/* Define to 1 if you have the `_stricmp' function. */\r
+#undef HAVE__STRICMP 1\r
+\r
/* Name of package */\r
#define PACKAGE "yasm"\r
\r
# Checks for header files.
#
AC_HEADER_STDC
-AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS([limits.h sys/param.h libgen.h unistd.h])
+AC_CHECK_HEADERS([strings.h libgen.h unistd.h direct.h])
# REQUIRE standard C headers
if test "$ac_cv_header_stdc" != yes; then
#
# Checks for library functions.
#
-AC_FUNC_VPRINTF
-AC_CHECK_FUNCS([abort memcpy memmove strrchr toascii vsnprintf])
+AC_CHECK_FUNCS([abort toascii vsnprintf])
AC_CHECK_FUNCS([strsep mergesort getcwd])
# Look for the case-insensitive comparison functions
-AC_CHECK_FUNCS([strcasecmp strncasecmp stricmp strcmpi])
+AC_CHECK_FUNCS([strcasecmp strncasecmp stricmp _stricmp strcmpi])
#
# Check for gettext() and other i18n/l10n things.
AH_TEMPLATE([HAVE_STPCPY], [])
# Check for GNU C Library
-AH_TEMPLATE([HAVE_GNU_C_LIBRARY], [Define if you have the GNU C Library])
+AH_TEMPLATE([HAVE_GNU_C_LIBRARY], [Define to 1 if you have the GNU C Library])
AC_CACHE_CHECK([for GNU C Library], yasm_cv_header_gnulib,
AC_EGREP_CPP(gnulib,
[#include <features.h>
/* MODULE IMPORTS: */
/*****************************************************************************/
#include <ctype.h> /* MODULE TYPE: (sys) */
-#ifdef STDC_HEADERS
#include <limits.h> /* MODULE TYPE: (sys) */
#include <string.h> /* MODULE TYPE: (sys) */
-#endif
/*****************************************************************************/
/* MODULE INTERFACE: */
/*****************************************************************************/
/*@unused@*/ RCSID("$Id$");
#include <ctype.h>
-
-#ifdef STDC_HEADERS
-# include <stdarg.h>
-#endif
+#include <stdarg.h>
#include "coretype.h"
/*@unused@*/ RCSID("$Id$");
/* Need either unistd.h or direct.h (on Windows) to prototype getcwd() */
-#ifdef HAVE_UNISTD_H
+#if defined(HAVE_UNISTD_H)
#include <unistd.h>
-#elif defined(WIN32) || defined(_WIN32)
+#elif defined(HAVE_DIRECT_H)
#include <direct.h>
#endif
* (The default is pairwise merging.)
*/
-#ifdef STDC_HEADERS
-# include <errno.h>
-# include <string.h>
-#endif
+#include <errno.h>
+#include <string.h>
static void setup(unsigned char *, unsigned char *, size_t, size_t,
int (*)(const void *, const void *));
#include "util.h"
/*@unused@*/ RCSID("$Id$");
-#ifdef STDC_HEADERS
-# include <limits.h>
-#endif
+#include <limits.h>
#include "libyasm-stdint.h"
#include "coretype.h"
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <string.h>
-#endif
-
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "libyasm/bitvect.h"
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <string.h>
-#endif
-
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "libyasm/file.h"
#include "libyasm/coretype.h"
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <string.h>
-#endif
-
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "libyasm/floatnum.c"
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <string.h>
-#endif
-
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "libyasm/intnum.c"
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <string.h>
-#endif
-
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "libyasm/file.h"
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <string.h>
-#endif
-
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "util.h"
#include "libyasm/errwarn.h"
/*@unused@*/ RCSID("$Id$");
/* Need either unistd.h or direct.h (on Windows) to prototype getcwd() */
-#ifdef HAVE_UNISTD_H
+#if defined(HAVE_UNISTD_H)
#include <unistd.h>
-#elif defined(WIN32) || defined(_WIN32)
+#elif defined(HAVE_DIRECT_H)
#include <direct.h>
#endif
#define YASM_EXPR_INTERNAL
#include <libyasm.h>
-#ifdef STDC_HEADERS
-# include <math.h>
-#endif
+#include <math.h>
#include "modules/parsers/nasm/nasm-parser.h"
#include <string.h>
#include <assert.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
#include <libyasm/coretype.h>
#ifdef lint