1 dnl Process this file with autoconf to produce a configure script.
3 AC_REVISION($Revision$)dnl
6 AC_CONFIG_SRCDIR(mmake.c)
8 #don't know where else to put this...
9 AC_MSG_CHECKING([Building MetaMake in .. ])
10 METAMAKE_BUILDDIR=$PWD
11 AC_MSG_RESULT($METAMAKE_BUILDDIR)
13 AC_MSG_CHECKING([MetaMake Source in .. ])
14 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
15 METAMAKE_SRCDIR=${srcpwd}
16 AC_MSG_RESULT($METAMAKE_SRCDIR)
18 dnl Checks for programs.
23 dnl Checks for libraries.
25 dnl Checks for header files.
28 AC_CHECK_HEADERS(stdarg.h string.h unistd.h sys/stat.h sys/types.h netinet/in.h)
30 AC_MSG_CHECKING([where to build objfiles])
31 AC_ARG_WITH(objfiledir,AC_HELP_STRING([--with-objfiledir=DIR],[Build Object Files in DIR]),with_objfiles="$withval",with_objfiles="sourcedir")
32 if test "$with_objfiles" = "sourcedir"; then
33 mmake_srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
34 mmake_objdir="${mmake_srcpwd}/obj"
36 mmake_objdir="$with_objfiles"
38 AC_MSG_RESULT($with_objfiles)
40 dnl Checks for typedefs, structures, and compiler characteristics.
45 dnl Checks for library functions.
47 AC_CHECK_FUNCS(getcwd strdup strndup strerror)
49 AC_SUBST(mmake_objdir)
50 AC_SUBST(METAMAKE_SRCDIR)
52 AM_CONFIG_HEADER(config.h)