1 dnl Process this file with autoconf to produce a configure script.
3 AC_REVISION($Revision$)dnl
6 AC_CONFIG_SRCDIR(mmake.c)
11 if test "$host_os" = "mingw32" ; then
15 #don't know where else to put this...
16 AC_MSG_CHECKING([Building MetaMake in .. ])
17 METAMAKE_BUILDDIR=`${PWDCMD-pwd}`
18 AC_MSG_RESULT($METAMAKE_BUILDDIR)
20 AC_MSG_CHECKING([MetaMake Source in .. ])
21 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
22 METAMAKE_SRCDIR=${srcpwd}
23 AC_MSG_RESULT($METAMAKE_SRCDIR)
25 dnl Checks for programs.
30 dnl Checks for libraries.
32 dnl Checks for header files.
35 AC_CHECK_HEADERS(stdarg.h string.h unistd.h sys/stat.h sys/types.h netinet/in.h)
37 AC_MSG_CHECKING([where to build objfiles])
38 AC_ARG_WITH(objfiledir,AC_HELP_STRING([--with-objfiledir=DIR],[Build Object Files in DIR]),with_objfiles="$withval",with_objfiles="sourcedir")
39 if test "$with_objfiles" = "sourcedir"; then
40 mmake_srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
41 mmake_objdir="${mmake_srcpwd}/obj"
43 mmake_objdir="$with_objfiles"
45 AC_MSG_RESULT($with_objfiles)
47 dnl Checks for typedefs, structures, and compiler characteristics.
51 dnl Checks for library functions.
53 AC_CHECK_FUNCS(getcwd strdup strndup strerror)
56 AC_SUBST(mmake_objdir)
57 AC_SUBST(METAMAKE_BUILDDIR)
58 AC_SUBST(METAMAKE_SRCDIR)
60 AC_CONFIG_HEADERS(config.h)