Annotation of sql/pgsql/configure, revision 1.8

1.1       parser      1: #! /bin/sh
                      2: 
                      3: # Guess values for system-dependent variables and create Makefiles.
                      4: # Generated automatically using autoconf version 2.13 
                      5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
                      6: #
                      7: # This configure script is free software; the Free Software Foundation
                      8: # gives unlimited permission to copy, distribute and modify it.
                      9: 
                     10: # Defaults:
                     11: ac_help=
                     12: ac_default_prefix=/usr/local
                     13: # Any additions from configure.in:
                     14: ac_help="$ac_help
1.2       parser     15:   --with-pgsql-inc[=DIR]      DIR is the PgSQL includes directory"
1.1       parser     16: ac_help="$ac_help
1.4       paf        17:   --enable-static[=PKGS]  build static libraries [default=no]"
                     18: ac_help="$ac_help
1.1       parser     19:   --enable-shared[=PKGS]  build shared libraries [default=yes]"
                     20: ac_help="$ac_help
                     21:   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
                     22: ac_help="$ac_help
                     23:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
                     24: ac_help="$ac_help
                     25:   --disable-libtool-lock  avoid locking (might break parallel builds)"
                     26: 
                     27: # Initialize some variables set by options.
                     28: # The variables have the same names as the options, with
                     29: # dashes changed to underlines.
                     30: build=NONE
                     31: cache_file=./config.cache
                     32: exec_prefix=NONE
                     33: host=NONE
                     34: no_create=
                     35: nonopt=NONE
                     36: no_recursion=
                     37: prefix=NONE
                     38: program_prefix=NONE
                     39: program_suffix=NONE
                     40: program_transform_name=s,x,x,
                     41: silent=
                     42: site=
                     43: srcdir=
                     44: target=NONE
                     45: verbose=
                     46: x_includes=NONE
                     47: x_libraries=NONE
                     48: bindir='${exec_prefix}/bin'
                     49: sbindir='${exec_prefix}/sbin'
                     50: libexecdir='${exec_prefix}/libexec'
                     51: datadir='${prefix}/share'
                     52: sysconfdir='${prefix}/etc'
                     53: sharedstatedir='${prefix}/com'
                     54: localstatedir='${prefix}/var'
                     55: libdir='${exec_prefix}/lib'
                     56: includedir='${prefix}/include'
                     57: oldincludedir='/usr/include'
                     58: infodir='${prefix}/info'
                     59: mandir='${prefix}/man'
                     60: 
                     61: # Initialize some other variables.
                     62: subdirs=
                     63: MFLAGS= MAKEFLAGS=
                     64: SHELL=${CONFIG_SHELL-/bin/sh}
                     65: # Maximum number of lines to put in a shell here document.
                     66: ac_max_here_lines=12
                     67: 
                     68: ac_prev=
                     69: for ac_option
                     70: do
                     71: 
                     72:   # If the previous option needs an argument, assign it.
                     73:   if test -n "$ac_prev"; then
                     74:     eval "$ac_prev=\$ac_option"
                     75:     ac_prev=
                     76:     continue
                     77:   fi
                     78: 
                     79:   case "$ac_option" in
                     80:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                     81:   *) ac_optarg= ;;
                     82:   esac
                     83: 
                     84:   # Accept the important Cygnus configure options, so we can diagnose typos.
                     85: 
                     86:   case "$ac_option" in
                     87: 
                     88:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                     89:     ac_prev=bindir ;;
                     90:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                     91:     bindir="$ac_optarg" ;;
                     92: 
                     93:   -build | --build | --buil | --bui | --bu)
                     94:     ac_prev=build ;;
                     95:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                     96:     build="$ac_optarg" ;;
                     97: 
                     98:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                     99:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    100:     ac_prev=cache_file ;;
                    101:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    102:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    103:     cache_file="$ac_optarg" ;;
                    104: 
                    105:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    106:     ac_prev=datadir ;;
                    107:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    108:   | --da=*)
                    109:     datadir="$ac_optarg" ;;
                    110: 
                    111:   -disable-* | --disable-*)
                    112:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
                    113:     # Reject names that are not valid shell variable names.
                    114:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    115:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    116:     fi
                    117:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    118:     eval "enable_${ac_feature}=no" ;;
                    119: 
                    120:   -enable-* | --enable-*)
                    121:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
                    122:     # Reject names that are not valid shell variable names.
                    123:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    124:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    125:     fi
                    126:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    127:     case "$ac_option" in
                    128:       *=*) ;;
                    129:       *) ac_optarg=yes ;;
                    130:     esac
                    131:     eval "enable_${ac_feature}='$ac_optarg'" ;;
                    132: 
                    133:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    134:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    135:   | --exec | --exe | --ex)
                    136:     ac_prev=exec_prefix ;;
                    137:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    138:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    139:   | --exec=* | --exe=* | --ex=*)
                    140:     exec_prefix="$ac_optarg" ;;
                    141: 
                    142:   -gas | --gas | --ga | --g)
                    143:     # Obsolete; use --with-gas.
                    144:     with_gas=yes ;;
                    145: 
                    146:   -help | --help | --hel | --he)
                    147:     # Omit some internal or obsolete options to make the list less imposing.
                    148:     # This message is too long to be a string in the A/UX 3.1 sh.
                    149:     cat << EOF
                    150: Usage: configure [options] [host]
                    151: Options: [defaults in brackets after descriptions]
                    152: Configuration:
                    153:   --cache-file=FILE       cache test results in FILE
                    154:   --help                  print this message
                    155:   --no-create             do not create output files
                    156:   --quiet, --silent       do not print \`checking...' messages
                    157:   --version               print the version of autoconf that created configure
                    158: Directory and file names:
                    159:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    160:                           [$ac_default_prefix]
                    161:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    162:                           [same as prefix]
                    163:   --bindir=DIR            user executables in DIR [EPREFIX/bin]
                    164:   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
                    165:   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
                    166:   --datadir=DIR           read-only architecture-independent data in DIR
                    167:                           [PREFIX/share]
                    168:   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
                    169:   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                    170:                           [PREFIX/com]
                    171:   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
                    172:   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
                    173:   --includedir=DIR        C header files in DIR [PREFIX/include]
                    174:   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
                    175:   --infodir=DIR           info documentation in DIR [PREFIX/info]
                    176:   --mandir=DIR            man documentation in DIR [PREFIX/man]
                    177:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
                    178:   --program-prefix=PREFIX prepend PREFIX to installed program names
                    179:   --program-suffix=SUFFIX append SUFFIX to installed program names
                    180:   --program-transform-name=PROGRAM
                    181:                           run sed PROGRAM on installed program names
                    182: EOF
                    183:     cat << EOF
                    184: Host type:
                    185:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
                    186:   --host=HOST             configure for HOST [guessed]
                    187:   --target=TARGET         configure for TARGET [TARGET=HOST]
                    188: Features and packages:
                    189:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    190:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    191:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    192:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    193:   --x-includes=DIR        X include files are in DIR
                    194:   --x-libraries=DIR       X library files are in DIR
                    195: EOF
                    196:     if test -n "$ac_help"; then
                    197:       echo "--enable and --with options recognized:$ac_help"
                    198:     fi
                    199:     exit 0 ;;
                    200: 
                    201:   -host | --host | --hos | --ho)
                    202:     ac_prev=host ;;
                    203:   -host=* | --host=* | --hos=* | --ho=*)
                    204:     host="$ac_optarg" ;;
                    205: 
                    206:   -includedir | --includedir | --includedi | --included | --include \
                    207:   | --includ | --inclu | --incl | --inc)
                    208:     ac_prev=includedir ;;
                    209:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    210:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    211:     includedir="$ac_optarg" ;;
                    212: 
                    213:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    214:     ac_prev=infodir ;;
                    215:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    216:     infodir="$ac_optarg" ;;
                    217: 
                    218:   -libdir | --libdir | --libdi | --libd)
                    219:     ac_prev=libdir ;;
                    220:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    221:     libdir="$ac_optarg" ;;
                    222: 
                    223:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    224:   | --libexe | --libex | --libe)
                    225:     ac_prev=libexecdir ;;
                    226:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    227:   | --libexe=* | --libex=* | --libe=*)
                    228:     libexecdir="$ac_optarg" ;;
                    229: 
                    230:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    231:   | --localstate | --localstat | --localsta | --localst \
                    232:   | --locals | --local | --loca | --loc | --lo)
                    233:     ac_prev=localstatedir ;;
                    234:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    235:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    236:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
                    237:     localstatedir="$ac_optarg" ;;
                    238: 
                    239:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    240:     ac_prev=mandir ;;
                    241:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    242:     mandir="$ac_optarg" ;;
                    243: 
                    244:   -nfp | --nfp | --nf)
                    245:     # Obsolete; use --without-fp.
                    246:     with_fp=no ;;
                    247: 
                    248:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    249:   | --no-cr | --no-c)
                    250:     no_create=yes ;;
                    251: 
                    252:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    253:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    254:     no_recursion=yes ;;
                    255: 
                    256:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    257:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    258:   | --oldin | --oldi | --old | --ol | --o)
                    259:     ac_prev=oldincludedir ;;
                    260:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    261:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    262:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    263:     oldincludedir="$ac_optarg" ;;
                    264: 
                    265:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    266:     ac_prev=prefix ;;
                    267:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    268:     prefix="$ac_optarg" ;;
                    269: 
                    270:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    271:   | --program-pre | --program-pr | --program-p)
                    272:     ac_prev=program_prefix ;;
                    273:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    274:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    275:     program_prefix="$ac_optarg" ;;
                    276: 
                    277:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    278:   | --program-suf | --program-su | --program-s)
                    279:     ac_prev=program_suffix ;;
                    280:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    281:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    282:     program_suffix="$ac_optarg" ;;
                    283: 
                    284:   -program-transform-name | --program-transform-name \
                    285:   | --program-transform-nam | --program-transform-na \
                    286:   | --program-transform-n | --program-transform- \
                    287:   | --program-transform | --program-transfor \
                    288:   | --program-transfo | --program-transf \
                    289:   | --program-trans | --program-tran \
                    290:   | --progr-tra | --program-tr | --program-t)
                    291:     ac_prev=program_transform_name ;;
                    292:   -program-transform-name=* | --program-transform-name=* \
                    293:   | --program-transform-nam=* | --program-transform-na=* \
                    294:   | --program-transform-n=* | --program-transform-=* \
                    295:   | --program-transform=* | --program-transfor=* \
                    296:   | --program-transfo=* | --program-transf=* \
                    297:   | --program-trans=* | --program-tran=* \
                    298:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    299:     program_transform_name="$ac_optarg" ;;
                    300: 
                    301:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    302:   | -silent | --silent | --silen | --sile | --sil)
                    303:     silent=yes ;;
                    304: 
                    305:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    306:     ac_prev=sbindir ;;
                    307:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    308:   | --sbi=* | --sb=*)
                    309:     sbindir="$ac_optarg" ;;
                    310: 
                    311:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    312:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    313:   | --sharedst | --shareds | --shared | --share | --shar \
                    314:   | --sha | --sh)
                    315:     ac_prev=sharedstatedir ;;
                    316:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    317:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    318:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    319:   | --sha=* | --sh=*)
                    320:     sharedstatedir="$ac_optarg" ;;
                    321: 
                    322:   -site | --site | --sit)
                    323:     ac_prev=site ;;
                    324:   -site=* | --site=* | --sit=*)
                    325:     site="$ac_optarg" ;;
                    326: 
                    327:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    328:     ac_prev=srcdir ;;
                    329:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    330:     srcdir="$ac_optarg" ;;
                    331: 
                    332:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    333:   | --syscon | --sysco | --sysc | --sys | --sy)
                    334:     ac_prev=sysconfdir ;;
                    335:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    336:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                    337:     sysconfdir="$ac_optarg" ;;
                    338: 
                    339:   -target | --target | --targe | --targ | --tar | --ta | --t)
                    340:     ac_prev=target ;;
                    341:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    342:     target="$ac_optarg" ;;
                    343: 
                    344:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    345:     verbose=yes ;;
                    346: 
                    347:   -version | --version | --versio | --versi | --vers)
                    348:     echo "configure generated by autoconf version 2.13"
                    349:     exit 0 ;;
                    350: 
                    351:   -with-* | --with-*)
                    352:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
                    353:     # Reject names that are not valid shell variable names.
                    354:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    355:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    356:     fi
                    357:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    358:     case "$ac_option" in
                    359:       *=*) ;;
                    360:       *) ac_optarg=yes ;;
                    361:     esac
                    362:     eval "with_${ac_package}='$ac_optarg'" ;;
                    363: 
                    364:   -without-* | --without-*)
                    365:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
                    366:     # Reject names that are not valid shell variable names.
                    367:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    368:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    369:     fi
                    370:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    371:     eval "with_${ac_package}=no" ;;
                    372: 
                    373:   --x)
                    374:     # Obsolete; use --with-x.
                    375:     with_x=yes ;;
                    376: 
                    377:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    378:   | --x-incl | --x-inc | --x-in | --x-i)
                    379:     ac_prev=x_includes ;;
                    380:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    381:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                    382:     x_includes="$ac_optarg" ;;
                    383: 
                    384:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    385:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    386:     ac_prev=x_libraries ;;
                    387:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    388:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                    389:     x_libraries="$ac_optarg" ;;
                    390: 
                    391:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    392:     ;;
                    393: 
                    394:   *)
                    395:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
                    396:       echo "configure: warning: $ac_option: invalid host type" 1>&2
                    397:     fi
                    398:     if test "x$nonopt" != xNONE; then
                    399:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
                    400:     fi
                    401:     nonopt="$ac_option"
                    402:     ;;
                    403: 
                    404:   esac
                    405: done
                    406: 
                    407: if test -n "$ac_prev"; then
                    408:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
                    409: fi
                    410: 
                    411: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                    412: 
                    413: # File descriptor usage:
                    414: # 0 standard input
                    415: # 1 file creation
                    416: # 2 errors and warnings
                    417: # 3 some systems may open it to /dev/tty
                    418: # 4 used on the Kubota Titan
                    419: # 6 checking for... messages and results
                    420: # 5 compiler messages saved in config.log
                    421: if test "$silent" = yes; then
                    422:   exec 6>/dev/null
                    423: else
                    424:   exec 6>&1
                    425: fi
                    426: exec 5>./config.log
                    427: 
                    428: echo "\
                    429: This file contains any messages produced by compilers while
                    430: running configure, to aid debugging if configure makes a mistake.
                    431: " 1>&5
                    432: 
                    433: # Strip out --no-create and --no-recursion so they do not pile up.
                    434: # Also quote any args containing shell metacharacters.
                    435: ac_configure_args=
                    436: for ac_arg
                    437: do
                    438:   case "$ac_arg" in
                    439:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    440:   | --no-cr | --no-c) ;;
                    441:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    442:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    443:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
                    444:   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                    445:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
                    446:   esac
                    447: done
                    448: 
                    449: # NLS nuisances.
                    450: # Only set these to C if already set.  These must not be set unconditionally
                    451: # because not all systems understand e.g. LANG=C (notably SCO).
                    452: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
                    453: # Non-C LC_CTYPE values break the ctype check.
                    454: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
                    455: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
                    456: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
                    457: if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
                    458: 
                    459: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    460: rm -rf conftest* confdefs.h
                    461: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    462: echo > confdefs.h
                    463: 
                    464: # A filename unique to this package, relative to the directory that
                    465: # configure is in, which we can look for to find out if srcdir is correct.
                    466: ac_unique_file=parser3pgsql.C
                    467: 
                    468: # Find the source files, if location was not specified.
                    469: if test -z "$srcdir"; then
                    470:   ac_srcdir_defaulted=yes
                    471:   # Try the directory containing this script, then its parent.
                    472:   ac_prog=$0
                    473:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
                    474:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
                    475:   srcdir=$ac_confdir
                    476:   if test ! -r $srcdir/$ac_unique_file; then
                    477:     srcdir=..
                    478:   fi
                    479: else
                    480:   ac_srcdir_defaulted=no
                    481: fi
                    482: if test ! -r $srcdir/$ac_unique_file; then
                    483:   if test "$ac_srcdir_defaulted" = yes; then
                    484:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
                    485:   else
                    486:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
                    487:   fi
                    488: fi
                    489: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
                    490: 
                    491: # Prefer explicitly selected file to automatically selected ones.
                    492: if test -z "$CONFIG_SITE"; then
                    493:   if test "x$prefix" != xNONE; then
                    494:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                    495:   else
                    496:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                    497:   fi
                    498: fi
                    499: for ac_site_file in $CONFIG_SITE; do
                    500:   if test -r "$ac_site_file"; then
                    501:     echo "loading site script $ac_site_file"
                    502:     . "$ac_site_file"
                    503:   fi
                    504: done
                    505: 
                    506: if test -r "$cache_file"; then
                    507:   echo "loading cache $cache_file"
                    508:   . $cache_file
                    509: else
                    510:   echo "creating cache $cache_file"
                    511:   > $cache_file
                    512: fi
                    513: 
                    514: ac_ext=c
                    515: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    516: ac_cpp='$CPP $CPPFLAGS'
                    517: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    518: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    519: cross_compiling=$ac_cv_prog_cc_cross
                    520: 
                    521: ac_exeext=
                    522: ac_objext=o
                    523: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
                    524:   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
                    525:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
                    526:     ac_n= ac_c='
                    527: ' ac_t='       '
                    528:   else
                    529:     ac_n=-n ac_c= ac_t=
                    530:   fi
                    531: else
                    532:   ac_n= ac_c='\c' ac_t=
                    533: fi
                    534: 
                    535: 
                    536: ac_aux_dir=
                    537: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
                    538:   if test -f $ac_dir/install-sh; then
                    539:     ac_aux_dir=$ac_dir
                    540:     ac_install_sh="$ac_aux_dir/install-sh -c"
                    541:     break
                    542:   elif test -f $ac_dir/install.sh; then
                    543:     ac_aux_dir=$ac_dir
                    544:     ac_install_sh="$ac_aux_dir/install.sh -c"
                    545:     break
                    546:   fi
                    547: done
                    548: if test -z "$ac_aux_dir"; then
                    549:   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
                    550: fi
                    551: ac_config_guess=$ac_aux_dir/config.guess
                    552: ac_config_sub=$ac_aux_dir/config.sub
                    553: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
                    554: 
                    555: # Find a good install program.  We prefer a C program (faster),
                    556: # so one script is as good as another.  But avoid the broken or
                    557: # incompatible versions:
                    558: # SysV /etc/install, /usr/sbin/install
                    559: # SunOS /usr/etc/install
                    560: # IRIX /sbin/install
                    561: # AIX /bin/install
                    562: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                    563: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                    564: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                    565: # ./install, which can be erroneously created by make from ./install.sh.
                    566: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
                    567: echo "configure:568: checking for a BSD compatible install" >&5
                    568: if test -z "$INSTALL"; then
                    569: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
                    570:   echo $ac_n "(cached) $ac_c" 1>&6
                    571: else
                    572:     IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
                    573:   for ac_dir in $PATH; do
                    574:     # Account for people who put trailing slashes in PATH elements.
                    575:     case "$ac_dir/" in
                    576:     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
                    577:     *)
                    578:       # OSF1 and SCO ODT 3.0 have their own names for install.
                    579:       # Don't use installbsd from OSF since it installs stuff as root
                    580:       # by default.
                    581:       for ac_prog in ginstall scoinst install; do
                    582:         if test -f $ac_dir/$ac_prog; then
                    583:          if test $ac_prog = install &&
                    584:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
                    585:            # AIX install.  It has an incompatible calling convention.
                    586:            :
                    587:          else
                    588:            ac_cv_path_install="$ac_dir/$ac_prog -c"
                    589:            break 2
                    590:          fi
                    591:        fi
                    592:       done
                    593:       ;;
                    594:     esac
                    595:   done
                    596:   IFS="$ac_save_IFS"
                    597: 
                    598: fi
                    599:   if test "${ac_cv_path_install+set}" = set; then
                    600:     INSTALL="$ac_cv_path_install"
                    601:   else
                    602:     # As a last resort, use the slow shell script.  We don't cache a
                    603:     # path for INSTALL within a source directory, because that will
                    604:     # break other packages using the cache if that directory is
                    605:     # removed, or if the path is relative.
                    606:     INSTALL="$ac_install_sh"
                    607:   fi
                    608: fi
                    609: echo "$ac_t""$INSTALL" 1>&6
                    610: 
                    611: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                    612: # It thinks the first close brace ends the variable substitution.
                    613: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                    614: 
                    615: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
                    616: 
                    617: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                    618: 
                    619: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
                    620: echo "configure:621: checking whether build environment is sane" >&5
                    621: # Just in case
                    622: sleep 1
                    623: echo timestamp > conftestfile
                    624: # Do `set' in a subshell so we don't clobber the current shell's
                    625: # arguments.  Must try -L first in case configure is actually a
                    626: # symlink; some systems play weird games with the mod time of symlinks
                    627: # (eg FreeBSD returns the mod time of the symlink's containing
                    628: # directory).
                    629: if (
                    630:    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
                    631:    if test "$*" = "X"; then
                    632:       # -L didn't work.
                    633:       set X `ls -t $srcdir/configure conftestfile`
                    634:    fi
                    635:    if test "$*" != "X $srcdir/configure conftestfile" \
                    636:       && test "$*" != "X conftestfile $srcdir/configure"; then
                    637: 
                    638:       # If neither matched, then we have a broken ls.  This can happen
                    639:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                    640:       # broken ls alias from the environment.  This has actually
                    641:       # happened.  Such a system could not be considered "sane".
                    642:       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
                    643: alias in your environment" 1>&2; exit 1; }
                    644:    fi
                    645: 
                    646:    test "$2" = conftestfile
                    647:    )
                    648: then
                    649:    # Ok.
                    650:    :
                    651: else
                    652:    { echo "configure: error: newly created file is older than distributed files!
                    653: Check your system clock" 1>&2; exit 1; }
                    654: fi
                    655: rm -f conftest*
                    656: echo "$ac_t""yes" 1>&6
                    657: if test "$program_transform_name" = s,x,x,; then
                    658:   program_transform_name=
                    659: else
                    660:   # Double any \ or $.  echo might interpret backslashes.
                    661:   cat <<\EOF_SED > conftestsed
                    662: s,\\,\\\\,g; s,\$,$$,g
                    663: EOF_SED
                    664:   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
                    665:   rm -f conftestsed
                    666: fi
                    667: test "$program_prefix" != NONE &&
                    668:   program_transform_name="s,^,${program_prefix},; $program_transform_name"
                    669: # Use a double $ so make ignores it.
                    670: test "$program_suffix" != NONE &&
                    671:   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
                    672: 
                    673: # sed with no file args requires a program.
                    674: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
                    675: 
                    676: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
                    677: echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5
                    678: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
                    679: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
                    680:   echo $ac_n "(cached) $ac_c" 1>&6
                    681: else
                    682:   cat > conftestmake <<\EOF
                    683: all:
                    684:        @echo 'ac_maketemp="${MAKE}"'
                    685: EOF
                    686: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                    687: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
                    688: if test -n "$ac_maketemp"; then
                    689:   eval ac_cv_prog_make_${ac_make}_set=yes
                    690: else
                    691:   eval ac_cv_prog_make_${ac_make}_set=no
                    692: fi
                    693: rm -f conftestmake
                    694: fi
                    695: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
                    696:   echo "$ac_t""yes" 1>&6
                    697:   SET_MAKE=
                    698: else
                    699:   echo "$ac_t""no" 1>&6
                    700:   SET_MAKE="MAKE=${MAKE-make}"
                    701: fi
                    702: 
                    703: 
1.5       paf       704: PACKAGE=parser3pgsql
1.1       parser    705: 
1.7       paf       706: VERSION=3.0.HEAD
1.1       parser    707: 
                    708: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
                    709:   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
                    710: fi
                    711: 
                    712: 
                    713: 
                    714: missing_dir=`cd $ac_aux_dir && pwd`
                    715: echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
                    716: echo "configure:717: checking for working aclocal" >&5
                    717: # Run test in a subshell; some versions of sh will print an error if
                    718: # an executable is not found, even if stderr is redirected.
                    719: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    720: if (aclocal --version) < /dev/null > /dev/null 2>&1; then
                    721:    ACLOCAL=aclocal
                    722:    echo "$ac_t""found" 1>&6
                    723: else
                    724:    ACLOCAL="$missing_dir/missing aclocal"
                    725:    echo "$ac_t""missing" 1>&6
                    726: fi
                    727: 
                    728: echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
                    729: echo "configure:730: checking for working autoconf" >&5
                    730: # Run test in a subshell; some versions of sh will print an error if
                    731: # an executable is not found, even if stderr is redirected.
                    732: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    733: if (autoconf --version) < /dev/null > /dev/null 2>&1; then
                    734:    AUTOCONF=autoconf
                    735:    echo "$ac_t""found" 1>&6
                    736: else
                    737:    AUTOCONF="$missing_dir/missing autoconf"
                    738:    echo "$ac_t""missing" 1>&6
                    739: fi
                    740: 
                    741: echo $ac_n "checking for working automake""... $ac_c" 1>&6
                    742: echo "configure:743: checking for working automake" >&5
                    743: # Run test in a subshell; some versions of sh will print an error if
                    744: # an executable is not found, even if stderr is redirected.
                    745: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    746: if (automake --version) < /dev/null > /dev/null 2>&1; then
                    747:    AUTOMAKE=automake
                    748:    echo "$ac_t""found" 1>&6
                    749: else
                    750:    AUTOMAKE="$missing_dir/missing automake"
                    751:    echo "$ac_t""missing" 1>&6
                    752: fi
                    753: 
                    754: echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
                    755: echo "configure:756: checking for working autoheader" >&5
                    756: # Run test in a subshell; some versions of sh will print an error if
                    757: # an executable is not found, even if stderr is redirected.
                    758: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    759: if (autoheader --version) < /dev/null > /dev/null 2>&1; then
                    760:    AUTOHEADER=autoheader
                    761:    echo "$ac_t""found" 1>&6
                    762: else
                    763:    AUTOHEADER="$missing_dir/missing autoheader"
                    764:    echo "$ac_t""missing" 1>&6
                    765: fi
                    766: 
                    767: echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
                    768: echo "configure:769: checking for working makeinfo" >&5
                    769: # Run test in a subshell; some versions of sh will print an error if
                    770: # an executable is not found, even if stderr is redirected.
                    771: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    772: if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
                    773:    MAKEINFO=makeinfo
                    774:    echo "$ac_t""found" 1>&6
                    775: else
                    776:    MAKEINFO="$missing_dir/missing makeinfo"
                    777:    echo "$ac_t""missing" 1>&6
                    778: fi
                    779: 
                    780: 
                    781: 
                    782: 
                    783: 
                    784: 
                    785: 
                    786: 
1.2       parser    787: # Check whether --with-pgsql-inc or --without-pgsql-inc was given.
1.1       parser    788: if test "${with_pgsql_inc+set}" = set; then
                    789:   withval="$with_pgsql_inc"
                    790:   :
                    791: else
                    792:   withval="/usr/local/pgsql/include"
                    793: 
                    794: fi
                    795: 
                    796: PGSQL_INC=$withval
                    797: 
                    798: 
1.2       parser    799: if test \! -f "$PGSQL_INC/libpq-fe.h"; then
                    800:        { echo "configure: error: $PGSQL_INC does not seem to be valid PgSQL includes directory" 1>&2; exit 1; }
                    801: fi
1.1       parser    802: 
                    803: # Find a good install program.  We prefer a C program (faster),
                    804: # so one script is as good as another.  But avoid the broken or
                    805: # incompatible versions:
                    806: # SysV /etc/install, /usr/sbin/install
                    807: # SunOS /usr/etc/install
                    808: # IRIX /sbin/install
                    809: # AIX /bin/install
                    810: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                    811: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                    812: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                    813: # ./install, which can be erroneously created by make from ./install.sh.
                    814: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.2       parser    815: echo "configure:816: checking for a BSD compatible install" >&5
1.1       parser    816: if test -z "$INSTALL"; then
                    817: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
                    818:   echo $ac_n "(cached) $ac_c" 1>&6
                    819: else
                    820:     IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
                    821:   for ac_dir in $PATH; do
                    822:     # Account for people who put trailing slashes in PATH elements.
                    823:     case "$ac_dir/" in
                    824:     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
                    825:     *)
                    826:       # OSF1 and SCO ODT 3.0 have their own names for install.
                    827:       # Don't use installbsd from OSF since it installs stuff as root
                    828:       # by default.
                    829:       for ac_prog in ginstall scoinst install; do
                    830:         if test -f $ac_dir/$ac_prog; then
                    831:          if test $ac_prog = install &&
                    832:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
                    833:            # AIX install.  It has an incompatible calling convention.
                    834:            :
                    835:          else
                    836:            ac_cv_path_install="$ac_dir/$ac_prog -c"
                    837:            break 2
                    838:          fi
                    839:        fi
                    840:       done
                    841:       ;;
                    842:     esac
                    843:   done
                    844:   IFS="$ac_save_IFS"
                    845: 
                    846: fi
                    847:   if test "${ac_cv_path_install+set}" = set; then
                    848:     INSTALL="$ac_cv_path_install"
                    849:   else
                    850:     # As a last resort, use the slow shell script.  We don't cache a
                    851:     # path for INSTALL within a source directory, because that will
                    852:     # break other packages using the cache if that directory is
                    853:     # removed, or if the path is relative.
                    854:     INSTALL="$ac_install_sh"
                    855:   fi
                    856: fi
                    857: echo "$ac_t""$INSTALL" 1>&6
                    858: 
                    859: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                    860: # It thinks the first close brace ends the variable substitution.
                    861: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                    862: 
                    863: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
                    864: 
                    865: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                    866: 
                    867: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.2       parser    868: echo "configure:869: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1       parser    869: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
                    870: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
                    871:   echo $ac_n "(cached) $ac_c" 1>&6
                    872: else
                    873:   cat > conftestmake <<\EOF
                    874: all:
                    875:        @echo 'ac_maketemp="${MAKE}"'
                    876: EOF
                    877: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                    878: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
                    879: if test -n "$ac_maketemp"; then
                    880:   eval ac_cv_prog_make_${ac_make}_set=yes
                    881: else
                    882:   eval ac_cv_prog_make_${ac_make}_set=no
                    883: fi
                    884: rm -f conftestmake
                    885: fi
                    886: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
                    887:   echo "$ac_t""yes" 1>&6
                    888:   SET_MAKE=
                    889: else
                    890:   echo "$ac_t""no" 1>&6
                    891:   SET_MAKE="MAKE=${MAKE-make}"
                    892: fi
                    893: 
                    894: for ac_prog in mawk gawk nawk awk
                    895: do
                    896: # Extract the first word of "$ac_prog", so it can be a program name with args.
                    897: set dummy $ac_prog; ac_word=$2
                    898: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.2       parser    899: echo "configure:900: checking for $ac_word" >&5
1.1       parser    900: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
                    901:   echo $ac_n "(cached) $ac_c" 1>&6
                    902: else
                    903:   if test -n "$AWK"; then
                    904:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                    905: else
                    906:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    907:   ac_dummy="$PATH"
                    908:   for ac_dir in $ac_dummy; do
                    909:     test -z "$ac_dir" && ac_dir=.
                    910:     if test -f $ac_dir/$ac_word; then
                    911:       ac_cv_prog_AWK="$ac_prog"
                    912:       break
                    913:     fi
                    914:   done
                    915:   IFS="$ac_save_ifs"
                    916: fi
                    917: fi
                    918: AWK="$ac_cv_prog_AWK"
                    919: if test -n "$AWK"; then
                    920:   echo "$ac_t""$AWK" 1>&6
                    921: else
                    922:   echo "$ac_t""no" 1>&6
                    923: fi
                    924: 
                    925: test -n "$AWK" && break
                    926: done
                    927: 
                    928: 
                    929: ac_ext=C
                    930: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    931: ac_cpp='$CXXCPP $CPPFLAGS'
                    932: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    933: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    934: cross_compiling=$ac_cv_prog_cxx_cross
                    935:  
                    936: for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
                    937: do
                    938: # Extract the first word of "$ac_prog", so it can be a program name with args.
                    939: set dummy $ac_prog; ac_word=$2
                    940: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.2       parser    941: echo "configure:942: checking for $ac_word" >&5
1.1       parser    942: if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
                    943:   echo $ac_n "(cached) $ac_c" 1>&6
                    944: else
                    945:   if test -n "$CXX"; then
                    946:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
                    947: else
                    948:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    949:   ac_dummy="$PATH"
                    950:   for ac_dir in $ac_dummy; do
                    951:     test -z "$ac_dir" && ac_dir=.
                    952:     if test -f $ac_dir/$ac_word; then
                    953:       ac_cv_prog_CXX="$ac_prog"
                    954:       break
                    955:     fi
                    956:   done
                    957:   IFS="$ac_save_ifs"
                    958: fi
                    959: fi
                    960: CXX="$ac_cv_prog_CXX"
                    961: if test -n "$CXX"; then
                    962:   echo "$ac_t""$CXX" 1>&6
                    963: else
                    964:   echo "$ac_t""no" 1>&6
                    965: fi
                    966: 
                    967: test -n "$CXX" && break
                    968: done
                    969: test -n "$CXX" || CXX="gcc"
                    970: 
                    971: 
                    972: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.2       parser    973: echo "configure:974: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1.1       parser    974: 
                    975: ac_ext=C
                    976: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    977: ac_cpp='$CXXCPP $CPPFLAGS'
                    978: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    979: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    980: cross_compiling=$ac_cv_prog_cxx_cross
                    981: 
                    982: cat > conftest.$ac_ext << EOF
                    983: 
1.2       parser    984: #line 985 "configure"
1.1       parser    985: #include "confdefs.h"
                    986: 
                    987: int main(){return(0);}
                    988: EOF
1.2       parser    989: if { (eval echo configure:990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       parser    990:   ac_cv_prog_cxx_works=yes
                    991:   # If we can't run a trivial program, we are probably using a cross compiler.
                    992:   if (./conftest; exit) 2>/dev/null; then
                    993:     ac_cv_prog_cxx_cross=no
                    994:   else
                    995:     ac_cv_prog_cxx_cross=yes
                    996:   fi
                    997: else
                    998:   echo "configure: failed program was:" >&5
                    999:   cat conftest.$ac_ext >&5
                   1000:   ac_cv_prog_cxx_works=no
                   1001: fi
                   1002: rm -fr conftest*
                   1003: ac_ext=C
                   1004: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1005: ac_cpp='$CXXCPP $CPPFLAGS'
                   1006: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1007: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1008: cross_compiling=$ac_cv_prog_cxx_cross
                   1009: 
                   1010: echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
                   1011: if test $ac_cv_prog_cxx_works = no; then
                   1012:   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
                   1013: fi
                   1014: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.2       parser   1015: echo "configure:1016: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1       parser   1016: echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
                   1017: cross_compiling=$ac_cv_prog_cxx_cross
                   1018: 
                   1019: echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1.2       parser   1020: echo "configure:1021: checking whether we are using GNU C++" >&5
1.1       parser   1021: if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
                   1022:   echo $ac_n "(cached) $ac_c" 1>&6
                   1023: else
                   1024:   cat > conftest.C <<EOF
                   1025: #ifdef __GNUC__
                   1026:   yes;
                   1027: #endif
                   1028: EOF
1.2       parser   1029: if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       parser   1030:   ac_cv_prog_gxx=yes
                   1031: else
                   1032:   ac_cv_prog_gxx=no
                   1033: fi
                   1034: fi
                   1035: 
                   1036: echo "$ac_t""$ac_cv_prog_gxx" 1>&6
                   1037: 
                   1038: if test $ac_cv_prog_gxx = yes; then
                   1039:   GXX=yes
                   1040: else
                   1041:   GXX=
                   1042: fi
                   1043: 
                   1044: ac_test_CXXFLAGS="${CXXFLAGS+set}"
                   1045: ac_save_CXXFLAGS="$CXXFLAGS"
                   1046: CXXFLAGS=
                   1047: echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1.2       parser   1048: echo "configure:1049: checking whether ${CXX-g++} accepts -g" >&5
1.1       parser   1049: if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
                   1050:   echo $ac_n "(cached) $ac_c" 1>&6
                   1051: else
                   1052:   echo 'void f(){}' > conftest.cc
                   1053: if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
                   1054:   ac_cv_prog_cxx_g=yes
                   1055: else
                   1056:   ac_cv_prog_cxx_g=no
                   1057: fi
                   1058: rm -f conftest*
                   1059: 
                   1060: fi
                   1061: 
                   1062: echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
                   1063: if test "$ac_test_CXXFLAGS" = set; then
                   1064:   CXXFLAGS="$ac_save_CXXFLAGS"
                   1065: elif test $ac_cv_prog_cxx_g = yes; then
                   1066:   if test "$GXX" = yes; then
                   1067:     CXXFLAGS="-g -O2"
                   1068:   else
                   1069:     CXXFLAGS="-g"
                   1070:   fi
                   1071: else
                   1072:   if test "$GXX" = yes; then
                   1073:     CXXFLAGS="-O2"
                   1074:   else
                   1075:     CXXFLAGS=
                   1076:   fi
                   1077: fi
                   1078: 
                   1079: 
                   1080:   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
                   1081:   INCLTDL='-I${top_srcdir}/''libltdl'
                   1082: 
                   1083: 
                   1084: 
                   1085: 
                   1086: 
1.4       paf      1087: # Check whether --enable-static or --disable-static was given.
                   1088: if test "${enable_static+set}" = set; then
                   1089:   enableval="$enable_static"
1.1       parser   1090:   p=${PACKAGE-default}
                   1091: case "$enableval" in
1.4       paf      1092: yes) enable_static=yes ;;
                   1093: no) enable_static=no ;;
1.1       parser   1094: *)
1.4       paf      1095:   enable_static=no
1.1       parser   1096:   # Look at the argument we got.  We use all the common list separators.
                   1097:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
                   1098:   for pkg in $enableval; do
                   1099:     if test "X$pkg" = "X$p"; then
1.4       paf      1100:       enable_static=yes
1.1       parser   1101:     fi
                   1102:   done
                   1103:   IFS="$ac_save_ifs"
                   1104:   ;;
                   1105: esac
                   1106: else
1.4       paf      1107:   enable_static=no
1.1       parser   1108: fi
                   1109: 
1.6       paf      1110: 
1.4       paf      1111: # Check whether --enable-shared or --disable-shared was given.
                   1112: if test "${enable_shared+set}" = set; then
                   1113:   enableval="$enable_shared"
1.1       parser   1114:   p=${PACKAGE-default}
                   1115: case "$enableval" in
1.4       paf      1116: yes) enable_shared=yes ;;
                   1117: no) enable_shared=no ;;
1.1       parser   1118: *)
1.4       paf      1119:   enable_shared=no
1.1       parser   1120:   # Look at the argument we got.  We use all the common list separators.
                   1121:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
                   1122:   for pkg in $enableval; do
                   1123:     if test "X$pkg" = "X$p"; then
1.4       paf      1124:       enable_shared=yes
1.1       parser   1125:     fi
                   1126:   done
                   1127:   IFS="$ac_save_ifs"
                   1128:   ;;
                   1129: esac
                   1130: else
1.4       paf      1131:   enable_shared=yes
1.1       parser   1132: fi
                   1133: 
                   1134: # Check whether --enable-fast-install or --disable-fast-install was given.
                   1135: if test "${enable_fast_install+set}" = set; then
                   1136:   enableval="$enable_fast_install"
                   1137:   p=${PACKAGE-default}
                   1138: case "$enableval" in
                   1139: yes) enable_fast_install=yes ;;
                   1140: no) enable_fast_install=no ;;
                   1141: *)
                   1142:   enable_fast_install=no
                   1143:   # Look at the argument we got.  We use all the common list separators.
                   1144:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
                   1145:   for pkg in $enableval; do
                   1146:     if test "X$pkg" = "X$p"; then
                   1147:       enable_fast_install=yes
                   1148:     fi
                   1149:   done
                   1150:   IFS="$ac_save_ifs"
                   1151:   ;;
                   1152: esac
                   1153: else
                   1154:   enable_fast_install=yes
                   1155: fi
                   1156: 
                   1157: 
                   1158: # Make sure we can run config.sub.
                   1159: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
                   1160: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
                   1161: fi
                   1162: 
                   1163: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.6       paf      1164: echo "configure:1165: checking host system type" >&5
1.1       parser   1165: 
                   1166: host_alias=$host
                   1167: case "$host_alias" in
                   1168: NONE)
                   1169:   case $nonopt in
                   1170:   NONE)
                   1171:     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
                   1172:     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
                   1173:     fi ;;
                   1174:   *) host_alias=$nonopt ;;
                   1175:   esac ;;
                   1176: esac
                   1177: 
                   1178: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
                   1179: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   1180: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   1181: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   1182: echo "$ac_t""$host" 1>&6
                   1183: 
                   1184: echo $ac_n "checking build system type""... $ac_c" 1>&6
1.6       paf      1185: echo "configure:1186: checking build system type" >&5
1.1       parser   1186: 
                   1187: build_alias=$build
                   1188: case "$build_alias" in
                   1189: NONE)
                   1190:   case $nonopt in
                   1191:   NONE) build_alias=$host_alias ;;
                   1192:   *) build_alias=$nonopt ;;
                   1193:   esac ;;
                   1194: esac
                   1195: 
                   1196: build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
                   1197: build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   1198: build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   1199: build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   1200: echo "$ac_t""$build" 1>&6
                   1201: 
                   1202: # Extract the first word of "ranlib", so it can be a program name with args.
                   1203: set dummy ranlib; ac_word=$2
                   1204: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.6       paf      1205: echo "configure:1206: checking for $ac_word" >&5
1.1       parser   1206: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
                   1207:   echo $ac_n "(cached) $ac_c" 1>&6
                   1208: else
                   1209:   if test -n "$RANLIB"; then
                   1210:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   1211: else
                   1212:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1213:   ac_dummy="$PATH"
                   1214:   for ac_dir in $ac_dummy; do
                   1215:     test -z "$ac_dir" && ac_dir=.
                   1216:     if test -f $ac_dir/$ac_word; then
                   1217:       ac_cv_prog_RANLIB="ranlib"
                   1218:       break
                   1219:     fi
                   1220:   done
                   1221:   IFS="$ac_save_ifs"
                   1222:   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
                   1223: fi
                   1224: fi
                   1225: RANLIB="$ac_cv_prog_RANLIB"
                   1226: if test -n "$RANLIB"; then
                   1227:   echo "$ac_t""$RANLIB" 1>&6
                   1228: else
                   1229:   echo "$ac_t""no" 1>&6
                   1230: fi
                   1231: 
                   1232: # Extract the first word of "gcc", so it can be a program name with args.
                   1233: set dummy gcc; ac_word=$2
                   1234: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.6       paf      1235: echo "configure:1236: checking for $ac_word" >&5
1.1       parser   1236: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1237:   echo $ac_n "(cached) $ac_c" 1>&6
                   1238: else
                   1239:   if test -n "$CC"; then
                   1240:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1241: else
                   1242:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1243:   ac_dummy="$PATH"
                   1244:   for ac_dir in $ac_dummy; do
                   1245:     test -z "$ac_dir" && ac_dir=.
                   1246:     if test -f $ac_dir/$ac_word; then
                   1247:       ac_cv_prog_CC="gcc"
                   1248:       break
                   1249:     fi
                   1250:   done
                   1251:   IFS="$ac_save_ifs"
                   1252: fi
                   1253: fi
                   1254: CC="$ac_cv_prog_CC"
                   1255: if test -n "$CC"; then
                   1256:   echo "$ac_t""$CC" 1>&6
                   1257: else
                   1258:   echo "$ac_t""no" 1>&6
                   1259: fi
                   1260: 
                   1261: if test -z "$CC"; then
                   1262:   # Extract the first word of "cc", so it can be a program name with args.
                   1263: set dummy cc; ac_word=$2
                   1264: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.6       paf      1265: echo "configure:1266: checking for $ac_word" >&5
1.1       parser   1266: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1267:   echo $ac_n "(cached) $ac_c" 1>&6
                   1268: else
                   1269:   if test -n "$CC"; then
                   1270:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1271: else
                   1272:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1273:   ac_prog_rejected=no
                   1274:   ac_dummy="$PATH"
                   1275:   for ac_dir in $ac_dummy; do
                   1276:     test -z "$ac_dir" && ac_dir=.
                   1277:     if test -f $ac_dir/$ac_word; then
                   1278:       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
                   1279:         ac_prog_rejected=yes
                   1280:        continue
                   1281:       fi
                   1282:       ac_cv_prog_CC="cc"
                   1283:       break
                   1284:     fi
                   1285:   done
                   1286:   IFS="$ac_save_ifs"
                   1287: if test $ac_prog_rejected = yes; then
                   1288:   # We found a bogon in the path, so make sure we never use it.
                   1289:   set dummy $ac_cv_prog_CC
                   1290:   shift
                   1291:   if test $# -gt 0; then
                   1292:     # We chose a different compiler from the bogus one.
                   1293:     # However, it has the same basename, so the bogon will be chosen
                   1294:     # first if we set CC to just the basename; use the full file name.
                   1295:     shift
                   1296:     set dummy "$ac_dir/$ac_word" "$@"
                   1297:     shift
                   1298:     ac_cv_prog_CC="$@"
                   1299:   fi
                   1300: fi
                   1301: fi
                   1302: fi
                   1303: CC="$ac_cv_prog_CC"
                   1304: if test -n "$CC"; then
                   1305:   echo "$ac_t""$CC" 1>&6
                   1306: else
                   1307:   echo "$ac_t""no" 1>&6
                   1308: fi
                   1309: 
                   1310:   if test -z "$CC"; then
                   1311:     case "`uname -s`" in
                   1312:     *win32* | *WIN32*)
                   1313:       # Extract the first word of "cl", so it can be a program name with args.
                   1314: set dummy cl; ac_word=$2
                   1315: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.6       paf      1316: echo "configure:1317: checking for $ac_word" >&5
1.1       parser   1317: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1318:   echo $ac_n "(cached) $ac_c" 1>&6
                   1319: else
                   1320:   if test -n "$CC"; then
                   1321:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1322: else
                   1323:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1324:   ac_dummy="$PATH"
                   1325:   for ac_dir in $ac_dummy; do
                   1326:     test -z "$ac_dir" && ac_dir=.
                   1327:     if test -f $ac_dir/$ac_word; then
                   1328:       ac_cv_prog_CC="cl"
                   1329:       break
                   1330:     fi
                   1331:   done
                   1332:   IFS="$ac_save_ifs"
                   1333: fi
                   1334: fi
                   1335: CC="$ac_cv_prog_CC"
                   1336: if test -n "$CC"; then
                   1337:   echo "$ac_t""$CC" 1>&6
                   1338: else
                   1339:   echo "$ac_t""no" 1>&6
                   1340: fi
                   1341:  ;;
                   1342:     esac
                   1343:   fi
                   1344:   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
                   1345: fi
                   1346: 
                   1347: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.6       paf      1348: echo "configure:1349: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1       parser   1349: 
                   1350: ac_ext=c
                   1351: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1352: ac_cpp='$CPP $CPPFLAGS'
                   1353: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1354: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1355: cross_compiling=$ac_cv_prog_cc_cross
                   1356: 
                   1357: cat > conftest.$ac_ext << EOF
                   1358: 
1.6       paf      1359: #line 1360 "configure"
1.1       parser   1360: #include "confdefs.h"
                   1361: 
                   1362: main(){return(0);}
                   1363: EOF
1.6       paf      1364: if { (eval echo configure:1365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       parser   1365:   ac_cv_prog_cc_works=yes
                   1366:   # If we can't run a trivial program, we are probably using a cross compiler.
                   1367:   if (./conftest; exit) 2>/dev/null; then
                   1368:     ac_cv_prog_cc_cross=no
                   1369:   else
                   1370:     ac_cv_prog_cc_cross=yes
                   1371:   fi
                   1372: else
                   1373:   echo "configure: failed program was:" >&5
                   1374:   cat conftest.$ac_ext >&5
                   1375:   ac_cv_prog_cc_works=no
                   1376: fi
                   1377: rm -fr conftest*
                   1378: ac_ext=C
                   1379: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1380: ac_cpp='$CXXCPP $CPPFLAGS'
                   1381: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1382: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1383: cross_compiling=$ac_cv_prog_cxx_cross
                   1384: 
                   1385: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
                   1386: if test $ac_cv_prog_cc_works = no; then
                   1387:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
                   1388: fi
                   1389: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.6       paf      1390: echo "configure:1391: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1       parser   1391: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
                   1392: cross_compiling=$ac_cv_prog_cc_cross
                   1393: 
                   1394: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.6       paf      1395: echo "configure:1396: checking whether we are using GNU C" >&5
1.1       parser   1396: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
                   1397:   echo $ac_n "(cached) $ac_c" 1>&6
                   1398: else
                   1399:   cat > conftest.c <<EOF
                   1400: #ifdef __GNUC__
                   1401:   yes;
                   1402: #endif
                   1403: EOF
1.6       paf      1404: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       parser   1405:   ac_cv_prog_gcc=yes
                   1406: else
                   1407:   ac_cv_prog_gcc=no
                   1408: fi
                   1409: fi
                   1410: 
                   1411: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
                   1412: 
                   1413: if test $ac_cv_prog_gcc = yes; then
                   1414:   GCC=yes
                   1415: else
                   1416:   GCC=
                   1417: fi
                   1418: 
                   1419: ac_test_CFLAGS="${CFLAGS+set}"
                   1420: ac_save_CFLAGS="$CFLAGS"
                   1421: CFLAGS=
                   1422: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.6       paf      1423: echo "configure:1424: checking whether ${CC-cc} accepts -g" >&5
1.1       parser   1424: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
                   1425:   echo $ac_n "(cached) $ac_c" 1>&6
                   1426: else
                   1427:   echo 'void f(){}' > conftest.c
                   1428: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
                   1429:   ac_cv_prog_cc_g=yes
                   1430: else
                   1431:   ac_cv_prog_cc_g=no
                   1432: fi
                   1433: rm -f conftest*
                   1434: 
                   1435: fi
                   1436: 
                   1437: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
                   1438: if test "$ac_test_CFLAGS" = set; then
                   1439:   CFLAGS="$ac_save_CFLAGS"
                   1440: elif test $ac_cv_prog_cc_g = yes; then
                   1441:   if test "$GCC" = yes; then
                   1442:     CFLAGS="-g -O2"
                   1443:   else
                   1444:     CFLAGS="-g"
                   1445:   fi
                   1446: else
                   1447:   if test "$GCC" = yes; then
                   1448:     CFLAGS="-O2"
                   1449:   else
                   1450:     CFLAGS=
                   1451:   fi
                   1452: fi
                   1453: 
                   1454: # Check whether --with-gnu-ld or --without-gnu-ld was given.
                   1455: if test "${with_gnu_ld+set}" = set; then
                   1456:   withval="$with_gnu_ld"
                   1457:   test "$withval" = no || with_gnu_ld=yes
                   1458: else
                   1459:   with_gnu_ld=no
                   1460: fi
                   1461: 
                   1462: ac_prog=ld
                   1463: if test "$ac_cv_prog_gcc" = yes; then
                   1464:   # Check if gcc -print-prog-name=ld gives a path.
                   1465:   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1.6       paf      1466: echo "configure:1467: checking for ld used by GCC" >&5
1.1       parser   1467:   ac_prog=`($CC -print-prog-name=ld) 2>&5`
                   1468:   case "$ac_prog" in
                   1469:     # Accept absolute paths.
                   1470:     [\\/]* | [A-Za-z]:[\\/]*)
                   1471:       re_direlt='/[^/][^/]*/\.\./'
                   1472:       # Canonicalize the path of ld
                   1473:       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
                   1474:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
                   1475:        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
                   1476:       done
                   1477:       test -z "$LD" && LD="$ac_prog"
                   1478:       ;;
                   1479:   "")
                   1480:     # If it fails, then pretend we aren't using GCC.
                   1481:     ac_prog=ld
                   1482:     ;;
                   1483:   *)
                   1484:     # If it is relative, then search for the first ld in PATH.
                   1485:     with_gnu_ld=unknown
                   1486:     ;;
                   1487:   esac
                   1488: elif test "$with_gnu_ld" = yes; then
                   1489:   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1.6       paf      1490: echo "configure:1491: checking for GNU ld" >&5
1.1       parser   1491: else
                   1492:   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1.6       paf      1493: echo "configure:1494: checking for non-GNU ld" >&5
1.1       parser   1494: fi
                   1495: if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
                   1496:   echo $ac_n "(cached) $ac_c" 1>&6
                   1497: else
                   1498:   if test -z "$LD"; then
                   1499:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
                   1500:   for ac_dir in $PATH; do
                   1501:     test -z "$ac_dir" && ac_dir=.
                   1502:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                   1503:       ac_cv_path_LD="$ac_dir/$ac_prog"
                   1504:       # Check to see if the program is GNU ld.  I'd rather use --version,
                   1505:       # but apparently some GNU ld's only accept -v.
                   1506:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   1507:       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
                   1508:        test "$with_gnu_ld" != no && break
                   1509:       else
                   1510:        test "$with_gnu_ld" != yes && break
                   1511:       fi
                   1512:     fi
                   1513:   done
                   1514:   IFS="$ac_save_ifs"
                   1515: else
                   1516:   ac_cv_path_LD="$LD" # Let the user override the test with a path.
                   1517: fi
                   1518: fi
                   1519: 
                   1520: LD="$ac_cv_path_LD"
                   1521: if test -n "$LD"; then
                   1522:   echo "$ac_t""$LD" 1>&6
                   1523: else
                   1524:   echo "$ac_t""no" 1>&6
                   1525: fi
                   1526: test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
                   1527: echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1.6       paf      1528: echo "configure:1529: checking if the linker ($LD) is GNU ld" >&5
1.1       parser   1529: if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
                   1530:   echo $ac_n "(cached) $ac_c" 1>&6
                   1531: else
                   1532:   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
                   1533: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
                   1534:   ac_cv_prog_gnu_ld=yes
                   1535: else
                   1536:   ac_cv_prog_gnu_ld=no
                   1537: fi
                   1538: fi
                   1539: 
                   1540: echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
                   1541: 
                   1542: 
                   1543: echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1.6       paf      1544: echo "configure:1545: checking for BSD-compatible nm" >&5
1.1       parser   1545: if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
                   1546:   echo $ac_n "(cached) $ac_c" 1>&6
                   1547: else
                   1548:   if test -n "$NM"; then
                   1549:   # Let the user override the test.
                   1550:   ac_cv_path_NM="$NM"
                   1551: else
                   1552:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
                   1553:   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
                   1554:     test -z "$ac_dir" && ac_dir=.
                   1555:     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
                   1556:       # Check to see if the nm accepts a BSD-compat flag.
                   1557:       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
                   1558:       #   nm: unknown option "B" ignored
                   1559:       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
                   1560:        ac_cv_path_NM="$ac_dir/nm -B"
                   1561:        break
                   1562:       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
                   1563:        ac_cv_path_NM="$ac_dir/nm -p"
                   1564:        break
                   1565:       else
                   1566:        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
                   1567:        continue # so that we can try to find one that supports BSD flags
                   1568:       fi
                   1569:     fi
                   1570:   done
                   1571:   IFS="$ac_save_ifs"
                   1572:   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
                   1573: fi
                   1574: fi
                   1575: 
                   1576: NM="$ac_cv_path_NM"
                   1577: echo "$ac_t""$NM" 1>&6
                   1578: 
                   1579: echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1.6       paf      1580: echo "configure:1581: checking whether ln -s works" >&5
1.1       parser   1581: if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
                   1582:   echo $ac_n "(cached) $ac_c" 1>&6
                   1583: else
                   1584:   rm -f conftestdata
                   1585: if ln -s X conftestdata 2>/dev/null
                   1586: then
                   1587:   rm -f conftestdata
                   1588:   ac_cv_prog_LN_S="ln -s"
                   1589: else
                   1590:   ac_cv_prog_LN_S=ln
                   1591: fi
                   1592: fi
                   1593: LN_S="$ac_cv_prog_LN_S"
                   1594: if test "$ac_cv_prog_LN_S" = "ln -s"; then
                   1595:   echo "$ac_t""yes" 1>&6
                   1596: else
                   1597:   echo "$ac_t""no" 1>&6
                   1598: fi
                   1599: 
1.6       paf      1600: if test $host != $build; then
                   1601:   ac_tool_prefix=${host_alias}-
                   1602: else
                   1603:   ac_tool_prefix=
                   1604: fi
                   1605: 
1.1       parser   1606: 
                   1607: case "$target" in
                   1608: NONE) lt_target="$host" ;;
                   1609: *) lt_target="$target" ;;
                   1610: esac
                   1611: 
                   1612: # Check for any special flags to pass to ltconfig.
                   1613: libtool_flags="--cache-file=$cache_file"
                   1614: test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
                   1615: test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
                   1616: test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
                   1617: test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
                   1618: test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
                   1619: libtool_flags="$libtool_flags --enable-dlopen"
1.6       paf      1620: libtool_flags="$libtool_flags --enable-win32-dll"
1.1       parser   1621: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
                   1622: if test "${enable_libtool_lock+set}" = set; then
                   1623:   enableval="$enable_libtool_lock"
                   1624:   :
                   1625: fi
                   1626: 
                   1627: test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
                   1628: test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
                   1629: 
                   1630: # Some flags need to be propagated to the compiler or linker for good
                   1631: # libtool support.
                   1632: case "$lt_target" in
                   1633: *-*-irix6*)
                   1634:   # Find out which ABI we are using.
1.6       paf      1635:   echo '#line 1636 "configure"' > conftest.$ac_ext
                   1636:   if { (eval echo configure:1637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       parser   1637:     case "`/usr/bin/file conftest.o`" in
                   1638:     *32-bit*)
                   1639:       LD="${LD-ld} -32"
                   1640:       ;;
                   1641:     *N32*)
                   1642:       LD="${LD-ld} -n32"
                   1643:       ;;
                   1644:     *64-bit*)
                   1645:       LD="${LD-ld} -64"
                   1646:       ;;
                   1647:     esac
                   1648:   fi
                   1649:   rm -rf conftest*
                   1650:   ;;
                   1651: 
                   1652: *-*-sco3.2v5*)
                   1653:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
                   1654:   SAVE_CFLAGS="$CFLAGS"
                   1655:   CFLAGS="$CFLAGS -belf"
                   1656:   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1.6       paf      1657: echo "configure:1658: checking whether the C compiler needs -belf" >&5
1.1       parser   1658: if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
                   1659:   echo $ac_n "(cached) $ac_c" 1>&6
                   1660: else
                   1661:   cat > conftest.$ac_ext <<EOF
1.6       paf      1662: #line 1663 "configure"
1.1       parser   1663: #include "confdefs.h"
                   1664: 
                   1665: int main() {
                   1666: 
                   1667: ; return 0; }
                   1668: EOF
1.6       paf      1669: if { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       parser   1670:   rm -rf conftest*
                   1671:   lt_cv_cc_needs_belf=yes
                   1672: else
                   1673:   echo "configure: failed program was:" >&5
                   1674:   cat conftest.$ac_ext >&5
                   1675:   rm -rf conftest*
                   1676:   lt_cv_cc_needs_belf=no
                   1677: fi
                   1678: rm -f conftest*
                   1679: fi
                   1680: 
                   1681: echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
                   1682:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
                   1683:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
                   1684:     CFLAGS="$SAVE_CFLAGS"
                   1685:   fi
                   1686:   ;;
                   1687: 
1.6       paf      1688: *-*-cygwin* | *-*-mingw*)
                   1689:   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
                   1690: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
                   1691: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   1692: echo "configure:1693: checking for $ac_word" >&5
                   1693: if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
                   1694:   echo $ac_n "(cached) $ac_c" 1>&6
                   1695: else
                   1696:   if test -n "$DLLTOOL"; then
                   1697:   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
                   1698: else
                   1699:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1700:   ac_dummy="$PATH"
                   1701:   for ac_dir in $ac_dummy; do
                   1702:     test -z "$ac_dir" && ac_dir=.
                   1703:     if test -f $ac_dir/$ac_word; then
                   1704:       ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
                   1705:       break
                   1706:     fi
                   1707:   done
                   1708:   IFS="$ac_save_ifs"
                   1709: fi
                   1710: fi
                   1711: DLLTOOL="$ac_cv_prog_DLLTOOL"
                   1712: if test -n "$DLLTOOL"; then
                   1713:   echo "$ac_t""$DLLTOOL" 1>&6
                   1714: else
                   1715:   echo "$ac_t""no" 1>&6
                   1716: fi
                   1717: 
                   1718: 
                   1719: if test -z "$ac_cv_prog_DLLTOOL"; then
                   1720: if test -n "$ac_tool_prefix"; then
                   1721:   # Extract the first word of "dlltool", so it can be a program name with args.
                   1722: set dummy dlltool; ac_word=$2
                   1723: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   1724: echo "configure:1725: checking for $ac_word" >&5
                   1725: if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
                   1726:   echo $ac_n "(cached) $ac_c" 1>&6
                   1727: else
                   1728:   if test -n "$DLLTOOL"; then
                   1729:   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
                   1730: else
                   1731:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1732:   ac_dummy="$PATH"
                   1733:   for ac_dir in $ac_dummy; do
                   1734:     test -z "$ac_dir" && ac_dir=.
                   1735:     if test -f $ac_dir/$ac_word; then
                   1736:       ac_cv_prog_DLLTOOL="dlltool"
                   1737:       break
                   1738:     fi
                   1739:   done
                   1740:   IFS="$ac_save_ifs"
                   1741:   test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
                   1742: fi
                   1743: fi
                   1744: DLLTOOL="$ac_cv_prog_DLLTOOL"
                   1745: if test -n "$DLLTOOL"; then
                   1746:   echo "$ac_t""$DLLTOOL" 1>&6
                   1747: else
                   1748:   echo "$ac_t""no" 1>&6
                   1749: fi
                   1750: 
                   1751: else
                   1752:   DLLTOOL="false"
                   1753: fi
                   1754: fi
                   1755: 
                   1756:   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
                   1757: set dummy ${ac_tool_prefix}as; ac_word=$2
                   1758: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   1759: echo "configure:1760: checking for $ac_word" >&5
                   1760: if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
                   1761:   echo $ac_n "(cached) $ac_c" 1>&6
                   1762: else
                   1763:   if test -n "$AS"; then
                   1764:   ac_cv_prog_AS="$AS" # Let the user override the test.
                   1765: else
                   1766:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1767:   ac_dummy="$PATH"
                   1768:   for ac_dir in $ac_dummy; do
                   1769:     test -z "$ac_dir" && ac_dir=.
                   1770:     if test -f $ac_dir/$ac_word; then
                   1771:       ac_cv_prog_AS="${ac_tool_prefix}as"
                   1772:       break
                   1773:     fi
                   1774:   done
                   1775:   IFS="$ac_save_ifs"
                   1776: fi
                   1777: fi
                   1778: AS="$ac_cv_prog_AS"
                   1779: if test -n "$AS"; then
                   1780:   echo "$ac_t""$AS" 1>&6
                   1781: else
                   1782:   echo "$ac_t""no" 1>&6
                   1783: fi
                   1784: 
                   1785: 
                   1786: if test -z "$ac_cv_prog_AS"; then
                   1787: if test -n "$ac_tool_prefix"; then
                   1788:   # Extract the first word of "as", so it can be a program name with args.
                   1789: set dummy as; ac_word=$2
                   1790: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   1791: echo "configure:1792: checking for $ac_word" >&5
                   1792: if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
                   1793:   echo $ac_n "(cached) $ac_c" 1>&6
                   1794: else
                   1795:   if test -n "$AS"; then
                   1796:   ac_cv_prog_AS="$AS" # Let the user override the test.
                   1797: else
                   1798:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1799:   ac_dummy="$PATH"
                   1800:   for ac_dir in $ac_dummy; do
                   1801:     test -z "$ac_dir" && ac_dir=.
                   1802:     if test -f $ac_dir/$ac_word; then
                   1803:       ac_cv_prog_AS="as"
                   1804:       break
                   1805:     fi
                   1806:   done
                   1807:   IFS="$ac_save_ifs"
                   1808:   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
                   1809: fi
                   1810: fi
                   1811: AS="$ac_cv_prog_AS"
                   1812: if test -n "$AS"; then
                   1813:   echo "$ac_t""$AS" 1>&6
                   1814: else
                   1815:   echo "$ac_t""no" 1>&6
                   1816: fi
                   1817: 
                   1818: else
                   1819:   AS="false"
                   1820: fi
                   1821: fi
                   1822: 
                   1823:   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
                   1824: set dummy ${ac_tool_prefix}objdump; ac_word=$2
                   1825: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   1826: echo "configure:1827: checking for $ac_word" >&5
                   1827: if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
                   1828:   echo $ac_n "(cached) $ac_c" 1>&6
                   1829: else
                   1830:   if test -n "$OBJDUMP"; then
                   1831:   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
                   1832: else
                   1833:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1834:   ac_dummy="$PATH"
                   1835:   for ac_dir in $ac_dummy; do
                   1836:     test -z "$ac_dir" && ac_dir=.
                   1837:     if test -f $ac_dir/$ac_word; then
                   1838:       ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
                   1839:       break
                   1840:     fi
                   1841:   done
                   1842:   IFS="$ac_save_ifs"
                   1843: fi
                   1844: fi
                   1845: OBJDUMP="$ac_cv_prog_OBJDUMP"
                   1846: if test -n "$OBJDUMP"; then
                   1847:   echo "$ac_t""$OBJDUMP" 1>&6
                   1848: else
                   1849:   echo "$ac_t""no" 1>&6
                   1850: fi
                   1851: 
                   1852: 
                   1853: if test -z "$ac_cv_prog_OBJDUMP"; then
                   1854: if test -n "$ac_tool_prefix"; then
                   1855:   # Extract the first word of "objdump", so it can be a program name with args.
                   1856: set dummy objdump; ac_word=$2
                   1857: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   1858: echo "configure:1859: checking for $ac_word" >&5
                   1859: if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
                   1860:   echo $ac_n "(cached) $ac_c" 1>&6
                   1861: else
                   1862:   if test -n "$OBJDUMP"; then
                   1863:   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
                   1864: else
                   1865:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1866:   ac_dummy="$PATH"
                   1867:   for ac_dir in $ac_dummy; do
                   1868:     test -z "$ac_dir" && ac_dir=.
                   1869:     if test -f $ac_dir/$ac_word; then
                   1870:       ac_cv_prog_OBJDUMP="objdump"
                   1871:       break
                   1872:     fi
                   1873:   done
                   1874:   IFS="$ac_save_ifs"
                   1875:   test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
                   1876: fi
                   1877: fi
                   1878: OBJDUMP="$ac_cv_prog_OBJDUMP"
                   1879: if test -n "$OBJDUMP"; then
                   1880:   echo "$ac_t""$OBJDUMP" 1>&6
                   1881: else
                   1882:   echo "$ac_t""no" 1>&6
                   1883: fi
                   1884: 
                   1885: else
                   1886:   OBJDUMP="false"
                   1887: fi
                   1888: fi
                   1889: 
                   1890:   ;;
1.1       parser   1891: 
                   1892: esac
                   1893: 
                   1894: 
                   1895: # Save cache, so that ltconfig can load it
                   1896: cat > confcache <<\EOF
                   1897: # This file is a shell script that caches the results of configure
                   1898: # tests run on this system so they can be shared between configure
                   1899: # scripts and configure runs.  It is not useful on other systems.
                   1900: # If it contains results you don't want to keep, you may remove or edit it.
                   1901: #
                   1902: # By default, configure uses ./config.cache as the cache file,
                   1903: # creating it if it does not exist already.  You can give configure
                   1904: # the --cache-file=FILE option to use a different cache file; that is
                   1905: # what configure does when it calls configure scripts in
                   1906: # subdirectories, so they share the cache.
                   1907: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   1908: # config.status only pays attention to the cache file if you give it the
                   1909: # --recheck option to rerun configure.
                   1910: #
                   1911: EOF
                   1912: # The following way of writing the cache mishandles newlines in values,
                   1913: # but we know of no workaround that is simple, portable, and efficient.
                   1914: # So, don't put newlines in cache variables' values.
                   1915: # Ultrix sh set writes to stderr and can't be redirected directly,
                   1916: # and sets the high bit in the cache file unless we assign to the vars.
                   1917: (set) 2>&1 |
                   1918:   case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   1919:   *ac_space=\ *)
                   1920:     # `set' does not quote correctly, so add quotes (double-quote substitution
                   1921:     # turns \\\\ into \\, and sed turns \\ into \).
                   1922:     sed -n \
                   1923:       -e "s/'/'\\\\''/g" \
                   1924:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
                   1925:     ;;
                   1926:   *)
                   1927:     # `set' quotes correctly as required by POSIX, so do not add quotes.
                   1928:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
                   1929:     ;;
                   1930:   esac >> confcache
                   1931: if cmp -s $cache_file confcache; then
                   1932:   :
                   1933: else
                   1934:   if test -w $cache_file; then
                   1935:     echo "updating cache $cache_file"
                   1936:     cat confcache > $cache_file
                   1937:   else
                   1938:     echo "not updating unwritable cache $cache_file"
                   1939:   fi
                   1940: fi
                   1941: rm -f confcache
                   1942: 
                   1943: 
                   1944: # Actually configure libtool.  ac_aux_dir is where install-sh is found.
                   1945: CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
                   1946: LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
                   1947: LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
                   1948: DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
                   1949: ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
                   1950: $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
                   1951: || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
                   1952: 
                   1953: # Reload cache, that may have been modified by ltconfig
                   1954: if test -r "$cache_file"; then
                   1955:   echo "loading cache $cache_file"
                   1956:   . $cache_file
                   1957: else
                   1958:   echo "creating cache $cache_file"
                   1959:   > $cache_file
                   1960: fi
                   1961: 
                   1962: 
                   1963: # This can be used to rebuild libtool when needed
                   1964: LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
                   1965: 
                   1966: # Always use our own libtool.
                   1967: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
                   1968: 
                   1969: # Redirect the config.log output again, so that the ltconfig log is not
                   1970: # clobbered by the next message.
                   1971: exec 5>>./config.log
                   1972: 
                   1973: subdirs="libltdl"
                   1974: 
                   1975: 
                   1976: 
                   1977: 
                   1978: echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1.6       paf      1979: echo "configure:1980: checking how to run the C++ preprocessor" >&5
1.1       parser   1980: if test -z "$CXXCPP"; then
                   1981: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
                   1982:   echo $ac_n "(cached) $ac_c" 1>&6
                   1983: else
                   1984:   ac_ext=C
                   1985: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1986: ac_cpp='$CXXCPP $CPPFLAGS'
                   1987: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1988: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1989: cross_compiling=$ac_cv_prog_cxx_cross
                   1990:   CXXCPP="${CXX-g++} -E"
                   1991:   cat > conftest.$ac_ext <<EOF
1.6       paf      1992: #line 1993 "configure"
1.1       parser   1993: #include "confdefs.h"
                   1994: #include <stdlib.h>
                   1995: EOF
                   1996: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.6       paf      1997: { (eval echo configure:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       parser   1998: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   1999: if test -z "$ac_err"; then
                   2000:   :
                   2001: else
                   2002:   echo "$ac_err" >&5
                   2003:   echo "configure: failed program was:" >&5
                   2004:   cat conftest.$ac_ext >&5
                   2005:   rm -rf conftest*
                   2006:   CXXCPP=/lib/cpp
                   2007: fi
                   2008: rm -f conftest*
                   2009:   ac_cv_prog_CXXCPP="$CXXCPP"
                   2010: ac_ext=C
                   2011: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2012: ac_cpp='$CXXCPP $CPPFLAGS'
                   2013: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2014: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2015: cross_compiling=$ac_cv_prog_cxx_cross
                   2016: fi
                   2017: fi
                   2018: CXXCPP="$ac_cv_prog_CXXCPP"
                   2019: echo "$ac_t""$CXXCPP" 1>&6
                   2020: 
                   2021: for ac_hdr in stdio.h \
                   2022: stdlib.h \
1.3       paf      2023: string.h \
                   2024: setjmp.h
1.1       parser   2025: 
                   2026: do
                   2027: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   2028: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.6       paf      2029: echo "configure:2030: checking for $ac_hdr" >&5
1.1       parser   2030: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2031:   echo $ac_n "(cached) $ac_c" 1>&6
                   2032: else
                   2033:   cat > conftest.$ac_ext <<EOF
1.6       paf      2034: #line 2035 "configure"
1.1       parser   2035: #include "confdefs.h"
                   2036: #include <$ac_hdr>
                   2037: EOF
                   2038: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.6       paf      2039: { (eval echo configure:2040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       parser   2040: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   2041: if test -z "$ac_err"; then
                   2042:   rm -rf conftest*
                   2043:   eval "ac_cv_header_$ac_safe=yes"
                   2044: else
                   2045:   echo "$ac_err" >&5
                   2046:   echo "configure: failed program was:" >&5
                   2047:   cat conftest.$ac_ext >&5
                   2048:   rm -rf conftest*
                   2049:   eval "ac_cv_header_$ac_safe=no"
                   2050: fi
                   2051: rm -f conftest*
                   2052: fi
                   2053: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2054:   echo "$ac_t""yes" 1>&6
                   2055:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   2056:   cat >> confdefs.h <<EOF
                   2057: #define $ac_tr_hdr 1
                   2058: EOF
                   2059:  
                   2060: else
                   2061:   echo "$ac_t""no" 1>&6
                   2062: fi
                   2063: done
                   2064: 
                   2065: 
                   2066: 
                   2067: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.6       paf      2068: echo "configure:2069: checking for ANSI C header files" >&5
1.1       parser   2069: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
                   2070:   echo $ac_n "(cached) $ac_c" 1>&6
                   2071: else
                   2072:   cat > conftest.$ac_ext <<EOF
1.6       paf      2073: #line 2074 "configure"
1.1       parser   2074: #include "confdefs.h"
                   2075: #include <stdlib.h>
                   2076: #include <stdarg.h>
                   2077: #include <string.h>
                   2078: #include <float.h>
                   2079: EOF
                   2080: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.6       paf      2081: { (eval echo configure:2082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       parser   2082: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   2083: if test -z "$ac_err"; then
                   2084:   rm -rf conftest*
                   2085:   ac_cv_header_stdc=yes
                   2086: else
                   2087:   echo "$ac_err" >&5
                   2088:   echo "configure: failed program was:" >&5
                   2089:   cat conftest.$ac_ext >&5
                   2090:   rm -rf conftest*
                   2091:   ac_cv_header_stdc=no
                   2092: fi
                   2093: rm -f conftest*
                   2094: 
                   2095: if test $ac_cv_header_stdc = yes; then
                   2096:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   2097: cat > conftest.$ac_ext <<EOF
1.6       paf      2098: #line 2099 "configure"
1.1       parser   2099: #include "confdefs.h"
                   2100: #include <string.h>
                   2101: EOF
                   2102: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2103:   egrep "memchr" >/dev/null 2>&1; then
                   2104:   :
                   2105: else
                   2106:   rm -rf conftest*
                   2107:   ac_cv_header_stdc=no
                   2108: fi
                   2109: rm -f conftest*
                   2110: 
                   2111: fi
                   2112: 
                   2113: if test $ac_cv_header_stdc = yes; then
                   2114:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   2115: cat > conftest.$ac_ext <<EOF
1.6       paf      2116: #line 2117 "configure"
1.1       parser   2117: #include "confdefs.h"
                   2118: #include <stdlib.h>
                   2119: EOF
                   2120: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2121:   egrep "free" >/dev/null 2>&1; then
                   2122:   :
                   2123: else
                   2124:   rm -rf conftest*
                   2125:   ac_cv_header_stdc=no
                   2126: fi
                   2127: rm -f conftest*
                   2128: 
                   2129: fi
                   2130: 
                   2131: if test $ac_cv_header_stdc = yes; then
                   2132:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   2133: if test "$cross_compiling" = yes; then
                   2134:   :
                   2135: else
                   2136:   cat > conftest.$ac_ext <<EOF
1.6       paf      2137: #line 2138 "configure"
1.1       parser   2138: #include "confdefs.h"
                   2139: #ifdef __cplusplus
                   2140: extern "C" void exit(int);
                   2141: #endif
                   2142: #include <ctype.h>
                   2143: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   2144: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   2145: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   2146: int main () { int i; for (i = 0; i < 256; i++)
                   2147: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
                   2148: exit (0); }
                   2149: 
                   2150: EOF
1.6       paf      2151: if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       parser   2152: then
                   2153:   :
                   2154: else
                   2155:   echo "configure: failed program was:" >&5
                   2156:   cat conftest.$ac_ext >&5
                   2157:   rm -fr conftest*
                   2158:   ac_cv_header_stdc=no
                   2159: fi
                   2160: rm -fr conftest*
                   2161: fi
                   2162: 
                   2163: fi
                   2164: fi
                   2165: 
                   2166: echo "$ac_t""$ac_cv_header_stdc" 1>&6
                   2167: if test $ac_cv_header_stdc = yes; then
                   2168:   cat >> confdefs.h <<\EOF
                   2169: #define STDC_HEADERS 1
                   2170: EOF
                   2171: 
                   2172: fi
                   2173: 
                   2174: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.6       paf      2175: echo "configure:2176: checking for size_t" >&5
1.1       parser   2176: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
                   2177:   echo $ac_n "(cached) $ac_c" 1>&6
                   2178: else
                   2179:   cat > conftest.$ac_ext <<EOF
1.6       paf      2180: #line 2181 "configure"
1.1       parser   2181: #include "confdefs.h"
                   2182: #include <sys/types.h>
                   2183: #if STDC_HEADERS
                   2184: #include <stdlib.h>
                   2185: #include <stddef.h>
                   2186: #endif
                   2187: EOF
                   2188: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2189:   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
                   2190:   rm -rf conftest*
                   2191:   ac_cv_type_size_t=yes
                   2192: else
                   2193:   rm -rf conftest*
                   2194:   ac_cv_type_size_t=no
                   2195: fi
                   2196: rm -f conftest*
                   2197: 
                   2198: fi
                   2199: echo "$ac_t""$ac_cv_type_size_t" 1>&6
                   2200: if test $ac_cv_type_size_t = no; then
                   2201:   cat >> confdefs.h <<\EOF
                   2202: #define size_t unsigned
                   2203: EOF
                   2204: 
                   2205: fi
                   2206: 
                   2207: 
                   2208: 
                   2209: 
                   2210: trap '' 1 2 15
                   2211: cat > confcache <<\EOF
                   2212: # This file is a shell script that caches the results of configure
                   2213: # tests run on this system so they can be shared between configure
                   2214: # scripts and configure runs.  It is not useful on other systems.
                   2215: # If it contains results you don't want to keep, you may remove or edit it.
                   2216: #
                   2217: # By default, configure uses ./config.cache as the cache file,
                   2218: # creating it if it does not exist already.  You can give configure
                   2219: # the --cache-file=FILE option to use a different cache file; that is
                   2220: # what configure does when it calls configure scripts in
                   2221: # subdirectories, so they share the cache.
                   2222: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   2223: # config.status only pays attention to the cache file if you give it the
                   2224: # --recheck option to rerun configure.
                   2225: #
                   2226: EOF
                   2227: # The following way of writing the cache mishandles newlines in values,
                   2228: # but we know of no workaround that is simple, portable, and efficient.
                   2229: # So, don't put newlines in cache variables' values.
                   2230: # Ultrix sh set writes to stderr and can't be redirected directly,
                   2231: # and sets the high bit in the cache file unless we assign to the vars.
                   2232: (set) 2>&1 |
                   2233:   case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   2234:   *ac_space=\ *)
                   2235:     # `set' does not quote correctly, so add quotes (double-quote substitution
                   2236:     # turns \\\\ into \\, and sed turns \\ into \).
                   2237:     sed -n \
                   2238:       -e "s/'/'\\\\''/g" \
                   2239:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
                   2240:     ;;
                   2241:   *)
                   2242:     # `set' quotes correctly as required by POSIX, so do not add quotes.
                   2243:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
                   2244:     ;;
                   2245:   esac >> confcache
                   2246: if cmp -s $cache_file confcache; then
                   2247:   :
                   2248: else
                   2249:   if test -w $cache_file; then
                   2250:     echo "updating cache $cache_file"
                   2251:     cat confcache > $cache_file
                   2252:   else
                   2253:     echo "not updating unwritable cache $cache_file"
                   2254:   fi
                   2255: fi
                   2256: rm -f confcache
                   2257: 
                   2258: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                   2259: 
                   2260: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   2261: # Let make expand exec_prefix.
                   2262: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   2263: 
                   2264: # Any assignment to VPATH causes Sun make to only execute
                   2265: # the first set of double-colon rules, so remove it if not needed.
                   2266: # If there is a colon in the path, we need to keep it.
                   2267: if test "x$srcdir" = x.; then
                   2268:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
                   2269: fi
                   2270: 
                   2271: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
                   2272: 
                   2273: DEFS=-DHAVE_CONFIG_H
                   2274: 
                   2275: # Without the "./", some shells look in PATH for config.status.
                   2276: : ${CONFIG_STATUS=./config.status}
                   2277: 
                   2278: echo creating $CONFIG_STATUS
                   2279: rm -f $CONFIG_STATUS
                   2280: cat > $CONFIG_STATUS <<EOF
                   2281: #! /bin/sh
                   2282: # Generated automatically by configure.
                   2283: # Run this file to recreate the current configuration.
                   2284: # This directory was configured as follows,
                   2285: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   2286: #
                   2287: # $0 $ac_configure_args
                   2288: #
                   2289: # Compiler output produced by configure, useful for debugging
                   2290: # configure, is in ./config.log if it exists.
                   2291: 
                   2292: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   2293: for ac_option
                   2294: do
                   2295:   case "\$ac_option" in
                   2296:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   2297:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
                   2298:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   2299:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
                   2300:     echo "$CONFIG_STATUS generated by autoconf version 2.13"
                   2301:     exit 0 ;;
                   2302:   -help | --help | --hel | --he | --h)
                   2303:     echo "\$ac_cs_usage"; exit 0 ;;
                   2304:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   2305:   esac
                   2306: done
                   2307: 
                   2308: ac_given_srcdir=$srcdir
                   2309: ac_given_INSTALL="$INSTALL"
                   2310: 
1.8     ! paf      2311: trap 'rm -fr `echo "Makefile config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1       parser   2312: EOF
                   2313: cat >> $CONFIG_STATUS <<EOF
                   2314: 
                   2315: # Protect against being on the right side of a sed subst in config.status.
                   2316: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
                   2317:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
                   2318: $ac_vpsub
                   2319: $extrasub
                   2320: s%@SHELL@%$SHELL%g
                   2321: s%@CFLAGS@%$CFLAGS%g
                   2322: s%@CPPFLAGS@%$CPPFLAGS%g
                   2323: s%@CXXFLAGS@%$CXXFLAGS%g
                   2324: s%@FFLAGS@%$FFLAGS%g
                   2325: s%@DEFS@%$DEFS%g
                   2326: s%@LDFLAGS@%$LDFLAGS%g
                   2327: s%@LIBS@%$LIBS%g
                   2328: s%@exec_prefix@%$exec_prefix%g
                   2329: s%@prefix@%$prefix%g
                   2330: s%@program_transform_name@%$program_transform_name%g
                   2331: s%@bindir@%$bindir%g
                   2332: s%@sbindir@%$sbindir%g
                   2333: s%@libexecdir@%$libexecdir%g
                   2334: s%@datadir@%$datadir%g
                   2335: s%@sysconfdir@%$sysconfdir%g
                   2336: s%@sharedstatedir@%$sharedstatedir%g
                   2337: s%@localstatedir@%$localstatedir%g
                   2338: s%@libdir@%$libdir%g
                   2339: s%@includedir@%$includedir%g
                   2340: s%@oldincludedir@%$oldincludedir%g
                   2341: s%@infodir@%$infodir%g
                   2342: s%@mandir@%$mandir%g
                   2343: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
                   2344: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
                   2345: s%@INSTALL_DATA@%$INSTALL_DATA%g
                   2346: s%@PACKAGE@%$PACKAGE%g
                   2347: s%@VERSION@%$VERSION%g
                   2348: s%@ACLOCAL@%$ACLOCAL%g
                   2349: s%@AUTOCONF@%$AUTOCONF%g
                   2350: s%@AUTOMAKE@%$AUTOMAKE%g
                   2351: s%@AUTOHEADER@%$AUTOHEADER%g
                   2352: s%@MAKEINFO@%$MAKEINFO%g
                   2353: s%@SET_MAKE@%$SET_MAKE%g
                   2354: s%@PGSQL_INC@%$PGSQL_INC%g
                   2355: s%@AWK@%$AWK%g
                   2356: s%@CXX@%$CXX%g
                   2357: s%@INCLTDL@%$INCLTDL%g
                   2358: s%@LIBLTDL@%$LIBLTDL%g
                   2359: s%@LIBADD_DL@%$LIBADD_DL%g
                   2360: s%@host@%$host%g
                   2361: s%@host_alias@%$host_alias%g
                   2362: s%@host_cpu@%$host_cpu%g
                   2363: s%@host_vendor@%$host_vendor%g
                   2364: s%@host_os@%$host_os%g
                   2365: s%@build@%$build%g
                   2366: s%@build_alias@%$build_alias%g
                   2367: s%@build_cpu@%$build_cpu%g
                   2368: s%@build_vendor@%$build_vendor%g
                   2369: s%@build_os@%$build_os%g
                   2370: s%@RANLIB@%$RANLIB%g
                   2371: s%@CC@%$CC%g
                   2372: s%@LN_S@%$LN_S%g
1.6       paf      2373: s%@DLLTOOL@%$DLLTOOL%g
                   2374: s%@AS@%$AS%g
                   2375: s%@OBJDUMP@%$OBJDUMP%g
1.1       parser   2376: s%@LIBTOOL@%$LIBTOOL%g
                   2377: s%@subdirs@%$subdirs%g
                   2378: s%@CXXCPP@%$CXXCPP%g
                   2379: 
                   2380: CEOF
                   2381: EOF
                   2382: 
                   2383: cat >> $CONFIG_STATUS <<\EOF
                   2384: 
                   2385: # Split the substitutions into bite-sized pieces for seds with
                   2386: # small command number limits, like on Digital OSF/1 and HP-UX.
                   2387: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
                   2388: ac_file=1 # Number of current file.
                   2389: ac_beg=1 # First line for current file.
                   2390: ac_end=$ac_max_sed_cmds # Line after last line for current file.
                   2391: ac_more_lines=:
                   2392: ac_sed_cmds=""
                   2393: while $ac_more_lines; do
                   2394:   if test $ac_beg -gt 1; then
                   2395:     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
                   2396:   else
                   2397:     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
                   2398:   fi
                   2399:   if test ! -s conftest.s$ac_file; then
                   2400:     ac_more_lines=false
                   2401:     rm -f conftest.s$ac_file
                   2402:   else
                   2403:     if test -z "$ac_sed_cmds"; then
                   2404:       ac_sed_cmds="sed -f conftest.s$ac_file"
                   2405:     else
                   2406:       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
                   2407:     fi
                   2408:     ac_file=`expr $ac_file + 1`
                   2409:     ac_beg=$ac_end
                   2410:     ac_end=`expr $ac_end + $ac_max_sed_cmds`
                   2411:   fi
                   2412: done
                   2413: if test -z "$ac_sed_cmds"; then
                   2414:   ac_sed_cmds=cat
                   2415: fi
                   2416: EOF
                   2417: 
                   2418: cat >> $CONFIG_STATUS <<EOF
                   2419: 
1.8     ! paf      2420: CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1.1       parser   2421: EOF
                   2422: cat >> $CONFIG_STATUS <<\EOF
                   2423: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
                   2424:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   2425:   case "$ac_file" in
                   2426:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   2427:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   2428:   *) ac_file_in="${ac_file}.in" ;;
                   2429:   esac
                   2430: 
                   2431:   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
                   2432: 
                   2433:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   2434:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   2435:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   2436:     # The file is in a subdirectory.
                   2437:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   2438:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
                   2439:     # A "../" for each directory in $ac_dir_suffix.
                   2440:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   2441:   else
                   2442:     ac_dir_suffix= ac_dots=
                   2443:   fi
                   2444: 
                   2445:   case "$ac_given_srcdir" in
                   2446:   .)  srcdir=.
                   2447:       if test -z "$ac_dots"; then top_srcdir=.
                   2448:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   2449:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   2450:   *) # Relative path.
                   2451:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   2452:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   2453:   esac
                   2454: 
                   2455:   case "$ac_given_INSTALL" in
                   2456:   [/$]*) INSTALL="$ac_given_INSTALL" ;;
                   2457:   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
                   2458:   esac
                   2459: 
                   2460:   echo creating "$ac_file"
                   2461:   rm -f "$ac_file"
                   2462:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   2463:   case "$ac_file" in
                   2464:   *Makefile*) ac_comsub="1i\\
                   2465: # $configure_input" ;;
                   2466:   *) ac_comsub= ;;
                   2467:   esac
                   2468: 
                   2469:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   2470:   sed -e "$ac_comsub
                   2471: s%@configure_input@%$configure_input%g
                   2472: s%@srcdir@%$srcdir%g
                   2473: s%@top_srcdir@%$top_srcdir%g
                   2474: s%@INSTALL@%$INSTALL%g
                   2475: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
                   2476: fi; done
                   2477: rm -f conftest.s*
                   2478: 
                   2479: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   2480: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   2481: #
                   2482: # ac_d sets the value in "#define NAME VALUE" lines.
                   2483: ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   2484: ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
                   2485: ac_dC='\3'
                   2486: ac_dD='%g'
                   2487: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
                   2488: ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   2489: ac_uB='\([     ]\)%\1#\2define\3'
                   2490: ac_uC=' '
                   2491: ac_uD='\4%g'
                   2492: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   2493: ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   2494: ac_eB='$%\1#\2define\3'
                   2495: ac_eC=' '
                   2496: ac_eD='%g'
                   2497: 
                   2498: if test "${CONFIG_HEADERS+set}" != set; then
                   2499: EOF
                   2500: cat >> $CONFIG_STATUS <<EOF
                   2501:   CONFIG_HEADERS="config_auto.h"
                   2502: EOF
                   2503: cat >> $CONFIG_STATUS <<\EOF
                   2504: fi
                   2505: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
                   2506:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   2507:   case "$ac_file" in
                   2508:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   2509:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   2510:   *) ac_file_in="${ac_file}.in" ;;
                   2511:   esac
                   2512: 
                   2513:   echo creating $ac_file
                   2514: 
                   2515:   rm -f conftest.frag conftest.in conftest.out
                   2516:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   2517:   cat $ac_file_inputs > conftest.in
                   2518: 
                   2519: EOF
                   2520: 
                   2521: # Transform confdefs.h into a sed script conftest.vals that substitutes
                   2522: # the proper values into config.h.in to produce config.h.  And first:
                   2523: # Protect against being on the right side of a sed subst in config.status.
                   2524: # Protect against being in an unquoted here document in config.status.
                   2525: rm -f conftest.vals
                   2526: cat > conftest.hdr <<\EOF
                   2527: s/[\\&%]/\\&/g
                   2528: s%[\\$`]%\\&%g
                   2529: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
                   2530: s%ac_d%ac_u%gp
                   2531: s%ac_u%ac_e%gp
                   2532: EOF
                   2533: sed -n -f conftest.hdr confdefs.h > conftest.vals
                   2534: rm -f conftest.hdr
                   2535: 
                   2536: # This sed command replaces #undef with comments.  This is necessary, for
                   2537: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   2538: # on some systems where configure will not decide to define it.
                   2539: cat >> conftest.vals <<\EOF
                   2540: s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
                   2541: EOF
                   2542: 
                   2543: # Break up conftest.vals because some shells have a limit on
                   2544: # the size of here documents, and old seds have small limits too.
                   2545: 
                   2546: rm -f conftest.tail
                   2547: while :
                   2548: do
                   2549:   ac_lines=`grep -c . conftest.vals`
                   2550:   # grep -c gives empty output for an empty file on some AIX systems.
                   2551:   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
                   2552:   # Write a limited-size here document to conftest.frag.
                   2553:   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
                   2554:   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
                   2555:   echo 'CEOF
                   2556:   sed -f conftest.frag conftest.in > conftest.out
                   2557:   rm -f conftest.in
                   2558:   mv conftest.out conftest.in
                   2559: ' >> $CONFIG_STATUS
                   2560:   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
                   2561:   rm -f conftest.vals
                   2562:   mv conftest.tail conftest.vals
                   2563: done
                   2564: rm -f conftest.vals
                   2565: 
                   2566: cat >> $CONFIG_STATUS <<\EOF
                   2567:   rm -f conftest.frag conftest.h
                   2568:   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
                   2569:   cat conftest.in >> conftest.h
                   2570:   rm -f conftest.in
                   2571:   if cmp -s $ac_file conftest.h 2>/dev/null; then
                   2572:     echo "$ac_file is unchanged"
                   2573:     rm -f conftest.h
                   2574:   else
                   2575:     # Remove last slash and all that follows it.  Not all systems have dirname.
                   2576:       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   2577:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   2578:       # The file is in a subdirectory.
                   2579:       test ! -d "$ac_dir" && mkdir "$ac_dir"
                   2580:     fi
                   2581:     rm -f $ac_file
                   2582:     mv conftest.h $ac_file
                   2583:   fi
                   2584: fi; done
                   2585: 
                   2586: EOF
                   2587: cat >> $CONFIG_STATUS <<EOF
                   2588: 
                   2589: 
                   2590: EOF
                   2591: cat >> $CONFIG_STATUS <<\EOF
                   2592: test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
                   2593: 
                   2594: exit 0
                   2595: EOF
                   2596: chmod +x $CONFIG_STATUS
                   2597: rm -fr confdefs* $ac_clean_files
                   2598: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
                   2599: 
                   2600: if test "$no_recursion" != yes; then
                   2601: 
                   2602:   # Remove --cache-file and --srcdir arguments so they do not pile up.
                   2603:   ac_sub_configure_args=
                   2604:   ac_prev=
                   2605:   for ac_arg in $ac_configure_args; do
                   2606:     if test -n "$ac_prev"; then
                   2607:       ac_prev=
                   2608:       continue
                   2609:     fi
                   2610:     case "$ac_arg" in
                   2611:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   2612:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   2613:       ac_prev=cache_file ;;
                   2614:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   2615:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                   2616:       ;;
                   2617:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   2618:       ac_prev=srcdir ;;
                   2619:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   2620:       ;;
                   2621:     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
                   2622:     esac
                   2623:   done
                   2624: 
                   2625:   for ac_config_dir in libltdl; do
                   2626: 
                   2627:     # Do not complain, so a configure script can configure whichever
                   2628:     # parts of a large source tree are present.
                   2629:     if test ! -d $srcdir/$ac_config_dir; then
                   2630:       continue
                   2631:     fi
                   2632: 
                   2633:     echo configuring in $ac_config_dir
                   2634: 
                   2635:     case "$srcdir" in
                   2636:     .) ;;
                   2637:     *)
                   2638:       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
                   2639:       else
                   2640:         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
                   2641:       fi
                   2642:       ;;
                   2643:     esac
                   2644: 
                   2645:     ac_popdir=`pwd`
                   2646:     cd $ac_config_dir
                   2647: 
                   2648:       # A "../" for each directory in /$ac_config_dir.
                   2649:       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
                   2650: 
                   2651:     case "$srcdir" in
                   2652:     .) # No --srcdir option.  We are building in place.
                   2653:       ac_sub_srcdir=$srcdir ;;
                   2654:     /*) # Absolute path.
                   2655:       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
                   2656:     *) # Relative path.
                   2657:       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
                   2658:     esac
                   2659: 
                   2660:     # Check for guested configure; otherwise get Cygnus style configure.
                   2661:     if test -f $ac_sub_srcdir/configure; then
                   2662:       ac_sub_configure=$ac_sub_srcdir/configure
                   2663:     elif test -f $ac_sub_srcdir/configure.in; then
                   2664:       ac_sub_configure=$ac_configure
                   2665:     else
                   2666:       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
                   2667:       ac_sub_configure=
                   2668:     fi
                   2669: 
                   2670:     # The recursion is here.
                   2671:     if test -n "$ac_sub_configure"; then
                   2672: 
                   2673:       # Make the cache file name correct relative to the subdirectory.
                   2674:       case "$cache_file" in
                   2675:       /*) ac_sub_cache_file=$cache_file ;;
                   2676:       *) # Relative path.
                   2677:         ac_sub_cache_file="$ac_dots$cache_file" ;;
                   2678:       esac
                   2679:   case "$ac_given_INSTALL" in
                   2680:         [/$]*) INSTALL="$ac_given_INSTALL" ;;
                   2681:         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
                   2682:         esac
                   2683: 
                   2684:       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
                   2685:       # The eval makes quoting arguments work.
                   2686:       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
                   2687:       then :
                   2688:       else
                   2689:         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
                   2690:       fi
                   2691:     fi
                   2692: 
                   2693:     cd $ac_popdir
                   2694:   done
                   2695: fi
                   2696: 

E-mail: