diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-02 21:53:51 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-02 21:53:51 -0700 |
commit | fe501957c09a80347b1eb005ba1b1bc0fce14b0d (patch) | |
tree | 6747b0e256b60819125c652dd58577b12c71556e /configure.in | |
parent | 4a8daf06074351df2588a9f5cd2b4a558bde9935 (diff) | |
download | nasm-fe501957c09a80347b1eb005ba1b1bc0fce14b0d.tar.gz nasm-fe501957c09a80347b1eb005ba1b1bc0fce14b0d.tar.bz2 nasm-fe501957c09a80347b1eb005ba1b1bc0fce14b0d.zip |
Portability fixes
Concentrate compiler dependencies to compiler.h; make sure compiler.h
is included first in every .c file (since some prototypes may depend
on the presence of feature request macros.)
Actually use the conditional inclusion of various functions (totally
broken in previous releases.)
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.in b/configure.in index b97f536..009720a 100644 --- a/configure.in +++ b/configure.in @@ -82,6 +82,9 @@ fi dnl Check for <inttypes.h> or add a substitute version AC_CHECK_HEADERS(inttypes.h, , CFLAGS="$CFLAGS -I\$(top_srcdir)/inttypes") +dnl The standard header for str*casecmp is <strings.h> +AC_CHECK_HEADERS(strings.h) + dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T @@ -107,6 +110,10 @@ if $missing; then XOBJS="$XOBJS lib/snprintf.o" fi +AC_CHECK_FUNCS(strcasecmp stricmp) +AC_CHECK_FUNCS(strncasecmp strnicmp) +AC_CHECK_FUNCS(strsep) + AC_CHECK_FUNCS(getuid) AC_CHECK_FUNCS(getgid) |