2005-07-26 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / configure.in
index d4c373fa37cc34bc4bd6422b42c5a313b90c6f03..308887e654dc925405438d910448d20c1686d37f 100644 (file)
@@ -1154,6 +1154,8 @@ if test x$platform_win32 = xno; then
        dnl **********************************
        AC_CHECK_HEADERS(checklist.h)
        AC_CHECK_HEADERS(fstab.h)
+       AC_CHECK_HEADERS(attr/xattr.h)
+       AC_CHECK_HEADERS(sys/extattr.h)
        AC_CHECK_HEADERS(sys/sendfile.h)
        AC_CHECK_HEADERS(sys/statvfs.h)
        AC_CHECK_HEADERS(sys/vfstab.h)
@@ -1185,6 +1187,12 @@ if test x$platform_win32 = xno; then
                [#include <sys/types.h>
                 #include <dirent.h>])
 
+       dnl Favour xattr through glibc, but use libattr if we have to
+       AC_CHECK_FUNC(lsetxattr, ,
+               AC_CHECK_LIB(attr, lsetxattr, XATTR_LIB="-lattr",)
+       )
+       AC_SUBST(XATTR_LIB)
+
        dnl *********************************
        dnl *** Check for Console 2.0 I/O ***
        dnl *********************************
@@ -1385,6 +1393,7 @@ case "$host" in
                ACCESS_UNALIGNED="no"
                JIT_SUPPORTED=yes
                jit_wanted=true
+               LIBC="libc.so.6.1"
                AC_CHECK_LIB(unwind, _U_dyn_register, [], [AC_MSG_ERROR(library libunwind not found)])
 
                ;;
@@ -1424,19 +1433,6 @@ case "$host" in
        *-*-mingw*|*-*-cygwin*)
                INTL="intl"
                ;;
-#      ia64-*-linux* | ia64-*-hpux*)
-#              TARGET=IA64;
-#              arch_target=ia64;
-#              JIT_SUPPORTED=no;
-#              ACCESS_UNALIGNED="no";
-#              case "$host_os" in
-#                      linux*) LIBC="libc.so.6.1";;
-#                      hpux*)  LIBC="libc.so.1";;
-#              esac
-#              ;;
-#       m68k-*-linux*)
-#              TARGET=M68K
-#              ;;
        hppa2.0w-hp-hpux11.00 | hppa64-hp-hpux11.00)
                TARGET=HPPA;
                arch_target=hppa;