1 dnl This file contains the common configuration code which would
2 dnl otherwise be duplicated between configure and configure-libafs.
4 dnl NB: Because this code is a macro, references to positional shell
5 dnl parameters must be done like $[]1 instead of $1
7 AC_DEFUN(OPENAFS_CONFIGURE_COMMON,[
12 #BOZO_SAVE_CORES pam sia
13 AC_ARG_WITH(afs-sysname,
14 [ --with-afs-sysname=sys use sys for the afs sysname]
16 AC_ARG_ENABLE( obsolete,
17 [ --enable-obsolete enable obsolete portions of AFS (mpp, ntp and package)],, enable_obsolete="no")
18 AC_ARG_ENABLE( insecure,
19 [ --enable-insecure enable insecure portions of AFS (ftpd, inetd, rcp, rlogind and rsh)],, enable_insecure="no")
21 [ --disable-afsdb disable AFSDB RR support],, enable_afsdb="yes")
22 AC_ARG_ENABLE( bos-restricted-mode,
23 [ --enable-bos-restricted-mode enable bosserver restricted mode which disables certain bosserver functionality],, enable_bos_restricted_mode="no")
24 AC_ARG_ENABLE( bos-new-config,
25 [ --enable-bos-new-config enable bosserver pickup of BosConfig.new on restarts],, enable_bos_new_config="no")
26 AC_ARG_ENABLE( namei-fileserver,
27 [ --enable-namei-fileserver force compilation of namei fileserver in preference to inode fileserver],, enable_namei_fileserver="no")
28 AC_ARG_ENABLE( fast-restart,
29 [ --enable-fast-restart enable fast startup of file server without salvaging],, enable_fast_restart="no")
30 AC_ARG_ENABLE( bitmap-later,
31 [ --enable-bitmap-later enable fast startup of file server by not reading bitmap till needed],, enable_bitmap_later="no")
32 AC_ARG_ENABLE( full-vos-listvol-switch,
33 [ --enable-full-vos-listvol-switch enable vos full listvol switch for formatted output],, enable_full_vos_listvol_switch="no")
34 AC_ARG_WITH(dux-kernel-headers,
35 [ --with-dux-kernel-headers=path use the kernel headers found at path(optional, defaults to first match in /usr/sys)]
37 AC_ARG_WITH(linux-kernel-headers,
38 [ --with-linux-kernel-headers=path use the kernel headers found at path(optional, defaults to /usr/src/linux)]
40 AC_ARG_ENABLE(kernel-module,
41 [ --disable-kernel-module disable compilation of the kernel module (defaults to enabled)],, enable_kernel_module="yes"
43 AC_ARG_ENABLE(redhat-buildsys,
44 [ --enable-redhat-buildsys enable compilation of the redhat build system kernel (defaults to disabled)],, enable_redhat_buildsys="no"
46 AC_ARG_ENABLE(transarc-paths,
47 [ --enable-transarc-paths Use Transarc style paths like /usr/afs and /usr/vice],, enable_transarc_paths="no"
49 AC_ARG_ENABLE(tivoli-tsm,
50 [ --enable-tivoli-tsm Enable use of the Tivoli TSM API libraries for butc support],, enable_tivoli_tsm="no"
52 AC_ARG_ENABLE(debug-kernel,
53 [ --enable-debug-kernel enable compilation of the kernel module with debugging information (defaults to disabled)],, enable_debug_kernel="no"
61 dnl Various compiler setup.
66 dnl Checks for programs.
73 OPENAFS_CHECK_BIGENDIAN
76 if test "x$enable_debug_kernel" = "xyes"; then
80 AC_MSG_CHECKING(your OS)
85 if test "x$enable_redhat_buildsys" = "xyes"; then
86 AC_DEFINE(ENABLE_REDHAT_BUILDSYS, 1, [define if you have redhat buildsystem])
88 if test "x$enable_kernel_module" = "xyes"; then
89 if test "x$with_linux_kernel_headers" != "x"; then
90 LINUX_KERNEL_PATH="$with_linux_kernel_headers"
92 LINUX_KERNEL_PATH="/usr/src/linux"
94 if test -f "$LINUX_KERNEL_PATH/include/linux/version.h"; then
95 linux_kvers=`fgrep UTS_RELEASE $LINUX_KERNEL_PATH/include/linux/version.h |awk 'BEGIN { FS="\"" } { print $[]2 }'|tail -1`
96 if test "x$linux_kvers" = "x"; then
97 if test -f "$LINUX_KERNEL_PATH/include/linux/version-up.h"; then
98 linux_kvers=`fgrep UTS_RELEASE $LINUX_KERNEL_PATH/include/linux/version-up.h |awk 'BEGIN { FS="\"" } { print $[]2 }'|tail -1`
99 if test "x$linux_kvers" = "x"; then
101 AC_MSG_ERROR(Linux headers lack version definition [2])
104 LINUX_VERSION="$linux_kvers"
107 AC_MSG_ERROR(Linux headers lack version definition)
111 LINUX_VERSION="$linux_kvers"
114 enable_kernel_module="no"
116 if test ! -f "$LINUX_KERNEL_PATH/include/linux/autoconf.h"; then
117 enable_kernel_module="no"
119 if test "x$enable_kernel_module" = "xno"; then
120 if test "x$with_linux_kernel_headers" != "x"; then
121 AC_MSG_ERROR(No usable linux headers found at $LINUX_KERNEL_PATH)
124 AC_MSG_WARN(No usable linux headers found at $LINUX_KERNEL_PATH so disabling kernel module)
129 if test "x$enable_kernel_module" = "xyes"; then
131 if test "x$enable_debug_kernel" = "xno"; then
132 OMIT_FRAME_POINTER=-fomit-frame-pointer
134 AC_SUBST(OMIT_FRAME_POINTER)
135 OPENAFS_GCC_SUPPORTS_MARCH
136 AC_SUBST(P5PLUS_KOPTS)
137 OPENAFS_GCC_NEEDS_NO_STRENGTH_REDUCE
138 OPENAFS_GCC_NEEDS_NO_STRICT_ALIASING
139 OPENAFS_GCC_SUPPORTS_NO_COMMON
140 AC_SUBST(LINUX_GCC_KOPTS)
141 ifdef([OPENAFS_CONFIGURE_LIBAFS],
142 [LINUX_BUILD_VNODE_FROM_INODE(src/config,afs)],
143 [LINUX_BUILD_VNODE_FROM_INODE(${srcdir}/src/config,src/afs/LINUX,${srcdir}/src/afs/LINUX)]
145 LINUX_FS_STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK
146 LINUX_FS_STRUCT_ADDRESS_SPACE_HAS_GFP_MASK
147 LINUX_FS_STRUCT_INODE_HAS_I_TRUNCATE_SEM
148 LINUX_FS_STRUCT_INODE_HAS_I_DIRTY_DATA_BUFFERS
149 LINUX_FS_STRUCT_INODE_HAS_I_DEVICES
150 LINUX_INODE_SETATTR_RETURN_TYPE
151 LINUX_COMPLETION_H_EXISTS
152 LINUX_EXPORTS_TASKLIST_LOCK
155 if test "x$ac_cv_linux_config_modversions" = "xno"; then
156 AC_MSG_WARN([Cannot determine sys_call_table status. assuming it's exported])
157 ac_cv_linux_exports_sys_call_table=yes
159 LINUX_EXPORTS_SYS_CALL_TABLE
160 LINUX_EXPORTS_KALLSYMS_SYMBOL
161 LINUX_EXPORTS_KALLSYMS_ADDRESS
162 LINUX_EXPORTS_INIT_MM
163 if test "x$ac_cv_linux_exports_sys_call_table" = "xno"; then
164 linux_syscall_method=none
165 if test "x$ac_cv_linux_exports_init_mm" = "xyes"; then
166 linux_syscall_method=scan
167 if test "x$ac_cv_linux_exports_kallsyms_address" = "xyes"; then
168 linux_syscall_method=scan_with_kallsyms_address
171 if test "x$ac_cv_linux_exports_kallsyms_symbol" = "xyes"; then
172 linux_syscall_method=kallsyms_symbol
174 if test "x$linux_syscall_method" = "xnone"; then
175 AC_MSG_ERROR([no available sys_call_table access method])
179 if test "x$ac_cv_linux_exports_tasklist_lock" = "xyes" ; then
180 AC_DEFINE(EXPORTED_TASKLIST_LOCK, 1, [define if your linux kernel exports tasklist_lock])
182 if test "x$ac_cv_linux_exports_sys_call_table" = "xyes"; then
183 AC_DEFINE(EXPORTED_SYS_CALL_TABLE)
185 if test "x$ac_cv_linux_exports_kallsyms_symbol" = "xyes"; then
186 AC_DEFINE(EXPORTED_KALLSYMS_SYMBOL)
188 if test "x$ac_cv_linux_exports_kallsyms_address" = "xyes"; then
189 AC_DEFINE(EXPORTED_KALLSYMS_ADDRESS)
191 if test "x$ac_cv_linux_completion_h_exists" = "xyes" ; then
192 AC_DEFINE(COMPLETION_H_EXISTS, 1, [define if your h_exists exists])
194 if test "x$ac_cv_linux_func_inode_setattr_returns_int" = "xyes" ; then
195 AC_DEFINE(INODE_SETATTR_NOT_VOID, 1, [define if your setattr return return non-void])
197 if test "x$ac_cv_linux_fs_struct_address_space_has_page_lock" = "xyes"; then
198 AC_DEFINE(STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK, 1, [define if your struct address_space has page_lock])
200 if test "x$ac_cv_linux_fs_struct_address_space_has_gfp_mask" = "xyes"; then
201 AC_DEFINE(STRUCT_ADDRESS_SPACE_HAS_GFP_MASK, 1, [define if your struct address_space has gfp_mask])
203 if test "x$ac_cv_linux_fs_struct_inode_has_i_truncate_sem" = "xyes"; then
204 AC_DEFINE(STRUCT_INODE_HAS_I_TRUNCATE_SEM, 1, [define if your struct inode has truncate_sem])
206 if test "x$ac_cv_linux_fs_struct_inode_has_i_devices" = "xyes"; then
207 AC_DEFINE(STRUCT_INODE_HAS_I_DEVICES, 1, [define if you struct inode has i_devices])
209 if test "x$ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers" = "xyes"; then
210 AC_DEFINE(STRUCT_INODE_HAS_I_DIRTY_DATA_BUFFERS, 1, [define if you struct inode has data_buffers])
218 SOLARIS_UFSVFS_HAS_DQRWLOCK
219 SOLARIS_PROC_HAS_P_COREFILE
223 enable_kernel_module=no
231 if test -d /usr/include/sys/SN/SN1; then
232 IRIX_BUILD_IP35="IP35"
239 AC_MSG_RESULT(rs_aix)
243 AC_MSG_RESULT(alpha_dux)
244 if test "x$enable_kernel_module" = "xyes"; then
245 if test "x$with_dux_kernel_headers" != "x"; then
246 HEADER_RT=`ls ${with_dux_kernel_headers}/rt_preempt.h | head -1 | sed 's,/rt_preempt.h,,;s,/usr/sys/,,'`
248 HEADER_RT=`ls /usr/sys/*/rt_preempt.h | head -1 | sed 's,/rt_preempt.h,,;s,/usr/sys/,,'`
251 if test "$HEADER_RT" = "*" ; then
252 AC_MSG_ERROR([Need a configured kernel directory])
254 AC_SUBST([HEADER_RT])
258 AC_MSG_RESULT(ppc_darwin)
262 AC_MSG_RESULT(i386_fbsd)
270 AC_MSG_RESULT(i386_obsd)
273 AC_MSG_RESULT($system)
276 AC_SUBST(KERN_DEBUG_OPT)
278 if test "x$with_afs_sysname" != "x"; then
279 AFS_SYSNAME="$with_afs_sysname"
281 AC_MSG_CHECKING(your AFS sysname)
283 i386-unknown-openbsd3.1)
284 AFS_SYSNAME="i386_obsd31"
287 AFS_SYSNAME="i386_fbsd_42"
290 AFS_SYSNAME="i386_fbsd_43"
293 AFS_SYSNAME="i386_fbsd_44"
296 AFS_SYSNAME="i386_fbsd_45"
299 AFS_SYSNAME="i386_fbsd_46"
302 AFS_SYSNAME="i386_fbsd_47"
305 AFS_PARAM_COMMON=param.nbsd15.h
306 AFS_SYSNAME="i386_nbsd15"
309 AFS_PARAM_COMMON=param.nbsd15.h
310 AFS_SYSNAME="alpha_nbsd15"
313 AFS_PARAM_COMMON=param.nbsd16.h
314 AFS_SYSNAME="i386_nbsd16"
317 AFS_PARAM_COMMON=param.nbsd16.h
318 AFS_SYSNAME="alpha_nbsd16"
321 AFS_SYSNAME="hp_ux110"
324 AFS_SYSNAME="hp_ux102"
326 powerpc-apple-darwin1.2*)
327 AFS_SYSNAME="ppc_darwin_12"
329 powerpc-apple-darwin1.3*)
330 AFS_SYSNAME="ppc_darwin_13"
332 powerpc-apple-darwin1.4*)
333 AFS_SYSNAME="ppc_darwin_14"
335 powerpc-apple-darwin5.1*)
336 AFS_SYSNAME="ppc_darwin_14"
338 powerpc-apple-darwin5.2*)
339 AFS_SYSNAME="ppc_darwin_14"
341 powerpc-apple-darwin5.3*)
342 AFS_SYSNAME="ppc_darwin_14"
344 powerpc-apple-darwin5.4*)
345 AFS_SYSNAME="ppc_darwin_14"
347 powerpc-apple-darwin5.5*)
348 AFS_SYSNAME="ppc_darwin_14"
350 powerpc-apple-darwin6.0*)
351 AFS_SYSNAME="ppc_darwin_60"
353 powerpc-apple-darwin6.1*)
354 AFS_SYSNAME="ppc_darwin_60"
356 powerpc-apple-darwin6.2*)
357 AFS_SYSNAME="ppc_darwin_60"
359 sparc-sun-solaris2.5*)
360 AFS_SYSNAME="sun4x_55"
362 sparc-sun-solaris2.6)
363 AFS_SYSNAME="sun4x_56"
365 sparc-sun-solaris2.7)
366 AFS_SYSNAME="sun4x_57"
368 sparc-sun-solaris2.8)
369 AFS_SYSNAME="sun4x_58"
371 sparc-sun-solaris2.9)
372 AFS_SYSNAME="sun4x_59"
375 AFS_SYSNAME="sun4_413"
378 AFS_SYSNAME="sunx86_57"
381 AFS_SYSNAME="sunx86_58"
384 AFS_SYSNAME="sunx86_59"
387 AFS_SYSNAME="alpha_dux40"
390 AFS_SYSNAME="alpha_dux50"
393 AFS_SYSNAME="alpha_dux51"
399 AFS_SYSNAME="ia64_linuxXX"
402 AFS_SYSNAME="ppc_linuxXX"
405 AFS_SYSNAME="alpha_linux_XX"
408 AFS_SYSNAME="s390_linuxXX"
411 AFS_SYSNAME="sparc_linuxXX"
414 AFS_SYSNAME="sparc64_linuxXX"
417 AFS_SYSNAME="i386_linuxXX"
420 AFS_SYSNAME="parisc_linuxXX"
423 AFS_SYSNAME="rs_aix42"
426 AFS_SYSNAME="rs_aix42"
429 AC_MSG_ERROR(An AFS sysname is required)
435 AFS_SYSKVERS=`echo $LINUX_VERSION | awk -F\. '{print $[]1 $[]2}'`
436 if test "x${AFS_SYSKVERS}" = "x"; then
437 AC_MSG_ERROR(Couldn't guess your Linux version. Please use the --with-afs-sysname option to configure an AFS sysname.)
439 _AFS_SYSNAME=`echo $AFS_SYSNAME|sed s/XX\$/$AFS_SYSKVERS/`
440 AFS_SYSNAME="$_AFS_SYSNAME"
443 AC_MSG_RESULT($AFS_SYSNAME)
448 DARWIN_PLIST=src/libafs/afs.${AFS_SYSNAME}.plist
449 DARWIN_INFOFILE=afs.${AFS_SYSNAME}.plist
450 dnl the test below fails on darwin, even if the CPPFLAGS below
451 dnl are added. the headers from Kernel.Framework must be used
452 dnl when KERNEL is defined.
454 dnl really, such a thing isn't guaranteed to work on any
455 dnl platform until the kernel cflags from MakefileProto are
456 dnl known to configure
457 AC_DEFINE(HAVE_STRUCT_BUF, 1, [define if you have a struct buf])
460 AC_MSG_CHECKING(for definition of struct buf)
461 dnl save_CPPFLAGS="$CPPFLAGS"
462 dnl CPPFLAGS="$CPPFLAGS -DKERNEL -D_KERNEL -D__KERNEL -D__KERNEL__"
463 AC_CACHE_VAL(ac_cv_have_struct_buf, [
464 ac_cv_have_struct_buf=no
466 [#include <sys/buf.h>],
468 printf("%d\n", sizeof(x));],
469 ac_cv_have_struct_buf=yes,)
472 dnl CPPFLAGS="$save_CPPFLAGS"
473 AC_MSG_RESULT($ac_cv_have_struct_buf)
474 if test "$ac_cv_have_struct_buf" = yes; then
475 AC_DEFINE(HAVE_STRUCT_BUF, 1, [define if you have a struct buf])
481 AC_CACHE_VAL(ac_cv_sockaddr_len,
483 AC_MSG_CHECKING([if struct sockaddr has sa_len field])
484 AC_TRY_COMPILE( [#include <sys/types.h>
485 #include <sys/socket.h>],
487 a->sa_len=0;], ac_cv_sockaddr_len=yes, ac_cv_sockaddr_len=no)
488 AC_MSG_RESULT($ac_cv_sockaddr_len)])
489 if test "$ac_cv_sockaddr_len" = "yes"; then
490 AC_DEFINE(STRUCT_SOCKADDR_HAS_SA_LEN, 1, [define if you struct sockaddr sa_len])
492 if test "x${MKAFS_OSTYPE}" = "xIRIX"; then
493 echo Skipping library tests because they confuse Irix.
495 AC_CHECK_FUNCS(socket)
497 if test "$ac_cv_func_socket" = no; then
498 for lib in socket inet; do
499 if test "$HAVE_SOCKET" != 1; then
500 AC_CHECK_LIB(${lib}, socket,LIBS="$LIBS -l$lib";HAVE_SOCKET=1;AC_DEFINE(HAVE_SOCKET, 1, [define if you have socket]))
505 AC_CHECK_FUNCS(connect)
507 if test "$ac_cv_func_connect" = no; then
509 if test "$HAVE_CONNECT" != 1; then
510 AC_CHECK_LIB(${lib}, connect,LIBS="$LIBS -l$lib";HAVE_CONNECT=1;AC_DEFINE(HAVE_CONNECT, 1, [define if you have connect]))
515 AC_CHECK_FUNCS(gethostbyname)
516 if test "$ac_cv_func_gethostbyname" = no; then
517 for lib in dns nsl resolv; do
518 if test "$HAVE_GETHOSTBYNAME" != 1; then
519 AC_CHECK_LIB(${lib}, gethostbyname, LIBS="$LIBS -l$lib";HAVE_GETHOSTBYNAME=1;AC_DEFINE(HAVE_GETHOSTBYNAME, 1, [define if you have gethostbyname]))
524 AC_CHECK_FUNCS(res_search)
525 if test "$ac_cv_func_res_search" = no; then
526 for lib in dns nsl resolv; do
527 if test "$HAVE_RES_SEARCH" != 1; then
528 AC_CHECK_LIB(${lib}, res_search, LIBS="$LIBS -l$lib";HAVE_RES_SEARCH=1;AC_DEFINE(HAVE_RES_SEARCH, 1, [define if you have res_search]))
531 if test "$HAVE_RES_SEARCH" = 1; then
532 LIB_res_search="-l$lib"
538 AC_CHECK_LIB(pthread, pthread_attr_init,
539 PTHREAD_LIBS="-lpthread")
540 if test "x$PTHREAD_LIBS" = xerror; then
541 AC_CHECK_LIB(pthreads, pthread_attr_init,
542 PTHREAD_LIBS="-lpthreads")
544 if test "x$PTHREAD_LIBS" = xerror; then
545 AC_CHECK_LIB(c_r, pthread_attr_init,
546 PTHREAD_LIBS="-lc_r")
548 if test "x$PTHREAD_LIBS" = xerror; then
549 AC_CHECK_FUNC(pthread_attr_init, PTHREAD_LIBS="")
551 if test "x$PTHREAD_LIBS" = xerror; then
552 AC_MSG_WARN(*** Unable to locate working posix thread library ***)
554 AC_SUBST(PTHREAD_LIBS)
557 if test "$enable_obsolete" = "yes"; then
562 if test "$enable_insecure" = "yes"; then
567 if test "$enable_fast_restart" = "yes"; then
568 AC_DEFINE(FAST_RESTART, 1, [define if you want to have fast restart])
571 if test "$enable_bitmap_later" = "yes"; then
572 AC_DEFINE(BITMAP_LATER, 1, [define if you want to salvager to check bitmasks later])
575 if test "$enable_full_vos_listvol_switch" = "yes"; then
576 AC_DEFINE(FULL_LISTVOL_SWITCH, 1, [define if you want to want listvol switch])
579 if test "$enable_bos_restricted_mode" = "yes"; then
580 AC_DEFINE(BOS_RESTRICTED_MODE, 1, [define if you want to want bos restricted mode])
583 if test "$enable_bos_new_config" = "yes"; then
584 AC_DEFINE(BOS_NEW_CONFIG, 1, [define if you want to enable automatic renaming of BosConfig.new to BosConfig at startup])
587 if test "$enable_namei_fileserver" = "yes"; then
588 AC_DEFINE(AFS_NAMEI_ENV, 1, [define if you want to want namei fileserver])
591 if test "$enable_afsdb" = "yes"; then
592 LIB_AFSDB="$LIB_res_search"
593 AC_DEFINE(AFS_AFSDB_ENV, 1, [define if you want to want search afsdb rr])
597 AC_MSG_CHECKING(for tivoli tsm butc support)
599 if test "$enable_tivoli_tsm" = "yes"; then
600 XBSADIR1=/usr/tivoli/tsm/client/api/bin/xopen
601 XBSADIR2=/opt/tivoli/tsm/client/api/bin/xopen
603 if test -e "$XBSADIR1/xbsa.h"; then
604 XBSA_CFLAGS="-Dxbsa -I$XBSADIR1"
605 AC_MSG_RESULT([yes, $XBSA_CFLAGS])
606 elif test -e "$XBSADIR2/xbsa.h"; then
607 XBSA_CFLAGS="-Dxbsa -I$XBSADIR2"
608 AC_MSG_RESULT([yes, $XBSA_CFLAGS])
610 AC_MSG_RESULT([no, missing xbsa.h header file])
615 AC_SUBST(XBSA_CFLAGS)
617 dnl checks for header files.
621 AC_CHECK_HEADERS(stdlib.h string.h unistd.h fcntl.h sys/time.h sys/file.h)
622 AC_CHECK_HEADERS(netinet/in.h netdb.h sys/fcntl.h sys/mnttab.h sys/mntent.h)
623 AC_CHECK_HEADERS(mntent.h sys/vfs.h sys/param.h sys/fs_types.h)
624 AC_CHECK_HEADERS(sys/mount.h strings.h termios.h signal.h)
625 AC_CHECK_HEADERS(windows.h malloc.h winsock2.h direct.h io.h)
626 AC_CHECK_HEADERS(security/pam_modules.h siad.h usersec.h ucontext.h)
628 AC_CHECK_FUNCS(utimes random srandom getdtablesize snprintf re_comp re_exec)
629 AC_CHECK_FUNCS(setprogname getprogname sigaction)
630 AC_CHECK_TYPE(ssize_t, int)
633 AC_CHECK_FUNCS(timegm)
635 dnl Directory PATH handling
636 if test "x$enable_transarc_paths" = "xyes" ; then
637 afsconfdir=${afsconfdir=/usr/afs/etc}
638 viceetcdir=${viceetcdir=/usr/vice/etc}
639 afskerneldir=${afskerneldir=${viceetcdir}}
640 afssrvbindir=${afssrvbindir=/usr/afs/bin}
641 afssrvsbindir=${afssrvsbindir=/usr/afs/bin}
642 afssrvlibexecdir=${afssrvlibexecdir=/usr/afs/bin}
643 afsdbdir=${afsdbdir=/usr/afs/db}
644 afslogsdir=${afslogsdir=/usr/afs/logs}
645 afslocaldir=${afslocaldir=/usr/afs/local}
646 afsbackupdir=${afsbackupdir=/usr/afs/backup}
647 afsbosconfigdir=${afsbosconfigdir=/usr/afs/local}
649 afsconfdir=${afsconfdir='${sysconfdir}/openafs/server'}
650 viceetcdir=${viceetcdir='${sysconfdir}/openafs'}
651 afskerneldir=${afskerneldir='${libdir}/openafs'}
652 afssrvbindir=${afssrvbindir='${bindir}'}
653 afssrvsbindir=${afssrvsbindir='${sbindir}'}
654 afssrvlibexecdir=${afssrvlibexecdir='${libexecdir}/openafs'}
655 afsdbdir=${afsdbdir='${localstatedir}/openafs/db'}
656 afslogsdir=${afslogsdir='${localstatedir}/openafs/logs'}
657 afslocaldir=${afslocaldir='${localstatedir}/openafs'}
658 afsbackupdir=${afsbackupdir='${localstatedir}/openafs/backup'}
659 afsbosconfigdir=${afsbosconfigdir='${sysconfdir}/openafs'}
663 AC_SUBST(afskerneldir)
664 AC_SUBST(afssrvbindir)
665 AC_SUBST(afssrvsbindir)
666 AC_SUBST(afssrvlibexecdir)
669 AC_SUBST(afslocaldir)
670 AC_SUBST(afsbackupdir)
671 AC_SUBST(afsbosconfigdir)
673 if test "x$enable_kernel_module" = "xyes"; then
674 ENABLE_KERNEL_MODULE=libafs
677 AC_SUBST(AFS_SYSNAME)
678 AC_SUBST(AFS_PARAM_COMMON)
679 AC_SUBST(ENABLE_KERNEL_MODULE)
681 AC_SUBST(LINUX_KERNEL_PATH)
682 AC_SUBST(LINUX_VERSION)
683 AC_SUBST(MKAFS_OSTYPE)
689 AC_SUBST(WITH_OBSOLETE)
690 AC_SUBST(WITH_INSECURE)
691 AC_SUBST(DARWIN_INFOFILE)
692 AC_SUBST(IRIX_BUILD_IP35)
696 TOP_SRCDIR="${srcdir}/src"
698 dnl If we're using ./configure, need a more reasonable TOP_SRCDIR, since relative links don't work everywhere
704 TOP_SRCDIR=${SRCDIR_PARENT}/src
707 TOP_OBJDIR="${SRCDIR_PARENT}"
708 TOP_INCDIR="${SRCDIR_PARENT}/include"
709 TOP_LIBDIR="${SRCDIR_PARENT}/lib"
710 if test "${DEST}x" = "x"; then
711 DEST="${SRCDIR_PARENT}/${AFS_SYSNAME}/dest"