--- parser3/Attic/configure.in 2004/02/13 13:59:47 1.73 +++ parser3/Attic/configure.in 2005/11/24 14:48:25 1.83.6.4 @@ -2,13 +2,16 @@ dnl Process this file with autoconf to p AC_INIT(README) AC_PREREQ(2.57) -AM_INIT_AUTOMAKE(parser, 3.1.2beta, nodefine) +AM_INIT_AUTOMAKE(parser, 3.1.5beta, nodefine) dnl expand srcdir P3S=`cd $srcdir/src ; pwd` AC_SUBST(P3S) -PARSER_VERSION=$VERSION +dnl AC_CANONICAL_SYSTEM +AC_CANONICAL_HOST + +PARSER_VERSION="$VERSION (compiled on $host)" echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new @@ -22,8 +25,6 @@ fi -dnl AC_CANONICAL_SYSTEM -AC_CANONICAL_HOST AC_SUBST(host_os) case $host_os in *cygwin* ) AC_DEFINE(CYGWIN,,using cygwin building environment);; @@ -106,7 +107,7 @@ for c in $CHARSETS_REQUESTED; do done # Switching on commentcharset_XXX='#' -AC_DEFUN(PA_SUBSTCHARSET, [ +AC_DEFUN([PA_SUBSTCHARSET], [ commentcharset_$2='#' for c in $CHARSETS_REQUESTED; do if test "$1" = "$c"; then @@ -278,7 +279,10 @@ AC_ARG_WITH(shared-xml,[ --with-shared- if test -z "$GLIB_CONFIG"; then GLIB_CONFIG=$XMLBIN/glib-config if test \! -x $GLIB_CONFIG; then - GLIB_CONFIG=glib-config + GLIB_CONFIG=$XMLBIN/glib2-config + if test \! -x $GLIB_CONFIG; then + GLIB_CONFIG=glib-config + fi fi fi GLIB_CFLAGS=`$GLIB_CONFIG --cflags` @@ -420,6 +424,14 @@ AC_SUBST(LIBADD_DL) dnl Checks for typedefs, structures, and compiler characteristics. +AC_C_BIGENDIAN( + AC_DEFINE(PA_BIG_ENDIAN,,compile for sparc processor) +, + AC_DEFINE(PA_LITTLE_ENDIAN,,compile for intel processor or compatible) +, + AC_MSG_ERROR(word endianness not determined for some obscure reason) +) + AC_TYPE_SIZE_T dnl gmime AC_CHECK_TYPE(off_t, long) @@ -502,6 +514,7 @@ ftruncate \ getrusage \ gettimeofday \ crypt \ +sigsetjmp \ siglongjmp ) @@ -517,49 +530,10 @@ sign ) AC_LANG_POP -dnl We require qsort(3) and select(2). +dnl We require qsort(3) AC_CHECK_FUNCS(qsort, , AC_MSG_ERROR([No qsort 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) dnl or it can be tm.tm_gmtoff