Home | History | Annotate | Line # | Download | only in make
configure.ac revision 1.8
      1  1.8      apb #	$NetBSD: configure.ac,v 1.8 2007/10/14 20:25:35 apb Exp $
      2  1.1       tv #
      3  1.1       tv # Autoconf definition file for make.
      4  1.1       tv #
      5  1.8      apb # When you edit configure.ac:
      6  1.8      apb # 0. Create the tools version of autoconf:
      7  1.8      apb #        cd ${SRCDIR} && build.sh -V MKMAINTAINERTOOLS=yes tools
      8  1.8      apb #    (This might not work if you try it after editing configure.ac.)
      9  1.8      apb # 1. edit configure.ac
     10  1.8      apb # 2. Regenerate "configure" from "configure.ac":
     11  1.8      apb #        cd ${SRCDIR}/tools/make && \
     12  1.8      apb #        ${TOOLDIR}/bin/nbmake-${MACHINE} -f Makefile.regen
     13  1.8      apb #    (Please don't use a non-tools version of autoconf).
     14  1.8      apb # 3. Test that nbmake still builds
     15  1.8      apb #        mv ${TOOLDIR}/nbmake ${TOOLDIR}/bin/nbmake.bak
     16  1.8      apb #        cd ${SRCDIR} && build.sh makewrapper
     17  1.8      apb # 4. cvs commit files that you edited.
     18  1.8      apb # 5. Regen again, to pick up changed RCS IDs from the above commit:
     19  1.8      apb #        cd ${SRCDIR}/tools/make && \
     20  1.8      apb #        ${TOOLDIR}/bin/nbmake-${MACHINE} -f Makefile.regen
     21  1.8      apb # 6. cvs commit files that were generated.
     22  1.8      apb #
     23  1.8      apb #
     24  1.1       tv 
     25  1.6     salo AC_INIT([make], [noversion], [bin-bug-people (a] NetBSD.org])
     26  1.1       tv AC_CONFIG_FILES(buildmake.sh)
     27  1.3    bjh21 
     28  1.3    bjh21 AC_PATH_PROG(BSHELL, sh)
     29  1.3    bjh21 if test x"$BSHELL" = x; then
     30  1.3    bjh21 	AC_MSG_ERROR([sh must be somewhere on \$PATH])
     31  1.3    bjh21 fi
     32  1.7      apb # Make wants to get the directory name and the basename
     33  1.7      apb # for the default shell in two separate variables.
     34  1.7      apb nb_path_defshelldir="${BSHELL%/*}"
     35  1.7      apb nb_basename_defshell="${BSHELL##*/}"
     36  1.3    bjh21 AC_DEFINE_UNQUOTED(_PATH_DEFSHELLDIR, "$nb_path_defshelldir")
     37  1.7      apb AC_DEFINE_UNQUOTED(_BASENAME_DEFSHELL, "$nb_basename_defshell")
     38  1.1       tv 
     39  1.1       tv # Make sure we have POSIX regex ability.
     40  1.1       tv AC_CHECK_HEADER(regex.h,, AC_MSG_ERROR([POSIX regex.h is required]))
     41  1.5  thorpej 
     42  1.5  thorpej # If we don't have <poll.h>, we need to use select(2).
     43  1.5  thorpej AC_CHECK_HEADER(poll.h,, AC_DEFINE(USE_SELECT))
     44  1.1       tv 
     45  1.1       tv # regcomp() and regexec() are also names of functions in the old V8
     46  1.1       tv # regexp package.  To avoid them, we need to find out who has regfree().
     47  1.1       tv 
     48  1.1       tv dnl # Cygwin: We *MUST* look at -lregex *before* the "no libs" condition.
     49  1.1       tv dnl # Thus AC_CHECK_LIB(regex...) comes first, and AC_SEARCHLIBS next.
     50  1.1       tv AC_CHECK_LIB(regex, regfree)
     51  1.1       tv AC_SEARCH_LIBS(regfree, rx posix)
     52  1.2       tv 
     53  1.2       tv AC_CHECK_FUNCS(setenv strdup strerror strftime vsnprintf)
     54  1.1       tv 
     55  1.1       tv AC_OUTPUT
     56