Annotation of parser3/configure, revision 1.60

1.1       paf         1: #! /bin/sh
                      2: 
                      3: # Guess values for system-dependent variables and create Makefiles.
                      4: # Generated automatically using autoconf version 2.13 
                      5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
                      6: #
                      7: # This configure script is free software; the Free Software Foundation
                      8: # gives unlimited permission to copy, distribute and modify it.
                      9: 
                     10: # Defaults:
                     11: ac_help=
                     12: ac_default_prefix=/usr/local
                     13: # Any additions from configure.in:
                     14: ac_help="$ac_help
1.60    ! paf        15:   --disable-safe-mode     to enable reading and executing
        !            16:                           files belonging to group+user other then effective"
1.1       paf        17: ac_help="$ac_help
1.13      paf        18:   --disable-execs         to disable any execs
                     19:                           (file::exec, file::cgi, unix mail:send)"
                     20: ac_help="$ac_help
1.60    ! paf        21:   --disable-string-origins to switch off string origin tracking"
1.14      paf        22: ac_help="$ac_help
1.17      paf        23:   --with-charsets=CHARSET[,CHARSET,...]  Enables charsets in root config (windows-1251,
                     24:                           windows-1250 windows-1257 koi8-r; Default is windows-1251)"
                     25: ac_help="$ac_help
                     26:   --with-mysql-client=mysqlclientlib?withparams
                     27:                           MySQL client dynamic library to root config"
                     28: ac_help="$ac_help
                     29:   --with-pgsql-client=pgsqlclientlib?withparams
                     30:                           PgSQL client dynamic library to root config"
                     31: ac_help="$ac_help
                     32:   --with-oracle-client=oracleclientlib?withparams
                     33:                           Oracle client dynamic library"
                     34: ac_help="$ac_help
1.7       paf        35:   --with-pathlink=LKEY    put dynamic libraries paths to binary
1.1       paf        36:                           using linker key (-R, -rpath-link)"
                     37: ac_help="$ac_help
1.59      paf        38:   --with-link-stdcpp=PATH to directory with libstdc++
                     39:   --without-link-stdcpp   to disable libstdc++ linkage,
                     40:                           if you belive you do not need one"
                     41: ac_help="$ac_help
1.38      paf        42:   --with-sjlj-exceptions  enable simple 'throw' from dynamic library"
1.37      paf        43: ac_help="$ac_help
1.7       paf        44:   --with-glib-config=FILE FILE is glib library
                     45:                           configuration file (search for glib*-config)"
                     46: ac_help="$ac_help
1.10      paf        47:   --with-shared-xml=D     D is the directory where
                     48:                           Gnome XML libraries are installed (shared libs)"
                     49: ac_help="$ac_help
                     50:   --with-static-xml=D     D is the directory where
                     51:                           Gnome XML libraries are installed (static libs)"
1.12      paf        52: ac_help="$ac_help
1.29      paf        53:   --with-shared-mailreceive=D is the directory where
                     54:                                Gnome MIME library is installed (shared lib)"
                     55: ac_help="$ac_help
                     56:   --with-static-mailreceive=D is the directory where
                     57:                           Gnome MIME library is installed (static lib)"
                     58: ac_help="$ac_help
1.16      paf        59:   \"--with-sendmail=COMMAND\" forces this command to send mail.
                     60:                           example: \"--with-sendmail=/usr/sbin/sendmail -t\"
                     61:                           (makes parser ignore user-defined sendmail commands)"
                     62: ac_help="$ac_help
1.12      paf        63:   --with-apache13=D       D is the Apache13 source distribution directory
                     64:                           builds library for apache_module using that dir
                     65:                           (do not add /src)"
1.1       paf        66: 
                     67: # Initialize some variables set by options.
                     68: # The variables have the same names as the options, with
                     69: # dashes changed to underlines.
                     70: build=NONE
                     71: cache_file=./config.cache
                     72: exec_prefix=NONE
                     73: host=NONE
                     74: no_create=
                     75: nonopt=NONE
                     76: no_recursion=
                     77: prefix=NONE
                     78: program_prefix=NONE
                     79: program_suffix=NONE
                     80: program_transform_name=s,x,x,
                     81: silent=
                     82: site=
                     83: srcdir=
                     84: target=NONE
                     85: verbose=
                     86: x_includes=NONE
                     87: x_libraries=NONE
                     88: bindir='${exec_prefix}/bin'
                     89: sbindir='${exec_prefix}/sbin'
                     90: libexecdir='${exec_prefix}/libexec'
                     91: datadir='${prefix}/share'
                     92: sysconfdir='${prefix}/etc'
                     93: sharedstatedir='${prefix}/com'
                     94: localstatedir='${prefix}/var'
                     95: libdir='${exec_prefix}/lib'
                     96: includedir='${prefix}/include'
                     97: oldincludedir='/usr/include'
                     98: infodir='${prefix}/info'
                     99: mandir='${prefix}/man'
                    100: 
                    101: # Initialize some other variables.
                    102: subdirs=
                    103: MFLAGS= MAKEFLAGS=
                    104: SHELL=${CONFIG_SHELL-/bin/sh}
                    105: # Maximum number of lines to put in a shell here document.
                    106: ac_max_here_lines=12
                    107: 
                    108: ac_prev=
                    109: for ac_option
                    110: do
                    111: 
                    112:   # If the previous option needs an argument, assign it.
                    113:   if test -n "$ac_prev"; then
                    114:     eval "$ac_prev=\$ac_option"
                    115:     ac_prev=
                    116:     continue
                    117:   fi
                    118: 
                    119:   case "$ac_option" in
                    120:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                    121:   *) ac_optarg= ;;
                    122:   esac
                    123: 
                    124:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    125: 
                    126:   case "$ac_option" in
                    127: 
                    128:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    129:     ac_prev=bindir ;;
                    130:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    131:     bindir="$ac_optarg" ;;
                    132: 
                    133:   -build | --build | --buil | --bui | --bu)
                    134:     ac_prev=build ;;
                    135:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    136:     build="$ac_optarg" ;;
                    137: 
                    138:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    139:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    140:     ac_prev=cache_file ;;
                    141:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    142:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    143:     cache_file="$ac_optarg" ;;
                    144: 
                    145:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    146:     ac_prev=datadir ;;
                    147:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    148:   | --da=*)
                    149:     datadir="$ac_optarg" ;;
                    150: 
                    151:   -disable-* | --disable-*)
                    152:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
                    153:     # Reject names that are not valid shell variable names.
                    154:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    155:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    156:     fi
                    157:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    158:     eval "enable_${ac_feature}=no" ;;
                    159: 
                    160:   -enable-* | --enable-*)
                    161:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
                    162:     # Reject names that are not valid shell variable names.
                    163:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    164:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    165:     fi
                    166:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    167:     case "$ac_option" in
                    168:       *=*) ;;
                    169:       *) ac_optarg=yes ;;
                    170:     esac
                    171:     eval "enable_${ac_feature}='$ac_optarg'" ;;
                    172: 
                    173:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    174:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    175:   | --exec | --exe | --ex)
                    176:     ac_prev=exec_prefix ;;
                    177:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    178:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    179:   | --exec=* | --exe=* | --ex=*)
                    180:     exec_prefix="$ac_optarg" ;;
                    181: 
                    182:   -gas | --gas | --ga | --g)
                    183:     # Obsolete; use --with-gas.
                    184:     with_gas=yes ;;
                    185: 
                    186:   -help | --help | --hel | --he)
                    187:     # Omit some internal or obsolete options to make the list less imposing.
                    188:     # This message is too long to be a string in the A/UX 3.1 sh.
                    189:     cat << EOF
                    190: Usage: configure [options] [host]
                    191: Options: [defaults in brackets after descriptions]
                    192: Configuration:
                    193:   --cache-file=FILE       cache test results in FILE
                    194:   --help                  print this message
                    195:   --no-create             do not create output files
                    196:   --quiet, --silent       do not print \`checking...' messages
                    197:   --version               print the version of autoconf that created configure
                    198: Directory and file names:
                    199:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    200:                           [$ac_default_prefix]
                    201:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    202:                           [same as prefix]
                    203:   --bindir=DIR            user executables in DIR [EPREFIX/bin]
                    204:   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
                    205:   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
                    206:   --datadir=DIR           read-only architecture-independent data in DIR
                    207:                           [PREFIX/share]
                    208:   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
                    209:   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                    210:                           [PREFIX/com]
                    211:   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
                    212:   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
                    213:   --includedir=DIR        C header files in DIR [PREFIX/include]
                    214:   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
                    215:   --infodir=DIR           info documentation in DIR [PREFIX/info]
                    216:   --mandir=DIR            man documentation in DIR [PREFIX/man]
                    217:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
                    218:   --program-prefix=PREFIX prepend PREFIX to installed program names
                    219:   --program-suffix=SUFFIX append SUFFIX to installed program names
                    220:   --program-transform-name=PROGRAM
                    221:                           run sed PROGRAM on installed program names
                    222: EOF
                    223:     cat << EOF
                    224: Host type:
                    225:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
                    226:   --host=HOST             configure for HOST [guessed]
                    227:   --target=TARGET         configure for TARGET [TARGET=HOST]
                    228: Features and packages:
                    229:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    230:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    231:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    232:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    233:   --x-includes=DIR        X include files are in DIR
                    234:   --x-libraries=DIR       X library files are in DIR
                    235: EOF
                    236:     if test -n "$ac_help"; then
                    237:       echo "--enable and --with options recognized:$ac_help"
                    238:     fi
                    239:     exit 0 ;;
                    240: 
                    241:   -host | --host | --hos | --ho)
                    242:     ac_prev=host ;;
                    243:   -host=* | --host=* | --hos=* | --ho=*)
                    244:     host="$ac_optarg" ;;
                    245: 
                    246:   -includedir | --includedir | --includedi | --included | --include \
                    247:   | --includ | --inclu | --incl | --inc)
                    248:     ac_prev=includedir ;;
                    249:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    250:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    251:     includedir="$ac_optarg" ;;
                    252: 
                    253:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    254:     ac_prev=infodir ;;
                    255:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    256:     infodir="$ac_optarg" ;;
                    257: 
                    258:   -libdir | --libdir | --libdi | --libd)
                    259:     ac_prev=libdir ;;
                    260:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    261:     libdir="$ac_optarg" ;;
                    262: 
                    263:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    264:   | --libexe | --libex | --libe)
                    265:     ac_prev=libexecdir ;;
                    266:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    267:   | --libexe=* | --libex=* | --libe=*)
                    268:     libexecdir="$ac_optarg" ;;
                    269: 
                    270:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    271:   | --localstate | --localstat | --localsta | --localst \
                    272:   | --locals | --local | --loca | --loc | --lo)
                    273:     ac_prev=localstatedir ;;
                    274:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    275:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    276:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
                    277:     localstatedir="$ac_optarg" ;;
                    278: 
                    279:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    280:     ac_prev=mandir ;;
                    281:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    282:     mandir="$ac_optarg" ;;
                    283: 
                    284:   -nfp | --nfp | --nf)
                    285:     # Obsolete; use --without-fp.
                    286:     with_fp=no ;;
                    287: 
                    288:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    289:   | --no-cr | --no-c)
                    290:     no_create=yes ;;
                    291: 
                    292:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    293:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    294:     no_recursion=yes ;;
                    295: 
                    296:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    297:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    298:   | --oldin | --oldi | --old | --ol | --o)
                    299:     ac_prev=oldincludedir ;;
                    300:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    301:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    302:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    303:     oldincludedir="$ac_optarg" ;;
                    304: 
                    305:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    306:     ac_prev=prefix ;;
                    307:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    308:     prefix="$ac_optarg" ;;
                    309: 
                    310:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    311:   | --program-pre | --program-pr | --program-p)
                    312:     ac_prev=program_prefix ;;
                    313:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    314:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    315:     program_prefix="$ac_optarg" ;;
                    316: 
                    317:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    318:   | --program-suf | --program-su | --program-s)
                    319:     ac_prev=program_suffix ;;
                    320:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    321:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    322:     program_suffix="$ac_optarg" ;;
                    323: 
                    324:   -program-transform-name | --program-transform-name \
                    325:   | --program-transform-nam | --program-transform-na \
                    326:   | --program-transform-n | --program-transform- \
                    327:   | --program-transform | --program-transfor \
                    328:   | --program-transfo | --program-transf \
                    329:   | --program-trans | --program-tran \
                    330:   | --progr-tra | --program-tr | --program-t)
                    331:     ac_prev=program_transform_name ;;
                    332:   -program-transform-name=* | --program-transform-name=* \
                    333:   | --program-transform-nam=* | --program-transform-na=* \
                    334:   | --program-transform-n=* | --program-transform-=* \
                    335:   | --program-transform=* | --program-transfor=* \
                    336:   | --program-transfo=* | --program-transf=* \
                    337:   | --program-trans=* | --program-tran=* \
                    338:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    339:     program_transform_name="$ac_optarg" ;;
                    340: 
                    341:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    342:   | -silent | --silent | --silen | --sile | --sil)
                    343:     silent=yes ;;
                    344: 
                    345:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    346:     ac_prev=sbindir ;;
                    347:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    348:   | --sbi=* | --sb=*)
                    349:     sbindir="$ac_optarg" ;;
                    350: 
                    351:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    352:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    353:   | --sharedst | --shareds | --shared | --share | --shar \
                    354:   | --sha | --sh)
                    355:     ac_prev=sharedstatedir ;;
                    356:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    357:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    358:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    359:   | --sha=* | --sh=*)
                    360:     sharedstatedir="$ac_optarg" ;;
                    361: 
                    362:   -site | --site | --sit)
                    363:     ac_prev=site ;;
                    364:   -site=* | --site=* | --sit=*)
                    365:     site="$ac_optarg" ;;
                    366: 
                    367:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    368:     ac_prev=srcdir ;;
                    369:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    370:     srcdir="$ac_optarg" ;;
                    371: 
                    372:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    373:   | --syscon | --sysco | --sysc | --sys | --sy)
                    374:     ac_prev=sysconfdir ;;
                    375:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    376:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                    377:     sysconfdir="$ac_optarg" ;;
                    378: 
                    379:   -target | --target | --targe | --targ | --tar | --ta | --t)
                    380:     ac_prev=target ;;
                    381:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    382:     target="$ac_optarg" ;;
                    383: 
                    384:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    385:     verbose=yes ;;
                    386: 
                    387:   -version | --version | --versio | --versi | --vers)
                    388:     echo "configure generated by autoconf version 2.13"
                    389:     exit 0 ;;
                    390: 
                    391:   -with-* | --with-*)
                    392:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
                    393:     # Reject names that are not valid shell variable names.
                    394:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    395:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    396:     fi
                    397:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    398:     case "$ac_option" in
                    399:       *=*) ;;
                    400:       *) ac_optarg=yes ;;
                    401:     esac
                    402:     eval "with_${ac_package}='$ac_optarg'" ;;
                    403: 
                    404:   -without-* | --without-*)
                    405:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
                    406:     # Reject names that are not valid shell variable names.
                    407:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    408:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    409:     fi
                    410:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    411:     eval "with_${ac_package}=no" ;;
                    412: 
                    413:   --x)
                    414:     # Obsolete; use --with-x.
                    415:     with_x=yes ;;
                    416: 
                    417:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    418:   | --x-incl | --x-inc | --x-in | --x-i)
                    419:     ac_prev=x_includes ;;
                    420:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    421:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                    422:     x_includes="$ac_optarg" ;;
                    423: 
                    424:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    425:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    426:     ac_prev=x_libraries ;;
                    427:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    428:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                    429:     x_libraries="$ac_optarg" ;;
                    430: 
                    431:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    432:     ;;
                    433: 
                    434:   *)
                    435:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
                    436:       echo "configure: warning: $ac_option: invalid host type" 1>&2
                    437:     fi
                    438:     if test "x$nonopt" != xNONE; then
                    439:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
                    440:     fi
                    441:     nonopt="$ac_option"
                    442:     ;;
                    443: 
                    444:   esac
                    445: done
                    446: 
                    447: if test -n "$ac_prev"; then
                    448:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
                    449: fi
                    450: 
                    451: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                    452: 
                    453: # File descriptor usage:
                    454: # 0 standard input
                    455: # 1 file creation
                    456: # 2 errors and warnings
                    457: # 3 some systems may open it to /dev/tty
                    458: # 4 used on the Kubota Titan
                    459: # 6 checking for... messages and results
                    460: # 5 compiler messages saved in config.log
                    461: if test "$silent" = yes; then
                    462:   exec 6>/dev/null
                    463: else
                    464:   exec 6>&1
                    465: fi
                    466: exec 5>./config.log
                    467: 
                    468: echo "\
                    469: This file contains any messages produced by compilers while
                    470: running configure, to aid debugging if configure makes a mistake.
                    471: " 1>&5
                    472: 
                    473: # Strip out --no-create and --no-recursion so they do not pile up.
                    474: # Also quote any args containing shell metacharacters.
                    475: ac_configure_args=
                    476: for ac_arg
                    477: do
                    478:   case "$ac_arg" in
                    479:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    480:   | --no-cr | --no-c) ;;
                    481:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    482:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    483:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
                    484:   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                    485:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
                    486:   esac
                    487: done
                    488: 
                    489: # NLS nuisances.
                    490: # Only set these to C if already set.  These must not be set unconditionally
                    491: # because not all systems understand e.g. LANG=C (notably SCO).
                    492: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
                    493: # Non-C LC_CTYPE values break the ctype check.
                    494: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
                    495: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
                    496: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
                    497: if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
                    498: 
                    499: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    500: rm -rf conftest* confdefs.h
                    501: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    502: echo > confdefs.h
                    503: 
                    504: # A filename unique to this package, relative to the directory that
                    505: # configure is in, which we can look for to find out if srcdir is correct.
                    506: ac_unique_file=README
                    507: 
                    508: # Find the source files, if location was not specified.
                    509: if test -z "$srcdir"; then
                    510:   ac_srcdir_defaulted=yes
                    511:   # Try the directory containing this script, then its parent.
                    512:   ac_prog=$0
                    513:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
                    514:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
                    515:   srcdir=$ac_confdir
                    516:   if test ! -r $srcdir/$ac_unique_file; then
                    517:     srcdir=..
                    518:   fi
                    519: else
                    520:   ac_srcdir_defaulted=no
                    521: fi
                    522: if test ! -r $srcdir/$ac_unique_file; then
                    523:   if test "$ac_srcdir_defaulted" = yes; then
                    524:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
                    525:   else
                    526:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
                    527:   fi
                    528: fi
                    529: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
                    530: 
                    531: # Prefer explicitly selected file to automatically selected ones.
                    532: if test -z "$CONFIG_SITE"; then
                    533:   if test "x$prefix" != xNONE; then
                    534:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                    535:   else
                    536:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                    537:   fi
                    538: fi
                    539: for ac_site_file in $CONFIG_SITE; do
                    540:   if test -r "$ac_site_file"; then
                    541:     echo "loading site script $ac_site_file"
                    542:     . "$ac_site_file"
                    543:   fi
                    544: done
                    545: 
                    546: if test -r "$cache_file"; then
                    547:   echo "loading cache $cache_file"
                    548:   . $cache_file
                    549: else
                    550:   echo "creating cache $cache_file"
                    551:   > $cache_file
                    552: fi
                    553: 
                    554: ac_ext=c
                    555: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    556: ac_cpp='$CPP $CPPFLAGS'
                    557: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    558: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    559: cross_compiling=$ac_cv_prog_cc_cross
                    560: 
                    561: ac_exeext=
                    562: ac_objext=o
                    563: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
                    564:   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
                    565:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
                    566:     ac_n= ac_c='
                    567: ' ac_t='       '
                    568:   else
                    569:     ac_n=-n ac_c= ac_t=
                    570:   fi
                    571: else
                    572:   ac_n= ac_c='\c' ac_t=
                    573: fi
                    574: 
                    575: 
                    576: ac_aux_dir=
                    577: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
                    578:   if test -f $ac_dir/install-sh; then
                    579:     ac_aux_dir=$ac_dir
                    580:     ac_install_sh="$ac_aux_dir/install-sh -c"
                    581:     break
                    582:   elif test -f $ac_dir/install.sh; then
                    583:     ac_aux_dir=$ac_dir
                    584:     ac_install_sh="$ac_aux_dir/install.sh -c"
                    585:     break
                    586:   fi
                    587: done
                    588: if test -z "$ac_aux_dir"; then
                    589:   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
                    590: fi
                    591: ac_config_guess=$ac_aux_dir/config.guess
                    592: ac_config_sub=$ac_aux_dir/config.sub
                    593: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
                    594: 
                    595: # Find a good install program.  We prefer a C program (faster),
                    596: # so one script is as good as another.  But avoid the broken or
                    597: # incompatible versions:
                    598: # SysV /etc/install, /usr/sbin/install
                    599: # SunOS /usr/etc/install
                    600: # IRIX /sbin/install
                    601: # AIX /bin/install
                    602: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                    603: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                    604: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                    605: # ./install, which can be erroneously created by make from ./install.sh.
                    606: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.59      paf       607: echo "configure:608: checking for a BSD compatible install" >&5
1.1       paf       608: if test -z "$INSTALL"; then
                    609: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
                    610:   echo $ac_n "(cached) $ac_c" 1>&6
                    611: else
                    612:     IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
                    613:   for ac_dir in $PATH; do
                    614:     # Account for people who put trailing slashes in PATH elements.
                    615:     case "$ac_dir/" in
                    616:     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
                    617:     *)
                    618:       # OSF1 and SCO ODT 3.0 have their own names for install.
                    619:       # Don't use installbsd from OSF since it installs stuff as root
                    620:       # by default.
                    621:       for ac_prog in ginstall scoinst install; do
                    622:         if test -f $ac_dir/$ac_prog; then
                    623:          if test $ac_prog = install &&
                    624:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
                    625:            # AIX install.  It has an incompatible calling convention.
                    626:            :
                    627:          else
                    628:            ac_cv_path_install="$ac_dir/$ac_prog -c"
                    629:            break 2
                    630:          fi
                    631:        fi
                    632:       done
                    633:       ;;
                    634:     esac
                    635:   done
                    636:   IFS="$ac_save_IFS"
                    637: 
                    638: fi
                    639:   if test "${ac_cv_path_install+set}" = set; then
                    640:     INSTALL="$ac_cv_path_install"
                    641:   else
                    642:     # As a last resort, use the slow shell script.  We don't cache a
                    643:     # path for INSTALL within a source directory, because that will
                    644:     # break other packages using the cache if that directory is
                    645:     # removed, or if the path is relative.
                    646:     INSTALL="$ac_install_sh"
                    647:   fi
                    648: fi
                    649: echo "$ac_t""$INSTALL" 1>&6
                    650: 
                    651: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                    652: # It thinks the first close brace ends the variable substitution.
                    653: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                    654: 
                    655: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
                    656: 
                    657: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                    658: 
                    659: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1.59      paf       660: echo "configure:661: checking whether build environment is sane" >&5
1.1       paf       661: # Just in case
                    662: sleep 1
                    663: echo timestamp > conftestfile
                    664: # Do `set' in a subshell so we don't clobber the current shell's
                    665: # arguments.  Must try -L first in case configure is actually a
                    666: # symlink; some systems play weird games with the mod time of symlinks
                    667: # (eg FreeBSD returns the mod time of the symlink's containing
                    668: # directory).
                    669: if (
                    670:    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
                    671:    if test "$*" = "X"; then
                    672:       # -L didn't work.
                    673:       set X `ls -t $srcdir/configure conftestfile`
                    674:    fi
                    675:    if test "$*" != "X $srcdir/configure conftestfile" \
                    676:       && test "$*" != "X conftestfile $srcdir/configure"; then
                    677: 
                    678:       # If neither matched, then we have a broken ls.  This can happen
                    679:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                    680:       # broken ls alias from the environment.  This has actually
                    681:       # happened.  Such a system could not be considered "sane".
                    682:       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
                    683: alias in your environment" 1>&2; exit 1; }
                    684:    fi
                    685: 
                    686:    test "$2" = conftestfile
                    687:    )
                    688: then
                    689:    # Ok.
                    690:    :
                    691: else
                    692:    { echo "configure: error: newly created file is older than distributed files!
                    693: Check your system clock" 1>&2; exit 1; }
                    694: fi
                    695: rm -f conftest*
                    696: echo "$ac_t""yes" 1>&6
                    697: if test "$program_transform_name" = s,x,x,; then
                    698:   program_transform_name=
                    699: else
                    700:   # Double any \ or $.  echo might interpret backslashes.
                    701:   cat <<\EOF_SED > conftestsed
                    702: s,\\,\\\\,g; s,\$,$$,g
                    703: EOF_SED
                    704:   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
                    705:   rm -f conftestsed
                    706: fi
                    707: test "$program_prefix" != NONE &&
                    708:   program_transform_name="s,^,${program_prefix},; $program_transform_name"
                    709: # Use a double $ so make ignores it.
                    710: test "$program_suffix" != NONE &&
                    711:   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
                    712: 
                    713: # sed with no file args requires a program.
                    714: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
                    715: 
                    716: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.59      paf       717: echo "configure:718: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1       paf       718: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
                    719: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
                    720:   echo $ac_n "(cached) $ac_c" 1>&6
                    721: else
                    722:   cat > conftestmake <<\EOF
                    723: all:
                    724:        @echo 'ac_maketemp="${MAKE}"'
                    725: EOF
                    726: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                    727: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
                    728: if test -n "$ac_maketemp"; then
                    729:   eval ac_cv_prog_make_${ac_make}_set=yes
                    730: else
                    731:   eval ac_cv_prog_make_${ac_make}_set=no
                    732: fi
                    733: rm -f conftestmake
                    734: fi
                    735: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
                    736:   echo "$ac_t""yes" 1>&6
                    737:   SET_MAKE=
                    738: else
                    739:   echo "$ac_t""no" 1>&6
                    740:   SET_MAKE="MAKE=${MAKE-make}"
                    741: fi
                    742: 
                    743: 
                    744: PACKAGE=parser
                    745: 
1.35      paf       746: VERSION=3.0.HEAD
1.1       paf       747: 
                    748: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
                    749:   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
                    750: fi
                    751: 
                    752: 
                    753: 
                    754: missing_dir=`cd $ac_aux_dir && pwd`
                    755: echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1.59      paf       756: echo "configure:757: checking for working aclocal" >&5
1.1       paf       757: # Run test in a subshell; some versions of sh will print an error if
                    758: # an executable is not found, even if stderr is redirected.
                    759: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    760: if (aclocal --version) < /dev/null > /dev/null 2>&1; then
                    761:    ACLOCAL=aclocal
                    762:    echo "$ac_t""found" 1>&6
                    763: else
                    764:    ACLOCAL="$missing_dir/missing aclocal"
                    765:    echo "$ac_t""missing" 1>&6
                    766: fi
                    767: 
                    768: echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1.59      paf       769: echo "configure:770: checking for working autoconf" >&5
1.1       paf       770: # Run test in a subshell; some versions of sh will print an error if
                    771: # an executable is not found, even if stderr is redirected.
                    772: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    773: if (autoconf --version) < /dev/null > /dev/null 2>&1; then
                    774:    AUTOCONF=autoconf
                    775:    echo "$ac_t""found" 1>&6
                    776: else
                    777:    AUTOCONF="$missing_dir/missing autoconf"
                    778:    echo "$ac_t""missing" 1>&6
                    779: fi
                    780: 
                    781: echo $ac_n "checking for working automake""... $ac_c" 1>&6
1.59      paf       782: echo "configure:783: checking for working automake" >&5
1.1       paf       783: # Run test in a subshell; some versions of sh will print an error if
                    784: # an executable is not found, even if stderr is redirected.
                    785: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    786: if (automake --version) < /dev/null > /dev/null 2>&1; then
                    787:    AUTOMAKE=automake
                    788:    echo "$ac_t""found" 1>&6
                    789: else
                    790:    AUTOMAKE="$missing_dir/missing automake"
                    791:    echo "$ac_t""missing" 1>&6
                    792: fi
                    793: 
                    794: echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1.59      paf       795: echo "configure:796: checking for working autoheader" >&5
1.1       paf       796: # Run test in a subshell; some versions of sh will print an error if
                    797: # an executable is not found, even if stderr is redirected.
                    798: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    799: if (autoheader --version) < /dev/null > /dev/null 2>&1; then
                    800:    AUTOHEADER=autoheader
                    801:    echo "$ac_t""found" 1>&6
                    802: else
                    803:    AUTOHEADER="$missing_dir/missing autoheader"
                    804:    echo "$ac_t""missing" 1>&6
                    805: fi
                    806: 
                    807: echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1.59      paf       808: echo "configure:809: checking for working makeinfo" >&5
1.1       paf       809: # Run test in a subshell; some versions of sh will print an error if
                    810: # an executable is not found, even if stderr is redirected.
                    811: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    812: if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
                    813:    MAKEINFO=makeinfo
                    814:    echo "$ac_t""found" 1>&6
                    815: else
                    816:    MAKEINFO="$missing_dir/missing makeinfo"
                    817:    echo "$ac_t""missing" 1>&6
                    818: fi
                    819: 
                    820: 
                    821: 
1.12      paf       822: P3S=`cd $srcdir/src ; pwd`
1.1       paf       823: 
                    824: 
                    825: PARSER_VERSION=$VERSION
1.6       paf       826: echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new
                    827: echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new
                    828: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new
                    829: cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1
1.1       paf       830: if test $? -ne 0 ; then
1.6       paf       831:     rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \
                    832:     echo Updated $srcdir/src/include/pa_version.h
1.1       paf       833: else
1.6       paf       834:        rm -f $srcdir/src/include/pa_version.h.new
1.1       paf       835: fi
                    836: 
1.41      paf       837: 
                    838: # Make sure we can run config.sub.
                    839: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
                    840: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
                    841: fi
                    842: 
                    843: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.59      paf       844: echo "configure:845: checking host system type" >&5
1.41      paf       845: 
                    846: host_alias=$host
                    847: case "$host_alias" in
                    848: NONE)
                    849:   case $nonopt in
                    850:   NONE)
                    851:     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
                    852:     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
                    853:     fi ;;
                    854:   *) host_alias=$nonopt ;;
                    855:   esac ;;
                    856: esac
                    857: 
                    858: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
                    859: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                    860: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                    861: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                    862: echo "$ac_t""$host" 1>&6
                    863: 
                    864: 
                    865: 
1.1       paf       866: # Find a good install program.  We prefer a C program (faster),
                    867: # so one script is as good as another.  But avoid the broken or
                    868: # incompatible versions:
                    869: # SysV /etc/install, /usr/sbin/install
                    870: # SunOS /usr/etc/install
                    871: # IRIX /sbin/install
                    872: # AIX /bin/install
                    873: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                    874: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                    875: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                    876: # ./install, which can be erroneously created by make from ./install.sh.
                    877: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.59      paf       878: echo "configure:879: checking for a BSD compatible install" >&5
1.1       paf       879: if test -z "$INSTALL"; then
                    880: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
                    881:   echo $ac_n "(cached) $ac_c" 1>&6
                    882: else
                    883:     IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
                    884:   for ac_dir in $PATH; do
                    885:     # Account for people who put trailing slashes in PATH elements.
                    886:     case "$ac_dir/" in
                    887:     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
                    888:     *)
                    889:       # OSF1 and SCO ODT 3.0 have their own names for install.
                    890:       # Don't use installbsd from OSF since it installs stuff as root
                    891:       # by default.
                    892:       for ac_prog in ginstall scoinst install; do
                    893:         if test -f $ac_dir/$ac_prog; then
                    894:          if test $ac_prog = install &&
                    895:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
                    896:            # AIX install.  It has an incompatible calling convention.
                    897:            :
                    898:          else
                    899:            ac_cv_path_install="$ac_dir/$ac_prog -c"
                    900:            break 2
                    901:          fi
                    902:        fi
                    903:       done
                    904:       ;;
                    905:     esac
                    906:   done
                    907:   IFS="$ac_save_IFS"
                    908: 
                    909: fi
                    910:   if test "${ac_cv_path_install+set}" = set; then
                    911:     INSTALL="$ac_cv_path_install"
                    912:   else
                    913:     # As a last resort, use the slow shell script.  We don't cache a
                    914:     # path for INSTALL within a source directory, because that will
                    915:     # break other packages using the cache if that directory is
                    916:     # removed, or if the path is relative.
                    917:     INSTALL="$ac_install_sh"
                    918:   fi
                    919: fi
                    920: echo "$ac_t""$INSTALL" 1>&6
                    921: 
                    922: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                    923: # It thinks the first close brace ends the variable substitution.
                    924: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                    925: 
                    926: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
                    927: 
                    928: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                    929: 
1.41      paf       930: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.59      paf       931: echo "configure:932: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.41      paf       932: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
                    933: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
                    934:   echo $ac_n "(cached) $ac_c" 1>&6
                    935: else
                    936:   cat > conftestmake <<\EOF
                    937: all:
                    938:        @echo 'ac_maketemp="${MAKE}"'
                    939: EOF
                    940: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                    941: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
                    942: if test -n "$ac_maketemp"; then
                    943:   eval ac_cv_prog_make_${ac_make}_set=yes
                    944: else
                    945:   eval ac_cv_prog_make_${ac_make}_set=no
                    946: fi
                    947: rm -f conftestmake
                    948: fi
                    949: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
                    950:   echo "$ac_t""yes" 1>&6
                    951:   SET_MAKE=
                    952: else
                    953:   echo "$ac_t""no" 1>&6
                    954:   SET_MAKE="MAKE=${MAKE-make}"
                    955: fi
                    956: 
                    957: # Extract the first word of "ranlib", so it can be a program name with args.
                    958: set dummy ranlib; ac_word=$2
                    959: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.59      paf       960: echo "configure:961: checking for $ac_word" >&5
1.41      paf       961: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
                    962:   echo $ac_n "(cached) $ac_c" 1>&6
                    963: else
                    964:   if test -n "$RANLIB"; then
                    965:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                    966: else
                    967:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    968:   ac_dummy="$PATH"
                    969:   for ac_dir in $ac_dummy; do
                    970:     test -z "$ac_dir" && ac_dir=.
                    971:     if test -f $ac_dir/$ac_word; then
                    972:       ac_cv_prog_RANLIB="ranlib"
                    973:       break
                    974:     fi
                    975:   done
                    976:   IFS="$ac_save_ifs"
                    977:   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
                    978: fi
                    979: fi
                    980: RANLIB="$ac_cv_prog_RANLIB"
                    981: if test -n "$RANLIB"; then
                    982:   echo "$ac_t""$RANLIB" 1>&6
                    983: else
                    984:   echo "$ac_t""no" 1>&6
                    985: fi
                    986: 
                    987: for ac_prog in mawk gawk nawk awk
                    988: do
                    989: # Extract the first word of "$ac_prog", so it can be a program name with args.
                    990: set dummy $ac_prog; ac_word=$2
                    991: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.59      paf       992: echo "configure:993: checking for $ac_word" >&5
1.41      paf       993: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
                    994:   echo $ac_n "(cached) $ac_c" 1>&6
                    995: else
                    996:   if test -n "$AWK"; then
                    997:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                    998: else
                    999:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1000:   ac_dummy="$PATH"
                   1001:   for ac_dir in $ac_dummy; do
                   1002:     test -z "$ac_dir" && ac_dir=.
                   1003:     if test -f $ac_dir/$ac_word; then
                   1004:       ac_cv_prog_AWK="$ac_prog"
                   1005:       break
                   1006:     fi
                   1007:   done
                   1008:   IFS="$ac_save_ifs"
                   1009: fi
                   1010: fi
                   1011: AWK="$ac_cv_prog_AWK"
                   1012: if test -n "$AWK"; then
                   1013:   echo "$ac_t""$AWK" 1>&6
                   1014: else
                   1015:   echo "$ac_t""no" 1>&6
                   1016: fi
                   1017: 
                   1018: test -n "$AWK" && break
                   1019: done
                   1020: 
                   1021: 
                   1022: for ac_prog in 'bison -y' byacc
                   1023: do
                   1024: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   1025: set dummy $ac_prog; ac_word=$2
                   1026: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.59      paf      1027: echo "configure:1028: checking for $ac_word" >&5
1.41      paf      1028: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
                   1029:   echo $ac_n "(cached) $ac_c" 1>&6
                   1030: else
                   1031:   if test -n "$YACC"; then
                   1032:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   1033: else
                   1034:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1035:   ac_dummy="$PATH"
                   1036:   for ac_dir in $ac_dummy; do
                   1037:     test -z "$ac_dir" && ac_dir=.
                   1038:     if test -f $ac_dir/$ac_word; then
                   1039:       ac_cv_prog_YACC="$ac_prog"
                   1040:       break
                   1041:     fi
                   1042:   done
                   1043:   IFS="$ac_save_ifs"
                   1044: fi
                   1045: fi
                   1046: YACC="$ac_cv_prog_YACC"
                   1047: if test -n "$YACC"; then
                   1048:   echo "$ac_t""$YACC" 1>&6
                   1049: else
                   1050:   echo "$ac_t""no" 1>&6
                   1051: fi
                   1052: 
                   1053: test -n "$YACC" && break
                   1054: done
                   1055: test -n "$YACC" || YACC="yacc"
                   1056: 
                   1057: if test "$YACC" != "bison -y"; then
                   1058:     echo "configure: warning: to regenerate Parser grammar YOU WOULD NEED BISON" 1>&2
                   1059: else
                   1060:     echo $ac_n "checking bison version""... $ac_c" 1>&6
1.59      paf      1061: echo "configure:1062: checking bison version" >&5
1.41      paf      1062:     oldIFS=$IFS; IFS=.
                   1063:     set `bison -V | sed -e 's/^GNU Bison version //'`
                   1064:     IFS=$oldIFS
                   1065:     if test "$1" = "1" -a "$2" -lt "25"; then
                   1066:         echo "configure: warning: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." 1>&2
                   1067:     fi
                   1068:     echo "$ac_t""$1.$2 (ok)" 1>&6
                   1069: fi
                   1070: 
1.1       paf      1071: # Extract the first word of "gcc", so it can be a program name with args.
                   1072: set dummy gcc; ac_word=$2
                   1073: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.59      paf      1074: echo "configure:1075: checking for $ac_word" >&5
1.1       paf      1075: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1076:   echo $ac_n "(cached) $ac_c" 1>&6
                   1077: else
                   1078:   if test -n "$CC"; then
                   1079:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1080: else
                   1081:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1082:   ac_dummy="$PATH"
                   1083:   for ac_dir in $ac_dummy; do
                   1084:     test -z "$ac_dir" && ac_dir=.
                   1085:     if test -f $ac_dir/$ac_word; then
                   1086:       ac_cv_prog_CC="gcc"
                   1087:       break
                   1088:     fi
                   1089:   done
                   1090:   IFS="$ac_save_ifs"
                   1091: fi
                   1092: fi
                   1093: CC="$ac_cv_prog_CC"
                   1094: if test -n "$CC"; then
                   1095:   echo "$ac_t""$CC" 1>&6
                   1096: else
                   1097:   echo "$ac_t""no" 1>&6
                   1098: fi
                   1099: 
                   1100: if test -z "$CC"; then
                   1101:   # Extract the first word of "cc", so it can be a program name with args.
                   1102: set dummy cc; ac_word=$2
                   1103: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.59      paf      1104: echo "configure:1105: checking for $ac_word" >&5
1.1       paf      1105: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1106:   echo $ac_n "(cached) $ac_c" 1>&6
                   1107: else
                   1108:   if test -n "$CC"; then
                   1109:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1110: else
                   1111:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1112:   ac_prog_rejected=no
                   1113:   ac_dummy="$PATH"
                   1114:   for ac_dir in $ac_dummy; do
                   1115:     test -z "$ac_dir" && ac_dir=.
                   1116:     if test -f $ac_dir/$ac_word; then
                   1117:       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
                   1118:         ac_prog_rejected=yes
                   1119:        continue
                   1120:       fi
                   1121:       ac_cv_prog_CC="cc"
                   1122:       break
                   1123:     fi
                   1124:   done
                   1125:   IFS="$ac_save_ifs"
                   1126: if test $ac_prog_rejected = yes; then
                   1127:   # We found a bogon in the path, so make sure we never use it.
                   1128:   set dummy $ac_cv_prog_CC
                   1129:   shift
                   1130:   if test $# -gt 0; then
                   1131:     # We chose a different compiler from the bogus one.
                   1132:     # However, it has the same basename, so the bogon will be chosen
                   1133:     # first if we set CC to just the basename; use the full file name.
                   1134:     shift
                   1135:     set dummy "$ac_dir/$ac_word" "$@"
                   1136:     shift
                   1137:     ac_cv_prog_CC="$@"
                   1138:   fi
                   1139: fi
                   1140: fi
                   1141: fi
                   1142: CC="$ac_cv_prog_CC"
                   1143: if test -n "$CC"; then
                   1144:   echo "$ac_t""$CC" 1>&6
                   1145: else
                   1146:   echo "$ac_t""no" 1>&6
                   1147: fi
                   1148: 
                   1149:   if test -z "$CC"; then
                   1150:     case "`uname -s`" in
                   1151:     *win32* | *WIN32*)
                   1152:       # Extract the first word of "cl", so it can be a program name with args.
                   1153: set dummy cl; ac_word=$2
                   1154: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.59      paf      1155: echo "configure:1156: checking for $ac_word" >&5
1.1       paf      1156: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1157:   echo $ac_n "(cached) $ac_c" 1>&6
                   1158: else
                   1159:   if test -n "$CC"; then
                   1160:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1161: else
                   1162:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1163:   ac_dummy="$PATH"
                   1164:   for ac_dir in $ac_dummy; do
                   1165:     test -z "$ac_dir" && ac_dir=.
                   1166:     if test -f $ac_dir/$ac_word; then
                   1167:       ac_cv_prog_CC="cl"
                   1168:       break
                   1169:     fi
                   1170:   done
                   1171:   IFS="$ac_save_ifs"
                   1172: fi
                   1173: fi
                   1174: CC="$ac_cv_prog_CC"
                   1175: if test -n "$CC"; then
                   1176:   echo "$ac_t""$CC" 1>&6
                   1177: else
                   1178:   echo "$ac_t""no" 1>&6
                   1179: fi
                   1180:  ;;
                   1181:     esac
                   1182:   fi
                   1183:   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
                   1184: fi
                   1185: 
                   1186: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.59      paf      1187: echo "configure:1188: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1       paf      1188: 
                   1189: ac_ext=c
                   1190: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1191: ac_cpp='$CPP $CPPFLAGS'
                   1192: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1193: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1194: cross_compiling=$ac_cv_prog_cc_cross
                   1195: 
                   1196: cat > conftest.$ac_ext << EOF
                   1197: 
1.59      paf      1198: #line 1199 "configure"
1.1       paf      1199: #include "confdefs.h"
                   1200: 
                   1201: main(){return(0);}
                   1202: EOF
1.59      paf      1203: if { (eval echo configure:1204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      1204:   ac_cv_prog_cc_works=yes
                   1205:   # If we can't run a trivial program, we are probably using a cross compiler.
                   1206:   if (./conftest; exit) 2>/dev/null; then
                   1207:     ac_cv_prog_cc_cross=no
                   1208:   else
                   1209:     ac_cv_prog_cc_cross=yes
                   1210:   fi
                   1211: else
                   1212:   echo "configure: failed program was:" >&5
                   1213:   cat conftest.$ac_ext >&5
                   1214:   ac_cv_prog_cc_works=no
                   1215: fi
                   1216: rm -fr conftest*
                   1217: ac_ext=c
                   1218: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1219: ac_cpp='$CPP $CPPFLAGS'
                   1220: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1221: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1222: cross_compiling=$ac_cv_prog_cc_cross
                   1223: 
                   1224: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
                   1225: if test $ac_cv_prog_cc_works = no; then
                   1226:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
                   1227: fi
                   1228: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.59      paf      1229: echo "configure:1230: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1       paf      1230: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
                   1231: cross_compiling=$ac_cv_prog_cc_cross
                   1232: 
                   1233: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.59      paf      1234: echo "configure:1235: checking whether we are using GNU C" >&5
1.1       paf      1235: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
                   1236:   echo $ac_n "(cached) $ac_c" 1>&6
                   1237: else
                   1238:   cat > conftest.c <<EOF
                   1239: #ifdef __GNUC__
                   1240:   yes;
                   1241: #endif
                   1242: EOF
1.59      paf      1243: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       paf      1244:   ac_cv_prog_gcc=yes
                   1245: else
                   1246:   ac_cv_prog_gcc=no
                   1247: fi
                   1248: fi
                   1249: 
                   1250: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
                   1251: 
                   1252: if test $ac_cv_prog_gcc = yes; then
                   1253:   GCC=yes
                   1254: else
                   1255:   GCC=
                   1256: fi
                   1257: 
                   1258: ac_test_CFLAGS="${CFLAGS+set}"
                   1259: ac_save_CFLAGS="$CFLAGS"
                   1260: CFLAGS=
                   1261: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.59      paf      1262: echo "configure:1263: checking whether ${CC-cc} accepts -g" >&5
1.1       paf      1263: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
                   1264:   echo $ac_n "(cached) $ac_c" 1>&6
                   1265: else
                   1266:   echo 'void f(){}' > conftest.c
                   1267: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
                   1268:   ac_cv_prog_cc_g=yes
                   1269: else
                   1270:   ac_cv_prog_cc_g=no
                   1271: fi
                   1272: rm -f conftest*
                   1273: 
                   1274: fi
                   1275: 
                   1276: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
                   1277: if test "$ac_test_CFLAGS" = set; then
                   1278:   CFLAGS="$ac_save_CFLAGS"
                   1279: elif test $ac_cv_prog_cc_g = yes; then
                   1280:   if test "$GCC" = yes; then
                   1281:     CFLAGS="-g -O2"
                   1282:   else
                   1283:     CFLAGS="-g"
                   1284:   fi
                   1285: else
                   1286:   if test "$GCC" = yes; then
                   1287:     CFLAGS="-O2"
                   1288:   else
                   1289:     CFLAGS=
                   1290:   fi
                   1291: fi
                   1292: 
                   1293: ac_ext=c
                   1294: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1295: ac_cpp='$CPP $CPPFLAGS'
                   1296: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1297: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1298: cross_compiling=$ac_cv_prog_cc_cross
                   1299:  echo $ac_n "checking for inline""... $ac_c" 1>&6
1.59      paf      1300: echo "configure:1301: checking for inline" >&5
1.1       paf      1301: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
                   1302:   echo $ac_n "(cached) $ac_c" 1>&6
                   1303: else
                   1304:   ac_cv_c_inline=no
                   1305: for ac_kw in inline __inline__ __inline; do
                   1306:   cat > conftest.$ac_ext <<EOF
1.59      paf      1307: #line 1308 "configure"
1.1       paf      1308: #include "confdefs.h"
                   1309: 
                   1310: int main() {
                   1311: } $ac_kw foo() {
                   1312: ; return 0; }
                   1313: EOF
1.59      paf      1314: if { (eval echo configure:1315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       paf      1315:   rm -rf conftest*
                   1316:   ac_cv_c_inline=$ac_kw; break
                   1317: else
                   1318:   echo "configure: failed program was:" >&5
                   1319:   cat conftest.$ac_ext >&5
                   1320: fi
                   1321: rm -f conftest*
                   1322: done
                   1323: 
                   1324: fi
                   1325: 
                   1326: echo "$ac_t""$ac_cv_c_inline" 1>&6
                   1327: case "$ac_cv_c_inline" in
                   1328:   inline | yes) ;;
                   1329:   no) cat >> confdefs.h <<\EOF
                   1330: #define inline 
                   1331: EOF
                   1332:  ;;
                   1333:   *)  cat >> confdefs.h <<EOF
                   1334: #define inline $ac_cv_c_inline
                   1335: EOF
                   1336:  ;;
                   1337: esac
                   1338: 
                   1339: for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
                   1340: do
                   1341: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   1342: set dummy $ac_prog; ac_word=$2
                   1343: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.59      paf      1344: echo "configure:1345: checking for $ac_word" >&5
1.1       paf      1345: if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
                   1346:   echo $ac_n "(cached) $ac_c" 1>&6
                   1347: else
                   1348:   if test -n "$CXX"; then
                   1349:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
                   1350: else
                   1351:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1352:   ac_dummy="$PATH"
                   1353:   for ac_dir in $ac_dummy; do
                   1354:     test -z "$ac_dir" && ac_dir=.
                   1355:     if test -f $ac_dir/$ac_word; then
                   1356:       ac_cv_prog_CXX="$ac_prog"
                   1357:       break
                   1358:     fi
                   1359:   done
                   1360:   IFS="$ac_save_ifs"
                   1361: fi
                   1362: fi
                   1363: CXX="$ac_cv_prog_CXX"
                   1364: if test -n "$CXX"; then
                   1365:   echo "$ac_t""$CXX" 1>&6
                   1366: else
                   1367:   echo "$ac_t""no" 1>&6
                   1368: fi
                   1369: 
                   1370: test -n "$CXX" && break
                   1371: done
                   1372: test -n "$CXX" || CXX="gcc"
                   1373: 
                   1374: 
                   1375: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.59      paf      1376: echo "configure:1377: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1.1       paf      1377: 
                   1378: ac_ext=C
                   1379: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1380: ac_cpp='$CXXCPP $CPPFLAGS'
                   1381: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1382: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1383: cross_compiling=$ac_cv_prog_cxx_cross
                   1384: 
                   1385: cat > conftest.$ac_ext << EOF
                   1386: 
1.59      paf      1387: #line 1388 "configure"
1.1       paf      1388: #include "confdefs.h"
                   1389: 
                   1390: int main(){return(0);}
                   1391: EOF
1.59      paf      1392: if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      1393:   ac_cv_prog_cxx_works=yes
                   1394:   # If we can't run a trivial program, we are probably using a cross compiler.
                   1395:   if (./conftest; exit) 2>/dev/null; then
                   1396:     ac_cv_prog_cxx_cross=no
                   1397:   else
                   1398:     ac_cv_prog_cxx_cross=yes
                   1399:   fi
                   1400: else
                   1401:   echo "configure: failed program was:" >&5
                   1402:   cat conftest.$ac_ext >&5
                   1403:   ac_cv_prog_cxx_works=no
                   1404: fi
                   1405: rm -fr conftest*
                   1406: ac_ext=c
                   1407: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1408: ac_cpp='$CPP $CPPFLAGS'
                   1409: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1410: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1411: cross_compiling=$ac_cv_prog_cc_cross
                   1412: 
                   1413: echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
                   1414: if test $ac_cv_prog_cxx_works = no; then
                   1415:   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
                   1416: fi
                   1417: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.59      paf      1418: echo "configure:1419: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1       paf      1419: echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
                   1420: cross_compiling=$ac_cv_prog_cxx_cross
                   1421: 
                   1422: echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1.59      paf      1423: echo "configure:1424: checking whether we are using GNU C++" >&5
1.1       paf      1424: if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
                   1425:   echo $ac_n "(cached) $ac_c" 1>&6
                   1426: else
                   1427:   cat > conftest.C <<EOF
                   1428: #ifdef __GNUC__
                   1429:   yes;
                   1430: #endif
                   1431: EOF
1.59      paf      1432: if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       paf      1433:   ac_cv_prog_gxx=yes
                   1434: else
                   1435:   ac_cv_prog_gxx=no
                   1436: fi
                   1437: fi
                   1438: 
                   1439: echo "$ac_t""$ac_cv_prog_gxx" 1>&6
                   1440: 
                   1441: if test $ac_cv_prog_gxx = yes; then
                   1442:   GXX=yes
                   1443: else
                   1444:   GXX=
                   1445: fi
                   1446: 
                   1447: ac_test_CXXFLAGS="${CXXFLAGS+set}"
                   1448: ac_save_CXXFLAGS="$CXXFLAGS"
                   1449: CXXFLAGS=
                   1450: echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1.59      paf      1451: echo "configure:1452: checking whether ${CXX-g++} accepts -g" >&5
1.1       paf      1452: if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
                   1453:   echo $ac_n "(cached) $ac_c" 1>&6
                   1454: else
                   1455:   echo 'void f(){}' > conftest.cc
                   1456: if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
                   1457:   ac_cv_prog_cxx_g=yes
                   1458: else
                   1459:   ac_cv_prog_cxx_g=no
                   1460: fi
                   1461: rm -f conftest*
                   1462: 
                   1463: fi
                   1464: 
                   1465: echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
                   1466: if test "$ac_test_CXXFLAGS" = set; then
                   1467:   CXXFLAGS="$ac_save_CXXFLAGS"
                   1468: elif test $ac_cv_prog_cxx_g = yes; then
                   1469:   if test "$GXX" = yes; then
                   1470:     CXXFLAGS="-g -O2"
                   1471:   else
                   1472:     CXXFLAGS="-g"
                   1473:   fi
                   1474: else
                   1475:   if test "$GXX" = yes; then
                   1476:     CXXFLAGS="-O2"
                   1477:   else
                   1478:     CXXFLAGS=
                   1479:   fi
                   1480: fi
                   1481: 
                   1482: ac_ext=C
                   1483: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1484: ac_cpp='$CXXCPP $CPPFLAGS'
                   1485: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1486: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1487: cross_compiling=$ac_cv_prog_cxx_cross
                   1488: 
                   1489: 
                   1490: 
1.60    ! paf      1491: # Check whether --enable-safe-mode or --disable-safe-mode was given.
        !          1492: if test "${enable_safe_mode+set}" = set; then
        !          1493:   enableval="$enable_safe_mode"
1.1       paf      1494:   
1.60    ! paf      1495:     SAFE_MODE=$enableval
        !          1496: 
1.1       paf      1497: 
                   1498: fi
                   1499: 
1.60    ! paf      1500: if test "$SAFE_MODE" = "no"; then
        !          1501:        echo "configure: warning: enabling reading of files belonging to group+user other then effective" 1>&2
        !          1502: else
        !          1503:        cat >> confdefs.h <<\EOF
        !          1504: #define PA_SAFE_MODE 
        !          1505: EOF
1.1       paf      1506: 
                   1507: fi
                   1508: 
1.13      paf      1509: # Check whether --enable-execs or --disable-execs was given.
                   1510: if test "${enable_execs+set}" = set; then
                   1511:   enableval="$enable_execs"
                   1512:   
                   1513: if test "$enableval" = "no"; then
1.14      paf      1514:        echo "configure: warning: disabling file execs" 1>&2
1.13      paf      1515:        cat >> confdefs.h <<\EOF
                   1516: #define NO_PA_EXECS 
                   1517: EOF
                   1518: 
                   1519: fi
                   1520: 
                   1521: 
                   1522: fi
                   1523: 
                   1524: 
1.60    ! paf      1525: # Check whether --enable-string-origins or --disable-string-origins was given.
        !          1526: if test "${enable_string_origins+set}" = set; then
        !          1527:   enableval="$enable_string_origins"
1.14      paf      1528:   
                   1529: if test "$enableval" = "no"; then
1.60    ! paf      1530:        echo "configure: warning: disabling string origin tracking" 1>&2
1.14      paf      1531:        cat >> confdefs.h <<\EOF
1.60    ! paf      1532: #define NO_STRING_ORIGIN 
1.14      paf      1533: EOF
                   1534: 
                   1535: fi
                   1536: 
                   1537: 
                   1538: fi
                   1539: 
1.60    ! paf      1540: 
        !          1541: 
1.18      paf      1542: srccharsetsdir=$srcdir/etc/parser3.charsets
1.17      paf      1543: CHARSETS_REQUESTED="windows-1251"
                   1544: # Check whether --with-charsets or --without-charsets was given.
                   1545: if test "${with_charsets+set}" = set; then
                   1546:   withval="$with_charsets"
                   1547:   CHARSETS_REQUESTED=`echo $withval | sed -e 's/,/ /g'`
                   1548: fi
                   1549: 
                   1550: 
1.18      paf      1551: # Checking whether all requested charsets have corresponding .cfg files
                   1552: for c in $CHARSETS_REQUESTED; do
                   1553:        if test \! -f $srccharsetsdir/$c.cfg; then
                   1554:                { echo "configure: error: bad charset requested "$c" - file $srccharsetsdir/$c.cfg not found" 1>&2; exit 1; }
                   1555:        fi
                   1556: done
1.17      paf      1557: 
1.18      paf      1558: # Switching on commentcharset_XXX='#'
1.17      paf      1559: 
                   1560: 
                   1561:        commentcharset_windows1251='#'
1.18      paf      1562:        for c in $CHARSETS_REQUESTED; do
1.17      paf      1563:                if test "windows-1251" = "$c"; then
1.60    ! paf      1564:                        echo "configure: warning: enabling charset windows-1251" 1>&2
1.18      paf      1565:                        commentcharset_windows1251=
1.17      paf      1566:                fi
                   1567:        done
                   1568:        
                   1569: 
                   1570: 
                   1571:        commentcharset_windows1250='#'
1.18      paf      1572:        for c in $CHARSETS_REQUESTED; do
1.17      paf      1573:                if test "windows-1250" = "$c"; then
1.60    ! paf      1574:                        echo "configure: warning: enabling charset windows-1250" 1>&2
1.18      paf      1575:                        commentcharset_windows1250=
1.17      paf      1576:                fi
                   1577:        done
                   1578:        
                   1579: 
                   1580: 
                   1581:        commentcharset_windows1257='#'
1.18      paf      1582:        for c in $CHARSETS_REQUESTED; do
1.17      paf      1583:                if test "windows-1257" = "$c"; then
1.60    ! paf      1584:                        echo "configure: warning: enabling charset windows-1257" 1>&2
1.18      paf      1585:                        commentcharset_windows1257=
1.17      paf      1586:                fi
                   1587:        done
                   1588:        
                   1589: 
                   1590: 
                   1591:        commentcharset_koi8r='#'
1.18      paf      1592:        for c in $CHARSETS_REQUESTED; do
1.17      paf      1593:                if test "koi8-r" = "$c"; then
1.60    ! paf      1594:                        echo "configure: warning: enabling charset koi8-r" 1>&2
1.18      paf      1595:                        commentcharset_koi8r=
1.17      paf      1596:                fi
                   1597:        done
                   1598:        
                   1599: 
                   1600: 
                   1601: 
1.40      paf      1602: echo $ac_n "checking for dynamic-link library extension""... $ac_c" 1>&6
1.60    ! paf      1603: echo "configure:1604: checking for dynamic-link library extension" >&5
1.40      paf      1604: case "$host_os" in
                   1605: hpux9* | hpux10* | hpux11*)
                   1606:     dll_extension=sl
                   1607:     ;;
                   1608: cygwin)
                   1609:     dll_extension=dll
                   1610:     ;;
                   1611: *)
                   1612:     dll_extension=so
                   1613: esac
                   1614: echo "$ac_t""$dll_extension" 1>&6
                   1615: 
                   1616: 
1.17      paf      1617: # Check whether --with-mysql-client or --without-mysql-client was given.
                   1618: if test "${with_mysql_client+set}" = set; then
                   1619:   withval="$with_mysql_client"
                   1620:   mysql_client=$withval
                   1621: 
                   1622: else
                   1623:   echo $ac_n "checking for mysql client""... $ac_c" 1>&6
1.60    ! paf      1624: echo "configure:1625: checking for mysql client" >&5
1.17      paf      1625:        for lib in \
1.40      paf      1626:                /usr/local/lib/mysql/libmysqlclient.$dll_extension \
                   1627:                /usr/local/lib/libmysqlclient.$dll_extension \
                   1628:                /usr/lib/libmysqlclient.$dll_extension; do
1.17      paf      1629:                if test -f $lib; then mysql_client=$lib; fi
                   1630:        done
                   1631: 
                   1632:        if test -z "$mysql_client"; then
                   1633:                mysql_client="-configure could not guess-"
                   1634:                echo "configure: warning: could not guess mysql client" 1>&2
                   1635:        else
                   1636:                echo "$ac_t""$mysql_client" 1>&6
                   1637:        fi
                   1638: 
                   1639: 
                   1640: fi
                   1641: 
                   1642: 
                   1643: 
                   1644: # Check whether --with-pgsql-client or --without-pgsql-client was given.
                   1645: if test "${with_pgsql_client+set}" = set; then
                   1646:   withval="$with_pgsql_client"
                   1647:   mysql_client=$withval
                   1648: 
                   1649: else
                   1650:   echo $ac_n "checking for pgsql client""... $ac_c" 1>&6
1.60    ! paf      1651: echo "configure:1652: checking for pgsql client" >&5
1.17      paf      1652:        for lib in \
1.40      paf      1653:                /usr/local/pgsql/lib/libpq.$dll_extension \
                   1654:                /usr/local/lib/libpq.$dll_extension \
                   1655:                /usr/lib/libpq.$dll_extension; do
1.17      paf      1656:                if test -f $lib; then pgsql_client=$lib; fi
                   1657:        done
                   1658: 
                   1659:        if test -z "$pgsql_client"; then
                   1660:                pgsql_client="-configure could not guess-"
                   1661:                echo "configure: warning: could not guess pgsql client" 1>&2
                   1662:        else
                   1663:                echo "$ac_t""$pgsql_client" 1>&6
                   1664:        fi
                   1665: 
                   1666: 
                   1667: fi
                   1668: 
                   1669: 
                   1670: 
                   1671: # Check whether --with-oracle-client or --without-oracle-client was given.
                   1672: if test "${with_oracle_client+set}" = set; then
                   1673:   withval="$with_oracle_client"
                   1674:   oracle_client=$withval
                   1675: 
                   1676: else
                   1677:   echo $ac_n "checking for oracle client""... $ac_c" 1>&6
1.60    ! paf      1678: echo "configure:1679: checking for oracle client" >&5
1.40      paf      1679:        lib=$ORACLE_HOME/lib/libclntsh.$dll_extension
1.17      paf      1680:        if test -f $lib; then oracle_client=$lib; fi
                   1681: 
                   1682:        if test -z "$oracle_client"; then
                   1683:                oracle_client="-configure could not guess-"
                   1684:                echo "configure: warning: could not guess oracle client" 1>&2
                   1685:        else
                   1686:                oracle_client="$oracle_client?ORACLE_HOME=$ORACLE_HOME&ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data"
                   1687:                echo "$ac_t""$oracle_client" 1>&6
                   1688:        fi
                   1689: 
                   1690: 
                   1691: fi
                   1692: 
                   1693: 
                   1694: 
                   1695: 
1.14      paf      1696: 
1.1       paf      1697: # Check whether --with-pathlink or --without-pathlink was given.
                   1698: if test "${with_pathlink+set}" = set; then
                   1699:   withval="$with_pathlink"
                   1700:   LD_PATHLINK=$withval
                   1701: 
                   1702: fi
                   1703: 
1.59      paf      1704: # Check whether --with-link-stdcpp or --without-link-stdcpp was given.
                   1705: if test "${with_link_stdcpp+set}" = set; then
                   1706:   withval="$with_link_stdcpp"
                   1707:   
                   1708: LIBSTDCPP_PATH=$withval
                   1709: if test "$LIBSTDCPP_PATH" = "no"; then
                   1710:        echo "configure: warning: disabling libstdc++ linkage" 1>&2
                   1711: else
                   1712:        if test -z "$LD_PATHLINK"; then
                   1713:            { echo "configure: error: when using --with-link-stdcpp one must specify --with-pathlink" 1>&2; exit 1; }
                   1714:        fi
                   1715:        LIBS="$LIBS -Wl,$LD_PATHLINK -Wl,$LIBSTDCPP_PATH"
                   1716: fi
                   1717: 
                   1718: else
                   1719:   #pseudo path, meaning still link libstdcpp. value needed to trick next _CONDITIONAL
                   1720: LIBSTDCPP_PATH=" "
                   1721: 
                   1722: fi
                   1723: 
                   1724: 
                   1725: 
                   1726: if test "$LIBSTDCPP_PATH" = "no"; then
                   1727:   DO_NOT_LINK_LIBSTDCPP_TRUE=
                   1728:   DO_NOT_LINK_LIBSTDCPP_FALSE='#'
                   1729: else
                   1730:   DO_NOT_LINK_LIBSTDCPP_TRUE='#'
                   1731:   DO_NOT_LINK_LIBSTDCPP_FALSE=
                   1732: fi
                   1733: 
                   1734: 
                   1735: 
1.37      paf      1736: # Check whether --with-sjlj-exceptions or --without-sjlj-exceptions was given.
                   1737: if test "${with_sjlj_exceptions+set}" = set; then
                   1738:   withval="$with_sjlj_exceptions"
                   1739:   cat >> confdefs.h <<\EOF
                   1740: #define PA_WITH_SJLJ_EXCEPTIONS 
                   1741: EOF
                   1742: 
                   1743: 
                   1744: fi
                   1745: 
1.1       paf      1746: 
1.15      paf      1747: 
1.7       paf      1748: # Check whether --with-glib-config or --without-glib-config was given.
                   1749: if test "${with_glib_config+set}" = set; then
                   1750:   withval="$with_glib_config"
                   1751:   GLIB_CONFIG=$withval
                   1752: 
                   1753: fi
                   1754: 
                   1755: 
1.10      paf      1756: # Check whether --with-shared-xml or --without-shared-xml was given.
                   1757: if test "${with_shared_xml+set}" = set; then
                   1758:   withval="$with_shared_xml"
1.1       paf      1759:   
                   1760:     GNOME_XML=$withval
1.11      paf      1761:     XMLBIN="$GNOME_XML/bin"
                   1762:     XMLINC="$GNOME_XML/include"
                   1763:     XMLLIB="$GNOME_XML/lib"
1.1       paf      1764: 
1.11      paf      1765:     if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
1.1       paf      1766:        { echo "configure: error: $GNOME_XML does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
                   1767:     fi
                   1768: 
                   1769:     cat >> confdefs.h <<\EOF
                   1770: #define XML 
                   1771: EOF
                   1772: 
                   1773:     
1.11      paf      1774:     LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
                   1775:     LIBGDOME_SO_NAME=`cd $XMLLIB ; ls libgdome.?? libgdome.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
                   1776:     LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
                   1777:     LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1.7       paf      1778: 
                   1779:     if test -z "$GLIB_CONFIG"; then
1.11      paf      1780:            GLIB_CONFIG=$XMLBIN/glib-config
1.7       paf      1781:            if test \! -x $GLIB_CONFIG; then
                   1782:                GLIB_CONFIG=glib-config
                   1783:            fi
1.1       paf      1784:     fi
                   1785:     GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
                   1786:     GLIB_LIBS=`$GLIB_CONFIG --libs`
                   1787: 
1.11      paf      1788:     XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
                   1789:     XML_LIBS="$GLIB_LIBS -L$XMLLIB -l$LIBXML2_SO_NAME -l$LIBGDOME_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
1.1       paf      1790:     if test \! -z "$LD_PATHLINK"; then
1.11      paf      1791:        XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
1.1       paf      1792:     fi
                   1793: 
                   1794: fi
                   1795: 
1.10      paf      1796: # Check whether --with-static-xml or --without-static-xml was given.
                   1797: if test "${with_static_xml+set}" = set; then
                   1798:   withval="$with_static_xml"
                   1799:   
                   1800:     GNOME_XML=$withval
1.11      paf      1801:     XMLBIN="$GNOME_XML/bin"
                   1802:     XMLINC="$GNOME_XML/include"
                   1803:     XMLLIB="$GNOME_XML/lib"
1.10      paf      1804: 
1.11      paf      1805:     if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
1.10      paf      1806:        { echo "configure: error: $GNOME_XML does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
                   1807:     fi
                   1808: 
                   1809:     cat >> confdefs.h <<\EOF
                   1810: #define XML 
                   1811: EOF
                   1812: 
                   1813: 
                   1814:     if test -z "$GLIB_CONFIG"; then
1.11      paf      1815:            GLIB_CONFIG=$XMLBIN/glib-config
1.10      paf      1816:            if test \! -x $GLIB_CONFIG; then
                   1817:                GLIB_CONFIG=glib-config
                   1818:            fi
                   1819:     fi
                   1820:     GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
                   1821: 
1.11      paf      1822:     GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
                   1823:     GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
                   1824:     XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
                   1825:     XML_LIBS="$XMLLIB/libgdome.a $XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a $GLIB_DIR/lib$GLIB_NAME.a"
1.10      paf      1826: 
                   1827: fi
                   1828: 
                   1829: 
1.1       paf      1830: 
                   1831: 
1.29      paf      1832: # Check whether --with-shared-mailreceive or --without-shared-mailreceive was given.
                   1833: if test "${with_shared_mailreceive+set}" = set; then
                   1834:   withval="$with_shared_mailreceive"
                   1835:   
                   1836:     GNOME_MIME=$withval
                   1837:     MIMEBIN="$GNOME_MIME/bin"
                   1838:     MIMEINC="$GNOME_MIME/include"
                   1839:     MIMELIB="$GNOME_MIME/lib"
                   1840: 
                   1841:     if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
                   1842:        { echo "configure: error: $GNOME_MIME does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
                   1843:     fi
                   1844: 
                   1845:     cat >> confdefs.h <<\EOF
                   1846: #define WITH_MAILRECEIVE 
                   1847: EOF
                   1848: 
                   1849:     
                   1850:     LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
                   1851: 
                   1852:     if test -z "$GLIB_CONFIG"; then
                   1853:            GLIB_CONFIG=$MIMEBIN/glib-config
                   1854:            if test \! -x $GLIB_CONFIG; then
                   1855:                GLIB_CONFIG=glib-config
                   1856:            fi
                   1857:     fi
                   1858:     GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
                   1859:     GLIB_LIBS=`$GLIB_CONFIG --libs`
                   1860: 
                   1861:     MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
                   1862:     MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME"
                   1863:     if test \! -z "$LD_PATHLINK"; then
                   1864:        MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB"
                   1865:     fi
                   1866: 
                   1867: fi
                   1868: 
                   1869: # Check whether --with-static-mailreceive or --without-static-mailreceive was given.
                   1870: if test "${with_static_mailreceive+set}" = set; then
                   1871:   withval="$with_static_mailreceive"
                   1872:   
                   1873:     GNOME_MIME=$withval
                   1874:     MIMEBIN="$GNOME_MIME/bin"
                   1875:     MIMEINC="$GNOME_MIME/include"
                   1876:     MIMELIB="$GNOME_MIME/lib"
                   1877: 
                   1878:     if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
                   1879:        { echo "configure: error: $GNOME_MIME does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
                   1880:     fi
                   1881: 
                   1882:     cat >> confdefs.h <<\EOF
                   1883: #define WITH_MAILRECEIVE 
                   1884: EOF
                   1885: 
                   1886: 
                   1887:     if test -z "$GLIB_CONFIG"; then
                   1888:            GLIB_CONFIG=$MIMEBIN/glib-config
                   1889:            if test \! -x $GLIB_CONFIG; then
                   1890:                GLIB_CONFIG=glib-config
                   1891:            fi
                   1892:     fi
                   1893:     GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
                   1894: 
                   1895:     GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
                   1896:     GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
                   1897:     MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
                   1898:     MIME_LIBS="$MIMELIB/libgmime.a $GLIB_DIR/lib$GLIB_NAME.a"
                   1899: 
                   1900: fi
                   1901: 
                   1902: 
                   1903: 
                   1904: 
1.16      paf      1905: 
                   1906: # Check whether --with-sendmail or --without-sendmail was given.
                   1907: if test "${with_sendmail+set}" = set; then
                   1908:   withval="$with_sendmail"
                   1909:   cat >> confdefs.h <<EOF
                   1910: #define PA_FORCED_SENDMAIL "$withval"
                   1911: EOF
                   1912: 
                   1913: 
                   1914: fi
                   1915: 
                   1916: 
                   1917: 
1.12      paf      1918: # Check whether --with-apache13 or --without-apache13 was given.
                   1919: if test "${with_apache13+set}" = set; then
                   1920:   withval="$with_apache13"
                   1921:   APACHE13=$withval
                   1922:     if test \! -f "$APACHE13/src/include/httpd.h"; then
                   1923:        { echo "configure: error: $APACHE13 does not seem to be valid Apache13 source distribution directory" 1>&2; exit 1; }
                   1924:     fi
                   1925: 
                   1926: fi
                   1927: 
                   1928: 
                   1929: 
                   1930: 
                   1931: if test -n "$APACHE13"; then
                   1932:   COMPILE_APACHE13_MODULE_TRUE=
                   1933:   COMPILE_APACHE13_MODULE_FALSE='#'
                   1934: else
                   1935:   COMPILE_APACHE13_MODULE_TRUE='#'
                   1936:   COMPILE_APACHE13_MODULE_FALSE=
                   1937: fi
                   1938: 
                   1939: 
1.54      paf      1940:   case "$enable_ltdl_convenience" in
                   1941:   no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
                   1942:   "") enable_ltdl_convenience=yes
                   1943:       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
                   1944:   esac
                   1945:   LIBLTDL='${top_builddir}/'src/lib/ltdl/libltdlc.a
                   1946:   INCLTDL='-I${top_srcdir}/'src/lib/ltdl
1.1       paf      1947: 
                   1948: 
                   1949: 
                   1950: 
1.54      paf      1951: subdirs="src/lib/ltdl"
1.8       paf      1952: 
                   1953: LIBADD_DL=
                   1954: echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1.60    ! paf      1955: echo "configure:1956: checking for dlopen in -ldl" >&5
1.8       paf      1956: ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
                   1957: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1958:   echo $ac_n "(cached) $ac_c" 1>&6
1.1       paf      1959: else
1.8       paf      1960:   ac_save_LIBS="$LIBS"
                   1961: LIBS="-ldl  $LIBS"
                   1962: cat > conftest.$ac_ext <<EOF
1.60    ! paf      1963: #line 1964 "configure"
1.8       paf      1964: #include "confdefs.h"
                   1965: /* Override any gcc2 internal prototype to avoid an error.  */
                   1966: #ifdef __cplusplus
                   1967: extern "C"
                   1968: #endif
                   1969: /* We use char because int might match the return type of a gcc2
                   1970:     builtin and then its argument prototype would still apply.  */
                   1971: char dlopen();
1.1       paf      1972: 
1.8       paf      1973: int main() {
                   1974: dlopen()
                   1975: ; return 0; }
                   1976: EOF
1.60    ! paf      1977: if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8       paf      1978:   rm -rf conftest*
                   1979:   eval "ac_cv_lib_$ac_lib_var=yes"
1.1       paf      1980: else
1.8       paf      1981:   echo "configure: failed program was:" >&5
                   1982:   cat conftest.$ac_ext >&5
                   1983:   rm -rf conftest*
                   1984:   eval "ac_cv_lib_$ac_lib_var=no"
1.1       paf      1985: fi
1.8       paf      1986: rm -f conftest*
                   1987: LIBS="$ac_save_LIBS"
1.1       paf      1988: 
1.8       paf      1989: fi
                   1990: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1991:   echo "$ac_t""yes" 1>&6
                   1992:   cat >> confdefs.h <<\EOF
                   1993: #define HAVE_LIBDL 1
                   1994: EOF
                   1995:  LIBADD_DL="-ldl"
                   1996: else
                   1997:   echo "$ac_t""no" 1>&6
                   1998: echo $ac_n "checking for dlopen""... $ac_c" 1>&6
1.60    ! paf      1999: echo "configure:2000: checking for dlopen" >&5
1.8       paf      2000: if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
                   2001:   echo $ac_n "(cached) $ac_c" 1>&6
1.1       paf      2002: else
1.8       paf      2003:   cat > conftest.$ac_ext <<EOF
1.60    ! paf      2004: #line 2005 "configure"
1.8       paf      2005: #include "confdefs.h"
                   2006: /* System header to define __stub macros and hopefully few prototypes,
                   2007:     which can conflict with char dlopen(); below.  */
                   2008: #include <assert.h>
                   2009: /* Override any gcc2 internal prototype to avoid an error.  */
                   2010: #ifdef __cplusplus
                   2011: extern "C"
                   2012: #endif
                   2013: /* We use char because int might match the return type of a gcc2
                   2014:     builtin and then its argument prototype would still apply.  */
                   2015: char dlopen();
1.1       paf      2016: 
1.8       paf      2017: int main() {
1.1       paf      2018: 
1.8       paf      2019: /* The GNU C library defines this for functions which it implements
                   2020:     to always fail with ENOSYS.  Some functions are actually named
                   2021:     something starting with __ and the normal name is an alias.  */
                   2022: #if defined (__stub_dlopen) || defined (__stub___dlopen)
                   2023: choke me
                   2024: #else
                   2025: dlopen();
                   2026: #endif
1.1       paf      2027: 
1.8       paf      2028: ; return 0; }
                   2029: EOF
1.60    ! paf      2030: if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8       paf      2031:   rm -rf conftest*
                   2032:   eval "ac_cv_func_dlopen=yes"
1.1       paf      2033: else
1.8       paf      2034:   echo "configure: failed program was:" >&5
                   2035:   cat conftest.$ac_ext >&5
                   2036:   rm -rf conftest*
                   2037:   eval "ac_cv_func_dlopen=no"
1.1       paf      2038: fi
1.8       paf      2039: rm -f conftest*
1.1       paf      2040: fi
                   2041: 
1.8       paf      2042: if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
                   2043:   echo "$ac_t""yes" 1>&6
                   2044:   cat >> confdefs.h <<\EOF
                   2045: #define HAVE_LIBDL 1
                   2046: EOF
                   2047: 
1.1       paf      2048: else
                   2049:   echo "$ac_t""no" 1>&6
                   2050: fi
1.8       paf      2051: 
                   2052: fi
                   2053: 
                   2054: echo $ac_n "checking for shl_load""... $ac_c" 1>&6
1.60    ! paf      2055: echo "configure:2056: checking for shl_load" >&5
1.8       paf      2056: if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
1.1       paf      2057:   echo $ac_n "(cached) $ac_c" 1>&6
                   2058: else
1.8       paf      2059:   cat > conftest.$ac_ext <<EOF
1.60    ! paf      2060: #line 2061 "configure"
1.8       paf      2061: #include "confdefs.h"
                   2062: /* System header to define __stub macros and hopefully few prototypes,
                   2063:     which can conflict with char shl_load(); below.  */
                   2064: #include <assert.h>
                   2065: /* Override any gcc2 internal prototype to avoid an error.  */
                   2066: #ifdef __cplusplus
                   2067: extern "C"
                   2068: #endif
                   2069: /* We use char because int might match the return type of a gcc2
                   2070:     builtin and then its argument prototype would still apply.  */
                   2071: char shl_load();
1.1       paf      2072: 
1.8       paf      2073: int main() {
1.1       paf      2074: 
1.8       paf      2075: /* The GNU C library defines this for functions which it implements
                   2076:     to always fail with ENOSYS.  Some functions are actually named
                   2077:     something starting with __ and the normal name is an alias.  */
                   2078: #if defined (__stub_shl_load) || defined (__stub___shl_load)
                   2079: choke me
                   2080: #else
                   2081: shl_load();
                   2082: #endif
1.1       paf      2083: 
1.8       paf      2084: ; return 0; }
                   2085: EOF
1.60    ! paf      2086: if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8       paf      2087:   rm -rf conftest*
                   2088:   eval "ac_cv_func_shl_load=yes"
1.1       paf      2089: else
1.8       paf      2090:   echo "configure: failed program was:" >&5
                   2091:   cat conftest.$ac_ext >&5
                   2092:   rm -rf conftest*
                   2093:   eval "ac_cv_func_shl_load=no"
1.1       paf      2094: fi
1.8       paf      2095: rm -f conftest*
1.1       paf      2096: fi
                   2097: 
1.8       paf      2098: if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
                   2099:   echo "$ac_t""yes" 1>&6
                   2100:   cat >> confdefs.h <<\EOF
                   2101: #define HAVE_SHL_LOAD 1
                   2102: EOF
1.1       paf      2103: 
1.8       paf      2104: else
                   2105:   echo "$ac_t""no" 1>&6
                   2106: echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1.60    ! paf      2107: echo "configure:2108: checking for shl_load in -ldld" >&5
1.8       paf      2108: ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
                   2109: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1.1       paf      2110:   echo $ac_n "(cached) $ac_c" 1>&6
                   2111: else
1.8       paf      2112:   ac_save_LIBS="$LIBS"
                   2113: LIBS="-ldld  $LIBS"
                   2114: cat > conftest.$ac_ext <<EOF
1.60    ! paf      2115: #line 2116 "configure"
1.8       paf      2116: #include "confdefs.h"
                   2117: /* Override any gcc2 internal prototype to avoid an error.  */
                   2118: #ifdef __cplusplus
                   2119: extern "C"
                   2120: #endif
                   2121: /* We use char because int might match the return type of a gcc2
                   2122:     builtin and then its argument prototype would still apply.  */
                   2123: char shl_load();
                   2124: 
                   2125: int main() {
                   2126: shl_load()
                   2127: ; return 0; }
                   2128: EOF
1.60    ! paf      2129: if { (eval echo configure:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8       paf      2130:   rm -rf conftest*
                   2131:   eval "ac_cv_lib_$ac_lib_var=yes"
1.1       paf      2132: else
1.8       paf      2133:   echo "configure: failed program was:" >&5
                   2134:   cat conftest.$ac_ext >&5
                   2135:   rm -rf conftest*
                   2136:   eval "ac_cv_lib_$ac_lib_var=no"
1.1       paf      2137: fi
1.8       paf      2138: rm -f conftest*
                   2139: LIBS="$ac_save_LIBS"
                   2140: 
1.1       paf      2141: fi
1.8       paf      2142: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1.1       paf      2143:   echo "$ac_t""yes" 1>&6
1.8       paf      2144:   cat >> confdefs.h <<\EOF
                   2145: #define HAVE_SHL_LOAD 1
                   2146: EOF
                   2147:  LIBADD_DL="$LIBADD_DL -ldld"
1.1       paf      2148: else
                   2149:   echo "$ac_t""no" 1>&6
                   2150: fi
                   2151: 
1.8       paf      2152: fi
1.1       paf      2153: 
1.8       paf      2154: echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
1.60    ! paf      2155: echo "configure:2156: checking for dld_link in -ldld" >&5
1.8       paf      2156: ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
                   2157: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2158:   echo $ac_n "(cached) $ac_c" 1>&6
                   2159: else
                   2160:   ac_save_LIBS="$LIBS"
                   2161: LIBS="-ldld  $LIBS"
                   2162: cat > conftest.$ac_ext <<EOF
1.60    ! paf      2163: #line 2164 "configure"
1.8       paf      2164: #include "confdefs.h"
                   2165: /* Override any gcc2 internal prototype to avoid an error.  */
                   2166: #ifdef __cplusplus
                   2167: extern "C"
                   2168: #endif
                   2169: /* We use char because int might match the return type of a gcc2
                   2170:     builtin and then its argument prototype would still apply.  */
                   2171: char dld_link();
1.1       paf      2172: 
1.8       paf      2173: int main() {
                   2174: dld_link()
                   2175: ; return 0; }
                   2176: EOF
1.60    ! paf      2177: if { (eval echo configure:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8       paf      2178:   rm -rf conftest*
                   2179:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2180: else
                   2181:   echo "configure: failed program was:" >&5
                   2182:   cat conftest.$ac_ext >&5
                   2183:   rm -rf conftest*
                   2184:   eval "ac_cv_lib_$ac_lib_var=no"
                   2185: fi
                   2186: rm -f conftest*
                   2187: LIBS="$ac_save_LIBS"
1.1       paf      2188: 
1.8       paf      2189: fi
                   2190: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2191:   echo "$ac_t""yes" 1>&6
                   2192:   cat >> confdefs.h <<\EOF
                   2193: #define HAVE_DLD 1
                   2194: EOF
                   2195: test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
                   2196: else
                   2197:   echo "$ac_t""no" 1>&6
1.1       paf      2198: fi
                   2199: 
                   2200: 
                   2201: 
1.8       paf      2202: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
                   2203:  LIBS_SAVE="$LIBS"
                   2204:  LIBS="$LIBS $LIBADD_DL"
                   2205:  for ac_func in dlerror
                   2206: do
                   2207: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.60    ! paf      2208: echo "configure:2209: checking for $ac_func" >&5
1.8       paf      2209: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1.1       paf      2210:   echo $ac_n "(cached) $ac_c" 1>&6
                   2211: else
                   2212:   cat > conftest.$ac_ext <<EOF
1.60    ! paf      2213: #line 2214 "configure"
1.1       paf      2214: #include "confdefs.h"
1.8       paf      2215: /* System header to define __stub macros and hopefully few prototypes,
                   2216:     which can conflict with char $ac_func(); below.  */
                   2217: #include <assert.h>
                   2218: /* Override any gcc2 internal prototype to avoid an error.  */
                   2219: #ifdef __cplusplus
                   2220: extern "C"
                   2221: #endif
                   2222: /* We use char because int might match the return type of a gcc2
                   2223:     builtin and then its argument prototype would still apply.  */
                   2224: char $ac_func();
1.1       paf      2225: 
                   2226: int main() {
                   2227: 
1.8       paf      2228: /* The GNU C library defines this for functions which it implements
                   2229:     to always fail with ENOSYS.  Some functions are actually named
                   2230:     something starting with __ and the normal name is an alias.  */
                   2231: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   2232: choke me
                   2233: #else
                   2234: $ac_func();
                   2235: #endif
                   2236: 
1.1       paf      2237: ; return 0; }
                   2238: EOF
1.60    ! paf      2239: if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2240:   rm -rf conftest*
1.8       paf      2241:   eval "ac_cv_func_$ac_func=yes"
1.1       paf      2242: else
                   2243:   echo "configure: failed program was:" >&5
                   2244:   cat conftest.$ac_ext >&5
                   2245:   rm -rf conftest*
1.8       paf      2246:   eval "ac_cv_func_$ac_func=no"
1.1       paf      2247: fi
                   2248: rm -f conftest*
                   2249: fi
                   2250: 
1.8       paf      2251: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   2252:   echo "$ac_t""yes" 1>&6
                   2253:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   2254:   cat >> confdefs.h <<EOF
                   2255: #define $ac_tr_func 1
1.1       paf      2256: EOF
1.8       paf      2257:  
1.1       paf      2258: else
1.8       paf      2259:   echo "$ac_t""no" 1>&6
1.1       paf      2260: fi
1.8       paf      2261: done
1.1       paf      2262: 
1.8       paf      2263:  LIBS="$LIBS_SAVE"
1.1       paf      2264: fi
                   2265: 
                   2266: 
                   2267: echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1.60    ! paf      2268: echo "configure:2269: checking how to run the C++ preprocessor" >&5
1.1       paf      2269: if test -z "$CXXCPP"; then
                   2270: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
                   2271:   echo $ac_n "(cached) $ac_c" 1>&6
                   2272: else
                   2273:   ac_ext=C
                   2274: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2275: ac_cpp='$CXXCPP $CPPFLAGS'
                   2276: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2277: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2278: cross_compiling=$ac_cv_prog_cxx_cross
                   2279:   CXXCPP="${CXX-g++} -E"
                   2280:   cat > conftest.$ac_ext <<EOF
1.60    ! paf      2281: #line 2282 "configure"
1.1       paf      2282: #include "confdefs.h"
                   2283: #include <stdlib.h>
                   2284: EOF
                   2285: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.60    ! paf      2286: { (eval echo configure:2287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       paf      2287: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   2288: if test -z "$ac_err"; then
                   2289:   :
                   2290: else
                   2291:   echo "$ac_err" >&5
                   2292:   echo "configure: failed program was:" >&5
                   2293:   cat conftest.$ac_ext >&5
                   2294:   rm -rf conftest*
                   2295:   CXXCPP=/lib/cpp
                   2296: fi
                   2297: rm -f conftest*
                   2298:   ac_cv_prog_CXXCPP="$CXXCPP"
                   2299: ac_ext=C
                   2300: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2301: ac_cpp='$CXXCPP $CPPFLAGS'
                   2302: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2303: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2304: cross_compiling=$ac_cv_prog_cxx_cross
                   2305: fi
                   2306: fi
                   2307: CXXCPP="$ac_cv_prog_CXXCPP"
                   2308: echo "$ac_t""$CXXCPP" 1>&6
                   2309: 
                   2310: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.60    ! paf      2311: echo "configure:2312: checking for ANSI C header files" >&5
1.1       paf      2312: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
                   2313:   echo $ac_n "(cached) $ac_c" 1>&6
                   2314: else
                   2315:   cat > conftest.$ac_ext <<EOF
1.60    ! paf      2316: #line 2317 "configure"
1.1       paf      2317: #include "confdefs.h"
                   2318: #include <stdlib.h>
                   2319: #include <stdarg.h>
                   2320: #include <string.h>
                   2321: #include <float.h>
                   2322: EOF
                   2323: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.60    ! paf      2324: { (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       paf      2325: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   2326: if test -z "$ac_err"; then
                   2327:   rm -rf conftest*
                   2328:   ac_cv_header_stdc=yes
                   2329: else
                   2330:   echo "$ac_err" >&5
                   2331:   echo "configure: failed program was:" >&5
                   2332:   cat conftest.$ac_ext >&5
                   2333:   rm -rf conftest*
                   2334:   ac_cv_header_stdc=no
                   2335: fi
                   2336: rm -f conftest*
                   2337: 
                   2338: if test $ac_cv_header_stdc = yes; then
                   2339:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   2340: cat > conftest.$ac_ext <<EOF
1.60    ! paf      2341: #line 2342 "configure"
1.1       paf      2342: #include "confdefs.h"
                   2343: #include <string.h>
                   2344: EOF
                   2345: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2346:   egrep "memchr" >/dev/null 2>&1; then
                   2347:   :
                   2348: else
                   2349:   rm -rf conftest*
                   2350:   ac_cv_header_stdc=no
                   2351: fi
                   2352: rm -f conftest*
                   2353: 
                   2354: fi
                   2355: 
                   2356: if test $ac_cv_header_stdc = yes; then
                   2357:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   2358: cat > conftest.$ac_ext <<EOF
1.60    ! paf      2359: #line 2360 "configure"
1.1       paf      2360: #include "confdefs.h"
                   2361: #include <stdlib.h>
                   2362: EOF
                   2363: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2364:   egrep "free" >/dev/null 2>&1; then
                   2365:   :
                   2366: else
                   2367:   rm -rf conftest*
                   2368:   ac_cv_header_stdc=no
                   2369: fi
                   2370: rm -f conftest*
                   2371: 
                   2372: fi
                   2373: 
                   2374: if test $ac_cv_header_stdc = yes; then
                   2375:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   2376: if test "$cross_compiling" = yes; then
                   2377:   :
                   2378: else
                   2379:   cat > conftest.$ac_ext <<EOF
1.60    ! paf      2380: #line 2381 "configure"
1.1       paf      2381: #include "confdefs.h"
                   2382: #ifdef __cplusplus
                   2383: extern "C" void exit(int);
                   2384: #endif
                   2385: #include <ctype.h>
                   2386: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   2387: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   2388: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   2389: int main () { int i; for (i = 0; i < 256; i++)
                   2390: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
                   2391: exit (0); }
                   2392: 
                   2393: EOF
1.60    ! paf      2394: if { (eval echo configure:2395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       paf      2395: then
                   2396:   :
                   2397: else
                   2398:   echo "configure: failed program was:" >&5
                   2399:   cat conftest.$ac_ext >&5
                   2400:   rm -fr conftest*
                   2401:   ac_cv_header_stdc=no
                   2402: fi
                   2403: rm -fr conftest*
                   2404: fi
                   2405: 
                   2406: fi
                   2407: fi
                   2408: 
                   2409: echo "$ac_t""$ac_cv_header_stdc" 1>&6
                   2410: if test $ac_cv_header_stdc = yes; then
                   2411:   cat >> confdefs.h <<\EOF
                   2412: #define STDC_HEADERS 1
                   2413: EOF
                   2414: 
                   2415: fi
                   2416: 
                   2417: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.60    ! paf      2418: echo "configure:2419: checking for size_t" >&5
1.1       paf      2419: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
                   2420:   echo $ac_n "(cached) $ac_c" 1>&6
                   2421: else
                   2422:   cat > conftest.$ac_ext <<EOF
1.60    ! paf      2423: #line 2424 "configure"
1.1       paf      2424: #include "confdefs.h"
                   2425: #include <sys/types.h>
                   2426: #if STDC_HEADERS
                   2427: #include <stdlib.h>
                   2428: #include <stddef.h>
                   2429: #endif
                   2430: EOF
                   2431: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2432:   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
                   2433:   rm -rf conftest*
                   2434:   ac_cv_type_size_t=yes
                   2435: else
                   2436:   rm -rf conftest*
                   2437:   ac_cv_type_size_t=no
                   2438: fi
                   2439: rm -f conftest*
                   2440: 
                   2441: fi
                   2442: echo "$ac_t""$ac_cv_type_size_t" 1>&6
                   2443: if test $ac_cv_type_size_t = no; then
                   2444:   cat >> confdefs.h <<\EOF
                   2445: #define size_t unsigned
                   2446: EOF
                   2447: 
                   2448: fi
                   2449: 
1.30      paf      2450: echo $ac_n "checking for off_t""... $ac_c" 1>&6
1.60    ! paf      2451: echo "configure:2452: checking for off_t" >&5
1.30      paf      2452: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
                   2453:   echo $ac_n "(cached) $ac_c" 1>&6
                   2454: else
                   2455:   cat > conftest.$ac_ext <<EOF
1.60    ! paf      2456: #line 2457 "configure"
1.30      paf      2457: #include "confdefs.h"
                   2458: #include <sys/types.h>
                   2459: #if STDC_HEADERS
                   2460: #include <stdlib.h>
                   2461: #include <stddef.h>
                   2462: #endif
                   2463: EOF
                   2464: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2465:   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
                   2466:   rm -rf conftest*
                   2467:   ac_cv_type_off_t=yes
                   2468: else
                   2469:   rm -rf conftest*
                   2470:   ac_cv_type_off_t=no
                   2471: fi
                   2472: rm -f conftest*
                   2473: 
                   2474: fi
                   2475: echo "$ac_t""$ac_cv_type_off_t" 1>&6
                   2476: if test $ac_cv_type_off_t = no; then
                   2477:   cat >> confdefs.h <<\EOF
                   2478: #define off_t long
                   2479: EOF
                   2480: 
                   2481: fi
                   2482: 
                   2483: echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
1.60    ! paf      2484: echo "configure:2485: checking for ssize_t" >&5
1.30      paf      2485: if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
                   2486:   echo $ac_n "(cached) $ac_c" 1>&6
                   2487: else
                   2488:   cat > conftest.$ac_ext <<EOF
1.60    ! paf      2489: #line 2490 "configure"
1.30      paf      2490: #include "confdefs.h"
                   2491: #include <sys/types.h>
                   2492: #if STDC_HEADERS
                   2493: #include <stdlib.h>
                   2494: #include <stddef.h>
                   2495: #endif
                   2496: EOF
                   2497: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2498:   egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
                   2499:   rm -rf conftest*
                   2500:   ac_cv_type_ssize_t=yes
                   2501: else
                   2502:   rm -rf conftest*
                   2503:   ac_cv_type_ssize_t=no
                   2504: fi
                   2505: rm -f conftest*
                   2506: 
                   2507: fi
                   2508: echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
                   2509: if test $ac_cv_type_ssize_t = no; then
                   2510:   cat >> confdefs.h <<\EOF
                   2511: #define ssize_t int
                   2512: EOF
                   2513: 
                   2514: fi
                   2515: 
                   2516: 
1.1       paf      2517: 
                   2518: 
1.8       paf      2519: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1.60    ! paf      2520: echo "configure:2521: checking whether time.h and sys/time.h may both be included" >&5
1.8       paf      2521: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
                   2522:   echo $ac_n "(cached) $ac_c" 1>&6
                   2523: else
                   2524:   cat > conftest.$ac_ext <<EOF
1.60    ! paf      2525: #line 2526 "configure"
1.8       paf      2526: #include "confdefs.h"
                   2527: #include <sys/types.h>
                   2528: #include <sys/time.h>
                   2529: #include <time.h>
                   2530: int main() {
                   2531: struct tm *tp;
                   2532: ; return 0; }
                   2533: EOF
1.60    ! paf      2534: if { (eval echo configure:2535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.8       paf      2535:   rm -rf conftest*
                   2536:   ac_cv_header_time=yes
                   2537: else
                   2538:   echo "configure: failed program was:" >&5
                   2539:   cat conftest.$ac_ext >&5
                   2540:   rm -rf conftest*
                   2541:   ac_cv_header_time=no
                   2542: fi
                   2543: rm -f conftest*
                   2544: fi
                   2545: 
                   2546: echo "$ac_t""$ac_cv_header_time" 1>&6
                   2547: if test $ac_cv_header_time = yes; then
                   2548:   cat >> confdefs.h <<\EOF
                   2549: #define TIME_WITH_SYS_TIME 1
                   2550: EOF
                   2551: 
                   2552: fi
                   2553: 
                   2554: 
1.51      paf      2555: for ac_hdr in signal.h \
                   2556: unistd.h \
1.1       paf      2557: process.h \
                   2558: stddef.h \
                   2559: stdarg.h \
                   2560: fcntl.h \
                   2561: sys/stat.h \
                   2562: io.h \
                   2563: stdio.h \
                   2564: errno.h \
                   2565: ctype.h \
                   2566: math.h \
1.31      paf      2567: crypt.h \
1.3       paf      2568: time.h sys/time.h \
1.1       paf      2569: stdlib.h \
                   2570: string.h \
                   2571: direct.h \
                   2572: setjmp.h \
                   2573: memory.h \
                   2574: new \
                   2575: sys/file.h \
                   2576: sys/locking.h \
1.3       paf      2577: sys/types.h \
                   2578: sys/select.h \
1.39      paf      2579: sys/resource.h \
1.52      paf      2580: winsock.h \
                   2581: sys/socket.h \
                   2582: netinet/in.h \
                   2583: arpa/inet.h \
                   2584: netdb.h
1.1       paf      2585: 
                   2586: do
                   2587: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   2588: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.60    ! paf      2589: echo "configure:2590: checking for $ac_hdr" >&5
1.1       paf      2590: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2591:   echo $ac_n "(cached) $ac_c" 1>&6
                   2592: else
                   2593:   cat > conftest.$ac_ext <<EOF
1.60    ! paf      2594: #line 2595 "configure"
1.1       paf      2595: #include "confdefs.h"
                   2596: #include <$ac_hdr>
                   2597: EOF
                   2598: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.60    ! paf      2599: { (eval echo configure:2600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       paf      2600: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   2601: if test -z "$ac_err"; then
                   2602:   rm -rf conftest*
                   2603:   eval "ac_cv_header_$ac_safe=yes"
                   2604: else
                   2605:   echo "$ac_err" >&5
                   2606:   echo "configure: failed program was:" >&5
                   2607:   cat conftest.$ac_ext >&5
                   2608:   rm -rf conftest*
                   2609:   eval "ac_cv_header_$ac_safe=no"
                   2610: fi
                   2611: rm -f conftest*
                   2612: fi
                   2613: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2614:   echo "$ac_t""yes" 1>&6
                   2615:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   2616:   cat >> confdefs.h <<EOF
                   2617: #define $ac_tr_hdr 1
                   2618: EOF
                   2619:  
                   2620: else
                   2621:   echo "$ac_t""no" 1>&6
                   2622: fi
                   2623: done
                   2624: 
                   2625: 
                   2626: 
                   2627: case "$host" in
                   2628:   *-sunos5.6* | *-solaris2.6*)
                   2629:       echo $ac_n "checking for main in -lxnet""... $ac_c" 1>&6
1.60    ! paf      2630: echo "configure:2631: checking for main in -lxnet" >&5
1.1       paf      2631: ac_lib_var=`echo xnet'_'main | sed 'y%./+-%__p_%'`
                   2632: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2633:   echo $ac_n "(cached) $ac_c" 1>&6
                   2634: else
                   2635:   ac_save_LIBS="$LIBS"
                   2636: LIBS="-lxnet  $LIBS"
                   2637: cat > conftest.$ac_ext <<EOF
1.60    ! paf      2638: #line 2639 "configure"
1.1       paf      2639: #include "confdefs.h"
                   2640: 
                   2641: int main() {
                   2642: main()
                   2643: ; return 0; }
                   2644: EOF
1.60    ! paf      2645: if { (eval echo configure:2646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2646:   rm -rf conftest*
                   2647:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2648: else
                   2649:   echo "configure: failed program was:" >&5
                   2650:   cat conftest.$ac_ext >&5
                   2651:   rm -rf conftest*
                   2652:   eval "ac_cv_lib_$ac_lib_var=no"
                   2653: fi
                   2654: rm -f conftest*
                   2655: LIBS="$ac_save_LIBS"
                   2656: 
                   2657: fi
                   2658: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2659:   echo "$ac_t""yes" 1>&6
                   2660:     ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   2661:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   2662:   cat >> confdefs.h <<EOF
                   2663: #define $ac_tr_lib 1
                   2664: EOF
                   2665: 
                   2666:   LIBS="-lxnet $LIBS"
                   2667: 
                   2668: else
                   2669:   echo "$ac_t""no" 1>&6
                   2670: fi
                   2671: 
                   2672:   ;;
                   2673:   *-sunos5* | *-solaris2*)
                   2674:       echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1.60    ! paf      2675: echo "configure:2676: checking for main in -lsocket" >&5
1.1       paf      2676: ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
                   2677: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2678:   echo $ac_n "(cached) $ac_c" 1>&6
                   2679: else
                   2680:   ac_save_LIBS="$LIBS"
                   2681: LIBS="-lsocket  $LIBS"
                   2682: cat > conftest.$ac_ext <<EOF
1.60    ! paf      2683: #line 2684 "configure"
1.1       paf      2684: #include "confdefs.h"
                   2685: 
                   2686: int main() {
                   2687: main()
                   2688: ; return 0; }
                   2689: EOF
1.60    ! paf      2690: if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2691:   rm -rf conftest*
                   2692:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2693: else
                   2694:   echo "configure: failed program was:" >&5
                   2695:   cat conftest.$ac_ext >&5
                   2696:   rm -rf conftest*
                   2697:   eval "ac_cv_lib_$ac_lib_var=no"
                   2698: fi
                   2699: rm -f conftest*
                   2700: LIBS="$ac_save_LIBS"
                   2701: 
                   2702: fi
                   2703: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2704:   echo "$ac_t""yes" 1>&6
                   2705:     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   2706:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   2707:   cat >> confdefs.h <<EOF
                   2708: #define $ac_tr_lib 1
                   2709: EOF
                   2710: 
                   2711:   LIBS="-lsocket $LIBS"
                   2712: 
                   2713: else
                   2714:   echo "$ac_t""no" 1>&6
                   2715: fi
                   2716: 
                   2717:       echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.60    ! paf      2718: echo "configure:2719: checking for main in -lnsl" >&5
1.1       paf      2719: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
                   2720: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2721:   echo $ac_n "(cached) $ac_c" 1>&6
                   2722: else
                   2723:   ac_save_LIBS="$LIBS"
                   2724: LIBS="-lnsl  $LIBS"
                   2725: cat > conftest.$ac_ext <<EOF
1.60    ! paf      2726: #line 2727 "configure"
1.1       paf      2727: #include "confdefs.h"
                   2728: 
                   2729: int main() {
                   2730: main()
                   2731: ; return 0; }
                   2732: EOF
1.60    ! paf      2733: if { (eval echo configure:2734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2734:   rm -rf conftest*
                   2735:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2736: else
                   2737:   echo "configure: failed program was:" >&5
                   2738:   cat conftest.$ac_ext >&5
                   2739:   rm -rf conftest*
                   2740:   eval "ac_cv_lib_$ac_lib_var=no"
                   2741: fi
                   2742: rm -f conftest*
                   2743: LIBS="$ac_save_LIBS"
                   2744: 
                   2745: fi
                   2746: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2747:   echo "$ac_t""yes" 1>&6
                   2748:     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   2749:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   2750:   cat >> confdefs.h <<EOF
                   2751: #define $ac_tr_lib 1
                   2752: EOF
                   2753: 
                   2754:   LIBS="-lnsl $LIBS"
                   2755: 
                   2756: else
                   2757:   echo "$ac_t""no" 1>&6
                   2758: fi
                   2759: 
                   2760:   ;;
                   2761:   *-nec-sysv4*)
                   2762:       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.60    ! paf      2763: echo "configure:2764: checking for gethostbyname in -lnsl" >&5
1.1       paf      2764: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
                   2765: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2766:   echo $ac_n "(cached) $ac_c" 1>&6
                   2767: else
                   2768:   ac_save_LIBS="$LIBS"
                   2769: LIBS="-lnsl  $LIBS"
                   2770: cat > conftest.$ac_ext <<EOF
1.60    ! paf      2771: #line 2772 "configure"
1.1       paf      2772: #include "confdefs.h"
                   2773: /* Override any gcc2 internal prototype to avoid an error.  */
                   2774: #ifdef __cplusplus
                   2775: extern "C"
                   2776: #endif
                   2777: /* We use char because int might match the return type of a gcc2
                   2778:     builtin and then its argument prototype would still apply.  */
                   2779: char gethostbyname();
                   2780: 
                   2781: int main() {
                   2782: gethostbyname()
                   2783: ; return 0; }
                   2784: EOF
1.60    ! paf      2785: if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2786:   rm -rf conftest*
                   2787:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2788: else
                   2789:   echo "configure: failed program was:" >&5
                   2790:   cat conftest.$ac_ext >&5
                   2791:   rm -rf conftest*
                   2792:   eval "ac_cv_lib_$ac_lib_var=no"
                   2793: fi
                   2794: rm -f conftest*
                   2795: LIBS="$ac_save_LIBS"
                   2796: 
                   2797: fi
                   2798: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2799:   echo "$ac_t""yes" 1>&6
                   2800:     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   2801:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   2802:   cat >> confdefs.h <<EOF
                   2803: #define $ac_tr_lib 1
                   2804: EOF
                   2805: 
                   2806:   LIBS="-lnsl $LIBS"
                   2807: 
                   2808: else
                   2809:   echo "$ac_t""no" 1>&6
                   2810: fi
                   2811: 
                   2812:       echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.60    ! paf      2813: echo "configure:2814: checking for socket in -lsocket" >&5
1.1       paf      2814: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
                   2815: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2816:   echo $ac_n "(cached) $ac_c" 1>&6
                   2817: else
                   2818:   ac_save_LIBS="$LIBS"
                   2819: LIBS="-lsocket  $LIBS"
                   2820: cat > conftest.$ac_ext <<EOF
1.60    ! paf      2821: #line 2822 "configure"
1.1       paf      2822: #include "confdefs.h"
                   2823: /* Override any gcc2 internal prototype to avoid an error.  */
                   2824: #ifdef __cplusplus
                   2825: extern "C"
                   2826: #endif
                   2827: /* We use char because int might match the return type of a gcc2
                   2828:     builtin and then its argument prototype would still apply.  */
                   2829: char socket();
                   2830: 
                   2831: int main() {
                   2832: socket()
                   2833: ; return 0; }
                   2834: EOF
1.60    ! paf      2835: if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2836:   rm -rf conftest*
                   2837:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2838: else
                   2839:   echo "configure: failed program was:" >&5
                   2840:   cat conftest.$ac_ext >&5
                   2841:   rm -rf conftest*
                   2842:   eval "ac_cv_lib_$ac_lib_var=no"
                   2843: fi
                   2844: rm -f conftest*
                   2845: LIBS="$ac_save_LIBS"
                   2846: 
                   2847: fi
                   2848: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2849:   echo "$ac_t""yes" 1>&6
                   2850:     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   2851:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   2852:   cat >> confdefs.h <<EOF
                   2853: #define $ac_tr_lib 1
                   2854: EOF
                   2855: 
                   2856:   LIBS="-lsocket $LIBS"
                   2857: 
                   2858: else
                   2859:   echo "$ac_t""no" 1>&6
                   2860: fi
                   2861: 
                   2862:   ;;
                   2863:   *-cygwin*)
                   2864:       cat >> confdefs.h <<\EOF
                   2865: #define WIN32 
                   2866: EOF
                   2867: 
                   2868:       echo $ac_n "checking for socket in -lwsock32""... $ac_c" 1>&6
1.60    ! paf      2869: echo "configure:2870: checking for socket in -lwsock32" >&5
1.1       paf      2870: ac_lib_var=`echo wsock32'_'socket | sed 'y%./+-%__p_%'`
                   2871: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2872:   echo $ac_n "(cached) $ac_c" 1>&6
                   2873: else
                   2874:   ac_save_LIBS="$LIBS"
                   2875: LIBS="-lwsock32  $LIBS"
                   2876: cat > conftest.$ac_ext <<EOF
1.60    ! paf      2877: #line 2878 "configure"
1.1       paf      2878: #include "confdefs.h"
                   2879: /* Override any gcc2 internal prototype to avoid an error.  */
                   2880: #ifdef __cplusplus
                   2881: extern "C"
                   2882: #endif
                   2883: /* We use char because int might match the return type of a gcc2
                   2884:     builtin and then its argument prototype would still apply.  */
                   2885: char socket();
                   2886: 
                   2887: int main() {
                   2888: socket()
                   2889: ; return 0; }
                   2890: EOF
1.60    ! paf      2891: if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2892:   rm -rf conftest*
                   2893:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2894: else
                   2895:   echo "configure: failed program was:" >&5
                   2896:   cat conftest.$ac_ext >&5
                   2897:   rm -rf conftest*
                   2898:   eval "ac_cv_lib_$ac_lib_var=no"
                   2899: fi
                   2900: rm -f conftest*
                   2901: LIBS="$ac_save_LIBS"
                   2902: 
                   2903: fi
                   2904: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2905:   echo "$ac_t""yes" 1>&6
                   2906:     ac_tr_lib=HAVE_LIB`echo wsock32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   2907:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   2908:   cat >> confdefs.h <<EOF
                   2909: #define $ac_tr_lib 1
                   2910: EOF
                   2911: 
                   2912:   LIBS="-lwsock32 $LIBS"
                   2913: 
                   2914: else
                   2915:   echo "$ac_t""no" 1>&6
                   2916: fi
                   2917: 
                   2918:   ;;
1.22      paf      2919: # never tested this, only theoretically by letter from demos about parser2 build
1.23      paf      2920:   *-hpux*)
1.22      paf      2921:       echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.60    ! paf      2922: echo "configure:2923: checking for main in -lnsl" >&5
1.22      paf      2923: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
                   2924: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2925:   echo $ac_n "(cached) $ac_c" 1>&6
                   2926: else
                   2927:   ac_save_LIBS="$LIBS"
                   2928: LIBS="-lnsl  $LIBS"
                   2929: cat > conftest.$ac_ext <<EOF
1.60    ! paf      2930: #line 2931 "configure"
1.22      paf      2931: #include "confdefs.h"
                   2932: 
                   2933: int main() {
                   2934: main()
                   2935: ; return 0; }
                   2936: EOF
1.60    ! paf      2937: if { (eval echo configure:2938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.22      paf      2938:   rm -rf conftest*
                   2939:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2940: else
                   2941:   echo "configure: failed program was:" >&5
                   2942:   cat conftest.$ac_ext >&5
                   2943:   rm -rf conftest*
                   2944:   eval "ac_cv_lib_$ac_lib_var=no"
                   2945: fi
                   2946: rm -f conftest*
                   2947: LIBS="$ac_save_LIBS"
                   2948: 
                   2949: fi
                   2950: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2951:   echo "$ac_t""yes" 1>&6
                   2952:     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   2953:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   2954:   cat >> confdefs.h <<EOF
                   2955: #define $ac_tr_lib 1
                   2956: EOF
                   2957: 
                   2958:   LIBS="-lnsl $LIBS"
                   2959: 
                   2960: else
                   2961:   echo "$ac_t""no" 1>&6
                   2962: fi
                   2963: 
                   2964:   ;;
1.1       paf      2965: esac
                   2966: 
                   2967: echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1.60    ! paf      2968: echo "configure:2969: checking for sin in -lm" >&5
1.1       paf      2969: ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
                   2970: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2971:   echo $ac_n "(cached) $ac_c" 1>&6
                   2972: else
                   2973:   ac_save_LIBS="$LIBS"
                   2974: LIBS="-lm  $LIBS"
                   2975: cat > conftest.$ac_ext <<EOF
1.60    ! paf      2976: #line 2977 "configure"
1.1       paf      2977: #include "confdefs.h"
                   2978: /* Override any gcc2 internal prototype to avoid an error.  */
                   2979: #ifdef __cplusplus
                   2980: extern "C"
                   2981: #endif
                   2982: /* We use char because int might match the return type of a gcc2
                   2983:     builtin and then its argument prototype would still apply.  */
                   2984: char sin();
                   2985: 
                   2986: int main() {
                   2987: sin()
                   2988: ; return 0; }
                   2989: EOF
1.60    ! paf      2990: if { (eval echo configure:2991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2991:   rm -rf conftest*
                   2992:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2993: else
                   2994:   echo "configure: failed program was:" >&5
                   2995:   cat conftest.$ac_ext >&5
                   2996:   rm -rf conftest*
                   2997:   eval "ac_cv_lib_$ac_lib_var=no"
                   2998: fi
                   2999: rm -f conftest*
                   3000: LIBS="$ac_save_LIBS"
                   3001: 
                   3002: fi
                   3003: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3004:   echo "$ac_t""yes" 1>&6
                   3005:     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3006:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3007:   cat >> confdefs.h <<EOF
                   3008: #define $ac_tr_lib 1
                   3009: EOF
                   3010: 
                   3011:   LIBS="-lm $LIBS"
                   3012: 
                   3013: else
                   3014:   echo "$ac_t""no" 1>&6
                   3015: fi
                   3016: 
                   3017: 
1.31      paf      3018: echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1.60    ! paf      3019: echo "configure:3020: checking for crypt in -lcrypt" >&5
1.31      paf      3020: ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
                   3021: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3022:   echo $ac_n "(cached) $ac_c" 1>&6
                   3023: else
                   3024:   ac_save_LIBS="$LIBS"
                   3025: LIBS="-lcrypt  $LIBS"
                   3026: cat > conftest.$ac_ext <<EOF
1.60    ! paf      3027: #line 3028 "configure"
1.31      paf      3028: #include "confdefs.h"
                   3029: /* Override any gcc2 internal prototype to avoid an error.  */
                   3030: #ifdef __cplusplus
                   3031: extern "C"
                   3032: #endif
                   3033: /* We use char because int might match the return type of a gcc2
                   3034:     builtin and then its argument prototype would still apply.  */
                   3035: char crypt();
                   3036: 
                   3037: int main() {
                   3038: crypt()
                   3039: ; return 0; }
                   3040: EOF
1.60    ! paf      3041: if { (eval echo configure:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.31      paf      3042:   rm -rf conftest*
                   3043:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3044: else
                   3045:   echo "configure: failed program was:" >&5
                   3046:   cat conftest.$ac_ext >&5
                   3047:   rm -rf conftest*
                   3048:   eval "ac_cv_lib_$ac_lib_var=no"
                   3049: fi
                   3050: rm -f conftest*
                   3051: LIBS="$ac_save_LIBS"
                   3052: 
                   3053: fi
                   3054: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3055:   echo "$ac_t""yes" 1>&6
                   3056:     ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3057:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3058:   cat >> confdefs.h <<EOF
                   3059: #define $ac_tr_lib 1
                   3060: EOF
                   3061: 
                   3062:   LIBS="-lcrypt $LIBS"
                   3063: 
                   3064: else
                   3065:   echo "$ac_t""no" 1>&6
                   3066: fi
                   3067: 
                   3068: 
1.1       paf      3069: 
                   3070: for ac_func in trunc \
                   3071: round \
                   3072: sign \
                   3073: flock \
                   3074: _locking \
1.5       paf      3075: fcntl \
1.3       paf      3076: lockf \
1.56      paf      3077: ftruncate \
1.31      paf      3078: getrusage \
1.49      paf      3079: gettimeofday \
1.52      paf      3080: crypt \
                   3081: sigsetjmp siglongjmp
1.1       paf      3082: 
                   3083: do
                   3084: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.60    ! paf      3085: echo "configure:3086: checking for $ac_func" >&5
1.1       paf      3086: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3087:   echo $ac_n "(cached) $ac_c" 1>&6
                   3088: else
                   3089:   cat > conftest.$ac_ext <<EOF
1.60    ! paf      3090: #line 3091 "configure"
1.1       paf      3091: #include "confdefs.h"
                   3092: /* System header to define __stub macros and hopefully few prototypes,
                   3093:     which can conflict with char $ac_func(); below.  */
                   3094: #include <assert.h>
                   3095: /* Override any gcc2 internal prototype to avoid an error.  */
                   3096: #ifdef __cplusplus
                   3097: extern "C"
                   3098: #endif
                   3099: /* We use char because int might match the return type of a gcc2
                   3100:     builtin and then its argument prototype would still apply.  */
                   3101: char $ac_func();
                   3102: 
                   3103: int main() {
                   3104: 
                   3105: /* The GNU C library defines this for functions which it implements
                   3106:     to always fail with ENOSYS.  Some functions are actually named
                   3107:     something starting with __ and the normal name is an alias.  */
                   3108: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3109: choke me
                   3110: #else
                   3111: $ac_func();
                   3112: #endif
                   3113: 
                   3114: ; return 0; }
                   3115: EOF
1.60    ! paf      3116: if { (eval echo configure:3117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      3117:   rm -rf conftest*
                   3118:   eval "ac_cv_func_$ac_func=yes"
                   3119: else
                   3120:   echo "configure: failed program was:" >&5
                   3121:   cat conftest.$ac_ext >&5
                   3122:   rm -rf conftest*
                   3123:   eval "ac_cv_func_$ac_func=no"
                   3124: fi
                   3125: rm -f conftest*
                   3126: fi
                   3127: 
                   3128: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   3129:   echo "$ac_t""yes" 1>&6
                   3130:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   3131:   cat >> confdefs.h <<EOF
                   3132: #define $ac_tr_func 1
                   3133: EOF
                   3134:  
                   3135: else
                   3136:   echo "$ac_t""no" 1>&6
                   3137: fi
                   3138: done
                   3139: 
                   3140: 
1.3       paf      3141: 
                   3142: for ac_func in qsort
                   3143: do
                   3144: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.60    ! paf      3145: echo "configure:3146: checking for $ac_func" >&5
1.3       paf      3146: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3147:   echo $ac_n "(cached) $ac_c" 1>&6
                   3148: else
                   3149:   cat > conftest.$ac_ext <<EOF
1.60    ! paf      3150: #line 3151 "configure"
1.3       paf      3151: #include "confdefs.h"
                   3152: /* System header to define __stub macros and hopefully few prototypes,
                   3153:     which can conflict with char $ac_func(); below.  */
                   3154: #include <assert.h>
                   3155: /* Override any gcc2 internal prototype to avoid an error.  */
                   3156: #ifdef __cplusplus
                   3157: extern "C"
                   3158: #endif
                   3159: /* We use char because int might match the return type of a gcc2
                   3160:     builtin and then its argument prototype would still apply.  */
                   3161: char $ac_func();
                   3162: 
                   3163: int main() {
                   3164: 
                   3165: /* The GNU C library defines this for functions which it implements
                   3166:     to always fail with ENOSYS.  Some functions are actually named
                   3167:     something starting with __ and the normal name is an alias.  */
                   3168: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3169: choke me
                   3170: #else
                   3171: $ac_func();
                   3172: #endif
                   3173: 
                   3174: ; return 0; }
                   3175: EOF
1.60    ! paf      3176: if { (eval echo configure:3177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3       paf      3177:   rm -rf conftest*
                   3178:   eval "ac_cv_func_$ac_func=yes"
                   3179: else
                   3180:   echo "configure: failed program was:" >&5
                   3181:   cat conftest.$ac_ext >&5
                   3182:   rm -rf conftest*
                   3183:   eval "ac_cv_func_$ac_func=no"
                   3184: fi
                   3185: rm -f conftest*
                   3186: fi
                   3187: 
                   3188: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   3189:   echo "$ac_t""yes" 1>&6
                   3190:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   3191:   cat >> confdefs.h <<EOF
                   3192: #define $ac_tr_func 1
                   3193: EOF
                   3194:  
                   3195: else
                   3196:   echo "$ac_t""no" 1>&6
                   3197: { echo "configure: error: No qsort library function." 1>&2; exit 1; }
                   3198: fi
                   3199: done
                   3200: 
                   3201: for ac_func in select
                   3202: do
                   3203: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.60    ! paf      3204: echo "configure:3205: checking for $ac_func" >&5
1.3       paf      3205: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3206:   echo $ac_n "(cached) $ac_c" 1>&6
                   3207: else
                   3208:   cat > conftest.$ac_ext <<EOF
1.60    ! paf      3209: #line 3210 "configure"
1.3       paf      3210: #include "confdefs.h"
                   3211: /* System header to define __stub macros and hopefully few prototypes,
                   3212:     which can conflict with char $ac_func(); below.  */
                   3213: #include <assert.h>
                   3214: /* Override any gcc2 internal prototype to avoid an error.  */
                   3215: #ifdef __cplusplus
                   3216: extern "C"
                   3217: #endif
                   3218: /* We use char because int might match the return type of a gcc2
                   3219:     builtin and then its argument prototype would still apply.  */
                   3220: char $ac_func();
                   3221: 
                   3222: int main() {
                   3223: 
                   3224: /* The GNU C library defines this for functions which it implements
                   3225:     to always fail with ENOSYS.  Some functions are actually named
                   3226:     something starting with __ and the normal name is an alias.  */
                   3227: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3228: choke me
                   3229: #else
                   3230: $ac_func();
                   3231: #endif
                   3232: 
                   3233: ; return 0; }
                   3234: EOF
1.60    ! paf      3235: if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3       paf      3236:   rm -rf conftest*
                   3237:   eval "ac_cv_func_$ac_func=yes"
                   3238: else
                   3239:   echo "configure: failed program was:" >&5
                   3240:   cat conftest.$ac_ext >&5
                   3241:   rm -rf conftest*
                   3242:   eval "ac_cv_func_$ac_func=no"
                   3243: fi
                   3244: rm -f conftest*
                   3245: fi
                   3246: 
                   3247: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   3248:   echo "$ac_t""yes" 1>&6
                   3249:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   3250:   cat >> confdefs.h <<EOF
                   3251: #define $ac_tr_func 1
                   3252: EOF
                   3253:  
                   3254: else
                   3255:   echo "$ac_t""no" 1>&6
                   3256: { echo "configure: error: No select library function." 1>&2; exit 1; }
                   3257: fi
                   3258: done
                   3259: 
                   3260: 
1.47      paf      3261: 
                   3262: echo $ac_n "checking for timezone variable""... $ac_c" 1>&6
1.60    ! paf      3263: echo "configure:3264: checking for timezone variable" >&5
1.47      paf      3264: cat > conftest.$ac_ext <<EOF
1.60    ! paf      3265: #line 3266 "configure"
1.47      paf      3266: #include "confdefs.h"
                   3267: #include <time.h>
                   3268: int main() {
                   3269: 
                   3270: time_t test=timezone;
                   3271: 
                   3272: ; return 0; }
                   3273: EOF
1.60    ! paf      3274: if { (eval echo configure:3275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47      paf      3275:   rm -rf conftest*
                   3276:   cat >> confdefs.h <<\EOF
                   3277: #define HAVE_TIMEZONE 1
                   3278: EOF
                   3279:                   
                   3280: echo "$ac_t""yes" 1>&6
                   3281: else
                   3282:   echo "configure: failed program was:" >&5
                   3283:   cat conftest.$ac_ext >&5
                   3284:   rm -rf conftest*
                   3285:   echo "$ac_t""no" 1>&6
                   3286: fi
                   3287: rm -f conftest*                         
                   3288: 
                   3289: echo $ac_n "checking for daylight variable""... $ac_c" 1>&6
1.60    ! paf      3290: echo "configure:3291: checking for daylight variable" >&5
1.47      paf      3291: cat > conftest.$ac_ext <<EOF
1.60    ! paf      3292: #line 3293 "configure"
1.47      paf      3293: #include "confdefs.h"
                   3294: #include <time.h>
                   3295: int main() {
                   3296: 
                   3297: int test=daylight;
                   3298: 
                   3299: ; return 0; }
                   3300: EOF
1.60    ! paf      3301: if { (eval echo configure:3302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47      paf      3302:   rm -rf conftest*
                   3303:   cat >> confdefs.h <<\EOF
                   3304: #define HAVE_DAYLIGHT 1
                   3305: EOF
                   3306:               
                   3307: echo "$ac_t""yes" 1>&6
                   3308: else
                   3309:   echo "configure: failed program was:" >&5
                   3310:   cat conftest.$ac_ext >&5
                   3311:   rm -rf conftest*
                   3312:   echo "$ac_t""no" 1>&6
                   3313: fi
                   3314: rm -f conftest*                         
                   3315: 
                   3316: echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
1.60    ! paf      3317: echo "configure:3318: checking for tm_gmtoff in struct tm" >&5
1.47      paf      3318: cat > conftest.$ac_ext <<EOF
1.60    ! paf      3319: #line 3320 "configure"
1.47      paf      3320: #include "confdefs.h"
                   3321: #include <time.h>
                   3322: int main() {
                   3323: struct tm tm;                             
                   3324: tm.tm_gmtoff=0;                            
                   3325: 
                   3326: ; return 0; }
                   3327: EOF
1.60    ! paf      3328: if { (eval echo configure:3329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47      paf      3329:   rm -rf conftest*
                   3330:   cat >> confdefs.h <<\EOF
                   3331: #define HAVE_TM_GMTOFF 1
                   3332: EOF
                   3333:                   
                   3334: echo "$ac_t""yes" 1>&6
                   3335: else
                   3336:   echo "configure: failed program was:" >&5
                   3337:   cat conftest.$ac_ext >&5
                   3338:   rm -rf conftest*
                   3339:   echo "$ac_t""no" 1>&6
                   3340: fi
                   3341: rm -f conftest*                         
                   3342: 
                   3343: echo $ac_n "checking for tm_tzadj in struct tm""... $ac_c" 1>&6
1.60    ! paf      3344: echo "configure:3345: checking for tm_tzadj in struct tm" >&5
1.47      paf      3345: cat > conftest.$ac_ext <<EOF
1.60    ! paf      3346: #line 3347 "configure"
1.47      paf      3347: #include "confdefs.h"
                   3348: #include <time.h>
                   3349: int main() {
                   3350: struct tm tm;                             
                   3351: tm.tm_tzadj=0;                            
                   3352: 
                   3353: ; return 0; }
                   3354: EOF
1.60    ! paf      3355: if { (eval echo configure:3356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.47      paf      3356:   rm -rf conftest*
                   3357:   cat >> confdefs.h <<\EOF
                   3358: #define HAVE_TM_TZADJ 1
                   3359: EOF
                   3360:                   
                   3361: echo "$ac_t""yes" 1>&6
                   3362: else
                   3363:   echo "configure: failed program was:" >&5
                   3364:   cat conftest.$ac_ext >&5
                   3365:   rm -rf conftest*
                   3366:   echo "$ac_t""no" 1>&6
                   3367: fi
                   3368: rm -f conftest*                         
                   3369: 
                   3370: 
1.1       paf      3371: echo $ac_n "checking whether compiler supports pragma pack""... $ac_c" 1>&6
1.60    ! paf      3372: echo "configure:3373: checking whether compiler supports pragma pack" >&5
1.1       paf      3373: cat > conftest.$ac_ext <<EOF
1.60    ! paf      3374: #line 3375 "configure"
1.1       paf      3375: #include "confdefs.h"
                   3376: #pragma pack(1)
1.25      paf      3377: struct _1_byte {
1.1       paf      3378:        char c;
1.25      paf      3379: };
1.1       paf      3380: #pragma pack()
1.25      paf      3381: 
                   3382: int main() {
1.1       paf      3383: 
                   3384: ; return 0; }
                   3385: EOF
1.60    ! paf      3386: if { (eval echo configure:3387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       paf      3387:   rm -rf conftest*
                   3388:   
                   3389:     echo "$ac_t""yes" 1>&6
                   3390:        cat >> confdefs.h <<\EOF
                   3391: #define HAVE_PRAGMA_PACK 
                   3392: EOF
                   3393: 
                   3394: 
                   3395: else
                   3396:   echo "configure: failed program was:" >&5
                   3397:   cat conftest.$ac_ext >&5
                   3398:   rm -rf conftest*
                   3399:   echo "$ac_t""no" 1>&6
                   3400: 
                   3401: fi
                   3402: rm -f conftest*
                   3403: 
                   3404: echo $ac_n "checking for set_new_handler""... $ac_c" 1>&6
1.60    ! paf      3405: echo "configure:3406: checking for set_new_handler" >&5
1.1       paf      3406: cat > conftest.$ac_ext <<EOF
1.60    ! paf      3407: #line 3408 "configure"
1.1       paf      3408: #include "confdefs.h"
                   3409: #ifdef HAVE_NEW
                   3410: #include <new>
                   3411: #endif
                   3412: void failed_new() {}
                   3413: 
                   3414: int main() {
                   3415: std::set_new_handler(failed_new);
                   3416: 
                   3417: ; return 0; }
                   3418: EOF
1.60    ! paf      3419: if { (eval echo configure:3420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       paf      3420:   rm -rf conftest*
                   3421:   
                   3422:     echo "$ac_t""yes" 1>&6
                   3423:        cat >> confdefs.h <<\EOF
                   3424: #define HAVE_SET_NEW_HANDLER 
                   3425: EOF
                   3426: 
                   3427: 
                   3428: else
                   3429:   echo "configure: failed program was:" >&5
                   3430:   cat conftest.$ac_ext >&5
                   3431:   rm -rf conftest*
                   3432:   echo "$ac_t""no" 1>&6
                   3433: 
                   3434: fi
                   3435: rm -f conftest*
                   3436: 
                   3437: 
                   3438: 
1.15      paf      3439: 
1.8       paf      3440: APACHE_LIBS="$LIBS $LIBADD_DL"
1.1       paf      3441: 
                   3442: 
                   3443: 
                   3444: 
                   3445: # expand apostrophed
1.4       paf      3446: e_prefix=$prefix
                   3447: test "x$e_prefix" = xNONE && e_prefix=$ac_default_prefix
                   3448: 
1.1       paf      3449: e_sysconfdir=$sysconfdir
1.4       paf      3450: test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${e_prefix}/etc"
1.1       paf      3451: 
                   3452: 
                   3453: charsetsdir=$e_sysconfdir/parser3.charsets
                   3454: 
                   3455: 
                   3456: # expand apostrophed
                   3457: e_libdir=$libdir
                   3458: if test "$e_libdir" = "\${exec_prefix}/lib"; then
                   3459: 
                   3460:     # Let make expand exec_prefix.
                   3461:     e_exec_prefix=$exec_prefix
1.10      paf      3462:     test "x$e_exec_prefix" = xNONE && e_exec_prefix=$e_prefix
1.1       paf      3463: 
                   3464:     # expand apostrophed
                   3465:     test "$e_libdir" = "\${exec_prefix}/lib" && e_libdir="${e_exec_prefix}/lib"
                   3466: fi
                   3467: 
                   3468: sqldriversdir=$e_libdir
                   3469: 
                   3470: 
                   3471: 
                   3472: 
                   3473: 
                   3474: 
                   3475: 
                   3476: trap '' 1 2 15
                   3477: cat > confcache <<\EOF
                   3478: # This file is a shell script that caches the results of configure
                   3479: # tests run on this system so they can be shared between configure
                   3480: # scripts and configure runs.  It is not useful on other systems.
                   3481: # If it contains results you don't want to keep, you may remove or edit it.
                   3482: #
                   3483: # By default, configure uses ./config.cache as the cache file,
                   3484: # creating it if it does not exist already.  You can give configure
                   3485: # the --cache-file=FILE option to use a different cache file; that is
                   3486: # what configure does when it calls configure scripts in
                   3487: # subdirectories, so they share the cache.
                   3488: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   3489: # config.status only pays attention to the cache file if you give it the
                   3490: # --recheck option to rerun configure.
                   3491: #
                   3492: EOF
                   3493: # The following way of writing the cache mishandles newlines in values,
                   3494: # but we know of no workaround that is simple, portable, and efficient.
                   3495: # So, don't put newlines in cache variables' values.
                   3496: # Ultrix sh set writes to stderr and can't be redirected directly,
                   3497: # and sets the high bit in the cache file unless we assign to the vars.
                   3498: (set) 2>&1 |
                   3499:   case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   3500:   *ac_space=\ *)
                   3501:     # `set' does not quote correctly, so add quotes (double-quote substitution
                   3502:     # turns \\\\ into \\, and sed turns \\ into \).
                   3503:     sed -n \
                   3504:       -e "s/'/'\\\\''/g" \
                   3505:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
                   3506:     ;;
                   3507:   *)
                   3508:     # `set' quotes correctly as required by POSIX, so do not add quotes.
                   3509:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
                   3510:     ;;
                   3511:   esac >> confcache
                   3512: if cmp -s $cache_file confcache; then
                   3513:   :
                   3514: else
                   3515:   if test -w $cache_file; then
                   3516:     echo "updating cache $cache_file"
                   3517:     cat confcache > $cache_file
                   3518:   else
                   3519:     echo "not updating unwritable cache $cache_file"
                   3520:   fi
                   3521: fi
                   3522: rm -f confcache
                   3523: 
                   3524: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                   3525: 
                   3526: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   3527: # Let make expand exec_prefix.
                   3528: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   3529: 
                   3530: # Any assignment to VPATH causes Sun make to only execute
                   3531: # the first set of double-colon rules, so remove it if not needed.
                   3532: # If there is a colon in the path, we need to keep it.
                   3533: if test "x$srcdir" = x.; then
                   3534:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
                   3535: fi
                   3536: 
                   3537: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
                   3538: 
                   3539: DEFS=-DHAVE_CONFIG_H
                   3540: 
                   3541: # Without the "./", some shells look in PATH for config.status.
                   3542: : ${CONFIG_STATUS=./config.status}
                   3543: 
                   3544: echo creating $CONFIG_STATUS
                   3545: rm -f $CONFIG_STATUS
                   3546: cat > $CONFIG_STATUS <<EOF
                   3547: #! /bin/sh
                   3548: # Generated automatically by configure.
                   3549: # Run this file to recreate the current configuration.
                   3550: # This directory was configured as follows,
                   3551: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   3552: #
                   3553: # $0 $ac_configure_args
                   3554: #
                   3555: # Compiler output produced by configure, useful for debugging
                   3556: # configure, is in ./config.log if it exists.
                   3557: 
                   3558: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   3559: for ac_option
                   3560: do
                   3561:   case "\$ac_option" in
                   3562:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   3563:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
                   3564:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   3565:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
                   3566:     echo "$CONFIG_STATUS generated by autoconf version 2.13"
                   3567:     exit 0 ;;
                   3568:   -help | --help | --hel | --he | --h)
                   3569:     echo "\$ac_cs_usage"; exit 0 ;;
                   3570:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   3571:   esac
                   3572: done
                   3573: 
                   3574: ac_given_srcdir=$srcdir
                   3575: ac_given_INSTALL="$INSTALL"
                   3576: 
1.54      paf      3577: trap 'rm -fr `echo "Makefile src/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/ltdl/Makefile src/lib/pcre/Makefile src/lib/md5/Makefile src/lib/patches/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/hook/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist src/include/pa_config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1       paf      3578: EOF
                   3579: cat >> $CONFIG_STATUS <<EOF
                   3580: 
                   3581: # Protect against being on the right side of a sed subst in config.status.
                   3582: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
                   3583:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
                   3584: $ac_vpsub
                   3585: $extrasub
                   3586: s%@SHELL@%$SHELL%g
                   3587: s%@CFLAGS@%$CFLAGS%g
                   3588: s%@CPPFLAGS@%$CPPFLAGS%g
                   3589: s%@CXXFLAGS@%$CXXFLAGS%g
                   3590: s%@FFLAGS@%$FFLAGS%g
                   3591: s%@DEFS@%$DEFS%g
                   3592: s%@LDFLAGS@%$LDFLAGS%g
                   3593: s%@LIBS@%$LIBS%g
                   3594: s%@exec_prefix@%$exec_prefix%g
                   3595: s%@prefix@%$prefix%g
                   3596: s%@program_transform_name@%$program_transform_name%g
                   3597: s%@bindir@%$bindir%g
                   3598: s%@sbindir@%$sbindir%g
                   3599: s%@libexecdir@%$libexecdir%g
                   3600: s%@datadir@%$datadir%g
                   3601: s%@sysconfdir@%$sysconfdir%g
                   3602: s%@sharedstatedir@%$sharedstatedir%g
                   3603: s%@localstatedir@%$localstatedir%g
                   3604: s%@libdir@%$libdir%g
                   3605: s%@includedir@%$includedir%g
                   3606: s%@oldincludedir@%$oldincludedir%g
                   3607: s%@infodir@%$infodir%g
                   3608: s%@mandir@%$mandir%g
                   3609: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
                   3610: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
                   3611: s%@INSTALL_DATA@%$INSTALL_DATA%g
                   3612: s%@PACKAGE@%$PACKAGE%g
                   3613: s%@VERSION@%$VERSION%g
                   3614: s%@ACLOCAL@%$ACLOCAL%g
                   3615: s%@AUTOCONF@%$AUTOCONF%g
                   3616: s%@AUTOMAKE@%$AUTOMAKE%g
                   3617: s%@AUTOHEADER@%$AUTOHEADER%g
                   3618: s%@MAKEINFO@%$MAKEINFO%g
                   3619: s%@SET_MAKE@%$SET_MAKE%g
                   3620: s%@P3S@%$P3S%g
1.41      paf      3621: s%@host@%$host%g
                   3622: s%@host_alias@%$host_alias%g
                   3623: s%@host_cpu@%$host_cpu%g
                   3624: s%@host_vendor@%$host_vendor%g
                   3625: s%@host_os@%$host_os%g
                   3626: s%@RANLIB@%$RANLIB%g
                   3627: s%@AWK@%$AWK%g
                   3628: s%@YACC@%$YACC%g
1.1       paf      3629: s%@CC@%$CC%g
                   3630: s%@CXX@%$CXX%g
1.17      paf      3631: s%@commentcharset_windows1251@%$commentcharset_windows1251%g
                   3632: s%@commentcharset_windows1250@%$commentcharset_windows1250%g
                   3633: s%@commentcharset_windows1257@%$commentcharset_windows1257%g
                   3634: s%@commentcharset_koi8r@%$commentcharset_koi8r%g
1.40      paf      3635: s%@dll_extension@%$dll_extension%g
1.17      paf      3636: s%@mysql_client@%$mysql_client%g
                   3637: s%@pgsql_client@%$pgsql_client%g
                   3638: s%@oracle_client@%$oracle_client%g
1.59      paf      3639: s%@DO_NOT_LINK_LIBSTDCPP_TRUE@%$DO_NOT_LINK_LIBSTDCPP_TRUE%g
                   3640: s%@DO_NOT_LINK_LIBSTDCPP_FALSE@%$DO_NOT_LINK_LIBSTDCPP_FALSE%g
1.12      paf      3641: s%@XML_INCLUDES@%$XML_INCLUDES%g
                   3642: s%@XML_LIBS@%$XML_LIBS%g
1.29      paf      3643: s%@MIME_INCLUDES@%$MIME_INCLUDES%g
                   3644: s%@MIME_LIBS@%$MIME_LIBS%g
1.1       paf      3645: s%@APACHE13@%$APACHE13%g
                   3646: s%@COMPILE_APACHE13_MODULE_TRUE@%$COMPILE_APACHE13_MODULE_TRUE%g
                   3647: s%@COMPILE_APACHE13_MODULE_FALSE@%$COMPILE_APACHE13_MODULE_FALSE%g
                   3648: s%@INCLTDL@%$INCLTDL%g
                   3649: s%@LIBLTDL@%$LIBLTDL%g
1.8       paf      3650: s%@subdirs@%$subdirs%g
1.1       paf      3651: s%@LIBADD_DL@%$LIBADD_DL%g
                   3652: s%@CXXCPP@%$CXXCPP%g
                   3653: s%@APACHE_LIBS@%$APACHE_LIBS%g
                   3654: s%@charsetsdir@%$charsetsdir%g
                   3655: s%@sqldriversdir@%$sqldriversdir%g
                   3656: 
                   3657: CEOF
                   3658: EOF
                   3659: 
                   3660: cat >> $CONFIG_STATUS <<\EOF
                   3661: 
                   3662: # Split the substitutions into bite-sized pieces for seds with
                   3663: # small command number limits, like on Digital OSF/1 and HP-UX.
                   3664: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
                   3665: ac_file=1 # Number of current file.
                   3666: ac_beg=1 # First line for current file.
                   3667: ac_end=$ac_max_sed_cmds # Line after last line for current file.
                   3668: ac_more_lines=:
                   3669: ac_sed_cmds=""
                   3670: while $ac_more_lines; do
                   3671:   if test $ac_beg -gt 1; then
                   3672:     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
                   3673:   else
                   3674:     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
                   3675:   fi
                   3676:   if test ! -s conftest.s$ac_file; then
                   3677:     ac_more_lines=false
                   3678:     rm -f conftest.s$ac_file
                   3679:   else
                   3680:     if test -z "$ac_sed_cmds"; then
                   3681:       ac_sed_cmds="sed -f conftest.s$ac_file"
                   3682:     else
                   3683:       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
                   3684:     fi
                   3685:     ac_file=`expr $ac_file + 1`
                   3686:     ac_beg=$ac_end
                   3687:     ac_end=`expr $ac_end + $ac_max_sed_cmds`
                   3688:   fi
                   3689: done
                   3690: if test -z "$ac_sed_cmds"; then
                   3691:   ac_sed_cmds=cat
                   3692: fi
                   3693: EOF
                   3694: 
                   3695: cat >> $CONFIG_STATUS <<EOF
                   3696: 
1.54      paf      3697: CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/ltdl/Makefile src/lib/pcre/Makefile src/lib/md5/Makefile src/lib/patches/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/hook/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist"}
1.1       paf      3698: EOF
                   3699: cat >> $CONFIG_STATUS <<\EOF
                   3700: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
                   3701:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   3702:   case "$ac_file" in
                   3703:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   3704:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   3705:   *) ac_file_in="${ac_file}.in" ;;
                   3706:   esac
                   3707: 
                   3708:   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
                   3709: 
                   3710:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   3711:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   3712:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   3713:     # The file is in a subdirectory.
                   3714:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   3715:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
                   3716:     # A "../" for each directory in $ac_dir_suffix.
                   3717:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   3718:   else
                   3719:     ac_dir_suffix= ac_dots=
                   3720:   fi
                   3721: 
                   3722:   case "$ac_given_srcdir" in
                   3723:   .)  srcdir=.
                   3724:       if test -z "$ac_dots"; then top_srcdir=.
                   3725:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   3726:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   3727:   *) # Relative path.
                   3728:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   3729:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   3730:   esac
                   3731: 
                   3732:   case "$ac_given_INSTALL" in
                   3733:   [/$]*) INSTALL="$ac_given_INSTALL" ;;
                   3734:   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
                   3735:   esac
                   3736: 
                   3737:   echo creating "$ac_file"
                   3738:   rm -f "$ac_file"
                   3739:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   3740:   case "$ac_file" in
                   3741:   *Makefile*) ac_comsub="1i\\
                   3742: # $configure_input" ;;
                   3743:   *) ac_comsub= ;;
                   3744:   esac
                   3745: 
                   3746:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   3747:   sed -e "$ac_comsub
                   3748: s%@configure_input@%$configure_input%g
                   3749: s%@srcdir@%$srcdir%g
                   3750: s%@top_srcdir@%$top_srcdir%g
                   3751: s%@INSTALL@%$INSTALL%g
                   3752: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
                   3753: fi; done
                   3754: rm -f conftest.s*
                   3755: 
                   3756: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   3757: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   3758: #
                   3759: # ac_d sets the value in "#define NAME VALUE" lines.
                   3760: ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   3761: ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
                   3762: ac_dC='\3'
                   3763: ac_dD='%g'
                   3764: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
                   3765: ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   3766: ac_uB='\([     ]\)%\1#\2define\3'
                   3767: ac_uC=' '
                   3768: ac_uD='\4%g'
                   3769: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   3770: ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   3771: ac_eB='$%\1#\2define\3'
                   3772: ac_eC=' '
                   3773: ac_eD='%g'
                   3774: 
                   3775: if test "${CONFIG_HEADERS+set}" != set; then
                   3776: EOF
                   3777: cat >> $CONFIG_STATUS <<EOF
                   3778:   CONFIG_HEADERS="src/include/pa_config_auto.h"
                   3779: EOF
                   3780: cat >> $CONFIG_STATUS <<\EOF
                   3781: fi
                   3782: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
                   3783:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   3784:   case "$ac_file" in
                   3785:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   3786:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   3787:   *) ac_file_in="${ac_file}.in" ;;
                   3788:   esac
                   3789: 
                   3790:   echo creating $ac_file
                   3791: 
                   3792:   rm -f conftest.frag conftest.in conftest.out
                   3793:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   3794:   cat $ac_file_inputs > conftest.in
                   3795: 
                   3796: EOF
                   3797: 
                   3798: # Transform confdefs.h into a sed script conftest.vals that substitutes
                   3799: # the proper values into config.h.in to produce config.h.  And first:
                   3800: # Protect against being on the right side of a sed subst in config.status.
                   3801: # Protect against being in an unquoted here document in config.status.
                   3802: rm -f conftest.vals
                   3803: cat > conftest.hdr <<\EOF
                   3804: s/[\\&%]/\\&/g
                   3805: s%[\\$`]%\\&%g
                   3806: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
                   3807: s%ac_d%ac_u%gp
                   3808: s%ac_u%ac_e%gp
                   3809: EOF
                   3810: sed -n -f conftest.hdr confdefs.h > conftest.vals
                   3811: rm -f conftest.hdr
                   3812: 
                   3813: # This sed command replaces #undef with comments.  This is necessary, for
                   3814: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   3815: # on some systems where configure will not decide to define it.
                   3816: cat >> conftest.vals <<\EOF
                   3817: s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
                   3818: EOF
                   3819: 
                   3820: # Break up conftest.vals because some shells have a limit on
                   3821: # the size of here documents, and old seds have small limits too.
                   3822: 
                   3823: rm -f conftest.tail
                   3824: while :
                   3825: do
                   3826:   ac_lines=`grep -c . conftest.vals`
                   3827:   # grep -c gives empty output for an empty file on some AIX systems.
                   3828:   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
                   3829:   # Write a limited-size here document to conftest.frag.
                   3830:   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
                   3831:   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
                   3832:   echo 'CEOF
                   3833:   sed -f conftest.frag conftest.in > conftest.out
                   3834:   rm -f conftest.in
                   3835:   mv conftest.out conftest.in
                   3836: ' >> $CONFIG_STATUS
                   3837:   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
                   3838:   rm -f conftest.vals
                   3839:   mv conftest.tail conftest.vals
                   3840: done
                   3841: rm -f conftest.vals
                   3842: 
                   3843: cat >> $CONFIG_STATUS <<\EOF
                   3844:   rm -f conftest.frag conftest.h
                   3845:   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
                   3846:   cat conftest.in >> conftest.h
                   3847:   rm -f conftest.in
                   3848:   if cmp -s $ac_file conftest.h 2>/dev/null; then
                   3849:     echo "$ac_file is unchanged"
                   3850:     rm -f conftest.h
                   3851:   else
                   3852:     # Remove last slash and all that follows it.  Not all systems have dirname.
                   3853:       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   3854:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   3855:       # The file is in a subdirectory.
                   3856:       test ! -d "$ac_dir" && mkdir "$ac_dir"
                   3857:     fi
                   3858:     rm -f $ac_file
                   3859:     mv conftest.h $ac_file
                   3860:   fi
                   3861: fi; done
                   3862: 
                   3863: EOF
                   3864: cat >> $CONFIG_STATUS <<EOF
                   3865: 
                   3866: 
                   3867: EOF
                   3868: cat >> $CONFIG_STATUS <<\EOF
                   3869: test -z "$CONFIG_HEADERS" || echo timestamp > src/include/stamp-h
                   3870: 
                   3871: exit 0
                   3872: EOF
                   3873: chmod +x $CONFIG_STATUS
                   3874: rm -fr confdefs* $ac_clean_files
                   3875: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
                   3876: 
                   3877: if test "$no_recursion" != yes; then
                   3878: 
                   3879:   # Remove --cache-file and --srcdir arguments so they do not pile up.
                   3880:   ac_sub_configure_args=
                   3881:   ac_prev=
                   3882:   for ac_arg in $ac_configure_args; do
                   3883:     if test -n "$ac_prev"; then
                   3884:       ac_prev=
                   3885:       continue
                   3886:     fi
                   3887:     case "$ac_arg" in
                   3888:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   3889:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   3890:       ac_prev=cache_file ;;
                   3891:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   3892:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                   3893:       ;;
                   3894:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   3895:       ac_prev=srcdir ;;
                   3896:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   3897:       ;;
                   3898:     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
                   3899:     esac
                   3900:   done
                   3901: 
1.54      paf      3902:   for ac_config_dir in src/lib/ltdl; do
1.1       paf      3903: 
                   3904:     # Do not complain, so a configure script can configure whichever
                   3905:     # parts of a large source tree are present.
                   3906:     if test ! -d $srcdir/$ac_config_dir; then
                   3907:       continue
                   3908:     fi
                   3909: 
                   3910:     echo configuring in $ac_config_dir
                   3911: 
                   3912:     case "$srcdir" in
                   3913:     .) ;;
                   3914:     *)
                   3915:       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
                   3916:       else
                   3917:         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
                   3918:       fi
                   3919:       ;;
                   3920:     esac
                   3921: 
                   3922:     ac_popdir=`pwd`
                   3923:     cd $ac_config_dir
                   3924: 
                   3925:       # A "../" for each directory in /$ac_config_dir.
                   3926:       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
                   3927: 
                   3928:     case "$srcdir" in
                   3929:     .) # No --srcdir option.  We are building in place.
                   3930:       ac_sub_srcdir=$srcdir ;;
                   3931:     /*) # Absolute path.
                   3932:       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
                   3933:     *) # Relative path.
                   3934:       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
                   3935:     esac
                   3936: 
                   3937:     # Check for guested configure; otherwise get Cygnus style configure.
                   3938:     if test -f $ac_sub_srcdir/configure; then
                   3939:       ac_sub_configure=$ac_sub_srcdir/configure
                   3940:     elif test -f $ac_sub_srcdir/configure.in; then
                   3941:       ac_sub_configure=$ac_configure
                   3942:     else
                   3943:       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
                   3944:       ac_sub_configure=
                   3945:     fi
                   3946: 
                   3947:     # The recursion is here.
                   3948:     if test -n "$ac_sub_configure"; then
                   3949: 
                   3950:       # Make the cache file name correct relative to the subdirectory.
                   3951:       case "$cache_file" in
                   3952:       /*) ac_sub_cache_file=$cache_file ;;
                   3953:       *) # Relative path.
                   3954:         ac_sub_cache_file="$ac_dots$cache_file" ;;
                   3955:       esac
                   3956:   case "$ac_given_INSTALL" in
                   3957:         [/$]*) INSTALL="$ac_given_INSTALL" ;;
                   3958:         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
                   3959:         esac
                   3960: 
                   3961:       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
                   3962:       # The eval makes quoting arguments work.
                   3963:       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
                   3964:       then :
                   3965:       else
                   3966:         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
                   3967:       fi
                   3968:     fi
                   3969: 
                   3970:     cd $ac_popdir
                   3971:   done
                   3972: fi
                   3973: 

E-mail: