Annotation of parser3/configure, revision 1.8

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

E-mail: