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