Annotation of parser3/configure.in, revision 1.149

1.142     moko        1: dnl Autoconf initialisation
                      2: AC_PREREQ(2.59)
                      3: AC_INIT(parser, 3.4.2b)
                      4: AC_CONFIG_SRCDIR(README)
1.59      paf         5: 
1.1       paf         6: 
1.142     moko        7: dnl Automake Initialisation
                      8: AM_INIT_AUTOMAKE
                      9: 
                     10: 
                     11: dnl Expand srcdir
1.14      paf        12: P3S=`cd $srcdir/src ; pwd`
1.1       paf        13: AC_SUBST(P3S)
                     14: 
1.142     moko       15: 
                     16: dnl Update pa_version.h
1.81      paf        17: AC_CANONICAL_HOST
                     18: 
                     19: PARSER_VERSION="$VERSION (compiled on $host)"
1.8       paf        20: echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new
                     21: echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new
                     22: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new
                     23: cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1
1.1       paf        24: if test $? -ne 0 ; then
1.63      paf        25:        rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \
                     26:        echo Updated $srcdir/src/include/pa_version.h
1.1       paf        27: else
1.8       paf        28:        rm -f $srcdir/src/include/pa_version.h.new
1.1       paf        29: fi
                     30: 
1.41      paf        31: AC_SUBST(host_os)
1.63      paf        32: case $host_os in
                     33:   *cygwin* ) AC_DEFINE(CYGWIN,,using cygwin building environment);;
                     34: esac
1.41      paf        35: 
1.142     moko       36: 
                     37: dnl Checks for programs
1.1       paf        38: AC_PROG_INSTALL
1.41      paf        39: AC_PROG_AWK
                     40: 
                     41: AC_PROG_YACC
                     42: if test "$YACC" != "bison -y"; then
1.63      paf        43:        AC_MSG_WARN(to regenerate Parser grammar YOU WOULD NEED BISON)
1.41      paf        44: else
1.63      paf        45:        AC_MSG_CHECKING(bison version)
                     46:        oldIFS=$IFS; IFS=.
                     47:        set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
                     48:        IFS=$oldIFS
                     49:        if test "$1" = "1" -a "$2" -lt "25"; then
                     50:                AC_MSG_WARN(Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2).)
                     51:        fi
                     52:        AC_MSG_RESULT($1.$2 (ok))
1.41      paf        53: fi
                     54: 
1.62      paf        55: AC_PROG_CXX
1.1       paf        56: AC_PROG_CC
1.142     moko       57: 
1.63      paf        58: dnl most tests should be compiled with C compiler [especially qsort test]
1.142     moko       59: AC_LANG_C
                     60: 
1.1       paf        61: 
1.141     moko       62: dnl Dll extension
                     63: AC_MSG_CHECKING(for dynamic-link library extension)
                     64: case "$host_os" in
                     65: cygwin)
                     66:        dll_extension=dll
                     67:        ;;
                     68: *)
                     69:        dll_extension=so
                     70: esac
                     71: AC_MSG_RESULT($dll_extension)
                     72: AC_SUBST(dll_extension)
1.1       paf        73: 
1.141     moko       74: 
                     75: dnl Misc arguments
1.69      paf        76: AC_ARG_WITH(build-warnings, [  --with-build-warnings   to enable build-time compiler warnings if gcc is used],
                     77:        AC_MSG_WARN(enabling compiler warnings)
                     78:        CXXFLAGS="$CXXFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes"
                     79: )
                     80: 
1.63      paf        81: AC_ARG_WITH(assertions, [  --with-assertions       to enable assertions],
                     82:        AC_MSG_WARN(enabling assertions)
                     83: ,
                     84:        AC_DEFINE(NDEBUG,,assertions disabled)
                     85: )
                     86: 
1.141     moko       87: AC_ARG_WITH(pathlink,[  --with-pathlink=LKEY    put dynamic libraries paths to binary
                     88:                           using linker key (-R, -rpath-link)],
                     89:        LD_PATHLINK=$withval
                     90: )
                     91: 
                     92: AC_ARG_WITH(sjlj-exceptions,[  --with-sjlj-exceptions  enable simple 'throw' from dynamic library],
                     93:        AC_DEFINE(PA_WITH_SJLJ_EXCEPTIONS,,one can throw from dynamic library)
                     94: )
1.96      misha      95: 
1.141     moko       96: 
                     97: dnl Safe mode argument
1.63      paf        98: AC_ARG_ENABLE(safe-mode, [  --disable-safe-mode          to enable reading and executing
1.56      paf        99:                           files belonging to group+user other then effective],
1.1       paf       100: [
1.63      paf       101:        SAFE_MODE=$enableval
1.1       paf       102: ]
                    103: )
1.141     moko      104: 
1.56      paf       105: if test "$SAFE_MODE" = "no"; then
                    106:        AC_MSG_WARN(enabling reading of files belonging to group+user other then effective)
                    107: else
1.57      paf       108:        AC_DEFINE(PA_SAFE_MODE,,disabled reading of files belonging to group+user other then effective)
1.56      paf       109: fi
1.1       paf       110: 
1.96      misha     111: 
1.141     moko      112: dnl Disable execs argument
1.96      misha     113: AC_ARG_ENABLE(execs, [  --disable-execs              to disable any execs
1.15      paf       114:                           (file::exec, file::cgi, unix mail:send)],
                    115: [
                    116: if test "$enableval" = "no"; then
1.16      paf       117:        AC_MSG_WARN(disabling file execs)
1.15      paf       118:        AC_DEFINE(NO_PA_EXECS,,pa_exec disabled)
1.16      paf       119: fi
                    120: ]
                    121: )
                    122: 
1.56      paf       123: 
1.141     moko      124: dnl String stream argument
1.96      misha     125: AC_ARG_ENABLE(stringstream, [  --disable-stringstream  to disable stringstream usage.
                    126:                           when disabled table.save use more memory but it's safer on freebsd 4.x],
                    127: [
                    128: if test "$enableval" = "no"; then
                    129:        AC_MSG_WARN(disabling stringstream usage)
                    130:        AC_DEFINE(NO_STRINGSTREAM,,stringstream disabled)
                    131: fi
                    132: ]
                    133: )
                    134: 
                    135: 
1.141     moko      136: dnl GC argument
1.63      paf       137: GC_LIB_NAME=gc
                    138: AC_ARG_WITH(shared-gc,[  --with-shared-gc[=D]      D is the directory where
                    139:                           Boehm garbage collecting library is installed (shared lib)],[
                    140:        GC_LIBS="-L$withval -l$GC_LIB_NAME"
                    141: ])
                    142: AC_ARG_WITH(static-gc,[  --with-static-gc[=D]      D is the directory where
                    143:                           Boehm garbage collecting library is installed (static lib)],[
1.131     moko      144:        GC_LIBS="$withval/lib$GC_LIB_NAME.a"
1.63      paf       145: ])
                    146: if test -z "$GC_LIBS"; then
                    147:        #undefined? use any found in system
                    148:        GC_LIBS="-l$GC_LIB_NAME"
                    149:        AC_MSG_WARN([neither --with-shared/static-gc were specified, hoping linker would find it])
                    150: fi
1.55      paf       151: 
1.63      paf       152: AC_MSG_CHECKING(for libgc)
                    153: SAVE_LIBS=$LIBS
                    154: LIBS="$LIBS $GC_LIBS"
                    155: AC_TRY_LINK([
                    156:        extern int GC_dont_gc;
                    157: ],[
                    158:        GC_dont_gc=0;
                    159: ],
                    160:        AC_MSG_RESULT(yes)
                    161: ,
                    162:        AC_MSG_RESULT(no)
                    163:        AC_MSG_ERROR(please specify path to libgc: --with-shared-gc OR --with-static-gc)
1.38      paf       164: )
1.63      paf       165: AC_SUBST(GC_LIBS)
                    166: LIBS=$SAVE_LIBS
1.1       paf       167: 
1.17      paf       168: 
1.141     moko      169: dnl PCRE argument
1.125     misha     170: AC_ARG_WITH(static-pcre,[  --with-static-pcre=D    D is the directory where
1.103     misha     171:                           PCRE library is installed (static lib)],[
                    172:        PCRE=$withval
                    173:        PCREINC="$PCRE/include"
                    174:        PCRELIB="$PCRE/lib"
                    175: 
                    176:        if test \! -d $PCREINC -o \! -d $PCRELIB; then
                    177:                AC_MSG_ERROR($PCRE does not seem to be valid PCRE installation directory)
                    178:        fi
                    179: 
                    180:        PCRE_INCLUDES="-I$PCREINC"
                    181:        PCRE_LIBS="$PCRELIB/libpcre.a"
                    182: ])
                    183: AC_SUBST(PCRE_INCLUDES)
                    184: AC_SUBST(PCRE_LIBS)
                    185: 
                    186: 
1.141     moko      187: dnl XML/XSLT argument
1.12      paf       188: AC_ARG_WITH(shared-xml,[  --with-shared-xml=D     D is the directory where
                    189:                           Gnome XML libraries are installed (shared libs)],[
1.63      paf       190:        GNOME_XML=$withval
                    191:        XMLBIN="$GNOME_XML/bin"
                    192:        XMLINC="$GNOME_XML/include"
                    193:        XMLLIB="$GNOME_XML/lib"
                    194: 
                    195:        if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
                    196:                AC_MSG_ERROR($GNOME_XML does not seem to be valid Gnome installation directory)
                    197:        fi
                    198: 
                    199:        AC_DEFINE(XML,,xml-abled parser (uses shared library))
                    200:        
                    201:        LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
                    202:        LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
                    203:        LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
                    204: 
1.91      paf       205:        XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2"
                    206:        XML_LIBS="-L$XMLLIB -l$LIBXML2_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
1.63      paf       207:        if test \! -z "$LD_PATHLINK"; then
1.13      paf       208:        XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
1.63      paf       209:        fi
1.1       paf       210: ])
1.12      paf       211: AC_ARG_WITH(static-xml,[  --with-static-xml=D     D is the directory where
                    212:                           Gnome XML libraries are installed (static libs)],[
1.63      paf       213:        GNOME_XML=$withval
                    214:        XMLBIN="$GNOME_XML/bin"
                    215:        XMLINC="$GNOME_XML/include"
                    216:        XMLLIB="$GNOME_XML/lib"
                    217: 
                    218:        if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
                    219:                AC_MSG_ERROR($GNOME_XML does not seem to be valid Gnome installation directory)
                    220:        fi
                    221: 
                    222:        AC_DEFINE(XML,,xml-abled parser (uses static library))
                    223: 
1.91      paf       224:        XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libxml2"
                    225:        XML_LIBS="$XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a"
1.12      paf       226: ])
1.1       paf       227: AC_SUBST(XML_INCLUDES)
                    228: AC_SUBST(XML_LIBS)
1.33      paf       229: 
1.141     moko      230: dnl Mail receive argument
1.91      paf       231: AC_ARG_WITH(glib-config,[  --with-glib-config=FILE FILE is glib library
                    232:                           configuration file (search for glib*-config)],
                    233:        GLIB_CONFIG=$withval
                    234: )
                    235: 
1.33      paf       236: AC_ARG_WITH(shared-mailreceive,[  --with-shared-mailreceive=D is the directory where
1.63      paf       237:                           Gnome MIME library is installed (shared lib)],[
                    238:        GNOME_MIME=$withval
                    239:        MIMEBIN="$GNOME_MIME/bin"
                    240:        MIMEINC="$GNOME_MIME/include"
                    241:        MIMELIB="$GNOME_MIME/lib"
                    242: 
                    243:        if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
                    244:                AC_MSG_ERROR($GNOME_MIME does not seem to be valid Gnome installation directory)
                    245:        fi
                    246: 
                    247:        AC_DEFINE(WITH_MAILRECEIVE,,has \$mail:received (uses shared library))
                    248:        
                    249:        LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
                    250: 
                    251:        if test -z "$GLIB_CONFIG"; then
1.91      paf       252:                GLIB_CONFIG=$XMLBIN/glib-config
1.63      paf       253:                if test \! -x $GLIB_CONFIG; then
1.91      paf       254:                        GLIB_CONFIG=$XMLBIN/glib2-config
                    255:                        if test \! -x $GLIB_CONFIG; then
                    256:                                GLIB_CONFIG=glib-config
                    257:                        fi
1.63      paf       258:                fi
                    259:        fi
                    260:        GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
                    261:        GLIB_LIBS=`$GLIB_CONFIG --libs`
                    262: 
                    263:        MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
                    264:        MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME"
                    265:        if test \! -z "$LD_PATHLINK"; then
1.33      paf       266:        MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB"
1.63      paf       267:        fi
1.33      paf       268: ])
                    269: AC_ARG_WITH(static-mailreceive,[  --with-static-mailreceive=D is the directory where
                    270:                           Gnome MIME library is installed (static lib)],[
1.63      paf       271:        GNOME_MIME=$withval
                    272:        MIMEBIN="$GNOME_MIME/bin"
                    273:        MIMEINC="$GNOME_MIME/include"
                    274:        MIMELIB="$GNOME_MIME/lib"
                    275: 
                    276:        if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
                    277:                AC_MSG_ERROR($GNOME_MIME does not seem to be valid Gnome installation directory)
                    278:        fi
                    279: 
                    280:        AC_DEFINE(WITH_MAILRECEIVE,,has \$mail:received (uses static library))
                    281: 
                    282:        if test -z "$GLIB_CONFIG"; then
1.91      paf       283:                GLIB_CONFIG=$XMLBIN/glib-config
1.63      paf       284:                if test \! -x $GLIB_CONFIG; then
1.91      paf       285:                        GLIB_CONFIG=$XMLBIN/glib2-config
                    286:                        if test \! -x $GLIB_CONFIG; then
                    287:                                GLIB_CONFIG=glib-config
                    288:                        fi
1.63      paf       289:                fi
                    290:        fi
                    291:        GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
1.33      paf       292: 
                    293: dnl  '-L/usr/local/lib -lglib' -> /usr/local/lib
                    294: changequote(, )dnl
1.63      paf       295:        GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
                    296:        GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
1.33      paf       297: changequote([, ])dnl
1.63      paf       298:        MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
                    299:        MIME_LIBS="$MIMELIB/libgmime.a $GLIB_DIR/lib$GLIB_NAME.a"
1.33      paf       300: ])
                    301: AC_SUBST(MIME_INCLUDES)
                    302: AC_SUBST(MIME_LIBS)
1.18      paf       303: 
                    304: 
1.141     moko      305: dnl Sendmail argument
1.18      paf       306: AC_ARG_WITH(sendmail,[  \"--with-sendmail=COMMAND\" forces this command to send mail.
                    307:                           example: \"--with-sendmail=/usr/sbin/sendmail -t\"
                    308:                           (makes parser ignore user-defined sendmail commands)],
                    309:        AC_DEFINE_UNQUOTED(PA_FORCED_SENDMAIL,"$withval",parser uses this command instead of user-defined sendmail commands)
                    310: )
                    311: 
1.14      paf       312: 
1.141     moko      313: dnl Apache module argument
1.131     moko      314: AC_ARG_WITH(apache,[  --with-apache=FILE is the full path for APXS
                    315:                           builds apache DSO module using apxs],[
                    316:        APXS=$withval
                    317: 
                    318:        if test -z "$APXS" -o "$APXS" = "yes"; then
                    319:                APXS=`which apxs 2>/dev/null`
                    320:        fi;
                    321: 
                    322:        APACHE=`$APXS -q TARGET 2>/dev/null`
                    323: 
                    324:        if test -z "$APACHE"; then
1.146     moko      325:                APXS=`which apxs2 2>/dev/null`
                    326:                APACHE=`$APXS -q TARGET 2>/dev/null`
                    327: 
                    328:                if test -z "$APACHE"; then
                    329:                        AC_MSG_ERROR($APXS does not seem to be valid apache apxs utility path)
                    330:                fi
1.63      paf       331:        fi
1.131     moko      332: 
                    333:        APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
                    334:        APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
                    335:        APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
                    336:        APACHE_CFLAGS=`$APXS -q CFLAGS`
                    337: ])
                    338: AC_SUBST(APACHE)
                    339: AC_SUBST(APACHE_INC)
                    340: AC_SUBST(APACHE_CFLAGS)
                    341: AM_CONDITIONAL(COMPILE_APACHE_MODULE, test -n "$APACHE")
1.14      paf       342: 
1.1       paf       343: 
                    344: dnl Enable building of the convenience library
1.142     moko      345: LT_CONFIG_LTDL_DIR(src/lib/ltdl)
1.148     moko      346: LT_INIT(dlopen win32-dll)
1.142     moko      347: LTDL_INIT
1.1       paf       348: 
1.60      paf       349: 
1.1       paf       350: dnl Checks for typedefs, structures, and compiler characteristics.
1.79      paf       351: AC_C_BIGENDIAN(
                    352:        AC_DEFINE(PA_BIG_ENDIAN,,compile for sparc processor)
                    353: ,
                    354:        AC_DEFINE(PA_LITTLE_ENDIAN,,compile for intel processor or compatible)
                    355: ,
                    356:        AC_MSG_ERROR(word endianness not determined for some obscure reason)
                    357: )
                    358: 
1.1       paf       359: AC_TYPE_SIZE_T
1.141     moko      360: 
1.142     moko      361: 
1.34      paf       362: dnl gmime
                    363: AC_CHECK_TYPE(off_t, long)
                    364: AC_CHECK_TYPE(ssize_t, int)
                    365: 
1.1       paf       366: 
1.62      paf       367: dnl Checks for C header files.
1.10      paf       368: AC_HEADER_TIME
                    369: 
1.1       paf       370: AC_CHECK_HEADERS(
1.63      paf       371: assert.h \
1.48      paf       372: signal.h \
1.1       paf       373: unistd.h \
                    374: process.h \
                    375: stddef.h \
                    376: stdarg.h \
                    377: fcntl.h \
                    378: sys/stat.h \
                    379: io.h \
                    380: stdio.h \
                    381: errno.h \
                    382: ctype.h \
                    383: math.h \
1.35      paf       384: crypt.h \
1.3       paf       385: time.h sys/time.h \
1.1       paf       386: string.h \
                    387: direct.h \
                    388: setjmp.h \
                    389: memory.h \
1.140     moko      390: limits.h \
1.1       paf       391: sys/file.h \
                    392: sys/locking.h \
1.3       paf       393: sys/types.h \
1.5       paf       394: sys/select.h \
1.39      paf       395: sys/resource.h \
1.49      paf       396: winsock.h \
                    397: sys/socket.h \
                    398: netinet/in.h \
                    399: arpa/inet.h \
                    400: netdb.h
1.1       paf       401: )
                    402: 
1.142     moko      403: 
                    404: dnl Checks for libraries
                    405: 
1.1       paf       406: 
                    407: dnl Some systems (Solaris 2.x) require libnsl (Network Services Library)
                    408: case "$host" in
1.114     misha     409:   *-freebsd4*)
                    410:          AC_DEFINE(FREEBSD4,,FreeBSD4X target platform)
                    411:   ;;
1.1       paf       412:   *-sunos5.6* | *-solaris2.6*)
1.63      paf       413:          AC_CHECK_LIB(xnet, main)
1.1       paf       414:   ;;
                    415:   *-sunos5* | *-solaris2*)
1.63      paf       416:          AC_CHECK_LIB(socket, main)
                    417:          AC_CHECK_LIB(nsl, main)
1.1       paf       418:   ;;
                    419:   *-nec-sysv4*)
1.63      paf       420:          AC_CHECK_LIB(nsl, gethostbyname)
                    421:          AC_CHECK_LIB(socket, socket)
1.1       paf       422:   ;;
                    423:   *-cygwin*)
1.63      paf       424:          AC_DEFINE(WIN32,,Windows32 target platform)
                    425:          AC_CHECK_LIB(wsock32, socket)
1.1       paf       426:   ;;
                    427: esac
                    428: 
                    429: AC_CHECK_LIB(m, sin)
1.35      paf       430: AC_CHECK_LIB(crypt, crypt)
                    431: 
1.1       paf       432: dnl Checks for functions.
                    433: 
                    434: AC_CHECK_FUNCS(
                    435: flock \
                    436: _locking \
1.7       paf       437: fcntl \
1.4       paf       438: lockf \
1.53      paf       439: ftruncate \
1.119     misha     440: fchmod \
1.35      paf       441: getrusage \
1.47      paf       442: gettimeofday \
1.49      paf       443: crypt \
1.80      paf       444: sigsetjmp \
1.94      misha     445: siglongjmp \
                    446: unsetenv
1.63      paf       447: )
                    448: 
1.142     moko      449: dnl on some linux[seen on 2.4] it's a macro
1.63      paf       450: PA_CHECK_SIGSETJMP
                    451: 
                    452: dnl see comment above
                    453: AC_LANG_PUSH(C++)
                    454: PA_CHECK_MATH_FUNCS_ONE_ARG(
                    455: trunc \
                    456: round \
                    457: sign
1.1       paf       458: )
1.63      paf       459: AC_LANG_POP
1.3       paf       460: 
1.75      paf       461: dnl We require qsort(3)
1.3       paf       462: 
                    463: AC_CHECK_FUNCS(qsort, , AC_MSG_ERROR([No qsort library function.]))
1.1       paf       464: 
1.46      paf       465: dnl For correct mail receiving we need to know local offset from GMT
                    466: dnl it be timezone+(daylight?60*60*sign(timezone):0)
                    467: dnl or it can be tm.tm_gmtoff
                    468: dnl or it can be tm.tm_tzadj
                    469: 
                    470: AC_MSG_CHECKING(for timezone variable)
1.141     moko      471: AC_TRY_COMPILE([#include <time.h>],
1.46      paf       472: [
                    473: time_t test=timezone;
1.141     moko      474: ],
                    475: AC_DEFINE(HAVE_TIMEZONE)
                    476: AC_MSG_RESULT(yes),
                    477: AC_MSG_RESULT(no))
1.46      paf       478: 
                    479: AC_MSG_CHECKING(for daylight variable)
1.141     moko      480: AC_TRY_COMPILE([#include <time.h>],
1.46      paf       481: [
                    482: int test=daylight;
1.141     moko      483: ],
                    484: AC_DEFINE(HAVE_DAYLIGHT)
                    485: AC_MSG_RESULT(yes),
                    486: AC_MSG_RESULT(no))
1.46      paf       487: 
                    488: AC_MSG_CHECKING(for tm_gmtoff in struct tm)
1.141     moko      489: AC_TRY_COMPILE([#include <time.h>],
                    490: [struct tm tm;
                    491: tm.tm_gmtoff=0;
                    492: ],
                    493: AC_DEFINE(HAVE_TM_GMTOFF)
                    494: AC_MSG_RESULT(yes),
                    495: AC_MSG_RESULT(no))
1.46      paf       496: 
                    497: AC_MSG_CHECKING(for tm_tzadj in struct tm)
1.141     moko      498: AC_TRY_COMPILE([#include <time.h>],
                    499: [struct tm tm;
                    500: tm.tm_tzadj=0;
                    501: ],
                    502: AC_DEFINE(HAVE_TM_TZADJ)
                    503: AC_MSG_RESULT(yes),
                    504: AC_MSG_RESULT(no))
                    505: 
1.17      paf       506: 
1.58      paf       507: dnl Output header and makefiles
                    508: AH_TEMPLATE([HAVE_DLD],[Define if you have the GNU dld library])
                    509: 
                    510: AH_TEMPLATE([HAVE_LIBDL],
                    511:        [Define if you have the libdl library or equivalent.])
                    512: 
                    513: AH_TEMPLATE([HAVE_SHL_LOAD],
                    514:        [Define if you have the shl_load function. ])
                    515: 
                    516: 
                    517: AH_TEMPLATE([size_t],
                    518:        [Define to `unsigned int' if <sys/types.h> does not define.])
                    519: 
                    520: AH_TEMPLATE([ssize_t],
                    521:        [Define to `int' if <sys/types.h> does not define.])
                    522: 
                    523: AH_TEMPLATE([HAVE_DAYLIGHT],
                    524:        [Define if you have daylight external variable in <time.h>])
                    525: 
                    526: AH_TEMPLATE([HAVE_TIMEZONE],
                    527:        [Define if you have timezone external variable in <time.h>])
                    528: 
                    529: AH_TEMPLATE([HAVE_TM_GMTOFF],
                    530:        [Define if you have tm_gmtoff member of tm structure in <time.h>])
                    531: 
                    532: AH_TEMPLATE([HAVE_TM_TZADJ],
                    533:        [Define if you have tm_tzadj member of tm structure in <time.h>])
                    534: 
1.1       paf       535: 
                    536: AM_CONFIG_HEADER(src/include/pa_config_auto.h)
1.141     moko      537: 
1.66      paf       538: AC_OUTPUT(
                    539:        Makefile 
                    540:        src/Makefile 
                    541:        src/types/Makefile 
                    542:        src/classes/Makefile 
                    543:        src/include/Makefile 
                    544:        src/main/Makefile 
                    545:        src/sql/Makefile 
                    546:        src/lib/Makefile 
1.71      paf       547:        src/lib/gd/Makefile 
                    548:        src/lib/smtp/Makefile 
1.66      paf       549:        src/lib/gc/Makefile 
                    550:        src/lib/gc/include/Makefile
1.108     misha     551:        src/lib/pcre/Makefile 
1.66      paf       552:        src/lib/cord/Makefile
                    553:        src/lib/cord/include/Makefile
                    554:        src/lib/cord/include/private/Makefile
                    555:        src/lib/md5/Makefile
                    556:        src/lib/sdbm/Makefile
1.133     moko      557:        src/lib/sdbm/pa-include/Makefile
1.128     misha     558:        src/lib/json/Makefile
1.137     moko      559:        src/lib/memcached/Makefile
1.138     moko      560:        src/lib/curl/Makefile
1.66      paf       561:        src/targets/Makefile
                    562:        src/targets/cgi/Makefile
1.131     moko      563:        src/targets/apache/Makefile
1.66      paf       564:        src/targets/isapi/Makefile
                    565:        etc/Makefile
                    566:        etc/parser3.charsets/Makefile
1.67      paf       567:        bin/Makefile
                    568:        bin/auto.p.dist)

E-mail: