build-system-specific-makefile-configuration-from-configure-20011031
[openafs.git] / configure-libafs.in
1 AC_INIT(Makefile.common)
2 AM_INIT_AUTOMAKE(openafs-libafs,devel)
3 AC_CONFIG_HEADER(config/afsconfig.h)
4 define(OPENAFS_CONFIGURE_LIBAFS)
5
6 OPENAFS_CONFIGURE_COMMON
7
8 TOP_SRCDIR="${SRCDIR_PARENT}"
9 TOP_INCDIR="${SRCDIR_PARENT}/include"
10 TOP_LIBDIR="${SRCDIR_PARENT}/lib"
11 if test "${DEST}x" = "x"; then
12         DEST="${SRCDIR_PARENT}/${AFS_SYSNAME}/dest"
13 fi
14
15 # Check for files involved in porting.  Report errors, don't make the
16 # user hunt through the configure log after the build fails!
17 if test ! -r config/Makefile.${AFS_SYSNAME}.in ; then
18   AC_MSG_ERROR(no source file config/Makefile.${AFS_SYSNAME}.in)
19 fi
20
21 AC_OUTPUT(             \
22 Makefile               \
23 config/Makefile.config \
24 config/Makefile.${AFS_SYSNAME} \
25 )