Hi all,

to better support Interix aka MS Services for Unix[1], I would like to suggest applying the attached diff. Interix requires, such as AIX,
#define _ALL_SOURCE 1 to enable all functions in the system headers.
To not have to change all the configure.ac files around, I suggest to keep the name at AC_AIX.

[1] http://www.microsoft.com/windows/sfu/

Thanks for consideration

Martin
--- autoconf/autoconf/lib/autoconf/specific.m4.orig     2007-01-18 
04:57:37.000000000 +0100
+++ autoconf/autoconf/lib/autoconf/specific.m4  2007-08-26 17:36:09.000000000 
+0200
@@ -435,7 +435,7 @@
 # ------
 AC_DEFUN([AC_AIX],
 [AH_VERBATIM([_ALL_SOURCE],
-[/* Define to 1 if on AIX 3.
+[/* Define to 1 if on AIX 3 or on Interix.
    System headers sometimes define this.
    We just want to avoid a redefinition error message.  */
 @%:@ifndef _ALL_SOURCE
@@ -443,9 +443,9 @@
 @%:@endif])dnl
 AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
 AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
-AC_MSG_CHECKING([for AIX])
+AC_MSG_CHECKING([for AIX or Interix])
 AC_EGREP_CPP(yes,
-[#ifdef _AIX
+[#if defined(_AIX) || defined(__INTERIX)
   yes
 #endif
 ],

Reply via email to