Annotation of parser3/configure, revision 1.16

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

E-mail: