Home | History | Annotate | Line # | Download | only in make
configure.ac revision 1.4
      1  1.4  bjh21 #	$NetBSD: configure.ac,v 1.4 2002/04/27 16:36:31 bjh21 Exp $
      2  1.1     tv #
      3  1.1     tv # Autoconf definition file for make.
      4  1.1     tv #
      5  1.1     tv 
      6  1.1     tv AC_INIT([make], [noversion], [bin-bug-people (a] netbsd.org])
      7  1.1     tv AC_CONFIG_FILES(buildmake.sh)
      8  1.3  bjh21 
      9  1.3  bjh21 AC_PATH_PROG(BSHELL, sh)
     10  1.3  bjh21 if test x"$BSHELL" = x; then
     11  1.3  bjh21 	AC_MSG_ERROR([sh must be somewhere on \$PATH])
     12  1.3  bjh21 fi
     13  1.4  bjh21 AC_DEFINE_UNQUOTED(_PATH_BSHELL, "$BSHELL")
     14  1.3  bjh21 # Make wants to know what directory to find sh in.
     15  1.3  bjh21 nb_path_defshelldir=`echo $BSHELL | sed 's,/sh$,,'`
     16  1.3  bjh21 AC_DEFINE_UNQUOTED(_PATH_DEFSHELLDIR, "$nb_path_defshelldir")
     17  1.1     tv 
     18  1.1     tv # Make sure we have POSIX regex ability.
     19  1.1     tv AC_CHECK_HEADER(regex.h,, AC_MSG_ERROR([POSIX regex.h is required]))
     20  1.1     tv 
     21  1.1     tv # regcomp() and regexec() are also names of functions in the old V8
     22  1.1     tv # regexp package.  To avoid them, we need to find out who has regfree().
     23  1.1     tv 
     24  1.1     tv dnl # Cygwin: We *MUST* look at -lregex *before* the "no libs" condition.
     25  1.1     tv dnl # Thus AC_CHECK_LIB(regex...) comes first, and AC_SEARCHLIBS next.
     26  1.1     tv AC_CHECK_LIB(regex, regfree)
     27  1.1     tv AC_SEARCH_LIBS(regfree, rx posix)
     28  1.2     tv 
     29  1.2     tv AC_CHECK_FUNCS(setenv strdup strerror strftime vsnprintf)
     30  1.1     tv 
     31  1.1     tv AC_OUTPUT
     32