Annotation of parser3/configure.in, revision 1.170

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

E-mail: