[BACK]Return to configure CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkg_install / files

Annotation of pkgsrc/pkgtools/pkg_install/files/configure, Revision 1.9

1.1       schmonz     1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.9     ! grant       3: # Generated by GNU Autoconf 2.59 for pkg_install 20030923.
1.3       jlam        4: #
                      5: # Report bugs to <grant@NetBSD.org>.
1.1       schmonz     6: #
1.9     ! grant       7: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1       schmonz     8: # This configure script is free software; the Free Software Foundation
                      9: # gives unlimited permission to copy, distribute and modify it.
1.3       jlam       10: ## --------------------- ##
                     11: ## M4sh Initialization.  ##
                     12: ## --------------------- ##
                     13:
                     14: # Be Bourne compatible
                     15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                     16:   emulate sh
                     17:   NULLCMD=:
                     18:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                     19:   # is contrary to our usage.  Disable this feature.
                     20:   alias -g '${1+"$@"}'='"$@"'
                     21: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
                     22:   set -o posix
                     23: fi
1.9     ! grant      24: DUALCASE=1; export DUALCASE # for MKS sh
1.3       jlam       25:
                     26: # Support unset when possible.
1.9     ! grant      27: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.3       jlam       28:   as_unset=unset
                     29: else
                     30:   as_unset=false
                     31: fi
                     32:
                     33:
                     34: # Work around bugs in pre-3.0 UWIN ksh.
                     35: $as_unset ENV MAIL MAILPATH
                     36: PS1='$ '
                     37: PS2='> '
                     38: PS4='+ '
                     39:
                     40: # NLS nuisances.
                     41: for as_var in \
                     42:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
                     43:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
                     44:   LC_TELEPHONE LC_TIME
                     45: do
1.9     ! grant      46:   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.3       jlam       47:     eval $as_var=C; export $as_var
                     48:   else
                     49:     $as_unset $as_var
                     50:   fi
                     51: done
                     52:
                     53: # Required to use basename.
                     54: if expr a : '\(a\)' >/dev/null 2>&1; then
                     55:   as_expr=expr
                     56: else
                     57:   as_expr=false
                     58: fi
                     59:
                     60: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
                     61:   as_basename=basename
                     62: else
                     63:   as_basename=false
                     64: fi
                     65:
                     66:
                     67: # Name of the executable.
                     68: as_me=`$as_basename "$0" ||
                     69: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                     70:         X"$0" : 'X\(//\)$' \| \
                     71:         X"$0" : 'X\(/\)$' \| \
                     72:         .     : '\(.\)' 2>/dev/null ||
                     73: echo X/"$0" |
                     74:     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
                     75:          /^X\/\(\/\/\)$/{ s//\1/; q; }
                     76:          /^X\/\(\/\).*/{ s//\1/; q; }
                     77:          s/.*/./; q'`
                     78:
                     79:
                     80: # PATH needs CR, and LINENO needs CR and PATH.
                     81: # Avoid depending upon Character Ranges.
                     82: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                     83: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                     84: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                     85: as_cr_digits='0123456789'
                     86: as_cr_alnum=$as_cr_Letters$as_cr_digits
                     87:
                     88: # The user is always right.
                     89: if test "${PATH_SEPARATOR+set}" != set; then
                     90:   echo "#! /bin/sh" >conf$$.sh
                     91:   echo  "exit 0"   >>conf$$.sh
                     92:   chmod +x conf$$.sh
                     93:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
                     94:     PATH_SEPARATOR=';'
                     95:   else
                     96:     PATH_SEPARATOR=:
                     97:   fi
                     98:   rm -f conf$$.sh
                     99: fi
                    100:
                    101:
                    102:   as_lineno_1=$LINENO
                    103:   as_lineno_2=$LINENO
                    104:   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
                    105:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                    106:   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
                    107:   # Find who we are.  Look in the path if we contain no path at all
                    108:   # relative or not.
                    109:   case $0 in
                    110:     *[\\/]* ) as_myself=$0 ;;
                    111:     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    112: for as_dir in $PATH
                    113: do
                    114:   IFS=$as_save_IFS
                    115:   test -z "$as_dir" && as_dir=.
                    116:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                    117: done
                    118:
                    119:        ;;
                    120:   esac
                    121:   # We did not find ourselves, most probably we were run as `sh COMMAND'
                    122:   # in which case we are not to be found in the path.
                    123:   if test "x$as_myself" = x; then
                    124:     as_myself=$0
                    125:   fi
                    126:   if test ! -f "$as_myself"; then
                    127:     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
                    128:    { (exit 1); exit 1; }; }
                    129:   fi
                    130:   case $CONFIG_SHELL in
                    131:   '')
                    132:     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    133: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    134: do
                    135:   IFS=$as_save_IFS
                    136:   test -z "$as_dir" && as_dir=.
                    137:   for as_base in sh bash ksh sh5; do
                    138:         case $as_dir in
                    139:         /*)
                    140:           if ("$as_dir/$as_base" -c '
                    141:   as_lineno_1=$LINENO
                    142:   as_lineno_2=$LINENO
                    143:   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
                    144:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                    145:   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
                    146:             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
                    147:             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
                    148:             CONFIG_SHELL=$as_dir/$as_base
                    149:             export CONFIG_SHELL
                    150:             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
                    151:           fi;;
                    152:         esac
                    153:        done
                    154: done
                    155: ;;
                    156:   esac
                    157:
                    158:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                    159:   # uniformly replaced by the line number.  The first 'sed' inserts a
                    160:   # line-number line before each line; the second 'sed' does the real
                    161:   # work.  The second script uses 'N' to pair each line-number line
                    162:   # with the numbered line, and appends trailing '-' during
                    163:   # substitution so that $LINENO is not a special case at line end.
                    164:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
                    165:   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
                    166:   sed '=' <$as_myself |
                    167:     sed '
                    168:       N
                    169:       s,$,-,
                    170:       : loop
                    171:       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
                    172:       t loop
                    173:       s,-$,,
                    174:       s,^['$as_cr_digits']*\n,,
                    175:     ' >$as_me.lineno &&
                    176:   chmod +x $as_me.lineno ||
                    177:     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
                    178:    { (exit 1); exit 1; }; }
                    179:
                    180:   # Don't try to exec as it changes $[0], causing all sort of problems
                    181:   # (the dirname of $[0] is not the place where we might find the
                    182:   # original and so on.  Autoconf is especially sensible to this).
                    183:   . ./$as_me.lineno
                    184:   # Exit status is that of the last command.
                    185:   exit
                    186: }
                    187:
1.1       schmonz   188:
1.3       jlam      189: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
                    190:   *c*,-n*) ECHO_N= ECHO_C='
                    191: ' ECHO_T='     ' ;;
                    192:   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
                    193:   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
                    194: esac
                    195:
                    196: if expr a : '\(a\)' >/dev/null 2>&1; then
                    197:   as_expr=expr
                    198: else
                    199:   as_expr=false
                    200: fi
                    201:
                    202: rm -f conf$$ conf$$.exe conf$$.file
                    203: echo >conf$$.file
                    204: if ln -s conf$$.file conf$$ 2>/dev/null; then
                    205:   # We could just check for DJGPP; but this test a) works b) is more generic
                    206:   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
                    207:   if test -f conf$$.exe; then
                    208:     # Don't use ln at all; we don't have any links
                    209:     as_ln_s='cp -p'
                    210:   else
                    211:     as_ln_s='ln -s'
                    212:   fi
                    213: elif ln conf$$.file conf$$ 2>/dev/null; then
                    214:   as_ln_s=ln
                    215: else
                    216:   as_ln_s='cp -p'
                    217: fi
                    218: rm -f conf$$ conf$$.exe conf$$.file
                    219:
                    220: if mkdir -p . 2>/dev/null; then
                    221:   as_mkdir_p=:
                    222: else
1.9     ! grant     223:   test -d ./-p && rmdir ./-p
1.3       jlam      224:   as_mkdir_p=false
                    225: fi
                    226:
                    227: as_executable_p="test -f"
                    228:
                    229: # Sed expression to map a string onto a valid CPP name.
1.9     ! grant     230: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.3       jlam      231:
                    232: # Sed expression to map a string onto a valid variable name.
1.9     ! grant     233: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.3       jlam      234:
                    235:
                    236: # IFS
                    237: # We need space, tab and new line, in precisely that order.
                    238: as_nl='
                    239: '
                    240: IFS="  $as_nl"
                    241:
                    242: # CDPATH.
                    243: $as_unset CDPATH
                    244:
                    245:
                    246: # Name of the host.
                    247: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
                    248: # so uname gets run too.
                    249: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    250:
                    251: exec 6>&1
                    252:
                    253: #
                    254: # Initializations.
                    255: #
1.1       schmonz   256: ac_default_prefix=/usr/local
1.3       jlam      257: ac_config_libobj_dir=.
                    258: cross_compiling=no
                    259: subdirs=
                    260: MFLAGS=
                    261: MAKEFLAGS=
                    262: SHELL=${CONFIG_SHELL-/bin/sh}
                    263:
                    264: # Maximum number of lines to put in a shell here document.
                    265: # This variable seems obsolete.  It should probably be removed, and
                    266: # only ac_max_sed_lines should be used.
                    267: : ${ac_max_here_lines=38}
                    268:
                    269: # Identity of this package.
                    270: PACKAGE_NAME='pkg_install'
                    271: PACKAGE_TARNAME='pkg_install'
1.7       grant     272: PACKAGE_VERSION='20030923'
                    273: PACKAGE_STRING='pkg_install 20030923'
1.3       jlam      274: PACKAGE_BUGREPORT='grant@NetBSD.org'
                    275:
                    276: ac_unique_file="lib/plist.c"
                    277: # Factoring default headers for most tests.
                    278: ac_includes_default="\
                    279: #include <stdio.h>
                    280: #if HAVE_SYS_TYPES_H
                    281: # include <sys/types.h>
                    282: #endif
                    283: #if HAVE_SYS_STAT_H
                    284: # include <sys/stat.h>
                    285: #endif
                    286: #if STDC_HEADERS
                    287: # include <stdlib.h>
                    288: # include <stddef.h>
                    289: #else
                    290: # if HAVE_STDLIB_H
                    291: #  include <stdlib.h>
                    292: # endif
                    293: #endif
                    294: #if HAVE_STRING_H
                    295: # if !STDC_HEADERS && HAVE_MEMORY_H
                    296: #  include <memory.h>
                    297: # endif
                    298: # include <string.h>
                    299: #endif
                    300: #if HAVE_STRINGS_H
                    301: # include <strings.h>
                    302: #endif
                    303: #if HAVE_INTTYPES_H
                    304: # include <inttypes.h>
                    305: #else
                    306: # if HAVE_STDINT_H
                    307: #  include <stdint.h>
                    308: # endif
                    309: #endif
                    310: #if HAVE_UNISTD_H
                    311: # include <unistd.h>
                    312: #endif"
                    313:
1.6       grant     314: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CANONICAL_HOST INCLUDES SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB AR CHMOD CMP CP ENV FIND GREP LN MKDIR RMDIR RM SED SORT TOUCH AUTOCONF AUTOHEADER pkgdbdir ftp tar pax mtree CPP EGREP LIBOBJS LTLIBOBJS'
1.3       jlam      315: ac_subst_files=''
1.1       schmonz   316:
                    317: # Initialize some variables set by options.
1.3       jlam      318: ac_init_help=
                    319: ac_init_version=false
1.1       schmonz   320: # The variables have the same names as the options, with
                    321: # dashes changed to underlines.
1.3       jlam      322: cache_file=/dev/null
1.1       schmonz   323: exec_prefix=NONE
                    324: no_create=
                    325: no_recursion=
                    326: prefix=NONE
                    327: program_prefix=NONE
                    328: program_suffix=NONE
                    329: program_transform_name=s,x,x,
                    330: silent=
                    331: site=
                    332: srcdir=
                    333: verbose=
                    334: x_includes=NONE
                    335: x_libraries=NONE
1.3       jlam      336:
                    337: # Installation directory options.
                    338: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    339: # and all the variables that are supposed to be based on exec_prefix
                    340: # by default will actually change.
                    341: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1       schmonz   342: bindir='${exec_prefix}/bin'
                    343: sbindir='${exec_prefix}/sbin'
                    344: libexecdir='${exec_prefix}/libexec'
                    345: datadir='${prefix}/share'
                    346: sysconfdir='${prefix}/etc'
                    347: sharedstatedir='${prefix}/com'
                    348: localstatedir='${prefix}/var'
                    349: libdir='${exec_prefix}/lib'
                    350: includedir='${prefix}/include'
                    351: oldincludedir='/usr/include'
                    352: infodir='${prefix}/info'
                    353: mandir='${prefix}/man'
                    354:
                    355: ac_prev=
                    356: for ac_option
                    357: do
                    358:   # If the previous option needs an argument, assign it.
                    359:   if test -n "$ac_prev"; then
                    360:     eval "$ac_prev=\$ac_option"
                    361:     ac_prev=
                    362:     continue
                    363:   fi
                    364:
1.3       jlam      365:   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1       schmonz   366:
                    367:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    368:
1.3       jlam      369:   case $ac_option in
1.1       schmonz   370:
                    371:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    372:     ac_prev=bindir ;;
                    373:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.3       jlam      374:     bindir=$ac_optarg ;;
1.1       schmonz   375:
                    376:   -build | --build | --buil | --bui | --bu)
1.3       jlam      377:     ac_prev=build_alias ;;
1.1       schmonz   378:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.3       jlam      379:     build_alias=$ac_optarg ;;
1.1       schmonz   380:
                    381:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    382:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    383:     ac_prev=cache_file ;;
                    384:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    385:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.3       jlam      386:     cache_file=$ac_optarg ;;
                    387:
                    388:   --config-cache | -C)
                    389:     cache_file=config.cache ;;
1.1       schmonz   390:
                    391:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    392:     ac_prev=datadir ;;
                    393:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    394:   | --da=*)
1.3       jlam      395:     datadir=$ac_optarg ;;
1.1       schmonz   396:
                    397:   -disable-* | --disable-*)
1.3       jlam      398:     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       schmonz   399:     # Reject names that are not valid shell variable names.
1.3       jlam      400:     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    401:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                    402:    { (exit 1); exit 1; }; }
                    403:     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
                    404:     eval "enable_$ac_feature=no" ;;
1.1       schmonz   405:
                    406:   -enable-* | --enable-*)
1.3       jlam      407:     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       schmonz   408:     # Reject names that are not valid shell variable names.
1.3       jlam      409:     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    410:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                    411:    { (exit 1); exit 1; }; }
                    412:     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
                    413:     case $ac_option in
                    414:       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1       schmonz   415:       *) ac_optarg=yes ;;
                    416:     esac
1.3       jlam      417:     eval "enable_$ac_feature='$ac_optarg'" ;;
1.1       schmonz   418:
                    419:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    420:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    421:   | --exec | --exe | --ex)
                    422:     ac_prev=exec_prefix ;;
                    423:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    424:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    425:   | --exec=* | --exe=* | --ex=*)
1.3       jlam      426:     exec_prefix=$ac_optarg ;;
1.1       schmonz   427:
                    428:   -gas | --gas | --ga | --g)
                    429:     # Obsolete; use --with-gas.
                    430:     with_gas=yes ;;
                    431:
1.3       jlam      432:   -help | --help | --hel | --he | -h)
                    433:     ac_init_help=long ;;
                    434:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                    435:     ac_init_help=recursive ;;
                    436:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                    437:     ac_init_help=short ;;
1.1       schmonz   438:
                    439:   -host | --host | --hos | --ho)
1.3       jlam      440:     ac_prev=host_alias ;;
1.1       schmonz   441:   -host=* | --host=* | --hos=* | --ho=*)
1.3       jlam      442:     host_alias=$ac_optarg ;;
1.1       schmonz   443:
                    444:   -includedir | --includedir | --includedi | --included | --include \
                    445:   | --includ | --inclu | --incl | --inc)
                    446:     ac_prev=includedir ;;
                    447:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    448:   | --includ=* | --inclu=* | --incl=* | --inc=*)
1.3       jlam      449:     includedir=$ac_optarg ;;
1.1       schmonz   450:
                    451:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    452:     ac_prev=infodir ;;
                    453:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.3       jlam      454:     infodir=$ac_optarg ;;
1.1       schmonz   455:
                    456:   -libdir | --libdir | --libdi | --libd)
                    457:     ac_prev=libdir ;;
                    458:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.3       jlam      459:     libdir=$ac_optarg ;;
1.1       schmonz   460:
                    461:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    462:   | --libexe | --libex | --libe)
                    463:     ac_prev=libexecdir ;;
                    464:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    465:   | --libexe=* | --libex=* | --libe=*)
1.3       jlam      466:     libexecdir=$ac_optarg ;;
1.1       schmonz   467:
                    468:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    469:   | --localstate | --localstat | --localsta | --localst \
                    470:   | --locals | --local | --loca | --loc | --lo)
                    471:     ac_prev=localstatedir ;;
                    472:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    473:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    474:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.3       jlam      475:     localstatedir=$ac_optarg ;;
1.1       schmonz   476:
                    477:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    478:     ac_prev=mandir ;;
                    479:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.3       jlam      480:     mandir=$ac_optarg ;;
1.1       schmonz   481:
                    482:   -nfp | --nfp | --nf)
                    483:     # Obsolete; use --without-fp.
                    484:     with_fp=no ;;
                    485:
                    486:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.3       jlam      487:   | --no-cr | --no-c | -n)
1.1       schmonz   488:     no_create=yes ;;
                    489:
                    490:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    491:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    492:     no_recursion=yes ;;
                    493:
                    494:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    495:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    496:   | --oldin | --oldi | --old | --ol | --o)
                    497:     ac_prev=oldincludedir ;;
                    498:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    499:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    500:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.3       jlam      501:     oldincludedir=$ac_optarg ;;
1.1       schmonz   502:
                    503:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    504:     ac_prev=prefix ;;
                    505:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.3       jlam      506:     prefix=$ac_optarg ;;
1.1       schmonz   507:
                    508:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    509:   | --program-pre | --program-pr | --program-p)
                    510:     ac_prev=program_prefix ;;
                    511:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    512:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.3       jlam      513:     program_prefix=$ac_optarg ;;
1.1       schmonz   514:
                    515:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    516:   | --program-suf | --program-su | --program-s)
                    517:     ac_prev=program_suffix ;;
                    518:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    519:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.3       jlam      520:     program_suffix=$ac_optarg ;;
1.1       schmonz   521:
                    522:   -program-transform-name | --program-transform-name \
                    523:   | --program-transform-nam | --program-transform-na \
                    524:   | --program-transform-n | --program-transform- \
                    525:   | --program-transform | --program-transfor \
                    526:   | --program-transfo | --program-transf \
                    527:   | --program-trans | --program-tran \
                    528:   | --progr-tra | --program-tr | --program-t)
                    529:     ac_prev=program_transform_name ;;
                    530:   -program-transform-name=* | --program-transform-name=* \
                    531:   | --program-transform-nam=* | --program-transform-na=* \
                    532:   | --program-transform-n=* | --program-transform-=* \
                    533:   | --program-transform=* | --program-transfor=* \
                    534:   | --program-transfo=* | --program-transf=* \
                    535:   | --program-trans=* | --program-tran=* \
                    536:   | --progr-tra=* | --program-tr=* | --program-t=*)
1.3       jlam      537:     program_transform_name=$ac_optarg ;;
1.1       schmonz   538:
                    539:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    540:   | -silent | --silent | --silen | --sile | --sil)
                    541:     silent=yes ;;
                    542:
                    543:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    544:     ac_prev=sbindir ;;
                    545:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    546:   | --sbi=* | --sb=*)
1.3       jlam      547:     sbindir=$ac_optarg ;;
1.1       schmonz   548:
                    549:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    550:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    551:   | --sharedst | --shareds | --shared | --share | --shar \
                    552:   | --sha | --sh)
                    553:     ac_prev=sharedstatedir ;;
                    554:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    555:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    556:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    557:   | --sha=* | --sh=*)
1.3       jlam      558:     sharedstatedir=$ac_optarg ;;
1.1       schmonz   559:
                    560:   -site | --site | --sit)
                    561:     ac_prev=site ;;
                    562:   -site=* | --site=* | --sit=*)
1.3       jlam      563:     site=$ac_optarg ;;
1.1       schmonz   564:
                    565:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    566:     ac_prev=srcdir ;;
                    567:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.3       jlam      568:     srcdir=$ac_optarg ;;
1.1       schmonz   569:
                    570:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    571:   | --syscon | --sysco | --sysc | --sys | --sy)
                    572:     ac_prev=sysconfdir ;;
                    573:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    574:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.3       jlam      575:     sysconfdir=$ac_optarg ;;
1.1       schmonz   576:
                    577:   -target | --target | --targe | --targ | --tar | --ta | --t)
1.3       jlam      578:     ac_prev=target_alias ;;
1.1       schmonz   579:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.3       jlam      580:     target_alias=$ac_optarg ;;
1.1       schmonz   581:
                    582:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    583:     verbose=yes ;;
                    584:
1.3       jlam      585:   -version | --version | --versio | --versi | --vers | -V)
                    586:     ac_init_version=: ;;
1.1       schmonz   587:
                    588:   -with-* | --with-*)
1.3       jlam      589:     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       schmonz   590:     # Reject names that are not valid shell variable names.
1.3       jlam      591:     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    592:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                    593:    { (exit 1); exit 1; }; }
1.1       schmonz   594:     ac_package=`echo $ac_package| sed 's/-/_/g'`
1.3       jlam      595:     case $ac_option in
                    596:       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1       schmonz   597:       *) ac_optarg=yes ;;
                    598:     esac
1.3       jlam      599:     eval "with_$ac_package='$ac_optarg'" ;;
1.1       schmonz   600:
                    601:   -without-* | --without-*)
1.3       jlam      602:     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       schmonz   603:     # Reject names that are not valid shell variable names.
1.3       jlam      604:     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
                    605:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                    606:    { (exit 1); exit 1; }; }
                    607:     ac_package=`echo $ac_package | sed 's/-/_/g'`
                    608:     eval "with_$ac_package=no" ;;
1.1       schmonz   609:
                    610:   --x)
                    611:     # Obsolete; use --with-x.
                    612:     with_x=yes ;;
                    613:
                    614:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    615:   | --x-incl | --x-inc | --x-in | --x-i)
                    616:     ac_prev=x_includes ;;
                    617:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    618:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.3       jlam      619:     x_includes=$ac_optarg ;;
1.1       schmonz   620:
                    621:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    622:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    623:     ac_prev=x_libraries ;;
                    624:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    625:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.3       jlam      626:     x_libraries=$ac_optarg ;;
1.1       schmonz   627:
1.3       jlam      628:   -*) { echo "$as_me: error: unrecognized option: $ac_option
                    629: Try \`$0 --help' for more information." >&2
                    630:    { (exit 1); exit 1; }; }
1.1       schmonz   631:     ;;
                    632:
1.3       jlam      633:   *=*)
                    634:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                    635:     # Reject names that are not valid shell variable names.
                    636:     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
                    637:       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
                    638:    { (exit 1); exit 1; }; }
                    639:     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
                    640:     eval "$ac_envvar='$ac_optarg'"
                    641:     export $ac_envvar ;;
                    642:
1.1       schmonz   643:   *)
1.3       jlam      644:     # FIXME: should be removed in autoconf 3.0.
                    645:     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
                    646:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
                    647:       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
                    648:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1       schmonz   649:     ;;
                    650:
                    651:   esac
                    652: done
                    653:
                    654: if test -n "$ac_prev"; then
1.3       jlam      655:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
                    656:   { echo "$as_me: error: missing argument to $ac_option" >&2
                    657:    { (exit 1); exit 1; }; }
1.1       schmonz   658: fi
                    659:
1.3       jlam      660: # Be sure to have absolute paths.
                    661: for ac_var in exec_prefix prefix
                    662: do
                    663:   eval ac_val=$`echo $ac_var`
                    664:   case $ac_val in
                    665:     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
                    666:     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
                    667:    { (exit 1); exit 1; }; };;
                    668:   esac
                    669: done
1.1       schmonz   670:
1.3       jlam      671: # Be sure to have absolute paths.
                    672: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.9     ! grant     673:              localstatedir libdir includedir oldincludedir infodir mandir
1.1       schmonz   674: do
1.3       jlam      675:   eval ac_val=$`echo $ac_var`
                    676:   case $ac_val in
                    677:     [\\/$]* | ?:[\\/]* ) ;;
                    678:     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
                    679:    { (exit 1); exit 1; }; };;
1.1       schmonz   680:   esac
                    681: done
                    682:
1.3       jlam      683: # There might be people who depend on the old broken behavior: `$host'
                    684: # used to hold the argument of --host etc.
                    685: # FIXME: To remove some day.
                    686: build=$build_alias
                    687: host=$host_alias
                    688: target=$target_alias
                    689:
                    690: # FIXME: To remove some day.
                    691: if test "x$host_alias" != x; then
                    692:   if test "x$build_alias" = x; then
                    693:     cross_compiling=maybe
                    694:     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
                    695:     If a cross compiler is detected then cross compile mode will be used." >&2
                    696:   elif test "x$build_alias" != "x$host_alias"; then
                    697:     cross_compiling=yes
                    698:   fi
                    699: fi
                    700:
                    701: ac_tool_prefix=
                    702: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1       schmonz   703:
1.3       jlam      704: test "$silent" = yes && exec 6>/dev/null
1.1       schmonz   705:
                    706:
                    707: # Find the source files, if location was not specified.
                    708: if test -z "$srcdir"; then
                    709:   ac_srcdir_defaulted=yes
                    710:   # Try the directory containing this script, then its parent.
1.3       jlam      711:   ac_confdir=`(dirname "$0") 2>/dev/null ||
                    712: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9     ! grant     713:         X"$0" : 'X\(//\)[^/]' \| \
        !           714:         X"$0" : 'X\(//\)$' \| \
        !           715:         X"$0" : 'X\(/\)' \| \
        !           716:         .     : '\(.\)' 2>/dev/null ||
1.3       jlam      717: echo X"$0" |
                    718:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                    719:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                    720:          /^X\(\/\/\)$/{ s//\1/; q; }
                    721:          /^X\(\/\).*/{ s//\1/; q; }
                    722:          s/.*/./; q'`
1.1       schmonz   723:   srcdir=$ac_confdir
                    724:   if test ! -r $srcdir/$ac_unique_file; then
                    725:     srcdir=..
                    726:   fi
                    727: else
                    728:   ac_srcdir_defaulted=no
                    729: fi
                    730: if test ! -r $srcdir/$ac_unique_file; then
                    731:   if test "$ac_srcdir_defaulted" = yes; then
1.3       jlam      732:     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
                    733:    { (exit 1); exit 1; }; }
1.1       schmonz   734:   else
1.3       jlam      735:     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
                    736:    { (exit 1); exit 1; }; }
1.1       schmonz   737:   fi
                    738: fi
1.3       jlam      739: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
                    740:   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
                    741:    { (exit 1); exit 1; }; }
                    742: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
                    743: ac_env_build_alias_set=${build_alias+set}
                    744: ac_env_build_alias_value=$build_alias
                    745: ac_cv_env_build_alias_set=${build_alias+set}
                    746: ac_cv_env_build_alias_value=$build_alias
                    747: ac_env_host_alias_set=${host_alias+set}
                    748: ac_env_host_alias_value=$host_alias
                    749: ac_cv_env_host_alias_set=${host_alias+set}
                    750: ac_cv_env_host_alias_value=$host_alias
                    751: ac_env_target_alias_set=${target_alias+set}
                    752: ac_env_target_alias_value=$target_alias
                    753: ac_cv_env_target_alias_set=${target_alias+set}
                    754: ac_cv_env_target_alias_value=$target_alias
                    755: ac_env_CC_set=${CC+set}
                    756: ac_env_CC_value=$CC
                    757: ac_cv_env_CC_set=${CC+set}
                    758: ac_cv_env_CC_value=$CC
                    759: ac_env_CFLAGS_set=${CFLAGS+set}
                    760: ac_env_CFLAGS_value=$CFLAGS
                    761: ac_cv_env_CFLAGS_set=${CFLAGS+set}
                    762: ac_cv_env_CFLAGS_value=$CFLAGS
                    763: ac_env_LDFLAGS_set=${LDFLAGS+set}
                    764: ac_env_LDFLAGS_value=$LDFLAGS
                    765: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
                    766: ac_cv_env_LDFLAGS_value=$LDFLAGS
                    767: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
                    768: ac_env_CPPFLAGS_value=$CPPFLAGS
                    769: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
                    770: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
                    771: ac_env_CPP_set=${CPP+set}
                    772: ac_env_CPP_value=$CPP
                    773: ac_cv_env_CPP_set=${CPP+set}
                    774: ac_cv_env_CPP_value=$CPP
                    775:
                    776: #
                    777: # Report the --help message.
                    778: #
                    779: if test "$ac_init_help" = "long"; then
                    780:   # Omit some internal or obsolete options to make the list less imposing.
                    781:   # This message is too long to be a string in the A/UX 3.1 sh.
                    782:   cat <<_ACEOF
1.7       grant     783: \`configure' configures pkg_install 20030923 to adapt to many kinds of systems.
1.3       jlam      784:
                    785: Usage: $0 [OPTION]... [VAR=VALUE]...
                    786:
                    787: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                    788: VAR=VALUE.  See below for descriptions of some of the useful variables.
                    789:
                    790: Defaults for the options are specified in brackets.
                    791:
                    792: Configuration:
                    793:   -h, --help              display this help and exit
                    794:       --help=short        display options specific to this package
                    795:       --help=recursive    display the short help of all the included packages
                    796:   -V, --version           display version information and exit
                    797:   -q, --quiet, --silent   do not print \`checking...' messages
                    798:       --cache-file=FILE   cache test results in FILE [disabled]
                    799:   -C, --config-cache      alias for \`--cache-file=config.cache'
                    800:   -n, --no-create         do not create output files
                    801:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                    802:
                    803: _ACEOF
                    804:
                    805:   cat <<_ACEOF
                    806: Installation directories:
                    807:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.9     ! grant     808:                          [$ac_default_prefix]
1.3       jlam      809:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.9     ! grant     810:                          [PREFIX]
1.3       jlam      811:
                    812: By default, \`make install' will install all the files in
                    813: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                    814: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                    815: for instance \`--prefix=\$HOME'.
                    816:
                    817: For better control, use the options below.
                    818:
                    819: Fine tuning of the installation directories:
                    820:   --bindir=DIR           user executables [EPREFIX/bin]
                    821:   --sbindir=DIR          system admin executables [EPREFIX/sbin]
                    822:   --libexecdir=DIR       program executables [EPREFIX/libexec]
                    823:   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
                    824:   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
                    825:   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
                    826:   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
                    827:   --libdir=DIR           object code libraries [EPREFIX/lib]
                    828:   --includedir=DIR       C header files [PREFIX/include]
                    829:   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
                    830:   --infodir=DIR          info documentation [PREFIX/info]
                    831:   --mandir=DIR           man documentation [PREFIX/man]
                    832: _ACEOF
                    833:
                    834:   cat <<\_ACEOF
                    835:
                    836: System types:
                    837:   --build=BUILD     configure for building on BUILD [guessed]
                    838:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                    839: _ACEOF
                    840: fi
                    841:
                    842: if test -n "$ac_init_help"; then
                    843:   case $ac_init_help in
1.7       grant     844:      short | recursive ) echo "Configuration of pkg_install 20030923:";;
1.3       jlam      845:    esac
                    846:   cat <<\_ACEOF
                    847:
                    848: Optional Packages:
                    849:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    850:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1.6       grant     851:   --with-pkgdbdir=DIR     Where to put the pkg database (/var/db/pkg)
                    852:   --with-ftp=path         Path to tnftp (PREFIX/bin/ftp)
                    853:   --with-tar=path         Path to pax-as-tar (PREFIX/bin/tar)
                    854:   --with-pax=path         Path to pax (PREFIX/bin/pax)
                    855:   --with-mtree=path       Path to mtree (PREFIX/sbin/mtree)
1.3       jlam      856:
                    857: Some influential environment variables:
                    858:   CC          C compiler command
                    859:   CFLAGS      C compiler flags
                    860:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                    861:               nonstandard directory <lib dir>
                    862:   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
                    863:               headers in a nonstandard directory <include dir>
                    864:   CPP         C preprocessor
                    865:
                    866: Use these variables to override the choices made by `configure' or to help
                    867: it to find libraries and programs with nonstandard names/locations.
                    868:
                    869: Report bugs to <grant@NetBSD.org>.
                    870: _ACEOF
                    871: fi
                    872:
                    873: if test "$ac_init_help" = "recursive"; then
                    874:   # If there are subdirs, report their specific --help.
                    875:   ac_popdir=`pwd`
                    876:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
                    877:     test -d $ac_dir || continue
                    878:     ac_builddir=.
                    879:
                    880: if test "$ac_dir" != .; then
                    881:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
                    882:   # A "../" for each directory in $ac_dir_suffix.
                    883:   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
                    884: else
                    885:   ac_dir_suffix= ac_top_builddir=
                    886: fi
                    887:
                    888: case $srcdir in
                    889:   .)  # No --srcdir option.  We are building in place.
                    890:     ac_srcdir=.
                    891:     if test -z "$ac_top_builddir"; then
                    892:        ac_top_srcdir=.
                    893:     else
                    894:        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
                    895:     fi ;;
                    896:   [\\/]* | ?:[\\/]* )  # Absolute path.
                    897:     ac_srcdir=$srcdir$ac_dir_suffix;
                    898:     ac_top_srcdir=$srcdir ;;
                    899:   *) # Relative path.
                    900:     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
                    901:     ac_top_srcdir=$ac_top_builddir$srcdir ;;
                    902: esac
1.9     ! grant     903:
        !           904: # Do not use `cd foo && pwd` to compute absolute paths, because
        !           905: # the directories may not exist.
        !           906: case `pwd` in
        !           907: .) ac_abs_builddir="$ac_dir";;
        !           908: *)
        !           909:   case "$ac_dir" in
        !           910:   .) ac_abs_builddir=`pwd`;;
        !           911:   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
        !           912:   *) ac_abs_builddir=`pwd`/"$ac_dir";;
        !           913:   esac;;
        !           914: esac
        !           915: case $ac_abs_builddir in
        !           916: .) ac_abs_top_builddir=${ac_top_builddir}.;;
        !           917: *)
        !           918:   case ${ac_top_builddir}. in
        !           919:   .) ac_abs_top_builddir=$ac_abs_builddir;;
        !           920:   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
        !           921:   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
        !           922:   esac;;
        !           923: esac
        !           924: case $ac_abs_builddir in
        !           925: .) ac_abs_srcdir=$ac_srcdir;;
        !           926: *)
        !           927:   case $ac_srcdir in
        !           928:   .) ac_abs_srcdir=$ac_abs_builddir;;
        !           929:   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
        !           930:   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
        !           931:   esac;;
        !           932: esac
        !           933: case $ac_abs_builddir in
        !           934: .) ac_abs_top_srcdir=$ac_top_srcdir;;
        !           935: *)
        !           936:   case $ac_top_srcdir in
        !           937:   .) ac_abs_top_srcdir=$ac_abs_builddir;;
        !           938:   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
        !           939:   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
        !           940:   esac;;
        !           941: esac
1.3       jlam      942:
                    943:     cd $ac_dir
                    944:     # Check for guested configure; otherwise get Cygnus style configure.
                    945:     if test -f $ac_srcdir/configure.gnu; then
                    946:       echo
                    947:       $SHELL $ac_srcdir/configure.gnu  --help=recursive
                    948:     elif test -f $ac_srcdir/configure; then
                    949:       echo
                    950:       $SHELL $ac_srcdir/configure  --help=recursive
                    951:     elif test -f $ac_srcdir/configure.ac ||
1.9     ! grant     952:           test -f $ac_srcdir/configure.in; then
1.3       jlam      953:       echo
                    954:       $ac_configure --help
                    955:     else
                    956:       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
                    957:     fi
                    958:     cd $ac_popdir
                    959:   done
                    960: fi
                    961:
                    962: test -n "$ac_init_help" && exit 0
                    963: if $ac_init_version; then
                    964:   cat <<\_ACEOF
1.7       grant     965: pkg_install configure 20030923
1.9     ! grant     966: generated by GNU Autoconf 2.59
1.3       jlam      967:
1.9     ! grant     968: Copyright (C) 2003 Free Software Foundation, Inc.
1.3       jlam      969: This configure script is free software; the Free Software Foundation
                    970: gives unlimited permission to copy, distribute and modify it.
                    971: _ACEOF
                    972:   exit 0
                    973: fi
                    974: exec 5>config.log
                    975: cat >&5 <<_ACEOF
                    976: This file contains any messages produced by compilers while
                    977: running configure, to aid debugging if configure makes a mistake.
                    978:
1.7       grant     979: It was created by pkg_install $as_me 20030923, which was
1.9     ! grant     980: generated by GNU Autoconf 2.59.  Invocation command line was
1.3       jlam      981:
                    982:   $ $0 $@
                    983:
                    984: _ACEOF
                    985: {
                    986: cat <<_ASUNAME
                    987: ## --------- ##
                    988: ## Platform. ##
                    989: ## --------- ##
                    990:
                    991: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                    992: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                    993: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                    994: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                    995: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                    996:
                    997: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                    998: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
                    999:
                   1000: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   1001: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   1002: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                   1003: hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
                   1004: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   1005: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   1006: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
                   1007:
                   1008: _ASUNAME
                   1009:
                   1010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1011: for as_dir in $PATH
                   1012: do
                   1013:   IFS=$as_save_IFS
                   1014:   test -z "$as_dir" && as_dir=.
                   1015:   echo "PATH: $as_dir"
                   1016: done
                   1017:
                   1018: } >&5
                   1019:
                   1020: cat >&5 <<_ACEOF
                   1021:
                   1022:
                   1023: ## ----------- ##
                   1024: ## Core tests. ##
                   1025: ## ----------- ##
                   1026:
                   1027: _ACEOF
                   1028:
                   1029:
                   1030: # Keep a trace of the command line.
                   1031: # Strip out --no-create and --no-recursion so they do not pile up.
                   1032: # Strip out --silent because we don't want to record it for future runs.
                   1033: # Also quote any args containing shell meta-characters.
                   1034: # Make two passes to allow for proper duplicate-argument suppression.
                   1035: ac_configure_args=
                   1036: ac_configure_args0=
                   1037: ac_configure_args1=
                   1038: ac_sep=
                   1039: ac_must_keep_next=false
                   1040: for ac_pass in 1 2
                   1041: do
                   1042:   for ac_arg
                   1043:   do
                   1044:     case $ac_arg in
                   1045:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   1046:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1047:     | -silent | --silent | --silen | --sile | --sil)
                   1048:       continue ;;
                   1049:     *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
                   1050:       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   1051:     esac
                   1052:     case $ac_pass in
                   1053:     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
                   1054:     2)
                   1055:       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
                   1056:       if test $ac_must_keep_next = true; then
1.9     ! grant    1057:        ac_must_keep_next=false # Got value, back to normal.
1.3       jlam     1058:       else
1.9     ! grant    1059:        case $ac_arg in
        !          1060:          *=* | --config-cache | -C | -disable-* | --disable-* \
        !          1061:          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
        !          1062:          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
        !          1063:          | -with-* | --with-* | -without-* | --without-* | --x)
        !          1064:            case "$ac_configure_args0 " in
        !          1065:              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
        !          1066:            esac
        !          1067:            ;;
        !          1068:          -* ) ac_must_keep_next=true ;;
        !          1069:        esac
1.3       jlam     1070:       fi
                   1071:       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
                   1072:       # Get rid of the leading space.
                   1073:       ac_sep=" "
                   1074:       ;;
                   1075:     esac
                   1076:   done
                   1077: done
                   1078: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
                   1079: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
                   1080:
                   1081: # When interrupted or exit'd, cleanup temporary files, and complete
                   1082: # config.log.  We remove comments because anyway the quotes in there
                   1083: # would cause problems or look ugly.
                   1084: # WARNING: Be sure not to use single quotes in there, as some shells,
                   1085: # such as our DU 5.0 friend, will then `close' the trap.
                   1086: trap 'exit_status=$?
                   1087:   # Save into config.log some information that might help in debugging.
                   1088:   {
                   1089:     echo
                   1090:
                   1091:     cat <<\_ASBOX
                   1092: ## ---------------- ##
                   1093: ## Cache variables. ##
                   1094: ## ---------------- ##
                   1095: _ASBOX
                   1096:     echo
                   1097:     # The following way of writing the cache mishandles newlines in values,
                   1098: {
                   1099:   (set) 2>&1 |
                   1100:     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
                   1101:     *ac_space=\ *)
                   1102:       sed -n \
1.9     ! grant    1103:        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
        !          1104:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.3       jlam     1105:       ;;
                   1106:     *)
                   1107:       sed -n \
1.9     ! grant    1108:        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.3       jlam     1109:       ;;
                   1110:     esac;
                   1111: }
                   1112:     echo
                   1113:
                   1114:     cat <<\_ASBOX
                   1115: ## ----------------- ##
                   1116: ## Output variables. ##
                   1117: ## ----------------- ##
                   1118: _ASBOX
                   1119:     echo
                   1120:     for ac_var in $ac_subst_vars
                   1121:     do
                   1122:       eval ac_val=$`echo $ac_var`
                   1123:       echo "$ac_var='"'"'$ac_val'"'"'"
                   1124:     done | sort
                   1125:     echo
                   1126:
                   1127:     if test -n "$ac_subst_files"; then
                   1128:       cat <<\_ASBOX
                   1129: ## ------------- ##
                   1130: ## Output files. ##
                   1131: ## ------------- ##
                   1132: _ASBOX
                   1133:       echo
                   1134:       for ac_var in $ac_subst_files
                   1135:       do
                   1136:        eval ac_val=$`echo $ac_var`
1.9     ! grant    1137:        echo "$ac_var='"'"'$ac_val'"'"'"
1.3       jlam     1138:       done | sort
                   1139:       echo
                   1140:     fi
                   1141:
                   1142:     if test -s confdefs.h; then
                   1143:       cat <<\_ASBOX
                   1144: ## ----------- ##
                   1145: ## confdefs.h. ##
                   1146: ## ----------- ##
                   1147: _ASBOX
                   1148:       echo
                   1149:       sed "/^$/d" confdefs.h | sort
                   1150:       echo
                   1151:     fi
                   1152:     test "$ac_signal" != 0 &&
                   1153:       echo "$as_me: caught signal $ac_signal"
                   1154:     echo "$as_me: exit $exit_status"
                   1155:   } >&5
1.9     ! grant    1156:   rm -f core *.core &&
1.3       jlam     1157:   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
                   1158:     exit $exit_status
                   1159:      ' 0
                   1160: for ac_signal in 1 2 13 15; do
                   1161:   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
                   1162: done
                   1163: ac_signal=0
                   1164:
                   1165: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                   1166: rm -rf conftest* confdefs.h
                   1167: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                   1168: echo >confdefs.h
                   1169:
                   1170: # Predefined preprocessor variables.
                   1171:
                   1172: cat >>confdefs.h <<_ACEOF
                   1173: #define PACKAGE_NAME "$PACKAGE_NAME"
                   1174: _ACEOF
                   1175:
                   1176:
                   1177: cat >>confdefs.h <<_ACEOF
                   1178: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
                   1179: _ACEOF
                   1180:
                   1181:
                   1182: cat >>confdefs.h <<_ACEOF
                   1183: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   1184: _ACEOF
                   1185:
                   1186:
                   1187: cat >>confdefs.h <<_ACEOF
                   1188: #define PACKAGE_STRING "$PACKAGE_STRING"
                   1189: _ACEOF
                   1190:
1.1       schmonz  1191:
1.3       jlam     1192: cat >>confdefs.h <<_ACEOF
                   1193: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   1194: _ACEOF
                   1195:
                   1196:
                   1197: # Let the site file select an alternate cache file if it wants to.
1.1       schmonz  1198: # Prefer explicitly selected file to automatically selected ones.
                   1199: if test -z "$CONFIG_SITE"; then
                   1200:   if test "x$prefix" != xNONE; then
                   1201:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                   1202:   else
                   1203:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                   1204:   fi
                   1205: fi
                   1206: for ac_site_file in $CONFIG_SITE; do
                   1207:   if test -r "$ac_site_file"; then
1.3       jlam     1208:     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
                   1209: echo "$as_me: loading site script $ac_site_file" >&6;}
                   1210:     sed 's/^/| /' "$ac_site_file" >&5
1.1       schmonz  1211:     . "$ac_site_file"
                   1212:   fi
                   1213: done
                   1214:
                   1215: if test -r "$cache_file"; then
1.3       jlam     1216:   # Some versions of bash will fail to source /dev/null (special
                   1217:   # files actually), so we avoid doing that.
                   1218:   if test -f "$cache_file"; then
                   1219:     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
                   1220: echo "$as_me: loading cache $cache_file" >&6;}
                   1221:     case $cache_file in
                   1222:       [\\/]* | ?:[\\/]* ) . $cache_file;;
                   1223:       *)                      . ./$cache_file;;
                   1224:     esac
                   1225:   fi
1.1       schmonz  1226: else
1.3       jlam     1227:   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
                   1228: echo "$as_me: creating cache $cache_file" >&6;}
                   1229:   >$cache_file
                   1230: fi
                   1231:
                   1232: # Check that the precious variables saved in the cache have kept the same
                   1233: # value.
                   1234: ac_cache_corrupted=false
                   1235: for ac_var in `(set) 2>&1 |
1.9     ! grant    1236:               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.3       jlam     1237:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   1238:   eval ac_new_set=\$ac_env_${ac_var}_set
                   1239:   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
                   1240:   eval ac_new_val="\$ac_env_${ac_var}_value"
                   1241:   case $ac_old_set,$ac_new_set in
                   1242:     set,)
                   1243:       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                   1244: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   1245:       ac_cache_corrupted=: ;;
                   1246:     ,set)
                   1247:       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
                   1248: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   1249:       ac_cache_corrupted=: ;;
                   1250:     ,);;
                   1251:     *)
                   1252:       if test "x$ac_old_val" != "x$ac_new_val"; then
1.9     ! grant    1253:        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.3       jlam     1254: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.9     ! grant    1255:        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1.3       jlam     1256: echo "$as_me:   former value:  $ac_old_val" >&2;}
1.9     ! grant    1257:        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1.3       jlam     1258: echo "$as_me:   current value: $ac_new_val" >&2;}
1.9     ! grant    1259:        ac_cache_corrupted=:
1.3       jlam     1260:       fi;;
                   1261:   esac
                   1262:   # Pass precious variables to config.status.
                   1263:   if test "$ac_new_set" = set; then
                   1264:     case $ac_new_val in
                   1265:     *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
                   1266:       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
                   1267:     *) ac_arg=$ac_var=$ac_new_val ;;
                   1268:     esac
                   1269:     case " $ac_configure_args " in
                   1270:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   1271:       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                   1272:     esac
                   1273:   fi
                   1274: done
                   1275: if $ac_cache_corrupted; then
                   1276:   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
                   1277: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
                   1278:   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
                   1279: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
                   1280:    { (exit 1); exit 1; }; }
1.1       schmonz  1281: fi
                   1282:
                   1283: ac_ext=c
                   1284: ac_cpp='$CPP $CPPFLAGS'
1.3       jlam     1285: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   1286: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   1287: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   1288:
                   1289:
                   1290:
                   1291:
                   1292:
                   1293:
                   1294:
                   1295:
                   1296:
                   1297:
                   1298:
                   1299:
                   1300:
                   1301:
                   1302:
                   1303:
                   1304:
                   1305:
                   1306:
                   1307:
                   1308:
1.1       schmonz  1309:
                   1310:
                   1311:
                   1312:
                   1313:
                   1314:
                   1315:
1.3       jlam     1316:           ac_config_headers="$ac_config_headers lib/config.h"
1.1       schmonz  1317:
                   1318:
                   1319: ac_aux_dir=
                   1320: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
                   1321:   if test -f $ac_dir/install-sh; then
                   1322:     ac_aux_dir=$ac_dir
                   1323:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   1324:     break
                   1325:   elif test -f $ac_dir/install.sh; then
                   1326:     ac_aux_dir=$ac_dir
                   1327:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   1328:     break
1.3       jlam     1329:   elif test -f $ac_dir/shtool; then
                   1330:     ac_aux_dir=$ac_dir
                   1331:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   1332:     break
1.1       schmonz  1333:   fi
                   1334: done
                   1335: if test -z "$ac_aux_dir"; then
1.3       jlam     1336:   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
                   1337: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
                   1338:    { (exit 1); exit 1; }; }
                   1339: fi
                   1340: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
                   1341: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
                   1342: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
                   1343:
                   1344: # Make sure we can run config.sub.
                   1345: $ac_config_sub sun4 >/dev/null 2>&1 ||
                   1346:   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
                   1347: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
                   1348:    { (exit 1); exit 1; }; }
                   1349:
                   1350: echo "$as_me:$LINENO: checking build system type" >&5
                   1351: echo $ECHO_N "checking build system type... $ECHO_C" >&6
                   1352: if test "${ac_cv_build+set}" = set; then
                   1353:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1354: else
                   1355:   ac_cv_build_alias=$build_alias
                   1356: test -z "$ac_cv_build_alias" &&
                   1357:   ac_cv_build_alias=`$ac_config_guess`
                   1358: test -z "$ac_cv_build_alias" &&
                   1359:   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
                   1360: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
                   1361:    { (exit 1); exit 1; }; }
                   1362: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
                   1363:   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
                   1364: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
                   1365:    { (exit 1); exit 1; }; }
                   1366:
                   1367: fi
                   1368: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
                   1369: echo "${ECHO_T}$ac_cv_build" >&6
                   1370: build=$ac_cv_build
                   1371: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   1372: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   1373: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   1374:
                   1375:
                   1376: echo "$as_me:$LINENO: checking host system type" >&5
                   1377: echo $ECHO_N "checking host system type... $ECHO_C" >&6
                   1378: if test "${ac_cv_host+set}" = set; then
                   1379:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1380: else
                   1381:   ac_cv_host_alias=$host_alias
                   1382: test -z "$ac_cv_host_alias" &&
                   1383:   ac_cv_host_alias=$ac_cv_build_alias
                   1384: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
                   1385:   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
                   1386: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
                   1387:    { (exit 1); exit 1; }; }
                   1388:
                   1389: fi
                   1390: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
                   1391: echo "${ECHO_T}$ac_cv_host" >&6
                   1392: host=$ac_cv_host
                   1393: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   1394: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   1395: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   1396:
                   1397:
                   1398: CANONICAL_HOST=$host
                   1399:
                   1400:
                   1401:
                   1402: # Checks for programs.
                   1403: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
                   1404: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.9     ! grant    1405: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.3       jlam     1406: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
                   1407:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1408: else
                   1409:   cat >conftest.make <<\_ACEOF
                   1410: all:
                   1411:        @echo 'ac_maketemp="$(MAKE)"'
                   1412: _ACEOF
                   1413: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   1414: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
                   1415: if test -n "$ac_maketemp"; then
                   1416:   eval ac_cv_prog_make_${ac_make}_set=yes
                   1417: else
                   1418:   eval ac_cv_prog_make_${ac_make}_set=no
                   1419: fi
                   1420: rm -f conftest.make
                   1421: fi
                   1422: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
                   1423:   echo "$as_me:$LINENO: result: yes" >&5
                   1424: echo "${ECHO_T}yes" >&6
                   1425:   SET_MAKE=
                   1426: else
                   1427:   echo "$as_me:$LINENO: result: no" >&5
                   1428: echo "${ECHO_T}no" >&6
                   1429:   SET_MAKE="MAKE=${MAKE-make}"
1.1       schmonz  1430: fi
                   1431:
1.3       jlam     1432: ac_ext=c
                   1433: ac_cpp='$CPP $CPPFLAGS'
                   1434: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   1435: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   1436: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   1437: if test -n "$ac_tool_prefix"; then
                   1438:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
                   1439: set dummy ${ac_tool_prefix}gcc; ac_word=$2
                   1440: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1441: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1442: if test "${ac_cv_prog_CC+set}" = set; then
                   1443:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1444: else
                   1445:   if test -n "$CC"; then
                   1446:   ac_cv_prog_CC="$CC" # Let the user override the test.
1.1       schmonz  1447: else
1.3       jlam     1448: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1449: for as_dir in $PATH
                   1450: do
                   1451:   IFS=$as_save_IFS
                   1452:   test -z "$as_dir" && as_dir=.
                   1453:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1454:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1455:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
                   1456:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1457:     break 2
                   1458:   fi
                   1459: done
                   1460: done
                   1461:
                   1462: fi
                   1463: fi
                   1464: CC=$ac_cv_prog_CC
                   1465: if test -n "$CC"; then
                   1466:   echo "$as_me:$LINENO: result: $CC" >&5
                   1467: echo "${ECHO_T}$CC" >&6
                   1468: else
                   1469:   echo "$as_me:$LINENO: result: no" >&5
                   1470: echo "${ECHO_T}no" >&6
                   1471: fi
1.1       schmonz  1472:
                   1473: fi
1.3       jlam     1474: if test -z "$ac_cv_prog_CC"; then
                   1475:   ac_ct_CC=$CC
                   1476:   # Extract the first word of "gcc", so it can be a program name with args.
                   1477: set dummy gcc; ac_word=$2
                   1478: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1479: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1480: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   1481:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1482: else
                   1483:   if test -n "$ac_ct_CC"; then
                   1484:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   1485: else
                   1486: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1487: for as_dir in $PATH
                   1488: do
                   1489:   IFS=$as_save_IFS
                   1490:   test -z "$as_dir" && as_dir=.
                   1491:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1492:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1493:     ac_cv_prog_ac_ct_CC="gcc"
                   1494:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1495:     break 2
1.1       schmonz  1496:   fi
1.3       jlam     1497: done
                   1498: done
                   1499:
                   1500: fi
                   1501: fi
                   1502: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   1503: if test -n "$ac_ct_CC"; then
                   1504:   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   1505: echo "${ECHO_T}$ac_ct_CC" >&6
                   1506: else
                   1507:   echo "$as_me:$LINENO: result: no" >&5
                   1508: echo "${ECHO_T}no" >&6
1.1       schmonz  1509: fi
                   1510:
1.3       jlam     1511:   CC=$ac_ct_CC
                   1512: else
                   1513:   CC="$ac_cv_prog_CC"
                   1514: fi
1.1       schmonz  1515:
1.3       jlam     1516: if test -z "$CC"; then
                   1517:   if test -n "$ac_tool_prefix"; then
                   1518:   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
                   1519: set dummy ${ac_tool_prefix}cc; ac_word=$2
                   1520: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1521: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1522: if test "${ac_cv_prog_CC+set}" = set; then
                   1523:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       schmonz  1524: else
                   1525:   if test -n "$CC"; then
                   1526:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1527: else
1.3       jlam     1528: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1529: for as_dir in $PATH
                   1530: do
                   1531:   IFS=$as_save_IFS
                   1532:   test -z "$as_dir" && as_dir=.
                   1533:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1534:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1535:     ac_cv_prog_CC="${ac_tool_prefix}cc"
                   1536:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1537:     break 2
                   1538:   fi
                   1539: done
                   1540: done
                   1541:
1.1       schmonz  1542: fi
                   1543: fi
1.3       jlam     1544: CC=$ac_cv_prog_CC
1.1       schmonz  1545: if test -n "$CC"; then
1.3       jlam     1546:   echo "$as_me:$LINENO: result: $CC" >&5
                   1547: echo "${ECHO_T}$CC" >&6
                   1548: else
                   1549:   echo "$as_me:$LINENO: result: no" >&5
                   1550: echo "${ECHO_T}no" >&6
                   1551: fi
                   1552:
                   1553: fi
                   1554: if test -z "$ac_cv_prog_CC"; then
                   1555:   ac_ct_CC=$CC
                   1556:   # Extract the first word of "cc", so it can be a program name with args.
                   1557: set dummy cc; ac_word=$2
                   1558: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1559: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1560: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   1561:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1562: else
                   1563:   if test -n "$ac_ct_CC"; then
                   1564:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   1565: else
                   1566: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1567: for as_dir in $PATH
                   1568: do
                   1569:   IFS=$as_save_IFS
                   1570:   test -z "$as_dir" && as_dir=.
                   1571:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1572:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1573:     ac_cv_prog_ac_ct_CC="cc"
                   1574:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1575:     break 2
                   1576:   fi
                   1577: done
                   1578: done
                   1579:
                   1580: fi
                   1581: fi
                   1582: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   1583: if test -n "$ac_ct_CC"; then
                   1584:   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   1585: echo "${ECHO_T}$ac_ct_CC" >&6
                   1586: else
                   1587:   echo "$as_me:$LINENO: result: no" >&5
                   1588: echo "${ECHO_T}no" >&6
                   1589: fi
                   1590:
                   1591:   CC=$ac_ct_CC
1.1       schmonz  1592: else
1.3       jlam     1593:   CC="$ac_cv_prog_CC"
1.1       schmonz  1594: fi
                   1595:
1.3       jlam     1596: fi
1.1       schmonz  1597: if test -z "$CC"; then
                   1598:   # Extract the first word of "cc", so it can be a program name with args.
                   1599: set dummy cc; ac_word=$2
1.3       jlam     1600: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1601: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1602: if test "${ac_cv_prog_CC+set}" = set; then
                   1603:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       schmonz  1604: else
                   1605:   if test -n "$CC"; then
                   1606:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1607: else
                   1608:   ac_prog_rejected=no
1.3       jlam     1609: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1610: for as_dir in $PATH
                   1611: do
                   1612:   IFS=$as_save_IFS
                   1613:   test -z "$as_dir" && as_dir=.
                   1614:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1615:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1616:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
                   1617:        ac_prog_rejected=yes
                   1618:        continue
                   1619:      fi
                   1620:     ac_cv_prog_CC="cc"
                   1621:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1622:     break 2
                   1623:   fi
                   1624: done
                   1625: done
                   1626:
1.1       schmonz  1627: if test $ac_prog_rejected = yes; then
                   1628:   # We found a bogon in the path, so make sure we never use it.
                   1629:   set dummy $ac_cv_prog_CC
                   1630:   shift
1.3       jlam     1631:   if test $# != 0; then
1.1       schmonz  1632:     # We chose a different compiler from the bogus one.
                   1633:     # However, it has the same basename, so the bogon will be chosen
                   1634:     # first if we set CC to just the basename; use the full file name.
                   1635:     shift
1.3       jlam     1636:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1       schmonz  1637:   fi
                   1638: fi
                   1639: fi
                   1640: fi
1.3       jlam     1641: CC=$ac_cv_prog_CC
1.1       schmonz  1642: if test -n "$CC"; then
1.3       jlam     1643:   echo "$as_me:$LINENO: result: $CC" >&5
                   1644: echo "${ECHO_T}$CC" >&6
1.1       schmonz  1645: else
1.3       jlam     1646:   echo "$as_me:$LINENO: result: no" >&5
                   1647: echo "${ECHO_T}no" >&6
1.1       schmonz  1648: fi
                   1649:
1.3       jlam     1650: fi
                   1651: if test -z "$CC"; then
                   1652:   if test -n "$ac_tool_prefix"; then
                   1653:   for ac_prog in cl
                   1654:   do
                   1655:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   1656: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   1657: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1658: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1659: if test "${ac_cv_prog_CC+set}" = set; then
                   1660:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       schmonz  1661: else
                   1662:   if test -n "$CC"; then
                   1663:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1664: else
1.3       jlam     1665: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1666: for as_dir in $PATH
                   1667: do
                   1668:   IFS=$as_save_IFS
                   1669:   test -z "$as_dir" && as_dir=.
                   1670:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1671:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1672:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   1673:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1674:     break 2
                   1675:   fi
                   1676: done
                   1677: done
                   1678:
1.1       schmonz  1679: fi
                   1680: fi
1.3       jlam     1681: CC=$ac_cv_prog_CC
1.1       schmonz  1682: if test -n "$CC"; then
1.3       jlam     1683:   echo "$as_me:$LINENO: result: $CC" >&5
                   1684: echo "${ECHO_T}$CC" >&6
1.1       schmonz  1685: else
1.3       jlam     1686:   echo "$as_me:$LINENO: result: no" >&5
                   1687: echo "${ECHO_T}no" >&6
1.1       schmonz  1688: fi
1.3       jlam     1689:
                   1690:     test -n "$CC" && break
                   1691:   done
                   1692: fi
                   1693: if test -z "$CC"; then
                   1694:   ac_ct_CC=$CC
                   1695:   for ac_prog in cl
                   1696: do
                   1697:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   1698: set dummy $ac_prog; ac_word=$2
                   1699: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   1700: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   1701: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   1702:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1703: else
                   1704:   if test -n "$ac_ct_CC"; then
                   1705:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   1706: else
                   1707: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1708: for as_dir in $PATH
                   1709: do
                   1710:   IFS=$as_save_IFS
                   1711:   test -z "$as_dir" && as_dir=.
                   1712:   for ac_exec_ext in '' $ac_executable_extensions; do
                   1713:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   1714:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   1715:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   1716:     break 2
1.1       schmonz  1717:   fi
1.3       jlam     1718: done
                   1719: done
                   1720:
                   1721: fi
                   1722: fi
                   1723: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   1724: if test -n "$ac_ct_CC"; then
                   1725:   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   1726: echo "${ECHO_T}$ac_ct_CC" >&6
                   1727: else
                   1728:   echo "$as_me:$LINENO: result: no" >&5
                   1729: echo "${ECHO_T}no" >&6
                   1730: fi
                   1731:
                   1732:   test -n "$ac_ct_CC" && break
                   1733: done
                   1734:
                   1735:   CC=$ac_ct_CC
                   1736: fi
                   1737:
1.1       schmonz  1738: fi
                   1739:
                   1740:
1.3       jlam     1741: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
                   1742: See \`config.log' for more details." >&5
                   1743: echo "$as_me: error: no acceptable C compiler found in \$PATH
                   1744: See \`config.log' for more details." >&2;}
                   1745:    { (exit 1); exit 1; }; }
                   1746:
                   1747: # Provide some information about the compiler.
                   1748: echo "$as_me:$LINENO:" \
                   1749:      "checking for C compiler version" >&5
                   1750: ac_compiler=`set X $ac_compile; echo $2`
                   1751: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
                   1752:   (eval $ac_compiler --version </dev/null >&5) 2>&5
                   1753:   ac_status=$?
                   1754:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   1755:   (exit $ac_status); }
                   1756: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
                   1757:   (eval $ac_compiler -v </dev/null >&5) 2>&5
                   1758:   ac_status=$?
                   1759:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   1760:   (exit $ac_status); }
                   1761: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
                   1762:   (eval $ac_compiler -V </dev/null >&5) 2>&5
                   1763:   ac_status=$?
                   1764:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   1765:   (exit $ac_status); }
                   1766:
                   1767: cat >conftest.$ac_ext <<_ACEOF
                   1768: /* confdefs.h.  */
                   1769: _ACEOF
                   1770: cat confdefs.h >>conftest.$ac_ext
                   1771: cat >>conftest.$ac_ext <<_ACEOF
                   1772: /* end confdefs.h.  */
1.1       schmonz  1773:
1.3       jlam     1774: int
                   1775: main ()
                   1776: {
1.1       schmonz  1777:
1.3       jlam     1778:   ;
                   1779:   return 0;
                   1780: }
                   1781: _ACEOF
                   1782: ac_clean_files_save=$ac_clean_files
                   1783: ac_clean_files="$ac_clean_files a.out a.exe b.out"
                   1784: # Try to create an executable without -o first, disregard a.out.
                   1785: # It will help us diagnose broken compilers, and finding out an intuition
                   1786: # of exeext.
1.9     ! grant    1787: echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
        !          1788: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1.3       jlam     1789: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
                   1790: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
                   1791:   (eval $ac_link_default) 2>&5
                   1792:   ac_status=$?
                   1793:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   1794:   (exit $ac_status); }; then
                   1795:   # Find the output, starting from the most likely.  This scheme is
                   1796: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
                   1797: # resort.
                   1798:
                   1799: # Be careful to initialize this variable, since it used to be cached.
                   1800: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
                   1801: ac_cv_exeext=
                   1802: # b.out is created by i960 compilers.
                   1803: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
                   1804: do
                   1805:   test -f "$ac_file" || continue
                   1806:   case $ac_file in
                   1807:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.9     ! grant    1808:        ;;
1.3       jlam     1809:     conftest.$ac_ext )
1.9     ! grant    1810:        # This is the source file.
        !          1811:        ;;
1.3       jlam     1812:     [ab].out )
1.9     ! grant    1813:        # We found the default executable, but exeext='' is most
        !          1814:        # certainly right.
        !          1815:        break;;
1.3       jlam     1816:     *.* )
1.9     ! grant    1817:        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
        !          1818:        # FIXME: I believe we export ac_cv_exeext for Libtool,
        !          1819:        # but it would be cool to find out if it's true.  Does anybody
        !          1820:        # maintain Libtool? --akim.
        !          1821:        export ac_cv_exeext
        !          1822:        break;;
1.3       jlam     1823:     * )
1.9     ! grant    1824:        break;;
1.3       jlam     1825:   esac
                   1826: done
                   1827: else
                   1828:   echo "$as_me: failed program was:" >&5
                   1829: sed 's/^/| /' conftest.$ac_ext >&5
1.1       schmonz  1830:
1.3       jlam     1831: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
                   1832: See \`config.log' for more details." >&5
                   1833: echo "$as_me: error: C compiler cannot create executables
                   1834: See \`config.log' for more details." >&2;}
                   1835:    { (exit 77); exit 77; }; }
                   1836: fi
                   1837:
                   1838: ac_exeext=$ac_cv_exeext
                   1839: echo "$as_me:$LINENO: result: $ac_file" >&5
                   1840: echo "${ECHO_T}$ac_file" >&6
                   1841:
                   1842: # Check the compiler produces executables we can run.  If not, either
                   1843: # the compiler is broken, or we cross compile.
                   1844: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
                   1845: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
                   1846: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
                   1847: # If not cross compiling, check that we can run a simple program.
                   1848: if test "$cross_compiling" != yes; then
                   1849:   if { ac_try='./$ac_file'
                   1850:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   1851:   (eval $ac_try) 2>&5
                   1852:   ac_status=$?
                   1853:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   1854:   (exit $ac_status); }; }; then
                   1855:     cross_compiling=no
1.1       schmonz  1856:   else
1.3       jlam     1857:     if test "$cross_compiling" = maybe; then
                   1858:        cross_compiling=yes
                   1859:     else
                   1860:        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
                   1861: If you meant to cross compile, use \`--host'.
                   1862: See \`config.log' for more details." >&5
                   1863: echo "$as_me: error: cannot run C compiled programs.
                   1864: If you meant to cross compile, use \`--host'.
                   1865: See \`config.log' for more details." >&2;}
                   1866:    { (exit 1); exit 1; }; }
                   1867:     fi
1.1       schmonz  1868:   fi
1.3       jlam     1869: fi
                   1870: echo "$as_me:$LINENO: result: yes" >&5
                   1871: echo "${ECHO_T}yes" >&6
                   1872:
                   1873: rm -f a.out a.exe conftest$ac_cv_exeext b.out
                   1874: ac_clean_files=$ac_clean_files_save
                   1875: # Check the compiler produces executables we can run.  If not, either
                   1876: # the compiler is broken, or we cross compile.
                   1877: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
                   1878: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
                   1879: echo "$as_me:$LINENO: result: $cross_compiling" >&5
                   1880: echo "${ECHO_T}$cross_compiling" >&6
                   1881:
                   1882: echo "$as_me:$LINENO: checking for suffix of executables" >&5
                   1883: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
                   1884: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   1885:   (eval $ac_link) 2>&5
                   1886:   ac_status=$?
                   1887:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   1888:   (exit $ac_status); }; then
                   1889:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   1890: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   1891: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   1892: # `rm'.
                   1893: for ac_file in conftest.exe conftest conftest.*; do
                   1894:   test -f "$ac_file" || continue
                   1895:   case $ac_file in
                   1896:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
                   1897:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.9     ! grant    1898:          export ac_cv_exeext
        !          1899:          break;;
1.3       jlam     1900:     * ) break;;
                   1901:   esac
                   1902: done
1.1       schmonz  1903: else
1.3       jlam     1904:   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
                   1905: See \`config.log' for more details." >&5
                   1906: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
                   1907: See \`config.log' for more details." >&2;}
                   1908:    { (exit 1); exit 1; }; }
                   1909: fi
                   1910:
                   1911: rm -f conftest$ac_cv_exeext
                   1912: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
                   1913: echo "${ECHO_T}$ac_cv_exeext" >&6
                   1914:
                   1915: rm -f conftest.$ac_ext
                   1916: EXEEXT=$ac_cv_exeext
                   1917: ac_exeext=$EXEEXT
                   1918: echo "$as_me:$LINENO: checking for suffix of object files" >&5
                   1919: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
                   1920: if test "${ac_cv_objext+set}" = set; then
                   1921:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1922: else
                   1923:   cat >conftest.$ac_ext <<_ACEOF
                   1924: /* confdefs.h.  */
                   1925: _ACEOF
                   1926: cat confdefs.h >>conftest.$ac_ext
                   1927: cat >>conftest.$ac_ext <<_ACEOF
                   1928: /* end confdefs.h.  */
1.1       schmonz  1929:
1.3       jlam     1930: int
                   1931: main ()
                   1932: {
1.1       schmonz  1933:
1.3       jlam     1934:   ;
                   1935:   return 0;
                   1936: }
                   1937: _ACEOF
                   1938: rm -f conftest.o conftest.obj
                   1939: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   1940:   (eval $ac_compile) 2>&5
                   1941:   ac_status=$?
                   1942:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   1943:   (exit $ac_status); }; then
                   1944:   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
                   1945:   case $ac_file in
                   1946:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
                   1947:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   1948:        break;;
                   1949:   esac
                   1950: done
1.1       schmonz  1951: else
1.3       jlam     1952:   echo "$as_me: failed program was:" >&5
                   1953: sed 's/^/| /' conftest.$ac_ext >&5
                   1954:
                   1955: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
                   1956: See \`config.log' for more details." >&5
                   1957: echo "$as_me: error: cannot compute suffix of object files: cannot compile
                   1958: See \`config.log' for more details." >&2;}
                   1959:    { (exit 1); exit 1; }; }
                   1960: fi
                   1961:
                   1962: rm -f conftest.$ac_cv_objext conftest.$ac_ext
                   1963: fi
                   1964: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
                   1965: echo "${ECHO_T}$ac_cv_objext" >&6
                   1966: OBJEXT=$ac_cv_objext
                   1967: ac_objext=$OBJEXT
                   1968: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
                   1969: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
                   1970: if test "${ac_cv_c_compiler_gnu+set}" = set; then
                   1971:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   1972: else
                   1973:   cat >conftest.$ac_ext <<_ACEOF
                   1974: /* confdefs.h.  */
                   1975: _ACEOF
                   1976: cat confdefs.h >>conftest.$ac_ext
                   1977: cat >>conftest.$ac_ext <<_ACEOF
                   1978: /* end confdefs.h.  */
                   1979:
                   1980: int
                   1981: main ()
                   1982: {
                   1983: #ifndef __GNUC__
                   1984:        choke me
1.1       schmonz  1985: #endif
                   1986:
1.3       jlam     1987:   ;
                   1988:   return 0;
                   1989: }
                   1990: _ACEOF
                   1991: rm -f conftest.$ac_objext
                   1992: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9     ! grant    1993:   (eval $ac_compile) 2>conftest.er1
1.3       jlam     1994:   ac_status=$?
1.9     ! grant    1995:   grep -v '^ *+' conftest.er1 >conftest.err
        !          1996:   rm -f conftest.er1
        !          1997:   cat conftest.err >&5
1.3       jlam     1998:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   1999:   (exit $ac_status); } &&
1.9     ! grant    2000:         { ac_try='test -z "$ac_c_werror_flag"
        !          2001:                         || test ! -s conftest.err'
        !          2002:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          2003:   (eval $ac_try) 2>&5
        !          2004:   ac_status=$?
        !          2005:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2006:   (exit $ac_status); }; } &&
        !          2007:         { ac_try='test -s conftest.$ac_objext'
1.3       jlam     2008:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   2009:   (eval $ac_try) 2>&5
                   2010:   ac_status=$?
                   2011:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2012:   (exit $ac_status); }; }; then
                   2013:   ac_compiler_gnu=yes
                   2014: else
                   2015:   echo "$as_me: failed program was:" >&5
                   2016: sed 's/^/| /' conftest.$ac_ext >&5
                   2017:
                   2018: ac_compiler_gnu=no
                   2019: fi
1.9     ! grant    2020: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3       jlam     2021: ac_cv_c_compiler_gnu=$ac_compiler_gnu
                   2022:
                   2023: fi
                   2024: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
                   2025: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
                   2026: GCC=`test $ac_compiler_gnu = yes && echo yes`
                   2027: ac_test_CFLAGS=${CFLAGS+set}
                   2028: ac_save_CFLAGS=$CFLAGS
                   2029: CFLAGS="-g"
                   2030: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
                   2031: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
                   2032: if test "${ac_cv_prog_cc_g+set}" = set; then
                   2033:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2034: else
                   2035:   cat >conftest.$ac_ext <<_ACEOF
                   2036: /* confdefs.h.  */
                   2037: _ACEOF
                   2038: cat confdefs.h >>conftest.$ac_ext
                   2039: cat >>conftest.$ac_ext <<_ACEOF
                   2040: /* end confdefs.h.  */
1.1       schmonz  2041:
1.3       jlam     2042: int
                   2043: main ()
                   2044: {
1.1       schmonz  2045:
1.3       jlam     2046:   ;
                   2047:   return 0;
                   2048: }
                   2049: _ACEOF
                   2050: rm -f conftest.$ac_objext
                   2051: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9     ! grant    2052:   (eval $ac_compile) 2>conftest.er1
1.3       jlam     2053:   ac_status=$?
1.9     ! grant    2054:   grep -v '^ *+' conftest.er1 >conftest.err
        !          2055:   rm -f conftest.er1
        !          2056:   cat conftest.err >&5
1.3       jlam     2057:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2058:   (exit $ac_status); } &&
1.9     ! grant    2059:         { ac_try='test -z "$ac_c_werror_flag"
        !          2060:                         || test ! -s conftest.err'
        !          2061:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          2062:   (eval $ac_try) 2>&5
        !          2063:   ac_status=$?
        !          2064:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2065:   (exit $ac_status); }; } &&
        !          2066:         { ac_try='test -s conftest.$ac_objext'
1.3       jlam     2067:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   2068:   (eval $ac_try) 2>&5
                   2069:   ac_status=$?
                   2070:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2071:   (exit $ac_status); }; }; then
1.1       schmonz  2072:   ac_cv_prog_cc_g=yes
                   2073: else
1.3       jlam     2074:   echo "$as_me: failed program was:" >&5
                   2075: sed 's/^/| /' conftest.$ac_ext >&5
                   2076:
                   2077: ac_cv_prog_cc_g=no
1.1       schmonz  2078: fi
1.9     ! grant    2079: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       schmonz  2080: fi
1.3       jlam     2081: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
                   2082: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1       schmonz  2083: if test "$ac_test_CFLAGS" = set; then
1.3       jlam     2084:   CFLAGS=$ac_save_CFLAGS
1.1       schmonz  2085: elif test $ac_cv_prog_cc_g = yes; then
                   2086:   if test "$GCC" = yes; then
                   2087:     CFLAGS="-g -O2"
                   2088:   else
                   2089:     CFLAGS="-g"
                   2090:   fi
                   2091: else
                   2092:   if test "$GCC" = yes; then
                   2093:     CFLAGS="-O2"
                   2094:   else
                   2095:     CFLAGS=
                   2096:   fi
                   2097: fi
1.3       jlam     2098: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
                   2099: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
                   2100: if test "${ac_cv_prog_cc_stdc+set}" = set; then
                   2101:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2102: else
                   2103:   ac_cv_prog_cc_stdc=no
                   2104: ac_save_CC=$CC
                   2105: cat >conftest.$ac_ext <<_ACEOF
                   2106: /* confdefs.h.  */
                   2107: _ACEOF
                   2108: cat confdefs.h >>conftest.$ac_ext
                   2109: cat >>conftest.$ac_ext <<_ACEOF
                   2110: /* end confdefs.h.  */
                   2111: #include <stdarg.h>
                   2112: #include <stdio.h>
                   2113: #include <sys/types.h>
                   2114: #include <sys/stat.h>
                   2115: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   2116: struct buf { int x; };
                   2117: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   2118: static char *e (p, i)
                   2119:      char **p;
                   2120:      int i;
                   2121: {
                   2122:   return p[i];
                   2123: }
                   2124: static char *f (char * (*g) (char **, int), char **p, ...)
                   2125: {
                   2126:   char *s;
                   2127:   va_list v;
                   2128:   va_start (v,p);
                   2129:   s = g (p, va_arg (v,int));
                   2130:   va_end (v);
                   2131:   return s;
                   2132: }
1.9     ! grant    2133:
        !          2134: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
        !          2135:    function prototypes and stuff, but not '\xHH' hex character constants.
        !          2136:    These don't provoke an error unfortunately, instead are silently treated
        !          2137:    as 'x'.  The following induces an error, until -std1 is added to get
        !          2138:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
        !          2139:    array size at least.  It's necessary to write '\x00'==0 to get something
        !          2140:    that's true only with -std1.  */
        !          2141: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
        !          2142:
1.3       jlam     2143: int test (int i, double x);
                   2144: struct s1 {int (*f) (int a);};
                   2145: struct s2 {int (*f) (double a);};
                   2146: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   2147: int argc;
                   2148: char **argv;
                   2149: int
                   2150: main ()
                   2151: {
                   2152: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                   2153:   ;
                   2154:   return 0;
                   2155: }
                   2156: _ACEOF
                   2157: # Don't try gcc -ansi; that turns off useful extensions and
                   2158: # breaks some systems' header files.
                   2159: # AIX                  -qlanglvl=ansi
                   2160: # Ultrix and OSF/1     -std1
                   2161: # HP-UX 10.20 and later        -Ae
                   2162: # HP-UX older versions -Aa -D_HPUX_SOURCE
                   2163: # SVR4                 -Xc -D__EXTENSIONS__
                   2164: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   2165: do
                   2166:   CC="$ac_save_CC $ac_arg"
                   2167:   rm -f conftest.$ac_objext
                   2168: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9     ! grant    2169:   (eval $ac_compile) 2>conftest.er1
1.3       jlam     2170:   ac_status=$?
1.9     ! grant    2171:   grep -v '^ *+' conftest.er1 >conftest.err
        !          2172:   rm -f conftest.er1
        !          2173:   cat conftest.err >&5
1.3       jlam     2174:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2175:   (exit $ac_status); } &&
1.9     ! grant    2176:         { ac_try='test -z "$ac_c_werror_flag"
        !          2177:                         || test ! -s conftest.err'
        !          2178:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          2179:   (eval $ac_try) 2>&5
        !          2180:   ac_status=$?
        !          2181:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2182:   (exit $ac_status); }; } &&
        !          2183:         { ac_try='test -s conftest.$ac_objext'
1.3       jlam     2184:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   2185:   (eval $ac_try) 2>&5
                   2186:   ac_status=$?
                   2187:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2188:   (exit $ac_status); }; }; then
                   2189:   ac_cv_prog_cc_stdc=$ac_arg
                   2190: break
                   2191: else
                   2192:   echo "$as_me: failed program was:" >&5
                   2193: sed 's/^/| /' conftest.$ac_ext >&5
1.1       schmonz  2194:
                   2195: fi
1.9     ! grant    2196: rm -f conftest.err conftest.$ac_objext
1.3       jlam     2197: done
                   2198: rm -f conftest.$ac_ext conftest.$ac_objext
                   2199: CC=$ac_save_CC
                   2200:
1.1       schmonz  2201: fi
                   2202:
1.3       jlam     2203: case "x$ac_cv_prog_cc_stdc" in
                   2204:   x|xno)
                   2205:     echo "$as_me:$LINENO: result: none needed" >&5
                   2206: echo "${ECHO_T}none needed" >&6 ;;
                   2207:   *)
                   2208:     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
                   2209: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
                   2210:     CC="$CC $ac_cv_prog_cc_stdc" ;;
                   2211: esac
                   2212:
                   2213: # Some people use a C++ compiler to compile C.  Since we use `exit',
                   2214: # in C++ we need to declare it.  In case someone uses the same compiler
                   2215: # for both compiling C and C++ we need to have the C++ compiler decide
                   2216: # the declaration of exit, since it's the most demanding environment.
                   2217: cat >conftest.$ac_ext <<_ACEOF
                   2218: #ifndef __cplusplus
                   2219:   choke me
                   2220: #endif
                   2221: _ACEOF
                   2222: rm -f conftest.$ac_objext
                   2223: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9     ! grant    2224:   (eval $ac_compile) 2>conftest.er1
1.3       jlam     2225:   ac_status=$?
1.9     ! grant    2226:   grep -v '^ *+' conftest.er1 >conftest.err
        !          2227:   rm -f conftest.er1
        !          2228:   cat conftest.err >&5
1.3       jlam     2229:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2230:   (exit $ac_status); } &&
1.9     ! grant    2231:         { ac_try='test -z "$ac_c_werror_flag"
        !          2232:                         || test ! -s conftest.err'
        !          2233:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          2234:   (eval $ac_try) 2>&5
        !          2235:   ac_status=$?
        !          2236:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2237:   (exit $ac_status); }; } &&
        !          2238:         { ac_try='test -s conftest.$ac_objext'
1.3       jlam     2239:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   2240:   (eval $ac_try) 2>&5
                   2241:   ac_status=$?
                   2242:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2243:   (exit $ac_status); }; }; then
                   2244:   for ac_declaration in \
1.9     ! grant    2245:    '' \
1.3       jlam     2246:    'extern "C" void std::exit (int) throw (); using std::exit;' \
                   2247:    'extern "C" void std::exit (int); using std::exit;' \
                   2248:    'extern "C" void exit (int) throw ();' \
                   2249:    'extern "C" void exit (int);' \
                   2250:    'void exit (int);'
1.1       schmonz  2251: do
1.3       jlam     2252:   cat >conftest.$ac_ext <<_ACEOF
                   2253: /* confdefs.h.  */
                   2254: _ACEOF
                   2255: cat confdefs.h >>conftest.$ac_ext
                   2256: cat >>conftest.$ac_ext <<_ACEOF
                   2257: /* end confdefs.h.  */
1.9     ! grant    2258: $ac_declaration
1.3       jlam     2259: #include <stdlib.h>
                   2260: int
                   2261: main ()
                   2262: {
                   2263: exit (42);
                   2264:   ;
                   2265:   return 0;
                   2266: }
                   2267: _ACEOF
                   2268: rm -f conftest.$ac_objext
                   2269: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9     ! grant    2270:   (eval $ac_compile) 2>conftest.er1
1.3       jlam     2271:   ac_status=$?
1.9     ! grant    2272:   grep -v '^ *+' conftest.er1 >conftest.err
        !          2273:   rm -f conftest.er1
        !          2274:   cat conftest.err >&5
1.3       jlam     2275:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2276:   (exit $ac_status); } &&
1.9     ! grant    2277:         { ac_try='test -z "$ac_c_werror_flag"
        !          2278:                         || test ! -s conftest.err'
        !          2279:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          2280:   (eval $ac_try) 2>&5
        !          2281:   ac_status=$?
        !          2282:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2283:   (exit $ac_status); }; } &&
        !          2284:         { ac_try='test -s conftest.$ac_objext'
1.3       jlam     2285:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   2286:   (eval $ac_try) 2>&5
                   2287:   ac_status=$?
                   2288:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2289:   (exit $ac_status); }; }; then
                   2290:   :
1.1       schmonz  2291: else
1.3       jlam     2292:   echo "$as_me: failed program was:" >&5
                   2293: sed 's/^/| /' conftest.$ac_ext >&5
                   2294:
                   2295: continue
                   2296: fi
1.9     ! grant    2297: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3       jlam     2298:   cat >conftest.$ac_ext <<_ACEOF
                   2299: /* confdefs.h.  */
                   2300: _ACEOF
                   2301: cat confdefs.h >>conftest.$ac_ext
                   2302: cat >>conftest.$ac_ext <<_ACEOF
                   2303: /* end confdefs.h.  */
                   2304: $ac_declaration
                   2305: int
                   2306: main ()
                   2307: {
                   2308: exit (42);
                   2309:   ;
                   2310:   return 0;
                   2311: }
                   2312: _ACEOF
                   2313: rm -f conftest.$ac_objext
                   2314: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9     ! grant    2315:   (eval $ac_compile) 2>conftest.er1
1.3       jlam     2316:   ac_status=$?
1.9     ! grant    2317:   grep -v '^ *+' conftest.er1 >conftest.err
        !          2318:   rm -f conftest.er1
        !          2319:   cat conftest.err >&5
1.3       jlam     2320:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2321:   (exit $ac_status); } &&
1.9     ! grant    2322:         { ac_try='test -z "$ac_c_werror_flag"
        !          2323:                         || test ! -s conftest.err'
        !          2324:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          2325:   (eval $ac_try) 2>&5
        !          2326:   ac_status=$?
        !          2327:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          2328:   (exit $ac_status); }; } &&
        !          2329:         { ac_try='test -s conftest.$ac_objext'
1.3       jlam     2330:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   2331:   (eval $ac_try) 2>&5
                   2332:   ac_status=$?
                   2333:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   2334:   (exit $ac_status); }; }; then
                   2335:   break
1.1       schmonz  2336: else
1.3       jlam     2337:   echo "$as_me: failed program was:" >&5
                   2338: sed 's/^/| /' conftest.$ac_ext >&5
                   2339:
1.1       schmonz  2340: fi
1.9     ! grant    2341: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3       jlam     2342: done
                   2343: rm -f conftest*
                   2344: if test -n "$ac_declaration"; then
                   2345:   echo '#ifdef __cplusplus' >>confdefs.h
                   2346:   echo $ac_declaration      >>confdefs.h
                   2347:   echo '#endif'             >>confdefs.h
1.1       schmonz  2348: fi
1.3       jlam     2349:
1.1       schmonz  2350: else
1.3       jlam     2351:   echo "$as_me: failed program was:" >&5
                   2352: sed 's/^/| /' conftest.$ac_ext >&5
                   2353:
1.1       schmonz  2354: fi
1.9     ! grant    2355: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3       jlam     2356: ac_ext=c
                   2357: ac_cpp='$CPP $CPPFLAGS'
                   2358: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2359: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2360: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       schmonz  2361:
1.3       jlam     2362: # Find a good install program.  We prefer a C program (faster),
                   2363: # so one script is as good as another.  But avoid the broken or
                   2364: # incompatible versions:
                   2365: # SysV /etc/install, /usr/sbin/install
                   2366: # SunOS /usr/etc/install
                   2367: # IRIX /sbin/install
                   2368: # AIX /bin/install
                   2369: # AmigaOS /C/install, which installs bootblocks on floppy discs
                   2370: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2371: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2372: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.9     ! grant    2373: # OS/2's system install, which has a completely different semantic
1.3       jlam     2374: # ./install, which can be erroneously created by make from ./install.sh.
                   2375: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
                   2376: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
                   2377: if test -z "$INSTALL"; then
                   2378: if test "${ac_cv_path_install+set}" = set; then
                   2379:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2380: else
                   2381:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2382: for as_dir in $PATH
1.1       schmonz  2383: do
1.3       jlam     2384:   IFS=$as_save_IFS
                   2385:   test -z "$as_dir" && as_dir=.
                   2386:   # Account for people who put trailing slashes in PATH elements.
                   2387: case $as_dir/ in
                   2388:   ./ | .// | /cC/* | \
                   2389:   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.9     ! grant    2390:   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.3       jlam     2391:   /usr/ucb/* ) ;;
1.1       schmonz  2392:   *)
1.3       jlam     2393:     # OSF1 and SCO ODT 3.0 have their own names for install.
                   2394:     # Don't use installbsd from OSF since it installs stuff as root
                   2395:     # by default.
                   2396:     for ac_prog in ginstall scoinst install; do
                   2397:       for ac_exec_ext in '' $ac_executable_extensions; do
1.9     ! grant    2398:        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
        !          2399:          if test $ac_prog = install &&
        !          2400:            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
        !          2401:            # AIX install.  It has an incompatible calling convention.
        !          2402:            :
        !          2403:          elif test $ac_prog = install &&
        !          2404:            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
        !          2405:            # program-specific install script used by HP pwplus--don't use.
        !          2406:            :
        !          2407:          else
        !          2408:            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
        !          2409:            break 3
        !          2410:          fi
        !          2411:        fi
1.3       jlam     2412:       done
                   2413:     done
                   2414:     ;;
1.1       schmonz  2415: esac
1.3       jlam     2416: done
                   2417:
                   2418:
1.1       schmonz  2419: fi
1.3       jlam     2420:   if test "${ac_cv_path_install+set}" = set; then
                   2421:     INSTALL=$ac_cv_path_install
                   2422:   else
                   2423:     # As a last resort, use the slow shell script.  We don't cache a
                   2424:     # path for INSTALL within a source directory, because that will
                   2425:     # break other packages using the cache if that directory is
                   2426:     # removed, or if the path is relative.
                   2427:     INSTALL=$ac_install_sh
                   2428:   fi
1.1       schmonz  2429: fi
1.3       jlam     2430: echo "$as_me:$LINENO: result: $INSTALL" >&5
                   2431: echo "${ECHO_T}$INSTALL" >&6
                   2432:
                   2433: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2434: # It thinks the first close brace ends the variable substitution.
                   2435: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                   2436:
                   2437: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
                   2438:
                   2439: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1       schmonz  2440:
1.3       jlam     2441: echo "$as_me:$LINENO: checking whether ln -s works" >&5
                   2442: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
                   2443: LN_S=$as_ln_s
                   2444: if test "$LN_S" = "ln -s"; then
                   2445:   echo "$as_me:$LINENO: result: yes" >&5
                   2446: echo "${ECHO_T}yes" >&6
                   2447: else
                   2448:   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
                   2449: echo "${ECHO_T}no, using $LN_S" >&6
                   2450: fi
                   2451:
                   2452: if test -n "$ac_tool_prefix"; then
                   2453:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   2454: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   2455: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2456: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2457: if test "${ac_cv_prog_RANLIB+set}" = set; then
                   2458:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2459: else
                   2460:   if test -n "$RANLIB"; then
                   2461:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   2462: else
                   2463: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2464: for as_dir in $PATH
                   2465: do
                   2466:   IFS=$as_save_IFS
                   2467:   test -z "$as_dir" && as_dir=.
                   2468:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2469:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2470:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   2471:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2472:     break 2
                   2473:   fi
                   2474: done
1.1       schmonz  2475: done
                   2476:
                   2477: fi
1.3       jlam     2478: fi
                   2479: RANLIB=$ac_cv_prog_RANLIB
                   2480: if test -n "$RANLIB"; then
                   2481:   echo "$as_me:$LINENO: result: $RANLIB" >&5
                   2482: echo "${ECHO_T}$RANLIB" >&6
1.1       schmonz  2483: else
1.3       jlam     2484:   echo "$as_me:$LINENO: result: no" >&5
                   2485: echo "${ECHO_T}no" >&6
1.1       schmonz  2486: fi
                   2487:
1.3       jlam     2488: fi
                   2489: if test -z "$ac_cv_prog_RANLIB"; then
                   2490:   ac_ct_RANLIB=$RANLIB
                   2491:   # Extract the first word of "ranlib", so it can be a program name with args.
                   2492: set dummy ranlib; ac_word=$2
                   2493: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2494: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2495: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
                   2496:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2497: else
                   2498:   if test -n "$ac_ct_RANLIB"; then
                   2499:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
                   2500: else
                   2501: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2502: for as_dir in $PATH
                   2503: do
                   2504:   IFS=$as_save_IFS
                   2505:   test -z "$as_dir" && as_dir=.
                   2506:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2507:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2508:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   2509:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2510:     break 2
                   2511:   fi
                   2512: done
1.1       schmonz  2513: done
                   2514:
1.3       jlam     2515:   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
                   2516: fi
1.1       schmonz  2517: fi
1.3       jlam     2518: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   2519: if test -n "$ac_ct_RANLIB"; then
                   2520:   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
                   2521: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.1       schmonz  2522: else
1.3       jlam     2523:   echo "$as_me:$LINENO: result: no" >&5
                   2524: echo "${ECHO_T}no" >&6
1.1       schmonz  2525: fi
                   2526:
1.3       jlam     2527:   RANLIB=$ac_ct_RANLIB
                   2528: else
                   2529:   RANLIB="$ac_cv_prog_RANLIB"
                   2530: fi
                   2531:
                   2532: # Extract the first word of "ar", so it can be a program name with args.
                   2533: set dummy ar; ac_word=$2
                   2534: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2535: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2536: if test "${ac_cv_prog_AR+set}" = set; then
                   2537:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2538: else
                   2539:   if test -n "$AR"; then
                   2540:   ac_cv_prog_AR="$AR" # Let the user override the test.
                   2541: else
                   2542: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2543: for as_dir in $PATH
                   2544: do
                   2545:   IFS=$as_save_IFS
                   2546:   test -z "$as_dir" && as_dir=.
                   2547:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2548:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2549:     ac_cv_prog_AR="ar"
                   2550:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2551:     break 2
                   2552:   fi
                   2553: done
1.1       schmonz  2554: done
                   2555:
                   2556: fi
1.3       jlam     2557: fi
                   2558: AR=$ac_cv_prog_AR
                   2559: if test -n "$AR"; then
                   2560:   echo "$as_me:$LINENO: result: $AR" >&5
                   2561: echo "${ECHO_T}$AR" >&6
1.1       schmonz  2562: else
1.3       jlam     2563:   echo "$as_me:$LINENO: result: no" >&5
                   2564: echo "${ECHO_T}no" >&6
1.1       schmonz  2565: fi
                   2566:
                   2567:
1.5       jlam     2568: # Extract the first word of "chmod", so it can be a program name with args.
                   2569: set dummy chmod; ac_word=$2
                   2570: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2571: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2572: if test "${ac_cv_path_CHMOD+set}" = set; then
                   2573:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2574: else
                   2575:   case $CHMOD in
                   2576:   [\\/]* | ?:[\\/]*)
                   2577:   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
                   2578:   ;;
                   2579:   *)
                   2580:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2581: for as_dir in $PATH
                   2582: do
                   2583:   IFS=$as_save_IFS
                   2584:   test -z "$as_dir" && as_dir=.
                   2585:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2586:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2587:     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
                   2588:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2589:     break 2
                   2590:   fi
                   2591: done
                   2592: done
                   2593:
                   2594:   ;;
                   2595: esac
                   2596: fi
                   2597: CHMOD=$ac_cv_path_CHMOD
                   2598:
                   2599: if test -n "$CHMOD"; then
                   2600:   echo "$as_me:$LINENO: result: $CHMOD" >&5
                   2601: echo "${ECHO_T}$CHMOD" >&6
                   2602: else
                   2603:   echo "$as_me:$LINENO: result: no" >&5
                   2604: echo "${ECHO_T}no" >&6
                   2605: fi
                   2606:
                   2607: # Extract the first word of "cmp", so it can be a program name with args.
                   2608: set dummy cmp; ac_word=$2
                   2609: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2610: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2611: if test "${ac_cv_path_CMP+set}" = set; then
                   2612:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2613: else
                   2614:   case $CMP in
                   2615:   [\\/]* | ?:[\\/]*)
                   2616:   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
                   2617:   ;;
                   2618:   *)
                   2619:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2620: for as_dir in $PATH
                   2621: do
                   2622:   IFS=$as_save_IFS
                   2623:   test -z "$as_dir" && as_dir=.
                   2624:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2625:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2626:     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
                   2627:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2628:     break 2
                   2629:   fi
                   2630: done
                   2631: done
                   2632:
                   2633:   ;;
                   2634: esac
                   2635: fi
                   2636: CMP=$ac_cv_path_CMP
                   2637:
                   2638: if test -n "$CMP"; then
                   2639:   echo "$as_me:$LINENO: result: $CMP" >&5
                   2640: echo "${ECHO_T}$CMP" >&6
                   2641: else
                   2642:   echo "$as_me:$LINENO: result: no" >&5
                   2643: echo "${ECHO_T}no" >&6
                   2644: fi
                   2645:
                   2646: # Extract the first word of "cp", so it can be a program name with args.
                   2647: set dummy cp; ac_word=$2
                   2648: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2649: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2650: if test "${ac_cv_path_CP+set}" = set; then
                   2651:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2652: else
                   2653:   case $CP in
                   2654:   [\\/]* | ?:[\\/]*)
                   2655:   ac_cv_path_CP="$CP" # Let the user override the test with a path.
                   2656:   ;;
                   2657:   *)
                   2658:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2659: for as_dir in $PATH
                   2660: do
                   2661:   IFS=$as_save_IFS
                   2662:   test -z "$as_dir" && as_dir=.
                   2663:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2664:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2665:     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
                   2666:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2667:     break 2
                   2668:   fi
                   2669: done
                   2670: done
                   2671:
                   2672:   ;;
                   2673: esac
                   2674: fi
                   2675: CP=$ac_cv_path_CP
                   2676:
                   2677: if test -n "$CP"; then
                   2678:   echo "$as_me:$LINENO: result: $CP" >&5
                   2679: echo "${ECHO_T}$CP" >&6
                   2680: else
                   2681:   echo "$as_me:$LINENO: result: no" >&5
                   2682: echo "${ECHO_T}no" >&6
                   2683: fi
                   2684:
                   2685: # Extract the first word of "env", so it can be a program name with args.
                   2686: set dummy env; ac_word=$2
                   2687: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2688: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2689: if test "${ac_cv_path_ENV+set}" = set; then
                   2690:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2691: else
                   2692:   case $ENV in
                   2693:   [\\/]* | ?:[\\/]*)
                   2694:   ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
                   2695:   ;;
                   2696:   *)
                   2697:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2698: for as_dir in $PATH
                   2699: do
                   2700:   IFS=$as_save_IFS
                   2701:   test -z "$as_dir" && as_dir=.
                   2702:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2703:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2704:     ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
                   2705:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2706:     break 2
                   2707:   fi
                   2708: done
                   2709: done
                   2710:
                   2711:   ;;
                   2712: esac
                   2713: fi
                   2714: ENV=$ac_cv_path_ENV
                   2715:
                   2716: if test -n "$ENV"; then
                   2717:   echo "$as_me:$LINENO: result: $ENV" >&5
                   2718: echo "${ECHO_T}$ENV" >&6
                   2719: else
                   2720:   echo "$as_me:$LINENO: result: no" >&5
                   2721: echo "${ECHO_T}no" >&6
                   2722: fi
                   2723:
                   2724: # Extract the first word of "find", so it can be a program name with args.
                   2725: set dummy find; ac_word=$2
                   2726: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2727: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2728: if test "${ac_cv_path_FIND+set}" = set; then
                   2729:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2730: else
                   2731:   case $FIND in
                   2732:   [\\/]* | ?:[\\/]*)
                   2733:   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
                   2734:   ;;
                   2735:   *)
                   2736:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2737: for as_dir in $PATH
                   2738: do
                   2739:   IFS=$as_save_IFS
                   2740:   test -z "$as_dir" && as_dir=.
                   2741:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2742:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2743:     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
                   2744:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2745:     break 2
                   2746:   fi
                   2747: done
                   2748: done
                   2749:
                   2750:   ;;
                   2751: esac
                   2752: fi
                   2753: FIND=$ac_cv_path_FIND
                   2754:
                   2755: if test -n "$FIND"; then
                   2756:   echo "$as_me:$LINENO: result: $FIND" >&5
                   2757: echo "${ECHO_T}$FIND" >&6
                   2758: else
                   2759:   echo "$as_me:$LINENO: result: no" >&5
                   2760: echo "${ECHO_T}no" >&6
                   2761: fi
                   2762:
                   2763: # Extract the first word of "grep", so it can be a program name with args.
                   2764: set dummy grep; ac_word=$2
                   2765: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2766: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2767: if test "${ac_cv_path_GREP+set}" = set; then
                   2768:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2769: else
                   2770:   case $GREP in
                   2771:   [\\/]* | ?:[\\/]*)
                   2772:   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
                   2773:   ;;
                   2774:   *)
                   2775:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2776: for as_dir in $PATH
                   2777: do
                   2778:   IFS=$as_save_IFS
                   2779:   test -z "$as_dir" && as_dir=.
                   2780:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2781:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2782:     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
                   2783:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2784:     break 2
                   2785:   fi
                   2786: done
                   2787: done
                   2788:
                   2789:   ;;
                   2790: esac
                   2791: fi
                   2792: GREP=$ac_cv_path_GREP
                   2793:
                   2794: if test -n "$GREP"; then
                   2795:   echo "$as_me:$LINENO: result: $GREP" >&5
                   2796: echo "${ECHO_T}$GREP" >&6
                   2797: else
                   2798:   echo "$as_me:$LINENO: result: no" >&5
                   2799: echo "${ECHO_T}no" >&6
                   2800: fi
                   2801:
                   2802: # Extract the first word of "ln", so it can be a program name with args.
                   2803: set dummy ln; ac_word=$2
                   2804: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2805: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2806: if test "${ac_cv_path_LN+set}" = set; then
                   2807:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2808: else
                   2809:   case $LN in
                   2810:   [\\/]* | ?:[\\/]*)
                   2811:   ac_cv_path_LN="$LN" # Let the user override the test with a path.
                   2812:   ;;
                   2813:   *)
                   2814:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2815: for as_dir in $PATH
                   2816: do
                   2817:   IFS=$as_save_IFS
                   2818:   test -z "$as_dir" && as_dir=.
                   2819:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2820:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2821:     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
                   2822:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2823:     break 2
                   2824:   fi
                   2825: done
                   2826: done
                   2827:
                   2828:   ;;
                   2829: esac
                   2830: fi
                   2831: LN=$ac_cv_path_LN
                   2832:
                   2833: if test -n "$LN"; then
                   2834:   echo "$as_me:$LINENO: result: $LN" >&5
                   2835: echo "${ECHO_T}$LN" >&6
                   2836: else
                   2837:   echo "$as_me:$LINENO: result: no" >&5
                   2838: echo "${ECHO_T}no" >&6
                   2839: fi
                   2840:
                   2841: # Extract the first word of "mkdir", so it can be a program name with args.
                   2842: set dummy mkdir; ac_word=$2
                   2843: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2844: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2845: if test "${ac_cv_path_MKDIR+set}" = set; then
                   2846:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2847: else
                   2848:   case $MKDIR in
                   2849:   [\\/]* | ?:[\\/]*)
                   2850:   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
                   2851:   ;;
                   2852:   *)
                   2853:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2854: for as_dir in $PATH
                   2855: do
                   2856:   IFS=$as_save_IFS
                   2857:   test -z "$as_dir" && as_dir=.
                   2858:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2859:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2860:     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
                   2861:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2862:     break 2
                   2863:   fi
                   2864: done
                   2865: done
                   2866:
                   2867:   ;;
                   2868: esac
                   2869: fi
                   2870: MKDIR=$ac_cv_path_MKDIR
                   2871:
                   2872: if test -n "$MKDIR"; then
                   2873:   echo "$as_me:$LINENO: result: $MKDIR" >&5
                   2874: echo "${ECHO_T}$MKDIR" >&6
                   2875: else
                   2876:   echo "$as_me:$LINENO: result: no" >&5
                   2877: echo "${ECHO_T}no" >&6
                   2878: fi
                   2879:
                   2880: # Extract the first word of "rmdir", so it can be a program name with args.
                   2881: set dummy rmdir; ac_word=$2
                   2882: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2883: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2884: if test "${ac_cv_path_RMDIR+set}" = set; then
                   2885:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2886: else
                   2887:   case $RMDIR in
                   2888:   [\\/]* | ?:[\\/]*)
                   2889:   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
                   2890:   ;;
                   2891:   *)
                   2892:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2893: for as_dir in $PATH
                   2894: do
                   2895:   IFS=$as_save_IFS
                   2896:   test -z "$as_dir" && as_dir=.
                   2897:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2898:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2899:     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
                   2900:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2901:     break 2
                   2902:   fi
                   2903: done
                   2904: done
                   2905:
                   2906:   ;;
                   2907: esac
                   2908: fi
                   2909: RMDIR=$ac_cv_path_RMDIR
                   2910:
                   2911: if test -n "$RMDIR"; then
                   2912:   echo "$as_me:$LINENO: result: $RMDIR" >&5
                   2913: echo "${ECHO_T}$RMDIR" >&6
                   2914: else
                   2915:   echo "$as_me:$LINENO: result: no" >&5
                   2916: echo "${ECHO_T}no" >&6
                   2917: fi
                   2918:
                   2919: # Extract the first word of "rm", so it can be a program name with args.
                   2920: set dummy rm; ac_word=$2
                   2921: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2922: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2923: if test "${ac_cv_path_RM+set}" = set; then
                   2924:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2925: else
                   2926:   case $RM in
                   2927:   [\\/]* | ?:[\\/]*)
                   2928:   ac_cv_path_RM="$RM" # Let the user override the test with a path.
                   2929:   ;;
                   2930:   *)
                   2931:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2932: for as_dir in $PATH
                   2933: do
                   2934:   IFS=$as_save_IFS
                   2935:   test -z "$as_dir" && as_dir=.
                   2936:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2937:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2938:     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
                   2939:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2940:     break 2
                   2941:   fi
                   2942: done
                   2943: done
                   2944:
                   2945:   ;;
                   2946: esac
                   2947: fi
                   2948: RM=$ac_cv_path_RM
                   2949:
                   2950: if test -n "$RM"; then
                   2951:   echo "$as_me:$LINENO: result: $RM" >&5
                   2952: echo "${ECHO_T}$RM" >&6
                   2953: else
                   2954:   echo "$as_me:$LINENO: result: no" >&5
                   2955: echo "${ECHO_T}no" >&6
                   2956: fi
                   2957:
                   2958: # Extract the first word of "sed", so it can be a program name with args.
                   2959: set dummy sed; ac_word=$2
                   2960: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   2961: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2962: if test "${ac_cv_path_SED+set}" = set; then
                   2963:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2964: else
                   2965:   case $SED in
                   2966:   [\\/]* | ?:[\\/]*)
                   2967:   ac_cv_path_SED="$SED" # Let the user override the test with a path.
                   2968:   ;;
                   2969:   *)
                   2970:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   2971: for as_dir in $PATH
                   2972: do
                   2973:   IFS=$as_save_IFS
                   2974:   test -z "$as_dir" && as_dir=.
                   2975:   for ac_exec_ext in '' $ac_executable_extensions; do
                   2976:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   2977:     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
                   2978:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   2979:     break 2
                   2980:   fi
                   2981: done
                   2982: done
                   2983:
                   2984:   ;;
                   2985: esac
                   2986: fi
                   2987: SED=$ac_cv_path_SED
                   2988:
                   2989: if test -n "$SED"; then
                   2990:   echo "$as_me:$LINENO: result: $SED" >&5
                   2991: echo "${ECHO_T}$SED" >&6
                   2992: else
                   2993:   echo "$as_me:$LINENO: result: no" >&5
                   2994: echo "${ECHO_T}no" >&6
                   2995: fi
                   2996:
                   2997: # Extract the first word of "sort", so it can be a program name with args.
                   2998: set dummy sort; ac_word=$2
                   2999: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   3000: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3001: if test "${ac_cv_path_SORT+set}" = set; then
                   3002:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3003: else
                   3004:   case $SORT in
                   3005:   [\\/]* | ?:[\\/]*)
                   3006:   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
                   3007:   ;;
                   3008:   *)
                   3009:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3010: for as_dir in $PATH
                   3011: do
                   3012:   IFS=$as_save_IFS
                   3013:   test -z "$as_dir" && as_dir=.
                   3014:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3015:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   3016:     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
                   3017:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3018:     break 2
                   3019:   fi
                   3020: done
                   3021: done
                   3022:
                   3023:   ;;
                   3024: esac
                   3025: fi
                   3026: SORT=$ac_cv_path_SORT
                   3027:
                   3028: if test -n "$SORT"; then
                   3029:   echo "$as_me:$LINENO: result: $SORT" >&5
                   3030: echo "${ECHO_T}$SORT" >&6
                   3031: else
                   3032:   echo "$as_me:$LINENO: result: no" >&5
                   3033: echo "${ECHO_T}no" >&6
                   3034: fi
                   3035:
                   3036: # Extract the first word of "touch", so it can be a program name with args.
                   3037: set dummy touch; ac_word=$2
                   3038: echo "$as_me:$LINENO: checking for $ac_word" >&5
                   3039: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3040: if test "${ac_cv_path_TOUCH+set}" = set; then
                   3041:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3042: else
                   3043:   case $TOUCH in
                   3044:   [\\/]* | ?:[\\/]*)
                   3045:   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
                   3046:   ;;
                   3047:   *)
                   3048:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   3049: for as_dir in $PATH
                   3050: do
                   3051:   IFS=$as_save_IFS
                   3052:   test -z "$as_dir" && as_dir=.
                   3053:   for ac_exec_ext in '' $ac_executable_extensions; do
                   3054:   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
                   3055:     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
                   3056:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   3057:     break 2
                   3058:   fi
                   3059: done
                   3060: done
                   3061:
                   3062:   ;;
                   3063: esac
                   3064: fi
                   3065: TOUCH=$ac_cv_path_TOUCH
                   3066:
                   3067: if test -n "$TOUCH"; then
                   3068:   echo "$as_me:$LINENO: result: $TOUCH" >&5
                   3069: echo "${ECHO_T}$TOUCH" >&6
                   3070: else
                   3071:   echo "$as_me:$LINENO: result: no" >&5
                   3072: echo "${ECHO_T}no" >&6
                   3073: fi
                   3074:
                   3075:
1.3       jlam     3076: AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"}
                   3077:
                   3078: AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"}
                   3079:
                   3080:
                   3081:
                   3082: # Check whether --with-pkgdbdir or --without-pkgdbdir was given.
                   3083: if test "${with_pkgdbdir+set}" = set; then
                   3084:   withval="$with_pkgdbdir"
                   3085:    pkgdbdir="$with_pkgdbdir"
1.1       schmonz  3086: else
1.3       jlam     3087:    pkgdbdir="/var/db/pkg"
                   3088: fi;
                   3089:
                   3090:
1.1       schmonz  3091:
1.6       grant    3092: # Check whether --with-ftp or --without-ftp was given.
                   3093: if test "${with_ftp+set}" = set; then
                   3094:   withval="$with_ftp"
                   3095:    ftp="$with_ftp"
                   3096: else
                   3097:    ftp='$(prefix)/bin/ftp'
                   3098: fi;
                   3099:
                   3100:
                   3101:
                   3102: # Check whether --with-tar or --without-tar was given.
                   3103: if test "${with_tar+set}" = set; then
                   3104:   withval="$with_tar"
                   3105:    tar="$with_tar"
                   3106: else
                   3107:    tar='$(prefix)/bin/tar'
                   3108: fi;
                   3109:
                   3110:
                   3111:
                   3112: # Check whether --with-pax or --without-pax was given.
                   3113: if test "${with_pax+set}" = set; then
                   3114:   withval="$with_pax"
                   3115:    pax="$with_pax"
                   3116: else
                   3117:    pax='$(prefix)/bin/pax'
                   3118: fi;
                   3119:
                   3120:
                   3121:
                   3122: # Check whether --with-mtree or --without-mtree was given.
                   3123: if test "${with_mtree+set}" = set; then
                   3124:   withval="$with_mtree"
                   3125:    mtree="$with_mtree"
                   3126: else
                   3127:    mtree='$(sbindir)/mtree'
                   3128: fi;
                   3129:
                   3130:
                   3131:
1.1       schmonz  3132:
1.3       jlam     3133: echo "$as_me:$LINENO: checking for dbopen in -ldb1" >&5
                   3134: echo $ECHO_N "checking for dbopen in -ldb1... $ECHO_C" >&6
                   3135: if test "${ac_cv_lib_db1_dbopen+set}" = set; then
                   3136:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       schmonz  3137: else
1.3       jlam     3138:   ac_check_lib_save_LIBS=$LIBS
                   3139: LIBS="-ldb1  $LIBS"
                   3140: cat >conftest.$ac_ext <<_ACEOF
                   3141: /* confdefs.h.  */
                   3142: _ACEOF
                   3143: cat confdefs.h >>conftest.$ac_ext
                   3144: cat >>conftest.$ac_ext <<_ACEOF
                   3145: /* end confdefs.h.  */
                   3146:
                   3147: /* Override any gcc2 internal prototype to avoid an error.  */
                   3148: #ifdef __cplusplus
                   3149: extern "C"
                   3150: #endif
                   3151: /* We use char because int might match the return type of a gcc2
                   3152:    builtin and then its argument prototype would still apply.  */
                   3153: char dbopen ();
                   3154: int
                   3155: main ()
                   3156: {
                   3157: dbopen ();
                   3158:   ;
                   3159:   return 0;
                   3160: }
                   3161: _ACEOF
                   3162: rm -f conftest.$ac_objext conftest$ac_exeext
                   3163: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9     ! grant    3164:   (eval $ac_link) 2>conftest.er1
1.3       jlam     3165:   ac_status=$?
1.9     ! grant    3166:   grep -v '^ *+' conftest.er1 >conftest.err
        !          3167:   rm -f conftest.er1
        !          3168:   cat conftest.err >&5
1.3       jlam     3169:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3170:   (exit $ac_status); } &&
1.9     ! grant    3171:         { ac_try='test -z "$ac_c_werror_flag"
        !          3172:                         || test ! -s conftest.err'
        !          3173:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          3174:   (eval $ac_try) 2>&5
        !          3175:   ac_status=$?
        !          3176:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3177:   (exit $ac_status); }; } &&
        !          3178:         { ac_try='test -s conftest$ac_exeext'
1.3       jlam     3179:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3180:   (eval $ac_try) 2>&5
                   3181:   ac_status=$?
                   3182:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3183:   (exit $ac_status); }; }; then
                   3184:   ac_cv_lib_db1_dbopen=yes
                   3185: else
                   3186:   echo "$as_me: failed program was:" >&5
                   3187: sed 's/^/| /' conftest.$ac_ext >&5
                   3188:
                   3189: ac_cv_lib_db1_dbopen=no
                   3190: fi
1.9     ! grant    3191: rm -f conftest.err conftest.$ac_objext \
        !          3192:       conftest$ac_exeext conftest.$ac_ext
1.3       jlam     3193: LIBS=$ac_check_lib_save_LIBS
                   3194: fi
                   3195: echo "$as_me:$LINENO: result: $ac_cv_lib_db1_dbopen" >&5
                   3196: echo "${ECHO_T}$ac_cv_lib_db1_dbopen" >&6
                   3197: if test $ac_cv_lib_db1_dbopen = yes; then
                   3198:   cat >>confdefs.h <<_ACEOF
                   3199: #define HAVE_LIBDB1 1
                   3200: _ACEOF
                   3201:
                   3202:   LIBS="-ldb1 $LIBS"
                   3203:
1.1       schmonz  3204: fi
                   3205:
1.3       jlam     3206: echo "$as_me:$LINENO: checking for library containing tgetent" >&5
                   3207: echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
                   3208: if test "${ac_cv_search_tgetent+set}" = set; then
                   3209:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3210: else
                   3211:   ac_func_search_save_LIBS=$LIBS
                   3212: ac_cv_search_tgetent=no
                   3213: cat >conftest.$ac_ext <<_ACEOF
                   3214: /* confdefs.h.  */
                   3215: _ACEOF
                   3216: cat confdefs.h >>conftest.$ac_ext
                   3217: cat >>conftest.$ac_ext <<_ACEOF
                   3218: /* end confdefs.h.  */
                   3219:
                   3220: /* Override any gcc2 internal prototype to avoid an error.  */
                   3221: #ifdef __cplusplus
                   3222: extern "C"
                   3223: #endif
                   3224: /* We use char because int might match the return type of a gcc2
                   3225:    builtin and then its argument prototype would still apply.  */
                   3226: char tgetent ();
                   3227: int
                   3228: main ()
                   3229: {
                   3230: tgetent ();
                   3231:   ;
                   3232:   return 0;
                   3233: }
                   3234: _ACEOF
                   3235: rm -f conftest.$ac_objext conftest$ac_exeext
                   3236: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9     ! grant    3237:   (eval $ac_link) 2>conftest.er1
1.3       jlam     3238:   ac_status=$?
1.9     ! grant    3239:   grep -v '^ *+' conftest.er1 >conftest.err
        !          3240:   rm -f conftest.er1
        !          3241:   cat conftest.err >&5
1.3       jlam     3242:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3243:   (exit $ac_status); } &&
1.9     ! grant    3244:         { ac_try='test -z "$ac_c_werror_flag"
        !          3245:                         || test ! -s conftest.err'
        !          3246:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          3247:   (eval $ac_try) 2>&5
        !          3248:   ac_status=$?
        !          3249:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3250:   (exit $ac_status); }; } &&
        !          3251:         { ac_try='test -s conftest$ac_exeext'
1.3       jlam     3252:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3253:   (eval $ac_try) 2>&5
                   3254:   ac_status=$?
                   3255:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3256:   (exit $ac_status); }; }; then
                   3257:   ac_cv_search_tgetent="none required"
                   3258: else
                   3259:   echo "$as_me: failed program was:" >&5
                   3260: sed 's/^/| /' conftest.$ac_ext >&5
                   3261:
                   3262: fi
1.9     ! grant    3263: rm -f conftest.err conftest.$ac_objext \
        !          3264:       conftest$ac_exeext conftest.$ac_ext
1.3       jlam     3265: if test "$ac_cv_search_tgetent" = no; then
                   3266:   for ac_lib in termcap termlib curses ncurses; do
                   3267:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   3268:     cat >conftest.$ac_ext <<_ACEOF
                   3269: /* confdefs.h.  */
                   3270: _ACEOF
                   3271: cat confdefs.h >>conftest.$ac_ext
                   3272: cat >>conftest.$ac_ext <<_ACEOF
                   3273: /* end confdefs.h.  */
                   3274:
                   3275: /* Override any gcc2 internal prototype to avoid an error.  */
                   3276: #ifdef __cplusplus
                   3277: extern "C"
                   3278: #endif
                   3279: /* We use char because int might match the return type of a gcc2
                   3280:    builtin and then its argument prototype would still apply.  */
                   3281: char tgetent ();
                   3282: int
                   3283: main ()
                   3284: {
                   3285: tgetent ();
                   3286:   ;
                   3287:   return 0;
                   3288: }
                   3289: _ACEOF
                   3290: rm -f conftest.$ac_objext conftest$ac_exeext
                   3291: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9     ! grant    3292:   (eval $ac_link) 2>conftest.er1
1.3       jlam     3293:   ac_status=$?
1.9     ! grant    3294:   grep -v '^ *+' conftest.er1 >conftest.err
        !          3295:   rm -f conftest.er1
        !          3296:   cat conftest.err >&5
1.3       jlam     3297:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3298:   (exit $ac_status); } &&
1.9     ! grant    3299:         { ac_try='test -z "$ac_c_werror_flag"
        !          3300:                         || test ! -s conftest.err'
        !          3301:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          3302:   (eval $ac_try) 2>&5
        !          3303:   ac_status=$?
        !          3304:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3305:   (exit $ac_status); }; } &&
        !          3306:         { ac_try='test -s conftest$ac_exeext'
1.3       jlam     3307:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3308:   (eval $ac_try) 2>&5
                   3309:   ac_status=$?
                   3310:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3311:   (exit $ac_status); }; }; then
                   3312:   ac_cv_search_tgetent="-l$ac_lib"
                   3313: break
                   3314: else
                   3315:   echo "$as_me: failed program was:" >&5
                   3316: sed 's/^/| /' conftest.$ac_ext >&5
1.1       schmonz  3317:
1.3       jlam     3318: fi
1.9     ! grant    3319: rm -f conftest.err conftest.$ac_objext \
        !          3320:       conftest$ac_exeext conftest.$ac_ext
1.1       schmonz  3321:   done
                   3322: fi
1.3       jlam     3323: LIBS=$ac_func_search_save_LIBS
                   3324: fi
                   3325: echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
                   3326: echo "${ECHO_T}$ac_cv_search_tgetent" >&6
                   3327: if test "$ac_cv_search_tgetent" != no; then
                   3328:   test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
                   3329:
1.1       schmonz  3330: fi
                   3331:
                   3332:
1.3       jlam     3333: ac_ext=c
                   3334: ac_cpp='$CPP $CPPFLAGS'
                   3335: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3336: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3337: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3338: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
                   3339: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
                   3340: # On Suns, sometimes $CPP names a directory.
                   3341: if test -n "$CPP" && test -d "$CPP"; then
                   3342:   CPP=
                   3343: fi
                   3344: if test -z "$CPP"; then
                   3345:   if test "${ac_cv_prog_CPP+set}" = set; then
                   3346:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3347: else
                   3348:       # Double quotes because CPP needs to be expanded
                   3349:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   3350:     do
                   3351:       ac_preproc_ok=false
                   3352: for ac_c_preproc_warn_flag in '' yes
1.1       schmonz  3353: do
1.3       jlam     3354:   # Use a header file that comes with gcc, so configuring glibc
                   3355:   # with a fresh cross-compiler works.
                   3356:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   3357:   # <limits.h> exists even on freestanding compilers.
                   3358:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   3359:   # not just through cpp. "Syntax error" is here to catch this case.
                   3360:   cat >conftest.$ac_ext <<_ACEOF
                   3361: /* confdefs.h.  */
                   3362: _ACEOF
                   3363: cat confdefs.h >>conftest.$ac_ext
                   3364: cat >>conftest.$ac_ext <<_ACEOF
                   3365: /* end confdefs.h.  */
                   3366: #ifdef __STDC__
                   3367: # include <limits.h>
                   3368: #else
                   3369: # include <assert.h>
                   3370: #endif
1.9     ! grant    3371:                     Syntax error
1.3       jlam     3372: _ACEOF
                   3373: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   3374:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   3375:   ac_status=$?
                   3376:   grep -v '^ *+' conftest.er1 >conftest.err
                   3377:   rm -f conftest.er1
                   3378:   cat conftest.err >&5
                   3379:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3380:   (exit $ac_status); } >/dev/null; then
                   3381:   if test -s conftest.err; then
                   3382:     ac_cpp_err=$ac_c_preproc_warn_flag
1.9     ! grant    3383:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3       jlam     3384:   else
                   3385:     ac_cpp_err=
                   3386:   fi
                   3387: else
                   3388:   ac_cpp_err=yes
1.1       schmonz  3389: fi
1.3       jlam     3390: if test -z "$ac_cpp_err"; then
                   3391:   :
1.1       schmonz  3392: else
1.3       jlam     3393:   echo "$as_me: failed program was:" >&5
                   3394: sed 's/^/| /' conftest.$ac_ext >&5
                   3395:
                   3396:   # Broken: fails on valid input.
                   3397: continue
1.1       schmonz  3398: fi
1.3       jlam     3399: rm -f conftest.err conftest.$ac_ext
1.1       schmonz  3400:
1.3       jlam     3401:   # OK, works on sane cases.  Now check whether non-existent headers
                   3402:   # can be detected and how.
                   3403:   cat >conftest.$ac_ext <<_ACEOF
                   3404: /* confdefs.h.  */
                   3405: _ACEOF
                   3406: cat confdefs.h >>conftest.$ac_ext
                   3407: cat >>conftest.$ac_ext <<_ACEOF
                   3408: /* end confdefs.h.  */
                   3409: #include <ac_nonexistent.h>
                   3410: _ACEOF
                   3411: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   3412:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   3413:   ac_status=$?
                   3414:   grep -v '^ *+' conftest.er1 >conftest.err
                   3415:   rm -f conftest.er1
                   3416:   cat conftest.err >&5
                   3417:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3418:   (exit $ac_status); } >/dev/null; then
                   3419:   if test -s conftest.err; then
                   3420:     ac_cpp_err=$ac_c_preproc_warn_flag
1.9     ! grant    3421:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3       jlam     3422:   else
                   3423:     ac_cpp_err=
                   3424:   fi
                   3425: else
                   3426:   ac_cpp_err=yes
1.1       schmonz  3427: fi
1.3       jlam     3428: if test -z "$ac_cpp_err"; then
                   3429:   # Broken: success on invalid input.
                   3430: continue
1.1       schmonz  3431: else
1.3       jlam     3432:   echo "$as_me: failed program was:" >&5
                   3433: sed 's/^/| /' conftest.$ac_ext >&5
                   3434:
                   3435:   # Passes both tests.
                   3436: ac_preproc_ok=:
                   3437: break
1.1       schmonz  3438: fi
1.3       jlam     3439: rm -f conftest.err conftest.$ac_ext
1.1       schmonz  3440:
                   3441: done
1.3       jlam     3442: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   3443: rm -f conftest.err conftest.$ac_ext
                   3444: if $ac_preproc_ok; then
                   3445:   break
                   3446: fi
1.1       schmonz  3447:
1.3       jlam     3448:     done
                   3449:     ac_cv_prog_CPP=$CPP
1.1       schmonz  3450:
                   3451: fi
1.3       jlam     3452:   CPP=$ac_cv_prog_CPP
1.1       schmonz  3453: else
1.3       jlam     3454:   ac_cv_prog_CPP=$CPP
                   3455: fi
                   3456: echo "$as_me:$LINENO: result: $CPP" >&5
                   3457: echo "${ECHO_T}$CPP" >&6
                   3458: ac_preproc_ok=false
                   3459: for ac_c_preproc_warn_flag in '' yes
                   3460: do
                   3461:   # Use a header file that comes with gcc, so configuring glibc
                   3462:   # with a fresh cross-compiler works.
                   3463:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   3464:   # <limits.h> exists even on freestanding compilers.
1.1       schmonz  3465:   # On the NeXT, cc -E runs the code through the compiler's parser,
1.3       jlam     3466:   # not just through cpp. "Syntax error" is here to catch this case.
                   3467:   cat >conftest.$ac_ext <<_ACEOF
                   3468: /* confdefs.h.  */
                   3469: _ACEOF
                   3470: cat confdefs.h >>conftest.$ac_ext
                   3471: cat >>conftest.$ac_ext <<_ACEOF
                   3472: /* end confdefs.h.  */
                   3473: #ifdef __STDC__
                   3474: # include <limits.h>
                   3475: #else
                   3476: # include <assert.h>
                   3477: #endif
1.9     ! grant    3478:                     Syntax error
1.3       jlam     3479: _ACEOF
                   3480: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   3481:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   3482:   ac_status=$?
                   3483:   grep -v '^ *+' conftest.er1 >conftest.err
                   3484:   rm -f conftest.er1
                   3485:   cat conftest.err >&5
                   3486:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3487:   (exit $ac_status); } >/dev/null; then
                   3488:   if test -s conftest.err; then
                   3489:     ac_cpp_err=$ac_c_preproc_warn_flag
1.9     ! grant    3490:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3       jlam     3491:   else
                   3492:     ac_cpp_err=
                   3493:   fi
1.1       schmonz  3494: else
1.3       jlam     3495:   ac_cpp_err=yes
                   3496: fi
                   3497: if test -z "$ac_cpp_err"; then
1.1       schmonz  3498:   :
                   3499: else
1.3       jlam     3500:   echo "$as_me: failed program was:" >&5
                   3501: sed 's/^/| /' conftest.$ac_ext >&5
                   3502:
                   3503:   # Broken: fails on valid input.
                   3504: continue
                   3505: fi
                   3506: rm -f conftest.err conftest.$ac_ext
                   3507:
                   3508:   # OK, works on sane cases.  Now check whether non-existent headers
                   3509:   # can be detected and how.
                   3510:   cat >conftest.$ac_ext <<_ACEOF
                   3511: /* confdefs.h.  */
                   3512: _ACEOF
                   3513: cat confdefs.h >>conftest.$ac_ext
                   3514: cat >>conftest.$ac_ext <<_ACEOF
                   3515: /* end confdefs.h.  */
                   3516: #include <ac_nonexistent.h>
                   3517: _ACEOF
                   3518: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   3519:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   3520:   ac_status=$?
                   3521:   grep -v '^ *+' conftest.er1 >conftest.err
                   3522:   rm -f conftest.er1
                   3523:   cat conftest.err >&5
                   3524:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3525:   (exit $ac_status); } >/dev/null; then
                   3526:   if test -s conftest.err; then
                   3527:     ac_cpp_err=$ac_c_preproc_warn_flag
1.9     ! grant    3528:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3       jlam     3529:   else
                   3530:     ac_cpp_err=
                   3531:   fi
1.1       schmonz  3532: else
1.3       jlam     3533:   ac_cpp_err=yes
1.1       schmonz  3534: fi
1.3       jlam     3535: if test -z "$ac_cpp_err"; then
                   3536:   # Broken: success on invalid input.
                   3537: continue
                   3538: else
                   3539:   echo "$as_me: failed program was:" >&5
                   3540: sed 's/^/| /' conftest.$ac_ext >&5
                   3541:
                   3542:   # Passes both tests.
                   3543: ac_preproc_ok=:
                   3544: break
1.1       schmonz  3545: fi
1.3       jlam     3546: rm -f conftest.err conftest.$ac_ext
                   3547:
                   3548: done
                   3549: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   3550: rm -f conftest.err conftest.$ac_ext
                   3551: if $ac_preproc_ok; then
                   3552:   :
1.1       schmonz  3553: else
1.3       jlam     3554:   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
                   3555: See \`config.log' for more details." >&5
                   3556: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
                   3557: See \`config.log' for more details." >&2;}
                   3558:    { (exit 1); exit 1; }; }
1.1       schmonz  3559: fi
                   3560:
1.3       jlam     3561: ac_ext=c
                   3562: ac_cpp='$CPP $CPPFLAGS'
                   3563: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3564: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3565: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3566:
                   3567:
                   3568: echo "$as_me:$LINENO: checking for egrep" >&5
                   3569: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
                   3570: if test "${ac_cv_prog_egrep+set}" = set; then
                   3571:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3572: else
                   3573:   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
                   3574:     then ac_cv_prog_egrep='grep -E'
                   3575:     else ac_cv_prog_egrep='egrep'
                   3576:     fi
                   3577: fi
                   3578: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
                   3579: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
                   3580:  EGREP=$ac_cv_prog_egrep
                   3581:
                   3582:
                   3583: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
                   3584: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
                   3585: if test "${ac_cv_header_stdc+set}" = set; then
                   3586:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3587: else
                   3588:   cat >conftest.$ac_ext <<_ACEOF
                   3589: /* confdefs.h.  */
                   3590: _ACEOF
                   3591: cat confdefs.h >>conftest.$ac_ext
                   3592: cat >>conftest.$ac_ext <<_ACEOF
                   3593: /* end confdefs.h.  */
1.1       schmonz  3594: #include <stdlib.h>
                   3595: #include <stdarg.h>
                   3596: #include <string.h>
                   3597: #include <float.h>
1.3       jlam     3598:
                   3599: int
                   3600: main ()
                   3601: {
                   3602:
                   3603:   ;
                   3604:   return 0;
                   3605: }
                   3606: _ACEOF
                   3607: rm -f conftest.$ac_objext
                   3608: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9     ! grant    3609:   (eval $ac_compile) 2>conftest.er1
1.3       jlam     3610:   ac_status=$?
1.9     ! grant    3611:   grep -v '^ *+' conftest.er1 >conftest.err
        !          3612:   rm -f conftest.er1
        !          3613:   cat conftest.err >&5
1.3       jlam     3614:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3615:   (exit $ac_status); } &&
1.9     ! grant    3616:         { ac_try='test -z "$ac_c_werror_flag"
        !          3617:                         || test ! -s conftest.err'
        !          3618:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          3619:   (eval $ac_try) 2>&5
        !          3620:   ac_status=$?
        !          3621:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3622:   (exit $ac_status); }; } &&
        !          3623:         { ac_try='test -s conftest.$ac_objext'
1.3       jlam     3624:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3625:   (eval $ac_try) 2>&5
                   3626:   ac_status=$?
                   3627:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3628:   (exit $ac_status); }; }; then
1.1       schmonz  3629:   ac_cv_header_stdc=yes
                   3630: else
1.3       jlam     3631:   echo "$as_me: failed program was:" >&5
                   3632: sed 's/^/| /' conftest.$ac_ext >&5
                   3633:
                   3634: ac_cv_header_stdc=no
1.1       schmonz  3635: fi
1.9     ! grant    3636: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       schmonz  3637:
                   3638: if test $ac_cv_header_stdc = yes; then
                   3639:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.3       jlam     3640:   cat >conftest.$ac_ext <<_ACEOF
                   3641: /* confdefs.h.  */
                   3642: _ACEOF
                   3643: cat confdefs.h >>conftest.$ac_ext
                   3644: cat >>conftest.$ac_ext <<_ACEOF
                   3645: /* end confdefs.h.  */
1.1       schmonz  3646: #include <string.h>
1.3       jlam     3647:
                   3648: _ACEOF
1.1       schmonz  3649: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.3       jlam     3650:   $EGREP "memchr" >/dev/null 2>&1; then
1.1       schmonz  3651:   :
                   3652: else
                   3653:   ac_cv_header_stdc=no
                   3654: fi
                   3655: rm -f conftest*
                   3656:
                   3657: fi
                   3658:
                   3659: if test $ac_cv_header_stdc = yes; then
                   3660:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.3       jlam     3661:   cat >conftest.$ac_ext <<_ACEOF
                   3662: /* confdefs.h.  */
                   3663: _ACEOF
                   3664: cat confdefs.h >>conftest.$ac_ext
                   3665: cat >>conftest.$ac_ext <<_ACEOF
                   3666: /* end confdefs.h.  */
1.1       schmonz  3667: #include <stdlib.h>
1.3       jlam     3668:
                   3669: _ACEOF
1.1       schmonz  3670: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.3       jlam     3671:   $EGREP "free" >/dev/null 2>&1; then
1.1       schmonz  3672:   :
                   3673: else
                   3674:   ac_cv_header_stdc=no
                   3675: fi
                   3676: rm -f conftest*
                   3677:
                   3678: fi
                   3679:
                   3680: if test $ac_cv_header_stdc = yes; then
                   3681:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.3       jlam     3682:   if test "$cross_compiling" = yes; then
1.1       schmonz  3683:   :
                   3684: else
1.3       jlam     3685:   cat >conftest.$ac_ext <<_ACEOF
                   3686: /* confdefs.h.  */
                   3687: _ACEOF
                   3688: cat confdefs.h >>conftest.$ac_ext
                   3689: cat >>conftest.$ac_ext <<_ACEOF
                   3690: /* end confdefs.h.  */
1.1       schmonz  3691: #include <ctype.h>
1.3       jlam     3692: #if ((' ' & 0x0FF) == 0x020)
                   3693: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   3694: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   3695: #else
                   3696: # define ISLOWER(c) \
1.9     ! grant    3697:                   (('a' <= (c) && (c) <= 'i') \
        !          3698:                     || ('j' <= (c) && (c) <= 'r') \
        !          3699:                     || ('s' <= (c) && (c) <= 'z'))
1.3       jlam     3700: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   3701: #endif
                   3702:
1.1       schmonz  3703: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.3       jlam     3704: int
                   3705: main ()
                   3706: {
                   3707:   int i;
                   3708:   for (i = 0; i < 256; i++)
                   3709:     if (XOR (islower (i), ISLOWER (i))
1.9     ! grant    3710:        || toupper (i) != TOUPPER (i))
1.3       jlam     3711:       exit(2);
                   3712:   exit (0);
                   3713: }
                   3714: _ACEOF
                   3715: rm -f conftest$ac_exeext
                   3716: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   3717:   (eval $ac_link) 2>&5
                   3718:   ac_status=$?
                   3719:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3720:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   3721:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3722:   (eval $ac_try) 2>&5
                   3723:   ac_status=$?
                   3724:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3725:   (exit $ac_status); }; }; then
1.1       schmonz  3726:   :
                   3727: else
1.3       jlam     3728:   echo "$as_me: program exited with status $ac_status" >&5
                   3729: echo "$as_me: failed program was:" >&5
                   3730: sed 's/^/| /' conftest.$ac_ext >&5
                   3731:
                   3732: ( exit $ac_status )
                   3733: ac_cv_header_stdc=no
1.1       schmonz  3734: fi
1.9     ! grant    3735: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       schmonz  3736: fi
                   3737: fi
                   3738: fi
1.3       jlam     3739: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
                   3740: echo "${ECHO_T}$ac_cv_header_stdc" >&6
                   3741: if test $ac_cv_header_stdc = yes; then
1.1       schmonz  3742:
1.3       jlam     3743: cat >>confdefs.h <<\_ACEOF
1.1       schmonz  3744: #define STDC_HEADERS 1
1.3       jlam     3745: _ACEOF
1.1       schmonz  3746:
                   3747: fi
                   3748:
1.3       jlam     3749: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.1       schmonz  3750:
                   3751:
                   3752:
                   3753:
                   3754:
                   3755:
                   3756:
                   3757:
                   3758:
1.3       jlam     3759: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.9     ! grant    3760:                  inttypes.h stdint.h unistd.h
1.1       schmonz  3761: do
1.3       jlam     3762: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   3763: echo "$as_me:$LINENO: checking for $ac_header" >&5
                   3764: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   3765: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   3766:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3767: else
                   3768:   cat >conftest.$ac_ext <<_ACEOF
                   3769: /* confdefs.h.  */
                   3770: _ACEOF
                   3771: cat confdefs.h >>conftest.$ac_ext
                   3772: cat >>conftest.$ac_ext <<_ACEOF
                   3773: /* end confdefs.h.  */
                   3774: $ac_includes_default
                   3775:
                   3776: #include <$ac_header>
                   3777: _ACEOF
                   3778: rm -f conftest.$ac_objext
                   3779: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9     ! grant    3780:   (eval $ac_compile) 2>conftest.er1
1.3       jlam     3781:   ac_status=$?
1.9     ! grant    3782:   grep -v '^ *+' conftest.er1 >conftest.err
        !          3783:   rm -f conftest.er1
        !          3784:   cat conftest.err >&5
1.3       jlam     3785:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3786:   (exit $ac_status); } &&
1.9     ! grant    3787:         { ac_try='test -z "$ac_c_werror_flag"
        !          3788:                         || test ! -s conftest.err'
        !          3789:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          3790:   (eval $ac_try) 2>&5
        !          3791:   ac_status=$?
        !          3792:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3793:   (exit $ac_status); }; } &&
        !          3794:         { ac_try='test -s conftest.$ac_objext'
1.3       jlam     3795:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3796:   (eval $ac_try) 2>&5
                   3797:   ac_status=$?
                   3798:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3799:   (exit $ac_status); }; }; then
                   3800:   eval "$as_ac_Header=yes"
                   3801: else
                   3802:   echo "$as_me: failed program was:" >&5
                   3803: sed 's/^/| /' conftest.$ac_ext >&5
                   3804:
                   3805: eval "$as_ac_Header=no"
                   3806: fi
1.9     ! grant    3807: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3       jlam     3808: fi
                   3809: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   3810: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   3811: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   3812:   cat >>confdefs.h <<_ACEOF
                   3813: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   3814: _ACEOF
1.1       schmonz  3815:
                   3816: fi
                   3817:
                   3818: done
                   3819:
                   3820:
                   3821:
                   3822:
1.3       jlam     3823: for ac_header in db1/db.h db.h
1.1       schmonz  3824: do
1.3       jlam     3825: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   3826: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   3827:   echo "$as_me:$LINENO: checking for $ac_header" >&5
                   3828: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   3829: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   3830:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3831: fi
                   3832: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   3833: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   3834: else
                   3835:   # Is the header compilable?
                   3836: echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   3837: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
                   3838: cat >conftest.$ac_ext <<_ACEOF
                   3839: /* confdefs.h.  */
                   3840: _ACEOF
                   3841: cat confdefs.h >>conftest.$ac_ext
                   3842: cat >>conftest.$ac_ext <<_ACEOF
                   3843: /* end confdefs.h.  */
                   3844: $ac_includes_default
                   3845: #include <$ac_header>
                   3846: _ACEOF
                   3847: rm -f conftest.$ac_objext
                   3848: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9     ! grant    3849:   (eval $ac_compile) 2>conftest.er1
1.3       jlam     3850:   ac_status=$?
1.9     ! grant    3851:   grep -v '^ *+' conftest.er1 >conftest.err
        !          3852:   rm -f conftest.er1
        !          3853:   cat conftest.err >&5
1.3       jlam     3854:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3855:   (exit $ac_status); } &&
1.9     ! grant    3856:         { ac_try='test -z "$ac_c_werror_flag"
        !          3857:                         || test ! -s conftest.err'
        !          3858:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          3859:   (eval $ac_try) 2>&5
        !          3860:   ac_status=$?
        !          3861:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          3862:   (exit $ac_status); }; } &&
        !          3863:         { ac_try='test -s conftest.$ac_objext'
1.3       jlam     3864:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   3865:   (eval $ac_try) 2>&5
                   3866:   ac_status=$?
                   3867:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3868:   (exit $ac_status); }; }; then
                   3869:   ac_header_compiler=yes
                   3870: else
                   3871:   echo "$as_me: failed program was:" >&5
                   3872: sed 's/^/| /' conftest.$ac_ext >&5
                   3873:
                   3874: ac_header_compiler=no
                   3875: fi
1.9     ! grant    3876: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3       jlam     3877: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   3878: echo "${ECHO_T}$ac_header_compiler" >&6
                   3879:
                   3880: # Is the header present?
                   3881: echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   3882: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
                   3883: cat >conftest.$ac_ext <<_ACEOF
                   3884: /* confdefs.h.  */
                   3885: _ACEOF
                   3886: cat confdefs.h >>conftest.$ac_ext
                   3887: cat >>conftest.$ac_ext <<_ACEOF
                   3888: /* end confdefs.h.  */
                   3889: #include <$ac_header>
                   3890: _ACEOF
                   3891: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   3892:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   3893:   ac_status=$?
                   3894:   grep -v '^ *+' conftest.er1 >conftest.err
                   3895:   rm -f conftest.er1
                   3896:   cat conftest.err >&5
                   3897:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   3898:   (exit $ac_status); } >/dev/null; then
                   3899:   if test -s conftest.err; then
                   3900:     ac_cpp_err=$ac_c_preproc_warn_flag
1.9     ! grant    3901:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3       jlam     3902:   else
                   3903:     ac_cpp_err=
                   3904:   fi
1.1       schmonz  3905: else
1.3       jlam     3906:   ac_cpp_err=yes
1.1       schmonz  3907: fi
1.3       jlam     3908: if test -z "$ac_cpp_err"; then
                   3909:   ac_header_preproc=yes
1.1       schmonz  3910: else
1.3       jlam     3911:   echo "$as_me: failed program was:" >&5
                   3912: sed 's/^/| /' conftest.$ac_ext >&5
1.1       schmonz  3913:
1.3       jlam     3914:   ac_header_preproc=no
                   3915: fi
                   3916: rm -f conftest.err conftest.$ac_ext
                   3917: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   3918: echo "${ECHO_T}$ac_header_preproc" >&6
                   3919:
                   3920: # So?  What about this header?
1.9     ! grant    3921: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
        !          3922:   yes:no: )
1.3       jlam     3923:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   3924: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.9     ! grant    3925:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
        !          3926: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
        !          3927:     ac_header_preproc=yes
1.3       jlam     3928:     ;;
1.9     ! grant    3929:   no:yes:* )
1.3       jlam     3930:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   3931: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.9     ! grant    3932:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
        !          3933: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
        !          3934:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
        !          3935: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
        !          3936:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
        !          3937: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
1.3       jlam     3938:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   3939: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.9     ! grant    3940:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
        !          3941: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.3       jlam     3942:     (
                   3943:       cat <<\_ASBOX
1.9     ! grant    3944: ## ------------------------------- ##
        !          3945: ## Report this to grant@NetBSD.org ##
        !          3946: ## ------------------------------- ##
1.3       jlam     3947: _ASBOX
                   3948:     ) |
                   3949:       sed "s/^/$as_me: WARNING:     /" >&2
                   3950:     ;;
                   3951: esac
                   3952: echo "$as_me:$LINENO: checking for $ac_header" >&5
                   3953: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   3954: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   3955:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       schmonz  3956: else
1.9     ! grant    3957:   eval "$as_ac_Header=\$ac_header_preproc"
1.1       schmonz  3958: fi
1.3       jlam     3959: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   3960: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1       schmonz  3961:
                   3962: fi
1.3       jlam     3963: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   3964:   cat >>confdefs.h <<_ACEOF
                   3965: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   3966: _ACEOF
1.1       schmonz  3967:
                   3968: fi
                   3969:
                   3970: done
                   3971:
                   3972:
                   3973:
1.9     ! grant    3974: for ac_header in fnmatch.h regex.h
1.1       schmonz  3975: do
1.3       jlam     3976: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   3977: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   3978:   echo "$as_me:$LINENO: checking for $ac_header" >&5
                   3979: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   3980: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   3981:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3982: fi
                   3983: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   3984: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   3985: else
                   3986:   # Is the header compilable?
                   3987: echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   3988: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
                   3989: cat >conftest.$ac_ext <<_ACEOF
                   3990: /* confdefs.h.  */
                   3991: _ACEOF
                   3992: cat confdefs.h >>conftest.$ac_ext
                   3993: cat >>conftest.$ac_ext <<_ACEOF
                   3994: /* end confdefs.h.  */
                   3995: $ac_includes_default
                   3996: #include <$ac_header>
                   3997: _ACEOF
                   3998: rm -f conftest.$ac_objext
                   3999: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9     ! grant    4000:   (eval $ac_compile) 2>conftest.er1
1.3       jlam     4001:   ac_status=$?
1.9     ! grant    4002:   grep -v '^ *+' conftest.er1 >conftest.err
        !          4003:   rm -f conftest.er1
        !          4004:   cat conftest.err >&5
1.3       jlam     4005:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4006:   (exit $ac_status); } &&
1.9     ! grant    4007:         { ac_try='test -z "$ac_c_werror_flag"
        !          4008:                         || test ! -s conftest.err'
        !          4009:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          4010:   (eval $ac_try) 2>&5
        !          4011:   ac_status=$?
        !          4012:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4013:   (exit $ac_status); }; } &&
        !          4014:         { ac_try='test -s conftest.$ac_objext'
1.3       jlam     4015:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4016:   (eval $ac_try) 2>&5
                   4017:   ac_status=$?
                   4018:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4019:   (exit $ac_status); }; }; then
                   4020:   ac_header_compiler=yes
                   4021: else
                   4022:   echo "$as_me: failed program was:" >&5
                   4023: sed 's/^/| /' conftest.$ac_ext >&5
                   4024:
                   4025: ac_header_compiler=no
                   4026: fi
1.9     ! grant    4027: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3       jlam     4028: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   4029: echo "${ECHO_T}$ac_header_compiler" >&6
                   4030:
                   4031: # Is the header present?
                   4032: echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   4033: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
                   4034: cat >conftest.$ac_ext <<_ACEOF
                   4035: /* confdefs.h.  */
                   4036: _ACEOF
                   4037: cat confdefs.h >>conftest.$ac_ext
                   4038: cat >>conftest.$ac_ext <<_ACEOF
                   4039: /* end confdefs.h.  */
                   4040: #include <$ac_header>
                   4041: _ACEOF
                   4042: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   4043:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   4044:   ac_status=$?
                   4045:   grep -v '^ *+' conftest.er1 >conftest.err
                   4046:   rm -f conftest.er1
                   4047:   cat conftest.err >&5
                   4048:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4049:   (exit $ac_status); } >/dev/null; then
                   4050:   if test -s conftest.err; then
                   4051:     ac_cpp_err=$ac_c_preproc_warn_flag
1.9     ! grant    4052:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3       jlam     4053:   else
                   4054:     ac_cpp_err=
                   4055:   fi
1.1       schmonz  4056: else
1.3       jlam     4057:   ac_cpp_err=yes
1.1       schmonz  4058: fi
1.3       jlam     4059: if test -z "$ac_cpp_err"; then
                   4060:   ac_header_preproc=yes
1.1       schmonz  4061: else
1.3       jlam     4062:   echo "$as_me: failed program was:" >&5
                   4063: sed 's/^/| /' conftest.$ac_ext >&5
1.1       schmonz  4064:
1.3       jlam     4065:   ac_header_preproc=no
                   4066: fi
                   4067: rm -f conftest.err conftest.$ac_ext
                   4068: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   4069: echo "${ECHO_T}$ac_header_preproc" >&6
                   4070:
                   4071: # So?  What about this header?
1.9     ! grant    4072: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
        !          4073:   yes:no: )
1.3       jlam     4074:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   4075: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.9     ! grant    4076:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
        !          4077: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
        !          4078:     ac_header_preproc=yes
1.3       jlam     4079:     ;;
1.9     ! grant    4080:   no:yes:* )
1.3       jlam     4081:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   4082: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.9     ! grant    4083:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
        !          4084: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
        !          4085:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
        !          4086: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
        !          4087:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
        !          4088: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
1.3       jlam     4089:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   4090: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.9     ! grant    4091:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
        !          4092: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.3       jlam     4093:     (
                   4094:       cat <<\_ASBOX
1.9     ! grant    4095: ## ------------------------------- ##
        !          4096: ## Report this to grant@NetBSD.org ##
        !          4097: ## ------------------------------- ##
1.3       jlam     4098: _ASBOX
                   4099:     ) |
                   4100:       sed "s/^/$as_me: WARNING:     /" >&2
                   4101:     ;;
                   4102: esac
                   4103: echo "$as_me:$LINENO: checking for $ac_header" >&5
                   4104: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   4105: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   4106:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       schmonz  4107: else
1.9     ! grant    4108:   eval "$as_ac_Header=\$ac_header_preproc"
1.1       schmonz  4109: fi
1.3       jlam     4110: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   4111: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1       schmonz  4112:
                   4113: fi
1.3       jlam     4114: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   4115:   cat >>confdefs.h <<_ACEOF
                   4116: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   4117: _ACEOF
1.1       schmonz  4118:
                   4119: fi
                   4120:
                   4121: done
                   4122:
                   4123:
                   4124:
                   4125:
1.8       grant    4126:
                   4127: for ac_header in sys/ioctl.h sys/resource.h sys/utsname.h sys/wait.h
1.1       schmonz  4128: do
1.3       jlam     4129: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   4130: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   4131:   echo "$as_me:$LINENO: checking for $ac_header" >&5
                   4132: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   4133: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   4134:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4135: fi
                   4136: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   4137: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   4138: else
                   4139:   # Is the header compilable?
                   4140: echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   4141: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
                   4142: cat >conftest.$ac_ext <<_ACEOF
                   4143: /* confdefs.h.  */
                   4144: _ACEOF
                   4145: cat confdefs.h >>conftest.$ac_ext
                   4146: cat >>conftest.$ac_ext <<_ACEOF
                   4147: /* end confdefs.h.  */
                   4148: $ac_includes_default
                   4149: #include <$ac_header>
                   4150: _ACEOF
                   4151: rm -f conftest.$ac_objext
                   4152: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9     ! grant    4153:   (eval $ac_compile) 2>conftest.er1
1.3       jlam     4154:   ac_status=$?
1.9     ! grant    4155:   grep -v '^ *+' conftest.er1 >conftest.err
        !          4156:   rm -f conftest.er1
        !          4157:   cat conftest.err >&5
1.3       jlam     4158:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4159:   (exit $ac_status); } &&
1.9     ! grant    4160:         { ac_try='test -z "$ac_c_werror_flag"
        !          4161:                         || test ! -s conftest.err'
        !          4162:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          4163:   (eval $ac_try) 2>&5
        !          4164:   ac_status=$?
        !          4165:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4166:   (exit $ac_status); }; } &&
        !          4167:         { ac_try='test -s conftest.$ac_objext'
1.3       jlam     4168:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4169:   (eval $ac_try) 2>&5
                   4170:   ac_status=$?
                   4171:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4172:   (exit $ac_status); }; }; then
                   4173:   ac_header_compiler=yes
                   4174: else
                   4175:   echo "$as_me: failed program was:" >&5
                   4176: sed 's/^/| /' conftest.$ac_ext >&5
                   4177:
                   4178: ac_header_compiler=no
                   4179: fi
1.9     ! grant    4180: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3       jlam     4181: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   4182: echo "${ECHO_T}$ac_header_compiler" >&6
                   4183:
                   4184: # Is the header present?
                   4185: echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   4186: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
                   4187: cat >conftest.$ac_ext <<_ACEOF
                   4188: /* confdefs.h.  */
                   4189: _ACEOF
                   4190: cat confdefs.h >>conftest.$ac_ext
                   4191: cat >>conftest.$ac_ext <<_ACEOF
                   4192: /* end confdefs.h.  */
                   4193: #include <$ac_header>
                   4194: _ACEOF
                   4195: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
                   4196:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   4197:   ac_status=$?
                   4198:   grep -v '^ *+' conftest.er1 >conftest.err
                   4199:   rm -f conftest.er1
                   4200:   cat conftest.err >&5
                   4201:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4202:   (exit $ac_status); } >/dev/null; then
                   4203:   if test -s conftest.err; then
                   4204:     ac_cpp_err=$ac_c_preproc_warn_flag
1.9     ! grant    4205:     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3       jlam     4206:   else
                   4207:     ac_cpp_err=
                   4208:   fi
1.1       schmonz  4209: else
1.3       jlam     4210:   ac_cpp_err=yes
1.1       schmonz  4211: fi
1.3       jlam     4212: if test -z "$ac_cpp_err"; then
                   4213:   ac_header_preproc=yes
1.1       schmonz  4214: else
1.3       jlam     4215:   echo "$as_me: failed program was:" >&5
                   4216: sed 's/^/| /' conftest.$ac_ext >&5
1.1       schmonz  4217:
1.3       jlam     4218:   ac_header_preproc=no
                   4219: fi
                   4220: rm -f conftest.err conftest.$ac_ext
                   4221: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   4222: echo "${ECHO_T}$ac_header_preproc" >&6
                   4223:
                   4224: # So?  What about this header?
1.9     ! grant    4225: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
        !          4226:   yes:no: )
1.3       jlam     4227:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   4228: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.9     ! grant    4229:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
        !          4230: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
        !          4231:     ac_header_preproc=yes
1.3       jlam     4232:     ;;
1.9     ! grant    4233:   no:yes:* )
1.3       jlam     4234:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   4235: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.9     ! grant    4236:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
        !          4237: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
        !          4238:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
        !          4239: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
        !          4240:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
        !          4241: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
1.3       jlam     4242:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   4243: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.9     ! grant    4244:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
        !          4245: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.3       jlam     4246:     (
                   4247:       cat <<\_ASBOX
1.9     ! grant    4248: ## ------------------------------- ##
        !          4249: ## Report this to grant@NetBSD.org ##
        !          4250: ## ------------------------------- ##
1.3       jlam     4251: _ASBOX
                   4252:     ) |
                   4253:       sed "s/^/$as_me: WARNING:     /" >&2
                   4254:     ;;
                   4255: esac
                   4256: echo "$as_me:$LINENO: checking for $ac_header" >&5
                   4257: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   4258: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   4259:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       schmonz  4260: else
1.9     ! grant    4261:   eval "$as_ac_Header=\$ac_header_preproc"
1.1       schmonz  4262: fi
1.3       jlam     4263: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
                   4264: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1       schmonz  4265:
                   4266: fi
1.3       jlam     4267: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   4268:   cat >>confdefs.h <<_ACEOF
                   4269: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   4270: _ACEOF
                   4271:
1.1       schmonz  4272: fi
                   4273:
                   4274: done
                   4275:
1.3       jlam     4276:
                   4277: # Checks for library functions.
                   4278:
                   4279:
                   4280:
1.4       jlam     4281:
                   4282: for ac_func in chflags dbopen tgetent vfork
1.1       schmonz  4283: do
1.3       jlam     4284: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   4285: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   4286: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   4287: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   4288:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4289: else
                   4290:   cat >conftest.$ac_ext <<_ACEOF
                   4291: /* confdefs.h.  */
                   4292: _ACEOF
                   4293: cat confdefs.h >>conftest.$ac_ext
                   4294: cat >>conftest.$ac_ext <<_ACEOF
                   4295: /* end confdefs.h.  */
1.9     ! grant    4296: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
        !          4297:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
        !          4298: #define $ac_func innocuous_$ac_func
        !          4299:
1.1       schmonz  4300: /* System header to define __stub macros and hopefully few prototypes,
1.3       jlam     4301:     which can conflict with char $ac_func (); below.
                   4302:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   4303:     <limits.h> exists even on freestanding compilers.  */
1.9     ! grant    4304:
1.3       jlam     4305: #ifdef __STDC__
                   4306: # include <limits.h>
                   4307: #else
                   4308: # include <assert.h>
                   4309: #endif
1.9     ! grant    4310:
        !          4311: #undef $ac_func
        !          4312:
1.1       schmonz  4313: /* Override any gcc2 internal prototype to avoid an error.  */
1.3       jlam     4314: #ifdef __cplusplus
                   4315: extern "C"
                   4316: {
                   4317: #endif
1.1       schmonz  4318: /* We use char because int might match the return type of a gcc2
1.3       jlam     4319:    builtin and then its argument prototype would still apply.  */
                   4320: char $ac_func ();
1.1       schmonz  4321: /* The GNU C library defines this for functions which it implements
                   4322:     to always fail with ENOSYS.  Some functions are actually named
                   4323:     something starting with __ and the normal name is an alias.  */
                   4324: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   4325: choke me
                   4326: #else
1.3       jlam     4327: char (*f) () = $ac_func;
                   4328: #endif
                   4329: #ifdef __cplusplus
                   4330: }
1.1       schmonz  4331: #endif
                   4332:
1.3       jlam     4333: int
                   4334: main ()
                   4335: {
                   4336: return f != $ac_func;
                   4337:   ;
                   4338:   return 0;
                   4339: }
                   4340: _ACEOF
                   4341: rm -f conftest.$ac_objext conftest$ac_exeext
                   4342: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9     ! grant    4343:   (eval $ac_link) 2>conftest.er1
1.3       jlam     4344:   ac_status=$?
1.9     ! grant    4345:   grep -v '^ *+' conftest.er1 >conftest.err
        !          4346:   rm -f conftest.er1
        !          4347:   cat conftest.err >&5
1.3       jlam     4348:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4349:   (exit $ac_status); } &&
1.9     ! grant    4350:         { ac_try='test -z "$ac_c_werror_flag"
        !          4351:                         || test ! -s conftest.err'
        !          4352:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          4353:   (eval $ac_try) 2>&5
        !          4354:   ac_status=$?
        !          4355:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4356:   (exit $ac_status); }; } &&
        !          4357:         { ac_try='test -s conftest$ac_exeext'
1.3       jlam     4358:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4359:   (eval $ac_try) 2>&5
                   4360:   ac_status=$?
                   4361:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4362:   (exit $ac_status); }; }; then
                   4363:   eval "$as_ac_var=yes"
                   4364: else
                   4365:   echo "$as_me: failed program was:" >&5
                   4366: sed 's/^/| /' conftest.$ac_ext >&5
                   4367:
                   4368: eval "$as_ac_var=no"
                   4369: fi
1.9     ! grant    4370: rm -f conftest.err conftest.$ac_objext \
        !          4371:       conftest$ac_exeext conftest.$ac_ext
1.3       jlam     4372: fi
                   4373: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   4374: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   4375: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   4376:   cat >>confdefs.h <<_ACEOF
                   4377: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   4378: _ACEOF
1.1       schmonz  4379:
                   4380: fi
                   4381: done
                   4382:
1.3       jlam     4383:
                   4384:
                   4385: for ac_func in getrlimit setrlimit
1.1       schmonz  4386: do
1.3       jlam     4387: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   4388: echo "$as_me:$LINENO: checking for $ac_func" >&5
                   4389: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   4390: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   4391:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4392: else
                   4393:   cat >conftest.$ac_ext <<_ACEOF
                   4394: /* confdefs.h.  */
                   4395: _ACEOF
                   4396: cat confdefs.h >>conftest.$ac_ext
                   4397: cat >>conftest.$ac_ext <<_ACEOF
                   4398: /* end confdefs.h.  */
1.9     ! grant    4399: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
        !          4400:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
        !          4401: #define $ac_func innocuous_$ac_func
        !          4402:
1.1       schmonz  4403: /* System header to define __stub macros and hopefully few prototypes,
1.3       jlam     4404:     which can conflict with char $ac_func (); below.
                   4405:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   4406:     <limits.h> exists even on freestanding compilers.  */
1.9     ! grant    4407:
1.3       jlam     4408: #ifdef __STDC__
                   4409: # include <limits.h>
                   4410: #else
                   4411: # include <assert.h>
                   4412: #endif
1.9     ! grant    4413:
        !          4414: #undef $ac_func
        !          4415:
1.1       schmonz  4416: /* Override any gcc2 internal prototype to avoid an error.  */
1.3       jlam     4417: #ifdef __cplusplus
                   4418: extern "C"
                   4419: {
                   4420: #endif
1.1       schmonz  4421: /* We use char because int might match the return type of a gcc2
1.3       jlam     4422:    builtin and then its argument prototype would still apply.  */
                   4423: char $ac_func ();
1.1       schmonz  4424: /* The GNU C library defines this for functions which it implements
                   4425:     to always fail with ENOSYS.  Some functions are actually named
                   4426:     something starting with __ and the normal name is an alias.  */
                   4427: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   4428: choke me
                   4429: #else
1.3       jlam     4430: char (*f) () = $ac_func;
                   4431: #endif
                   4432: #ifdef __cplusplus
                   4433: }
1.1       schmonz  4434: #endif
                   4435:
1.3       jlam     4436: int
                   4437: main ()
                   4438: {
                   4439: return f != $ac_func;
                   4440:   ;
                   4441:   return 0;
                   4442: }
                   4443: _ACEOF
                   4444: rm -f conftest.$ac_objext conftest$ac_exeext
                   4445: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9     ! grant    4446:   (eval $ac_link) 2>conftest.er1
1.3       jlam     4447:   ac_status=$?
1.9     ! grant    4448:   grep -v '^ *+' conftest.er1 >conftest.err
        !          4449:   rm -f conftest.er1
        !          4450:   cat conftest.err >&5
1.3       jlam     4451:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4452:   (exit $ac_status); } &&
1.9     ! grant    4453:         { ac_try='test -z "$ac_c_werror_flag"
        !          4454:                         || test ! -s conftest.err'
        !          4455:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
        !          4456:   (eval $ac_try) 2>&5
        !          4457:   ac_status=$?
        !          4458:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          4459:   (exit $ac_status); }; } &&
        !          4460:         { ac_try='test -s conftest$ac_exeext'
1.3       jlam     4461:   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
                   4462:   (eval $ac_try) 2>&5
                   4463:   ac_status=$?
                   4464:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   4465:   (exit $ac_status); }; }; then
                   4466:   eval "$as_ac_var=yes"
                   4467: else
                   4468:   echo "$as_me: failed program was:" >&5
                   4469: sed 's/^/| /' conftest.$ac_ext >&5
                   4470:
                   4471: eval "$as_ac_var=no"
                   4472: fi
1.9     ! grant    4473: rm -f conftest.err conftest.$ac_objext \
        !          4474:       conftest$ac_exeext conftest.$ac_ext
1.3       jlam     4475: fi
                   4476: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
                   4477: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   4478: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   4479:   cat >>confdefs.h <<_ACEOF
                   4480: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   4481: _ACEOF
1.1       schmonz  4482:
                   4483: fi
                   4484: done
1.4       jlam     4485:
                   4486:
                   4487:
1.1       schmonz  4488:
                   4489:
1.5       jlam     4490:                                                                                                     ac_config_files="$ac_config_files Makefile add/Makefile admin/Makefile create/Makefile delete/Makefile info/Makefile lib/Makefile view/Makefile view/linkfarm.sh view/pkg_view.sh"
1.3       jlam     4491:
                   4492: cat >confcache <<\_ACEOF
                   4493: # This file is a shell script that caches the results of configure
                   4494: # tests run on this system so they can be shared between configure
                   4495: # scripts and configure runs, see configure's option --config-cache.
                   4496: # It is not useful on other systems.  If it contains results you don't
                   4497: # want to keep, you may remove or edit it.
                   4498: #
                   4499: # config.status only pays attention to the cache file if you give it
                   4500: # the --recheck option to rerun configure.
                   4501: #
                   4502: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   4503: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   4504: # following values.
1.1       schmonz  4505:
1.3       jlam     4506: _ACEOF
1.1       schmonz  4507:
1.3       jlam     4508: # The following way of writing the cache mishandles newlines in values,
                   4509: # but we know of no workaround that is simple, portable, and efficient.
                   4510: # So, don't put newlines in cache variables' values.
                   4511: # Ultrix sh set writes to stderr and can't be redirected directly,
                   4512: # and sets the high bit in the cache file unless we assign to the vars.
                   4513: {
                   4514:   (set) 2>&1 |
                   4515:     case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   4516:     *ac_space=\ *)
                   4517:       # `set' does not quote correctly, so add quotes (double-quote
                   4518:       # substitution turns \\\\ into \\, and sed turns \\ into \).
                   4519:       sed -n \
1.9     ! grant    4520:        "s/'/'\\\\''/g;
        !          4521:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.3       jlam     4522:       ;;
                   4523:     *)
                   4524:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   4525:       sed -n \
1.9     ! grant    4526:        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.3       jlam     4527:       ;;
                   4528:     esac;
                   4529: } |
                   4530:   sed '
                   4531:      t clear
                   4532:      : clear
                   4533:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   4534:      t end
                   4535:      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   4536:      : end' >>confcache
                   4537: if diff $cache_file confcache >/dev/null 2>&1; then :; else
                   4538:   if test -w $cache_file; then
                   4539:     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
                   4540:     cat confcache >$cache_file
                   4541:   else
                   4542:     echo "not updating unwritable cache $cache_file"
                   4543:   fi
1.1       schmonz  4544: fi
1.3       jlam     4545: rm -f confcache
                   4546:
                   4547: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   4548: # Let make expand exec_prefix.
                   4549: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   4550:
                   4551: # VPATH may cause trouble with some makes, so we remove $(srcdir),
                   4552: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
                   4553: # trailing colons and then remove the whole line if VPATH becomes empty
                   4554: # (actually we leave an empty line to preserve line numbers).
                   4555: if test "x$srcdir" = x.; then
1.9     ! grant    4556:   ac_vpsub='/^[         ]*VPATH[        ]*=/{
1.3       jlam     4557: s/:*\$(srcdir):*/:/;
                   4558: s/:*\${srcdir}:*/:/;
                   4559: s/:*@srcdir@:*/:/;
1.9     ! grant    4560: s/^\([^=]*=[    ]*\):*/\1/;
1.3       jlam     4561: s/:*$//;
1.9     ! grant    4562: s/^[^=]*=[      ]*$//;
1.3       jlam     4563: }'
1.1       schmonz  4564: fi
                   4565:
1.3       jlam     4566: DEFS=-DHAVE_CONFIG_H
                   4567:
                   4568: ac_libobjs=
                   4569: ac_ltlibobjs=
                   4570: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   4571:   # 1. Remove the extension, and $U if already installed.
                   4572:   ac_i=`echo "$ac_i" |
1.9     ! grant    4573:         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1.3       jlam     4574:   # 2. Add them.
                   4575:   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
                   4576:   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1.1       schmonz  4577: done
1.3       jlam     4578: LIBOBJS=$ac_libobjs
                   4579:
                   4580: LTLIBOBJS=$ac_ltlibobjs
1.1       schmonz  4581:
                   4582:
                   4583:
1.3       jlam     4584: : ${CONFIG_STATUS=./config.status}
                   4585: ac_clean_files_save=$ac_clean_files
                   4586: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
                   4587: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
                   4588: echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   4589: cat >$CONFIG_STATUS <<_ACEOF
                   4590: #! $SHELL
                   4591: # Generated by $as_me.
                   4592: # Run this file to recreate the current configuration.
                   4593: # Compiler output produced by configure, useful for debugging
                   4594: # configure, is in config.log if it exists.
1.1       schmonz  4595:
1.3       jlam     4596: debug=false
                   4597: ac_cs_recheck=false
                   4598: ac_cs_silent=false
                   4599: SHELL=\${CONFIG_SHELL-$SHELL}
                   4600: _ACEOF
                   4601:
                   4602: cat >>$CONFIG_STATUS <<\_ACEOF
                   4603: ## --------------------- ##
                   4604: ## M4sh Initialization.  ##
                   4605: ## --------------------- ##
                   4606:
                   4607: # Be Bourne compatible
                   4608: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                   4609:   emulate sh
                   4610:   NULLCMD=:
                   4611:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                   4612:   # is contrary to our usage.  Disable this feature.
                   4613:   alias -g '${1+"$@"}'='"$@"'
                   4614: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
                   4615:   set -o posix
                   4616: fi
1.9     ! grant    4617: DUALCASE=1; export DUALCASE # for MKS sh
1.3       jlam     4618:
                   4619: # Support unset when possible.
1.9     ! grant    4620: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.3       jlam     4621:   as_unset=unset
                   4622: else
                   4623:   as_unset=false
1.1       schmonz  4624: fi
                   4625:
1.3       jlam     4626:
                   4627: # Work around bugs in pre-3.0 UWIN ksh.
                   4628: $as_unset ENV MAIL MAILPATH
                   4629: PS1='$ '
                   4630: PS2='> '
                   4631: PS4='+ '
                   4632:
                   4633: # NLS nuisances.
                   4634: for as_var in \
                   4635:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
                   4636:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
                   4637:   LC_TELEPHONE LC_TIME
                   4638: do
1.9     ! grant    4639:   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.3       jlam     4640:     eval $as_var=C; export $as_var
                   4641:   else
                   4642:     $as_unset $as_var
                   4643:   fi
1.1       schmonz  4644: done
                   4645:
1.3       jlam     4646: # Required to use basename.
                   4647: if expr a : '\(a\)' >/dev/null 2>&1; then
                   4648:   as_expr=expr
                   4649: else
                   4650:   as_expr=false
                   4651: fi
                   4652:
                   4653: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
                   4654:   as_basename=basename
                   4655: else
                   4656:   as_basename=false
                   4657: fi
1.1       schmonz  4658:
1.2       grant    4659:
1.3       jlam     4660: # Name of the executable.
                   4661: as_me=`$as_basename "$0" ||
                   4662: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   4663:         X"$0" : 'X\(//\)$' \| \
                   4664:         X"$0" : 'X\(/\)$' \| \
                   4665:         .     : '\(.\)' 2>/dev/null ||
                   4666: echo X/"$0" |
                   4667:     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
                   4668:          /^X\/\(\/\/\)$/{ s//\1/; q; }
                   4669:          /^X\/\(\/\).*/{ s//\1/; q; }
                   4670:          s/.*/./; q'`
                   4671:
                   4672:
                   4673: # PATH needs CR, and LINENO needs CR and PATH.
                   4674: # Avoid depending upon Character Ranges.
                   4675: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   4676: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   4677: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   4678: as_cr_digits='0123456789'
                   4679: as_cr_alnum=$as_cr_Letters$as_cr_digits
                   4680:
                   4681: # The user is always right.
                   4682: if test "${PATH_SEPARATOR+set}" != set; then
                   4683:   echo "#! /bin/sh" >conf$$.sh
                   4684:   echo  "exit 0"   >>conf$$.sh
                   4685:   chmod +x conf$$.sh
                   4686:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
                   4687:     PATH_SEPARATOR=';'
                   4688:   else
                   4689:     PATH_SEPARATOR=:
                   4690:   fi
                   4691:   rm -f conf$$.sh
                   4692: fi
1.2       grant    4693:
                   4694:
1.3       jlam     4695:   as_lineno_1=$LINENO
                   4696:   as_lineno_2=$LINENO
                   4697:   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
                   4698:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                   4699:   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
                   4700:   # Find who we are.  Look in the path if we contain no path at all
                   4701:   # relative or not.
                   4702:   case $0 in
                   4703:     *[\\/]* ) as_myself=$0 ;;
                   4704:     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4705: for as_dir in $PATH
                   4706: do
                   4707:   IFS=$as_save_IFS
                   4708:   test -z "$as_dir" && as_dir=.
                   4709:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   4710: done
1.2       grant    4711:
1.3       jlam     4712:        ;;
                   4713:   esac
                   4714:   # We did not find ourselves, most probably we were run as `sh COMMAND'
                   4715:   # in which case we are not to be found in the path.
                   4716:   if test "x$as_myself" = x; then
                   4717:     as_myself=$0
                   4718:   fi
                   4719:   if test ! -f "$as_myself"; then
                   4720:     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
                   4721: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
                   4722:    { (exit 1); exit 1; }; }
                   4723:   fi
                   4724:   case $CONFIG_SHELL in
                   4725:   '')
                   4726:     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4727: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                   4728: do
                   4729:   IFS=$as_save_IFS
                   4730:   test -z "$as_dir" && as_dir=.
                   4731:   for as_base in sh bash ksh sh5; do
                   4732:         case $as_dir in
                   4733:         /*)
                   4734:           if ("$as_dir/$as_base" -c '
                   4735:   as_lineno_1=$LINENO
                   4736:   as_lineno_2=$LINENO
                   4737:   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
                   4738:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                   4739:   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
                   4740:             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
                   4741:             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
                   4742:             CONFIG_SHELL=$as_dir/$as_base
                   4743:             export CONFIG_SHELL
                   4744:             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
                   4745:           fi;;
                   4746:         esac
                   4747:        done
                   4748: done
                   4749: ;;
                   4750:   esac
1.2       grant    4751:
1.3       jlam     4752:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                   4753:   # uniformly replaced by the line number.  The first 'sed' inserts a
                   4754:   # line-number line before each line; the second 'sed' does the real
                   4755:   # work.  The second script uses 'N' to pair each line-number line
                   4756:   # with the numbered line, and appends trailing '-' during
                   4757:   # substitution so that $LINENO is not a special case at line end.
                   4758:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
                   4759:   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
                   4760:   sed '=' <$as_myself |
                   4761:     sed '
                   4762:       N
                   4763:       s,$,-,
                   4764:       : loop
                   4765:       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
                   4766:       t loop
                   4767:       s,-$,,
                   4768:       s,^['$as_cr_digits']*\n,,
                   4769:     ' >$as_me.lineno &&
                   4770:   chmod +x $as_me.lineno ||
                   4771:     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
                   4772: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
                   4773:    { (exit 1); exit 1; }; }
                   4774:
                   4775:   # Don't try to exec as it changes $[0], causing all sort of problems
                   4776:   # (the dirname of $[0] is not the place where we might find the
                   4777:   # original and so on.  Autoconf is especially sensible to this).
                   4778:   . ./$as_me.lineno
                   4779:   # Exit status is that of the last command.
                   4780:   exit
1.2       grant    4781: }
                   4782:
1.3       jlam     4783:
                   4784: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
                   4785:   *c*,-n*) ECHO_N= ECHO_C='
                   4786: ' ECHO_T='     ' ;;
                   4787:   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
                   4788:   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
                   4789: esac
                   4790:
                   4791: if expr a : '\(a\)' >/dev/null 2>&1; then
                   4792:   as_expr=expr
1.2       grant    4793: else
1.3       jlam     4794:   as_expr=false
1.2       grant    4795: fi
1.3       jlam     4796:
                   4797: rm -f conf$$ conf$$.exe conf$$.file
                   4798: echo >conf$$.file
                   4799: if ln -s conf$$.file conf$$ 2>/dev/null; then
                   4800:   # We could just check for DJGPP; but this test a) works b) is more generic
                   4801:   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
                   4802:   if test -f conf$$.exe; then
                   4803:     # Don't use ln at all; we don't have any links
                   4804:     as_ln_s='cp -p'
                   4805:   else
                   4806:     as_ln_s='ln -s'
                   4807:   fi
                   4808: elif ln conf$$.file conf$$ 2>/dev/null; then
                   4809:   as_ln_s=ln
                   4810: else
                   4811:   as_ln_s='cp -p'
1.2       grant    4812: fi
1.3       jlam     4813: rm -f conf$$ conf$$.exe conf$$.file
1.2       grant    4814:
1.3       jlam     4815: if mkdir -p . 2>/dev/null; then
                   4816:   as_mkdir_p=:
                   4817: else
1.9     ! grant    4818:   test -d ./-p && rmdir ./-p
1.3       jlam     4819:   as_mkdir_p=false
1.1       schmonz  4820: fi
                   4821:
1.3       jlam     4822: as_executable_p="test -f"
                   4823:
                   4824: # Sed expression to map a string onto a valid CPP name.
1.9     ! grant    4825: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.1       schmonz  4826:
1.3       jlam     4827: # Sed expression to map a string onto a valid variable name.
1.9     ! grant    4828: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.1       schmonz  4829:
                   4830:
1.3       jlam     4831: # IFS
                   4832: # We need space, tab and new line, in precisely that order.
                   4833: as_nl='
                   4834: '
                   4835: IFS="  $as_nl"
1.1       schmonz  4836:
1.3       jlam     4837: # CDPATH.
                   4838: $as_unset CDPATH
1.1       schmonz  4839:
1.3       jlam     4840: exec 6>&1
1.1       schmonz  4841:
1.3       jlam     4842: # Open the log real soon, to keep \$[0] and so on meaningful, and to
                   4843: # report actual input values of CONFIG_FILES etc. instead of their
                   4844: # values after options handling.  Logging --version etc. is OK.
                   4845: exec 5>>config.log
                   4846: {
                   4847:   echo
                   4848:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   4849: ## Running $as_me. ##
                   4850: _ASBOX
                   4851: } >&5
                   4852: cat >&5 <<_CSEOF
                   4853:
1.7       grant    4854: This file was extended by pkg_install $as_me 20030923, which was
1.9     ! grant    4855: generated by GNU Autoconf 2.59.  Invocation command line was
1.3       jlam     4856:
                   4857:   CONFIG_FILES    = $CONFIG_FILES
                   4858:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   4859:   CONFIG_LINKS    = $CONFIG_LINKS
                   4860:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   4861:   $ $0 $@
                   4862:
                   4863: _CSEOF
                   4864: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
                   4865: echo >&5
                   4866: _ACEOF
                   4867:
                   4868: # Files that config.status was made for.
                   4869: if test -n "$ac_config_files"; then
                   4870:   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
                   4871: fi
                   4872:
                   4873: if test -n "$ac_config_headers"; then
                   4874:   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
                   4875: fi
                   4876:
                   4877: if test -n "$ac_config_links"; then
                   4878:   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
                   4879: fi
                   4880:
                   4881: if test -n "$ac_config_commands"; then
                   4882:   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
                   4883: fi
                   4884:
                   4885: cat >>$CONFIG_STATUS <<\_ACEOF
                   4886:
                   4887: ac_cs_usage="\
                   4888: \`$as_me' instantiates files from templates according to the
                   4889: current configuration.
                   4890:
                   4891: Usage: $0 [OPTIONS] [FILE]...
                   4892:
                   4893:   -h, --help       print this help, then exit
                   4894:   -V, --version    print version number, then exit
                   4895:   -q, --quiet      do not print progress messages
                   4896:   -d, --debug      don't remove temporary files
                   4897:       --recheck    update $as_me by reconfiguring in the same conditions
                   4898:   --file=FILE[:TEMPLATE]
1.9     ! grant    4899:                   instantiate the configuration file FILE
1.3       jlam     4900:   --header=FILE[:TEMPLATE]
1.9     ! grant    4901:                   instantiate the configuration header FILE
1.3       jlam     4902:
                   4903: Configuration files:
                   4904: $config_files
                   4905:
                   4906: Configuration headers:
                   4907: $config_headers
                   4908:
                   4909: Report bugs to <bug-autoconf@gnu.org>."
                   4910: _ACEOF
                   4911:
                   4912: cat >>$CONFIG_STATUS <<_ACEOF
                   4913: ac_cs_version="\\
1.7       grant    4914: pkg_install config.status 20030923
1.9     ! grant    4915: configured by $0, generated by GNU Autoconf 2.59,
1.3       jlam     4916:   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
                   4917:
1.9     ! grant    4918: Copyright (C) 2003 Free Software Foundation, Inc.
1.3       jlam     4919: This config.status script is free software; the Free Software Foundation
                   4920: gives unlimited permission to copy, distribute and modify it."
                   4921: srcdir=$srcdir
                   4922: INSTALL="$INSTALL"
                   4923: _ACEOF
                   4924:
                   4925: cat >>$CONFIG_STATUS <<\_ACEOF
                   4926: # If no file are specified by the user, then we need to provide default
                   4927: # value.  By we need to know if files were specified by the user.
                   4928: ac_need_defaults=:
                   4929: while test $# != 0
                   4930: do
                   4931:   case $1 in
                   4932:   --*=*)
                   4933:     ac_option=`expr "x$1" : 'x\([^=]*\)='`
                   4934:     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
                   4935:     ac_shift=:
1.1       schmonz  4936:     ;;
1.3       jlam     4937:   -*)
                   4938:     ac_option=$1
                   4939:     ac_optarg=$2
                   4940:     ac_shift=shift
1.1       schmonz  4941:     ;;
1.3       jlam     4942:   *) # This is not an option, so the user has probably given explicit
                   4943:      # arguments.
                   4944:      ac_option=$1
                   4945:      ac_need_defaults=false;;
                   4946:   esac
                   4947:
                   4948:   case $ac_option in
                   4949:   # Handling of the options.
                   4950: _ACEOF
                   4951: cat >>$CONFIG_STATUS <<\_ACEOF
                   4952:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   4953:     ac_cs_recheck=: ;;
                   4954:   --version | --vers* | -V )
                   4955:     echo "$ac_cs_version"; exit 0 ;;
                   4956:   --he | --h)
                   4957:     # Conflict between --help and --header
                   4958:     { { echo "$as_me:$LINENO: error: ambiguous option: $1
                   4959: Try \`$0 --help' for more information." >&5
                   4960: echo "$as_me: error: ambiguous option: $1
                   4961: Try \`$0 --help' for more information." >&2;}
                   4962:    { (exit 1); exit 1; }; };;
                   4963:   --help | --hel | -h )
                   4964:     echo "$ac_cs_usage"; exit 0 ;;
                   4965:   --debug | --d* | -d )
                   4966:     debug=: ;;
                   4967:   --file | --fil | --fi | --f )
                   4968:     $ac_shift
                   4969:     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
                   4970:     ac_need_defaults=false;;
                   4971:   --header | --heade | --head | --hea )
                   4972:     $ac_shift
                   4973:     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
                   4974:     ac_need_defaults=false;;
                   4975:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   4976:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   4977:     ac_cs_silent=: ;;
                   4978:
                   4979:   # This is an error.
                   4980:   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
                   4981: Try \`$0 --help' for more information." >&5
                   4982: echo "$as_me: error: unrecognized option: $1
                   4983: Try \`$0 --help' for more information." >&2;}
                   4984:    { (exit 1); exit 1; }; } ;;
                   4985:
                   4986:   *) ac_config_targets="$ac_config_targets $1" ;;
                   4987:
                   4988:   esac
                   4989:   shift
                   4990: done
1.1       schmonz  4991:
1.3       jlam     4992: ac_configure_extra_args=
1.1       schmonz  4993:
1.3       jlam     4994: if $ac_cs_silent; then
                   4995:   exec 6>/dev/null
                   4996:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   4997: fi
1.1       schmonz  4998:
1.3       jlam     4999: _ACEOF
                   5000: cat >>$CONFIG_STATUS <<_ACEOF
                   5001: if \$ac_cs_recheck; then
                   5002:   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
                   5003:   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1       schmonz  5004: fi
                   5005:
1.3       jlam     5006: _ACEOF
                   5007:
1.1       schmonz  5008:
                   5009:
                   5010:
                   5011:
1.3       jlam     5012: cat >>$CONFIG_STATUS <<\_ACEOF
                   5013: for ac_config_target in $ac_config_targets
1.1       schmonz  5014: do
1.3       jlam     5015:   case "$ac_config_target" in
                   5016:   # Handling of arguments.
                   5017:   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   5018:   "add/Makefile" ) CONFIG_FILES="$CONFIG_FILES add/Makefile" ;;
                   5019:   "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
                   5020:   "create/Makefile" ) CONFIG_FILES="$CONFIG_FILES create/Makefile" ;;
                   5021:   "delete/Makefile" ) CONFIG_FILES="$CONFIG_FILES delete/Makefile" ;;
                   5022:   "info/Makefile" ) CONFIG_FILES="$CONFIG_FILES info/Makefile" ;;
                   5023:   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
                   5024:   "view/Makefile" ) CONFIG_FILES="$CONFIG_FILES view/Makefile" ;;
1.5       jlam     5025:   "view/linkfarm.sh" ) CONFIG_FILES="$CONFIG_FILES view/linkfarm.sh" ;;
                   5026:   "view/pkg_view.sh" ) CONFIG_FILES="$CONFIG_FILES view/pkg_view.sh" ;;
1.3       jlam     5027:   "lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
                   5028:   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
                   5029: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
                   5030:    { (exit 1); exit 1; }; };;
1.1       schmonz  5031:   esac
                   5032: done
                   5033:
1.3       jlam     5034: # If the user did not use the arguments to specify the items to instantiate,
                   5035: # then the envvar interface is used.  Set only those that are not.
                   5036: # We use the long form for the default assignment because of an extremely
                   5037: # bizarre bug on SunOS 4.1.3.
                   5038: if $ac_need_defaults; then
                   5039:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   5040:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   5041: fi
                   5042:
                   5043: # Have a temporary directory for convenience.  Make it in the build tree
                   5044: # simply because there is no reason to put it here, and in addition,
                   5045: # creating and moving files from /tmp can sometimes cause problems.
                   5046: # Create a temporary directory, and hook for its removal unless debugging.
                   5047: $debug ||
                   5048: {
                   5049:   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
                   5050:   trap '{ (exit 1); exit 1; }' 1 2 13 15
                   5051: }
                   5052:
                   5053: # Create a (secure) tmp directory for tmp files.
                   5054:
                   5055: {
                   5056:   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
                   5057:   test -n "$tmp" && test -d "$tmp"
                   5058: }  ||
                   5059: {
                   5060:   tmp=./confstat$$-$RANDOM
                   5061:   (umask 077 && mkdir $tmp)
                   5062: } ||
                   5063: {
                   5064:    echo "$me: cannot create a temporary directory in ." >&2
                   5065:    { (exit 1); exit 1; }
                   5066: }
                   5067:
                   5068: _ACEOF
1.1       schmonz  5069:
1.3       jlam     5070: cat >>$CONFIG_STATUS <<_ACEOF
                   5071:
                   5072: #
                   5073: # CONFIG_FILES section.
                   5074: #
1.1       schmonz  5075:
1.3       jlam     5076: # No need to generate the scripts if there are no CONFIG_FILES.
                   5077: # This happens for instance when ./config.status config.h
                   5078: if test -n "\$CONFIG_FILES"; then
                   5079:   # Protect against being on the right side of a sed subst in config.status.
                   5080:   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
                   5081:    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
                   5082: s,@SHELL@,$SHELL,;t t
                   5083: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
                   5084: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
                   5085: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
                   5086: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
                   5087: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
                   5088: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
                   5089: s,@exec_prefix@,$exec_prefix,;t t
                   5090: s,@prefix@,$prefix,;t t
                   5091: s,@program_transform_name@,$program_transform_name,;t t
                   5092: s,@bindir@,$bindir,;t t
                   5093: s,@sbindir@,$sbindir,;t t
                   5094: s,@libexecdir@,$libexecdir,;t t
                   5095: s,@datadir@,$datadir,;t t
                   5096: s,@sysconfdir@,$sysconfdir,;t t
                   5097: s,@sharedstatedir@,$sharedstatedir,;t t
                   5098: s,@localstatedir@,$localstatedir,;t t
                   5099: s,@libdir@,$libdir,;t t
                   5100: s,@includedir@,$includedir,;t t
                   5101: s,@oldincludedir@,$oldincludedir,;t t
                   5102: s,@infodir@,$infodir,;t t
                   5103: s,@mandir@,$mandir,;t t
                   5104: s,@build_alias@,$build_alias,;t t
                   5105: s,@host_alias@,$host_alias,;t t
                   5106: s,@target_alias@,$target_alias,;t t
                   5107: s,@DEFS@,$DEFS,;t t
                   5108: s,@ECHO_C@,$ECHO_C,;t t
                   5109: s,@ECHO_N@,$ECHO_N,;t t
                   5110: s,@ECHO_T@,$ECHO_T,;t t
                   5111: s,@LIBS@,$LIBS,;t t
                   5112: s,@build@,$build,;t t
                   5113: s,@build_cpu@,$build_cpu,;t t
                   5114: s,@build_vendor@,$build_vendor,;t t
                   5115: s,@build_os@,$build_os,;t t
                   5116: s,@host@,$host,;t t
                   5117: s,@host_cpu@,$host_cpu,;t t
                   5118: s,@host_vendor@,$host_vendor,;t t
                   5119: s,@host_os@,$host_os,;t t
                   5120: s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
                   5121: s,@INCLUDES@,$INCLUDES,;t t
                   5122: s,@SET_MAKE@,$SET_MAKE,;t t
                   5123: s,@CC@,$CC,;t t
                   5124: s,@CFLAGS@,$CFLAGS,;t t
                   5125: s,@LDFLAGS@,$LDFLAGS,;t t
                   5126: s,@CPPFLAGS@,$CPPFLAGS,;t t
                   5127: s,@ac_ct_CC@,$ac_ct_CC,;t t
                   5128: s,@EXEEXT@,$EXEEXT,;t t
                   5129: s,@OBJEXT@,$OBJEXT,;t t
                   5130: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
                   5131: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
                   5132: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
                   5133: s,@LN_S@,$LN_S,;t t
                   5134: s,@RANLIB@,$RANLIB,;t t
                   5135: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
                   5136: s,@AR@,$AR,;t t
1.5       jlam     5137: s,@CHMOD@,$CHMOD,;t t
                   5138: s,@CMP@,$CMP,;t t
                   5139: s,@CP@,$CP,;t t
                   5140: s,@ENV@,$ENV,;t t
                   5141: s,@FIND@,$FIND,;t t
                   5142: s,@GREP@,$GREP,;t t
                   5143: s,@LN@,$LN,;t t
                   5144: s,@MKDIR@,$MKDIR,;t t
                   5145: s,@RMDIR@,$RMDIR,;t t
                   5146: s,@RM@,$RM,;t t
                   5147: s,@SED@,$SED,;t t
                   5148: s,@SORT@,$SORT,;t t
                   5149: s,@TOUCH@,$TOUCH,;t t
1.3       jlam     5150: s,@AUTOCONF@,$AUTOCONF,;t t
                   5151: s,@AUTOHEADER@,$AUTOHEADER,;t t
                   5152: s,@pkgdbdir@,$pkgdbdir,;t t
1.6       grant    5153: s,@ftp@,$ftp,;t t
                   5154: s,@tar@,$tar,;t t
                   5155: s,@pax@,$pax,;t t
                   5156: s,@mtree@,$mtree,;t t
1.3       jlam     5157: s,@CPP@,$CPP,;t t
                   5158: s,@EGREP@,$EGREP,;t t
                   5159: s,@LIBOBJS@,$LIBOBJS,;t t
                   5160: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1       schmonz  5161: CEOF
                   5162:
1.3       jlam     5163: _ACEOF
1.1       schmonz  5164:
1.3       jlam     5165:   cat >>$CONFIG_STATUS <<\_ACEOF
                   5166:   # Split the substitutions into bite-sized pieces for seds with
                   5167:   # small command number limits, like on Digital OSF/1 and HP-UX.
                   5168:   ac_max_sed_lines=48
                   5169:   ac_sed_frag=1 # Number of current file.
                   5170:   ac_beg=1 # First line for current file.
                   5171:   ac_end=$ac_max_sed_lines # Line after last line for current file.
                   5172:   ac_more_lines=:
                   5173:   ac_sed_cmds=
                   5174:   while $ac_more_lines; do
                   5175:     if test $ac_beg -gt 1; then
                   5176:       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
                   5177:     else
                   5178:       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
                   5179:     fi
                   5180:     if test ! -s $tmp/subs.frag; then
                   5181:       ac_more_lines=false
1.1       schmonz  5182:     else
1.3       jlam     5183:       # The purpose of the label and of the branching condition is to
                   5184:       # speed up the sed processing (if there are no `@' at all, there
                   5185:       # is no need to browse any of the substitutions).
                   5186:       # These are the two extra sed commands mentioned above.
                   5187:       (echo ':t
                   5188:   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
                   5189:       if test -z "$ac_sed_cmds"; then
1.9     ! grant    5190:        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.3       jlam     5191:       else
1.9     ! grant    5192:        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.3       jlam     5193:       fi
                   5194:       ac_sed_frag=`expr $ac_sed_frag + 1`
                   5195:       ac_beg=$ac_end
                   5196:       ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1       schmonz  5197:     fi
1.3       jlam     5198:   done
                   5199:   if test -z "$ac_sed_cmds"; then
                   5200:     ac_sed_cmds=cat
1.1       schmonz  5201:   fi
1.3       jlam     5202: fi # test -n "$CONFIG_FILES"
1.1       schmonz  5203:
1.3       jlam     5204: _ACEOF
                   5205: cat >>$CONFIG_STATUS <<\_ACEOF
                   5206: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1       schmonz  5207:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.3       jlam     5208:   case $ac_file in
                   5209:   - | *:- | *:-:* ) # input from stdin
1.9     ! grant    5210:        cat >$tmp/stdin
        !          5211:        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        !          5212:        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.3       jlam     5213:   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.9     ! grant    5214:        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.3       jlam     5215:   * )   ac_file_in=$ac_file.in ;;
1.1       schmonz  5216:   esac
                   5217:
1.3       jlam     5218:   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
                   5219:   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
                   5220: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9     ! grant    5221:         X"$ac_file" : 'X\(//\)[^/]' \| \
        !          5222:         X"$ac_file" : 'X\(//\)$' \| \
        !          5223:         X"$ac_file" : 'X\(/\)' \| \
        !          5224:         .     : '\(.\)' 2>/dev/null ||
1.3       jlam     5225: echo X"$ac_file" |
                   5226:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   5227:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   5228:          /^X\(\/\/\)$/{ s//\1/; q; }
                   5229:          /^X\(\/\).*/{ s//\1/; q; }
                   5230:          s/.*/./; q'`
                   5231:   { if $as_mkdir_p; then
                   5232:     mkdir -p "$ac_dir"
                   5233:   else
                   5234:     as_dir="$ac_dir"
                   5235:     as_dirs=
                   5236:     while test ! -d "$as_dir"; do
                   5237:       as_dirs="$as_dir $as_dirs"
                   5238:       as_dir=`(dirname "$as_dir") 2>/dev/null ||
                   5239: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9     ! grant    5240:         X"$as_dir" : 'X\(//\)[^/]' \| \
        !          5241:         X"$as_dir" : 'X\(//\)$' \| \
        !          5242:         X"$as_dir" : 'X\(/\)' \| \
        !          5243:         .     : '\(.\)' 2>/dev/null ||
1.3       jlam     5244: echo X"$as_dir" |
                   5245:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   5246:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   5247:          /^X\(\/\/\)$/{ s//\1/; q; }
                   5248:          /^X\(\/\).*/{ s//\1/; q; }
                   5249:          s/.*/./; q'`
                   5250:     done
                   5251:     test ! -n "$as_dirs" || mkdir $as_dirs
                   5252:   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
                   5253: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
                   5254:    { (exit 1); exit 1; }; }; }
                   5255:
                   5256:   ac_builddir=.
                   5257:
                   5258: if test "$ac_dir" != .; then
                   5259:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
                   5260:   # A "../" for each directory in $ac_dir_suffix.
                   5261:   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
                   5262: else
                   5263:   ac_dir_suffix= ac_top_builddir=
                   5264: fi
                   5265:
                   5266: case $srcdir in
                   5267:   .)  # No --srcdir option.  We are building in place.
                   5268:     ac_srcdir=.
                   5269:     if test -z "$ac_top_builddir"; then
                   5270:        ac_top_srcdir=.
                   5271:     else
                   5272:        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
                   5273:     fi ;;
                   5274:   [\\/]* | ?:[\\/]* )  # Absolute path.
                   5275:     ac_srcdir=$srcdir$ac_dir_suffix;
                   5276:     ac_top_srcdir=$srcdir ;;
                   5277:   *) # Relative path.
                   5278:     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
                   5279:     ac_top_srcdir=$ac_top_builddir$srcdir ;;
                   5280: esac
1.9     ! grant    5281:
        !          5282: # Do not use `cd foo && pwd` to compute absolute paths, because
        !          5283: # the directories may not exist.
        !          5284: case `pwd` in
        !          5285: .) ac_abs_builddir="$ac_dir";;
        !          5286: *)
        !          5287:   case "$ac_dir" in
        !          5288:   .) ac_abs_builddir=`pwd`;;
        !          5289:   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
        !          5290:   *) ac_abs_builddir=`pwd`/"$ac_dir";;
        !          5291:   esac;;
        !          5292: esac
        !          5293: case $ac_abs_builddir in
        !          5294: .) ac_abs_top_builddir=${ac_top_builddir}.;;
        !          5295: *)
        !          5296:   case ${ac_top_builddir}. in
        !          5297:   .) ac_abs_top_builddir=$ac_abs_builddir;;
        !          5298:   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
        !          5299:   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
        !          5300:   esac;;
        !          5301: esac
        !          5302: case $ac_abs_builddir in
        !          5303: .) ac_abs_srcdir=$ac_srcdir;;
        !          5304: *)
        !          5305:   case $ac_srcdir in
        !          5306:   .) ac_abs_srcdir=$ac_abs_builddir;;
        !          5307:   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
        !          5308:   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
        !          5309:   esac;;
        !          5310: esac
        !          5311: case $ac_abs_builddir in
        !          5312: .) ac_abs_top_srcdir=$ac_top_srcdir;;
        !          5313: *)
        !          5314:   case $ac_top_srcdir in
        !          5315:   .) ac_abs_top_srcdir=$ac_abs_builddir;;
        !          5316:   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
        !          5317:   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
        !          5318:   esac;;
        !          5319: esac
1.1       schmonz  5320:
1.3       jlam     5321:
                   5322:   case $INSTALL in
                   5323:   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
                   5324:   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1       schmonz  5325:   esac
                   5326:
1.3       jlam     5327:   if test x"$ac_file" != x-; then
                   5328:     { echo "$as_me:$LINENO: creating $ac_file" >&5
                   5329: echo "$as_me: creating $ac_file" >&6;}
                   5330:     rm -f "$ac_file"
                   5331:   fi
                   5332:   # Let's still pretend it is `configure' which instantiates (i.e., don't
                   5333:   # use $as_me), people would be surprised to read:
                   5334:   #    /* config.h.  Generated by config.status.  */
                   5335:   if test x"$ac_file" = x-; then
                   5336:     configure_input=
                   5337:   else
                   5338:     configure_input="$ac_file.  "
                   5339:   fi
                   5340:   configure_input=$configure_input"Generated from `echo $ac_file_in |
1.9     ! grant    5341:                                     sed 's,.*/,,'` by configure."
1.3       jlam     5342:
                   5343:   # First look for the input files in the build tree, otherwise in the
                   5344:   # src tree.
                   5345:   ac_file_inputs=`IFS=:
                   5346:     for f in $ac_file_in; do
                   5347:       case $f in
                   5348:       -) echo $tmp/stdin ;;
                   5349:       [\\/$]*)
1.9     ! grant    5350:         # Absolute (can't be DOS-style, as IFS=:)
        !          5351:         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.3       jlam     5352: echo "$as_me: error: cannot find input file: $f" >&2;}
                   5353:    { (exit 1); exit 1; }; }
1.9     ! grant    5354:         echo "$f";;
1.3       jlam     5355:       *) # Relative
1.9     ! grant    5356:         if test -f "$f"; then
        !          5357:           # Build tree
        !          5358:           echo "$f"
        !          5359:         elif test -f "$srcdir/$f"; then
        !          5360:           # Source tree
        !          5361:           echo "$srcdir/$f"
        !          5362:         else
        !          5363:           # /dev/null tree
        !          5364:           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.3       jlam     5365: echo "$as_me: error: cannot find input file: $f" >&2;}
                   5366:    { (exit 1); exit 1; }; }
1.9     ! grant    5367:         fi;;
1.3       jlam     5368:       esac
                   5369:     done` || { (exit 1); exit 1; }
                   5370: _ACEOF
                   5371: cat >>$CONFIG_STATUS <<_ACEOF
                   5372:   sed "$ac_vpsub
                   5373: $extrasub
                   5374: _ACEOF
                   5375: cat >>$CONFIG_STATUS <<\_ACEOF
                   5376: :t
                   5377: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   5378: s,@configure_input@,$configure_input,;t t
                   5379: s,@srcdir@,$ac_srcdir,;t t
                   5380: s,@abs_srcdir@,$ac_abs_srcdir,;t t
                   5381: s,@top_srcdir@,$ac_top_srcdir,;t t
                   5382: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
                   5383: s,@builddir@,$ac_builddir,;t t
                   5384: s,@abs_builddir@,$ac_abs_builddir,;t t
                   5385: s,@top_builddir@,$ac_top_builddir,;t t
                   5386: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
                   5387: s,@INSTALL@,$ac_INSTALL,;t t
                   5388: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
                   5389:   rm -f $tmp/stdin
                   5390:   if test x"$ac_file" != x-; then
                   5391:     mv $tmp/out $ac_file
                   5392:   else
                   5393:     cat $tmp/out
                   5394:     rm -f $tmp/out
                   5395:   fi
1.1       schmonz  5396:
1.3       jlam     5397: done
                   5398: _ACEOF
                   5399: cat >>$CONFIG_STATUS <<\_ACEOF
1.1       schmonz  5400:
1.3       jlam     5401: #
                   5402: # CONFIG_HEADER section.
                   5403: #
1.1       schmonz  5404:
                   5405: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   5406: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   5407: #
                   5408: # ac_d sets the value in "#define NAME VALUE" lines.
1.9     ! grant    5409: ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
        !          5410: ac_dB='[        ].*$,\1#\2'
1.3       jlam     5411: ac_dC=' '
                   5412: ac_dD=',;t'
                   5413: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1.9     ! grant    5414: ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1.3       jlam     5415: ac_uB='$,\1#\2define\3'
1.1       schmonz  5416: ac_uC=' '
1.3       jlam     5417: ac_uD=',;t'
                   5418:
                   5419: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1       schmonz  5420:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.3       jlam     5421:   case $ac_file in
                   5422:   - | *:- | *:-:* ) # input from stdin
1.9     ! grant    5423:        cat >$tmp/stdin
        !          5424:        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
        !          5425:        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.3       jlam     5426:   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.9     ! grant    5427:        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.3       jlam     5428:   * )   ac_file_in=$ac_file.in ;;
1.1       schmonz  5429:   esac
                   5430:
1.3       jlam     5431:   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
                   5432: echo "$as_me: creating $ac_file" >&6;}
1.1       schmonz  5433:
1.3       jlam     5434:   # First look for the input files in the build tree, otherwise in the
                   5435:   # src tree.
                   5436:   ac_file_inputs=`IFS=:
                   5437:     for f in $ac_file_in; do
                   5438:       case $f in
                   5439:       -) echo $tmp/stdin ;;
                   5440:       [\\/$]*)
1.9     ! grant    5441:         # Absolute (can't be DOS-style, as IFS=:)
        !          5442:         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.3       jlam     5443: echo "$as_me: error: cannot find input file: $f" >&2;}
                   5444:    { (exit 1); exit 1; }; }
1.9     ! grant    5445:         # Do quote $f, to prevent DOS paths from being IFS'd.
        !          5446:         echo "$f";;
1.3       jlam     5447:       *) # Relative
1.9     ! grant    5448:         if test -f "$f"; then
        !          5449:           # Build tree
        !          5450:           echo "$f"
        !          5451:         elif test -f "$srcdir/$f"; then
        !          5452:           # Source tree
        !          5453:           echo "$srcdir/$f"
        !          5454:         else
        !          5455:           # /dev/null tree
        !          5456:           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.3       jlam     5457: echo "$as_me: error: cannot find input file: $f" >&2;}
                   5458:    { (exit 1); exit 1; }; }
1.9     ! grant    5459:         fi;;
1.3       jlam     5460:       esac
                   5461:     done` || { (exit 1); exit 1; }
                   5462:   # Remove the trailing spaces.
1.9     ! grant    5463:   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
1.3       jlam     5464:
                   5465: _ACEOF
                   5466:
                   5467: # Transform confdefs.h into two sed scripts, `conftest.defines' and
                   5468: # `conftest.undefs', that substitutes the proper values into
                   5469: # config.h.in to produce config.h.  The first handles `#define'
                   5470: # templates, and the second `#undef' templates.
                   5471: # And first: Protect against being on the right side of a sed subst in
                   5472: # config.status.  Protect against being in an unquoted here document
                   5473: # in config.status.
                   5474: rm -f conftest.defines conftest.undefs
                   5475: # Using a here document instead of a string reduces the quoting nightmare.
                   5476: # Putting comments in sed scripts is not portable.
                   5477: #
                   5478: # `end' is used to avoid that the second main sed command (meant for
                   5479: # 0-ary CPP macros) applies to n-ary macro definitions.
                   5480: # See the Autoconf documentation for `clear'.
                   5481: cat >confdef2sed.sed <<\_ACEOF
                   5482: s/[\\&,]/\\&/g
                   5483: s,[\\$`],\\&,g
                   5484: t clear
                   5485: : clear
1.9     ! grant    5486: s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.3       jlam     5487: t end
1.9     ! grant    5488: s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
1.3       jlam     5489: : end
                   5490: _ACEOF
                   5491: # If some macros were called several times there might be several times
                   5492: # the same #defines, which is useless.  Nevertheless, we may not want to
                   5493: # sort them, since we want the *last* AC-DEFINE to be honored.
                   5494: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
                   5495: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
                   5496: rm -f confdef2sed.sed
1.1       schmonz  5497:
                   5498: # This sed command replaces #undef with comments.  This is necessary, for
                   5499: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   5500: # on some systems where configure will not decide to define it.
1.3       jlam     5501: cat >>conftest.undefs <<\_ACEOF
1.9     ! grant    5502: s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.3       jlam     5503: _ACEOF
                   5504:
                   5505: # Break up conftest.defines because some shells have a limit on the size
                   5506: # of here documents, and old seds have small limits too (100 cmds).
                   5507: echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.9     ! grant    5508: echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.3       jlam     5509: echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
                   5510: echo '  :' >>$CONFIG_STATUS
                   5511: rm -f conftest.tail
                   5512: while grep . conftest.defines >/dev/null
                   5513: do
                   5514:   # Write a limited-size here document to $tmp/defines.sed.
                   5515:   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
                   5516:   # Speed up: don't consider the non `#define' lines.
1.9     ! grant    5517:   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
1.3       jlam     5518:   # Work around the forget-to-reset-the-flag bug.
                   5519:   echo 't clr' >>$CONFIG_STATUS
                   5520:   echo ': clr' >>$CONFIG_STATUS
                   5521:   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
                   5522:   echo 'CEOF
                   5523:   sed -f $tmp/defines.sed $tmp/in >$tmp/out
                   5524:   rm -f $tmp/in
                   5525:   mv $tmp/out $tmp/in
                   5526: ' >>$CONFIG_STATUS
                   5527:   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
                   5528:   rm -f conftest.defines
                   5529:   mv conftest.tail conftest.defines
                   5530: done
                   5531: rm -f conftest.defines
                   5532: echo '  fi # grep' >>$CONFIG_STATUS
                   5533: echo >>$CONFIG_STATUS
                   5534:
                   5535: # Break up conftest.undefs because some shells have a limit on the size
                   5536: # of here documents, and old seds have small limits too (100 cmds).
                   5537: echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
1.1       schmonz  5538: rm -f conftest.tail
1.3       jlam     5539: while grep . conftest.undefs >/dev/null
1.1       schmonz  5540: do
1.3       jlam     5541:   # Write a limited-size here document to $tmp/undefs.sed.
                   5542:   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
                   5543:   # Speed up: don't consider the non `#undef'
1.9     ! grant    5544:   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
1.3       jlam     5545:   # Work around the forget-to-reset-the-flag bug.
                   5546:   echo 't clr' >>$CONFIG_STATUS
                   5547:   echo ': clr' >>$CONFIG_STATUS
                   5548:   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1       schmonz  5549:   echo 'CEOF
1.3       jlam     5550:   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
                   5551:   rm -f $tmp/in
                   5552:   mv $tmp/out $tmp/in
                   5553: ' >>$CONFIG_STATUS
                   5554:   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
                   5555:   rm -f conftest.undefs
                   5556:   mv conftest.tail conftest.undefs
                   5557: done
                   5558: rm -f conftest.undefs
                   5559:
                   5560: cat >>$CONFIG_STATUS <<\_ACEOF
                   5561:   # Let's still pretend it is `configure' which instantiates (i.e., don't
                   5562:   # use $as_me), people would be surprised to read:
                   5563:   #    /* config.h.  Generated by config.status.  */
                   5564:   if test x"$ac_file" = x-; then
                   5565:     echo "/* Generated by configure.  */" >$tmp/config.h
                   5566:   else
                   5567:     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
                   5568:   fi
                   5569:   cat $tmp/in >>$tmp/config.h
                   5570:   rm -f $tmp/in
                   5571:   if test x"$ac_file" != x-; then
                   5572:     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
                   5573:       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
                   5574: echo "$as_me: $ac_file is unchanged" >&6;}
                   5575:     else
                   5576:       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
                   5577: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9     ! grant    5578:         X"$ac_file" : 'X\(//\)[^/]' \| \
        !          5579:         X"$ac_file" : 'X\(//\)$' \| \
        !          5580:         X"$ac_file" : 'X\(/\)' \| \
        !          5581:         .     : '\(.\)' 2>/dev/null ||
1.3       jlam     5582: echo X"$ac_file" |
                   5583:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   5584:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   5585:          /^X\(\/\/\)$/{ s//\1/; q; }
                   5586:          /^X\(\/\).*/{ s//\1/; q; }
                   5587:          s/.*/./; q'`
                   5588:       { if $as_mkdir_p; then
                   5589:     mkdir -p "$ac_dir"
                   5590:   else
                   5591:     as_dir="$ac_dir"
                   5592:     as_dirs=
                   5593:     while test ! -d "$as_dir"; do
                   5594:       as_dirs="$as_dir $as_dirs"
                   5595:       as_dir=`(dirname "$as_dir") 2>/dev/null ||
                   5596: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9     ! grant    5597:         X"$as_dir" : 'X\(//\)[^/]' \| \
        !          5598:         X"$as_dir" : 'X\(//\)$' \| \
        !          5599:         X"$as_dir" : 'X\(/\)' \| \
        !          5600:         .     : '\(.\)' 2>/dev/null ||
1.3       jlam     5601: echo X"$as_dir" |
                   5602:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   5603:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   5604:          /^X\(\/\/\)$/{ s//\1/; q; }
                   5605:          /^X\(\/\).*/{ s//\1/; q; }
                   5606:          s/.*/./; q'`
                   5607:     done
                   5608:     test ! -n "$as_dirs" || mkdir $as_dirs
                   5609:   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
                   5610: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
                   5611:    { (exit 1); exit 1; }; }; }
                   5612:
                   5613:       rm -f $ac_file
                   5614:       mv $tmp/config.h $ac_file
1.1       schmonz  5615:     fi
1.3       jlam     5616:   else
                   5617:     cat $tmp/config.h
                   5618:     rm -f $tmp/config.h
1.1       schmonz  5619:   fi
1.3       jlam     5620: done
                   5621: _ACEOF
1.1       schmonz  5622:
1.3       jlam     5623: cat >>$CONFIG_STATUS <<\_ACEOF
                   5624:
                   5625: { (exit 0); exit 0; }
                   5626: _ACEOF
                   5627: chmod +x $CONFIG_STATUS
                   5628: ac_clean_files=$ac_clean_files_save
1.1       schmonz  5629:
                   5630:
1.3       jlam     5631: # configure is writing to config.log, and then calls config.status.
                   5632: # config.status does its own redirection, appending to config.log.
                   5633: # Unfortunately, on DOS this fails, as config.log is still kept open
                   5634: # by configure, so config.status won't be able to write to it; its
                   5635: # output is simply discarded.  So we exec the FD to /dev/null,
                   5636: # effectively closing config.log, so it can be properly (re)opened and
                   5637: # appended to by config.status.  When coming back to configure, we
                   5638: # need to make the FD available again.
                   5639: if test "$no_create" != yes; then
                   5640:   ac_cs_success=:
                   5641:   ac_config_status_args=
                   5642:   test "$silent" = yes &&
                   5643:     ac_config_status_args="$ac_config_status_args --quiet"
                   5644:   exec 5>/dev/null
                   5645:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
                   5646:   exec 5>>config.log
                   5647:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   5648:   # would make configure fail if this is the last instruction.
                   5649:   $ac_cs_success || { (exit 1); exit 1; }
                   5650: fi
1.1       schmonz  5651:

CVSweb <webmaster@jp.NetBSD.org>