configure.ac revision 1.1 1 1.1 tv # $NetBSD: configure.ac,v 1.1 2002/01/15 19:15:47 tv 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.1 tv
9 1.1 tv # Make sure we have POSIX regex ability.
10 1.1 tv AC_CHECK_HEADER(regex.h,, AC_MSG_ERROR([POSIX regex.h is required]))
11 1.1 tv
12 1.1 tv # regcomp() and regexec() are also names of functions in the old V8
13 1.1 tv # regexp package. To avoid them, we need to find out who has regfree().
14 1.1 tv
15 1.1 tv dnl # Cygwin: We *MUST* look at -lregex *before* the "no libs" condition.
16 1.1 tv dnl # Thus AC_CHECK_LIB(regex...) comes first, and AC_SEARCHLIBS next.
17 1.1 tv AC_CHECK_LIB(regex, regfree)
18 1.1 tv AC_SEARCH_LIBS(regfree, rx posix)
19 1.1 tv
20 1.1 tv AC_OUTPUT
21