Annotation of parser3/configure, revision 1.15

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

E-mail: