Annotation of parser3/configure, revision 1.19

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

E-mail: