Annotation of pgsql/configure, revision 1.73

1.1       petere      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_default_prefix=/usr/local/pgsql
                     15: ac_help="$ac_help
1.30      petere     16:   --with-includes=DIRS    look for additional header files in DIRS"
1.1       petere     17: ac_help="$ac_help
                     18:   --with-libraries=DIRS   look for additional libraries in DIRS"
                     19: ac_help="$ac_help
1.30      petere     20:   --with-libs=DIRS        alternative spelling of --with-libraries"
1.1       petere     21: ac_help="$ac_help
1.29      petere     22:   --enable-locale         enable locale support"
1.1       petere     23: ac_help="$ac_help
1.43      petere     24:   --enable-recode         enable character set recode support"
1.1       petere     25: ac_help="$ac_help
1.29      petere     26:   --enable-multibyte      enable multibyte character support"
1.1       petere     27: ac_help="$ac_help
1.29      petere     28:   --with-pgport=PORTNUM   change default port number [5432]"
1.1       petere     29: ac_help="$ac_help
1.29      petere     30:   --with-maxbackends=N    set default maximum number of connections [32]"
1.3       tgl        31: ac_help="$ac_help
1.70      petere     32:   --disable-shared        do not build shared libraries"
1.67      petere     33: ac_help="$ac_help
1.73    ! petere     34:   --disable-rpath         do not embed shared library search path in executables"
        !            35: ac_help="$ac_help
1.31      petere     36:   --enable-depend         turn on automatic dependency tracking"
                     37: ac_help="$ac_help
1.30      petere     38:   --enable-debug          build with debugging symbols (-g)"
                     39: ac_help="$ac_help
1.43      petere     40:   --enable-cassert        enable assertion checks (for debugging)"
                     41: ac_help="$ac_help
1.44      petere     42:   --with-tcl              build Tcl and Tk interfaces"
                     43: ac_help="$ac_help
                     44:   --without-tk            do not build Tk interfaces if Tcl is enabled"
1.1       petere     45: ac_help="$ac_help
                     46:   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR"
                     47: ac_help="$ac_help
                     48:   --with-tkconfig=DIR     tkConfig.sh is in DIR"
                     49: ac_help="$ac_help
1.43      petere     50:   --with-perl             build Perl interface and PL/Perl"
1.4       petere     51: ac_help="$ac_help
                     52:   --with-python           build Python interface module"
1.1       petere     53: ac_help="$ac_help
1.43      petere     54:   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]"
1.12      petere     55: ac_help="$ac_help
1.43      petere     56:   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]"
1.12      petere     57: ac_help="$ac_help
1.70      petere     58:   --with-krb-srvnam=NAME  name of the service principal in Kerberos [postgres]"
1.12      petere     59: ac_help="$ac_help
1.28      petere     60:   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]"
                     61: ac_help="$ac_help
1.15      petere     62:   --enable-odbc           build the ODBC driver package"
1.1       petere     63: ac_help="$ac_help
1.28      petere     64:   --with-odbcinst=DIR     default directory for odbcinst.ini [sysconfdir]"
1.3       tgl        65: ac_help="$ac_help
1.5       petere     66:   --with-CXX              build C++ modules (libpq++)"
1.1       petere     67: ac_help="$ac_help
1.64      petere     68:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
                     69: ac_help="$ac_help
1.1       petere     70:   --enable-syslog         enable logging to syslog"
                     71: 
                     72: # Initialize some variables set by options.
                     73: # The variables have the same names as the options, with
                     74: # dashes changed to underlines.
                     75: build=NONE
                     76: cache_file=./config.cache
                     77: exec_prefix=NONE
                     78: host=NONE
                     79: no_create=
                     80: nonopt=NONE
                     81: no_recursion=
                     82: prefix=NONE
                     83: program_prefix=NONE
                     84: program_suffix=NONE
                     85: program_transform_name=s,x,x,
                     86: silent=
                     87: site=
                     88: srcdir=
                     89: target=NONE
                     90: verbose=
                     91: x_includes=NONE
                     92: x_libraries=NONE
                     93: bindir='${exec_prefix}/bin'
                     94: sbindir='${exec_prefix}/sbin'
                     95: libexecdir='${exec_prefix}/libexec'
                     96: datadir='${prefix}/share'
                     97: sysconfdir='${prefix}/etc'
                     98: sharedstatedir='${prefix}/com'
                     99: localstatedir='${prefix}/var'
                    100: libdir='${exec_prefix}/lib'
                    101: includedir='${prefix}/include'
                    102: oldincludedir='/usr/include'
1.32      petere    103: docdir='${prefix}/doc'
1.1       petere    104: mandir='${prefix}/man'
                    105: 
                    106: # Initialize some other variables.
                    107: subdirs=
                    108: MFLAGS= MAKEFLAGS=
                    109: SHELL=${CONFIG_SHELL-/bin/sh}
                    110: # Maximum number of lines to put in a shell here document.
                    111: ac_max_here_lines=12
                    112: 
                    113: ac_prev=
                    114: for ac_option
                    115: do
                    116: 
                    117:   # If the previous option needs an argument, assign it.
                    118:   if test -n "$ac_prev"; then
                    119:     eval "$ac_prev=\$ac_option"
                    120:     ac_prev=
                    121:     continue
                    122:   fi
                    123: 
                    124:   case "$ac_option" in
                    125:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                    126:   *) ac_optarg= ;;
                    127:   esac
                    128: 
                    129:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    130: 
                    131:   case "$ac_option" in
                    132: 
                    133:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    134:     ac_prev=bindir ;;
                    135:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    136:     bindir="$ac_optarg" ;;
                    137: 
                    138:   -build | --build | --buil | --bui | --bu)
                    139:     ac_prev=build ;;
                    140:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    141:     build="$ac_optarg" ;;
                    142: 
                    143:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    144:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    145:     ac_prev=cache_file ;;
                    146:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    147:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    148:     cache_file="$ac_optarg" ;;
                    149: 
                    150:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    151:     ac_prev=datadir ;;
                    152:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    153:   | --da=*)
                    154:     datadir="$ac_optarg" ;;
                    155: 
                    156:   -disable-* | --disable-*)
                    157:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
                    158:     # Reject names that are not valid shell variable names.
                    159:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    160:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    161:     fi
                    162:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    163:     eval "enable_${ac_feature}=no" ;;
                    164: 
                    165:   -enable-* | --enable-*)
                    166:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
                    167:     # Reject names that are not valid shell variable names.
                    168:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    169:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    170:     fi
                    171:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    172:     case "$ac_option" in
                    173:       *=*) ;;
                    174:       *) ac_optarg=yes ;;
                    175:     esac
                    176:     eval "enable_${ac_feature}='$ac_optarg'" ;;
                    177: 
                    178:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    179:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    180:   | --exec | --exe | --ex)
                    181:     ac_prev=exec_prefix ;;
                    182:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    183:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    184:   | --exec=* | --exe=* | --ex=*)
                    185:     exec_prefix="$ac_optarg" ;;
                    186: 
                    187:   -gas | --gas | --ga | --g)
                    188:     # Obsolete; use --with-gas.
                    189:     with_gas=yes ;;
                    190: 
                    191:   -help | --help | --hel | --he)
                    192:     # Omit some internal or obsolete options to make the list less imposing.
                    193:     # This message is too long to be a string in the A/UX 3.1 sh.
                    194:     cat << EOF
                    195: Usage: configure [options] [host]
                    196: Options: [defaults in brackets after descriptions]
                    197: Configuration:
                    198:   --cache-file=FILE       cache test results in FILE
                    199:   --help                  print this message
                    200:   --no-create             do not create output files
                    201:   --quiet, --silent       do not print \`checking...' messages
                    202:   --version               print the version of autoconf that created configure
                    203: Directory and file names:
                    204:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    205:                           [$ac_default_prefix]
                    206:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    207:                           [same as prefix]
                    208:   --bindir=DIR            user executables in DIR [EPREFIX/bin]
                    209:   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
                    210:   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
                    211:   --datadir=DIR           read-only architecture-independent data in DIR
                    212:                           [PREFIX/share]
                    213:   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
                    214:   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                    215:                           [PREFIX/com]
                    216:   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
                    217:   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
                    218:   --includedir=DIR        C header files in DIR [PREFIX/include]
                    219:   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
1.32      petere    220:   --docdir=DIR           doc documentation in DIR [PREFIX/doc]
1.1       petere    221:   --mandir=DIR            man documentation in DIR [PREFIX/man]
                    222:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
                    223:   --program-prefix=PREFIX prepend PREFIX to installed program names
                    224:   --program-suffix=SUFFIX append SUFFIX to installed program names
                    225:   --program-transform-name=PROGRAM
                    226:                           run sed PROGRAM on installed program names
                    227: EOF
                    228:     cat << EOF
                    229: Host type:
                    230:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
                    231:   --host=HOST             configure for HOST [guessed]
                    232:   --target=TARGET         configure for TARGET [TARGET=HOST]
                    233: Features and packages:
                    234:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    235:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    236:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    237:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    238:   --x-includes=DIR        X include files are in DIR
                    239:   --x-libraries=DIR       X library files are in DIR
                    240: EOF
                    241:     if test -n "$ac_help"; then
                    242:       echo "--enable and --with options recognized:$ac_help"
                    243:     fi
                    244:     exit 0 ;;
                    245: 
                    246:   -host | --host | --hos | --ho)
                    247:     ac_prev=host ;;
                    248:   -host=* | --host=* | --hos=* | --ho=*)
                    249:     host="$ac_optarg" ;;
                    250: 
                    251:   -includedir | --includedir | --includedi | --included | --include \
                    252:   | --includ | --inclu | --incl | --inc)
                    253:     ac_prev=includedir ;;
                    254:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    255:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    256:     includedir="$ac_optarg" ;;
                    257: 
1.32      petere    258:   -docdir | --docdir | --infodi | --infod | --doc | --inf)
                    259:     ac_prev=docdir ;;
                    260:   -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
                    261:     docdir="$ac_optarg" ;;
1.1       petere    262: 
                    263:   -libdir | --libdir | --libdi | --libd)
                    264:     ac_prev=libdir ;;
                    265:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    266:     libdir="$ac_optarg" ;;
                    267: 
                    268:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    269:   | --libexe | --libex | --libe)
                    270:     ac_prev=libexecdir ;;
                    271:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    272:   | --libexe=* | --libex=* | --libe=*)
                    273:     libexecdir="$ac_optarg" ;;
                    274: 
                    275:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    276:   | --localstate | --localstat | --localsta | --localst \
                    277:   | --locals | --local | --loca | --loc | --lo)
                    278:     ac_prev=localstatedir ;;
                    279:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    280:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    281:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
                    282:     localstatedir="$ac_optarg" ;;
                    283: 
                    284:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    285:     ac_prev=mandir ;;
                    286:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    287:     mandir="$ac_optarg" ;;
                    288: 
                    289:   -nfp | --nfp | --nf)
                    290:     # Obsolete; use --without-fp.
                    291:     with_fp=no ;;
                    292: 
                    293:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    294:   | --no-cr | --no-c)
                    295:     no_create=yes ;;
                    296: 
                    297:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    298:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    299:     no_recursion=yes ;;
                    300: 
                    301:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    302:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    303:   | --oldin | --oldi | --old | --ol | --o)
                    304:     ac_prev=oldincludedir ;;
                    305:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    306:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    307:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    308:     oldincludedir="$ac_optarg" ;;
                    309: 
                    310:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    311:     ac_prev=prefix ;;
                    312:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    313:     prefix="$ac_optarg" ;;
                    314: 
                    315:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    316:   | --program-pre | --program-pr | --program-p)
                    317:     ac_prev=program_prefix ;;
                    318:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    319:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    320:     program_prefix="$ac_optarg" ;;
                    321: 
                    322:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    323:   | --program-suf | --program-su | --program-s)
                    324:     ac_prev=program_suffix ;;
                    325:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    326:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    327:     program_suffix="$ac_optarg" ;;
                    328: 
                    329:   -program-transform-name | --program-transform-name \
                    330:   | --program-transform-nam | --program-transform-na \
                    331:   | --program-transform-n | --program-transform- \
                    332:   | --program-transform | --program-transfor \
                    333:   | --program-transfo | --program-transf \
                    334:   | --program-trans | --program-tran \
                    335:   | --progr-tra | --program-tr | --program-t)
                    336:     ac_prev=program_transform_name ;;
                    337:   -program-transform-name=* | --program-transform-name=* \
                    338:   | --program-transform-nam=* | --program-transform-na=* \
                    339:   | --program-transform-n=* | --program-transform-=* \
                    340:   | --program-transform=* | --program-transfor=* \
                    341:   | --program-transfo=* | --program-transf=* \
                    342:   | --program-trans=* | --program-tran=* \
                    343:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    344:     program_transform_name="$ac_optarg" ;;
                    345: 
                    346:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    347:   | -silent | --silent | --silen | --sile | --sil)
                    348:     silent=yes ;;
                    349: 
                    350:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    351:     ac_prev=sbindir ;;
                    352:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    353:   | --sbi=* | --sb=*)
                    354:     sbindir="$ac_optarg" ;;
                    355: 
                    356:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    357:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    358:   | --sharedst | --shareds | --shared | --share | --shar \
                    359:   | --sha | --sh)
                    360:     ac_prev=sharedstatedir ;;
                    361:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    362:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    363:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    364:   | --sha=* | --sh=*)
                    365:     sharedstatedir="$ac_optarg" ;;
                    366: 
                    367:   -site | --site | --sit)
                    368:     ac_prev=site ;;
                    369:   -site=* | --site=* | --sit=*)
                    370:     site="$ac_optarg" ;;
                    371: 
                    372:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    373:     ac_prev=srcdir ;;
                    374:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    375:     srcdir="$ac_optarg" ;;
                    376: 
                    377:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    378:   | --syscon | --sysco | --sysc | --sys | --sy)
                    379:     ac_prev=sysconfdir ;;
                    380:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    381:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                    382:     sysconfdir="$ac_optarg" ;;
                    383: 
                    384:   -target | --target | --targe | --targ | --tar | --ta | --t)
                    385:     ac_prev=target ;;
                    386:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    387:     target="$ac_optarg" ;;
                    388: 
                    389:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    390:     verbose=yes ;;
                    391: 
                    392:   -version | --version | --versio | --versi | --vers)
                    393:     echo "configure generated by autoconf version 2.13"
                    394:     exit 0 ;;
                    395: 
                    396:   -with-* | --with-*)
                    397:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
                    398:     # Reject names that are not valid shell variable names.
                    399:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    400:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    401:     fi
                    402:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    403:     case "$ac_option" in
                    404:       *=*) ;;
                    405:       *) ac_optarg=yes ;;
                    406:     esac
                    407:     eval "with_${ac_package}='$ac_optarg'" ;;
                    408: 
                    409:   -without-* | --without-*)
                    410:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
                    411:     # Reject names that are not valid shell variable names.
                    412:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    413:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    414:     fi
                    415:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    416:     eval "with_${ac_package}=no" ;;
                    417: 
                    418:   --x)
                    419:     # Obsolete; use --with-x.
                    420:     with_x=yes ;;
                    421: 
                    422:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    423:   | --x-incl | --x-inc | --x-in | --x-i)
                    424:     ac_prev=x_includes ;;
                    425:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    426:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                    427:     x_includes="$ac_optarg" ;;
                    428: 
                    429:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    430:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    431:     ac_prev=x_libraries ;;
                    432:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    433:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                    434:     x_libraries="$ac_optarg" ;;
                    435: 
                    436:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    437:     ;;
                    438: 
                    439:   *)
                    440:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
                    441:       echo "configure: warning: $ac_option: invalid host type" 1>&2
                    442:     fi
                    443:     if test "x$nonopt" != xNONE; then
                    444:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
                    445:     fi
                    446:     nonopt="$ac_option"
                    447:     ;;
                    448: 
                    449:   esac
                    450: done
                    451: 
                    452: if test -n "$ac_prev"; then
                    453:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
                    454: fi
                    455: 
                    456: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                    457: 
                    458: # File descriptor usage:
                    459: # 0 standard input
                    460: # 1 file creation
                    461: # 2 errors and warnings
                    462: # 3 some systems may open it to /dev/tty
                    463: # 4 used on the Kubota Titan
                    464: # 6 checking for... messages and results
                    465: # 5 compiler messages saved in config.log
                    466: if test "$silent" = yes; then
                    467:   exec 6>/dev/null
                    468: else
                    469:   exec 6>&1
                    470: fi
                    471: exec 5>./config.log
                    472: 
                    473: echo "\
                    474: This file contains any messages produced by compilers while
                    475: running configure, to aid debugging if configure makes a mistake.
                    476: " 1>&5
                    477: 
                    478: # Strip out --no-create and --no-recursion so they do not pile up.
                    479: # Also quote any args containing shell metacharacters.
                    480: ac_configure_args=
                    481: for ac_arg
                    482: do
                    483:   case "$ac_arg" in
                    484:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    485:   | --no-cr | --no-c) ;;
                    486:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    487:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    488:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
                    489:   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                    490:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
                    491:   esac
                    492: done
                    493: 
                    494: # NLS nuisances.
                    495: # Only set these to C if already set.  These must not be set unconditionally
                    496: # because not all systems understand e.g. LANG=C (notably SCO).
                    497: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
                    498: # Non-C LC_CTYPE values break the ctype check.
                    499: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
                    500: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
                    501: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
                    502: if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
                    503: 
                    504: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    505: rm -rf conftest* confdefs.h
                    506: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    507: echo > confdefs.h
                    508: 
                    509: # A filename unique to this package, relative to the directory that
                    510: # configure is in, which we can look for to find out if srcdir is correct.
                    511: ac_unique_file=src/backend/access/common/heaptuple.c
                    512: 
                    513: # Find the source files, if location was not specified.
                    514: if test -z "$srcdir"; then
                    515:   ac_srcdir_defaulted=yes
                    516:   # Try the directory containing this script, then its parent.
                    517:   ac_prog=$0
                    518:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
                    519:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
                    520:   srcdir=$ac_confdir
                    521:   if test ! -r $srcdir/$ac_unique_file; then
                    522:     srcdir=..
                    523:   fi
                    524: else
                    525:   ac_srcdir_defaulted=no
                    526: fi
                    527: if test ! -r $srcdir/$ac_unique_file; then
                    528:   if test "$ac_srcdir_defaulted" = yes; then
                    529:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
                    530:   else
                    531:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
                    532:   fi
                    533: fi
                    534: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
                    535: 
                    536: # Prefer explicitly selected file to automatically selected ones.
                    537: if test -z "$CONFIG_SITE"; then
                    538:   if test "x$prefix" != xNONE; then
                    539:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                    540:   else
                    541:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                    542:   fi
                    543: fi
                    544: for ac_site_file in $CONFIG_SITE; do
                    545:   if test -r "$ac_site_file"; then
                    546:     echo "loading site script $ac_site_file"
                    547:     . "$ac_site_file"
                    548:   fi
                    549: done
                    550: 
                    551: if test -r "$cache_file"; then
                    552:   echo "loading cache $cache_file"
                    553:   . $cache_file
                    554: else
                    555:   echo "creating cache $cache_file"
                    556:   > $cache_file
                    557: fi
                    558: 
                    559: ac_ext=c
                    560: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    561: ac_cpp='$CPP $CPPFLAGS'
                    562: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    563: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    564: cross_compiling=$ac_cv_prog_cc_cross
                    565: 
                    566: ac_exeext=
                    567: ac_objext=o
                    568: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
                    569:   # Stardent Vistra SVR4 grep lacks -e, says [email protected].
                    570:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
                    571:     ac_n= ac_c='
                    572: ' ac_t='       '
                    573:   else
                    574:     ac_n=-n ac_c= ac_t=
                    575:   fi
                    576: else
                    577:   ac_n= ac_c='\c' ac_t=
                    578: fi
                    579: 
                    580: 
                    581: 
                    582: 
                    583: 
                    584: 
1.32      petere    585: 
                    586: 
                    587: 
1.1       petere    588: ac_aux_dir=
1.28      petere    589: for ac_dir in config $srcdir/config; do
1.1       petere    590:   if test -f $ac_dir/install-sh; then
                    591:     ac_aux_dir=$ac_dir
                    592:     ac_install_sh="$ac_aux_dir/install-sh -c"
                    593:     break
                    594:   elif test -f $ac_dir/install.sh; then
                    595:     ac_aux_dir=$ac_dir
                    596:     ac_install_sh="$ac_aux_dir/install.sh -c"
                    597:     break
                    598:   fi
                    599: done
                    600: if test -z "$ac_aux_dir"; then
1.28      petere    601:   { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
1.1       petere    602: fi
                    603: ac_config_guess=$ac_aux_dir/config.guess
                    604: ac_config_sub=$ac_aux_dir/config.sub
                    605: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
                    606: 
                    607: 
1.24      petere    608: VERSION='7.1devel'
                    609: 
                    610: cat >> confdefs.h <<EOF
                    611: #define PG_VERSION "$VERSION"
                    612: EOF
                    613: 
                    614: 
1.63      petere    615: abs_top_srcdir=`cd $srcdir && pwd`
                    616: 
                    617: abs_top_builddir=`pwd`
                    618: 
                    619: 
1.1       petere    620: 
                    621: # Make sure we can run config.sub.
                    622: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
                    623: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
                    624: fi
                    625: 
                    626: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.73    ! petere    627: echo "configure:628: checking host system type" >&5
1.1       petere    628: 
                    629: host_alias=$host
                    630: case "$host_alias" in
                    631: NONE)
                    632:   case $nonopt in
                    633:   NONE)
                    634:     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
                    635:     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
                    636:     fi ;;
                    637:   *) host_alias=$nonopt ;;
                    638:   esac ;;
                    639: esac
                    640: 
                    641: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
                    642: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                    643: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                    644: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                    645: echo "$ac_t""$host" 1>&6
                    646: 
                    647: 
1.46      petere    648: 
                    649: 
                    650: 
1.30      petere    651: template=
                    652: echo $ac_n "checking which template to use""... $ac_c" 1>&6
1.73    ! petere    653: echo "configure:654: checking which template to use" >&5
1.30      petere    654: 
1.43      petere    655: # Check whether --with-template was given
                    656: if test x"${with_template+set}" = xset; then
1.30      petere    657:   case $with_template in
1.43      petere    658:     yes)
                    659:       { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
                    660:       ;;
                    661:     no)
                    662:       { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
                    663:       ;;
                    664:     *)
                    665:       withval=$with_template
                    666:       
                    667:   case $withval in
1.30      petere    668:     list)   echo; ls "$srcdir/src/template"; exit;;
                    669:     *)      if test -f "$srcdir/src/template/$with_template" ; then
1.43      petere    670:               template=$withval
1.30      petere    671:             else
1.43      petere    672:               { echo "configure: error: \`$withval' is not a valid template name. Use \`list' for a list." 1>&2; exit 1; }
1.30      petere    673:             fi;;
                    674:   esac
                    675: 
1.43      petere    676:       ;;
                    677:   esac # $with_template
                    678: else
                    679:   
                    680:   # --with-template not given
1.30      petere    681: 
                    682: case $host_os in
                    683:      aix*) template=aix ;;
1.56      momjian   684:     beos*) template=beos ;;
1.30      petere    685:     bsdi*) template=bsdi ;;
                    686:   cygwin*) template=win ;;
                    687:     dgux*) template=dgux ;;
                    688:  freebsd*) template=freebsd ;;
                    689:     hpux*) template=hpux ;;
                    690:     irix*) template=irix5 ;;
                    691:    linux*) template=linux ;;
                    692:   netbsd*) template=netbsd ;;
                    693: nextstep*) template=nextstep ;;
                    694:  openbsd*) template=openbsd ;;
                    695:      osf*) template=osf ;;
                    696:      qnx*) template=qnx4 ;;
                    697:      sco*) template=sco ;;
1.60      petere    698:  solaris*) template=solaris ;;
1.30      petere    699:    sunos*) template=sunos4 ;;
1.1       petere    700:  sysv4.2*)
1.30      petere    701:         case $host_vendor in
                    702:           univel) template=univel ;;
                    703:         esac ;;
                    704:    sysv4*) template=svr4 ;;
                    705:  sysv5uw*) template=unixware ;;
                    706:   ultrix*) template=ultrix4 ;;
1.1       petere    707: esac
                    708: 
1.30      petere    709:   if test x"$template" = x"" ; then
                    710:     { echo "configure: error: 
                    711: *******************************************************************
                    712: PostgreSQL has apparently not been ported to your platform yet.
1.32      petere    713: To try a manual configuration, look into the src/template directory
1.30      petere    714: for a similar platform and use the \`--with-template=' option.
1.1       petere    715: 
1.30      petere    716: Please also contact <[email protected]> to see about
                    717: rectifying this.  Include the above \`checking host system type...'
                    718: line.
                    719: *******************************************************************
                    720: " 1>&2; exit 1; }
                    721:   fi
                    722: 
1.43      petere    723: 
                    724: fi
1.1       petere    725: 
1.30      petere    726: echo "$ac_t""$template" 1>&6
                    727: 
                    728: PORTNAME=$template
1.1       petere    729: 
                    730: 
                    731: 
                    732: 
                    733: 
                    734: 
                    735: 
1.60      petere    736: # Pick right test-and-set (TAS) code.  Most platforms have inline
                    737: # assembler code in src/include/storage/s_lock.h, so we just use
                    738: # a dummy file here.
                    739: case $host in
                    740:   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
                    741:   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
                    742:   i?86-*-solaris)   need_tas=yes; tas_file=solaris_i386.s ;;
1.65      petere    743:   *)                need_tas=no;  tas_file=dummy.s ;;
1.30      petere    744: esac
1.1       petere    745: 
1.65      petere    746: 
1.30      petere    747: if test "$need_tas" = yes ; then
                    748:   TAS=tas.o
1.1       petere    749: fi
                    750: 
                    751: 
                    752: 
1.30      petere    753: 
                    754: ##
                    755: ## Command line options
                    756: ##
1.1       petere    757: 
                    758: 
1.30      petere    759: #
                    760: # Add non-standard directories to the include path
                    761: #
1.43      petere    762: # Check whether --with-includes was given
                    763: if test x"${with_includes+set}" = xset; then
                    764:   case $with_includes in
                    765:     yes)
                    766:       { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
                    767:       ;;
                    768:     no)
                    769:       { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
                    770:       ;;
                    771:   esac # $with_includes
1.1       petere    772: fi
                    773: 
                    774: 
1.30      petere    775: #
                    776: # Add non-standard directories to the library search path
                    777: #
1.43      petere    778: # Check whether --with-libraries was given
                    779: if test x"${with_libraries+set}" = xset; then
                    780:   case $with_libraries in
                    781:     yes)
                    782:       { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
                    783:       ;;
                    784:     no)
                    785:       { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
                    786:       ;;
                    787:     *)
                    788:       withval=$with_libraries
                    789:       LIBRARY_DIRS=$withval
                    790:       ;;
                    791:   esac # $with_libraries
1.1       petere    792: fi
                    793: 
1.43      petere    794: # Check whether --with-libs was given
                    795: if test x"${with_libs+set}" = xset; then
                    796:   case $with_libs in
                    797:     yes)
                    798:       { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
                    799:       ;;
                    800:     no)
                    801:       { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
                    802:       ;;
                    803:     *)
                    804:       withval=$with_libs
                    805:       LIBRARY_DIRS=$withval
                    806:       ;;
                    807:   esac # $with_libs
1.1       petere    808: fi
                    809: 
1.29      petere    810: 
                    811: #
                    812: # Locale (--enable-locale)
                    813: #
                    814: echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
1.73    ! petere    815: echo "configure:816: checking whether to build with locale support" >&5
1.43      petere    816: # Check whether --enable-locale was given
                    817: if test x"${enable_locale+set}" = xset; then
                    818:   case $enable_locale in
                    819:     yes)
                    820:       cat >> confdefs.h <<\EOF
1.30      petere    821: #define USE_LOCALE 1
1.1       petere    822: EOF
1.29      petere    823: 
1.43      petere    824:       ;;
                    825:     no)
                    826:       :
                    827:       ;;
                    828:     *)
                    829:       enableval=$enable_locale
                    830:       { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
                    831:       ;;
                    832:   esac # $enable_locale
1.1       petere    833: else
1.29      petere    834:   enable_locale=no
1.43      petere    835: 
1.29      petere    836: fi
                    837: echo "$ac_t""$enable_locale" 1>&6
1.1       petere    838: 
                    839: 
1.29      petere    840: #
1.43      petere    841: # Character set recode (--enable-recode)
1.29      petere    842: #
1.43      petere    843: echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
1.73    ! petere    844: echo "configure:845: checking whether to build with recode support" >&5
1.43      petere    845: # Check whether --enable-recode was given
                    846: if test x"${enable_recode+set}" = xset; then
                    847:   case $enable_recode in
                    848:     yes)
                    849:       cat >> confdefs.h <<\EOF
1.30      petere    850: #define CYR_RECODE 1
1.1       petere    851: EOF
1.29      petere    852: 
1.43      petere    853:       ;;
                    854:     no)
                    855:       :
                    856:       ;;
                    857:     *)
                    858:       enableval=$enable_recode
                    859:       { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
                    860:       ;;
                    861:   esac # $enable_recode
1.1       petere    862: else
1.29      petere    863:   enable_recode=no
1.43      petere    864: 
1.1       petere    865: fi
1.29      petere    866: echo "$ac_t""$enable_recode" 1>&6
1.1       petere    867: 
                    868: 
1.29      petere    869: #
                    870: # Multibyte support
                    871: #
                    872: MULTIBYTE=
                    873: echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
1.73    ! petere    874: echo "configure:875: checking whether to build with multibyte character support" >&5
1.43      petere    875: 
                    876: # Check whether --enable-multibyte was given
                    877: if test x"${enable_multibyte+set}" = xset; then
                    878:   case $enable_multibyte in
                    879:     yes)
                    880:       MULTIBYTE=SQL_ASCII
                    881:       ;;
                    882:     no)
                    883:       :
                    884:       ;;
                    885:     *)
                    886:       enableval=$enable_multibyte
                    887:       enable_multibyte=yes
                    888: 
1.29      petere    889:   case $enableval in
                    890:     SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
1.43      petere    891:       MULTIBYTE=$enableval;;
                    892:     *)
                    893:       { echo "configure: error: argument to --enable-multibyte must be one of:
1.1       petere    894:   SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
                    895:   UNICODE, MULE_INTERNAL,
                    896:   LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
                    897:   KOI8, WIN, ALT
1.43      petere    898: Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
1.29      petere    899:   esac
1.1       petere    900: 
1.43      petere    901:       ;;
                    902:   esac # $enable_multibyte
1.1       petere    903: else
1.29      petere    904:   enable_multibyte=no
                    905: fi
                    906: 
1.43      petere    907: if test "$enable_multibyte" = yes; then
                    908:   
1.29      petere    909:   cat >> confdefs.h <<\EOF
1.30      petere    910: #define MULTIBYTE 1
1.29      petere    911: EOF
1.1       petere    912: 
1.29      petere    913:   echo "$ac_t""yes, default $MULTIBYTE" 1>&6
1.43      petere    914: 
1.29      petere    915: else
                    916:   echo "$ac_t""no" 1>&6
1.3       tgl       917: fi
1.1       petere    918: 
                    919: 
1.43      petere    920: 
                    921: 
                    922: 
1.29      petere    923: #
                    924: # Default port number (--with-pgport), default 5432
                    925: #
                    926: echo $ac_n "checking for default port number""... $ac_c" 1>&6
1.73    ! petere    927: echo "configure:928: checking for default port number" >&5
1.43      petere    928: # Check whether --with-pgport was given
                    929: if test x"${with_pgport+set}" = xset; then
                    930:   case $with_pgport in
                    931:     yes)
                    932:       { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
                    933:       ;;
                    934:     no)
                    935:       { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
                    936:       ;;
                    937:     *)
                    938:       withval=$with_pgport
                    939:       default_port=$withval
                    940:       ;;
                    941:   esac # $with_pgport
1.1       petere    942: else
                    943:   default_port=5432
                    944: fi
1.29      petere    945: # Need both of these because backend wants an integer and frontend a string
1.1       petere    946: cat >> confdefs.h <<EOF
                    947: #define DEF_PGPORT ${default_port}
                    948: EOF
                    949: 
                    950: cat >> confdefs.h <<EOF
                    951: #define DEF_PGPORT_STR "${default_port}"
                    952: EOF
                    953: 
1.29      petere    954: echo "$ac_t""$default_port" 1>&6
1.1       petere    955: 
                    956: 
1.29      petere    957: #
                    958: # Maximum number of allowed connections (--with-maxbackends), default 32
                    959: #
                    960: echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
1.73    ! petere    961: echo "configure:962: checking for default soft limit on number of connections" >&5
1.43      petere    962: # Check whether --with-maxbackends was given
                    963: if test x"${with_maxbackends+set}" = xset; then
                    964:   case $with_maxbackends in
                    965:     yes)
                    966:       { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
                    967:       ;;
                    968:     no)
                    969:       { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
                    970:       ;;
                    971:   esac # $with_maxbackends
1.1       petere    972: else
1.29      petere    973:   with_maxbackends=32
                    974: fi
                    975: echo "$ac_t""$with_maxbackends" 1>&6
                    976: cat >> confdefs.h <<EOF
                    977: #define DEF_MAXBACKENDS $with_maxbackends
1.1       petere    978: EOF
                    979: 
                    980: 
                    981: 
1.29      petere    982: #
1.67      petere    983: # Option to disable shared libraries
                    984: #
                    985: # Check whether --enable-shared was given
                    986: if test x"${enable_shared+set}" = xset; then
                    987:   case $enable_shared in
                    988:     yes)
                    989:       :
                    990:       ;;
                    991:     no)
                    992:       :
                    993:       ;;
                    994:     *)
                    995:       enableval=$enable_shared
                    996:       { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
                    997:       ;;
                    998:   esac # $enable_shared
                    999: else
                   1000:   enable_shared=yes
                   1001: 
                   1002: fi
                   1003: 
                   1004: 
1.73    ! petere   1005: #
        !          1006: # '-rpath'-like feature can be disabled
        !          1007: #
        !          1008: # Check whether --enable-rpath was given
        !          1009: if test x"${enable_rpath+set}" = xset; then
        !          1010:   case $enable_rpath in
        !          1011:     yes)
        !          1012:       :
        !          1013:       ;;
        !          1014:     no)
        !          1015:       :
        !          1016:       ;;
        !          1017:     *)
        !          1018:       enableval=$enable_rpath
        !          1019:       { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
        !          1020:       ;;
        !          1021:   esac # $enable_rpath
        !          1022: else
        !          1023:   enable_rpath=yes
        !          1024: 
        !          1025: fi
        !          1026: 
        !          1027: 
1.67      petere   1028: 
                   1029: #
1.30      petere   1030: # C compiler
                   1031: #
                   1032: 
1.29      petere   1033: # For historical reasons you can also use --with-CC to specify the C compiler
                   1034: # to use, although the standard way to do this is to set the CC environment
                   1035: # variable.
1.43      petere   1036: # Check whether --with-CC was given
                   1037: if test x"${with_CC+set}" = xset; then
1.29      petere   1038:   case $with_CC in
1.43      petere   1039:     yes)
                   1040:       { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
                   1041:       ;;
                   1042:     no)
                   1043:       { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
                   1044:       ;;
                   1045:     *)
                   1046:       withval=$with_CC
                   1047:       CC=$with_CC
                   1048:       ;;
                   1049:   esac # $with_CC
1.1       petere   1050: fi
                   1051: 
1.30      petere   1052: # On AIX, default compiler to xlc.
                   1053: if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1.1       petere   1054: 
                   1055: # Extract the first word of "gcc", so it can be a program name with args.
                   1056: set dummy gcc; ac_word=$2
                   1057: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.73    ! petere   1058: echo "configure:1059: checking for $ac_word" >&5
1.1       petere   1059: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1060:   echo $ac_n "(cached) $ac_c" 1>&6
                   1061: else
                   1062:   if test -n "$CC"; then
                   1063:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1064: else
                   1065:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1066:   ac_dummy="$PATH"
                   1067:   for ac_dir in $ac_dummy; do
                   1068:     test -z "$ac_dir" && ac_dir=.
                   1069:     if test -f $ac_dir/$ac_word; then
                   1070:       ac_cv_prog_CC="gcc"
                   1071:       break
                   1072:     fi
                   1073:   done
                   1074:   IFS="$ac_save_ifs"
                   1075: fi
                   1076: fi
                   1077: CC="$ac_cv_prog_CC"
                   1078: if test -n "$CC"; then
                   1079:   echo "$ac_t""$CC" 1>&6
                   1080: else
                   1081:   echo "$ac_t""no" 1>&6
                   1082: fi
                   1083: 
                   1084: if test -z "$CC"; then
                   1085:   # Extract the first word of "cc", so it can be a program name with args.
                   1086: set dummy cc; ac_word=$2
                   1087: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.73    ! petere   1088: echo "configure:1089: checking for $ac_word" >&5
1.1       petere   1089: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1090:   echo $ac_n "(cached) $ac_c" 1>&6
                   1091: else
                   1092:   if test -n "$CC"; then
                   1093:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1094: else
                   1095:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1096:   ac_prog_rejected=no
                   1097:   ac_dummy="$PATH"
                   1098:   for ac_dir in $ac_dummy; do
                   1099:     test -z "$ac_dir" && ac_dir=.
                   1100:     if test -f $ac_dir/$ac_word; then
                   1101:       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
                   1102:         ac_prog_rejected=yes
                   1103:        continue
                   1104:       fi
                   1105:       ac_cv_prog_CC="cc"
                   1106:       break
                   1107:     fi
                   1108:   done
                   1109:   IFS="$ac_save_ifs"
                   1110: if test $ac_prog_rejected = yes; then
                   1111:   # We found a bogon in the path, so make sure we never use it.
                   1112:   set dummy $ac_cv_prog_CC
                   1113:   shift
                   1114:   if test $# -gt 0; then
                   1115:     # We chose a different compiler from the bogus one.
                   1116:     # However, it has the same basename, so the bogon will be chosen
                   1117:     # first if we set CC to just the basename; use the full file name.
                   1118:     shift
                   1119:     set dummy "$ac_dir/$ac_word" "$@"
                   1120:     shift
                   1121:     ac_cv_prog_CC="$@"
                   1122:   fi
                   1123: fi
                   1124: fi
                   1125: fi
                   1126: CC="$ac_cv_prog_CC"
                   1127: if test -n "$CC"; then
                   1128:   echo "$ac_t""$CC" 1>&6
                   1129: else
                   1130:   echo "$ac_t""no" 1>&6
                   1131: fi
                   1132: 
                   1133:   if test -z "$CC"; then
                   1134:     case "`uname -s`" in
                   1135:     *win32* | *WIN32*)
                   1136:       # Extract the first word of "cl", so it can be a program name with args.
                   1137: set dummy cl; ac_word=$2
                   1138: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.73    ! petere   1139: echo "configure:1140: checking for $ac_word" >&5
1.1       petere   1140: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1141:   echo $ac_n "(cached) $ac_c" 1>&6
                   1142: else
                   1143:   if test -n "$CC"; then
                   1144:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1145: else
                   1146:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1147:   ac_dummy="$PATH"
                   1148:   for ac_dir in $ac_dummy; do
                   1149:     test -z "$ac_dir" && ac_dir=.
                   1150:     if test -f $ac_dir/$ac_word; then
                   1151:       ac_cv_prog_CC="cl"
                   1152:       break
                   1153:     fi
                   1154:   done
                   1155:   IFS="$ac_save_ifs"
                   1156: fi
                   1157: fi
                   1158: CC="$ac_cv_prog_CC"
                   1159: if test -n "$CC"; then
                   1160:   echo "$ac_t""$CC" 1>&6
                   1161: else
                   1162:   echo "$ac_t""no" 1>&6
                   1163: fi
                   1164:  ;;
                   1165:     esac
                   1166:   fi
                   1167:   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
                   1168: fi
                   1169: 
                   1170: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.73    ! petere   1171: echo "configure:1172: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1       petere   1172: 
                   1173: ac_ext=c
                   1174: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1175: ac_cpp='$CPP $CPPFLAGS'
                   1176: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1177: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1178: cross_compiling=$ac_cv_prog_cc_cross
                   1179: 
                   1180: cat > conftest.$ac_ext << EOF
                   1181: 
1.73    ! petere   1182: #line 1183 "configure"
1.1       petere   1183: #include "confdefs.h"
                   1184: 
                   1185: main(){return(0);}
                   1186: EOF
1.73    ! petere   1187: if { (eval echo configure:1188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   1188:   ac_cv_prog_cc_works=yes
                   1189:   # If we can't run a trivial program, we are probably using a cross compiler.
                   1190:   if (./conftest; exit) 2>/dev/null; then
                   1191:     ac_cv_prog_cc_cross=no
                   1192:   else
                   1193:     ac_cv_prog_cc_cross=yes
                   1194:   fi
                   1195: else
                   1196:   echo "configure: failed program was:" >&5
                   1197:   cat conftest.$ac_ext >&5
                   1198:   ac_cv_prog_cc_works=no
                   1199: fi
                   1200: rm -fr conftest*
                   1201: ac_ext=c
                   1202: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1203: ac_cpp='$CPP $CPPFLAGS'
                   1204: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1205: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1206: cross_compiling=$ac_cv_prog_cc_cross
                   1207: 
                   1208: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
                   1209: if test $ac_cv_prog_cc_works = no; then
                   1210:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
                   1211: fi
                   1212: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.73    ! petere   1213: echo "configure:1214: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1       petere   1214: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
                   1215: cross_compiling=$ac_cv_prog_cc_cross
                   1216: 
                   1217: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.73    ! petere   1218: echo "configure:1219: checking whether we are using GNU C" >&5
1.1       petere   1219: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
                   1220:   echo $ac_n "(cached) $ac_c" 1>&6
                   1221: else
                   1222:   cat > conftest.c <<EOF
                   1223: #ifdef __GNUC__
                   1224:   yes;
                   1225: #endif
                   1226: EOF
1.73    ! petere   1227: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       petere   1228:   ac_cv_prog_gcc=yes
                   1229: else
                   1230:   ac_cv_prog_gcc=no
                   1231: fi
                   1232: fi
                   1233: 
                   1234: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
                   1235: 
                   1236: if test $ac_cv_prog_gcc = yes; then
                   1237:   GCC=yes
                   1238: else
                   1239:   GCC=
                   1240: fi
                   1241: 
                   1242: ac_test_CFLAGS="${CFLAGS+set}"
                   1243: ac_save_CFLAGS="$CFLAGS"
                   1244: CFLAGS=
                   1245: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.73    ! petere   1246: echo "configure:1247: checking whether ${CC-cc} accepts -g" >&5
1.1       petere   1247: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
                   1248:   echo $ac_n "(cached) $ac_c" 1>&6
                   1249: else
                   1250:   echo 'void f(){}' > conftest.c
                   1251: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
                   1252:   ac_cv_prog_cc_g=yes
                   1253: else
                   1254:   ac_cv_prog_cc_g=no
                   1255: fi
                   1256: rm -f conftest*
                   1257: 
                   1258: fi
                   1259: 
                   1260: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
                   1261: if test "$ac_test_CFLAGS" = set; then
                   1262:   CFLAGS="$ac_save_CFLAGS"
                   1263: elif test $ac_cv_prog_cc_g = yes; then
                   1264:   if test "$GCC" = yes; then
                   1265:     CFLAGS="-g -O2"
                   1266:   else
                   1267:     CFLAGS="-g"
                   1268:   fi
                   1269: else
                   1270:   if test "$GCC" = yes; then
                   1271:     CFLAGS="-O2"
                   1272:   else
                   1273:     CFLAGS=
                   1274:   fi
                   1275: fi
                   1276: 
1.30      petere   1277: # Read the template
                   1278: . "$srcdir/src/template/$template" || exit
                   1279: echo "using CFLAGS=$CFLAGS"
                   1280: # Check if the compiler still works with the template settings
                   1281: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.73    ! petere   1282: echo "configure:1283: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.30      petere   1283: 
                   1284: ac_ext=c
                   1285: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1286: ac_cpp='$CPP $CPPFLAGS'
                   1287: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1288: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1289: cross_compiling=$ac_cv_prog_cc_cross
                   1290: 
                   1291: cat > conftest.$ac_ext << EOF
                   1292: 
1.73    ! petere   1293: #line 1294 "configure"
1.30      petere   1294: #include "confdefs.h"
                   1295: 
                   1296: main(){return(0);}
                   1297: EOF
1.73    ! petere   1298: if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.30      petere   1299:   ac_cv_prog_cc_works=yes
                   1300:   # If we can't run a trivial program, we are probably using a cross compiler.
                   1301:   if (./conftest; exit) 2>/dev/null; then
                   1302:     ac_cv_prog_cc_cross=no
                   1303:   else
                   1304:     ac_cv_prog_cc_cross=yes
                   1305:   fi
                   1306: else
                   1307:   echo "configure: failed program was:" >&5
                   1308:   cat conftest.$ac_ext >&5
                   1309:   ac_cv_prog_cc_works=no
                   1310: fi
                   1311: rm -fr conftest*
                   1312: ac_ext=c
                   1313: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1314: ac_cpp='$CPP $CPPFLAGS'
                   1315: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1316: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1317: cross_compiling=$ac_cv_prog_cc_cross
                   1318: 
                   1319: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
                   1320: if test $ac_cv_prog_cc_works = no; then
                   1321:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
                   1322: fi
                   1323: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.73    ! petere   1324: echo "configure:1325: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.30      petere   1325: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
                   1326: cross_compiling=$ac_cv_prog_cc_cross
                   1327: 
1.45      petere   1328: echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1.73    ! petere   1329: echo "configure:1330: checking for Cygwin environment" >&5
1.45      petere   1330: if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
                   1331:   echo $ac_n "(cached) $ac_c" 1>&6
                   1332: else
                   1333:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   1334: #line 1335 "configure"
1.45      petere   1335: #include "confdefs.h"
                   1336: 
                   1337: int main() {
                   1338: 
                   1339: #ifndef __CYGWIN__
                   1340: #define __CYGWIN__ __CYGWIN32__
                   1341: #endif
                   1342: return __CYGWIN__;
                   1343: ; return 0; }
                   1344: EOF
1.73    ! petere   1345: if { (eval echo configure:1346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.45      petere   1346:   rm -rf conftest*
                   1347:   ac_cv_cygwin=yes
                   1348: else
                   1349:   echo "configure: failed program was:" >&5
                   1350:   cat conftest.$ac_ext >&5
                   1351:   rm -rf conftest*
                   1352:   ac_cv_cygwin=no
                   1353: fi
                   1354: rm -f conftest*
                   1355: rm -f conftest*
                   1356: fi
                   1357: 
                   1358: echo "$ac_t""$ac_cv_cygwin" 1>&6
                   1359: CYGWIN=
                   1360: test "$ac_cv_cygwin" = yes && CYGWIN=yes
                   1361: echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1.73    ! petere   1362: echo "configure:1363: checking for mingw32 environment" >&5
1.45      petere   1363: if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
                   1364:   echo $ac_n "(cached) $ac_c" 1>&6
                   1365: else
                   1366:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   1367: #line 1368 "configure"
1.45      petere   1368: #include "confdefs.h"
                   1369: 
                   1370: int main() {
                   1371: return __MINGW32__;
                   1372: ; return 0; }
                   1373: EOF
1.73    ! petere   1374: if { (eval echo configure:1375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.45      petere   1375:   rm -rf conftest*
                   1376:   ac_cv_mingw32=yes
                   1377: else
                   1378:   echo "configure: failed program was:" >&5
                   1379:   cat conftest.$ac_ext >&5
                   1380:   rm -rf conftest*
                   1381:   ac_cv_mingw32=no
                   1382: fi
                   1383: rm -f conftest*
                   1384: rm -f conftest*
                   1385: fi
                   1386: 
                   1387: echo "$ac_t""$ac_cv_mingw32" 1>&6
                   1388: MINGW32=
                   1389: test "$ac_cv_mingw32" = yes && MINGW32=yes
                   1390: 
                   1391: 
                   1392: echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1.73    ! petere   1393: echo "configure:1394: checking for executable suffix" >&5
1.45      petere   1394: if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
                   1395:   echo $ac_n "(cached) $ac_c" 1>&6
                   1396: else
                   1397:   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
                   1398:   ac_cv_exeext=.exe
                   1399: else
                   1400:   rm -f conftest*
                   1401:   echo 'int main () { return 0; }' > conftest.$ac_ext
                   1402:   ac_cv_exeext=
1.73    ! petere   1403:   if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.45      petere   1404:     for file in conftest.*; do
                   1405:       case $file in
                   1406:       *.c | *.o | *.obj) ;;
                   1407:       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
                   1408:       esac
                   1409:     done
                   1410:   else
                   1411:     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
                   1412:   fi
                   1413:   rm -f conftest*
                   1414:   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
                   1415: fi
                   1416: fi
                   1417: 
                   1418: EXEEXT=""
                   1419: test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
                   1420: echo "$ac_t""${ac_cv_exeext}" 1>&6
                   1421: ac_exeext=$EXEEXT
                   1422: 
1.1       petere   1423: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1.73    ! petere   1424: echo "configure:1425: checking how to run the C preprocessor" >&5
1.1       petere   1425: # On Suns, sometimes $CPP names a directory.
                   1426: if test -n "$CPP" && test -d "$CPP"; then
                   1427:   CPP=
                   1428: fi
                   1429: if test -z "$CPP"; then
                   1430: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
                   1431:   echo $ac_n "(cached) $ac_c" 1>&6
                   1432: else
                   1433:     # This must be in double quotes, not single quotes, because CPP may get
                   1434:   # substituted into the Makefile and "${CC-cc}" will confuse make.
                   1435:   CPP="${CC-cc} -E"
                   1436:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   1437:   # not just through cpp.
                   1438:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   1439: #line 1440 "configure"
1.1       petere   1440: #include "confdefs.h"
                   1441: #include <assert.h>
                   1442: Syntax Error
                   1443: EOF
                   1444: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   1445: { (eval echo configure:1446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   1446: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   1447: if test -z "$ac_err"; then
                   1448:   :
                   1449: else
                   1450:   echo "$ac_err" >&5
                   1451:   echo "configure: failed program was:" >&5
                   1452:   cat conftest.$ac_ext >&5
                   1453:   rm -rf conftest*
                   1454:   CPP="${CC-cc} -E -traditional-cpp"
                   1455:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   1456: #line 1457 "configure"
1.1       petere   1457: #include "confdefs.h"
                   1458: #include <assert.h>
                   1459: Syntax Error
                   1460: EOF
                   1461: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   1462: { (eval echo configure:1463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   1463: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   1464: if test -z "$ac_err"; then
                   1465:   :
                   1466: else
                   1467:   echo "$ac_err" >&5
                   1468:   echo "configure: failed program was:" >&5
                   1469:   cat conftest.$ac_ext >&5
                   1470:   rm -rf conftest*
                   1471:   CPP="${CC-cc} -nologo -E"
                   1472:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   1473: #line 1474 "configure"
1.1       petere   1474: #include "confdefs.h"
                   1475: #include <assert.h>
                   1476: Syntax Error
                   1477: EOF
                   1478: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   1479: { (eval echo configure:1480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   1480: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   1481: if test -z "$ac_err"; then
                   1482:   :
                   1483: else
                   1484:   echo "$ac_err" >&5
                   1485:   echo "configure: failed program was:" >&5
                   1486:   cat conftest.$ac_ext >&5
                   1487:   rm -rf conftest*
                   1488:   CPP=/lib/cpp
                   1489: fi
                   1490: rm -f conftest*
                   1491: fi
                   1492: rm -f conftest*
                   1493: fi
                   1494: rm -f conftest*
                   1495:   ac_cv_prog_CPP="$CPP"
                   1496: fi
                   1497:   CPP="$ac_cv_prog_CPP"
                   1498: else
                   1499:   ac_cv_prog_CPP="$CPP"
                   1500: fi
                   1501: echo "$ac_t""$CPP" 1>&6
                   1502: 
                   1503: if test $ac_cv_prog_gcc = yes; then
                   1504:     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1.73    ! petere   1505: echo "configure:1506: checking whether ${CC-cc} needs -traditional" >&5
1.1       petere   1506: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
                   1507:   echo $ac_n "(cached) $ac_c" 1>&6
                   1508: else
                   1509:     ac_pattern="Autoconf.*'x'"
                   1510:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   1511: #line 1512 "configure"
1.1       petere   1512: #include "confdefs.h"
                   1513: #include <sgtty.h>
                   1514: Autoconf TIOCGETP
                   1515: EOF
                   1516: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   1517:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   1518:   rm -rf conftest*
                   1519:   ac_cv_prog_gcc_traditional=yes
                   1520: else
                   1521:   rm -rf conftest*
                   1522:   ac_cv_prog_gcc_traditional=no
                   1523: fi
                   1524: rm -f conftest*
                   1525: 
                   1526: 
                   1527:   if test $ac_cv_prog_gcc_traditional = no; then
                   1528:     cat > conftest.$ac_ext <<EOF
1.73    ! petere   1529: #line 1530 "configure"
1.1       petere   1530: #include "confdefs.h"
                   1531: #include <termio.h>
                   1532: Autoconf TCGETA
                   1533: EOF
                   1534: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   1535:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   1536:   rm -rf conftest*
                   1537:   ac_cv_prog_gcc_traditional=yes
                   1538: fi
                   1539: rm -f conftest*
                   1540: 
                   1541:   fi
                   1542: fi
                   1543: 
                   1544: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
                   1545:   if test $ac_cv_prog_gcc_traditional = yes; then
                   1546:     CC="$CC -traditional"
                   1547:   fi
                   1548: fi
                   1549: 
                   1550: 
1.5       petere   1551: 
1.29      petere   1552: # Create compiler version string
1.24      petere   1553: if test x"$GCC" = x"yes" ; then
                   1554:   cc_string="GCC `${CC} --version`"
1.1       petere   1555: else
1.24      petere   1556:   cc_string=$CC
1.1       petere   1557: fi
1.24      petere   1558: cat >> confdefs.h <<EOF
                   1559: #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
                   1560: EOF
                   1561: 
1.1       petere   1562: 
                   1563: 
1.31      petere   1564: #
                   1565: # Automatic dependency tracking
                   1566: #
1.43      petere   1567: # Check whether --enable-depend was given
                   1568: if test x"${enable_depend+set}" = xset; then
                   1569:   case $enable_depend in
                   1570:     yes)
                   1571:       autodepend=yes
                   1572:       ;;
                   1573:     no)
                   1574:       :
                   1575:       ;;
                   1576:     *)
                   1577:       enableval=$enable_depend
                   1578:       { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
                   1579:       ;;
                   1580:   esac # $enable_depend
                   1581: else
                   1582:   enable_depend=no
1.31      petere   1583: 
                   1584: fi
                   1585: 
                   1586: 
                   1587: 
1.43      petere   1588: #
                   1589: # --enable-debug adds -g to compiler flags
                   1590: #
                   1591: # Check whether --enable-debug was given
                   1592: if test x"${enable_debug+set}" = xset; then
                   1593:   case $enable_debug in
                   1594:     yes)
                   1595:       CFLAGS="$CFLAGS -g"
                   1596:       ;;
                   1597:     no)
                   1598:       :
                   1599:       ;;
                   1600:     *)
                   1601:       enableval=$enable_debug
                   1602:       { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
                   1603:       ;;
                   1604:   esac # $enable_debug
                   1605: else
                   1606:   enable_debug=no
                   1607: 
                   1608: fi
                   1609: 
1.31      petere   1610: 
1.43      petere   1611: #
                   1612: # Enable assert checks
                   1613: #
                   1614: # Check whether --enable-cassert was given
                   1615: if test x"${enable_cassert+set}" = xset; then
                   1616:   case $enable_cassert in
                   1617:     yes)
                   1618:       cat >> confdefs.h <<\EOF
                   1619: #define USE_ASSERT_CHECKING 1
                   1620: EOF
1.30      petere   1621: 
1.43      petere   1622:       ;;
                   1623:     no)
                   1624:       :
                   1625:       ;;
                   1626:     *)
                   1627:       enableval=$enable_cassert
                   1628:       { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
                   1629:       ;;
                   1630:   esac # $enable_cassert
1.30      petere   1631: else
1.43      petere   1632:   enable_cassert=no
                   1633: 
1.30      petere   1634: fi
                   1635: 
                   1636: 
                   1637: #
                   1638: # Include directories
                   1639: #
                   1640: ac_save_IFS=$IFS
                   1641: IFS=':'
                   1642: # SRCH_INC comes from the template file
                   1643: for dir in $with_includes $SRCH_INC; do
                   1644:   if test -d "$dir"; then
                   1645:     INCLUDES="$INCLUDES -I$dir"
                   1646:   else
                   1647:     echo "configure: warning: *** Include directory $dir does not exist." 1>&2
                   1648:   fi
                   1649: done
                   1650: IFS=$ac_save_IFS
                   1651: 
                   1652: 
                   1653: 
                   1654: #
                   1655: # Library directories
                   1656: #
                   1657: ac_save_IFS=$IFS
                   1658: IFS=':'
                   1659: # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
                   1660: for dir in $LIBRARY_DIRS $SRCH_LIB; do
                   1661:   if test -d "$dir"; then
1.70      petere   1662:     LIBDIRS="$LIBDIRS -L$dir"
1.30      petere   1663:   else
                   1664:     echo "configure: warning: *** Library directory $dir does not exist." 1>&2
                   1665:   fi
                   1666: done
                   1667: IFS=$ac_save_IFS
                   1668: 
                   1669: 
1.44      petere   1670: #
                   1671: # Tcl/Tk
                   1672: #
                   1673: echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1.73    ! petere   1674: echo "configure:1675: checking whether to build with Tcl" >&5
1.43      petere   1675: # Check whether --with-tcl was given
                   1676: if test x"${with_tcl+set}" = xset; then
                   1677:   case $with_tcl in
                   1678:     yes)
1.44      petere   1679:       :
1.43      petere   1680:       ;;
                   1681:     no)
1.44      petere   1682:       :
1.43      petere   1683:       ;;
                   1684:     *)
                   1685:       withval=$with_tcl
                   1686:       { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
                   1687:       ;;
                   1688:   esac # $with_tcl
1.3       tgl      1689: else
1.43      petere   1690:   with_tcl=no
1.44      petere   1691: 
1.3       tgl      1692: fi
1.44      petere   1693: echo "$ac_t""$with_tcl" 1>&6
                   1694: 
                   1695: 
                   1696: # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
                   1697: echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1.73    ! petere   1698: echo "configure:1699: checking whether to build with Tk" >&5
1.44      petere   1699: if test "$with_tcl" = yes; then
                   1700:   # Check whether --with-tk was given
                   1701: if test x"${with_tk+set}" = xset; then
                   1702:   case $with_tk in
                   1703:     yes)
                   1704:       :
                   1705:       ;;
                   1706:     no)
                   1707:       :
                   1708:       ;;
                   1709:     *)
                   1710:       withval=$with_tk
                   1711:       { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
                   1712:       ;;
                   1713:   esac # $with_tk
                   1714: else
                   1715:   with_tk=yes
1.3       tgl      1716: 
1.44      petere   1717: fi
                   1718: else
                   1719:   with_tk=no
                   1720: fi
                   1721: echo "$ac_t""$with_tk" 1>&6
1.3       tgl      1722: 
1.30      petere   1723: 
                   1724: 
1.43      petere   1725: # We see if the path to the TCL/TK configuration scripts is specified.
                   1726: # This will override the use of tclsh to find the paths to search.
1.3       tgl      1727: 
1.43      petere   1728: # Check whether --with-tclconfig was given
                   1729: if test x"${with_tclconfig+set}" = xset; then
                   1730:   case $with_tclconfig in
                   1731:     yes)
                   1732:       { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
                   1733:       ;;
                   1734:     no)
                   1735:       { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
                   1736:       ;;
                   1737:   esac # $with_tclconfig
1.3       tgl      1738: fi
                   1739: 
1.43      petere   1740: # We see if the path to the TK configuration scripts is specified.
                   1741: # This will override the use of tclsh to find the paths to search.
1.3       tgl      1742: 
1.43      petere   1743: # Check whether --with-tkconfig was given
                   1744: if test x"${with_tkconfig+set}" = xset; then
                   1745:   case $with_tkconfig in
                   1746:     yes)
                   1747:       { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
                   1748:       ;;
                   1749:     no)
                   1750:       { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
                   1751:       ;;
                   1752:   esac # $with_tkconfig
1.3       tgl      1753: fi
                   1754: 
                   1755: 
1.43      petere   1756: #
                   1757: # Optionally build Perl modules (Pg.pm and PL/Perl)
                   1758: #
1.4       petere   1759: echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1.73    ! petere   1760: echo "configure:1761: checking whether to build Perl modules" >&5
1.43      petere   1761: # Check whether --with-perl was given
                   1762: if test x"${with_perl+set}" = xset; then
                   1763:   case $with_perl in
                   1764:     yes)
                   1765:       :
                   1766:       ;;
                   1767:     no)
                   1768:       :
                   1769:       ;;
                   1770:     *)
                   1771:       withval=$with_perl
                   1772:       { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
                   1773:       ;;
                   1774:   esac # $with_perl
1.4       petere   1775: else
1.43      petere   1776:   with_perl=no
                   1777: 
1.4       petere   1778: fi
1.43      petere   1779: echo "$ac_t""$with_perl" 1>&6
1.4       petere   1780: 
                   1781: 
                   1782: 
1.43      petere   1783: #
                   1784: # Optionally build Python interface module
                   1785: #
1.4       petere   1786: echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1.73    ! petere   1787: echo "configure:1788: checking whether to build Python modules" >&5
1.43      petere   1788: # Check whether --with-python was given
                   1789: if test x"${with_python+set}" = xset; then
                   1790:   case $with_python in
                   1791:     yes)
                   1792:       echo "$ac_t""yes" 1>&6
                   1793: # Extract the first word of "python", so it can be a program name with args.
1.4       petere   1794: set dummy python; ac_word=$2
                   1795: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.73    ! petere   1796: echo "configure:1797: checking for $ac_word" >&5
1.4       petere   1797: if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
                   1798:   echo $ac_n "(cached) $ac_c" 1>&6
                   1799: else
                   1800:   if test -n "$PYTHON"; then
                   1801:   ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
                   1802: else
                   1803:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1804:   ac_dummy="$PATH"
                   1805:   for ac_dir in $ac_dummy; do
                   1806:     test -z "$ac_dir" && ac_dir=.
                   1807:     if test -f $ac_dir/$ac_word; then
                   1808:       ac_cv_prog_PYTHON="python"
                   1809:       break
                   1810:     fi
                   1811:   done
                   1812:   IFS="$ac_save_ifs"
                   1813: fi
                   1814: fi
                   1815: PYTHON="$ac_cv_prog_PYTHON"
                   1816: if test -n "$PYTHON"; then
                   1817:   echo "$ac_t""$PYTHON" 1>&6
                   1818: else
                   1819:   echo "$ac_t""no" 1>&6
                   1820: fi
                   1821: 
1.43      petere   1822: 
1.4       petere   1823: if test "${PYTHON+set}" = set ; then
                   1824:   python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
                   1825:   python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
                   1826:   python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
                   1827:   python_configdir="${python_execprefix}/lib/python${python_version}/config"
                   1828:   python_moduledir="${python_prefix}/lib/python${python_version}"
                   1829:   python_extmakefile="${python_configdir}/Makefile.pre.in"
                   1830: 
                   1831:   echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
1.73    ! petere   1832: echo "configure:1833: checking for Python extension makefile" >&5
1.4       petere   1833:   if test -f "${python_extmakefile}" ; then
                   1834:     echo "$ac_t""found" 1>&6
                   1835:   else
                   1836:     echo "$ac_t""no" 1>&6
                   1837:     { echo "configure: error: The Python extension makefile was expected at \`${python_extmakefile}\'
                   1838: but does not exist. This means the Python module cannot be built automatically." 1>&2; exit 1; }
                   1839:   fi
                   1840: 
                   1841:   
                   1842:   
                   1843:   
                   1844:   
                   1845:   
                   1846:   
                   1847: else
                   1848:   { echo "configure: error: Python not found" 1>&2; exit 1; }
                   1849: fi
1.43      petere   1850:       ;;
                   1851:     no)
                   1852:       echo "$ac_t""no" 1>&6
                   1853:       ;;
                   1854:     *)
                   1855:       withval=$with_python
                   1856:       { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
                   1857:       ;;
                   1858:   esac # $with_python
1.4       petere   1859: else
1.43      petere   1860:   with_python=no
                   1861: echo "$ac_t""no" 1>&6
1.4       petere   1862: fi
1.3       tgl      1863: 
                   1864: 
                   1865: 
1.12      petere   1866: 
1.28      petere   1867: #
                   1868: # Kerberos 4
                   1869: #
1.43      petere   1870: # Check whether --with-krb4 was given
                   1871: if test x"${with_krb4+set}" = xset; then
                   1872:   case $with_krb4 in
                   1873:     yes)
                   1874:       krb4_prefix=/usr/athena
                   1875:       ;;
                   1876:     no)
                   1877:       :
                   1878:       ;;
                   1879:     *)
                   1880:       withval=$with_krb4
                   1881:       with_krb4=yes
                   1882: krb4_prefix=$withval
                   1883:       ;;
                   1884:   esac # $with_krb4
1.12      petere   1885: else
1.28      petere   1886:   with_krb4=no
1.12      petere   1887: fi
                   1888: 
1.43      petere   1889: if test "$with_krb4" = yes; then
                   1890:   
1.28      petere   1891:   echo "$ac_t""building with Kerberos 4 support" 1>&6
1.12      petere   1892:   cat >> confdefs.h <<\EOF
1.43      petere   1893: #define KRB4 1
1.12      petere   1894: EOF
                   1895: 
1.28      petere   1896: 
1.70      petere   1897:   if test -d "$krb4_prefix/include"; then
                   1898:     INCLUDES="$INCLUDES -I$krb4_prefix/include"
                   1899:   fi
                   1900:   if test -d "$krb4_prefix/lib"; then
                   1901:     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
1.28      petere   1902:   fi
1.43      petere   1903: 
                   1904:   krb_srvtab="/etc/srvtab"
1.37      petere   1905: 
1.12      petere   1906: fi
                   1907: 
                   1908: 
1.43      petere   1909: 
                   1910: 
                   1911: 
1.28      petere   1912: #
                   1913: # Kerberos 5
                   1914: #
1.43      petere   1915: # Check whether --with-krb5 was given
                   1916: if test x"${with_krb5+set}" = xset; then
                   1917:   case $with_krb5 in
                   1918:     yes)
                   1919:       krb5_prefix=/usr/athena
                   1920:       ;;
                   1921:     no)
                   1922:       :
                   1923:       ;;
                   1924:     *)
                   1925:       withval=$with_krb5
                   1926:       with_krb5=yes
                   1927: krb5_prefix=$withval
                   1928:       ;;
                   1929:   esac # $with_krb5
1.12      petere   1930: else
1.28      petere   1931:   with_krb5=no
1.12      petere   1932: fi
                   1933: 
1.43      petere   1934: if test "$with_krb5" = yes; then
                   1935:   
1.28      petere   1936:   echo "$ac_t""building with Kerberos 5 support" 1>&6
                   1937:   cat >> confdefs.h <<\EOF
1.43      petere   1938: #define KRB5 1
1.12      petere   1939: EOF
                   1940: 
                   1941: 
1.70      petere   1942:   if test -d "$krb5_prefix/include"; then
                   1943:     INCLUDES="$INCLUDES -I$krb5_prefix/include"
                   1944:   fi
                   1945:   if test -d "$krb5_prefix/lib"; then
                   1946:     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
1.28      petere   1947:   fi
1.12      petere   1948: 
1.43      petere   1949:   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
1.37      petere   1950: 
1.12      petere   1951: fi
                   1952: 
                   1953: 
1.43      petere   1954: 
                   1955: 
                   1956: 
1.28      petere   1957: # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
                   1958: if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
                   1959:   { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
1.12      petere   1960: fi
                   1961: 
                   1962: 
                   1963: 
                   1964: 
1.28      petere   1965: #
                   1966: # Kerberos configuration parameters
                   1967: #
1.43      petere   1968: # Check whether --with-krb-srvnam was given
                   1969: if test x"${with_krb_srvnam+set}" = xset; then
                   1970:   case $with_krb_srvnam in
                   1971:     yes)
                   1972:       { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
                   1973:       ;;
                   1974:     no)
                   1975:       { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
                   1976:       ;;
                   1977:   esac # $with_krb_srvnam
1.12      petere   1978: else
1.43      petere   1979:   with_krb_srvnam="postgres"
1.12      petere   1980: fi
                   1981: cat >> confdefs.h <<EOF
1.43      petere   1982: #define PG_KRB_SRVNAM "$with_krb_srvnam"
1.12      petere   1983: EOF
                   1984: 
                   1985: 
1.28      petere   1986: 
                   1987: 
                   1988: #
                   1989: # OpenSSL
                   1990: #
1.43      petere   1991: # Check whether --with-openssl was given
                   1992: if test x"${with_openssl+set}" = xset; then
                   1993:   case $with_openssl in
                   1994:     yes)
                   1995:       openssl_prefix=/usr/local/ssl
                   1996:       ;;
                   1997:     no)
                   1998:       :
                   1999:       ;;
                   2000:     *)
                   2001:       withval=$with_openssl
                   2002:       with_openssl=yes
                   2003: openssl_prefix=$withval
                   2004:       ;;
                   2005:   esac # $with_openssl
1.28      petere   2006: else
                   2007:   with_openssl=no
1.12      petere   2008: fi
                   2009: 
1.43      petere   2010: if test "$with_openssl" = yes; then
                   2011:   
1.28      petere   2012:   echo "$ac_t""building with OpenSSL support" 1>&6
                   2013:   cat >> confdefs.h <<\EOF
1.43      petere   2014: #define USE_SSL 1
1.12      petere   2015: EOF
                   2016: 
                   2017: 
1.28      petere   2018:   if test -d "${openssl_prefix}/include" ; then
                   2019:     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
                   2020:   fi
                   2021:   if test -d "${openssl_prefix}/lib" ; then
1.70      petere   2022:     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
1.28      petere   2023:   fi
1.43      petere   2024: 
1.28      petere   2025: fi
                   2026: 
                   2027: 
1.43      petere   2028: 
                   2029: 
                   2030: 
1.12      petere   2031: 
1.43      petere   2032: #
                   2033: # Optionally enable the building of the ODBC driver
                   2034: #
1.15      petere   2035:  
1.43      petere   2036: # Old option name
                   2037: if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
1.15      petere   2038:   enable_odbc=$with_odbc
                   2039: fi
                   2040:  
                   2041: echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
1.73    ! petere   2042: echo "configure:2043: checking whether to build the ODBC driver" >&5
1.43      petere   2043: # Check whether --enable-odbc was given
                   2044: if test x"${enable_odbc+set}" = xset; then
                   2045:   case $enable_odbc in
                   2046:     yes)
                   2047:       :
                   2048:       ;;
                   2049:     no)
                   2050:       :
                   2051:       ;;
                   2052:     *)
                   2053:       enableval=$enable_odbc
                   2054:       { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
                   2055:       ;;
                   2056:   esac # $enable_odbc
1.3       tgl      2057: else
1.43      petere   2058:   enable_odbc=no
                   2059: 
1.15      petere   2060: fi
1.43      petere   2061: echo "$ac_t""$enable_odbc" 1>&6
1.7       momjian  2062: 
                   2063: 
                   2064: 
1.43      petere   2065: # Allow for overriding the default location of the odbcinst.ini
                   2066: # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
                   2067: # Check whether --with-odbcinst was given
                   2068: if test x"${with_odbcinst+set}" = xset; then
                   2069:   case $with_odbcinst in
                   2070:     yes)
                   2071:       { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
                   2072:       ;;
                   2073:     no)
                   2074:       { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
                   2075:       ;;
                   2076:     *)
                   2077:       withval=$with_odbcinst
                   2078:       odbcinst_ini_dir=$withval
                   2079:       ;;
                   2080:   esac # $with_odbcinst
1.7       momjian  2081: else
1.43      petere   2082:   odbcinst_ini_dir="\${sysconfdir}"
1.7       momjian  2083: fi
                   2084: 
1.3       tgl      2085: 
                   2086: 
1.1       petere   2087: 
1.30      petere   2088: # Assume system is ELF if it predefines __ELF__ as 1,
                   2089: # otherwise believe host_os based default.
                   2090: case $host_os in
                   2091:   freebsd1*|freebsd2*) elf=yes;;
                   2092: esac
1.1       petere   2093: 
                   2094: cat > conftest.$ac_ext <<EOF
1.73    ! petere   2095: #line 2096 "configure"
1.1       petere   2096: #include "confdefs.h"
                   2097: #if __ELF__
                   2098:   yes
                   2099: #endif
                   2100: 
                   2101: EOF
                   2102: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2103:   egrep "yes" >/dev/null 2>&1; then
                   2104:   rm -rf conftest*
                   2105:   ELF_SYS=true
                   2106: else
                   2107:   rm -rf conftest*
1.30      petere   2108:   if test "X$elf" = "Xyes" ; then
                   2109:   ELF_SYS=true
1.1       petere   2110: else
1.30      petere   2111:   ELF_SYS=
1.1       petere   2112: fi
                   2113: fi
                   2114: rm -f conftest*
                   2115: 
                   2116: 
                   2117: 
                   2118: 
                   2119: 
1.43      petere   2120: #
                   2121: # Optionally build C++ code (i.e., libpq++)
                   2122: #
1.5       petere   2123: echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
1.73    ! petere   2124: echo "configure:2125: checking whether to build C++ modules" >&5
1.43      petere   2125: # Check whether --with-CXX was given
                   2126: if test x"${with_CXX+set}" = xset; then
                   2127:   case $with_CXX in
                   2128:     yes)
                   2129:       :
                   2130:       ;;
                   2131:     no)
                   2132:       :
                   2133:       ;;
                   2134:     *)
                   2135:       withval=$with_CXX
                   2136:       with_CXX=yes
                   2137: CXX=$withval
                   2138:       ;;
                   2139:   esac # $with_CXX
1.36      petere   2140: else
                   2141:   with_CXX=no
                   2142: fi
                   2143: 
1.43      petere   2144: if test "$with_CXX" = yes; then
                   2145:   
                   2146:   echo "$ac_t""yes" 1>&6
1.5       petere   2147:   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1.1       petere   2148: do
                   2149: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   2150: set dummy $ac_prog; ac_word=$2
                   2151: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.73    ! petere   2152: echo "configure:2153: checking for $ac_word" >&5
1.1       petere   2153: if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
                   2154:   echo $ac_n "(cached) $ac_c" 1>&6
                   2155: else
                   2156:   if test -n "$CXX"; then
                   2157:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
                   2158: else
                   2159:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   2160:   ac_dummy="$PATH"
                   2161:   for ac_dir in $ac_dummy; do
                   2162:     test -z "$ac_dir" && ac_dir=.
                   2163:     if test -f $ac_dir/$ac_word; then
                   2164:       ac_cv_prog_CXX="$ac_prog"
                   2165:       break
                   2166:     fi
                   2167:   done
                   2168:   IFS="$ac_save_ifs"
                   2169: fi
                   2170: fi
                   2171: CXX="$ac_cv_prog_CXX"
                   2172: if test -n "$CXX"; then
                   2173:   echo "$ac_t""$CXX" 1>&6
                   2174: else
                   2175:   echo "$ac_t""no" 1>&6
                   2176: fi
                   2177: 
                   2178: test -n "$CXX" && break
                   2179: done
                   2180: test -n "$CXX" || CXX="gcc"
                   2181: 
                   2182: 
                   2183: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.73    ! petere   2184: echo "configure:2185: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1.1       petere   2185: 
                   2186: ac_ext=C
                   2187: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2188: ac_cpp='$CXXCPP $CPPFLAGS'
                   2189: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2190: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2191: cross_compiling=$ac_cv_prog_cxx_cross
                   2192: 
                   2193: cat > conftest.$ac_ext << EOF
                   2194: 
1.73    ! petere   2195: #line 2196 "configure"
1.1       petere   2196: #include "confdefs.h"
                   2197: 
                   2198: int main(){return(0);}
                   2199: EOF
1.73    ! petere   2200: if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   2201:   ac_cv_prog_cxx_works=yes
                   2202:   # If we can't run a trivial program, we are probably using a cross compiler.
                   2203:   if (./conftest; exit) 2>/dev/null; then
                   2204:     ac_cv_prog_cxx_cross=no
                   2205:   else
                   2206:     ac_cv_prog_cxx_cross=yes
                   2207:   fi
                   2208: else
                   2209:   echo "configure: failed program was:" >&5
                   2210:   cat conftest.$ac_ext >&5
                   2211:   ac_cv_prog_cxx_works=no
                   2212: fi
                   2213: rm -fr conftest*
                   2214: ac_ext=c
                   2215: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2216: ac_cpp='$CPP $CPPFLAGS'
                   2217: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2218: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2219: cross_compiling=$ac_cv_prog_cc_cross
                   2220: 
                   2221: echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
                   2222: if test $ac_cv_prog_cxx_works = no; then
                   2223:   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
                   2224: fi
                   2225: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.73    ! petere   2226: echo "configure:2227: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1       petere   2227: echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
                   2228: cross_compiling=$ac_cv_prog_cxx_cross
                   2229: 
                   2230: echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1.73    ! petere   2231: echo "configure:2232: checking whether we are using GNU C++" >&5
1.1       petere   2232: if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
                   2233:   echo $ac_n "(cached) $ac_c" 1>&6
                   2234: else
                   2235:   cat > conftest.C <<EOF
                   2236: #ifdef __GNUC__
                   2237:   yes;
                   2238: #endif
                   2239: EOF
1.73    ! petere   2240: if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       petere   2241:   ac_cv_prog_gxx=yes
                   2242: else
                   2243:   ac_cv_prog_gxx=no
                   2244: fi
                   2245: fi
                   2246: 
                   2247: echo "$ac_t""$ac_cv_prog_gxx" 1>&6
                   2248: 
                   2249: if test $ac_cv_prog_gxx = yes; then
                   2250:   GXX=yes
                   2251: else
                   2252:   GXX=
                   2253: fi
                   2254: 
                   2255: ac_test_CXXFLAGS="${CXXFLAGS+set}"
                   2256: ac_save_CXXFLAGS="$CXXFLAGS"
                   2257: CXXFLAGS=
                   2258: echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1.73    ! petere   2259: echo "configure:2260: checking whether ${CXX-g++} accepts -g" >&5
1.1       petere   2260: if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
                   2261:   echo $ac_n "(cached) $ac_c" 1>&6
                   2262: else
                   2263:   echo 'void f(){}' > conftest.cc
                   2264: if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
                   2265:   ac_cv_prog_cxx_g=yes
                   2266: else
                   2267:   ac_cv_prog_cxx_g=no
                   2268: fi
                   2269: rm -f conftest*
                   2270: 
                   2271: fi
                   2272: 
                   2273: echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
                   2274: if test "$ac_test_CXXFLAGS" = set; then
                   2275:   CXXFLAGS="$ac_save_CXXFLAGS"
                   2276: elif test $ac_cv_prog_cxx_g = yes; then
                   2277:   if test "$GXX" = yes; then
                   2278:     CXXFLAGS="-g -O2"
                   2279:   else
                   2280:     CXXFLAGS="-g"
                   2281:   fi
                   2282: else
                   2283:   if test "$GXX" = yes; then
                   2284:     CXXFLAGS="-O2"
                   2285:   else
                   2286:     CXXFLAGS=
                   2287:   fi
                   2288: fi
                   2289: 
1.5       petere   2290:   echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1.73    ! petere   2291: echo "configure:2292: checking how to run the C++ preprocessor" >&5
1.5       petere   2292: if test -z "$CXXCPP"; then
                   2293: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
                   2294:   echo $ac_n "(cached) $ac_c" 1>&6
                   2295: else
                   2296:   ac_ext=C
1.1       petere   2297: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2298: ac_cpp='$CXXCPP $CPPFLAGS'
                   2299: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2300: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2301: cross_compiling=$ac_cv_prog_cxx_cross
1.5       petere   2302:   CXXCPP="${CXX-g++} -E"
                   2303:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   2304: #line 2305 "configure"
1.5       petere   2305: #include "confdefs.h"
                   2306: #include <stdlib.h>
                   2307: EOF
                   2308: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   2309: { (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.5       petere   2310: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   2311: if test -z "$ac_err"; then
                   2312:   :
                   2313: else
                   2314:   echo "$ac_err" >&5
                   2315:   echo "configure: failed program was:" >&5
                   2316:   cat conftest.$ac_ext >&5
                   2317:   rm -rf conftest*
                   2318:   CXXCPP=/lib/cpp
                   2319: fi
                   2320: rm -f conftest*
                   2321:   ac_cv_prog_CXXCPP="$CXXCPP"
                   2322: ac_ext=c
                   2323: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2324: ac_cpp='$CPP $CPPFLAGS'
                   2325: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2326: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2327: cross_compiling=$ac_cv_prog_cc_cross
                   2328: fi
                   2329: fi
                   2330: CXXCPP="$ac_cv_prog_CXXCPP"
                   2331: echo "$ac_t""$CXXCPP" 1>&6
1.1       petere   2332: 
1.5       petere   2333:   
1.63      petere   2334:   
1.5       petere   2335: ac_ext=C
                   2336: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2337: ac_cpp='$CXXCPP $CPPFLAGS'
                   2338: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2339: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2340: cross_compiling=$ac_cv_prog_cxx_cross
1.1       petere   2341: 
1.5       petere   2342: ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
                   2343: echo $ac_n "checking for string""... $ac_c" 1>&6
1.73    ! petere   2344: echo "configure:2345: checking for string" >&5
1.5       petere   2345: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2346:   echo $ac_n "(cached) $ac_c" 1>&6
                   2347: else
                   2348:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   2349: #line 2350 "configure"
1.1       petere   2350: #include "confdefs.h"
                   2351: #include <string>
                   2352: EOF
1.5       petere   2353: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   2354: { (eval echo configure:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.5       petere   2355: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   2356: if test -z "$ac_err"; then
1.1       petere   2357:   rm -rf conftest*
1.5       petere   2358:   eval "ac_cv_header_$ac_safe=yes"
                   2359: else
                   2360:   echo "$ac_err" >&5
                   2361:   echo "configure: failed program was:" >&5
                   2362:   cat conftest.$ac_ext >&5
                   2363:   rm -rf conftest*
                   2364:   eval "ac_cv_header_$ac_safe=no"
                   2365: fi
                   2366: rm -f conftest*
                   2367: fi
                   2368: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2369:   echo "$ac_t""yes" 1>&6
1.1       petere   2370:   cat >> confdefs.h <<\EOF
                   2371: #define HAVE_CXX_STRING_HEADER 1
                   2372: EOF
1.5       petere   2373: 
1.1       petere   2374: else
                   2375:   echo "$ac_t""no" 1>&6
1.5       petere   2376: fi
1.1       petere   2377: 
1.5       petere   2378: 
                   2379: if test x"$ac_cv_header_string" != xyes ; then
                   2380:   echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
1.73    ! petere   2381: echo "configure:2382: checking for class string in <string.h>" >&5
1.5       petere   2382: if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
                   2383:   echo $ac_n "(cached) $ac_c" 1>&6
                   2384: else
                   2385:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   2386: #line 2387 "configure"
1.1       petere   2387: #include "confdefs.h"
                   2388: #include <stdio.h>
                   2389: #include <stdlib.h>
                   2390: #include <string.h>
                   2391: 
                   2392: int main() {
                   2393: string foo = "test"
                   2394: ; return 0; }
                   2395: EOF
1.73    ! petere   2396: if { (eval echo configure:2397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   2397:   rm -rf conftest*
1.5       petere   2398:   pgac_cv_class_string_in_string_h=yes
1.1       petere   2399: else
                   2400:   echo "configure: failed program was:" >&5
                   2401:   cat conftest.$ac_ext >&5
                   2402:   rm -rf conftest*
1.5       petere   2403:   pgac_cv_class_string_in_string_h=no
1.1       petere   2404: fi
                   2405: rm -f conftest*
1.5       petere   2406: fi
                   2407: 
                   2408: echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
1.1       petere   2409: 
1.5       petere   2410:   if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
                   2411:     { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
                   2412:   fi
1.1       petere   2413: fi
1.5       petere   2414: ac_ext=c
                   2415: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2416: ac_cpp='$CPP $CPPFLAGS'
                   2417: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2418: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2419: cross_compiling=$ac_cv_prog_cc_cross
                   2420: 
                   2421:   
                   2422: echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
1.73    ! petere   2423: echo "configure:2424: checking for namespace std in C++" >&5
1.5       petere   2424: if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
                   2425:   echo $ac_n "(cached) $ac_c" 1>&6
                   2426: else
                   2427:   
                   2428: 
                   2429: ac_ext=C
                   2430: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2431: ac_cpp='$CXXCPP $CPPFLAGS'
                   2432: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2433: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2434: cross_compiling=$ac_cv_prog_cxx_cross
1.1       petere   2435: 
1.5       petere   2436: cat > conftest.$ac_ext <<EOF
1.73    ! petere   2437: #line 2438 "configure"
1.1       petere   2438: #include "confdefs.h"
                   2439: #include <stdio.h>
                   2440: #include <stdlib.h>
                   2441: #ifdef HAVE_CXX_STRING_HEADER
                   2442: #include <string>
                   2443: #endif
                   2444: using namespace std;
                   2445: 
                   2446: int main() {
                   2447: 
                   2448: ; return 0; }
                   2449: EOF
1.73    ! petere   2450: if { (eval echo configure:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   2451:   rm -rf conftest*
1.5       petere   2452:   pgac_cv_cxx_namespace_std=yes
1.1       petere   2453: else
                   2454:   echo "configure: failed program was:" >&5
                   2455:   cat conftest.$ac_ext >&5
                   2456:   rm -rf conftest*
1.5       petere   2457:   pgac_cv_cxx_namespace_std=no
1.1       petere   2458: fi
                   2459: rm -f conftest*
                   2460: ac_ext=c
                   2461: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2462: ac_cpp='$CPP $CPPFLAGS'
                   2463: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2464: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2465: cross_compiling=$ac_cv_prog_cc_cross
                   2466: 
1.5       petere   2467: fi
                   2468: 
                   2469: echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
                   2470: 
                   2471: if test $pgac_cv_cxx_namespace_std = yes ; then
                   2472:     cat >> confdefs.h <<\EOF
                   2473: #define HAVE_NAMESPACE_STD 1
                   2474: EOF
                   2475: 
                   2476: fi
1.43      petere   2477: 
                   2478: else
                   2479:   echo "$ac_t""no" 1>&6
1.5       petere   2480: fi
                   2481: 
                   2482: 
1.43      petere   2483: 
1.30      petere   2484: CPPFLAGS="$CPPFLAGS $INCLUDES"
1.70      petere   2485: LDFLAGS="$LDFLAGS $LIBDIRS"
1.30      petere   2486: 
                   2487: echo "using CPPFLAGS=$CPPFLAGS"
                   2488: echo "using LDFLAGS=$LDFLAGS"
                   2489: 
                   2490: 
1.28      petere   2491: # Figure out how to invoke "install" and what install options to use.
1.1       petere   2492: 
                   2493: # Find a good install program.  We prefer a C program (faster),
                   2494: # so one script is as good as another.  But avoid the broken or
                   2495: # incompatible versions:
                   2496: # SysV /etc/install, /usr/sbin/install
                   2497: # SunOS /usr/etc/install
                   2498: # IRIX /sbin/install
                   2499: # AIX /bin/install
                   2500: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2501: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2502: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2503: # ./install, which can be erroneously created by make from ./install.sh.
                   2504: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.73    ! petere   2505: echo "configure:2506: checking for a BSD compatible install" >&5
1.1       petere   2506: if test -z "$INSTALL"; then
                   2507: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
                   2508:   echo $ac_n "(cached) $ac_c" 1>&6
                   2509: else
                   2510:     IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
                   2511:   for ac_dir in $PATH; do
                   2512:     # Account for people who put trailing slashes in PATH elements.
                   2513:     case "$ac_dir/" in
                   2514:     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
                   2515:     *)
                   2516:       # OSF1 and SCO ODT 3.0 have their own names for install.
                   2517:       # Don't use installbsd from OSF since it installs stuff as root
                   2518:       # by default.
                   2519:       for ac_prog in ginstall scoinst install; do
                   2520:         if test -f $ac_dir/$ac_prog; then
                   2521:          if test $ac_prog = install &&
                   2522:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
                   2523:            # AIX install.  It has an incompatible calling convention.
                   2524:            :
                   2525:          else
                   2526:            ac_cv_path_install="$ac_dir/$ac_prog -c"
                   2527:            break 2
                   2528:          fi
                   2529:        fi
                   2530:       done
                   2531:       ;;
                   2532:     esac
                   2533:   done
                   2534:   IFS="$ac_save_IFS"
                   2535: 
                   2536: fi
                   2537:   if test "${ac_cv_path_install+set}" = set; then
                   2538:     INSTALL="$ac_cv_path_install"
                   2539:   else
                   2540:     # As a last resort, use the slow shell script.  We don't cache a
                   2541:     # path for INSTALL within a source directory, because that will
                   2542:     # break other packages using the cache if that directory is
                   2543:     # removed, or if the path is relative.
                   2544:     INSTALL="$ac_install_sh"
                   2545:   fi
                   2546: fi
                   2547: echo "$ac_t""$INSTALL" 1>&6
                   2548: 
                   2549: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2550: # It thinks the first close brace ends the variable substitution.
                   2551: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                   2552: 
                   2553: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
                   2554: 
                   2555: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                   2556: 
1.28      petere   2557: # When Autoconf chooses install-sh as install program it tries to generate
                   2558: # a relative path to it in each makefile where it subsitutes it. This clashes
                   2559: # with our Makefile.global concept. This workaround helps.
                   2560: case $INSTALL in
                   2561:   *install-sh*) INSTALL='\${SHELL} \${top_srcdir}/config/install-sh -c';;
                   2562: esac
1.1       petere   2563: 
1.28      petere   2564: # Fix Autoconf's brain-dead defaults for script installs.
                   2565: INSTALL_SCRIPT="\${INSTALL} -m 755"
1.1       petere   2566: 
1.28      petere   2567: # HPUX wants shared libs to be mode 555. Add your platform's special
                   2568: # needs here if necessary.
                   2569: case $host_os in
                   2570:     hpux*)      INSTL_SHLIB_OPTS="-m 555" ;;
                   2571:     *)          INSTL_SHLIB_OPTS="-m 644" ;;
1.1       petere   2572: esac
                   2573: 
1.28      petere   2574: INSTALL_SHLIB="\${INSTALL} $INSTL_SHLIB_OPTS"
1.1       petere   2575: 
                   2576: 
                   2577: 
1.72      petere   2578: for ac_prog in gawk mawk nawk awk
1.2       petere   2579: do
                   2580: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   2581: set dummy $ac_prog; ac_word=$2
                   2582: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.73    ! petere   2583: echo "configure:2584: checking for $ac_word" >&5
1.2       petere   2584: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
                   2585:   echo $ac_n "(cached) $ac_c" 1>&6
                   2586: else
                   2587:   if test -n "$AWK"; then
                   2588:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   2589: else
                   2590:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   2591:   ac_dummy="$PATH"
                   2592:   for ac_dir in $ac_dummy; do
                   2593:     test -z "$ac_dir" && ac_dir=.
                   2594:     if test -f $ac_dir/$ac_word; then
                   2595:       ac_cv_prog_AWK="$ac_prog"
                   2596:       break
                   2597:     fi
                   2598:   done
                   2599:   IFS="$ac_save_ifs"
                   2600: fi
                   2601: fi
                   2602: AWK="$ac_cv_prog_AWK"
                   2603: if test -n "$AWK"; then
                   2604:   echo "$ac_t""$AWK" 1>&6
                   2605: else
                   2606:   echo "$ac_t""no" 1>&6
                   2607: fi
                   2608: 
                   2609: test -n "$AWK" && break
                   2610: done
                   2611: 
1.40      petere   2612: echo $ac_n "checking for flex""... $ac_c" 1>&6
1.73    ! petere   2613: echo "configure:2614: checking for flex" >&5
1.40      petere   2614: if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
1.1       petere   2615:   echo $ac_n "(cached) $ac_c" 1>&6
                   2616: else
1.40      petere   2617:   # Let the user override the test
                   2618: if test -n "$FLEX"; then
                   2619:   pgac_cv_path_flex=$FLEX
                   2620: else
                   2621:   pgac_save_IFS=$IFS
                   2622:   IFS=:
                   2623:   for pgac_dir in $PATH; do
                   2624:     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
                   2625:       pgac_dir=`pwd`
1.1       petere   2626:     fi
1.40      petere   2627:     for pgac_prog in flex lex; do
                   2628:       pgac_candidate="$pgac_dir/$pgac_prog"
                   2629:       if test -f "$pgac_candidate" \
1.72      petere   2630:         && $pgac_candidate --version </dev/null >/dev/null 2>&1
1.40      petere   2631:       then
                   2632:         echo '%%'  > conftest.l
                   2633:         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
                   2634:           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
                   2635:             pgac_broken_flex=$pgac_candidate
                   2636:             continue
                   2637:           fi
                   2638: 
                   2639:           pgac_cv_path_flex=$pgac_candidate
                   2640:           break 2
                   2641:         fi
                   2642:       fi
                   2643:     done
1.1       petere   2644:   done
1.40      petere   2645:   IFS=$pgac_save_IFS
                   2646:   rm -f conftest.l
                   2647:   : ${pgac_cv_path_flex=no}
1.1       petere   2648: fi
1.40      petere   2649: 
1.1       petere   2650: fi
                   2651: 
1.40      petere   2652: echo "$ac_t""$pgac_cv_path_flex" 1>&6
                   2653: if test x"$pgac_cv_path_flex" = x"no"; then
                   2654:   if test -n "$pgac_broken_flex"; then
                   2655:     echo "configure: warning: 
                   2656: ***
                   2657: The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
                   2658: should get version 2.5.4 or later.
                   2659: ###" 1>&2
                   2660:   fi
1.1       petere   2661: 
1.40      petere   2662:   echo "configure: warning: 
                   2663: ***
                   2664: Without Flex you won't be able to build PostgreSQL from scratch, or change
                   2665: any of the scanner definition files. You can obtain Flex from a GNU mirror
                   2666: site. (If you are using the official distribution of PostgreSQL then you
                   2667: do not need to worry about this because the lexer files are pre-generated.)
                   2668: ***" 1>&2
1.1       petere   2669: fi
                   2670: 
1.40      petere   2671: if test x"$pgac_cv_path_flex" = x"no"; then
                   2672:   FLEX=
1.1       petere   2673: else
1.40      petere   2674:   FLEX=$pgac_cv_path_flex
1.1       petere   2675: fi
                   2676: 
                   2677: 
1.40      petere   2678: 
                   2679: 
1.1       petere   2680: echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1.73    ! petere   2681: echo "configure:2682: checking whether ln -s works" >&5
1.1       petere   2682: if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
                   2683:   echo $ac_n "(cached) $ac_c" 1>&6
                   2684: else
                   2685:   rm -f conftestdata
                   2686: if ln -s X conftestdata 2>/dev/null
                   2687: then
                   2688:   rm -f conftestdata
                   2689:   ac_cv_prog_LN_S="ln -s"
                   2690: else
                   2691:   ac_cv_prog_LN_S=ln
                   2692: fi
                   2693: fi
                   2694: LN_S="$ac_cv_prog_LN_S"
                   2695: if test "$ac_cv_prog_LN_S" = "ln -s"; then
                   2696:   echo "$ac_t""yes" 1>&6
                   2697: else
                   2698:   echo "$ac_t""no" 1>&6
                   2699: fi
                   2700: 
1.64      petere   2701: # Check whether --with-gnu-ld or --without-gnu-ld was given.
                   2702: if test "${with_gnu_ld+set}" = set; then
                   2703:   withval="$with_gnu_ld"
                   2704:   test "$withval" = no || with_gnu_ld=yes
                   2705: else
                   2706:   with_gnu_ld=no
                   2707: fi
                   2708: 
                   2709: ac_prog=ld
                   2710: if test "$ac_cv_prog_gcc" = yes; then
                   2711:   # Check if gcc -print-prog-name=ld gives a path.
                   2712:   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1.73    ! petere   2713: echo "configure:2714: checking for ld used by GCC" >&5
1.64      petere   2714:   case $host in
                   2715:   *-*-mingw*)
                   2716:     # gcc leaves a trailing carriage return which upsets mingw
                   2717:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
                   2718:   *)
                   2719:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
                   2720:   esac
                   2721:   case "$ac_prog" in
                   2722:     # Accept absolute paths.
                   2723:     [\\/]* | [A-Za-z]:[\\/]*)
                   2724:       re_direlt='/[^/][^/]*/\.\./'
                   2725:       # Canonicalize the path of ld
                   2726:       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
                   2727:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
                   2728:        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
                   2729:       done
                   2730:       test -z "$LD" && LD="$ac_prog"
                   2731:       ;;
                   2732:   "")
                   2733:     # If it fails, then pretend we aren't using GCC.
                   2734:     ac_prog=ld
                   2735:     ;;
                   2736:   *)
                   2737:     # If it is relative, then search for the first ld in PATH.
                   2738:     with_gnu_ld=unknown
                   2739:     ;;
                   2740:   esac
                   2741: elif test "$with_gnu_ld" = yes; then
                   2742:   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1.73    ! petere   2743: echo "configure:2744: checking for GNU ld" >&5
1.64      petere   2744: else
                   2745:   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1.73    ! petere   2746: echo "configure:2747: checking for non-GNU ld" >&5
1.64      petere   2747: fi
                   2748: if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
                   2749:   echo $ac_n "(cached) $ac_c" 1>&6
                   2750: else
                   2751:   if test -z "$LD"; then
                   2752:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
                   2753:   for ac_dir in $PATH; do
                   2754:     test -z "$ac_dir" && ac_dir=.
                   2755:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                   2756:       ac_cv_path_LD="$ac_dir/$ac_prog"
                   2757:       # Check to see if the program is GNU ld.  I'd rather use --version,
                   2758:       # but apparently some GNU ld's only accept -v.
                   2759:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   2760:       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
                   2761:        test "$with_gnu_ld" != no && break
                   2762:       else
                   2763:        test "$with_gnu_ld" != yes && break
                   2764:       fi
                   2765:     fi
                   2766:   done
                   2767:   IFS="$ac_save_ifs"
                   2768: else
                   2769:   ac_cv_path_LD="$LD" # Let the user override the test with a path.
                   2770: fi
                   2771: fi
                   2772: 
                   2773: LD="$ac_cv_path_LD"
                   2774: if test -n "$LD"; then
                   2775:   echo "$ac_t""$LD" 1>&6
                   2776: else
                   2777:   echo "$ac_t""no" 1>&6
                   2778: fi
                   2779: test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
                   2780: echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1.73    ! petere   2781: echo "configure:2782: checking if the linker ($LD) is GNU ld" >&5
1.64      petere   2782: if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
                   2783:   echo $ac_n "(cached) $ac_c" 1>&6
                   2784: else
                   2785:   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
                   2786: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
                   2787:   ac_cv_prog_gnu_ld=yes
                   2788: else
                   2789:   ac_cv_prog_gnu_ld=no
                   2790: fi
                   2791: fi
                   2792: 
                   2793: echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
                   2794: with_gnu_ld=$ac_cv_prog_gnu_ld
                   2795: 
                   2796: 
1.69      petere   2797: 
                   2798: 
1.1       petere   2799: # Extract the first word of "ranlib", so it can be a program name with args.
                   2800: set dummy ranlib; ac_word=$2
                   2801: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.73    ! petere   2802: echo "configure:2803: checking for $ac_word" >&5
1.1       petere   2803: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
                   2804:   echo $ac_n "(cached) $ac_c" 1>&6
                   2805: else
                   2806:   if test -n "$RANLIB"; then
                   2807:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   2808: else
                   2809:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   2810:   ac_dummy="$PATH"
                   2811:   for ac_dir in $ac_dummy; do
                   2812:     test -z "$ac_dir" && ac_dir=.
                   2813:     if test -f $ac_dir/$ac_word; then
                   2814:       ac_cv_prog_RANLIB="ranlib"
                   2815:       break
                   2816:     fi
                   2817:   done
                   2818:   IFS="$ac_save_ifs"
                   2819:   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
                   2820: fi
                   2821: fi
                   2822: RANLIB="$ac_cv_prog_RANLIB"
                   2823: if test -n "$RANLIB"; then
                   2824:   echo "$ac_t""$RANLIB" 1>&6
                   2825: else
                   2826:   echo "$ac_t""no" 1>&6
                   2827: fi
                   2828: 
1.60      petere   2829: for ac_prog in lorder
                   2830: do
                   2831: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   2832: set dummy $ac_prog; ac_word=$2
                   2833: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.73    ! petere   2834: echo "configure:2835: checking for $ac_word" >&5
1.60      petere   2835: if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
                   2836:   echo $ac_n "(cached) $ac_c" 1>&6
                   2837: else
                   2838:   if test -n "$LORDER"; then
                   2839:   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
                   2840: else
                   2841:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   2842:   ac_dummy="$PATH"
                   2843:   for ac_dir in $ac_dummy; do
                   2844:     test -z "$ac_dir" && ac_dir=.
                   2845:     if test -f $ac_dir/$ac_word; then
                   2846:       ac_cv_prog_LORDER="$ac_prog"
                   2847:       break
                   2848:     fi
                   2849:   done
                   2850:   IFS="$ac_save_ifs"
                   2851: fi
                   2852: fi
                   2853: LORDER="$ac_cv_prog_LORDER"
                   2854: if test -n "$LORDER"; then
                   2855:   echo "$ac_t""$LORDER" 1>&6
                   2856: else
                   2857:   echo "$ac_t""no" 1>&6
                   2858: fi
                   2859: 
                   2860: test -n "$LORDER" && break
                   2861: done
                   2862: 
1.1       petere   2863: # Extract the first word of "tar", so it can be a program name with args.
                   2864: set dummy tar; ac_word=$2
                   2865: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.73    ! petere   2866: echo "configure:2867: checking for $ac_word" >&5
1.58      petere   2867: if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
1.1       petere   2868:   echo $ac_n "(cached) $ac_c" 1>&6
                   2869: else
1.58      petere   2870:   case "$TAR" in
1.1       petere   2871:   /*)
1.58      petere   2872:   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
1.1       petere   2873:   ;;
                   2874:   ?:/*)                         
1.58      petere   2875:   ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
1.1       petere   2876:   ;;
                   2877:   *)
                   2878:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   2879:   ac_dummy="$PATH"
                   2880:   for ac_dir in $ac_dummy; do 
                   2881:     test -z "$ac_dir" && ac_dir=.
                   2882:     if test -f $ac_dir/$ac_word; then
1.58      petere   2883:       ac_cv_path_TAR="$ac_dir/$ac_word"
1.1       petere   2884:       break
                   2885:     fi
                   2886:   done
                   2887:   IFS="$ac_save_ifs"
                   2888:   ;;
                   2889: esac
                   2890: fi
1.58      petere   2891: TAR="$ac_cv_path_TAR"
                   2892: if test -n "$TAR"; then
                   2893:   echo "$ac_t""$TAR" 1>&6
1.1       petere   2894: else
                   2895:   echo "$ac_t""no" 1>&6
                   2896: fi
                   2897: 
                   2898: for ac_prog in perl
                   2899: do
                   2900: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   2901: set dummy $ac_prog; ac_word=$2
                   2902: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.73    ! petere   2903: echo "configure:2904: checking for $ac_word" >&5
1.1       petere   2904: if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
                   2905:   echo $ac_n "(cached) $ac_c" 1>&6
                   2906: else
                   2907:   if test -n "$PERL"; then
                   2908:   ac_cv_prog_PERL="$PERL" # Let the user override the test.
                   2909: else
                   2910:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   2911:   ac_dummy="$PATH"
                   2912:   for ac_dir in $ac_dummy; do
                   2913:     test -z "$ac_dir" && ac_dir=.
                   2914:     if test -f $ac_dir/$ac_word; then
                   2915:       ac_cv_prog_PERL="$ac_prog"
                   2916:       break
                   2917:     fi
                   2918:   done
                   2919:   IFS="$ac_save_ifs"
                   2920: fi
                   2921: fi
                   2922: PERL="$ac_cv_prog_PERL"
                   2923: if test -n "$PERL"; then
                   2924:   echo "$ac_t""$PERL" 1>&6
                   2925: else
                   2926:   echo "$ac_t""no" 1>&6
                   2927: fi
                   2928: 
                   2929: test -n "$PERL" && break
                   2930: done
                   2931: 
1.2       petere   2932: for ac_prog in 'bison -y' byacc
                   2933: do
                   2934: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   2935: set dummy $ac_prog; ac_word=$2
1.1       petere   2936: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.73    ! petere   2937: echo "configure:2938: checking for $ac_word" >&5
1.2       petere   2938: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1.1       petere   2939:   echo $ac_n "(cached) $ac_c" 1>&6
                   2940: else
1.2       petere   2941:   if test -n "$YACC"; then
                   2942:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   2943: else
1.1       petere   2944:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   2945:   ac_dummy="$PATH"
1.2       petere   2946:   for ac_dir in $ac_dummy; do
1.1       petere   2947:     test -z "$ac_dir" && ac_dir=.
                   2948:     if test -f $ac_dir/$ac_word; then
1.2       petere   2949:       ac_cv_prog_YACC="$ac_prog"
1.1       petere   2950:       break
                   2951:     fi
                   2952:   done
                   2953:   IFS="$ac_save_ifs"
                   2954: fi
1.2       petere   2955: fi
                   2956: YACC="$ac_cv_prog_YACC"
                   2957: if test -n "$YACC"; then
                   2958:   echo "$ac_t""$YACC" 1>&6
1.1       petere   2959: else
                   2960:   echo "$ac_t""no" 1>&6
                   2961: fi
                   2962: 
1.2       petere   2963: test -n "$YACC" && break
                   2964: done
                   2965: test -n "$YACC" || YACC="yacc"
1.1       petere   2966: 
                   2967: 
1.44      petere   2968: if test "$with_tk" = yes; then
                   2969:     # Extract the first word of "wish", so it can be a program name with args.
                   2970: set dummy wish; ac_word=$2
                   2971: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.73    ! petere   2972: echo "configure:2973: checking for $ac_word" >&5
1.44      petere   2973: if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
                   2974:   echo $ac_n "(cached) $ac_c" 1>&6
                   2975: else
                   2976:   case "$WISH" in
                   2977:   /*)
                   2978:   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
                   2979:   ;;
                   2980:   ?:/*)                         
                   2981:   ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
                   2982:   ;;
                   2983:   *)
                   2984:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   2985:   ac_dummy="$PATH"
                   2986:   for ac_dir in $ac_dummy; do 
                   2987:     test -z "$ac_dir" && ac_dir=.
                   2988:     if test -f $ac_dir/$ac_word; then
                   2989:       ac_cv_path_WISH="$ac_dir/$ac_word"
                   2990:       break
                   2991:     fi
                   2992:   done
                   2993:   IFS="$ac_save_ifs"
                   2994:   ;;
                   2995: esac
                   2996: fi
                   2997: WISH="$ac_cv_path_WISH"
                   2998: if test -n "$WISH"; then
                   2999:   echo "$ac_t""$WISH" 1>&6
                   3000: else
                   3001:   echo "$ac_t""no" 1>&6
                   3002: fi
                   3003: 
                   3004:     test -z "$WISH" && { echo "configure: error: \`wish' is required for Tk support" 1>&2; exit 1; }
                   3005: fi
1.1       petere   3006: 
1.5       petere   3007: 
1.29      petere   3008: ##
                   3009: ## Libraries
                   3010: ##
                   3011: 
1.1       petere   3012: echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
1.73    ! petere   3013: echo "configure:3014: checking for main in -lsfio" >&5
1.1       petere   3014: ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
                   3015: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3016:   echo $ac_n "(cached) $ac_c" 1>&6
                   3017: else
                   3018:   ac_save_LIBS="$LIBS"
                   3019: LIBS="-lsfio  $LIBS"
                   3020: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3021: #line 3022 "configure"
1.1       petere   3022: #include "confdefs.h"
                   3023: 
                   3024: int main() {
                   3025: main()
                   3026: ; return 0; }
                   3027: EOF
1.73    ! petere   3028: if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3029:   rm -rf conftest*
                   3030:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3031: else
                   3032:   echo "configure: failed program was:" >&5
                   3033:   cat conftest.$ac_ext >&5
                   3034:   rm -rf conftest*
                   3035:   eval "ac_cv_lib_$ac_lib_var=no"
                   3036: fi
                   3037: rm -f conftest*
                   3038: LIBS="$ac_save_LIBS"
                   3039: 
                   3040: fi
                   3041: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3042:   echo "$ac_t""yes" 1>&6
                   3043:     ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3044:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3045:   cat >> confdefs.h <<EOF
                   3046: #define $ac_tr_lib 1
                   3047: EOF
                   3048: 
                   3049:   LIBS="-lsfio $LIBS"
                   3050: 
                   3051: else
                   3052:   echo "$ac_t""no" 1>&6
                   3053: fi
                   3054: 
1.12      petere   3055: echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
1.73    ! petere   3056: echo "configure:3057: checking for main in -lncurses" >&5
1.12      petere   3057: ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
                   3058: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3059:   echo $ac_n "(cached) $ac_c" 1>&6
                   3060: else
                   3061:   ac_save_LIBS="$LIBS"
                   3062: LIBS="-lncurses  $LIBS"
                   3063: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3064: #line 3065 "configure"
1.12      petere   3065: #include "confdefs.h"
                   3066: 
                   3067: int main() {
                   3068: main()
                   3069: ; return 0; }
                   3070: EOF
1.73    ! petere   3071: if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.12      petere   3072:   rm -rf conftest*
                   3073:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3074: else
                   3075:   echo "configure: failed program was:" >&5
                   3076:   cat conftest.$ac_ext >&5
                   3077:   rm -rf conftest*
                   3078:   eval "ac_cv_lib_$ac_lib_var=no"
                   3079: fi
                   3080: rm -f conftest*
                   3081: LIBS="$ac_save_LIBS"
                   3082: 
                   3083: fi
                   3084: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3085:   echo "$ac_t""yes" 1>&6
                   3086:     ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3087:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3088:   cat >> confdefs.h <<EOF
                   3089: #define $ac_tr_lib 1
                   3090: EOF
                   3091: 
                   3092:   LIBS="-lncurses $LIBS"
                   3093: 
                   3094: else
                   3095:   echo "$ac_t""no" 1>&6
                   3096: echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1.73    ! petere   3097: echo "configure:3098: checking for main in -lcurses" >&5
1.12      petere   3098: ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1.1       petere   3099: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3100:   echo $ac_n "(cached) $ac_c" 1>&6
                   3101: else
                   3102:   ac_save_LIBS="$LIBS"
1.12      petere   3103: LIBS="-lcurses  $LIBS"
1.1       petere   3104: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3105: #line 3106 "configure"
1.1       petere   3106: #include "confdefs.h"
                   3107: 
                   3108: int main() {
                   3109: main()
                   3110: ; return 0; }
                   3111: EOF
1.73    ! petere   3112: if { (eval echo configure:3113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3113:   rm -rf conftest*
                   3114:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3115: else
                   3116:   echo "configure: failed program was:" >&5
                   3117:   cat conftest.$ac_ext >&5
                   3118:   rm -rf conftest*
                   3119:   eval "ac_cv_lib_$ac_lib_var=no"
                   3120: fi
                   3121: rm -f conftest*
                   3122: LIBS="$ac_save_LIBS"
                   3123: 
                   3124: fi
                   3125: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3126:   echo "$ac_t""yes" 1>&6
1.12      petere   3127:     ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3128:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3129:   cat >> confdefs.h <<EOF
                   3130: #define $ac_tr_lib 1
                   3131: EOF
                   3132: 
                   3133:   LIBS="-lcurses $LIBS"
                   3134: 
1.1       petere   3135: else
                   3136:   echo "$ac_t""no" 1>&6
                   3137: fi
                   3138: 
1.12      petere   3139: fi
                   3140: 
1.1       petere   3141: echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
1.73    ! petere   3142: echo "configure:3143: checking for main in -ltermcap" >&5
1.1       petere   3143: ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
                   3144: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3145:   echo $ac_n "(cached) $ac_c" 1>&6
                   3146: else
                   3147:   ac_save_LIBS="$LIBS"
                   3148: LIBS="-ltermcap  $LIBS"
                   3149: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3150: #line 3151 "configure"
1.1       petere   3151: #include "confdefs.h"
                   3152: 
                   3153: int main() {
                   3154: main()
                   3155: ; return 0; }
                   3156: EOF
1.73    ! petere   3157: if { (eval echo configure:3158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3158:   rm -rf conftest*
                   3159:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3160: else
                   3161:   echo "configure: failed program was:" >&5
                   3162:   cat conftest.$ac_ext >&5
                   3163:   rm -rf conftest*
                   3164:   eval "ac_cv_lib_$ac_lib_var=no"
                   3165: fi
                   3166: rm -f conftest*
                   3167: LIBS="$ac_save_LIBS"
                   3168: 
                   3169: fi
                   3170: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3171:   echo "$ac_t""yes" 1>&6
                   3172:     ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3173:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3174:   cat >> confdefs.h <<EOF
                   3175: #define $ac_tr_lib 1
                   3176: EOF
                   3177: 
                   3178:   LIBS="-ltermcap $LIBS"
                   3179: 
                   3180: else
                   3181:   echo "$ac_t""no" 1>&6
                   3182: fi
                   3183: 
1.54      petere   3184: echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
1.73    ! petere   3185: echo "configure:3186: checking for readline in -lreadline" >&5
1.54      petere   3186: ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1.1       petere   3187: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3188:   echo $ac_n "(cached) $ac_c" 1>&6
                   3189: else
                   3190:   ac_save_LIBS="$LIBS"
                   3191: LIBS="-lreadline  $LIBS"
                   3192: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3193: #line 3194 "configure"
1.1       petere   3194: #include "confdefs.h"
1.54      petere   3195: /* Override any gcc2 internal prototype to avoid an error.  */
                   3196: /* We use char because int might match the return type of a gcc2
                   3197:     builtin and then its argument prototype would still apply.  */
                   3198: char readline();
1.1       petere   3199: 
                   3200: int main() {
1.54      petere   3201: readline()
1.1       petere   3202: ; return 0; }
                   3203: EOF
1.73    ! petere   3204: if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3205:   rm -rf conftest*
                   3206:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3207: else
                   3208:   echo "configure: failed program was:" >&5
                   3209:   cat conftest.$ac_ext >&5
                   3210:   rm -rf conftest*
                   3211:   eval "ac_cv_lib_$ac_lib_var=no"
                   3212: fi
                   3213: rm -f conftest*
                   3214: LIBS="$ac_save_LIBS"
                   3215: 
                   3216: fi
                   3217: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3218:   echo "$ac_t""yes" 1>&6
                   3219:     ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3220:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3221:   cat >> confdefs.h <<EOF
                   3222: #define $ac_tr_lib 1
                   3223: EOF
                   3224: 
                   3225:   LIBS="-lreadline $LIBS"
                   3226: 
                   3227: else
                   3228:   echo "$ac_t""no" 1>&6
                   3229: fi
                   3230: 
1.54      petere   3231: 
                   3232: echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
1.73    ! petere   3233: echo "configure:3234: checking for library containing using_history" >&5
1.54      petere   3234: if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
1.1       petere   3235:   echo $ac_n "(cached) $ac_c" 1>&6
                   3236: else
1.54      petere   3237:   ac_func_search_save_LIBS="$LIBS"
                   3238: ac_cv_search_using_history="no"
1.1       petere   3239: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3240: #line 3241 "configure"
1.1       petere   3241: #include "confdefs.h"
                   3242: /* Override any gcc2 internal prototype to avoid an error.  */
                   3243: /* We use char because int might match the return type of a gcc2
                   3244:     builtin and then its argument prototype would still apply.  */
                   3245: char using_history();
                   3246: 
                   3247: int main() {
                   3248: using_history()
                   3249: ; return 0; }
                   3250: EOF
1.73    ! petere   3251: if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3252:   rm -rf conftest*
1.54      petere   3253:   ac_cv_search_using_history="none required"
1.1       petere   3254: else
                   3255:   echo "configure: failed program was:" >&5
                   3256:   cat conftest.$ac_ext >&5
                   3257: fi
                   3258: rm -f conftest*
1.54      petere   3259: test "$ac_cv_search_using_history" = "no" && for i in history; do
                   3260: LIBS="-l$i  $ac_func_search_save_LIBS"
1.1       petere   3261: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3262: #line 3263 "configure"
1.1       petere   3263: #include "confdefs.h"
1.54      petere   3264: /* Override any gcc2 internal prototype to avoid an error.  */
                   3265: /* We use char because int might match the return type of a gcc2
                   3266:     builtin and then its argument prototype would still apply.  */
                   3267: char using_history();
1.1       petere   3268: 
                   3269: int main() {
1.54      petere   3270: using_history()
1.1       petere   3271: ; return 0; }
                   3272: EOF
1.73    ! petere   3273: if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3274:   rm -rf conftest*
1.54      petere   3275:   ac_cv_search_using_history="-l$i"
                   3276: break
1.1       petere   3277: else
                   3278:   echo "configure: failed program was:" >&5
                   3279:   cat conftest.$ac_ext >&5
                   3280: fi
                   3281: rm -f conftest*
1.54      petere   3282: done
                   3283: LIBS="$ac_func_search_save_LIBS"
                   3284: fi
1.1       petere   3285: 
1.54      petere   3286: echo "$ac_t""$ac_cv_search_using_history" 1>&6
                   3287: if test "$ac_cv_search_using_history" != "no"; then
                   3288:   test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
                   3289:   cat >> confdefs.h <<\EOF
                   3290: #define HAVE_HISTORY_FUNCTIONS 1
1.1       petere   3291: EOF
                   3292: 
1.54      petere   3293: else :
                   3294:   
1.1       petere   3295: fi
                   3296: 
                   3297: if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
                   3298: then
                   3299:        echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
1.73    ! petere   3300: echo "configure:3301: checking for main in -lbsd" >&5
1.1       petere   3301: ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
                   3302: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3303:   echo $ac_n "(cached) $ac_c" 1>&6
                   3304: else
                   3305:   ac_save_LIBS="$LIBS"
                   3306: LIBS="-lbsd  $LIBS"
                   3307: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3308: #line 3309 "configure"
1.1       petere   3309: #include "confdefs.h"
                   3310: 
                   3311: int main() {
                   3312: main()
                   3313: ; return 0; }
                   3314: EOF
1.73    ! petere   3315: if { (eval echo configure:3316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3316:   rm -rf conftest*
                   3317:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3318: else
                   3319:   echo "configure: failed program was:" >&5
                   3320:   cat conftest.$ac_ext >&5
                   3321:   rm -rf conftest*
                   3322:   eval "ac_cv_lib_$ac_lib_var=no"
                   3323: fi
                   3324: rm -f conftest*
                   3325: LIBS="$ac_save_LIBS"
                   3326: 
                   3327: fi
                   3328: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3329:   echo "$ac_t""yes" 1>&6
                   3330:     ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3331:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3332:   cat >> confdefs.h <<EOF
                   3333: #define $ac_tr_lib 1
                   3334: EOF
                   3335: 
                   3336:   LIBS="-lbsd $LIBS"
                   3337: 
                   3338: else
                   3339:   echo "$ac_t""no" 1>&6
                   3340: fi
                   3341: 
                   3342: fi
1.21      petere   3343: echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
1.73    ! petere   3344: echo "configure:3345: checking for setproctitle in -lutil" >&5
1.21      petere   3345: ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
1.1       petere   3346: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3347:   echo $ac_n "(cached) $ac_c" 1>&6
                   3348: else
                   3349:   ac_save_LIBS="$LIBS"
                   3350: LIBS="-lutil  $LIBS"
                   3351: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3352: #line 3353 "configure"
1.1       petere   3353: #include "confdefs.h"
1.21      petere   3354: /* Override any gcc2 internal prototype to avoid an error.  */
                   3355: /* We use char because int might match the return type of a gcc2
                   3356:     builtin and then its argument prototype would still apply.  */
                   3357: char setproctitle();
1.1       petere   3358: 
                   3359: int main() {
1.21      petere   3360: setproctitle()
1.1       petere   3361: ; return 0; }
                   3362: EOF
1.73    ! petere   3363: if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3364:   rm -rf conftest*
                   3365:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3366: else
                   3367:   echo "configure: failed program was:" >&5
                   3368:   cat conftest.$ac_ext >&5
                   3369:   rm -rf conftest*
                   3370:   eval "ac_cv_lib_$ac_lib_var=no"
                   3371: fi
                   3372: rm -f conftest*
                   3373: LIBS="$ac_save_LIBS"
                   3374: 
                   3375: fi
                   3376: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3377:   echo "$ac_t""yes" 1>&6
                   3378:     ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3379:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3380:   cat >> confdefs.h <<EOF
                   3381: #define $ac_tr_lib 1
                   3382: EOF
                   3383: 
                   3384:   LIBS="-lutil $LIBS"
                   3385: 
                   3386: else
                   3387:   echo "$ac_t""no" 1>&6
                   3388: fi
                   3389: 
                   3390: echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1.73    ! petere   3391: echo "configure:3392: checking for main in -lm" >&5
1.1       petere   3392: ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
                   3393: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3394:   echo $ac_n "(cached) $ac_c" 1>&6
                   3395: else
                   3396:   ac_save_LIBS="$LIBS"
                   3397: LIBS="-lm  $LIBS"
                   3398: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3399: #line 3400 "configure"
1.1       petere   3400: #include "confdefs.h"
                   3401: 
                   3402: int main() {
                   3403: main()
                   3404: ; return 0; }
                   3405: EOF
1.73    ! petere   3406: if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3407:   rm -rf conftest*
                   3408:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3409: else
                   3410:   echo "configure: failed program was:" >&5
                   3411:   cat conftest.$ac_ext >&5
                   3412:   rm -rf conftest*
                   3413:   eval "ac_cv_lib_$ac_lib_var=no"
                   3414: fi
                   3415: rm -f conftest*
                   3416: LIBS="$ac_save_LIBS"
                   3417: 
                   3418: fi
                   3419: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3420:   echo "$ac_t""yes" 1>&6
                   3421:     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3422:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3423:   cat >> confdefs.h <<EOF
                   3424: #define $ac_tr_lib 1
                   3425: EOF
                   3426: 
                   3427:   LIBS="-lm $LIBS"
                   3428: 
                   3429: else
                   3430:   echo "$ac_t""no" 1>&6
                   3431: fi
                   3432: 
                   3433: echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
1.73    ! petere   3434: echo "configure:3435: checking for main in -ldl" >&5
1.1       petere   3435: ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
                   3436: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3437:   echo $ac_n "(cached) $ac_c" 1>&6
                   3438: else
                   3439:   ac_save_LIBS="$LIBS"
                   3440: LIBS="-ldl  $LIBS"
                   3441: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3442: #line 3443 "configure"
1.1       petere   3443: #include "confdefs.h"
                   3444: 
                   3445: int main() {
                   3446: main()
                   3447: ; return 0; }
                   3448: EOF
1.73    ! petere   3449: if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3450:   rm -rf conftest*
                   3451:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3452: else
                   3453:   echo "configure: failed program was:" >&5
                   3454:   cat conftest.$ac_ext >&5
                   3455:   rm -rf conftest*
                   3456:   eval "ac_cv_lib_$ac_lib_var=no"
                   3457: fi
                   3458: rm -f conftest*
                   3459: LIBS="$ac_save_LIBS"
                   3460: 
                   3461: fi
                   3462: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3463:   echo "$ac_t""yes" 1>&6
                   3464:     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3465:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3466:   cat >> confdefs.h <<EOF
                   3467: #define $ac_tr_lib 1
                   3468: EOF
                   3469: 
                   3470:   LIBS="-ldl $LIBS"
                   3471: 
                   3472: else
                   3473:   echo "$ac_t""no" 1>&6
                   3474: fi
                   3475: 
                   3476: echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1.73    ! petere   3477: echo "configure:3478: checking for main in -lsocket" >&5
1.1       petere   3478: ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
                   3479: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3480:   echo $ac_n "(cached) $ac_c" 1>&6
                   3481: else
                   3482:   ac_save_LIBS="$LIBS"
                   3483: LIBS="-lsocket  $LIBS"
                   3484: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3485: #line 3486 "configure"
1.1       petere   3486: #include "confdefs.h"
                   3487: 
                   3488: int main() {
                   3489: main()
                   3490: ; return 0; }
                   3491: EOF
1.73    ! petere   3492: if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3493:   rm -rf conftest*
                   3494:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3495: else
                   3496:   echo "configure: failed program was:" >&5
                   3497:   cat conftest.$ac_ext >&5
                   3498:   rm -rf conftest*
                   3499:   eval "ac_cv_lib_$ac_lib_var=no"
                   3500: fi
                   3501: rm -f conftest*
                   3502: LIBS="$ac_save_LIBS"
                   3503: 
                   3504: fi
                   3505: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3506:   echo "$ac_t""yes" 1>&6
                   3507:     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3508:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3509:   cat >> confdefs.h <<EOF
                   3510: #define $ac_tr_lib 1
                   3511: EOF
                   3512: 
                   3513:   LIBS="-lsocket $LIBS"
                   3514: 
                   3515: else
                   3516:   echo "$ac_t""no" 1>&6
                   3517: fi
                   3518: 
                   3519: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.73    ! petere   3520: echo "configure:3521: checking for main in -lnsl" >&5
1.1       petere   3521: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
                   3522: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3523:   echo $ac_n "(cached) $ac_c" 1>&6
                   3524: else
                   3525:   ac_save_LIBS="$LIBS"
                   3526: LIBS="-lnsl  $LIBS"
                   3527: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3528: #line 3529 "configure"
1.1       petere   3529: #include "confdefs.h"
                   3530: 
                   3531: int main() {
                   3532: main()
                   3533: ; return 0; }
                   3534: EOF
1.73    ! petere   3535: if { (eval echo configure:3536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3536:   rm -rf conftest*
                   3537:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3538: else
                   3539:   echo "configure: failed program was:" >&5
                   3540:   cat conftest.$ac_ext >&5
                   3541:   rm -rf conftest*
                   3542:   eval "ac_cv_lib_$ac_lib_var=no"
                   3543: fi
                   3544: rm -f conftest*
                   3545: LIBS="$ac_save_LIBS"
                   3546: 
                   3547: fi
                   3548: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3549:   echo "$ac_t""yes" 1>&6
                   3550:     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3551:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3552:   cat >> confdefs.h <<EOF
                   3553: #define $ac_tr_lib 1
                   3554: EOF
                   3555: 
                   3556:   LIBS="-lnsl $LIBS"
                   3557: 
                   3558: else
                   3559:   echo "$ac_t""no" 1>&6
                   3560: fi
                   3561: 
                   3562: echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
1.73    ! petere   3563: echo "configure:3564: checking for main in -lipc" >&5
1.1       petere   3564: ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
                   3565: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3566:   echo $ac_n "(cached) $ac_c" 1>&6
                   3567: else
                   3568:   ac_save_LIBS="$LIBS"
                   3569: LIBS="-lipc  $LIBS"
                   3570: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3571: #line 3572 "configure"
1.1       petere   3572: #include "confdefs.h"
                   3573: 
                   3574: int main() {
                   3575: main()
                   3576: ; return 0; }
                   3577: EOF
1.73    ! petere   3578: if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3579:   rm -rf conftest*
                   3580:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3581: else
                   3582:   echo "configure: failed program was:" >&5
                   3583:   cat conftest.$ac_ext >&5
                   3584:   rm -rf conftest*
                   3585:   eval "ac_cv_lib_$ac_lib_var=no"
                   3586: fi
                   3587: rm -f conftest*
                   3588: LIBS="$ac_save_LIBS"
                   3589: 
                   3590: fi
                   3591: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3592:   echo "$ac_t""yes" 1>&6
                   3593:     ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3594:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3595:   cat >> confdefs.h <<EOF
                   3596: #define $ac_tr_lib 1
                   3597: EOF
                   3598: 
                   3599:   LIBS="-lipc $LIBS"
                   3600: 
                   3601: else
                   3602:   echo "$ac_t""no" 1>&6
                   3603: fi
                   3604: 
                   3605: echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
1.73    ! petere   3606: echo "configure:3607: checking for main in -lIPC" >&5
1.1       petere   3607: ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
                   3608: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3609:   echo $ac_n "(cached) $ac_c" 1>&6
                   3610: else
                   3611:   ac_save_LIBS="$LIBS"
                   3612: LIBS="-lIPC  $LIBS"
                   3613: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3614: #line 3615 "configure"
1.1       petere   3615: #include "confdefs.h"
                   3616: 
                   3617: int main() {
                   3618: main()
                   3619: ; return 0; }
                   3620: EOF
1.73    ! petere   3621: if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3622:   rm -rf conftest*
                   3623:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3624: else
                   3625:   echo "configure: failed program was:" >&5
                   3626:   cat conftest.$ac_ext >&5
                   3627:   rm -rf conftest*
                   3628:   eval "ac_cv_lib_$ac_lib_var=no"
                   3629: fi
                   3630: rm -f conftest*
                   3631: LIBS="$ac_save_LIBS"
                   3632: 
                   3633: fi
                   3634: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3635:   echo "$ac_t""yes" 1>&6
                   3636:     ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3637:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3638:   cat >> confdefs.h <<EOF
                   3639: #define $ac_tr_lib 1
                   3640: EOF
                   3641: 
                   3642:   LIBS="-lIPC $LIBS"
                   3643: 
                   3644: else
                   3645:   echo "$ac_t""no" 1>&6
                   3646: fi
                   3647: 
                   3648: echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
1.73    ! petere   3649: echo "configure:3650: checking for main in -llc" >&5
1.1       petere   3650: ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
                   3651: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3652:   echo $ac_n "(cached) $ac_c" 1>&6
                   3653: else
                   3654:   ac_save_LIBS="$LIBS"
                   3655: LIBS="-llc  $LIBS"
                   3656: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3657: #line 3658 "configure"
1.1       petere   3658: #include "confdefs.h"
                   3659: 
                   3660: int main() {
                   3661: main()
                   3662: ; return 0; }
                   3663: EOF
1.73    ! petere   3664: if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3665:   rm -rf conftest*
                   3666:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3667: else
                   3668:   echo "configure: failed program was:" >&5
                   3669:   cat conftest.$ac_ext >&5
                   3670:   rm -rf conftest*
                   3671:   eval "ac_cv_lib_$ac_lib_var=no"
                   3672: fi
                   3673: rm -f conftest*
                   3674: LIBS="$ac_save_LIBS"
                   3675: 
                   3676: fi
                   3677: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3678:   echo "$ac_t""yes" 1>&6
                   3679:     ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3680:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3681:   cat >> confdefs.h <<EOF
                   3682: #define $ac_tr_lib 1
                   3683: EOF
                   3684: 
                   3685:   LIBS="-llc $LIBS"
                   3686: 
                   3687: else
                   3688:   echo "$ac_t""no" 1>&6
                   3689: fi
                   3690: 
                   3691: echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
1.73    ! petere   3692: echo "configure:3693: checking for main in -ldld" >&5
1.1       petere   3693: ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
                   3694: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3695:   echo $ac_n "(cached) $ac_c" 1>&6
                   3696: else
                   3697:   ac_save_LIBS="$LIBS"
                   3698: LIBS="-ldld  $LIBS"
                   3699: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3700: #line 3701 "configure"
1.1       petere   3701: #include "confdefs.h"
                   3702: 
                   3703: int main() {
                   3704: main()
                   3705: ; return 0; }
                   3706: EOF
1.73    ! petere   3707: if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3708:   rm -rf conftest*
                   3709:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3710: else
                   3711:   echo "configure: failed program was:" >&5
                   3712:   cat conftest.$ac_ext >&5
                   3713:   rm -rf conftest*
                   3714:   eval "ac_cv_lib_$ac_lib_var=no"
                   3715: fi
                   3716: rm -f conftest*
                   3717: LIBS="$ac_save_LIBS"
                   3718: 
                   3719: fi
                   3720: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3721:   echo "$ac_t""yes" 1>&6
                   3722:     ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3723:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3724:   cat >> confdefs.h <<EOF
                   3725: #define $ac_tr_lib 1
                   3726: EOF
                   3727: 
                   3728:   LIBS="-ldld $LIBS"
                   3729: 
                   3730: else
                   3731:   echo "$ac_t""no" 1>&6
                   3732: fi
                   3733: 
                   3734: echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
1.73    ! petere   3735: echo "configure:3736: checking for main in -lln" >&5
1.1       petere   3736: ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
                   3737: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3738:   echo $ac_n "(cached) $ac_c" 1>&6
                   3739: else
                   3740:   ac_save_LIBS="$LIBS"
                   3741: LIBS="-lln  $LIBS"
                   3742: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3743: #line 3744 "configure"
1.1       petere   3744: #include "confdefs.h"
                   3745: 
                   3746: int main() {
                   3747: main()
                   3748: ; return 0; }
                   3749: EOF
1.73    ! petere   3750: if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3751:   rm -rf conftest*
                   3752:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3753: else
                   3754:   echo "configure: failed program was:" >&5
                   3755:   cat conftest.$ac_ext >&5
                   3756:   rm -rf conftest*
                   3757:   eval "ac_cv_lib_$ac_lib_var=no"
                   3758: fi
                   3759: rm -f conftest*
                   3760: LIBS="$ac_save_LIBS"
                   3761: 
                   3762: fi
                   3763: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3764:   echo "$ac_t""yes" 1>&6
                   3765:     ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3766:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3767:   cat >> confdefs.h <<EOF
                   3768: #define $ac_tr_lib 1
                   3769: EOF
                   3770: 
                   3771:   LIBS="-lln $LIBS"
                   3772: 
                   3773: else
                   3774:   echo "$ac_t""no" 1>&6
                   3775: fi
                   3776: 
                   3777: echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
1.73    ! petere   3778: echo "configure:3779: checking for main in -lld" >&5
1.1       petere   3779: ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
                   3780: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3781:   echo $ac_n "(cached) $ac_c" 1>&6
                   3782: else
                   3783:   ac_save_LIBS="$LIBS"
                   3784: LIBS="-lld  $LIBS"
                   3785: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3786: #line 3787 "configure"
1.1       petere   3787: #include "confdefs.h"
                   3788: 
                   3789: int main() {
                   3790: main()
                   3791: ; return 0; }
                   3792: EOF
1.73    ! petere   3793: if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3794:   rm -rf conftest*
                   3795:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3796: else
                   3797:   echo "configure: failed program was:" >&5
                   3798:   cat conftest.$ac_ext >&5
                   3799:   rm -rf conftest*
                   3800:   eval "ac_cv_lib_$ac_lib_var=no"
                   3801: fi
                   3802: rm -f conftest*
                   3803: LIBS="$ac_save_LIBS"
                   3804: 
                   3805: fi
                   3806: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3807:   echo "$ac_t""yes" 1>&6
                   3808:     ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3809:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3810:   cat >> confdefs.h <<EOF
                   3811: #define $ac_tr_lib 1
                   3812: EOF
                   3813: 
                   3814:   LIBS="-lld $LIBS"
                   3815: 
                   3816: else
                   3817:   echo "$ac_t""no" 1>&6
                   3818: fi
                   3819: 
1.28      petere   3820: echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
1.73    ! petere   3821: echo "configure:3822: checking for main in -lcompat" >&5
1.28      petere   3822: ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
                   3823: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3824:   echo $ac_n "(cached) $ac_c" 1>&6
                   3825: else
                   3826:   ac_save_LIBS="$LIBS"
                   3827: LIBS="-lcompat  $LIBS"
                   3828: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3829: #line 3830 "configure"
1.28      petere   3830: #include "confdefs.h"
                   3831: 
                   3832: int main() {
                   3833: main()
                   3834: ; return 0; }
                   3835: EOF
1.73    ! petere   3836: if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   3837:   rm -rf conftest*
                   3838:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3839: else
                   3840:   echo "configure: failed program was:" >&5
                   3841:   cat conftest.$ac_ext >&5
                   3842:   rm -rf conftest*
                   3843:   eval "ac_cv_lib_$ac_lib_var=no"
                   3844: fi
                   3845: rm -f conftest*
                   3846: LIBS="$ac_save_LIBS"
                   3847: 
                   3848: fi
                   3849: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3850:   echo "$ac_t""yes" 1>&6
                   3851:     ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3852:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3853:   cat >> confdefs.h <<EOF
                   3854: #define $ac_tr_lib 1
                   3855: EOF
                   3856: 
                   3857:   LIBS="-lcompat $LIBS"
                   3858: 
                   3859: else
                   3860:   echo "$ac_t""no" 1>&6
                   3861: fi
                   3862: 
                   3863: echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
1.73    ! petere   3864: echo "configure:3865: checking for main in -lBSD" >&5
1.28      petere   3865: ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
                   3866: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3867:   echo $ac_n "(cached) $ac_c" 1>&6
                   3868: else
                   3869:   ac_save_LIBS="$LIBS"
                   3870: LIBS="-lBSD  $LIBS"
                   3871: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3872: #line 3873 "configure"
1.28      petere   3873: #include "confdefs.h"
                   3874: 
                   3875: int main() {
                   3876: main()
                   3877: ; return 0; }
                   3878: EOF
1.73    ! petere   3879: if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   3880:   rm -rf conftest*
                   3881:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3882: else
                   3883:   echo "configure: failed program was:" >&5
                   3884:   cat conftest.$ac_ext >&5
                   3885:   rm -rf conftest*
                   3886:   eval "ac_cv_lib_$ac_lib_var=no"
                   3887: fi
                   3888: rm -f conftest*
                   3889: LIBS="$ac_save_LIBS"
                   3890: 
                   3891: fi
                   3892: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3893:   echo "$ac_t""yes" 1>&6
                   3894:     ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3895:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3896:   cat >> confdefs.h <<EOF
                   3897: #define $ac_tr_lib 1
                   3898: EOF
                   3899: 
                   3900:   LIBS="-lBSD $LIBS"
                   3901: 
                   3902: else
                   3903:   echo "$ac_t""no" 1>&6
                   3904: fi
                   3905: 
                   3906: echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
1.73    ! petere   3907: echo "configure:3908: checking for main in -lgen" >&5
1.28      petere   3908: ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
                   3909: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3910:   echo $ac_n "(cached) $ac_c" 1>&6
                   3911: else
                   3912:   ac_save_LIBS="$LIBS"
                   3913: LIBS="-lgen  $LIBS"
                   3914: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3915: #line 3916 "configure"
1.28      petere   3916: #include "confdefs.h"
                   3917: 
                   3918: int main() {
                   3919: main()
                   3920: ; return 0; }
                   3921: EOF
1.73    ! petere   3922: if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   3923:   rm -rf conftest*
                   3924:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3925: else
                   3926:   echo "configure: failed program was:" >&5
                   3927:   cat conftest.$ac_ext >&5
                   3928:   rm -rf conftest*
                   3929:   eval "ac_cv_lib_$ac_lib_var=no"
                   3930: fi
                   3931: rm -f conftest*
                   3932: LIBS="$ac_save_LIBS"
                   3933: 
                   3934: fi
                   3935: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3936:   echo "$ac_t""yes" 1>&6
                   3937:     ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3938:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3939:   cat >> confdefs.h <<EOF
                   3940: #define $ac_tr_lib 1
                   3941: EOF
                   3942: 
                   3943:   LIBS="-lgen $LIBS"
                   3944: 
                   3945: else
                   3946:   echo "$ac_t""no" 1>&6
                   3947: fi
                   3948: 
                   3949: echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
1.73    ! petere   3950: echo "configure:3951: checking for main in -lPW" >&5
1.28      petere   3951: ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
                   3952: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3953:   echo $ac_n "(cached) $ac_c" 1>&6
                   3954: else
                   3955:   ac_save_LIBS="$LIBS"
                   3956: LIBS="-lPW  $LIBS"
                   3957: cat > conftest.$ac_ext <<EOF
1.73    ! petere   3958: #line 3959 "configure"
1.28      petere   3959: #include "confdefs.h"
                   3960: 
                   3961: int main() {
                   3962: main()
                   3963: ; return 0; }
                   3964: EOF
1.73    ! petere   3965: if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   3966:   rm -rf conftest*
                   3967:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3968: else
                   3969:   echo "configure: failed program was:" >&5
                   3970:   cat conftest.$ac_ext >&5
                   3971:   rm -rf conftest*
                   3972:   eval "ac_cv_lib_$ac_lib_var=no"
                   3973: fi
                   3974: rm -f conftest*
                   3975: LIBS="$ac_save_LIBS"
                   3976: 
                   3977: fi
                   3978: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3979:   echo "$ac_t""yes" 1>&6
                   3980:     ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3981:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3982:   cat >> confdefs.h <<EOF
                   3983: #define $ac_tr_lib 1
                   3984: EOF
                   3985: 
                   3986:   LIBS="-lPW $LIBS"
                   3987: 
                   3988: else
                   3989:   echo "$ac_t""no" 1>&6
                   3990: fi
                   3991: 
                   3992: 
                   3993: echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
1.73    ! petere   3994: echo "configure:3995: checking for library containing crypt" >&5
1.28      petere   3995: if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
                   3996:   echo $ac_n "(cached) $ac_c" 1>&6
                   3997: else
                   3998:   ac_func_search_save_LIBS="$LIBS"
                   3999: ac_cv_search_crypt="no"
                   4000: cat > conftest.$ac_ext <<EOF
1.73    ! petere   4001: #line 4002 "configure"
1.28      petere   4002: #include "confdefs.h"
                   4003: /* Override any gcc2 internal prototype to avoid an error.  */
                   4004: /* We use char because int might match the return type of a gcc2
                   4005:     builtin and then its argument prototype would still apply.  */
                   4006: char crypt();
                   4007: 
                   4008: int main() {
                   4009: crypt()
                   4010: ; return 0; }
                   4011: EOF
1.73    ! petere   4012: if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   4013:   rm -rf conftest*
                   4014:   ac_cv_search_crypt="none required"
                   4015: else
                   4016:   echo "configure: failed program was:" >&5
                   4017:   cat conftest.$ac_ext >&5
                   4018: fi
                   4019: rm -f conftest*
                   4020: test "$ac_cv_search_crypt" = "no" && for i in crypt; do
                   4021: LIBS="-l$i  $ac_func_search_save_LIBS"
                   4022: cat > conftest.$ac_ext <<EOF
1.73    ! petere   4023: #line 4024 "configure"
1.28      petere   4024: #include "confdefs.h"
                   4025: /* Override any gcc2 internal prototype to avoid an error.  */
                   4026: /* We use char because int might match the return type of a gcc2
                   4027:     builtin and then its argument prototype would still apply.  */
                   4028: char crypt();
                   4029: 
                   4030: int main() {
                   4031: crypt()
                   4032: ; return 0; }
                   4033: EOF
1.73    ! petere   4034: if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   4035:   rm -rf conftest*
                   4036:   ac_cv_search_crypt="-l$i"
                   4037: break
                   4038: else
                   4039:   echo "configure: failed program was:" >&5
                   4040:   cat conftest.$ac_ext >&5
                   4041: fi
                   4042: rm -f conftest*
                   4043: done
                   4044: LIBS="$ac_func_search_save_LIBS"
                   4045: fi
                   4046: 
                   4047: echo "$ac_t""$ac_cv_search_crypt" 1>&6
                   4048: if test "$ac_cv_search_crypt" != "no"; then
                   4049:   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
                   4050:   
                   4051: else :
                   4052:   
                   4053: fi
                   4054: echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
1.73    ! petere   4055: echo "configure:4056: checking for inflate in -lz" >&5
1.28      petere   4056: ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
                   4057: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4058:   echo $ac_n "(cached) $ac_c" 1>&6
                   4059: else
                   4060:   ac_save_LIBS="$LIBS"
                   4061: LIBS="-lz  $LIBS"
                   4062: cat > conftest.$ac_ext <<EOF
1.73    ! petere   4063: #line 4064 "configure"
1.28      petere   4064: #include "confdefs.h"
                   4065: /* Override any gcc2 internal prototype to avoid an error.  */
                   4066: /* We use char because int might match the return type of a gcc2
                   4067:     builtin and then its argument prototype would still apply.  */
                   4068: char inflate();
                   4069: 
                   4070: int main() {
                   4071: inflate()
                   4072: ; return 0; }
                   4073: EOF
1.73    ! petere   4074: if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   4075:   rm -rf conftest*
                   4076:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4077: else
                   4078:   echo "configure: failed program was:" >&5
                   4079:   cat conftest.$ac_ext >&5
                   4080:   rm -rf conftest*
                   4081:   eval "ac_cv_lib_$ac_lib_var=no"
                   4082: fi
                   4083: rm -f conftest*
                   4084: LIBS="$ac_save_LIBS"
                   4085: 
                   4086: fi
                   4087: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4088:   echo "$ac_t""yes" 1>&6
                   4089:     ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   4090:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4091:   cat >> confdefs.h <<EOF
                   4092: #define $ac_tr_lib 1
                   4093: EOF
                   4094: 
                   4095:   LIBS="-lz $LIBS"
                   4096: 
                   4097: else
                   4098:   echo "$ac_t""no" 1>&6
                   4099: fi
                   4100: 
1.70      petere   4101: echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
1.73    ! petere   4102: echo "configure:4103: checking for __inet_ntoa in -lbind" >&5
1.70      petere   4103: ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
                   4104: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1.57      momjian  4105:   echo $ac_n "(cached) $ac_c" 1>&6
                   4106: else
1.70      petere   4107:   ac_save_LIBS="$LIBS"
                   4108: LIBS="-lbind  $LIBS"
1.57      momjian  4109: cat > conftest.$ac_ext <<EOF
1.73    ! petere   4110: #line 4111 "configure"
1.57      momjian  4111: #include "confdefs.h"
1.59      petere   4112: /* Override any gcc2 internal prototype to avoid an error.  */
                   4113: /* We use char because int might match the return type of a gcc2
                   4114:     builtin and then its argument prototype would still apply.  */
1.62      momjian  4115: char __inet_ntoa();
1.57      momjian  4116: 
                   4117: int main() {
1.62      momjian  4118: __inet_ntoa()
1.57      momjian  4119: ; return 0; }
                   4120: EOF
1.73    ! petere   4121: if { (eval echo configure:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.57      momjian  4122:   rm -rf conftest*
1.70      petere   4123:   eval "ac_cv_lib_$ac_lib_var=yes"
1.57      momjian  4124: else
                   4125:   echo "configure: failed program was:" >&5
                   4126:   cat conftest.$ac_ext >&5
1.70      petere   4127:   rm -rf conftest*
                   4128:   eval "ac_cv_lib_$ac_lib_var=no"
1.57      momjian  4129: fi
                   4130: rm -f conftest*
1.70      petere   4131: LIBS="$ac_save_LIBS"
1.57      momjian  4132: 
1.70      petere   4133: fi
                   4134: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4135:   echo "$ac_t""yes" 1>&6
                   4136:     ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   4137:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4138:   cat >> confdefs.h <<EOF
                   4139: #define $ac_tr_lib 1
1.57      momjian  4140: EOF
1.70      petere   4141: 
                   4142:   LIBS="-lbind $LIBS"
                   4143: 
1.57      momjian  4144: else
1.70      petere   4145:   echo "$ac_t""no" 1>&6
1.57      momjian  4146: fi
                   4147: 
1.28      petere   4148: 
1.62      momjian  4149: 
1.28      petere   4150: if test "$with_krb4" = yes ; then
                   4151:   echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
1.73    ! petere   4152: echo "configure:4153: checking for des_encrypt in -ldes" >&5
1.28      petere   4153: ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
                   4154: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4155:   echo $ac_n "(cached) $ac_c" 1>&6
                   4156: else
                   4157:   ac_save_LIBS="$LIBS"
                   4158: LIBS="-ldes  $LIBS"
                   4159: cat > conftest.$ac_ext <<EOF
1.73    ! petere   4160: #line 4161 "configure"
1.28      petere   4161: #include "confdefs.h"
                   4162: /* Override any gcc2 internal prototype to avoid an error.  */
                   4163: /* We use char because int might match the return type of a gcc2
                   4164:     builtin and then its argument prototype would still apply.  */
                   4165: char des_encrypt();
                   4166: 
                   4167: int main() {
                   4168: des_encrypt()
                   4169: ; return 0; }
                   4170: EOF
1.73    ! petere   4171: if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   4172:   rm -rf conftest*
                   4173:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4174: else
                   4175:   echo "configure: failed program was:" >&5
                   4176:   cat conftest.$ac_ext >&5
                   4177:   rm -rf conftest*
                   4178:   eval "ac_cv_lib_$ac_lib_var=no"
                   4179: fi
                   4180: rm -f conftest*
                   4181: LIBS="$ac_save_LIBS"
                   4182: 
                   4183: fi
                   4184: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4185:   echo "$ac_t""yes" 1>&6
                   4186:     ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   4187:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4188:   cat >> confdefs.h <<EOF
                   4189: #define $ac_tr_lib 1
                   4190: EOF
                   4191: 
                   4192:   LIBS="-ldes $LIBS"
                   4193: 
                   4194: else
                   4195:   echo "$ac_t""no" 1>&6
                   4196: { echo "configure: error: library \`des' is required for Kerberos 4" 1>&2; exit 1; }
                   4197: fi
                   4198: 
                   4199:   echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
1.73    ! petere   4200: echo "configure:4201: checking for krb_sendauth in -lkrb" >&5
1.28      petere   4201: ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
                   4202: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4203:   echo $ac_n "(cached) $ac_c" 1>&6
                   4204: else
                   4205:   ac_save_LIBS="$LIBS"
                   4206: LIBS="-lkrb  $LIBS"
                   4207: cat > conftest.$ac_ext <<EOF
1.73    ! petere   4208: #line 4209 "configure"
1.28      petere   4209: #include "confdefs.h"
                   4210: /* Override any gcc2 internal prototype to avoid an error.  */
                   4211: /* We use char because int might match the return type of a gcc2
                   4212:     builtin and then its argument prototype would still apply.  */
                   4213: char krb_sendauth();
                   4214: 
                   4215: int main() {
                   4216: krb_sendauth()
                   4217: ; return 0; }
                   4218: EOF
1.73    ! petere   4219: if { (eval echo configure:4220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   4220:   rm -rf conftest*
                   4221:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4222: else
                   4223:   echo "configure: failed program was:" >&5
                   4224:   cat conftest.$ac_ext >&5
                   4225:   rm -rf conftest*
                   4226:   eval "ac_cv_lib_$ac_lib_var=no"
                   4227: fi
                   4228: rm -f conftest*
                   4229: LIBS="$ac_save_LIBS"
                   4230: 
                   4231: fi
                   4232: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4233:   echo "$ac_t""yes" 1>&6
                   4234:     ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   4235:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4236:   cat >> confdefs.h <<EOF
                   4237: #define $ac_tr_lib 1
                   4238: EOF
                   4239: 
                   4240:   LIBS="-lkrb $LIBS"
                   4241: 
                   4242: else
                   4243:   echo "$ac_t""no" 1>&6
                   4244: { echo "configure: error: library \`krb' is required for Kerberos 4" 1>&2; exit 1; }
                   4245: fi
                   4246: 
                   4247: fi
                   4248: 
                   4249: if test "$with_krb5" = yes ; then
1.70      petere   4250:   echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
1.73    ! petere   4251: echo "configure:4252: checking for com_err in -lcom_err" >&5
1.70      petere   4252: ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
1.1       petere   4253: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4254:   echo $ac_n "(cached) $ac_c" 1>&6
                   4255: else
                   4256:   ac_save_LIBS="$LIBS"
1.28      petere   4257: LIBS="-lcom_err  $LIBS"
1.1       petere   4258: cat > conftest.$ac_ext <<EOF
1.73    ! petere   4259: #line 4260 "configure"
1.1       petere   4260: #include "confdefs.h"
1.70      petere   4261: /* Override any gcc2 internal prototype to avoid an error.  */
                   4262: /* We use char because int might match the return type of a gcc2
                   4263:     builtin and then its argument prototype would still apply.  */
                   4264: char com_err();
1.1       petere   4265: 
                   4266: int main() {
1.70      petere   4267: com_err()
1.1       petere   4268: ; return 0; }
                   4269: EOF
1.73    ! petere   4270: if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   4271:   rm -rf conftest*
                   4272:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4273: else
                   4274:   echo "configure: failed program was:" >&5
                   4275:   cat conftest.$ac_ext >&5
                   4276:   rm -rf conftest*
                   4277:   eval "ac_cv_lib_$ac_lib_var=no"
                   4278: fi
                   4279: rm -f conftest*
                   4280: LIBS="$ac_save_LIBS"
                   4281: 
                   4282: fi
                   4283: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4284:   echo "$ac_t""yes" 1>&6
1.28      petere   4285:     ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1.1       petere   4286:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4287:   cat >> confdefs.h <<EOF
                   4288: #define $ac_tr_lib 1
                   4289: EOF
                   4290: 
1.28      petere   4291:   LIBS="-lcom_err $LIBS"
1.1       petere   4292: 
                   4293: else
                   4294:   echo "$ac_t""no" 1>&6
1.28      petere   4295: { echo "configure: error: library \`com_err' is required for Kerberos 5" 1>&2; exit 1; }
1.1       petere   4296: fi
                   4297: 
1.70      petere   4298:   echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
1.73    ! petere   4299: echo "configure:4300: checking for krb5_encrypt in -lcrypto" >&5
1.70      petere   4300: ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
1.1       petere   4301: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4302:   echo $ac_n "(cached) $ac_c" 1>&6
                   4303: else
                   4304:   ac_save_LIBS="$LIBS"
1.28      petere   4305: LIBS="-lcrypto  $LIBS"
1.1       petere   4306: cat > conftest.$ac_ext <<EOF
1.73    ! petere   4307: #line 4308 "configure"
1.1       petere   4308: #include "confdefs.h"
1.70      petere   4309: /* Override any gcc2 internal prototype to avoid an error.  */
                   4310: /* We use char because int might match the return type of a gcc2
                   4311:     builtin and then its argument prototype would still apply.  */
                   4312: char krb5_encrypt();
1.1       petere   4313: 
                   4314: int main() {
1.70      petere   4315: krb5_encrypt()
1.1       petere   4316: ; return 0; }
                   4317: EOF
1.73    ! petere   4318: if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   4319:   rm -rf conftest*
                   4320:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4321: else
                   4322:   echo "configure: failed program was:" >&5
                   4323:   cat conftest.$ac_ext >&5
                   4324:   rm -rf conftest*
                   4325:   eval "ac_cv_lib_$ac_lib_var=no"
                   4326: fi
                   4327: rm -f conftest*
                   4328: LIBS="$ac_save_LIBS"
                   4329: 
                   4330: fi
                   4331: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4332:   echo "$ac_t""yes" 1>&6
1.28      petere   4333:     ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1.1       petere   4334:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4335:   cat >> confdefs.h <<EOF
                   4336: #define $ac_tr_lib 1
                   4337: EOF
                   4338: 
1.28      petere   4339:   LIBS="-lcrypto $LIBS"
1.1       petere   4340: 
                   4341: else
                   4342:   echo "$ac_t""no" 1>&6
1.70      petere   4343: echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
1.73    ! petere   4344: echo "configure:4345: checking for krb5_encrypt in -lk5crypto" >&5
1.70      petere   4345: ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
                   4346: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4347:   echo $ac_n "(cached) $ac_c" 1>&6
                   4348: else
                   4349:   ac_save_LIBS="$LIBS"
                   4350: LIBS="-lk5crypto  $LIBS"
                   4351: cat > conftest.$ac_ext <<EOF
1.73    ! petere   4352: #line 4353 "configure"
1.70      petere   4353: #include "confdefs.h"
                   4354: /* Override any gcc2 internal prototype to avoid an error.  */
                   4355: /* We use char because int might match the return type of a gcc2
                   4356:     builtin and then its argument prototype would still apply.  */
                   4357: char krb5_encrypt();
                   4358: 
                   4359: int main() {
                   4360: krb5_encrypt()
                   4361: ; return 0; }
                   4362: EOF
1.73    ! petere   4363: if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.70      petere   4364:   rm -rf conftest*
                   4365:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4366: else
                   4367:   echo "configure: failed program was:" >&5
                   4368:   cat conftest.$ac_ext >&5
                   4369:   rm -rf conftest*
                   4370:   eval "ac_cv_lib_$ac_lib_var=no"
                   4371: fi
                   4372: rm -f conftest*
                   4373: LIBS="$ac_save_LIBS"
                   4374: 
                   4375: fi
                   4376: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4377:   echo "$ac_t""yes" 1>&6
                   4378:     ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   4379:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4380:   cat >> confdefs.h <<EOF
                   4381: #define $ac_tr_lib 1
                   4382: EOF
                   4383: 
                   4384:   LIBS="-lk5crypto $LIBS"
                   4385: 
                   4386: else
                   4387:   echo "$ac_t""no" 1>&6
1.28      petere   4388: { echo "configure: error: library \`crypto' is required for Kerberos 5" 1>&2; exit 1; }
1.1       petere   4389: fi
                   4390: 
1.70      petere   4391: fi
                   4392: 
                   4393:   echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
1.73    ! petere   4394: echo "configure:4395: checking for krb5_sendauth in -lkrb5" >&5
1.70      petere   4395: ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
1.1       petere   4396: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4397:   echo $ac_n "(cached) $ac_c" 1>&6
                   4398: else
                   4399:   ac_save_LIBS="$LIBS"
1.28      petere   4400: LIBS="-lkrb5  $LIBS"
1.1       petere   4401: cat > conftest.$ac_ext <<EOF
1.73    ! petere   4402: #line 4403 "configure"
1.1       petere   4403: #include "confdefs.h"
1.70      petere   4404: /* Override any gcc2 internal prototype to avoid an error.  */
                   4405: /* We use char because int might match the return type of a gcc2
                   4406:     builtin and then its argument prototype would still apply.  */
                   4407: char krb5_sendauth();
1.1       petere   4408: 
                   4409: int main() {
1.70      petere   4410: krb5_sendauth()
1.1       petere   4411: ; return 0; }
                   4412: EOF
1.73    ! petere   4413: if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   4414:   rm -rf conftest*
                   4415:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4416: else
                   4417:   echo "configure: failed program was:" >&5
                   4418:   cat conftest.$ac_ext >&5
                   4419:   rm -rf conftest*
                   4420:   eval "ac_cv_lib_$ac_lib_var=no"
                   4421: fi
                   4422: rm -f conftest*
                   4423: LIBS="$ac_save_LIBS"
                   4424: 
                   4425: fi
                   4426: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4427:   echo "$ac_t""yes" 1>&6
1.28      petere   4428:     ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1.1       petere   4429:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4430:   cat >> confdefs.h <<EOF
                   4431: #define $ac_tr_lib 1
                   4432: EOF
                   4433: 
1.28      petere   4434:   LIBS="-lkrb5 $LIBS"
1.1       petere   4435: 
                   4436: else
                   4437:   echo "$ac_t""no" 1>&6
1.28      petere   4438: { echo "configure: error: library \`krb5' is required for Kerberos 5" 1>&2; exit 1; }
1.1       petere   4439: fi
                   4440: 
1.28      petere   4441: fi
                   4442: 
                   4443: if test "$with_openssl" = yes ; then
                   4444:     echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
1.73    ! petere   4445: echo "configure:4446: checking for CRYPTO_new_ex_data in -lcrypto" >&5
1.28      petere   4446: ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
1.1       petere   4447: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4448:   echo $ac_n "(cached) $ac_c" 1>&6
                   4449: else
                   4450:   ac_save_LIBS="$LIBS"
1.28      petere   4451: LIBS="-lcrypto  $LIBS"
1.1       petere   4452: cat > conftest.$ac_ext <<EOF
1.73    ! petere   4453: #line 4454 "configure"
1.1       petere   4454: #include "confdefs.h"
1.28      petere   4455: /* Override any gcc2 internal prototype to avoid an error.  */
                   4456: /* We use char because int might match the return type of a gcc2
                   4457:     builtin and then its argument prototype would still apply.  */
                   4458: char CRYPTO_new_ex_data();
1.1       petere   4459: 
                   4460: int main() {
1.28      petere   4461: CRYPTO_new_ex_data()
1.1       petere   4462: ; return 0; }
                   4463: EOF
1.73    ! petere   4464: if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   4465:   rm -rf conftest*
                   4466:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4467: else
                   4468:   echo "configure: failed program was:" >&5
                   4469:   cat conftest.$ac_ext >&5
                   4470:   rm -rf conftest*
                   4471:   eval "ac_cv_lib_$ac_lib_var=no"
                   4472: fi
                   4473: rm -f conftest*
                   4474: LIBS="$ac_save_LIBS"
                   4475: 
                   4476: fi
                   4477: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4478:   echo "$ac_t""yes" 1>&6
1.28      petere   4479:     ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1.1       petere   4480:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4481:   cat >> confdefs.h <<EOF
                   4482: #define $ac_tr_lib 1
                   4483: EOF
                   4484: 
1.28      petere   4485:   LIBS="-lcrypto $LIBS"
1.1       petere   4486: 
                   4487: else
                   4488:   echo "$ac_t""no" 1>&6
1.28      petere   4489: { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
1.1       petere   4490: fi
                   4491: 
1.28      petere   4492:   echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
1.73    ! petere   4493: echo "configure:4494: checking for SSL_library_init in -lssl" >&5
1.28      petere   4494: ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
                   4495: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1.1       petere   4496:   echo $ac_n "(cached) $ac_c" 1>&6
                   4497: else
1.28      petere   4498:   ac_save_LIBS="$LIBS"
                   4499: LIBS="-lssl  $LIBS"
1.1       petere   4500: cat > conftest.$ac_ext <<EOF
1.73    ! petere   4501: #line 4502 "configure"
1.1       petere   4502: #include "confdefs.h"
1.21      petere   4503: /* Override any gcc2 internal prototype to avoid an error.  */
                   4504: /* We use char because int might match the return type of a gcc2
                   4505:     builtin and then its argument prototype would still apply.  */
1.28      petere   4506: char SSL_library_init();
1.1       petere   4507: 
                   4508: int main() {
1.28      petere   4509: SSL_library_init()
1.1       petere   4510: ; return 0; }
                   4511: EOF
1.73    ! petere   4512: if { (eval echo configure:4513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   4513:   rm -rf conftest*
1.28      petere   4514:   eval "ac_cv_lib_$ac_lib_var=yes"
1.1       petere   4515: else
                   4516:   echo "configure: failed program was:" >&5
                   4517:   cat conftest.$ac_ext >&5
1.28      petere   4518:   rm -rf conftest*
                   4519:   eval "ac_cv_lib_$ac_lib_var=no"
1.1       petere   4520: fi
                   4521: rm -f conftest*
1.28      petere   4522: LIBS="$ac_save_LIBS"
1.1       petere   4523: 
1.28      petere   4524: fi
                   4525: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4526:   echo "$ac_t""yes" 1>&6
                   4527:     ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   4528:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4529:   cat >> confdefs.h <<EOF
                   4530: #define $ac_tr_lib 1
1.1       petere   4531: EOF
1.28      petere   4532: 
                   4533:   LIBS="-lssl $LIBS"
                   4534: 
1.1       petere   4535: else
1.28      petere   4536:   echo "$ac_t""no" 1>&6
                   4537: { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
1.21      petere   4538: fi
1.28      petere   4539: 
1.1       petere   4540: fi
                   4541: 
                   4542: 
1.29      petere   4543: ##
                   4544: ## Header files
                   4545: ##
1.68      tgl      4546: for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/types.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
1.1       petere   4547: do
                   4548: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4549: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.73    ! petere   4550: echo "configure:4551: checking for $ac_hdr" >&5
1.1       petere   4551: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4552:   echo $ac_n "(cached) $ac_c" 1>&6
                   4553: else
                   4554:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   4555: #line 4556 "configure"
1.1       petere   4556: #include "confdefs.h"
                   4557: #include <$ac_hdr>
                   4558: EOF
                   4559: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   4560: { (eval echo configure:4561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4561: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4562: if test -z "$ac_err"; then
                   4563:   rm -rf conftest*
                   4564:   eval "ac_cv_header_$ac_safe=yes"
                   4565: else
                   4566:   echo "$ac_err" >&5
                   4567:   echo "configure: failed program was:" >&5
                   4568:   cat conftest.$ac_ext >&5
                   4569:   rm -rf conftest*
                   4570:   eval "ac_cv_header_$ac_safe=no"
                   4571: fi
                   4572: rm -f conftest*
                   4573: fi
                   4574: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4575:   echo "$ac_t""yes" 1>&6
                   4576:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4577:   cat >> confdefs.h <<EOF
                   4578: #define $ac_tr_hdr 1
                   4579: EOF
                   4580:  
                   4581: else
                   4582:   echo "$ac_t""no" 1>&6
                   4583: fi
                   4584: done
                   4585: 
1.29      petere   4586: 
1.68      tgl      4587: for ac_hdr in netinet/in.h
1.1       petere   4588: do
                   4589: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4590: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.73    ! petere   4591: echo "configure:4592: checking for $ac_hdr" >&5
1.1       petere   4592: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4593:   echo $ac_n "(cached) $ac_c" 1>&6
                   4594: else
                   4595:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   4596: #line 4597 "configure"
1.1       petere   4597: #include "confdefs.h"
                   4598: #include <$ac_hdr>
                   4599: EOF
                   4600: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   4601: { (eval echo configure:4602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4602: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4603: if test -z "$ac_err"; then
                   4604:   rm -rf conftest*
                   4605:   eval "ac_cv_header_$ac_safe=yes"
                   4606: else
                   4607:   echo "$ac_err" >&5
                   4608:   echo "configure: failed program was:" >&5
                   4609:   cat conftest.$ac_ext >&5
                   4610:   rm -rf conftest*
                   4611:   eval "ac_cv_header_$ac_safe=no"
                   4612: fi
                   4613: rm -f conftest*
                   4614: fi
                   4615: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4616:   echo "$ac_t""yes" 1>&6
                   4617:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4618:   cat >> confdefs.h <<EOF
                   4619: #define $ac_tr_hdr 1
                   4620: EOF
1.68      tgl      4621:  
                   4622: else
                   4623:   echo "$ac_t""no" 1>&6
                   4624: fi
                   4625: done
                   4626: 
                   4627: echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
1.73    ! petere   4628: echo "configure:4629: checking for netinet/tcp.h" >&5
1.68      tgl      4629: cat > conftest.$ac_ext <<EOF
1.73    ! petere   4630: #line 4631 "configure"
1.68      tgl      4631: #include "confdefs.h"
                   4632: 
                   4633: #ifdef HAVE_NETINET_IN_H
                   4634: #include <netinet/in.h>
                   4635: #endif
                   4636: #include <netinet/tcp.h>
                   4637: 
                   4638: EOF
                   4639: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   4640: { (eval echo configure:4641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.68      tgl      4641: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4642: if test -z "$ac_err"; then
                   4643:   rm -rf conftest*
                   4644:   cat >> confdefs.h <<\EOF
                   4645: #define HAVE_NETINET_TCP_H 1
                   4646: EOF
                   4647:  echo "$ac_t""yes" 1>&6
                   4648: else
                   4649:   echo "$ac_err" >&5
                   4650:   echo "configure: failed program was:" >&5
                   4651:   cat conftest.$ac_ext >&5
                   4652:   rm -rf conftest*
                   4653:   echo "$ac_t""no" 1>&6
                   4654: fi
                   4655: rm -f conftest*
                   4656: 
                   4657: for ac_hdr in readline/readline.h readline.h
                   4658: do
                   4659: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4660: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.73    ! petere   4661: echo "configure:4662: checking for $ac_hdr" >&5
1.68      tgl      4662: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4663:   echo $ac_n "(cached) $ac_c" 1>&6
                   4664: else
                   4665:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   4666: #line 4667 "configure"
1.68      tgl      4667: #include "confdefs.h"
                   4668: #include <$ac_hdr>
                   4669: EOF
                   4670: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   4671: { (eval echo configure:4672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.68      tgl      4672: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4673: if test -z "$ac_err"; then
                   4674:   rm -rf conftest*
                   4675:   eval "ac_cv_header_$ac_safe=yes"
                   4676: else
                   4677:   echo "$ac_err" >&5
                   4678:   echo "configure: failed program was:" >&5
                   4679:   cat conftest.$ac_ext >&5
                   4680:   rm -rf conftest*
                   4681:   eval "ac_cv_header_$ac_safe=no"
                   4682: fi
                   4683: rm -f conftest*
                   4684: fi
                   4685: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4686:   echo "$ac_t""yes" 1>&6
                   4687:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4688:   cat >> confdefs.h <<EOF
                   4689: #define $ac_tr_hdr 1
                   4690: EOF
1.29      petere   4691:  break
1.1       petere   4692: else
                   4693:   echo "$ac_t""no" 1>&6
                   4694: fi
                   4695: done
                   4696: 
1.29      petere   4697: for ac_hdr in readline/history.h history.h
1.1       petere   4698: do
                   4699: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4700: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.73    ! petere   4701: echo "configure:4702: checking for $ac_hdr" >&5
1.1       petere   4702: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4703:   echo $ac_n "(cached) $ac_c" 1>&6
                   4704: else
                   4705:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   4706: #line 4707 "configure"
1.1       petere   4707: #include "confdefs.h"
                   4708: #include <$ac_hdr>
                   4709: EOF
                   4710: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   4711: { (eval echo configure:4712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4712: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4713: if test -z "$ac_err"; then
                   4714:   rm -rf conftest*
                   4715:   eval "ac_cv_header_$ac_safe=yes"
                   4716: else
                   4717:   echo "$ac_err" >&5
                   4718:   echo "configure: failed program was:" >&5
                   4719:   cat conftest.$ac_ext >&5
                   4720:   rm -rf conftest*
                   4721:   eval "ac_cv_header_$ac_safe=no"
                   4722: fi
                   4723: rm -f conftest*
                   4724: fi
                   4725: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4726:   echo "$ac_t""yes" 1>&6
                   4727:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4728:   cat >> confdefs.h <<EOF
                   4729: #define $ac_tr_hdr 1
                   4730: EOF
1.29      petere   4731:  break
1.1       petere   4732: else
                   4733:   echo "$ac_t""no" 1>&6
                   4734: fi
                   4735: done
                   4736: 
1.29      petere   4737: 
                   4738: if test "$with_krb4" = yes ; then
                   4739:   ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
                   4740: echo $ac_n "checking for krb.h""... $ac_c" 1>&6
1.73    ! petere   4741: echo "configure:4742: checking for krb.h" >&5
1.1       petere   4742: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4743:   echo $ac_n "(cached) $ac_c" 1>&6
                   4744: else
                   4745:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   4746: #line 4747 "configure"
1.1       petere   4747: #include "confdefs.h"
1.29      petere   4748: #include <krb.h>
1.1       petere   4749: EOF
                   4750: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   4751: { (eval echo configure:4752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4752: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4753: if test -z "$ac_err"; then
                   4754:   rm -rf conftest*
                   4755:   eval "ac_cv_header_$ac_safe=yes"
                   4756: else
                   4757:   echo "$ac_err" >&5
                   4758:   echo "configure: failed program was:" >&5
                   4759:   cat conftest.$ac_ext >&5
                   4760:   rm -rf conftest*
                   4761:   eval "ac_cv_header_$ac_safe=no"
                   4762: fi
                   4763: rm -f conftest*
                   4764: fi
                   4765: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4766:   echo "$ac_t""yes" 1>&6
1.29      petere   4767:   :
1.1       petere   4768: else
                   4769:   echo "$ac_t""no" 1>&6
1.29      petere   4770: { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
                   4771: fi
                   4772: 
1.1       petere   4773: fi
                   4774: 
1.29      petere   4775: if test "$with_krb5" = yes ; then
                   4776:   ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
                   4777: echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
1.73    ! petere   4778: echo "configure:4779: checking for krb5.h" >&5
1.1       petere   4779: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4780:   echo $ac_n "(cached) $ac_c" 1>&6
                   4781: else
                   4782:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   4783: #line 4784 "configure"
1.1       petere   4784: #include "confdefs.h"
1.29      petere   4785: #include <krb5.h>
1.1       petere   4786: EOF
                   4787: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   4788: { (eval echo configure:4789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4789: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4790: if test -z "$ac_err"; then
                   4791:   rm -rf conftest*
                   4792:   eval "ac_cv_header_$ac_safe=yes"
                   4793: else
                   4794:   echo "$ac_err" >&5
                   4795:   echo "configure: failed program was:" >&5
                   4796:   cat conftest.$ac_ext >&5
                   4797:   rm -rf conftest*
                   4798:   eval "ac_cv_header_$ac_safe=no"
                   4799: fi
                   4800: rm -f conftest*
                   4801: fi
                   4802: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4803:   echo "$ac_t""yes" 1>&6
1.29      petere   4804:   :
1.1       petere   4805: else
                   4806:   echo "$ac_t""no" 1>&6
1.29      petere   4807: { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
1.1       petere   4808: fi
                   4809: 
1.29      petere   4810:   ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
                   4811: echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
1.73    ! petere   4812: echo "configure:4813: checking for com_err.h" >&5
1.1       petere   4813: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4814:   echo $ac_n "(cached) $ac_c" 1>&6
                   4815: else
                   4816:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   4817: #line 4818 "configure"
1.1       petere   4818: #include "confdefs.h"
1.29      petere   4819: #include <com_err.h>
1.1       petere   4820: EOF
                   4821: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   4822: { (eval echo configure:4823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4823: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4824: if test -z "$ac_err"; then
                   4825:   rm -rf conftest*
                   4826:   eval "ac_cv_header_$ac_safe=yes"
                   4827: else
                   4828:   echo "$ac_err" >&5
                   4829:   echo "configure: failed program was:" >&5
                   4830:   cat conftest.$ac_ext >&5
                   4831:   rm -rf conftest*
                   4832:   eval "ac_cv_header_$ac_safe=no"
                   4833: fi
                   4834: rm -f conftest*
                   4835: fi
                   4836: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4837:   echo "$ac_t""yes" 1>&6
1.29      petere   4838:   :
1.1       petere   4839: else
                   4840:   echo "$ac_t""no" 1>&6
1.29      petere   4841: { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
                   4842: fi
                   4843: 
1.1       petere   4844: fi
                   4845: 
1.29      petere   4846: if test "$with_openssl" = yes ; then
                   4847:   ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
                   4848: echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
1.73    ! petere   4849: echo "configure:4850: checking for openssl/ssl.h" >&5
1.1       petere   4850: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4851:   echo $ac_n "(cached) $ac_c" 1>&6
                   4852: else
                   4853:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   4854: #line 4855 "configure"
1.1       petere   4855: #include "confdefs.h"
1.29      petere   4856: #include <openssl/ssl.h>
1.1       petere   4857: EOF
                   4858: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   4859: { (eval echo configure:4860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4860: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4861: if test -z "$ac_err"; then
                   4862:   rm -rf conftest*
                   4863:   eval "ac_cv_header_$ac_safe=yes"
                   4864: else
                   4865:   echo "$ac_err" >&5
                   4866:   echo "configure: failed program was:" >&5
                   4867:   cat conftest.$ac_ext >&5
                   4868:   rm -rf conftest*
                   4869:   eval "ac_cv_header_$ac_safe=no"
                   4870: fi
                   4871: rm -f conftest*
                   4872: fi
                   4873: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4874:   echo "$ac_t""yes" 1>&6
1.29      petere   4875:   :
1.1       petere   4876: else
                   4877:   echo "$ac_t""no" 1>&6
1.29      petere   4878: { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
1.1       petere   4879: fi
                   4880: 
1.29      petere   4881:   ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
                   4882: echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
1.73    ! petere   4883: echo "configure:4884: checking for openssl/err.h" >&5
1.1       petere   4884: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4885:   echo $ac_n "(cached) $ac_c" 1>&6
                   4886: else
                   4887:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   4888: #line 4889 "configure"
1.1       petere   4889: #include "confdefs.h"
1.29      petere   4890: #include <openssl/err.h>
1.1       petere   4891: EOF
                   4892: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.73    ! petere   4893: { (eval echo configure:4894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4894: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4895: if test -z "$ac_err"; then
                   4896:   rm -rf conftest*
                   4897:   eval "ac_cv_header_$ac_safe=yes"
                   4898: else
                   4899:   echo "$ac_err" >&5
                   4900:   echo "configure: failed program was:" >&5
                   4901:   cat conftest.$ac_ext >&5
                   4902:   rm -rf conftest*
                   4903:   eval "ac_cv_header_$ac_safe=no"
                   4904: fi
                   4905: rm -f conftest*
                   4906: fi
                   4907: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4908:   echo "$ac_t""yes" 1>&6
1.29      petere   4909:   :
1.1       petere   4910: else
                   4911:   echo "$ac_t""no" 1>&6
1.29      petere   4912: { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
                   4913: fi
                   4914: 
1.1       petere   4915: fi
                   4916: 
1.29      petere   4917: 
                   4918: ##
                   4919: ## Types, structures, compiler characteristics
                   4920: ##
                   4921: echo $ac_n "checking for working const""... $ac_c" 1>&6
1.73    ! petere   4922: echo "configure:4923: checking for working const" >&5
1.29      petere   4923: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1.1       petere   4924:   echo $ac_n "(cached) $ac_c" 1>&6
                   4925: else
                   4926:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   4927: #line 4928 "configure"
1.1       petere   4928: #include "confdefs.h"
1.29      petere   4929: 
1.1       petere   4930: int main() {
                   4931: 
1.29      petere   4932: /* Ultrix mips cc rejects this.  */
                   4933: typedef int charset[2]; const charset x;
                   4934: /* SunOS 4.1.1 cc rejects this.  */
                   4935: char const *const *ccp;
                   4936: char **p;
                   4937: /* NEC SVR4.0.2 mips cc rejects this.  */
                   4938: struct point {int x, y;};
                   4939: static struct point const zero = {0,0};
                   4940: /* AIX XL C 1.02.0.0 rejects this.
                   4941:    It does not let you subtract one const X* pointer from another in an arm
                   4942:    of an if-expression whose if-part is not a constant expression */
                   4943: const char *g = "string";
                   4944: ccp = &g + (g ? g-g : 0);
                   4945: /* HPUX 7.0 cc rejects these. */
                   4946: ++ccp;
                   4947: p = (char**) ccp;
                   4948: ccp = (char const *const *) p;
                   4949: { /* SCO 3.2v4 cc rejects this.  */
                   4950:   char *t;
                   4951:   char const *s = 0 ? (char *) 0 : (char const *) 0;
1.1       petere   4952: 
1.29      petere   4953:   *t++ = 0;
                   4954: }
                   4955: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   4956:   int x[] = {25, 17};
                   4957:   const int *foo = &x[0];
                   4958:   ++foo;
                   4959: }
                   4960: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   4961:   typedef const int *iptr;
                   4962:   iptr p = 0;
                   4963:   ++p;
                   4964: }
                   4965: { /* AIX XL C 1.02.0.0 rejects this saying
                   4966:      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   4967:   struct s { int j; const int *ap[3]; };
                   4968:   struct s *b; b->j = 5;
                   4969: }
                   4970: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   4971:   const int foo = 10;
                   4972: }
1.1       petere   4973: 
                   4974: ; return 0; }
                   4975: EOF
1.73    ! petere   4976: if { (eval echo configure:4977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   4977:   rm -rf conftest*
1.29      petere   4978:   ac_cv_c_const=yes
1.1       petere   4979: else
                   4980:   echo "configure: failed program was:" >&5
                   4981:   cat conftest.$ac_ext >&5
                   4982:   rm -rf conftest*
1.29      petere   4983:   ac_cv_c_const=no
1.1       petere   4984: fi
                   4985: rm -f conftest*
                   4986: fi
                   4987: 
1.29      petere   4988: echo "$ac_t""$ac_cv_c_const" 1>&6
                   4989: if test $ac_cv_c_const = no; then
1.1       petere   4990:   cat >> confdefs.h <<\EOF
1.29      petere   4991: #define const 
1.1       petere   4992: EOF
                   4993: 
                   4994: fi
                   4995: 
1.29      petere   4996: echo $ac_n "checking for inline""... $ac_c" 1>&6
1.73    ! petere   4997: echo "configure:4998: checking for inline" >&5
1.29      petere   4998: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1.1       petere   4999:   echo $ac_n "(cached) $ac_c" 1>&6
                   5000: else
1.29      petere   5001:   ac_cv_c_inline=no
                   5002: for ac_kw in inline __inline__ __inline; do
1.1       petere   5003:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5004: #line 5005 "configure"
1.1       petere   5005: #include "confdefs.h"
                   5006: 
                   5007: int main() {
1.29      petere   5008: } $ac_kw foo() {
1.1       petere   5009: ; return 0; }
                   5010: EOF
1.73    ! petere   5011: if { (eval echo configure:5012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   5012:   rm -rf conftest*
1.29      petere   5013:   ac_cv_c_inline=$ac_kw; break
1.1       petere   5014: else
                   5015:   echo "configure: failed program was:" >&5
                   5016:   cat conftest.$ac_ext >&5
                   5017: fi
                   5018: rm -f conftest*
1.29      petere   5019: done
1.1       petere   5020: 
                   5021: fi
                   5022: 
1.29      petere   5023: echo "$ac_t""$ac_cv_c_inline" 1>&6
                   5024: case "$ac_cv_c_inline" in
                   5025:   inline | yes) ;;
                   5026:   no) cat >> confdefs.h <<\EOF
                   5027: #define inline 
1.1       petere   5028: EOF
1.29      petere   5029:  ;;
                   5030:   *)  cat >> confdefs.h <<EOF
                   5031: #define inline $ac_cv_c_inline
1.1       petere   5032: EOF
1.29      petere   5033:  ;;
                   5034: esac
1.5       petere   5035: 
                   5036: 
                   5037: 
1.29      petere   5038: echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
1.73    ! petere   5039: echo "configure:5040: checking for preprocessor stringizing operator" >&5
1.29      petere   5040: if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
1.5       petere   5041:   echo $ac_n "(cached) $ac_c" 1>&6
                   5042: else
1.29      petere   5043:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5044: #line 5045 "configure"
1.1       petere   5045: #include "confdefs.h"
                   5046: 
1.29      petere   5047: #define x(y) #y
1.5       petere   5048: 
1.29      petere   5049: char *s = x(teststring);
1.5       petere   5050: 
                   5051: EOF
1.29      petere   5052: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5053:   egrep "#teststring" >/dev/null 2>&1; then
                   5054:   rm -rf conftest*
                   5055:   ac_cv_c_stringize=no
                   5056: else
                   5057:   rm -rf conftest*
                   5058:   ac_cv_c_stringize=yes
                   5059: fi
                   5060: rm -f conftest*
1.5       petere   5061: 
1.29      petere   5062: fi
1.5       petere   5063: 
1.29      petere   5064: if test "${ac_cv_c_stringize}" = yes
                   5065: then
                   5066:         cat >> confdefs.h <<\EOF
                   5067: #define HAVE_STRINGIZE 1
                   5068: EOF
1.5       petere   5069: 
1.29      petere   5070: fi
                   5071: echo "$ac_t""${ac_cv_c_stringize}" 1>&6
1.1       petere   5072: 
1.41      petere   5073: echo $ac_n "checking for signed types""... $ac_c" 1>&6
1.73    ! petere   5074: echo "configure:5075: checking for signed types" >&5
1.41      petere   5075: if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
                   5076:   echo $ac_n "(cached) $ac_c" 1>&6
                   5077: else
                   5078:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5079: #line 5080 "configure"
1.41      petere   5080: #include "confdefs.h"
                   5081: 
                   5082: int main() {
                   5083: signed char c; signed short s; signed int i;
                   5084: ; return 0; }
                   5085: EOF
1.73    ! petere   5086: if { (eval echo configure:5087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.41      petere   5087:   rm -rf conftest*
                   5088:   pgac_cv_c_signed=yes
                   5089: else
                   5090:   echo "configure: failed program was:" >&5
                   5091:   cat conftest.$ac_ext >&5
                   5092:   rm -rf conftest*
                   5093:   pgac_cv_c_signed=no
                   5094: fi
                   5095: rm -f conftest*
                   5096: fi
                   5097: 
                   5098: echo "$ac_t""$pgac_cv_c_signed" 1>&6
                   5099: if test x"$pgac_cv_c_signed" = xno ; then
                   5100:   cat >> confdefs.h <<\EOF
                   5101: #define signed 
                   5102: EOF
                   5103: 
                   5104: fi
                   5105: echo $ac_n "checking for volatile""... $ac_c" 1>&6
1.73    ! petere   5106: echo "configure:5107: checking for volatile" >&5
1.41      petere   5107: if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
                   5108:   echo $ac_n "(cached) $ac_c" 1>&6
                   5109: else
                   5110:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5111: #line 5112 "configure"
1.41      petere   5112: #include "confdefs.h"
                   5113: 
                   5114: int main() {
                   5115: extern volatile int i;
                   5116: ; return 0; }
                   5117: EOF
1.73    ! petere   5118: if { (eval echo configure:5119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.41      petere   5119:   rm -rf conftest*
                   5120:   pgac_cv_c_volatile=yes
                   5121: else
                   5122:   echo "configure: failed program was:" >&5
                   5123:   cat conftest.$ac_ext >&5
                   5124:   rm -rf conftest*
                   5125:   pgac_cv_c_volatile=no
                   5126: fi
                   5127: rm -f conftest*
                   5128: fi
                   5129: 
                   5130: echo "$ac_t""$pgac_cv_c_volatile" 1>&6
                   5131: if test x"$pgac_cv_c_volatile" = xno ; then
                   5132:   cat >> confdefs.h <<\EOF
                   5133: #define volatile 
                   5134: EOF
                   5135: 
                   5136: fi
1.29      petere   5137: echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1.73    ! petere   5138: echo "configure:5139: checking whether struct tm is in sys/time.h or time.h" >&5
1.29      petere   5139: if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1.5       petere   5140:   echo $ac_n "(cached) $ac_c" 1>&6
                   5141: else
                   5142:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5143: #line 5144 "configure"
1.1       petere   5144: #include "confdefs.h"
                   5145: #include <sys/types.h>
1.29      petere   5146: #include <time.h>
1.1       petere   5147: int main() {
1.29      petere   5148: struct tm *tp; tp->tm_sec;
1.1       petere   5149: ; return 0; }
                   5150: EOF
1.73    ! petere   5151: if { (eval echo configure:5152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   5152:   rm -rf conftest*
1.29      petere   5153:   ac_cv_struct_tm=time.h
1.1       petere   5154: else
                   5155:   echo "configure: failed program was:" >&5
                   5156:   cat conftest.$ac_ext >&5
                   5157:   rm -rf conftest*
1.29      petere   5158:   ac_cv_struct_tm=sys/time.h
1.1       petere   5159: fi
                   5160: rm -f conftest*
1.5       petere   5161: fi
                   5162: 
1.29      petere   5163: echo "$ac_t""$ac_cv_struct_tm" 1>&6
                   5164: if test $ac_cv_struct_tm = sys/time.h; then
1.5       petere   5165:   cat >> confdefs.h <<\EOF
1.29      petere   5166: #define TM_IN_SYS_TIME 1
1.5       petere   5167: EOF
                   5168: 
                   5169: fi
                   5170: 
1.29      petere   5171: echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
1.73    ! petere   5172: echo "configure:5173: checking for tm_zone in struct tm" >&5
1.29      petere   5173: if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
                   5174:   echo $ac_n "(cached) $ac_c" 1>&6
                   5175: else
                   5176:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5177: #line 5178 "configure"
1.1       petere   5178: #include "confdefs.h"
1.29      petere   5179: #include <sys/types.h>
                   5180: #include <$ac_cv_struct_tm>
1.1       petere   5181: int main() {
1.29      petere   5182: struct tm tm; tm.tm_zone;
1.1       petere   5183: ; return 0; }
                   5184: EOF
1.73    ! petere   5185: if { (eval echo configure:5186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   5186:   rm -rf conftest*
1.29      petere   5187:   ac_cv_struct_tm_zone=yes
1.1       petere   5188: else
                   5189:   echo "configure: failed program was:" >&5
                   5190:   cat conftest.$ac_ext >&5
                   5191:   rm -rf conftest*
1.29      petere   5192:   ac_cv_struct_tm_zone=no
1.1       petere   5193: fi
                   5194: rm -f conftest*
1.28      petere   5195: fi
1.1       petere   5196: 
1.29      petere   5197: echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
                   5198: if test "$ac_cv_struct_tm_zone" = yes; then
                   5199:   cat >> confdefs.h <<\EOF
                   5200: #define HAVE_TM_ZONE 1
                   5201: EOF
                   5202: 
                   5203: else
                   5204:   echo $ac_n "checking for tzname""... $ac_c" 1>&6
1.73    ! petere   5205: echo "configure:5206: checking for tzname" >&5
1.29      petere   5206: if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
1.1       petere   5207:   echo $ac_n "(cached) $ac_c" 1>&6
                   5208: else
                   5209:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5210: #line 5211 "configure"
1.1       petere   5211: #include "confdefs.h"
1.29      petere   5212: #include <time.h>
                   5213: #ifndef tzname /* For SGI.  */
                   5214: extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
                   5215: #endif
                   5216: int main() {
                   5217: atoi(*tzname);
                   5218: ; return 0; }
1.1       petere   5219: EOF
1.73    ! petere   5220: if { (eval echo configure:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.29      petere   5221:   rm -rf conftest*
                   5222:   ac_cv_var_tzname=yes
1.1       petere   5223: else
                   5224:   echo "configure: failed program was:" >&5
                   5225:   cat conftest.$ac_ext >&5
1.29      petere   5226:   rm -rf conftest*
                   5227:   ac_cv_var_tzname=no
1.1       petere   5228: fi
1.29      petere   5229: rm -f conftest*
1.1       petere   5230: fi
                   5231: 
1.29      petere   5232: echo "$ac_t""$ac_cv_var_tzname" 1>&6
                   5233:   if test $ac_cv_var_tzname = yes; then
                   5234:     cat >> confdefs.h <<\EOF
                   5235: #define HAVE_TZNAME 1
                   5236: EOF
                   5237: 
                   5238:   fi
1.1       petere   5239: fi
                   5240: 
1.29      petere   5241: echo $ac_n "checking for union semun""... $ac_c" 1>&6
1.73    ! petere   5242: echo "configure:5243: checking for union semun" >&5
1.29      petere   5243: if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
1.1       petere   5244:   echo $ac_n "(cached) $ac_c" 1>&6
                   5245: else
                   5246:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5247: #line 5248 "configure"
1.1       petere   5248: #include "confdefs.h"
                   5249: #include <sys/types.h>
1.29      petere   5250: #include <sys/ipc.h>
                   5251: #include <sys/sem.h>
1.1       petere   5252: int main() {
1.29      petere   5253: union semun semun;
1.1       petere   5254: ; return 0; }
                   5255: EOF
1.73    ! petere   5256: if { (eval echo configure:5257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   5257:   rm -rf conftest*
1.29      petere   5258:   pgac_cv_union_semun=yes
1.1       petere   5259: else
                   5260:   echo "configure: failed program was:" >&5
                   5261:   cat conftest.$ac_ext >&5
                   5262:   rm -rf conftest*
1.29      petere   5263:   pgac_cv_union_semun=no
1.1       petere   5264: fi
                   5265: rm -f conftest*
                   5266: fi
                   5267: 
1.29      petere   5268: echo "$ac_t""$pgac_cv_union_semun" 1>&6
                   5269: if test x"$pgac_cv_union_semun" = xyes ; then
                   5270:   cat >> confdefs.h <<\EOF
1.45      petere   5271: #define HAVE_UNION_SEMUN 1
1.1       petere   5272: EOF
                   5273: 
1.29      petere   5274: fi
1.45      petere   5275: echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
1.73    ! petere   5276: echo "configure:5277: checking for struct sockaddr_un" >&5
1.45      petere   5277: if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
                   5278:   echo $ac_n "(cached) $ac_c" 1>&6
                   5279: else
                   5280:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5281: #line 5282 "configure"
1.45      petere   5282: #include "confdefs.h"
1.49      momjian  5283: #include <sys/types.h>
1.45      petere   5284: #ifdef HAVE_SYS_UN_H
                   5285: #include <sys/un.h>
                   5286: #endif
                   5287: int main() {
                   5288: struct sockaddr_un un;
                   5289: ; return 0; }
                   5290: EOF
1.73    ! petere   5291: if { (eval echo configure:5292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.45      petere   5292:   rm -rf conftest*
                   5293:   pgac_cv_struct_sockaddr_un=yes
                   5294: else
                   5295:   echo "configure: failed program was:" >&5
                   5296:   cat conftest.$ac_ext >&5
                   5297:   rm -rf conftest*
                   5298:   pgac_cv_struct_sockaddr_un=no
                   5299: fi
                   5300: rm -f conftest*
                   5301: fi
                   5302: 
                   5303: echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
                   5304: if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
                   5305:   cat >> confdefs.h <<\EOF
                   5306: #define HAVE_STRUCT_SOCKADDR_UN 1
                   5307: EOF
1.29      petere   5308: 
1.45      petere   5309: fi
1.1       petere   5310: 
1.29      petere   5311: ##
                   5312: ## Functions, global variables
                   5313: ##
                   5314: echo $ac_n "checking for int timezone""... $ac_c" 1>&6
1.73    ! petere   5315: echo "configure:5316: checking for int timezone" >&5
1.29      petere   5316: if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
1.1       petere   5317:   echo $ac_n "(cached) $ac_c" 1>&6
                   5318: else
                   5319:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5320: #line 5321 "configure"
1.1       petere   5321: #include "confdefs.h"
1.29      petere   5322: #include <time.h>
1.1       petere   5323: int main() {
1.29      petere   5324: int res = timezone / 60;
1.1       petere   5325: ; return 0; }
                   5326: EOF
1.73    ! petere   5327: if { (eval echo configure:5328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5328:   rm -rf conftest*
1.29      petere   5329:   pgac_cv_var_int_timezone=yes
1.1       petere   5330: else
                   5331:   echo "configure: failed program was:" >&5
                   5332:   cat conftest.$ac_ext >&5
                   5333:   rm -rf conftest*
1.29      petere   5334:   pgac_cv_var_int_timezone=no
1.1       petere   5335: fi
                   5336: rm -f conftest*
                   5337: fi
                   5338: 
1.29      petere   5339: echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
                   5340: if test x"$pgac_cv_var_int_timezone" = xyes ; then
1.1       petere   5341:   cat >> confdefs.h <<\EOF
1.29      petere   5342: #define HAVE_INT_TIMEZONE 
1.1       petere   5343: EOF
                   5344: 
1.29      petere   5345: fi
                   5346: echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
1.73    ! petere   5347: echo "configure:5348: checking types of arguments for accept()" >&5
1.29      petere   5348:  if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
                   5349:   echo $ac_n "(cached) $ac_c" 1>&6
                   5350: else
                   5351:    if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
                   5352:   echo $ac_n "(cached) $ac_c" 1>&6
1.1       petere   5353: else
1.29      petere   5354:     if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
1.1       petere   5355:   echo $ac_n "(cached) $ac_c" 1>&6
                   5356: else
1.29      petere   5357:      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
1.38      petere   5358:      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
                   5359:       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int'; do
1.29      petere   5360:        cat > conftest.$ac_ext <<EOF
1.73    ! petere   5361: #line 5362 "configure"
1.1       petere   5362: #include "confdefs.h"
1.29      petere   5363: #ifdef HAVE_SYS_TYPES_H
                   5364: #include <sys/types.h>
                   5365: #endif
                   5366: #ifdef HAVE_SYS_SOCKET_H
                   5367: #include <sys/socket.h>
                   5368: #endif
                   5369: extern accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
1.1       petere   5370: int main() {
                   5371: 
                   5372: ; return 0; }
                   5373: EOF
1.73    ! petere   5374: if { (eval echo configure:5375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   5375:   rm -rf conftest*
1.38      petere   5376:   ac_not_found=no; break 3
1.1       petere   5377: else
                   5378:   echo "configure: failed program was:" >&5
                   5379:   cat conftest.$ac_ext >&5
                   5380:   rm -rf conftest*
1.29      petere   5381:   ac_not_found=yes
1.1       petere   5382: fi
                   5383: rm -f conftest*
1.29      petere   5384:       done
                   5385:      done
                   5386:     done
1.38      petere   5387:     if test "$ac_not_found" = yes; then
                   5388:       { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
                   5389:     fi
1.29      petere   5390:    
                   5391: fi
                   5392:   
                   5393: fi
                   5394:  
1.1       petere   5395: fi
1.29      petere   5396:  echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
                   5397:  cat >> confdefs.h <<EOF
                   5398: #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
                   5399: EOF
1.1       petere   5400: 
1.29      petere   5401:  cat >> confdefs.h <<EOF
                   5402: #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
1.1       petere   5403: EOF
                   5404: 
1.29      petere   5405:  cat >> confdefs.h <<EOF
                   5406: #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
                   5407: EOF
1.1       petere   5408: 
                   5409: 
1.29      petere   5410: echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
1.73    ! petere   5411: echo "configure:5412: checking whether gettimeofday takes only one argument" >&5
1.29      petere   5412: if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
1.1       petere   5413:   echo $ac_n "(cached) $ac_c" 1>&6
                   5414: else
                   5415:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5416: #line 5417 "configure"
1.1       petere   5417: #include "confdefs.h"
1.29      petere   5418: #include <sys/time.h>
1.1       petere   5419: int main() {
1.29      petere   5420: struct timeval *tp;
                   5421: struct timezone *tzp;
                   5422: gettimeofday(tp,tzp);
1.1       petere   5423: ; return 0; }
                   5424: EOF
1.73    ! petere   5425: if { (eval echo configure:5426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   5426:   rm -rf conftest*
1.29      petere   5427:   pgac_cv_func_gettimeofday_1arg=no
1.1       petere   5428: else
                   5429:   echo "configure: failed program was:" >&5
                   5430:   cat conftest.$ac_ext >&5
                   5431:   rm -rf conftest*
1.29      petere   5432:   pgac_cv_func_gettimeofday_1arg=yes
1.1       petere   5433: fi
                   5434: rm -f conftest*
                   5435: fi
                   5436: 
1.29      petere   5437: echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
                   5438: if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
                   5439:   cat >> confdefs.h <<\EOF
                   5440: #define GETTIMEOFDAY_1ARG 
1.1       petere   5441: EOF
1.29      petere   5442: 
1.1       petere   5443: fi
                   5444: 
1.29      petere   5445: echo $ac_n "checking for fcntl(F_SETLK)""... $ac_c" 1>&6
1.73    ! petere   5446: echo "configure:5447: checking for fcntl(F_SETLK)" >&5
1.30      petere   5447: case $host_os in
                   5448:   linux*)       echo "$ac_t""broken on Linux" 1>&6 ;;
                   5449:   *)
1.29      petere   5450: cat > conftest.$ac_ext <<EOF
1.73    ! petere   5451: #line 5452 "configure"
1.1       petere   5452: #include "confdefs.h"
1.29      petere   5453: #include <stdio.h>
                   5454: #include <fcntl.h>
1.30      petere   5455: 
1.1       petere   5456: int main() {
1.29      petere   5457: struct flock lck;
1.30      petere   5458: lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
                   5459: lck.l_type = F_WRLCK;
                   5460: fcntl(0, F_SETLK, &lck);
1.1       petere   5461: ; return 0; }
                   5462: EOF
1.73    ! petere   5463: if { (eval echo configure:5464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5464:   rm -rf conftest*
1.29      petere   5465:   cat >> confdefs.h <<\EOF
                   5466: #define HAVE_FCNTL_SETLK 1
                   5467: EOF
                   5468:  echo "$ac_t""yes" 1>&6
1.1       petere   5469: else
                   5470:   echo "configure: failed program was:" >&5
                   5471:   cat conftest.$ac_ext >&5
                   5472:   rm -rf conftest*
1.29      petere   5473:   echo "$ac_t""no" 1>&6
1.1       petere   5474: fi
                   5475: rm -f conftest*
1.30      petere   5476:         ;;
                   5477: esac
1.1       petere   5478: 
1.47      momjian  5479: for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen
1.1       petere   5480: do
                   5481: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.73    ! petere   5482: echo "configure:5483: checking for $ac_func" >&5
1.1       petere   5483: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5484:   echo $ac_n "(cached) $ac_c" 1>&6
                   5485: else
                   5486:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5487: #line 5488 "configure"
1.1       petere   5488: #include "confdefs.h"
                   5489: /* System header to define __stub macros and hopefully few prototypes,
                   5490:     which can conflict with char $ac_func(); below.  */
                   5491: #include <assert.h>
                   5492: /* Override any gcc2 internal prototype to avoid an error.  */
                   5493: /* We use char because int might match the return type of a gcc2
                   5494:     builtin and then its argument prototype would still apply.  */
                   5495: char $ac_func();
                   5496: 
                   5497: int main() {
                   5498: 
                   5499: /* The GNU C library defines this for functions which it implements
                   5500:     to always fail with ENOSYS.  Some functions are actually named
                   5501:     something starting with __ and the normal name is an alias.  */
                   5502: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5503: choke me
                   5504: #else
                   5505: $ac_func();
                   5506: #endif
                   5507: 
                   5508: ; return 0; }
                   5509: EOF
1.73    ! petere   5510: if { (eval echo configure:5511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5511:   rm -rf conftest*
                   5512:   eval "ac_cv_func_$ac_func=yes"
                   5513: else
                   5514:   echo "configure: failed program was:" >&5
                   5515:   cat conftest.$ac_ext >&5
                   5516:   rm -rf conftest*
                   5517:   eval "ac_cv_func_$ac_func=no"
                   5518: fi
                   5519: rm -f conftest*
                   5520: fi
                   5521: 
                   5522: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5523:   echo "$ac_t""yes" 1>&6
                   5524:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5525:   cat >> confdefs.h <<EOF
                   5526: #define $ac_tr_func 1
                   5527: EOF
                   5528:  
                   5529: else
                   5530:   echo "$ac_t""no" 1>&6
                   5531: fi
                   5532: done
                   5533: 
                   5534: 
                   5535: echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
1.73    ! petere   5536: echo "configure:5537: checking for PS_STRINGS" >&5
1.28      petere   5537: if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
                   5538:   echo $ac_n "(cached) $ac_c" 1>&6
                   5539: else
                   5540:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5541: #line 5542 "configure"
1.1       petere   5542: #include "confdefs.h"
1.28      petere   5543: #include <machine/vmparam.h>
                   5544: #include <sys/exec.h>
                   5545: 
1.1       petere   5546: int main() {
                   5547: PS_STRINGS->ps_nargvstr = 1;
                   5548: PS_STRINGS->ps_argvstr = "foo";
                   5549: ; return 0; }
                   5550: EOF
1.73    ! petere   5551: if { (eval echo configure:5552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5552:   rm -rf conftest*
1.28      petere   5553:   pgac_cv_var_PS_STRINGS=yes
1.1       petere   5554: else
                   5555:   echo "configure: failed program was:" >&5
                   5556:   cat conftest.$ac_ext >&5
                   5557:   rm -rf conftest*
1.28      petere   5558:   pgac_cv_var_PS_STRINGS=no
1.1       petere   5559: fi
                   5560: rm -f conftest*
1.28      petere   5561: fi
                   5562: 
                   5563: echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
                   5564: if test "$pgac_cv_var_PS_STRINGS" = yes ; then
                   5565:   cat >> confdefs.h <<\EOF
                   5566: #define HAVE_PS_STRINGS 
                   5567: EOF
                   5568: 
                   5569: fi
1.1       petere   5570: 
                   5571: SNPRINTF=''
                   5572: echo $ac_n "checking for snprintf""... $ac_c" 1>&6
1.73    ! petere   5573: echo "configure:5574: checking for snprintf" >&5
1.1       petere   5574: if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
                   5575:   echo $ac_n "(cached) $ac_c" 1>&6
                   5576: else
                   5577:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5578: #line 5579 "configure"
1.1       petere   5579: #include "confdefs.h"
                   5580: /* System header to define __stub macros and hopefully few prototypes,
                   5581:     which can conflict with char snprintf(); below.  */
                   5582: #include <assert.h>
                   5583: /* Override any gcc2 internal prototype to avoid an error.  */
                   5584: /* We use char because int might match the return type of a gcc2
                   5585:     builtin and then its argument prototype would still apply.  */
                   5586: char snprintf();
                   5587: 
                   5588: int main() {
                   5589: 
                   5590: /* The GNU C library defines this for functions which it implements
                   5591:     to always fail with ENOSYS.  Some functions are actually named
                   5592:     something starting with __ and the normal name is an alias.  */
                   5593: #if defined (__stub_snprintf) || defined (__stub___snprintf)
                   5594: choke me
                   5595: #else
                   5596: snprintf();
                   5597: #endif
                   5598: 
                   5599: ; return 0; }
                   5600: EOF
1.73    ! petere   5601: if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5602:   rm -rf conftest*
                   5603:   eval "ac_cv_func_snprintf=yes"
                   5604: else
                   5605:   echo "configure: failed program was:" >&5
                   5606:   cat conftest.$ac_ext >&5
                   5607:   rm -rf conftest*
                   5608:   eval "ac_cv_func_snprintf=no"
                   5609: fi
                   5610: rm -f conftest*
                   5611: fi
                   5612: 
                   5613: if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
                   5614:   echo "$ac_t""yes" 1>&6
                   5615:   cat >> confdefs.h <<\EOF
                   5616: #define HAVE_SNPRINTF 1
                   5617: EOF
                   5618: 
                   5619: else
                   5620:   echo "$ac_t""no" 1>&6
                   5621: SNPRINTF='snprintf.o'
                   5622: fi
                   5623: 
                   5624: echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1.73    ! petere   5625: echo "configure:5626: checking for vsnprintf" >&5
1.1       petere   5626: if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
                   5627:   echo $ac_n "(cached) $ac_c" 1>&6
                   5628: else
                   5629:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5630: #line 5631 "configure"
1.1       petere   5631: #include "confdefs.h"
                   5632: /* System header to define __stub macros and hopefully few prototypes,
                   5633:     which can conflict with char vsnprintf(); below.  */
                   5634: #include <assert.h>
                   5635: /* Override any gcc2 internal prototype to avoid an error.  */
                   5636: /* We use char because int might match the return type of a gcc2
                   5637:     builtin and then its argument prototype would still apply.  */
                   5638: char vsnprintf();
                   5639: 
                   5640: int main() {
                   5641: 
                   5642: /* The GNU C library defines this for functions which it implements
                   5643:     to always fail with ENOSYS.  Some functions are actually named
                   5644:     something starting with __ and the normal name is an alias.  */
                   5645: #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
                   5646: choke me
                   5647: #else
                   5648: vsnprintf();
                   5649: #endif
                   5650: 
                   5651: ; return 0; }
                   5652: EOF
1.73    ! petere   5653: if { (eval echo configure:5654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5654:   rm -rf conftest*
                   5655:   eval "ac_cv_func_vsnprintf=yes"
                   5656: else
                   5657:   echo "configure: failed program was:" >&5
                   5658:   cat conftest.$ac_ext >&5
                   5659:   rm -rf conftest*
                   5660:   eval "ac_cv_func_vsnprintf=no"
                   5661: fi
                   5662: rm -f conftest*
                   5663: fi
                   5664: 
                   5665: if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
                   5666:   echo "$ac_t""yes" 1>&6
                   5667:   cat >> confdefs.h <<\EOF
                   5668: #define HAVE_VSNPRINTF 1
                   5669: EOF
                   5670: 
                   5671: else
                   5672:   echo "$ac_t""no" 1>&6
                   5673: SNPRINTF='snprintf.o'
                   5674: fi
                   5675: 
                   5676: 
                   5677: cat > conftest.$ac_ext <<EOF
1.73    ! petere   5678: #line 5679 "configure"
1.1       petere   5679: #include "confdefs.h"
                   5680: #include <stdio.h>
                   5681: EOF
                   5682: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5683:   egrep "snprintf" >/dev/null 2>&1; then
                   5684:   rm -rf conftest*
                   5685:   cat >> confdefs.h <<\EOF
                   5686: #define HAVE_SNPRINTF_DECL 1
                   5687: EOF
                   5688: 
                   5689: fi
                   5690: rm -f conftest*
                   5691: 
                   5692: cat > conftest.$ac_ext <<EOF
1.73    ! petere   5693: #line 5694 "configure"
1.1       petere   5694: #include "confdefs.h"
                   5695: #include <stdio.h>
                   5696: EOF
                   5697: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5698:   egrep "vsnprintf" >/dev/null 2>&1; then
                   5699:   rm -rf conftest*
                   5700:   cat >> confdefs.h <<\EOF
                   5701: #define HAVE_VSNPRINTF_DECL 1
                   5702: EOF
                   5703: 
                   5704: fi
                   5705: rm -f conftest*
                   5706: 
1.29      petere   5707: 
                   5708: # do this one the hard way in case isinf() is a macro
1.1       petere   5709: echo $ac_n "checking for isinf""... $ac_c" 1>&6
1.73    ! petere   5710: echo "configure:5711: checking for isinf" >&5
1.29      petere   5711: if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
1.1       petere   5712:   echo $ac_n "(cached) $ac_c" 1>&6
                   5713: else
                   5714:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5715: #line 5716 "configure"
1.1       petere   5716: #include "confdefs.h"
                   5717: #include <math.h>
1.29      petere   5718: 
1.1       petere   5719: int main() {
                   5720: double x = 0.0; int res = isinf(x);
                   5721: ; return 0; }
                   5722: EOF
1.73    ! petere   5723: if { (eval echo configure:5724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5724:   rm -rf conftest*
1.29      petere   5725:   ac_cv_func_isinf=yes
1.1       petere   5726: else
                   5727:   echo "configure: failed program was:" >&5
                   5728:   cat conftest.$ac_ext >&5
                   5729:   rm -rf conftest*
1.29      petere   5730:   ac_cv_func_isinf=no
1.1       petere   5731: fi
                   5732: rm -f conftest*
                   5733: fi
                   5734: 
1.29      petere   5735: echo "$ac_t""$ac_cv_func_isinf" 1>&6
                   5736: 
                   5737: if test $ac_cv_func_isinf = yes ; then
1.1       petere   5738:   cat >> confdefs.h <<\EOF
                   5739: #define HAVE_ISINF 1
                   5740: EOF
                   5741: 
1.29      petere   5742:   ISINF=
                   5743: else
                   5744:   ISINF='isinf.o'
                   5745:   # Look for a way to implement a substitute for isinf()
                   5746:   for ac_func in fpclass fp_class fp_class_d class
                   5747: do
                   5748: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.73    ! petere   5749: echo "configure:5750: checking for $ac_func" >&5
1.29      petere   5750: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5751:   echo $ac_n "(cached) $ac_c" 1>&6
                   5752: else
                   5753:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5754: #line 5755 "configure"
1.29      petere   5755: #include "confdefs.h"
                   5756: /* System header to define __stub macros and hopefully few prototypes,
                   5757:     which can conflict with char $ac_func(); below.  */
                   5758: #include <assert.h>
                   5759: /* Override any gcc2 internal prototype to avoid an error.  */
                   5760: /* We use char because int might match the return type of a gcc2
                   5761:     builtin and then its argument prototype would still apply.  */
                   5762: char $ac_func();
                   5763: 
                   5764: int main() {
                   5765: 
                   5766: /* The GNU C library defines this for functions which it implements
                   5767:     to always fail with ENOSYS.  Some functions are actually named
                   5768:     something starting with __ and the normal name is an alias.  */
                   5769: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5770: choke me
                   5771: #else
                   5772: $ac_func();
                   5773: #endif
                   5774: 
                   5775: ; return 0; }
                   5776: EOF
1.73    ! petere   5777: if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.29      petere   5778:   rm -rf conftest*
                   5779:   eval "ac_cv_func_$ac_func=yes"
                   5780: else
                   5781:   echo "configure: failed program was:" >&5
                   5782:   cat conftest.$ac_ext >&5
                   5783:   rm -rf conftest*
                   5784:   eval "ac_cv_func_$ac_func=no"
                   5785: fi
                   5786: rm -f conftest*
                   5787: fi
                   5788: 
                   5789: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5790:   echo "$ac_t""yes" 1>&6
                   5791:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5792:   cat >> confdefs.h <<EOF
                   5793: #define $ac_tr_func 1
                   5794: EOF
                   5795:  break
1.1       petere   5796: else
                   5797:   echo "$ac_t""no" 1>&6
1.29      petere   5798: fi
                   5799: done
                   5800: 
1.1       petere   5801: fi
                   5802: 
1.29      petere   5803: 
1.1       petere   5804: echo $ac_n "checking for getrusage""... $ac_c" 1>&6
1.73    ! petere   5805: echo "configure:5806: checking for getrusage" >&5
1.1       petere   5806: if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
                   5807:   echo $ac_n "(cached) $ac_c" 1>&6
                   5808: else
                   5809:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5810: #line 5811 "configure"
1.1       petere   5811: #include "confdefs.h"
                   5812: /* System header to define __stub macros and hopefully few prototypes,
                   5813:     which can conflict with char getrusage(); below.  */
                   5814: #include <assert.h>
                   5815: /* Override any gcc2 internal prototype to avoid an error.  */
                   5816: /* We use char because int might match the return type of a gcc2
                   5817:     builtin and then its argument prototype would still apply.  */
                   5818: char getrusage();
                   5819: 
                   5820: int main() {
                   5821: 
                   5822: /* The GNU C library defines this for functions which it implements
                   5823:     to always fail with ENOSYS.  Some functions are actually named
                   5824:     something starting with __ and the normal name is an alias.  */
                   5825: #if defined (__stub_getrusage) || defined (__stub___getrusage)
                   5826: choke me
                   5827: #else
                   5828: getrusage();
                   5829: #endif
                   5830: 
                   5831: ; return 0; }
                   5832: EOF
1.73    ! petere   5833: if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5834:   rm -rf conftest*
                   5835:   eval "ac_cv_func_getrusage=yes"
                   5836: else
                   5837:   echo "configure: failed program was:" >&5
                   5838:   cat conftest.$ac_ext >&5
                   5839:   rm -rf conftest*
                   5840:   eval "ac_cv_func_getrusage=no"
                   5841: fi
                   5842: rm -f conftest*
                   5843: fi
                   5844: 
                   5845: if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
                   5846:   echo "$ac_t""yes" 1>&6
                   5847:   cat >> confdefs.h <<\EOF
                   5848: #define HAVE_GETRUSAGE 1
                   5849: EOF
                   5850: 
                   5851: else
                   5852:   echo "$ac_t""no" 1>&6
                   5853: GETRUSAGE='getrusage.o'
                   5854: fi
                   5855: 
                   5856: 
                   5857: echo $ac_n "checking for srandom""... $ac_c" 1>&6
1.73    ! petere   5858: echo "configure:5859: checking for srandom" >&5
1.1       petere   5859: if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
                   5860:   echo $ac_n "(cached) $ac_c" 1>&6
                   5861: else
                   5862:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5863: #line 5864 "configure"
1.1       petere   5864: #include "confdefs.h"
                   5865: /* System header to define __stub macros and hopefully few prototypes,
                   5866:     which can conflict with char srandom(); below.  */
                   5867: #include <assert.h>
                   5868: /* Override any gcc2 internal prototype to avoid an error.  */
                   5869: /* We use char because int might match the return type of a gcc2
                   5870:     builtin and then its argument prototype would still apply.  */
                   5871: char srandom();
                   5872: 
                   5873: int main() {
                   5874: 
                   5875: /* The GNU C library defines this for functions which it implements
                   5876:     to always fail with ENOSYS.  Some functions are actually named
                   5877:     something starting with __ and the normal name is an alias.  */
                   5878: #if defined (__stub_srandom) || defined (__stub___srandom)
                   5879: choke me
                   5880: #else
                   5881: srandom();
                   5882: #endif
                   5883: 
                   5884: ; return 0; }
                   5885: EOF
1.73    ! petere   5886: if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5887:   rm -rf conftest*
                   5888:   eval "ac_cv_func_srandom=yes"
                   5889: else
                   5890:   echo "configure: failed program was:" >&5
                   5891:   cat conftest.$ac_ext >&5
                   5892:   rm -rf conftest*
                   5893:   eval "ac_cv_func_srandom=no"
                   5894: fi
                   5895: rm -f conftest*
                   5896: fi
                   5897: 
                   5898: if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
                   5899:   echo "$ac_t""yes" 1>&6
                   5900:   cat >> confdefs.h <<\EOF
                   5901: #define HAVE_SRANDOM 1
                   5902: EOF
                   5903: 
                   5904: else
                   5905:   echo "$ac_t""no" 1>&6
                   5906: SRANDOM='srandom.o'
                   5907: fi
                   5908: 
                   5909: 
                   5910: echo $ac_n "checking for gethostname""... $ac_c" 1>&6
1.73    ! petere   5911: echo "configure:5912: checking for gethostname" >&5
1.1       petere   5912: if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
                   5913:   echo $ac_n "(cached) $ac_c" 1>&6
                   5914: else
                   5915:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5916: #line 5917 "configure"
1.1       petere   5917: #include "confdefs.h"
                   5918: /* System header to define __stub macros and hopefully few prototypes,
                   5919:     which can conflict with char gethostname(); below.  */
                   5920: #include <assert.h>
                   5921: /* Override any gcc2 internal prototype to avoid an error.  */
                   5922: /* We use char because int might match the return type of a gcc2
                   5923:     builtin and then its argument prototype would still apply.  */
                   5924: char gethostname();
                   5925: 
                   5926: int main() {
                   5927: 
                   5928: /* The GNU C library defines this for functions which it implements
                   5929:     to always fail with ENOSYS.  Some functions are actually named
                   5930:     something starting with __ and the normal name is an alias.  */
                   5931: #if defined (__stub_gethostname) || defined (__stub___gethostname)
                   5932: choke me
                   5933: #else
                   5934: gethostname();
                   5935: #endif
                   5936: 
                   5937: ; return 0; }
                   5938: EOF
1.73    ! petere   5939: if { (eval echo configure:5940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5940:   rm -rf conftest*
                   5941:   eval "ac_cv_func_gethostname=yes"
                   5942: else
                   5943:   echo "configure: failed program was:" >&5
                   5944:   cat conftest.$ac_ext >&5
                   5945:   rm -rf conftest*
                   5946:   eval "ac_cv_func_gethostname=no"
                   5947: fi
                   5948: rm -f conftest*
                   5949: fi
                   5950: 
                   5951: if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
                   5952:   echo "$ac_t""yes" 1>&6
                   5953:   cat >> confdefs.h <<\EOF
                   5954: #define HAVE_GETHOSTNAME 1
                   5955: EOF
                   5956: 
                   5957: else
                   5958:   echo "$ac_t""no" 1>&6
                   5959: GETHOSTNAME='gethostname.o'
                   5960: fi
                   5961: 
                   5962: 
                   5963: echo $ac_n "checking for random""... $ac_c" 1>&6
1.73    ! petere   5964: echo "configure:5965: checking for random" >&5
1.1       petere   5965: if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
                   5966:   echo $ac_n "(cached) $ac_c" 1>&6
                   5967: else
                   5968:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   5969: #line 5970 "configure"
1.1       petere   5970: #include "confdefs.h"
                   5971: /* System header to define __stub macros and hopefully few prototypes,
                   5972:     which can conflict with char random(); below.  */
                   5973: #include <assert.h>
                   5974: /* Override any gcc2 internal prototype to avoid an error.  */
                   5975: /* We use char because int might match the return type of a gcc2
                   5976:     builtin and then its argument prototype would still apply.  */
                   5977: char random();
                   5978: 
                   5979: int main() {
                   5980: 
                   5981: /* The GNU C library defines this for functions which it implements
                   5982:     to always fail with ENOSYS.  Some functions are actually named
                   5983:     something starting with __ and the normal name is an alias.  */
                   5984: #if defined (__stub_random) || defined (__stub___random)
                   5985: choke me
                   5986: #else
                   5987: random();
                   5988: #endif
                   5989: 
                   5990: ; return 0; }
                   5991: EOF
1.73    ! petere   5992: if { (eval echo configure:5993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5993:   rm -rf conftest*
                   5994:   eval "ac_cv_func_random=yes"
                   5995: else
                   5996:   echo "configure: failed program was:" >&5
                   5997:   cat conftest.$ac_ext >&5
                   5998:   rm -rf conftest*
                   5999:   eval "ac_cv_func_random=no"
                   6000: fi
                   6001: rm -f conftest*
                   6002: fi
                   6003: 
                   6004: if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
                   6005:   echo "$ac_t""yes" 1>&6
                   6006:   cat >> confdefs.h <<\EOF
                   6007: #define HAVE_RANDOM 1
                   6008: EOF
                   6009: 
                   6010: else
                   6011:   echo "$ac_t""no" 1>&6
                   6012: MISSING_RANDOM='random.o'
                   6013: fi
                   6014: 
                   6015: 
                   6016: echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1.73    ! petere   6017: echo "configure:6018: checking for inet_aton" >&5
1.1       petere   6018: if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
                   6019:   echo $ac_n "(cached) $ac_c" 1>&6
                   6020: else
                   6021:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   6022: #line 6023 "configure"
1.1       petere   6023: #include "confdefs.h"
                   6024: /* System header to define __stub macros and hopefully few prototypes,
                   6025:     which can conflict with char inet_aton(); below.  */
                   6026: #include <assert.h>
                   6027: /* Override any gcc2 internal prototype to avoid an error.  */
                   6028: /* We use char because int might match the return type of a gcc2
                   6029:     builtin and then its argument prototype would still apply.  */
                   6030: char inet_aton();
                   6031: 
                   6032: int main() {
                   6033: 
                   6034: /* The GNU C library defines this for functions which it implements
                   6035:     to always fail with ENOSYS.  Some functions are actually named
                   6036:     something starting with __ and the normal name is an alias.  */
                   6037: #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
                   6038: choke me
                   6039: #else
                   6040: inet_aton();
                   6041: #endif
                   6042: 
                   6043: ; return 0; }
                   6044: EOF
1.73    ! petere   6045: if { (eval echo configure:6046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6046:   rm -rf conftest*
                   6047:   eval "ac_cv_func_inet_aton=yes"
                   6048: else
                   6049:   echo "configure: failed program was:" >&5
                   6050:   cat conftest.$ac_ext >&5
                   6051:   rm -rf conftest*
                   6052:   eval "ac_cv_func_inet_aton=no"
                   6053: fi
                   6054: rm -f conftest*
                   6055: fi
                   6056: 
                   6057: if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
                   6058:   echo "$ac_t""yes" 1>&6
                   6059:   cat >> confdefs.h <<\EOF
                   6060: #define HAVE_INET_ATON 1
                   6061: EOF
                   6062: 
                   6063: else
                   6064:   echo "$ac_t""no" 1>&6
                   6065: INET_ATON='inet_aton.o'
                   6066: fi
                   6067: 
                   6068: 
                   6069: echo $ac_n "checking for strerror""... $ac_c" 1>&6
1.73    ! petere   6070: echo "configure:6071: checking for strerror" >&5
1.1       petere   6071: if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
                   6072:   echo $ac_n "(cached) $ac_c" 1>&6
                   6073: else
                   6074:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   6075: #line 6076 "configure"
1.1       petere   6076: #include "confdefs.h"
                   6077: /* System header to define __stub macros and hopefully few prototypes,
                   6078:     which can conflict with char strerror(); below.  */
                   6079: #include <assert.h>
                   6080: /* Override any gcc2 internal prototype to avoid an error.  */
                   6081: /* We use char because int might match the return type of a gcc2
                   6082:     builtin and then its argument prototype would still apply.  */
                   6083: char strerror();
                   6084: 
                   6085: int main() {
                   6086: 
                   6087: /* The GNU C library defines this for functions which it implements
                   6088:     to always fail with ENOSYS.  Some functions are actually named
                   6089:     something starting with __ and the normal name is an alias.  */
                   6090: #if defined (__stub_strerror) || defined (__stub___strerror)
                   6091: choke me
                   6092: #else
                   6093: strerror();
                   6094: #endif
                   6095: 
                   6096: ; return 0; }
                   6097: EOF
1.73    ! petere   6098: if { (eval echo configure:6099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6099:   rm -rf conftest*
                   6100:   eval "ac_cv_func_strerror=yes"
                   6101: else
                   6102:   echo "configure: failed program was:" >&5
                   6103:   cat conftest.$ac_ext >&5
                   6104:   rm -rf conftest*
                   6105:   eval "ac_cv_func_strerror=no"
                   6106: fi
                   6107: rm -f conftest*
                   6108: fi
                   6109: 
                   6110: if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
                   6111:   echo "$ac_t""yes" 1>&6
                   6112:   cat >> confdefs.h <<\EOF
                   6113: #define HAVE_STRERROR 1
                   6114: EOF
                   6115: 
                   6116: else
                   6117:   echo "$ac_t""no" 1>&6
                   6118: STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
                   6119: fi
                   6120: 
                   6121: 
                   6122: 
                   6123: echo $ac_n "checking for strdup""... $ac_c" 1>&6
1.73    ! petere   6124: echo "configure:6125: checking for strdup" >&5
1.1       petere   6125: if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
                   6126:   echo $ac_n "(cached) $ac_c" 1>&6
                   6127: else
                   6128:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   6129: #line 6130 "configure"
1.1       petere   6130: #include "confdefs.h"
                   6131: /* System header to define __stub macros and hopefully few prototypes,
                   6132:     which can conflict with char strdup(); below.  */
                   6133: #include <assert.h>
                   6134: /* Override any gcc2 internal prototype to avoid an error.  */
                   6135: /* We use char because int might match the return type of a gcc2
                   6136:     builtin and then its argument prototype would still apply.  */
                   6137: char strdup();
                   6138: 
                   6139: int main() {
                   6140: 
                   6141: /* The GNU C library defines this for functions which it implements
                   6142:     to always fail with ENOSYS.  Some functions are actually named
                   6143:     something starting with __ and the normal name is an alias.  */
                   6144: #if defined (__stub_strdup) || defined (__stub___strdup)
                   6145: choke me
                   6146: #else
                   6147: strdup();
                   6148: #endif
                   6149: 
                   6150: ; return 0; }
                   6151: EOF
1.73    ! petere   6152: if { (eval echo configure:6153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6153:   rm -rf conftest*
                   6154:   eval "ac_cv_func_strdup=yes"
                   6155: else
                   6156:   echo "configure: failed program was:" >&5
                   6157:   cat conftest.$ac_ext >&5
                   6158:   rm -rf conftest*
                   6159:   eval "ac_cv_func_strdup=no"
                   6160: fi
                   6161: rm -f conftest*
                   6162: fi
                   6163: 
                   6164: if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
                   6165:   echo "$ac_t""yes" 1>&6
                   6166:   cat >> confdefs.h <<\EOF
                   6167: #define HAVE_STRDUP 1
                   6168: EOF
                   6169: 
                   6170: else
                   6171:   echo "$ac_t""no" 1>&6
                   6172: STRDUP='../../utils/strdup.o'
                   6173: fi
                   6174: 
                   6175: 
                   6176: echo $ac_n "checking for strtol""... $ac_c" 1>&6
1.73    ! petere   6177: echo "configure:6178: checking for strtol" >&5
1.1       petere   6178: if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
                   6179:   echo $ac_n "(cached) $ac_c" 1>&6
                   6180: else
                   6181:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   6182: #line 6183 "configure"
1.1       petere   6183: #include "confdefs.h"
                   6184: /* System header to define __stub macros and hopefully few prototypes,
                   6185:     which can conflict with char strtol(); below.  */
                   6186: #include <assert.h>
                   6187: /* Override any gcc2 internal prototype to avoid an error.  */
                   6188: /* We use char because int might match the return type of a gcc2
                   6189:     builtin and then its argument prototype would still apply.  */
                   6190: char strtol();
                   6191: 
                   6192: int main() {
                   6193: 
                   6194: /* The GNU C library defines this for functions which it implements
                   6195:     to always fail with ENOSYS.  Some functions are actually named
                   6196:     something starting with __ and the normal name is an alias.  */
                   6197: #if defined (__stub_strtol) || defined (__stub___strtol)
                   6198: choke me
                   6199: #else
                   6200: strtol();
                   6201: #endif
                   6202: 
                   6203: ; return 0; }
                   6204: EOF
1.73    ! petere   6205: if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6206:   rm -rf conftest*
                   6207:   eval "ac_cv_func_strtol=yes"
                   6208: else
                   6209:   echo "configure: failed program was:" >&5
                   6210:   cat conftest.$ac_ext >&5
                   6211:   rm -rf conftest*
                   6212:   eval "ac_cv_func_strtol=no"
                   6213: fi
                   6214: rm -f conftest*
                   6215: fi
                   6216: 
                   6217: if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
                   6218:   echo "$ac_t""yes" 1>&6
                   6219:   cat >> confdefs.h <<\EOF
                   6220: #define HAVE_STRTOL 1
                   6221: EOF
                   6222: 
                   6223: else
                   6224:   echo "$ac_t""no" 1>&6
                   6225: STRTOL='strtol.o'
                   6226: fi
                   6227: 
                   6228: 
                   6229: echo $ac_n "checking for strtoul""... $ac_c" 1>&6
1.73    ! petere   6230: echo "configure:6231: checking for strtoul" >&5
1.1       petere   6231: if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
                   6232:   echo $ac_n "(cached) $ac_c" 1>&6
                   6233: else
                   6234:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   6235: #line 6236 "configure"
1.1       petere   6236: #include "confdefs.h"
                   6237: /* System header to define __stub macros and hopefully few prototypes,
                   6238:     which can conflict with char strtoul(); below.  */
                   6239: #include <assert.h>
                   6240: /* Override any gcc2 internal prototype to avoid an error.  */
                   6241: /* We use char because int might match the return type of a gcc2
                   6242:     builtin and then its argument prototype would still apply.  */
                   6243: char strtoul();
                   6244: 
                   6245: int main() {
                   6246: 
                   6247: /* The GNU C library defines this for functions which it implements
                   6248:     to always fail with ENOSYS.  Some functions are actually named
                   6249:     something starting with __ and the normal name is an alias.  */
                   6250: #if defined (__stub_strtoul) || defined (__stub___strtoul)
                   6251: choke me
                   6252: #else
                   6253: strtoul();
                   6254: #endif
                   6255: 
                   6256: ; return 0; }
                   6257: EOF
1.73    ! petere   6258: if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6259:   rm -rf conftest*
                   6260:   eval "ac_cv_func_strtoul=yes"
                   6261: else
                   6262:   echo "configure: failed program was:" >&5
                   6263:   cat conftest.$ac_ext >&5
                   6264:   rm -rf conftest*
                   6265:   eval "ac_cv_func_strtoul=no"
                   6266: fi
                   6267: rm -f conftest*
                   6268: fi
                   6269: 
                   6270: if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
                   6271:   echo "$ac_t""yes" 1>&6
                   6272:   cat >> confdefs.h <<\EOF
                   6273: #define HAVE_STRTOUL 1
                   6274: EOF
                   6275: 
                   6276: else
                   6277:   echo "$ac_t""no" 1>&6
                   6278: STRTOL='strtoul.o'
                   6279: fi
                   6280: 
                   6281: 
                   6282: echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
1.73    ! petere   6283: echo "configure:6284: checking for strcasecmp" >&5
1.1       petere   6284: if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
                   6285:   echo $ac_n "(cached) $ac_c" 1>&6
                   6286: else
                   6287:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   6288: #line 6289 "configure"
1.1       petere   6289: #include "confdefs.h"
                   6290: /* System header to define __stub macros and hopefully few prototypes,
                   6291:     which can conflict with char strcasecmp(); below.  */
                   6292: #include <assert.h>
                   6293: /* Override any gcc2 internal prototype to avoid an error.  */
                   6294: /* We use char because int might match the return type of a gcc2
                   6295:     builtin and then its argument prototype would still apply.  */
                   6296: char strcasecmp();
                   6297: 
                   6298: int main() {
                   6299: 
                   6300: /* The GNU C library defines this for functions which it implements
                   6301:     to always fail with ENOSYS.  Some functions are actually named
                   6302:     something starting with __ and the normal name is an alias.  */
                   6303: #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
                   6304: choke me
                   6305: #else
                   6306: strcasecmp();
                   6307: #endif
                   6308: 
                   6309: ; return 0; }
                   6310: EOF
1.73    ! petere   6311: if { (eval echo configure:6312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6312:   rm -rf conftest*
                   6313:   eval "ac_cv_func_strcasecmp=yes"
                   6314: else
                   6315:   echo "configure: failed program was:" >&5
                   6316:   cat conftest.$ac_ext >&5
                   6317:   rm -rf conftest*
                   6318:   eval "ac_cv_func_strcasecmp=no"
                   6319: fi
                   6320: rm -f conftest*
                   6321: fi
                   6322: 
                   6323: if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
                   6324:   echo "$ac_t""yes" 1>&6
                   6325:   cat >> confdefs.h <<\EOF
                   6326: #define HAVE_STRCASECMP 1
                   6327: EOF
                   6328: 
                   6329: else
                   6330:   echo "$ac_t""no" 1>&6
                   6331: STRCASECMP='strcasecmp.o'
                   6332: fi
                   6333: 
                   6334: 
                   6335: echo $ac_n "checking for cbrt""... $ac_c" 1>&6
1.73    ! petere   6336: echo "configure:6337: checking for cbrt" >&5
1.1       petere   6337: if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
                   6338:   echo $ac_n "(cached) $ac_c" 1>&6
                   6339: else
                   6340:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   6341: #line 6342 "configure"
1.1       petere   6342: #include "confdefs.h"
                   6343: /* System header to define __stub macros and hopefully few prototypes,
                   6344:     which can conflict with char cbrt(); below.  */
                   6345: #include <assert.h>
                   6346: /* Override any gcc2 internal prototype to avoid an error.  */
                   6347: /* We use char because int might match the return type of a gcc2
                   6348:     builtin and then its argument prototype would still apply.  */
                   6349: char cbrt();
                   6350: 
                   6351: int main() {
                   6352: 
                   6353: /* The GNU C library defines this for functions which it implements
                   6354:     to always fail with ENOSYS.  Some functions are actually named
                   6355:     something starting with __ and the normal name is an alias.  */
                   6356: #if defined (__stub_cbrt) || defined (__stub___cbrt)
                   6357: choke me
                   6358: #else
                   6359: cbrt();
                   6360: #endif
                   6361: 
                   6362: ; return 0; }
                   6363: EOF
1.73    ! petere   6364: if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6365:   rm -rf conftest*
                   6366:   eval "ac_cv_func_cbrt=yes"
                   6367: else
                   6368:   echo "configure: failed program was:" >&5
                   6369:   cat conftest.$ac_ext >&5
                   6370:   rm -rf conftest*
                   6371:   eval "ac_cv_func_cbrt=no"
                   6372: fi
                   6373: rm -f conftest*
                   6374: fi
                   6375: 
                   6376: if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
                   6377:   echo "$ac_t""yes" 1>&6
                   6378:   cat >> confdefs.h <<\EOF
                   6379: #define HAVE_CBRT 1
                   6380: EOF
                   6381: 
                   6382: else
                   6383:   echo "$ac_t""no" 1>&6
                   6384: echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
1.73    ! petere   6385: echo "configure:6386: checking for cbrt in -lm" >&5
1.1       petere   6386: ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
                   6387: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6388:   echo $ac_n "(cached) $ac_c" 1>&6
                   6389: else
                   6390:   ac_save_LIBS="$LIBS"
                   6391: LIBS="-lm  $LIBS"
                   6392: cat > conftest.$ac_ext <<EOF
1.73    ! petere   6393: #line 6394 "configure"
1.1       petere   6394: #include "confdefs.h"
                   6395: /* Override any gcc2 internal prototype to avoid an error.  */
                   6396: /* We use char because int might match the return type of a gcc2
                   6397:     builtin and then its argument prototype would still apply.  */
                   6398: char cbrt();
                   6399: 
                   6400: int main() {
                   6401: cbrt()
                   6402: ; return 0; }
                   6403: EOF
1.73    ! petere   6404: if { (eval echo configure:6405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6405:   rm -rf conftest*
                   6406:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6407: else
                   6408:   echo "configure: failed program was:" >&5
                   6409:   cat conftest.$ac_ext >&5
                   6410:   rm -rf conftest*
                   6411:   eval "ac_cv_lib_$ac_lib_var=no"
                   6412: fi
                   6413: rm -f conftest*
                   6414: LIBS="$ac_save_LIBS"
                   6415: 
                   6416: fi
                   6417: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6418:   echo "$ac_t""yes" 1>&6
                   6419:   cat >> confdefs.h <<\EOF
                   6420: #define HAVE_CBRT 1
                   6421: EOF
                   6422: 
                   6423: else
                   6424:   echo "$ac_t""no" 1>&6
                   6425: fi
                   6426: 
                   6427: fi
                   6428: 
                   6429: 
                   6430: # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
                   6431: # this hackery with HPUXMATHLIB allows us to cope.
                   6432: HPUXMATHLIB=""
1.30      petere   6433: case $host_cpu in
1.1       petere   6434:   hppa1.1) 
                   6435:        if [ -r /lib/pa1.1/libm.a ] ; then
                   6436:            HPUXMATHLIB="-L /lib/pa1.1 -lm"
                   6437:        fi ;;
                   6438: esac
                   6439: 
                   6440: 
                   6441: echo $ac_n "checking for rint""... $ac_c" 1>&6
1.73    ! petere   6442: echo "configure:6443: checking for rint" >&5
1.1       petere   6443: if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
                   6444:   echo $ac_n "(cached) $ac_c" 1>&6
                   6445: else
                   6446:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   6447: #line 6448 "configure"
1.1       petere   6448: #include "confdefs.h"
                   6449: /* System header to define __stub macros and hopefully few prototypes,
                   6450:     which can conflict with char rint(); below.  */
                   6451: #include <assert.h>
                   6452: /* Override any gcc2 internal prototype to avoid an error.  */
                   6453: /* We use char because int might match the return type of a gcc2
                   6454:     builtin and then its argument prototype would still apply.  */
                   6455: char rint();
                   6456: 
                   6457: int main() {
                   6458: 
                   6459: /* The GNU C library defines this for functions which it implements
                   6460:     to always fail with ENOSYS.  Some functions are actually named
                   6461:     something starting with __ and the normal name is an alias.  */
                   6462: #if defined (__stub_rint) || defined (__stub___rint)
                   6463: choke me
                   6464: #else
                   6465: rint();
                   6466: #endif
                   6467: 
                   6468: ; return 0; }
                   6469: EOF
1.73    ! petere   6470: if { (eval echo configure:6471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6471:   rm -rf conftest*
                   6472:   eval "ac_cv_func_rint=yes"
                   6473: else
                   6474:   echo "configure: failed program was:" >&5
                   6475:   cat conftest.$ac_ext >&5
                   6476:   rm -rf conftest*
                   6477:   eval "ac_cv_func_rint=no"
                   6478: fi
                   6479: rm -f conftest*
                   6480: fi
                   6481: 
                   6482: if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
                   6483:   echo "$ac_t""yes" 1>&6
                   6484:   cat >> confdefs.h <<\EOF
                   6485: #define HAVE_RINT 1
                   6486: EOF
                   6487: 
                   6488: else
                   6489:   echo "$ac_t""no" 1>&6
                   6490: echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
1.73    ! petere   6491: echo "configure:6492: checking for rint in -lm" >&5
1.1       petere   6492: ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
                   6493: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6494:   echo $ac_n "(cached) $ac_c" 1>&6
                   6495: else
                   6496:   ac_save_LIBS="$LIBS"
                   6497: LIBS="-lm $HPUXMATHLIB $LIBS"
                   6498: cat > conftest.$ac_ext <<EOF
1.73    ! petere   6499: #line 6500 "configure"
1.1       petere   6500: #include "confdefs.h"
                   6501: /* Override any gcc2 internal prototype to avoid an error.  */
                   6502: /* We use char because int might match the return type of a gcc2
                   6503:     builtin and then its argument prototype would still apply.  */
                   6504: char rint();
                   6505: 
                   6506: int main() {
                   6507: rint()
                   6508: ; return 0; }
                   6509: EOF
1.73    ! petere   6510: if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6511:   rm -rf conftest*
                   6512:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6513: else
                   6514:   echo "configure: failed program was:" >&5
                   6515:   cat conftest.$ac_ext >&5
                   6516:   rm -rf conftest*
                   6517:   eval "ac_cv_lib_$ac_lib_var=no"
                   6518: fi
                   6519: rm -f conftest*
                   6520: LIBS="$ac_save_LIBS"
                   6521: 
                   6522: fi
                   6523: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6524:   echo "$ac_t""yes" 1>&6
                   6525:   cat >> confdefs.h <<\EOF
                   6526: #define HAVE_RINT 1
                   6527: EOF
                   6528: 
                   6529: else
                   6530:   echo "$ac_t""no" 1>&6
                   6531: fi
                   6532: 
                   6533: fi
                   6534: 
                   6535: 
1.54      petere   6536: 
                   6537: # Readline versions < 2.1 don't have rl_completion_append_character
                   6538: echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
1.73    ! petere   6539: echo "configure:6540: checking for rl_completion_append_character" >&5
1.1       petere   6540: cat > conftest.$ac_ext <<EOF
1.73    ! petere   6541: #line 6542 "configure"
1.1       petere   6542: #include "confdefs.h"
1.54      petere   6543: #include <stdio.h>
                   6544: #ifdef HAVE_READLINE_H
                   6545: # include <readline.h>
                   6546: #endif
                   6547: #ifdef HAVE_READLINE_READLINE_H
                   6548: # include <readline/readline.h>
                   6549: #endif
                   6550: int main() {
                   6551: rl_completion_append_character = 'x';
                   6552: ; return 0; }
1.1       petere   6553: EOF
1.73    ! petere   6554: if { (eval echo configure:6555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6555:   rm -rf conftest*
1.54      petere   6556:   echo "$ac_t""yes" 1>&6
                   6557: cat >> confdefs.h <<\EOF
1.1       petere   6558: #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
                   6559: EOF
                   6560: 
                   6561: else
1.54      petere   6562:   echo "configure: failed program was:" >&5
                   6563:   cat conftest.$ac_ext >&5
1.1       petere   6564:   rm -rf conftest*
1.54      petere   6565:   echo "$ac_t""no" 1>&6
1.1       petere   6566: fi
                   6567: rm -f conftest*
                   6568: 
                   6569: 
1.54      petere   6570: # Check whether readline's filename_completion_function is declared.
                   6571: # Some prehistoric versions of readline, in particular those shipped
                   6572: # with earlier Cygwins don't have this declared, although it's in the
                   6573: # library.
                   6574: echo $ac_n "checking whether filename_completion_function is declared""... $ac_c" 1>&6
1.73    ! petere   6575: echo "configure:6576: checking whether filename_completion_function is declared" >&5
1.54      petere   6576: if test "$ac_cv_header_readline_h" = yes; then
                   6577:     _readline_header='readline.h'
                   6578: elif test "$ac_cv_header_readline_readline_h" = yes; then
                   6579:     _readline_header='readline/readline.h'
1.1       petere   6580: else
1.54      petere   6581:     _readline_header='xxx'
1.1       petere   6582: fi
1.54      petere   6583: cat > conftest.$ac_ext <<EOF
1.73    ! petere   6584: #line 6585 "configure"
1.1       petere   6585: #include "confdefs.h"
1.54      petere   6586: #include <$_readline_header>
1.1       petere   6587: EOF
                   6588: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6589:   egrep "filename_completion_function" >/dev/null 2>&1; then
                   6590:   rm -rf conftest*
                   6591:   cat >> confdefs.h <<\EOF
                   6592: #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
                   6593: EOF
                   6594: 
1.54      petere   6595: echo "$ac_t""yes" 1>&6
1.1       petere   6596: else
                   6597:   rm -rf conftest*
1.54      petere   6598:   echo "$ac_t""no" 1>&6
1.1       petere   6599: fi
                   6600: rm -f conftest*
                   6601: 
                   6602: 
                   6603: 
                   6604: 
                   6605: echo $ac_n "checking for finite""... $ac_c" 1>&6
1.73    ! petere   6606: echo "configure:6607: checking for finite" >&5
1.1       petere   6607: cat > conftest.$ac_ext <<EOF
1.73    ! petere   6608: #line 6609 "configure"
1.1       petere   6609: #include "confdefs.h"
                   6610: #include <math.h>
                   6611: int main() {
                   6612: int dummy=finite(1.0);
                   6613: ; return 0; }
                   6614: EOF
1.73    ! petere   6615: if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6616:   rm -rf conftest*
                   6617:   cat >> confdefs.h <<\EOF
                   6618: #define HAVE_FINITE 1
                   6619: EOF
                   6620:  echo "$ac_t""yes" 1>&6
                   6621: else
                   6622:   echo "configure: failed program was:" >&5
                   6623:   cat conftest.$ac_ext >&5
                   6624:   rm -rf conftest*
                   6625:   echo "$ac_t""no" 1>&6
                   6626: fi
                   6627: rm -f conftest*
                   6628: 
                   6629: echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
1.73    ! petere   6630: echo "configure:6631: checking for sigsetjmp" >&5
1.1       petere   6631: cat > conftest.$ac_ext <<EOF
1.73    ! petere   6632: #line 6633 "configure"
1.1       petere   6633: #include "confdefs.h"
                   6634: #include <setjmp.h>
                   6635: int main() {
                   6636: sigjmp_buf x; sigsetjmp(x, 1);
                   6637: ; return 0; }
                   6638: EOF
1.73    ! petere   6639: if { (eval echo configure:6640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6640:   rm -rf conftest*
                   6641:   cat >> confdefs.h <<\EOF
                   6642: #define HAVE_SIGSETJMP 1
                   6643: EOF
                   6644:  echo "$ac_t""yes" 1>&6
                   6645: else
                   6646:   echo "configure: failed program was:" >&5
                   6647:   cat conftest.$ac_ext >&5
                   6648:   rm -rf conftest*
                   6649:   echo "$ac_t""no" 1>&6
                   6650: fi
                   6651: rm -f conftest*
                   6652: 
1.43      petere   6653: 
                   6654: # Check whether --enable-syslog was given
                   6655: if test x"${enable_syslog+set}" = xset; then
                   6656:   case $enable_syslog in
                   6657:     yes)
                   6658:       echo $ac_n "checking for syslog""... $ac_c" 1>&6
1.73    ! petere   6659: echo "configure:6660: checking for syslog" >&5
1.1       petere   6660: if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
                   6661:   echo $ac_n "(cached) $ac_c" 1>&6
                   6662: else
                   6663:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   6664: #line 6665 "configure"
1.1       petere   6665: #include "confdefs.h"
                   6666: /* System header to define __stub macros and hopefully few prototypes,
                   6667:     which can conflict with char syslog(); below.  */
                   6668: #include <assert.h>
                   6669: /* Override any gcc2 internal prototype to avoid an error.  */
                   6670: /* We use char because int might match the return type of a gcc2
                   6671:     builtin and then its argument prototype would still apply.  */
                   6672: char syslog();
                   6673: 
                   6674: int main() {
                   6675: 
                   6676: /* The GNU C library defines this for functions which it implements
                   6677:     to always fail with ENOSYS.  Some functions are actually named
                   6678:     something starting with __ and the normal name is an alias.  */
                   6679: #if defined (__stub_syslog) || defined (__stub___syslog)
                   6680: choke me
                   6681: #else
                   6682: syslog();
                   6683: #endif
                   6684: 
                   6685: ; return 0; }
                   6686: EOF
1.73    ! petere   6687: if { (eval echo configure:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6688:   rm -rf conftest*
                   6689:   eval "ac_cv_func_syslog=yes"
                   6690: else
                   6691:   echo "configure: failed program was:" >&5
                   6692:   cat conftest.$ac_ext >&5
                   6693:   rm -rf conftest*
                   6694:   eval "ac_cv_func_syslog=no"
                   6695: fi
                   6696: rm -f conftest*
                   6697: fi
                   6698: 
                   6699: if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
                   6700:   echo "$ac_t""yes" 1>&6
                   6701:   cat >> confdefs.h <<\EOF
                   6702: #define ENABLE_SYSLOG 1
                   6703: EOF
                   6704: 
                   6705: else
                   6706:   echo "$ac_t""no" 1>&6
                   6707: { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
                   6708: fi
                   6709: 
1.43      petere   6710:       ;;
                   6711:     no)
                   6712:       :
                   6713:       ;;
                   6714:     *)
                   6715:       enableval=$enable_syslog
                   6716:       { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
                   6717:       ;;
                   6718:   esac # $enable_syslog
                   6719: else
                   6720:   enable_syslog=no
1.1       petere   6721: 
                   6722: fi
                   6723: 
                   6724: 
                   6725: 
1.5       petere   6726: echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
1.73    ! petere   6727: echo "configure:6728: checking whether long int is 64 bits" >&5
1.5       petere   6728: if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
                   6729:   echo $ac_n "(cached) $ac_c" 1>&6
                   6730: else
                   6731:   if test "$cross_compiling" = yes; then
                   6732:   pgac_cv_type_long_int_64=no
                   6733: echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
1.1       petere   6734: else
                   6735:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   6736: #line 6737 "configure"
1.1       petere   6737: #include "confdefs.h"
                   6738: typedef long int int64;
                   6739: 
1.5       petere   6740: /*
                   6741:  * These are globals to discourage the compiler from folding all the
1.1       petere   6742:  * arithmetic tests down to compile-time constants.
                   6743:  */
                   6744: int64 a = 20000001;
                   6745: int64 b = 40000005;
                   6746: 
                   6747: int does_int64_work()
                   6748: {
                   6749:   int64 c,d;
                   6750: 
                   6751:   if (sizeof(int64) != 8)
1.5       petere   6752:     return 0;                  /* definitely not the right size */
1.1       petere   6753: 
                   6754:   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
                   6755:   c = a * b;
                   6756:   d = (c + b) / b;
                   6757:   if (d != a+1)
                   6758:     return 0;
                   6759:   return 1;
                   6760: }
                   6761: main() {
                   6762:   exit(! does_int64_work());
                   6763: }
                   6764: EOF
1.73    ! petere   6765: if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   6766: then
1.5       petere   6767:   pgac_cv_type_long_int_64=yes
1.1       petere   6768: else
                   6769:   echo "configure: failed program was:" >&5
                   6770:   cat conftest.$ac_ext >&5
                   6771:   rm -fr conftest*
1.5       petere   6772:   pgac_cv_type_long_int_64=no
1.1       petere   6773: fi
                   6774: rm -fr conftest*
                   6775: fi
                   6776: 
1.5       petere   6777: fi
                   6778: 
                   6779: echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
                   6780: 
                   6781: HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
                   6782: if test x"$pgac_cv_type_long_int_64" = xyes ; then
                   6783:   cat >> confdefs.h <<\EOF
                   6784: #define HAVE_LONG_INT_64 
                   6785: EOF
                   6786: 
                   6787: fi
                   6788: 
1.1       petere   6789: 
1.5       petere   6790: if test x"$HAVE_LONG_INT_64" = x"no" ; then
                   6791:   echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
1.73    ! petere   6792: echo "configure:6793: checking whether long long int is 64 bits" >&5
1.5       petere   6793: if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
                   6794:   echo $ac_n "(cached) $ac_c" 1>&6
                   6795: else
                   6796:   if test "$cross_compiling" = yes; then
                   6797:   pgac_cv_type_long_long_int_64=no
                   6798: echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
1.1       petere   6799: else
                   6800:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   6801: #line 6802 "configure"
1.1       petere   6802: #include "confdefs.h"
                   6803: typedef long long int int64;
                   6804: 
1.5       petere   6805: /*
                   6806:  * These are globals to discourage the compiler from folding all the
1.1       petere   6807:  * arithmetic tests down to compile-time constants.
                   6808:  */
                   6809: int64 a = 20000001;
                   6810: int64 b = 40000005;
                   6811: 
                   6812: int does_int64_work()
                   6813: {
                   6814:   int64 c,d;
                   6815: 
                   6816:   if (sizeof(int64) != 8)
1.5       petere   6817:     return 0;                  /* definitely not the right size */
1.1       petere   6818: 
                   6819:   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
                   6820:   c = a * b;
                   6821:   d = (c + b) / b;
                   6822:   if (d != a+1)
                   6823:     return 0;
                   6824:   return 1;
                   6825: }
                   6826: main() {
                   6827:   exit(! does_int64_work());
                   6828: }
                   6829: EOF
1.73    ! petere   6830: if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   6831: then
1.5       petere   6832:   pgac_cv_type_long_long_int_64=yes
1.1       petere   6833: else
                   6834:   echo "configure: failed program was:" >&5
                   6835:   cat conftest.$ac_ext >&5
                   6836:   rm -fr conftest*
1.5       petere   6837:   pgac_cv_type_long_long_int_64=no
1.1       petere   6838: fi
                   6839: rm -fr conftest*
                   6840: fi
                   6841: 
                   6842: fi
                   6843: 
1.5       petere   6844: echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
                   6845: 
                   6846: HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
                   6847: if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
                   6848:   cat >> confdefs.h <<\EOF
                   6849: #define HAVE_LONG_LONG_INT_64 
                   6850: EOF
                   6851: 
                   6852: fi
                   6853: 
                   6854: fi
                   6855: 
                   6856: 
1.1       petere   6857: 
1.6       petere   6858: if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
1.1       petere   6859:   if [ x$SNPRINTF = x ] ; then
                   6860:     echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
1.73    ! petere   6861: echo "configure:6862: checking whether snprintf handles 'long long int' as %lld" >&5
1.1       petere   6862:     if test "$cross_compiling" = yes; then
                   6863:    echo "$ac_t""assuming not on target machine" 1>&6
                   6864:        # Force usage of our own snprintf, since we cannot test foreign snprintf
                   6865:        SNPRINTF='snprintf.o'
                   6866:        INT64_FORMAT='"%lld"'
                   6867:   
                   6868: else
                   6869:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   6870: #line 6871 "configure"
1.1       petere   6871: #include "confdefs.h"
                   6872: #include <stdio.h>
                   6873: typedef long long int int64;
                   6874: #define INT64_FORMAT "%lld"
                   6875: 
                   6876: int64 a = 20000001;
                   6877: int64 b = 40000005;
                   6878: 
                   6879: int does_int64_snprintf_work()
                   6880: {
                   6881:   int64 c;
                   6882:   char buf[100];
                   6883: 
                   6884:   if (sizeof(int64) != 8)
                   6885:     return 0;                  /* doesn't look like the right size */
                   6886: 
                   6887:   c = a * b;
                   6888:   snprintf(buf, 100, INT64_FORMAT, c);
                   6889:   if (strcmp(buf, "800000140000005") != 0)
                   6890:     return 0;                  /* either multiply or snprintf is busted */
                   6891:   return 1;
                   6892: }
                   6893: main() {
                   6894:   exit(! does_int64_snprintf_work());
                   6895: }
                   6896: EOF
1.73    ! petere   6897: if { (eval echo configure:6898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   6898: then
                   6899:    echo "$ac_t""yes" 1>&6
                   6900:          INT64_FORMAT='"%lld"'
                   6901:        
                   6902: else
                   6903:   echo "configure: failed program was:" >&5
                   6904:   cat conftest.$ac_ext >&5
                   6905:   rm -fr conftest*
                   6906:    echo "$ac_t""no" 1>&6
                   6907:     echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
1.73    ! petere   6908: echo "configure:6909: checking whether snprintf handles 'long long int' as %qd" >&5 
1.1       petere   6909:     if test "$cross_compiling" = yes; then
                   6910:    echo "$ac_t""assuming not on target machine" 1>&6
                   6911:        # Force usage of our own snprintf, since we cannot test foreign snprintf
                   6912:        SNPRINTF='snprintf.o'
                   6913:        INT64_FORMAT='"%lld"'
                   6914:   
                   6915: else
                   6916:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   6917: #line 6918 "configure"
1.1       petere   6918: #include "confdefs.h"
                   6919: #include <stdio.h>
                   6920: typedef long long int int64;
                   6921: #define INT64_FORMAT "%qd"
                   6922:    
                   6923: int64 a = 20000001;
                   6924: int64 b = 40000005;
                   6925:    
                   6926: int does_int64_snprintf_work()
                   6927: {  
                   6928:   int64 c;
                   6929:   char buf[100];
                   6930: 
                   6931:   if (sizeof(int64) != 8)
                   6932:     return 0;     /* doesn't look like the right size */
                   6933: 
                   6934:   c = a * b;
                   6935:   snprintf(buf, 100, INT64_FORMAT, c);
                   6936:   if (strcmp(buf, "800000140000005") != 0)
                   6937:     return 0;     /* either multiply or snprintf is busted */
                   6938:   return 1;
                   6939: }
                   6940: main() {
                   6941:   exit(! does_int64_snprintf_work());
                   6942: }
                   6943: EOF
1.73    ! petere   6944: if { (eval echo configure:6945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   6945: then
                   6946:    echo "$ac_t""yes" 1>&6
                   6947:     INT64_FORMAT='"%qd"'
                   6948:   
                   6949: else
                   6950:   echo "configure: failed program was:" >&5
                   6951:   cat conftest.$ac_ext >&5
                   6952:   rm -fr conftest*
                   6953:    echo "$ac_t""no" 1>&6
                   6954:        # Force usage of our own snprintf, since system snprintf is broken
                   6955:        SNPRINTF='snprintf.o'
                   6956:        INT64_FORMAT='"%lld"'
                   6957:   
                   6958: fi
                   6959: rm -fr conftest*
                   6960: fi
                   6961:  
                   6962: fi
                   6963: rm -fr conftest*
                   6964: fi
                   6965: 
                   6966:   else
                   6967:     # here if we previously decided we needed to use our own snprintf
                   6968:     INT64_FORMAT='"%lld"'
                   6969:   fi
                   6970: else
                   6971:   # Here if we are not using 'long long int' at all
                   6972:   INT64_FORMAT='"%ld"'
                   6973: fi
                   6974: 
                   6975: cat >> confdefs.h <<EOF
                   6976: #define INT64_FORMAT $INT64_FORMAT
                   6977: EOF
                   6978: 
                   6979: 
                   6980: 
                   6981: 
                   6982: echo $ac_n "checking alignment of short""... $ac_c" 1>&6
1.73    ! petere   6983: echo "configure:6984: checking alignment of short" >&5
1.5       petere   6984: if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
1.1       petere   6985:   echo $ac_n "(cached) $ac_c" 1>&6
                   6986: else
                   6987:   if test "$cross_compiling" = yes; then
1.5       petere   6988:   pgac_cv_alignof_short='sizeof(short)'
1.1       petere   6989: else
                   6990:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   6991: #line 6992 "configure"
1.1       petere   6992: #include "confdefs.h"
                   6993: #include <stdio.h>
                   6994: struct { char filler; short field; } mystruct;
                   6995: main()
                   6996: {
                   6997:   FILE *f=fopen("conftestval", "w");
                   6998:   if (!f) exit(1);
                   6999:   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
                   7000:   exit(0);
                   7001: }
                   7002: EOF
1.73    ! petere   7003: if { (eval echo configure:7004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   7004: then
1.5       petere   7005:   pgac_cv_alignof_short=`cat conftestval`
1.1       petere   7006: else
                   7007:   echo "configure: failed program was:" >&5
                   7008:   cat conftest.$ac_ext >&5
                   7009:   rm -fr conftest*
1.5       petere   7010:   pgac_cv_alignof_short='sizeof(short)'
1.1       petere   7011: fi
                   7012: rm -fr conftest*
                   7013: fi
                   7014: 
                   7015: fi
1.5       petere   7016: echo "$ac_t""$pgac_cv_alignof_short" 1>&6
1.1       petere   7017: cat >> confdefs.h <<EOF
1.5       petere   7018: #define ALIGNOF_SHORT $pgac_cv_alignof_short
1.1       petere   7019: EOF
                   7020: 
                   7021: 
                   7022: echo $ac_n "checking alignment of int""... $ac_c" 1>&6
1.73    ! petere   7023: echo "configure:7024: checking alignment of int" >&5
1.5       petere   7024: if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
1.1       petere   7025:   echo $ac_n "(cached) $ac_c" 1>&6
                   7026: else
                   7027:   if test "$cross_compiling" = yes; then
1.5       petere   7028:   pgac_cv_alignof_int='sizeof(int)'
1.1       petere   7029: else
                   7030:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   7031: #line 7032 "configure"
1.1       petere   7032: #include "confdefs.h"
                   7033: #include <stdio.h>
                   7034: struct { char filler; int field; } mystruct;
                   7035: main()
                   7036: {
                   7037:   FILE *f=fopen("conftestval", "w");
                   7038:   if (!f) exit(1);
                   7039:   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
                   7040:   exit(0);
                   7041: }
                   7042: EOF
1.73    ! petere   7043: if { (eval echo configure:7044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   7044: then
1.5       petere   7045:   pgac_cv_alignof_int=`cat conftestval`
1.1       petere   7046: else
                   7047:   echo "configure: failed program was:" >&5
                   7048:   cat conftest.$ac_ext >&5
                   7049:   rm -fr conftest*
1.5       petere   7050:   pgac_cv_alignof_int='sizeof(int)'
1.1       petere   7051: fi
                   7052: rm -fr conftest*
                   7053: fi
                   7054: 
                   7055: fi
1.5       petere   7056: echo "$ac_t""$pgac_cv_alignof_int" 1>&6
1.1       petere   7057: cat >> confdefs.h <<EOF
1.5       petere   7058: #define ALIGNOF_INT $pgac_cv_alignof_int
1.1       petere   7059: EOF
                   7060: 
                   7061: 
                   7062: echo $ac_n "checking alignment of long""... $ac_c" 1>&6
1.73    ! petere   7063: echo "configure:7064: checking alignment of long" >&5
1.5       petere   7064: if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
1.1       petere   7065:   echo $ac_n "(cached) $ac_c" 1>&6
                   7066: else
                   7067:   if test "$cross_compiling" = yes; then
1.5       petere   7068:   pgac_cv_alignof_long='sizeof(long)'
1.1       petere   7069: else
                   7070:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   7071: #line 7072 "configure"
1.1       petere   7072: #include "confdefs.h"
                   7073: #include <stdio.h>
                   7074: struct { char filler; long field; } mystruct;
                   7075: main()
                   7076: {
                   7077:   FILE *f=fopen("conftestval", "w");
                   7078:   if (!f) exit(1);
                   7079:   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
                   7080:   exit(0);
                   7081: }
                   7082: EOF
1.73    ! petere   7083: if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   7084: then
1.5       petere   7085:   pgac_cv_alignof_long=`cat conftestval`
1.1       petere   7086: else
                   7087:   echo "configure: failed program was:" >&5
                   7088:   cat conftest.$ac_ext >&5
                   7089:   rm -fr conftest*
1.5       petere   7090:   pgac_cv_alignof_long='sizeof(long)'
1.1       petere   7091: fi
                   7092: rm -fr conftest*
                   7093: fi
                   7094: 
                   7095: fi
1.5       petere   7096: echo "$ac_t""$pgac_cv_alignof_long" 1>&6
1.1       petere   7097: cat >> confdefs.h <<EOF
1.5       petere   7098: #define ALIGNOF_LONG $pgac_cv_alignof_long
1.1       petere   7099: EOF
                   7100: 
                   7101: 
1.6       petere   7102: if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
1.1       petere   7103:   echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
1.73    ! petere   7104: echo "configure:7105: checking alignment of long long int" >&5
1.5       petere   7105: if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
1.1       petere   7106:   echo $ac_n "(cached) $ac_c" 1>&6
                   7107: else
                   7108:   if test "$cross_compiling" = yes; then
1.5       petere   7109:   pgac_cv_alignof_long_long_int='sizeof(long long int)'
1.1       petere   7110: else
                   7111:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   7112: #line 7113 "configure"
1.1       petere   7113: #include "confdefs.h"
                   7114: #include <stdio.h>
                   7115: struct { char filler; long long int field; } mystruct;
                   7116: main()
                   7117: {
                   7118:   FILE *f=fopen("conftestval", "w");
                   7119:   if (!f) exit(1);
                   7120:   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
                   7121:   exit(0);
                   7122: }
                   7123: EOF
1.73    ! petere   7124: if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   7125: then
1.5       petere   7126:   pgac_cv_alignof_long_long_int=`cat conftestval`
1.1       petere   7127: else
                   7128:   echo "configure: failed program was:" >&5
                   7129:   cat conftest.$ac_ext >&5
                   7130:   rm -fr conftest*
1.5       petere   7131:   pgac_cv_alignof_long_long_int='sizeof(long long int)'
1.1       petere   7132: fi
                   7133: rm -fr conftest*
                   7134: fi
                   7135: 
                   7136: fi
1.5       petere   7137: echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
1.1       petere   7138: cat >> confdefs.h <<EOF
1.5       petere   7139: #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
1.1       petere   7140: EOF
                   7141: 
                   7142: 
                   7143: fi
                   7144: echo $ac_n "checking alignment of double""... $ac_c" 1>&6
1.73    ! petere   7145: echo "configure:7146: checking alignment of double" >&5
1.5       petere   7146: if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
1.1       petere   7147:   echo $ac_n "(cached) $ac_c" 1>&6
                   7148: else
                   7149:   if test "$cross_compiling" = yes; then
1.5       petere   7150:   pgac_cv_alignof_double='sizeof(double)'
1.1       petere   7151: else
                   7152:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   7153: #line 7154 "configure"
1.1       petere   7154: #include "confdefs.h"
                   7155: #include <stdio.h>
                   7156: struct { char filler; double field; } mystruct;
                   7157: main()
                   7158: {
                   7159:   FILE *f=fopen("conftestval", "w");
                   7160:   if (!f) exit(1);
                   7161:   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
                   7162:   exit(0);
                   7163: }
                   7164: EOF
1.73    ! petere   7165: if { (eval echo configure:7166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   7166: then
1.5       petere   7167:   pgac_cv_alignof_double=`cat conftestval`
1.1       petere   7168: else
                   7169:   echo "configure: failed program was:" >&5
                   7170:   cat conftest.$ac_ext >&5
                   7171:   rm -fr conftest*
1.5       petere   7172:   pgac_cv_alignof_double='sizeof(double)'
1.1       petere   7173: fi
                   7174: rm -fr conftest*
                   7175: fi
                   7176: 
                   7177: fi
1.5       petere   7178: echo "$ac_t""$pgac_cv_alignof_double" 1>&6
1.1       petere   7179: cat >> confdefs.h <<EOF
1.5       petere   7180: #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
1.1       petere   7181: EOF
                   7182: 
                   7183: 
                   7184: 
                   7185: 
1.5       petere   7186: if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
                   7187:   MAX_ALIGNOF=$pgac_cv_alignof_long
                   7188:   if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
                   7189:     MAX_ALIGNOF=$pgac_cv_alignof_double
1.1       petere   7190:   fi
1.6       petere   7191:   if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
1.5       petere   7192:     MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
1.1       petere   7193:   fi
                   7194: else
1.5       petere   7195:     MAX_ALIGNOF="$pgac_cv_alignof_double"
1.1       petere   7196: fi
                   7197: cat >> confdefs.h <<EOF
                   7198: #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
                   7199: EOF
                   7200: 
                   7201: 
                   7202: echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
1.73    ! petere   7203: echo "configure:7204: checking for POSIX signal interface" >&5
1.5       petere   7204: if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
                   7205:   echo $ac_n "(cached) $ac_c" 1>&6
                   7206: else
                   7207:   cat > conftest.$ac_ext <<EOF
1.73    ! petere   7208: #line 7209 "configure"
1.1       petere   7209: #include "confdefs.h"
                   7210: #include <signal.h>
1.5       petere   7211: 
1.1       petere   7212: int main() {
                   7213: struct sigaction act, oact;
                   7214: sigemptyset(&act.sa_mask);
                   7215: act.sa_flags = SA_RESTART;
                   7216: sigaction(0, &act, &oact);
                   7217: ; return 0; }
                   7218: EOF
1.73    ! petere   7219: if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   7220:   rm -rf conftest*
1.5       petere   7221:   pgac_cv_func_posix_signals=yes
1.1       petere   7222: else
                   7223:   echo "configure: failed program was:" >&5
                   7224:   cat conftest.$ac_ext >&5
                   7225:   rm -rf conftest*
1.5       petere   7226:   pgac_cv_func_posix_signals=no
1.1       petere   7227: fi
                   7228: rm -f conftest*
1.5       petere   7229: fi
                   7230: 
                   7231: echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
                   7232: if test x"$pgac_cv_func_posix_signals" = xyes ; then
                   7233:   cat >> confdefs.h <<\EOF
                   7234: #define HAVE_POSIX_SIGNALS 
                   7235: EOF
                   7236: 
                   7237: fi
                   7238: HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
                   7239: 
1.1       petere   7240: 
                   7241: 
1.44      petere   7242: # Check for Tcl configuration script tclConfig.sh
                   7243: if test "$with_tcl" = yes; then
                   7244:     for ac_prog in tclsh tcl
                   7245: do
                   7246: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   7247: set dummy $ac_prog; ac_word=$2
1.1       petere   7248: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.73    ! petere   7249: echo "configure:7250: checking for $ac_word" >&5
1.1       petere   7250: if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
                   7251:   echo $ac_n "(cached) $ac_c" 1>&6
                   7252: else
                   7253:   case "$TCLSH" in
                   7254:   /*)
                   7255:   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
                   7256:   ;;
                   7257:   ?:/*)                         
                   7258:   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
                   7259:   ;;
                   7260:   *)
                   7261:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   7262:   ac_dummy="$PATH"
                   7263:   for ac_dir in $ac_dummy; do 
                   7264:     test -z "$ac_dir" && ac_dir=.
                   7265:     if test -f $ac_dir/$ac_word; then
                   7266:       ac_cv_path_TCLSH="$ac_dir/$ac_word"
                   7267:       break
                   7268:     fi
                   7269:   done
                   7270:   IFS="$ac_save_ifs"
                   7271:   ;;
                   7272: esac
                   7273: fi
                   7274: TCLSH="$ac_cv_path_TCLSH"
                   7275: if test -n "$TCLSH"; then
                   7276:   echo "$ac_t""$TCLSH" 1>&6
                   7277: else
                   7278:   echo "$ac_t""no" 1>&6
                   7279: fi
                   7280: 
1.44      petere   7281: test -n "$TCLSH" && break
                   7282: done
                   7283: 
                   7284: echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
1.73    ! petere   7285: echo "configure:7286: checking for tclConfig.sh" >&5
1.44      petere   7286: # Let user override test
                   7287: if test -z "$TCL_CONFIG_SH"; then
                   7288:     pgac_test_dirs="$with_tclconfig"
                   7289: 
                   7290:     set X $pgac_test_dirs; shift
                   7291:     if test $# -eq 0; then
                   7292:         test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
                   7293:         set X `echo 'puts $auto_path' | $TCLSH`; shift
1.1       petere   7294:     fi
                   7295: 
1.48      petere   7296:     for pgac_dir do
1.44      petere   7297:         if test -r "$pgac_dir/tclConfig.sh"; then
                   7298:             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
                   7299:             break
                   7300:         fi
                   7301:     done
1.1       petere   7302: fi
                   7303: 
1.44      petere   7304: if test -z "$TCL_CONFIG_SH"; then
                   7305:     echo "$ac_t""no" 1>&6
                   7306:     { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
1.1       petere   7307: else
1.44      petere   7308:     echo "$ac_t""$TCL_CONFIG_SH" 1>&6
1.1       petere   7309: fi
                   7310: 
                   7311: 
1.30      petere   7312: 
1.44      petere   7313: fi
1.1       petere   7314: 
1.44      petere   7315: # Check for Tk configuration script tkConfig.sh
                   7316: if test "$with_tk" = yes; then
                   7317:     echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
1.73    ! petere   7318: echo "configure:7319: checking for tkConfig.sh" >&5
1.44      petere   7319: # Let user override test
                   7320: if test -z "$TK_CONFIG_SH"; then
                   7321:     pgac_test_dirs="$with_tkconfig $with_tclconfig"
1.1       petere   7322: 
1.44      petere   7323:     set X $pgac_test_dirs; shift
                   7324:     if test $# -eq 0; then
                   7325:         test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
                   7326:         set X `echo 'puts $auto_path' | $TCLSH`; shift
                   7327:     fi
1.1       petere   7328: 
1.48      petere   7329:     for pgac_dir do
1.44      petere   7330:         if test -r "$pgac_dir/tkConfig.sh"; then
                   7331:             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
                   7332:             break
                   7333:         fi
                   7334:     done
1.1       petere   7335: fi
                   7336: 
1.44      petere   7337: if test -z "$TK_CONFIG_SH"; then
                   7338:     echo "$ac_t""no" 1>&6
                   7339:     { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
1.1       petere   7340: else
1.44      petere   7341:     echo "$ac_t""$TK_CONFIG_SH" 1>&6
1.1       petere   7342: fi
                   7343: 
                   7344: 
1.44      petere   7345: 
1.1       petere   7346: fi
                   7347: 
                   7348: 
1.44      petere   7349: # Finally ready to produce output files ...
1.1       petere   7350: 
1.63      petere   7351: if test x"$abs_top_srcdir" != x"$abs_top_builddir"; then
                   7352:   echo $ac_n "preparing build tree... $ac_c" 1>&6
                   7353:   /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "$abs_top_builddir" \
                   7354:     || { echo "configure: error: failed" 1>&2; exit 1; }
                   7355:   echo "$ac_t""done" 1>&6
                   7356: fi
                   7357: 
1.44      petere   7358: trap '' 1 2 15
                   7359: cat > confcache <<\EOF
                   7360: # This file is a shell script that caches the results of configure
                   7361: # tests run on this system so they can be shared between configure
                   7362: # scripts and configure runs.  It is not useful on other systems.
                   7363: # If it contains results you don't want to keep, you may remove or edit it.
                   7364: #
                   7365: # By default, configure uses ./config.cache as the cache file,
                   7366: # creating it if it does not exist already.  You can give configure
                   7367: # the --cache-file=FILE option to use a different cache file; that is
                   7368: # what configure does when it calls configure scripts in
                   7369: # subdirectories, so they share the cache.
                   7370: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   7371: # config.status only pays attention to the cache file if you give it the
                   7372: # --recheck option to rerun configure.
                   7373: #
1.1       petere   7374: EOF
1.44      petere   7375: # The following way of writing the cache mishandles newlines in values,
                   7376: # but we know of no workaround that is simple, portable, and efficient.
                   7377: # So, don't put newlines in cache variables' values.
                   7378: # Ultrix sh set writes to stderr and can't be redirected directly,
                   7379: # and sets the high bit in the cache file unless we assign to the vars.
                   7380: (set) 2>&1 |
                   7381:   case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   7382:   *ac_space=\ *)
                   7383:     # `set' does not quote correctly, so add quotes (double-quote substitution
                   7384:     # turns \\\\ into \\, and sed turns \\ into \).
                   7385:     sed -n \
                   7386:       -e "s/'/'\\\\''/g" \
                   7387:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
                   7388:     ;;
                   7389:   *)
                   7390:     # `set' quotes correctly as required by POSIX, so do not add quotes.
                   7391:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
                   7392:     ;;
                   7393:   esac >> confcache
                   7394: if cmp -s $cache_file confcache; then
                   7395:   :
1.1       petere   7396: else
1.44      petere   7397:   if test -w $cache_file; then
                   7398:     echo "updating cache $cache_file"
                   7399:     cat confcache > $cache_file
                   7400:   else
                   7401:     echo "not updating unwritable cache $cache_file"
                   7402:   fi
1.1       petere   7403: fi
1.44      petere   7404: rm -f confcache
                   7405: 
                   7406: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1.1       petere   7407: 
1.44      petere   7408: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   7409: # Let make expand exec_prefix.
                   7410: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.1       petere   7411: 
1.44      petere   7412: # Any assignment to VPATH causes Sun make to only execute
                   7413: # the first set of double-colon rules, so remove it if not needed.
                   7414: # If there is a colon in the path, we need to keep it.
                   7415: if test "x$srcdir" = x.; then
                   7416:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
1.1       petere   7417: fi
                   7418: 
1.44      petere   7419: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1.1       petere   7420: 
1.44      petere   7421: DEFS=-DHAVE_CONFIG_H
1.1       petere   7422: 
1.44      petere   7423: # Without the "./", some shells look in PATH for config.status.
                   7424: : ${CONFIG_STATUS=./config.status}
1.1       petere   7425: 
1.44      petere   7426: echo creating $CONFIG_STATUS
                   7427: rm -f $CONFIG_STATUS
                   7428: cat > $CONFIG_STATUS <<EOF
1.1       petere   7429: #! /bin/sh
                   7430: # Generated automatically by configure.
                   7431: # Run this file to recreate the current configuration.
                   7432: # This directory was configured as follows,
                   7433: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   7434: #
                   7435: # $0 $ac_configure_args
                   7436: #
                   7437: # Compiler output produced by configure, useful for debugging
                   7438: # configure, is in ./config.log if it exists.
                   7439: 
                   7440: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   7441: for ac_option
                   7442: do
                   7443:   case "\$ac_option" in
                   7444:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   7445:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
                   7446:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   7447:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
                   7448:     echo "$CONFIG_STATUS generated by autoconf version 2.13"
                   7449:     exit 0 ;;
                   7450:   -help | --help | --hel | --he | --h)
                   7451:     echo "\$ac_cs_usage"; exit 0 ;;
                   7452:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   7453:   esac
                   7454: done
                   7455: 
                   7456: ac_given_srcdir=$srcdir
                   7457: ac_given_INSTALL="$INSTALL"
                   7458: 
1.33      petere   7459: trap 'rm -fr `echo "
                   7460:   GNUmakefile
                   7461:   src/GNUmakefile
                   7462:   src/Makefile.global
                   7463:   src/backend/port/Makefile
1.1       petere   7464:  src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
                   7465: EOF
                   7466: cat >> $CONFIG_STATUS <<EOF
                   7467: 
                   7468: # Protect against being on the right side of a sed subst in config.status.
                   7469: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
                   7470:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
                   7471: $ac_vpsub
                   7472: $extrasub
                   7473: s%@SHELL@%$SHELL%g
                   7474: s%@CFLAGS@%$CFLAGS%g
                   7475: s%@CPPFLAGS@%$CPPFLAGS%g
                   7476: s%@CXXFLAGS@%$CXXFLAGS%g
                   7477: s%@FFLAGS@%$FFLAGS%g
                   7478: s%@DEFS@%$DEFS%g
                   7479: s%@LDFLAGS@%$LDFLAGS%g
                   7480: s%@LIBS@%$LIBS%g
                   7481: s%@exec_prefix@%$exec_prefix%g
                   7482: s%@prefix@%$prefix%g
                   7483: s%@program_transform_name@%$program_transform_name%g
                   7484: s%@bindir@%$bindir%g
                   7485: s%@sbindir@%$sbindir%g
                   7486: s%@libexecdir@%$libexecdir%g
                   7487: s%@datadir@%$datadir%g
                   7488: s%@sysconfdir@%$sysconfdir%g
                   7489: s%@sharedstatedir@%$sharedstatedir%g
                   7490: s%@localstatedir@%$localstatedir%g
                   7491: s%@libdir@%$libdir%g
                   7492: s%@includedir@%$includedir%g
                   7493: s%@oldincludedir@%$oldincludedir%g
1.32      petere   7494: s%@docdir@%$docdir%g
1.1       petere   7495: s%@mandir@%$mandir%g
1.24      petere   7496: s%@VERSION@%$VERSION%g
1.63      petere   7497: s%@abs_top_srcdir@%$abs_top_srcdir%g
                   7498: s%@abs_top_builddir@%$abs_top_builddir%g
1.1       petere   7499: s%@host@%$host%g
                   7500: s%@host_alias@%$host_alias%g
                   7501: s%@host_cpu@%$host_cpu%g
                   7502: s%@host_vendor@%$host_vendor%g
                   7503: s%@host_os@%$host_os%g
1.30      petere   7504: s%@PORTNAME@%$PORTNAME%g
1.1       petere   7505: s%@TAS@%$TAS%g
1.29      petere   7506: s%@MULTIBYTE@%$MULTIBYTE%g
1.67      petere   7507: s%@enable_shared@%$enable_shared%g
1.73    ! petere   7508: s%@enable_rpath@%$enable_rpath%g
1.1       petere   7509: s%@CC@%$CC%g
1.45      petere   7510: s%@EXEEXT@%$EXEEXT%g
1.1       petere   7511: s%@CPP@%$CPP%g
1.5       petere   7512: s%@GCC@%$GCC%g
1.31      petere   7513: s%@autodepend@%$autodepend%g
1.30      petere   7514: s%@INCLUDES@%$INCLUDES%g
1.44      petere   7515: s%@with_tcl@%$with_tcl%g
                   7516: s%@with_tk@%$with_tk%g
1.4       petere   7517: s%@with_perl@%$with_perl%g
                   7518: s%@PYTHON@%$PYTHON%g
                   7519: s%@python_version@%$python_version%g
                   7520: s%@python_prefix@%$python_prefix%g
                   7521: s%@python_execprefix@%$python_execprefix%g
                   7522: s%@python_configdir@%$python_configdir%g
                   7523: s%@python_moduledir@%$python_moduledir%g
                   7524: s%@python_extmakefile@%$python_extmakefile%g
                   7525: s%@with_python@%$with_python%g
1.12      petere   7526: s%@with_krb4@%$with_krb4%g
                   7527: s%@with_krb5@%$with_krb5%g
1.37      petere   7528: s%@krb_srvtab@%$krb_srvtab%g
1.28      petere   7529: s%@with_openssl@%$with_openssl%g
1.15      petere   7530: s%@enable_odbc@%$enable_odbc%g
                   7531: s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
1.1       petere   7532: s%@ELF_SYS@%$ELF_SYS%g
                   7533: s%@CXX@%$CXX%g
1.5       petere   7534: s%@CXXCPP@%$CXXCPP%g
1.63      petere   7535: s%@GXX@%$GXX%g
1.43      petere   7536: s%@with_CXX@%$with_CXX%g
1.1       petere   7537: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
                   7538: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
                   7539: s%@INSTALL_DATA@%$INSTALL_DATA%g
1.15      petere   7540: s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
1.2       petere   7541: s%@AWK@%$AWK%g
1.40      petere   7542: s%@FLEX@%$FLEX%g
                   7543: s%@FLEXFLAGS@%$FLEXFLAGS%g
1.1       petere   7544: s%@LN_S@%$LN_S%g
1.69      petere   7545: s%@LD@%$LD%g
                   7546: s%@with_gnu_ld@%$with_gnu_ld%g
1.1       petere   7547: s%@RANLIB@%$RANLIB%g
1.60      petere   7548: s%@LORDER@%$LORDER%g
1.58      petere   7549: s%@TAR@%$TAR%g
1.1       petere   7550: s%@PERL@%$PERL%g
                   7551: s%@YACC@%$YACC%g
1.5       petere   7552: s%@YFLAGS@%$YFLAGS%g
1.44      petere   7553: s%@WISH@%$WISH%g
1.1       petere   7554: s%@SNPRINTF@%$SNPRINTF%g
                   7555: s%@ISINF@%$ISINF%g
                   7556: s%@GETRUSAGE@%$GETRUSAGE%g
                   7557: s%@SRANDOM@%$SRANDOM%g
                   7558: s%@GETHOSTNAME@%$GETHOSTNAME%g
                   7559: s%@MISSING_RANDOM@%$MISSING_RANDOM%g
                   7560: s%@INET_ATON@%$INET_ATON%g
                   7561: s%@STRERROR@%$STRERROR%g
                   7562: s%@STRERROR2@%$STRERROR2%g
                   7563: s%@STRDUP@%$STRDUP%g
                   7564: s%@STRTOL@%$STRTOL%g
                   7565: s%@STRTOUL@%$STRTOUL%g
                   7566: s%@STRCASECMP@%$STRCASECMP%g
                   7567: s%@HPUXMATHLIB@%$HPUXMATHLIB%g
                   7568: s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
                   7569: s%@TCLSH@%$TCLSH%g
                   7570: s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
                   7571: s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
                   7572: 
                   7573: CEOF
                   7574: EOF
                   7575: 
                   7576: cat >> $CONFIG_STATUS <<\EOF
                   7577: 
                   7578: # Split the substitutions into bite-sized pieces for seds with
                   7579: # small command number limits, like on Digital OSF/1 and HP-UX.
                   7580: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
                   7581: ac_file=1 # Number of current file.
                   7582: ac_beg=1 # First line for current file.
                   7583: ac_end=$ac_max_sed_cmds # Line after last line for current file.
                   7584: ac_more_lines=:
                   7585: ac_sed_cmds=""
                   7586: while $ac_more_lines; do
                   7587:   if test $ac_beg -gt 1; then
                   7588:     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
                   7589:   else
                   7590:     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
                   7591:   fi
                   7592:   if test ! -s conftest.s$ac_file; then
                   7593:     ac_more_lines=false
                   7594:     rm -f conftest.s$ac_file
                   7595:   else
                   7596:     if test -z "$ac_sed_cmds"; then
                   7597:       ac_sed_cmds="sed -f conftest.s$ac_file"
                   7598:     else
                   7599:       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
                   7600:     fi
                   7601:     ac_file=`expr $ac_file + 1`
                   7602:     ac_beg=$ac_end
                   7603:     ac_end=`expr $ac_end + $ac_max_sed_cmds`
                   7604:   fi
                   7605: done
                   7606: if test -z "$ac_sed_cmds"; then
                   7607:   ac_sed_cmds=cat
                   7608: fi
                   7609: EOF
                   7610: 
                   7611: cat >> $CONFIG_STATUS <<EOF
                   7612: 
                   7613: CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
1.33      petere   7614:   src/GNUmakefile
                   7615:   src/Makefile.global
                   7616:   src/backend/port/Makefile
1.1       petere   7617: "}
                   7618: EOF
                   7619: cat >> $CONFIG_STATUS <<\EOF
                   7620: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
                   7621:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   7622:   case "$ac_file" in
                   7623:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   7624:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   7625:   *) ac_file_in="${ac_file}.in" ;;
                   7626:   esac
                   7627: 
                   7628:   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
                   7629: 
                   7630:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   7631:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   7632:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   7633:     # The file is in a subdirectory.
                   7634:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   7635:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
                   7636:     # A "../" for each directory in $ac_dir_suffix.
                   7637:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   7638:   else
                   7639:     ac_dir_suffix= ac_dots=
                   7640:   fi
                   7641: 
                   7642:   case "$ac_given_srcdir" in
                   7643:   .)  srcdir=.
                   7644:       if test -z "$ac_dots"; then top_srcdir=.
                   7645:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   7646:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   7647:   *) # Relative path.
                   7648:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   7649:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   7650:   esac
                   7651: 
                   7652:   case "$ac_given_INSTALL" in
                   7653:   [/$]*) INSTALL="$ac_given_INSTALL" ;;
                   7654:   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
                   7655:   esac
                   7656: 
                   7657:   echo creating "$ac_file"
                   7658:   rm -f "$ac_file"
                   7659:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   7660:   case "$ac_file" in
                   7661:   *Makefile*) ac_comsub="1i\\
                   7662: # $configure_input" ;;
                   7663:   *) ac_comsub= ;;
                   7664:   esac
                   7665: 
                   7666:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   7667:   sed -e "$ac_comsub
                   7668: s%@configure_input@%$configure_input%g
                   7669: s%@srcdir@%$srcdir%g
                   7670: s%@top_srcdir@%$top_srcdir%g
                   7671: s%@INSTALL@%$INSTALL%g
                   7672: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
                   7673: fi; done
                   7674: rm -f conftest.s*
                   7675: 
                   7676: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   7677: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   7678: #
                   7679: # ac_d sets the value in "#define NAME VALUE" lines.
                   7680: ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   7681: ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
                   7682: ac_dC='\3'
                   7683: ac_dD='%g'
                   7684: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
                   7685: ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   7686: ac_uB='\([     ]\)%\1#\2define\3'
                   7687: ac_uC=' '
                   7688: ac_uD='\4%g'
                   7689: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   7690: ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   7691: ac_eB='$%\1#\2define\3'
                   7692: ac_eC=' '
                   7693: ac_eD='%g'
                   7694: 
                   7695: if test "${CONFIG_HEADERS+set}" != set; then
                   7696: EOF
                   7697: cat >> $CONFIG_STATUS <<EOF
                   7698:   CONFIG_HEADERS="src/include/config.h"
                   7699: EOF
                   7700: cat >> $CONFIG_STATUS <<\EOF
                   7701: fi
                   7702: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
                   7703:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   7704:   case "$ac_file" in
                   7705:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   7706:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   7707:   *) ac_file_in="${ac_file}.in" ;;
                   7708:   esac
                   7709: 
                   7710:   echo creating $ac_file
                   7711: 
                   7712:   rm -f conftest.frag conftest.in conftest.out
                   7713:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   7714:   cat $ac_file_inputs > conftest.in
                   7715: 
                   7716: EOF
                   7717: 
                   7718: # Transform confdefs.h into a sed script conftest.vals that substitutes
                   7719: # the proper values into config.h.in to produce config.h.  And first:
                   7720: # Protect against being on the right side of a sed subst in config.status.
                   7721: # Protect against being in an unquoted here document in config.status.
                   7722: rm -f conftest.vals
                   7723: cat > conftest.hdr <<\EOF
                   7724: s/[\\&%]/\\&/g
                   7725: s%[\\$`]%\\&%g
                   7726: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
                   7727: s%ac_d%ac_u%gp
                   7728: s%ac_u%ac_e%gp
                   7729: EOF
                   7730: sed -n -f conftest.hdr confdefs.h > conftest.vals
                   7731: rm -f conftest.hdr
                   7732: 
                   7733: # This sed command replaces #undef with comments.  This is necessary, for
                   7734: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   7735: # on some systems where configure will not decide to define it.
                   7736: cat >> conftest.vals <<\EOF
                   7737: s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
                   7738: EOF
                   7739: 
                   7740: # Break up conftest.vals because some shells have a limit on
                   7741: # the size of here documents, and old seds have small limits too.
                   7742: 
                   7743: rm -f conftest.tail
                   7744: while :
                   7745: do
                   7746:   ac_lines=`grep -c . conftest.vals`
                   7747:   # grep -c gives empty output for an empty file on some AIX systems.
                   7748:   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
                   7749:   # Write a limited-size here document to conftest.frag.
                   7750:   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
                   7751:   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
                   7752:   echo 'CEOF
                   7753:   sed -f conftest.frag conftest.in > conftest.out
                   7754:   rm -f conftest.in
                   7755:   mv conftest.out conftest.in
                   7756: ' >> $CONFIG_STATUS
                   7757:   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
                   7758:   rm -f conftest.vals
                   7759:   mv conftest.tail conftest.vals
                   7760: done
                   7761: rm -f conftest.vals
                   7762: 
                   7763: cat >> $CONFIG_STATUS <<\EOF
                   7764:   rm -f conftest.frag conftest.h
                   7765:   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
                   7766:   cat conftest.in >> conftest.h
                   7767:   rm -f conftest.in
                   7768:   if cmp -s $ac_file conftest.h 2>/dev/null; then
                   7769:     echo "$ac_file is unchanged"
                   7770:     rm -f conftest.h
                   7771:   else
                   7772:     # Remove last slash and all that follows it.  Not all systems have dirname.
                   7773:       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   7774:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   7775:       # The file is in a subdirectory.
                   7776:       test ! -d "$ac_dir" && mkdir "$ac_dir"
                   7777:     fi
                   7778:     rm -f $ac_file
                   7779:     mv conftest.h $ac_file
                   7780:   fi
                   7781: fi; done
                   7782: 
                   7783: EOF
                   7784: 
                   7785: cat >> $CONFIG_STATUS <<EOF
1.30      petere   7786: ac_sources="src/backend/port/dynloader/${template}.c src/backend/port/dynloader/${template}.h src/include/port/${template}.h src/makefiles/Makefile.${template} src/backend/port/tas/${tas_file}"
1.15      petere   7787: ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
1.1       petere   7788: EOF
                   7789: 
                   7790: cat >> $CONFIG_STATUS <<\EOF
                   7791: srcdir=$ac_given_srcdir
                   7792: while test -n "$ac_sources"; do
                   7793:   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
                   7794:   set $ac_sources; ac_source=$1; shift; ac_sources=$*
                   7795: 
                   7796:   echo "linking $srcdir/$ac_source to $ac_dest"
                   7797: 
                   7798:   if test ! -r $srcdir/$ac_source; then
                   7799:     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
                   7800:   fi
                   7801:   rm -f $ac_dest
                   7802: 
                   7803:   # Make relative symlinks.
                   7804:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   7805:   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
                   7806:   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
                   7807:     # The dest file is in a subdirectory.
                   7808:     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
                   7809:     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
                   7810:     # A "../" for each directory in $ac_dest_dir_suffix.
                   7811:     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
                   7812:   else
                   7813:     ac_dest_dir_suffix= ac_dots=
                   7814:   fi
                   7815: 
                   7816:   case "$srcdir" in
                   7817:   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
                   7818:   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
                   7819:   esac
                   7820: 
                   7821:   # Make a symlink if possible; otherwise try a hard link.
                   7822:   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
                   7823:     ln $srcdir/$ac_source $ac_dest; then :
                   7824:   else
                   7825:     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
                   7826:   fi
                   7827: done
                   7828: EOF
                   7829: cat >> $CONFIG_STATUS <<EOF
                   7830: 
                   7831: EOF
                   7832: cat >> $CONFIG_STATUS <<\EOF
1.44      petere   7833: echo "timestamp file" > src/include/stamp-h
1.1       petere   7834: 
                   7835: exit 0
                   7836: EOF
                   7837: chmod +x $CONFIG_STATUS
                   7838: rm -fr confdefs* $ac_clean_files
                   7839: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
                   7840: 

PostgreSQL CVSweb <[email protected]>