Annotation of libwww/configure.in, revision 1.71

1.1       frystyk     1: dnl Process this file with Autoconf to create configure
                      2: dnl (c) COPYRIGHT MIT 1995.
                      3: dnl Please first read the full copyright statement in the file COPYRIGH.
1.71    ! frystyk     4: dnl @(#) $Id: configure.in,v 1.70 1999/01/08 15:03:59 frystyk Exp $
1.1       frystyk     5: 
1.71    ! frystyk     6: AC_REVISION([$Id: configure.in,v 1.70 1999/01/08 15:03:59 frystyk Exp $])
        !             7: AC_PREREQ(2.13)
1.1       frystyk     8: AC_INIT(Library)
1.41      frystyk     9: 
1.5       frystyk    10: AC_CONFIG_AUX_DIR(config)
1.1       frystyk    11: 
1.43      frystyk    12: AC_CANONICAL_SYSTEM
                     13: AC_ARG_PROGRAM
                     14: 
1.41      frystyk    15: dnl Initialize Automake.
1.3       frystyk    16: PACKAGE=w3c-libwww
1.1       frystyk    17: AC_SUBST(PACKAGE)
1.28      frystyk    18: AC_DEFINE_UNQUOTED(W3C_PACKAGE, "$PACKAGE")
1.41      frystyk    19:  
1.67      frystyk    20: VERSION=5.2.3
1.1       frystyk    21: AC_SUBST(VERSION)
                     22: AC_DEFINE_UNQUOTED(W3C_VERSION, "$VERSION")
                     23: 
1.51      frystyk    24: #dnl for CVS to be able to make a release diff
1.67      frystyk    25: PREVIOUS_VERSION=5.2.2
1.51      frystyk    26: AC_SUBST(PREVIOUS_VERSION)
                     27: 
1.41      frystyk    28: AM_INIT_AUTOMAKE($PACKAGE, $VERSION) 
1.51      frystyk    29: 
1.53      frystyk    30: AM_CONFIG_HEADER(wwwconf.h)
1.41      frystyk    31: 
                     32: dnl Regular configure...
1.1       frystyk    33: AC_PROG_CC
1.71    ! frystyk    34: AC_PROG_CXX
        !            35: AC_CYGWIN      dnl   You should probably
        !            36: AC_MINGW32     dnl   use all three of these
        !            37: AC_EXEEXT      dnl   for maximum portability
1.54      frystyk    38: AM_PROG_LIBTOOL
1.41      frystyk    39: AC_PROG_MAKE_SET
1.54      frystyk    40: AC_PROG_INSTALL
1.41      frystyk    41: 
1.1       frystyk    42: dnl Remove next line and you get an error -- autoconf
                     43: dnl should deal with this automatically.
                     44: AC_ISC_POSIX
                     45: AC_PATH_X
1.7       frystyk    46: dnl AC_PATH_XTRA       Causes problems...
1.1       frystyk    47: 
1.28      frystyk    48: dnl Default location of icons
1.51      frystyk    49: icondir=$datadir/$PACKAGE
1.28      frystyk    50: AC_SUBST(icondir)
                     51: 
1.34      frystyk    52: dnl Location for purify cache
                     53: PURIFY_CACHE=/tmp/purify.cache
                     54: AC_SUBST(PURIFY_CACHE)
                     55: 
1.1       frystyk    56: dnl Various compiler directives
1.28      frystyk    57: AC_MSG_CHECKING(whether to define additional compiler specific flags)
1.5       frystyk    58: case "$target" in
                     59:     alpha-dec*)
                     60:        if test "$CC" = "cc"; then
                     61:          CFLAGS="$CFLAGS -std1"
1.28      frystyk    62:          AC_MSG_RESULT(Digital Unix's cc)
1.14      frystyk    63:        fi
                     64:        ;;
                     65:     hp*)
                     66:        if test "$CC" = "cc"; then
                     67:          CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
1.28      frystyk    68:          AC_MSG_RESULT(HT-UX's cc)
1.5       frystyk    69:        fi
1.65      frystyk    70:        ;;
                     71:     i386-next-nextstep*)
                     72:          CFLAGS="$CFLAGS -D_POSIX_SOURCE"
                     73:          AC_MSG_RESULT(NextStep and OpenStep require _POSIX_SOURCE defined. This may cause some compilation warnings about pre-compiled headers but that should be OK)
1.5       frystyk    74:        ;;
1.28      frystyk    75:     *)
                     76:        AC_MSG_RESULT(no)
                     77:        ;;
1.5       frystyk    78: esac
1.1       frystyk    79: 
1.53      frystyk    80: dnl Checks for programs.
                     81: AC_CHECK_PROGS(have_telnet, telnet)
                     82: if test -n "$have_telnet" ; then
                     83:   AC_DEFINE_UNQUOTED(TELNET_PROGRAM, "$have_telnet")
                     84: fi
                     85: AC_CHECK_PROGS(have_rlogin, rlogin)
                     86: if test -n "$have_rlogin" ; then
                     87:   AC_DEFINE_UNQUOTED(RLOGIN_PROGRAM, "$have_rlogin")
                     88: fi
                     89: AC_CHECK_PROGS(have_tn3270, tn3270 x3270)
                     90: if test -n "$have_tn3270" ; then
                     91:   AC_DEFINE_UNQUOTED(TN3270_PROGRAM, "$have_tn3270")
                     92: fi
                     93: AC_PATH_PROG(RM, rm, rm)
                     94: AC_PATH_PROG(AR, ar, ar)
                     95: AC_PATH_PROG(MKDIR, mkdir, mkdir)
                     96: AC_PATH_PROG(CHMOD, chmod, chmod)
                     97: AC_PATH_PROG(CP, cp, cp)
                     98: AC_PATH_PROG(TAR, tar, tar)
                     99: AC_PATH_PROG(CVS, cvs, cvs)
                    100: AC_PATH_PROG(SED, sed, sed)
                    101: AC_PATH_PROGS(COMPRESS, gzip compress, compress)
1.58      frystyk   102: AC_PATH_PROGS(WWW, www, [""])
1.53      frystyk   103: AC_PROG_LN_S
                    104: 
                    105: dnl Checks for misc files
                    106: dnl Resolv.conf
                    107: AC_PATH_PROG(have_resolv_conf, resolv.conf, , /etc, /usr/etc)
                    108: if test -n "$have_resolv_conf" ; then
                    109:   AC_DEFINE_UNQUOTED(RESOLV_CONF, "$have_resolv_conf")
                    110: fi
                    111: 
                    112: dnl This is the standard UNIX value
                    113: AC_DEFINE(CACHE_FILE_PREFIX, "/usr/wsrc/")
                    114: 
                    115: dnl Checks for libraries:
                    116: AC_CHECK_LIB(ICE, IceConnectionNumber)
                    117: AC_CHECK_LIB(socket, socket)
                    118: AC_CHECK_LIB(inet, connect)
                    119: AC_CHECK_LIB(nsl, t_accept)
                    120: AC_CHECK_LIB(dl, dlopen)
                    121: 
                    122: dnl Checks for header files:
1.56      frystyk   123: AC_CHECK_HEADERS(appkit/appkit.h appkit.h)
                    124: AC_CHECK_HEADERS(arpa/inet.h inet.h)
                    125: AC_CHECK_HEADERS(net/errno.h sys/errno.h errno.h)
                    126: AC_CHECK_HEADERS(netinet/in.h in.h)
                    127: AC_CHECK_HEADERS(netinet/tcp.h tcp.h)
1.53      frystyk   128: AC_CHECK_HEADERS(sys/fcntl.h fcntl.h)
                    129: AC_CHECK_HEADERS(sys/file.h)
                    130: AC_CHECK_HEADERS(sys/ioctl.h)
                    131: AC_CHECK_HEADERS(sys/ipc.h)
                    132: AC_CHECK_HEADERS(sys/limits.h limits.h)
1.56      frystyk   133: AC_CHECK_HEADERS(sys/machine.h)
1.53      frystyk   134: AC_CHECK_HEADERS(sys/resource.h resource.h)
                    135: AC_CHECK_HEADERS(sys/select.h select.h)
                    136: AC_CHECK_HEADERS(sys/socket.h socket.h)
                    137: AC_CHECK_HEADERS(sys/stat.h stat.h)
1.61      frystyk   138: AC_CHECK_HEADERS(sys/syslog syslog.h)
1.53      frystyk   139: AC_CHECK_HEADERS(sys/systeminfo.h)
                    140: AC_CHECK_HEADERS(sys/time.h time.h)
                    141: AC_CHECK_HEADERS(sys/types.h types.h)
                    142: AC_CHECK_HEADERS(sys/unistd.h unistd.h)
1.56      frystyk   143: AC_CHECK_HEADERS(wais/wais.h wais.h)
                    144: AC_CHECK_HEADERS(bsdtime.h)
                    145: AC_CHECK_HEADERS(bsdtypes.h)
                    146: AC_CHECK_HEADERS(ctype.h)
                    147: AC_CHECK_HEADERS(cursesX.h curses.h)
1.53      frystyk   148: AC_CHECK_HEADERS(dn.h)
1.56      frystyk   149: AC_CHECK_HEADERS(dnetdb.h)
1.53      frystyk   150: AC_CHECK_HEADERS(grp.h)
1.56      frystyk   151: AC_CHECK_HEADERS(libc.h)
                    152: AC_CHECK_HEADERS(malloc.h)
                    153: AC_CHECK_HEADERS(manifest.h)
                    154: AC_CHECK_HEADERS(memory.h)
1.53      frystyk   155: AC_CHECK_HEADERS(netdb.h)
1.56      frystyk   156: AC_CHECK_HEADERS(pwd.h)
                    157: AC_CHECK_HEADERS(rxposix.h regex.h)
1.53      frystyk   158: AC_CHECK_HEADERS(stdefs.h)
1.56      frystyk   159: AC_CHECK_HEADERS(stdio.h)
1.53      frystyk   160: AC_CHECK_HEADERS(stdlib.h)
1.56      frystyk   161: AC_CHECK_HEADERS(string.h strings.h)
                    162: AC_CHECK_HEADERS(termios.h)
1.53      frystyk   163: AC_CHECK_HEADERS(unixlib.h)
                    164: AC_HEADER_DIRENT
                    165: AC_CHECK_HEADERS(dir.h direct.h) dnl AC_HEADER_DIRENT only checks for some..
                    166: AC_HEADER_STDC
                    167: AC_HEADER_SYS_WAIT
                    168: AC_HEADER_TIME
                    169: AC_HEADER_STAT
                    170: 
                    171: dnl Checks for typedefs, structures, and compiler characteristics:
                    172: AC_TYPE_UID_T
                    173: AC_TYPE_PID_T
                    174: AC_TYPE_GETGROUPS
                    175: AC_TYPE_MODE_T
                    176: AC_TYPE_SIZE_T
                    177: AC_TYPE_SIGNAL
                    178: 
                    179: AC_CHECK_TYPE(BOOLEAN, char)
                    180: AC_CHECK_TYPE(u_char, unsigned char)
                    181: AC_CHECK_TYPE(u_short, unsigned short)
                    182: AC_CHECK_TYPE(u_long, unsigned long)
                    183: 
                    184: AC_CHECK_SIZEOF(char)
                    185: AC_CHECK_SIZEOF(char *)
                    186: AC_CHECK_SIZEOF(int)
                    187: AC_CHECK_SIZEOF(long)
                    188: AC_CHECK_SIZEOF_TIME_T
                    189: AC_CHECK_SIZEOF_SIZE_T
                    190: 
                    191: AC_C_CONST
                    192: AC_C_BIGENDIAN
                    193: AC_C_CHAR_UNSIGNED
                    194: AC_C_LONG_DOUBLE 
                    195: 
                    196: AC_STRUCT_TM
                    197: AC_STRUCT_GMTOFF
                    198: AC_STRUCT_TIMEZONE
                    199: AC_STRUCT_WINSIZE
                    200: 
                    201: dnl Checks for library functions:
                    202: AC_FUNC_VPRINTF
                    203: AC_FUNC_STRFTIME
                    204: AC_CHECK_FUNCS(getcwd gethostname getdomainname getwd  \
                    205:                select socket strerror strtol opendir getpid strchr memcpy \
                    206:                getlogin getpass fcntl readdir sysinfo ioctl chdir tempnam \
                    207:                getsockopt setsockopt \
1.70      frystyk   208:                gettimeofday mktime timegm tzset)
1.53      frystyk   209: AC_CHECK_FUNC(unlink, , AC_CHECK_FUNC(remove, AC_DEFINE(unlink, remove)))
                    210: 
                    211: dnl THINGS TO CONSIDER
                    212: dnl ******************
                    213: AC_DEFINE(TTY_IS_SELECTABLE)
                    214: 
1.31      frystyk   215: dnl Checks for configuration arguments
1.50      frystyk   216: AC_MSG_CHECKING(whether to support direct WAIS access.)
1.31      frystyk   217: AC_ARG_WITH(wais,
                    218: [  --with-wais[=PATH]      Compile with support for direct WAIS access.],
                    219: [ case "$withval" in
                    220:   no)
                    221:     AC_MSG_RESULT(no)
                    222:     HTWAIS=""
                    223:     ;;
                    224:   *)
                    225:     AC_MSG_RESULT(yes)
                    226:     if test "x$withval" = "xyes"; then
1.50      frystyk   227:       withval="/usr/local/lib/wais/wais.a /usr/local/lib/wais/client.a"
1.31      frystyk   228:     fi
1.50      frystyk   229:     LIBS="$withval -lm $LIBS"
1.52      frystyk   230:     AC_DEFINE(HT_DIRECT_WAIS)
1.31      frystyk   231:     AC_TRY_LINK([],
1.50      frystyk   232:                 [ makeDocID(); ],
1.31      frystyk   233:                [],
1.50      frystyk   234:                [ AC_MSG_ERROR(Could not find one or more of the $withval libraries.  You must first install WAIS.) ])
1.54      frystyk   235:     HTWAIS="HTWAIS.lo"
1.31      frystyk   236:     ;;
                    237:   esac ],
                    238:   AC_MSG_RESULT(no)
1.18      frystyk   239:   HTWAIS=""
1.31      frystyk   240: )
1.1       frystyk   241: AC_SUBST(HTWAIS)
                    242: 
1.31      frystyk   243: AC_MSG_CHECKING(whether to support zlib compress/decompress)
                    244: AC_ARG_WITH(zlib,
                    245: [  --with-zlib[=PATH]      Compile with zlib compress/decompress support.],
                    246: [ case "$withval" in
                    247:   no)
                    248:     AC_MSG_RESULT(no)
1.33      eric      249:     HTZLIB=""
1.31      frystyk   250:     ;;
                    251:   *)
                    252:     AC_MSG_RESULT(yes)
                    253:     if test "x$withval" = "xyes"; then
                    254:       withval="-lz"
1.57      frystyk   255:       LIBS="$LIBS $withval"
                    256:     else
                    257:       AC_ADDLIB($withval)
1.31      frystyk   258:     fi
1.35      frystyk   259:     AC_DEFINE(HT_ZLIB)
1.31      frystyk   260:     AC_TRY_LINK([],
                    261:                 [ zlibVersion(); ],
                    262:                [],
                    263:                [ AC_MSG_ERROR(Could not find the $withval library.  You must first install zlib.) ])
1.54      frystyk   264:     HTZLIB="HTZip.lo"
1.31      frystyk   265:     ;;
                    266:   esac ],
                    267:   AC_MSG_RESULT(no)
1.33      eric      268:   HTZLIB=""
1.31      frystyk   269: )
1.33      eric      270: AC_SUBST(HTZLIB)
1.43      frystyk   271: 
                    272: AC_MSG_CHECKING(whether to support POSIX regex)
                    273: AC_ARG_WITH(regex,
                    274: [  --with-regex[=PATH]     Compile with POSIC regex library support.],
                    275: [ case "$withval" in
                    276:   no)
                    277:     AC_MSG_RESULT(no)
                    278:     ;;
                    279:   *)
                    280:     AC_MSG_RESULT(yes)
1.46      frystyk   281:     AC_DEFINE(HT_POSIX_REGEX)
1.43      frystyk   282:     if test "x$withval" = "xyes"; then
1.57      frystyk   283:       AC_CHECK_LIB(rx, regexec, [ LIBS="-lrx $LIBS" ] )
1.46      frystyk   284:     else
1.57      frystyk   285:       AC_ADDLIB($withval)
                    286:       AC_TRY_LINK([],
                    287:                  [ regexec(); ],
                    288:                  [],
                    289:                  [ AC_MSG_ERROR(Could not find the $withval library.  You must first install regex.) ] )
1.43      frystyk   290:     fi
                    291:     ;;
                    292:   esac ],
                    293:   AC_MSG_RESULT(no)
                    294: )
1.31      frystyk   295: 
1.26      frystyk   296: # borrowed from SSH - thanks!
                    297: AC_MSG_CHECKING(whether to support SOCKS)
                    298: AC_ARG_WITH(socks,
                    299: [  --with-socks            Compile with SOCKS firewall traversal support.],
                    300: [ case "$withval" in
                    301:   no)
                    302:     AC_MSG_RESULT(no)
                    303:     ;;
                    304:   yes)
                    305:     AC_MSG_RESULT(yes)
                    306:     AC_CHECK_LIB(socks5, SOCKSconnect, [
                    307:            socks=5
                    308:            LIBS="-lsocks5 $LIBS"], [
                    309:        AC_CHECK_LIB(socks, Rconnect, [
                    310:            socks=4
                    311:            LIBS="-lsocks $LIBS"], [
                    312:                AC_MSG_ERROR(Could not find socks library.  You must first install socks.) ] ) ] )
                    313:     ;;
                    314:   esac ],
                    315:   AC_MSG_RESULT(no)
1.1       frystyk   316: )
                    317: 
1.26      frystyk   318: if test "x$socks" = "x"; then
                    319:        AC_MSG_CHECKING(whether to support SOCKS5)
                    320:        AC_ARG_WITH(socks5,
                    321:        [  --with-socks5[=PATH]    Compile with SOCKS5 firewall traversal support.],
                    322:        [ case "$withval" in
                    323:          no)
                    324:            AC_MSG_RESULT(no)
                    325:            ;;
                    326:          *)
                    327:            AC_MSG_RESULT(yes)
                    328:            socks=5
                    329:            if test "x$withval" = "xyes"; then
                    330:              withval="-lsocks5"
1.57      frystyk   331:              LIBS="$withval $LIBS"
                    332:            else
                    333:              AC_ADDLIB($withval)
1.26      frystyk   334:            fi
                    335:            AC_TRY_LINK([],
                    336:                        [ SOCKSconnect(); ],
                    337:                        [],
                    338:                        [ AC_MSG_ERROR(Could not find the $withval library.  You must first install socks5.) ])
                    339:            ;;
                    340:          esac ],
                    341:          AC_MSG_RESULT(no)
                    342:        )
                    343: fi
                    344: 
                    345: if test "x$socks" = "x"; then
                    346:        AC_MSG_CHECKING(whether to support SOCKS4)
                    347:        AC_ARG_WITH(socks4,
                    348:        [  --with-socks4[=PATH]    Compile with SOCKS4 firewall traversal support.],
                    349:        [ case "$withval" in
                    350:          no)
                    351:            AC_MSG_RESULT(no)
                    352:            ;;
                    353:          *)
                    354:            AC_MSG_RESULT(yes)
                    355:            socks=4
                    356:            if test "x$withval" = "xyes"; then
                    357:              withval="-lsocks"
1.57      frystyk   358:              LIBS="$withval $LIBS"
                    359:             else
                    360:              AC_ADDLIB($withval)
1.26      frystyk   361:            fi
                    362:            AC_TRY_LINK([],
                    363:                        [ Rconnect(); ],
                    364:                        [],
                    365:                        [ AC_MSG_ERROR(Could not find the $withval library.  You must first install socks.) ])
                    366:            ;;
                    367:          esac ],
                    368:          AC_MSG_RESULT(no)
                    369:        )
                    370: fi
                    371: 
                    372: if test "x$socks" = "x4"; then
                    373:     AC_DEFINE(SOCKS)
                    374:     AC_DEFINE(SOCKS4)
                    375: fi
                    376: 
                    377: if test "x$socks" = "x5"; then
                    378:     AC_DEFINE(SOCKS)
                    379:     AC_DEFINE(SOCKS5)
                    380: fi
1.54      frystyk   381: 
                    382: AC_MSG_CHECKING(whether to support mysql access.)
                    383: AC_ARG_WITH(mysql,
                    384: [  --with-mysql[=PATH]      Compile with support for mysql access.],
                    385: [ case "$withval" in
                    386:   no)
                    387:     AC_MSG_RESULT(no)
                    388:     HTSQL=""
                    389:     HTSQLLOG=""
1.60      frystyk   390:     CVS2SQL=""
1.54      frystyk   391:     ;;
                    392:   *)
                    393:     AC_MSG_RESULT(yes)
                    394:     if test "x$withval" = "xyes"; then
1.57      frystyk   395:       AC_ADDLIB("/usr/local/lib/mysql/libmysqlclient.a")
                    396:     else
                    397:       AC_ADDLIB($withval)
1.54      frystyk   398:     fi
                    399:     AC_DEFINE(HT_MYSQL)
                    400:     HTSQL="HTSQL.lo"
                    401:     HTSQLLOG="HTSQLLog.lo"
1.60      frystyk   402:     CVS2SQL="cvs2sql"
1.54      frystyk   403:     ;;
                    404:   esac ],
                    405:   AC_MSG_RESULT(no)
                    406:   HTSQL=""
                    407:   HTSQLLOG=""
1.60      frystyk   408:   CVS2SQL=""
1.54      frystyk   409: )
                    410: AC_SUBST(HTSQL)
                    411: AC_SUBST(HTSQLLOG)
1.60      frystyk   412: AC_SUBST(CVS2SQL)
1.68      frystyk   413: 
                    414: AC_MSG_CHECKING(whether we include the Expat XML parser.)
                    415: AC_ARG_WITH(expat,
                    416: [  --with-expat[=PATH]      Compile with support for expat access.],
                    417: [ case "$withval" in
                    418:   no)
                    419:     AC_MSG_RESULT(no)
                    420:     HTXML=""
                    421:     ;;
                    422:   *)
1.70      frystyk   423:     AC_MSG_RESULT(yes)
                    424:     AC_DEFINE(HT_EXPAT)
1.68      frystyk   425:     HTXML="HTXML.lo"
                    426:     ;;
                    427:   esac ],
                    428:   AC_MSG_RESULT(no)
                    429:   HTXML=""
                    430: )
                    431: AC_SUBST(HTXML)
1.26      frystyk   432: 
1.28      frystyk   433: AC_MSG_CHECKING(whether to use internal signal handlers)
                    434: AC_ARG_ENABLE(signals, [  --enable-signals        use internal libwww signal handler.],
                    435: [ case "${enableval}" in
                    436:   no)
                    437:     AC_MSG_RESULT(no)
                    438:     ;;
                    439:   *)
                    440:     AC_MSG_RESULT(yes)
                    441:     AC_DEFINE(WWWLIB_SIG)
                    442:     ;;
                    443:   esac ],
                    444:   AC_MSG_RESULT(no)
                    445: )
1.26      frystyk   446: 
1.28      frystyk   447: AC_MSG_CHECKING(whether to disable Nagle's algorithm)
                    448: AC_ARG_ENABLE(nagle,
1.30      frystyk   449: [  --disable-nagle         Turning off Nagle's algorithm.],
1.28      frystyk   450: [ case "${enableval}" in
                    451:   no)
                    452:     AC_MSG_RESULT(yes)
                    453:     AC_DEFINE(HT_NO_NAGLE)
                    454:     ;;
                    455:   *) 
                    456:     AC_MSG_RESULT(no)
                    457:     ;;
                    458:   esac ],
1.29      frystyk   459:   AC_MSG_RESULT(yes)
                    460:   AC_DEFINE(HT_NO_NAGLE)
1.28      frystyk   461: )
                    462: 
1.40      frystyk   463: AC_MSG_CHECKING(whether to accept new rule files without asking an end user.)
                    464: AC_ARG_ENABLE(autorules,
                    465: [  --enable-autorules      Enabling acceptance of rule files without user interaction.],
                    466: [ case "${enableval}" in
                    467:   yes)
                    468:     AC_MSG_RESULT(yes)
                    469:     AC_DEFINE(HT_AUTOMATIC_RULES)
                    470:     ;;
                    471:   *) 
                    472:     AC_MSG_RESULT(no)
                    473:     ;;
                    474:   esac ],
                    475:   AC_MSG_RESULT(no)
                    476: )
                    477: 
1.30      frystyk   478: AC_MSG_CHECKING(whether to disable HTTP/1.1 pipelining)
                    479: AC_ARG_ENABLE(pipelining,
                    480: [  --disable-pipelining    Turning off HTTP/1.1 Pipelining.],
                    481: [ case "${enableval}" in
                    482:   no)
                    483:     AC_MSG_RESULT(yes)
                    484:     AC_DEFINE(HT_NO_PIPELINING)
1.41      frystyk   485:     ;;
                    486:   *) 
                    487:     AC_MSG_RESULT(no)
                    488:     ;;
                    489:   esac ],
                    490:   AC_MSG_RESULT(no)
                    491: )
                    492: 
                    493: 
                    494: AC_MSG_CHECKING(whether to use MUX as transport for HTTP.)
                    495: AC_ARG_ENABLE(mux,
                    496: [  --enable-mux            Enabling MUX as transport for HTTP.],
                    497: [ case "${enableval}" in
                    498:   yes)
                    499:     AC_MSG_RESULT(yes)
                    500:     AC_DEFINE(HT_MUX)
1.30      frystyk   501:     ;;
                    502:   *) 
                    503:     AC_MSG_RESULT(no)
                    504:     ;;
                    505:   esac ],
                    506:   AC_MSG_RESULT(no)
                    507: )
                    508: 
1.28      frystyk   509: AC_MSG_CHECKING(whether to define _REENTRANT)
1.26      frystyk   510: AC_ARG_ENABLE(reentrant, [  --enable-reentrant      define _REENTRANT to enable reentrant system calls],
1.28      frystyk   511: [ case "${enableval}" in
                    512:   no)
                    513:     AC_MSG_RESULT(no)
                    514:     ;;
                    515:   *) 
                    516:     AC_MSG_RESULT(yes)
                    517:     AC_DEFINE(HT_REENTRANT) [CFLAGS="$CFLAGS -D_REENTRANT"]
                    518:     ;;
                    519:   esac ],
                    520:   AC_MSG_RESULT(no)
                    521: )
1.1       frystyk   522: 
1.28      frystyk   523: AC_MSG_CHECKING(whether to define _POSIX_SOURCE)
1.4       frystyk   524: AC_ARG_ENABLE(posix, [  --enable-posix          define _POSIX_SOURCE],
1.28      frystyk   525: [ case "${enableval}" in
                    526:   no)
                    527:     AC_MSG_RESULT(no)
                    528:     ;;
                    529:   *) 
                    530:     AC_MSG_RESULT(yes)
                    531:     AC_DEFINE(_POSIX_SOURCE) [CFLAGS="$CFLAGS -D_POSIX_SOURCE"]
                    532:     ;;
                    533:   esac ],
                    534:   AC_MSG_RESULT(no)
                    535: )
1.4       frystyk   536: 
1.26      frystyk   537: AC_ARG_ENABLE(cyrillic, [  --enable-cyrillic       include support for Cyrillic in line mode browser],
                    538:   AC_DEFINE(CYRILLIC)
                    539:   A_STDIO="a_stdio.o", A_STDIO="")
                    540: AC_SUBST(A_STDIO)
1.1       frystyk   541: 
                    542: dnl Create output files
1.66      frystyk   543: AC_OUTPUT([Makefile libwww-config
1.11      frystyk   544: config/Makefile
1.3       frystyk   545: Library/Makefile Library/User/Makefile Library/User/Patch/Makefile
                    546: Library/User/Architecture/Makefile Library/User/Using/Makefile Library/User/Guide/Makefile
1.12      frystyk   547: Library/User/Style/Makefile Library/User/Platform/Makefile
1.17      neon      548: Library/Test/Makefile Library/Test/User/Makefile Library/Test/src/Makefile
1.3       frystyk   549: Library/src/Makefile Library/src/windows/Makefile Library/src/vms/Makefile
1.11      frystyk   550: Library/Examples/Makefile
1.60      frystyk   551: Library/cvs2sql/Makefile
1.37      frystyk   552: Library/External/Makefile
1.9       frystyk   553: PICS-client/Makefile PICS-client/User/Makefile PICS-client/src/Makefile PICS-client/src/windows/Makefile
1.3       frystyk   554: LineMode/Makefile LineMode/User/Makefile
                    555: LineMode/src/Makefile LineMode/src/windows/Makefile LineMode/src/vms/Makefile
1.63      frystyk   556: Robot/Makefile Robot/User/Makefile Robot/src/Makefile Robot/tcl/Makefile Robot/src/windows/Makefile
1.39      frystyk   557: ComLine/Makefile ComLine/User/Makefile ComLine/src/Makefile ComLine/src/windows/Makefile
1.57      frystyk   558: WinCom/Makefile WinCom/hlp/Makefile WinCom/res/Makefile
1.13      frystyk   559: Icons/Makefile Icons/WWW/Makefile Icons/32x32/Makefile Icons/internal/Makefile
1.1       frystyk   560: ], date>stamp-h)

Webmaster