--- parser3/Attic/configure.in 2003/10/31 13:02:05 1.64.6.1 +++ parser3/Attic/configure.in 2003/11/21 12:50:27 1.71 @@ -2,7 +2,7 @@ dnl Process this file with autoconf to p AC_INIT(README) AC_PREREQ(2.57) -AM_INIT_AUTOMAKE(parser, 3.1.1, nodefine) +AM_INIT_AUTOMAKE(parser, 3.1.2beta, nodefine) dnl expand srcdir P3S=`cd $srcdir/src ; pwd` @@ -57,6 +57,12 @@ AC_C_INLINE dnl Arguments +AC_ARG_WITH(build-warnings, [ --with-build-warnings to enable build-time compiler warnings if gcc is used], + AC_MSG_WARN(enabling compiler warnings) + CXXFLAGS="$CXXFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes" +) + + AC_ARG_WITH(assertions, [ --with-assertions to enable assertions], AC_MSG_WARN(enabling assertions) , @@ -514,7 +520,45 @@ AC_LANG_POP dnl We require qsort(3) and select(2). AC_CHECK_FUNCS(qsort, , AC_MSG_ERROR([No qsort library function.])) -AC_CHECK_FUNCS(select, , AC_MSG_ERROR([No select library function.])) + +AC_MSG_CHECKING(for select) +AC_TRY_RUN([ + +#ifdef HAVE_SYS_SELECT_H +# include +#endif + +#ifdef HAVE_SYS_SOCKET_H +# include +#endif + +#if TIME_WITH_SYS_TIME +# include +# include +#else +# ifdef HAVE_SYS_TIME_H +# include +# else +# include +# endif +#endif + +#ifdef __STDC__ +int (*f)(int, fd_set *, fd_set *, fd_set *, struct timeval *)=select; +#else +int (*f)()=select; +#endif /* __STDC__ */ + +int +main () +{ + return f != select; +} +], +AC_DEFINE(HAVE_SELECT,,have 'select' library function) +AC_MSG_RESULT(yes), +AC_MSG_ERROR([No select library function.]) +) dnl For correct mail receiving we need to know local offset from GMT dnl it be timezone+(daylight?60*60*sign(timezone):0) @@ -628,4 +672,35 @@ AH_TEMPLATE([HAVE_TM_TZADJ], AM_CONFIG_HEADER(src/include/pa_config_auto.h) -AC_OUTPUT(Makefile src/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/patches/Makefile src/lib/gc/Makefile src/lib/gc/include/Makefile src/lib/cord/Makefile src/lib/cord/include/Makefile src/lib/cord/include/private/Makefile src/lib/ltdl/Makefile src/lib/pcre/Makefile src/lib/md5/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache13core/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist) +AC_OUTPUT( + Makefile + src/Makefile + src/types/Makefile + src/classes/Makefile + src/include/Makefile + src/main/Makefile + src/sql/Makefile + src/lib/Makefile + src/lib/patches/Makefile + src/lib/gd/Makefile + src/lib/smtp/Makefile + src/lib/gc/Makefile + src/lib/gc/include/Makefile + src/lib/cord/Makefile + src/lib/cord/include/Makefile + src/lib/cord/include/private/Makefile + src/lib/ltdl/Makefile + src/lib/pcre/Makefile + src/lib/md5/Makefile + src/lib/sdbm/Makefile + src/lib/sdbm/apr-include/Makefile + src/targets/Makefile + src/targets/cgi/Makefile + src/targets/apache13core/Makefile + src/targets/apache13/Makefile + src/targets/apache13/p3runConfigure + src/targets/isapi/Makefile + etc/Makefile + etc/parser3.charsets/Makefile + bin/Makefile + bin/auto.p.dist)