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