#define _FILE_OFFSET_BITS 64
#endif
-#undef AFS_AFSDB_ENV
-#undef AFS_LARGEFILE_ENV
#undef AFS_NAMEI_ENV
#undef BITMAP_LATER
-#undef BOS_RESTRICTED_MODE
#undef FAST_RESTART
-#undef FULL_LISTVOL_SWITCH
#undef COMPLETION_H_EXISTS
#undef DEFINED_FOR_EACH_PROCESS
#undef DEFINED_PREV_TASK
#undef STRUCT_TASK_STRUCT_HAS_SIGHAND
#undef STRUCT_TASK_STRUCT_HAS_SIGMASK_LOCK
#undef ssize_t
-#undef HAVE_STRUCT_BUF
#undef HAVE_ARPA_NAMESER_COMPAT_H
/* glue for RedHat kernel bug */
#undef ENABLE_REDHAT_BUILDSYS
[AS_HELP_STRING([--with-afs-sysname=sys], [use sys for the afs sysname])])
dnl General feature options.
-AC_ARG_ENABLE([afsdb],
- [AS_HELP_STRING([--disable-afsdb], [disable AFSDB DNS RR support])],
- ,
- [enable_afsdb="yes"])
AC_ARG_ENABLE([pam],
[AS_HELP_STRING([--disable-pam], [disable PAM support])],
,
[enable_pam="yes"])
-AC_ARG_ENABLE([bos-restricted-mode],
- [AS_HELP_STRING([--enable-bos-restricted-mode],
- [enable bosserver restricted mode which disables certain bosserver
- functionality])],
- ,
- [enable_bos_restricted_mode="no"])
-AC_ARG_ENABLE([largefile-fileserver],
- [AS_HELP_STRING([--disable-largefile-fileserver],
- [disable large file support in fileserver])],
- ,
- [enable_largefile_fileserver="yes"])
AC_ARG_ENABLE([namei-fileserver],
[AS_HELP_STRING([--enable-namei-fileserver],
[force compilation of namei fileserver in preference to inode
[enable use of unix domain sockets for fssync])],
,
[enable_unix_sockets="yes"])
-AC_ARG_ENABLE([full-vos-listvol-switch],
- [AS_HELP_STRING([--disable-full-vos-listvol-switch],
- [disable vos full listvol switch for formatted output])],
- ,
- [enable_full_vos_listvol_switch="yes"])
AC_ARG_ENABLE([icmp-pmtu-discovery],
[AS_HELP_STRING([--enable-icmp-pmtu-discovery],
[enable path MTU discovery by decoding ICMP unreachable replies])],
*-solaris*)
MKAFS_OSTYPE=SOLARIS
AC_MSG_RESULT(sun4)
+ AC_PATH_PROG(SOLARISCC, [cc], ,
+ [/opt/SUNWspro/bin:/opt/SunStudioExpress/bin])
SOLARIS_UFSVFS_HAS_DQRWLOCK
SOLARIS_PROC_HAS_P_COREFILE
SOLARIS_FS_HAS_FS_ROLLED
AC_MSG_RESULT($AFS_SYSNAME)
fi
+case $AFS_SYSNAME in
+ *_darwin*)
+ DARWIN_PLIST=src/libafs/afs.${AFS_SYSNAME}.plist
+ DARWIN_INFOFILE=afs.${AFS_SYSNAME}.plist
+ ;;
+esac
+
dnl Some hosts have a separate common param file they should include. Figure
dnl out if we're on one of them now that we know the sysname.
case $AFS_SYSNAME in
fi
esac
-case $AFS_SYSNAME in
- *_darwin*)
- DARWIN_PLIST=src/libafs/afs.${AFS_SYSNAME}.plist
- DARWIN_INFOFILE=afs.${AFS_SYSNAME}.plist
- dnl the test below fails on darwin, even if the CPPFLAGS below
- dnl are added. the headers from Kernel.framework must be used
- dnl when KERNEL is defined.
-
- dnl really, such a thing isn't guaranteed to work on any
- dnl platform until the kernel cflags from MakefileProto are
- dnl known to configure
- AC_DEFINE(HAVE_STRUCT_BUF, 1, [define if you have a struct buf])
- ;;
- *)
-AC_MSG_CHECKING(for definition of struct buf)
-dnl save_CPPFLAGS="$CPPFLAGS"
-dnl CPPFLAGS="$CPPFLAGS -DKERNEL -D_KERNEL -D__KERNEL -D__KERNEL__"
-AC_CACHE_VAL(ac_cv_have_struct_buf, [
- ac_cv_have_struct_buf=no
- AC_TRY_COMPILE(
- [#include <sys/buf.h>],
- [struct buf x;
- printf("%d\n", sizeof(x));],
- ac_cv_have_struct_buf=yes,)
- ]
-)
-dnl CPPFLAGS="$save_CPPFLAGS"
-AC_MSG_RESULT($ac_cv_have_struct_buf)
-if test "$ac_cv_have_struct_buf" = yes; then
- AC_DEFINE(HAVE_STRUCT_BUF, 1, [define if you have a struct buf])
-fi
-;;
-esac
-
-
AC_CACHE_VAL(ac_cv_sockaddr_len,
[
AC_MSG_CHECKING([if struct sockaddr has sa_len field])
fi
done
if test "$ac_cv_func_res_search" = yes; then
- LIB_res_search="-l$lib"
+ LIB_AFSDB="-l$lib"
AC_DEFINE(HAVE_RES_SEARCH, 1, [])
AC_MSG_RESULT([yes, in lib$lib])
else
exit 1
fi
-if test "$enable_full_vos_listvol_switch" = "yes"; then
- AC_DEFINE(FULL_LISTVOL_SWITCH, 1, [define if you want to want listvol switch])
-fi
-
if test "$enable_icmp_pmtu_discovery" = "yes"; then
if test "$ac_cv_setsockopt_iprecverr" = "yes"; then
AC_DEFINE(ADAPT_PMTU, 1, [define if you want to decode icmp unreachable packets to discover path mtu])
fi
fi
-if test "$enable_bos_restricted_mode" = "yes"; then
- AC_DEFINE(BOS_RESTRICTED_MODE, 1, [define if you want to want bos restricted mode])
-fi
-
-if test "$enable_largefile_fileserver" = "yes"; then
- AC_DEFINE(AFS_LARGEFILE_ENV, 1, [define if you want large file fileserver])
-fi
-
if test "$enable_cache_bypass" = "yes"; then
AC_DEFINE(AFS_CACHE_BYPASS, 1, [define to activate cache bypassing Unix client])
fi
fi
fi
-if test "$enable_afsdb" = "yes"; then
- LIB_AFSDB="$LIB_res_search"
- AC_DEFINE(AFS_AFSDB_ENV, 1, [define if you want to want search afsdb rr])
-fi
-
dnl check for tivoli
AC_MSG_CHECKING(for tivoli tsm butc support)
XBSA_CFLAGS=""